PageSourceSearch

https://top1000league.com/assets/LineChart-CmbFOvwk.js

js top1000league.com collected 2026-10-09 22:06:38 UTC 393,017 bytes, 62 lines download raw bytes

vendor: 7,981 bytes, line 1
1import{b2 as ee}from"./index-B712TPBp.js";import{m as Qn,e as se,a as N,R as T}from"./react-vendor-DHHkWg5p.js";import{P as re}from"./index-BrDl1ZWG.js";var za,hh;function De(){if(hh)return za;hh=1;var e=Array.isArray;return za=e,za}var Wa,ph;function Vg(){if(ph)return Wa;ph=1;var e=typeof Qn=="object"&&Qn&&Qn.Object===Object&&Qn;return Wa=e,Wa}var Ua,dh;function ut(){if(dh)return Ua;dh=1;var e=Vg(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Ua=r,Ua}var Ha,vh;function zn(){if(vh)return Ha;vh=1;var e=ut(),t=e.Symbol;return Ha=t,Ha}var Ga,yh;function aw(){if(yh)return Ga;yh=1;var e=zn(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var u=r.call(o,i),c=o[i];try{o[i]=void 0;var s=!0}catch{}var f=n.call(o);return s&&(u?o[i]=c:delete o[i]),f}return Ga=a,Ga}var Ka,mh;function ow(){if(mh)return Ka;mh=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Ka=r,Ka}var Xa,gh;function wt(){if(gh)return Xa;gh=1;var e=zn(),t=aw(),r=ow(),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 Xa=o,Xa}var Va,bh;function Ot(){if(bh)return Va;bh=1;function e(t){return t!=null&&typeof t=="object"}return Va=e,Va}var Ya,xh;function kr(){if(xh)return Ya;xh=1;var e=wt(),t=Ot(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return Ya=n,Ya}var Za,wh;function nf(){if(wh)return Za;wh=1;var e=De(),t=kr(),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 Za=i,Za}var Ja,Oh;function Mt(){if(Oh)return Ja;Oh=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Ja=e,Ja}var Qa,_h;function af(){if(_h)return Qa;_h=1;var e=wt(),t=Mt(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!t(u))return!1;var c=e(u);return c==n||c==i||c==r||c==a}return Qa=o,Qa}var eo,Sh;function uw(){if(Sh)return eo;Sh=1;var e=ut(),t=e["__core-js_shared__"];return eo=t,eo}var to,Ah;function cw(){if(Ah)return to;Ah=1;var e=uw(),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 to=r,to}var ro,Ph;function Yg(){if(Ph)return ro;Ph=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 ro=r,ro}var no,Th;function sw(){if(Th)return no;Th=1;var e=af(),t=cw(),r=Mt(),n=Yg(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,c=o.toString,s=u.hasOwnProperty,f=RegExp("^"+c.call(s).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(h){if(!r(h)||t(h))return!1;var p=e(h)?f:a;return p.test(n(h))}return no=l,no}var io,Eh;function lw(){if(Eh)return io;Eh=1;function e(t,r){return t?.[r]}return io=e,io}var ao,jh;function Zt(){if(jh)return ao;jh=1;var e=sw(),t=lw();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return ao=r,ao}var oo,Mh;function sa(){if(Mh)return oo;Mh=1;var e=Zt(),t=e(Object,"create");return oo=t,oo}var uo,Ch;function fw(){if(Ch)return uo;Ch=1;var e=sa();function t(){this.__data__=e?e(null):{},this.size=0}return uo=t,uo}var co,$h;function hw(){if($h)return co;$h=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return co=e,co}var so,Ih;function pw(){if(Ih)return so;Ih=1;var e=sa(),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 so=i,so}var lo,Dh;function dw(){if(Dh)return lo;Dh=1;var e=sa(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return lo=n,lo}var fo,kh;function vw(){if(kh)return fo;kh=1;var e=sa(),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 fo=r,fo}var ho,Rh;function yw(){if(Rh)return ho;Rh=1;var e=fw(),t=hw(),r=pw(),n=dw(),i=vw();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,ho=a,ho}var po,Nh;function mw(){if(Nh)return po;Nh=1;function e(){this.__data__=[],this.size=0}return po=e,po}var vo,qh;function of(){if(qh)return vo;qh=1;function e(t,r){return t===r||t!==t&&r!==r}return vo=e,vo}var yo,Lh;function la(){if(Lh)return yo;Lh=1;var e=of();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return yo=t,yo}var mo,Bh;function gw(){if(Bh)return mo;Bh=1;var e=la(),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 mo=n,mo}var go,Fh;function bw(){if(Fh)return go;Fh=1;var e=la();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return go=t,go}var bo,zh;function xw(){if(zh)return bo;zh=1;var e=la();function t(r){return e(this.__data__,r)>-1}return bo=t,bo}var xo,Wh;function ww(){if(Wh)return xo;Wh=1;var e=la();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 xo=t,xo}var wo,Uh;function fa(){if(Uh)return wo;Uh=1;var e=mw(),t=gw(),r=bw(),n=xw(),i=ww();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,wo=a,wo}var Oo,Hh;function uf(){if(Hh)return Oo;Hh=1;var e=Zt(),t=ut(),r=e(t,"Map");return Oo=r,Oo}var _o,Gh;function Ow(){if(Gh)return _o;Gh=1;var e=yw(),t=fa(),r=uf();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return _o=n,_o}var So,Kh;function _w(){if(Kh)return So;Kh=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return So=e,So}var Ao,Xh;function ha(){if(Xh)return Ao;Xh=1;var e=_w();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Ao=t,Ao}var Po,Vh;function Sw(){if(Vh)return Po;Vh=1;var e=ha();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Po=t,Po}var To,Yh;function Aw(){if(Yh)return To;Yh=1;var e=ha();function t(r){return e(this,r).get(r)}return To=t,To}var Eo,Zh;function Pw(){if(Zh)return Eo;Zh=1;var e=ha();function t(r){return e(this,r).has(r)}return Eo=t,Eo}var jo,Jh;function Tw(){if(Jh)return jo;Jh=1;var e=ha();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 jo=t,jo}var Mo,Qh;function cf(){if(Qh)return Mo;Qh=1;var e=Ow(),t=Sw(),r=Aw(),n=Pw(),i=Tw();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Mo=a,Mo}var Co,ep;function Zg(){if(ep)return Co;ep=1;var e=cf(),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],c=a.cache;if(c.has(u))return c.get(u);var s=n.apply(this,o);return a.cache=c.set(u,s)||c,s};return a.cache=new(r.Cache||e),a}return r.Cache=e,Co=r,Co}var $o,tp;function Ew(){if(tp)return $o;tp=1;var e=Zg(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return $o=r,$o}var Io,rp;function jw(){if(rp)return Io;rp=1;var e=Ew(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];
vendor: 6,904 bytes, line 1
1return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,u,c,s){a.push(c?s.replace(r,"$1"):u||o)}),a});return Io=n,Io}var Do,np;function sf(){if(np)return Do;np=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 Do=e,Do}var ko,ip;function Mw(){if(ip)return ko;ip=1;var e=zn(),t=sf(),r=De(),n=kr(),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 c=u+"";return c=="0"&&1/u==-1/0?"-0":c}return ko=o,ko}var Ro,ap;function Jg(){if(ap)return Ro;ap=1;var e=Mw();function t(r){return r==null?"":e(r)}return Ro=t,Ro}var No,op;function Qg(){if(op)return No;op=1;var e=De(),t=nf(),r=jw(),n=Jg();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return No=i,No}var qo,up;function pa(){if(up)return qo;up=1;var e=kr();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return qo=t,qo}var Lo,cp;function lf(){if(cp)return Lo;cp=1;var e=Qg(),t=pa();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 Lo=r,Lo}var Bo,sp;function eb(){if(sp)return Bo;sp=1;var e=lf();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Bo=t,Bo}var Cw=eb();const He=se(Cw);var Fo,lp;function $w(){if(lp)return Fo;lp=1;function e(t){return t==null}return Fo=e,Fo}var Iw=$w();const Z=se(Iw);var zo,fp;function Dw(){if(fp)return zo;fp=1;var e=wt(),t=De(),r=Ot(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return zo=i,zo}var kw=Dw();const Kt=se(kw);var Rw=af();const V=se(Rw);var Nw=Mt();const Rr=se(Nw);var Wo={exports:{}},ne={};var hp;function qw(){if(hp)return ne;hp=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function v(d){if(typeof d=="object"&&d!==null){var b=d.$$typeof;switch(b){case e:switch(d=d.type,d){case r:case i:case n:case s:case f:return d;default:switch(d=d&&d.$$typeof,d){case u:case o:case c:case h:case l:case a:return d;default:return b}}case t:return b}}}return ne.ContextConsumer=o,ne.ContextProvider=a,ne.Element=e,ne.ForwardRef=c,ne.Fragment=r,ne.Lazy=h,ne.Memo=l,ne.Portal=t,ne.Profiler=i,ne.StrictMode=n,ne.Suspense=s,ne.SuspenseList=f,ne.isAsyncMode=function(){return!1},ne.isConcurrentMode=function(){return!1},ne.isContextConsumer=function(d){return v(d)===o},ne.isContextProvider=function(d){return v(d)===a},ne.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},ne.isForwardRef=function(d){return v(d)===c},ne.isFragment=function(d){return v(d)===r},ne.isLazy=function(d){return v(d)===h},ne.isMemo=function(d){return v(d)===l},ne.isPortal=function(d){return v(d)===t},ne.isProfiler=function(d){return v(d)===i},ne.isStrictMode=function(d){return v(d)===n},ne.isSuspense=function(d){return v(d)===s},ne.isSuspenseList=function(d){return v(d)===f},ne.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===i||d===n||d===s||d===f||d===p||typeof d=="object"&&d!==null&&(d.$$typeof===h||d.$$typeof===l||d.$$typeof===a||d.$$typeof===o||d.$$typeof===c||d.$$typeof===y||d.getModuleId!==void 0)},ne.typeOf=v,ne}var pp;function Lw(){return pp||(pp=1,Wo.exports=qw()),Wo.exports}var Bw=Lw(),Uo,dp;function tb(){if(dp)return Uo;dp=1;var e=wt(),t=Ot(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Uo=n,Uo}var Ho,vp;function Fw(){if(vp)return Ho;vp=1;var e=tb();function t(r){return e(r)&&r!=+r}return Ho=t,Ho}var zw=Fw();const Wn=se(zw);var Ww=tb();const Uw=se(Ww);var et=function(t){return t===0?0:t>0?1:-1},Ft=function(t){return Kt(t)&&t.indexOf("%")===t.length-1},q=function(t){return Uw(t)&&!Wn(t)},Hw=function(t){return Z(t)},we=function(t){return q(t)||Kt(t)},Gw=0,Un=function(t){var r=++Gw;return"".concat(t||"").concat(r)},tt=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(!q(t)&&!Kt(t))return n;var a;if(Ft(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Wn(a)&&(a=n),i&&a>r&&(a=r),a},Pt=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Kw=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},Je=function(t,r){return q(t)&&q(r)?function(n){return t+n*(r-t)}:function(){return r}};function pi(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):He(n,t))===r})}var Xw=function(t,r){return q(t)&&q(r)?t-r:Kt(t)&&Kt(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function sr(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 Ls(e){"@babel/helpers - typeof";return Ls=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},Ls(e)}var Vw=["viewBox","children"],Yw=["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","colorRen
1dering","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"],yp=["points","pathLength"],Go={svg:Vw,polygon:yp,polyline:yp},ff=["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","onDrag
1Capture","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"],di=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(N.isValidElement(t)&&(n=t.props),!Rr(n))return null;var i={};return Object.keys(n).forEach(function(a){ff.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},Zw=function(t,r,n){return function(i){return t(r,n,i),null}},vi=function(t,r,n){if(!Rr(t)||Ls(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];ff.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=Zw(o,r,n))}),i},Jw=["children"],Qw=["children"];function mp(e,t){if(e==null)return{};var r=eO(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 eO(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Bs(e){"@babel/helpers - typeof";return Bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bs(e)}var gp={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"},dt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},bp=null,Ko=null,hf=function e(t){if(t===bp&&Array.isArray(Ko))return Ko;var r=[];return N.Children.forEach(t,function(n){Z(n)||(Bw.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Ko=r,bp=t,r};function Ge(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return dt(i)}):n=[dt(t)],hf(e).forEach(function(i){var a=He(i,"type.displayName")||He(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function qe(e,t){var r=Ge(e,t);return r&&r[0]}var xp=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!q(n)||n<=0||!q(i)||i<=0)},tO=["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"],rO=function(t){return t&&t.type&&Kt(t.type)&&tO.indexOf(t.type)>=0},nO=function(t){return t&&Bs(t)==="object"&&"clipDot"in t},iO=function(t,r,n,i){var a,o=(a=Go?.[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!V(t)&&(i&&o.includes(r)||Yw.includes(r))||n&&ff.includes(r)},J=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(N.isValidElement(t)&&(i=t.props),!Rr(i))return null;var a={};
vendor: 4,244 bytes, line 1
1return Object.keys(i).forEach(function(o){var u;iO((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},Fs=function e(t,r){if(t===r)return!0;var n=N.Children.count(t);if(n!==N.Children.count(r))return!1;if(n===0)return!0;if(n===1)return wp(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(!wp(a,o))return!1}return!0},wp=function(t,r){if(Z(t)&&Z(r))return!0;if(!Z(t)&&!Z(r)){var n=t.props||{},i=n.children,a=mp(n,Jw),o=r.props||{},u=o.children,c=mp(o,Qw);return i&&u?sr(a,c)&&Fs(i,u):!i&&!u?sr(a,c):!1}return!1},Op=function(t,r){var n=[],i={};return hf(t).forEach(function(a,o){if(rO(a))n.push(a);else if(a){var u=dt(a.type),c=r[u]||{},s=c.handler,f=c.once;if(s&&(!f||!i[u])){var l=s(a,u,o);n.push(l),i[u]=!0}}}),n},aO=function(t){var r=t&&t.type;return r&&gp[r]?gp[r]:null},oO=function(t,r){return hf(r).indexOf(t)},uO=["children","width","height","viewBox","className","style","title","desc"];function zs(){return zs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zs.apply(this,arguments)}function cO(e,t){if(e==null)return{};var r=sO(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 sO(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 Ws(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,c=e.desc,s=cO(e,uO),f=i||{width:r,height:n,x:0,y:0},l=ee("recharts-surface",a);return T.createElement("svg",zs({},J(s,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),T.createElement("title",null,u),T.createElement("desc",null,c),t)}var lO=["children","className"];function Us(){return Us=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},Us.apply(this,arguments)}function fO(e,t){if(e==null)return{};var r=hO(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 hO(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 pe=T.forwardRef(function(e,t){var r=e.children,n=e.className,i=fO(e,lO),a=ee("recharts-layer",n);return T.createElement("g",Us({className:a},J(i,!0),{ref:t}),r)}),vt=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]},Xo,_p;function pO(){if(_p)return Xo;_p=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 Xo=e,Xo}var Vo,Sp;function dO(){if(Sp)return Vo;Sp=1;var e=pO();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 Vo=t,Vo}var Yo,Ap;function rb(){if(Ap)return Yo;Ap=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 c(s){return u.test(s)}return Yo=c,Yo}var Zo,Pp;function vO(){if(Pp)return Zo;Pp=1;function e(t){return t.split("")}return Zo=e,Zo}var Jo,Tp;function yO(){if(Tp)return Jo;Tp=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+"]",c="\\ud83c[\\udffb-\\udfff]",s="(?:"+u+"|"+c+")",f="[^"+e+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",y=s+"?",v="["+a+"]?",d="(?:"+p+"(?:"+[f,l,h].join("|")+")"+v+y+")*",b=v+y+d,x="(?:"+[f+u+"?",u,l,h,o].join("|")+")",w=RegExp(c+"(?="+c+")|"+x+b,"g");function O(m){return m.match(w)||[]}return Jo=O,Jo}var Qo,Ep;function mO(){if(Ep)return Qo;Ep=1;
1var e=vO(),t=rb(),r=yO();function n(i){return t(i)?r(i):e(i)}return Qo=n,Qo}var eu,jp;function gO(){if(jp)return eu;jp=1;var e=dO(),t=rb(),r=mO(),n=Jg();function i(a){return function(o){o=n(o);var u=t(o)?r(o):void 0,c=u?u[0]:o.charAt(0),s=u?e(u,1).join(""):o.slice(1);return c[a]()+s}}return eu=i,eu}var tu,Mp;function bO(){if(Mp)return tu;Mp=1;var e=gO(),t=e("toUpperCase");return tu=t,tu}var xO=bO();const da=se(xO);function oe(e){return function(){return e}}const nb=Math.cos,yi=Math.sin,rt=Math.sqrt,mi=Math.PI,va=2*mi,Hs=Math.PI,Gs=2*Hs,Lt=1e-6,wO=Gs-Lt;function ib(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function OO(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return ib;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 _O{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?ib:OO(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,c=n-t,s=i-r,f=o-t,l=u-r,h=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>Lt)if(!(Math.abs(l*c-s*f)>Lt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,y=i-u,v=c*c+s*s,d=p*p+y*y,b=Math.sqrt(v),x=Math.sqrt(h),w=a*Math.tan((Hs-Math.acos((v+h-d)/(2*b*x)))/2),O=w/x,m=w/b;Math.abs(O-1)>Lt&&this._append`L${t+O*f},${r+O*l}`,this._append`A${a},${a},0,0,${+(l*p>f*y)},${this._x1=t+m*c},${this._y1=r+m*s}`}}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),c=n*Math.sin(i),s=t+u,f=r+c,l=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${s},${f}`:(Math.abs(this._x1-s)>Lt||Math.abs(this._y1-f)>Lt)&&this._append`L${s},${f}`,n&&(h<0&&(h=h%Gs+Gs),h>wO?this._append`A${n},${n},0,1,${l},${t-u},${r-c}A${n},${n},0,1,${l},${this._x1=s},${this._y1=f}`:h>Lt&&this._append`A${n},${n},0,${+(h>=Hs)},${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 pf(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 _O(t)}function df(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function ab(e){this._context=e}ab.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 ya(e){return new ab(e)}function ob(e){return e[0]}function ub(e){return e[1]}function cb(e,t){var r=oe(!0),n=null,i=ya,a=null,o=pf(u);e=typeof e=="function"?e:e===void 0?ob:oe(e),t=typeof t=="function"?t:t===void 0?ub:oe(t);function u(c){var s,f=(c=df(c)).length,l,h=!1,p;for(n==null&&(a=i(p=o())),s=0;s<=f;++s)!(s<f&&r(l=c[s],s,c))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(l,s,c),+t(l,s,c));if(p)return a=null,p+""||null}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:oe(+c),u):e},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:oe(+c),u):t},u.defined=function(c){return arguments.length?(r=typeof c=="function"?c:oe(!!c),u):r},u.curve=function(c){return arguments.length?(i=c,n!=null&&(a=i(n)),u):i},u.context=function(c){return arguments.length?(c==null?n=a=null:a=i(n=c),u):n},u}function ei(e,t,r){var n=null,i=oe(!0),a=null,o=ya,u=null,c=pf(s);e=typeof e=="function"?e:e===void 0?ob:oe(+e),t=typeof t=="function"?t:oe(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?ub:oe(+r);function s(l){var h,p,y,v=(l=df(l)).length,d,b=!1,x,w=new Array(v),O=new Array(v);for(a==null&&(u=o(x=c())),h=0;h<=v;++h){if(!(h<v&&i(d=l[h],h,l))===b)if(b=!b)p=h,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=h-1;y>=p;--y)u.point(w[y],O[y]);u.lineEnd(),u.areaEnd()}b&&(w[h]=+e(d,h,l),O[h]=+t(d,h,l),u.point(n?+n(d,h,l):w[h],r?+r(d,h,l):O[h]))}if(x)return u=null,x+""||null}function f(){return cb().defined(i).curve(o).context(a)}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:oe(+l),n=null,s):e},s.x0=function(l){return arguments.length?(e=typeof l=="function"?l:oe(+l),s):e},s.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:oe(+l),s):n},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:oe(+l),r=null,s):t},s.y0=function(l){return arguments.length?(t=typeof l=="function"?l:oe(+l),s):t},s.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:oe(+l),s):r},s.lineX0=s.lineY0=function(){return f().x(e).y(t)},s.lineY1=function(){return f().x(e).y(r)},s.lineX1=function(){return f().x(n).y(t)},s.defined=function(l){return arguments.length?(i=typeof l=="function"?l:oe(!!l),s):i},s.curve=function(l){return arguments.length?(o=l,a!=null&&(u=o(a)),s):o},s.context=function(l){return arguments.length?(l==null?a=u=null:u=o(a=l),s):a},s}class sb{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 SO(e){return new sb(e,!0)}function AO(e){return new sb(e,!1)}const vf={draw(e,t){const r=rt(t/mi);e.moveTo(r,0),e.arc(0,0,r,0,va)}},PO={draw(e,t){const r=rt(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()}},lb=rt(1/3),TO=lb*2,EO={draw(e,t){const r=rt(t/TO),n=r*lb;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},jO={draw(e,t){const r=rt(t),n=-r/2;e.rect(n,n,r,r)}},MO=.8908130915292852,fb=yi(mi/10)/yi(7*mi/10),CO=yi(va/10)*fb,$O=-nb(va/10)*fb,IO={draw(e,t){const r=rt(t*MO),n=CO*r,i=$O*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=va*a/5,u=nb(o),c=yi(o);e.lineTo(c*r,-u*r),e.lineTo(u*n-c*i,c*n+u*i)}e.closePath()}},ru=rt(3),DO={draw(e,t){const r=-rt(t/(ru*3));e.moveTo(0,r*2),e.lineTo(-ru*r,-r),e.lineTo(ru*r,-r),e.closePath()}},Fe=-.5,ze=rt(3)/2,Ks=1/rt(12),kO=(Ks/2+1)*3,RO={draw(e,t){const r=rt(t/kO),n=r/2,i=r*Ks,a=n,o=r*Ks+r,u=-a,c=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,c),e.lineTo(Fe*n-ze*i,ze*n+Fe*i),e.lineTo(Fe*a-ze*o,ze*a+Fe*o),e.lineTo(Fe*u-ze*c,ze*u+Fe*c),e.lineTo(Fe*n+ze*i,Fe*i-ze*n),e.lineTo(Fe*a+ze*o,Fe*o-ze*a),e.lineTo(Fe*u+ze*c,Fe*c-ze*u),e.closePath()}};function NO(e,t){let r=null,n=pf(i);e=typeof e=="function"?e:oe(e||vf),t=typeof t=="function"?t:oe(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:oe(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:oe(+a),i):t}
vendor: 6,361 bytes, line 1
1,i.context=function(a){return arguments.length?(r=a??null,i):r},i}function gi(){}function bi(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 hb(e){this._context=e}hb.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:bi(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:bi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function qO(e){return new hb(e)}function pb(e){this._context=e}pb.prototype={areaStart:gi,areaEnd:gi,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:bi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function LO(e){return new pb(e)}function db(e){this._context=e}db.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:bi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function BO(e){return new db(e)}function vb(e){this._context=e}vb.prototype={areaStart:gi,areaEnd:gi,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 FO(e){return new vb(e)}function Cp(e){return e<0?-1:1}function $p(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(Cp(a)+Cp(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function Ip(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function nu(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 xi(e){this._context=e}xi.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:nu(this,this._t0,Ip(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,nu(this,Ip(this,r=$p(this,e,t)),r);break;default:nu(this,this._t0,r=$p(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function yb(e){this._context=new mb(e)}(yb.prototype=Object.create(xi.prototype)).point=function(e,t){xi.prototype.point.call(this,t,e)};function mb(e){this._context=e}mb.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 zO(e){return new xi(e)}function WO(e){return new yb(e)}function gb(e){this._context=e}gb.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=Dp(e),i=Dp(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 Dp(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 UO(e){return new gb(e)}function ma(e,t){this._context=e,this._t=t}ma.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;
vendor: 16,273 bytes, lines 1-4
1default:{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 HO(e){return new ma(e,.5)}function GO(e){return new ma(e,0)}function KO(e){return new ma(e,1)}function pr(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 Xs(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function XO(e,t){return e[t]}function VO(e){const t=[];return t.key=e,t}function YO(){var e=oe([]),t=Xs,r=pr,n=XO;function i(a){var o=Array.from(e.apply(this,arguments),VO),u,c=o.length,s=-1,f;for(const l of a)for(u=0,++s;u<c;++u)(o[u][s]=[0,+n(l,o[u].key,s,a)]).data=l;for(u=0,f=df(t(o));u<c;++u)o[f[u]].index=u;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:oe(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:oe(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Xs:typeof a=="function"?a:oe(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??pr,i):r},i}function ZO(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}pr(e,t)}}function JO(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}pr(e,t)}}function QO(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,c=0,s=0;u<o;++u){for(var f=e[t[u]],l=f[n][1]||0,h=f[n-1][1]||0,p=(l-h)/2,y=0;y<u;++y){var v=e[t[y]],d=v[n][1]||0,b=v[n-1][1]||0;p+=d-b}c+=l,s+=p*l}i[n-1][1]+=i[n-1][0]=r,c&&(r-=s/c)}i[n-1][1]+=i[n-1][0]=r,pr(e,t)}}function un(e){"@babel/helpers - typeof";return un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},un(e)}var e1=["type","size","sizeType"];function Vs(){return Vs=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},Vs.apply(this,arguments)}function kp(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 Rp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kp(Object(r),!0).forEach(function(n){t1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function t1(e,t,r){return t=r1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r1(e){var t=n1(e,"string");return un(t)=="symbol"?t:t+""}function n1(e,t){if(un(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function i1(e,t){if(e==null)return{};var r=a1(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 a1(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 bb={symbolCircle:vf,symbolCross:PO,symbolDiamond:EO,symbolSquare:jO,symbolStar:IO,symbolTriangle:DO,symbolWye:RO},o1=Math.PI/180,u1=function(t){var r="symbol".concat(da(t));return bb[r]||vf},c1=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*o1;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}},s1=function(t,r){bb["symbol".concat(da(t))]=r},yf=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,c=i1(t,e1),s=Rp(Rp({},c),{},{type:n,size:a,sizeType:u}),f=function(){var d=u1(n),b=NO().type(d).size(c1(a,u,n));return b()},l=s.className,h=s.cx,p=s.cy,y=J(s,!0);return h===+h&&p===+p&&a===+a?T.createElement("path",Vs({},y,{className:ee("recharts-symbols",l),transform:"translate(".concat(h,", ").concat(p,")"),d:f()})):null};yf.registerSymbol=s1;function dr(e){"@babel/helpers - typeof";return dr=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},dr(e)}function Ys(){return Ys=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},Ys.apply(this,arguments)}function Np(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 l1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Np(Object(r),!0).forEach(function(n){cn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Np(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h1(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,wb(n.key),n)}}function p1(e,t,r){return t&&h1(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function d1(e,t,r){return t=wi(t),v1(e,xb()?Reflect.construct(t,r||[],wi(e).constructor):t.apply(e,r))}function v1(e,t){if(t&&(dr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y1(e)}function y1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xb=function(){return!!e})()}function wi(e){return wi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wi(e)}function m1(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&&Zs(e,t)}function Zs(e,t){return Zs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zs(e,t)}function cn(e,t,r){return t=wb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wb(e){var t=g1(e,"string");return dr(t)=="symbol"?t:t+""}function g1(e,t){if(dr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var We=32,mf=(function(e){function t(){return f1(this,t),d1(this,t,arguments)}return m1(t,e),p1(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=We/2,o=We/6,u=We/3,c=n.inactive?i:n.color;if(n.type==="plainline")return T.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:We,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return T.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(a,"h").concat(u,`
2            A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,`
3            H`).concat(We,"M").concat(2*u,",").concat(a,`
4            A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return T.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(We/8,"h").concat(We,"v").concat(We*3/4,"h").concat(-We,"z"),className:"recharts-legend-icon"});if(T.isValidElement(n.legendIcon)){var s=l1({},n);return delete s.legendIcon,T.cloneElement(n.legendIcon,s)}return T.createElement(yf,{fill:c,cx:a,cy:a,size:We,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,u=i.layout,c=i.formatter,s=i.inactiveColor,f={x:0,y:0,width:We,height:We},l={display:u==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,y){var v=p.formatter||c,d=ee(cn(cn({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",p.inactive));if(p.type==="none")return null;var b=V(p.value)?null:p.value;vt(!V(p.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 x=p.inactive?s:p.color;return T.createElement("li",Ys({className:d,style:l,key:"legend-item-".concat(y)},vi(n.props,p,y)),T.createElement(Ws,{width:o,height:o,viewBox:f,style:h},n.renderIcon(p)),T.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},v?v(b,p,y):b))})}},{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 T.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(N.PureComponent);cn(mf,"displayName","Legend");cn(mf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var iu,qp;function b1(){if(qp)return iu;qp=1;var e=fa();function t(){this.__data__=new e,this.size=0}return iu=t,iu}var au,Lp;function x1(){if(Lp)return au;Lp=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return au=e,au}var ou,Bp;function w1(){if(Bp)return ou;Bp=1;function e(t){return this.__data__.get(t)}return ou=e,ou}var uu,Fp;function O1(){if(Fp)return uu;Fp=1;function e(t){return this.__data__.has(t)}return uu=e,uu}var cu,zp;function _1(){if(zp)return cu;zp=1;var e=fa(),t=uf(),r=cf(),n=200;function i(a,o){var u=this.__data__;if(u instanceof e){var c=u.__data__;if(!t||c.length<n-1)return c.push([a,o]),this.size=++u.size,this;u=this.__data__=new r(c)}return u.set(a,o),this.size=u.size,this}return cu=i,cu}var su,Wp;function Ob(){if(Wp)return su;Wp=1;var e=fa(),t=b1(),r=x1(),n=w1(),i=O1(),a=_1();function o(u){var c=this.__data__=new e(u);this.size=c.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,su=o,su}var lu,Up;function S1(){if(Up)return lu;Up=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return lu=t,lu}var fu,Hp;function A1(){if(Hp)return fu;Hp=1;function e(t){return this.__data__.has(t)}return fu=e,fu}var hu,Gp;function _b(){if(Gp)return hu;Gp=1;var e=cf(),t=S1(),r=A1();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,hu=n,hu}var pu,Kp;function Sb(){if(Kp)return pu;Kp=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 pu=e,pu}var du,Xp;function Ab(){if(Xp)return du;Xp=1;function e(t,r){return t.has(r)}return du=e,du}var vu,Vp;function Pb(){if(Vp)return vu;Vp=1;var e=_b(),t=Sb(),r=Ab(),n=1,i=2;function a(o,u,c,s,f,l){var h=c&n,p=o.length,y=u.length;if(p!=y&&!(h&&y>p))return!1;var v=l.get(o),d=l.get(u);if(v&&d)return v==u&&d==o;var b=-1,x=!0,w=c&i?new e:void 0;for(l.set(o,u),l.set(u,o);++b<p;){var O=o[b],m=u[b];if(s)var g=h?s(m,O,b,u,o,l):s(O,m,b,o,u,l);if(g!==void 0){if(g)continue;x=!1;break}if(w){if(!t(u,function(_,S){if(!r(w,S)&&(O===_||f(O,_,c,s,l)))return w.push(S)})){x=!1;break}}else if(!(O===m||f(O,m,c,s,l))){x=!1;break}}return l.delete(o),l.delete(u),x}return vu=a,vu}var yu,Yp;function P1(){if(Yp)return yu;Yp=1;var e=ut(),t=e.Uint8Array;return yu=t,yu}var mu,Zp;function T1(){if(Zp)return mu;Zp=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return mu=e,mu}var gu,Jp;function gf(){if(Jp)return gu;Jp=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return gu=e,gu}var bu,Qp;function E1(){if(Qp)return bu;Qp=1;var e=zn(),t=P1(),r=of(),n=Pb(),i=T1(),a=gf(),o=1,u=2,c="[object Boolean]",s="[object Date]",f="[object Error]",l="[object Map]",h="[object Number]",p="[object RegExp]",y="[object Set]",v="[object String]",d="[object Symbol]",b="[object ArrayBuffer]",x="[object DataView]",w=e?e.prototype:void 0,O=w?w.valueOf:void 0;function m(g,_,S,P,M,A,E){switch(S){case x:if(g.byteLength!=_.byteLength||g.byteOffset!=_.byteOffset)return!1;g=g.buffer,_=_.buffer;case b:return!(g.byteLength!=_.byteLength||!A(new t(g),new t(_)));case c:case s:case h:return r(+g,+_);case f:return g.name==_.name&&g.message==_.message;case p:case v:return g==_+"";case l:var j=i;case y:var $=P&o;if(j||(j=a),g.size!=_.size&&!$)return!1;var C=E.get(g);if(C)return C==_;P|=u,E.set(g,_);var D=n(j(g),j(_),P,M,A,E);return E.delete(g),D;case d:if(O)return O.call(g)==O.call(_)}return!1}return bu=m,bu}var xu,ed;function Tb(){if(ed)return xu;ed=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 xu=e,xu}var wu,td;function j1(){if(td)return wu;td=1;var e=Tb(),t=De();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return wu=r,wu}var Ou,rd;function M1(){if(rd)return Ou;rd=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 Ou=e,Ou}var _u,nd;function C1(){if(nd)return _u;nd=1;function e(){return[]}return _u=e,_u}var Su,id;function $1(){if(id)return Su;id=1;var e=M1(),t=C1(),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 Su=a,Su}var Au,ad;function I1(){if(ad)return Au;ad=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Au=e,Au}var Pu,od;function D1(){if(od)return Pu;od=1;var e=wt(),t=Ot(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Pu=n,Pu}var Tu,ud;function bf(){if(ud)return Tu;ud=1;var e=D1(),t=Ot(),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 Tu=a,Tu}var Jr={exports:{}},Eu,cd;function k1(){if(cd)return Eu;cd=1;function e(){return!1}return Eu=e,Eu}Jr.exports;var sd;function Eb(){return sd||(sd=1,(function(e,t){var r=ut(),n=k1(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?r.Buffer:void 0,c=u?u.isBuffer:void 0,s=c||n;e.exports=s})(Jr,Jr.exports)),Jr.exports}var ju,ld;function xf(){if(ld)return ju;ld=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 ju=r,ju}var Mu,fd;function wf(){if(fd)return Mu;fd=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Mu=t,Mu}var Cu,hd;function R1(){if(hd)return Cu;hd=1;var e=wt(),t=wf(),r=Ot(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",c="[object Function]",s="[object Map]",f="[object Number]",l="[object Object]",h="[object RegExp]",p="[object Set]",y="[object String]",v="[object WeakMap]",d="[object ArrayBuffer]",b="[object DataView]",x="[object Float32Array]",w="[object Float64Array
4]",O="[object Int8Array]",m="[object Int16Array]",g="[object Int32Array]",_="[object Uint8Array]",S="[object Uint8ClampedArray]",P="[object Uint16Array]",M="[object Uint32Array]",A={};A[x]=A[w]=A[O]=A[m]=A[g]=A[_]=A[S]=A[P]=A[M]=!0,A[n]=A[i]=A[d]=A[a]=A[b]=A[o]=A[u]=A[c]=A[s]=A[f]=A[l]=A[h]=A[p]=A[y]=A[v]=!1;function E(j){return r(j)&&t(j.length)&&!!A[e(j)]}return Cu=E,Cu}var $u,pd;function jb(){if(pd)return $u;pd=1;function e(t){return function(r){return t(r)}}return $u=e,$u}var Qr={exports:{}};Qr.exports;var dd;function N1(){return dd||(dd=1,(function(e,t){var r=Vg(),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 c=i&&i.require&&i.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}})();e.exports=u})(Qr,Qr.exports)),Qr.exports}var Iu,vd;function Mb(){if(vd)return Iu;vd=1;var e=R1(),t=jb(),r=N1(),n=r&&r.isTypedArray,i=n?t(n):e;return Iu=i,Iu}var Du,yd;function q1(){if(yd)return Du;yd=1;var e=I1(),t=bf(),r=De(),n=Eb(),i=xf(),a=Mb(),o=Object.prototype,u=o.hasOwnProperty;
vendor: 3,427 bytes, line 4
4function c(s,f){var l=r(s),h=!l&&t(s),p=!l&&!h&&n(s),y=!l&&!h&&!p&&a(s),v=l||h||p||y,d=v?e(s.length,String):[],b=d.length;for(var x in s)(f||u.call(s,x))&&!(v&&(x=="length"||p&&(x=="offset"||x=="parent")||y&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||i(x,b)))&&d.push(x);return d}return Du=c,Du}var ku,md;function L1(){if(md)return ku;md=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return ku=t,ku}var Ru,gd;function Cb(){if(gd)return Ru;gd=1;function e(t,r){return function(n){return t(r(n))}}return Ru=e,Ru}var Nu,bd;function B1(){if(bd)return Nu;bd=1;var e=Cb(),t=e(Object.keys,Object);return Nu=t,Nu}var qu,xd;function F1(){if(xd)return qu;xd=1;var e=L1(),t=B1(),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 qu=i,qu}var Lu,wd;function Hn(){if(wd)return Lu;wd=1;var e=af(),t=wf();function r(n){return n!=null&&t(n.length)&&!e(n)}return Lu=r,Lu}var Bu,Od;function ga(){if(Od)return Bu;Od=1;var e=q1(),t=F1(),r=Hn();function n(i){return r(i)?e(i):t(i)}return Bu=n,Bu}var Fu,_d;function z1(){if(_d)return Fu;_d=1;var e=j1(),t=$1(),r=ga();function n(i){return e(i,r,t)}return Fu=n,Fu}var zu,Sd;function W1(){if(Sd)return zu;Sd=1;var e=z1(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u,c,s,f){var l=u&t,h=e(a),p=h.length,y=e(o),v=y.length;if(p!=v&&!l)return!1;for(var d=p;d--;){var b=h[d];if(!(l?b in o:n.call(o,b)))return!1}var x=f.get(a),w=f.get(o);if(x&&w)return x==o&&w==a;var O=!0;f.set(a,o),f.set(o,a);for(var m=l;++d<p;){b=h[d];var g=a[b],_=o[b];if(c)var S=l?c(_,g,b,o,a,f):c(g,_,b,a,o,f);if(!(S===void 0?g===_||s(g,_,u,c,f):S)){O=!1;break}m||(m=b=="constructor")}if(O&&!m){var P=a.constructor,M=o.constructor;P!=M&&"constructor"in a&&"constructor"in o&&!(typeof P=="function"&&P instanceof P&&typeof M=="function"&&M instanceof M)&&(O=!1)}return f.delete(a),f.delete(o),O}return zu=i,zu}var Wu,Ad;function U1(){if(Ad)return Wu;Ad=1;var e=Zt(),t=ut(),r=e(t,"DataView");return Wu=r,Wu}var Uu,Pd;function H1(){if(Pd)return Uu;Pd=1;var e=Zt(),t=ut(),r=e(t,"Promise");return Uu=r,Uu}var Hu,Td;function $b(){if(Td)return Hu;Td=1;var e=Zt(),t=ut(),r=e(t,"Set");return Hu=r,Hu}var Gu,Ed;function G1(){if(Ed)return Gu;Ed=1;var e=Zt(),t=ut(),r=e(t,"WeakMap");return Gu=r,Gu}var Ku,jd;function K1(){if(jd)return Ku;jd=1;var e=U1(),t=uf(),r=H1(),n=$b(),i=G1(),a=wt(),o=Yg(),u="[object Map]",c="[object Object]",s="[object Promise]",f="[object Set]",l="[object WeakMap]",h="[object DataView]",p=o(e),y=o(t),v=o(r),d=o(n),b=o(i),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=h||t&&x(new t)!=u||r&&x(r.resolve())!=s||n&&x(new n)!=f||i&&x(new i)!=l)&&(x=function(w){var O=a(w),m=O==c?w.constructor:void 0,g=m?o(m):"";if(g)switch(g){case p:return h;case y:return u;case v:return s;case d:return f;case b:return l}return O}),Ku=x,Ku}var Xu,Md;function X1(){if(Md)return Xu;Md=1;var e=Ob(),t=Pb(),r=E1(),n=W1(),i=K1(),a=De(),o=Eb(),u=Mb(),c=1,s="[object Arguments]",f="[object Array]",l="[object Object]",h=Object.prototype,p=h.hasOwnProperty;function y(v,d,b,x,w,O){var m=a(v),g=a(d),_=m?f:i(v),S=g?f:i(d);_=_==s?l:_,S=S==s?l:S;var P=_==l,M=S==l,A=_==S;if(A&&o(v)){if(!o(d))return!1;m=!0,P=!1}if(A&&!P)return O||(O=new e),m||u(v)?t(v,d,b,x,w,O):r(v,d,_,b,x,w,O);if(!(b&c)){var E=P&&p.call(v,"__wrapped__"),j=M&&p.call(d,"__wrapped__");
vendor: 5,020 bytes, line 4
4if(E||j){var $=E?v.value():v,C=j?d.value():d;return O||(O=new e),w($,C,b,x,O)}}return A?(O||(O=new e),n(v,d,b,x,w,O)):!1}return Xu=y,Xu}var Vu,Cd;function Of(){if(Cd)return Vu;Cd=1;var e=X1(),t=Ot();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 Vu=r,Vu}var Yu,$d;function V1(){if($d)return Yu;$d=1;var e=Ob(),t=Of(),r=1,n=2;function i(a,o,u,c){var s=u.length,f=s,l=!c;if(a==null)return!f;for(a=Object(a);s--;){var h=u[s];if(l&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++s<f;){h=u[s];var p=h[0],y=a[p],v=h[1];if(l&&h[2]){if(y===void 0&&!(p in a))return!1}else{var d=new e;if(c)var b=c(y,v,p,a,o,d);if(!(b===void 0?t(v,y,r|n,c,d):b))return!1}}return!0}return Yu=i,Yu}var Zu,Id;function Ib(){if(Id)return Zu;Id=1;var e=Mt();function t(r){return r===r&&!e(r)}return Zu=t,Zu}var Ju,Dd;function Y1(){if(Dd)return Ju;Dd=1;var e=Ib(),t=ga();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 Ju=r,Ju}var Qu,kd;function Db(){if(kd)return Qu;kd=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Qu=e,Qu}var ec,Rd;function Z1(){if(Rd)return ec;Rd=1;var e=V1(),t=Y1(),r=Db();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 ec=n,ec}var tc,Nd;function J1(){if(Nd)return tc;Nd=1;function e(t,r){return t!=null&&r in Object(t)}return tc=e,tc}var rc,qd;function Q1(){if(qd)return rc;qd=1;var e=Qg(),t=bf(),r=De(),n=xf(),i=wf(),a=pa();function o(u,c,s){c=e(c,u);for(var f=-1,l=c.length,h=!1;++f<l;){var p=a(c[f]);if(!(h=u!=null&&s(u,p)))break;u=u[p]}return h||++f!=l?h:(l=u==null?0:u.length,!!l&&i(l)&&n(p,l)&&(r(u)||t(u)))}return rc=o,rc}var nc,Ld;function e_(){if(Ld)return nc;Ld=1;var e=J1(),t=Q1();function r(n,i){return n!=null&&t(n,i,e)}return nc=r,nc}var ic,Bd;function t_(){if(Bd)return ic;Bd=1;var e=Of(),t=eb(),r=e_(),n=nf(),i=Ib(),a=Db(),o=pa(),u=1,c=2;function s(f,l){return n(f)&&i(l)?a(o(f),l):function(h){var p=t(h,f);return p===void 0&&p===l?r(h,f):e(l,p,u|c)}}return ic=s,ic}var ac,Fd;function Nr(){if(Fd)return ac;Fd=1;function e(t){return t}return ac=e,ac}var oc,zd;function r_(){if(zd)return oc;zd=1;function e(t){return function(r){return r?.[t]}}return oc=e,oc}var uc,Wd;function n_(){if(Wd)return uc;Wd=1;var e=lf();function t(r){return function(n){return e(n,r)}}return uc=t,uc}var cc,Ud;function i_(){if(Ud)return cc;Ud=1;var e=r_(),t=n_(),r=nf(),n=pa();function i(a){return r(a)?e(n(a)):t(a)}return cc=i,cc}var sc,Hd;function Ct(){if(Hd)return sc;Hd=1;var e=Z1(),t=t_(),r=Nr(),n=De(),i=i_();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 sc=a,sc}var lc,Gd;function kb(){if(Gd)return lc;Gd=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 lc=e,lc}var fc,Kd;function a_(){if(Kd)return fc;Kd=1;function e(t){return t!==t}return fc=e,fc}var hc,Xd;function o_(){if(Xd)return hc;Xd=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 hc=e,hc}var pc,Vd;function u_(){if(Vd)return pc;Vd=1;var e=kb(),t=a_(),r=o_();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return pc=n,pc}var dc,Yd;function c_(){if(Yd)return dc;Yd=1;var e=u_();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return dc=t,dc}var vc,Zd;function s_(){if(Zd)return vc;Zd=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 vc=e,vc}var yc,Jd;function l_(){if(Jd)return yc;Jd=1;function e(){}return yc=e,yc}var mc,Qd;function f_(){if(Qd)return mc;Qd=1;var e=$b(),t=l_(),r=gf(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return mc=i,mc}var gc,ev;function h_(){if(ev)return gc;ev=1;var e=_b(),t=c_(),r=s_(),n=Ab(),i=f_(),a=gf(),o=200;function u(c,s,f){var l=-1,h=t,p=c.length,y=!0,v=[],d=v;if(f)y=!1,h=r;else if(p>=o){var b=s?null:i(c);if(b)return a(b);y=!1,h=n,d=new e}else d=s?[]:v;e:for(;++l<p;){var x=c[l],w=s?s(x):x;if(x=f||x!==0?x:0,y&&w===w){for(var O=d.length;O--;)if(d[O]===w)continue e;s&&d.push(w),v.push(x)}else h(d,w,f)||(d!==v&&d.push(w),v.push(x))}return v}return gc=u,gc}var bc,tv;function p_(){if(tv)return bc;tv=1;var e=Ct(),t=h_();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return bc=r,bc}var d_=p_();const rv=se(d_);function Rb(e,t,r){return t===!0?rv(e,r):V(t)?rv(e,t):e}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)}var v_=["ref"];function nv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ct(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
4t%2?nv(Object(r),!0).forEach(function(n){ba(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function y_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iv(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,qb(n.key),n)}}function m_(e,t,r){return t&&iv(e.prototype,t),r&&iv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function g_(e,t,r){return t=Oi(t),b_(e,Nb()?Reflect.construct(t,r||[],Oi(e).constructor):t.apply(e,r))}function b_(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 x_(e)}function x_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Nb=function(){return!!e})()}
vendor: 37,755 bytes, lines 4-11
4function Oi(e){return Oi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Oi(e)}function w_(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&&Js(e,t)}function Js(e,t){return Js=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Js(e,t)}function ba(e,t,r){return t=qb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qb(e){var t=O_(e,"string");return vr(t)=="symbol"?t:t+""}function O_(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)}function __(e,t){if(e==null)return{};var r=S_(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 S_(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 A_(e){return e.value}function P_(e,t){if(T.isValidElement(e))return T.cloneElement(e,t);if(typeof e=="function")return T.createElement(e,t);t.ref;var r=__(t,v_);return T.createElement(mf,r)}var av=1,lr=(function(e){function t(){var r;y_(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=g_(this,t,[].concat(i)),ba(r,"lastBoundingBox",{width:-1,height:-1}),r}return w_(t,e),m_(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)>av||Math.abs(i.height-this.lastBoundingBox.height)>av)&&(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?ct({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,c=i.margin,s=i.chartWidth,f=i.chartHeight,l,h;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();l={left:((s||0)-p.width)/2}}else l=o==="right"?{right:c&&c.right||0}:{left:c&&c.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();h={top:((f||0)-y.height)/2}}else h=u==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return ct(ct({},l),h)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,c=i.wrapperStyle,s=i.payloadUniqBy,f=i.payload,l=ct(ct({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(c)),c);return T.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(p){n.wrapperNode=p}},P_(a,ct(ct({},this.props),{},{payload:Rb(f,s,A_)})))}}],[{key:"getWithHeight",value:function(n,i){var a=ct(ct({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&q(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(N.PureComponent);ba(lr,"displayName","Legend");ba(lr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var xc,ov;function T_(){if(ov)return xc;ov=1;var e=zn(),t=bf(),r=De(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return xc=i,xc}var wc,uv;function Lb(){if(uv)return wc;uv=1;var e=Tb(),t=T_();function r(n,i,a,o,u){var c=-1,s=n.length;for(a||(a=t),u||(u=[]);++c<s;){var f=n[c];i>0&&a(f)?i>1?r(f,i-1,a,o,u):e(u,f):o||(u[u.length]=f)}return u}return wc=r,wc}var Oc,cv;function E_(){if(cv)return Oc;cv=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),u=i(r),c=u.length;c--;){var s=u[t?c:++a];if(n(o[s],s,o)===!1)break}return r}}return Oc=e,Oc}var _c,sv;function j_(){if(sv)return _c;sv=1;var e=E_(),t=e();return _c=t,_c}var Sc,lv;function Bb(){if(lv)return Sc;lv=1;var e=j_(),t=ga();function r(n,i){return n&&e(n,i,t)}return Sc=r,Sc}var Ac,fv;function M_(){if(fv)return Ac;fv=1;var e=Hn();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,c=Object(i);(n?u--:++u<o)&&a(c[u],u,c)!==!1;);return i}}return Ac=t,Ac}var Pc,hv;function _f(){if(hv)return Pc;hv=1;var e=Bb(),t=M_(),r=t(e);return Pc=r,Pc}var Tc,pv;function Fb(){if(pv)return Tc;pv=1;var e=_f(),t=Hn();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(u,c,s){o[++a]=i(u,c,s)}),o}return Tc=r,Tc}var Ec,dv;function C_(){if(dv)return Ec;dv=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Ec=e,Ec}var jc,vv;function $_(){if(vv)return jc;vv=1;var e=kr();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,u=e(r),c=n!==void 0,s=n===null,f=n===n,l=e(n);if(!s&&!l&&!u&&r>n||u&&c&&f&&!s&&!l||a&&c&&f||!i&&f||!o)return 1;if(!a&&!u&&!l&&r<n||l&&i&&o&&!a&&!u||s&&i&&o||!c&&o||!f)return-1}return 0}return jc=t,jc}var Mc,yv;function I_(){if(yv)return Mc;yv=1;var e=$_();function t(r,n,i){for(var a=-1,o=r.criteria,u=n.criteria,c=o.length,s=i.length;++a<c;){var f=e(o[a],u[a]);if(f){if(a>=s)return f;var l=i[a];return f*(l=="desc"?-1:1)}}return r.index-n.index}return Mc=t,Mc}var Cc,mv;function D_(){if(mv)return Cc;mv=1;var e=sf(),t=lf(),r=Ct(),n=Fb(),i=C_(),a=jb(),o=I_(),u=Nr(),c=De();function s(f,l,h){l.length?l=e(l,function(v){return c(v)?function(d){return t(d,v.length===1?v[0]:v)}:v}):l=[u];var p=-1;l=e(l,a(r));var y=n(f,function(v,d,b){var x=e(l,function(w){return w(v)});return{criteria:x,index:++p,value:v}});return i(y,function(v,d){return o(v,d,h)})}return Cc=s,Cc}var $c,gv;function k_(){if(gv)return $c;gv=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 $c=e,$c}var Ic,bv;function R_(){if(bv)return Ic;bv=1;var e=k_(),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,c=t(o.length-i,0),s=Array(c);++u<c;)s[u]=o[i+u];u=-1;for(var f=Array(i+1);++u<i;)f[u]=o[u];return f[i]=a(s),e(n,this,f)}}return Ic=r,Ic}var Dc,xv;function N_(){if(xv)return Dc;xv=1;function e(t){return function(){return t}}return Dc=e,Dc}var kc,wv;function zb(){if(wv)return kc;wv=1;var e=Zt(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return kc=t,kc}var Rc,Ov;function q_(){if(Ov)return Rc;Ov=1;var e=N_(),t=zb(),r=Nr(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Rc=n,Rc}var Nc,_v;function L_(){if(_v)return Nc;_v=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var u=r(),c=t-(u-o);if(o=u,c>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return Nc=n,Nc}var qc,Sv;function B_(){if(Sv)return qc;Sv=1;var e=q_(),t=L_(),r=t(e);return qc=r,qc}var Lc,Av;function F_(){if(Av)return Lc;Av=1;var e=Nr(),t=R_(),r=B_();function n(i,a){return r(t(i,a,e),i+"")}return Lc=n,Lc}var Bc,Pv;function xa(){if(Pv)return Bc;Pv=1;var e=of(),t=Hn(),r=xf(),n=Mt();function i(a,o,u){if(!n(u))return!1;var c=typeof o;return(c=="number"?t(u)&&r(o,u.length):c=="string"&&o in u)?e(u[o],a):!1}return Bc=i,Bc}var Fc,Tv;function z_(){if(Tv)return Fc;Tv=1;var e=Lb(),t=D_(),r=F_(),n=xa(),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 Fc=i,Fc}var W_=z_();const Sf=se(W_);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 Qs(){return Qs=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},Qs.apply(this,arguments)}function U_(e,t){return X_(e)||K_(e,t)||G_(e,t)||H_()}function H_(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
5In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G_(e,t){if(e){if(typeof e=="string")return Ev(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 Ev(e,t)}}function Ev(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 K_(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function X_(e){if(Array.isArray(e))return e}function jv(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 zc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jv(Object(r),!0).forEach(function(n){V_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function V_(e,t,r){return t=Y_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y_(e){var t=Z_(e,"string");return sn(t)=="symbol"?t:t+""}function Z_(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(t==="string"?String:Number)(e)}function J_(e){return Array.isArray(e)&&we(e[0])&&we(e[1])?e.join(" ~ "):e}var Q_=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,c=t.labelStyle,s=c===void 0?{}:c,f=t.payload,l=t.formatter,h=t.itemSorter,p=t.wrapperClassName,y=t.labelClassName,v=t.label,d=t.labelFormatter,b=t.accessibilityLayer,x=b===void 0?!1:b,w=function(){if(f&&f.length){var E={padding:0,margin:0},j=(h?Sf(f,h):f).map(function($,C){if($.type==="none")return null;var D=zc({display:"block",paddingTop:4,paddingBottom:4,color:$.color||"#000"},u),k=$.formatter||l||J_,L=$.value,B=$.name,U=L,G=B;if(k&&U!=null&&G!=null){var z=k(L,B,$,C,f);if(Array.isArray(z)){var K=U_(z,2);U=K[0],G=K[1]}else U=z}return T.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(C),style:D},we(G)?T.createElement("span",{className:"recharts-tooltip-item-name"},G):null,we(G)?T.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,T.createElement("span",{className:"recharts-tooltip-item-value"},U),T.createElement("span",{className:"recharts-tooltip-item-unit"},$.unit||""))});return T.createElement("ul",{className:"recharts-tooltip-item-list",style:E},j)}return null},O=zc({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),m=zc({margin:0},s),g=!Z(v),_=g?v:"",S=ee("recharts-default-tooltip",p),P=ee("recharts-tooltip-label",y);g&&d&&f!==void 0&&f!==null&&(_=d(v,f));var M=x?{role:"status","aria-live":"assertive"}:{};return T.createElement("div",Qs({className:S,style:O},M),T.createElement("p",{className:P,style:m},T.isValidElement(_)?_:"".concat(_)),w())};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 ti(e,t,r){return t=eS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eS(e){var t=tS(e,"string");return ln(t)=="symbol"?t:t+""}function tS(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(t==="string"?String:Number)(e)}var Wr="recharts-tooltip-wrapper",rS={visibility:"hidden"};function nS(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return ee(Wr,ti(ti(ti(ti({},"".concat(Wr,"-right"),q(r)&&t&&q(t.x)&&r>=t.x),"".concat(Wr,"-left"),q(r)&&t&&q(t.x)&&r<t.x),"".concat(Wr,"-bottom"),q(n)&&t&&q(t.y)&&n>=t.y),"".concat(Wr,"-top"),q(n)&&t&&q(t.y)&&n<t.y))}function Mv(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,u=e.tooltipDimension,c=e.viewBox,s=e.viewBoxDimension;if(a&&q(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 h=f,p=c[n];return h<p?Math.max(l,c[n]):Math.max(f,c[n])}var y=l+u,v=c[n]+s;return y>v?Math.max(f,c[n]):Math.max(l,c[n])}function iS(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 aS(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,c=e.viewBox,s,f,l;return o.height>0&&o.width>0&&r?(f=Mv({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),l=Mv({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),s=iS({translateX:f,translateY:l,useTranslate3d:u})):s=rS,{cssProperties:s,cssClasses:nS({translateX:f,translateY:l,coordinate:r})}}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 Cv(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 $v(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cv(Object(r),!0).forEach(function(n){tl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uS(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,Ub(n.key),n)}}function cS(e,t,r){return t&&uS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sS(e,t,r){return t=_i(t),lS(e,Wb()?Reflect.construct(t,r||[],_i(e).constructor):t.apply(e,r))}function lS(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 fS(e)}function fS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Wb=function(){return!!e})()}function _i(e){return _i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_i(e)}function hS(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&&el(e,t)}function el(e,t){return el=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},el(e,t)}function tl(e,t,r){return t=Ub(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ub(e){var t=pS(e,"string");return yr(t)=="symbol"?t:t+""}function pS(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 Iv=1,dS=(function(e){function t(){var r;oS(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=sS(this,t,[].concat(i)),tl(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),tl(r,"handleKeyDown",function(o){if(o.key==="Escape"){var u,c,s,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(c=r.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&u!==void 0?u:0,y:(s=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&s!==void 0?s:0}})}}),r}return hS(t,e),cS(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Iv||Math.abs(n.height-this.state.lastBoundingBox.height)>Iv)&&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,c=i.animationEasing,s=i.children,f=i.coordinate,l=i.hasPayload,h=i.isAnimationActive,p=i.offset,y=i.position,v=i.reverseDirection,d=i.useTranslate3d,b=i.viewBox,x=i.wrapperStyle,w=aS({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:y,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:d,viewBox:b}),O=w.cssClasses,m=w.cssProperties,g=$v($v({transition:h&&a?"transform ".concat(u,"ms ").concat(c):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},x);return T.createElement("div",{tabIndex:-1,className:O,style:g,ref:function(S){n.wrapperNode=S}},s)}}])})(N.PureComponent),vS=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},qr={isSsr:vS()};function mr(e){"@babel/helpers - typeof";return mr=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},mr(e)}function Dv(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 kv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dv(Object(r),!0).forEach(function(n){Af(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mS(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,Gb(n.key),n)}}function gS(e,t,r){return t&&mS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bS(e,t,r){return t=Si(t),xS(e,Hb()?Reflect.construct(t,r||[],Si(e).constructor):t.apply(e,r))}function xS(e,t){if(t&&(mr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wS(e)}function wS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hb=function(){return!!e})()}function Si(e){return Si=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Si(e)}function OS(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&&rl(e,t)}function rl(e,t){return rl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},rl(e,t)}function Af(e,t,r){return t=Gb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gb(e){var t=_S(e,"string");return mr(t)=="symbol"?t:t+""}function _S(e,t){if(mr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function SS(e){return e.dataKey}function AS(e,t){return T.isValidElement(e)?T.cloneElement(e,t):typeof e=="function"?T.createElement(e,t):T.createElement(Q_,t)}var st=(function(e){function t(){return yS(this,t),bS(this,t,arguments)}return OS(t,e),gS(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,c=i.animationEasing,s=i.content,f=i.coordinate,l=i.filterNull,h=i.isAnimationActive,p=i.offset,y=i.payload,v=i.payloadUniqBy,d=i.position,b=i.reverseDirection,x=i.useTranslate3d,w=i.viewBox,O=i.wrapperStyle,m=y??[];l&&m.length&&(m=Rb(y.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),v,SS));var g=m.length>0;return T.createElement(dS,{allowEscapeViewBox:o,animationDuration:u,animationEasing:c,isAnimationActive:h,active:a,coordinate:f,hasPayload:g,offset:p,position:d,reverseDirection:b,useTranslate3d:x,viewBox:w,wrapperStyle:O},AS(s,kv(kv({},this.props),{},{payload:m})))}}])})(N.PureComponent);Af(st,"displayName","Tooltip");Af(st,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!qr.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 Wc,Rv;function PS(){if(Rv)return Wc;Rv=1;var e=ut(),t=function(){return e.Date.now()};return Wc=t,Wc}var Uc,Nv;function TS(){if(Nv)return Uc;Nv=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Uc=t,Uc}var Hc,qv;function ES(){if(qv)return Hc;qv=1;var e=TS(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Hc=r,Hc}var Gc,Lv;function Kb(){if(Lv)return Gc;Lv=1;var e=ES(),t=Mt(),r=kr(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function c(s){if(typeof s=="number")return s;if(r(s))return n;if(t(s)){var f=typeof s.valueOf=="function"?s.valueOf():s;s=t(f)?f+"":f}if(typeof s!="string")return s===0?s:+s;s=e(s);var l=a.test(s);return l||o.test(s)?u(s.slice(2),l?2:8):i.test(s)?n:+s}return Gc=c,Gc}var Kc,Bv;function jS(){if(Bv)return Kc;Bv=1;var e=Mt(),t=PS(),r=Kb(),n="Expected a function",i=Math.max,a=Math.min;function o(u,c,s){var f,l,h,p,y,v,d=0,b=!1,x=!1,w=!0;if(typeof u!="function")throw new TypeError(n);c=r(c)||0,e(s)&&(b=!!s.leading,x="maxWait"in s,h=x?i(r(s.maxWait)||0,c):h,w="trailing"in s?!!s.trailing:w);function O(j){var $=f,C=l;return f=l=void 0,d=j,p=u.apply(C,$),p}function m(j){return d=j,y=setTimeout(S,c),b?O(j):p}function g(j){var $=j-v,C=j-d,D=c-$;return x?a(D,h-C):D}function _(j){var $=j-v,C=j-d;return v===void 0||$>=c||$<0||x&&C>=h}function S(){var j=t();if(_(j))return P(j);y=setTimeout(S,g(j))}function P(j){return y=void 0,w&&f?O(j):(f=l=void 0,p)}function M(){y!==void 0&&clearTimeout(y),d=0,f=v=l=y=void 0}function A(){return y===void 0?p:P(t())}function E(){var j=t(),$=_(j);if(f=arguments,l=this,v=j,$){if(y===void 0)return m(v);if(x)return clearTimeout(y),y=setTimeout(S,c),O(v)}return y===void 0&&(y=setTimeout(S,c)),p}return E.cancel=M,E.flush=A,E}return Kc=o,Kc}var Xc,Fv;function MS(){if(Fv)return Xc;Fv=1;var e=jS(),t=Mt(),r="Expected a function";function n(i,a,o){var u=!0,c=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(u="leading"in o?!!o.leading:u,c="trailing"in o?!!o.trailing:c),e(i,a,{leading:u,maxWait:a,trailing:c})}return Xc=n,Xc}var CS=MS();const Xb=se(CS);function fn(e){"@babel/helpers - typeof";return fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fn(e)}function zv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ri(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zv(Object(r),!0).forEach(function(n){$S(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $S(e,t,r){return t=IS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IS(e){var t=DS(e,"string");return fn(t)=="symbol"?t:t+""}function DS(e,t){if(fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kS(e,t){return LS(e)||qS(e,t)||NS(e,t)||RS()}function RS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
6In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NS(e,t){if(e){if(typeof e=="string")return Wv(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 Wv(e,t)}}function Wv(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 qS(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function LS(e){if(Array.isArray(e))return e}var eN=N.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,c=u===void 0?"100%":u,s=e.minWidth,f=s===void 0?0:s,l=e.minHeight,h=e.maxHeight,p=e.children,y=e.debounce,v=y===void 0?0:y,d=e.id,b=e.className,x=e.onResize,w=e.style,O=w===void 0?{}:w,m=N.useRef(null),g=N.useRef();g.current=x,N.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 _=N.useState({containerWidth:i.width,containerHeight:i.height}),S=kS(_,2),P=S[0],M=S[1],A=N.useCallback(function(j,$){M(function(C){var D=Math.round(j),k=Math.round($);return C.containerWidth===D&&C.containerHeight===k?C:{containerWidth:D,containerHeight:k}})},[]);N.useEffect(function(){var j=function(B){var U,G=B[0].contentRect,z=G.width,K=G.height;A(z,K),(U=g.current)===null||U===void 0||U.call(g,z,K)};v>0&&(j=Xb(j,v,{trailing:!0,leading:!1}));var $=new ResizeObserver(j),C=m.current.getBoundingClientRect(),D=C.width,k=C.height;return A(D,k),$.observe(m.current),function(){$.disconnect()}},[A,v]);var E=N.useMemo(function(){var j=P.containerWidth,$=P.containerHeight;if(j<0||$<0)return null;vt(Ft(o)||Ft(c),`The width(%s) and height(%s) are both fixed numbers,
7       maybe you don't need to use a ResponsiveContainer.`,o,c),vt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var C=Ft(o)?j:o,D=Ft(c)?$:c;r&&r>0&&(C?D=C/r:D&&(C=D*r),h&&D>h&&(D=h)),vt(C>0||D>0,`The width(%s) and height(%s) of chart should be greater than 0,
8       please check the style of container, or the props width(%s) and height(%s),
9       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
10       height and width.`,C,D,o,c,f,l,r);var k=!Array.isArray(p)&&dt(p.type).endsWith("Chart");return T.Children.map(p,function(L){return T.isValidElement(L)?N.cloneElement(L,ri({width:C,height:D},k?{style:ri({height:"100%",width:"100%",maxHeight:D,maxWidth:C},L.props.style)}:{})):L})},[r,p,c,h,l,f,P,o]);return T.createElement("div",{id:d?"".concat(d):void 0,className:ee("recharts-responsive-container",b),style:ri(ri({},O),{},{width:o,height:c,minWidth:f,minHeight:l,maxHeight:h}),ref:m},E)}),Vb=function(t){return null};Vb.displayName="Cell";function hn(e){"@babel/helpers - typeof";return hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hn(e)}function Uv(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 nl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Uv(Object(r),!0).forEach(function(n){BS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BS(e,t,r){return t=FS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FS(e){var t=zS(e,"string");return hn(t)=="symbol"?t:t+""}function zS(e,t){if(hn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rr={widthCache:{},cacheCount:0},WS=2e3,US={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Hv="recharts_measurement_span";function HS(e){var t=nl({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var tn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||qr.isSsr)return{width:0,height:0};var n=HS(r),i=JSON.stringify({text:t,copyStyle:n});if(rr.widthCache[i])return rr.widthCache[i];try{var a=document.getElementById(Hv);a||(a=document.createElement("span"),a.setAttribute("id",Hv),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=nl(nl({},US),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),c={width:u.width,height:u.height};return rr.widthCache[i]=c,++rr.cacheCount>WS&&(rr.cacheCount=0,rr.widthCache={}),c}catch{return{width:0,height:0}}},GS=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 Ai(e,t){return YS(e)||VS(e,t)||XS(e,t)||KS()}function KS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
11In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XS(e,t){if(e){if(typeof e=="string")return Gv(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 Gv(e,t)}}function Gv(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 VS(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function YS(e){if(Array.isArray(e))return e}function ZS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kv(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,QS(n.key),n)}}function JS(e,t,r){return t&&Kv(e.prototype,t),r&&Kv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function QS(e){var t=eA(e,"string");return pn(t)=="symbol"?t:t+""}function eA(e,t){if(pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Xv=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Vv=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,tA=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,rA=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Yb={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},nA=Object.keys(Yb),or="NaN";function iA(e,t){return e*Yb[t]}var ni=(function(){function e(t,r){ZS(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!tA.test(r)&&(this.num=NaN,this.unit=""),nA.includes(r)&&(this.num=iA(t,r),this.unit="px")}return JS(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=rA.exec(r))!==null&&n!==void 0?n:[],a=Ai(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])})();function Zb(e){if(e.includes(or))return or;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=Xv.exec(t))!==null&&r!==void 0?r:[],i=Ai(n,4),a=i[1],o=i[2],u=i[3],c=ni.parse(a??""),s=ni.parse(u??""),f=o==="*"?c.multiply(s):c.divide(s);if(f.isNaN())return or;t=t.replace(Xv,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,h=(l=Vv.exec(t))!==null&&l!==void 0?l:[],p=Ai(h,4),y=p[1],v=p[2],d=p[3],b=ni.parse(y??""),x=ni.parse(d??""),w=v==="+"?b.add(x):b.subtract(x);if(w.isNaN())return or;t=t.replace(Vv,w.toString())}return t}var Yv=/\(([^()]*)\)/;function aA(e){for(var t=e;t.includes("(");){var r=Yv.exec(t),n=Ai(r,2),i=n[1];t=t.replace(Yv,Zb(i))}return t}function oA(e){var t=e.replace(/\s+/g,"");return t=aA(t),t=Zb(t),t}function uA(e){try{return oA(e)}catch{return or}}function Vc(e){var t=uA(e.slice(5,-1));return t===or?"":t}var cA=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],sA=["dx","dy","angle","className","breakAll"];function il(){return il=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
11for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},il.apply(this,arguments)}function Zv(e,t){if(e==null)return{};var r=lA(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 lA(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 Jv(e,t){return dA(e)||pA(e,t)||hA(e,t)||fA()}function fA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
12In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hA(e,t){if(e){if(typeof e=="string")return Qv(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 Qv(e,t)}}function Qv(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 pA(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function dA(e){if(Array.isArray(e))return e}var Jb=/[ \f\n\r\t\v\u2028\u2029]+/,Qb=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];Z(r)||(n?a=r.toString().split(""):a=r.toString().split(Jb));var o=a.map(function(c){return{word:c,width:tn(c,i).width}}),u=n?0:tn(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},vA=function(t,r,n,i,a){var o=t.maxLines,u=t.children,c=t.style,s=t.breakAll,f=q(o),l=u,h=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return C.reduce(function(D,k){var L=k.word,B=k.width,U=D[D.length-1];if(U&&(i==null||a||U.width+B+n<Number(i)))U.words.push(L),U.width+=B+n;else{var G={words:[L],width:B};D.push(G)}return D},[])},p=h(r),y=function(C){return C.reduce(function(D,k){return D.width>k.width?D:k})};if(!f)return p;for(var v="…",d=function(C){var D=l.slice(0,C),k=Qb({breakAll:s,style:c,children:D+v}).wordsWithComputedWidth,L=h(k),B=L.length>o||y(L).width>Number(i);return[B,L]},b=0,x=l.length-1,w=0,O;b<=x&&w<=l.length-1;){var m=Math.floor((b+x)/2),g=m-1,_=d(g),S=Jv(_,2),P=S[0],M=S[1],A=d(m),E=Jv(A,1),j=E[0];if(!P&&!j&&(b=m+1),P&&j&&(x=m-1),!P&&j){O=M;break}w++}return O||p},ey=function(t){var r=Z(t)?[]:t.toString().split(Jb);return[{words:r}]},yA=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!qr.isSsr){var c,s,f=Qb({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,h=f.spaceWidth;c=l,s=h}else return ey(i);return vA({breakAll:o,children:i,maxLines:u,style:a},c,s,r,n)}return ey(i)},ty="#808080",Pi=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,c=t.capHeight,s=c===void 0?"0.71em":c,f=t.scaleToFit,l=f===void 0?!1:f,h=t.textAnchor,p=h===void 0?"start":h,y=t.verticalAnchor,v=y===void 0?"end":y,d=t.fill,b=d===void 0?ty:d,x=Zv(t,cA),w=N.useMemo(function(){return yA({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:l,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,l,x.style,x.width]),O=x.dx,m=x.dy,g=x.angle,_=x.className,S=x.breakAll,P=Zv(x,sA);if(!we(n)||!we(a))return null;var M=n+(q(O)?O:0),A=a+(q(m)?m:0),E;switch(v){case"start":E=Vc("calc(".concat(s,")"));break;case"middle":E=Vc("calc(".concat((w.length-1)/2," * -").concat(u," + (").concat(s," / 2))"));break;default:E=Vc("calc(".concat(w.length-1," * -").concat(u,")"));break}var j=[];if(l){var $=w[0].width,C=x.width;j.push("scale(".concat((q(C)?C/$:1)/$,")"))}return g&&j.push("rotate(".concat(g,", ").concat(M,", ").concat(A,")")),j.length&&(P.transform=j.join(" ")),T.createElement("text",il({},J(P,!0),{x:M,y:A,className:ee("recharts-text",_),textAnchor:p,fill:b.includes("url")?ty:b}),w.map(function(D,k){var L=D.words.join(S?"":" ");return T.createElement("tspan",{x:M,dy:k===0?E:u,key:"".concat(L,"-").concat(k)},L)}))};function Et(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function mA(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Pf(e){let t,r,n;e.length!==2?(t=Et,r=(u,c)=>Et(e(u),c),n=(u,c)=>e(u)-c):(t=e===Et||e===mA?e:gA,r=e,n=e);function i(u,c,s=0,f=u.length){if(s<f){if(t(c,c)!==0)return f;do{const l=s+f>>>1;r(u[l],c)<0?s=l+1:f=l}while(s<f)}return s}function a(u,c,s=0,f=u.length){if(s<f){if(t(c,c)!==0)return f;do{const l=s+f>>>1;r(u[l],c)<=0?s=l+1:f=l}while(s<f)}return s}function o(u,c,s=0,f=u.length){const l=i(u,c,s,f-1);return l>s&&n(u[l-1],c)>-n(u[l],c)?l-1:l}return{left:i,center:o,right:a}}function gA(){return 0}function e0(e){return e===null?NaN:+e}function*bA(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const xA=Pf(Et),Gn=xA.right;Pf(e0).center;class ry extends Map{constructor(t,r=_A){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(ny(this,t))}has(t){return super.has(ny(this,t))}set(t,r){return super.set(wA(this,t),r)}delete(t){return super.delete(OA(this,t))}}function ny({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function wA({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function OA({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function _A(e){return e!==null&&typeof e=="object"?e.valueOf():e}function SA(e=Et){if(e===Et)return t0;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 t0(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const AA=Math.sqrt(50),PA=Math.sqrt(10),TA=Math.sqrt(2);function Ti(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>=AA?10:a>=PA?5:a>=TA?2:1;let u,c,s;return i<0?(s=Math.pow(10,-i)/o,u=Math.round(e*s),c=Math.round(t*s),u/s<e&&++u,c/s>t&&--c,s=-s):(s=Math.pow(10,i)*o,u=Math.round(e/s),c=Math.round(t/s),u*s<e&&++u,c*s>t&&--c),c<u&&.5<=r&&r<2?Ti(e,t,r*2):[u,c,s]}function al(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?Ti(t,e,r):Ti(e,t,r);if(!(a>=i))return[];const u=a-i+1,c=new Array(u);if(n)if(o<0)for(let s=0;s<u;++s)c[s]=(a-s)/-o;else for(let s=0;s<u;++s)c[s]=(a-s)*o;else if(o<0)for(let s=0;s<u;++s)c[s]=(i+s)/-o;else for(let s=0;s<u;++s)c[s]=(i+s)*o;return c}function ol(e,t,r){return t=+t,e=+e,r=+r,Ti(e,t,r)[2]}function ul(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?ol(t,e,r):ol(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function iy(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function ay(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}
12function r0(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?t0:SA(i);n>r;){if(n-r>600){const c=n-r+1,s=t-r+1,f=Math.log(c),l=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*l*(c-l)/c)*(s-c/2<0?-1:1),p=Math.max(r,Math.floor(t-s*l/c+h)),y=Math.min(n,Math.floor(t+(c-s)*l/c+h));r0(e,t,p,y,i)}const a=e[t];let o=r,u=n;for(Ur(e,r,t),i(e[n],a)>0&&Ur(e,r,n);o<u;){for(Ur(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?Ur(e,r,u):(++u,Ur(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function Ur(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function EA(e,t,r){if(e=Float64Array.from(bA(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return ay(e);if(t>=1)return iy(e);var n,i=(n-1)*t,a=Math.floor(i),o=iy(r0(e,a).subarray(0,a+1)),u=ay(e.subarray(a+1));return o+(u-o)*(i-a)}}function jA(e,t,r=e0){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 MA(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 Xe(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function _t(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 cl=Symbol("implicit");function Tf(){var e=new ry,t=[],r=[],n=cl;function i(a){let o=e.get(a);if(o===void 0){if(n!==cl)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 ry;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 Tf(t,r).unknown(n)},Xe.apply(i,arguments),i}function dn(){var e=Tf().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,c=0,s=0,f=.5;delete e.unknown;function l(){var h=t().length,p=i<n,y=p?i:n,v=p?n:i;a=(v-y)/Math.max(1,h-c+s*2),u&&(a=Math.floor(a)),y+=(v-y-a*(h-c))*f,o=a*(1-c),u&&(y=Math.round(y),o=Math.round(o));var d=MA(h).map(function(b){return y+a*b});return r(p?d.reverse():d)}return e.domain=function(h){return arguments.length?(t(h),l()):t()},e.range=function(h){return arguments.length?([n,i]=h,n=+n,i=+i,l()):[n,i]},e.rangeRound=function(h){return[n,i]=h,n=+n,i=+i,u=!0,l()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(u=!!h,l()):u},e.padding=function(h){return arguments.length?(c=Math.min(1,s=+h),l()):c},e.paddingInner=function(h){return arguments.length?(c=Math.min(1,h),l()):c},e.paddingOuter=function(h){return arguments.length?(s=+h,l()):s},e.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),l()):f},e.copy=function(){return dn(t(),[n,i]).round(u).paddingInner(c).paddingOuter(s).align(f)},Xe.apply(l(),arguments)}function n0(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return n0(t())},e}function rn(){return n0(dn.apply(null,arguments).paddingInner(1))}function Ef(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function i0(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Kn(){}var vn=.7,Ei=1/vn,fr="\\s*([+-]?\\d+)\\s*",yn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",it="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",CA=/^#([0-9a-f]{3,8})$/,$A=new RegExp(`^rgb\\(${fr},${fr},${fr}\\)$`),IA=new RegExp(`^rgb\\(${it},${it},${it}\\)$`),DA=new RegExp(`^rgba\\(${fr},${fr},${fr},${yn}\\)$`),kA=new RegExp(`^rgba\\(${it},${it},${it},${yn}\\)$`),RA=new RegExp(`^hsl\\(${yn},${it},${it}\\)$`),NA=new RegExp(`^hsla\\(${yn},${it},${it},${yn}\\)$`),oy={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};Ef(Kn,mn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:uy,formatHex:uy,formatHex8:qA,formatHsl:LA,formatRgb:cy,toString:cy});function uy(){return this.rgb().formatHex()}function qA(){return this.rgb().formatHex8()}function LA(){return a0(this).formatHsl()}function cy(){return this.rgb().formatRgb()}function mn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=CA.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?sy(t):r===3?new Ie(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?ii(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?ii(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=$A.exec(e))?new Ie(t[1],t[2],t[3],1):(t=IA.exec(e))?new Ie(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=DA.exec(e))?ii(t[1],t[2],t[3],t[4]):(t=kA.exec(e))?ii(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=RA.exec(e))?hy(t[1],t[2]/100,t[3]/100,1):(t=NA.exec(e))?hy(t[1],t[2]/100,t[3]/100,t[4]):oy.hasOwnProperty(e)?sy(oy[e]):e==="transparent"?new Ie(NaN,NaN,NaN,0):null}function sy(e){return new Ie(e>>16&255,e>>8&255,e&255,1)}function ii(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ie(e,t,r,n)}function BA(e){return e instanceof Kn||(e=mn(e)),e?(e=e.rgb(),new Ie(e.r,e.g,e.b,e.opacity)):new Ie}function sl(e,t,r,n){return arguments.length===1?BA(e):new Ie(e,t,r,n??1)}function Ie(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Ef(Ie,sl,i0(Kn,{brighter(e){return e=e==null?Ei:Math.pow(Ei,e),new Ie(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?vn:Math.pow(vn,e),new Ie(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ie(Ht(this.r),Ht(this.g),Ht(this.b),ji(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:ly,formatHex:ly,formatHex8:FA,formatRgb:fy,toString:fy}));function ly(){return`#${zt(this.r)}${zt(this.g)}${zt(this.b)}`}function FA(){return`#${zt(this.r)}${zt(this.g)}${zt(this.b)}${zt((isNaN(this.opacity)?1:this.opacity)*255)}`}function fy(){const e=ji(this.opacity);return`${e===1?"rgb(":"rgba("}${Ht(this.r)}, ${Ht(this.g)}, ${Ht(this.b)}${e===1?")":`, ${e})`}`}function ji(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ht(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function zt(e){return e=Ht(e),(e<16?"0":"")+e.toString(16)}function hy(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Qe(e,t,r,n)}function a0(e){if(e instanceof Qe)return new Qe(e.h,e.s,e.l,e.opacity);if(e instanceof Kn||(e=mn(e)),!e)return new Qe;if(e instanceof Qe)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,c=(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/=c<.5?a+i:2-a-i,o*=60):u=c>0&&c<1?0:o,new Qe(o,u,c,e.opacity)}function zA(e,t,r,n){return arguments.length===1?a0(e):new Qe(e,t,r,n??1)}function Qe(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Ef(Qe,zA,i0(Kn,{brighter(e){return e=e==null?Ei:Math.pow(Ei,e),new Qe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?vn:Math.pow(vn,e),new Qe(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 Ie(Yc(e>=240?e-240:e+120,i,n),Yc(e,i,n),Yc(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Qe(py(this.h),ai(this.s),ai(this.l),ji(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=ji(this.opacity);return`${e===1?"hsl(":"hsla("}${py(this.h)}, ${ai(this.s)*100}%, ${ai(this.l)*100}%${e===1?")":`, ${e})`}`}}));function py(e){return e=(e||0)%360,e<0?e+360:e}function ai(e){return Math.max(0,Math.min(1,e||0))}function Yc(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 jf=e=>()=>e;function WA(e,t){return function(r){return e+r*t}}function UA(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 HA(e){return(e=+e)==1?o0:function(t,r){return r-t?UA(t,r,e):jf(isNaN(t)?r:t)}}function o0(e,t){var r=t-e;return r?WA(e,r):jf(isNaN(e)?t:e)}const dy=(function e(t){var r=HA(t);function n(i,a){var o=r((i=sl(i)).r,(a=sl(a)).r),u=r(i.g,a.g),c=r(i.b,a.b),s=o0(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=u(f),i.b=c(f),i.opacity=s(f),i+""}}return n.gamma=e,n})(1);function GA(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 KA(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function XA(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]=Lr(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 VA(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Mi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function YA(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]=Lr(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var ll=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Zc=new RegExp(ll.source,"g");function ZA(e){return function(){return e}}function JA(e){return function(t){return e(t)+""}}function QA(e,t){var r=ll.lastIndex=Zc.lastIndex=0,n,i,a,o=-1,u=[],c=[];for(e=e+"",t=t+"";(n=ll.exec(e))&&(i=Zc.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,c.push({i:o,x:Mi(n,i)})),r=Zc.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?c[0]?JA(c[0].x):ZA(t):(t=c.length,function(s){for(var f=0,l;f<t;++f)u[(l=c[f]).i]=l.x(s);return u.join("")})}function Lr(e,t){var r=typeof t,n;return t==null||r==="boolean"?jf(t):(r==="number"?Mi:r==="string"?(n=mn(t))?(t=n,dy):QA:t instanceof mn?dy:t instanceof Date?VA:KA(t)?GA:Array.isArray(t)?XA:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?YA:Mi)(e,t)}function Mf(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function eP(e,t){t===void 0&&(t=e,e=Lr);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 tP(e){return function(){return e}}function Ci(e){return+e}var vy=[0,1];function Me(e){return e}function fl(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:tP(isNaN(t)?NaN:.5)}function rP(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function nP(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=fl(i,n),a=r(o,a)):(n=fl(n,i),a=r(a,o)),function(u){return a(n(u))}}function iP(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]=fl(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var c=Gn(e,u,1,n)-1;return a[c](i[c](u))}}function Xn(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function wa(){var e=vy,t=vy,r=Lr,n,i,a,o=Me,u,c,s;function f(){var h=Math.min(e.length,t.length);return o!==Me&&(o=rP(e[0],e[h-1])),u=h>2?iP:nP,c=s=null,l}function l(h){return h==null||isNaN(h=+h)?a:(c||(c=u(e.map(n),t,r)))(n(o(h)))}return l.invert=function(h){return o(i((s||(s=u(t,e.map(n),Mi)))(h)))},l.domain=function(h){return arguments.length?(e=Array.from(h,Ci),f()):e.slice()},l.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},l.rangeRound=function(h){return t=Array.from(h),r=Mf,f()},l.clamp=function(h){return arguments.length?(o=h?!0:Me,f()):o!==Me},l.interpolate=function(h){return arguments.length?(r=h,f()):r},l.unknown=function(h){return arguments.length?(a=h,l):a},function(h,p){return n=h,i=p,f()}}function Cf(){return wa()(Me,Me)}
vendor: 4,560 bytes, line 12
12function aP(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function $i(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 gr(e){return e=$i(Math.abs(e)),e?e[1]:NaN}function oP(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],c=0;i>0&&u>0&&(c+u+1>n&&(u=Math.max(1,n-c)),a.push(r.substring(i-=u,i+u)),!((c+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function uP(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var cP=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function gn(e){if(!(t=cP.exec(e)))throw new Error("invalid format: "+e);var t;return new $f({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]})}gn.prototype=$f.prototype;function $f(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+""}$f.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 sP(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 u0;function lP(e,t){var r=$i(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(u0=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")+$i(e,Math.max(0,t+a-1))[0]}function yy(e,t){var r=$i(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 my={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:aP,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)=>yy(e*100,t),r:yy,s:lP,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function gy(e){return e}var by=Array.prototype.map,xy=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function fP(e){var t=e.grouping===void 0||e.thousands===void 0?gy:oP(by.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?gy:uP(by.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function s(l){l=gn(l);var h=l.fill,p=l.align,y=l.sign,v=l.symbol,d=l.zero,b=l.width,x=l.comma,w=l.precision,O=l.trim,m=l.type;m==="n"?(x=!0,m="g"):my[m]||(w===void 0&&(w=12),O=!0,m="g"),(d||h==="0"&&p==="=")&&(d=!0,h="0",p="=");var g=v==="$"?r:v==="#"&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",_=v==="$"?n:/[%p]/.test(m)?o:"",S=my[m],P=/[defgprs%]/.test(m);w=w===void 0?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function M(A){var E=g,j=_,$,C,D;if(m==="c")j=S(A)+j,A="";else{A=+A;var k=A<0||1/A<0;if(A=isNaN(A)?c:S(Math.abs(A),w),O&&(A=sP(A)),k&&+A==0&&y!=="+"&&(k=!1),E=(k?y==="("?y:u:y==="-"||y==="("?"":y)+E,j=(m==="s"?xy[8+u0/3]:"")+j+(k&&y==="("?")":""),P){for($=-1,C=A.length;++$<C;)if(D=A.charCodeAt($),48>D||D>57){j=(D===46?i+A.slice($+1):A.slice($))+j,A=A.slice(0,$);break}}}x&&!d&&(A=t(A,1/0));var L=E.length+A.length+j.length,B=L<b?new Array(b-L+1).join(h):"";switch(x&&d&&(A=t(B+A,B.length?b-j.length:1/0),B=""),p){case"<":A=E+A+j+B;break;case"=":A=E+B+A+j;break;case"^":A=B.slice(0,L=B.length>>1)+E+A+j+B.slice(L);break;default:A=B+E+A+j;break}return a(A)}return M.toString=function(){return l+""},M}function f(l,h){var p=s((l=gn(l),l.type="f",l)),y=Math.max(-8,Math.min(8,Math.floor(gr(h)/3)))*3,v=Math.pow(10,-y),d=xy[8+y/3];return function(b){return p(v*b)+d}}return{format:s,formatPrefix:f}}var oi,If,c0;hP({thousands:",",grouping:[3],currency:["$",""]});function hP(e){return oi=fP(e),If=oi.format,c0=oi.formatPrefix,oi}
12function pP(e){return Math.max(0,-gr(Math.abs(e)))}function dP(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(gr(t)/3)))*3-gr(Math.abs(e)))}function vP(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,gr(t)-gr(e))+1}function s0(e,t,r,n){var i=ul(e,t,r),a;switch(n=gn(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=dP(i,o))&&(n.precision=a),c0(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=vP(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=pP(i))&&(n.precision=a-(n.type==="%")*2);break}}return If(n)}function $t(e){var t=e.domain;return e.ticks=function(r){var n=t();return al(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return s0(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],c,s,f=10;for(u<o&&(s=o,o=u,u=s,s=i,i=a,a=s);f-- >0;){if(s=ol(o,u,r),s===c)return n[i]=o,n[a]=u,t(n);if(s>0)o=Math.floor(o/s)*s,u=Math.ceil(u/s)*s;else if(s<0)o=Math.ceil(o*s)/s,u=Math.floor(u*s)/s;else break;c=s}return e},e}function Ii(){var e=Cf();return e.copy=function(){return Xn(e,Ii())},Xe.apply(e,arguments),$t(e)}function l0(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,Ci),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return l0(e).unknown(t)},e=arguments.length?Array.from(e,Ci):[0,1],$t(r)}function f0(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 wy(e){return Math.log(e)}function Oy(e){return Math.exp(e)}function yP(e){return-Math.log(-e)}function mP(e){return-Math.exp(-e)}function gP(e){return isFinite(e)?+("1e"+e):e<0?0:e}function bP(e){return e===10?gP:e===Math.E?Math.exp:t=>Math.pow(e,t)}function xP(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 _y(e){return(t,r)=>-e(-t,r)}function Df(e){const t=e(wy,Oy),r=t.domain;let n=10,i,a;function o(){return i=xP(n),a=bP(n),r()[0]<0?(i=_y(i),a=_y(a),e(yP,mP)):e(wy,Oy),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 c=r();let s=c[0],f=c[c.length-1];const l=f<s;l&&([s,f]=[f,s]);let h=i(s),p=i(f),y,v;const d=u==null?10:+u;let b=[];if(!(n%1)&&p-h<d){if(h=Math.floor(h),p=Math.ceil(p),s>0){for(;h<=p;++h)for(y=1;y<n;++y)if(v=h<0?y/a(-h):y*a(h),!(v<s)){if(v>f)break;b.push(v)}}else for(;h<=p;++h)for(y=n-1;y>=1;--y)if(v=h>0?y/a(-h):y*a(h),!(v<s)){if(v>f)break;b.push(v)}b.length*2<d&&(b=al(s,f,d))}
vendor: 4,254 bytes, line 12
12else b=al(h,p,Math.min(p-h,d)).map(a);return l?b.reverse():b},t.tickFormat=(u,c)=>{if(u==null&&(u=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=gn(c)).precision==null&&(c.trim=!0),c=If(c)),u===1/0)return c;const s=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<=s?c(f):""}},t.nice=()=>r(f0(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function h0(){const e=Df(wa()).domain([1,10]);return e.copy=()=>Xn(e,h0()).base(e.base()),Xe.apply(e,arguments),e}function Sy(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Ay(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function kf(e){var t=1,r=e(Sy(t),Ay(t));return r.constant=function(n){return arguments.length?e(Sy(t=+n),Ay(t)):t},$t(r)}function p0(){var e=kf(wa());return e.copy=function(){return Xn(e,p0()).constant(e.constant())},Xe.apply(e,arguments)}function Py(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function wP(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function OP(e){return e<0?-e*e:e*e}function Rf(e){var t=e(Me,Me),r=1;function n(){return r===1?e(Me,Me):r===.5?e(wP,OP):e(Py(r),Py(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},$t(t)}function Nf(){var e=Rf(wa());return e.copy=function(){return Xn(e,Nf()).exponent(e.exponent())},Xe.apply(e,arguments),e}function _P(){return Nf.apply(null,arguments).exponent(.5)}function Ty(e){return Math.sign(e)*e*e}function SP(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function d0(){var e=Cf(),t=[0,1],r=!1,n;function i(a){var o=SP(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(Ty(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,Ci)).map(Ty)),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 d0(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Xe.apply(i,arguments),$t(i)}function v0(){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]=jA(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Gn(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(Et),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 v0().domain(e).range(t).unknown(n)},Xe.apply(a,arguments)}function y0(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(c){return c!=null&&c<=c?i[Gn(n,c,0,r)]:a}function u(){var c=-1;for(n=new Array(r);++c<r;)n[c]=((c+1)*t-(c-r)*e)/(r+1);return o}return o.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,u()):[e,t]},o.range=function(c){return arguments.length?(r=(i=Array.from(c)).length-1,u()):i.slice()},o.invertExtent=function(c){var s=i.indexOf(c);return s<0?[NaN,NaN]:s<1?[e,n[0]]:s>=r?[n[r-1],t]:[n[s-1],n[s]]},o.unknown=function(c){return arguments.length&&(a=c),o},o.thresholds=function(){return n.slice()},o.copy=function(){return y0().domain([e,t]).range(i).unknown(a)},Xe.apply($t(o),arguments)}function m0(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Gn(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 m0().domain(e).range(t).unknown(r)},Xe.apply(i,arguments)}const Jc=new Date,Qc=new Date;function Oe(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>
vendor: 5,716 bytes, line 12
12(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 c=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return c;let s;do c.push(s=new Date(+a)),t(a,u),e(a);while(s<a&&a<o);return c},i.filter=a=>Oe(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)=>(Jc.setTime(+a),Qc.setTime(+o),e(Jc),e(Qc),Math.floor(r(Jc,Qc))),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 Di=Oe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Di.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Oe(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Di);Di.range;const ft=1e3,Ue=ft*60,ht=Ue*60,mt=ht*24,qf=mt*7,Ey=mt*30,es=mt*365,Wt=Oe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ft)},(e,t)=>(t-e)/ft,e=>e.getUTCSeconds());Wt.range;const Lf=Oe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ft)},(e,t)=>{e.setTime(+e+t*Ue)},(e,t)=>(t-e)/Ue,e=>e.getMinutes());Lf.range;const Bf=Oe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ue)},(e,t)=>(t-e)/Ue,e=>e.getUTCMinutes());Bf.range;const Ff=Oe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ft-e.getMinutes()*Ue)},(e,t)=>{e.setTime(+e+t*ht)},(e,t)=>(t-e)/ht,e=>e.getHours());Ff.range;const zf=Oe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ht)},(e,t)=>(t-e)/ht,e=>e.getUTCHours());zf.range;const Vn=Oe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ue)/mt,e=>e.getDate()-1);Vn.range;const Oa=Oe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mt,e=>e.getUTCDate()-1);Oa.range;const g0=Oe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mt,e=>Math.floor(e/mt));g0.range;function Jt(e){return Oe(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())*Ue)/qf)}const _a=Jt(0),ki=Jt(1),AP=Jt(2),PP=Jt(3),br=Jt(4),TP=Jt(5),EP=Jt(6);_a.range;ki.range;AP.range;PP.range;br.range;TP.range;EP.range;function Qt(e){return Oe(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)/qf)}const Sa=Qt(0),Ri=Qt(1),jP=Qt(2),MP=Qt(3),xr=Qt(4),CP=Qt(5),$P=Qt(6);Sa.range;Ri.range;jP.range;MP.range;xr.range;CP.range;$P.range;const Wf=Oe(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());Wf.range;const Uf=Oe(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());Uf.range;const gt=Oe(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());gt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Oe(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)});gt.range;const bt=Oe(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());bt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Oe(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)});bt.range;function b0(e,t,r,n,i,a){const o=[[Wt,1,ft],[Wt,5,5*ft],[Wt,15,15*ft],[Wt,30,30*ft],[a,1,Ue],[a,5,5*Ue],[a,15,15*Ue],[a,30,30*Ue],[i,1,ht],[i,3,3*ht],[i,6,6*ht],[i,12,12*ht],[n,1,mt],[n,2,2*mt],[r,1,qf],[t,1,Ey],[t,3,3*Ey],[e,1,es]];function u(s,f,l){const h=f<s;h&&([s,f]=[f,s]);const p=l&&typeof l.range=="function"?l:c(s,f,l),y=p?p.range(s,+f+1):[];return h?y.reverse():y}function c(s,f,l){const h=Math.abs(f-s)/l,p=Pf(([,,d])=>d).right(o,h);if(p===o.length)return e.every(ul(s/es,f/es,l));if(p===0)return Di.every(Math.max(ul(s,f,l),1));const[y,v]=o[h/o[p-1][2]<o[p][2]/h?p-1:p];return y.every(v)}return[u,c]}const[IP,DP]=b0(bt,Uf,Sa,g0,zf,Bf),[kP,RP]=b0(gt,Wf,_a,Vn,Ff,Lf);function ts(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 rs(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 Hr(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function NP(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,c=e.shortMonths,s=Gr(i),f=Kr(i),l=Gr(a),h=Kr(a),p=Gr(o),y=Kr(o),v=Gr(u),d=Kr(u),b=Gr(c),x=Kr(c),w={a:k,A:L,b:B,B:U,c:null,d:Dy,e:Dy,f:oT,g:yT,G:gT,H:nT,I:iT,j:aT,L:x0,m:uT,M:cT,p:G,q:z,Q:Ny,s:qy,S:sT,u:lT,U:fT,V:hT,w:pT,W:dT,x:null,X:null,y:vT,Y:mT,Z:bT,"%":Ry},O={a:K,A:ue,b:de,B:ke,c:null,d:ky,e:ky,f:_T,g:IT,G:kT,H:xT,I:wT,j:OT,L:O0,m:ST,M:AT,p:kt,q:Ce,Q:Ny,s:qy,S:PT,u:TT,U:ET,V:jT,w:MT,W:CT,x:null,X:null,y:$T,Y:DT,Z:RT,"%":Ry},m={a:M,A,b:E,B:j,c:$,d:$y,e:$y,f:QP,g:Cy,G:My,H:Iy,I:Iy,j:VP,L:JP,m:XP,M:YP,p:P,q:KP,Q:tT,s:rT,S:ZP,u:zP,U:WP,V:UP,w:FP,W:HP,x:C,X:D,y:Cy,Y:My,Z:GP,"%":eT};w.x=g(r,w),w.X=g(n,w),w.c=g(t,w),O.x=g(r,O),O.X=g(n,O),O.c=g(t,O);function g(F,X){return function(Y){var R=[],fe=-1,Q=0,me=F.length,ge,$e,St;for(Y instanceof Date||(Y=new Date(+Y));++fe<me;
vendor: 7,431 bytes, line 12
12)F.charCodeAt(fe)===37&&(R.push(F.slice(Q,fe)),($e=jy[ge=F.charAt(++fe)])!=null?ge=F.charAt(++fe):$e=ge==="e"?" ":"0",(St=X[ge])&&(ge=St(Y,$e)),R.push(ge),Q=fe+1);return R.push(F.slice(Q,fe)),R.join("")}}function _(F,X){return function(Y){var R=Hr(1900,void 0,1),fe=S(R,F,Y+="",0),Q,me;if(fe!=Y.length)return null;if("Q"in R)return new Date(R.Q);if("s"in R)return new Date(R.s*1e3+("L"in R?R.L:0));if(X&&!("Z"in R)&&(R.Z=0),"p"in R&&(R.H=R.H%12+R.p*12),R.m===void 0&&(R.m="q"in R?R.q:0),"V"in R){if(R.V<1||R.V>53)return null;"w"in R||(R.w=1),"Z"in R?(Q=rs(Hr(R.y,0,1)),me=Q.getUTCDay(),Q=me>4||me===0?Ri.ceil(Q):Ri(Q),Q=Oa.offset(Q,(R.V-1)*7),R.y=Q.getUTCFullYear(),R.m=Q.getUTCMonth(),R.d=Q.getUTCDate()+(R.w+6)%7):(Q=ts(Hr(R.y,0,1)),me=Q.getDay(),Q=me>4||me===0?ki.ceil(Q):ki(Q),Q=Vn.offset(Q,(R.V-1)*7),R.y=Q.getFullYear(),R.m=Q.getMonth(),R.d=Q.getDate()+(R.w+6)%7)}else("W"in R||"U"in R)&&("w"in R||(R.w="u"in R?R.u%7:"W"in R?1:0),me="Z"in R?rs(Hr(R.y,0,1)).getUTCDay():ts(Hr(R.y,0,1)).getDay(),R.m=0,R.d="W"in R?(R.w+6)%7+R.W*7-(me+5)%7:R.w+R.U*7-(me+6)%7);return"Z"in R?(R.H+=R.Z/100|0,R.M+=R.Z%100,rs(R)):ts(R)}}function S(F,X,Y,R){for(var fe=0,Q=X.length,me=Y.length,ge,$e;fe<Q;){if(R>=me)return-1;if(ge=X.charCodeAt(fe++),ge===37){if(ge=X.charAt(fe++),$e=m[ge in jy?X.charAt(fe++):ge],!$e||(R=$e(F,Y,R))<0)return-1}else if(ge!=Y.charCodeAt(R++))return-1}return R}function P(F,X,Y){var R=s.exec(X.slice(Y));return R?(F.p=f.get(R[0].toLowerCase()),Y+R[0].length):-1}function M(F,X,Y){var R=p.exec(X.slice(Y));return R?(F.w=y.get(R[0].toLowerCase()),Y+R[0].length):-1}function A(F,X,Y){var R=l.exec(X.slice(Y));return R?(F.w=h.get(R[0].toLowerCase()),Y+R[0].length):-1}function E(F,X,Y){var R=b.exec(X.slice(Y));return R?(F.m=x.get(R[0].toLowerCase()),Y+R[0].length):-1}function j(F,X,Y){var R=v.exec(X.slice(Y));return R?(F.m=d.get(R[0].toLowerCase()),Y+R[0].length):-1}function $(F,X,Y){return S(F,t,X,Y)}function C(F,X,Y){return S(F,r,X,Y)}function D(F,X,Y){return S(F,n,X,Y)}function k(F){return o[F.getDay()]}function L(F){return a[F.getDay()]}function B(F){return c[F.getMonth()]}function U(F){return u[F.getMonth()]}function G(F){return i[+(F.getHours()>=12)]}function z(F){return 1+~~(F.getMonth()/3)}function K(F){return o[F.getUTCDay()]}function ue(F){return a[F.getUTCDay()]}function de(F){return c[F.getUTCMonth()]}function ke(F){return u[F.getUTCMonth()]}function kt(F){return i[+(F.getUTCHours()>=12)]}function Ce(F){return 1+~~(F.getUTCMonth()/3)}return{format:function(F){var X=g(F+="",w);return X.toString=function(){return F},X},parse:function(F){var X=_(F+="",!1);return X.toString=function(){return F},X},utcFormat:function(F){var X=g(F+="",O);return X.toString=function(){return F},X},utcParse:function(F){var X=_(F+="",!0);return X.toString=function(){return F},X}}}var jy={"-":"",_:" ",0:"0"},Se=/^\s*\d+/,qP=/^%/,LP=/[\\^$*+?|[\]().{}]/g;function te(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 BP(e){return e.replace(LP,"\\$&")}function Gr(e){return new RegExp("^(?:"+e.map(BP).join("|")+")","i")}function Kr(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function FP(e,t,r){var n=Se.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function zP(e,t,r){var n=Se.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function WP(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function UP(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function HP(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function My(e,t,r){var n=Se.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Cy(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function GP(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 KP(e,t,r){var n=Se.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function XP(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function $y(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function VP(e,t,r){var n=Se.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Iy(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function YP(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function ZP(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function JP(e,t,r){var n=Se.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function QP(e,t,r){var n=Se.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function eT(e,t,r){var n=qP.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function tT(e,t,r){var n=Se.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function rT(e,t,r){var n=Se.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Dy(e,t){return te(e.getDate(),t,2)}function nT(e,t){return te(e.getHours(),t,2)}function iT(e,t){return te(e.getHours()%12||12,t,2)}function aT(e,t){return te(1+Vn.count(gt(e),e),t,3)}function x0(e,t){return te(e.getMilliseconds(),t,3)}function oT(e,t){return x0(e,t)+"000"}function uT(e,t){return te(e.getMonth()+1,t,2)}function cT(e,t){return te(e.getMinutes(),t,2)}function sT(e,t){return te(e.getSeconds(),t,2)}function lT(e){var t=e.getDay();return t===0?7:t}function fT(e,t){return te(_a.count(gt(e)-1,e),t,2)}function w0(e){var t=e.getDay();return t>=4||t===0?br(e):br.ceil(e)}function hT(e,t){return e=w0(e),te(br.count(gt(e),e)+(gt(e).getDay()===4),t,2)}function pT(e){return e.getDay()}function dT(e,t){return te(ki.count(gt(e)-1,e),t,2)}function vT(e,t){return te(e.getFullYear()%100,t,2)}function yT(e,t){return e=w0(e),te(e.getFullYear()%100,t,2)}function mT(e,t){return te(e.getFullYear()%1e4,t,4)}function gT(e,t){var r=e.getDay();return e=r>=4||r===0?br(e):br.ceil(e),te(e.getFullYear()%1e4,t,4)}function bT(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+te(t/60|0,"0",2)+te(t%60,"0",2)}function ky(e,t){return te(e.getUTCDate(),t,2)}function xT(e,t){return te(e.getUTCHours(),t,2)}function wT(e,t){return te(e.getUTCHours()%12||12,t,2)}function OT(e,t){return te(1+Oa.count(bt(e),e),t,3)}function O0(e,t){return te(e.getUTCMilliseconds(),t,3)}function _T(e,t){return O0(e,t)+"000"}function ST(e,t){return te(e.getUTCMonth()+1,t,2)}function AT(e,t){return te(e.getUTCMinutes(),t,2)}function PT(e,t){return te(e.getUTCSeconds(),t,2)}function TT(e){var t=e.getUTCDay();return t===0?7:t}function ET(e,t){return te(Sa.count(bt(e)-1,e),t,2)}function _0(e){var t=e.getUTCDay();return t>=4||t===0?xr(e):xr.ceil(e)}function jT(e,t){return e=_0(e),te(xr.count(bt(e),e)+(bt(e).getUTCDay()===4),t,2)}function MT(e){return e.getUTCDay()}function CT(e,t){return te(Ri.count(bt(e)-1,e),t,2)}function $T(e,t){return te(e.getUTCFullYear()%100,t,2)}function IT(e,t){return e=_0(e),te(e.getUTCFullYear()%100,t,2)}function DT(e,t){return te(e.getUTCFullYear()%1e4,t,4)}function kT(e,t){var r=e.getUTCDay();return e=r>=4||r===0?xr(e):xr.ceil(e),te(e.getUTCFullYear()%1e4,t,4)}function RT(){return"+0000"}function Ry(){return"%"}function Ny(e){return+e}function qy(e){return Math.floor(+e/1e3)}var nr,S0,A0;NT({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
12ay","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 NT(e){return nr=NP(e),S0=nr.format,nr.parse,A0=nr.utcFormat,nr.utcParse,nr}function qT(e){return new Date(e)}function LT(e){return e instanceof Date?+e:+new Date(+e)}function Hf(e,t,r,n,i,a,o,u,c,s){var f=Cf(),l=f.invert,h=f.domain,p=s(".%L"),y=s(":%S"),v=s("%I:%M"),d=s("%I %p"),b=s("%a %d"),x=s("%b %d"),w=s("%B"),O=s("%Y");function m(g){return(c(g)<g?p:u(g)<g?y:o(g)<g?v:a(g)<g?d:n(g)<g?i(g)<g?b:x:r(g)<g?w:O)(g)}return f.invert=function(g){return new Date(l(g))},f.domain=function(g){return arguments.length?h(Array.from(g,LT)):h().map(qT)},f.ticks=function(g){var _=h();return e(_[0],_[_.length-1],g??10)},f.tickFormat=function(g,_){return _==null?m:s(_)},f.nice=function(g){var _=h();return(!g||typeof g.range!="function")&&(g=t(_[0],_[_.length-1],g??10)),g?h(f0(_,g)):f},f.copy=function(){return Xn(f,Hf(e,t,r,n,i,a,o,u,c,s))},f}function BT(){return Xe.apply(Hf(kP,RP,gt,Wf,_a,Vn,Ff,Lf,Wt,S0).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function FT(){return Xe.apply(Hf(IP,DP,bt,Uf,Sa,Oa,zf,Bf,Wt,A0).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Aa(){var e=0,t=1,r,n,i,a,o=Me,u=!1,c;function s(l){return l==null||isNaN(l=+l)?c:o(i===0?.5:(l=(a(l)-r)*i,u?Math.max(0,Math.min(1,l)):l))}s.domain=function(l){return arguments.length?([e,t]=l,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),s):[e,t]},s.clamp=function(l){return arguments.length?(u=!!l,s):u},s.interpolator=function(l){return arguments.length?(o=l,s):o};function f(l){return function(h){var p,y;return arguments.length?([p,y]=h,o=l(p,y),s):[o(0),o(1)]}}return s.range=f(Lr),s.rangeRound=f(Mf),s.unknown=function(l){return arguments.length?(c=l,s):c},function(l){return a=l,r=l(e),n=l(t),i=r===n?0:1/(n-r),s}}function It(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function P0(){var e=$t(Aa()(Me));return e.copy=function(){return It(e,P0())},_t.apply(e,arguments)}function T0(){var e=Df(Aa()).domain([1,10]);return e.copy=function(){return It(e,T0()).base(e.base())},_t.apply(e,arguments)}function E0(){var e=kf(Aa());return e.copy=function(){return It(e,E0()).constant(e.constant())},_t.apply(e,arguments)}function Gf(){var e=Rf(Aa());return e.copy=function(){return It(e,Gf()).exponent(e.exponent())},_t.apply(e,arguments)}function zT(){return Gf.apply(null,arguments).exponent(.5)}function j0(){var e=[],t=Me;function r(n){if(n!=null&&!isNaN(n=+n))return t((Gn(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(Et),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)=>EA(e,a/n))},r.copy=function(){return j0(t).domain(e)},_t.apply(r,arguments)}function Pa(){var e=0,t=.5,r=1,n=1,i,a,o,u,c,s=Me,f,l=!1,h;function p(v){return isNaN(v=+v)?h:(v=.5+((v=+f(v))-a)*(n*v<n*a?u:c),s(l?Math.max(0,Math.min(1,v)):v))}p.domain=function(v){return arguments.length?([e,t,r]=v,i=f(e=+e),a=f(t=+t),o=f(r=+r),u=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,p):[e,t,r]},p.clamp=function(v){return arguments.length?(l=!!v,p):l},p.interpolator=function(v){return arguments.length?(s=v,p):s};function y(v){return function(d){var b,x,w;return arguments.length?([b,x,w]=d,s=eP(v,[b,x,w]),p):[s(0),s(.5),s(1)]}}return p.range=y(Lr),p.rangeRound=y(Mf),p.unknown=function(v){return arguments.length?(h=v,p):h},function(v){return f=v,i=v(e),a=v(t),o=v(r),u=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function M0(){var e=$t(Pa()(Me));return e.copy=function(){return It(e,M0())},_t.apply(e,arguments)}function C0(){var e=Df(Pa()).domain([.1,1,10]);return e.copy=function(){return It(e,C0()).base(e.base())},_t.apply(e,arguments)}function $0(){var e=kf(Pa());return e.copy=function(){return It(e,$0()).constant(e.constant())},_t.apply(e,arguments)}function Kf(){var e=Rf(Pa());return e.copy=function(){return It(e,Kf()).exponent(e.exponent())},_t.apply(e,arguments)}function WT(){return Kf.apply(null,arguments).exponent(.5)}const Ly=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:dn,scaleDiverging:M0,scaleDivergingLog:C0,scaleDivergingPow:Kf,scaleDivergingSqrt:WT,scaleDivergingSymlog:$0,scaleIdentity:l0,scaleImplicit:cl,scaleLinear:Ii,scaleLog:h0,scaleOrdinal:Tf,scalePoint:rn,scalePow:Nf,scaleQuantile:v0,scaleQuantize:y0,scaleRadial:d0,scaleSequential:P0,scaleSequentialLog:T0,scaleSequentialPow:Gf,scaleSequentialQuantile:j0,scaleSequentialSqrt:zT,scaleSequentialSymlog:E0,scaleSqrt:_P,scaleSymlog:p0,scaleThreshold:m0,scaleTime:BT,scaleUtc:FT,tickFormat:s0},Symbol.toStringTag,{value:"Module"}));var ns,By;function I0(){if(By)return ns;By=1;var e=kr();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var u=r[a],c=n(u);if(c!=null&&(s===void 0?c===c&&!e(c):i(c,s)))var s=c,f=u}return f}return ns=t,ns}var is,Fy;
vendor: 62,728 bytes, lines 12-39
12function UT(){if(Fy)return is;Fy=1;function e(t,r){return t>r}return is=e,is}var as,zy;function HT(){if(zy)return as;zy=1;var e=I0(),t=UT(),r=Nr();function n(i){return i&&i.length?e(i,r,t):void 0}return as=n,as}var GT=HT();const Ta=se(GT);var os,Wy;function KT(){if(Wy)return os;Wy=1;function e(t,r){return t<r}return os=e,os}var us,Uy;function XT(){if(Uy)return us;Uy=1;var e=I0(),t=KT(),r=Nr();function n(i){return i&&i.length?e(i,r,t):void 0}return us=n,us}var VT=XT();const Ea=se(VT);var cs,Hy;function YT(){if(Hy)return cs;Hy=1;var e=sf(),t=Ct(),r=Fb(),n=De();function i(a,o){var u=n(a)?e:r;return u(a,t(o,3))}return cs=i,cs}var ss,Gy;function ZT(){if(Gy)return ss;Gy=1;var e=Lb(),t=YT();function r(n,i){return e(t(n,i),1)}return ss=r,ss}var JT=ZT();const QT=se(JT);var ls,Ky;function eE(){if(Ky)return ls;Ky=1;var e=Of();function t(r,n){return e(r,n)}return ls=t,ls}var tE=eE();const ja=se(tE);var Br=1e9,rE={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Vf,le=!0,Ke="[DecimalError] ",Gt=Ke+"Invalid argument: ",Xf=Ke+"Exponent out of range: ",Fr=Math.floor,Bt=Math.pow,nE=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Le,_e=1e7,ce=7,D0=9007199254740991,Ni=Fr(D0/ce),W={};W.absoluteValue=W.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};W.comparedTo=W.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};W.decimalPlaces=W.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*ce;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};W.dividedBy=W.div=function(e){return yt(this,new this.constructor(e))};W.dividedToIntegerBy=W.idiv=function(e){var t=this,r=t.constructor;return ae(yt(t,new r(e),0,1),r.precision)};W.equals=W.eq=function(e){return!this.cmp(e)};W.exponent=function(){return ye(this)};W.greaterThan=W.gt=function(e){return this.cmp(e)>0};W.greaterThanOrEqualTo=W.gte=function(e){return this.cmp(e)>=0};W.isInteger=W.isint=function(){return this.e>this.d.length-2};W.isNegative=W.isneg=function(){return this.s<0};W.isPositive=W.ispos=function(){return this.s>0};W.isZero=function(){return this.s===0};W.lessThan=W.lt=function(e){return this.cmp(e)<0};W.lessThanOrEqualTo=W.lte=function(e){return this.cmp(e)<1};W.logarithm=W.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(Le))throw Error(Ke+"NaN");if(r.s<1)throw Error(Ke+(r.s?"NaN":"-Infinity"));return r.eq(Le)?new n(0):(le=!1,t=yt(bn(r,a),bn(e,a),a),le=!0,ae(t,i))};W.minus=W.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?N0(t,e):k0(t,(e.s=-e.s,e))};W.modulo=W.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Ke+"NaN");return r.s?(le=!1,t=yt(r,e,0,1).times(e),le=!0,r.minus(t)):ae(new n(r),i)};W.naturalExponential=W.exp=function(){return R0(this)};W.naturalLogarithm=W.ln=function(){return bn(this)};W.negated=W.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};W.plus=W.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?k0(t,e):N0(t,(e.s=-e.s,e))};W.precision=W.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Gt+e);if(t=ye(i)+1,n=i.d.length-1,r=n*ce+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};W.squareRoot=W.sqrt=function(){var e,t,r,n,i,a,o,u=this,c=u.constructor;if(u.s<1){if(!u.s)return new c(0);throw Error(Ke+"NaN")}for(e=ye(u),le=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=nt(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Fr((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 c(t)):n=new c(i.toString()),r=c.precision,i=o=r+3;;)if(a=n,n=a.plus(yt(u,a,o+2)).times(.5),nt(a.d).slice(0,o)===(t=nt(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(ae(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return le=!0,ae(n,r)};W.times=W.mul=function(e){var t,r,n,i,a,o,u,c,s,f=this,l=f.constructor,h=f.d,p=(e=new l(e)).d;if(!f.s||!e.s)return new l(0);for(e.s*=f.s,r=f.e+e.e,c=h.length,s=p.length,c<s&&(a=h,h=p,p=a,o=c,c=s,s=o),a=[],o=c+s,n=o;n--;)a.push(0);for(n=s;--n>=0;){for(t=0,i=c+n;i>n;)u=a[i]+p[n]*h[i-n-1]+t,a[i--]=u%_e|0,t=u/_e|0;a[i]=(a[i]+t)%_e|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,le?ae(e,l.precision):e};W.toDecimalPlaces=W.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(ot(e,0,Br),t===void 0?t=n.rounding:ot(t,0,8),ae(r,e+ye(r)+1,t))};W.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Xt(n,!0):(ot(e,0,Br),t===void 0?t=i.rounding:ot(t,0,8),n=ae(new i(n),e+1,t),r=Xt(n,!0,e+1)),r};W.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Xt(i):(ot(e,0,Br),t===void 0?t=a.rounding:ot(t,0,8),n=ae(new a(i),e+ye(i)+1,t),r=Xt(n.abs(),!1,e+ye(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};W.toInteger=W.toint=function(){var e=this,t=e.constructor;return ae(new t(e),ye(e)+1,t.rounding)};W.toNumber=function(){return+this};W.toPower=W.pow=function(e){var t,r,n,i,a,o,u=this,c=u.constructor,s=12,f=+(e=new c(e));if(!e.s)return new c(Le);if(u=new c(u),!u.s){if(e.s<1)throw Error(Ke+"Infinity");return u}if(u.eq(Le))return u;if(n=c.precision,e.eq(Le))return ae(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=D0){for(i=new c(Le),t=Math.ceil(n/ce+4),le=!1;r%2&&(i=i.times(u),Vy(i.d,t)),r=Fr(r/2),r!==0;)u=u.times(u),Vy(u.d,t);return le=!0,e.s<0?new c(Le).div(i):ae(i,n)}}else if(a<0)throw Error(Ke+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,le=!1,i=e.times(bn(u,n+s)),le=!0,i=R0(i),i.s=a,i};W.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=ye(i),n=Xt(i,r<=a.toExpNeg||r>=a.toExpPos)):(ot(e,1,Br),t===void 0?t=a.rounding:ot(t,0,8),i=ae(new a(i),e,t),r=ye(i),n=Xt(i,e<=r||r<=a.toExpNeg,e)),n};W.toSignificantDigits=W.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(ot(e,1,Br),t===void 0?t=n.rounding:ot(t,0,8)),ae(new n(r),e,t)};W.toString=W.valueOf=W.val=W.toJSON=W[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ye(e),r=e.constructor;return Xt(e,t<=r.toExpNeg||t>=r.toExpPos)};function k0(e,t){var r,n,i,a,o,u,c,s,f=e.constructor,l=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),le?ae(t,l):t;if(c=e.d,s=t.d,o=e.e,i=t.e,c=c.slice(),a=o-i,a){for(a<0?(n=c,a=-a,u=s.length):(n=s,i=o,u=c.length),o=Math.ceil(l/ce),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=c.length,a=s.length,u-a<0&&(a=u,n=s,s=c,c=n),r=0;a;)r=(c[--a]=c[a]+s[a]+r)/_e|0,c[a]%=_e;for(r&&(c.unshift(r),++i),u=c.length;c[--u]==0;)c.pop();return t.d=c,t.e=i,le?ae(t,l):t}function ot(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Gt+e)}function nt(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=ce-n.length,r&&(a+=At(r)),a+=n;o=e[t],n=o+"",r=ce-n.length,r&&(a+=At(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var yt=(function(){function e(n,i){var a,o=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%_e|0,o=a/_e|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,c;if(a!=o)c=a>o?1:-1;else for(u=c=0;u<a;u++)if(n[u]!=i[u]){c=n[u]>i[u]?1:-1;break}return c}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*_e+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,c,s,f,l,h,p,y,v,d,b,x,w,O,m,g,_,S,P=n.constructor,M=n.s==i.s?1:-1,A=n.d,E=i.d;if(!n.s)return new P(n);if(!i.s)throw Error(Ke+"Division by zero");for(c=n.e-i.e,_=E.length,m=A.length,p=new P(M),y=p.d=[],s=0;E[s]==(A[s]||0);)++s;if(E[s]>(A[s]||0)&&--c,a==null?x=a=P.precision:o?x=a+(ye(n)-ye(i))+1:x=a,x<0)return new P(0);if(x=x/ce+2|0,s=0,_==1)for(f=0,E=E[0],x++;(s<m||f)&&x--;s++)w=f*_e+(A[s]||0),y[s]=w/E|0,f=w%E|0;else{for(f=_e/(E[0]+1)|0,f>1&&(E=e(E,f),A=e(A,f),_=E.length,m=A.length),O=_,v=A.slice(0,_),d=v.length;d<_;)v[d++]=0;S=E.slice(),S.unshift(0),g=E[0],E[1]>=_e/2&&++g;do f=0,u=t(E,v,_,d),u<0?(b=v[0],_!=d&&(b=b*_e+(v[1]||0)),f=b/g|0,f>1?(f>=_e&&(f=_e-1),l=e(E,f),h=l.length,d=v.length,u=t(l,v,h,d),u==1&&(f--,r(l,_<h?S:E,h))):(f==0&&(u=f=1),l=E.slice()),h=l.length,h<d&&l.unshift(0),r(v,l,d),u==-1&&(d=v.length,u=t(E,v,_,d),u<1&&(f++,r(v,_<d?S:E,d))),d=v.length):u===0&&(f++,v=[0]),y[s++]=f,u&&v[0]?v[d++]=A[O]||0:(v=[A[O]],d=1);while((O++<m||v[0]!==void 0)&&x--)}return y[0]||y.shift(),p.e=c,ae(p,o?a+ye(p)+1:a)}})();function R0(e,t){var r,n,i,a,o,u,c=0,s=0,f=e.constructor,l=f.precision;if(ye(e)>16)throw Error(Xf+ye(e));if(!e.s)return new f(Le);for(le=!1,u=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(n=Math.log(Bt(2,s))/Math.LN10*2+5|0,u+=n,r=i=a=new f(Le),f.precision=u;;){if(i=ae(i.times(e),u),r=r.times(++c),o=a.plus(yt(i,r,u)),nt(o.d).slice(0,u)===nt(a.d).slice(0,u)){for(;s--;)a=ae(a.times(a),u);return f.precision=l,t==null?(le=!0,ae(a,l)):a}a=o}}function ye(e){for(var t=e.e*ce,r=e.d[0];r>=10;r/=10)t++;return t}function fs(e,t,r){if(t>e.LN10.sd())throw le=!0,r&&(e.precision=r),Error(Ke+"LN10 precision limit exceeded");return ae(new e(e.LN10),t)}function At(e){for(var t="";e--;)t+="0";return t}function bn(e,t){var r,n,i,a,o,u,c,s,f,l=1,h=10,p=e,y=p.d,v=p.constructor,d=v.precision;if(p.s<1)throw Error(Ke+(p.s?"NaN":"-Infinity"));if(p.eq(Le))return new v(0);if(t==null?(le=!1,s=d):s=t,p.eq(10))return t==null&&(le=!0),fs(v,s);if(s+=h,v.precision=s,r=nt(y),n=r.charAt(0),a=ye(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=nt(p.d),n=r.charAt(0),l++;a=ye(p),n>1?(p=new v("0."+r),a++):p=new v(n+"."+r.slice(1))}else return c=fs(v,s+2,d).times(a+""),p=bn(new v(n+"."+r.slice(1)),s-h).plus(c),v.precision=d,t==null?(le=!0,ae(p,d)):p;for(u=o=p=yt(p.minus(Le),p.plus(Le),s),f=ae(p.times(p),s),i=3;;){if(o=ae(o.times(f),s),c=u.plus(yt(o,new v(i),s)),nt(c.d).slice(0,s)===nt(u.d).slice(0,s))return u=u.times(2),a!==0&&(u=u.plus(fs(v,s+2,d).times(a+""))),u=yt(u,new v(l),s),v.precision=d,t==null?(le=!0,ae(u,d)):u;u=c,i+=2}}function Xy(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=Fr(r/ce),e.d=[],n=(r+1)%ce,r<0&&(n+=ce),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=ce;n<i;)e.d.push(+t.slice(n,n+=ce));t=t.slice(n),n=ce-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),le&&(e.e>Ni||e.e<-Ni))throw Error(Xf+r)}else e.s=0,e.e=0,e.d=[0];return e}function ae(e,t,r){var n,i,a,o,u,c,s,f,l=e.d;for(o=1,a=l[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=ce,i=t,s=l[f=0];else{if(f=Math.ceil((n+1)/ce),a=l.length,f>=a)return e;for(s=a=l[f],o=1;a>=10;a/=10)o++;n%=ce,i=n-ce+o}if(r!==void 0&&(a=Bt(10,o-i-1),u=s/a%10|0,c=t<0||l[f+1]!==void 0||s%a,c=r<4?(u||c)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||c||r==6&&(n>0?i>0?s/Bt(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return c?(a=ye(e),l.length=1,t=t-a-1,l[0]=Bt(10,(ce-t%ce)%ce),e.e=Fr(-t/ce)||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=Bt(10,ce-n),l[f]=i>0?(s/Bt(10,o-i)%Bt(10,i)|0)*a:0),c)for(;;)if(f==0){(l[0]+=a)==_e&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=_e)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(le&&(e.e>Ni||e.e<-Ni))throw Error(Xf+ye(e));return e}function N0(e,t){var r,n,i,a,o,u,c,s,f,l,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),le?ae(t,p):t;if(c=e.d,l=t.d,n=t.e,s=e.e,c=c.slice(),o=s-n,o){for(f=o<0,f?(r=c,o=-o,u=l.length):(r=l,n=s,u=c.length),i=Math.max(Math.ceil(p/ce),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=c.length,u=l.length,f=i<u,f&&(u=i),i=0;i<u;i++)if(c[i]!=l[i]){f=c[i]<l[i];break}o=0}for(f&&(r=c,c=l,l=r,t.s=-t.s),u=c.length,i=l.length-u;i>0;--i)c[u++]=0;for(i=l.length;i>o;){if(c[--i]<l[i]){for(a=i;a&&c[--a]===0;)c[a]=_e-1;--c[a],c[i]+=_e}c[i]-=l[i]}for(;c[--u]===0;)c.pop();for(;c[0]===0;c.shift())--n;return c[0]?(t.d=c,t.e=n,le?ae(t,p):t):new h(0)}function Xt(e,t,r){var n,i=ye(e),a=nt(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+At(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+At(-i-1)+a,r&&(n=r-o)>0&&(a+=At(n))):i>=o?(a+=At(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+At(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=At(n))),e.s<0?"-"+a:a}function Vy(e,t){if(e.length>t)return e.length=t,!0}function q0(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(Gt+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 Xy(o,a.toString())}else if(typeof a!="string")throw Error(Gt+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,nE.test(a))Xy(o,a);else throw Error(Gt+a)}if(i.prototype=W,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=q0,i.config=i.set=iE,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 iE(e){if(!e||typeof e!="object")throw Error(Ke+"Object expected");var t,r,n,i=["precision",1,Br,"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(Fr(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Gt+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Gt+r+": "+n);return this}var Vf=q0(rE);Le=new Vf(1);const ie=Vf;function aE(e){return sE(e)||cE(e)||uE(e)||oE()}function oE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
13In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uE(e,t){if(e){if(typeof e=="string")return hl(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 hl(e,t)}}function cE(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function sE(e){if(Array.isArray(e))return hl(e)}function hl(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 lE=function(t){return t},L0={},B0=function(t){return t===L0},Yy=function(t){return function r(){return arguments.length===0||arguments.length===1&&B0(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},fE=function e(t,r){return t===1?r:Yy(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!==L0}).length;return o>=t?r.apply(void 0,i):e(t-o,Yy(function(){for(var u=arguments.length,c=new Array(u),s=0;s<u;s++)c[s]=arguments[s];var f=i.map(function(l){return B0(l)?c.shift():l});return r.apply(void 0,aE(f).concat(c))}))})},Ma=function(t){return fE(t.length,t)},pl=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},hE=Ma(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),pE=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return lE;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(u,c){return c(u)},a.apply(void 0,arguments))}},dl=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},F0=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,c){return u===r[c]})||(r=a,n=t.apply(void 0,a)),n}};function dE(e){var t;return e===0?t=1:t=Math.floor(new ie(e).abs().log(10).toNumber())+1,t}function vE(e,t,r){for(var n=new ie(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var yE=Ma(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),mE=Ma(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),gE=Ma(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Ca={rangeStep:vE,getDigitCount:dE,interpolateNumber:yE,uninterpolateNumber:mE,uninterpolateTruncation:gE};function vl(e){return wE(e)||xE(e)||z0(e)||bE()}function bE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
14In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xE(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function wE(e){if(Array.isArray(e))return yl(e)}function xn(e,t){return SE(e)||_E(e,t)||z0(e,t)||OE()}function OE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
15In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z0(e,t){if(e){if(typeof e=="string")return yl(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 yl(e,t)}}function yl(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 _E(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(c){i=!0,a=c}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function SE(e){if(Array.isArray(e))return e}function W0(e){var t=xn(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function U0(e,t,r){if(e.lte(0))return new ie(0);var n=Ca.getDigitCount(e.toNumber()),i=new ie(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new ie(Math.ceil(a.div(o).toNumber())).add(r).mul(o),c=u.mul(i);return t?c:new ie(Math.ceil(c))}function AE(e,t,r){var n=1,i=new ie(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new ie(10).pow(Ca.getDigitCount(e)-1),i=new ie(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new ie(Math.floor(e)))}else e===0?i=new ie(Math.floor((t-1)/2)):r||(i=new ie(Math.floor(e)));var o=Math.floor((t-1)/2),u=pE(hE(function(c){return i.add(new ie(c-o).mul(n)).toNumber()}),pl);return u(0,t)}function H0(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 ie(0),tickMin:new ie(0),tickMax:new ie(0)};var a=U0(new ie(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new ie(0):(o=new ie(e).add(t).div(2),o=o.sub(new ie(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),c=Math.ceil(new ie(t).sub(o).div(a).toNumber()),s=u+c+1;return s>r?H0(e,t,r,n,i+1):(s<r&&(c=t>0?c+(r-s):c,u=t>0?u:u+(r-s)),{step:a,tickMin:o.sub(new ie(u).mul(a)),tickMax:o.add(new ie(c).mul(a))})}function PE(e){var t=xn(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=W0([r,n]),c=xn(u,2),s=c[0],f=c[1];if(s===-1/0||f===1/0){var l=f===1/0?[s].concat(vl(pl(0,i-1).map(function(){return 1/0}))):[].concat(vl(pl(0,i-1).map(function(){return-1/0})),[f]);return r>n?dl(l):l}if(s===f)return AE(s,i,a);var h=H0(s,f,o,a),p=h.step,y=h.tickMin,v=h.tickMax,d=Ca.rangeStep(y,v.add(new ie(.1).mul(p)),p);return r>n?dl(d):d}function TE(e,t){var r=xn(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=W0([n,i]),u=xn(o,2),c=u[0],s=u[1];if(c===-1/0||s===1/0)return[n,i];if(c===s)return[c];var f=Math.max(t,2),l=U0(new ie(s).sub(c).div(f-1),a,0),h=[].concat(vl(Ca.rangeStep(new ie(c),new ie(s).sub(new ie(.99).mul(l)),l)),[s]);return n>i?dl(h):h}var EE=F0(PE),jE=F0(TE),ME="Invariant failed";function Vt(e,t){throw new Error(ME)}var CE=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function wr(e){"@babel/helpers - typeof";return wr=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},wr(e)}function qi(){return qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qi.apply(this,arguments)}function $E(e,t){return RE(e)||kE(e,t)||DE(e,t)||IE()}function IE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
16In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DE(e,t){if(e){if(typeof e=="string")return Zy(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 Zy(e,t)}}function Zy(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 kE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function RE(e){if(Array.isArray(e))return e}function NE(e,t){if(e==null)return{};var r=qE(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 qE(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 LE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BE(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,X0(n.key),n)}}function FE(e,t,r){return t&&BE(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zE(e,t,r){return t=Li(t),WE(e,G0()?Reflect.construct(t,r||[],Li(e).constructor):t.apply(e,r))}function WE(e,t){if(t&&(wr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return UE(e)}function UE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(G0=function(){return!!e})()}function Li(e){return Li=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Li(e)}function HE(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&&ml(e,t)}function ml(e,t){return ml=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ml(e,t)}function K0(e,t,r){return t=X0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X0(e){var t=GE(e,"string");return wr(t)=="symbol"?t:t+""}function GE(e,t){if(wr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Yn=(function(e){function t(){return LE(this,t),zE(this,t,arguments)}return HE(t,e),FE(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,u=n.dataKey,c=n.data,s=n.dataPointFormatter,f=n.xAxis,l=n.yAxis,h=NE(n,CE),p=J(h,!1);this.props.direction==="x"&&f.type!=="number"&&Vt();var y=c.map(function(v){var d=s(v,u),b=d.x,x=d.y,w=d.value,O=d.errorVal;if(!O)return null;var m=[],g,_;if(Array.isArray(O)){var S=$E(O,2);g=S[0],_=S[1]}else g=_=O;if(a==="vertical"){var P=f.scale,M=x+i,A=M+o,E=M-o,j=P(w-g),$=P(w+_);m.push({x1:$,y1:A,x2:$,y2:E}),m.push({x1:j,y1:M,x2:$,y2:M}),m.push({x1:j,y1:A,x2:j,y2:E})}else if(a==="horizontal"){var C=l.scale,D=b+i,k=D-o,L=D+o,B=C(w-g),U=C(w+_);m.push({x1:k,y1:U,x2:L,y2:U}),m.push({x1:D,y1:B,x2:D,y2:U}),m.push({x1:k,y1:B,x2:L,y2:B})}return T.createElement(pe,qi({className:"recharts-errorBar",key:"bar-".concat(m.map(function(G){return"".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))},p),m.map(function(G){return T.createElement("line",qi({},G,{key:"line-".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))}))});return T.createElement(pe,{className:"recharts-errorBars"},y)}}])})(T.Component);K0(Yn,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});K0(Yn,"displayName","ErrorBar");function wn(e){"@babel/helpers - typeof";return wn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wn(e)}function Jy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jy(Object(r),!0).forEach(function(n){KE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KE(e,t,r){return t=XE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XE(e){var t=VE(e,"string");return wn(t)=="symbol"?t:t+""}function VE(e,t){if(wn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var V0=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=qe(r,lr);if(!o)return null;var u=lr.defaultProps,c=u!==void 0?qt(qt({},u),o.props):{},s;return o.props&&o.props.payload?s=o.props&&o.props.payload:a==="children"?s=(n||[]).reduce(function(f,l){var h=l.item,p=l.props,y=p.sectors||p.data||[];return f.concat(y.map(function(v){return{type:o.props.iconType||h.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):s=(n||[]).map(function(f){var l=f.item,h=l.type.defaultProps,p=h!==void 0?qt(qt({},h),l.props):{},y=p.dataKey,v=p.name,d=p.legendType,b=p.hide;return{inactive:b,dataKey:y,type:c.iconType||d||"square",color:Yf(l),value:v||y,payload:p}}),qt(qt(qt({},c),lr.getWithHeight(o,i)),{},{payload:s,item:o})};function On(e){"@babel/helpers - typeof";return On=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},On(e)}function Qy(e){return QE(e)||JE(e)||ZE(e)||YE()}function YE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
17In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZE(e,t){if(e){if(typeof e=="string")return gl(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 gl(e,t)}}function JE(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function QE(e){if(Array.isArray(e))return gl(e)}function gl(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=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function he(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?em(Object(r),!0).forEach(function(n){hr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):em(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hr(e,t,r){return t=ej(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ej(e){var t=tj(e,"string");return On(t)=="symbol"?t:t+""}function tj(e,t){if(On(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(On(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Be(e,t,r){return Z(e)||Z(t)?r:we(t)?He(e,t,r):V(t)?t(e):r}function nn(e,t,r,n){var i=QT(e,function(u){return Be(u,t)});if(r==="number"){var a=i.filter(function(u){return q(u)||parseFloat(u)});return a.length?[Ea(a),Ta(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!Z(u)}):i;return o.map(function(u){return we(u)||u instanceof Date?u:""})}var rj=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n?.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var c=a.range,s=0;s<u;s++){var f=s>0?i[s-1].coordinate:i[u-1].coordinate,l=i[s].coordinate,h=s>=u-1?i[0].coordinate:i[s+1].coordinate,p=void 0;if(et(l-f)!==et(h-l)){var y=[];if(et(h-l)===et(c[1]-c[0])){p=h;var v=l+c[1]-c[0];y[0]=Math.min(v,(v+f)/2),y[1]=Math.max(v,(v+f)/2)}else{p=f;var d=h+c[1]-c[0];y[0]=Math.min(l,(d+l)/2),y[1]=Math.max(l,(d+l)/2)}var b=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(t>b[0]&&t<=b[1]||t>=y[0]&&t<=y[1]){o=i[s].index;break}}else{var x=Math.min(f,h),w=Math.max(f,h);if(t>(x+l)/2&&t<=(w+l)/2){o=i[s].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},Yf=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?he(he({},t.type.defaultProps),t.props):t.props,o=a.stroke,u=a.fill,c;switch(i){case"Line":c=o;break;case"Area":case"Radar":c=o&&o!=="none"?o:u;break;default:c=u;break}return c},nj=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),c=0,s=u.length;c<s;c++)for(var f=a[u[c]].stackGroups,l=Object.keys(f),h=0,p=l.length;h<p;h++){var y=f[l[h]],v=y.items,d=y.cateAxisId,b=v.filter(function(_){return dt(_.type).indexOf("Bar")>=0});if(b&&b.length){var x=b[0].type.defaultProps,w=x!==void 0?he(he({},x),b[0].props):b[0].props,O=w.barSize,m=w[d];o[m]||(o[m]=[]);var g=Z(O)?r:O;o[m].push({item:b[0],stackList:b.slice(1),barSize:Z(g)?void 0:tt(g,n,0)})}}return o},ij=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,c=o.length;if(c<1)return null;var s=tt(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var h=!1,p=i/c,y=o.reduce(function(O,m){return O+m.barSize||0},0);y+=(c-1)*s,y>=i&&(y-=(c-1)*s,s=0),y>=i&&p>0&&(h=!0,p*=.9,y=c*p);var v=(i-y)/2>>0,d={offset:v-s,size:0};f=o.reduce(function(O,m){var g={item:m.item,position:{offset:d.offset+d.size+s,size:h?p:m.barSize}},_=[].concat(Qy(O),[g]);return d=_[_.length-1].position,m.stackList&&m.stackList.length&&m.stackList.forEach(function(S){_.push({item:S,position:d})}),_},l)}else{var b=tt(n,i,0,!0);i-2*b-(c-1)*s<=0&&(s=0);var x=(i-2*b-(c-1)*s)/c;x>1&&(x>>=0);var w=u===+u?Math.min(x,u):x;f=o.reduce(function(O,m,g){var _=[].concat(Qy(O),[{item:m.item,position:{offset:b+(x+s)*g+(x-w)/2,size:w}}]);return m.stackList&&m.stackList.length&&m.stackList.forEach(function(S){_.push({item:S,position:_[_.length-1].position})}),_},l)}return f},aj=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,c=o-(u.left||0)-(u.right||0),s=V0({children:a,legendWidth:c});if(s){var f=i||{},l=f.width,h=f.height,p=s.align,y=s.verticalAlign,v=s.layout;if((v==="vertical"||v==="horizontal"&&y==="middle")&&p!=="center"&&q(t[p]))return he(he({},t),{},hr({},p,t[p]+(l||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&y!=="middle"&&q(t[y]))return he(he({},t),{},hr({},y,t[y]+(h||0)))}return t},oj=function(t,r,n){return Z(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},Y0=function(t,r,n,i,a){var o=r.props.children,u=Ge(o,Yn).filter(function(s){return oj(i,a,s.props.direction)});if(u&&u.length){var c=u.map(function(s){return s.props.dataKey});return t.reduce(function(s,f){var l=Be(f,n);if(Z(l))return s;var h=Array.isArray(l)?[Ea(l),Ta(l)]:[l,l],p=c.reduce(function(y,v){var d=Be(f,v,0),b=h[0]-Math.abs(Array.isArray(d)?d[0]:d),x=h[1]+Math.abs(Array.isArray(d)?d[1]:d);return[Math.min(b,y[0]),Math.max(x,y[1])]},[1/0,-1/0]);return[Math.min(p[0],s[0]),Math.max(p[1],s[1])]},[1/0,-1/0])}return null},uj=function(t,r,n,i,a){var o=r.map(function(u){return Y0(t,u,n,a,i)}).filter(function(u){return!Z(u)});return o&&o.length?o.reduce(function(u,c){return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]):null},Z0=function(t,r,n,i,a){var o=r.map(function(c){var s=c.props.dataKey;return n==="number"&&s&&Y0(t,c,s,i)||nn(t,s,n,a)});if(n==="number")return o.reduce(function(c,s){return[Math.min(c[0],s[0]),Math.max(c[1],s[1])]},[1/0,-1/0]);var u={};return o.reduce(function(c,s){for(var f=0,l=s.length;f<l;f++)u[s[f]]||(u[s[f]]=!0,c.push(s[f]));return c},[])},J0=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},Q0=function(t,r,n,i){if(i)return t.map(function(c){return c.coordinate});var a,o,u=t.map(function(c){return c.coordinate===r&&(a=!0),c.coordinate===n&&(o=!0),c.coordinate});return a||u.push(r),o||u.push(n),u},pt=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,u=t.range,c=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,s=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/c:0;if(s=t.axisType==="angleAxis"&&u?.length>=2?et(u[0]-u[1])*2*s:s,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var h=a?a.indexOf(l):l;return{coordinate:i(h)+s,value:l,offset:s}});return f.filter(function(l){return!Wn(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,h){return{coordinate:i(l)+s,value:l,index:h,offset:s}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(l){return{coordinate:i(l)+s,value:l,offset:s}}):i.domain().map(function(l,h){return{coordinate:i(l)+s,value:a?a[l]:l,index:h,offset:s}})},hs=new WeakMap,ui=function(t,r){if(typeof r!="function")return t;hs.has(t)||hs.set(t,new WeakMap);var n=hs.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},ex=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:dn(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:Ii(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:rn(),realScaleType:"point"}:a==="category"?{scale:dn(),realScaleType:"band"}:{scale:Ii(),realScaleType:"linear"};if(Kt(i)){var c="scale".concat(da(i));return{scale:(Ly[c]||rn)(),realScaleType:Ly[c]?c:"point"}}return V(i)?{scale:i}:{scale:rn(),realScaleType:"point"}},tm=1e-4,tx=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])-tm,o=Math.max(i[0],i[1])+tm,u=t(r[0]),c=t(r[n-1]);(u<a||u>o||c<a||c>o)&&t.domain([r[0],r[n-1]])}},cj=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},sj=function(t,r){if(!r||r.length!==2||!q(r[0])||!q(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(!q(t[0])||t[0]<n)&&(a[0]=n),(!q(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},lj=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 c=Wn(t[u][n][1])?t[u][n][0]:t[u][n][1];c>=0?(t[u][n][0]=a,t[u][n][1]=a+c,a=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+c,o=t[u][n][1])}},fj=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=Wn(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)}},hj={sign:lj,expand:ZO,none:pr,silhouette:JO,wiggle:QO,positive:fj},pj=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=hj[n],o=YO().keys(i).value(function(u,c){return+Be(u,c,0)}).order(Xs).offset(a);return o(t)},dj=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,c={},s=u.reduce(function(l,h){var p,y=(p=h.type)!==null&&p!==void 0&&p.defaultProps?he(he({},h.type.defaultProps),h.props):h.props,v=y.stackId,d=y.hide;if(d)return l;var b=y[n],x=l[b]||{hasStack:!1,stackGroups:{}};if(we(v)){var w=x.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(h),x.hasStack=!0,x.stackGroups[v]=w}else x.stackGroups[Un("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return he(he({},l),{},hr({},b,x))},c),f={};return Object.keys(s).reduce(function(l,h){var p=s[h];if(p.hasStack){var y={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(v,d){var b=p.stackGroups[d];return he(he({},v),{},hr({},d,{numericAxisId:n,cateAxisId:i,items:b.items,stackedData:pj(t,b.items,a)}))},y)}return he(he({},l),{},hr({},h,p))},f)},rx=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,c=n||r.scale;if(c!=="auto"&&c!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var s=t.domain();if(!s.length)return null;var f=EE(s,a,u);return t.domain([Ea(f),Ta(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),h=jE(l,a,u);return{niceTicks:h}}return null};function rm(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&&!Z(i[t.dataKey])){var u=pi(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var c=Be(i,Z(o)?t.dataKey:o);return Z(c)?null:t.scale(c)}var nm=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 c=Be(o,r.dataKey,r.domain[u]);return Z(c)?null:r.scale(c)-a/2+i},vj=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]},yj=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?he(he({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(we(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},mj=function(t){return t.reduce(function(r,n){return[Ea(n.concat([r[0]]).filter(q)),Ta(n.concat([r[1]]).filter(q))]},[1/0,-1/0])},nx=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,c=u.reduce(function(s,f){var l=mj(f.slice(r,n+1));return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},im=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,am=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,bl=function(t,r,n){if(V(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(q(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(im.test(t[0])){var a=+im.exec(t[0])[1];i[0]=r[0]-a}else V(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(q(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(am.test(t[1])){var o=+am.exec(t[1])[1];i[1]=r[1]+o}else V(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Bi=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=Sf(r,function(l){return l.coordinate}),o=1/0,u=1,c=a.length;u<c;u++){var s=a[u],f=a[u-1];o=Math.min((s.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},om=function(t,r,n){return!t||!t.length||ja(t,He(n,"type.defaultProps.domain"))?r:t},ix=function(t,r){var n=t.type.defaultProps?he(he({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,u=n.formatter,c=n.tooltipType,s=n.chartType,f=n.hide;return he(he({},J(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:Yf(t),value:Be(r,i),type:c,payload:r,chartType:s,hide:f})};function _n(e){"@babel/helpers - typeof";return _n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_n(e)}function um(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 lt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?um(Object(r),!0).forEach(function(n){ax(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):um(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ax(e,t,r){return t=gj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gj(e){var t=bj(e,"string");return _n(t)=="symbol"?t:t+""}function bj(e,t){if(_n(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_n(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xj(e,t){return Sj(e)||_j(e,t)||Oj(e,t)||wj()}function wj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
18In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Oj(e,t){if(e){if(typeof e=="string")return cm(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 cm(e,t)}}function cm(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 _j(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function Sj(e){if(Array.isArray(e))return e}var Fi=Math.PI/180,Aj=function(t){return t*180/Math.PI},Pe=function(t,r,n,i){return{x:t+Math.cos(-Fi*i)*n,y:r+Math.sin(-Fi*i)*n}},Pj=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},tN=function(t,r,n,i,a){var o=t.width,u=t.height,c=t.startAngle,s=t.endAngle,f=tt(t.cx,o,o/2),l=tt(t.cy,u,u/2),h=Pj(o,u,n),p=tt(t.innerRadius,h,0),y=tt(t.outerRadius,h,h*.8),v=Object.keys(r);return v.reduce(function(d,b){var x=r[b],w=x.domain,O=x.reversed,m;if(Z(x.range))i==="angleAxis"?m=[c,s]:i==="radiusAxis"&&(m=[p,y]),O&&(m=[m[1],m[0]]);else{m=x.range;var g=m,_=xj(g,2);c=_[0],s=_[1]}var S=ex(x,a),P=S.realScaleType,M=S.scale;M.domain(w).range(m),tx(M);var A=rx(M,lt(lt({},x),{},{realScaleType:P})),E=lt(lt(lt({},x),A),{},{range:m,radius:y,realScaleType:P,scale:M,cx:f,cy:l,innerRadius:p,outerRadius:y,startAngle:c,endAngle:s});return lt(lt({},d),{},ax({},b,E))},{})},Tj=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))},Ej=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=Tj({x:n,y:i},{x:a,y:o});if(u<=0)return{radius:u};var c=(n-a)/u,s=Math.acos(c);return i>o&&(s=2*Math.PI-s),{radius:u,angle:Aj(s),angleInRadian:s}},jj=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}},Mj=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},sm=function(t,r){var n=t.x,i=t.y,a=Ej({x:n,y:i},r),o=a.radius,u=a.angle,c=r.innerRadius,s=r.outerRadius;if(o<c||o>s)return!1;if(o===0)return!0;var f=jj(r),l=f.startAngle,h=f.endAngle,p=u,y;if(l<=h){for(;p>h;)p-=360;for(;p<l;)p+=360;y=p>=l&&p<=h}else{for(;p>l;)p-=360;for(;p<h;)p+=360;y=p>=h&&p<=l}return y?lt(lt({},r),{},{radius:o,angle:Mj(p,r)}):null},rN=function(t){return!N.isValidElement(t)&&!V(t)&&typeof t!="boolean"?t.className:""};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)}var Cj=["offset"];function $j(e){return Rj(e)||kj(e)||Dj(e)||Ij()}function Ij(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
19In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dj(e,t){if(e){if(typeof e=="string")return xl(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 xl(e,t)}}function kj(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Rj(e){if(Array.isArray(e))return xl(e)}function xl(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 Nj(e,t){if(e==null)return{};var r=qj(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 qj(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 lm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lm(Object(r),!0).forEach(function(n){Lj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lj(e,t,r){return t=Bj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bj(e){var t=Fj(e,"string");return Sn(t)=="symbol"?t:t+""}function Fj(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(t==="string"?String:Number)(e)}function An(){return An=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},An.apply(this,arguments)}var zj=function(t){var r=t.value,n=t.formatter,i=Z(t.children)?r:t.children;return V(n)?n(i):i},Wj=function(t,r){var n=et(r-t),i=Math.min(Math.abs(r-t),360);return n*i},Uj=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,u=t.className,c=a,s=c.cx,f=c.cy,l=c.innerRadius,h=c.outerRadius,p=c.startAngle,y=c.endAngle,v=c.clockWise,d=(l+h)/2,b=Wj(p,y),x=b>=0?1:-1,w,O;i==="insideStart"?(w=p+x*o,O=v):i==="insideEnd"?(w=y-x*o,O=!v):i==="end"&&(w=y+x*o,O=v),O=b<=0?O:!O;var m=Pe(s,f,d,w),g=Pe(s,f,d,w+(O?1:-1)*359),_="M".concat(m.x,",").concat(m.y,`
20    A`).concat(d,",").concat(d,",0,1,").concat(O?0:1,`,
21    `).concat(g.x,",").concat(g.y),S=Z(t.id)?Un("recharts-radial-line-"):t.id;return T.createElement("text",An({},n,{dominantBaseline:"central",className:ee("recharts-radial-bar-label",u)}),T.createElement("defs",null,T.createElement("path",{id:S,d:_})),T.createElement("textPath",{xlinkHref:"#".concat(S)},r))},Hj=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,u=a.cy,c=a.innerRadius,s=a.outerRadius,f=a.startAngle,l=a.endAngle,h=(f+l)/2;if(i==="outside"){var p=Pe(o,u,s+n,h),y=p.x,v=p.y;return{x:y,y:v,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 d=(c+s)/2,b=Pe(o,u,d,h),x=b.x,w=b.y;return{x,y:w,textAnchor:"middle",verticalAnchor:"middle"}},Gj=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,u=o.x,c=o.y,s=o.width,f=o.height,l=f>=0?1:-1,h=l*i,p=l>0?"end":"start",y=l>0?"start":"end",v=s>=0?1:-1,d=v*i,b=v>0?"end":"start",x=v>0?"start":"end";if(a==="top"){var w={x:u+s/2,y:c-l*i,textAnchor:"middle",verticalAnchor:p};return xe(xe({},w),n?{height:Math.max(c-n.y,0),width:s}:{})}if(a==="bottom"){var O={x:u+s/2,y:c+f+h,textAnchor:"middle",verticalAnchor:y};return xe(xe({},O),n?{height:Math.max(n.y+n.height-(c+f),0),width:s}:{})}if(a==="left"){var m={x:u-d,y:c+f/2,textAnchor:b,verticalAnchor:"middle"};return xe(xe({},m),n?{width:Math.max(m.x-n.x,0),height:f}:{})}if(a==="right"){var g={x:u+s+d,y:c+f/2,textAnchor:x,verticalAnchor:"middle"};return xe(xe({},g),n?{width:Math.max(n.x+n.width-g.x,0),height:f}:{})}var _=n?{width:s,height:f}:{};return a==="insideLeft"?xe({x:u+d,y:c+f/2,textAnchor:x,verticalAnchor:"middle"},_):a==="insideRight"?xe({x:u+s-d,y:c+f/2,textAnchor:b,verticalAnchor:"middle"},_):a==="insideTop"?xe({x:u+s/2,y:c+h,textAnchor:"middle",verticalAnchor:y},_):a==="insideBottom"?xe({x:u+s/2,y:c+f-h,textAnchor:"middle",verticalAnchor:p},_):a==="insideTopLeft"?xe({x:u+d,y:c+h,textAnchor:x,verticalAnchor:y},_):a==="insideTopRight"?xe({x:u+s-d,y:c+h,textAnchor:b,verticalAnchor:y},_):a==="insideBottomLeft"?xe({x:u+d,y:c+f-h,textAnchor:x,verticalAnchor:p},_):a==="insideBottomRight"?xe({x:u+s-d,y:c+f-h,textAnchor:b,verticalAnchor:p},_):Rr(a)&&(q(a.x)||Ft(a.x))&&(q(a.y)||Ft(a.y))?xe({x:u+tt(a.x,s),y:c+tt(a.y,f),textAnchor:"end",verticalAnchor:"end"},_):xe({x:u+s/2,y:c+f/2,textAnchor:"middle",verticalAnchor:"middle"},_)},Kj=function(t){return"cx"in t&&q(t.cx)};function Ee(e){var t=e.offset,r=t===void 0?5:t,n=Nj(e,Cj),i=xe({offset:r},n),a=i.viewBox,o=i.position,u=i.value,c=i.children,s=i.content,f=i.className,l=f===void 0?"":f,h=i.textBreakAll;if(!a||Z(u)&&Z(c)&&!N.isValidElement(s)&&!V(s))return null;if(N.isValidElement(s))return N.cloneElement(s,i);var p;if(V(s)){if(p=N.createElement(s,i),N.isValidElement(p))return p}else p=zj(i);var y=Kj(a),v=J(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return Uj(i,p,v);var d=y?Hj(i):Gj(i);return T.createElement(Pi,An({className:ee("recharts-label",l)},v,d,{breakAll:h}),p)}Ee.displayName="Label";var ox=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,c=t.radius,s=t.innerRadius,f=t.outerRadius,l=t.x,h=t.y,p=t.top,y=t.left,v=t.width,d=t.height,b=t.clockWise,x=t.labelViewBox;if(x)return x;if(q(v)&&q(d)){if(q(l)&&q(h))return{x:l,y:h,width:v,height:d};if(q(p)&&q(y))return{x:p,y,width:v,height:d}}return q(l)&&q(h)?{x:l,y:h,width:0,height:0}:q(r)&&q(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:s||0,outerRadius:f||c||u||0,clockWise:b}:t.viewBox?t.viewBox:{}},Xj=function(t,r){return t?t===!0?T.createElement(Ee,{key:"label-implicit",viewBox:r}):we(t)?T.createElement(Ee,{key:"label-implicit",viewBox:r,value:t}):N.isValidElement(t)?t.type===Ee?N.cloneElement(t,{key:"label-implicit",viewBox:r}):T.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):V(t)?T.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):Rr(t)?T.createElement(Ee,An({viewBox:r},t,{key:"label-implicit"})):null:null},Vj=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=ox(t),o=Ge(i,Ee).map(function(c,s){return N.cloneElement(c,{viewBox:r||a,key:"label-".concat(s)})});if(!n)return o;var u=Xj(t.label,r||a);return[u].concat($j(o))};Ee.parseViewBox=ox;Ee.renderCallByParent=Vj;var ps,fm;function Yj(){if(fm)return ps;fm=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return ps=e,ps}var Zj=Yj();const Jj=se(Zj);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)}var Qj=["valueAccessor"],eM=["data","dataKey","clockWise","id","textBreakAll"];function tM(e){return aM(e)||iM(e)||nM(e)||rM()}function rM(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
22In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nM(e,t){if(e){if(typeof e=="string")return wl(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 wl(e,t)}}function iM(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aM(e){if(Array.isArray(e))return wl(e)}function wl(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 zi(){return zi=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},zi.apply(this,arguments)}function hm(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 pm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hm(Object(r),!0).forEach(function(n){oM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oM(e,t,r){return t=uM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uM(e){var t=cM(e,"string");return Pn(t)=="symbol"?t:t+""}function cM(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(t==="string"?String:Number)(e)}function dm(e,t){if(e==null)return{};var r=sM(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 sM(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 lM=function(t){return Array.isArray(t.value)?Jj(t.value):t.value};function jt(e){var t=e.valueAccessor,r=t===void 0?lM:t,n=dm(e,Qj),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,c=n.textBreakAll,s=dm(n,eM);return!i||!i.length?null:T.createElement(pe,{className:"recharts-label-list"},i.map(function(f,l){var h=Z(a)?r(f,l):Be(f&&f.payload,a),p=Z(u)?{}:{id:"".concat(u,"-").concat(l)};return T.createElement(Ee,zi({},J(f,!0),s,p,{parentViewBox:f.parentViewBox,value:h,textBreakAll:c,viewBox:Ee.parseViewBox(Z(o)?f:pm(pm({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}jt.displayName="LabelList";function fM(e,t){return e?e===!0?T.createElement(jt,{key:"labelList-implicit",data:t}):T.isValidElement(e)||V(e)?T.createElement(jt,{key:"labelList-implicit",data:t,content:e}):Rr(e)?T.createElement(jt,zi({data:t},e,{key:"labelList-implicit"})):null:null}function hM(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=Ge(n,jt).map(function(o,u){return N.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=fM(e.label,t);return[a].concat(tM(i))}jt.renderCallByParent=hM;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 Ol(){return Ol=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},Ol.apply(this,arguments)}function vm(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 ym(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vm(Object(r),!0).forEach(function(n){pM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vm(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=vM(e,"string");return Tn(t)=="symbol"?t:t+""}function vM(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(t==="string"?String:Number)(e)}var yM=function(t,r){var n=et(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},ci=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,u=t.isExternal,c=t.cornerRadius,s=t.cornerIsExternal,f=c*(u?1:-1)+i,l=Math.asin(c/f)/Fi,h=s?a:a+o*l,p=Pe(r,n,f,h),y=Pe(r,n,i,h),v=s?a-o*l:a,d=Pe(r,n,f*Math.cos(l*Fi),v);return{center:p,circleTangency:y,lineTangency:d,theta:l}},ux=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,c=yM(o,u),s=o+c,f=Pe(r,n,a,o),l=Pe(r,n,a,s),h="M ".concat(f.x,",").concat(f.y,`
23    A `).concat(a,",").concat(a,`,0,
24    `).concat(+(Math.abs(c)>180),",").concat(+(o>s),`,
25    `).concat(l.x,",").concat(l.y,`
26  `);if(i>0){var p=Pe(r,n,i,o),y=Pe(r,n,i,s);h+="L ".concat(y.x,",").concat(y.y,`
27            A `).concat(i,",").concat(i,`,0,
28            `).concat(+(Math.abs(c)>180),",").concat(+(o<=s),`,
29            `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},mM=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,c=t.cornerIsExternal,s=t.startAngle,f=t.endAngle,l=et(f-s),h=ci({cx:r,cy:n,radius:a,angle:s,sign:l,cornerRadius:o,cornerIsExternal:c}),p=h.circleTangency,y=h.lineTangency,v=h.theta,d=ci({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:c}),b=d.circleTangency,x=d.lineTangency,w=d.theta,O=c?Math.abs(s-f):Math.abs(s-f)-v-w;if(O<0)return u?"M ".concat(y.x,",").concat(y.y,`
30        a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
31        a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
32      `):ux({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:s,endAngle:f});var m="M ".concat(y.x,",").concat(y.y,`
33    A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,`
34    A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(l<0),",").concat(b.x,",").concat(b.y,`
35    A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(x.x,",").concat(x.y,`
36  `);if(i>0){var g=ci({cx:r,cy:n,radius:i,angle:s,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),_=g.circleTangency,S=g.lineTangency,P=g.theta,M=ci({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),A=M.circleTangency,E=M.lineTangency,j=M.theta,$=c?Math.abs(s-f):Math.abs(s-f)-P-j;if($<0&&o===0)return"".concat(m,"L").concat(r,",").concat(n,"Z");m+="L".concat(E.x,",").concat(E.y,`
37      A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(A.x,",").concat(A.y,`
38      A`).concat(i,",").concat(i,",0,").concat(+($>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,`
39      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},gM={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},cx=function(t){var r=ym(ym({},gM),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,c=r.forceCornerRadius,s=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,h=r.className;if(o<a||f===l)return null;var p=ee("recharts-sector",h),y=o-a,v=tt(u,y,0,!0),d;return v>0&&Math.abs(f-l)<360?d=mM({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:c,cornerIsExternal:s,startAngle:f,endAngle:l}):d=ux({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),T.createElement("path",Ol({},J(r,!0),{className:p,d,role:"img"}))};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 _l(){return _l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
39for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_l.apply(this,arguments)}function mm(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 gm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mm(Object(r),!0).forEach(function(n){bM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bM(e,t,r){return t=xM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xM(e){var t=wM(e,"string");return En(t)=="symbol"?t:t+""}function wM(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(t==="string"?String:Number)(e)}var bm={curveBasisClosed:LO,curveBasisOpen:BO,curveBasis:qO,curveBumpX:SO,curveBumpY:AO,curveLinearClosed:FO,curveLinear:ya,curveMonotoneX:zO,curveMonotoneY:WO,curveNatural:UO,curveStep:HO,curveStepAfter:KO,curveStepBefore:GO},si=function(t){return t.x===+t.x&&t.y===+t.y},Xr=function(t){return t.x},Vr=function(t){return t.y},OM=function(t,r){if(V(t))return t;var n="curve".concat(da(t));return(n==="curveMonotone"||n==="curveBump")&&r?bm["".concat(n).concat(r==="vertical"?"Y":"X")]:bm[n]||ya},_M=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,c=t.connectNulls,s=c===void 0?!1:c,f=OM(n,u),l=s?a.filter(function(v){return si(v)}):a,h;if(Array.isArray(o)){var p=s?o.filter(function(v){return si(v)}):o,y=l.map(function(v,d){return gm(gm({},v),{},{base:p[d]})});return u==="vertical"?h=ei().y(Vr).x1(Xr).x0(function(v){return v.base.x}):h=ei().x(Xr).y1(Vr).y0(function(v){return v.base.y}),h.defined(si).curve(f),h(y)}return u==="vertical"&&q(o)?h=ei().y(Vr).x1(Xr).x0(o):q(o)?h=ei().x(Xr).y1(Vr).y0(o):h=cb().x(Xr).y(Vr),h.defined(si).curve(f),h(l)},Sl=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?_M(t):i;return N.createElement("path",_l({},J(t,!1),di(t),{className:ee("recharts-curve",r),d:o,ref:a}))},SM=Object.getOwnPropertyNames,AM=Object.getOwnPropertySymbols,PM=Object.prototype.hasOwnProperty;function xm(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function li(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 c=e(r,n,i);return a.delete(r),a.delete(n),c}}function wm(e){return SM(e).concat(AM(e))}var TM=Object.hasOwn||(function(e,t){return PM.call(e,t)});function er(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var EM="__v",jM="__o",MM="_owner",Om=Object.getOwnPropertyDescriptor,_m=Object.keys;function CM(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 $M(e,t){return er(e.getTime(),t.getTime())}function IM(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function DM(e,t){return e===t}function Sm(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,c=0;(o=a.next())&&!o.done;){for(var s=t.entries(),f=!1,l=0;(u=s.next())&&!u.done;){if(i[l]){l++;continue}var h=o.value,p=u.value;if(r.equals(h[0],p[0],c,l,e,t,r)&&r.equals(h[1],p[1],h[0],p[0],e,t,r)){f=i[l]=!0;break}l++}if(!f)return!1;c++}return!0}var kM=er;function RM(e,t,r){var n=_m(e),i=n.length;if(_m(t).length!==i)return!1;for(;i-- >0;)if(!sx(e,t,r,n[i]))return!1;return!0}function Yr(e,t,r){var n=wm(e),i=n.length;if(wm(t).length!==i)return!1;for(var a,o,u;i-- >0;)if(a=n[i],!sx(e,t,r,a)||(o=Om(e,a),u=Om(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function NM(e,t){return er(e.valueOf(),t.valueOf())}function qM(e,t){return e.source===t.source&&e.flags===t.flags}function Am(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 c=t.values(),s=!1,f=0;(u=c.next())&&!u.done;){if(!i[f]&&r.equals(o.value,u.value,o.value,u.value,e,t,r)){s=i[f]=!0;break}f++}if(!s)return!1}return!0}function LM(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 BM(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 sx(e,t,r,n){return(n===MM||n===jM||n===EM)&&(e.$$typeof||t.$$typeof)?!0:TM(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var FM="[object Arguments]",zM="[object Boolean]",WM="[object Date]",UM="[object Error]",HM="[object Map]",GM="[object Number]",KM="[object Object]",XM="[object RegExp]",VM="[object Set]",YM="[object String]",ZM="[object URL]",JM=Array.isArray,Pm=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,Tm=Object.assign,QM=Object.prototype.toString.call.bind(Object.prototype.toString);function eC(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,o=e.areNumbersEqual,u=e.areObjectsEqual,c=e.arePrimitiveWrappersEqual,s=e.areRegExpsEqual,f=e.areSetsEqual,l=e.areTypedArraysEqual,h=e.areUrlsEqual;return function(y,v,d){if(y===v)return!0;
39if(y==null||v==null)return!1;var b=typeof y;if(b!==typeof v)return!1;if(b!=="object")return b==="number"?o(y,v,d):b==="function"?i(y,v,d):!1;var x=y.constructor;if(x!==v.constructor)return!1;if(x===Object)return u(y,v,d);if(JM(y))return t(y,v,d);if(Pm!=null&&Pm(y))return l(y,v,d);if(x===Date)return r(y,v,d);if(x===RegExp)return s(y,v,d);if(x===Map)return a(y,v,d);if(x===Set)return f(y,v,d);var w=QM(y);return w===WM?r(y,v,d):w===XM?s(y,v,d):w===HM?a(y,v,d):w===VM?f(y,v,d):w===KM?typeof y.then!="function"&&typeof v.then!="function"&&u(y,v,d):w===ZM?h(y,v,d):w===UM?n(y,v,d):w===FM?u(y,v,d):w===zM||w===GM||w===YM?c(y,v,d):!1}}function tC(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?Yr:CM,areDatesEqual:$M,areErrorsEqual:IM,areFunctionsEqual:DM,areMapsEqual:n?xm(Sm,Yr):Sm,areNumbersEqual:kM,areObjectsEqual:n?Yr:RM,arePrimitiveWrappersEqual:NM,areRegExpsEqual:qM,areSetsEqual:n?xm(Am,Yr):Am,areTypedArraysEqual:n?Yr:LM,areUrlsEqual:BM};if(r&&(i=Tm({},i,r(i))),t){var a=li(i.areArraysEqual),o=li(i.areMapsEqual),u=li(i.areObjectsEqual),c=li(i.areSetsEqual);i=Tm({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:u,areSetsEqual:c})}return i}function rC(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function nC(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(c,s){var f=n(),l=f.cache,h=l===void 0?t?new WeakMap:void 0:l,p=f.meta;return r(c,s,{cache:h,equals:i,meta:p,strict:a})};if(t)return function(c,s){return r(c,s,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(c,s){return r(c,s,o)}}var iC=Dt();Dt({strict:!0});Dt({circular:!0});Dt({circular:!0,strict:!0});Dt({createInternalComparator:function(){return er}});Dt({strict:!0,createInternalComparator:function(){return er}});Dt({circular:!0,createInternalComparator:function(){return er}});Dt({circular:!0,createInternalComparator:function(){return er},strict:!0});function Dt(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=tC(e),c=eC(u),s=n?n(c):rC(c);return nC({circular:r,comparator:c,createState:i,equals:s,strict:o})}function aC(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Em(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):aC(i)};requestAnimationFrame(n)}function Al(e){"@babel/helpers - typeof";return Al=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},Al(e)}function oC(e){return lC(e)||sC(e)||cC(e)||uC()}function uC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
40In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cC(e,t){if(e){if(typeof e=="string")return jm(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 jm(e,t)}}function jm(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 sC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lC(e){if(Array.isArray(e))return e}function fC(){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=oC(o),c=u[0],s=u.slice(1);if(typeof c=="number"){Em(i.bind(null,s),c);return}i(c),Em(i.bind(null,s));return}Al(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 jn(e){"@babel/helpers - typeof";return jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jn(e)}function Mm(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 Cm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 161,141 bytes, lines 40-62
40t%2?Mm(Object(r),!0).forEach(function(n){lx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lx(e,t,r){return t=hC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hC(e){var t=pC(e,"string");return jn(t)==="symbol"?t:String(t)}function pC(e,t){if(jn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dC=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},vC=function(t){return t},yC=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},an=function(t,r){return Object.keys(r).reduce(function(n,i){return Cm(Cm({},n),{},lx({},i,t(i,r[i])))},{})},$m=function(t,r,n){return t.map(function(i){return"".concat(yC(i)," ").concat(r,"ms ").concat(n)}).join(",")};function mC(e,t){return xC(e)||bC(e,t)||fx(e,t)||gC()}function gC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
41In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function xC(e){if(Array.isArray(e))return e}function wC(e){return SC(e)||_C(e)||fx(e)||OC()}function OC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
42In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fx(e,t){if(e){if(typeof e=="string")return Pl(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 Pl(e,t)}}function _C(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function SC(e){if(Array.isArray(e))return Pl(e)}function Pl(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 Wi=1e-4,hx=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},px=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},Im=function(t,r){return function(n){var i=hx(t,r);return px(i,n)}},AC=function(t,r){return function(n){var i=hx(t,r),a=[].concat(wC(i.map(function(o,u){return o*u}).slice(1)),[0]);return px(a,n)}},Dm=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 c=r[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var s=c[1].split(")")[0].split(",").map(function(d){return parseFloat(d)}),f=mC(s,4);i=f[0],a=f[1],o=f[2],u=f[3]}}}var l=Im(i,o),h=Im(a,u),p=AC(i,o),y=function(b){return b>1?1:b<0?0:b},v=function(b){for(var x=b>1?1:b,w=x,O=0;O<8;++O){var m=l(w)-x,g=p(w);if(Math.abs(m-x)<Wi||g<Wi)return h(w);w=y(w-m/g)}return h(w)};return v.isStepper=!1,v},PC=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,c=function(f,l,h){var p=-(f-l)*n,y=h*a,v=h+(p-y)*u/1e3,d=h*u/1e3+f;return Math.abs(d-l)<Wi&&Math.abs(v)<Wi?[l,0]:[d,v]};return c.isStepper=!0,c.dt=u,c},TC=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 Dm(i);case"spring":return PC();default:if(i.split("(")[0]==="cubic-bezier")return Dm(i)}return typeof i=="function"?i:null};function Mn(e){"@babel/helpers - typeof";return Mn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mn(e)}function km(e){return MC(e)||jC(e)||dx(e)||EC()}function EC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
43In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function MC(e){if(Array.isArray(e))return El(e)}function Rm(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?Rm(Object(r),!0).forEach(function(n){Tl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tl(e,t,r){return t=CC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CC(e){var t=$C(e,"string");return Mn(t)==="symbol"?t:String(t)}function $C(e,t){if(Mn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function IC(e,t){return RC(e)||kC(e,t)||dx(e,t)||DC()}function DC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
44In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dx(e,t){if(e){if(typeof e=="string")return El(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 El(e,t)}}function El(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 kC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function RC(e){if(Array.isArray(e))return e}var Ui=function(t,r,n){return t+(r-t)*n},jl=function(t){var r=t.from,n=t.to;return r!==n},NC=function e(t,r,n){var i=an(function(a,o){if(jl(o)){var u=t(o.from,o.to,o.velocity),c=IC(u,2),s=c[0],f=c[1];return Ae(Ae({},o),{},{from:s,velocity:f})}return o},r);return n<1?an(function(a,o){return jl(o)?Ae(Ae({},o),{},{velocity:Ui(o.velocity,i[a].velocity,n),from:Ui(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const qC=(function(e,t,r,n,i){var a=dC(e,t),o=a.reduce(function(d,b){return Ae(Ae({},d),{},Tl({},b,[e[b],t[b]]))},{}),u=a.reduce(function(d,b){return Ae(Ae({},d),{},Tl({},b,{from:e[b],velocity:0,to:t[b]}))},{}),c=-1,s,f,l=function(){return null},h=function(){return an(function(b,x){return x.from},u)},p=function(){return!Object.values(u).filter(jl).length},y=function(b){s||(s=b);var x=b-s,w=x/r.dt;u=NC(r,u,w),i(Ae(Ae(Ae({},e),t),h())),s=b,p()||(c=requestAnimationFrame(l))},v=function(b){f||(f=b);var x=(b-f)/n,w=an(function(m,g){return Ui.apply(void 0,km(g).concat([r(x)]))},o);if(i(Ae(Ae(Ae({},e),t),w)),x<1)c=requestAnimationFrame(l);else{var O=an(function(m,g){return Ui.apply(void 0,km(g).concat([r(1)]))},o);i(Ae(Ae(Ae({},e),t),O))}};return l=r.isStepper?y:v,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(c)}}});function Or(e){"@babel/helpers - typeof";return Or=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},Or(e)}var LC=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function BC(e,t){if(e==null)return{};var r=FC(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 FC(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 ds(e){return HC(e)||UC(e)||WC(e)||zC()}function zC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
45In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WC(e,t){if(e){if(typeof e=="string")return Ml(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 Ml(e,t)}}function UC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function HC(e){if(Array.isArray(e))return Ml(e)}function Ml(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 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 Ve(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){en(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 en(e,t,r){return t=vx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KC(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,vx(n.key),n)}}function XC(e,t,r){return t&&KC(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vx(e){var t=VC(e,"string");return Or(t)==="symbol"?t:String(t)}function VC(e,t){if(Or(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Or(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function YC(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&&Cl(e,t)}function Cl(e,t){return Cl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Cl(e,t)}function ZC(e){var t=JC();return function(){var n=Hi(e),i;if(t){var a=Hi(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return $l(this,i)}}function $l(e,t){if(t&&(Or(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Il(e)}function Il(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JC(){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 Hi(e){return Hi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hi(e)}var xt=(function(e){YC(r,e);var t=ZC(r);function r(n,i){var a;GC(this,r),a=t.call(this,n,i);var o=a.props,u=o.isActive,c=o.attributeName,s=o.from,f=o.to,l=o.steps,h=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Il(a)),a.changeStyle=a.changeStyle.bind(Il(a)),!u||p<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:f}),$l(a);if(l&&l.length)a.state={style:l[0].style};else if(s){if(typeof h=="function")return a.state={style:s},$l(a);a.state={style:c?en({},c,s):s}}else a.state={style:{}};return a}return XC(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,c=a.attributeName,s=a.shouldReAnimate,f=a.to,l=a.from,h=this.state.style;if(u){if(!o){var p={style:c?en({},c,f):f};this.state&&h&&(c&&h[c]!==f||!c&&h!==f)&&this.setState(p);return}if(!(iC(i.to,f)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=y||s?l:i.to;if(this.state&&h){var d={style:c?en({},c,v):v};(c&&h[c]!==v||!c&&h!==v)&&this.setState(d)}this.runAnimation(Ve(Ve({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,u=i.to,c=i.duration,s=i.easing,f=i.begin,l=i.onAnimationEnd,h=i.onAnimationStart,p=qC(o,u,TC(s),c,this.changeStyle),y=function(){a.stopJSAnimation=p()};this.manager.start([h,f,y,c,l])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,c=i.onAnimationStart,s=o[0],f=s.style,l=s.duration,h=l===void 0?0:l,p=function(v,d,b){if(b===0)return v;var x=d.duration,w=d.easing,O=w===void 0?"ease":w,m=d.style,g=d.properties,_=d.onAnimationEnd,S=b>0?o[b-1]:d,P=g||Object.keys(m);if(typeof O=="function"||O==="spring")return[].concat(ds(v),[a.runJSAnimation.bind(a,{from:S.style,to:m,duration:x,easing:O}),x]);var M=$m(P,x,O),A=Ve(Ve(Ve({},S.style),m),{},{transition:M});return[].concat(ds(v),[A,x,_]).filter(vC)};return this.manager.start([c].concat(ds(o.reduce(p,[f,Math.max(h,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=fC());var a=i.begin,o=i.duration,u=i.attributeName,c=i.to,s=i.easing,f=i.onAnimationStart,l=i.onAnimationEnd,h=i.steps,p=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof s=="function"||typeof p=="function"||s==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var v=u?en({},u,c):c,d=$m(Object.keys(v),o,s);y.start([f,a,Ve(Ve({},v),{},{transition:d}),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 c=BC(i,LC),s=N.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!u||s===0||o<=0)return a;var l=function(p){var y=p.props,v=y.style,d=v===void 0?{}:v,b=y.className,x=N.cloneElement(p,Ve(Ve({},c),{},{style:Ve(Ve({},d),f),className:b}));return x};return s===1?l(N.Children.only(a)):T.createElement("div",null,N.Children.map(a,function(h){return l(h)}))}}]),r})(N.PureComponent);xt.displayName="Animate";xt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};xt.propTypes={from:re.oneOfType([re.object,re.string]),to:re.oneOfType([re.object,re.string]),attributeName:re.string,duration:re.number,begin:re.number,easing:re.oneOfType([re.string,re.func]),steps:re.arrayOf(re.shape({duration:re.number.isRequired,style:re.object.isRequired,easing:re.oneOfType([re.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),re.func]),properties:re.arrayOf("string"),onAnimationEnd:re.func})),children:re.oneOfType([re.node,re.func]),isActive:re.bool,canBegin:re.bool,onAnimationEnd:re.func,shouldReAnimate:re.bool,onAnimationStart:re.func,onAnimationReStart:re.func};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 Gi(){return Gi=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},Gi.apply(this,arguments)}function QC(e,t){return n$(e)||r$(e,t)||t$(e,t)||e$()}function e$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
46In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t$(e,t){if(e){if(typeof e=="string")return qm(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 qm(e,t)}}function qm(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 r$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function n$(e){if(Array.isArray(e))return e}function Lm(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 Bm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lm(Object(r),!0).forEach(function(n){i$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function i$(e,t,r){return t=a$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a$(e){var t=o$(e,"string");return Cn(t)=="symbol"?t:t+""}function o$(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(t==="string"?String:Number)(e)}var Fm=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=i>=0?1:-1,c=n>=0?1:-1,s=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var l=[0,0,0,0],h=0,p=4;h<p;h++)l[h]=a[h]>o?o:a[h];f="M".concat(t,",").concat(r+u*l[0]),l[0]>0&&(f+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(s,",").concat(t+c*l[0],",").concat(r)),f+="L ".concat(t+n-c*l[1],",").concat(r),l[1]>0&&(f+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(s,`,
47        `).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(s,`,
48        `).concat(t+n-c*l[2],",").concat(r+i)),f+="L ".concat(t+c*l[3],",").concat(r+i),l[3]>0&&(f+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(s,`,
49        `).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,`
50            A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+c*y,",").concat(r,`
51            L `).concat(t+n-c*y,",").concat(r,`
52            A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+n,",").concat(r+u*y,`
53            L `).concat(t+n,",").concat(r+i-u*y,`
54            A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+n-c*y,",").concat(r+i,`
55            L `).concat(t+c*y,",").concat(r+i,`
56            A `).concat(y,",").concat(y,",0,0,").concat(s,",").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},u$=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,u=r.width,c=r.height;if(Math.abs(u)>0&&Math.abs(c)>0){var s=Math.min(a,a+u),f=Math.max(a,a+u),l=Math.min(o,o+c),h=Math.max(o,o+c);return n>=s&&n<=f&&i>=l&&i<=h}return!1},c$={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Zf=function(t){var r=Bm(Bm({},c$),t),n=N.useRef(),i=N.useState(-1),a=QC(i,2),o=a[0],u=a[1];N.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&u(O)}catch{}},[]);var c=r.x,s=r.y,f=r.width,l=r.height,h=r.radius,p=r.className,y=r.animationEasing,v=r.animationDuration,d=r.animationBegin,b=r.isAnimationActive,x=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||f===0||l===0)return null;var w=ee("recharts-rectangle",p);return x?T.createElement(xt,{canBegin:o>0,from:{width:f,height:l,x:c,y:s},to:{width:f,height:l,x:c,y:s},duration:v,animationEasing:y,isActive:x},function(O){var m=O.width,g=O.height,_=O.x,S=O.y;return T.createElement(xt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:v,isActive:b,easing:y},T.createElement("path",Gi({},J(r,!0),{className:w,d:Fm(_,S,m,g,h),ref:n})))}):T.createElement("path",Gi({},J(r,!0),{className:w,d:Fm(c,s,f,l,h)}))};function Dl(){return Dl=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},Dl.apply(this,arguments)}var Jf=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=ee("recharts-dot",a);return r===+r&&n===+n&&i===+i?N.createElement("circle",Dl({},J(t,!1),di(t),{className:o,cx:r,cy:n,r:i})):null};function $n(e){"@babel/helpers - typeof";return $n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$n(e)}var s$=["x","y","top","left","width","height","className"];function kl(){return kl=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},kl.apply(this,arguments)}function zm(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?zm(Object(r),!0).forEach(function(n){f$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f$(e,t,r){return t=h$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h$(e){var t=p$(e,"string");return $n(t)=="symbol"?t:t+""}function p$(e,t){if($n(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($n(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function d$(e,t){if(e==null)return{};var r=v$(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 v$(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 y$=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},m$=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,c=t.left,s=c===void 0?0:c,f=t.width,l=f===void 0?0:f,h=t.height,p=h===void 0?0:h,y=t.className,v=d$(t,s$),d=l$({x:n,y:a,top:u,left:s,width:l,height:p},v);return!q(n)||!q(a)||!q(l)||!q(p)||!q(u)||!q(s)?null:T.createElement("path",kl({},J(d,!0),{className:ee("recharts-cross",y),d:y$(n,a,l,p,u,s)}))},vs,Wm;function g$(){if(Wm)return vs;Wm=1;var e=Cb(),t=e(Object.getPrototypeOf,Object);return vs=t,vs}var ys,Um;function b$(){if(Um)return ys;Um=1;var e=wt(),t=g$(),r=Ot(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,u=a.hasOwnProperty,c=o.call(Object);function s(f){if(!r(f)||e(f)!=n)return!1;var l=t(f);if(l===null)return!0;var h=u.call(l,"constructor")&&l.constructor;return typeof h=="function"&&h instanceof h&&o.call(h)==c}return ys=s,ys}var x$=b$();const w$=se(x$);var ms,Hm;function O$(){if(Hm)return ms;Hm=1;var e=wt(),t=Ot(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return ms=n,ms}var _$=O$();const S$=se(_$);function In(e){"@babel/helpers - typeof";return In=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},In(e)}function Ki(){return Ki=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},Ki.apply(this,arguments)}function A$(e,t){return j$(e)||E$(e,t)||T$(e,t)||P$()}function P$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
57In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function T$(e,t){if(e){if(typeof e=="string")return Gm(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 Gm(e,t)}}function Gm(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 E$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function j$(e){if(Array.isArray(e))return e}function Km(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Km(Object(r),!0).forEach(function(n){M$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Km(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function M$(e,t,r){return t=C$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C$(e){var t=$$(e,"string");return In(t)=="symbol"?t:t+""}function $$(e,t){if(In(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(In(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Vm=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},I$={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},D$=function(t){var r=Xm(Xm({},I$),t),n=N.useRef(),i=N.useState(-1),a=A$(i,2),o=a[0],u=a[1];N.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&u(w)}catch{}},[]);var c=r.x,s=r.y,f=r.upperWidth,l=r.lowerWidth,h=r.height,p=r.className,y=r.animationEasing,v=r.animationDuration,d=r.animationBegin,b=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||h!==+h||f===0&&l===0||h===0)return null;var x=ee("recharts-trapezoid",p);return b?T.createElement(xt,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:c,y:s},to:{upperWidth:f,lowerWidth:l,height:h,x:c,y:s},duration:v,animationEasing:y,isActive:b},function(w){var O=w.upperWidth,m=w.lowerWidth,g=w.height,_=w.x,S=w.y;return T.createElement(xt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:v,easing:y},T.createElement("path",Ki({},J(r,!0),{className:x,d:Vm(_,S,O,m,g),ref:n})))}):T.createElement("g",null,T.createElement("path",Ki({},J(r,!0),{className:x,d:Vm(c,s,f,l,h)})))},k$=["option","shapeType","propTransformer","activeClassName","isActive"];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 R$(e,t){if(e==null)return{};var r=N$(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 N$(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 Ym(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?Ym(Object(r),!0).forEach(function(n){q$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ym(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function q$(e,t,r){return t=L$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L$(e){var t=B$(e,"string");return Dn(t)=="symbol"?t:t+""}function B$(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)}function F$(e,t){return Xi(Xi({},t),e)}function z$(e,t){return e==="symbols"}function Zm(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return T.createElement(Zf,r);case"trapezoid":return T.createElement(D$,r);case"sector":return T.createElement(cx,r);case"symbols":if(z$(t))return T.createElement(yf,r);break;default:return null}}function W$(e){return N.isValidElement(e)?e.props:e}function U$(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?F$:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,c=R$(e,k$),s;if(N.isValidElement(t))s=N.cloneElement(t,Xi(Xi({},c),W$(t)));else if(V(t))s=t(c);else if(w$(t)&&!S$(t)){var f=i(t,c);s=T.createElement(Zm,{shapeType:r,elementProps:f})}else{var l=c;s=T.createElement(Zm,{shapeType:r,elementProps:l})}return u?T.createElement(pe,{className:o},s):s}function $a(e,t){return t!=null&&"trapezoids"in e.props}function Ia(e,t){return t!=null&&"sectors"in e.props}function kn(e,t){return t!=null&&"points"in e.props}function H$(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 G$(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function K$(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function X$(e,t){var r;return $a(e,t)?r=H$:Ia(e,t)?r=G$:kn(e,t)&&(r=K$),r}function V$(e,t){var r;return $a(e,t)?r="trapezoids":Ia(e,t)?r="sectors":kn(e,t)&&(r="points"),r}function Y$(e,t){if($a(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(Ia(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 kn(e,t)?t.payload:{}}function Z$(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=V$(r,t),a=Y$(r,t),o=n.filter(function(c,s){var f=ja(a,c),l=r.props[i].filter(function(y){var v=X$(r,t);return v(y,t)}),h=r.props[i].indexOf(l[l.length-1]),p=s===h;return f&&p}),u=n.indexOf(o[o.length-1]);return u}var gs,Jm;function J$(){if(Jm)return gs;Jm=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var u=-1,c=t(e((i-n)/(a||1)),0),s=Array(c);c--;)s[o?c:++u]=n,n+=a;return s}return gs=r,gs}var bs,Qm;function yx(){if(Qm)return bs;Qm=1;var e=Kb(),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 bs=n,bs}var xs,eg;function Q$(){if(eg)return xs;eg=1;var e=J$(),t=xa(),r=yx();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 xs=n,xs}var ws,tg;function eI(){if(tg)return ws;tg=1;var e=Q$(),t=e();return ws=t,ws}var tI=eI();const Vi=se(tI);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 rg(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 ng(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rg(Object(r),!0).forEach(function(n){mx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mx(e,t,r){return t=rI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rI(e){var t=nI(e,"string");return Rn(t)=="symbol"?t:t+""}function nI(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(t==="string"?String:Number)(e)}var iI=["Webkit","Moz","O","ms"],aI=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=iI.reduce(function(a,o){return ng(ng({},a),{},mx({},o+n,r))},{});return i[t]=r,i};function _r(e){"@babel/helpers - typeof";return _r=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},_r(e)}function Yi(){return Yi=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},Yi.apply(this,arguments)}function ig(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 Os(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ig(Object(r),!0).forEach(function(n){Ne(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ig(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ag(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 uI(e,t,r){return t&&ag(e.prototype,t),r&&ag(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function cI(e,t,r){return t=Zi(t),sI(e,gx()?Reflect.construct(t,r||[],Zi(e).constructor):t.apply(e,r))}function sI(e,t){if(t&&(_r(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lI(e)}function lI(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 Zi(e){return Zi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zi(e)}function fI(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&&Rl(e,t)}function Rl(e,t){return Rl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Rl(e,t)}function Ne(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=hI(e,"string");return _r(t)=="symbol"?t:t+""}function hI(e,t){if(_r(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_r(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var pI=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 c=r.length,s=rn().domain(Vi(0,c)).range([a,a+o-u]),f=s.domain().map(function(l){return s(l)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:s(n),endX:s(i),scale:s,scaleValues:f}},og=function(t){return t.changedTouches&&!!t.changedTouches.length},Sr=(function(e){function t(r){var n;return oI(this,t),n=cI(this,t,[r]),Ne(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Ne(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Ne(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o?.({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),Ne(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Ne(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Ne(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Ne(n,"handleSlideDragStart",function(i){var a=og(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 fI(t,e),uI(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,c=u.gap,s=u.data,f=s.length-1,l=Math.min(i,a),h=Math.max(i,a),p=t.getIndexInRange(o,l),y=t.getIndexInRange(o,h);return{startIndex:p-p%c,endIndex:y===f?f:y-y%c}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,c=Be(a[n],u,n);return V(o)?o(c,n):c}},{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,c=this.props,s=c.x,f=c.width,l=c.travellerWidth,h=c.startIndex,p=c.endIndex,y=c.onChange,v=n.pageX-a;v>0?v=Math.min(v,s+f-l-u,s+f-l-o):v<0&&(v=Math.max(v,s-o,s-u));var d=this.getIndex({startX:o+v,endX:u+v});(d.startIndex!==h||d.endIndex!==p)&&y&&y(d),this.setState({startX:o+v,endX:u+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=og(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,c=i.startX,s=this.state[o],f=this.props,l=f.x,h=f.width,p=f.travellerWidth,y=f.onChange,v=f.gap,d=f.data,b={startX:this.state.startX,endX:this.state.endX},x=n.pageX-a;x>0?x=Math.min(x,l+h-p-s):x<0&&(x=Math.max(x,l-s)),b[o]=s+x;var w=this.getIndex(b),O=w.startIndex,m=w.endIndex,g=function(){var S=d.length-1;return o==="startX"&&(u>c?O%v===0:m%v===0)||u<c&&m===S||o==="endX"&&(u>c?m%v===0:O%v===0)||u>c&&m===S};this.setState(Ne(Ne({},o,s+x),"brushMoveStartX",n.pageX),function(){y&&g()&&y(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,c=o.startX,s=o.endX,f=this.state[i],l=u.indexOf(f);if(l!==-1){var h=l+n;if(!(h===-1||h>=u.length)){var p=u[h];i==="startX"&&p>=s||i==="endX"&&p<=c||this.setState(Ne({},i,p),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,c=n.fill,s=n.stroke;return T.createElement("rect",{stroke:s,fill:c,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,c=n.data,s=n.children,f=n.padding,l=N.Children.only(s);return l?T.cloneElement(l,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,c=this.props,s=c.y,f=c.travellerWidth,l=c.height,h=c.traveller,p=c.ariaLabel,y=c.data,v=c.startIndex,d=c.endIndex,b=Math.max(n,this.props.x),x=Os(Os({},J(this.props,!1)),{},{x:b,y:s,width:f,height:l}),w=p||"Min value: ".concat((a=y[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[d])===null||o===void 0?void 0:o.name);return T.createElement(pe,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(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(h,x))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,c=a.stroke,s=a.travellerWidth,f=Math.min(n,i)+s,l=Math.max(Math.abs(i-n)-s,0);return T.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,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,c=n.travellerWidth,s=n.stroke,f=this.state,l=f.startX,h=f.endX,p=5,y={pointerEvents:"none",fill:s};return T.createElement(pe,{className:"recharts-brush-texts"},T.createElement(Pi,Yi({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,h)-p,y:o+u/2},y),this.getTextOfTick(i)),T.createElement(Pi,Yi({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,h)+c+p,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,c=n.y,s=n.width,f=n.height,l=n.alwaysShowText,h=this.state,p=h.startX,y=h.endX,v=h.isTextActive,d=h.isSlideMoving,b=h.isTravellerMoving,x=h.isTravellerFocused;if(!i||!i.length||!q(u)||!q(c)||!q(s)||!q(f)||s<=0||f<=0)return null;var w=ee("recharts-brush",a),O=T.Children.count(o)===1,m=aI("userSelect","none");return T.createElement(pe,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(v||d||b||x||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,c=n.stroke,s=Math.floor(a+u/2)-1;return T.createElement(T.Fragment,null,T.createElement("rect",{x:i,y:a,width:o,height:u,fill:c,stroke:"none"}),T.createElement("line",{x1:i+1,y1:s,x2:i+o-1,y2:s,fill:"none",stroke:"#fff"}),T.createElement("line",{x1:i+1,y1:s+2,x2:i+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return T.isValidElement(n)?a=T.cloneElement(n,i):V(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,c=n.travellerWidth,s=n.updateId,f=n.startIndex,l=n.endIndex;if(a!==i.prevData||s!==i.prevUpdateId)return Os({prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o},a&&a.length?pI({data:a,width:o,x:u,travellerWidth:c,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([u,u+o-c]);var h=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,u=a-1;u-o>1;){var c=Math.floor((o+u)/2);n[c]>i?u=c:o=c}return i>=n[u]?u:o}}])})(N.PureComponent);Ne(Sr,"displayName","Brush");Ne(Sr,"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 _s,ug;function dI(){if(ug)return _s;ug=1;var e=_f();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return _s=t,_s}var Ss,cg;function vI(){if(cg)return Ss;cg=1;var e=Sb(),t=Ct(),r=dI(),n=De(),i=xa();function a(o,u,c){var s=n(o)?e:r;return c&&i(o,u,c)&&(u=void 0),s(o,t(u,3))}return Ss=a,Ss}var yI=vI();const mI=se(yI);var at=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},As,sg;function gI(){if(sg)return As;sg=1;var e=zb();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return As=t,As}var Ps,lg;function bI(){if(lg)return Ps;lg=1;var e=gI(),t=Bb(),r=Ct();function n(i,a){var o={};return a=r(a,3),t(i,function(u,c,s){e(o,c,a(u,c,s))}),o}return Ps=n,Ps}var xI=bI();const wI=se(xI);var Ts,fg;function OI(){if(fg)return Ts;fg=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 Ts=e,Ts}var Es,hg;function _I(){if(hg)return Es;hg=1;var e=_f();function t(r,n){var i=!0;return e(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return Es=t,Es}var js,pg;function SI(){if(pg)return js;pg=1;var e=OI(),t=_I(),r=Ct(),n=De(),i=xa();function a(o,u,c){var s=n(o)?e:t;return c&&i(o,u,c)&&(u=void 0),s(o,r(u,3))}return js=a,js}var AI=SI();const xx=se(AI);var PI=["x","y"];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 Nl(){return Nl=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},Nl.apply(this,arguments)}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 Zr(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){TI(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 TI(e,t,r){return t=EI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EI(e){var t=jI(e,"string");return Nn(t)=="symbol"?t:t+""}function jI(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(t==="string"?String:Number)(e)}function MI(e,t){if(e==null)return{};var r=CI(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 CI(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 $I(e,t){var r=e.x,n=e.y,i=MI(e,PI),a="".concat(r),o=parseInt(a,10),u="".concat(n),c=parseInt(u,10),s="".concat(t.height||i.height),f=parseInt(s,10),l="".concat(t.width||i.width),h=parseInt(l,10);return Zr(Zr(Zr(Zr(Zr({},t),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function vg(e){return T.createElement(U$,Nl({shapeType:"rectangle",propTransformer:$I,activeClassName:"recharts-active-bar"},e))}var II=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=q(n)||Hw(n);return a?t(n,i):(a||Vt(),r)}},DI=["value","background"],wx;function Ar(e){"@babel/helpers - typeof";return Ar=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},Ar(e)}function kI(e,t){if(e==null)return{};var r=RI(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 RI(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 Ji(){return Ji=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},Ji.apply(this,arguments)}function yg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yg(Object(r),!0).forEach(function(n){Tt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function NI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mg(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,_x(n.key),n)}}function qI(e,t,r){return t&&mg(e.prototype,t),r&&mg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function LI(e,t,r){return t=Qi(t),BI(e,Ox()?Reflect.construct(t,r||[],Qi(e).constructor):t.apply(e,r))}function BI(e,t){if(t&&(Ar(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return FI(e)}function FI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ox(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ox=function(){return!!e})()}function Qi(e){return Qi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qi(e)}function zI(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&&ql(e,t)}function ql(e,t){return ql=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ql(e,t)}function Tt(e,t,r){return t=_x(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _x(e){var t=WI(e,"string");return Ar(t)=="symbol"?t:t+""}function WI(e,t){if(Ar(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ar(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Zn=(function(e){function t(){var r;NI(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=LI(this,t,[].concat(i)),Tt(r,"state",{isAnimationFinished:!1}),Tt(r,"id",Un("recharts-bar-")),Tt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Tt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return zI(t,e),qI(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,c=a.activeIndex,s=a.activeBar,f=J(this.props,!1);return n&&n.map(function(l,h){var p=h===c,y=p?s:o,v=ve(ve(ve({},f),l),{},{isActive:p,option:y,index:h,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return T.createElement(pe,Ji({className:"recharts-bar-rectangle"},vi(i.props,l,h),{key:"rectangle-".concat(l?.x,"-").concat(l?.y,"-").concat(l?.value,"-").concat(h)}),T.createElement(vg,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,c=i.animationBegin,s=i.animationDuration,f=i.animationEasing,l=i.animationId,h=this.state.prevData;return T.createElement(xt,{begin:c,duration:s,isActive:u,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var y=p.t,v=a.map(function(d,b){var x=h&&h[b];if(x){var w=Je(x.x,d.x),O=Je(x.y,d.y),m=Je(x.width,d.width),g=Je(x.height,d.height);return ve(ve({},d),{},{x:w(y),y:O(y),width:m(y),height:g(y)})}if(o==="horizontal"){var _=Je(0,d.height),S=_(y);return ve(ve({},d),{},{y:d.y+d.height-S,height:S})}var P=Je(0,d.width),M=P(y);return ve(ve({},d),{},{width:M})});return T.createElement(pe,null,n.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!ja(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,c=J(this.props.background,!1);return a.map(function(s,f){s.value;var l=s.background,h=kI(s,DI);if(!l)return null;var p=ve(ve(ve(ve(ve({},h),{},{fill:"#eee"},l),c),vi(n.props,s,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return T.createElement(vg,Ji({key:"background-bar-".concat(f),option:n.props.background,isActive:f===u},p))})}},{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,c=a.yAxis,s=a.layout,f=a.children,l=Ge(f,Yn);if(!l)return null;var h=s==="vertical"?o[0].height/2:o[0].width/2,p=function(d,b){var x=Array.isArray(d.value)?d.value[1]:d.value;return{x:d.x,y:d.y,value:x,errorVal:Be(d,b)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return T.createElement(pe,y,l.map(function(v){return T.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:u,yAxis:c,layout:s,offset:h,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,c=n.yAxis,s=n.left,f=n.top,l=n.width,h=n.height,p=n.isAnimationActive,y=n.background,v=n.id;if(i||!a||!a.length)return null;var d=this.state.isAnimationFinished,b=ee("recharts-bar",o),x=u&&u.allowDataOverflow,w=c&&c.allowDataOverflow,O=x||w,m=Z(v)?this.id:v;return T.createElement(pe,{className:b},x||w?T.createElement("defs",null,T.createElement("clipPath",{id:"clipPath-".concat(m)},T.createElement("rect",{x:x?s:s-l/2,y:w?f:f-h/2,width:x?l:l*2,height:w?h:h*2}))):null,T.createElement(pe,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(m,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,m),(!p||d)&&jt.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}}])})(N.PureComponent);wx=Zn;Tt(Zn,"displayName","Bar");Tt(Zn,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!qr.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Tt(Zn,"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,c=e.yAxisTicks,s=e.stackedData,f=e.dataStartIndex,l=e.displayedData,h=e.offset,p=cj(n,r);if(!p)return null;var y=t.layout,v=r.type.defaultProps,d=v!==void 0?ve(ve({},v),r.props):r.props,b=d.dataKey,x=d.children,w=d.minPointSize,O=y==="horizontal"?o:a,m=s?O.scale.domain():null,g=vj({numericAxis:O}),_=Ge(x,Vb),S=l.map(function(P,M){var A,E,j,$,C,D;s?A=sj(s[f+M],m):(A=Be(P,b),Array.isArray(A)||(A=[g,A]));var k=II(w,wx.defaultProps.minPointSize)(A[1],M);if(y==="horizontal"){var L,B=[o.scale(A[0]),o.scale(A[1])],U=B[0],G=B[1];E=nm({axis:a,ticks:u,bandSize:i,offset:p.offset,entry:P,index:M}),j=(L=G??U)!==null&&L!==void 0?L:void 0,$=p.size;var z=U-G;if(C=Number.isNaN(z)?0:z,D={x:E,y:o.y,width:$,height:o.height},Math.abs(k)>0&&Math.abs(C)<Math.abs(k)){var K=et(C||k)*(Math.abs(k)-Math.abs(C));j-=K,C+=K}}else{var ue=[a.scale(A[0]),a.scale(A[1])],de=ue[0],ke=ue[1];if(E=de,j=nm({axis:o,ticks:c,bandSize:i,offset:p.offset,entry:P,index:M}),$=ke-de,C=p.size,D={x:a.x,y:j,width:a.width,height:C},Math.abs(k)>0&&Math.abs($)<Math.abs(k)){var kt=et($||k)*(Math.abs(k)-Math.abs($));$+=kt}}return ve(ve(ve({},P),{},{x:E,y:j,width:$,height:C,value:s?A:A[1],payload:P,background:D},_&&_[M]&&_[M].props),{},{tooltipPayload:[ix(r,P)],tooltipPosition:{x:E+$/2,y:j+C/2}})});return ve({data:S,layout:y},h)});function qn(e){"@babel/helpers - typeof";return qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qn(e)}function UI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gg(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 HI(e,t,r){return t&&gg(e.prototype,t),r&&gg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function bg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ye(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bg(Object(r),!0).forEach(function(n){Da(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Da(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=GI(e,"string");return qn(t)=="symbol"?t:t+""}function GI(e,t){if(qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var KI=function(t,r,n,i,a){var o=t.width,u=t.height,c=t.layout,s=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},h=!!qe(s,Zn);return f.reduce(function(p,y){var v=r[y],d=v.orientation,b=v.domain,x=v.padding,w=x===void 0?{}:x,O=v.mirror,m=v.reversed,g="".concat(d).concat(O?"Mirror":""),_,S,P,M,A;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var E=b[1]-b[0],j=1/0,$=v.categoricalDomain.sort(Xw);if($.forEach(function(ue,de){de>0&&(j=Math.min((ue||0)-($[de-1]||0),j))}),Number.isFinite(j)){var C=j/E,D=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(_=C*D/2),v.padding==="no-gap"){var k=tt(t.barCategoryGap,C*D),L=C*D/2;_=L-k-(L-k)/D*k}}}i==="xAxis"?S=[n.left+(w.left||0)+(_||0),n.left+n.width-(w.right||0)-(_||0)]:i==="yAxis"?S=c==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(_||0),n.top+n.height-(w.bottom||0)-(_||0)]:S=v.range,m&&(S=[S[1],S[0]]);var B=ex(v,a,h),U=B.scale,G=B.realScaleType;U.domain(b).range(S),tx(U);var z=rx(U,Ye(Ye({},v),{},{realScaleType:G}));i==="xAxis"?(A=d==="top"&&!O||d==="bottom"&&O,P=n.left,M=l[g]-A*v.height):i==="yAxis"&&(A=d==="left"&&!O||d==="right"&&O,P=l[g]-A*v.width,M=n.top);var K=Ye(Ye(Ye({},v),z),{},{realScaleType:G,x:P,y:M,scale:U,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return K.bandSize=Bi(K,z),!v.hide&&i==="xAxis"?l[g]+=(A?-1:1)*K.height:v.hide||(l[g]+=(A?-1:1)*K.width),Ye(Ye({},p),{},Da({},y,K))},{})},Ax=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)}},XI=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return Ax({x:r,y:n},{x:i,y:a})},Px=(function(){function e(t){UI(this,e),this.scale=t}return HI(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 c=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+c}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)}}])})();Da(Px,"EPS",1e-4);var Qf=function(t){var r=Object.keys(t).reduce(function(n,i){return Ye(Ye({},n),{},Da({},i,Px.create(t[i])))},{});return Ye(Ye({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return wI(i,function(c,s){return r[s].apply(c,{bandAware:o,position:u})})},isInRange:function(i){return xx(i,function(a,o){return r[o].isInRange(a)})}})};function VI(e){return(e%180+180)%180}var YI=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=VI(i),o=a*Math.PI/180,u=Math.atan(n/r),c=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(c)},Ms,xg;function ZI(){if(xg)return Ms;xg=1;var e=Ct(),t=Hn(),r=ga();function n(i){return function(a,o,u){var c=Object(a);if(!t(a)){var s=e(o,3);a=r(a),o=function(l){return s(c[l],l,c)}}var f=i(a,o,u);return f>-1?c[s?a[f]:f]:void 0}}return Ms=n,Ms}var Cs,wg;function JI(){if(wg)return Cs;wg=1;var e=yx();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return Cs=t,Cs}var $s,Og;function QI(){if(Og)return $s;Og=1;var e=kb(),t=Ct(),r=JI(),n=Math.max;function i(a,o,u){var c=a==null?0:a.length;if(!c)return-1;var s=u==null?0:r(u);return s<0&&(s=n(c+s,0)),e(a,t(o,3),s)}return $s=i,$s}var Is,_g;function eD(){if(_g)return Is;_g=1;var e=ZI(),t=QI(),r=e(t);return Is=r,Is}var tD=eD();const rD=se(tD);var nD=Zg();const iD=se(nD);var aD=iD(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("")}),eh=N.createContext(void 0),th=N.createContext(void 0),Tx=N.createContext(void 0),Ex=N.createContext({}),jx=N.createContext(void 0),Mx=N.createContext(0),Cx=N.createContext(0),Sg=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,u=t.children,c=t.width,s=t.height,f=aD(a);return T.createElement(eh.Provider,{value:n},T.createElement(th.Provider,{value:i},T.createElement(Ex.Provider,{value:a},T.createElement(Tx.Provider,{value:f},T.createElement(jx.Provider,{value:o},T.createElement(Mx.Provider,{value:s},T.createElement(Cx.Provider,{value:c},u)))))))},oD=function(){return N.useContext(jx)},$x=function(t){var r=N.useContext(eh);r==null&&Vt();var n=r[t];return n==null&&Vt(),n},uD=function(){var t=N.useContext(eh);return Pt(t)},cD=function(){var t=N.useContext(th),r=rD(t,function(n){return xx(n.domain,Number.isFinite)});return r||Pt(t)},Ix=function(t){var r=N.useContext(th);r==null&&Vt();var n=r[t];return n==null&&Vt(),n},sD=function(){var t=N.useContext(Tx);return t},lD=function(){return N.useContext(Ex)},rh=function(){return N.useContext(Cx)},nh=function(){return N.useContext(Mx)};function Pr(e){"@babel/helpers - typeof";return Pr=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},Pr(e)}function fD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hD(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,kx(n.key),n)}}function pD(e,t,r){return t&&hD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dD(e,t,r){return t=ea(t),vD(e,Dx()?Reflect.construct(t,r||[],ea(e).constructor):t.apply(e,r))}function vD(e,t){if(t&&(Pr(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 Dx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Dx=function(){return!!e})()}function ea(e){return ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ea(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&&Ll(e,t)}function Ll(e,t){return Ll=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ll(e,t)}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 Pg(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){ih(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 ih(e,t,r){return t=kx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kx(e){var t=gD(e,"string");return Pr(t)=="symbol"?t:t+""}function gD(e,t){if(Pr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function bD(e,t){return _D(e)||OD(e,t)||wD(e,t)||xD()}function xD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
58In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wD(e,t){if(e){if(typeof e=="string")return Tg(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 Tg(e,t)}}function Tg(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 OD(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function _D(e){if(Array.isArray(e))return e}function Bl(){return Bl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bl.apply(this,arguments)}var SD=function(t,r){var n;return T.isValidElement(t)?n=T.cloneElement(t,r):V(t)?n=t(r):n=T.createElement("line",Bl({},r,{className:"recharts-reference-line-line"})),n},AD=function(t,r,n,i,a,o,u,c,s){var f=a.x,l=a.y,h=a.width,p=a.height;if(n){var y=s.y,v=t.y.apply(y,{position:o});if(at(s,"discard")&&!t.y.isInRange(v))return null;var d=[{x:f+h,y:v},{x:f,y:v}];return c==="left"?d.reverse():d}if(r){var b=s.x,x=t.x.apply(b,{position:o});if(at(s,"discard")&&!t.x.isInRange(x))return null;var w=[{x,y:l+p},{x,y:l}];return u==="top"?w.reverse():w}if(i){var O=s.segment,m=O.map(function(g){return t.apply(g,{position:o})});return at(s,"discard")&&mI(m,function(g){return!t.isInRange(g)})?null:m}return null};function PD(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,u=e.className,c=e.alwaysShow,s=oD(),f=$x(i),l=Ix(a),h=sD();if(!s||!h)return null;vt(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=Qf({x:f.scale,y:l.scale}),y=we(t),v=we(r),d=n&&n.length===2,b=AD(p,y,v,d,h,e.position,f.orientation,l.orientation,e);if(!b)return null;var x=bD(b,2),w=x[0],O=w.x,m=w.y,g=x[1],_=g.x,S=g.y,P=at(e,"hidden")?"url(#".concat(s,")"):void 0,M=Pg(Pg({clipPath:P},J(e,!0)),{},{x1:O,y1:m,x2:_,y2:S});return T.createElement(pe,{className:ee("recharts-reference-line",u)},SD(o,M),Ee.renderCallByParent(e,XI({x1:O,y1:m,x2:_,y2:S})))}var ah=(function(e){function t(){return fD(this,t),dD(this,t,arguments)}return mD(t,e),pD(t,[{key:"render",value:function(){return T.createElement(PD,this.props)}}])})(T.Component);ih(ah,"displayName","ReferenceLine");ih(ah,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Fl(){return Fl=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},Fl.apply(this,arguments)}function Tr(e){"@babel/helpers - typeof";return Tr=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},Tr(e)}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 jg(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){ka(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 TD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ED(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,Nx(n.key),n)}}function jD(e,t,r){return t&&ED(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function MD(e,t,r){return t=ta(t),CD(e,Rx()?Reflect.construct(t,r||[],ta(e).constructor):t.apply(e,r))}function CD(e,t){if(t&&(Tr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $D(e)}function $D(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rx=function(){return!!e})()}function ta(e){return ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ta(e)}function ID(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zl(e,t)}function zl(e,t){return zl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},zl(e,t)}function ka(e,t,r){return t=Nx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nx(e){var t=DD(e,"string");return Tr(t)=="symbol"?t:t+""}function DD(e,t){if(Tr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var kD=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=Qf({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return at(t,"discard")&&!o.isInRange(u)?null:u},Ra=(function(e){function t(){return TD(this,t),MD(this,t,arguments)}return ID(t,e),jD(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,u=n.alwaysShow,c=n.clipPathId,s=we(i),f=we(a);if(vt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!f)return null;var l=kD(this.props);if(!l)return null;var h=l.x,p=l.y,y=this.props,v=y.shape,d=y.className,b=at(this.props,"hidden")?"url(#".concat(c,")"):void 0,x=jg(jg({clipPath:b},J(this.props,!0)),{},{cx:h,cy:p});return T.createElement(pe,{className:ee("recharts-reference-dot",d)},t.renderDot(v,x),Ee.renderCallByParent(this.props,{x:h-o,y:p-o,width:2*o,height:2*o}))}}])})(T.Component);ka(Ra,"displayName","ReferenceDot");ka(Ra,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});ka(Ra,"renderDot",function(e,t){var r;return T.isValidElement(e)?r=T.cloneElement(e,t):V(e)?r=e(t):r=T.createElement(Jf,Fl({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Wl(){return Wl=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},Wl.apply(this,arguments)}function Er(e){"@babel/helpers - typeof";return Er=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},Er(e)}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){Na(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 RD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ND(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,Lx(n.key),n)}}function qD(e,t,r){return t&&ND(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function LD(e,t,r){return t=ra(t),BD(e,qx()?Reflect.construct(t,r||[],ra(e).constructor):t.apply(e,r))}function BD(e,t){if(t&&(Er(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return FD(e)}function FD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qx=function(){return!!e})()}function ra(e){return ra=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ra(e)}function zD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ul(e,t)}function Ul(e,t){return Ul=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ul(e,t)}function Na(e,t,r){return t=Lx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lx(e){var t=WD(e,"string");return Er(t)=="symbol"?t:t+""}function WD(e,t){if(Er(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Er(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var UD=function(t,r,n,i,a){var o=a.x1,u=a.x2,c=a.y1,s=a.y2,f=a.xAxis,l=a.yAxis;if(!f||!l)return null;var h=Qf({x:f.scale,y:l.scale}),p={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(c,{position:"start"}):h.y.rangeMin},y={x:r?h.x.apply(u,{position:"end"}):h.x.rangeMax,y:i?h.y.apply(s,{position:"end"}):h.y.rangeMax};return at(a,"discard")&&(!h.isInRange(p)||!h.isInRange(y))?null:Ax(p,y)},qa=(function(e){function t(){return RD(this,t),LD(this,t,arguments)}return zD(t,e),qD(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,u=n.y2,c=n.className,s=n.alwaysShow,f=n.clipPathId;vt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=we(i),h=we(a),p=we(o),y=we(u),v=this.props.shape;if(!l&&!h&&!p&&!y&&!v)return null;var d=UD(l,h,p,y,this.props);if(!d&&!v)return null;var b=at(this.props,"hidden")?"url(#".concat(f,")"):void 0;return T.createElement(pe,{className:ee("recharts-reference-area",c)},t.renderRect(v,Cg(Cg({clipPath:b},J(this.props,!0)),d)),Ee.renderCallByParent(this.props,d))}}])})(T.Component);Na(qa,"displayName","ReferenceArea");Na(qa,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Na(qa,"renderRect",function(e,t){var r;return T.isValidElement(e)?r=T.cloneElement(e,t):V(e)?r=e(t):r=T.createElement(Zf,Wl({},t,{className:"recharts-reference-area-rect"})),r});function Bx(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 HD(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return YI(n,r)}function GD(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 na(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 KD(e,t){return Bx(e,t+1)}function XD(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,u=t.end,c=0,s=1,f=o,l=function(){var y=n?.[c];if(y===void 0)return{v:Bx(n,s)};var v=c,d,b=function(){return d===void 0&&(d=r(y,v)),d},x=y.coordinate,w=c===0||na(e,x,b,f,u);w||(c=0,f=o,s+=1),w&&(f=x+e*(b()/2+i),c+=s)},h;s<=a.length;)if(h=l(),h)return h.v;return[]}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 $g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Te(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$g(Object(r),!0).forEach(function(n){VD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$g(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VD(e,t,r){return t=YD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YD(e){var t=ZD(e,"string");return Ln(t)=="symbol"?t:t+""}function ZD(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(t==="string"?String:Number)(e)}function JD(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=t.start,c=t.end,s=function(h){var p=a[h],y,v=function(){return y===void 0&&(y=r(p,h)),y};if(h===o-1){var d=e*(p.coordinate+e*v()/2-c);a[h]=p=Te(Te({},p),{},{tickCoord:d>0?p.coordinate-d*e:p.coordinate})}else a[h]=p=Te(Te({},p),{},{tickCoord:p.coordinate});var b=na(e,p.tickCoord,v,u,c);b&&(c=p.tickCoord-e*(v()/2+i),a[h]=Te(Te({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)s(f);return a}function QD(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,c=t.start,s=t.end;if(a){var f=n[u-1],l=r(f,u-1),h=e*(f.coordinate+e*l/2-s);o[u-1]=f=Te(Te({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var p=na(e,f.tickCoord,function(){return l},c,s);p&&(s=f.tickCoord-e*(l/2+i),o[u-1]=Te(Te({},f),{},{isShow:!0}))}for(var y=a?u-1:u,v=function(x){var w=o[x],O,m=function(){return O===void 0&&(O=r(w,x)),O};if(x===0){var g=e*(w.coordinate-e*m()/2-c);o[x]=w=Te(Te({},w),{},{tickCoord:g<0?w.coordinate-g*e:w.coordinate})}else o[x]=w=Te(Te({},w),{},{tickCoord:w.coordinate});var _=na(e,w.tickCoord,m,c,s);_&&(c=w.tickCoord+e*(m()/2+i),o[x]=Te(Te({},w),{},{isShow:!0}))},d=0;d<y;d++)v(d);return o}function oh(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,u=e.orientation,c=e.interval,s=e.tickFormatter,f=e.unit,l=e.angle;if(!i||!i.length||!n)return[];if(q(c)||qr.isSsr)return KD(i,typeof c=="number"&&q(c)?c:0);var h=[],p=u==="top"||u==="bottom"?"width":"height",y=f&&p==="width"?tn(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(w,O){var m=V(s)?s(w.value,O):w.value;return p==="width"?HD(tn(m,{fontSize:t,letterSpacing:r}),y,l):tn(m,{fontSize:t,letterSpacing:r})[p]},d=i.length>=2?et(i[1].coordinate-i[0].coordinate):1,b=GD(a,d,p);return c==="equidistantPreserveStart"?XD(d,b,v,i,o):(c==="preserveStart"||c==="preserveStartEnd"?h=QD(d,b,v,i,o,c==="preserveStartEnd"):h=JD(d,b,v,i,o),h.filter(function(x){return x.isShow}))}var ek=["viewBox"],tk=["viewBox"],rk=["ticks"];function jr(e){"@babel/helpers - typeof";return jr=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},jr(e)}function ur(){return ur=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ur.apply(this,arguments)}function Ig(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 be(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ig(Object(r),!0).forEach(function(n){uh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ig(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ds(e,t){if(e==null)return{};var r=nk(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 nk(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 ik(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dg(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,zx(n.key),n)}}function ak(e,t,r){return t&&Dg(e.prototype,t),r&&Dg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ok(e,t,r){return t=ia(t),uk(e,Fx()?Reflect.construct(t,r||[],ia(e).constructor):t.apply(e,r))}function uk(e,t){if(t&&(jr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ck(e)}function ck(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Fx=function(){return!!e})()}function ia(e){return ia=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ia(e)}function sk(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&&Hl(e,t)}function Hl(e,t){return Hl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Hl(e,t)}function uh(e,t,r){return t=zx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zx(e){var t=lk(e,"string");return jr(t)=="symbol"?t:t+""}function lk(e,t){if(jr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var zr=(function(e){function t(r){var n;return ik(this,t),n=ok(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return sk(t,e),ak(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=Ds(n,ek),u=this.props,c=u.viewBox,s=Ds(u,tk);return!sr(a,c)||!sr(o,s)||!sr(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,c=i.height,s=i.orientation,f=i.tickSize,l=i.mirror,h=i.tickMargin,p,y,v,d,b,x,w=l?-1:1,O=n.tickSize||f,m=q(n.tickCoord)?n.tickCoord:n.coordinate;switch(s){case"top":p=y=n.coordinate,d=o+ +!l*c,v=d-w*O,x=v-w*h,b=m;break;case"left":v=d=n.coordinate,y=a+ +!l*u,p=y-w*O,b=p-w*h,x=m;break;case"right":v=d=n.coordinate,y=a+ +l*u,p=y+w*O,b=p+w*h,x=m;break;default:p=y=n.coordinate,d=o+ +l*c,v=d+w*O,x=v+w*h,b=m;break}return{line:{x1:p,y1:v,x2:y,y2:d},tick:{x:b,y:x}}}},{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,c=n.orientation,s=n.mirror,f=n.axisLine,l=be(be(be({},J(this.props,!1)),J(f,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var h=+(c==="top"&&!s||c==="bottom"&&s);l=be(be({},l),{},{x1:i,y1:a+h*u,x2:i+o,y2:a+h*u})}else{var p=+(c==="left"&&!s||c==="right"&&s);l=be(be({},l),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+u})}return T.createElement("line",ur({},l,{className:ee("recharts-cartesian-axis-line",He(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,c=u.tickLine,s=u.stroke,f=u.tick,l=u.tickFormatter,h=u.unit,p=oh(be(be({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),d=J(this.props,!1),b=J(f,!1),x=be(be({},d),{},{fill:"none"},J(c,!1)),w=p.map(function(O,m){var g=o.getTickLineCoord(O),_=g.line,S=g.tick,P=be(be(be(be({textAnchor:y,verticalAnchor:v},d),{},{stroke:"none",fill:s},b),S),{},{index:m,payload:O,visibleTicksCount:p.length,tickFormatter:l});return T.createElement(pe,ur({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},vi(o.props,O,m)),c&&T.createElement("line",ur({},x,_,{className:ee("recharts-cartesian-axis-tick-line",He(c,"className"))})),f&&t.renderTickItem(f,P,"".concat(V(l)?l(O.value,m):O.value).concat(h||"")))});return T.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,u=i.height,c=i.ticksGenerator,s=i.className,f=i.hide;if(f)return null;var l=this.props,h=l.ticks,p=Ds(l,rk),y=h;return V(c)&&(y=h&&h.length>0?c(this.props):c(p)),o<=0||u<=0||!y||!y.length?null:T.createElement(pe,{className:ee("recharts-cartesian-axis",s),ref:function(d){n.layerReference=d}},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,u=ee(i.className,"recharts-cartesian-axis-tick-value");return T.isValidElement(n)?o=T.cloneElement(n,be(be({},i),{},{className:u})):V(n)?o=n(be(be({},i),{},{className:u})):o=T.createElement(Pi,ur({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(N.Component);uh(zr,"displayName","CartesianAxis");uh(zr,"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 fk=["x1","y1","x2","y2","key"],hk=["offset"];function Yt(e){"@babel/helpers - typeof";return Yt=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},Yt(e)}function kg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kg(Object(r),!0).forEach(function(n){pk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pk(e,t,r){return t=dk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dk(e){var t=vk(e,"string");return Yt(t)=="symbol"?t:t+""}function vk(e,t){if(Yt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ut(){return Ut=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},Ut.apply(this,arguments)}function Rg(e,t){if(e==null)return{};var r=yk(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yk(e,t){if(e==null)return{};var r={};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 mk=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,c=t.ry;return T.createElement("rect",{x:i,y:a,ry:c,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function Wx(e,t){var r;if(T.isValidElement(e))r=T.cloneElement(e,t);else if(V(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,u=t.key,c=Rg(t,fk),s=J(c,!1);s.offset;var f=Rg(s,hk);r=T.createElement("line",Ut({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function gk(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,c){var s=je(je({},e),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(c),index:c});return Wx(i,s)});return T.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function bk(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,c){var s=je(je({},e),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(c),index:c});return Wx(i,s)});return T.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function xk(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,u=e.horizontalPoints,c=e.horizontal,s=c===void 0?!0:c;if(!s||!t||!t.length)return null;var f=u.map(function(h){return Math.round(h+i-i)}).sort(function(h,p){return h-p});i!==f[0]&&f.unshift(0);var l=f.map(function(h,p){var y=!f[p+1],v=y?i+o-h:f[p+1]-h;if(v<=0)return null;var d=p%t.length;return T.createElement("rect",{key:"react-".concat(p),y:h,x:n,height:v,width:a,stroke:"none",fill:t[d],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return T.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function wk(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,c=e.height,s=e.verticalPoints;if(!r||!n||!n.length)return null;var f=s.map(function(h){return Math.round(h+a-a)}).sort(function(h,p){return h-p});a!==f[0]&&f.unshift(0);var l=f.map(function(h,p){var y=!f[p+1],v=y?a+u-h:f[p+1]-h;if(v<=0)return null;var d=p%n.length;return T.createElement("rect",{key:"react-".concat(p),x:h,y:o,width:v,height:c,stroke:"none",fill:n[d],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return T.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var Ok=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return Q0(oh(je(je(je({},zr.defaultProps),n),{},{ticks:pt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},_k=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return Q0(oh(je(je(je({},zr.defaultProps),n),{},{ticks:pt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},ir={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Sk(e){var t,r,n,i,a,o,u=rh(),c=nh(),s=lD(),f=je(je({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:ir.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:ir.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:ir.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:ir.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:ir.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:ir.verticalFill,x:q(e.x)?e.x:s.left,y:q(e.y)?e.y:s.top,width:q(e.width)?e.width:s.width,height:q(e.height)?e.height:s.height}),l=f.x,h=f.y,p=f.width,y=f.height,v=f.syncWithTicks,d=f.horizontalValues,b=f.verticalValues,x=uD(),w=cD();if(!q(p)||p<=0||!q(y)||y<=0||!q(l)||l!==+l||!q(h)||h!==+h)return null;var O=f.verticalCoordinatesGenerator||Ok,m=f.horizontalCoordinatesGenerator||_k,g=f.horizontalPoints,_=f.verticalPoints;if((!g||!g.length)&&V(m)){var S=d&&d.length,P=m({yAxis:w?je(je({},w),{},{ticks:S?d:w.ticks}):void 0,width:u,height:c,offset:s},S?!0:v);vt(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Yt(P),"]")),Array.isArray(P)&&(g=P)}if((!_||!_.length)&&V(O)){var M=b&&b.length,A=O({xAxis:x?je(je({},x),{},{ticks:M?b:x.ticks}):void 0,width:u,height:c,offset:s},M?!0:v);vt(Array.isArray(A),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Yt(A),"]")),Array.isArray(A)&&(_=A)}return T.createElement("g",{className:"recharts-cartesian-grid"},T.createElement(mk,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),T.createElement(gk,Ut({},f,{offset:s,horizontalPoints:g,xAxis:x,yAxis:w})),T.createElement(bk,Ut({},f,{offset:s,verticalPoints:_,xAxis:x,yAxis:w})),T.createElement(xk,Ut({},f,{horizontalPoints:g})),T.createElement(wk,Ut({},f,{verticalPoints:_})))}Sk.displayName="CartesianGrid";var Ak=["type","layout","connectNulls","ref"],Pk=["key"];function Mr(e){"@babel/helpers - typeof";return Mr=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},Mr(e)}function Ng(e,t){if(e==null)return{};var r=Tk(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 Tk(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(){return on=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},on.apply(this,arguments)}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 Re(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){Ze(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 ar(e){return Ck(e)||Mk(e)||jk(e)||Ek()}function Ek(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
59In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jk(e,t){if(e){if(typeof e=="string")return Gl(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 Gl(e,t)}}function Mk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ck(e){if(Array.isArray(e))return Gl(e)}function Gl(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 $k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lg(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,Hx(n.key),n)}}function Ik(e,t,r){return t&&Lg(e.prototype,t),r&&Lg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dk(e,t,r){return t=aa(t),kk(e,Ux()?Reflect.construct(t,r||[],aa(e).constructor):t.apply(e,r))}function kk(e,t){if(t&&(Mr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rk(e)}function Rk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ux(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ux=function(){return!!e})()}function aa(e){return aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},aa(e)}function Nk(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&&Kl(e,t)}function Kl(e,t){return Kl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Kl(e,t)}function Ze(e,t,r){return t=Hx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hx(e){var t=qk(e,"string");return Mr(t)=="symbol"?t:t+""}function qk(e,t){if(Mr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var La=(function(e){function t(){var r;$k(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Dk(this,t,[].concat(i)),Ze(r,"state",{isAnimationFinished:!0,totalLength:0}),Ze(r,"generateSimpleStrokeDasharray",function(o,u){return"".concat(u,"px ").concat(o-u,"px")}),Ze(r,"getStrokeDasharray",function(o,u,c){var s=c.reduce(function(b,x){return b+x});if(!s)return r.generateSimpleStrokeDasharray(u,o);for(var f=Math.floor(o/s),l=o%s,h=u-o,p=[],y=0,v=0;y<c.length;v+=c[y],++y)if(v+c[y]>l){p=[].concat(ar(c.slice(0,y)),[l-v]);break}var d=p.length%2===0?[0,h]:[h];return[].concat(ar(t.repeat(c,f)),ar(p),d).map(function(b){return"".concat(b,"px")}).join(", ")}),Ze(r,"id",Un("recharts-line-")),Ze(r,"pathRef",function(o){r.mainCurve=o}),Ze(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Ze(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return Nk(t,e),Ik(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,c=a.yAxis,s=a.layout,f=a.children,l=Ge(f,Yn);if(!l)return null;var h=function(v,d){return{x:v.x,y:v.y,value:v.value,errorVal:Be(v.payload,d)}},p={clipPath:n?"url(#clipPath-".concat(i,")"):null};return T.createElement(pe,p,l.map(function(y){return T.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:u,yAxis:c,layout:s,dataPointFormatter:h})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var u=this.props,c=u.dot,s=u.points,f=u.dataKey,l=J(this.props,!1),h=J(c,!0),p=s.map(function(v,d){var b=Re(Re(Re({key:"dot-".concat(d),r:3},l),h),{},{index:d,cx:v.x,cy:v.y,value:v.value,dataKey:f,payload:v.payload,points:s});return t.renderDotItem(c,b)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return T.createElement(pe,on({className:"recharts-line-dots",key:"dots"},y),p)}},{key:"renderCurveStatically",value:function(n,i,a,o){var u=this.props,c=u.type,s=u.layout,f=u.connectNulls;u.ref;var l=Ng(u,Ak),h=Re(Re(Re({},J(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:c,layout:s,connectNulls:f});return T.createElement(Sl,on({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,c=o.strokeDasharray,s=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,h=o.animationEasing,p=o.animationId,y=o.animateNewValues,v=o.width,d=o.height,b=this.state,x=b.prevPoints,w=b.totalLength;return T.createElement(xt,{begin:f,duration:l,isActive:s,easing:h,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var m=O.t;if(x){var g=x.length/u.length,_=u.map(function(E,j){var $=Math.floor(j*g);if(x[$]){var C=x[$],D=Je(C.x,E.x),k=Je(C.y,E.y);return Re(Re({},E),{},{x:D(m),y:k(m)})}if(y){var L=Je(v*2,E.x),B=Je(d/2,E.y);return Re(Re({},E),{},{x:L(m),y:B(m)})}return Re(Re({},E),{},{x:E.x,y:E.y})});return a.renderCurveStatically(_,n,i)}var S=Je(0,w),P=S(m),M;if(c){var A="".concat(c).split(/[,\s]+/gim).map(function(E){return parseFloat(E)});M=a.getStrokeDasharray(P,w,A)}else M=a.generateSimpleStrokeDasharray(w,P);return a.renderCurveStatically(u,n,i,{strokeDasharray:M})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,u=a.isAnimationActive,c=this.state,s=c.prevPoints,f=c.totalLength;return u&&o&&o.length&&(!s&&f>0||!ja(s,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,c=i.className,s=i.xAxis,f=i.yAxis,l=i.top,h=i.left,p=i.width,y=i.height,v=i.isAnimationActive,d=i.id;if(a||!u||!u.length)return null;var b=this.state.isAnimationFinished,x=u.length===1,w=ee("recharts-line",c),O=s&&s.allowDataOverflow,m=f&&f.allowDataOverflow,g=O||m,_=Z(d)?this.id:d,S=(n=J(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},P=S.r,M=P===void 0?3:P,A=S.strokeWidth,E=A===void 0?2:A,j=nO(o)?o:{},$=j.clipDot,C=$===void 0?!0:$,D=M*2+E;return T.createElement(pe,{className:w},O||m?T.createElement("defs",null,T.createElement("clipPath",{id:"clipPath-".concat(_)},T.createElement("rect",{x:O?h:h-p/2,y:m?l:l-y/2,width:O?p:p*2,height:m?y:y*2})),!C&&T.createElement("clipPath",{id:"clipPath-dots-".concat(_)},T.createElement("rect",{x:h-D/2,y:l-D/2,width:p+D,height:y+D}))):null,!x&&this.renderCurve(g,_),this.renderErrorBar(g,_),(x||o)&&this.renderDots(g,C,_),(!v||b)&&jt.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(ar(n),[0]):n,o=[],u=0;u<i;++u)o=[].concat(ar(o),ar(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(T.isValidElement(n))a=T.cloneElement(n,i);else if(V(n))a=n(i);else{var o=i.key,u=Ng(i,Pk),c=ee("recharts-line-dot",typeof n!="boolean"?n.className:"");a=T.createElement(Jf,on({key:o},u,{className:c}))}return a}}])})(N.PureComponent);Ze(La,"displayName","Line");Ze(La,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!qr.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Ze(La,"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,c=e.displayedData,s=e.offset,f=t.layout,l=c.map(function(h,p){var y=Be(h,o);return f==="horizontal"?{x:rm({axis:r,ticks:i,bandSize:u,entry:h,index:p}),y:Z(y)?null:n.scale(y),value:y,payload:h}:{x:Z(y)?null:r.scale(y),y:rm({axis:n,ticks:a,bandSize:u,entry:h,index:p}),value:y,payload:h}});return Re({points:l,layout:f},s)});function Cr(e){"@babel/helpers - typeof";return Cr=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},Cr(e)}function Lk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bk(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,Xx(n.key),n)}}function Fk(e,t,r){return t&&Bk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zk(e,t,r){return t=oa(t),Wk(e,Gx()?Reflect.construct(t,r||[],oa(e).constructor):t.apply(e,r))}function Wk(e,t){if(t&&(Cr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Uk(e)}function Uk(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 Hk(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&&Xl(e,t)}function Xl(e,t){return Xl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Xl(e,t)}function Kx(e,t,r){return t=Xx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xx(e){var t=Gk(e,"string");return Cr(t)=="symbol"?t:t+""}function Gk(e,t){if(Cr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Vl(){return Vl=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},Vl.apply(this,arguments)}function Kk(e){var t=e.xAxisId,r=rh(),n=nh(),i=$x(t);return i==null?null:N.createElement(zr,Vl({},i,{className:ee("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return pt(o,!0)}}))}var ch=(function(e){function t(){return Lk(this,t),zk(this,t,arguments)}return Hk(t,e),Fk(t,[{key:"render",value:function(){return N.createElement(Kk,this.props)}}])})(N.Component);Kx(ch,"displayName","XAxis");Kx(ch,"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 $r(e){"@babel/helpers - typeof";return $r=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},$r(e)}function Xk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vk(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,Zx(n.key),n)}}function Yk(e,t,r){return t&&Vk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zk(e,t,r){return t=ua(t),Jk(e,Vx()?Reflect.construct(t,r||[],ua(e).constructor):t.apply(e,r))}function Jk(e,t){if(t&&($r(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qk(e)}function Qk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Vx=function(){return!!e})()}function ua(e){return ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ua(e)}function eR(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&&Yl(e,t)}function Yl(e,t){return Yl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Yl(e,t)}function Yx(e,t,r){return t=Zx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zx(e){var t=tR(e,"string");return $r(t)=="symbol"?t:t+""}function tR(e,t){if($r(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($r(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Zl(){return Zl=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},Zl.apply(this,arguments)}var rR=function(t){var r=t.yAxisId,n=rh(),i=nh(),a=Ix(r);return a==null?null:N.createElement(zr,Zl({},a,{className:ee("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return pt(u,!0)}}))},sh=(function(e){function t(){return Xk(this,t),Zk(this,t,arguments)}return eR(t,e),Yk(t,[{key:"render",value:function(){return N.createElement(rR,this.props)}}])})(N.Component);Yx(sh,"displayName","YAxis");Yx(sh,"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 Bg(e){return oR(e)||aR(e)||iR(e)||nR()}function nR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
60In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iR(e,t){if(e){if(typeof e=="string")return Jl(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 Jl(e,t)}}function aR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oR(e){if(Array.isArray(e))return Jl(e)}function Jl(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 Ql=function(t,r,n,i,a){var o=Ge(t,ah),u=Ge(t,Ra),c=[].concat(Bg(o),Bg(u)),s=Ge(t,qa),f="".concat(i,"Id"),l=i[0],h=r;if(c.length&&(h=c.reduce(function(v,d){if(d.props[f]===n&&at(d.props,"extendDomain")&&q(d.props[l])){var b=d.props[l];return[Math.min(v[0],b),Math.max(v[1],b)]}return v},h)),s.length){var p="".concat(l,"1"),y="".concat(l,"2");h=s.reduce(function(v,d){if(d.props[f]===n&&at(d.props,"extendDomain")&&q(d.props[p])&&q(d.props[y])){var b=d.props[p],x=d.props[y];return[Math.min(v[0],b,x),Math.max(v[1],b,x)]}return v},h)}return a&&a.length&&(h=a.reduce(function(v,d){return q(d)?[Math.min(v[0],d),Math.max(v[1],d)]:v},h)),h},ks={exports:{}},Fg;function uR(){return Fg||(Fg=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(c,s,f){this.fn=c,this.context=s,this.once=f||!1}function a(c,s,f,l,h){if(typeof f!="function")throw new TypeError("The listener must be a function");var p=new i(f,l||c,h),y=r?r+s:s;return c._events[y]?c._events[y].fn?c._events[y]=[c._events[y],p]:c._events[y].push(p):(c._events[y]=p,c._eventsCount++),c}function o(c,s){--c._eventsCount===0?c._events=new n:delete c._events[s]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var s=[],f,l;if(this._eventsCount===0)return s;for(l in f=this._events)t.call(f,l)&&s.push(r?l.slice(1):l);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(f)):s},u.prototype.listeners=function(s){var f=r?r+s:s,l=this._events[f];if(!l)return[];if(l.fn)return[l.fn];for(var h=0,p=l.length,y=new Array(p);h<p;h++)y[h]=l[h].fn;return y},u.prototype.listenerCount=function(s){var f=r?r+s:s,l=this._events[f];return l?l.fn?1:l.length:0},u.prototype.emit=function(s,f,l,h,p,y){var v=r?r+s:s;if(!this._events[v])return!1;var d=this._events[v],b=arguments.length,x,w;if(d.fn){switch(d.once&&this.removeListener(s,d.fn,void 0,!0),b){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,f),!0;case 3:return d.fn.call(d.context,f,l),!0;case 4:return d.fn.call(d.context,f,l,h),!0;case 5:return d.fn.call(d.context,f,l,h,p),!0;case 6:return d.fn.call(d.context,f,l,h,p,y),!0}for(w=1,x=new Array(b-1);w<b;w++)x[w-1]=arguments[w];d.fn.apply(d.context,x)}else{var O=d.length,m;for(w=0;w<O;w++)switch(d[w].once&&this.removeListener(s,d[w].fn,void 0,!0),b){case 1:d[w].fn.call(d[w].context);break;case 2:d[w].fn.call(d[w].context,f);break;case 3:d[w].fn.call(d[w].context,f,l);break;case 4:d[w].fn.call(d[w].context,f,l,h);break;default:if(!x)for(m=1,x=new Array(b-1);m<b;m++)x[m-1]=arguments[m];d[w].fn.apply(d[w].context,x)}}return!0},u.prototype.on=function(s,f,l){return a(this,s,f,l,!1)},u.prototype.once=function(s,f,l){return a(this,s,f,l,!0)},u.prototype.removeListener=function(s,f,l,h){var p=r?r+s:s;if(!this._events[p])return this;if(!f)return o(this,p),this;var y=this._events[p];if(y.fn)y.fn===f&&(!h||y.once)&&(!l||y.context===l)&&o(this,p);else{for(var v=0,d=[],b=y.length;v<b;v++)(y[v].fn!==f||h&&!y[v].once||l&&y[v].context!==l)&&d.push(y[v]);d.length?this._events[p]=d.length===1?d[0]:d:o(this,p)}return this},u.prototype.removeAllListeners=function(s){var f;return s?(f=r?r+s:s,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})(ks)),ks.exports}var cR=uR();const sR=se(cR);var Rs=new sR,Ns="recharts.syncMouseEvents";function Bn(e){"@babel/helpers - typeof";return Bn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bn(e)}function lR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fR(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 hR(e,t,r){return t&&fR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function qs(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=pR(e,"string");return Bn(t)=="symbol"?t:t+""}function pR(e,t){if(Bn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var dR=(function(){function e(){lR(this,e),qs(this,"activeIndex",0),qs(this,"coordinateList",[]),qs(this,"layout","horizontal")}return hR(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,c=r.layout,s=c===void 0?null:c,f=r.offset,l=f===void 0?null:f,h=r.mouseHandlerCallback,p=h===void 0?null:h;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=u??this.container,this.layout=s??this.layout,this.offset=l??this.offset,this.mouseHandlerCallback=p??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,c=this.coordinateList[this.activeIndex].coordinate,s=((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+c+s,h=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:l,pageY:h})}}}])})();function vR(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e?.[0],i=e?.[1];if(n&&i&&q(n)&&q(i))return!0}return!1}function yR(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 Qx(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Pe(t,r,n,i),u=Pe(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function mR(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,c=t.cy,s=t.innerRadius,f=t.outerRadius,l=t.angle,h=Pe(u,c,s,l),p=Pe(u,c,f,l);n=h.x,i=h.y,a=p.x,o=p.y}else return Qx(t);return[{x:n,y:i},{x:a,y:o}]}function Fn(e){"@babel/helpers - typeof";return Fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fn(e)}function zg(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 fi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zg(Object(r),!0).forEach(function(n){gR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gR(e,t,r){return t=bR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bR(e){var t=xR(e,"string");return Fn(t)=="symbol"?t:t+""}function xR(e,t){if(Fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wR(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,u=e.activePayload,c=e.offset,s=e.activeTooltipIndex,f=e.tooltipAxisBandSize,l=e.layout,h=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!a||!o||h!=="ScatterChart"&&i!=="axis")return null;var y,v=Sl;if(h==="ScatterChart")y=o,v=m$;else if(h==="BarChart")y=yR(l,o,c,f),v=Zf;else if(l==="radial"){var d=Qx(o),b=d.cx,x=d.cy,w=d.radius,O=d.startAngle,m=d.endAngle;y={cx:b,cy:x,startAngle:O,endAngle:m,innerRadius:w,outerRadius:w},v=cx}else y={points:mR(l,o,c)},v=Sl;var g=fi(fi(fi(fi({stroke:"#ccc",pointerEvents:"none"},c),y),J(p,!1)),{},{payload:u,payloadIndex:s,className:ee("recharts-tooltip-cursor",p.className)});return N.isValidElement(p)?N.cloneElement(p,g):N.createElement(v,g)}var OR=["item"],_R=["children","className","width","height","style","compact","title","desc"];function Ir(e){"@babel/helpers - typeof";return Ir=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},Ir(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 Wg(e,t){return PR(e)||AR(e,t)||tw(e,t)||SR()}function SR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
61In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AR(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function PR(e){if(Array.isArray(e))return e}function Ug(e,t){if(e==null)return{};var r=TR(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 TR(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 ER(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jR(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,rw(n.key),n)}}function MR(e,t,r){return t&&jR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function CR(e,t,r){return t=ca(t),$R(e,ew()?Reflect.construct(t,r||[],ca(e).constructor):t.apply(e,r))}function $R(e,t){if(t&&(Ir(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 ew(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ew=function(){return!!e})()}function ca(e){return ca=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ca(e)}function DR(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&&ef(e,t)}function ef(e,t){return ef=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ef(e,t)}function Dr(e){return NR(e)||RR(e)||tw(e)||kR()}function kR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
62In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tw(e,t){if(e){if(typeof e=="string")return tf(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 tf(e,t)}}function RR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function NR(e){if(Array.isArray(e))return tf(e)}function tf(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 Hg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function I(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hg(Object(r),!0).forEach(function(n){H(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function H(e,t,r){return t=rw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rw(e){var t=qR(e,"string");return Ir(t)=="symbol"?t:t+""}function qR(e,t){if(Ir(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ir(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var LR={xAxis:["bottom","top"],yAxis:["left","right"]},BR={width:"100%",height:"100%"},nw={x:0,y:0};function hi(e){return e}var FR=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},zR=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 I(I(I({},i),Pe(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var c=a.coordinate,s=i.angle;return I(I(I({},i),Pe(i.cx,i.cy,c,s)),{},{angle:s,radius:c})}return nw},Ba=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(u,c){var s=c.props.data;return s&&s.length?[].concat(Dr(u),Dr(s)):u},[]);return o.length>0?o:t&&t.length&&q(i)&&q(a)?t.slice(i,a+1):[]};function iw(e){return e==="number"?[0,"auto"]:void 0}var rf=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=Ba(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(c,s){var f,l=(f=s.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 h;if(o.dataKey&&!o.allowDuplicatedCategory){var p=l===void 0?u:l;h=pi(p,o.dataKey,i)}else h=l&&l[n]||u[n];return h?[].concat(Dr(c),[ix(s,h)]):c},[])},Gg=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=FR(a,n),u=t.orderedTooltipTicks,c=t.tooltipAxis,s=t.tooltipTicks,f=rj(o,u,s,c);if(f>=0&&s){var l=s[f]&&s[f].value,h=rf(t,r,f,l),p=zR(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:h,activeCoordinate:p}}return null},WR=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,l=t.children,h=t.stackOffset,p=J0(f,a);return n.reduce(function(y,v){var d,b=v.type.defaultProps!==void 0?I(I({},v.type.defaultProps),v.props):v.props,x=b.type,w=b.dataKey,O=b.allowDataOverflow,m=b.allowDuplicatedCategory,g=b.scale,_=b.ticks,S=b.includeHidden,P=b[o];if(y[P])return y;var M=Ba(t.data,{graphicalItems:i.filter(function(z){var K,ue=o in z.props?z.props[o]:(K=z.type.defaultProps)===null||K===void 0?void 0:K[o];return ue===P}),dataStartIndex:c,dataEndIndex:s}),A=M.length,E,j,$;vR(b.domain,O,x)&&(E=bl(b.domain,null,O),p&&(x==="number"||g!=="auto")&&($=nn(M,w,"category")));var C=iw(x);if(!E||E.length===0){var D,k=(D=b.domain)!==null&&D!==void 0?D:C;if(w){if(E=nn(M,w,x),x==="category"&&p){var L=Kw(E);m&&L?(j=E,E=Vi(0,A)):m||(E=om(k,E,v).reduce(function(z,K){return z.indexOf(K)>=0?z:[].concat(Dr(z),[K])},[]))}else if(x==="category")m?E=E.filter(function(z){return z!==""&&!Z(z)}):E=om(k,E,v).reduce(function(z,K){return z.indexOf(K)>=0||K===""||Z(K)?z:[].concat(Dr(z),[K])},[]);else if(x==="number"){var B=uj(M,i.filter(function(z){var K,ue,de=o in z.props?z.props[o]:(K=z.type.defaultProps)===null||K===void 0?void 0:K[o],ke="hide"in z.props?z.props.hide:(ue=z.type.defaultProps)===null||ue===void 0?void 0:ue.hide;return de===P&&(S||!ke)}),w,a,f);B&&(E=B)}p&&(x==="number"||g!=="auto")&&($=nn(M,w,"category"))}else p?E=Vi(0,A):u&&u[P]&&u[P].hasStack&&x==="number"?E=h==="expand"?[0,1]:nx(u[P].stackGroups,c,s):E=Z0(M,i.filter(function(z){var K=o in z.props?z.props[o]:z.type.defaultProps[o],ue="hide"in z.props?z.props.hide:z.type.defaultProps.hide;return K===P&&(S||!ue)}),x,f,!0);if(x==="number")E=Ql(l,E,P,a,_),k&&(E=bl(k,E,O));else if(x==="category"&&k){var U=k,G=E.every(function(z){return U.indexOf(z)>=0});G&&(E=U)}}return I(I({},y),{},H({},P,I(I({},b),{},{axisType:a,domain:E,categoricalDomain:$,duplicateDomain:j,originalDomain:(d=b.domain)!==null&&d!==void 0?d:C,isCategorical:p,layout:f})))},{})},UR=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,l=t.children,h=Ba(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:s}),p=h.length,y=J0(f,a),v=-1;return n.reduce(function(d,b){var x=b.type.defaultProps!==void 0?I(I({},b.type.defaultProps),b.props):b.props,w=x[o],O=iw("number");if(!d[w]){v++;var m;return y?m=Vi(0,p):u&&u[w]&&u[w].hasStack?(m=nx(u[w].stackGroups,c,s),m=Ql(l,m,w,a)):(m=bl(O,Z0(h,n.filter(function(g){var _,S,P=o in g.props?g.props[o]:(_=g.type.defaultProps)===null||_===void 0?void 0:_[o],M="hide"in g.props?g.props.hide:(S=g.type.defaultProps)===null||S===void 0?void 0:S.hide;return P===w&&!M}),"number",f),i.defaultProps.allowDataOverflow),m=Ql(l,m,w,a)),I(I({},d),{},H({},w,I(I({axisType:a},i.defaultProps),{},{hide:!0,orientation:He(LR,"".concat(a,".").concat(v%2),null),domain:m,originalDomain:O,isCategorical:y,layout:f})))}return d},{})},HR=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.children,l="".concat(i,"Id"),h=Ge(f,a),p={};return h&&h.length?p=WR(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s}):o&&o.length&&(p=UR(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s})),p},GR=function(t){var r=Pt(t),n=pt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Sf(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Bi(r,n)}},Kg=function(t){var r=t.children,n=t.defaultShowTooltip,i=qe(r,Sr),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}},KR=function(t){return!t||!t.length?!1:t.some(function(r){var n=dt(r&&r.type);return n&&n.indexOf("Bar")>=0})},Xg=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"}},XR=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,c=u===void 0?{}:u,s=n.width,f=n.height,l=n.children,h=n.margin||{},p=qe(l,Sr),y=qe(l,lr),v=Object.keys(c).reduce(function(m,g){var _=c[g],S=_.orientation;return!_.mirror&&!_.hide?I(I({},m),{},H({},S,m[S]+_.width)):m},{left:h.left||0,right:h.right||0}),d=Object.keys(o).reduce(function(m,g){var _=o[g],S=_.orientation;return!_.mirror&&!_.hide?I(I({},m),{},H({},S,He(m,"".concat(S))+_.height)):m},{top:h.top||0,bottom:h.bottom||0}),b=I(I({},d),v),x=b.bottom;p&&(b.bottom+=p.props.height||Sr.defaultProps.height),y&&r&&(b=aj(b,i,n,r));var w=s-b.left-b.right,O=f-b.top-b.bottom;return I(I({brushBottom:x},b),{},{width:Math.max(w,0),height:Math.max(O,0)})},VR=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},YR=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,c=t.axisComponents,s=t.legendContent,f=t.formatAxisMap,l=t.defaultProps,h=function(b,x){var w=x.graphicalItems,O=x.stackGroups,m=x.offset,g=x.updateId,_=x.dataStartIndex,S=x.dataEndIndex,P=b.barSize,M=b.layout,A=b.barGap,E=b.barCategoryGap,j=b.maxBarSize,$=Xg(M),C=$.numericAxisName,D=$.cateAxisName,k=KR(w),L=[];return w.forEach(function(B,U){var G=Ba(b.data,{graphicalItems:[B],dataStartIndex:_,dataEndIndex:S}),z=B.type.defaultProps!==void 0?I(I({},B.type.defaultProps),B.props):B.props,K=z.dataKey,ue=z.maxBarSize,de=z["".concat(C,"Id")],ke=z["".concat(D,"Id")],kt={},Ce=c.reduce(function(Rt,Nt){var Fa=x["".concat(Nt.axisType,"Map")],lh=z["".concat(Nt.axisType,"Id")];Fa&&Fa[lh]||Nt.axisType==="zAxis"||Vt();var fh=Fa[lh];return I(I({},Rt),{},H(H({},Nt.axisType,fh),"".concat(Nt.axisType,"Ticks"),pt(fh)))},kt),F=Ce[D],X=Ce["".concat(D,"Ticks")],Y=O&&O[de]&&O[de].hasStack&&yj(B,O[de].stackGroups),R=dt(B.type).indexOf("Bar")>=0,fe=Bi(F,X),Q=[],me=k&&nj({barSize:P,stackGroups:O,totalSize:VR(Ce,D)});if(R){var ge,$e,St=Z(ue)?j:ue,tr=(ge=($e=Bi(F,X,!0))!==null&&$e!==void 0?$e:St)!==null&&ge!==void 0?ge:0;Q=ij({barGap:A,barCategoryGap:E,bandSize:tr!==fe?tr:fe,sizeList:me[ke],maxBarSize:St}),tr!==fe&&(Q=Q.map(function(Rt){return I(I({},Rt),{},{position:I(I({},Rt.position),{},{offset:Rt.position.offset-tr/2})})}))}var Jn=B&&B.type&&B.type.getComposedData;Jn&&L.push({props:I(I({},Jn(I(I({},Ce),{},{displayedData:G,props:b,dataKey:K,item:B,bandSize:fe,barPosition:Q,offset:m,stackedData:Y,layout:M,dataStartIndex:_,dataEndIndex:S}))),{},H(H(H({key:B.key||"item-".concat(U)},C,Ce[C]),D,Ce[D]),"animationId",g)),childIndex:oO(B,b.children),item:B})}),L},p=function(b,x){var w=b.props,O=b.dataStartIndex,m=b.dataEndIndex,g=b.updateId;if(!xp({props:w}))return null;var _=w.children,S=w.layout,P=w.stackOffset,M=w.data,A=w.reverseStackOrder,E=Xg(S),j=E.numericAxisName,$=E.cateAxisName,C=Ge(_,n),D=dj(M,C,"".concat(j,"Id"),"".concat($,"Id"),P,A),k=c.reduce(function(z,K){var ue="".concat(K.axisType,"Map");return I(I({},z),{},H({},ue,HR(w,I(I({},K),{},{graphicalItems:C,stackGroups:K.axisType===j&&D,dataStartIndex:O,dataEndIndex:m}))))},{}),L=XR(I(I({},k),{},{props:w,graphicalItems:C}),x?.legendBBox);Object.keys(k).forEach(function(z){k[z]=f(w,k[z],L,z.replace("Map",""),r)});var B=k["".concat($,"Map")],U=GR(B),G=h(w,I(I({},k),{},{dataStartIndex:O,dataEndIndex:m,updateId:g,graphicalItems:C,stackGroups:D,offset:L}));return I(I({formattedGraphicalItems:G,graphicalItems:C,offset:L,stackGroups:D},U),k)},y=(function(d){function b(x){var w,O,m;return ER(this,b),m=CR(this,b,[x]),H(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),H(m,"accessibilityManager",new dR),H(m,"handleLegendBBoxUpdate",function(g){if(g){var _=m.state,S=_.dataStartIndex,P=_.dataEndIndex,M=_.updateId;m.setState(I({legendBBox:g},p({props:m.props,dataStartIndex:S,dataEndIndex:P,updateId:M},I(I({},m.state),{},{legendBBox:g}))))}}),H(m,"handleReceiveSyncEvent",function(g,_,S){if(m.props.syncId===g){if(S===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(_)}}),H(m,"handleBrushChange",function(g){var _=g.startIndex,S=g.endIndex;if(_!==m.state.dataStartIndex||S!==m.state.dataEndIndex){var P=m.state.updateId;m.setState(function(){return I({dataStartIndex:_,dataEndIndex:S},p({props:m.props,dataStartIndex:_,dataEndIndex:S,updateId:P},m.state))}),m.triggerSyncEvent({dataStartIndex:_,dataEndIndex:S})}}),H(m,"handleMouseEnter",function(g){var _=m.getMouseInfo(g);if(_){var S=I(I({},_),{},{isTooltipActive:!0});m.setState(S),m.triggerSyncEvent(S);var P=m.props.onMouseEnter;V(P)&&P(S,g)}}),H(m,"triggeredAfterMouseMove",function(g){var _=m.getMouseInfo(g),S=_?I(I({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(S),m.triggerSyncEvent(S);var P=m.props.onMouseMove;V(P)&&P(S,g)}),H(m,"handleItemMouseEnter",function(g){m.setState(function(){return{isTooltipActive:!0,activeItem:g,activePayload:g.tooltipPayload,activeCoordinate:g.tooltipPosition||{x:g.cx,y:g.cy}}})}),H(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),H(m,"handleMouseMove",function(g){g.persist(),m.throttleTriggeredAfterMouseMove(g)}),H(m,"handleMouseLeave",function(g){m.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};m.setState(_),m.triggerSyncEvent(_);var S=m.props.onMouseLeave;V(S)&&S(_,g)}),H(m,"handleOuterEvent",function(g){var _=aO(g),S=He(m.props,"".concat(_));if(_&&V(S)){var P,M;/.*touch.*/i.test(_)?M=m.getMouseInfo(g.changedTouches[0]):M=m.getMouseInfo(g),S((P=M)!==null&&P!==void 0?P:{},g)}}),H(m,"handleClick",function(g){var _=m.getMouseInfo(g);if(_){var S=I(I({},_),{},{isTooltipActive:!0});m.setState(S),m.triggerSyncEvent(S);var P=m.props.onClick;V(P)&&P(S,g)}}),H(m,"handleMouseDown",function(g){var _=m.props.onMouseDown;if(V(_)){var S=m.getMouseInfo(g);_(S,g)}}),H(m,"handleMouseUp",function(g){var _=m.props.onMouseUp;if(V(_)){var S=m.getMouseInfo(g);_(S,g)}}),H(m,"handleTouchMove",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(g.changedTouches[0])}),H(m,"handleTouchStart",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.handleMouseDown(g.changedTouches[0])}),H(m,"handleTouchEnd",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&m.handleMouseUp(g.changedTouches[0])}),H(m,"handleDoubleClick",function(g){var _=m.props.onDoubleClick;if(V(_)){var S=m.getMouseInfo(g);_(S,g)}}),H(m,"handleContextMenu",function(g){var _=m.props.onContextMenu;if(V(_)){var S=m.getMouseInfo(g);_(S,g)}}),H(m,"triggerSyncEvent",function(g){m.props.syncId!==void 0&&Rs.emit(Ns,m.props.syncId,g,m.eventEmitterSymbol)}),H(m,"applySyncEvent",function(g){var _=m.props,S=_.layout,P=_.syncMethod,M=m.state.updateId,A=g.dataStartIndex,E=g.dataEndIndex;if(g.dataStartIndex!==void 0||g.dataEndIndex!==void 0)m.setState(I({dataStartIndex:A,dataEndIndex:E},p({props:m.props,dataStartIndex:A,dataEndIndex:E,updateId:M},m.state)));else if(g.activeTooltipIndex!==void 0){var j=g.chartX,$=g.chartY,C=g.activeTooltipIndex,D=m.state,k=D.offset,L=D.tooltipTicks;if(!k)return;if(typeof P=="function")C=P(L,g);else if(P==="value"){C=-1;for(var B=0;B<L.length;B++)if(L[B].value===g.activeLabel){C=B;break}}var U=I(I({},k),{},{x:k.left,y:k.top}),G=Math.min(j,U.x+U.width),z=Math.min($,U.y+U.height),K=L[C]&&L[C].value,ue=rf(m.state,m.props.data,C),de=L[C]?{x:S==="horizontal"?L[C].coordinate:G,y:S==="horizontal"?z:L[C].coordinate}:nw;m.setState(I(I({},g),{},{activeLabel:K,activeCoordinate:de,activePayload:ue,activeTooltipIndex:C}))}else m.setState(g)}),H(m,"renderCursor",function(g){var _,S=m.state,P=S.isTooltipActive,M=S.activeCoordinate,A=S.activePayload,E=S.offset,j=S.activeTooltipIndex,$=S.tooltipAxisBandSize,C=m.getTooltipEventType(),D=(_=g.props.active)!==null&&_!==void 0?_:P,k=m.props.layout,L=g.key||"_recharts-cursor";return T.createElement(wR,{key:L,activeCoordinate:M,activePayload:A,activeTooltipIndex:j,chartName:r,element:g,isActive:D,layout:k,offset:E,tooltipAxisBandSize:$,tooltipEventType:C})}),H(m,"renderPolarAxis",function(g,_,S){var P=He(g,"type.axisType"),M=He(m.state,"".concat(P,"Map")),A=g.type.defaultProps,E=A!==void 0?I(I({},A),g.props):g.props,j=M&&M[E["".concat(P,"Id")]];return N.cloneElement(g,I(I({},j),{},{className:ee(P,j.className),key:g.key||"".concat(_,"-").concat(S),ticks:pt(j,!0)}))}),H(m,"renderPolarGrid",function(g){var _=g.props,S=_.radialLines,P=_.polarAngles,M=_.polarRadius,A=m.state,E=A.radiusAxisMap,j=A.angleAxisMap,$=Pt(E),C=Pt(j),D=C.cx,k=C.cy,L=C.innerRadius,B=C.outerRadius;return N.cloneElement(g,{polarAngles:Array.isArray(P)?P:pt(C,!0).map(function(U){return U.coordinate}),polarRadius:Array.isArray(M)?M:pt($,!0).map(function(U){return U.coordinate}),cx:D,cy:k,innerRadius:L,outerRadius:B,key:g.key||"polar-grid",radialLines:S})}),H(m,"renderLegend",function(){var g=m.state.formattedGraphicalItems,_=m.props,S=_.children,P=_.width,M=_.height,A=m.props.margin||{},E=P-(A.left||0)-(A.right||0),j=V0({children:S,formattedGraphicalItems:g,legendWidth:E,legendContent:s});if(!j)return null;var $=j.item,C=Ug(j,OR);return N.cloneElement($,I(I({},C),{},{chartWidth:P,chartHeight:M,margin:A,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),H(m,"renderTooltip",function(){var g,_=m.props,S=_.children,P=_.accessibilityLayer,M=qe(S,st);if(!M)return null;var A=m.state,E=A.isTooltipActive,j=A.activeCoordinate,$=A.activePayload,C=A.activeLabel,D=A.offset,k=(g=M.props.active)!==null&&g!==void 0?g:E;return N.cloneElement(M,{viewBox:I(I({},D),{},{x:D.left,y:D.top}),active:k,label:C,payload:k?$:[],coordinate:j,accessibilityLayer:P})}),H(m,"renderBrush",function(g){var _=m.props,S=_.margin,P=_.data,M=m.state,A=M.offset,E=M.dataStartIndex,j=M.dataEndIndex,$=M.updateId;return N.cloneElement(g,{key:g.key||"_recharts-brush",onChange:ui(m.handleBrushChange,g.props.onChange),data:P,x:q(g.props.x)?g.props.x:A.left,y:q(g.props.y)?g.props.y:A.top+A.height+A.brushBottom-(S.bottom||0),width:q(g.props.width)?g.props.width:A.width,startIndex:E,endIndex:j,updateId:"brush-".concat($)})}),H(m,"renderReferenceElement",function(g,_,S){if(!g)return null;var P=m,M=P.clipPathId,A=m.state,E=A.xAxisMap,j=A.yAxisMap,$=A.offset,C=g.type.defaultProps||{},D=g.props,k=D.xAxisId,L=k===void 0?C.xAxisId:k,B=D.yAxisId,U=B===void 0?C.yAxisId:B;return N.cloneElement(g,{key:g.key||"".concat(_,"-").concat(S),xAxis:E[L],yAxis:j[U],viewBox:{x:$.left,y:$.top,width:$.width,height:$.height},clipPathId:M})}),H(m,"renderActivePoints",function(g){var _=g.item,S=g.activePoint,P=g.basePoint,M=g.childIndex,A=g.isRange,E=[],j=_.props.key,$=_.item.type.defaultProps!==void 0?I(I({},_.item.type.defaultProps),_.item.props):_.item.props,C=$.activeDot,D=$.dataKey,k=I(I({index:M,dataKey:D,cx:S.x,cy:S.y,r:4,fill:Yf(_.item),strokeWidth:2,stroke:"#fff",payload:S.payload,value:S.value},J(C,!1)),di(C));return E.push(b.renderActiveDot(C,k,"".concat(j,"-activePoint-").concat(M))),P?E.push(b.renderActiveDot(C,I(I({},k),{},{cx:P.x,cy:P.y}),"".concat(j,"-basePoint-").concat(M))):A&&E.push(null),E}),H(m,"renderGraphicChild",function(g,_,S){var P=m.filterFormatItem(g,_,S);if(!P)return null;var M=m.getTooltipEventType(),A=m.state,E=A.isTooltipActive,j=A.tooltipAxis,$=A.activeTooltipIndex,C=A.activeLabel,D=m.props.children,k=qe(D,st),L=P.props,B=L.points,U=L.isRange,G=L.baseLine,z=P.item.type.defaultProps!==void 0?I(I({},P.item.type.defaultProps),P.item.props):P.item.props,K=z.activeDot,ue=z.hide,de=z.activeBar,ke=z.activeShape,kt=!!(!ue&&E&&k&&(K||de||ke)),Ce={};M!=="axis"&&k&&k.props.trigger==="click"?Ce={onClick:ui(m.handleItemMouseEnter,g.props.onClick)}:M!=="axis"&&(Ce={onMouseLeave:ui(m.handleItemMouseLeave,g.props.onMouseLeave),onMouseEnter:ui(m.handleItemMouseEnter,g.props.onMouseEnter)});var F=N.cloneElement(g,I(I({},P.props),Ce));function X(Nt){return typeof j.dataKey=="function"?j.dataKey(Nt.payload):null}if(kt)if($>=0){var Y,R;if(j.dataKey&&!j.allowDuplicatedCategory){var fe=typeof j.dataKey=="function"?X:"payload.".concat(j.dataKey.toString());Y=pi(B,fe,C),R=U&&G&&pi(G,fe,C)}else Y=B?.[$],R=U&&G&&G[$];if(ke||de){var Q=g.props.activeIndex!==void 0?g.props.activeIndex:$;return[N.cloneElement(g,I(I(I({},P.props),Ce),{},{activeIndex:Q})),null,null]}if(!Z(Y))return[F].concat(Dr(m.renderActivePoints({item:P,activePoint:Y,basePoint:R,childIndex:$,isRange:U})))}else{var me,ge=(me=m.getItemByXY(m.state.activeCoordinate))!==null&&me!==void 0?me:{graphicalItem:F},$e=ge.graphicalItem,St=$e.item,tr=St===void 0?g:St,Jn=$e.childIndex,Rt=I(I(I({},P.props),Ce),{},{activeIndex:Jn});return[N.cloneElement(tr,Rt),null,null]}return U?[F,null,null]:[F,null]}),H(m,"renderCustomized",function(g,_,S){return N.cloneElement(g,I(I({key:"recharts-customized-".concat(S)},m.props),m.state))}),H(m,"renderMap",{CartesianGrid:{handler:hi,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:hi},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:hi},YAxis:{handler:hi},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((w=x.id)!==null&&w!==void 0?w:Un("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=Xb(m.triggeredAfterMouseMove,(O=x.throttleDelay)!==null&&O!==void 0?O:1e3/60),m.state={},m}return DR(b,d),MR(b,[{key:"componentDidMount",value:function(){var w,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,O=w.children,m=w.data,g=w.height,_=w.layout,S=qe(O,st);if(S){var P=S.props.defaultIndex;if(!(typeof P!="number"||P<0||P>this.state.tooltipTicks.length-1)){var M=this.state.tooltipTicks[P]&&this.state.tooltipTicks[P].value,A=rf(this.state,m,P,M),E=this.state.tooltipTicks[P].coordinate,j=(this.state.offset.top+g)/2,$=_==="horizontal",C=$?{x:E,y:j}:{y:E,x:j},D=this.state.formattedGraphicalItems.find(function(L){var B=L.item;return B.type.name==="Scatter"});D&&(C=I(I({},C),D.props.points[P].tooltipPosition),A=D.props.points[P].tooltipPayload);var k={activeTooltipIndex:P,isTooltipActive:!0,activeLabel:M,activePayload:A,activeCoordinate:C};this.setState(k),this.renderCursor(S),this.accessibilityManager.setIndex(P)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var m,g;this.accessibilityManager.setDetails({offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(g=this.props.margin.top)!==null&&g!==void 0?g:0}})}return null}},{key:"componentDidUpdate",value:function(w){Fs([qe(w.children,st)],[qe(this.props.children,st)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=qe(this.props.children,st);if(w&&typeof w.props.shared=="boolean"){var O=w.props.shared?"axis":"item";return u.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var O=this.container,m=O.getBoundingClientRect(),g=GS(m),_={chartX:Math.round(w.pageX-g.left),chartY:Math.round(w.pageY-g.top)},S=m.width/O.offsetWidth||1,P=this.inRange(_.chartX,_.chartY,S);if(!P)return null;var M=this.state,A=M.xAxisMap,E=M.yAxisMap,j=this.getTooltipEventType(),$=Gg(this.state,this.props.data,this.props.layout,P);if(j!=="axis"&&A&&E){var C=Pt(A).scale,D=Pt(E).scale,k=C&&C.invert?C.invert(_.chartX):null,L=D&&D.invert?D.invert(_.chartY):null;return I(I({},_),{},{xValue:k,yValue:L},$)}return $?I(I({},_),$):null}},{key:"inRange",value:function(w,O){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,g=this.props.layout,_=w/m,S=O/m;if(g==="horizontal"||g==="vertical"){var P=this.state.offset,M=_>=P.left&&_<=P.left+P.width&&S>=P.top&&S<=P.top+P.height;return M?{x:_,y:S}:null}var A=this.state,E=A.angleAxisMap,j=A.radiusAxisMap;if(E&&j){var $=Pt(E);return sm({x:_,y:S},$)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,O=this.getTooltipEventType(),m=qe(w,st),g={};m&&O==="axis"&&(m.props.trigger==="click"?g={onClick:this.handleClick}:g={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 _=di(this.props,this.handleOuterEvent);return I(I({},_),g)}},{key:"addListener",value:function(){Rs.on(Ns,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Rs.removeListener(Ns,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,O,m){for(var g=this.state.formattedGraphicalItems,_=0,S=g.length;_<S;_++){var P=g[_];if(P.item===w||P.props.key===w.key||O===dt(P.item.type)&&m===P.childIndex)return P}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,O=this.state.offset,m=O.left,g=O.top,_=O.height,S=O.width;return T.createElement("defs",null,T.createElement("clipPath",{id:w},T.createElement("rect",{x:m,y:g,height:_,width:S})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(O,m){var g=Wg(m,2),_=g[0],S=g[1];return I(I({},O),{},H({},_,S.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(O,m){var g=Wg(m,2),_=g[0],S=g[1];return I(I({},O),{},H({},_,S.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(w){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(w){var O=this.state,m=O.formattedGraphicalItems,g=O.activeItem;if(m&&m.length)for(var _=0,S=m.length;_<S;_++){var P=m[_],M=P.props,A=P.item,E=A.type.defaultProps!==void 0?I(I({},A.type.defaultProps),A.props):A.props,j=dt(A.type);if(j==="Bar"){var $=(M.data||[]).find(function(L){return u$(w,L)});if($)return{graphicalItem:P,payload:$}}else if(j==="RadialBar"){var C=(M.data||[]).find(function(L){return sm(w,L)});if(C)return{graphicalItem:P,payload:C}}else if($a(P,g)||Ia(P,g)||kn(P,g)){var D=Z$({graphicalItem:P,activeTooltipItem:g,itemData:E.data}),k=E.activeIndex===void 0?D:E.activeIndex;return{graphicalItem:I(I({},P),{},{childIndex:k}),payload:kn(P,g)?E.data[D]:P.props.data[D]}}}return null}},{key:"render",value:function(){var w=this;if(!xp(this))return null;var O=this.props,m=O.children,g=O.className,_=O.width,S=O.height,P=O.style,M=O.compact,A=O.title,E=O.desc,j=Ug(O,_R),$=J(j,!1);if(M)return T.createElement(Sg,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},T.createElement(Ws,cr({},$,{width:_,height:S,title:A,desc:E}),this.renderClipPath(),Op(m,this.renderMap)));if(this.props.accessibilityLayer){var C,D;$.tabIndex=(C=this.props.tabIndex)!==null&&C!==void 0?C:0,$.role=(D=this.props.role)!==null&&D!==void 0?D:"application",$.onKeyDown=function(L){w.accessibilityManager.keyboardEvent(L)},$.onFocus=function(){w.accessibilityManager.focus()}}var k=this.parseEventsOfWrapper();return T.createElement(Sg,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},T.createElement("div",cr({className:ee("recharts-wrapper",g),style:I({position:"relative",cursor:"default",width:_,height:S},P)},k,{ref:function(B){w.container=B}}),T.createElement(Ws,cr({},$,{width:_,height:S,title:A,desc:E,style:BR}),this.renderClipPath(),Op(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(N.Component);H(y,"displayName",r),H(y,"defaultProps",I({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),H(y,"getDerivedStateFromProps",function(d,b){var x=d.dataKey,w=d.data,O=d.children,m=d.width,g=d.height,_=d.layout,S=d.stackOffset,P=d.margin,M=b.dataStartIndex,A=b.dataEndIndex;if(b.updateId===void 0){var E=Kg(d);return I(I(I({},E),{},{updateId:0},p(I(I({props:d},E),{},{updateId:0}),b)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:g,prevLayout:_,prevStackOffset:S,prevMargin:P,prevChildren:O})}if(x!==b.prevDataKey||w!==b.prevData||m!==b.prevWidth||g!==b.prevHeight||_!==b.prevLayout||S!==b.prevStackOffset||!sr(P,b.prevMargin)){var j=Kg(d),$={chartX:b.chartX,chartY:b.chartY,isTooltipActive:b.isTooltipActive},C=I(I({},Gg(b,w,_)),{},{updateId:b.updateId+1}),D=I(I(I({},j),$),C);return I(I(I({},D),p(I({props:d},D),b)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:g,prevLayout:_,prevStackOffset:S,prevMargin:P,prevChildren:O})}if(!Fs(O,b.prevChildren)){var k,L,B,U,G=qe(O,Sr),z=G&&(k=(L=G.props)===null||L===void 0?void 0:L.startIndex)!==null&&k!==void 0?k:M,K=G&&(B=(U=G.props)===null||U===void 0?void 0:U.endIndex)!==null&&B!==void 0?B:A,ue=z!==M||K!==A,de=!Z(w),ke=de&&!ue?b.updateId:b.updateId+1;return I(I({updateId:ke},p(I(I({props:d},b),{},{updateId:ke,dataStartIndex:z,dataEndIndex:K}),b)),{},{prevChildren:O,dataStartIndex:z,dataEndIndex:K})}return null}),H(y,"renderActiveDot",function(d,b,x){var w;return N.isValidElement(d)?w=N.cloneElement(d,b):V(d)?w=d(b):w=T.createElement(Jf,b),T.createElement(pe,{className:"recharts-active-dot",key:x},w)});var v=N.forwardRef(function(b,x){return T.createElement(y,cr({},b,{ref:x}))});return v.displayName=y.displayName,v},nN=YR({chartName:"LineChart",GraphicalChild:La,axisComponents:[{axisType:"xAxis",AxisComp:ch},{axisType:"yAxis",AxisComp:sh}],formatAxisMap:KI});export{xt as A,Ge as B,Sk as C,Jf as D,Pj as E,tt as F,qr as G,vt as H,YR as I,tN as J,Ta as K,nN as L,Wn as M,nO as N,rm as O,Zn as P,KI as Q,eN as R,U$ as S,st as T,ch as X,sh as Y,ah as a,La as b,Vb as c,lr as d,UT as e,J as f,Ct as g,KT as h,V as i,Pi as j,pe as k,rN as l,vi as m,Ee as n,Sl as o,Pe as p,Z as q,I0 as r,Be as s,He as t,Je as u,ja as v,q as w,jt as x,Un as y,et as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.