PageSourceSearch

https://spreadthemagic.ai/assets/Plan-BmPfWCLW.js

js spreadthemagic.ai collected 2026-10-05 15:01:07 UTC 472,959 bytes, 93 lines download raw bytes

vendor: 7,052 bytes, lines 1-21
1import{c as xo,a5 as Ji,a6 as ue,r as D,a7 as Q,a3 as S,j as A,a as Dg,a0 as Rg,y as ys,a8 as Lg,b as Bg,B as Fg,a9 as zg}from"./index-B2wrSxfc.js";import{L as kl}from"./lock-CBnsznBI.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const Wg=xo("Banknote",[["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M6 12h.01M18 12h.01",key:"113zkx"}]]);/**
7 * @license lucide-react v0.462.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const Ug=xo("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/**
12 * @license lucide-react v0.462.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */const Kg=xo("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
17 * @license lucide-react v0.462.0 - ISC
18 *
19 * This source code is licensed under the ISC license.
20 * See the LICENSE file in the root directory of this source tree.
21 */const zh=xo("Wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]);var qg=Array.isArray,Ge=qg,Gg=typeof Ji=="object"&&Ji&&Ji.Object===Object&&Ji,Wh=Gg,Hg=Wh,Vg=typeof self=="object"&&self&&self.Object===Object&&self,Xg=Hg||Vg||Function("return this")(),$t=Xg,Yg=$t,Zg=Yg.Symbol,Ui=Zg,Ml=Ui,Uh=Object.prototype,Qg=Uh.hasOwnProperty,Jg=Uh.toString,Wn=Ml?Ml.toStringTag:void 0;function eb(e){var t=Qg.call(e,Wn),r=e[Wn];try{e[Wn]=void 0;var n=!0}catch{}var i=Jg.call(e);return n&&(t?e[Wn]=r:delete e[Wn]),i}var tb=eb,rb=Object.prototype,nb=rb.toString;function ib(e){return nb.call(e)}var ab=ib,Nl=Ui,ob=tb,sb=ab,ub="[object Null]",cb="[object Undefined]",Cl=Nl?Nl.toStringTag:void 0;function lb(e){return e==null?e===void 0?cb:ub:Cl&&Cl in Object(e)?ob(e):sb(e)}var Ft=lb;function fb(e){return e!=null&&typeof e=="object"}var zt=fb,db=Ft,pb=zt,hb="[object Symbol]";function vb(e){return typeof e=="symbol"||pb(e)&&db(e)==hb}var jn=vb,yb=Ge,mb=jn,gb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bb=/^\w*$/;function xb(e,t){if(yb(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||mb(e)?!0:bb.test(e)||!gb.test(e)||t!=null&&e in Object(t)}var Pc=xb;function wb(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var nr=wb;const Tn=ue(nr);var Ob=Ft,Ab=nr,Pb="[object AsyncFunction]",Sb="[object Function]",_b="[object GeneratorFunction]",$b="[object Proxy]";function jb(e){if(!Ab(e))return!1;var t=Ob(e);return t==Sb||t==_b||t==Pb||t==$b}var Sc=jb;const V=ue(Sc);var Tb=$t,Eb=Tb["__core-js_shared__"],kb=Eb,ms=kb,Il=function(){var e=/[^.]+$/.exec(ms&&ms.keys&&ms.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Mb(e){return!!Il&&Il in e}var Nb=Mb,Cb=Function.prototype,Ib=Cb.toString;function Db(e){if(e!=null){try{return Ib.call(e)}catch{}try{return e+""}catch{}}return""}var Kh=Db,Rb=Sc,Lb=Nb,Bb=nr,Fb=Kh,zb=/[\\^$.*+?()[\]{}|]/g,Wb=/^\[object .+?Constructor\]$/,Ub=Function.prototype,Kb=Object.prototype,qb=Ub.toString,Gb=Kb.hasOwnProperty,Hb=RegExp("^"+qb.call(Gb).replace(zb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Vb(e){if(!Bb(e)||Lb(e))return!1;var t=Rb(e)?Hb:Wb;return t.test(Fb(e))}var Xb=Vb;function Yb(e,t){return e==null?void 0:e[t]}var Zb=Yb,Qb=Xb,Jb=Zb;function e0(e,t){var r=Jb(e,t);return Qb(r)?r:void 0}var Cr=e0,t0=Cr,r0=t0(Object,"create"),wo=r0,Dl=wo;function n0(){this.__data__=Dl?Dl(null):{},this.size=0}var i0=n0;function a0(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var o0=a0,s0=wo,u0="__lodash_hash_undefined__",c0=Object.prototype,l0=c0.hasOwnProperty;function f0(e){var t=this.__data__;if(s0){var r=t[e];return r===u0?void 0:r}return l0.call(t,e)?t[e]:void 0}var d0=f0,p0=wo,h0=Object.prototype,v0=h0.hasOwnProperty;function y0(e){var t=this.__data__;return p0?t[e]!==void 0:v0.call(t,e)}var m0=y0,g0=wo,b0="__lodash_hash_undefined__";function x0(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=g0&&t===void 0?b0:t,this}var w0=x0,O0=i0,A0=o0,P0=d0,S0=m0,_0=w0;function En(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}En.prototype.clear=O0;En.prototype.delete=A0;En.prototype.get=P0;En.prototype.has=S0;En.prototype.set=_0;var $0=En;function j0(){this.__data__=[],this.size=0}var T0=j0;function E0(e,t){return e===t||e!==e&&t!==t}var _c=E0,k0=_c;function M0(e,t){for(var r=e.length;r--;)if(k0(e[r][0],t))return r;return-1}var Oo=M0,N0=Oo,C0=Array.prototype,I0=C0.splice;function D0(e){var t=this.__data__,r=N0(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():I0.call(t,r,1),--this.size,!0}var R0=D0,L0=Oo;function B0(e){var t=this.__data__,r=L0(t,e);return r<0?void 0:t[r][1]}var F0=B0,z0=Oo;function W0(e){return z0(this.__data__,e)>-1}var U0=W0,K0=Oo;function q0(e,t){var r=this.__data__,n=K0(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var G0=q0,H0=T0,V0=R0,X0=F0,Y0=U0,Z0=G0;function kn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}kn.prototype.clear=H0;kn.prototype.delete=V0;kn.prototype.get=X0;kn.prototype.has=Y0;kn.prototype.set=Z0;var Ao=kn,Q0=Cr,J0=$t,ex=Q0(J0,"Map"),$c=ex,Rl=$0,tx=Ao,rx=$c;function nx(){this.size=0,this.__data__={hash:new Rl,map:new(rx||tx),string:new Rl}}var ix=nx;function ax(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var ox=ax,sx=ox;function ux(e,t){var r=e.__data__;return sx(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Po=ux,cx=Po;function lx(e){var t=cx(this,e).delete(e);return this.size-=t?1:0,t}var fx=lx,dx=Po;function px(e){return dx(this,e).get(e)}var hx=px,vx=Po;function yx(e){return vx(this,e).has(e)}var mx=yx,gx=Po;function bx(e,t){var r=gx(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var xx=bx,wx=ix,Ox=fx,Ax=hx,Px=mx,Sx=xx;function Mn(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Mn.prototype.clear=wx;Mn.prototype.delete=Ox;Mn.prototype.get=Ax;Mn.prototype.has=Px;Mn.prototype.set=Sx;var jc=Mn,qh=jc,_x="Expected a function";function Tc(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(_x);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(Tc.Cache||qh),r}Tc.Cache=qh;var Gh=Tc;const $x=ue(Gh);var jx=Gh,Tx=500;function Ex(e){var t=jx(e,function(n){return r.size===Tx&&r.clear(),n}
vendor: 6,913 bytes, lines 21-29
21),r=t.cache;return t}var kx=Ex,Mx=kx,Nx=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Cx=/\\(\\)?/g,Ix=Mx(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Nx,function(r,n,i,a){t.push(i?a.replace(Cx,"$1"):n||r)}),t}),Dx=Ix;function Rx(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Ec=Rx,Ll=Ui,Lx=Ec,Bx=Ge,Fx=jn,zx=1/0,Bl=Ll?Ll.prototype:void 0,Fl=Bl?Bl.toString:void 0;function Hh(e){if(typeof e=="string")return e;if(Bx(e))return Lx(e,Hh)+"";if(Fx(e))return Fl?Fl.call(e):"";var t=e+"";return t=="0"&&1/e==-zx?"-0":t}var Wx=Hh,Ux=Wx;function Kx(e){return e==null?"":Ux(e)}var Vh=Kx,qx=Ge,Gx=Pc,Hx=Dx,Vx=Vh;function Xx(e,t){return qx(e)?e:Gx(e,t)?[e]:Hx(Vx(e))}var Xh=Xx,Yx=jn,Zx=1/0;function Qx(e){if(typeof e=="string"||Yx(e))return e;var t=e+"";return t=="0"&&1/e==-Zx?"-0":t}var So=Qx,Jx=Xh,ew=So;function tw(e,t){t=Jx(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[ew(t[r++])];return r&&r==n?e:void 0}var kc=tw,rw=kc;function nw(e,t,r){var n=e==null?void 0:rw(e,t);return n===void 0?r:n}var Yh=nw;const Je=ue(Yh);function iw(e){return e==null}var aw=iw;const H=ue(aw);var ow=Ft,sw=Ge,uw=zt,cw="[object String]";function lw(e){return typeof e=="string"||!sw(e)&&uw(e)&&ow(e)==cw}var fw=lw;const Tr=ue(fw);var Zh={exports:{}},oe={};/**
22 * @license React
23 * react-is.production.min.js
24 *
25 * Copyright (c) Facebook, Inc. and its affiliates.
26 *
27 * This source code is licensed under the MIT license found in the
28 * LICENSE file in the root directory of this source tree.
29 */var Mc=Symbol.for("react.element"),Nc=Symbol.for("react.portal"),_o=Symbol.for("react.fragment"),$o=Symbol.for("react.strict_mode"),jo=Symbol.for("react.profiler"),To=Symbol.for("react.provider"),Eo=Symbol.for("react.context"),dw=Symbol.for("react.server_context"),ko=Symbol.for("react.forward_ref"),Mo=Symbol.for("react.suspense"),No=Symbol.for("react.suspense_list"),Co=Symbol.for("react.memo"),Io=Symbol.for("react.lazy"),pw=Symbol.for("react.offscreen"),Qh;Qh=Symbol.for("react.module.reference");function dt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Mc:switch(e=e.type,e){case _o:case jo:case $o:case Mo:case No:return e;default:switch(e=e&&e.$$typeof,e){case dw:case Eo:case ko:case Io:case Co:case To:return e;default:return t}}case Nc:return t}}}oe.ContextConsumer=Eo;oe.ContextProvider=To;oe.Element=Mc;oe.ForwardRef=ko;oe.Fragment=_o;oe.Lazy=Io;oe.Memo=Co;oe.Portal=Nc;oe.Profiler=jo;oe.StrictMode=$o;oe.Suspense=Mo;oe.SuspenseList=No;oe.isAsyncMode=function(){return!1};oe.isConcurrentMode=function(){return!1};oe.isContextConsumer=function(e){return dt(e)===Eo};oe.isContextProvider=function(e){return dt(e)===To};oe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Mc};oe.isForwardRef=function(e){return dt(e)===ko};oe.isFragment=function(e){return dt(e)===_o};oe.isLazy=function(e){return dt(e)===Io};oe.isMemo=function(e){return dt(e)===Co};oe.isPortal=function(e){return dt(e)===Nc};oe.isProfiler=function(e){return dt(e)===jo};oe.isStrictMode=function(e){return dt(e)===$o};oe.isSuspense=function(e){return dt(e)===Mo};oe.isSuspenseList=function(e){return dt(e)===No};oe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===_o||e===jo||e===$o||e===Mo||e===No||e===pw||typeof e=="object"&&e!==null&&(e.$$typeof===Io||e.$$typeof===Co||e.$$typeof===To||e.$$typeof===Eo||e.$$typeof===ko||e.$$typeof===Qh||e.getModuleId!==void 0)};oe.typeOf=dt;Zh.exports=oe;var hw=Zh.exports,vw=Ft,yw=zt,mw="[object Number]";function gw(e){return typeof e=="number"||yw(e)&&vw(e)==mw}var Jh=gw;const bw=ue(Jh);var xw=Jh;function ww(e){return xw(e)&&e!=+e}var Ow=ww;const Nn=ue(Ow);var Be=function(t){return t===0?0:t>0?1:-1},Or=function(t){return Tr(t)&&t.indexOf("%")===t.length-1},B=function(t){return bw(t)&&!Nn(t)},Aw=function(t){return H(t)},je=function(t){return B(t)||Tr(t)},Pw=0,ir=function(t){var r=++Pw;return"".concat(t||"").concat(r)},Fe=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(!B(t)&&!Tr(t))return n;var a;if(Or(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Nn(a)&&(a=n),i&&a>r&&(a=r),a},Vt=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},Sw=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},ge=function(t,r){return B(t)&&B(r)?function(n){return t+n*(r-t)}:function(){return r}};function va(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Je(n,t))===r})}var _w=function(t){if(!t||!t.length)return null;for(var r=t.length,n=0,i=0,a=0,o=0,s=1/0,u=-1/0,c=0,l=0,f=0;f<r;f++)c=t[f].cx||0,l=t[f].cy||0,n+=c,i+=l,a+=c*l,o+=c*c,s=Math.min(s,c),u=Math.max(u,c);var p=r*o!==n*n?(r*a-n*i)/(r*o-n*n):0;return{xmin:s,xmax:u,a:p,b:(i-p*n)/r}},$w=function(t,r){return B(t)&&B(r)?t-r:Tr(t)&&Tr(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Xr(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 Hs(e){"@babel/helpers - typeof";return Hs=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},Hs(e)}var jw=["viewBox","children"],Tw=["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
29dering","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"],zl=["points","pathLength"],gs={svg:jw,polygon:zl,polyline:zl},Cc=["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
29Capture","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"],ya=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(D.isValidElement(t)&&(n=t.props),!Tn(n))return null;var i={};return Object.keys(n).forEach(function(a){Cc.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},Ew=function(t,r,n){return function(i){return t(r,n,i),null}},tr=function(t,r,n){if(!Tn(t)||Hs(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];Cc.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=Ew(o,r,n))}),i},kw=["children"],Mw=["children"];function Wl(e,t){if(e==null)return{};var r=Nw(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 Nw(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 Vs(e){"@babel/helpers - typeof";return Vs=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},Vs(e)}var Ul={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"},Ct=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Kl=null,bs=null,Ic=function e(t){if(t===Kl&&Array.isArray(bs))return bs;var r=[];return D.Children.forEach(t,function(n){H(n)||(hw.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),bs=r,Kl=t,r};function We(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Ct(i)}):n=[Ct(t)],Ic(e).forEach(function(i){var a=Je(i,"type.displayName")||Je(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Ze(e,t){var r=We(e,t);return r&&r[0]}var ql=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!B(n)||n<=0||!B(i)||i<=0)},Cw=["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"],Iw=function(t){return t&&t.type&&Tr(t.type)&&Cw.indexOf(t.type)>=0},ev=function(t){return t&&Vs(t)==="object"&&"clipDot"in t},Dw=function(t,r,n,i){var a,o=(a=gs==null?void 0:gs[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!V(t)&&(i&&o.includes(r)||Tw.includes(r))||n&&Cc.includes(r)},q=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(D.isValidElement(t)&&(i=t.props),!Tn(i))return null;var a={};
29return Object.keys(i).forEach(function(o){var s;Dw((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},Xs=function e(t,r){if(t===r)return!0;var n=D.Children.count(t);if(n!==D.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Gl(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(!Gl(a,o))return!1}return!0},Gl=function(t,r){if(H(t)&&H(r))return!0;if(!H(t)&&!H(r)){var n=t.props||{},i=n.children,a=Wl(n,kw),o=r.props||{},s=o.children,u=Wl(o,Mw);return i&&s?Xr(a,u)&&Xs(i,s):!i&&!s?Xr(a,u):!1}return!1},Hl=function(t,r){var n=[],i={};return Ic(t).forEach(function(a,o){if(Iw(a))n.push(a);else if(a){var s=Ct(a.type),u=r[s]||{},c=u.handler,l=u.once;if(c&&(!l||!i[s])){var f=c(a,s,o);n.push(f),i[s]=!0}}}),n},Rw=function(t){var r=t&&t.type;return r&&Ul[r]?Ul[r]:null},Lw=function(t,r){return Ic(r).indexOf(t)},Bw=["children","width","height","viewBox","className","style","title","desc"];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 Fw(e,t){if(e==null)return{};var r=zw(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 zw(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 Zs(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,u=e.desc,c=Fw(e,Bw),l=i||{width:r,height:n,x:0,y:0},f=Q("recharts-surface",a);return S.createElement("svg",Ys({},q(c,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(l.x," ").concat(l.y," ").concat(l.width," ").concat(l.height)}),S.createElement("title",null,s),S.createElement("desc",null,u),t)}var Ww=["children","className"];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 Uw(e,t){if(e==null)return{};var r=Kw(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 Kw(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 J=S.forwardRef(function(e,t){var r=e.children,n=e.className,i=Uw(e,Ww),a=Q("recharts-layer",n);return S.createElement("g",Qs({className:a},q(i,!0),{ref:t}),r)}),bt=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]};function qw(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n<i;)a[n]=e[n+t];return a}var Gw=qw,Hw=Gw;function Vw(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:Hw(e,t,r)}var Xw=Vw,Yw="\\ud800-\\udfff",Zw="\\u0300-\\u036f",Qw="\\ufe20-\\ufe2f",Jw="\\u20d0-\\u20ff",e1=Zw+Qw+Jw,t1="\\ufe0e\\ufe0f",r1="\\u200d",n1=RegExp("["+r1+Yw+e1+t1+"]");function i1(e){return n1.test(e)}var tv=i1;function a1(e){return e.split("")}var o1=a1,rv="\\ud800-\\udfff",s1="\\u0300-\\u036f",u1="\\ufe20-\\ufe2f",c1="\\u20d0-\\u20ff",l1=s1+u1+c1,f1="\\ufe0e\\ufe0f",d1="["+rv+"]",Js="["+l1+"]",eu="\\ud83c[\\udffb-\\udfff]",p1="(?:"+Js+"|"+eu+")",nv="[^"+rv+"]",iv="(?:\\ud83c[\\udde6-\\uddff]){2}",av="[\\ud800-\\udbff][\\udc00-\\udfff]",h1="\\u200d",ov=p1+"?",sv="["+f1+"]?",v1="(?:"+h1+"(?:"+[nv,iv,av].join("|")+")"+sv+ov+")*",y1=sv+ov+v1,m1="(?:"+[nv+Js+"?",Js,iv,av,d1].join("|")+")",g1=RegExp(eu+"(?="+eu+")|"+m1+y1,"g");function b1(e){return e.match(g1)||[]}var x1=b1,w1=o1,O1=tv,A1=x1;function P1(e){return O1(e)?A1(e):w1(e)}var S1=P1,_1=Xw,$1=tv,j1=S1,T1=Vh;function E1(e){return function(t){t=T1(t);var r=$1(t)?j1(t):void 0,n=r?r[0]:t.charAt(0),i=r?_1(r,1).join(""):t.slice(1);return n[e]()+i}}var k1=E1,M1=k1,N1=M1("toUpperCase"),C1=N1;const Do=ue(C1);function fe(e){return function(){return e}}const uv=Math.cos,ma=Math.sin,xt=Math.sqrt,ga=Math.PI,Ro=2*ga,tu=Math.PI,ru=2*tu,yr=1e-6,I1=ru-yr;function cv(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function D1(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return cv;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 R1{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?cv:D1(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}
29,${+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,s=this._y1,u=n-t,c=i-r,l=o-t,f=s-r,p=l*l+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(p>yr)if(!(Math.abs(f*u-c*l)>yr)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let v=n-o,y=i-s,d=u*u+c*c,h=v*v+y*y,g=Math.sqrt(d),x=Math.sqrt(p),b=a*Math.tan((tu-Math.acos((d+p-h)/(2*g*x)))/2),O=b/x,m=b/g;Math.abs(O-1)>yr&&this._append`L${t+O*l},${r+O*f}`,this._append`A${a},${a},0,0,${+(f*v>l*y)},${this._x1=t+m*u},${this._y1=r+m*c}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),u=n*Math.sin(i),c=t+s,l=r+u,f=1^o,p=o?i-a:a-i;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>yr||Math.abs(this._y1-l)>yr)&&this._append`L${c},${l}`,n&&(p<0&&(p=p%ru+ru),p>I1?this._append`A${n},${n},0,1,${f},${t-s},${r-u}A${n},${n},0,1,${f},${this._x1=c},${this._y1=l}`:p>yr&&this._append`A${n},${n},0,${+(p>=tu)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Dc(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 R1(t)}function Rc(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function lv(e){this._context=e}lv.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 Lo(e){return new lv(e)}function fv(e){return e[0]}function dv(e){return e[1]}function pv(e,t){var r=fe(!0),n=null,i=Lo,a=null,o=Dc(s);e=typeof e=="function"?e:e===void 0?fv:fe(e),t=typeof t=="function"?t:t===void 0?dv:fe(t);function s(u){var c,l=(u=Rc(u)).length,f,p=!1,v;for(n==null&&(a=i(v=o())),c=0;c<=l;++c)!(c<l&&r(f=u[c],c,u))===p&&((p=!p)?a.lineStart():a.lineEnd()),p&&a.point(+e(f,c,u),+t(f,c,u));if(v)return a=null,v+""||null}return s.x=function(u){return arguments.length?(e=typeof u=="function"?u:fe(+u),s):e},s.y=function(u){return arguments.length?(t=typeof u=="function"?u:fe(+u),s):t},s.defined=function(u){return arguments.length?(r=typeof u=="function"?u:fe(!!u),s):r},s.curve=function(u){return arguments.length?(i=u,n!=null&&(a=i(n)),s):i},s.context=function(u){return arguments.length?(u==null?n=a=null:a=i(n=u),s):n},s}function ea(e,t,r){var n=null,i=fe(!0),a=null,o=Lo,s=null,u=Dc(c);e=typeof e=="function"?e:e===void 0?fv:fe(+e),t=typeof t=="function"?t:fe(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?dv:fe(+r);function c(f){var p,v,y,d=(f=Rc(f)).length,h,g=!1,x,b=new Array(d),O=new Array(d);for(a==null&&(s=o(x=u())),p=0;p<=d;++p){if(!(p<d&&i(h=f[p],p,f))===g)if(g=!g)v=p,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),y=p-1;y>=v;--y)s.point(b[y],O[y]);s.lineEnd(),s.areaEnd()}g&&(b[p]=+e(h,p,f),O[p]=+t(h,p,f),s.point(n?+n(h,p,f):b[p],r?+r(h,p,f):O[p]))}if(x)return s=null,x+""||null}function l(){return pv().defined(i).curve(o).context(a)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:fe(+f),n=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:fe(+f),c):e},c.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:fe(+f),c):n},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:fe(+f),r=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:fe(+f),c):t},c.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:fe(+f),c):r},c.lineX0=c.lineY0=function(){return l().x(e).y(t)},c.lineY1=function(){return l().x(e).y(r)},c.lineX1=function(){return l().x(n).y(t)},c.defined=function(f){return arguments.length?(i=typeof f=="function"?f:fe(!!f),c):i},c.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),c):o},c.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),c):a},c}class hv{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 L1(e){return new hv(e,!0)}function B1(e){return new hv(e,!1)}const Lc={draw(e,t){const r=xt(t/ga);e.moveTo(r,0),e.arc(0,0,r,0,Ro)}},F1={draw(e,t){const r=xt(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()}},vv=xt(1/3),z1=vv*2,W1={draw(e,t){const r=xt(t/z1),n=r*vv;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},U1={draw(e,t){const r=xt(t),n=-r/2;e.rect(n,n,r,r)}},K1=.8908130915292852,yv=ma(ga/10)/ma(7*ga/10),q1=ma(Ro/10)*yv,G1=-uv(Ro/10)*yv,H1={draw(e,t){const r=xt(t*K1),n=q1*r,i=G1*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Ro*a/5,s=uv(o),u=ma(o);e.lineTo(u*r,-s*r),e.lineTo(s*n-u*i,u*n+s*i)}e.closePath()}},xs=xt(3),V1={draw(e,t){const r=-xt(t/(xs*3));e.moveTo(0,r*2),e.lineTo(-xs*r,-r),e.lineTo(xs*r,-r),e.closePath()}},et=-.5,tt=xt(3)/2,nu=1/xt(12),X1=(nu/2+1)*3,Y1={draw(e,t){const r=xt(t/X1),n=r/2,i=r*nu,a=n,o=r*nu+r,s=-a,u=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,u),e.lineTo(et*n-tt*i,tt*n+et*i),e.lineTo(et*a-tt*o,tt*a+et*o),e.lineTo(et*s-tt*u,tt*s+et*u),e.lineTo(et*n+tt*i,et*i-tt*n),e.lineTo(et*a+tt*o,et*o-tt*a),e.lineTo(et*s+tt*u,et*u-tt*s),e.closePath()}};function Z1(e,t){let r=null,n=Dc(i);e=typeof e=="function"?e:fe(e||Lc),t=typeof t=="function"?t:fe(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:fe(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:fe(+a),i):t}
vendor: 6,361 bytes, line 29
29,i.context=function(a){return arguments.length?(r=a??null,i):r},i}function ba(){}function xa(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 mv(e){this._context=e}mv.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:xa(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:xa(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Q1(e){return new mv(e)}function gv(e){this._context=e}gv.prototype={areaStart:ba,areaEnd:ba,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:xa(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function J1(e){return new gv(e)}function bv(e){this._context=e}bv.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:xa(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function eO(e){return new bv(e)}function xv(e){this._context=e}xv.prototype={areaStart:ba,areaEnd:ba,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 tO(e){return new xv(e)}function Vl(e){return e<0?-1:1}function Xl(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),s=(a*i+o*n)/(n+i);return(Vl(a)+Vl(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Yl(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function ws(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function wa(e){this._context=e}wa.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:ws(this,this._t0,Yl(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,ws(this,Yl(this,r=Xl(this,e,t)),r);break;default:ws(this,this._t0,r=Xl(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function wv(e){this._context=new Ov(e)}(wv.prototype=Object.create(wa.prototype)).point=function(e,t){wa.prototype.point.call(this,t,e)};function Ov(e){this._context=e}Ov.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 rO(e){return new wa(e)}function nO(e){return new wv(e)}function Av(e){this._context=e}Av.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=Zl(e),i=Zl(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 Zl(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 iO(e){return new Av(e)}function Bo(e,t){this._context=e,this._t=t}Bo.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: 9,121 bytes, lines 29-32
29default:{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 aO(e){return new Bo(e,.5)}function oO(e){return new Bo(e,0)}function sO(e){return new Bo(e,1)}function Qr(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function iu(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function uO(e,t){return e[t]}function cO(e){const t=[];return t.key=e,t}function lO(){var e=fe([]),t=iu,r=Qr,n=uO;function i(a){var o=Array.from(e.apply(this,arguments),cO),s,u=o.length,c=-1,l;for(const f of a)for(s=0,++c;s<u;++s)(o[s][c]=[0,+n(f,o[s].key,c,a)]).data=f;for(s=0,l=Rc(t(o));s<u;++s)o[l[s]].index=s;return r(o,l),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:fe(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:fe(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?iu:typeof a=="function"?a:fe(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Qr,i):r},i}function fO(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}Qr(e,t)}}function dO(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,s=0;o<i;++o)s+=e[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}Qr(e,t)}}function pO(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 s=0,u=0,c=0;s<o;++s){for(var l=e[t[s]],f=l[n][1]||0,p=l[n-1][1]||0,v=(f-p)/2,y=0;y<s;++y){var d=e[t[y]],h=d[n][1]||0,g=d[n-1][1]||0;v+=h-g}u+=f,c+=v*f}i[n-1][1]+=i[n-1][0]=r,u&&(r-=c/u)}i[n-1][1]+=i[n-1][0]=r,Qr(e,t)}}function ui(e){"@babel/helpers - typeof";return ui=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ui(e)}var hO=["type","size","sizeType"];function au(){return au=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},au.apply(this,arguments)}function Ql(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ql(Object(r),!0).forEach(function(n){vO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ql(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vO(e,t,r){return t=yO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yO(e){var t=mO(e,"string");return ui(t)=="symbol"?t:t+""}function mO(e,t){if(ui(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ui(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gO(e,t){if(e==null)return{};var r=bO(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 bO(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 Pv={symbolCircle:Lc,symbolCross:F1,symbolDiamond:W1,symbolSquare:U1,symbolStar:H1,symbolTriangle:V1,symbolWye:Y1},xO=Math.PI/180,wO=function(t){var r="symbol".concat(Do(t));return Pv[r]||Lc},OO=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*xO;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}},AO=function(t,r){Pv["symbol".concat(Do(t))]=r},Fo=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,u=gO(t,hO),c=Jl(Jl({},u),{},{type:n,size:a,sizeType:s}),l=function(){var h=wO(n),g=Z1().type(h).size(OO(a,s,n));return g()},f=c.className,p=c.cx,v=c.cy,y=q(c,!0);return p===+p&&v===+v&&a===+a?S.createElement("path",au({},y,{className:Q("recharts-symbols",f),transform:"translate(".concat(p,", ").concat(v,")"),d:l()})):null};Fo.registerSymbol=AO;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 ou(){return ou=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},ou.apply(this,arguments)}function ef(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 PO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ef(Object(r),!0).forEach(function(n){ci(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ef(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _O(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_v(n.key),n)}}function $O(e,t,r){return t&&_O(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jO(e,t,r){return t=Oa(t),TO(e,Sv()?Reflect.construct(t,r||[],Oa(e).constructor):t.apply(e,r))}function TO(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 EO(e)}function EO(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Sv=function(){return!!e})()}function Oa(e){return Oa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Oa(e)}function kO(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&&su(e,t)}function su(e,t){return su=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},su(e,t)}function ci(e,t,r){return t=_v(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _v(e){var t=MO(e,"string");return Jr(t)=="symbol"?t:t+""}function MO(e,t){if(Jr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Jr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rt=32,Bc=function(e){function t(){return SO(this,t),jO(this,t,arguments)}return kO(t,e),$O(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=rt/2,o=rt/6,s=rt/3,u=n.inactive?i:n.color;if(n.type==="plainline")return S.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:rt,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return S.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(a,"h").concat(s,`
30            A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(a,`
31            H`).concat(rt,"M").concat(2*s,",").concat(a,`
32            A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return S.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(rt/8,"h").concat(rt,"v").concat(rt*3/4,"h").concat(-rt,"z"),className:"recharts-legend-icon"});if(S.isValidElement(n.legendIcon)){var c=PO({},n);return delete c.legendIcon,S.cloneElement(n.legendIcon,c)}return S.createElement(Fo,{fill:u,cx:a,cy:a,size:rt,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,s=i.layout,u=i.formatter,c=i.inactiveColor,l={x:0,y:0,width:rt,he
32ight:rt},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},p={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(v,y){var d=v.formatter||u,h=Q(ci(ci({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",v.inactive));if(v.type==="none")return null;var g=V(v.value)?null:v.value;bt(!V(v.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=v.inactive?c:v.color;return S.createElement("li",ou({className:h,style:f,key:"legend-item-".concat(y)},tr(n.props,v,y)),S.createElement(Zs,{width:o,height:o,viewBox:l,style:p},n.renderIcon(v)),S.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},d?d(g,v,y):g))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return S.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(D.PureComponent);ci(Bc,"displayName","Legend");ci(Bc,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var NO=Ao;function CO(){this.__data__=new NO,this.size=0}var IO=CO;function DO(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var RO=DO;function LO(e){return this.__data__.get(e)}var BO=LO;function FO(e){return this.__data__.has(e)}var zO=FO,WO=Ao,UO=$c,KO=jc,qO=200;function GO(e,t){var r=this.__data__;if(r instanceof WO){var n=r.__data__;if(!UO||n.length<qO-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new KO(n)}return r.set(e,t),this.size=r.size,this}var HO=GO,VO=Ao,XO=IO,YO=RO,ZO=BO,QO=zO,JO=HO;function Cn(e){var t=this.__data__=new VO(e);this.size=t.size}Cn.prototype.clear=XO;Cn.prototype.delete=YO;Cn.prototype.get=ZO;Cn.prototype.has=QO;Cn.prototype.set=JO;var $v=Cn,eA="__lodash_hash_undefined__";function tA(e){return this.__data__.set(e,eA),this}var rA=tA;function nA(e){return this.__data__.has(e)}var iA=nA,aA=jc,oA=rA,sA=iA;function Aa(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new aA;++t<r;)this.add(e[t])}Aa.prototype.add=Aa.prototype.push=oA;Aa.prototype.has=sA;var jv=Aa;function uA(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Tv=uA;function cA(e,t){return e.has(t)}var Ev=cA,lA=jv,fA=Tv,dA=Ev,pA=1,hA=2;function vA(e,t,r,n,i,a){var o=r&pA,s=e.length,u=t.length;if(s!=u&&!(o&&u>s))return!1;var c=a.get(e),l=a.get(t);if(c&&l)return c==t&&l==e;var f=-1,p=!0,v=r&hA?new lA:void 0;for(a.set(e,t),a.set(t,e);++f<s;){var y=e[f],d=t[f];if(n)var h=o?n(d,y,f,t,e,a):n(y,d,f,e,t,a);if(h!==void 0){if(h)continue;p=!1;break}if(v){if(!fA(t,function(g,x){if(!dA(v,x)&&(y===g||i(y,g,r,n,a)))return v.push(x)})){p=!1;break}}else if(!(y===d||i(y,d,r,n,a))){p=!1;break}}return a.delete(e),a.delete(t),p}var kv=vA,yA=$t,mA=yA.Uint8Array,gA=mA;function bA(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var xA=bA;function wA(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}
vendor: 6,347 bytes, line 32
32var Fc=wA,tf=Ui,rf=gA,OA=_c,AA=kv,PA=xA,SA=Fc,_A=1,$A=2,jA="[object Boolean]",TA="[object Date]",EA="[object Error]",kA="[object Map]",MA="[object Number]",NA="[object RegExp]",CA="[object Set]",IA="[object String]",DA="[object Symbol]",RA="[object ArrayBuffer]",LA="[object DataView]",nf=tf?tf.prototype:void 0,Os=nf?nf.valueOf:void 0;function BA(e,t,r,n,i,a,o){switch(r){case LA:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case RA:return!(e.byteLength!=t.byteLength||!a(new rf(e),new rf(t)));case jA:case TA:case MA:return OA(+e,+t);case EA:return e.name==t.name&&e.message==t.message;case NA:case IA:return e==t+"";case kA:var s=PA;case CA:var u=n&_A;if(s||(s=SA),e.size!=t.size&&!u)return!1;var c=o.get(e);if(c)return c==t;n|=$A,o.set(e,t);var l=AA(s(e),s(t),n,i,a,o);return o.delete(e),l;case DA:if(Os)return Os.call(e)==Os.call(t)}return!1}var FA=BA;function zA(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var Mv=zA,WA=Mv,UA=Ge;function KA(e,t,r){var n=t(e);return UA(e)?n:WA(n,r(e))}var qA=KA;function GA(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}var HA=GA;function VA(){return[]}var XA=VA,YA=HA,ZA=XA,QA=Object.prototype,JA=QA.propertyIsEnumerable,af=Object.getOwnPropertySymbols,eP=af?function(e){return e==null?[]:(e=Object(e),YA(af(e),function(t){return JA.call(e,t)}))}:ZA,tP=eP;function rP(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var nP=rP,iP=Ft,aP=zt,oP="[object Arguments]";function sP(e){return aP(e)&&iP(e)==oP}var uP=sP,of=uP,cP=zt,Nv=Object.prototype,lP=Nv.hasOwnProperty,fP=Nv.propertyIsEnumerable,dP=of(function(){return arguments}())?of:function(e){return cP(e)&&lP.call(e,"callee")&&!fP.call(e,"callee")},zc=dP,Pa={exports:{}};function pP(){return!1}var hP=pP;Pa.exports;(function(e,t){var r=$t,n=hP,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,u=s?s.isBuffer:void 0,c=u||n;e.exports=c})(Pa,Pa.exports);var Cv=Pa.exports,vP=9007199254740991,yP=/^(?:0|[1-9]\d*)$/;function mP(e,t){var r=typeof e;return t=t??vP,!!t&&(r=="number"||r!="symbol"&&yP.test(e))&&e>-1&&e%1==0&&e<t}var Wc=mP,gP=9007199254740991;function bP(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=gP}var Uc=bP,xP=Ft,wP=Uc,OP=zt,AP="[object Arguments]",PP="[object Array]",SP="[object Boolean]",_P="[object Date]",$P="[object Error]",jP="[object Function]",TP="[object Map]",EP="[object Number]",kP="[object Object]",MP="[object RegExp]",NP="[object Set]",CP="[object String]",IP="[object WeakMap]",DP="[object ArrayBuffer]",RP="[object DataView]",LP="[object Float32Array]",BP="[object Float64Array]",FP="[object Int8Array]",zP="[object Int16Array]",WP="[object Int32Array]",UP="[object Uint8Array]",KP="[object Uint8ClampedArray]",qP="[object Uint16Array]",GP="[object Uint32Array]",he={};he[LP]=he[BP]=he[FP]=he[zP]=he[WP]=he[UP]=he[KP]=he[qP]=he[GP]=!0;he[AP]=he[PP]=he[DP]=he[SP]=he[RP]=he[_P]=he[$P]=he[jP]=he[TP]=he[EP]=he[kP]=he[MP]=he[NP]=he[CP]=he[IP]=!1;function HP(e){return OP(e)&&wP(e.length)&&!!he[xP(e)]}var VP=HP;function XP(e){return function(t){return e(t)}}var Iv=XP,Sa={exports:{}};Sa.exports;(function(e,t){var r=Wh,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=function(){try{var u=i&&i.require&&i.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(Sa,Sa.exports);var YP=Sa.exports,ZP=VP,QP=Iv,sf=YP,uf=sf&&sf.isTypedArray,JP=uf?QP(uf):ZP,Dv=JP,eS=nP,tS=zc,rS=Ge,nS=Cv,iS=Wc,aS=Dv,oS=Object.prototype,sS=oS.hasOwnProperty;function uS(e,t){var r=rS(e),n=!r&&tS(e),i=!r&&!n&&nS(e),a=!r&&!n&&!i&&aS(e),o=r||n||i||a,s=o?eS(e.length,String):[],u=s.length;for(var c in e)(t||sS.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||iS(c,u)))&&s.push(c);return s}var cS=uS,lS=Object.prototype;function fS(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||lS;return e===r}var dS=fS;function pS(e,t){return function(r){return e(t(r))}}var Rv=pS,hS=Rv,vS=hS(Object.keys,Object),yS=vS,mS=dS,gS=yS,bS=Object.prototype,xS=bS.hasOwnProperty;function wS(e){if(!mS(e))return gS(e);var t=[];for(var r in Object(e))xS.call(e,r)&&r!="constructor"&&t.push(r);return t}var OS=wS,AS=Sc,PS=Uc;function SS(e){return e!=null&&PS(e.length)&&!AS(e)}var Ki=SS,_S=cS,$S=OS,jS=Ki;function TS(e){return jS(e)?_S(e):$S(e)}var zo=TS,ES=qA,kS=tP,MS=zo;function NS(e){return ES(e,MS,kS)}var CS=NS,cf=CS,IS=1,DS=Object.prototype,RS=DS.hasOwnProperty;function LS(e,t,r,n,i,a){var o=r&IS,s=cf(e),u=s.length,c=cf(t),l=c.length;if(u!=l&&!o)return!1;for(var f=u;f--;){var p=s[f];if(!(o?p in t:RS.call(t,p)))return!1}var v=a.get(e),y=a.get(t);if(v&&y)return v==t&&y==e;var d=!0;a.set(e,t),a.set(t,e);for(var h=o;++f<u;){p=s[f];var g=e[p],x=t[p];if(n)var b=o?n(x,g,p,t,e,a):n(g,x,p,e,t,a);if(!(b===void 0?g===x||i(g,x,r,n,a):b)){d=!1;break}h||(h=p=="constructor")}if(d&&!h){var O=e.constructor,m=t.constructor;O!=m&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof m=="function"&&m instanceof m)&&(d=!1)}return a.delete(e),a.delete(t),d}var BS=LS,FS=Cr,zS=$t,WS=FS(zS,"DataView"),US=WS,KS=Cr,qS=$t,GS=KS(qS,"Promise"),HS=GS,VS=Cr,XS=$t,YS=VS(XS,"Set"),Lv=YS,ZS=Cr,QS=$t,JS=ZS(QS,"WeakMap"),e_=JS,uu=US,cu=$c,lu=HS,fu=Lv,du=e_,Bv=Ft,In=Kh,lf="[object Map]",t_="[object Object]",ff="[object Promise]",df="[object Set]",pf="[object WeakMap]",hf="[object DataView]",r_=In(uu),n_=In(cu),i_=In(lu),a_=In(fu),o_=In(du),mr=Bv;(uu&&mr(new uu(new ArrayBuffer(1)))!=hf||cu&&mr(new cu)!=lf||lu&&mr(lu.resolve())!=ff||fu&&mr(new fu)!=df||du&&mr(new du)!=pf)&&(mr=function(e){var t=Bv(e),r=t==t_?e.constructor:void 0,n=r?In(r):"";if(n)switch(n){case r_:return hf;case n_:return lf;case i_:return ff;case a_:return df;case o_:return pf}return t});var s_=mr,As=$v,u_=kv,c_=FA,l_=BS,vf=s_,yf=Ge,mf=Cv,f_=Dv,d_=1,gf="[object Arguments]",bf="[object Array]",ta="[object Object]",p_=Object.prototype,xf=p_.hasOwnProperty;function h_(e,t,r,n,i,a){var o=yf(e),s=yf(t),u=o?bf:vf(e),c=s?bf:vf(t);u=u==gf?ta:u,c=c==gf?ta:c;var l=u==ta,f=c==ta,p=u==c;if(p&&mf(e)){if(!mf(t))return!1;o=!0,l=!1}if(p&&!l)return a||(a=new As),o||f_(e)?u_(e,t,r,n,i,a):c_(e,t,u,r,n,i,a);if(!(r&d_)){var v=l&&xf.call(e,"__wrapped__"),y=f&&xf.call(t,"__wrapped__");
vendor: 4,927 bytes, line 32
32if(v||y){var d=v?e.value():e,h=y?t.value():t;return a||(a=new As),i(d,h,r,n,a)}}return p?(a||(a=new As),l_(e,t,r,n,i,a)):!1}var v_=h_,y_=v_,wf=zt;function Fv(e,t,r,n,i){return e===t?!0:e==null||t==null||!wf(e)&&!wf(t)?e!==e&&t!==t:y_(e,t,r,n,Fv,i)}var Kc=Fv,m_=$v,g_=Kc,b_=1,x_=2;function w_(e,t,r,n){var i=r.length,a=i,o=!n;if(e==null)return!a;for(e=Object(e);i--;){var s=r[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=r[i];var u=s[0],c=e[u],l=s[1];if(o&&s[2]){if(c===void 0&&!(u in e))return!1}else{var f=new m_;if(n)var p=n(c,l,u,e,t,f);if(!(p===void 0?g_(l,c,b_|x_,n,f):p))return!1}}return!0}var O_=w_,A_=nr;function P_(e){return e===e&&!A_(e)}var zv=P_,S_=zv,__=zo;function $_(e){for(var t=__(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,S_(i)]}return t}var j_=$_;function T_(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Wv=T_,E_=O_,k_=j_,M_=Wv;function N_(e){var t=k_(e);return t.length==1&&t[0][2]?M_(t[0][0],t[0][1]):function(r){return r===e||E_(r,e,t)}}var C_=N_;function I_(e,t){return e!=null&&t in Object(e)}var D_=I_,R_=Xh,L_=zc,B_=Ge,F_=Wc,z_=Uc,W_=So;function U_(e,t,r){t=R_(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=W_(t[n]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&z_(i)&&F_(o,i)&&(B_(e)||L_(e)))}var K_=U_,q_=D_,G_=K_;function H_(e,t){return e!=null&&G_(e,t,q_)}var V_=H_,X_=Kc,Y_=Yh,Z_=V_,Q_=Pc,J_=zv,e$=Wv,t$=So,r$=1,n$=2;function i$(e,t){return Q_(e)&&J_(t)?e$(t$(e),t):function(r){var n=Y_(r,e);return n===void 0&&n===t?Z_(r,e):X_(t,n,r$|n$)}}var a$=i$;function o$(e){return e}var Dn=o$;function s$(e){return function(t){return t==null?void 0:t[e]}}var u$=s$,c$=kc;function l$(e){return function(t){return c$(t,e)}}var f$=l$,d$=u$,p$=f$,h$=Pc,v$=So;function y$(e){return h$(e)?d$(v$(e)):p$(e)}var m$=y$,g$=C_,b$=a$,x$=Dn,w$=Ge,O$=m$;function A$(e){return typeof e=="function"?e:e==null?x$:typeof e=="object"?w$(e)?b$(e[0],e[1]):g$(e):O$(e)}var jt=A$;function P$(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var Uv=P$;function S$(e){return e!==e}var _$=S$;function $$(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var j$=$$,T$=Uv,E$=_$,k$=j$;function M$(e,t,r){return t===t?k$(e,t,r):T$(e,E$,r)}var N$=M$,C$=N$;function I$(e,t){var r=e==null?0:e.length;return!!r&&C$(e,t,0)>-1}var D$=I$;function R$(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}var L$=R$;function B$(){}var F$=B$,Ps=Lv,z$=F$,W$=Fc,U$=1/0,K$=Ps&&1/W$(new Ps([,-0]))[1]==U$?function(e){return new Ps(e)}:z$,q$=K$,G$=jv,H$=D$,V$=L$,X$=Ev,Y$=q$,Z$=Fc,Q$=200;function J$(e,t,r){var n=-1,i=H$,a=e.length,o=!0,s=[],u=s;if(r)o=!1,i=V$;else if(a>=Q$){var c=t?null:Y$(e);if(c)return Z$(c);o=!1,i=X$,u=new G$}else u=t?[]:s;e:for(;++n<a;){var l=e[n],f=t?t(l):l;if(l=r||l!==0?l:0,o&&f===f){for(var p=u.length;p--;)if(u[p]===f)continue e;t&&u.push(f),s.push(l)}else i(u,f,r)||(u!==s&&u.push(f),s.push(l))}return s}var ej=J$,tj=jt,rj=ej;function nj(e,t){return e&&e.length?rj(e,tj(t)):[]}var ij=nj;const Of=ue(ij);function Kv(e,t,r){return t===!0?Of(e,r):V(t)?Of(e,t):e}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)}var aj=["ref"];function Af(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 Tt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Af(Object(r),!0).forEach(function(n){Wo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Af(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pf(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,Gv(n.key),n)}}function sj(e,t,r){return t&&Pf(e.prototype,t),r&&Pf(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function uj(e,t,r){return t=_a(t),cj(e,qv()?Reflect.construct(t,r||[],_a(e).constructor):t.apply(e,r))}function cj(e,t){if(t&&(en(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lj(e)}function lj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qv=function(){return!!e})()}
vendor: 18,462 bytes, lines 32-33
32function _a(e){return _a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_a(e)}function fj(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&&pu(e,t)}function pu(e,t){return pu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},pu(e,t)}function Wo(e,t,r){return t=Gv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gv(e){var t=dj(e,"string");return en(t)=="symbol"?t:t+""}function dj(e,t){if(en(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(en(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pj(e,t){if(e==null)return{};var r=hj(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 hj(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 vj(e){return e.value}function yj(e,t){if(S.isValidElement(e))return S.cloneElement(e,t);if(typeof e=="function")return S.createElement(e,t);t.ref;var r=pj(t,aj);return S.createElement(Bc,r)}var Sf=1,It=function(e){function t(){var r;oj(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=uj(this,t,[].concat(i)),Wo(r,"lastBoundingBox",{width:-1,height:-1}),r}return fj(t,e),sj(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)>Sf||Math.abs(i.height-this.lastBoundingBox.height)>Sf)&&(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?Tt({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,s=i.verticalAlign,u=i.margin,c=i.chartWidth,l=i.chartHeight,f,p;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var v=this.getBBoxSnapshot();f={left:((c||0)-v.width)/2}}else f=o==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var y=this.getBBoxSnapshot();p={top:((l||0)-y.height)/2}}else p=s==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return Tt(Tt({},f),p)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,s=i.height,u=i.wrapperStyle,c=i.payloadUniqBy,l=i.payload,f=Tt(Tt({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(u)),u);return S.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(v){n.wrapperNode=v}},yj(a,Tt(Tt({},this.props),{},{payload:Kv(l,c,vj)})))}}],[{key:"getWithHeight",value:function(n,i){var a=Tt(Tt({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&B(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])}(D.PureComponent);Wo(It,"displayName","Legend");Wo(It,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var _f=Ui,mj=zc,gj=Ge,$f=_f?_f.isConcatSpreadable:void 0;function bj(e){return gj(e)||mj(e)||!!($f&&e&&e[$f])}var xj=bj,wj=Mv,Oj=xj;function Hv(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=Oj),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?Hv(s,t-1,r,n,i):wj(i,s):n||(i[i.length]=s)}return i}var Vv=Hv;function Aj(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var u=o[e?s:++i];if(r(a[u],u,a)===!1)break}return t}}var Pj=Aj,Sj=Pj,_j=Sj(),$j=_j,jj=$j,Tj=zo;function Ej(e,t){return e&&jj(e,t,Tj)}var Xv=Ej,kj=Ki;function Mj(e,t){return function(r,n){if(r==null)return r;if(!kj(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++a<i)&&n(o[a],a,o)!==!1;);return r}}var Nj=Mj,Cj=Xv,Ij=Nj,Dj=Ij(Cj),qc=Dj,Rj=qc,Lj=Ki;function Bj(e,t){var r=-1,n=Lj(e)?Array(e.length):[];return Rj(e,function(i,a,o){n[++r]=t(i,a,o)}),n}var Yv=Bj;function Fj(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var zj=Fj,jf=jn;function Wj(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,a=jf(e),o=t!==void 0,s=t===null,u=t===t,c=jf(t);if(!s&&!c&&!a&&e>t||a&&o&&u&&!s&&!c||n&&o&&u||!r&&u||!i)return 1;if(!n&&!a&&!c&&e<t||c&&r&&i&&!n&&!a||s&&r&&i||!o&&i||!u)return-1}return 0}var Uj=Wj,Kj=Uj;function qj(e,t,r){for(var n=-1,i=e.criteria,a=t.criteria,o=i.length,s=r.length;++n<o;){var u=Kj(i[n],a[n]);if(u){if(n>=s)return u;var c=r[n];return u*(c=="desc"?-1:1)}}return e.index-t.index}var Gj=qj,Ss=Ec,Hj=kc,Vj=jt,Xj=Yv,Yj=zj,Zj=Iv,Qj=Gj,Jj=Dn,eT=Ge;function tT(e,t,r){t.length?t=Ss(t,function(a){return eT(a)?function(o){return Hj(o,a.length===1?a[0]:a)}:a}):t=[Jj];var n=-1;t=Ss(t,Zj(Vj));var i=Xj(e,function(a,o,s){var u=Ss(t,function(c){return c(a)});return{criteria:u,index:++n,value:a}});return Yj(i,function(a,o){return Qj(a,o,r)})}var rT=tT;function nT(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var iT=nT,aT=iT,Tf=Math.max;function oT(e,t,r){return t=Tf(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=Tf(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),aT(e,this,s)}}var sT=oT;function uT(e){return function(){return e}}var cT=uT,lT=Cr,fT=function(){try{var e=lT(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Zv=fT,dT=cT,Ef=Zv,pT=Dn,hT=Ef?function(e,t){return Ef(e,"toString",{configurable:!0,enumerable:!1,value:dT(t),writable:!0})}:pT,vT=hT,yT=800,mT=16,gT=Date.now;function bT(e){var t=0,r=0;return function(){var n=gT(),i=mT-(n-r);if(r=n,i>0){if(++t>=yT)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var xT=bT,wT=vT,OT=xT,AT=OT(wT),PT=AT,ST=Dn,_T=sT,$T=PT;function jT(e,t){return $T(_T(e,t,ST),e+"")}var TT=jT,ET=_c,kT=Ki,MT=Wc,NT=nr;function CT(e,t,r){if(!NT(r))return!1;var n=typeof t;return(n=="number"?kT(r)&&MT(t,r.length):n=="string"&&t in r)?ET(r[t],e):!1}var Uo=CT,IT=Vv,DT=rT,RT=TT,kf=Uo,LT=RT(function(e,t){if(e==null)return[];var r=t.length;return r>1&&kf(e,t[0],t[1])?t=[]:r>2&&kf(t[0],t[1],t[2])&&(t=[t[0]]),DT(e,IT(t,1),[])}),BT=LT;const Gc=ue(BT);function li(e){"@babel/helpers - typeof";return li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},li(e)}function hu(){return hu=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},hu.apply(this,arguments)}function FT(e,t){return KT(e)||UT(e,t)||WT(e,t)||zT()}function zT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
33In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WT(e,t){if(e){if(typeof e=="string")return Mf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mf(e,t)}}function Mf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function UT(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(l){c=!0,i=l}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function KT(e){if(Array.isArray(e))return e}function Nf(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 _s(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nf(Object(r),!0).forEach(function(n){qT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qT(e,t,r){return t=GT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GT(e){var t=HT(e,"string");return li(t)=="symbol"?t:t+""}function HT(e,t){if(li(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(li(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function VT(e){return Array.isArray(e)&&je(e[0])&&je(e[1])?e.join(" ~ "):e}var XT=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,s=o===void 0?{}:o,u=t.labelStyle,c=u===void 0?{}:u,l=t.payload,f=t.formatter,p=t.itemSorter,v=t.wrapperClassName,y=t.labelClassName,d=t.label,h=t.labelFormatter,g=t.accessibilityLayer,x=g===void 0?!1:g,b=function(){if(l&&l.length){var E={padding:0,margin:0},k=(p?Gc(l,p):l).map(function(C,N){if(C.type==="none")return null;var I=_s({display:"block",paddingTop:4,paddingBottom:4,color:C.color||"#000"},s),R=C.formatter||f||VT,F=C.value,z=C.name,G=F,Y=z;if(R&&G!=null&&Y!=null){var U=R(F,z,C,N,l);if(Array.isArray(U)){var Z=FT(U,2);G=Z[0],Y=Z[1]}else G=U}return S.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(N),style:I},je(Y)?S.createElement("span",{className:"recharts-tooltip-item-name"},Y):null,je(Y)?S.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,S.createElement("span",{className:"recharts-tooltip-item-value"},G),S.createElement("span",{className:"recharts-tooltip-item-unit"},C.unit||""))});return S.createElement("ul",{className:"recharts-tooltip-item-list",style:E},k)}return null},O=_s({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),m=_s({margin:0},c),w=!H(d),P=w?d:"",_=Q("recharts-default-tooltip",v),$=Q("recharts-tooltip-label",y);w&&h&&l!==void 0&&l!==null&&(P=h(d,l));var T=x?{role:"status","aria-live":"assertive"}:{};return S.createElement("div",hu({className:_,style:O},T),S.createElement("p",{className:$,style:m},S.isValidElement(P)?P:"".concat(P)),b())};function fi(e){"@babel/helpers - typeof";return fi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fi(e)}function ra(e,t,r){return t=YT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YT(e){var t=ZT(e,"string");return fi(t)=="symbol"?t:t+""}function ZT(e,t){if(fi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(fi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Un="recharts-tooltip-wrapper",QT={visibility:"hidden"};function JT(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return Q(Un,ra(ra(ra(ra({},"".concat(Un,"-right"),B(r)&&t&&B(t.x)&&r>=t.x),"".concat(Un,"-left"),B(r)&&t&&B(t.x)&&r<t.x),"".concat(Un,"-bottom"),B(n)&&t&&B(t.y)&&n>=t.y),"".concat(Un,"-top"),B(n)&&t&&B(t.y)&&n<t.y))}function Cf(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,u=e.viewBox,c=e.viewBoxDimension;if(a&&B(a[n]))return a[n];var l=r[n]-s-i,f=r[n]+i;if(t[n])return o[n]?l:f;if(o[n]){var p=l,v=u[n];return p<v?Math.max(f,u[n]):Math.max(l,u[n])}var y=f+s,d=u[n]+c;return y>d?Math.max(l,u[n]):Math.max(f,u[n])}function eE(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 tE(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,u=e.viewBox,c,l,f;return o.height>0&&o.width>0&&r?(l=Cf({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:u,viewBoxDimension:u.width}),f=Cf({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:u,viewBoxDimension:u.height}),c=eE({translateX:l,translateY:f,useTranslate3d:s})):c=QT,{cssProperties:c,cssClasses:JT({translateX:l,translateY:f,coordinate:r})}}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 If(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 Df(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?If(Object(r),!0).forEach(function(n){yu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):If(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nE(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,Jv(n.key),n)}}function iE(e,t,r){return t&&nE(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function aE(e,t,r){return t=$a(t),oE(e,Qv()?Reflect.construct(t,r||[],$a(e).constructor):t.apply(e,r))}function oE(e,t){if(t&&(tn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sE(e)}function sE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qv=function(){return!!e})()}function $a(e){return $a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$a(e)}function uE(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&&vu(e,t)}function vu(e,t){return vu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},vu(e,t)}function yu(e,t,r){return t=Jv(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jv(e){var t=cE(e,"string");return tn(t)=="symbol"?t:t+""}function cE(e,t){if(tn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(tn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rf=1,lE=function(e){function t(){var r;rE(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=aE(this,t,[].concat(i)),yu(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),yu(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,u,c,l;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(u=r.props.coordinate)===null||u===void 0?void 0:u.x)!==null&&s!==void 0?s:0,y:(c=(l=r.props.coordinate)===null||l===void 0?void 0:l.y)!==null&&c!==void 0?c:0}})}}),r}return uE(t,e),iE(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Rf||Math.abs(n.height-this.state.lastBoundingBox.height)>Rf)&&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,s=i.animationDuration,u=i.animationEasing,c=i.children,l=i.coordinate,f=i.hasPayload,p=i.isAnimationActive,v=i.offset,y=i.position,d=i.reverseDirection,h=i.useTranslate3d,g=i.viewBox,x=i.wrapperStyle,b=tE({allowEscapeViewBox:o,coordinate:l,offsetTopLeft:v,position:y,reverseDirection:d,tooltipBox:this.state.lastBoundingBox,useTranslate3d:h,viewBox:g}
33),O=b.cssClasses,m=b.cssProperties,w=Df(Df({transition:p&&a?"transform ".concat(s,"ms ").concat(u):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},x);return S.createElement("div",{tabIndex:-1,className:O,style:w,ref:function(_){n.wrapperNode=_}},c)}}])}(D.PureComponent),fE=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ut={isSsr:fE(),get:function(t){return ut[t]},set:function(t,r){if(typeof t=="string")ut[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(i){ut[i]=t[i]})}}};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 Lf(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 Bf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lf(Object(r),!0).forEach(function(n){Hc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pE(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,ty(n.key),n)}}function hE(e,t,r){return t&&pE(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vE(e,t,r){return t=ja(t),yE(e,ey()?Reflect.construct(t,r||[],ja(e).constructor):t.apply(e,r))}function yE(e,t){if(t&&(rn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mE(e)}function mE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ey(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ey=function(){return!!e})()}function ja(e){return ja=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ja(e)}function gE(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&&mu(e,t)}function mu(e,t){return mu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},mu(e,t)}function Hc(e,t,r){return t=ty(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ty(e){var t=bE(e,"string");return rn(t)=="symbol"?t:t+""}function bE(e,t){if(rn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(rn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xE(e){return e.dataKey}function wE(e,t){return S.isValidElement(e)?S.cloneElement(e,t):typeof e=="function"?S.createElement(e,t):S.createElement(XT,t)}var De=function(e){function t(){return dE(this,t),vE(this,t,arguments)}return gE(t,e),hE(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,u=i.animationEasing,c=i.content,l=i.coordinate,f=i.filterNull,p=i.isAnimationActive,v=i.offset,y=i.payload,d=i.payloadUniqBy,h=i.position,g=i.reverseDirection,x=i.useTranslate3d,b=i.viewBox,O=i.wrapperStyle,m=y??[];f&&m.length&&(m=Kv(y.filter(function(P){return P.value!=null&&(P.hide!==!0||n.props.includeHidden)}),d,xE));var w=m.length>0;return S.createElement(lE,{allowEscapeViewBox:o,animationDuration:s,animationEasing:u,isAnimationActive:p,active:a,coordinate:l,hasPayload:w,offset:v,position:h,reverseDirection:g,useTranslate3d:x,viewB
vendor: 13,829 bytes, lines 33-39
33ox:b,wrapperStyle:O},wE(c,Bf(Bf({},this.props),{},{payload:m})))}}])}(D.PureComponent);Hc(De,"displayName","Tooltip");Hc(De,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ut.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 OE=$t,AE=function(){return OE.Date.now()},PE=AE,SE=/\s/;function _E(e){for(var t=e.length;t--&&SE.test(e.charAt(t)););return t}var $E=_E,jE=$E,TE=/^\s+/;function EE(e){return e&&e.slice(0,jE(e)+1).replace(TE,"")}var kE=EE,ME=kE,Ff=nr,NE=jn,zf=NaN,CE=/^[-+]0x[0-9a-f]+$/i,IE=/^0b[01]+$/i,DE=/^0o[0-7]+$/i,RE=parseInt;function LE(e){if(typeof e=="number")return e;if(NE(e))return zf;if(Ff(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ff(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ME(e);var r=IE.test(e);return r||DE.test(e)?RE(e.slice(2),r?2:8):CE.test(e)?zf:+e}var ry=LE,BE=nr,$s=PE,Wf=ry,FE="Expected a function",zE=Math.max,WE=Math.min;function UE(e,t,r){var n,i,a,o,s,u,c=0,l=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError(FE);t=Wf(t)||0,BE(r)&&(l=!!r.leading,f="maxWait"in r,a=f?zE(Wf(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p);function v(w){var P=n,_=i;return n=i=void 0,c=w,o=e.apply(_,P),o}function y(w){return c=w,s=setTimeout(g,t),l?v(w):o}function d(w){var P=w-u,_=w-c,$=t-P;return f?WE($,a-_):$}function h(w){var P=w-u,_=w-c;return u===void 0||P>=t||P<0||f&&_>=a}function g(){var w=$s();if(h(w))return x(w);s=setTimeout(g,d(w))}function x(w){return s=void 0,p&&n?v(w):(n=i=void 0,o)}function b(){s!==void 0&&clearTimeout(s),c=0,n=u=i=s=void 0}function O(){return s===void 0?o:x($s())}function m(){var w=$s(),P=h(w);if(n=arguments,i=this,u=w,P){if(s===void 0)return y(u);if(f)return clearTimeout(s),s=setTimeout(g,t),v(u)}return s===void 0&&(s=setTimeout(g,t)),o}return m.cancel=b,m.flush=O,m}var KE=UE,qE=KE,GE=nr,HE="Expected a function";function VE(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(HE);return GE(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),qE(e,t,{leading:n,maxWait:t,trailing:i})}var XE=VE;const ny=ue(XE);function di(e){"@babel/helpers - typeof";return di=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},di(e)}function Uf(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 na(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Uf(Object(r),!0).forEach(function(n){YE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YE(e,t,r){return t=ZE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZE(e){var t=QE(e,"string");return di(t)=="symbol"?t:t+""}function QE(e,t){if(di(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(di(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JE(e,t){return n2(e)||r2(e,t)||t2(e,t)||e2()}function e2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
34In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t2(e,t){if(e){if(typeof e=="string")return Kf(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 Kf(e,t)}}function Kf(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 r2(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(l){c=!0,i=l}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function n2(e){if(Array.isArray(e))return e}var fr=D.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,s=e.height,u=s===void 0?"100%":s,c=e.minWidth,l=c===void 0?0:c,f=e.minHeight,p=e.maxHeight,v=e.children,y=e.debounce,d=y===void 0?0:y,h=e.id,g=e.className,x=e.onResize,b=e.style,O=b===void 0?{}:b,m=D.useRef(null),w=D.useRef();w.current=x,D.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 P=D.useState({containerWidth:i.width,containerHeight:i.height}),_=JE(P,2),$=_[0],T=_[1],j=D.useCallback(function(k,C){T(function(N){var I=Math.round(k),R=Math.round(C);return N.containerWidth===I&&N.containerHeight===R?N:{containerWidth:I,containerHeight:R}})},[]);D.useEffect(function(){var k=function(z){var G,Y=z[0].contentRect,U=Y.width,Z=Y.height;j(U,Z),(G=w.current)===null||G===void 0||G.call(w,U,Z)};d>0&&(k=ny(k,d,{trailing:!0,leading:!1}));var C=new ResizeObserver(k),N=m.current.getBoundingClientRect(),I=N.width,R=N.height;return j(I,R),C.observe(m.current),function(){C.disconnect()}},[j,d]);var E=D.useMemo(function(){var k=$.containerWidth,C=$.containerHeight;if(k<0||C<0)return null;bt(Or(o)||Or(u),`The width(%s) and height(%s) are both fixed numbers,
35       maybe you don't need to use a ResponsiveContainer.`,o,u),bt(!r||r>0,"The aspect(%s) must be greater than zero.",r);var N=Or(o)?k:o,I=Or(u)?C:u;r&&r>0&&(N?I=N/r:I&&(N=I*r),p&&I>p&&(I=p)),bt(N>0||I>0,`The width(%s) and height(%s) of chart should be greater than 0,
36       please check the style of container, or the props width(%s) and height(%s),
37       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
38       height and width.`,N,I,o,u,l,f,r);var R=!Array.isArray(v)&&Ct(v.type).endsWith("Chart");return S.Children.map(v,function(F){return S.isValidElement(F)?D.cloneElement(F,na({width:N,height:I},R?{style:na({height:"100%",width:"100%",maxHeight:I,maxWidth:N},F.props.style)}:{})):F})},[r,v,u,p,f,l,$,o]);return S.createElement("div",{id:h?"".concat(h):void 0,className:Q("recharts-responsive-container",g),style:na(na({},O),{},{width:o,height:u,minWidth:l,minHeight:f,maxHeight:p}),ref:m},E)}),qi=function(t){return null};qi.displayName="Cell";function pi(e){"@babel/helpers - typeof";return pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pi(e)}function qf(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 gu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qf(Object(r),!0).forEach(function(n){i2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function i2(e,t,r){return t=a2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a2(e){var t=o2(e,"string");return pi(t)=="symbol"?t:t+""}function o2(e,t){if(pi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(pi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Br={widthCache:{},cacheCount:0},s2=2e3,u2={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Gf="recharts_measurement_span";function c2(e){var t=gu({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Jn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ut.isSsr)return{width:0,height:0};var n=c2(r),i=JSON.stringify({text:t,copyStyle:n});if(Br.widthCache[i])return Br.widthCache[i];try{var a=document.getElementById(Gf);a||(a=document.createElement("span"),a.setAttribute("id",Gf),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=gu(gu({},u2),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),u={width:s.width,height:s.height};return Br.widthCache[i]=u,++Br.cacheCount>s2&&(Br.cacheCount=0,Br.widthCache={}),u}catch{return{width:0,height:0}}},l2=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function hi(e){"@babel/helpers - typeof";return hi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hi(e)}function Ta(e,t){return h2(e)||p2(e,t)||d2(e,t)||f2()}function f2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
39In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d2(e,t){if(e){if(typeof e=="string")return Hf(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 Hf(e,t)}}function Hf(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 p2(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(l){c=!0,i=l}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function h2(e){if(Array.isArray(e))return e}function v2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vf(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,m2(n.key),n)}}function y2(e,t,r){return t&&Vf(e.prototype,t),r&&Vf(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function m2(e){var t=g2(e,"string");return hi(t)=="symbol"?t:t+""}function g2(e,t){if(hi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Xf=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Yf=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,b2=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,x2=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,iy={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},w2=Object.keys(iy),Ur="NaN";function O2(e,t){return e*iy[t]}var ia=function(){function e(t,r){v2(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!b2.test(r)&&(this.num=NaN,this.unit=""),w2.includes(r)&&(this.num=O2(t,r),this.unit="px")}return y2(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=x2.exec(r))!==null&&n!==void 0?n:[],a=Ta(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])}();function ay(e){if(e.includes(Ur))return Ur;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=Xf.exec(t))!==null&&r!==void 0?r:[],i=Ta(n,4),a=i[1],o=i[2],s=i[3],u=ia.parse(a??""),c=ia.parse(s??""),l=o==="*"?u.multiply(c):u.divide(c);if(l.isNaN())return Ur;t=t.replace(Xf,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,p=(f=Yf.exec(t))!==null&&f!==void 0?f:[],v=Ta(p,4),y=v[1],d=v[2],h=v[3],g=ia.parse(y??""),x=ia.parse(h??""),b=d==="+"?g.add(x):g.subtract(x);if(b.isNaN())return Ur;t=t.replace(Yf,b.toString())}return t}var Zf=/\(([^()]*)\)/;function A2(e){for(var t=e;t.includes("(");){var r=Zf.exec(t),n=Ta(r,2),i=n[1];t=t.replace(Zf,ay(i))}return t}function P2(e){var t=e.replace(/\s+/g,"");return t=A2(t),t=ay(t),t}function S2(e){try{return P2(e)}catch{return Ur}}function js(e){var t=S2(e.slice(5,-1));return t===Ur?"":t}var _2=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],$2=["dx","dy","angle","className","breakAll"];function bu(){return bu=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},bu.apply(this,arguments)}function Qf(e,t){if(e==null)return{};var r=j2(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 j2(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 Jf(e,t){return M2(e)||k2(e,t)||E2(e,t)||T2()}function T2(){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 E2(e,t){if(e){if(typeof e=="string")return ed(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 ed(e,t)}}function ed(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 k2(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(l){c=!0,i=l}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function M2(e){if(Array.isArray(e))return e}var oy=/[ \f\n\r\t\v\u2028\u2029]+/,sy=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];H(r)||(n?a=r.toString().split(""):a=r.toString().split(oy));var o=a.map(function(u){return{word:u,width:Jn(u,i).width}}),s=n?0:Jn(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},N2=function(t,r,n,i,a){var o=t.maxLines,s=t.children,u=t.style,c=t.breakAll,l=B(o),f=s,p=function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return N.reduce(function(I,R){var F=R.word,z=R.width,G=I[I.length-1];if(G&&(i==null||a||G.width+z+n<Number(i)))G.words.push(F),G.width+=z+n;else{var Y={words:[F],width:z};I.push(Y)}return I},[])},v=p(r),y=function(N){return N.reduce(function(I,R){return I.width>R.width?I:R})};if(!l)return v;for(var d="…",h=function(N){var I=f.slice(0,N),R=sy({breakAll:c,style:u,children:I+d}).wordsWithComputedWidth,F=p(R),z=F.length>o||y(F).width>Number(i);return[z,F]},g=0,x=f.length-1,b=0,O;g<=x&&b<=f.length-1;){var m=Math.floor((g+x)/2),w=m-1,P=h(w),_=Jf(P,2),$=_[0],T=_[1],j=h(m),E=Jf(j,1),k=E[0];if(!$&&!k&&(g=m+1),$&&k&&(x=m-1),!$&&k){O=T;break}b++}return O||v},td=function(t){var r=H(t)?[]:t.toString().split(oy);return[{words:r}]},C2=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!ut.isSsr){var u,c,l=sy({breakAll:o,children:i,style:a});if(l){var f=l.wordsWithComputedWidth,p=l.spaceWidth;u=f,c=p}else return td(i);return N2({breakAll:o,children:i,maxLines:s,style:a},u,c,r,n)}return td(i)},rd="#808080",Er=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,u=t.capHeight,c=u===void 0?"0.71em":u,l=t.scaleToFit,f=l===void 0?!1:l,p=t.textAnchor,v=p===void 0?"start":p,y=t.verticalAnchor,d=y===void 0?"end":y,h=t.fill,g=h===void 0?rd:h,x=Qf(t,_2),b=D.useMemo(function(){return C2({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:f,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,f,x.style,x.width]),O=x.dx,m=x.dy,w=x.angle,P=x.className,_=x.breakAll,$=Qf(x,$2);if(!je(n)||!je(a))return null;var T=n+(B(O)?O:0),j=a+(B(m)?m:0),E;switch(d){case"start":E=js("calc(".concat(c,")"));break;case"middle":E=js("calc(".concat((b.length-1)/2," * -").concat(s," + (").concat(c," / 2))"));break;default:E=js("calc(".concat(b.length-1," * -").concat(s,")"));break}var k=[];if(f){var C=b[0].width,N=x.width;k.push("scale(".concat((B(N)?N/C:1)/C,")"))}return w&&k.push("rotate(".concat(w,", ").concat(T,", ").concat(j,")")),k.length&&($.transform=k.join(" ")),S.createElement("text",bu({},q($,!0),{x:T,y:j,className:Q("recharts-text",P),textAnchor:v,fill:g.includes("url")?rd:g}),b.map(function(I,R){var F=I.words.join(_?"":" ");return S.createElement("tspan",{x:T,dy:R===0?E:s,key:"".concat(F,"-").concat(R)},F)}))};function Qt(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function I2(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Vc(e){let t,r,n;e.length!==2?(t=Qt,r=(s,u)=>Qt(e(s),u),n=(s,u)=>e(s)-u):(t=e===Qt||e===I2?e:D2,r=e,n=e);function i(s,u,c=0,l=s.length){if(c<l){if(t(u,u)!==0)return l;do{const f=c+l>>>1;r(s[f],u)<0?c=f+1:l=f}while(c<l)}return c}function a(s,u,c=0,l=s.length){if(c<l){if(t(u,u)!==0)return l;do{const f=c+l>>>1;r(s[f],u)<=0?c=f+1:l=f}while(c<l)}return c}function o(s,u,c=0,l=s.length){const f=i(s,u,c,l-1);return f>c&&n(s[f-1],u)>-n(s[f],u)?f-1:f}return{left:i,center:o,right:a}}function D2(){return 0}function uy(e){return e===null?NaN:+e}function*R2(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const L2=Vc(Qt),Gi=L2.right;Vc(uy).center;class nd extends Map{constructor(t,r=z2){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(id(this,t))}has(t){return super.has(id(this,t))}set(t,r){return super.set(B2(this,t),r)}delete(t){return super.delete(F2(this,t))}}function id({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function B2({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function F2({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function z2(e){return e!==null&&typeof e=="object"?e.valueOf():e}function W2(e=Qt){if(e===Qt)return cy;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 cy(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const U2=Math.sqrt(50),K2=Math.sqrt(10),q2=Math.sqrt(2);function Ea(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>=U2?10:a>=K2?5:a>=q2?2:1;let s,u,c;
40return i<0?(c=Math.pow(10,-i)/o,s=Math.round(e*c),u=Math.round(t*c),s/c<e&&++s,u/c>t&&--u,c=-c):(c=Math.pow(10,i)*o,s=Math.round(e/c),u=Math.round(t/c),s*c<e&&++s,u*c>t&&--u),u<s&&.5<=r&&r<2?Ea(e,t,r*2):[s,u,c]}function xu(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?Ea(t,e,r):Ea(e,t,r);if(!(a>=i))return[];const s=a-i+1,u=new Array(s);if(n)if(o<0)for(let c=0;c<s;++c)u[c]=(a-c)/-o;else for(let c=0;c<s;++c)u[c]=(a-c)*o;else if(o<0)for(let c=0;c<s;++c)u[c]=(i+c)/-o;else for(let c=0;c<s;++c)u[c]=(i+c)*o;return u}function wu(e,t,r){return t=+t,e=+e,r=+r,Ea(e,t,r)[2]}function Ou(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?wu(t,e,r):wu(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function ad(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function od(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function ly(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?cy:W2(i);n>r;){if(n-r>600){const u=n-r+1,c=t-r+1,l=Math.log(u),f=.5*Math.exp(2*l/3),p=.5*Math.sqrt(l*f*(u-f)/u)*(c-u/2<0?-1:1),v=Math.max(r,Math.floor(t-c*f/u+p)),y=Math.min(n,Math.floor(t+(u-c)*f/u+p));ly(e,t,v,y,i)}const a=e[t];let o=r,s=n;for(Kn(e,r,t),i(e[n],a)>0&&Kn(e,r,n);o<s;){for(Kn(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?Kn(e,r,s):(++s,Kn(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Kn(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function G2(e,t,r){if(e=Float64Array.from(R2(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return od(e);if(t>=1)return ad(e);var n,i=(n-1)*t,a=Math.floor(i),o=ad(ly(e,a).subarray(0,a+1)),s=od(e.subarray(a+1));return o+(s-o)*(i-a)}}function H2(e,t,r=uy){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function V2(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 pt(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Wt(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 Au=Symbol("implicit");function Xc(){var e=new nd,t=[],r=[],n=Au;function i(a){let o=e.get(a);if(o===void 0){if(n!==Au)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 nd;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 Xc(t,r).unknown(n)},pt.apply(i,arguments),i}function vi(){var e=Xc().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,u=0,c=0,l=.5;delete e.unknown;function f(){var p=t().length,v=i<n,y=v?i:n,d=v?n:i;a=(d-y)/Math.max(1,p-u+c*2),s&&(a=Math.floor(a)),y+=(d-y-a*(p-u))*l,o=a*(1-u),s&&(y=Math.round(y),o=Math.round(o));var h=V2(p).map(function(g){return y+a*g});return r(v?h.reverse():h)}return e.domain=function(p){return arguments.length?(t(p),f()):t()},e.range=function(p){return arguments.length?([n,i]=p,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(p){return[n,i]=p,n=+n,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(p){return arguments.length?(s=!!p,f()):s},e.padding=function(p){return arguments.length?(u=Math.min(1,c=+p),f()):u},e.paddingInner=function(p){return arguments.length?(u=Math.min(1,p),f()):u},e.paddingOuter=function(p){return arguments.length?(c=+p,f()):c},e.align=function(p){return arguments.length?(l=Math.max(0,Math.min(1,p)),f()):l},e.copy=function(){return vi(t(),[n,i]).round(s).paddingInner(u).paddingOuter(c).align(l)},pt.apply(f(),arguments)}function fy(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return fy(t())},e}function ei(){return fy(vi.apply(null,arguments).paddingInner(1))}function Yc(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function dy(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Hi(){}var yi=.7,ka=1/yi,Yr="\\s*([+-]?\\d+)\\s*",mi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Pt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",X2=/^#([0-9a-f]{3,8})$/,Y2=new RegExp(`^rgb\\(${Yr},${Yr},${Yr}\\)$`),Z2=new RegExp(`^rgb\\(${Pt},${Pt},${Pt}\\)$`),Q2=new RegExp(`^rgba\\(${Yr},${Yr},${Yr},${mi}\\)$`),J2=new RegExp(`^rgba\\(${Pt},${Pt},${Pt},${mi}\\)$`),ek=new RegExp(`^hsl\\(${mi},${Pt},${Pt}\\)$`),tk=new RegExp(`^hsla\\(${mi},${Pt},${Pt},${mi}\\)$`),sd={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};Yc(Hi,gi,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ud,formatHex:ud,formatHex8:rk,formatHsl:nk,formatRgb:cd,toString:cd});function ud(){return this.rgb().formatHex()}function rk(){return this.rgb().formatHex8()}function nk(){return py(this).formatHsl()}function cd(){return this.rgb().formatRgb()}function gi(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=X2.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?ld(t):r===3?new qe(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?aa(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?aa(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=Y2.exec(e))?new qe(t[1],t[2],t[3],1):(t=Z2.exec(e))?new qe(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Q2.exec(e))?aa(t[1],t[2],t[3],t[4]):(t=J2.exec(e))?aa(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ek.exec(e))?pd(t[1],t[2]/100,t[3]/100,1):(t=tk.exec(e))?pd(t[1],t[2]/100,t[3]/100,t[4]):sd.hasOwnProperty(e)?ld(sd[e]):e==="transparent"?new qe(NaN,NaN,NaN,0):null}function ld(e){return new qe(e>>16&255,e>>8&255,e&255,1)}function aa(e,t,r,n){return n<=0&&(e=t=r=NaN),new qe(e,t,r,n)}function ik(e){return e instanceof Hi||(e=gi(e)),e?(e=e.rgb(),new qe(e.r,e.g,e.b,e.opacity)):new qe}function Pu(e,t,r,n){return arguments.length===1?ik(e):new qe(e,t,r,n??1)}function qe(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}
vendor: 4,840 bytes, line 40
40Yc(qe,Pu,dy(Hi,{brighter(e){return e=e==null?ka:Math.pow(ka,e),new qe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?yi:Math.pow(yi,e),new qe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new qe($r(this.r),$r(this.g),$r(this.b),Ma(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:fd,formatHex:fd,formatHex8:ak,formatRgb:dd,toString:dd}));function fd(){return`#${Ar(this.r)}${Ar(this.g)}${Ar(this.b)}`}function ak(){return`#${Ar(this.r)}${Ar(this.g)}${Ar(this.b)}${Ar((isNaN(this.opacity)?1:this.opacity)*255)}`}function dd(){const e=Ma(this.opacity);return`${e===1?"rgb(":"rgba("}${$r(this.r)}, ${$r(this.g)}, ${$r(this.b)}${e===1?")":`, ${e})`}`}function Ma(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function $r(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ar(e){return e=$r(e),(e<16?"0":"")+e.toString(16)}function pd(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new gt(e,t,r,n)}function py(e){if(e instanceof gt)return new gt(e.h,e.s,e.l,e.opacity);if(e instanceof Hi||(e=gi(e)),!e)return new gt;if(e instanceof gt)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,u=(a+i)/2;return s?(t===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-t)/s+2:o=(t-r)/s+4,s/=u<.5?a+i:2-a-i,o*=60):s=u>0&&u<1?0:o,new gt(o,s,u,e.opacity)}function ok(e,t,r,n){return arguments.length===1?py(e):new gt(e,t,r,n??1)}function gt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Yc(gt,ok,dy(Hi,{brighter(e){return e=e==null?ka:Math.pow(ka,e),new gt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?yi:Math.pow(yi,e),new gt(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 qe(Ts(e>=240?e-240:e+120,i,n),Ts(e,i,n),Ts(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new gt(hd(this.h),oa(this.s),oa(this.l),Ma(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=Ma(this.opacity);return`${e===1?"hsl(":"hsla("}${hd(this.h)}, ${oa(this.s)*100}%, ${oa(this.l)*100}%${e===1?")":`, ${e})`}`}}));function hd(e){return e=(e||0)%360,e<0?e+360:e}function oa(e){return Math.max(0,Math.min(1,e||0))}function Ts(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 Zc=e=>()=>e;function sk(e,t){return function(r){return e+r*t}}function uk(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 ck(e){return(e=+e)==1?hy:function(t,r){return r-t?uk(t,r,e):Zc(isNaN(t)?r:t)}}function hy(e,t){var r=t-e;return r?sk(e,r):Zc(isNaN(e)?t:e)}const vd=function e(t){var r=ck(t);function n(i,a){var o=r((i=Pu(i)).r,(a=Pu(a)).r),s=r(i.g,a.g),u=r(i.b,a.b),c=hy(i.opacity,a.opacity);return function(l){return i.r=o(l),i.g=s(l),i.b=u(l),i.opacity=c(l),i+""}}return n.gamma=e,n}(1);function lk(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 fk(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function dk(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]=Rn(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function pk(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Na(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function hk(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]=Rn(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Su=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Es=new RegExp(Su.source,"g");function vk(e){return function(){return e}}function yk(e){return function(t){return e(t)+""}}function mk(e,t){var r=Su.lastIndex=Es.lastIndex=0,n,i,a,o=-1,s=[],u=[];for(e=e+"",t=t+"";(n=Su.exec(e))&&(i=Es.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,u.push({i:o,x:Na(n,i)})),r=Es.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?u[0]?yk(u[0].x):vk(t):(t=u.length,function(c){for(var l=0,f;l<t;++l)s[(f=u[l]).i]=f.x(c);return s.join("")})}function Rn(e,t){var r=typeof t,n;return t==null||r==="boolean"?Zc(t):(r==="number"?Na:r==="string"?(n=gi(t))?(t=n,vd):mk:t instanceof gi?vd:t instanceof Date?pk:fk(t)?lk:Array.isArray(t)?dk:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?hk:Na)(e,t)}function Qc(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}
vendor: 4,143 bytes, line 40
40function gk(e,t){t===void 0&&(t=e,e=Rn);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}function bk(e){return function(){return e}}function Ca(e){return+e}var yd=[0,1];function ze(e){return e}function _u(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:bk(isNaN(t)?NaN:.5)}function xk(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function wk(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=_u(i,n),a=r(o,a)):(n=_u(n,i),a=r(a,o)),function(s){return a(n(s))}}function Ok(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]=_u(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var u=Gi(e,s,1,n)-1;return a[u](i[u](s))}}function Vi(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ko(){var e=yd,t=yd,r=Rn,n,i,a,o=ze,s,u,c;function l(){var p=Math.min(e.length,t.length);return o!==ze&&(o=xk(e[0],e[p-1])),s=p>2?Ok:wk,u=c=null,f}function f(p){return p==null||isNaN(p=+p)?a:(u||(u=s(e.map(n),t,r)))(n(o(p)))}return f.invert=function(p){return o(i((c||(c=s(t,e.map(n),Na)))(p)))},f.domain=function(p){return arguments.length?(e=Array.from(p,Ca),l()):e.slice()},f.range=function(p){return arguments.length?(t=Array.from(p),l()):t.slice()},f.rangeRound=function(p){return t=Array.from(p),r=Qc,l()},f.clamp=function(p){return arguments.length?(o=p?!0:ze,l()):o!==ze},f.interpolate=function(p){return arguments.length?(r=p,l()):r},f.unknown=function(p){return arguments.length?(a=p,f):a},function(p,v){return n=p,i=v,l()}}function Jc(){return Ko()(ze,ze)}function Ak(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ia(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 nn(e){return e=Ia(Math.abs(e)),e?e[1]:NaN}function Pk(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>n&&(s=Math.max(1,n-u)),a.push(r.substring(i-=s,i+s)),!((u+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Sk(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var _k=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function bi(e){if(!(t=_k.exec(e)))throw new Error("invalid format: "+e);var t;return new el({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]})}bi.prototype=el.prototype;function el(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+""}el.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 $k(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 vy;function jk(e,t){var r=Ia(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(vy=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")+Ia(e,Math.max(0,t+a-1))[0]}function md(e,t){var r=Ia(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 gd={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Ak,e:(e,t)=>
vendor: 4,634 bytes, line 40
40e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>md(e*100,t),r:md,s:jk,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function bd(e){return e}var xd=Array.prototype.map,wd=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Tk(e){var t=e.grouping===void 0||e.thousands===void 0?bd:Pk(xd.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?bd:Sk(xd.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function c(f){f=bi(f);var p=f.fill,v=f.align,y=f.sign,d=f.symbol,h=f.zero,g=f.width,x=f.comma,b=f.precision,O=f.trim,m=f.type;m==="n"?(x=!0,m="g"):gd[m]||(b===void 0&&(b=12),O=!0,m="g"),(h||p==="0"&&v==="=")&&(h=!0,p="0",v="=");var w=d==="$"?r:d==="#"&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",P=d==="$"?n:/[%p]/.test(m)?o:"",_=gd[m],$=/[defgprs%]/.test(m);b=b===void 0?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function T(j){var E=w,k=P,C,N,I;if(m==="c")k=_(j)+k,j="";else{j=+j;var R=j<0||1/j<0;if(j=isNaN(j)?u:_(Math.abs(j),b),O&&(j=$k(j)),R&&+j==0&&y!=="+"&&(R=!1),E=(R?y==="("?y:s:y==="-"||y==="("?"":y)+E,k=(m==="s"?wd[8+vy/3]:"")+k+(R&&y==="("?")":""),$){for(C=-1,N=j.length;++C<N;)if(I=j.charCodeAt(C),48>I||I>57){k=(I===46?i+j.slice(C+1):j.slice(C))+k,j=j.slice(0,C);break}}}x&&!h&&(j=t(j,1/0));var F=E.length+j.length+k.length,z=F<g?new Array(g-F+1).join(p):"";switch(x&&h&&(j=t(z+j,z.length?g-k.length:1/0),z=""),v){case"<":j=E+j+k+z;break;case"=":j=E+z+j+k;break;case"^":j=z.slice(0,F=z.length>>1)+E+j+k+z.slice(F);break;default:j=z+E+j+k;break}return a(j)}return T.toString=function(){return f+""},T}function l(f,p){var v=c((f=bi(f),f.type="f",f)),y=Math.max(-8,Math.min(8,Math.floor(nn(p)/3)))*3,d=Math.pow(10,-y),h=wd[8+y/3];return function(g){return v(d*g)+h}}return{format:c,formatPrefix:l}}var sa,tl,yy;Ek({thousands:",",grouping:[3],currency:["$",""]});function Ek(e){return sa=Tk(e),tl=sa.format,yy=sa.formatPrefix,sa}function kk(e){return Math.max(0,-nn(Math.abs(e)))}function Mk(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(nn(t)/3)))*3-nn(Math.abs(e)))}function Nk(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,nn(t)-nn(e))+1}function my(e,t,r,n){var i=Ou(e,t,r),a;switch(n=bi(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=Mk(i,o))&&(n.precision=a),yy(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=Nk(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=kk(i))&&(n.precision=a-(n.type==="%")*2);break}}return tl(n)}function ar(e){var t=e.domain;return e.ticks=function(r){var n=t();return xu(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return my(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],u,c,l=10;for(s<o&&(c=o,o=s,s=c,c=i,i=a,a=c);l-- >0;){if(c=wu(o,s,r),c===u)return n[i]=o,n[a]=s,t(n);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;u=c}return e},e}function Da(){var e=Jc();return e.copy=function(){return Vi(e,Da())},pt.apply(e,arguments),ar(e)}function gy(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,Ca),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return gy(e).unknown(t)},e=arguments.length?Array.from(e,Ca):[0,1],ar(r)}function by(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 Od(e){return Math.log(e)}function Ad(e){return Math.exp(e)}function Ck(e){return-Math.log(-e)}function Ik(e){return-Math.exp(-e)}function Dk(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Rk(e){return e===10?Dk:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Lk(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 Pd(e){return(t,r)=>-e(-t,r)}function rl(e){const t=e(Od,Ad),r=t.domain;let n=10,i,a;function o(){return i=Lk(n),a=Rk(n),r()[0]<0?(i=Pd(i),a=Pd(a),e(Ck,Ik)):e(Od,Ad),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const u=r();let c=u[0],l=u[u.length-1];const f=l<c;
vendor: 4,588 bytes, line 40
40f&&([c,l]=[l,c]);let p=i(c),v=i(l),y,d;const h=s==null?10:+s;let g=[];if(!(n%1)&&v-p<h){if(p=Math.floor(p),v=Math.ceil(v),c>0){for(;p<=v;++p)for(y=1;y<n;++y)if(d=p<0?y/a(-p):y*a(p),!(d<c)){if(d>l)break;g.push(d)}}else for(;p<=v;++p)for(y=n-1;y>=1;--y)if(d=p>0?y/a(-p):y*a(p),!(d<c)){if(d>l)break;g.push(d)}g.length*2<h&&(g=xu(c,l,h))}else g=xu(p,v,Math.min(v-p,h)).map(a);return f?g.reverse():g},t.tickFormat=(s,u)=>{if(s==null&&(s=10),u==null&&(u=n===10?"s":","),typeof u!="function"&&(!(n%1)&&(u=bi(u)).precision==null&&(u.trim=!0),u=tl(u)),s===1/0)return u;const c=Math.max(1,n*s/t.ticks().length);return l=>{let f=l/a(Math.round(i(l)));return f*n<n-.5&&(f*=n),f<=c?u(l):""}},t.nice=()=>r(by(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function xy(){const e=rl(Ko()).domain([1,10]);return e.copy=()=>Vi(e,xy()).base(e.base()),pt.apply(e,arguments),e}function Sd(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function _d(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function nl(e){var t=1,r=e(Sd(t),_d(t));return r.constant=function(n){return arguments.length?e(Sd(t=+n),_d(t)):t},ar(r)}function wy(){var e=nl(Ko());return e.copy=function(){return Vi(e,wy()).constant(e.constant())},pt.apply(e,arguments)}function $d(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Bk(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Fk(e){return e<0?-e*e:e*e}function il(e){var t=e(ze,ze),r=1;function n(){return r===1?e(ze,ze):r===.5?e(Bk,Fk):e($d(r),$d(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},ar(t)}function al(){var e=il(Ko());return e.copy=function(){return Vi(e,al()).exponent(e.exponent())},pt.apply(e,arguments),e}function zk(){return al.apply(null,arguments).exponent(.5)}function jd(e){return Math.sign(e)*e*e}function Wk(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Oy(){var e=Jc(),t=[0,1],r=!1,n;function i(a){var o=Wk(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(jd(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,Ca)).map(jd)),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 Oy(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},pt.apply(i,arguments),ar(i)}function Ay(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=H2(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Gi(r,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Qt),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 Ay().domain(e).range(t).unknown(n)},pt.apply(a,arguments)}function Py(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(u){return u!=null&&u<=u?i[Gi(n,u,0,r)]:a}function s(){var u=-1;for(n=new Array(r);++u<r;)n[u]=((u+1)*t-(u-r)*e)/(r+1);return o}return o.domain=function(u){return arguments.length?([e,t]=u,e=+e,t=+t,s()):[e,t]},o.range=function(u){return arguments.length?(r=(i=Array.from(u)).length-1,s()):i.slice()},o.invertExtent=function(u){var c=i.indexOf(u);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(u){return arguments.length&&(a=u),o},o.thresholds=function(){return n.slice()},o.copy=function(){return Py().domain([e,t]).range(i).unknown(a)},pt.apply(ar(o),arguments)}function Sy(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Gi(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 Sy().domain(e).range(t).unknown(r)},pt.apply(i,arguments)}const ks=new Date,Ms=new Date;function Te(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,199 bytes, line 40
40(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const u=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return u;let c;do u.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<o);return u},i.filter=a=>Te(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(ks.setTime(+a),Ms.setTime(+o),e(ks),e(Ms),Math.floor(r(ks,Ms))),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 Ra=Te(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ra.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Te(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ra);Ra.range;const kt=1e3,st=kt*60,Mt=st*60,Rt=Mt*24,ol=Rt*7,Td=Rt*30,Ns=Rt*365,Pr=Te(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*kt)},(e,t)=>(t-e)/kt,e=>e.getUTCSeconds());Pr.range;const sl=Te(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*kt)},(e,t)=>{e.setTime(+e+t*st)},(e,t)=>(t-e)/st,e=>e.getMinutes());sl.range;const ul=Te(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*st)},(e,t)=>(t-e)/st,e=>e.getUTCMinutes());ul.range;const cl=Te(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*kt-e.getMinutes()*st)},(e,t)=>{e.setTime(+e+t*Mt)},(e,t)=>(t-e)/Mt,e=>e.getHours());cl.range;const ll=Te(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Mt)},(e,t)=>(t-e)/Mt,e=>e.getUTCHours());ll.range;const Xi=Te(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*st)/Rt,e=>e.getDate()-1);Xi.range;const qo=Te(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Rt,e=>e.getUTCDate()-1);qo.range;const _y=Te(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Rt,e=>Math.floor(e/Rt));_y.range;function Ir(e){return Te(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())*st)/ol)}const Go=Ir(0),La=Ir(1),Uk=Ir(2),Kk=Ir(3),an=Ir(4),qk=Ir(5),Gk=Ir(6);Go.range;La.range;Uk.range;Kk.range;an.range;qk.range;Gk.range;function Dr(e){return Te(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)/ol)}const Ho=Dr(0),Ba=Dr(1),Hk=Dr(2),Vk=Dr(3),on=Dr(4),Xk=Dr(5),Yk=Dr(6);Ho.range;Ba.range;Hk.range;Vk.range;on.range;Xk.range;Yk.range;const fl=Te(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());fl.range;const dl=Te(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());dl.range;const Lt=Te(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());Lt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Te(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)});Lt.range;const Bt=Te(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:Te(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 $y(e,t,r,n,i,a){const o=[[Pr,1,kt],[Pr,5,5*kt],[Pr,15,15*kt],[Pr,30,30*kt],[a,1,st],[a,5,5*st],[a,15,15*st],[a,30,30*st],[i,1,Mt],[i,3,3*Mt],[i,6,6*Mt],[i,12,12*Mt],[n,1,Rt],[n,2,2*Rt],[r,1,ol],[t,1,Td],[t,3,3*Td],[e,1,Ns]];function s(c,l,f){const p=l<c;p&&([c,l]=[l,c]);const v=f&&typeof f.range=="function"?f:u(c,l,f),y=v?v.range(c,+l+1):[];return p?y.reverse():y}function u(c,l,f){const p=Math.abs(l-c)/f,v=Vc(([,,h])=>h).right(o,p);if(v===o.length)return e.every(Ou(c/Ns,l/Ns,f));if(v===0)return Ra.every(Math.max(Ou(c,l,f),1));const[y,d]=o[p/o[v-1][2]<o[v][2]/p?v-1:v];return y.every(d)}return[s,u]}const[Zk,Qk]=$y(Bt,dl,Ho,_y,ll,ul),[Jk,eM]=$y(Lt,fl,Go,Xi,cl,sl);function Cs(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 Is(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 qn(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function tM(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,u=e.shortMonths,c=Gn(i),l=Hn(i),f=Gn(a),p=Hn(a),v=Gn(o),y=Hn(o),d=Gn(s),h=Hn(s),g=Gn(u),x=Hn(u),b={a:R,A:F,b:z,B:G,c:null,d:Id,e:Id,f:PM,g:CM,G:DM,H:wM,I:OM,j:AM,L:jy,m:SM,M:_M,p:Y,q:U,Q:Ld,s:Bd,S:$M,u:jM,U:TM,V:EM,w:kM,W:MM,x:null,X:null,y:NM,Y:IM,Z:RM,"%":Rd}
vendor: 7,408 bytes, line 40
40,O={a:Z,A:pe,b:we,B:He,c:null,d:Dd,e:Dd,f:zM,g:ZM,G:JM,H:LM,I:BM,j:FM,L:Ey,m:WM,M:UM,p:ur,q:Ue,Q:Ld,s:Bd,S:KM,u:qM,U:GM,V:HM,w:VM,W:XM,x:null,X:null,y:YM,Y:QM,Z:eN,"%":Rd},m={a:T,A:j,b:E,B:k,c:C,d:Nd,e:Nd,f:mM,g:Md,G:kd,H:Cd,I:Cd,j:pM,L:yM,m:dM,M:hM,p:$,q:fM,Q:bM,s:xM,S:vM,u:oM,U:sM,V:uM,w:aM,W:cM,x:N,X:I,y:Md,Y:kd,Z:lM,"%":gM};b.x=w(r,b),b.X=w(n,b),b.c=w(t,b),O.x=w(r,O),O.X=w(n,O),O.c=w(t,O);function w(W,ee){return function(te){var L=[],be=-1,re=0,Pe=W.length,Se,Ke,qt;for(te instanceof Date||(te=new Date(+te));++be<Pe;)W.charCodeAt(be)===37&&(L.push(W.slice(re,be)),(Ke=Ed[Se=W.charAt(++be)])!=null?Se=W.charAt(++be):Ke=Se==="e"?" ":"0",(qt=ee[Se])&&(Se=qt(te,Ke)),L.push(Se),re=be+1);return L.push(W.slice(re,be)),L.join("")}}function P(W,ee){return function(te){var L=qn(1900,void 0,1),be=_(L,W,te+="",0),re,Pe;if(be!=te.length)return null;if("Q"in L)return new Date(L.Q);if("s"in L)return new Date(L.s*1e3+("L"in L?L.L:0));if(ee&&!("Z"in L)&&(L.Z=0),"p"in L&&(L.H=L.H%12+L.p*12),L.m===void 0&&(L.m="q"in L?L.q:0),"V"in L){if(L.V<1||L.V>53)return null;"w"in L||(L.w=1),"Z"in L?(re=Is(qn(L.y,0,1)),Pe=re.getUTCDay(),re=Pe>4||Pe===0?Ba.ceil(re):Ba(re),re=qo.offset(re,(L.V-1)*7),L.y=re.getUTCFullYear(),L.m=re.getUTCMonth(),L.d=re.getUTCDate()+(L.w+6)%7):(re=Cs(qn(L.y,0,1)),Pe=re.getDay(),re=Pe>4||Pe===0?La.ceil(re):La(re),re=Xi.offset(re,(L.V-1)*7),L.y=re.getFullYear(),L.m=re.getMonth(),L.d=re.getDate()+(L.w+6)%7)}else("W"in L||"U"in L)&&("w"in L||(L.w="u"in L?L.u%7:"W"in L?1:0),Pe="Z"in L?Is(qn(L.y,0,1)).getUTCDay():Cs(qn(L.y,0,1)).getDay(),L.m=0,L.d="W"in L?(L.w+6)%7+L.W*7-(Pe+5)%7:L.w+L.U*7-(Pe+6)%7);return"Z"in L?(L.H+=L.Z/100|0,L.M+=L.Z%100,Is(L)):Cs(L)}}function _(W,ee,te,L){for(var be=0,re=ee.length,Pe=te.length,Se,Ke;be<re;){if(L>=Pe)return-1;if(Se=ee.charCodeAt(be++),Se===37){if(Se=ee.charAt(be++),Ke=m[Se in Ed?ee.charAt(be++):Se],!Ke||(L=Ke(W,te,L))<0)return-1}else if(Se!=te.charCodeAt(L++))return-1}return L}function $(W,ee,te){var L=c.exec(ee.slice(te));return L?(W.p=l.get(L[0].toLowerCase()),te+L[0].length):-1}function T(W,ee,te){var L=v.exec(ee.slice(te));return L?(W.w=y.get(L[0].toLowerCase()),te+L[0].length):-1}function j(W,ee,te){var L=f.exec(ee.slice(te));return L?(W.w=p.get(L[0].toLowerCase()),te+L[0].length):-1}function E(W,ee,te){var L=g.exec(ee.slice(te));return L?(W.m=x.get(L[0].toLowerCase()),te+L[0].length):-1}function k(W,ee,te){var L=d.exec(ee.slice(te));return L?(W.m=h.get(L[0].toLowerCase()),te+L[0].length):-1}function C(W,ee,te){return _(W,t,ee,te)}function N(W,ee,te){return _(W,r,ee,te)}function I(W,ee,te){return _(W,n,ee,te)}function R(W){return o[W.getDay()]}function F(W){return a[W.getDay()]}function z(W){return u[W.getMonth()]}function G(W){return s[W.getMonth()]}function Y(W){return i[+(W.getHours()>=12)]}function U(W){return 1+~~(W.getMonth()/3)}function Z(W){return o[W.getUTCDay()]}function pe(W){return a[W.getUTCDay()]}function we(W){return u[W.getUTCMonth()]}function He(W){return s[W.getUTCMonth()]}function ur(W){return i[+(W.getUTCHours()>=12)]}function Ue(W){return 1+~~(W.getUTCMonth()/3)}return{format:function(W){var ee=w(W+="",b);return ee.toString=function(){return W},ee},parse:function(W){var ee=P(W+="",!1);return ee.toString=function(){return W},ee},utcFormat:function(W){var ee=w(W+="",O);return ee.toString=function(){return W},ee},utcParse:function(W){var ee=P(W+="",!0);return ee.toString=function(){return W},ee}}}var Ed={"-":"",_:" ",0:"0"},Me=/^\s*\d+/,rM=/^%/,nM=/[\\^$*+?|[\]().{}]/g;function ie(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 iM(e){return e.replace(nM,"\\$&")}function Gn(e){return new RegExp("^(?:"+e.map(iM).join("|")+")","i")}function Hn(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function aM(e,t,r){var n=Me.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function oM(e,t,r){var n=Me.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function sM(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function uM(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function cM(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function kd(e,t,r){var n=Me.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Md(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function lM(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 fM(e,t,r){var n=Me.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function dM(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Nd(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function pM(e,t,r){var n=Me.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Cd(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function hM(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function vM(e,t,r){var n=Me.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function yM(e,t,r){var n=Me.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function mM(e,t,r){var n=Me.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function gM(e,t,r){var n=rM.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function bM(e,t,r){var n=Me.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function xM(e,t,r){var n=Me.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Id(e,t){return ie(e.getDate(),t,2)}function wM(e,t){return ie(e.getHours(),t,2)}function OM(e,t){return ie(e.getHours()%12||12,t,2)}function AM(e,t){return ie(1+Xi.count(Lt(e),e),t,3)}function jy(e,t){return ie(e.getMilliseconds(),t,3)}function PM(e,t){return jy(e,t)+"000"}function SM(e,t){return ie(e.getMonth()+1,t,2)}function _M(e,t){return ie(e.getMinutes(),t,2)}function $M(e,t){return ie(e.getSeconds(),t,2)}function jM(e){var t=e.getDay();return t===0?7:t}function TM(e,t){return ie(Go.count(Lt(e)-1,e),t,2)}function Ty(e){var t=e.getDay();return t>=4||t===0?an(e):an.ceil(e)}function EM(e,t){return e=Ty(e),ie(an.count(Lt(e),e)+(Lt(e).getDay()===4),t,2)}function kM(e){return e.getDay()}function MM(e,t){return ie(La.count(Lt(e)-1,e),t,2)}function NM(e,t){return ie(e.getFullYear()%100,t,2)}function CM(e,t){return e=Ty(e),ie(e.getFullYear()%100,t,2)}function IM(e,t){return ie(e.getFullYear()%1e4,t,4)}function DM(e,t){var r=e.getDay();return e=r>=4||r===0?an(e):an.ceil(e),ie(e.getFullYear()%1e4,t,4)}function RM(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ie(t/60|0,"0",2)+ie(t%60,"0",2)}function Dd(e,t){return ie(e.getUTCDate(),t,2)}function LM(e,t){return ie(e.getUTCHours(),t,2)}function BM(e,t){return ie(e.getUTCHours()%12||12,t,2)}function FM(e,t){return ie(1+qo.count(Bt(e),e),t,3)}function Ey(e,t){return ie(e.getUTCMilliseconds(),t,3)}function zM(e,t){return Ey(e,t)+"000"}function WM(e,t){return ie(e.getUTCMonth()+1,t,2)}function UM(e,t){return ie(e.getUTCMinutes(),t,2)}function KM(e,t){return ie(e.getUTCSeconds(),t,2)}function qM(e){var t=e.getUTCDay();return t===0?7:t}function GM(e,t){return ie(Ho.count(Bt(e)-1,e),t,2)}function ky(e){var t=e.getUTCDay();return t>=4||t===0?on(e):on.ceil(e)}function HM(e,t){return e=ky(e),ie(on.count(Bt(e),e)+(Bt(e).getUTCDay()===4),t,2)}
40function VM(e){return e.getUTCDay()}function XM(e,t){return ie(Ba.count(Bt(e)-1,e),t,2)}function YM(e,t){return ie(e.getUTCFullYear()%100,t,2)}function ZM(e,t){return e=ky(e),ie(e.getUTCFullYear()%100,t,2)}function QM(e,t){return ie(e.getUTCFullYear()%1e4,t,4)}function JM(e,t){var r=e.getUTCDay();return e=r>=4||r===0?on(e):on.ceil(e),ie(e.getUTCFullYear()%1e4,t,4)}function eN(){return"+0000"}function Rd(){return"%"}function Ld(e){return+e}function Bd(e){return Math.floor(+e/1e3)}var Fr,My,Ny;tN({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function tN(e){return Fr=tM(e),My=Fr.format,Fr.parse,Ny=Fr.utcFormat,Fr.utcParse,Fr}function rN(e){return new Date(e)}function nN(e){return e instanceof Date?+e:+new Date(+e)}function pl(e,t,r,n,i,a,o,s,u,c){var l=Jc(),f=l.invert,p=l.domain,v=c(".%L"),y=c(":%S"),d=c("%I:%M"),h=c("%I %p"),g=c("%a %d"),x=c("%b %d"),b=c("%B"),O=c("%Y");function m(w){return(u(w)<w?v:s(w)<w?y:o(w)<w?d:a(w)<w?h:n(w)<w?i(w)<w?g:x:r(w)<w?b:O)(w)}return l.invert=function(w){return new Date(f(w))},l.domain=function(w){return arguments.length?p(Array.from(w,nN)):p().map(rN)},l.ticks=function(w){var P=p();return e(P[0],P[P.length-1],w??10)},l.tickFormat=function(w,P){return P==null?m:c(P)},l.nice=function(w){var P=p();return(!w||typeof w.range!="function")&&(w=t(P[0],P[P.length-1],w??10)),w?p(by(P,w)):l},l.copy=function(){return Vi(l,pl(e,t,r,n,i,a,o,s,u,c))},l}function iN(){return pt.apply(pl(Jk,eM,Lt,fl,Go,Xi,cl,sl,Pr,My).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function aN(){return pt.apply(pl(Zk,Qk,Bt,dl,Ho,qo,ll,ul,Pr,Ny).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Vo(){var e=0,t=1,r,n,i,a,o=ze,s=!1,u;function c(f){return f==null||isNaN(f=+f)?u:o(i===0?.5:(f=(a(f)-r)*i,s?Math.max(0,Math.min(1,f)):f))}c.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(f){return arguments.length?(s=!!f,c):s},c.interpolator=function(f){return arguments.length?(o=f,c):o};function l(f){return function(p){var v,y;return arguments.length?([v,y]=p,o=f(v,y),c):[o(0),o(1)]}}return c.range=l(Rn),c.rangeRound=l(Qc),c.unknown=function(f){return arguments.length?(u=f,c):u},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),c}}function or(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Cy(){var e=ar(Vo()(ze));return e.copy=function(){return or(e,Cy())},Wt.apply(e,arguments)}function Iy(){var e=rl(Vo()).domain([1,10]);return e.copy=function(){return or(e,Iy()).base(e.base())},Wt.apply(e,arguments)}function Dy(){var e=nl(Vo());return e.copy=function(){return or(e,Dy()).constant(e.constant())},Wt.apply(e,arguments)}function hl(){var e=il(Vo());return e.copy=function(){return or(e,hl()).exponent(e.exponent())},Wt.apply(e,arguments)}function oN(){return hl.apply(null,arguments).exponent(.5)}function Ry(){var e=[],t=ze;function r(n){if(n!=null&&!isNaN(n=+n))return t((Gi(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(Qt),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)=>G2(e,a/n))},r.copy=function(){return Ry(t).domain(e)},Wt.apply(r,arguments)}function Xo(){var e=0,t=.5,r=1,n=1,i,a,o,s,u,c=ze,l,f=!1,p;function v(d){return isNaN(d=+d)?p:(d=.5+((d=+l(d))-a)*(n*d<n*a?s:u),c(f?Math.max(0,Math.min(1,d)):d))}v.domain=function(d){return arguments.length?([e,t,r]=d,i=l(e=+e),a=l(t=+t),o=l(r=+r),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),n=a<i?-1:1,v):[e,t,r]},v.clamp=function(d){return arguments.length?(f=!!d,v):f},v.interpolator=function(d){return arguments.length?(c=d,v):c};function y(d){return function(h){var g,x,b;return arguments.length?([g,x,b]=h,c=gk(d,[g,x,b]),v):[c(0),c(.5),c(1)]}}return v.range=y(Rn),v.rangeRound=y(Qc),v.unknown=function(d){return arguments.length?(p=d,v):p},function(d){return l=d,i=d(e),a=d(t),o=d(r),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),n=a<i?-1:1,v}}function Ly(){var e=ar(Xo()(ze));return e.copy=function(){return or(e,Ly())},Wt.apply(e,arguments)}function By(){var e=rl(Xo()).domain([.1,1,10]);return e.copy=function(){return or(e,By()).base(e.base())},Wt.apply(e,arguments)}function Fy(){var e=nl(Xo());return e.copy=function(){return or(e,Fy()).constant(e.constant())},Wt.apply(e,arguments)}function vl(){var e=il(Xo());return e.copy=function(){return or(e,vl()).exponent(e.exponent())},Wt.apply(e,arguments)}
vendor: 63,244 bytes, lines 40-67
40function sN(){return vl.apply(null,arguments).exponent(.5)}const Fd=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:vi,scaleDiverging:Ly,scaleDivergingLog:By,scaleDivergingPow:vl,scaleDivergingSqrt:sN,scaleDivergingSymlog:Fy,scaleIdentity:gy,scaleImplicit:Au,scaleLinear:Da,scaleLog:xy,scaleOrdinal:Xc,scalePoint:ei,scalePow:al,scaleQuantile:Ay,scaleQuantize:Py,scaleRadial:Oy,scaleSequential:Cy,scaleSequentialLog:Iy,scaleSequentialPow:hl,scaleSequentialQuantile:Ry,scaleSequentialSqrt:oN,scaleSequentialSymlog:Dy,scaleSqrt:zk,scaleSymlog:wy,scaleThreshold:Sy,scaleTime:iN,scaleUtc:aN,tickFormat:my},Symbol.toStringTag,{value:"Module"}));var uN=jn;function cN(e,t,r){for(var n=-1,i=e.length;++n<i;){var a=e[n],o=t(a);if(o!=null&&(s===void 0?o===o&&!uN(o):r(o,s)))var s=o,u=a}return u}var Yo=cN;function lN(e,t){return e>t}var zy=lN,fN=Yo,dN=zy,pN=Dn;function hN(e){return e&&e.length?fN(e,pN,dN):void 0}var vN=hN;const Xt=ue(vN);function yN(e,t){return e<t}var Wy=yN,mN=Yo,gN=Wy,bN=Dn;function xN(e){return e&&e.length?mN(e,bN,gN):void 0}var wN=xN;const Zo=ue(wN);var ON=Ec,AN=jt,PN=Yv,SN=Ge;function _N(e,t){var r=SN(e)?ON:PN;return r(e,AN(t))}var $N=_N,jN=Vv,TN=$N;function EN(e,t){return jN(TN(e,t),1)}var kN=EN;const MN=ue(kN);var NN=Kc;function CN(e,t){return NN(e,t)}var IN=CN;const rr=ue(IN);var Ln=1e9,DN={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},ml,me=!0,lt="[DecimalError] ",jr=lt+"Invalid argument: ",yl=lt+"Exponent out of range: ",Bn=Math.floor,gr=Math.pow,RN=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Qe,Ee=1e7,ve=7,Uy=9007199254740991,Fa=Bn(Uy/ve),K={};K.absoluteValue=K.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};K.comparedTo=K.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};K.decimalPlaces=K.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*ve;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};K.dividedBy=K.div=function(e){return Dt(this,new this.constructor(e))};K.dividedToIntegerBy=K.idiv=function(e){var t=this,r=t.constructor;return ce(Dt(t,new r(e),0,1),r.precision)};K.equals=K.eq=function(e){return!this.cmp(e)};K.exponent=function(){return Ae(this)};K.greaterThan=K.gt=function(e){return this.cmp(e)>0};K.greaterThanOrEqualTo=K.gte=function(e){return this.cmp(e)>=0};K.isInteger=K.isint=function(){return this.e>this.d.length-2};K.isNegative=K.isneg=function(){return this.s<0};K.isPositive=K.ispos=function(){return this.s>0};K.isZero=function(){return this.s===0};K.lessThan=K.lt=function(e){return this.cmp(e)<0};K.lessThanOrEqualTo=K.lte=function(e){return this.cmp(e)<1};K.logarithm=K.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Qe))throw Error(lt+"NaN");if(r.s<1)throw Error(lt+(r.s?"NaN":"-Infinity"));return r.eq(Qe)?new n(0):(me=!1,t=Dt(xi(r,a),xi(e,a),a),me=!0,ce(t,i))};K.minus=K.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Gy(t,e):Ky(t,(e.s=-e.s,e))};K.modulo=K.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(lt+"NaN");return r.s?(me=!1,t=Dt(r,e,0,1).times(e),me=!0,r.minus(t)):ce(new n(r),i)};K.naturalExponential=K.exp=function(){return qy(this)};K.naturalLogarithm=K.ln=function(){return xi(this)};K.negated=K.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};K.plus=K.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Ky(t,e):Gy(t,(e.s=-e.s,e))};K.precision=K.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(jr+e);if(t=Ae(i)+1,n=i.d.length-1,r=n*ve+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};K.squareRoot=K.sqrt=function(){var e,t,r,n,i,a,o,s=this,u=s.constructor;if(s.s<1){if(!s.s)return new u(0);throw Error(lt+"NaN")}for(e=Ae(s),me=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Ot(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Bn((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new u(t)):n=new u(i.toString()),r=u.precision,i=o=r+3;;)if(a=n,n=a.plus(Dt(s,a,o+2)).times(.5),Ot(a.d).slice(0,o)===(t=Ot(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(ce(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return me=!0,ce(n,r)};K.times=K.mul=function(e){var t,r,n,i,a,o,s,u,c,l=this,f=l.constructor,p=l.d,v=(e=new f(e)).d;if(!l.s||!e.s)return new f(0);for(e.s*=l.s,r=l.e+e.e,u=p.length,c=v.length,u<c&&(a=p,p=v,v=a,o=u,u=c,c=o),a=[],o=u+c,n=o;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=u+n;i>n;)s=a[i]+v[n]*p[i-n-1]+t,a[i--]=s%Ee|0,t=s/Ee|0;a[i]=(a[i]+t)%Ee|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,me?ce(e,f.precision):e};K.toDecimalPlaces=K.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(_t(e,0,Ln),t===void 0?t=n.rounding:_t(t,0,8),ce(r,e+Ae(r)+1,t))};K.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=kr(n,!0):(_t(e,0,Ln),t===void 0?t=i.rounding:_t(t,0,8),n=ce(new i(n),e+1,t),r=kr(n,!0,e+1)),r};K.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?kr(i):(_t(e,0,Ln),t===void 0?t=a.rounding:_t(t,0,8),n=ce(new a(i),e+Ae(i)+1,t),r=kr(n.abs(),!1,e+Ae(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};K.toInteger=K.toint=function(){var e=this,t=e.constructor;return ce(new t(e),Ae(e)+1,t.rounding)};K.toNumber=function(){return+this};K.toPower=K.pow=function(e){var t,r,n,i,a,o,s=this,u=s.constructor,c=12,l=+(e=new u(e));if(!e.s)return new u(Qe);if(s=new u(s),!s.s){if(e.s<1)throw Error(lt+"Infinity");return s}if(s.eq(Qe))return s;if(n=u.precision,e.eq(Qe))return ce(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=l<0?-l:l)<=Uy){for(i=new u(Qe),t=Math.ceil(n/ve+4),me=!1;r%2&&(i=i.times(s),Wd(i.d,t)),r=Bn(r/2),r!==0;)s=s.times(s),Wd(s.d,t);return me=!0,e.s<0?new u(Qe).div(i):ce(i,n)}}else if(a<0)throw Error(lt+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,me=!1,i=e.times(xi(s,n+c)),me=!0,i=qy(i),i.s=a,i};K.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Ae(i),n=kr(i,r<=a.toExpNeg||r>=a.toExpPos)):(_t(e,1,Ln),t===void 0?t=a.rounding:_t(t,0,8),i=ce(new a(i),e,t),r=Ae(i),n=kr(i,e<=r||r<=a.toExpNeg,e)),n};K.toSignificantDigits=K.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(_t(e,1,Ln),t===void 0?t=n.rounding:_t(t,0,8)),ce(new n(r),e,t)};K.toString=K.valueOf=K.val=K.toJSON=K[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Ae(e),r=e.constructor;return kr(e,t<=r.toExpNeg||t>=r.toExpPos)};function Ky(e,t){var r,n,i,a,o,s,u,c,l=e.constructor,f=l.precision;if(!e.s||!t.s)return t.s||(t=new l(e)),me?ce(t,f):t;if(u=e.d,c=t.d,o=e.e,i=t.e,u=u.slice(),a=o-i,a){for(a<0?(n=u,a=-a,s=c.length):(n=c,i=o,s=u.length),o=Math.ceil(f/ve),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=u.length,a=c.length,s-a<0&&(a=s,n=c,c=u,u=n),r=0;a;)r=(u[--a]=u[a]+c[a]+r)/Ee|0,u[a]%=Ee;for(r&&(u.unshift(r),++i),s=u.length;u[--s]==0;)u.pop();return t.d=u,t.e=i,me?ce(t,f):t}function _t(e,t,r){if(e!==~~e||e<t||e>r)throw Error(jr+e)}function Ot(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=ve-n.length,r&&(a+=Ht(r)),a+=n;o=e[t],n=o+"",r=ve-n.length,r&&(a+=Ht(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var Dt=function(){function e(n,i){var a,o=0,s=n.length;for(n=n.slice();s--;)a=n[s]*i+o,n[s]=a%Ee|0,o=a/Ee|0;return o&&n.unshift(o),n}function t(n,i,a,o){var s,u;if(a!=o)u=a>o?1:-1;else for(s=u=0;s<a;s++)if(n[s]!=i[s]){u=n[s]>i[s]?1:-1;break}return u}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Ee+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,u,c,l,f,p,v,y,d,h,g,x,b,O,m,w,P,_,$=n.constructor,T=n.s==i.s?1:-1,j=n.d,E=i.d;if(!n.s)return new $(n);if(!i.s)throw Error(lt+"Division by zero");for(u=n.e-i.e,P=E.length,m=j.length,v=new $(T),y=v.d=[],c=0;E[c]==(j[c]||0);)++c;if(E[c]>(j[c]||0)&&--u,a==null?x=a=$.precision:o?x=a+(Ae(n)-Ae(i))+1:x=a,x<0)return new $(0);if(x=x/ve+2|0,c=0,P==1)for(l=0,E=E[0],x++;(c<m||l)&&x--;c++)b=l*Ee+(j[c]||0),y[c]=b/E|0,l=b%E|0;else{for(l=Ee/(E[0]+1)|0,l>1&&(E=e(E,l),j=e(j,l),P=E.length,m=j.length),O=P,d=j.slice(0,P),h=d.length;h<P;)d[h++]=0;_=E.slice(),_.unshift(0),w=E[0],E[1]>=Ee/2&&++w;do l=0,s=t(E,d,P,h),s<0?(g=d[0],P!=h&&(g=g*Ee+(d[1]||0)),l=g/w|0,l>1?(l>=Ee&&(l=Ee-1),f=e(E,l),p=f.length,h=d.length,s=t(f,d,p,h),s==1&&(l--,r(f,P<p?_:E,p))):(l==0&&(s=l=1),f=E.slice()),p=f.length,p<h&&f.unshift(0),r(d,f,h),s==-1&&(h=d.length,s=t(E,d,P,h),s<1&&(l++,r(d,P<h?_:E,h))),h=d.length):s===0&&(l++,d=[0]),y[c++]=l,s&&d[0]?d[h++]=j[O]||0:(d=[j[O]],h=1);while((O++<m||d[0]!==void 0)&&x--)}return y[0]||y.shift(),v.e=u,ce(v,o?a+Ae(v)+1:a)}}();function qy(e,t){var r,n,i,a,o,s,u=0,c=0,l=e.constructor,f=l.precision;if(Ae(e)>16)throw Error(yl+Ae(e));if(!e.s)return new l(Qe);for(t==null?(me=!1,s=f):s=t,o=new l(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(gr(2,c))/Math.LN10*2+5|0,s+=n,r=i=a=new l(Qe),l.precision=s;;){if(i=ce(i.times(e),s),r=r.times(++u),o=a.plus(Dt(i,r,s)),Ot(o.d).slice(0,s)===Ot(a.d).slice(0,s)){for(;c--;)a=ce(a.times(a),s);return l.precision=f,t==null?(me=!0,ce(a,f)):a}a=o}}function Ae(e){for(var t=e.e*ve,r=e.d[0];r>=10;r/=10)t++;return t}function Ds(e,t,r){if(t>e.LN10.sd())throw me=!0,r&&(e.precision=r),Error(lt+"LN10 precision limit exceeded");return ce(new e(e.LN10),t)}function Ht(e){for(var t="";e--;)t+="0";return t}function xi(e,t){var r,n,i,a,o,s,u,c,l,f=1,p=10,v=e,y=v.d,d=v.constructor,h=d.precision;if(v.s<1)throw Error(lt+(v.s?"NaN":"-Infinity"));if(v.eq(Qe))return new d(0);if(t==null?(me=!1,c=h):c=t,v.eq(10))return t==null&&(me=!0),Ds(d,c);if(c+=p,d.precision=c,r=Ot(y),n=r.charAt(0),a=Ae(v),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)v=v.times(e),r=Ot(v.d),n=r.charAt(0),f++;a=Ae(v),n>1?(v=new d("0."+r),a++):v=new d(n+"."+r.slice(1))}else return u=Ds(d,c+2,h).times(a+""),v=xi(new d(n+"."+r.slice(1)),c-p).plus(u),d.precision=h,t==null?(me=!0,ce(v,h)):v;for(s=o=v=Dt(v.minus(Qe),v.plus(Qe),c),l=ce(v.times(v),c),i=3;;){if(o=ce(o.times(l),c),u=s.plus(Dt(o,new d(i),c)),Ot(u.d).slice(0,c)===Ot(s.d).slice(0,c))return s=s.times(2),a!==0&&(s=s.plus(Ds(d,c+2,h).times(a+""))),s=Dt(s,new d(f),c),d.precision=h,t==null?(me=!0,ce(s,h)):s;s=u,i+=2}}function zd(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=Bn(r/ve),e.d=[],n=(r+1)%ve,r<0&&(n+=ve),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=ve;n<i;)e.d.push(+t.slice(n,n+=ve));t=t.slice(n),n=ve-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),me&&(e.e>Fa||e.e<-Fa))throw Error(yl+r)}else e.s=0,e.e=0,e.d=[0];return e}function ce(e,t,r){var n,i,a,o,s,u,c,l,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=ve,i=t,c=f[l=0];else{if(l=Math.ceil((n+1)/ve),a=f.length,l>=a)return e;for(c=a=f[l],o=1;a>=10;a/=10)o++;n%=ve,i=n-ve+o}if(r!==void 0&&(a=gr(10,o-i-1),s=c/a%10|0,u=t<0||f[l+1]!==void 0||c%a,u=r<4?(s||u)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||u||r==6&&(n>0?i>0?c/gr(10,o-i):0:f[l-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return u?(a=Ae(e),f.length=1,t=t-a-1,f[0]=gr(10,(ve-t%ve)%ve),e.e=Bn(-t/ve)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=l,a=1,l--):(f.length=l+1,a=gr(10,ve-n),f[l]=i>0?(c/gr(10,o-i)%gr(10,i)|0)*a:0),u)for(;;)if(l==0){(f[0]+=a)==Ee&&(f[0]=1,++e.e);break}else{if(f[l]+=a,f[l]!=Ee)break;f[l--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(me&&(e.e>Fa||e.e<-Fa))throw Error(yl+Ae(e));return e}function Gy(e,t){var r,n,i,a,o,s,u,c,l,f,p=e.constructor,v=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),me?ce(t,v):t;if(u=e.d,f=t.d,n=t.e,c=e.e,u=u.slice(),o=c-n,o){for(l=o<0,l?(r=u,o=-o,s=f.length):(r=f,n=c,s=u.length),i=Math.max(Math.ceil(v/ve),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=u.length,s=f.length,l=i<s,l&&(s=i),i=0;i<s;i++)if(u[i]!=f[i]){l=u[i]<f[i];break}o=0}for(l&&(r=u,u=f,f=r,t.s=-t.s),s=u.length,i=f.length-s;i>0;--i)u[s++]=0;for(i=f.length;i>o;){if(u[--i]<f[i]){for(a=i;a&&u[--a]===0;)u[a]=Ee-1;--u[a],u[i]+=Ee}u[i]-=f[i]}for(;u[--s]===0;)u.pop();for(;u[0]===0;u.shift())--n;return u[0]?(t.d=u,t.e=n,me?ce(t,v):t):new p(0)}function kr(e,t,r){var n,i=Ae(e),a=Ot(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Ht(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Ht(-i-1)+a,r&&(n=r-o)>0&&(a+=Ht(n))):i>=o?(a+=Ht(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Ht(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Ht(n))),e.s<0?"-"+a:a}function Wd(e,t){if(e.length>t)return e.length=t,!0}function Hy(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(jr+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 zd(o,a.toString())}else if(typeof a!="string")throw Error(jr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,RN.test(a))zd(o,a);else throw Error(jr+a)}if(i.prototype=K,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=Hy,i.config=i.set=LN,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 LN(e){if(!e||typeof e!="object")throw Error(lt+"Object expected");var t,r,n,i=["precision",1,Ln,"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(Bn(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(jr+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(jr+r+": "+n);return this}var ml=Hy(DN);Qe=new ml(1);const se=ml;function BN(e){return UN(e)||WN(e)||zN(e)||FN()}function FN(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
41In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zN(e,t){if(e){if(typeof e=="string")return $u(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 $u(e,t)}}function WN(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function UN(e){if(Array.isArray(e))return $u(e)}function $u(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 KN=function(t){return t},Vy={"@@functional/placeholder":!0},Xy=function(t){return t===Vy},Ud=function(t){return function r(){return arguments.length===0||arguments.length===1&&Xy(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},qN=function e(t,r){return t===1?r:Ud(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(s){return s!==Vy}).length;return o>=t?r.apply(void 0,i):e(t-o,Ud(function(){for(var s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];var l=i.map(function(f){return Xy(f)?u.shift():f});return r.apply(void 0,BN(l).concat(u))}))})},Qo=function(t){return qN(t.length,t)},ju=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},GN=Qo(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),HN=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return KN;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(s,u){return u(s)},a.apply(void 0,arguments))}},Tu=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Yy=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(s,u){return s===r[u]})||(r=a,n=t.apply(void 0,a)),n}};function VN(e){var t;return e===0?t=1:t=Math.floor(new se(e).abs().log(10).toNumber())+1,t}function XN(e,t,r){for(var n=new se(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var YN=Qo(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),ZN=Qo(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),QN=Qo(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Jo={rangeStep:XN,getDigitCount:VN,interpolateNumber:YN,uninterpolateNumber:ZN,uninterpolateTruncation:QN};function Eu(e){return tC(e)||eC(e)||Zy(e)||JN()}function JN(){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 eC(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function tC(e){if(Array.isArray(e))return ku(e)}function wi(e,t){return iC(e)||nC(e,t)||Zy(e,t)||rC()}function rC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
43In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zy(e,t){if(e){if(typeof e=="string")return ku(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 ku(e,t)}}function ku(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 nC(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](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(u){i=!0,a=u}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function iC(e){if(Array.isArray(e))return e}function Qy(e){var t=wi(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function Jy(e,t,r){if(e.lte(0))return new se(0);var n=Jo.getDigitCount(e.toNumber()),i=new se(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new se(Math.ceil(a.div(o).toNumber())).add(r).mul(o),u=s.mul(i);return t?u:new se(Math.ceil(u))}function aC(e,t,r){var n=1,i=new se(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new se(10).pow(Jo.getDigitCount(e)-1),i=new se(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new se(Math.floor(e)))}else e===0?i=new se(Math.floor((t-1)/2)):r||(i=new se(Math.floor(e)));var o=Math.floor((t-1)/2),s=HN(GN(function(u){return i.add(new se(u-o).mul(n)).toNumber()}),ju);return s(0,t)}function em(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 se(0),tickMin:new se(0),tickMax:new se(0)};var a=Jy(new se(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new se(0):(o=new se(e).add(t).div(2),o=o.sub(new se(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),u=Math.ceil(new se(t).sub(o).div(a).toNumber()),c=s+u+1;return c>r?em(e,t,r,n,i+1):(c<r&&(u=t>0?u+(r-c):u,s=t>0?s:s+(r-c)),{step:a,tickMin:o.sub(new se(s).mul(a)),tickMax:o.add(new se(u).mul(a))})}function oC(e){var t=wi(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),s=Qy([r,n]),u=wi(s,2),c=u[0],l=u[1];if(c===-1/0||l===1/0){var f=l===1/0?[c].concat(Eu(ju(0,i-1).map(function(){return 1/0}))):[].concat(Eu(ju(0,i-1).map(function(){return-1/0})),[l]);return r>n?Tu(f):f}if(c===l)return aC(c,i,a);var p=em(c,l,o,a),v=p.step,y=p.tickMin,d=p.tickMax,h=Jo.rangeStep(y,d.add(new se(.1).mul(v)),v);return r>n?Tu(h):h}function sC(e,t){var r=wi(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Qy([n,i]),s=wi(o,2),u=s[0],c=s[1];if(u===-1/0||c===1/0)return[n,i];if(u===c)return[u];var l=Math.max(t,2),f=Jy(new se(c).sub(u).div(l-1),a,0),p=[].concat(Eu(Jo.rangeStep(new se(u),new se(c).sub(new se(.99).mul(f)),f)),[c]);return n>i?Tu(p):p}var uC=Yy(oC),cC=Yy(sC),lC="Invariant failed";function Mr(e,t){throw new Error(lC)}var fC=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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 za(){return za=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},za.apply(this,arguments)}function dC(e,t){return yC(e)||vC(e,t)||hC(e,t)||pC()}function pC(){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 hC(e,t){if(e){if(typeof e=="string")return Kd(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 Kd(e,t)}}function Kd(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 vC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(l){c=!0,i=l}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function yC(e){if(Array.isArray(e))return e}function mC(e,t){if(e==null)return{};var r=gC(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 gC(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 bC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xC(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,nm(n.key),n)}}function wC(e,t,r){return t&&xC(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function OC(e,t,r){return t=Wa(t),AC(e,tm()?Reflect.construct(t,r||[],Wa(e).constructor):t.apply(e,r))}function AC(e,t){if(t&&(sn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PC(e)}function PC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tm=function(){return!!e})()}function Wa(e){return Wa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wa(e)}function SC(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&&Mu(e,t)}function Mu(e,t){return Mu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Mu(e,t)}function rm(e,t,r){return t=nm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nm(e){var t=_C(e,"string");return sn(t)=="symbol"?t:t+""}function _C(e,t){if(sn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(sn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Fn=function(e){function t(){return bC(this,t),OC(this,t,arguments)}return SC(t,e),wC(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,s=n.dataKey,u=n.data,c=n.dataPointFormatter,l=n.xAxis,f=n.yAxis,p=mC(n,fC),v=q(p,!1);this.props.direction==="x"&&l.type!=="number"&&Mr();var y=u.map(function(d){var h=c(d,s),g=h.x,x=h.y,b=h.value,O=h.errorVal;if(!O)return null;var m=[],w,P;if(Array.isArray(O)){var _=dC(O,2);w=_[0],P=_[1]}else w=P=O;if(a==="vertical"){var $=l.scale,T=x+i,j=T+o,E=T-o,k=$(b-w),C=$(b+P);m.push({x1:C,y1:j,x2:C,y2:E}),m.push({x1:k,y1:T,x2:C,y2:T}),m.push({x1:k,y1:j,x2:k,y2:E})}else if(a==="horizontal"){var N=f.scale,I=g+i,R=I-o,F=I+o,z=N(b-w),G=N(b+P);m.push({x1:R,y1:G,x2:F,y2:G}),m.push({x1:I,y1:z,x2:I,y2:G}),m.push({x1:R,y1:z,x2:F,y2:z})}return S.createElement(J,za({className:"recharts-errorBar",key:"bar-".concat(m.map(function(Y){return"".concat(Y.x1,"-").concat(Y.x2,"-").concat(Y.y1,"-").concat(Y.y2)}))},v),m.map(function(Y){return S.createElement("line",za({},Y,{key:"line-".concat(Y.x1,"-").concat(Y.x2,"-").concat(Y.y1,"-").concat(Y.y2)}))}))});return S.createElement(J,{className:"recharts-errorBars"},y)}}])}(S.Component);rm(Fn,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});rm(Fn,"displayName","ErrorBar");function Oi(e){"@babel/helpers - typeof";return Oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oi(e)}function qd(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 dr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qd(Object(r),!0).forEach(function(n){$C(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $C(e,t,r){return t=jC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jC(e){var t=TC(e,"string");return Oi(t)=="symbol"?t:t+""}function TC(e,t){if(Oi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Oi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var im=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Ze(r,It);if(!o)return null;var s=It.defaultProps,u=s!==void 0?dr(dr({},s),o.props):{},c;return o.props&&o.props.payload?c=o.props&&o.props.payload:a==="children"?c=(n||[]).reduce(function(l,f){var p=f.item,v=f.props,y=v.sectors||v.data||[];return l.concat(y.map(function(d){return{type:o.props.iconType||p.props.legendType,value:d.name,color:d.fill,payload:d}}))},[]):c=(n||[]).map(function(l){var f=l.item,p=f.type.defaultProps,v=p!==void 0?dr(dr({},p),f.props):{},y=v.dataKey,d=v.name,h=v.legendType,g=v.hide;return{inactive:g,dataKey:y,type:u.iconType||h||"square",color:gl(f),value:d||y,payload:v}}),dr(dr(dr({},u),It.getWithHeight(o,i)),{},{payload:c,item:o})};function Ai(e){"@babel/helpers - typeof";return Ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ai(e)}function Gd(e){return NC(e)||MC(e)||kC(e)||EC()}function EC(){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 kC(e,t){if(e){if(typeof e=="string")return Nu(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 Nu(e,t)}}function MC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function NC(e){if(Array.isArray(e))return Nu(e)}function Nu(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 Hd(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?Hd(Object(r),!0).forEach(function(n){Zr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Zr(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=IC(e,"string");return Ai(t)=="symbol"?t:t+""}function IC(e,t){if(Ai(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ai(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ye(e,t,r){return H(e)||H(t)?r:je(t)?Je(e,t,r):V(t)?t(e):r}function ti(e,t,r,n){var i=MN(e,function(s){return ye(s,t)});if(r==="number"){var a=i.filter(function(s){return B(s)||parseFloat(s)});return a.length?[Zo(a),Xt(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!H(s)}):i;return o.map(function(s){return je(s)||s instanceof Date?s:""})}var DC=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,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var u=a.range,c=0;c<s;c++){var l=c>0?i[c-1].coordinate:i[s-1].coordinate,f=i[c].coordinate,p=c>=s-1?i[0].coordinate:i[c+1].coordinate,v=void 0;if(Be(f-l)!==Be(p-f)){var y=[];if(Be(p-f)===Be(u[1]-u[0])){v=p;var d=f+u[1]-u[0];y[0]=Math.min(d,(d+l)/2),y[1]=Math.max(d,(d+l)/2)}else{v=l;var h=p+u[1]-u[0];y[0]=Math.min(f,(h+f)/2),y[1]=Math.max(f,(h+f)/2)}var g=[Math.min(f,(v+f)/2),Math.max(f,(v+f)/2)];if(t>g[0]&&t<=g[1]||t>=y[0]&&t<=y[1]){o=i[c].index;break}}else{var x=Math.min(l,p),b=Math.max(l,p);if(t>(x+f)/2&&t<=(b+f)/2){o=i[c].index;break}}}else for(var O=0;O<s;O++)if(O===0&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O>0&&O<s-1&&t>(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===s-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},gl=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?xe(xe({},t.type.defaultProps),t.props):t.props,o=a.stroke,s=a.fill,u;switch(i){case"Line":u=o;break;case"Area":case"Radar":u=o&&o!=="none"?o:s;break;default:u=s;break}return u},RC=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},s=Object.keys(a),u=0,c=s.length;u<c;u++)for(var l=a[s[u]].stackGroups,f=Object.keys(l),p=0,v=f.length;p<v;p++){var y=l[f[p]],d=y.items,h=y.cateAxisId,g=d.filter(function(P){return Ct(P.type).indexOf("Bar")>=0});if(g&&g.length){var x=g[0].type.defaultProps,b=x!==void 0?xe(xe({},x),g[0].props):g[0].props,O=b.barSize,m=b[h];o[m]||(o[m]=[]);var w=H(O)?r:O;o[m].push({item:g[0],stackList:g.slice(1),barSize:H(w)?void 0:Fe(w,n,0)})}}return o},LC=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,u=o.length;if(u<1)return null;var c=Fe(r,i,0,!0),l,f=[];if(o[0].barSize===+o[0].barSize){var p=!1,v=i/u,y=o.reduce(function(O,m){return O+m.barSize||0},0);y+=(u-1)*c,y>=i&&(y-=(u-1)*c,c=0),y>=i&&v>0&&(p=!0,v*=.9,y=u*v);var d=(i-y)/2>>0,h={offset:d-c,size:0};l=o.reduce(function(O,m){var w={item:m.item,position:{offset:h.offset+h.size+c,size:p?v:m.barSize}},P=[].concat(Gd(O),[w]);return h=P[P.length-1].position,m.stackList&&m.stackList.length&&m.stackList.forEach(function(_){P.push({item:_,position:h})}),P},f)}else{var g=Fe(n,i,0,!0);i-2*g-(u-1)*c<=0&&(c=0);var x=(i-2*g-(u-1)*c)/u;x>1&&(x>>=0);var b=s===+s?Math.min(x,s):x;l=o.reduce(function(O,m,w){var P=[].concat(Gd(O),[{item:m.item,position:{offset:g+(x+c)*w+(x-b)/2,size:b}}]);return m.stackList&&m.stackList.length&&m.stackList.forEach(function(_){P.push({item:_,position:P[P.length-1].position})}),P},f)}return l},BC=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,u=o-(s.left||0)-(s.right||0),c=im({children:a,legendWidth:u});if(c){var l=i||{},f=l.width,p=l.height,v=c.align,y=c.verticalAlign,d=c.layout;if((d==="vertical"||d==="horizontal"&&y==="middle")&&v!=="center"&&B(t[v]))return xe(xe({},t),{},Zr({},v,t[v]+(f||0)));if((d==="horizontal"||d==="vertical"&&v==="center")&&y!=="middle"&&B(t[y]))return xe(xe({},t),{},Zr({},y,t[y]+(p||0)))}return t},FC=function(t,r,n){return H(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},am=function(t,r,n,i,a){var o=r.props.children,s=We(o,Fn).filter(function(c){return FC(i,a,c.props.direction)});if(s&&s.length){var u=s.map(function(c){return c.props.dataKey});return t.reduce(function(c,l){var f=ye(l,n);if(H(f))return c;var p=Array.isArray(f)?[Zo(f),Xt(f)]:[f,f],v=u.reduce(function(y,d){var h=ye(l,d,0),g=p[0]-Math.abs(Array.isArray(h)?h[0]:h),x=p[1]+Math.abs(Array.isArray(h)?h[1]:h);return[Math.min(g,y[0]),Math.max(x,y[1])]},[1/0,-1/0]);return[Math.min(v[0],c[0]),Math.max(v[1],c[1])]},[1/0,-1/0])}return null},zC=function(t,r,n,i,a){var o=r.map(function(s){return am(t,s,n,a,i)}).filter(function(s){return!H(s)});return o&&o.length?o.reduce(function(s,u){return[Math.min(s[0],u[0]),Math.max(s[1],u[1])]},[1/0,-1/0]):null},om=function(t,r,n,i,a){var o=r.map(function(u){var c=u.props.dataKey;return n==="number"&&c&&am(t,u,c,i)||ti(t,c,n,a)});if(n==="number")return o.reduce(function(u,c){return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]);var s={};return o.reduce(function(u,c){for(var l=0,f=c.length;l<f;l++)s[c[l]]||(s[c[l]]=!0,u.push(c[l]));return u},[])},sm=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},um=function(t,r,n,i){if(i)return t.map(function(u){return u.coordinate});var a,o,s=t.map(function(u){return u.coordinate===r&&(a=!0),u.coordinate===n&&(o=!0),u.coordinate});return a||s.push(r),o||s.push(n),s},Nt=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,s=t.range,u=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,c=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/u:0;if(c=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?Be(s[0]-s[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var l=(t.ticks||t.niceTicks).map(function(f){var p=a?a.indexOf(f):f;return{coordinate:i(p)+c,value:f,offset:c}});return l.filter(function(f){return!Nn(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,p){return{coordinate:i(f)+c,value:f,index:p,offset:c}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+c,value:f,offset:c}}):i.domain().map(function(f,p){return{coordinate:i(f)+c,value:a?a[f]:f,index:p,offset:c}})},Rs=new WeakMap,ua=function(t,r){if(typeof r!="function")return t;Rs.has(t)||Rs.set(t,new WeakMap);var n=Rs.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},cm=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:vi(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:Da(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:ei(),realScaleType:"point"}:a==="category"?{scale:vi(),realScaleType:"band"}:{scale:Da(),realScaleType:"linear"};if(Tr(i)){var u="scale".concat(Do(i));return{scale:(Fd[u]||ei)(),realScaleType:Fd[u]?u:"point"}}return V(i)?{scale:i}:{scale:ei(),realScaleType:"point"}},Vd=1e-4,lm=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])-Vd,o=Math.max(i[0],i[1])+Vd,s=t(r[0]),u=t(r[n-1]);(s<a||s>o||u<a||u>o)&&t.domain([r[0],r[n-1]])}},WC=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},UC=function(t,r){if(!r||r.length!==2||!B(r[0])||!B(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(!B(t[0])||t[0]<n)&&(a[0]=n),(!B(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},KC=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,s=0;s<r;++s){var u=Nn(t[s][n][1])?t[s][n][0]:t[s][n][1];u>=0?(t[s][n][0]=a,t[s][n][1]=a+u,a=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+u,o=t[s][n][1])}},qC=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 s=Nn(t[o][n][1])?t[o][n][0]:t[o][n][1];s>=0?(t[o][n][0]=a,t[o][n][1]=a+s,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},GC={sign:KC,expand:fO,none:Qr,silhouette:dO,wiggle:pO,positive:qC},HC=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=GC[n],o=lO().keys(i).value(function(s,u){return+ye(s,u,0)}).order(iu).offset(a);return o(t)},VC=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,u={},c=s.reduce(function(f,p){var v,y=(v=p.type)!==null&&v!==void 0&&v.defaultProps?xe(xe({},p.type.defaultProps),p.props):p.props,d=y.stackId,h=y.hide;if(h)return f;var g=y[n],x=f[g]||{hasStack:!1,stackGroups:{}};if(je(d)){var b=x.stackGroups[d]||{numericAxisId:n,cateAxisId:i,items:[]};b.items.push(p),x.hasStack=!0,x.stackGroups[d]=b}else x.stackGroups[ir("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[p]};return xe(xe({},f),{},Zr({},g,x))},u),l={};return Object.keys(c).reduce(function(f,p){var v=c[p];if(v.hasStack){var y={};v.stackGroups=Object.keys(v.stackGroups).reduce(function(d,h){var g=v.stackGroups[h];return xe(xe({},d),{},Zr({},h,{numericAxisId:n,cateAxisId:i,items:g.items,stackedData:HC(t,g.items,a)}))},y)}return xe(xe({},f),{},Zr({},p,v))},l)},fm=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,s=r.allowDecimals,u=n||r.scale;if(u!=="auto"&&u!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var c=t.domain();if(!c.length)return null;var l=uC(c,a,s);return t.domain([Zo(l),Xt(l)]),{niceTicks:l}}if(a&&i==="number"){var f=t.domain(),p=cC(f,a,s);return{niceTicks:p}}return null};function un(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&&!H(i[t.dataKey])){var s=va(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var u=ye(i,H(o)?t.dataKey:o);return H(u)?null:t.scale(u)}var Xd=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var u=ye(o,r.dataKey,r.domain[s]);return H(u)?null:r.scale(u)-a/2+i},XC=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]},YC=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?xe(xe({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(je(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},ZC=function(t){return t.reduce(function(r,n){return[Zo(n.concat([r[0]]).filter(B)),Xt(n.concat([r[1]]).filter(B))]},[1/0,-1/0])},dm=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,u=s.reduce(function(c,l){var f=ZC(l.slice(r,n+1));return[Math.min(c[0],f[0]),Math.max(c[1],f[1])]},[1/0,-1/0]);return[Math.min(u[0],i[0]),Math.max(u[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Yd=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Zd=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Cu=function(t,r,n){if(V(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(B(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(Yd.test(t[0])){var a=+Yd.exec(t[0])[1];i[0]=r[0]-a}else V(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(B(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(Zd.test(t[1])){var o=+Zd.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},Ua=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=Gc(r,function(f){return f.coordinate}),o=1/0,s=1,u=a.length;s<u;s++){var c=a[s],l=a[s-1];o=Math.min((c.coordinate||0)-(l.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},Qd=function(t,r,n){return!t||!t.length||rr(t,Je(n,"type.defaultProps.domain"))?r:t},pm=function(t,r){var n=t.type.defaultProps?xe(xe({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,s=n.formatter,u=n.tooltipType,c=n.chartType,l=n.hide;return xe(xe({},q(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:gl(t),value:ye(r,i),type:u,payload:r,chartType:c,hide:l})};function Pi(e){"@babel/helpers - typeof";return Pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pi(e)}function Jd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Et(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jd(Object(r),!0).forEach(function(n){hm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hm(e,t,r){return t=QC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QC(e){var t=JC(e,"string");return Pi(t)=="symbol"?t:t+""}function JC(e,t){if(Pi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Pi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eI(e,t){return iI(e)||nI(e,t)||rI(e,t)||tI()}function tI(){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 rI(e,t){if(e){if(typeof e=="string")return ep(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 ep(e,t)}}function ep(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 nI(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(l){c=!0,i=l}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function iI(e){if(Array.isArray(e))return e}var Ka=Math.PI/180,aI=function(t){return t*180/Math.PI},de=function(t,r,n,i){return{x:t+Math.cos(-Ka*i)*n,y:r+Math.sin(-Ka*i)*n}},vm=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},oI=function(t,r,n,i,a){var o=t.width,s=t.height,u=t.startAngle,c=t.endAngle,l=Fe(t.cx,o,o/2),f=Fe(t.cy,s,s/2),p=vm(o,s,n),v=Fe(t.innerRadius,p,0),y=Fe(t.outerRadius,p,p*.8),d=Object.keys(r);return d.reduce(function(h,g){var x=r[g],b=x.domain,O=x.reversed,m;if(H(x.range))i==="angleAxis"?m=[u,c]:i==="radiusAxis"&&(m=[v,y]),O&&(m=[m[1],m[0]]);else{m=x.range;var w=m,P=eI(w,2);u=P[0],c=P[1]}var _=cm(x,a),$=_.realScaleType,T=_.scale;T.domain(b).range(m),lm(T);var j=fm(T,Et(Et({},x),{},{realScaleType:$})),E=Et(Et(Et({},x),j),{},{range:m,radius:y,realScaleType:$,scale:T,cx:l,cy:f,innerRadius:v,outerRadius:y,startAngle:u,endAngle:c});return Et(Et({},h),{},hm({},g,E))},{})},sI=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))},uI=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=sI({x:n,y:i},{x:a,y:o});if(s<=0)return{radius:s};var u=(n-a)/s,c=Math.acos(u);return i>o&&(c=2*Math.PI-c),{radius:s,angle:aI(c),angleInRadian:c}},cI=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}},lI=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},tp=function(t,r){var n=t.x,i=t.y,a=uI({x:n,y:i},r),o=a.radius,s=a.angle,u=r.innerRadius,c=r.outerRadius;if(o<u||o>c)return!1;if(o===0)return!0;var l=cI(r),f=l.startAngle,p=l.endAngle,v=s,y;if(f<=p){for(;v>p;)v-=360;for(;v<f;)v+=360;y=v>=f&&v<=p}else{for(;v>f;)v-=360;for(;v<p;)v+=360;y=v>=p&&v<=f}return y?Et(Et({},r),{},{radius:o,angle:lI(v,r)}):null},ym=function(t){return!D.isValidElement(t)&&!V(t)&&typeof t!="boolean"?t.className:""};function Si(e){"@babel/helpers - typeof";return Si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Si(e)}var fI=["offset"];function dI(e){return yI(e)||vI(e)||hI(e)||pI()}function pI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
47In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hI(e,t){if(e){if(typeof e=="string")return Iu(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 Iu(e,t)}}function vI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yI(e){if(Array.isArray(e))return Iu(e)}function Iu(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 mI(e,t){if(e==null)return{};var r=gI(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 gI(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 rp(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 $e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rp(Object(r),!0).forEach(function(n){bI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bI(e,t,r){return t=xI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xI(e){var t=wI(e,"string");return Si(t)=="symbol"?t:t+""}function wI(e,t){if(Si(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Si(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _i(){return _i=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},_i.apply(this,arguments)}var OI=function(t){var r=t.value,n=t.formatter,i=H(t.children)?r:t.children;return V(n)?n(i):i},AI=function(t,r){var n=Be(r-t),i=Math.min(Math.abs(r-t),360);return n*i},PI=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,s=t.className,u=a,c=u.cx,l=u.cy,f=u.innerRadius,p=u.outerRadius,v=u.startAngle,y=u.endAngle,d=u.clockWise,h=(f+p)/2,g=AI(v,y),x=g>=0?1:-1,b,O;i==="insideStart"?(b=v+x*o,O=d):i==="insideEnd"?(b=y-x*o,O=!d):i==="end"&&(b=y+x*o,O=d),O=g<=0?O:!O;var m=de(c,l,h,b),w=de(c,l,h,b+(O?1:-1)*359),P="M".concat(m.x,",").concat(m.y,`
48    A`).concat(h,",").concat(h,",0,1,").concat(O?0:1,`,
49    `).concat(w.x,",").concat(w.y),_=H(t.id)?ir("recharts-radial-line-"):t.id;return S.createElement("text",_i({},n,{dominantBaseline:"central",className:Q("recharts-radial-bar-label",s)}),S.createElement("defs",null,S.createElement("path",{id:_,d:P})),S.createElement("textPath",{xlinkHref:"#".concat(_)},r))},SI=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,u=a.innerRadius,c=a.outerRadius,l=a.startAngle,f=a.endAngle,p=(l+f)/2;if(i==="outside"){var v=de(o,s,c+n,p),y=v.x,d=v.y;return{x:y,y:d,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var h=(u+c)/2,g=de(o,s,h,p),x=g.x,b=g.y;return{x,y:b,textAnchor:"middle",verticalAnchor:"middle"}},_I=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,u=o.y,c=o.width,l=o.height,f=l>=0?1:-1,p=f*i,v=f>0?"end":"start",y=f>0?"start":"end",d=c>=0?1:-1,h=d*i,g=d>0?"end":"start",x=d>0?"start":"end";if(a==="top"){var b={x:s+c/2,y:u-f*i,textAnchor:"middle",verticalAnchor:v};return $e($e({},b),n?{height:Math.max(u-n.y,0),width:c}:{})}if(a==="bottom"){var O={x:s+c/2,y:u+l+p,textAnchor:"middle",verticalAnchor:y};return $e($e({},O),n?{height:Math.max(n.y+n.height-(u+l),0),width:c}:{})}if(a==="left"){var m={x:s-h,y:u+l/2,textAnchor:g,verticalAnchor:"middle"};return $e($e({},m),n?{width:Math.max(m.x-n.x,0),height:l}:{})}if(a==="right"){var w={x:s+c+h,y:u+l/2,textAnchor:x,verticalAnchor:"middle"};return $e($e({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:l}:{})}var P=n?{width:c,height:l}:{};return a==="insideLeft"?$e({x:s+h,y:u+l/2,textAnchor:x,verticalAnchor:"middle"},P):a==="insideRight"?$e({x:s+c-h,y:u+l/2,textAnchor:g,verticalAnchor:"middle"},P):a==="insideTop"?$e({x:s+c/2,y:u+p,textAnchor:"middle",verticalAnchor:y},P):a==="insideBottom"?$e({x:s+c/2,y:u+l-p,textAnchor:"middle",verticalAnchor:v},P):a==="insideTopLeft"?$e({x:s+h,y:u+p,textAnchor:x,verticalAnchor:y},P):a==="insideTopRight"?$e({x:s+c-h,y:u+p,textAnchor:g,verticalAnchor:y},P):a==="insideBottomLeft"?$e({x:s+h,y:u+l-p,textAnchor:x,verticalAnchor:v},P):a==="insideBottomRight"?$e({x:s+c-h,y:u+l-p,textAnchor:g,verticalAnchor:v},P):Tn(a)&&(B(a.x)||Or(a.x))&&(B(a.y)||Or(a.y))?$e({x:s+Fe(a.x,c),y:u+Fe(a.y,l),textAnchor:"end",verticalAnchor:"end"},P):$e({x:s+c/2,y:u+l/2,textAnchor:"middle",verticalAnchor:"middle"},P)},$I=function(t){return"cx"in t&&B(t.cx)};function ke(e){var t=e.offset,r=t===void 0?5:t,n=mI(e,fI),i=$e({offset:r},n),a=i.viewBox,o=i.position,s=i.value,u=i.children,c=i.content,l=i.className,f=l===void 0?"":l,p=i.textBreakAll;if(!a||H(s)&&H(u)&&!D.isValidElement(c)&&!V(c))return null;if(D.isValidElement(c))return D.cloneElement(c,i);var v;if(V(c)){if(v=D.createElement(c,i),D.isValidElement(v))return v}else v=OI(i);var y=$I(a),d=q(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return PI(i,v,d);var h=y?SI(i):_I(i);return S.createElement(Er,_i({className:Q("recharts-label",f)},d,h,{breakAll:p}),v)}ke.displayName="Label";var mm=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,u=t.radius,c=t.innerRadius,l=t.outerRadius,f=t.x,p=t.y,v=t.top,y=t.left,d=t.width,h=t.height,g=t.clockWise,x=t.labelViewBox;if(x)return x;if(B(d)&&B(h)){if(B(f)&&B(p))return{x:f,y:p,width:d,height:h};if(B(v)&&B(y))return{x:v,y,width:d,height:h}}return B(f)&&B(p)?{x:f,y:p,width:0,height:0}:B(r)&&B(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:c||0,outerRadius:l||u||s||0,clockWise:g}:t.viewBox?t.viewBox:{}},jI=function(t,r){return t?t===!0?S.createElement(ke,{key:"label-implicit",viewBox:r}):je(t)?S.createElement(ke,{key:"label-implicit",viewBox:r,value:t}):D.isValidElement(t)?t.type===ke?D.cloneElement(t,{key:"label-implicit",viewBox:r}):S.createElement(ke,{key:"label-implicit",content:t,viewBox:r}):V(t)?S.createElement(ke,{key:"label-implicit",content:t,viewBox:r}):Tn(t)?S.createElement(ke,_i({viewBox:r},t,{key:"label-implicit"})):null:null},TI=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=mm(t),o=We(i,ke).map(function(u,c){return D.cloneElement(u,{viewBox:r||a,key:"label-".concat(c)})});if(!n)return o;var s=jI(t.label,r||a);return[s].concat(dI(o))};ke.parseViewBox=mm;ke.renderCallByParent=TI;function EI(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var kI=EI;const MI=ue(kI);function $i(e){"@babel/helpers - typeof";return $i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$i(e)}var NI=["valueAccessor"],CI=["data","dataKey","clockWise","id","textBreakAll"];function II(e){return BI(e)||LI(e)||RI(e)||DI()}function DI(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
50In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RI(e,t){if(e){if(typeof e=="string")return Du(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 Du(e,t)}}function LI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function BI(e){if(Array.isArray(e))return Du(e)}function Du(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 qa(){return qa=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},qa.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 ip(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){FI(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 FI(e,t,r){return t=zI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zI(e){var t=WI(e,"string");return $i(t)=="symbol"?t:t+""}function WI(e,t){if($i(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($i(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ap(e,t){if(e==null)return{};var r=UI(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 UI(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 KI=function(t){return Array.isArray(t.value)?MI(t.value):t.value};function ct(e){var t=e.valueAccessor,r=t===void 0?KI:t,n=ap(e,NI),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,u=n.textBreakAll,c=ap(n,CI);return!i||!i.length?null:S.createElement(J,{className:"recharts-label-list"},i.map(function(l,f){var p=H(a)?r(l,f):ye(l&&l.payload,a),v=H(s)?{}:{id:"".concat(s,"-").concat(f)};return S.createElement(ke,qa({},q(l,!0),c,v,{parentViewBox:l.parentViewBox,value:p,textBreakAll:u,viewBox:ke.parseViewBox(H(o)?l:ip(ip({},l),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}ct.displayName="LabelList";function qI(e,t){return e?e===!0?S.createElement(ct,{key:"labelList-implicit",data:t}):S.isValidElement(e)||V(e)?S.createElement(ct,{key:"labelList-implicit",data:t,content:e}):Tn(e)?S.createElement(ct,qa({data:t},e,{key:"labelList-implicit"})):null:null}function GI(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=We(n,ct).map(function(o,s){return D.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=qI(e.label,t);return[a].concat(II(i))}ct.renderCallByParent=GI;function ji(e){"@babel/helpers - typeof";return ji=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},ji(e)}function Ru(){return Ru=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},Ru.apply(this,arguments)}function op(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 sp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?op(Object(r),!0).forEach(function(n){HI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):op(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HI(e,t,r){return t=VI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VI(e){var t=XI(e,"string");return ji(t)=="symbol"?t:t+""}function XI(e,t){if(ji(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ji(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var YI=function(t,r){var n=Be(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},ca=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,s=t.isExternal,u=t.cornerRadius,c=t.cornerIsExternal,l=u*(s?1:-1)+i,f=Math.asin(u/l)/Ka,p=c?a:a+o*f,v=de(r,n,l,p),y=de(r,n,i,p),d=c?a-o*f:a,h=de(r,n,l*Math.cos(f*Ka),d);return{center:v,circleTangency:y,lineTangency:h,theta:f}},gm=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,u=YI(o,s),c=o+u,l=de(r,n,a,o),f=de(r,n,a,c),p="M ".concat(l.x,",").concat(l.y,`
51    A `).concat(a,",").concat(a,`,0,
52    `).concat(+(Math.abs(u)>180),",").concat(+(o>c),`,
53    `).concat(f.x,",").concat(f.y,`
54  `);if(i>0){var v=de(r,n,i,o),y=de(r,n,i,c);p+="L ".concat(y.x,",").concat(y.y,`
55            A `).concat(i,",").concat(i,`,0,
56            `).concat(+(Math.abs(u)>180),",").concat(+(o<=c),`,
57            `).concat(v.x,",").concat(v.y," Z")}else p+="L ".concat(r,",").concat(n," Z");return p},ZI=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,u=t.cornerIsExternal,c=t.startAngle,l=t.endAngle,f=Be(l-c),p=ca({cx:r,cy:n,radius:a,angle:c,sign:f,cornerRadius:o,cornerIsExternal:u}),v=p.circleTangency,y=p.lineTangency,d=p.theta,h=ca({cx:r,cy:n,radius:a,angle:l,sign:-f,cornerRadius:o,cornerIsExternal:u}),g=h.circleTangency,x=h.lineTangency,b=h.theta,O=u?Math.abs(c-l):Math.abs(c-l)-d-b;if(O<0)return s?"M ".concat(y.x,",").concat(y.y,`
58        a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
59        a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
60      `):gm({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:l});var m="M ".concat(y.x,",").concat(y.y,`
61    A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(v.x,",").concat(v.y,`
62    A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(f<0),",").concat(g.x,",").concat(g.y,`
63    A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(x.x,",").concat(x.y,`
64  `);if(i>0){var w=ca({cx:r,cy:n,radius:i,angle:c,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),P=w.circleTangency,_=w.lineTangency,$=w.theta,T=ca({cx:r,cy:n,radius:i,angle:l,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),j=T.circleTangency,E=T.lineTangency,k=T.theta,C=u?Math.abs(c-l):Math.abs(c-l)-$-k;if(C<0&&o===0)return"".concat(m,"L").concat(r,",").concat(n,"Z");m+="L".concat(E.x,",").concat(E.y,`
65      A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(j.x,",").concat(j.y,`
66      A`).concat(i,",").concat(i,",0,").concat(+(C>180),",").concat(+(f>0),",").concat(P.x,",").concat(P.y,`
67      A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(_.x,",").concat(_.y,"Z")}else m+="L".concat(r,",").concat(n,"Z");return m},QI={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},bm=function(t){var r=sp(sp({},QI),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,u=r.forceCornerRadius,c=r.cornerIsExternal,l=r.startAngle,f=r.endAngle,p=r.className;if(o<a||l===f)return null;var v=Q("recharts-sector",p),y=o-a,d=Fe(s,y,0,!0),h;return d>0&&Math.abs(l-f)<360?h=ZI({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(d,y/2),forceCornerRadius:u,cornerIsExternal:c,startAngle:l,endAngle:f}):h=gm({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:l,endAngle:f}),S.createElement("path",Ru({},q(r,!0),{className:v,d:h,role:"img"}))};function Ti(e){"@babel/helpers - typeof";return Ti=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ti(e)}function Lu(){return Lu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
67for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lu.apply(this,arguments)}function up(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 cp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?up(Object(r),!0).forEach(function(n){JI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):up(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JI(e,t,r){return t=eD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eD(e){var t=tD(e,"string");return Ti(t)=="symbol"?t:t+""}function tD(e,t){if(Ti(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ti(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lp={curveBasisClosed:J1,curveBasisOpen:eO,curveBasis:Q1,curveBumpX:L1,curveBumpY:B1,curveLinearClosed:tO,curveLinear:Lo,curveMonotoneX:rO,curveMonotoneY:nO,curveNatural:iO,curveStep:aO,curveStepAfter:sO,curveStepBefore:oO},la=function(t){return t.x===+t.x&&t.y===+t.y},Vn=function(t){return t.x},Xn=function(t){return t.y},rD=function(t,r){if(V(t))return t;var n="curve".concat(Do(t));return(n==="curveMonotone"||n==="curveBump")&&r?lp["".concat(n).concat(r==="vertical"?"Y":"X")]:lp[n]||Lo},nD=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,s=t.layout,u=t.connectNulls,c=u===void 0?!1:u,l=rD(n,s),f=c?a.filter(function(d){return la(d)}):a,p;if(Array.isArray(o)){var v=c?o.filter(function(d){return la(d)}):o,y=f.map(function(d,h){return cp(cp({},d),{},{base:v[h]})});return s==="vertical"?p=ea().y(Xn).x1(Vn).x0(function(d){return d.base.x}):p=ea().x(Vn).y1(Xn).y0(function(d){return d.base.y}),p.defined(la).curve(l),p(y)}return s==="vertical"&&B(o)?p=ea().y(Xn).x1(Vn).x0(o):B(o)?p=ea().x(Vn).y1(Xn).y0(o):p=pv().x(Vn).y(Xn),p.defined(la).curve(l),p(f)},Jt=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?nD(t):i;return D.createElement("path",Lu({},q(t,!1),ya(t),{className:Q("recharts-curve",r),d:o,ref:a}))},xm={exports:{}},iD="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",aD=iD,oD=aD;function wm(){}function Om(){}Om.resetWarningCache=wm;var sD=function(){function e(n,i,a,o,s,u){if(u!==oD){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Om,resetWarningCache:wm};return r.PropTypes=r,r};xm.exports=sD();var uD=xm.exports;const ae=ue(uD);var cD=Object.getOwnPropertyNames,lD=Object.getOwnPropertySymbols,fD=Object.prototype.hasOwnProperty;function fp(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function fa(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),s=a.get(n);if(o&&s)return o===n&&s===r;a.set(r,n),a.set(n,r);var u=e(r,n,i);return a.delete(r),a.delete(n),u}}function dp(e){return cD(e).concat(lD(e))}var dD=Object.hasOwn||function(e,t){return fD.call(e,t)};function Rr(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var pD="__v",hD="__o",vD="_owner",pp=Object.getOwnPropertyDescriptor,hp=Object.keys;function yD(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 mD(e,t){return Rr(e.getTime(),t.getTime())}function gD(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function bD(e,t){return e===t}function vp(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,s,u=0;(o=a.next())&&!o.done;){for(var c=t.entries(),l=!1,f=0;(s=c.next())&&!s.done;){if(i[f]){f++;continue}var p=o.value,v=s.value;if(r.equals(p[0],v[0],u,f,e,t,r)&&r.equals(p[1],v[1],p[0],v[0],e,t,r)){l=i[f]=!0;break}f++}if(!l)return!1;u++}return!0}var xD=Rr;function wD(e,t,r){var n=hp(e),i=n.length;if(hp(t).length!==i)return!1;for(;i-- >0;)if(!Am(e,t,r,n[i]))return!1;return!0}function Yn(e,t,r){var n=dp(e),i=n.length;if(dp(t).length!==i)return!1;for(var a,o,s;i-- >0;)if(a=n[i],!Am(e,t,r,a)||(o=pp(e,a),s=pp(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function OD(e,t){return Rr(e.valueOf(),t.valueOf())}function AD(e,t){return e.source===t.source&&e.flags===t.flags}function yp(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,s;(o=a.next())&&!o.done;){for(var u=t.values(),c=!1,l=0;(s=u.next())&&!s.done;){if(!i[l]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){c=i[l]=!0;break}l++}if(!c)return!1}return!0}function PD(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 SD(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 Am(e,t,r,n){return(n===vD||n===hD||n===pD)&&(e.$$typeof||t.$$typeof)?!0:dD(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var _D="[object Arguments]",$D="[object Boolean]",jD="[object Date]",TD="[object Error]",ED="[object Map]",kD="[object Number]",MD="[object Object]",ND="[object RegExp]",CD="[object Set]",ID="[object String]",DD="[object URL]",RD=Array.isArray,mp=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,gp=Object.assign,LD=Object.prototype.toString.call.bind(Object.prototype.toString);function BD(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,o=e.areNumbersEqual,s=e.areObjectsEqual,u=e.arePrimitiveWrappersEqual,c=e.areRegExpsEqual,l=e.areSetsEqual,f=e.areTypedArraysEqual,p=e.areUrlsEqual;return function(y,d,h){if(y===d)return!0;
67if(y==null||d==null)return!1;var g=typeof y;if(g!==typeof d)return!1;if(g!=="object")return g==="number"?o(y,d,h):g==="function"?i(y,d,h):!1;var x=y.constructor;if(x!==d.constructor)return!1;if(x===Object)return s(y,d,h);if(RD(y))return t(y,d,h);if(mp!=null&&mp(y))return f(y,d,h);if(x===Date)return r(y,d,h);if(x===RegExp)return c(y,d,h);if(x===Map)return a(y,d,h);if(x===Set)return l(y,d,h);var b=LD(y);return b===jD?r(y,d,h):b===ND?c(y,d,h):b===ED?a(y,d,h):b===CD?l(y,d,h):b===MD?typeof y.then!="function"&&typeof d.then!="function"&&s(y,d,h):b===DD?p(y,d,h):b===TD?n(y,d,h):b===_D?s(y,d,h):b===$D||b===kD||b===ID?u(y,d,h):!1}}function FD(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?Yn:yD,areDatesEqual:mD,areErrorsEqual:gD,areFunctionsEqual:bD,areMapsEqual:n?fp(vp,Yn):vp,areNumbersEqual:xD,areObjectsEqual:n?Yn:wD,arePrimitiveWrappersEqual:OD,areRegExpsEqual:AD,areSetsEqual:n?fp(yp,Yn):yp,areTypedArraysEqual:n?Yn:PD,areUrlsEqual:SD};if(r&&(i=gp({},i,r(i))),t){var a=fa(i.areArraysEqual),o=fa(i.areMapsEqual),s=fa(i.areObjectsEqual),u=fa(i.areSetsEqual);i=gp({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:u})}return i}function zD(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function WD(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(u,c){var l=n(),f=l.cache,p=f===void 0?t?new WeakMap:void 0:f,v=l.meta;return r(u,c,{cache:p,equals:i,meta:v,strict:a})};if(t)return function(u,c){return r(u,c,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(u,c){return r(u,c,o)}}var UD=sr();sr({strict:!0});sr({circular:!0});sr({circular:!0,strict:!0});sr({createInternalComparator:function(){return Rr}});sr({strict:!0,createInternalComparator:function(){return Rr}});sr({circular:!0,createInternalComparator:function(){return Rr}});sr({circular:!0,createInternalComparator:function(){return Rr},strict:!0});function sr(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,s=FD(e),u=BD(s),c=n?n(u):zD(u);return WD({circular:r,comparator:u,createState:i,equals:c,strict:o})}function KD(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function bp(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):KD(i)};requestAnimationFrame(n)}function Bu(e){"@babel/helpers - typeof";return Bu=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},Bu(e)}function qD(e){return XD(e)||VD(e)||HD(e)||GD()}function GD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
68In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HD(e,t){if(e){if(typeof e=="string")return xp(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 xp(e,t)}}function xp(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 VD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function XD(e){if(Array.isArray(e))return e}function YD(){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,s=qD(o),u=s[0],c=s.slice(1);if(typeof u=="number"){bp(i.bind(null,c),u);return}i(u),bp(i.bind(null,c));return}Bu(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 Ei(e){"@babel/helpers - typeof";return Ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ei(e)}function wp(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 Op(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};
vendor: 58,329 bytes, lines 68-86
68t%2?wp(Object(r),!0).forEach(function(n){Pm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Pm(e,t,r){return t=ZD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZD(e){var t=QD(e,"string");return Ei(t)==="symbol"?t:String(t)}function QD(e,t){if(Ei(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ei(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var JD=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},eR=function(t){return t},tR=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},ri=function(t,r){return Object.keys(r).reduce(function(n,i){return Op(Op({},n),{},Pm({},i,t(i,r[i])))},{})},Ap=function(t,r,n){return t.map(function(i){return"".concat(tR(i)," ").concat(r,"ms ").concat(n)}).join(",")};function rR(e,t){return aR(e)||iR(e,t)||Sm(e,t)||nR()}function nR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
69In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iR(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(l){c=!0,i=l}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function aR(e){if(Array.isArray(e))return e}function oR(e){return cR(e)||uR(e)||Sm(e)||sR()}function sR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
70In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sm(e,t){if(e){if(typeof e=="string")return Fu(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 Fu(e,t)}}function uR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cR(e){if(Array.isArray(e))return Fu(e)}function Fu(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 Ga=1e-4,_m=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},$m=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},Pp=function(t,r){return function(n){var i=_m(t,r);return $m(i,n)}},lR=function(t,r){return function(n){var i=_m(t,r),a=[].concat(oR(i.map(function(o,s){return o*s}).slice(1)),[0]);return $m(a,n)}},Sp=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],s=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,s=1;break;case"ease":i=.25,a=.1,o=.25,s=1;break;case"ease-in":i=.42,a=0,o=1,s=1;break;case"ease-out":i=.42,a=0,o=.58,s=1;break;case"ease-in-out":i=0,a=0,o=.58,s=1;break;default:{var u=r[0].split("(");if(u[0]==="cubic-bezier"&&u[1].split(")")[0].split(",").length===4){var c=u[1].split(")")[0].split(",").map(function(h){return parseFloat(h)}),l=rR(c,4);i=l[0],a=l[1],o=l[2],s=l[3]}}}var f=Pp(i,o),p=Pp(a,s),v=lR(i,o),y=function(g){return g>1?1:g<0?0:g},d=function(g){for(var x=g>1?1:g,b=x,O=0;O<8;++O){var m=f(b)-x,w=v(b);if(Math.abs(m-x)<Ga||w<Ga)return p(b);b=y(b-m/w)}return p(b)};return d.isStepper=!1,d},fR=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,s=o===void 0?17:o,u=function(l,f,p){var v=-(l-f)*n,y=p*a,d=p+(v-y)*s/1e3,h=p*s/1e3+l;return Math.abs(h-f)<Ga&&Math.abs(d)<Ga?[f,0]:[h,d]};return u.isStepper=!0,u.dt=s,u},dR=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 Sp(i);case"spring":return fR();default:if(i.split("(")[0]==="cubic-bezier")return Sp(i)}return typeof i=="function"?i:null};function ki(e){"@babel/helpers - typeof";return ki=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ki(e)}function _p(e){return vR(e)||hR(e)||jm(e)||pR()}function pR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
71In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vR(e){if(Array.isArray(e))return Wu(e)}function $p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$p(Object(r),!0).forEach(function(n){zu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$p(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zu(e,t,r){return t=yR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yR(e){var t=mR(e,"string");return ki(t)==="symbol"?t:String(t)}function mR(e,t){if(ki(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ki(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gR(e,t){return wR(e)||xR(e,t)||jm(e,t)||bR()}function bR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
72In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jm(e,t){if(e){if(typeof e=="string")return Wu(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 Wu(e,t)}}function Wu(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 xR(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(l){c=!0,i=l}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function wR(e){if(Array.isArray(e))return e}var Ha=function(t,r,n){return t+(r-t)*n},Uu=function(t){var r=t.from,n=t.to;return r!==n},OR=function e(t,r,n){var i=ri(function(a,o){if(Uu(o)){var s=t(o.from,o.to,o.velocity),u=gR(s,2),c=u[0],l=u[1];return Ne(Ne({},o),{},{from:c,velocity:l})}return o},r);return n<1?ri(function(a,o){return Uu(o)?Ne(Ne({},o),{},{velocity:Ha(o.velocity,i[a].velocity,n),from:Ha(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const AR=function(e,t,r,n,i){var a=JD(e,t),o=a.reduce(function(h,g){return Ne(Ne({},h),{},zu({},g,[e[g],t[g]]))},{}),s=a.reduce(function(h,g){return Ne(Ne({},h),{},zu({},g,{from:e[g],velocity:0,to:t[g]}))},{}),u=-1,c,l,f=function(){return null},p=function(){return ri(function(g,x){return x.from},s)},v=function(){return!Object.values(s).filter(Uu).length},y=function(g){c||(c=g);var x=g-c,b=x/r.dt;s=OR(r,s,b),i(Ne(Ne(Ne({},e),t),p())),c=g,v()||(u=requestAnimationFrame(f))},d=function(g){l||(l=g);var x=(g-l)/n,b=ri(function(m,w){return Ha.apply(void 0,_p(w).concat([r(x)]))},o);if(i(Ne(Ne(Ne({},e),t),b)),x<1)u=requestAnimationFrame(f);else{var O=ri(function(m,w){return Ha.apply(void 0,_p(w).concat([r(1)]))},o);i(Ne(Ne(Ne({},e),t),O))}};return f=r.isStepper?y:d,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(u)}}};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)}var PR=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function SR(e,t){if(e==null)return{};var r=_R(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 _R(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 Ls(e){return ER(e)||TR(e)||jR(e)||$R()}function $R(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
73In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jR(e,t){if(e){if(typeof e=="string")return Ku(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 Ku(e,t)}}function TR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ER(e){if(Array.isArray(e))return Ku(e)}function Ku(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 jp(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 ht(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jp(Object(r),!0).forEach(function(n){Qn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qn(e,t,r){return t=Tm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MR(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,Tm(n.key),n)}}function NR(e,t,r){return t&&MR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tm(e){var t=CR(e,"string");return cn(t)==="symbol"?t:String(t)}function CR(e,t){if(cn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(cn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function IR(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&&qu(e,t)}function qu(e,t){return qu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qu(e,t)}function DR(e){var t=RR();return function(){var n=Va(e),i;if(t){var a=Va(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Gu(this,i)}}function Gu(e,t){if(t&&(cn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hu(e)}function Hu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RR(){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 Va(e){return Va=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Va(e)}var ft=function(e){IR(r,e);var t=DR(r);function r(n,i){var a;kR(this,r),a=t.call(this,n,i);var o=a.props,s=o.isActive,u=o.attributeName,c=o.from,l=o.to,f=o.steps,p=o.children,v=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Hu(a)),a.changeStyle=a.changeStyle.bind(Hu(a)),!s||v<=0)return a.state={style:{}},typeof p=="function"&&(a.state={style:l}),Gu(a);if(f&&f.length)a.state={style:f[0].style};else if(c){if(typeof p=="function")return a.state={style:c},Gu(a);a.state={style:u?Qn({},u,c):c}}else a.state={style:{}};return a}return NR(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,s=a.canBegin,u=a.attributeName,c=a.shouldReAnimate,l=a.to,f=a.from,p=this.state.style;if(s){if(!o){var v={style:u?Qn({},u,l):l};this.state&&p&&(u&&p[u]!==l||!u&&p!==l)&&this.setState(v);return}if(!(UD(i.to,l)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var d=y||c?f:i.to;if(this.state&&p){var h={style:u?Qn({},u,d):d};(u&&p[u]!==d||!u&&p!==d)&&this.setState(h)}this.runAnimation(ht(ht({},this.props),{},{from:d,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,u=i.duration,c=i.easing,l=i.begin,f=i.onAnimationEnd,p=i.onAnimationStart,v=AR(o,s,dR(c),u,this.changeStyle),y=function(){a.stopJSAnimation=v()};this.manager.start([p,l,y,u,f])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,u=i.onAnimationStart,c=o[0],l=c.style,f=c.duration,p=f===void 0?0:f,v=function(d,h,g){if(g===0)return d;var x=h.duration,b=h.easing,O=b===void 0?"ease":b,m=h.style,w=h.properties,P=h.onAnimationEnd,_=g>0?o[g-1]:h,$=w||Object.keys(m);if(typeof O=="function"||O==="spring")return[].concat(Ls(d),[a.runJSAnimation.bind(a,{from:_.style,to:m,duration:x,easing:O}),x]);var T=Ap($,x,O),j=ht(ht(ht({},_.style),m),{},{transition:T});return[].concat(Ls(d),[j,x,P]).filter(eR)};return this.manager.start([u].concat(Ls(o.reduce(v,[l,Math.max(p,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=YD());var a=i.begin,o=i.duration,s=i.attributeName,u=i.to,c=i.easing,l=i.onAnimationStart,f=i.onAnimationEnd,p=i.steps,v=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof c=="function"||typeof v=="function"||c==="spring"){this.runJSAnimation(i);return}if(p.length>1){this.runStepAnimation(i);return}var d=s?Qn({},s,u):u,h=Ap(Object.keys(d),o,c);y.start([l,a,ht(ht({},d),{},{transition:h}),o,f])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var u=SR(i,PR),c=D.Children.count(a),l=this.state.style;if(typeof a=="function")return a(l);if(!s||c===0||o<=0)return a;var f=function(v){var y=v.props,d=y.style,h=d===void 0?{}:d,g=y.className,x=D.cloneElement(v,ht(ht({},u),{},{style:ht(ht({},h),l),className:g}));return x};return c===1?f(D.Children.only(a)):S.createElement("div",null,D.Children.map(a,function(p){return f(p)}))}}]),r}(D.PureComponent);ft.displayName="Animate";ft.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};ft.propTypes={from:ae.oneOfType([ae.object,ae.string]),to:ae.oneOfType([ae.object,ae.string]),attributeName:ae.string,duration:ae.number,begin:ae.number,easing:ae.oneOfType([ae.string,ae.func]),steps:ae.arrayOf(ae.shape({duration:ae.number.isRequired,style:ae.object.isRequired,easing:ae.oneOfType([ae.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ae.func]),properties:ae.arrayOf("string"),onAnimationEnd:ae.func})),children:ae.oneOfType([ae.node,ae.func]),isActive:ae.bool,canBegin:ae.bool,onAnimationEnd:ae.func,shouldReAnimate:ae.bool,onAnimationStart:ae.func,onAnimationReStart:ae.func};function Mi(e){"@babel/helpers - typeof";return Mi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mi(e)}function Xa(){return Xa=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},Xa.apply(this,arguments)}function LR(e,t){return WR(e)||zR(e,t)||FR(e,t)||BR()}function BR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
74In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FR(e,t){if(e){if(typeof e=="string")return Tp(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 Tp(e,t)}}function Tp(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 zR(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(l){c=!0,i=l}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function WR(e){if(Array.isArray(e))return e}function Ep(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 kp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ep(Object(r),!0).forEach(function(n){UR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ep(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UR(e,t,r){return t=KR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KR(e){var t=qR(e,"string");return Mi(t)=="symbol"?t:t+""}function qR(e,t){if(Mi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Mi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mp=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,u=n>=0?1:-1,c=i>=0&&n>=0||i<0&&n<0?1:0,l;if(o>0&&a instanceof Array){for(var f=[0,0,0,0],p=0,v=4;p<v;p++)f[p]=a[p]>o?o:a[p];l="M".concat(t,",").concat(r+s*f[0]),f[0]>0&&(l+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(c,",").concat(t+u*f[0],",").concat(r)),l+="L ".concat(t+n-u*f[1],",").concat(r),f[1]>0&&(l+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(c,`,
75        `).concat(t+n,",").concat(r+s*f[1])),l+="L ".concat(t+n,",").concat(r+i-s*f[2]),f[2]>0&&(l+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(c,`,
76        `).concat(t+n-u*f[2],",").concat(r+i)),l+="L ".concat(t+u*f[3],",").concat(r+i),f[3]>0&&(l+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(c,`,
77        `).concat(t,",").concat(r+i-s*f[3])),l+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);l="M ".concat(t,",").concat(r+s*y,`
78            A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+u*y,",").concat(r,`
79            L `).concat(t+n-u*y,",").concat(r,`
80            A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+n,",").concat(r+s*y,`
81            L `).concat(t+n,",").concat(r+i-s*y,`
82            A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+n-u*y,",").concat(r+i,`
83            L `).concat(t+u*y,",").concat(r+i,`
84            A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t,",").concat(r+i-s*y," Z")}else l="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return l},GR=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,s=r.width,u=r.height;if(Math.abs(s)>0&&Math.abs(u)>0){var c=Math.min(a,a+s),l=Math.max(a,a+s),f=Math.min(o,o+u),p=Math.max(o,o+u);return n>=c&&n<=l&&i>=f&&i<=p}return!1},HR={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},bl=function(t){var r=kp(kp({},HR),t),n=D.useRef(),i=D.useState(-1),a=LR(i,2),o=a[0],s=a[1];D.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&s(O)}catch{}},[]);var u=r.x,c=r.y,l=r.width,f=r.height,p=r.radius,v=r.className,y=r.animationEasing,d=r.animationDuration,h=r.animationBegin,g=r.isAnimationActive,x=r.isUpdateAnimationActive;if(u!==+u||c!==+c||l!==+l||f!==+f||l===0||f===0)return null;var b=Q("recharts-rectangle",v);return x?S.createElement(ft,{canBegin:o>0,from:{width:l,height:f,x:u,y:c},to:{width:l,height:f,x:u,y:c},duration:d,animationEasing:y,isActive:x},function(O){var m=O.width,w=O.height,P=O.x,_=O.y;return S.createElement(ft,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:d,isActive:g,easing:y},S.createElement("path",Xa({},q(r,!0),{className:b,d:Mp(P,_,m,w,p),ref:n})))}):S.createElement("path",Xa({},q(r,!0),{className:b,d:Mp(u,c,l,f,p)}))},VR=["points","className","baseLinePoints","connectNulls"];function Kr(){return Kr=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},Kr.apply(this,arguments)}function XR(e,t){if(e==null)return{};var r=YR(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 YR(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 Np(e){return eL(e)||JR(e)||QR(e)||ZR()}function ZR(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
85In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QR(e,t){if(e){if(typeof e=="string")return Vu(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 Vu(e,t)}}function JR(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eL(e){if(Array.isArray(e))return Vu(e)}function Vu(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 Cp=function(t){return t&&t.x===+t.x&&t.y===+t.y},tL=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){Cp(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),Cp(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},ni=function(t,r){var n=tL(t);r&&(n=[n.reduce(function(a,o){return[].concat(Np(a),Np(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,s,u){return"".concat(o).concat(u===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},rL=function(t,r,n){var i=ni(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(ni(r.reverse(),n).slice(1))},nL=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=XR(t,VR);if(!r||!r.length)return null;var s=Q("recharts-polygon",n);if(i&&i.length){var u=o.stroke&&o.stroke!=="none",c=rL(r,i,a);return S.createElement("g",{className:s},S.createElement("path",Kr({},q(o,!0),{fill:c.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:c})),u?S.createElement("path",Kr({},q(o,!0),{fill:"none",d:ni(r,a)})):null,u?S.createElement("path",Kr({},q(o,!0),{fill:"none",d:ni(i,a)})):null)}var l=ni(r,a);return S.createElement("path",Kr({},q(o,!0),{fill:l.slice(-1)==="Z"?o.fill:"none",className:s,d:l}))};function Xu(){return Xu=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},Xu.apply(this,arguments)}var Yi=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=Q("recharts-dot",a);return r===+r&&n===+n&&i===+i?D.createElement("circle",Xu({},q(t,!1),ya(t),{className:o,cx:r,cy:n,r:i})):null};function Ni(e){"@babel/helpers - typeof";return Ni=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},Ni(e)}var iL=["x","y","top","left","width","height","className"];function Yu(){return Yu=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},Yu.apply(this,arguments)}function Ip(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 aL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ip(Object(r),!0).forEach(function(n){oL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ip(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oL(e,t,r){return t=sL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sL(e){var t=uL(e,"string");return Ni(t)=="symbol"?t:t+""}function uL(e,t){if(Ni(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ni(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cL(e,t){if(e==null)return{};var r=lL(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 lL(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 fL=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},dL=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,u=t.left,c=u===void 0?0:u,l=t.width,f=l===void 0?0:l,p=t.height,v=p===void 0?0:p,y=t.className,d=cL(t,iL),h=aL({x:n,y:a,top:s,left:c,width:f,height:v},d);return!B(n)||!B(a)||!B(f)||!B(v)||!B(s)||!B(c)?null:S.createElement("path",Yu({},q(h,!0),{className:Q("recharts-cross",y),d:fL(n,a,f,v,s,c)}))},pL=Yo,hL=zy,vL=jt;function yL(e,t){return e&&e.length?pL(e,vL(t),hL):void 0}var mL=yL;const gL=ue(mL);var bL=Yo,xL=jt,wL=Wy;function OL(e,t){return e&&e.length?bL(e,xL(t),wL):void 0}var AL=OL;const PL=ue(AL);var SL=["cx","cy","angle","ticks","axisLine"],_L=["ticks","tick","angle","tickFormatter","stroke"];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 ii(){return ii=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},ii.apply(this,arguments)}function Dp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dp(Object(r),!0).forEach(function(n){es(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rp(e,t){if(e==null)return{};var r=$L(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 $L(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 jL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lp(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,km(n.key),n)}}function TL(e,t,r){return t&&Lp(e.prototype,t),r&&Lp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function EL(e,t,r){return t=Ya(t),kL(e,Em()?Reflect.construct(t,r||[],Ya(e).constructor):t.apply(e,r))}function kL(e,t){if(t&&(ln(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ML(e)}function ML(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Em(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Em=function(){return!!e})()}function Ya(e){return Ya=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ya(e)}function NL(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&&Zu(e,t)}function Zu(e,t){return Zu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zu(e,t)}function es(e,t,r){return t=km(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function km(e){var t=CL(e,"string");return ln(t)=="symbol"?t:t+""}function CL(e,t){if(ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ts=function(e){function t(){return jL(this,t),EL(this,t,arguments)}return NL(t,e),TL(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,s=a.cx,u=a.cy;return de(s,u,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,s=n.ticks,u=gL(s,function(l){return l.coordinate||0}),c=PL(s,function(l){return l.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:c.coordinate||0,outerRadius:u.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,s=n.ticks,u=n.axisLine,c=Rp(n,SL),l=s.reduce(function(y,d){return[Math.min(y[0],d.coordinate),Math.max(y[1],d.coordinate)]},[1/0,-1/0]),f=de(i,a,l[0],o),p=de(i,a,l[1],o),v=pr(pr(pr({},q(c,!1)),{},{fill:"none"},q(u,!1)),{},{x1:f.x,y1:f.y,x2:p.x,y2:p.y});return S.createElement("line",ii({className:"recharts-polar-radius-axis-line"},v))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.angle,u=i.tickFormatter,c=i.stroke,l=Rp(i,_L),f=this.getTickTextAnchor(),p=q(l,!1),v=q(o,!1),y=a.map(function(d,h){var g=n.getTickValueCoord(d),x=pr(pr(pr(pr({textAnchor:f,transform:"rotate(".concat(90-s,", ").concat(g.x,", ").concat(g.y,")")},p),{},{stroke:"none",fill:c},v),{},{index:h},g),{},{payload:d});return S.createElement(J,ii({className:Q("recharts-polar-radius-axis-tick",ym(o)),key:"tick-".concat(d.coordinate)},tr(n.props,d,h)),t.renderTickItem(o,x,u?u(d.value,h):d.value))});return S.createElement(J,{className:"recharts-polar-radius-axis-ticks"},y)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:S.createElement(J,{className:Q("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),ke.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return S.isValidElement(n)?o=S.cloneElement(n,i):V(n)?o=n(i):o=S.createElement(Er,ii({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])}(D.PureComponent);es(ts,"displayName","PolarRadiusAxis");es(ts,"axisType","radiusAxis");es(ts,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function 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 xr(){return xr=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},xr.apply(this,arguments)}function Bp(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 hr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bp(Object(r),!0).forEach(function(n){rs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fp(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,Nm(n.key),n)}}function DL(e,t,r){return t&&Fp(e.prototype,t),r&&Fp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function RL(e,t,r){return t=Za(t),LL(e,Mm()?Reflect.construct(t,r||[],Za(e).constructor):t.apply(e,r))}function LL(e,t){if(t&&(fn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BL(e)}function BL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Mm=function(){return!!e})()}function Za(e){return Za=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Za(e)}function FL(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&&Qu(e,t)}function Qu(e,t){return Qu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qu(e,t)}function rs(e,t,r){return t=Nm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nm(e){var t=zL(e,"string");return fn(t)=="symbol"?t:t+""}function zL(e,t){if(fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var WL=Math.PI/180,zp=1e-5,ns=function(e){function t(){return IL(this,t),RL(this,t,arguments)}return FL(t,e),DL(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,s=i.radius,u=i.orientation,c=i.tickSize,l=c||8,f=de(a,o,s,n.coordinate),p=de(a,o,s+(u==="inner"?-1:1)*l,n.coordinate);return{x1:f.x,y1:f.y,x2:p.x,y2:p.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*WL),o;return a>zp?o=i==="outer"?"start":"end":a<-zp?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,s=n.axisLine,u=n.axisLineType,c=hr(hr({},q(this.props,!1)),{},{fill:"none"},q(s,!1));if(u==="circle")return S.createElement(Yi,xr({className:"recharts-polar-angle-axis-line"},c,{cx:i,cy:a,r:o}));var l=this.props.ticks,f=l.map(function(p){return de(i,a,o,p.coordinate)});return S.createElement(nL,xr({className:"recharts-polar-angle-axis-line"},c,{points:f}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.tickLine,u=i.tickFormatter,c=i.stroke,l=q(this.props,!1),f=q(o,!1),p=hr(hr({},l),{},{fill:"none"},q(s,!1)),v=a.map(function(y,d){var h=n.getTickLineCoord(y),g=n.getTickTextAnchor(y),x=hr(hr(hr({textAnchor:g},l),{},{stroke:"none",fill:c},f),{},{index:d,payload:y,x:h.x2,y:h.y2});return S.createElement(J,xr({className:Q("recharts-polar-angle-axis-tick",ym(o)),key:"tick-".concat(y.coordinate)},tr(n.props,y,d)),s&&S.createElement("line",xr({className:"recharts-polar-angle-axis-tick-line"},p,h)),o&&t.renderTickItem(o,x,u?u(y.value,d):y.value))});return S.createElement(J,{className:"recharts-polar-angle-axis-ticks"},v)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:S.createElement(J,{className:Q("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return S.isValidElement(n)?o=S.cloneElement(n,i):V(n)?o=n(i):o=S.createElement(Er,xr({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(D.PureComponent);rs(ns,"displayName","PolarAngleAxis");rs(ns,"axisType","angleAxis");rs(ns,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var UL=Rv,KL=UL(Object.getPrototypeOf,Object),qL=KL,GL=Ft,HL=qL,VL=zt,XL="[object Object]",YL=Function.prototype,ZL=Object.prototype,Cm=YL.toString,QL=ZL.hasOwnProperty,JL=Cm.call(Object);function eB(e){if(!VL(e)||GL(e)!=XL)return!1;var t=HL(e);if(t===null)return!0;var r=QL.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Cm.call(r)==JL}var tB=eB;const rB=ue(tB);var nB=Ft,iB=zt,aB="[object Boolean]";function oB(e){return e===!0||e===!1||iB(e)&&nB(e)==aB}var sB=oB;const uB=ue(sB);function Ci(e){"@babel/helpers - typeof";return Ci=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},Ci(e)}function Qa(){return Qa=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},Qa.apply(this,arguments)}function cB(e,t){return pB(e)||dB(e,t)||fB(e,t)||lB()}function lB(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
86In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fB(e,t){if(e){if(typeof e=="string")return Wp(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 Wp(e,t)}}function Wp(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 dB(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(l){c=!0,i=l}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function pB(e){if(Array.isArray(e))return e}function Up(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 Kp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Up(Object(r),!0).forEach(function(n){hB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Up(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hB(e,t,r){return t=vB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vB(e){var t=yB(e,"string");return Ci(t)=="symbol"?t:t+""}function yB(e,t){if(Ci(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ci(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qp=function(t,r,n,i,a){var o=n-i,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-o/2,",").concat(r+a),s+="L ".concat(t+n-o/2-i,",").concat(r+a),s+="L ".concat(t,",").concat(r," Z"),s},mB={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},gB=function(t){var r=Kp(Kp({},mB),t),n=D.useRef(),i=D.useState(-1),a=cB(i,2),o=a[0],s=a[1];D.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var b=n.current.getTotalLength();b&&s(b)}catch{}},[]);var u=r.x,c=r.y,l=r.upperWidth,f=r.lowerWidth,p=r.height,v=r.className,y=r.animationEasing,d=r.animationDuration,h=r.animationBegin,g=r.isUpdateAnimationActive;if(u!==+u||c!==+c||l!==+l||f!==+f||p!==+p||l===0&&f===0||p===0)return null;var x=Q("recharts-trapezoid",v);return g?S.createElement(ft,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:p,x:u,y:c},to:{upperWidth:l,lowerWidth:f,height:p,x:u,y:c},duration:d,animationEasing:y,isActive:g},function(b){var O=b.upperWidth,m=b.lowerWidth,w=b.height,P=b.x,_=b.y;return S.createElement(ft,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:h,duration:d,easing:y},S.createElement("path",Qa({},q(r,!0),{className:x,d:qp(P,_,O,m,w),ref:n})))}):S.createElement("g",null,S.createElement("path",Qa({},q(r,!0),{className:x,d:qp(u,c,l,f,p)})))},bB=["option","shapeType","propTransformer","activeClassName","isActive"];function Ii(e){"@babel/helpers - typeof";return Ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ii(e)}function xB(e,t){if(e==null)return{};var r=wB(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 wB(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 Gp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ja(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gp(Object(r),!0).forEach(function(n){OB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OB(e,t,r){return t=AB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AB(e){var t=PB(e,"string");return Ii(t)=="symbol"?t:t+""}function PB(e,t){if(Ii(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ii(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SB(e,t){return Ja(Ja({},t),e)}function _B(e,t){return e==="symbols"}function Hp(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return S.createElement(bl,r);case"trapezoid":return S.createElement(gB,r);case"sector":return S.createElement(bm,r);case"symbols":if(_B(t))return S.createElement(Fo,r);break;default:return null}}function $B(e){return D.isValidElement(e)?e.props:e}function eo(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?SB:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,u=xB(e,bB),c;if(D.isValidElement(t))c=D.cloneElement(t,Ja(Ja({},u),$B(t)));else if(V(t))c=t(u);else if(rB(t)&&!uB(t)){var l=i(t,u);c=S.createElement(Hp,{shapeType:r,elementProps:l})}else{var f=u;c=S.createElement(Hp,{shapeType:r,elementProps:f})}return s?S.createElement(J,{className:o},c):c}function is(e,t){return t!=null&&"trapezoids"in e.props}function as(e,t){return t!=null&&"sectors"in e.props}function Di(e,t){return t!=null&&"points"in e.props}function jB(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 TB(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function EB(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function kB(e,t){var r;return is(e,t)?r=jB:as(e,t)?r=TB:Di(e,t)&&(r=EB),r}function MB(e,t){var r;return is(e,t)?r="trapezoids":as(e,t)?r="sectors":Di(e,t)&&(r="points"),r}function NB(e,t){if(is(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(as(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 Di(e,t)?t.payload:{}}function CB(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=MB(r,t),a=NB(r,t),o=n.filter(function(u,c){var l=rr(a,u),f=r.props[i].filter(function(y){var d=kB(r,t);return d(y,t)}),p=r.props[i].indexOf(f[f.length-1]),v=c===p;return l&&v}),s=n.indexOf(o[o.length-1]);return s}var ha;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 qr(){return qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qr.apply(this,arguments)}function Vp(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 le(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vp(Object(r),!0).forEach(function(n){ot(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xp(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,Dm(n.key),n)}}function DB(e,t,r){return t&&Xp(e.prototype,t),r&&Xp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function RB(e,t,r){return t=to(t),LB(e,Im()?Reflect.construct(t,r||[],to(e).constructor):t.apply(e,r))}function LB(e,t){if(t&&(dn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BB(e)}function BB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Im(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Im=function(){return!!e})()}function to(e){return to=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},to(e)}function FB(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&&Ju(e,t)}function Ju(e,t){return Ju=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ju(e,t)}function ot(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=zB(e,"string");return dn(t)=="symbol"?t:t+""}function zB(e,t){if(dn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ut=function(e){function t(r){var n;return IB(this,t),n=RB(this,t,[r]),ot(n,"pieRef",null),ot(n,"sectorRefs",[]),ot(n,"id",ir("recharts-pie-")),ot(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),V(i)&&i()}),ot(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),V(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return FB(t,e),DB(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,s=a.labelLine,u=a.dataKey,c=a.valueKey,l=q(this.props,!1),f=q(o,!1),p=q(s,!1),v=o&&o.offsetRadius||20,y=n.map(function(d,h){var g=(d.startAngle+d.endAngle)/2,x=de(d.cx,d.cy,d.outerRadius+v,g),b=le(le(le(le({},l),d),{},{stroke:"none"},f),{},{index:h,textAnchor:t.getTextAnchor(x.x,d.cx)},x),O=le(le(le(le({},l),d),{},{fill:"none",stroke:d.fill},p),{},{index:h,points:[de(d.cx,d.cy,d.outerRadius,g),x]}),m=u;return H(u)&&H(c)?m="value":H(u)&&(m=c),S.createElement(J,{key:"label-".concat(d.startAngle,"-").concat(d.endAngle,"-").concat(d.midAngle,"-").concat(h)},s&&t.renderLabelLineItem(s,O,"line"),t.renderLabelItem(o,b,ye(d,m)))});return S.createElement(J,{className:"recharts-pie-labels"},y)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.activeShape,s=a.blendStroke,u=a.inactiveShape;return n.map(function(c,l){if((c==null?void 0:c.startAngle)===0&&(c==null?void 0:c.endAngle)===0&&n.length!==1)return null;var f=i.isActiveIndex(l),p=u&&i.hasActiveIndex()?u:null,v=f?o:p,y=le(le({},c),{},{stroke:s?c.fill:c.stroke,tabIndex:-1});return S.createElement(J,qr({ref:function(h){h&&!i.sectorRefs.includes(h)&&i.sectorRefs.push(h)},tabIndex:-1,className:"recharts-pie-sector"},tr(i.props,c,l),{key:"sector-".concat(c==null?void 0:c.startAngle,"-").concat(c==null?void 0:c.endAngle,"-").concat(c.midAngle,"-").concat(l)}),S.createElement(eo,qr({option:v,isActive:f,shapeType:"sector"},y)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,o=i.isAnimationActive,s=i.animationBegin,u=i.animationDuration,c=i.animationEasing,l=i.animationId,f=this.state,p=f.prevSectors,v=f.prevIsAnimationActive;return S.createElement(ft,{begin:s,duration:u,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(l,"-").concat(v),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(y){var d=y.t,h=[],g=a&&a[0],x=g.startAngle;return a.forEach(function(b,O){var m=p&&p[O],w=O>0?Je(b,"paddingAngle",0):0;if(m){var P=ge(m.endAngle-m.startAngle,b.endAngle-b.startAngle),_=le(le({},b),{},{startAngle:x+w,endAngle:x+P(d)+w});h.push(_),x=_.endAngle}else{var $=b.endAngle,T=b.startAngle,j=ge(0,$-T),E=j(d),k=le(le({},b),{},{startAngle:x+w,endAngle:x+E+w});h.push(k),x=k.endAngle}}),S.createElement(J,null,n.renderSectorsStatically(h))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var s=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[s].focus(),i.setState({sectorToFocus:s});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!rr(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,s=i.className,u=i.label,c=i.cx,l=i.cy,f=i.innerRadius,p=i.outerRadius,v=i.isAnimationActive,y=this.state.isAnimationFinished;if(a||!o||!o.length||!B(c)||!B(l)||!B(f)||!B(p))return null;var d=Q("recharts-pie",s);return S.createElement(J,{tabIndex:this.props.rootTabIndex,className:d,ref:function(g){n.pieRef=g}},this.renderSectors(),u&&this.renderLabels(o),ke.renderCallByParent(this.props,null,!1),(!v||y)&&ct.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,a){if(S.isValidElement(n))return S.cloneElement(n,i);if(V(n))return n(i);var o=Q("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return S.createElement(Jt,qr({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(S.isValidElement(n))return S.cloneElement(n,i);var o=a;if(V(n)&&(o=n(i),S.isValidElement(o)))return o;var s=Q("recharts-pie-label-text",typeof n!="boolean"&&!V(n)?n.className:"");return S.createElement(Er,qr({},i,{alignmentBaseline:"middle",className:s}),o)}}])}(D.PureComponent);ha=Ut;ot(Ut,"displayName","Pie");ot(Ut,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!ut.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});ot(Ut,"parseDeltaAngle",function(e,t){var r=Be(t-e),n=Math.min(Math.abs(t-e),360);return r*n});ot(Ut,"getRealPieData",function(e){var t=e.data,r=e.children,n=q(e,!1),i=We(r,qi);return t&&t.length?t.map(function(a,o){return le(le(le({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return le(le({},n),a.props)}):[]});ot(Ut,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=vm(i,a),s=n+Fe(e.cx,i,i/2),u=r+Fe(e.cy,a,a/2),c=Fe(e.innerRadius,o,0),l=Fe(e.outerRadius,o,o*.8),f=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:s,cy:u,innerRadius:c,outerRadius:l,maxRadius:f}});ot(Ut,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?le(le({},t.type.defaultProps),t.props):t.props,i=ha.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,s=n.endAngle,u=n.paddingAngle,c=n.dataKey,l=n.nameKey,f=n.valueKey,p=n.tooltipType,v=Math.abs(n.minAngle),y=ha.parseCoordinateOfPie(n,r),d=ha.parseDeltaAngle(o,s),h=Math.abs(d),g=c;H(c)&&H(f)?(bt(!1,`Use "dataKey" to specify the value of pie,
87      the props "valueKey" will be deprecated in 1.1.0`),g="value"):H(c)&&(bt(!1,`Use "dataKey" to specify the value of pie,
88      the props "valueKey" will be deprecated in 1.1.0`),g=f);var x=i.filter(function(_){return ye(_,g,0)!==0}).length,b=(h>=360?x:x-1)*u,O=h-x*v-b,m=i.reduce(function(_,$){var T=ye($,g,0);return _+(B(T)?T:0)},0),w;if(m>0){var P;w=i.map(function(_,$){var T=ye(_,g,0),j=ye(_,l,$),E=(B(T)?T:0)/m,k;$?k=P.endAngle+Be(d)*u*(T!==0?1:0):k=o;var C=k+Be(d)*((T!==0?v:0)+E*O),N=(k+C)/2,I=(y.innerRadius+y.outerRadius)/2,R=[{name:j,value:T,payload:_,dataKey:g,type:p}],F=de(y.cx,y.cy,I,N);return P=le(le(le({percent:E,cornerRadius:a,name:j,tooltipPayload:R,midAngle:N,middleRadius:I,tooltipPosition:F},_),y),{},{value:ye(_,g),startAngle:k,endAngle:C,payload:_,paddingAngle:Be(d)*u}),P})}return le(le({},y),{},{sectors:w,data:i})});var WB=Math.ceil,UB=Math.max;function KB(e,t,r,n){for(var i=-1,a=UB(WB((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var qB=KB,GB=ry,Yp=1/0,HB=17976931348623157e292;function VB(e){if(!e)return e===0?e:0;if(e=GB(e),e===Yp||e===-Yp){var t=e<0?-1:1;return t*HB}return e===e?e:0}var Rm=VB,XB=qB,YB=Uo,Bs=Rm;function ZB(e){return function(t,r,n){return n&&typeof n!="number"&&YB(t,r,n)&&(r=n=void 0),t=Bs(t),r===void 0?(r=t,t=0):r=Bs(r),n=n===void 0?t<r?1:-1:Bs(n),XB(t,r,n,e)}}var QB=ZB,JB=QB,e3=JB(),t3=e3;const ro=ue(t3);function Ri(e){"@babel/helpers - typeof";return Ri=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},Ri(e)}function Zp(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 Qp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zp(Object(r),!0).forEach(function(n){Lm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lm(e,t,r){return t=r3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r3(e){var t=n3(e,"string");return Ri(t)=="symbol"?t:t+""}function n3(e,t){if(Ri(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ri(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var i3=["Webkit","Moz","O","ms"],a3=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=i3.reduce(function(a,o){return Qp(Qp({},a),{},Lm({},o+n,r))},{});return i[t]=r,i};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 no(){return no=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},no.apply(this,arguments)}function Jp(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 Fs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jp(Object(r),!0).forEach(function(n){Ye(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function o3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eh(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,Fm(n.key),n)}}function s3(e,t,r){return t&&eh(e.prototype,t),r&&eh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u3(e,t,r){return t=io(t),c3(e,Bm()?Reflect.construct(t,r||[],io(e).constructor):t.apply(e,r))}function c3(e,t){if(t&&(pn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l3(e)}function l3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bm=function(){return!!e})()}
vendor: 9,730 bytes, line 88
88function io(e){return io=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},io(e)}function f3(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&&ec(e,t)}function ec(e,t){return ec=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ec(e,t)}function Ye(e,t,r){return t=Fm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fm(e){var t=d3(e,"string");return pn(t)=="symbol"?t:t+""}function d3(e,t){if(pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(pn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var p3=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var u=r.length,c=ei().domain(ro(0,u)).range([a,a+o-s]),l=c.domain().map(function(f){return c(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(i),scale:c,scaleValues:l}},th=function(t){return t.changedTouches&&!!t.changedTouches.length},hn=function(e){function t(r){var n;return o3(this,t),n=u3(this,t,[r]),Ye(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Ye(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Ye(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,s=i.startIndex;o==null||o({endIndex:a,startIndex:s})}),n.detachDragEndListener()}),Ye(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Ye(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Ye(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Ye(n,"handleSlideDragStart",function(i){var a=th(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 f3(t,e),s3(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,s=this.props,u=s.gap,c=s.data,l=c.length-1,f=Math.min(i,a),p=Math.max(i,a),v=t.getIndexInRange(o,f),y=t.getIndexInRange(o,p);return{startIndex:v-v%u,endIndex:y===l?l:y-y%u}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,u=ye(a[n],s,n);return V(o)?o(u,n):u}},{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,s=i.endX,u=this.props,c=u.x,l=u.width,f=u.travellerWidth,p=u.startIndex,v=u.endIndex,y=u.onChange,d=n.pageX-a;d>0?d=Math.min(d,c+l-f-s,c+l-f-o):d<0&&(d=Math.max(d,c-o,c-s));var h=this.getIndex({startX:o+d,endX:s+d});(h.startIndex!==p||h.endIndex!==v)&&y&&y(h),this.setState({startX:o+d,endX:s+d,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=th(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,s=i.endX,u=i.startX,c=this.state[o],l=this.props,f=l.x,p=l.width,v=l.travellerWidth,y=l.onChange,d=l.gap,h=l.data,g={startX:this.state.startX,endX:this.state.endX},x=n.pageX-a;x>0?x=Math.min(x,f+p-v-c):x<0&&(x=Math.max(x,f-c)),g[o]=c+x;var b=this.getIndex(g),O=b.startIndex,m=b.endIndex,w=function(){var _=h.length-1;return o==="startX"&&(s>u?O%d===0:m%d===0)||s<u&&m===_||o==="endX"&&(s>u?m%d===0:O%d===0)||s>u&&m===_};this.setState(Ye(Ye({},o,c+x),"brushMoveStartX",n.pageX),function(){y&&w()&&y(b)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,u=o.startX,c=o.endX,l=this.state[i],f=s.indexOf(l);if(f!==-1){var p=f+n;if(!(p===-1||p>=s.length)){var v=s[p];i==="startX"&&v>=c||i==="endX"&&v<=u||this.setState(Ye({},i,v),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,s=n.height,u=n.fill,c=n.stroke;return S.createElement("rect",{stroke:c,fill:u,x:i,y:a,width:o,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,u=n.data,c=n.children,l=n.padding,f=D.Children.only(c);return f?S.cloneElement(f,{x:i,y:a,width:o,height:s,margin:l,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,u=this.props,c=u.y,l=u.travellerWidth,f=u.height,p=u.traveller,v=u.ariaLabel,y=u.data,d=u.startIndex,h=u.endIndex,g=Math.max(n,this.props.x),x=Fs(Fs({},q(this.props,!1)),{},{x:g,y:c,width:l,height:f}),b=v||"Min value: ".concat((a=y[d])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[h])===null||o===void 0?void 0:o.name);return S.createElement(J,{tabIndex:0,role:"slider","aria-label":b,"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(),s.handleTravellerMoveKeyboard(m.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(p,x))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,u=a.stroke,c=a.travellerWidth,l=Math.min(n,i)+c,f=Math.max(Math.abs(i-n)-c,0);return S.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:u,fillOpacity:.2,x:l,y:o,width:f,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,s=n.height,u=n.travellerWidth,c=n.stroke,l=this.state,f=l.startX,p=l.endX,v=5,y={pointerEvents:"none",fill:c};return S.createElement(J,{className:"recharts-brush-texts"},S.createElement(Er,no({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,p)-v,y:o+s/2},y),this.getTextOfTick(i)),S.createElement(Er,no({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,p)+u+v,y:o+s/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,s=n.x,u=n.y,c=n.width,l=n.height,f=n.alwaysShowText,p=this.state,v=p.startX,y=p.endX,d=p.isTextActive,h=p.isSlideMoving,g=p.isTravellerMoving,x=p.isTravellerFocused;if(!i||!i.length||!B(s)||!B(u)||!B(c)||!B(l)||c<=0||l<=0)return null;var b=Q("recharts-brush",a),O=S.Children.count(o)===1,m=a3("userSelect","none");return S.createElement(J,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(v,y),this.renderTravellerLayer(v,"startX"),this.renderTravellerLayer(y,"endX"),(d||h||g||x||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,u=n.stroke,c=Math.floor(a+s/2)-1;return S.createElement(S.Fragment,null,S.createElement("rect",{x:i,y:a,width:o,height:s,fill:u,stroke:"none"}),S.createElement("line",{x1:i+1,y1:c,x2:i+o-1,y2:c,fill:"none",stroke:"#fff"}),S.createElement("line",{x1:i+1,y1:c+2,x2:i+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return S.isValidElement(n)?a=S.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,s=n.x,u=n.travellerWidth,c=n.updateId,l=n.startIndex,f=n.endIndex;if(a!==i.prevData||c!==i.prevUpdateId)return Fs({prevData:a,prevTravellerWidth:u,prevUpdateId:c,prevX:s,prevWidth:o},a&&a.length?p3({data:a,width:o,x:s,travellerWidth:u,startIndex:l,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||s!==i.prevX||u!==i.prevTravellerWidth)){i.scale.range([s,s+o-u]);var p=i.scale.domain().map(function(v){return i.scale(v)});return{prevData:a,prevTravellerWidth:u,prevUpdateId:c,prevX:s,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:p}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,s=a-1;s-o>1;){var u=Math.floor((o+s)/2);n[u]>i?s=u:o=u}return i>=n[s]?s:o}}])}
88(D.PureComponent);Ye(hn,"displayName","Brush");Ye(hn,"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 h3=qc;function v3(e,t){var r;return h3(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var y3=v3,m3=Tv,g3=jt,b3=y3,x3=Ge,w3=Uo;function O3(e,t,r){var n=x3(e)?m3:b3;return r&&w3(e,t,r)&&(t=void 0),n(e,g3(t))}var A3=O3;const P3=ue(A3);var St=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},rh=Zv;function S3(e,t,r){t=="__proto__"&&rh?rh(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var _3=S3,$3=_3,j3=Xv,T3=jt;function E3(e,t){var r={};return t=T3(t),j3(e,function(n,i,a){$3(r,i,t(n,i,a))}),r}var k3=E3;const M3=ue(k3);function N3(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}var C3=N3,I3=qc;function D3(e,t){var r=!0;return I3(e,function(n,i,a){return r=!!t(n,i,a),r}),r}var R3=D3,L3=C3,B3=R3,F3=jt,z3=Ge,W3=Uo;function U3(e,t,r){var n=z3(e)?L3:B3;return r&&W3(e,t,r)&&(t=void 0),n(e,F3(t))}var K3=U3;const zm=ue(K3);var q3=["x","y"];function Li(e){"@babel/helpers - typeof";return Li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Li(e)}function tc(){return tc=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},tc.apply(this,arguments)}function nh(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 Zn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nh(Object(r),!0).forEach(function(n){G3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function G3(e,t,r){return t=H3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H3(e){var t=V3(e,"string");return Li(t)=="symbol"?t:t+""}function V3(e,t){if(Li(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Li(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function X3(e,t){if(e==null)return{};var r=Y3(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 Y3(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 Z3(e,t){var r=e.x,n=e.y,i=X3(e,q3),a="".concat(r),o=parseInt(a,10),s="".concat(n),u=parseInt(s,10),c="".concat(t.height||i.height),l=parseInt(c,10),f="".concat(t.width||i.width),p=parseInt(f,10);return Zn(Zn(Zn(Zn(Zn({},t),i),o?{x:o}:{}),u?{y:u}:{}),{},{height:l,width:p,name:t.name,radius:t.radius})}function ih(e){return S.createElement(eo,tc({shapeType:"rectangle",propTransformer:Z3,activeClassName:"recharts-active-bar"},e))}var Q3=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=B(n)||Aw(n);return a?t(n,i):(a||Mr(),r)}},J3=["value","background"],Wm;function vn(e){"@babel/helpers - typeof";return vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vn(e)}function e4(e,t){if(e==null)return{};var r=t4(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 t4(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 ao(){return ao=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 130,298 bytes, lines 88-93
88for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ao.apply(this,arguments)}function ah(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Oe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ah(Object(r),!0).forEach(function(n){Yt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ah(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function r4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oh(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,Km(n.key),n)}}function n4(e,t,r){return t&&oh(e.prototype,t),r&&oh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function i4(e,t,r){return t=oo(t),a4(e,Um()?Reflect.construct(t,r||[],oo(e).constructor):t.apply(e,r))}function a4(e,t){if(t&&(vn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return o4(e)}function o4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Um(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Um=function(){return!!e})()}function oo(e){return oo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},oo(e)}function s4(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&&rc(e,t)}function rc(e,t){return rc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},rc(e,t)}function Yt(e,t,r){return t=Km(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Km(e){var t=u4(e,"string");return vn(t)=="symbol"?t:t+""}function u4(e,t){if(vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ie=function(e){function t(){var r;r4(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=i4(this,t,[].concat(i)),Yt(r,"state",{isAnimationFinished:!1}),Yt(r,"id",ir("recharts-bar-")),Yt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Yt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return s4(t,e),n4(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.dataKey,u=a.activeIndex,c=a.activeBar,l=q(this.props,!1);return n&&n.map(function(f,p){var v=p===u,y=v?c:o,d=Oe(Oe(Oe({},l),f),{},{isActive:v,option:y,index:p,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return S.createElement(J,ao({className:"recharts-bar-rectangle"},tr(i.props,f,p),{key:"rectangle-".concat(f==null?void 0:f.x,"-").concat(f==null?void 0:f.y,"-").concat(f==null?void 0:f.value,"-").concat(p)}),S.createElement(ih,d))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,u=i.animationBegin,c=i.animationDuration,l=i.animationEasing,f=i.animationId,p=this.state.prevData;return S.createElement(ft,{begin:u,duration:c,isActive:s,easing:l,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(v){var y=v.t,d=a.map(function(h,g){var x=p&&p[g];if(x){var b=ge(x.x,h.x),O=ge(x.y,h.y),m=ge(x.width,h.width),w=ge(x.height,h.height);return Oe(Oe({},h),{},{x:b(y),y:O(y),width:m(y),height:w(y)})}if(o==="horizontal"){var P=ge(0,h.height),_=P(y);return Oe(Oe({},h),{},{y:h.y+h.height-_,height:_})}var $=ge(0,h.width),T=$(y);return Oe(Oe({},h),{},{width:T})});return S.createElement(J,null,n.renderRectanglesStatically(d))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!rr(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,s=i.activeIndex,u=q(this.props.background,!1);return a.map(function(c,l){c.value;var f=c.background,p=e4(c,J3);if(!f)return null;var v=Oe(Oe(Oe(Oe(Oe({},p),{},{fill:"#eee"},f),u),tr(n.props,c,l)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:l,className:"recharts-bar-background-rectangle"});return S.createElement(ih,ao({key:"background-bar-".concat(l),option:n.props.background,isActive:l===s},v))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,s=a.xAxis,u=a.yAxis,c=a.layout,l=a.children,f=We(l,Fn);if(!f)return null;var p=c==="vertical"?o[0].height/2:o[0].width/2,v=function(h,g){var x=Array.isArray(h.value)?h.value[1]:h.value;return{x:h.x,y:h.y,value:x,errorVal:ye(h,g)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return S.createElement(J,y,f.map(function(d){return S.cloneElement(d,{key:"error-bar-".concat(i,"-").concat(d.props.dataKey),data:o,xAxis:s,yAxis:u,layout:c,offset:p,dataPointFormatter:v})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,s=n.xAxis,u=n.yAxis,c=n.left,l=n.top,f=n.width,p=n.height,v=n.isAnimationActive,y=n.background,d=n.id;if(i||!a||!a.length)return null;var h=this.state.isAnimationFinished,g=Q("recharts-bar",o),x=s&&s.allowDataOverflow,b=u&&u.allowDataOverflow,O=x||b,m=H(d)?this.id:d;return S.createElement(J,{className:g},x||b?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(m)},S.createElement("rect",{x:x?c:c-f/2,y:b?l:l-p/2,width:x?f:f*2,height:b?p:p*2}))):null,S.createElement(J,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(m,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,m),(!v||h)&&ct.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])}(D.PureComponent);Wm=Ie;Yt(Ie,"displayName","Bar");Yt(Ie,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!ut.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Yt(Ie,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,s=e.xAxisTicks,u=e.yAxisTicks,c=e.stackedData,l=e.dataStartIndex,f=e.displayedData,p=e.offset,v=WC(n,r);if(!v)return null;var y=t.layout,d=r.type.defaultProps,h=d!==void 0?Oe(Oe({},d),r.props):r.props,g=h.dataKey,x=h.children,b=h.minPointSize,O=y==="horizontal"?o:a,m=c?O.scale.domain():null,w=XC({numericAxis:O}),P=We(x,qi),_=f.map(function($,T){var j,E,k,C,N,I;c?j=UC(c[l+T],m):(j=ye($,g),Array.isArray(j)||(j=[w,j]));var R=Q3(b,Wm.defaultProps.minPointSize)(j[1],T);if(y==="horizontal"){var F,z=[o.scale(j[0]),o.scale(j[1])],G=z[0],Y=z[1];E=Xd({axis:a,ticks:s,bandSize:i,offset:v.offset,entry:$,index:T}),k=(F=Y??G)!==null&&F!==void 0?F:void 0,C=v.size;var U=G-Y;if(N=Number.isNaN(U)?0:U,I={x:E,y:o.y,width:C,height:o.height},Math.abs(R)>0&&Math.abs(N)<Math.abs(R)){var Z=Be(N||R)*(Math.abs(R)-Math.abs(N));k-=Z,N+=Z}}else{var pe=[a.scale(j[0]),a.scale(j[1])],we=pe[0],He=pe[1];if(E=we,k=Xd({axis:o,ticks:u,bandSize:i,offset:v.offset,entry:$,index:T}),C=He-we,N=v.size,I={x:a.x,y:k,width:a.width,height:N},Math.abs(R)>0&&Math.abs(C)<Math.abs(R)){var ur=Be(C||R)*(Math.abs(R)-Math.abs(C));C+=ur}}return Oe(Oe(Oe({},$),{},{x:E,y:k,width:C,height:N,value:c?j:j[1],payload:$,background:I},P&&P[T]&&P[T].props),{},{tooltipPayload:[pm(r,$)],tooltipPosition:{x:E+C/2,y:k+N/2}})});return Oe({data:_,layout:y},p)});function Bi(e){"@babel/helpers - typeof";return Bi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bi(e)}function c4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sh(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,qm(n.key),n)}}function l4(e,t,r){return t&&sh(e.prototype,t),r&&sh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function uh(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 yt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uh(Object(r),!0).forEach(function(n){os(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function os(e,t,r){return t=qm(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qm(e){var t=f4(e,"string");return Bi(t)=="symbol"?t:t+""}function f4(e,t){if(Bi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Bi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ss=function(t,r,n,i,a){var o=t.width,s=t.height,u=t.layout,c=t.children,l=Object.keys(r),f={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},p=!!Ze(c,Ie);return l.reduce(function(v,y){var d=r[y],h=d.orientation,g=d.domain,x=d.padding,b=x===void 0?{}:x,O=d.mirror,m=d.reversed,w="".concat(h).concat(O?"Mirror":""),P,_,$,T,j;if(d.type==="number"&&(d.padding==="gap"||d.padding==="no-gap")){var E=g[1]-g[0],k=1/0,C=d.categoricalDomain.sort($w);if(C.forEach(function(pe,we){we>0&&(k=Math.min((pe||0)-(C[we-1]||0),k))}),Number.isFinite(k)){var N=k/E,I=d.layout==="vertical"?n.height:n.width;if(d.padding==="gap"&&(P=N*I/2),d.padding==="no-gap"){var R=Fe(t.barCategoryGap,N*I),F=N*I/2;P=F-R-(F-R)/I*R}}}i==="xAxis"?_=[n.left+(b.left||0)+(P||0),n.left+n.width-(b.right||0)-(P||0)]:i==="yAxis"?_=u==="horizontal"?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(P||0),n.top+n.height-(b.bottom||0)-(P||0)]:_=d.range,m&&(_=[_[1],_[0]]);var z=cm(d,a,p),G=z.scale,Y=z.realScaleType;G.domain(g).range(_),lm(G);var U=fm(G,yt(yt({},d),{},{realScaleType:Y}));i==="xAxis"?(j=h==="top"&&!O||h==="bottom"&&O,$=n.left,T=f[w]-j*d.height):i==="yAxis"&&(j=h==="left"&&!O||h==="right"&&O,$=f[w]-j*d.width,T=n.top);var Z=yt(yt(yt({},d),U),{},{realScaleType:Y,x:$,y:T,scale:G,width:i==="xAxis"?n.width:d.width,height:i==="yAxis"?n.height:d.height});return Z.bandSize=Ua(Z,U),!d.hide&&i==="xAxis"?f[w]+=(j?-1:1)*Z.height:d.hide||(f[w]+=(j?-1:1)*Z.width),yt(yt({},v),{},os({},y,Z))},{})},Gm=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)}},d4=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return Gm({x:r,y:n},{x:i,y:a})},Hm=function(){function e(t){c4(this,e),this.scale=t}return l4(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 s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+u}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)}}])}();os(Hm,"EPS",1e-4);var xl=function(t){var r=Object.keys(t).reduce(function(n,i){return yt(yt({},n),{},os({},i,Hm.create(t[i])))},{});return yt(yt({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return M3(i,function(u,c){return r[c].apply(u,{bandAware:o,position:s})})},isInRange:function(i){return zm(i,function(a,o){return r[o].isInRange(a)})}})};function p4(e){return(e%180+180)%180}var h4=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=p4(i),o=a*Math.PI/180,s=Math.atan(n/r),u=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(u)},v4=jt,y4=Ki,m4=zo;function g4(e){return function(t,r,n){var i=Object(t);if(!y4(t)){var a=v4(r);t=m4(t),r=function(s){return a(i[s],s,i)}}var o=e(t,r,n);return o>-1?i[a?t[o]:o]:void 0}}var b4=g4,x4=Rm;function w4(e){var t=x4(e),r=t%1;return t===t?r?t-r:t:0}var O4=w4,A4=Uv,P4=jt,S4=O4,_4=Math.max;function $4(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:S4(r);return i<0&&(i=_4(n+i,0)),A4(e,P4(t),i)}var j4=$4,T4=b4,E4=j4,k4=T4(E4),M4=k4;const N4=ue(M4);var C4=$x(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("")}),wl=D.createContext(void 0),Ol=D.createContext(void 0),Vm=D.createContext(void 0),Xm=D.createContext({}),Ym=D.createContext(void 0),Zm=D.createContext(0),Qm=D.createContext(0),ch=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,u=t.width,c=t.height,l=C4(a);return S.createElement(wl.Provider,{value:n},S.createElement(Ol.Provider,{value:i},S.createElement(Xm.Provider,{value:a},S.createElement(Vm.Provider,{value:l},S.createElement(Ym.Provider,{value:o},S.createElement(Zm.Provider,{value:c},S.createElement(Qm.Provider,{value:u},s)))))))},I4=function(){return D.useContext(Ym)},Jm=function(t){var r=D.useContext(wl);r==null&&Mr();var n=r[t];return n==null&&Mr(),n},D4=function(){var t=D.useContext(wl);return Vt(t)},R4=function(){var t=D.useContext(Ol),r=N4(t,function(n){return zm(n.domain,Number.isFinite)});return r||Vt(t)},eg=function(t){var r=D.useContext(Ol);r==null&&Mr();var n=r[t];return n==null&&Mr(),n},L4=function(){var t=D.useContext(Vm);return t},B4=function(){return D.useContext(Xm)},Al=function(){return D.useContext(Qm)},Pl=function(){return D.useContext(Zm)};function yn(e){"@babel/helpers - typeof";return yn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yn(e)}function F4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z4(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,rg(n.key),n)}}function W4(e,t,r){return t&&z4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function U4(e,t,r){return t=so(t),K4(e,tg()?Reflect.construct(t,r||[],so(e).constructor):t.apply(e,r))}function K4(e,t){if(t&&(yn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return q4(e)}function q4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tg=function(){return!!e})()}function so(e){return so=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},so(e)}function G4(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&&nc(e,t)}function nc(e,t){return nc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},nc(e,t)}function lh(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 fh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lh(Object(r),!0).forEach(function(n){Sl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Sl(e,t,r){return t=rg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rg(e){var t=H4(e,"string");return yn(t)=="symbol"?t:t+""}function H4(e,t){if(yn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(yn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function V4(e,t){return Q4(e)||Z4(e,t)||Y4(e,t)||X4()}function X4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
89In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y4(e,t){if(e){if(typeof e=="string")return dh(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 dh(e,t)}}function dh(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 Z4(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(l){c=!0,i=l}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function Q4(e){if(Array.isArray(e))return e}function ic(){return ic=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},ic.apply(this,arguments)}var J4=function(t,r){var n;return S.isValidElement(t)?n=S.cloneElement(t,r):V(t)?n=t(r):n=S.createElement("line",ic({},r,{className:"recharts-reference-line-line"})),n},e5=function(t,r,n,i,a,o,s,u,c){var l=a.x,f=a.y,p=a.width,v=a.height;if(n){var y=c.y,d=t.y.apply(y,{position:o});if(St(c,"discard")&&!t.y.isInRange(d))return null;var h=[{x:l+p,y:d},{x:l,y:d}];return u==="left"?h.reverse():h}if(r){var g=c.x,x=t.x.apply(g,{position:o});if(St(c,"discard")&&!t.x.isInRange(x))return null;var b=[{x,y:f+v},{x,y:f}];return s==="top"?b.reverse():b}if(i){var O=c.segment,m=O.map(function(w){return t.apply(w,{position:o})});return St(c,"discard")&&P3(m,function(w){return!t.isInRange(w)})?null:m}return null};function t5(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,s=e.className,u=e.alwaysShow,c=I4(),l=Jm(i),f=eg(a),p=L4();if(!c||!p)return null;bt(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var v=xl({x:l.scale,y:f.scale}),y=je(t),d=je(r),h=n&&n.length===2,g=e5(v,y,d,h,p,e.position,l.orientation,f.orientation,e);if(!g)return null;var x=V4(g,2),b=x[0],O=b.x,m=b.y,w=x[1],P=w.x,_=w.y,$=St(e,"hidden")?"url(#".concat(c,")"):void 0,T=fh(fh({clipPath:$},q(e,!0)),{},{x1:O,y1:m,x2:P,y2:_});return S.createElement(J,{className:Q("recharts-reference-line",s)},J4(o,T),ke.renderCallByParent(e,d4({x1:O,y1:m,x2:P,y2:_})))}var _l=function(e){function t(){return F4(this,t),U4(this,t,arguments)}return G4(t,e),W4(t,[{key:"render",value:function(){return S.createElement(t5,this.props)}}])}(S.Component);Sl(_l,"displayName","ReferenceLine");Sl(_l,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function ac(){return ac=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},ac.apply(this,arguments)}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 ph(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 hh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ph(Object(r),!0).forEach(function(n){us(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ph(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function r5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n5(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,ig(n.key),n)}}function i5(e,t,r){return t&&n5(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function a5(e,t,r){return t=uo(t),o5(e,ng()?Reflect.construct(t,r||[],uo(e).constructor):t.apply(e,r))}function o5(e,t){if(t&&(mn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return s5(e)}function s5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ng(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ng=function(){return!!e})()}function uo(e){return uo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},uo(e)}function u5(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&&oc(e,t)}function oc(e,t){return oc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},oc(e,t)}function us(e,t,r){return t=ig(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ig(e){var t=c5(e,"string");return mn(t)=="symbol"?t:t+""}function c5(e,t){if(mn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(mn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l5=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=xl({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return St(t,"discard")&&!o.isInRange(s)?null:s},cs=function(e){function t(){return r5(this,t),a5(this,t,arguments)}return u5(t,e),i5(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,s=n.alwaysShow,u=n.clipPathId,c=je(i),l=je(a);if(bt(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!l)return null;var f=l5(this.props);if(!f)return null;var p=f.x,v=f.y,y=this.props,d=y.shape,h=y.className,g=St(this.props,"hidden")?"url(#".concat(u,")"):void 0,x=hh(hh({clipPath:g},q(this.props,!0)),{},{cx:p,cy:v});return S.createElement(J,{className:Q("recharts-reference-dot",h)},t.renderDot(d,x),ke.renderCallByParent(this.props,{x:p-o,y:v-o,width:2*o,height:2*o}))}}])}(S.Component);us(cs,"displayName","ReferenceDot");us(cs,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});us(cs,"renderDot",function(e,t){var r;return S.isValidElement(e)?r=S.cloneElement(e,t):V(e)?r=e(t):r=S.createElement(Yi,ac({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function sc(){return sc=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},sc.apply(this,arguments)}function gn(e){"@babel/helpers - typeof";return gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gn(e)}function vh(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 yh(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vh(Object(r),!0).forEach(function(n){ls(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d5(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,og(n.key),n)}}function p5(e,t,r){return t&&d5(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function h5(e,t,r){return t=co(t),v5(e,ag()?Reflect.construct(t,r||[],co(e).constructor):t.apply(e,r))}function v5(e,t){if(t&&(gn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y5(e)}function y5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ag(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ag=function(){return!!e})()}function co(e){return co=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},co(e)}function m5(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&&uc(e,t)}function uc(e,t){return uc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},uc(e,t)}function ls(e,t,r){return t=og(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function og(e){var t=g5(e,"string");return gn(t)=="symbol"?t:t+""}function g5(e,t){if(gn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var b5=function(t,r,n,i,a){var o=a.x1,s=a.x2,u=a.y1,c=a.y2,l=a.xAxis,f=a.yAxis;if(!l||!f)return null;var p=xl({x:l.scale,y:f.scale}),v={x:t?p.x.apply(o,{position:"start"}):p.x.rangeMin,y:n?p.y.apply(u,{position:"start"}):p.y.rangeMin},y={x:r?p.x.apply(s,{position:"end"}):p.x.rangeMax,y:i?p.y.apply(c,{position:"end"}):p.y.rangeMax};return St(a,"discard")&&(!p.isInRange(v)||!p.isInRange(y))?null:Gm(v,y)},fs=function(e){function t(){return f5(this,t),h5(this,t,arguments)}return m5(t,e),p5(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,s=n.y2,u=n.className,c=n.alwaysShow,l=n.clipPathId;bt(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=je(i),p=je(a),v=je(o),y=je(s),d=this.props.shape;if(!f&&!p&&!v&&!y&&!d)return null;var h=b5(f,p,v,y,this.props);if(!h&&!d)return null;var g=St(this.props,"hidden")?"url(#".concat(l,")"):void 0;return S.createElement(J,{className:Q("recharts-reference-area",u)},t.renderRect(d,yh(yh({clipPath:g},q(this.props,!0)),h)),ke.renderCallByParent(this.props,h))}}])}(S.Component);ls(fs,"displayName","ReferenceArea");ls(fs,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});ls(fs,"renderRect",function(e,t){var r;return S.isValidElement(e)?r=S.cloneElement(e,t):V(e)?r=e(t):r=S.createElement(bl,sc({},t,{className:"recharts-reference-area-rect"})),r});function sg(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 x5(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return h4(n,r)}function w5(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a}}function lo(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 O5(e,t){return sg(e,t+1)}function A5(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,u=0,c=1,l=o,f=function(){var y=n==null?void 0:n[u];if(y===void 0)return{v:sg(n,c)};var d=u,h,g=function(){return h===void 0&&(h=r(y,d)),h},x=y.coordinate,b=u===0||lo(e,x,g,l,s);b||(u=0,l=o,c+=1),b&&(l=x+e*(g()/2+i),u+=c)},p;c<=a.length;)if(p=f(),p)return p.v;return[]}function Fi(e){"@babel/helpers - typeof";return Fi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fi(e)}function mh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ce(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mh(Object(r),!0).forEach(function(n){P5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function P5(e,t,r){return t=S5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S5(e){var t=_5(e,"string");return Fi(t)=="symbol"?t:t+""}function _5(e,t){if(Fi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Fi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $5(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=t.start,u=t.end,c=function(p){var v=a[p],y,d=function(){return y===void 0&&(y=r(v,p)),y};if(p===o-1){var h=e*(v.coordinate+e*d()/2-u);a[p]=v=Ce(Ce({},v),{},{tickCoord:h>0?v.coordinate-h*e:v.coordinate})}else a[p]=v=Ce(Ce({},v),{},{tickCoord:v.coordinate});var g=lo(e,v.tickCoord,d,s,u);g&&(u=v.tickCoord-e*(d()/2+i),a[p]=Ce(Ce({},v),{},{isShow:!0}))},l=o-1;l>=0;l--)c(l);return a}function j5(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,u=t.start,c=t.end;if(a){var l=n[s-1],f=r(l,s-1),p=e*(l.coordinate+e*f/2-c);o[s-1]=l=Ce(Ce({},l),{},{tickCoord:p>0?l.coordinate-p*e:l.coordinate});var v=lo(e,l.tickCoord,function(){return f},u,c);v&&(c=l.tickCoord-e*(f/2+i),o[s-1]=Ce(Ce({},l),{},{isShow:!0}))}for(var y=a?s-1:s,d=function(x){var b=o[x],O,m=function(){return O===void 0&&(O=r(b,x)),O};if(x===0){var w=e*(b.coordinate-e*m()/2-u);o[x]=b=Ce(Ce({},b),{},{tickCoord:w<0?b.coordinate-w*e:b.coordinate})}else o[x]=b=Ce(Ce({},b),{},{tickCoord:b.coordinate});var P=lo(e,b.tickCoord,m,u,c);P&&(u=b.tickCoord+e*(m()/2+i),o[x]=Ce(Ce({},b),{},{isShow:!0}))},h=0;h<y;h++)d(h);return o}function $l(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,u=e.interval,c=e.tickFormatter,l=e.unit,f=e.angle;if(!i||!i.length||!n)return[];if(B(u)||ut.isSsr)return O5(i,typeof u=="number"&&B(u)?u:0);var p=[],v=s==="top"||s==="bottom"?"width":"height",y=l&&v==="width"?Jn(l,{fontSize:t,letterSpacing:r}):{width:0,height:0},d=function(b,O){var m=V(c)?c(b.value,O):b.value;return v==="width"?x5(Jn(m,{fontSize:t,letterSpacing:r}),y,f):Jn(m,{fontSize:t,letterSpacing:r})[v]},h=i.length>=2?Be(i[1].coordinate-i[0].coordinate):1,g=w5(a,h,v);return u==="equidistantPreserveStart"?A5(h,g,d,i,o):(u==="preserveStart"||u==="preserveStartEnd"?p=j5(h,g,d,i,o,u==="preserveStartEnd"):p=$5(h,g,d,i,o),p.filter(function(x){return x.isShow}))}var T5=["viewBox"],E5=["viewBox"],k5=["ticks"];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 Gr(){return Gr=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},Gr.apply(this,arguments)}function gh(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 _e(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gh(Object(r),!0).forEach(function(n){jl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zs(e,t){if(e==null)return{};var r=M5(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 M5(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 N5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bh(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,cg(n.key),n)}}function C5(e,t,r){return t&&bh(e.prototype,t),r&&bh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function I5(e,t,r){return t=fo(t),D5(e,ug()?Reflect.construct(t,r||[],fo(e).constructor):t.apply(e,r))}function D5(e,t){if(t&&(bn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return R5(e)}function R5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ug(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ug=function(){return!!e})()}function fo(e){return fo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fo(e)}function L5(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&&cc(e,t)}function cc(e,t){return cc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},cc(e,t)}function jl(e,t,r){return t=cg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cg(e){var t=B5(e,"string");return bn(t)=="symbol"?t:t+""}function B5(e,t){if(bn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(bn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zn=function(e){function t(r){var n;return N5(this,t),n=I5(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return L5(t,e),C5(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=zs(n,T5),s=this.props,u=s.viewBox,c=zs(s,E5);return!Xr(a,u)||!Xr(o,c)||!Xr(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,s=i.width,u=i.height,c=i.orientation,l=i.tickSize,f=i.mirror,p=i.tickMargin,v,y,d,h,g,x,b=f?-1:1,O=n.tickSize||l,m=B(n.tickCoord)?n.tickCoord:n.coordinate;switch(c){case"top":v=y=n.coordinate,h=o+ +!f*u,d=h-b*O,x=d-b*p,g=m;break;case"left":d=h=n.coordinate,y=a+ +!f*s,v=y-b*O,g=v-b*p,x=m;break;case"right":d=h=n.coordinate,y=a+ +f*s,v=y+b*O,g=v+b*p,x=m;break;default:v=y=n.coordinate,h=o+ +f*u,d=h+b*O,x=d+b*p,g=m;break}return{line:{x1:v,y1:d,x2:y,y2:h},tick:{x:g,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,s=n.height,u=n.orientation,c=n.mirror,l=n.axisLine,f=_e(_e(_e({},q(this.props,!1)),q(l,!1)),{},{fill:"none"});if(u==="top"||u==="bottom"){var p=+(u==="top"&&!c||u==="bottom"&&c);f=_e(_e({},f),{},{x1:i,y1:a+p*s,x2:i+o,y2:a+p*s})}else{var v=+(u==="left"&&!c||u==="right"&&c);f=_e(_e({},f),{},{x1:i+v*o,y1:a,x2:i+v*o,y2:a+s})}return S.createElement("line",Gr({},f,{className:Q("recharts-cartesian-axis-line",Je(l,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,s=this.props,u=s.tickLine,c=s.stroke,l=s.tick,f=s.tickFormatter,p=s.unit,v=$l(_e(_e({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),h=q(this.props,!1),g=q(l,!1),x=_e(_e({},h),{},{fill:"none"},q(u,!1)),b=v.map(function(O,m){var w=o.getTickLineCoord(O),P=w.line,_=w.tick,$=_e(_e(_e(_e({textAnchor:y,verticalAnchor:d},h),{},{stroke:"none",fill:c},g),_),{},{index:m,payload:O,visibleTicksCount:v.length,tickFormatter:f});return S.createElement(J,Gr({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},tr(o.props,O,m)),u&&S.createElement("line",Gr({},x,P,{className:Q("recharts-cartesian-axis-tick-line",Je(u,"className"))})),l&&t.renderTickItem(l,$,"".concat(V(f)?f(O.value,m):O.value).concat(p||"")))});return S.createElement("g",{className:"recharts-cartesian-axis-ticks"},b)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,s=i.height,u=i.ticksGenerator,c=i.className,l=i.hide;if(l)return null;var f=this.props,p=f.ticks,v=zs(f,k5),y=p;return V(u)&&(y=p&&p.length>0?u(this.props):u(v)),o<=0||s<=0||!y||!y.length?null:S.createElement(J,{className:Q("recharts-cartesian-axis",c),ref:function(h){n.layerReference=h}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),ke.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=Q(i.className,"recharts-cartesian-axis-tick-value");return S.isValidElement(n)?o=S.cloneElement(n,_e(_e({},i),{},{className:s})):V(n)?o=n(_e(_e({},i),{},{className:s})):o=S.createElement(Er,Gr({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(D.Component);jl(zn,"displayName","CartesianAxis");jl(zn,"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 F5=["x1","y1","x2","y2","key"],z5=["offset"];function Nr(e){"@babel/helpers - typeof";return Nr=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},Nr(e)}function xh(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?xh(Object(r),!0).forEach(function(n){W5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function W5(e,t,r){return t=U5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U5(e){var t=K5(e,"string");return Nr(t)=="symbol"?t:t+""}function K5(e,t){if(Nr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Nr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sr(){return Sr=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},Sr.apply(this,arguments)}function wh(e,t){if(e==null)return{};var r=q5(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 q5(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 G5=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,s=t.height,u=t.ry;return S.createElement("rect",{x:i,y:a,ry:u,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function lg(e,t){var r;if(S.isValidElement(e))r=S.cloneElement(e,t);else if(V(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,u=wh(t,F5),c=q(u,!1);c.offset;var l=wh(c,z5);r=S.createElement("line",Sr({},l,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function H5(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(s,u){var c=Re(Re({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(u),index:u});return lg(i,c)});return S.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function V5(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(s,u){var c=Re(Re({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(u),index:u});return lg(i,c)});return S.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function X5(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,u=e.horizontal,c=u===void 0?!0:u;if(!c||!t||!t.length)return null;var l=s.map(function(p){return Math.round(p+i-i)}).sort(function(p,v){return p-v});i!==l[0]&&l.unshift(0);var f=l.map(function(p,v){var y=!l[v+1],d=y?i+o-p:l[v+1]-p;if(d<=0)return null;var h=v%t.length;return S.createElement("rect",{key:"react-".concat(v),y:p,x:n,height:d,width:a,stroke:"none",fill:t[h],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return S.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function Y5(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,u=e.height,c=e.verticalPoints;if(!r||!n||!n.length)return null;var l=c.map(function(p){return Math.round(p+a-a)}).sort(function(p,v){return p-v});a!==l[0]&&l.unshift(0);var f=l.map(function(p,v){var y=!l[v+1],d=y?a+s-p:l[v+1]-p;if(d<=0)return null;var h=v%n.length;return S.createElement("rect",{key:"react-".concat(v),x:p,y:o,width:d,height:u,stroke:"none",fill:n[h],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return S.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var Z5=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return um($l(Re(Re(Re({},zn.defaultProps),n),{},{ticks:Nt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},Q5=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return um($l(Re(Re(Re({},zn.defaultProps),n),{},{ticks:Nt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},zr={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function br(e){var t,r,n,i,a,o,s=Al(),u=Pl(),c=B4(),l=Re(Re({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:zr.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:zr.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:zr.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:zr.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:zr.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:zr.verticalFill,x:B(e.x)?e.x:c.left,y:B(e.y)?e.y:c.top,width:B(e.width)?e.width:c.width,height:B(e.height)?e.height:c.height}),f=l.x,p=l.y,v=l.width,y=l.height,d=l.syncWithTicks,h=l.horizontalValues,g=l.verticalValues,x=D4(),b=R4();if(!B(v)||v<=0||!B(y)||y<=0||!B(f)||f!==+f||!B(p)||p!==+p)return null;var O=l.verticalCoordinatesGenerator||Z5,m=l.horizontalCoordinatesGenerator||Q5,w=l.horizontalPoints,P=l.verticalPoints;if((!w||!w.length)&&V(m)){var _=h&&h.length,$=m({yAxis:b?Re(Re({},b),{},{ticks:_?h:b.ticks}):void 0,width:s,height:u,offset:c},_?!0:d);bt(Array.isArray($),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Nr($),"]")),Array.isArray($)&&(w=$)}if((!P||!P.length)&&V(O)){var T=g&&g.length,j=O({xAxis:x?Re(Re({},x),{},{ticks:T?g:x.ticks}):void 0,width:s,height:u,offset:c},T?!0:d);bt(Array.isArray(j),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Nr(j),"]")),Array.isArray(j)&&(P=j)}return S.createElement("g",{className:"recharts-cartesian-grid"},S.createElement(G5,{fill:l.fill,fillOpacity:l.fillOpacity,x:l.x,y:l.y,width:l.width,height:l.height,ry:l.ry}),S.createElement(H5,Sr({},l,{offset:c,horizontalPoints:w,xAxis:x,yAxis:b})),S.createElement(V5,Sr({},l,{offset:c,verticalPoints:P,xAxis:x,yAxis:b})),S.createElement(X5,Sr({},l,{horizontalPoints:w})),S.createElement(Y5,Sr({},l,{verticalPoints:P})))}br.displayName="CartesianGrid";var J5=["type","layout","connectNulls","ref"],e6=["key"];function xn(e){"@babel/helpers - typeof";return xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xn(e)}function Oh(e,t){if(e==null)return{};var r=t6(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 t6(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 ai(){return ai=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ai.apply(this,arguments)}function Ah(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?Ah(Object(r),!0).forEach(function(n){mt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ah(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wr(e){return a6(e)||i6(e)||n6(e)||r6()}function r6(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
90In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n6(e,t){if(e){if(typeof e=="string")return lc(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 lc(e,t)}}function i6(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function a6(e){if(Array.isArray(e))return lc(e)}function lc(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 o6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ph(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,dg(n.key),n)}}function s6(e,t,r){return t&&Ph(e.prototype,t),r&&Ph(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function u6(e,t,r){return t=po(t),c6(e,fg()?Reflect.construct(t,r||[],po(e).constructor):t.apply(e,r))}function c6(e,t){if(t&&(xn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l6(e)}function l6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fg=function(){return!!e})()}function po(e){return po=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},po(e)}function f6(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&&fc(e,t)}function fc(e,t){return fc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},fc(e,t)}function mt(e,t,r){return t=dg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dg(e){var t=d6(e,"string");return xn(t)=="symbol"?t:t+""}function d6(e,t){if(xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var er=function(e){function t(){var r;o6(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=u6(this,t,[].concat(i)),mt(r,"state",{isAnimationFinished:!0,totalLength:0}),mt(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),mt(r,"getStrokeDasharray",function(o,s,u){var c=u.reduce(function(g,x){return g+x});if(!c)return r.generateSimpleStrokeDasharray(s,o);for(var l=Math.floor(o/c),f=o%c,p=s-o,v=[],y=0,d=0;y<u.length;d+=u[y],++y)if(d+u[y]>f){v=[].concat(Wr(u.slice(0,y)),[f-d]);break}var h=v.length%2===0?[0,p]:[p];return[].concat(Wr(t.repeat(u,l)),Wr(v),h).map(function(g){return"".concat(g,"px")}).join(", ")}),mt(r,"id",ir("recharts-line-")),mt(r,"pathRef",function(o){r.mainCurve=o}),mt(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),mt(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return f6(t,e),s6(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,s=a.xAxis,u=a.yAxis,c=a.layout,l=a.children,f=We(l,Fn);if(!f)return null;var p=function(d,h){return{x:d.x,y:d.y,value:d.value,errorVal:ye(d.payload,h)}},v={clipPath:n?"url(#clipPath-".concat(i,")"):null};return S.createElement(J,v,f.map(function(y){return S.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:s,yAxis:u,layout:c,dataPointFormatter:p})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var s=this.props,u=s.dot,c=s.points,l=s.dataKey,f=q(this.props,!1),p=q(u,!0),v=c.map(function(d,h){var g=Ve(Ve(Ve({key:"dot-".concat(h),r:3},f),p),{},{index:h,cx:d.x,cy:d.y,value:d.value,dataKey:l,payload:d.payload,points:c});return t.renderDotItem(u,g)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return S.createElement(J,ai({className:"recharts-line-dots",key:"dots"},y),v)}},{key:"renderCurveStatically",value:function(n,i,a,o){var s=this.props,u=s.type,c=s.layout,l=s.connectNulls;s.ref;var f=Oh(s,J5),p=Ve(Ve(Ve({},q(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:u,layout:c,connectNulls:l});return S.createElement(Jt,ai({},p,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,u=o.strokeDasharray,c=o.isAnimationActive,l=o.animationBegin,f=o.animationDuration,p=o.animationEasing,v=o.animationId,y=o.animateNewValues,d=o.width,h=o.height,g=this.state,x=g.prevPoints,b=g.totalLength;return S.createElement(ft,{begin:l,duration:f,isActive:c,easing:p,from:{t:0},to:{t:1},key:"line-".concat(v),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var m=O.t;if(x){var w=x.length/s.length,P=s.map(function(E,k){var C=Math.floor(k*w);if(x[C]){var N=x[C],I=ge(N.x,E.x),R=ge(N.y,E.y);return Ve(Ve({},E),{},{x:I(m),y:R(m)})}if(y){var F=ge(d*2,E.x),z=ge(h/2,E.y);return Ve(Ve({},E),{},{x:F(m),y:z(m)})}return Ve(Ve({},E),{},{x:E.x,y:E.y})});return a.renderCurveStatically(P,n,i)}var _=ge(0,b),$=_(m),T;if(u){var j="".concat(u).split(/[,\s]+/gim).map(function(E){return parseFloat(E)});T=a.getStrokeDasharray($,b,j)}else T=a.generateSimpleStrokeDasharray(b,$);return a.renderCurveStatically(s,n,i,{strokeDasharray:T})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,s=a.isAnimationActive,u=this.state,c=u.prevPoints,l=u.totalLength;return s&&o&&o.length&&(!c&&l>0||!rr(c,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,u=i.className,c=i.xAxis,l=i.yAxis,f=i.top,p=i.left,v=i.width,y=i.height,d=i.isAnimationActive,h=i.id;if(a||!s||!s.length)return null;var g=this.state.isAnimationFinished,x=s.length===1,b=Q("recharts-line",u),O=c&&c.allowDataOverflow,m=l&&l.allowDataOverflow,w=O||m,P=H(h)?this.id:h,_=(n=q(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},$=_.r,T=$===void 0?3:$,j=_.strokeWidth,E=j===void 0?2:j,k=ev(o)?o:{},C=k.clipDot,N=C===void 0?!0:C,I=T*2+E;return S.createElement(J,{className:b},O||m?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(P)},S.createElement("rect",{x:O?p:p-v/2,y:m?f:f-y/2,width:O?v:v*2,height:m?y:y*2})),!N&&S.createElement("clipPath",{id:"clipPath-dots-".concat(P)},S.createElement("rect",{x:p-I/2,y:f-I/2,width:v+I,height:y+I}))):null,!x&&this.renderCurve(w,P),this.renderErrorBar(w,P),(x||o)&&this.renderDots(w,N,P),(!d||g)&&ct.renderCallByParent(this.props,s))}}],[{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(Wr(n),[0]):n,o=[],s=0;s<i;++s)o=[].concat(Wr(o),Wr(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(S.isValidElement(n))a=S.cloneElement(n,i);else if(V(n))a=n(i);else{var o=i.key,s=Oh(i,e6),u=Q("recharts-line-dot",typeof n!="boolean"?n.className:"");a=S.createElement(Yi,ai({key:o},s,{className:u}))}return a}}])}(D.PureComponent);mt(er,"displayName","Line");mt(er,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ut.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});mt(er,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,s=e.bandSize,u=e.displayedData,c=e.offset,l=t.layout,f=u.map(function(p,v){var y=ye(p,o);return l==="horizontal"?{x:un({axis:r,ticks:i,bandSize:s,entry:p,index:v}),y:H(y)?null:n.scale(y),value:y,payload:p}:{x:H(y)?null:r.scale(y),y:un({axis:n,ticks:a,bandSize:s,entry:p,index:v}),value:y,payload:p}});return Ve({points:f,layout:l},c)});var p6=["layout","type","stroke","connectNulls","isRange","ref"],h6=["key"],pg;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 hg(e,t){if(e==null)return{};var r=v6(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 v6(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 _r(){return _r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_r.apply(this,arguments)}function Sh(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 Gt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sh(Object(r),!0).forEach(function(n){At(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function y6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _h(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,yg(n.key),n)}}function m6(e,t,r){return t&&_h(e.prototype,t),r&&_h(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function g6(e,t,r){return t=ho(t),b6(e,vg()?Reflect.construct(t,r||[],ho(e).constructor):t.apply(e,r))}function b6(e,t){if(t&&(wn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return x6(e)}function x6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vg=function(){return!!e})()}function ho(e){return ho=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ho(e)}function w6(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&&dc(e,t)}function dc(e,t){return dc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dc(e,t)}function At(e,t,r){return t=yg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yg(e){var t=O6(e,"string");return wn(t)=="symbol"?t:t+""}function O6(e,t){if(wn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(wn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Kt=function(e){function t(){var r;y6(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=g6(this,t,[].concat(i)),At(r,"state",{isAnimationFinished:!0}),At(r,"id",ir("recharts-area-")),At(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),V(o)&&o()}),At(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),V(o)&&o()}),r}return w6(t,e),m6(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(o&&!s)return null;var u=this.props,c=u.dot,l=u.points,f=u.dataKey,p=q(this.props,!1),v=q(c,!0),y=l.map(function(h,g){var x=Gt(Gt(Gt({key:"dot-".concat(g),r:3},p),v),{},{index:g,cx:h.x,cy:h.y,dataKey:f,value:h.value,payload:h.payload,points:l});return t.renderDotItem(c,x)}),d={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return S.createElement(J,_r({className:"recharts-area-dots"},d),y)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,u=o[0].x,c=o[o.length-1].x,l=n*Math.abs(u-c),f=Xt(o.map(function(p){return p.y||0}));return B(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(Xt(a.map(function(p){return p.y||0})),f)),B(f)?S.createElement("rect",{x:u<c?u:u-l,y:0,width:l,height:Math.floor(f+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,u=o[0].y,c=o[o.length-1].y,l=n*Math.abs(u-c),f=Xt(o.map(function(p){return p.x||0}));return B(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(Xt(a.map(function(p){return p.x||0})),f)),B(f)?S.createElement("rect",{x:0,y:u<c?u:u-l,width:f+(s?parseInt("".concat(s),10):1),height:Math.floor(l)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var s=this.props,u=s.layout,c=s.type,l=s.stroke,f=s.connectNulls,p=s.isRange;s.ref;var v=hg(s,p6);return S.createElement(J,{clipPath:a?"url(#clipPath-".concat(o,")"):null},S.createElement(Jt,_r({},q(v,!0),{points:n,connectNulls:f,type:c,baseLine:i,layout:u,stroke:"none",className:"recharts-area-area"})),l!=="none"&&S.createElement(Jt,_r({},q(this.props,!1),{className:"recharts-area-curve",layout:u,type:c,connectNulls:f,fill:"none",points:n})),l!=="none"&&p&&S.createElement(Jt,_r({},q(this.props,!1),{className:"recharts-area-curve",layout:u,type:c,connectNulls:f,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,u=o.baseLine,c=o.isAnimationActive,l=o.animationBegin,f=o.animationDuration,p=o.animationEasing,v=o.animationId,y=this.state,d=y.prevPoints,h=y.prevBaseLine;return S.createElement(ft,{begin:l,duration:f,isActive:c,easing:p,from:{t:0},to:{t:1},key:"area-".concat(v),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(g){var x=g.t;if(d){var b=d.length/s.length,O=s.map(function(_,$){var T=Math.floor($*b);if(d[T]){var j=d[T],E=ge(j.x,_.x),k=ge(j.y,_.y);return Gt(Gt({},_),{},{x:E(x),y:k(x)})}return _}),m;if(B(u)&&typeof u=="number"){var w=ge(h,u);m=w(x)}else if(H(u)||Nn(u)){var P=ge(h,0);m=P(x)}else m=u.map(function(_,$){var T=Math.floor($*b);if(h[T]){var j=h[T],E=ge(j.x,_.x),k=ge(j.y,_.y);return Gt(Gt({},_),{},{x:E(x),y:k(x)})}return _});return a.renderAreaStatically(O,m,n,i)}return S.createElement(J,null,S.createElement("defs",null,S.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(x))),S.createElement(J,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(s,u,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,s=a.baseLine,u=a.isAnimationActive,c=this.state,l=c.prevPoints,f=c.prevBaseLine,p=c.totalLength;return u&&o&&o.length&&(!l&&p>0||!rr(l,o)||!rr(f,s))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,s,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,u=i.className,c=i.top,l=i.left,f=i.xAxis,p=i.yAxis,v=i.width,y=i.height,d=i.isAnimationActive,h=i.id;if(a||!s||!s.length)return null;var g=this.state.isAnimationFinished,x=s.length===1,b=Q("recharts-area",u),O=f&&f.allowDataOverflow,m=p&&p.allowDataOverflow,w=O||m,P=H(h)?this.id:h,_=(n=q(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},$=_.r,T=$===void 0?3:$,j=_.strokeWidth,E=j===void 0?2:j,k=ev(o)?o:{},C=k.clipDot,N=C===void 0?!0:C,I=T*2+E;return S.createElement(J,{className:b},O||m?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(P)},S.createElement("rect",{x:O?l:l-v/2,y:m?c:c-y/2,width:O?v:v*2,height:m?y:y*2})),!N&&S.createElement("clipPath",{id:"clipPath-dots-".concat(P)},S.createElement("rect",{x:l-I/2,y:c-I/2,width:v+I,height:y+I}))):null,x?null:this.renderArea(w,P),(o||x)&&this.renderDots(w,N,P),(!d||g)&&ct.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])}(D.PureComponent);pg=Kt;At(Kt,"displayName","Area");At(Kt,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!ut.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});At(Kt,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,s=o??a;if(B(s)&&typeof s=="number")return s;var u=i==="horizontal"?n:r,c=u.scale.domain();if(u.type==="number"){var l=Math.max(c[0],c[1]),f=Math.min(c[0],c[1]);return s==="dataMin"?f:s==="dataMax"||l<0?l:Math.max(Math.min(c[0],c[1]),0)}return s==="dataMin"?c[0]:s==="dataMax"?c[1]:c[0]});At(Kt,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,u=e.dataKey,c=e.stackedData,l=e.dataStartIndex,f=e.displayedData,p=e.offset,v=t.layout,y=c&&c.length,d=pg.getBaseValue(t,r,n,i),h=v==="horizontal",g=!1,x=f.map(function(O,m){var w;y?w=c[l+m]:(w=ye(O,u),Array.isArray(w)?g=!0:w=[d,w]);var P=w[1]==null||y&&ye(O,u)==null;return h?{x:un({axis:n,ticks:a,bandSize:s,entry:O,index:m}),y:P?null:i.scale(w[1]),value:w,payload:O}:{x:P?null:n.scale(w[1]),y:un({axis:i,ticks:o,bandSize:s,entry:O,index:m}),value:w,payload:O}}),b;return y||g?b=x.map(function(O){var m=Array.isArray(O.value)?O.value[0]:null;return h?{x:O.x,y:m!=null&&O.y!=null?i.scale(m):null}:{x:m!=null?n.scale(m):null,y:O.y}}):b=h?i.scale(d):n.scale(d),Gt({points:x,baseLine:b,layout:v,isRange:g},p)});At(Kt,"renderDotItem",function(e,t){var r;if(S.isValidElement(e))r=S.cloneElement(e,t);else if(V(e))r=e(t);else{var n=Q("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=hg(t,h6);r=S.createElement(Yi,_r({},a,{key:i,className:n}))}return r});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 A6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P6(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,bg(n.key),n)}}function S6(e,t,r){return t&&P6(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _6(e,t,r){return t=vo(t),$6(e,mg()?Reflect.construct(t,r||[],vo(e).constructor):t.apply(e,r))}function $6(e,t){if(t&&(On(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return j6(e)}function j6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mg=function(){return!!e})()}function vo(e){return vo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vo(e)}function T6(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&&pc(e,t)}function pc(e,t){return pc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},pc(e,t)}function gg(e,t,r){return t=bg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bg(e){var t=E6(e,"string");return On(t)=="symbol"?t:t+""}function E6(e,t){if(On(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(On(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ds=function(e){function t(){return A6(this,t),_6(this,t,arguments)}return T6(t,e),S6(t,[{key:"render",value:function(){return null}}])}(D.Component);gg(ds,"displayName","ZAxis");gg(ds,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var k6=["option","isActive"];function oi(){return oi=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},oi.apply(this,arguments)}function M6(e,t){if(e==null)return{};var r=N6(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 N6(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 C6(e){var t=e.option,r=e.isActive,n=M6(e,k6);return typeof t=="string"?D.createElement(eo,oi({option:D.createElement(Fo,oi({type:t},n)),isActive:r,shapeType:"symbols"},n)):D.createElement(eo,oi({option:t,isActive:r,shapeType:"symbols"},n))}function An(e){"@babel/helpers - typeof";return An=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},An(e)}function si(){return si=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},si.apply(this,arguments)}function $h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$h(Object(r),!0).forEach(function(n){Zt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$h(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function I6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jh(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,wg(n.key),n)}}function D6(e,t,r){return t&&jh(e.prototype,t),r&&jh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function R6(e,t,r){return t=yo(t),L6(e,xg()?Reflect.construct(t,r||[],yo(e).constructor):t.apply(e,r))}function L6(e,t){if(t&&(An(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B6(e)}function B6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xg=function(){return!!e})()}function yo(e){return yo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yo(e)}function F6(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&&hc(e,t)}function hc(e,t){return hc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hc(e,t)}function Zt(e,t,r){return t=wg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wg(e){var t=z6(e,"string");return An(t)=="symbol"?t:t+""}function z6(e,t){if(An(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(An(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ps=function(e){function t(){var r;I6(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=R6(this,t,[].concat(i)),Zt(r,"state",{isAnimationFinished:!1}),Zt(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),Zt(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),Zt(r,"id",ir("recharts-scatter-")),r}return F6(t,e),D6(t,[{key:"renderSymbolsStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.activeShape,u=a.activeIndex,c=q(this.props,!1);return n.map(function(l,f){var p=u===f,v=p?s:o,y=nt(nt({},c),l);return S.createElement(J,si({className:"recharts-scatter-symbol",key:"symbol-".concat(l==null?void 0:l.cx,"-").concat(l==null?void 0:l.cy,"-").concat(l==null?void 0:l.size,"-").concat(f)},tr(i.props,l,f),{role:"img"}),S.createElement(C6,si({option:v,isActive:p,key:"symbol-".concat(f)},y)))})}},{key:"renderSymbolsWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,s=i.animationBegin,u=i.animationDuration,c=i.animationEasing,l=i.animationId,f=this.state.prevPoints;return S.createElement(ft,{begin:s,duration:u,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var v=p.t,y=a.map(function(d,h){var g=f&&f[h];if(g){var x=ge(g.cx,d.cx),b=ge(g.cy,d.cy),O=ge(g.size,d.size);return nt(nt({},d),{},{cx:x(v),cy:b(v),size:O(v)})}var m=ge(0,d.size);return nt(nt({},d),{},{size:m(v)})});return S.createElement(J,null,n.renderSymbolsStatically(y))})}},{key:"renderSymbols",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=this.state.prevPoints;return a&&i&&i.length&&(!o||!rr(o,i))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(i)}},{key:"renderErrorBar",value:function(){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,o=i.xAxis,s=i.yAxis,u=i.children,c=We(u,Fn);return c?c.map(function(l,f){var p=l.props,v=p.direction,y=p.dataKey;return S.cloneElement(l,{key:"".concat(v,"-").concat(y,"-").concat(a[f]),data:a,xAxis:o,yAxis:s,layout:v==="x"?"vertical":"horizontal",dataPointFormatter:function(h,g){return{x:h.cx,y:h.cy,value:v==="x"?+h.node.x:+h.node.y,errorVal:ye(h,g)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,i=n.points,a=n.line,o=n.lineType,s=n.lineJointType,u=q(this.props,!1),c=q(a,!1),l,f;if(o==="joint")l=i.map(function(b){return{x:b.cx,y:b.cy}});else if(o==="fitting"){var p=_w(i),v=p.xmin,y=p.xmax,d=p.a,h=p.b,g=function(O){return d*O+h};l=[{x:v,y:g(v)},{x:y,y:g(y)}]}var x=nt(nt(nt({},u),{},{fill:"none",stroke:u&&u.fill},c),{},{points:l});return S.isValidElement(a)?f=S.cloneElement(a,x):V(a)?f=a(x):f=S.createElement(Jt,si({},x,{type:s})),S.createElement(J,{className:"recharts-scatter-line",key:"recharts-scatter-line"},f)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.points,o=n.line,s=n.className,u=n.xAxis,c=n.yAxis,l=n.left,f=n.top,p=n.width,v=n.height,y=n.id,d=n.isAnimationActive;if(i||!a||!a.length)return null;var h=this.state.isAnimationFinished,g=Q("recharts-scatter",s),x=u&&u.allowDataOverflow,b=c&&c.allowDataOverflow,O=x||b,m=H(y)?this.id:y;return S.createElement(J,{className:g,clipPath:O?"url(#clipPath-".concat(m,")"):null},x||b?S.createElement("defs",null,S.createElement("clipPath",{id:"clipPath-".concat(m)},S.createElement("rect",{x:x?l:l-p/2,y:b?f:f-v/2,width:x?p:p*2,height:b?v:v*2}))):null,o&&this.renderLine(),this.renderErrorBar(),S.createElement(J,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!d||h)&&ct.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}}])}(D.PureComponent);Zt(ps,"displayName","Scatter");Zt(ps,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!ut.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});Zt(ps,"getComposedData",function(e){var t=e.xAxis,r=e.yAxis,n=e.zAxis,i=e.item,a=e.displayedData,o=e.xAxisTicks,s=e.yAxisTicks,u=e.offset,c=i.props.tooltipType,l=We(i.props.children,qi),f=H(t.dataKey)?i.props.dataKey:t.dataKey,p=H(r.dataKey)?i.props.dataKey:r.dataKey,v=n&&n.dataKey,y=n?n.range:ds.defaultProps.range,d=y&&y[0],h=t.scale.bandwidth?t.scale.bandwidth():0,g=r.scale.bandwidth?r.scale.bandwidth():0,x=a.map(function(b,O){var m=ye(b,f),w=ye(b,p),P=!H(v)&&ye(b,v)||"-",_=[{name:H(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:m,payload:b,dataKey:f,type:c},{name:H(r.dataKey)?i.props.name:r.name||r.dataKey,unit:r.unit||"",value:w,payload:b,dataKey:p,type:c}];P!=="-"&&_.push({name:n.name||n.dataKey,unit:n.unit||"",value:P,payload:b,dataKey:v,type:c});var $=un({axis:t,ticks:o,bandSize:h,entry:b,index:O,dataKey:f}),T=un({axis:r,ticks:s,bandSize:g,entry:b,index:O,dataKey:p}),j=P!=="-"?n.scale(P):d,E=Math.sqrt(Math.max(j,0)/Math.PI);return nt(nt({},b),{},{cx:$,cy:T,x:$-E,y:T-E,xAxis:t,yAxis:r,zAxis:n,width:2*E,height:2*E,size:j,node:{x:m,y:w,z:P},tooltipPayload:_,tooltipPosition:{x:$,y:T},payload:b},l&&l[O]&&l[O].props)});return nt({points:x},u)});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 W6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U6(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,Pg(n.key),n)}}function K6(e,t,r){return t&&U6(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function q6(e,t,r){return t=mo(t),G6(e,Og()?Reflect.construct(t,r||[],mo(e).constructor):t.apply(e,r))}function G6(e,t){if(t&&(Pn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return H6(e)}function H6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Og(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Og=function(){return!!e})()}function mo(e){return mo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},mo(e)}function V6(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&&vc(e,t)}function vc(e,t){return vc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},vc(e,t)}function Ag(e,t,r){return t=Pg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pg(e){var t=X6(e,"string");return Pn(t)=="symbol"?t:t+""}function X6(e,t){if(Pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Pn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yc(){return yc=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},yc.apply(this,arguments)}function Y6(e){var t=e.xAxisId,r=Al(),n=Pl(),i=Jm(t);return i==null?null:D.createElement(zn,yc({},i,{className:Q("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Nt(o,!0)}}))}var it=function(e){function t(){return W6(this,t),q6(this,t,arguments)}return V6(t,e),K6(t,[{key:"render",value:function(){return D.createElement(Y6,this.props)}}])}(D.Component);Ag(it,"displayName","XAxis");Ag(it,"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 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 Z6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q6(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,$g(n.key),n)}}function J6(e,t,r){return t&&Q6(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function e8(e,t,r){return t=go(t),t8(e,Sg()?Reflect.construct(t,r||[],go(e).constructor):t.apply(e,r))}function t8(e,t){if(t&&(Sn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return r8(e)}function r8(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Sg=function(){return!!e})()}function go(e){return go=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},go(e)}function n8(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&&mc(e,t)}function mc(e,t){return mc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},mc(e,t)}function _g(e,t,r){return t=$g(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $g(e){var t=i8(e,"string");return Sn(t)=="symbol"?t:t+""}function i8(e,t){if(Sn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Sn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gc(){return gc=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},gc.apply(this,arguments)}var a8=function(t){var r=t.yAxisId,n=Al(),i=Pl(),a=eg(r);return a==null?null:D.createElement(zn,gc({},a,{className:Q("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return Nt(s,!0)}}))},at=function(e){function t(){return Z6(this,t),e8(this,t,arguments)}return n8(t,e),J6(t,[{key:"render",value:function(){return D.createElement(a8,this.props)}}])}(D.Component);_g(at,"displayName","YAxis");_g(at,"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 Th(e){return c8(e)||u8(e)||s8(e)||o8()}function o8(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
91In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s8(e,t){if(e){if(typeof e=="string")return bc(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 bc(e,t)}}function u8(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function c8(e){if(Array.isArray(e))return bc(e)}function bc(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 xc=function(t,r,n,i,a){var o=We(t,_l),s=We(t,cs),u=[].concat(Th(o),Th(s)),c=We(t,fs),l="".concat(i,"Id"),f=i[0],p=r;if(u.length&&(p=u.reduce(function(d,h){if(h.props[l]===n&&St(h.props,"extendDomain")&&B(h.props[f])){var g=h.props[f];return[Math.min(d[0],g),Math.max(d[1],g)]}return d},p)),c.length){var v="".concat(f,"1"),y="".concat(f,"2");p=c.reduce(function(d,h){if(h.props[l]===n&&St(h.props,"extendDomain")&&B(h.props[v])&&B(h.props[y])){var g=h.props[v],x=h.props[y];return[Math.min(d[0],g,x),Math.max(d[1],g,x)]}return d},p)}return a&&a.length&&(p=a.reduce(function(d,h){return B(h)?[Math.min(d[0],h),Math.max(d[1],h)]:d},p)),p},jg={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(u,c,l){this.fn=u,this.context=c,this.once=l||!1}function a(u,c,l,f,p){if(typeof l!="function")throw new TypeError("The listener must be a function");var v=new i(l,f||u,p),y=r?r+c:c;return u._events[y]?u._events[y].fn?u._events[y]=[u._events[y],v]:u._events[y].push(v):(u._events[y]=v,u._eventsCount++),u}function o(u,c){--u._eventsCount===0?u._events=new n:delete u._events[c]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],l,f;if(this._eventsCount===0)return c;for(f in l=this._events)t.call(l,f)&&c.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(l)):c},s.prototype.listeners=function(c){var l=r?r+c:c,f=this._events[l];if(!f)return[];if(f.fn)return[f.fn];for(var p=0,v=f.length,y=new Array(v);p<v;p++)y[p]=f[p].fn;return y},s.prototype.listenerCount=function(c){var l=r?r+c:c,f=this._events[l];return f?f.fn?1:f.length:0},s.prototype.emit=function(c,l,f,p,v,y){var d=r?r+c:c;if(!this._events[d])return!1;var h=this._events[d],g=arguments.length,x,b;if(h.fn){switch(h.once&&this.removeListener(c,h.fn,void 0,!0),g){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,l),!0;case 3:return h.fn.call(h.context,l,f),!0;case 4:return h.fn.call(h.context,l,f,p),!0;case 5:return h.fn.call(h.context,l,f,p,v),!0;case 6:return h.fn.call(h.context,l,f,p,v,y),!0}for(b=1,x=new Array(g-1);b<g;b++)x[b-1]=arguments[b];h.fn.apply(h.context,x)}else{var O=h.length,m;for(b=0;b<O;b++)switch(h[b].once&&this.removeListener(c,h[b].fn,void 0,!0),g){case 1:h[b].fn.call(h[b].context);break;case 2:h[b].fn.call(h[b].context,l);break;case 3:h[b].fn.call(h[b].context,l,f);break;case 4:h[b].fn.call(h[b].context,l,f,p);break;default:if(!x)for(m=1,x=new Array(g-1);m<g;m++)x[m-1]=arguments[m];h[b].fn.apply(h[b].context,x)}}return!0},s.prototype.on=function(c,l,f){return a(this,c,l,f,!1)},s.prototype.once=function(c,l,f){return a(this,c,l,f,!0)},s.prototype.removeListener=function(c,l,f,p){var v=r?r+c:c;if(!this._events[v])return this;if(!l)return o(this,v),this;var y=this._events[v];if(y.fn)y.fn===l&&(!p||y.once)&&(!f||y.context===f)&&o(this,v);else{for(var d=0,h=[],g=y.length;d<g;d++)(y[d].fn!==l||p&&!y[d].once||f&&y[d].context!==f)&&h.push(y[d]);h.length?this._events[v]=h.length===1?h[0]:h:o(this,v)}return this},s.prototype.removeAllListeners=function(c){var l;return c?(l=r?r+c:c,this._events[l]&&o(this,l)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(jg);var l8=jg.exports;const f8=ue(l8);var Ws=new f8,Us="recharts.syncMouseEvents";function zi(e){"@babel/helpers - typeof";return zi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zi(e)}function d8(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p8(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,Tg(n.key),n)}}function h8(e,t,r){return t&&p8(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ks(e,t,r){return t=Tg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tg(e){var t=v8(e,"string");return zi(t)=="symbol"?t:t+""}function v8(e,t){if(zi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var y8=function(){function e(){d8(this,e),Ks(this,"activeIndex",0),Ks(this,"coordinateList",[]),Ks(this,"layout","horizontal")}return h8(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,s=o===void 0?null:o,u=r.layout,c=u===void 0?null:u,l=r.offset,f=l===void 0?null:l,p=r.mouseHandlerCallback,v=p===void 0?null:p;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=c??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=v??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,s=i.height,u=this.coordinateList[this.activeIndex].coordinate,c=((r=window)===null||r===void 0?void 0:r.scrollX)||0,l=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=a+u+c,p=o+this.offset.top+s/2+l;this.mouseHandlerCallback({pageX:f,pageY:p})}}}])}();function m8(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&B(n)&&B(i))return!0}return!1}function g8(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 Eg(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=de(t,r,n,i),s=de(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function b8(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 s=t.cx,u=t.cy,c=t.innerRadius,l=t.outerRadius,f=t.angle,p=de(s,u,c,f),v=de(s,u,l,f);n=p.x,i=p.y,a=v.x,o=v.y}else return Eg(t);return[{x:n,y:i},{x:a,y:o}]}function Wi(e){"@babel/helpers - typeof";return Wi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wi(e)}function Eh(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 da(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Eh(Object(r),!0).forEach(function(n){x8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Eh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function x8(e,t,r){return t=w8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w8(e){var t=O8(e,"string");return Wi(t)=="symbol"?t:t+""}function O8(e,t){if(Wi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Wi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function A8(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,s=e.activePayload,u=e.offset,c=e.activeTooltipIndex,l=e.tooltipAxisBandSize,f=e.layout,p=e.chartName,v=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!v||!a||!o||p!=="ScatterChart"&&i!=="axis")return null;var y,d=Jt;if(p==="ScatterChart")y=o,d=dL;else if(p==="BarChart")y=g8(f,o,u,l),d=bl;else if(f==="radial"){var h=Eg(o),g=h.cx,x=h.cy,b=h.radius,O=h.startAngle,m=h.endAngle;y={cx:g,cy:x,startAngle:O,endAngle:m,innerRadius:b,outerRadius:b},d=bm}else y={points:b8(f,o,u)},d=Jt;var w=da(da(da(da({stroke:"#ccc",pointerEvents:"none"},u),y),q(v,!1)),{},{payload:s,payloadIndex:c,className:Q("recharts-tooltip-cursor",v.className)});return D.isValidElement(v)?D.cloneElement(v,w):D.createElement(d,w)}var P8=["item"],S8=["children","className","width","height","style","compact","title","desc"];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 Hr(){return Hr=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},Hr.apply(this,arguments)}function kh(e,t){return j8(e)||$8(e,t)||Mg(e,t)||_8()}function _8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
92In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $8(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(l){c=!0,i=l}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function j8(e){if(Array.isArray(e))return e}function Mh(e,t){if(e==null)return{};var r=T8(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 T8(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 E8(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k8(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,Ng(n.key),n)}}function M8(e,t,r){return t&&k8(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function N8(e,t,r){return t=bo(t),C8(e,kg()?Reflect.construct(t,r||[],bo(e).constructor):t.apply(e,r))}function C8(e,t){if(t&&(_n(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return I8(e)}function I8(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kg=function(){return!!e})()}function bo(e){return bo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},bo(e)}function D8(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&&wc(e,t)}function wc(e,t){return wc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},wc(e,t)}function $n(e){return B8(e)||L8(e)||Mg(e)||R8()}function R8(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
93In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mg(e,t){if(e){if(typeof e=="string")return Oc(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 Oc(e,t)}}function L8(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function B8(e){if(Array.isArray(e))return Oc(e)}function Oc(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 Nh(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 M(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nh(Object(r),!0).forEach(function(n){X(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nh(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function X(e,t,r){return t=Ng(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ng(e){var t=F8(e,"string");return _n(t)=="symbol"?t:t+""}function F8(e,t){if(_n(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(_n(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var z8={xAxis:["bottom","top"],yAxis:["left","right"]},W8={width:"100%",height:"100%"},Cg={x:0,y:0};function pa(e){return e}var U8=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},K8=function(t,r,n,i){var a=r.find(function(l){return l&&l.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,s=i.radius;return M(M(M({},i),de(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var u=a.coordinate,c=i.angle;return M(M(M({},i),de(i.cx,i.cy,u,c)),{},{angle:c,radius:u})}return Cg},hs=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(s,u){var c=u.props.data;return c&&c.length?[].concat($n(s),$n(c)):s},[]);return o.length>0?o:t&&t.length&&B(i)&&B(a)?t.slice(i,a+1):[]};function Ig(e){return e==="number"?[0,"auto"]:void 0}var Ac=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=hs(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(u,c){var l,f=(l=c.props.data)!==null&&l!==void 0?l:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var p;if(o.dataKey&&!o.allowDuplicatedCategory){var v=f===void 0?s:f;p=va(v,o.dataKey,i)}else p=f&&f[n]||s[n];return p?[].concat($n(u),[pm(c,p)]):u},[])},Ch=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=U8(a,n),s=t.orderedTooltipTicks,u=t.tooltipAxis,c=t.tooltipTicks,l=DC(o,s,c,u);if(l>=0&&c){var f=c[l]&&c[l].value,p=Ac(t,r,l,f),v=K8(n,s,l,a);return{activeTooltipIndex:l,activeLabel:f,activePayload:p,activeCoordinate:v}}return null},q8=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,u=r.dataStartIndex,c=r.dataEndIndex,l=t.layout,f=t.children,p=t.stackOffset,v=sm(l,a);return n.reduce(function(y,d){var h,g=d.type.defaultProps!==void 0?M(M({},d.type.defaultProps),d.props):d.props,x=g.type,b=g.dataKey,O=g.allowDataOverflow,m=g.allowDuplicatedCategory,w=g.scale,P=g.ticks,_=g.includeHidden,$=g[o];if(y[$])return y;var T=hs(t.data,{graphicalItems:i.filter(function(U){var Z,pe=o in U.props?U.props[o]:(Z=U.type.defaultProps)===null||Z===void 0?void 0:Z[o];return pe===$}),dataStartIndex:u,dataEndIndex:c}),j=T.length,E,k,C;m8(g.domain,O,x)&&(E=Cu(g.domain,null,O),v&&(x==="number"||w!=="auto")&&(C=ti(T,b,"category")));var N=Ig(x);if(!E||E.length===0){var I,R=(I=g.domain)!==null&&I!==void 0?I:N;if(b){if(E=ti(T,b,x),x==="category"&&v){var F=Sw(E);m&&F?(k=E,E=ro(0,j)):m||(E=Qd(R,E,d).reduce(function(U,Z){return U.indexOf(Z)>=0?U:[].concat($n(U),[Z])},[]))}else if(x==="category")m?E=E.filter(function(U){return U!==""&&!H(U)}):E=Qd(R,E,d).reduce(function(U,Z){return U.indexOf(Z)>=0||Z===""||H(Z)?U:[].concat($n(U),[Z])},[]);else if(x==="number"){var z=zC(T,i.filter(function(U){var Z,pe,we=o in U.props?U.props[o]:(Z=U.type.defaultProps)===null||Z===void 0?void 0:Z[o],He="hide"in U.props?U.props.hide:(pe=U.type.defaultProps)===null||pe===void 0?void 0:pe.hide;return we===$&&(_||!He)}),b,a,l);z&&(E=z)}v&&(x==="number"||w!=="auto")&&(C=ti(T,b,"category"))}else v?E=ro(0,j):s&&s[$]&&s[$].hasStack&&x==="number"?E=p==="expand"?[0,1]:dm(s[$].stackGroups,u,c):E=om(T,i.filter(function(U){var Z=o in U.props?U.props[o]:U.type.defaultProps[o],pe="hide"in U.props?U.props.hide:U.type.defaultProps.hide;return Z===$&&(_||!pe)}),x,l,!0);if(x==="number")E=xc(f,E,$,a,P),R&&(E=Cu(R,E,O));else if(x==="category"&&R){var G=R,Y=E.every(function(U){return G.indexOf(U)>=0});Y&&(E=G)}}return M(M({},y),{},X({},$,M(M({},g),{},{axisType:a,domain:E,categoricalDomain:C,duplicateDomain:k,originalDomain:(h=g.domain)!==null&&h!==void 0?h:N,isCategorical:v,layout:l})))},{})},G8=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,u=r.dataStartIndex,c=r.dataEndIndex,l=t.layout,f=t.children,p=hs(t.data,{graphicalItems:n,dataStartIndex:u,dataEndIndex:c}),v=p.length,y=sm(l,a),d=-1;return n.reduce(function(h,g){var x=g.type.defaultProps!==void 0?M(M({},g.type.defaultProps),g.props):g.props,b=x[o],O=Ig("number");if(!h[b]){d++;var m;return y?m=ro(0,v):s&&s[b]&&s[b].hasStack?(m=dm(s[b].stackGroups,u,c),m=xc(f,m,b,a)):(m=Cu(O,om(p,n.filter(function(w){var P,_,$=o in w.props?w.props[o]:(P=w.type.defaultProps)===null||P===void 0?void 0:P[o],T="hide"in w.props?w.props.hide:(_=w.type.defaultProps)===null||_===void 0?void 0:_.hide;return $===b&&!T}),"number",l),i.defaultProps.allowDataOverflow),m=xc(f,m,b,a)),M(M({},h),{},X({},b,M(M({axisType:a},i.defaultProps),{},{hide:!0,orientation:Je(z8,"".concat(a,".").concat(d%2),null),domain:m,originalDomain:O,isCategorical:y,layout:l})))}return h},{})},H8=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,u=r.dataStartIndex,c=r.dataEndIndex,l=t.children,f="".concat(i,"Id"),p=We(l,a),v={};return p&&p.length?v=q8(t,{axes:p,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:u,dataEndIndex:c}):o&&o.length&&(v=G8(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:u,dataEndIndex:c})),v},V8=function(t){var r=Vt(t),n=Nt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Gc(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Ua(r,n)}},Ih=function(t){var r=t.children,n=t.defaultShowTooltip,i=Ze(r,hn),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}},X8=function(t){return!t||!t.length?!1:t.some(function(r){var n=Ct(r&&r.type);return n&&n.indexOf("Bar")>=0})},Dh=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"}},Y8=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,u=s===void 0?{}:s,c=n.width,l=n.height,f=n.children,p=n.margin||{},v=Ze(f,hn),y=Ze(f,It),d=Object.keys(u).reduce(function(m,w){var P=u[w],_=P.orientation;return!P.mirror&&!P.hide?M(M({},m),{},X({},_,m[_]+P.width)):m},{left:p.left||0,right:p.right||0}),h=Object.keys(o).reduce(function(m,w){var P=o[w],_=P.orientation;return!P.mirror&&!P.hide?M(M({},m),{},X({},_,Je(m,"".concat(_))+P.height)):m},{top:p.top||0,bottom:p.bottom||0}),g=M(M({},h),d),x=g.bottom;v&&(g.bottom+=v.props.height||hn.defaultProps.height),y&&r&&(g=BC(g,i,n,r));var b=c-g.left-g.right,O=l-g.top-g.bottom;return M(M({brushBottom:x},g),{},{width:Math.max(b,0),height:Math.max(O,0)})},Z8=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},Zi=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,u=t.axisComponents,c=t.legendContent,l=t.formatAxisMap,f=t.defaultProps,p=function(g,x){var b=x.graphicalItems,O=x.stackGroups,m=x.offset,w=x.updateId,P=x.dataStartIndex,_=x.dataEndIndex,$=g.barSize,T=g.layout,j=g.barGap,E=g.barCategoryGap,k=g.maxBarSize,C=Dh(T),N=C.numericAxisName,I=C.cateAxisName,R=X8(b),F=[];return b.forEach(function(z,G){var Y=hs(g.data,{graphicalItems:[z],dataStartIndex:P,dataEndIndex:_}),U=z.type.defaultProps!==void 0?M(M({},z.type.defaultProps),z.props):z.props,Z=U.dataKey,pe=U.maxBarSize,we=U["".concat(N,"Id")],He=U["".concat(I,"Id")],ur={},Ue=u.reduce(function(cr,lr){var vs=x["".concat(lr.axisType,"Map")],Tl=U["".concat(lr.axisType,"Id")];vs&&vs[Tl]||lr.axisType==="zAxis"||Mr();var El=vs[Tl];return M(M({},cr),{},X(X({},lr.axisType,El),"".concat(lr.axisType,"Ticks"),Nt(El)))},ur),W=Ue[I],ee=Ue["".concat(I,"Ticks")],te=O&&O[we]&&O[we].hasStack&&YC(z,O[we].stackGroups),L=Ct(z.type).indexOf("Bar")>=0,be=Ua(W,ee),re=[],Pe=R&&RC({barSize:$,stackGroups:O,totalSize:Z8(Ue,I)});if(L){var Se,Ke,qt=H(pe)?k:pe,Lr=(Se=(Ke=Ua(W,ee,!0))!==null&&Ke!==void 0?Ke:qt)!==null&&Se!==void 0?Se:0;re=LC({barGap:j,barCategoryGap:E,bandSize:Lr!==be?Lr:be,sizeList:Pe[He],maxBarSize:qt}),Lr!==be&&(re=re.map(function(cr){return M(M({},cr),{},{position:M(M({},cr.position),{},{offset:cr.position.offset-Lr/2})})}))}var Qi=z&&z.type&&z.type.getComposedData;Qi&&F.push({props:M(M({},Qi(M(M({},Ue),{},{displayedData:Y,props:g,dataKey:Z,item:z,bandSize:be,barPosition:re,offset:m,stackedData:te,layout:T,dataStartIndex:P,dataEndIndex:_}))),{},X(X(X({key:z.key||"item-".concat(G)},N,Ue[N]),I,Ue[I]),"animationId",w)),childIndex:Lw(z,g.children),item:z})}),F},v=function(g,x){var b=g.props,O=g.dataStartIndex,m=g.dataEndIndex,w=g.updateId;if(!ql({props:b}))return null;var P=b.children,_=b.layout,$=b.stackOffset,T=b.data,j=b.reverseStackOrder,E=Dh(_),k=E.numericAxisName,C=E.cateAxisName,N=We(P,n),I=VC(T,N,"".concat(k,"Id"),"".concat(C,"Id"),$,j),R=u.reduce(function(U,Z){var pe="".concat(Z.axisType,"Map");return M(M({},U),{},X({},pe,H8(b,M(M({},Z),{},{graphicalItems:N,stackGroups:Z.axisType===k&&I,dataStartIndex:O,dataEndIndex:m}))))},{}),F=Y8(M(M({},R),{},{props:b,graphicalItems:N}),x==null?void 0:x.legendBBox);Object.keys(R).forEach(function(U){R[U]=l(b,R[U],F,U.replace("Map",""),r)});var z=R["".concat(C,"Map")],G=V8(z),Y=p(b,M(M({},R),{},{dataStartIndex:O,dataEndIndex:m,updateId:w,graphicalItems:N,stackGroups:I,offset:F}));return M(M({formattedGraphicalItems:Y,graphicalItems:N,offset:F,stackGroups:I},G),R)},y=function(h){function g(x){var b,O,m;return E8(this,g),m=N8(this,g,[x]),X(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),X(m,"accessibilityManager",new y8),X(m,"handleLegendBBoxUpdate",function(w){if(w){var P=m.state,_=P.dataStartIndex,$=P.dataEndIndex,T=P.updateId;m.setState(M({legendBBox:w},v({props:m.props,dataStartIndex:_,dataEndIndex:$,updateId:T},M(M({},m.state),{},{legendBBox:w}))))}}),X(m,"handleReceiveSyncEvent",function(w,P,_){if(m.props.syncId===w){if(_===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(P)}}),X(m,"handleBrushChange",function(w){var P=w.startIndex,_=w.endIndex;if(P!==m.state.dataStartIndex||_!==m.state.dataEndIndex){var $=m.state.updateId;m.setState(function(){return M({dataStartIndex:P,dataEndIndex:_},v({props:m.props,dataStartIndex:P,dataEndIndex:_,updateId:$},m.state))}),m.triggerSyncEvent({dataStartIndex:P,dataEndIndex:_})}}),X(m,"handleMouseEnter",function(w){var P=m.getMouseInfo(w);if(P){var _=M(M({},P),{},{isTooltipActive:!0});m.setState(_),m.triggerSyncEvent(_);var $=m.props.onMouseEnter;V($)&&$(_,w)}}),X(m,"triggeredAfterMouseMove",function(w){var P=m.getMouseInfo(w),_=P?M(M({},P),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(_),m.triggerSyncEvent(_);var $=m.props.onMouseMove;V($)&&$(_,w)}),X(m,"handleItemMouseEnter",function(w){m.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),X(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),X(m,"handleMouseMove",function(w){w.persist(),m.throttleTriggeredAfterMouseMove(w)}),X(m,"handleMouseLeave",function(w){m.throttleTriggeredAfterMouseMove.cancel();var P={isTooltipActive:!1};m.setState(P),m.triggerSyncEvent(P);var _=m.props.onMouseLeave;V(_)&&_(P,w)}),X(m,"handleOuterEvent",function(w){var P=Rw(w),_=Je(m.props,"".concat(P));if(P&&V(_)){var $,T;/.*touch.*/i.test(P)?T=m.getMouseInfo(w.changedTouches[0]):T=m.getMouseInfo(w),_(($=T)!==null&&$!==void 0?$:{},w)}}),X(m,"handleClick",function(w){var P=m.getMouseInfo(w);if(P){var _=M(M({},P),{},{isTooltipActive:!0});m.setState(_),m.triggerSyncEvent(_);var $=m.props.onClick;V($)&&$(_,w)}}),X(m,"handleMouseDown",function(w){var P=m.props.onMouseDown;if(V(P)){var _=m.getMouseInfo(w);P(_,w)}}),X(m,"handleMouseUp",function(w){var P=m.props.onMouseUp;if(V(P)){var _=m.getMouseInfo(w);P(_,w)}}),X(m,"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(w.changedTouches[0])}),X(m,"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&m.handleMouseDown(w.changedTouches[0])}),X(m,"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&m.handleMouseUp(w.changedTouches[0])}),X(m,"handleDoubleClick",function(w){var P=m.props.onDoubleClick;if(V(P)){var _=m.getMouseInfo(w);P(_,w)}}),X(m,"handleContextMenu",function(w){var P=m.props.onContextMenu;if(V(P)){var _=m.getMouseInfo(w);P(_,w)}}),X(m,"triggerSyncEvent",function(w){m.props.syncId!==void 0&&Ws.emit(Us,m.props.syncId,w,m.eventEmitterSymbol)}),X(m,"applySyncEvent",function(w){var P=m.props,_=P.layout,$=P.syncMethod,T=m.state.updateId,j=w.dataStartIndex,E=w.dataEndIndex;if(w.dataStartIndex!==void 0||w.dataEndIndex!==void 0)m.setState(M({dataStartIndex:j,dataEndIndex:E},v({props:m.props,dataStartIndex:j,dataEndIndex:E,updateId:T},m.state)));else if(w.activeTooltipIndex!==void 0){var k=w.chartX,C=w.chartY,N=w.activeTooltipIndex,I=m.state,R=I.offset,F=I.tooltipTicks;if(!R)return;if(typeof $=="function")N=$(F,w);else if($==="value"){N=-1;for(var z=0;z<F.length;z++)if(F[z].value===w.activeLabel){N=z;break}}var G=M(M({},R),{},{x:R.left,y:R.top}),Y=Math.min(k,G.x+G.width),U=Math.min(C,G.y+G.height),Z=F[N]&&F[N].value,pe=Ac(m.state,m.props.data,N),we=F[N]?{x:_==="horizontal"?F[N].coordinate:Y,y:_==="horizontal"?U:F[N].coordinate}:Cg;m.setState(M(M({},w),{},{activeLabel:Z,activeCoordinate:we,activePayload:pe,activeTooltipIndex:N}))}else m.setState(w)}),X(m,"renderCursor",function(w){var P,_=m.state,$=_.isTooltipActive,T=_.activeCoordinate,j=_.activePayload,E=_.offset,k=_.activeTooltipIndex,C=_.tooltipAxisBandSize,N=m.getTooltipEventType(),I=(P=w.props.active)!==null&&P!==void 0?P:$,R=m.props.layout,F=w.key||"_recharts-cursor";return S.createElement(A8,{key:F,activeCoordinate:T,activePayload:j,activeTooltipIndex:k,chartName:r,element:w,isActive:I,layout:R,offset:E,tooltipAxisBandSize:C,tooltipEventType:N})}),X(m,"renderPolarAxis",function(w,P,_){var $=Je(w,"type.axisType"),T=Je(m.state,"".concat($,"Map")),j=w.type.defaultProps,E=j!==void 0?M(M({},j),w.props):w.props,k=T&&T[E["".concat($,"Id")]];return D.cloneElement(w,M(M({},k),{},{className:Q($,k.className),key:w.key||"".concat(P,"-").concat(_),ticks:Nt(k,!0)}))}),X(m,"renderPolarGrid",function(w){var P=w.props,_=P.radialLines,$=P.polarAngles,T=P.polarRadius,j=m.state,E=j.radiusAxisMap,k=j.angleAxisMap,C=Vt(E),N=Vt(k),I=N.cx,R=N.cy,F=N.innerRadius,z=N.outerRadius;return D.cloneElement(w,{polarAngles:Array.isArray($)?$:Nt(N,!0).map(function(G){return G.coordinate}),polarRadius:Array.isArray(T)?T:Nt(C,!0).map(function(G){return G.coordinate}),cx:I,cy:R,innerRadius:F,outerRadius:z,key:w.key||"polar-grid",radialLines:_})}),X(m,"renderLegend",function(){var w=m.state.formattedGraphicalItems,P=m.props,_=P.children,$=P.width,T=P.height,j=m.props.margin||{},E=$-(j.left||0)-(j.right||0),k=im({children:_,formattedGraphicalItems:w,legendWidth:E,legendContent:c});if(!k)return null;var C=k.item,N=Mh(k,P8);return D.cloneElement(C,M(M({},N),{},{chartWidth:$,chartHeight:T,margin:j,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),X(m,"renderTooltip",function(){var w,P=m.props,_=P.children,$=P.accessibilityLayer,T=Ze(_,De);if(!T)return null;var j=m.state,E=j.isTooltipActive,k=j.activeCoordinate,C=j.activePayload,N=j.activeLabel,I=j.offset,R=(w=T.props.active)!==null&&w!==void 0?w:E;return D.cloneElement(T,{viewBox:M(M({},I),{},{x:I.left,y:I.top}),active:R,label:N,payload:R?C:[],coordinate:k,accessibilityLayer:$})}),X(m,"renderBrush",function(w){var P=m.props,_=P.margin,$=P.data,T=m.state,j=T.offset,E=T.dataStartIndex,k=T.dataEndIndex,C=T.updateId;return D.cloneElement(w,{key:w.key||"_recharts-brush",onChange:ua(m.handleBrushChange,w.props.onChange),data:$,x:B(w.props.x)?w.props.x:j.left,y:B(w.props.y)?w.props.y:j.top+j.height+j.brushBottom-(_.bottom||0),width:B(w.props.width)?w.props.width:j.width,startIndex:E,endIndex:k,updateId:"brush-".concat(C)})}),X(m,"renderReferenceElement",function(w,P,_){if(!w)return null;var $=m,T=$.clipPathId,j=m.state,E=j.xAxisMap,k=j.yAxisMap,C=j.offset,N=w.type.defaultProps||{},I=w.props,R=I.xAxisId,F=R===void 0?N.xAxisId:R,z=I.yAxisId,G=z===void 0?N.yAxisId:z;return D.cloneElement(w,{key:w.key||"".concat(P,"-").concat(_),xAxis:E[F],yAxis:k[G],viewBox:{x:C.left,y:C.top,width:C.width,height:C.height},clipPathId:T})}),X(m,"renderActivePoints",function(w){var P=w.item,_=w.activePoint,$=w.basePoint,T=w.childIndex,j=w.isRange,E=[],k=P.props.key,C=P.item.type.defaultProps!==void 0?M(M({},P.item.type.defaultProps),P.item.props):P.item.props,N=C.activeDot,I=C.dataKey,R=M(M({index:T,dataKey:I,cx:_.x,cy:_.y,r:4,fill:gl(P.item),strokeWidth:2,stroke:"#fff",payload:_.payload,value:_.value},q(N,!1)),ya(N));return E.push(g.renderActiveDot(N,R,"".concat(k,"-activePoint-").concat(T))),$?E.push(g.renderActiveDot(N,M(M({},R),{},{cx:$.x,cy:$.y}),"".concat(k,"-basePoint-").concat(T))):j&&E.push(null),E}),X(m,"renderGraphicChild",function(w,P,_){var $=m.filterFormatItem(w,P,_);if(!$)return null;var T=m.getTooltipEventType(),j=m.state,E=j.isTooltipActive,k=j.tooltipAxis,C=j.activeTooltipIndex,N=j.activeLabel,I=m.props.children,R=Ze(I,De),F=$.props,z=F.points,G=F.isRange,Y=F.baseLine,U=$.item.type.defaultProps!==void 0?M(M({},$.item.type.defaultProps),$.item.props):$.item.props,Z=U.activeDot,pe=U.hide,we=U.activeBar,He=U.activeShape,ur=!!(!pe&&E&&R&&(Z||we||He)),Ue={};T!=="axis"&&R&&R.props.trigger==="click"?Ue={onClick:ua(m.handleItemMouseEnter,w.props.onClick)}:T!=="axis"&&(Ue={onMouseLeave:ua(m.handleItemMouseLeave,w.props.onMouseLeave),onMouseEnter:ua(m.handleItemMouseEnter,w.props.onMouseEnter)});var W=D.cloneElement(w,M(M({},$.props),Ue));function ee(lr){return typeof k.dataKey=="function"?k.dataKey(lr.payload):null}if(ur)if(C>=0){var te,L;if(k.dataKey&&!k.allowDuplicatedCategory){var be=typeof k.dataKey=="function"?ee:"payload.".concat(k.dataKey.toString());te=va(z,be,N),L=G&&Y&&va(Y,be,N)}else te=z==null?void 0:z[C],L=G&&Y&&Y[C];if(He||we){var re=w.props.activeIndex!==void 0?w.props.activeIndex:C;return[D.cloneElement(w,M(M(M({},$.props),Ue),{},{activeIndex:re})),null,null]}if(!H(te))return[W].concat($n(m.renderActivePoints({item:$,activePoint:te,basePoint:L,childIndex:C,isRange:G})))}else{var Pe,Se=(Pe=m.getItemByXY(m.state.activeCoordinate))!==null&&Pe!==void 0?Pe:{graphicalItem:W},Ke=Se.graphicalItem,qt=Ke.item,Lr=qt===void 0?w:qt,Qi=Ke.childIndex,cr=M(M(M({},$.props),Ue),{},{activeIndex:Qi});return[D.cloneElement(Lr,cr),null,null]}return G?[W,null,null]:[W,null]}),X(m,"renderCustomized",function(w,P,_){return D.cloneElement(w,M(M({key:"recharts-customized-".concat(_)},m.props),m.state))}),X(m,"renderMap",{CartesianGrid:{handler:pa,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:pa},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:pa},YAxis:{handler:pa},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((b=x.id)!==null&&b!==void 0?b:ir("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=ny(m.triggeredAfterMouseMove,(O=x.throttleDelay)!==null&&O!==void 0?O:1e3/60),m.state={},m}return D8(g,h),M8(g,[{key:"componentDidMount",value:function(){var b,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b: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 b=this.props,O=b.children,m=b.data,w=b.height,P=b.layout,_=Ze(O,De);if(_){var $=_.props.defaultIndex;if(!(typeof $!="number"||$<0||$>this.state.tooltipTicks.length-1)){var T=this.state.tooltipTicks[$]&&this.state.tooltipTicks[$].value,j=Ac(this.state,m,$,T),E=this.state.tooltipTicks[$].coordinate,k=(this.state.offset.top+w)/2,C=P==="horizontal",N=C?{x:E,y:k}:{y:E,x:k},I=this.state.formattedGraphicalItems.find(function(F){var z=F.item;return z.type.name==="Scatter"});I&&(N=M(M({},N),I.props.points[$].tooltipPosition),j=I.props.points[$].tooltipPayload);var R={activeTooltipIndex:$,isTooltipActive:!0,activeLabel:T,activePayload:j,activeCoordinate:N};this.setState(R),this.renderCursor(_),this.accessibilityManager.setIndex($)}}}},{key:"getSnapshotBeforeUpdate",value:function(b,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==b.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==b.margin){var m,w;this.accessibilityManager.setDetails({offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0}})}return null}},{key:"componentDidUpdate",value:function(b){Xs([Ze(b.children,De)],[Ze(this.props.children,De)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=Ze(this.props.children,De);if(b&&typeof b.props.shared=="boolean"){var O=b.props.shared?"axis":"item";return s.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(b){if(!this.container)return null;var O=this.container,m=O.getBoundingClientRect(),w=l2(m),P={chartX:Math.round(b.pageX-w.left),chartY:Math.round(b.pageY-w.top)},_=m.width/O.offsetWidth||1,$=this.inRange(P.chartX,P.chartY,_);if(!$)return null;var T=this.state,j=T.xAxisMap,E=T.yAxisMap,k=this.getTooltipEventType(),C=Ch(this.state,this.props.data,this.props.layout,$);if(k!=="axis"&&j&&E){var N=Vt(j).scale,I=Vt(E).scale,R=N&&N.invert?N.invert(P.chartX):null,F=I&&I.invert?I.invert(P.chartY):null;return M(M({},P),{},{xValue:R,yValue:F},C)}return C?M(M({},P),C):null}},{key:"inRange",value:function(b,O){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,P=b/m,_=O/m;if(w==="horizontal"||w==="vertical"){var $=this.state.offset,T=P>=$.left&&P<=$.left+$.width&&_>=$.top&&_<=$.top+$.height;return T?{x:P,y:_}:null}var j=this.state,E=j.angleAxisMap,k=j.radiusAxisMap;if(E&&k){var C=Vt(E);return tp({x:P,y:_},C)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,O=this.getTooltipEventType(),m=Ze(b,De),w={};m&&O==="axis"&&(m.props.trigger==="click"?w={onClick:this.handleClick}:w={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var P=ya(this.props,this.handleOuterEvent);return M(M({},P),w)}},{key:"addListener",value:function(){Ws.on(Us,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Ws.removeListener(Us,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,O,m){for(var w=this.state.formattedGraphicalItems,P=0,_=w.length;P<_;P++){var $=w[P];if($.item===b||$.props.key===b.key||O===Ct($.item.type)&&m===$.childIndex)return $}return null}},{key:"renderClipPath",value:function(){var b=this.clipPathId,O=this.state.offset,m=O.left,w=O.top,P=O.height,_=O.width;return S.createElement("defs",null,S.createElement("clipPath",{id:b},S.createElement("rect",{x:m,y:w,height:P,width:_})))}},{key:"getXScales",value:function(){var b=this.state.xAxisMap;return b?Object.entries(b).reduce(function(O,m){var w=kh(m,2),P=w[0],_=w[1];return M(M({},O),{},X({},P,_.scale))},{}):null}},{key:"getYScales",value:function(){var b=this.state.yAxisMap;return b?Object.entries(b).reduce(function(O,m){var w=kh(m,2),P=w[0],_=w[1];return M(M({},O),{},X({},P,_.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(b){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[b])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(b){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[b])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(b){var O=this.state,m=O.formattedGraphicalItems,w=O.activeItem;if(m&&m.length)for(var P=0,_=m.length;P<_;P++){var $=m[P],T=$.props,j=$.item,E=j.type.defaultProps!==void 0?M(M({},j.type.defaultProps),j.props):j.props,k=Ct(j.type);if(k==="Bar"){var C=(T.data||[]).find(function(F){return GR(b,F)});if(C)return{graphicalItem:$,payload:C}}else if(k==="RadialBar"){var N=(T.data||[]).find(function(F){return tp(b,F)});if(N)return{graphicalItem:$,payload:N}}else if(is($,w)||as($,w)||Di($,w)){var I=CB({graphicalItem:$,activeTooltipItem:w,itemData:E.data}),R=E.activeIndex===void 0?I:E.activeIndex;return{graphicalItem:M(M({},$),{},{childIndex:R}),payload:Di($,w)?E.data[I]:$.props.data[I]}}}return null}},{key:"render",value:function(){var b=this;if(!ql(this))return null;var O=this.props,m=O.children,w=O.className,P=O.width,_=O.height,$=O.style,T=O.compact,j=O.title,E=O.desc,k=Mh(O,S8),C=q(k,!1);if(T)return S.createElement(ch,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},S.createElement(Zs,Hr({},C,{width:P,height:_,title:j,desc:E}),this.renderClipPath(),Hl(m,this.renderMap)));if(this.props.accessibilityLayer){var N,I;C.tabIndex=(N=this.props.tabIndex)!==null&&N!==void 0?N:0,C.role=(I=this.props.role)!==null&&I!==void 0?I:"application",C.onKeyDown=function(F){b.accessibilityManager.keyboardEvent(F)},C.onFocus=function(){b.accessibilityManager.focus()}}var R=this.parseEventsOfWrapper();return S.createElement(ch,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},S.createElement("div",Hr({className:Q("recharts-wrapper",w),style:M({position:"relative",cursor:"default",width:P,height:_},$)},R,{ref:function(z){b.container=z}}),S.createElement(Zs,Hr({},C,{width:P,height:_,title:j,desc:E,style:W8}),this.renderClipPath(),Hl(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(D.Component);X(y,"displayName",r),X(y,"defaultProps",M({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),X(y,"getDerivedStateFromProps",function(h,g){var x=h.dataKey,b=h.data,O=h.children,m=h.width,w=h.height,P=h.layout,_=h.stackOffset,$=h.margin,T=g.dataStartIndex,j=g.dataEndIndex;if(g.updateId===void 0){var E=Ih(h);return M(M(M({},E),{},{updateId:0},v(M(M({props:h},E),{},{updateId:0}),g)),{},{prevDataKey:x,prevData:b,prevWidth:m,prevHeight:w,prevLayout:P,prevStackOffset:_,prevMargin:$,prevChildren:O})}if(x!==g.prevDataKey||b!==g.prevData||m!==g.prevWidth||w!==g.prevHeight||P!==g.prevLayout||_!==g.prevStackOffset||!Xr($,g.prevMargin)){var k=Ih(h),C={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},N=M(M({},Ch(g,b,P)),{},{updateId:g.updateId+1}),I=M(M(M({},k),C),N);return M(M(M({},I),v(M({props:h},I),g)),{},{prevDataKey:x,prevData:b,prevWidth:m,prevHeight:w,prevLayout:P,prevStackOffset:_,prevMargin:$,prevChildren:O})}if(!Xs(O,g.prevChildren)){var R,F,z,G,Y=Ze(O,hn),U=Y&&(R=(F=Y.props)===null||F===void 0?void 0:F.startIndex)!==null&&R!==void 0?R:T,Z=Y&&(z=(G=Y.props)===null||G===void 0?void 0:G.endIndex)!==null&&z!==void 0?z:j,pe=U!==T||Z!==j,we=!H(b),He=we&&!pe?g.updateId:g.updateId+1;return M(M({updateId:He},v(M(M({props:h},g),{},{updateId:He,dataStartIndex:U,dataEndIndex:Z}),g)),{},{prevChildren:O,dataStartIndex:U,dataEndIndex:Z})}return null}),X(y,"renderActiveDot",function(h,g,x){var b;return D.isValidElement(h)?b=D.cloneElement(h,g):V(h)?b=h(g):b=S.createElement(Yi,g),S.createElement(J,{className:"recharts-active-dot",key:x},b)});
93var d=D.forwardRef(function(g,x){return S.createElement(y,Hr({},g,{ref:x}))});return d.displayName=y.displayName,d},Q8=Zi({chartName:"LineChart",GraphicalChild:er,axisComponents:[{axisType:"xAxis",AxisComp:it},{axisType:"yAxis",AxisComp:at}],formatAxisMap:ss}),qs=Zi({chartName:"BarChart",GraphicalChild:Ie,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:it},{axisType:"yAxis",AxisComp:at}],formatAxisMap:ss}),J8=Zi({chartName:"PieChart",GraphicalChild:Ut,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:ns},{axisType:"radiusAxis",AxisComp:ts}],formatAxisMap:oI,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),eF=Zi({chartName:"AreaChart",GraphicalChild:Kt,axisComponents:[{axisType:"xAxis",AxisComp:it},{axisType:"yAxis",AxisComp:at}],formatAxisMap:ss}),Rh=Zi({chartName:"ComposedChart",GraphicalChild:[er,Kt,Ie,ps],axisComponents:[{axisType:"xAxis",AxisComp:it},{axisType:"yAxis",AxisComp:at},{axisType:"zAxis",AxisComp:ds}],formatAxisMap:ss});const Le=["Q3 '26","Q4 '26","Q1 '27","Q2 '27","Q3 '27","Q4 '27"],Xe=[{key:"savings",name:"Savings",icon:zh,color:"#a855f7",revenue:[864500,1292760,165901554e-2,186877152e-2,2076941341e-3,2479536311e-3],gp:[58240,245133,494622.765,591777.648,681308.7926,956500.519],gpMargin:[.0674,.1896,.2981,.3167,.328,.3858]},{key:"checking",name:"Checking",icon:Wg,color:"#ec4899",revenue:[0,210320,403e3,674240,1004650,1073490],gp:[0,2720,72280,209440,378315,429680],gpMargin:[0,.0129,.1794,.3106,.3766,.4003]},{key:"cds",name:"CDs",icon:Ug,color:"#f59e0b",revenue:[0,0,276720,351780,433860,573200],gp:[0,0,-37430,1542,43457,103618],gpMargin:[0,0,-.1353,.0044,.1002,.1808]},{key:"biz",name:"Biz Checking",icon:Fg,color:"#10b981",revenue:[0,228690,470085,517978.7733,574823.7867,617452.4],gp:[-17022.6,16814,81965,109810.7733,137540.7867,160280.4],gpMargin:[0,.0735,.1744,.212,.2393,.2596]},{key:"heloc",name:"HELOC",icon:zg,color:"#3b82f6",revenue:[227955.5556,366025.6364,628148.235,964982.5074,1306261141e-3,1697192216e-3],gp:[70330.5556,141875.6364,324297.735,583550.0574,864001.8859,1212339063e-3],gpMargin:[.3085,.3876,.5163,.6047,.6614,.7143]}],wt={google:[-719.44,250755.64,660818.34,108055138e-2,1507307,203096579e-2],z2a:[113177.4,132882,188404.245,230161.974,302504.7234,358325.2586],social:[-910,22905,86512.92,185407.124,294811.7392,473126.94]},Lh=[18e4,16e4,12e4,1e5,5e4,0],Bh=[33e4,35e4,36e4,37e4,38e4,4e5],Gs=[-38452.04,216542.64,695735.5,122612048e-2,177462347e-2,246241798e-2],ne=e=>{const t=Math.abs(e),r=e<0?"-":"";return t>=1e6?`${r}$${(t/1e6).toFixed(2)}M`:t>=1e3?`${r}$${(t/1e3).toFixed(1)}K`:`${r}$${t.toFixed(0)}`},vt=e=>`${(e*100).toFixed(1)}%`,wr=Le.map((e,t)=>Xe.reduce((r,n)=>r+n.revenue[t],0)),Vr=Le.map((e,t)=>Xe.reduce((r,n)=>r+n.gp[t],0)),tF=wr.reduce((e,t)=>e+t,0);Vr.reduce((e,t)=>e+t,0);const Fh=Vr[5]/wr[5],vr=({active:e,payload:t,label:r,formatter:n})=>!e||!(t!=null&&t.length)?null:A.jsxs("div",{className:"rounded-xl border border-magic-purple/40 bg-background/95 px-4 py-3 shadow-[0_10px_40px_-10px_rgba(168,85,247,0.5)] backdrop-blur",children:[A.jsx("p",{className:"mb-2 font-display text-sm font-bold text-foreground",children:r}),A.jsx("div",{className:"space-y-1",children:t.map(i=>A.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[A.jsx("span",{className:"h-2 w-2 rounded-full",style:{background:i.color||i.fill}}),A.jsxs("span",{className:"text-muted-foreground",children:[i.name,":"]}),A.jsx("span",{className:"font-semibold text-foreground",children:n?n(i.value):ne(i.value)})]},i.dataKey))})]}),rF=e=>{const{x:t,y:r,width:n,height:i,value:a}=e;if(a==null||isNaN(a)||a===0)return null;if(a<0){const s=r+i;return A.jsxs("g",{children:[A.jsx("circle",{cx:t+n/2,cy:s+12,r:"8",fill:"#ef4444",className:"animate-ping",style:{transformOrigin:`${t+n/2}px ${s+12}px`}}),A.jsx("circle",{cx:t+n/2,cy:s+12,r:"4",fill:"#ef4444"}),A.jsx("rect",{x:t+n/2-65,y:s+24,width:"130",height:"32",rx:"8",fill:"#110d14",stroke:"#ef4444",strokeWidth:"2",className:"shadow-[0_0_20px_rgba(239,68,68,0.4)]"}),A.jsx("text",{x:t+n/2,y:s+44,fill:"#ff4d4d",textAnchor:"middle",fontSize:"15",fontWeight:"900",className:"font-mono",children:ne(a)}),A.jsx("text",{x:t+n/2,y:s+70,fill:"#ef4444",textAnchor:"middle",fontSize:"9",fontWeight:"900",letterSpacing:"0.05em",className:"animate-pulse",children:"INITIAL DEFICIT"})]})}return A.jsx("text",{x:t+n/2,y:r-8,fill:"hsl(var(--foreground))",textAnchor:"middle",fontSize:"11",fontWeight:"700",className:"font-mono",children:ne(a)})},aF=()=>{const[e,t]=D.useState("all"),[r,n]=D.useState("gp"),[i,a]=D.useState(5),[o,s]=D.useState("all"),[u,c]=D.useState("all"),l=D.useMemo(()=>{const d=Xe.find(O=>O.key===o),h=d?d.revenue:wr,g=d?d.gp:Vr,x=h.reduce((O,m)=>O+m,0),b=g.reduce((O,m)=>O+m,0);return{rev:h,gp:g,totalRev:x,totalGP:b,label:(d==null?void 0:d.name)??"All verticals",color:d==null?void 0:d.color}},[o]);D.useEffect(()=>{document.title="Business Plan — Spread The Magic (Confidential)";const d=(h,g)=>{let x=document.head.querySelector(`meta[name="${h}"]`);x||(x=document.createElement("meta"),x.setAttribute("name",h),document.head.appendChild(x)),x.setAttribute("content",g)};return d("robots","noindex, nofollow, noarchive, nosnippet"),d("googlebot","noindex, nofollow"),d("description","Confidential STM business plan — Q3 2026 to Q4 2027."),()=>{const h=document.head.querySelector('meta[name="robots"]');h&&h.setAttribute("content","index, follow")}},[]);const f=D.useMemo(()=>Le.map((d,h)=>{const g={quarter:d};let x=0;if(e==="all")Xe.forEach(b=>{const O=r==="revenue"?b.revenue[h]:r==="gp"?b.gp[h]:b.gpMargin[h]*100;g[b.name]=O,x+=O});else{const b=Xe.find(m=>m.key===e),O=r==="revenue"?b.revenue[h]:r==="gp"?b.gp[h]:b.gpMargin[h]*100;g[b.name]=O,x=O}return g._total=x,g}),[e,r]),p=Le.map((d,h)=>({quarter:d,"Google Ads":wt.google[h],"Z2A Network":wt.z2a[h],Social:wt.social[h]})),v=e==="all"?Xe:Xe.filter(d=>d.key===e),y=Xe.map(d=>({name:d.name,value:d.revenue[i],color:d.color})).filter(d=>d.value>0);return A.jsxs("div",{className:"relative min-h-screen bg-background overflow-x-hidden",children:[A.jsx("div",{"aria-hidden":!0,
93className:"pointer-events-none fixed -top-40 left-1/2 -z-10 h-[600px] w-[600px] -translate-x-1/2 rounded-full bg-magic-purple/15 blur-[120px]"}),A.jsx("div",{"aria-hidden":!0,className:"pointer-events-none fixed top-1/3 right-0 -z-10 h-[400px] w-[400px] rounded-full bg-magic-pink/10 blur-[100px]"}),A.jsx(Dg,{}),A.jsxs("main",{className:"container mx-auto px-4 pb-24 pt-12 md:px-8",children:[A.jsx("div",{className:"mb-6 flex justify-center",children:A.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full border border-magic-purple/40 bg-card/60 px-4 py-1.5 text-xs font-bold uppercase tracking-[0.25em] text-magic-pink backdrop-blur",children:[A.jsx(kl,{className:"h-3.5 w-3.5"}),"Confidential · Invite Only"]})}),A.jsxs("header",{className:"mx-auto mb-16 max-w-4xl text-center",children:[A.jsx("p",{className:"mb-3 text-xs font-bold uppercase tracking-[0.4em] text-muted-foreground",children:"Business Plan · Q3 2026 — Q4 2027"}),A.jsxs("h1",{className:"font-display text-4xl font-black leading-[1.05] md:text-6xl",children:["The next 18 months of"," ",A.jsx("span",{className:"text-gradient-magic",children:"spreading the magic"})]}),A.jsxs("p",{className:"mx-auto mt-5 max-w-2xl text-base text-muted-foreground md:text-lg",children:["Five verticals. Three channels. One AI-native engine compounding into a"," ",A.jsx("span",{className:"font-semibold text-foreground",children:ne(tF)})," ","revenue plan with"," ",A.jsx("span",{className:"font-semibold text-magic-pink",children:vt(Fh)})," ","peak gross margin."]})]}),A.jsx("section",{className:"mb-12 grid gap-4 md:grid-cols-4",children:[{label:"Annual Rev Run Rate",value:ne(wr[5]*4),sub:"Based on Q4 '27 exit plan",Icon:Kg,gradient:"from-magic-purple to-magic-pink",highlight:!1,colorClass:"text-foreground"},{label:"Exit Avg Monthly GP",value:ne(Vr[5]/3),sub:"Q4 '27 monthly average (Goal)",Icon:Rg,gradient:"from-magic-purple to-magic-pink",highlight:!0,colorClass:""},{label:"Needed Investment",value:"$40K",sub:"To cover initial Q3 '26 EBITDA deficit",Icon:zh,gradient:"from-red-500/20 to-red-600/10",highlight:!1,colorClass:"text-red-500 drop-shadow-[0_2px_10px_rgba(239,68,68,0.3)] animate-pulse"},{label:"Active Verticals",value:"5",sub:"Savings · Checking · CDs · Biz · HELOC",Icon:ys,gradient:"from-magic-purple to-magic-pink",highlight:!1,colorClass:"text-foreground"}].map(({label:d,value:h,sub:g,Icon:x,gradient:b,highlight:O,colorClass:m})=>A.jsxs("div",{className:`group relative overflow-hidden rounded-2xl border p-5 backdrop-blur transition-all duration-300 hover:-translate-y-1 ${O?"border-magic-purple bg-card/60 shadow-[0_0_30px_rgba(168,85,247,0.25)] hover:shadow-[0_0_40px_rgba(168,85,247,0.4)]":d==="Needed Investment"?"border-red-500/30 bg-card/40 hover:border-red-500/60":"border-border bg-card/40 hover:border-magic-purple/60"}`,style:O?{animation:"pulse 5s cubic-bezier(0.4, 0, 0.6, 1) infinite"}:void 0,children:[A.jsx("div",{"aria-hidden":!0,className:`absolute -right-10 -top-10 h-32 w-32 rounded-full bg-gradient-to-br ${b} opacity-10 blur-2xl transition-opacity group-hover:opacity-25`}),A.jsxs("div",{className:"relative flex items-start justify-between",children:[A.jsx("span",{className:"text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:d}),A.jsx(x,{className:`h-4 w-4 ${O?"text-magic-pink animate-spin":d==="Needed Investment"?"text-red-400":"text-magic-pink"}`,style:O?{animationDuration:"6s"}:void 0})]}),A.jsx("p",{className:`relative mt-3 font-display text-4xl font-black tracking-tight ${O?"text-transparent bg-clip-text bg-gradient-to-r from-magic-purple via-magic-pink to-magic-orange drop-shadow-[0_2px_10px_rgba(236,72,153,0.3)]":m||"text-foreground"}`,style:O?{animation:"pulse 5s cubic-bezier(0.4, 0, 0.6, 1) infinite"}:d==="Needed Investment"?{animation:"pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite"}:void 0,children:h}),A.jsx("p",{className:"relative mt-1 text-xs text-muted-foreground",children:g})]},d))}),A.jsxs("section",{className:"mb-16 rounded-3xl border border-border bg-card/30 p-6 backdrop-blur md:p-8",children:[A.jsxs("div",{className:"mb-6 flex flex-col gap-4 md:flex-row md:items-end md:justify-between",children:[A.jsxs("div",{children:[A.jsx("h2",{className:"font-display text-2xl font-black md:text-3xl",children:"Interactive Forecast"}),A.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Filter by vertical and metric — every chart reacts live."})]}),A.jsx("div",{className:"flex rounded-full bg-background/60 p-1.5 border border-border/80 shadow-[0_4px_20px_-4px_rgba(168,85,247,0.2)]",children:[["revenue","Revenue"],["gp","Gross Profit"],["margin","GP Margin %"]].map(([d,h])=>A.jsx("button",{onClick:()=>n(d),className:`rounded-full px-6 py-2.5 text-xs md:text-sm font-black uppercase tracking-wider transition-all duration-300 ${r===d?"bg-gradient-cta text-white shadow-[0_4px_15px_-3px_rgba(168,85,247,0.5)] scale-105":"text-muted-foreground hover:text-foreground hover:bg-card/40"}`,children:h},d))})]}),A.jsxs("div",{className:"mb-6 flex flex-wrap gap-2",children:[A.jsxs("button",{onClick:()=>t("all"),className:`inline-flex items-center gap-2 rounded-full px-4 py-2 text-xs font-bold transition-smooth ${e==="all"?"bg-foreground text-background":"border border-border bg-card/60 text-muted-foreground hover:text-foreground"}`,children:[A.jsx(ys,{className:"h-3.5 w-3.5"}),"All verticals"]}),Xe.map(d=>{const h=d.icon,g=e===d.key;return A.jsxs("button",{onClick:()=>t(d.key),className:`inline-flex items-center gap-2 rounded-full border px-4 py-2 text-xs font-bold transition-smooth ${g?"border-transparent text-white":"border-border bg-card/60 text-muted-foreground hover:text-foreground"}`,style:g?{background:`linear-gradient(135deg, ${d.color}, ${d.color}cc)`,boxShadow:`0 8px 24px -8px ${d.color}80`}:void 0,children:[A.jsx(h,{className:"h-3.5 w-3.5"}),d.name]},d.key)})]}),A.jsx("div",{className:"h-[400px] w-full",children:A.jsx(fr,{width:"100%",height:"100%",children:r==="margin"?A.jsxs(Q8,{data:f,children:[A.jsx(br,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),A.jsx(it,{dataKey:"quarter",stroke:"hsl(var(--muted-foreground))",fontSize:12}),A.jsx(at,{stroke:"hsl(var(--muted-foreground))",fontSize:12,tickFormatter:d=>`${d.toFixed(0)}%`}),A.jsx(De,{content:A.jsx(vr,{formatter:d=>`${d.toFixed(1)}%`})}),A.jsx(It,{iconSize:14,iconType:"square",wrapperStyle:{paddingTop:"24px"},formatter:d=>A.jsx("span",{className:"text-foreground font-black text-sm md:text-base tracking-wide hover:text-magic-pink transition-colors",children:d})}),v.map(d=>A.jsx(er,{type:"monotone",dataKey:d.name,stroke:d.color,strokeWidth:3,dot:{r:4,fill:d.color},activeDot:{r:6}},d.key))]}):A.jsxs(qs,{data:f,margin:{top:30,right:12,left:0,bottom:24},children:[A.jsx(br,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),A.jsx(it,{dataKey:"quarter",stroke:"hsl(var(--muted-foreground))",fontSize:12}),A.jsx(at,{stroke:"hsl(var(--muted-foreground))",fontSize:12,tickFormatter:d=>ne(d)}),A.jsx(De,{content:A.jsx(vr,{}),cursor:{fill:"hsl(var(--magic-purple) / 0.08)"}}),A.jsx(It,{iconSize:14,iconType:"square",wrapperStyle:{paddingTop:"24px"},formatter:d=>A.jsx("span",{className:"text-foreground font-black text-sm md:text-base tracking-wide hover:text-magic-pink transition-colors",children:d})}),v.map((d,h)=>A.jsx(Ie,{dataKey:d.name,stackId:"m",fill:d.color,radius:h===v.length-1?[6,6,0,0]:0,children:h===v.length-1&&A.jsx(ct,{dataKey:"_total",content:A.jsx(rF,{})})},d.key))]})})})]}),A.jsxs("section",{className:"mb-16 rounded-3xl border border-border bg-card/30 p-6 backdrop-blur md:p-8",children:[A.jsxs("div",{className:"mb-6 flex flex-col gap-2 md:flex-row md:items-end md:justify-between",children:[A.jsxs("div",{children:[A.jsx("h2",{className:"font-display text-2xl font-black md:text-3xl",children:"Path to EBITDA"}),A.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Gross Profit minus Widgets CPC and OPEX — breakeven in Q4 '26, then compounding."})]}),A.jsxs("div",{className:"flex flex-wrap gap-4 text-xs font-bold uppercase tracking-wider text-muted-foreground",children:[A.jsxs("span",{className:"inline-flex items-center gap-2",children:[A.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-magic-purple"}),"Gross Profit"]}),A.jsxs("span",{className:"inline-flex items-center gap-2",children:[A.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-amber-500"}),"Widgets CPC"]}),A.jsxs("span",{className:"inline-flex items-center gap-2",children:[A.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-red-500"}),"OPEX"]}),A.jsxs("span",{className:"inline-flex items-center gap-2",children:[A.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-magic-pink"}),"EBITDA"]})]})]}),A.jsx("div",{className:"h-[360px] w-full",children:A.jsx(fr,{width:"100%",height:"100%",children:A.jsxs(Rh,{data:Le.map((d,h)=>({quarter:d,"Gross Profit":Vr[h],"Widgets CPC":Lh[h],OPEX:-Bh[h],EBITDA:Gs[h]})),margin:{top:20,right:12,left:0,bottom:12},children:[A.jsx(br,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),A.jsx(it,{dataKey:"quarter",stroke:"hsl(var(--muted-foreground))",fontSize:12}),A.jsx(at,{stroke:"hsl(var(--muted-foreground))",fontSize:12,tickFormatter:d=>ne(d)}),A.jsx(De,{content:A.jsx(vr,{}),cursor:{fill:"hsl(var(--magic-purple) / 0.08)"}}
93),A.jsx(Ie,{dataKey:"Gross Profit",fill:"#a855f7",radius:[4,4,0,0]}),A.jsx(Ie,{dataKey:"Widgets CPC",fill:"#f59e0b",radius:[0,0,4,4]}),A.jsx(Ie,{dataKey:"OPEX",fill:"#ef4444",radius:[0,0,4,4]}),A.jsx(er,{type:"monotone",dataKey:"EBITDA",stroke:"#ec4899",strokeWidth:3,dot:{r:5,fill:"#ec4899"}})]})})}),A.jsx("div",{className:"mt-6 overflow-x-auto",children:A.jsxs("table",{className:"w-full min-w-[640px] text-sm",children:[A.jsx("thead",{children:A.jsxs("tr",{className:"border-b border-border text-left text-xs uppercase tracking-wider text-muted-foreground",children:[A.jsx("th",{className:"py-3 pr-4 font-bold",children:"Line item"}),Le.map(d=>A.jsx("th",{className:"px-2 py-3 text-right font-bold",children:d},d)),A.jsx("th",{className:"pl-2 py-3 text-right font-bold text-magic-pink",children:"Total"})]})}),A.jsxs("tbody",{className:"font-mono",children:[[{label:"Gross Profit",data:Vr,tone:"text-foreground"},{label:"Widgets CPC",data:Lh.map(d=>d),tone:"text-amber-400"},{label:"OPEX",data:Bh.map(d=>-d),tone:"text-red-400"}].map(d=>A.jsxs("tr",{className:"border-b border-border/50",children:[A.jsx("td",{className:`py-3 pr-4 font-sans font-bold ${d.tone}`,children:d.label}),d.data.map((h,g)=>A.jsx("td",{className:`px-2 py-3 text-right ${d.tone}`,children:ne(h)},g)),A.jsx("td",{className:`pl-2 py-3 text-right font-bold ${d.tone}`,children:ne(d.data.reduce((h,g)=>h+g,0))})]},d.label)),A.jsxs("tr",{className:"bg-magic-purple/5",children:[A.jsx("td",{className:"py-4 pr-4 font-sans font-black text-magic-pink",children:"EBITDA"}),Gs.map((d,h)=>A.jsx("td",{className:`px-2 py-4 text-right font-black ${d<0?"text-red-500 animate-negative-blink":"text-magic-pink"}`,children:ne(d)},h)),A.jsx("td",{className:"pl-2 py-4 text-right font-black text-magic-pink",children:ne(Gs.reduce((d,h)=>d+h,0))})]})]})]})})]}),A.jsxs("section",{className:"mb-16 grid gap-6 lg:grid-cols-5",children:[A.jsxs("div",{className:"rounded-3xl border border-border bg-card/30 p-6 backdrop-blur lg:col-span-3",children:[A.jsx("h3",{className:"font-display text-xl font-black",children:"Revenue mix by quarter"}),A.jsx("p",{className:"mb-5 text-sm text-muted-foreground",children:"Click a quarter to see the vertical breakdown →"}),A.jsx("div",{className:"h-[320px]",children:A.jsx(fr,{children:A.jsxs(qs,{data:Le.map((d,h)=>{const g={quarter:d,_i:h};return Xe.forEach(x=>g[x.name]=x.revenue[h]),g}),onClick:d=>{var h,g,x;((x=(g=(h=d==null?void 0:d.activePayload)==null?void 0:h[0])==null?void 0:g.payload)==null?void 0:x._i)!==void 0&&a(d.activePayload[0].payload._i)},children:[A.jsx(br,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),A.jsx(it,{dataKey:"quarter",stroke:"hsl(var(--muted-foreground))",fontSize:12}),A.jsx(at,{stroke:"hsl(var(--muted-foreground))",fontSize:12,tickFormatter:d=>ne(d)}),A.jsx(De,{content:A.jsx(vr,{}),cursor:{fill:"hsl(var(--magic-purple) / 0.08)"}}),Xe.map(d=>A.jsx(Ie,{dataKey:d.name,stackId:"r",fill:d.color,cursor:"pointer"},d.key))]})})})]}),A.jsxs("div",{className:"rounded-3xl border border-border bg-card/30 p-6 backdrop-blur lg:col-span-2",children:[A.jsxs("h3",{className:"font-display text-xl font-black",children:[Le[i]," vertical mix"]}),A.jsxs("p",{className:"mb-3 text-sm text-muted-foreground",children:["Total revenue:"," ",A.jsx("span",{className:"font-semibold text-foreground",children:ne(wr[i])})]}),A.jsx("div",{className:"h-[340px]",children:A.jsx(fr,{children:A.jsxs(J8,{children:[A.jsx(Ut,{data:y,dataKey:"value",nameKey:"name",innerRadius:60,outerRadius:110,paddingAngle:3,labelLine:!1,label:d=>{const h=Math.PI/180,{cx:g,cy:x,midAngle:b,outerRadius:O,name:m,percent:w}=d;if(w<.04)return null;const P=O+18,_=g+P*Math.cos(-b*h),$=x+P*Math.sin(-b*h),T=_>g?"start":"end";return A.jsxs("text",{x:_,y:$,textAnchor:T,dominantBaseline:"central",style:{fontSize:12,fontWeight:800,fill:"hsl(var(--foreground))"},children:[A.jsx("tspan",{x:_,dy:"-0.4em",children:m}),A.jsxs("tspan",{x:_,dy:"1.1em",style:{fontSize:10,fontWeight:600,fill:"hsl(var(--muted-foreground))"},children:[(w*100).toFixed(0),"%"]})]})},children:y.map((d,h)=>A.jsx(qi,{fill:d.color,stroke:"hsl(var(--background))",strokeWidth:2},h))}),A.jsx(De,{content:A.jsx(vr,{})})]})})}),A.jsx("div",{className:"mt-3 flex flex-wrap justify-center gap-x-4 gap-y-2",children:y.map(d=>A.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[A.jsx("span",{className:"h-2.5 w-2.5 rounded-full",style:{background:d.color}}),A.jsx("span",{className:"font-bold text-foreground",children:d.name}),A.jsx("span",{className:"text-muted-foreground",children:ne(d.value)})]},d.name))})]})]}),A.jsxs("section",{className:"mb-16 rounded-3xl border border-border bg-card/30 p-6 backdrop-blur md:p-8",children:[A.jsxs("div",{className:"mb-6 flex flex-col gap-4 md:flex-row md:items-end md:justify-between",children:[A.jsxs("div",{children:[A.jsx("h2",{className:"font-display text-2xl font-black md:text-3xl",children:"3 Main GP Channels"}),A.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:"Google Ads is the volume engine; Z2A and Social compound the margin."})]}),A.jsx("div",{className:"flex flex-wrap gap-2",children:[{key:"all",name:"All",color:"#a85
935f7"},{key:"Google Ads",name:"Google",color:"#a855f7"},{key:"Z2A Network",name:"Z2A Network",color:"#ec4899"},{key:"Social",name:"Social",color:"#f59e0b"}].map(d=>{const h=u===d.key;return A.jsxs("button",{onClick:()=>c(d.key),className:`inline-flex items-center gap-2 rounded-full border px-4 py-2 text-sm font-black uppercase tracking-wider transition-all ${h?"border-transparent text-white scale-105":"border-border bg-card/60 text-muted-foreground hover:text-foreground"}`,style:h?{background:`linear-gradient(135deg, ${d.color}, ${d.color}cc)`,boxShadow:`0 8px 24px -8px ${d.color}80`}:void 0,children:[A.jsx("span",{className:"h-3 w-3 rounded-sm",style:{background:d.color}}),d.name]},d.key)})})]}),A.jsx("div",{className:"h-[340px]",children:A.jsx(fr,{children:A.jsxs(qs,{data:p,margin:{bottom:24},children:[A.jsx(br,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),A.jsx(it,{dataKey:"quarter",stroke:"hsl(var(--muted-foreground))",fontSize:12}),A.jsx(at,{stroke:"hsl(var(--muted-foreground))",fontSize:12,tickFormatter:d=>ne(d)}),A.jsx(De,{content:A.jsx(vr,{}),cursor:{fill:"hsl(var(--magic-purple) / 0.08)"}}),A.jsx(It,{iconSize:14,iconType:"square",wrapperStyle:{paddingTop:"24px"},formatter:d=>A.jsx("span",{className:"text-foreground font-black text-sm md:text-base tracking-wide hover:text-magic-pink transition-colors",children:d})}),(u==="all"||u==="Google Ads")&&A.jsx(Ie,{dataKey:"Google Ads",stackId:"c",fill:"#a85
935f7",radius:u==="Google Ads"?[6,6,0,0]:0}),(u==="all"||u==="Z2A Network")&&A.jsx(Ie,{dataKey:"Z2A Network",stackId:"c",fill:"#ec4899",radius:u==="Z2A Network"?[6,6,0,0]:0}),(u==="all"||u==="Social")&&A.jsx(Ie,{dataKey:"Social",stackId:"c",fill:"#f59e0b",radius:u==="Social"?[6,6,0,0]:0})]})})})]}),(()=>{const d=wt.google,h=d.reduce(($,T)=>$+T,0),g=wt.z2a.reduce(($,T)=>$+T,0),x=wt.social.reduce(($,T)=>$+T,0),b=h+g+x,O=h/b,m=d[5],w=m/(d[5]+wt.z2a[5]+wt.social[5]),P=d[5]/d[1];(d[5]-d[4])/Math.abs(d[4]);const _=Le.map(($,T)=>{const j=d.slice(0,T+1).reduce((k,C)=>k+C,0),E=d[T]+wt.z2a[T]+wt.social[T];return{quarter:$,"Google GP":d[T],Cumulative:j,Share:E!==0?d[T]/E*100:0}});return A.jsxs("section",{className:"mb-16 rounded-3xl border border-magic-purple/40 bg-gradient-to-br from-card/40 via-card/30 to-magic-purple/5 p-6 backdrop-blur md:p-8 shadow-[0_0_60px_-20px_rgba(168,85,247,0.4)]",children:[A.jsxs("div",{className:"mb-6 flex items-center gap-3",children:[A.jsx("div",{className:"flex h-12 w-12 items-center justify-center rounded-2xl bg-gradient-to-br from-magic-purple to-magic-pink text-white font-black text-xl shadow-[0_8px_24px_-8px_rgba(168,85,247,0.6)]",children:"G"}),A.jsxs("div",{children:[A.jsx("h2",{className:"font-display text-2xl font-black md:text-3xl",children:"Google — The Volume Engine"}),A.jsxs("p",{className:"mt-1 text-sm text-muted-foreground",children:["Our largest single GP contributor. From a small Q3 '26 loss to a"," ",A.jsx("span",{className:"font-bold text-magic-pink",children:ne(m)})," ","quarterly exit — ",vt(O)," of total channel GP over the plan."]})]})]}),A.jsx("div",{className:"mb-8 grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:[{label:"Total Google GP",value:ne(h),sub:"18-month cumulative gross profit"},{label:"Share of Channel GP",value:vt(O),sub:`vs Z2A ${vt(g/b)} · Social ${vt(x/b)}`},{label:"Exit Quarterly GP",value:ne(m),sub:`Q4 '27 · ${vt(w)} of that quarter's channel GP`},{label:"Growth vs Q4 '26",value:`${P.toFixed(1)}x`,sub:`${ne(d[1])} → ${ne(d[5])} in 4 quarters`}].map($=>A.jsxs("div",{className:"group relative overflow-hidden rounded-2xl border border-magic-purple/30 bg-background/40 p-5 backdrop-blur transition-all hover:-translate-y-0.5 hover:border-magic-purple/70",children:[A.jsx("div",{"aria-hidden":!0,className:"absolute -right-8 -top-8 h-24 w-24 rounded-full bg-magic-purple/20 blur-2xl opacity-40 group-hover:opacity-70 transition-opacity"}),A.jsx("p",{className:"relative text-xs font-bold uppercase tracking-wider text-muted-foreground",children:$.label}),A.jsx("p",{className:"relative mt-2 font-display text-3xl font-black text-transparent bg-clip-text bg-gradient-to-r from-magic-purple to-magic-pink",children:$.value}),A.jsx("p",{className:"relative mt-1 text-xs text-muted-foreground",children:$.sub})]},$.label))}),A.jsxs("div",{className:"rounded-2xl border border-border bg-background/40 p-5",children:[A.jsxs("div",{className:"mb-3 flex flex-wrap items-center justify-between gap-2",children:[A.jsx("h3",{className:"font-display text-lg font-black",children:"Quarterly GP + Cumulative Trajectory"}),A.jsxs("div",{className:"flex flex-wrap gap-3 text-xs",children:[A.jsxs("span",{className:"flex items-center gap-1.5",children:[A.jsx("span",{className:"h-3 w-3 rounded-sm bg-magic-purple"}),A.jsx("span",{className:"text-muted-foreground",children:"Google GP (quarterly)"})]}),A.jsxs("span",{className:"flex items-center gap-1.5",children:[A.jsx("span",{className:"h-[3px] w-4 rounded-full bg-magic-pink"}),A.jsx("span",{className:"text-muted-foreground",children:"Cumulative"})]})]})]}),A.jsx("div",{className:"h-[320px]",children:A.jsx(fr,{children:A.jsxs(Rh,{data:_,margin:{bottom:12},children:[A.jsx(br,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),A.jsx(it,{dataKey:"quarter",stroke:"hsl(var(--muted-foreground))",fontSize:12}),A.jsx(at,{stroke:"hsl(var(--muted-foreground))",fontSize:12,tickFormatter:$=>ne($)}),A.jsx(De,{content:A.jsx(vr,{}),cursor:{fill:"hsl(var(--magic-purple) / 0.08)"}}),A.jsx(Ie,{dataKey:"Google GP",fill:"#a855f7",radius:[6,6,0,0]}),A.jsx(er,{type:"monotone",dataKey:"Cumulative",stroke:"#ec4899",strokeWidth:3,dot:{r:5,fill:"#ec4899",strokeWidth:2,stroke:"#0b0b12"}})]})})})]}),A.jsx("div",{className:"mt-6 overflow-x-auto rounded-2xl border border-border bg-background/40",children:A.jsxs("table",{className:"w-full text-sm",children:[A.jsx("thead",{children:A.jsxs("tr",{className:"border-b border-border/60 bg-magic-purple/5",children:[A.jsx("th",{className:"p-3 text-left text-xs font-black uppercase tracking-wider text-muted-foreground",children:"Quarter"}),Le.map($=>A.jsx("th",{className:"p-3 text-right text-xs font-black uppercase tracking-wider text-muted-foreground",children:$},$)),A.jsx("th",{className:"p-3 text-right text-xs font-black uppercase tracking-wider text-magic-pink",children:"Total"})]})}),A.jsxs("tbody",{children:[A.jsxs("tr",{className:"border-b border-border/40",children:[A.jsx("td",{className:"p-3 font-bold text-foreground",children:"Google GP"}),d.map(($,T)=>A.jsx("td",{className:`p-3 text-right font-mono font-bold ${$<0?"text-red-500 animate-negative-blink":"text-foreground"}`,children:ne($)},T)),A.jsx("td",{className:"p-3 text-right font-mono font-black text-magic-pink",children:ne(h)})]}),A.jsxs("tr",{children:[A.jsx("td",{className:"p-3 font-bold text-muted-foreground",children:"Share of Q"}),_.map(($,T)=>A.jsxs("td",{className:"p-3 text-right font-mono text-muted-foreground",children:[$.Share.toFixed(0),"%"]},T)),A.jsx("td",{className:"p-3 text-right font-mono font-black text-magic-pink",children:vt(O)})]})]})]})})]})})(),A.jsxs("section",{className:"mb-16",children:[A.jsx("h2",{className:"mb-6 font-display text-2xl font-black md:text-3xl",children:"Vertical scorecards"}),A.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:Xe.map(d=>{const h=d.revenue.reduce((O,m)=>O+m,0),g=d.gp.reduce((O,m)=>O+m,0),x=d.gpMargin[5],b=d.icon;return A.jsxs("div",{className:"group relative overflow-hidden rounded-2xl border border-border bg-card/40 p-6 backdrop-blur transition-smooth hover:-translate-y-1",style:{borderColor:`${d.color}33`}
93,children:[A.jsx("div",{"aria-hidden":!0,className:"absolute inset-x-0 top-0 h-1",style:{background:d.color}}),A.jsxs("div",{className:"flex items-center gap-3",children:[A.jsx("div",{className:"flex h-11 w-11 items-center justify-center rounded-xl",style:{background:`${d.color}20`,color:d.color},children:A.jsx(b,{className:"h-5 w-5"})}),A.jsxs("div",{children:[A.jsx("h3",{className:"font-display text-lg font-black",children:d.name}),A.jsxs("p",{className:"text-xs text-muted-foreground",children:["Exit margin ",vt(x)]})]})]}),A.jsxs("div",{className:"mt-5 grid grid-cols-2 gap-4",children:[A.jsxs("div",{children:[A.jsx("p",{className:"text-xs uppercase tracking-wider text-muted-foreground",children:"Revenue"}),A.jsx("p",{className:"font-display text-xl font-black",children:ne(h)})]}),A.jsxs("div",{children:[A.jsx("p",{className:"text-xs uppercase tracking-wider text-muted-foreground",children:"Gross Profit"}),A.jsx("p",{className:"font-display text-xl font-black",style:{color:g>=0?d.color:"#ef4444"},children:ne(g)})]})]}),A.jsx("div",{className:"mt-4 h-[60px]",children:A.jsx(fr,{children:A.jsxs(eF,{data:Le.map((O,m)=>({q:O,rev:d.revenue[m]})),children:[A.jsx("defs",{children:A.jsxs("linearGradient",{id:`spark-${d.key}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[A.jsx("stop",{offset:"0%",stopColor:d.color,stopOpacity:.6}),A.jsx("stop",{offset:"100%",stopColor:d.color,stopOpacity:0})]})}),A.jsx(Kt,{type:"monotone",dataKey:"rev",stroke:d.color,strokeWidth:2,fill:`url(#spark-${d.key})`})]})})}),A.jsx("div",{className:"mt-2 flex justify-between text-[10px] uppercase tracking-wider text-muted-foreground",children:Le.map(O=>A.jsx("span",{children:O.replace(" '","'")},O))})]},d.key)})})]}),A.jsxs("section",{className:"mb-16 overflow-hidden rounded-3xl border border-border bg-card/30 backdrop-blur",children:[A.jsx("div",{className:"px-6 py-5 md:px-8",children:A.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-end md:justify-between",children:[A.jsxs("div",{children:[A.jsx("h2",{className:"font-display text-2xl font-black md:text-3xl",children:"Quarter-by-quarter"}),A.jsxs("p",{className:"mt-1 text-sm text-muted-foreground",children:["Showing:"," ",A.jsx("span",{className:"font-bold text-foreground",style:l.color?{color:l.color}:void 0,children:l.label})]})]}),A.jsxs("div",{className:"flex flex-wrap gap-2",children:[A.jsxs("button",{onClick:()=>s("all"),className:`inline-flex items-center gap-2 rounded-full px-3.5 py-1.5 text-xs font-bold transition-smooth ${o==="all"?"bg-foreground text-background":"border border-border bg-card/60 text-muted-foreground hover:text-foreground"}`,children:[A.jsx(ys,{className:"h-3.5 w-3.5"}),"All"]}),Xe.map(d=>{const h=d.icon,g=o===d.key;return A.jsxs("button",{onClick:()=>s(d.key),className:`inline-flex items-center gap-2 rounded-full border px-3.5 py-1.5 text-xs font-bold transition-smooth ${g?"border-transparent text-white":"border-border bg-card/60 text-muted-foreground hover:text-foreground"}`,style:g?{background:`linear-gradient(135deg, ${d.color}, ${d.color}cc)`,boxShadow:`0 8px 24px -8px ${d.color}80`}:void 0,children:[A.jsx(h,{className:"h-3.5 w-3.5"}),d.name]},d.key)})]})]})}),A.jsx("div",{className:"overflow-x-auto",children:A.jsxs("table",{className:"w-full text-sm",children:[A.jsx("thead",{children:A.jsxs("tr",{className:"border-y border-border bg-card/60 text-xs uppercase tracking-wider text-muted-foreground",children:[A.jsx("th",{className:"px-6 py-3 text-left font-semibold",children:"Metric"}),Le.map((d,h)=>A.jsx("th",{className:`px-4 py-3 text-right font-semibold ${h===i?"text-magic-pink":""} ${h===0?"border-x border-t border-red-500/20 bg-red-500/5 rounded-t-lg":""}`,children:A.jsxs("div",{className:"flex flex-col items-end",children:[A.jsx("span",{children:d}),h===0&&A.jsx("span",{className:"text-[9px] font-black text-red-400 normal-case tracking-normal animate-pulse",children:"Launch Phase"})]})},d)),A.jsx("th",{className:"px-6 py-3 text-right font-bold text-foreground",children:"Total"})]})}),A.jsxs("tbody",{children:[A.jsxs("tr",{className:"border-b border-border/60 hover:bg-card/60",children:[A.jsx("td",{className:"px-6 py-4 font-display font-bold",children:"Revenue"}),l.rev.map((d,h)=>A.jsx("td",{className:`px-4 py-4 text-right font-mono ${h===i?"bg-magic-purple/5":""} ${h===0?"border-x border-red-500/10 bg-red-500/5":""}`,children:ne(d)},h)),A.jsx("td",{className:"px-6 py-4 text-right font-mono font-black",children:ne(l.totalRev)})]}),A.jsxs("tr",{className:"border-b border-border/60 hover:bg-card/60",children:[A.jsx("td",{className:"px-6 py-4 font-display font-bold",children:"Gross Profit"}),l.gp.map((d,h)=>A.jsx("td",{className:`px-4 py-4 text-right font-mono relative group/gp ${h===i?"bg-magic-purple/5":""} ${h===0?"border-x border-red-500/30 bg-red-500/10":""} ${d<0?"animate-negative-blink":""}`,style:{color:d>=0?"#10b981":"#ef4444"},children:A.jsxs("span",{className:"flex items-center justify-end gap-1.5",children:[d<0&&A.jsx("span",{className:"inline-block h-1.5 w-1.5 rounded-full bg-red-500 animate-ping"}),ne(d)]})},h)),A.jsx("td",{className:"px-6 py-4 text-right font-mono font-black text-magic-pink",children:ne(l.totalGP)})]}),A.jsxs("tr",{className:"border-b border-border/60 hover:bg-card/60",children:[A.jsx("td",{className:"px-6 py-4 font-display font-bold",children:"GP %"}),Le.map((d,h)=>{const g=l.rev[h]?l.gp[h]/l.rev[h]:0;return A.jsx("td",{className:`px-4 py-4 text-right font-mono ${h===i?"bg-magic-purple/5":""} ${h===0?"border-x border-red-500/10 bg-red-500/5":""}`,style:{color:g>=0?"inherit":"#ef4444"},children:l.rev[h]?vt(g):"—"},h)}),A.jsx("td",{className:"px-6 py-4 text-right font-mono font-black",children:l.totalRev?vt(l.totalGP/l.totalRev):"—"})]}),A.jsxs("tr",{className:"hover:bg-card/60 border-b border-border/30",children:[A.jsx("td",{className:"px-6 py-4 font-display font-bold",children:"QoQ Growth"}),Le.map((d,h)=>{const g=l.rev[h-1],x=l.rev[h],b=h===0||!g?null:(x-g)/g;return A.jsx("td",{className:`px-4 py-4 text-right font-mono text-magic-pink ${h===i?"bg-magic-purple/5":""} ${h===0?"border-x border-b border-red-500/10 bg-red-500/5 rounded-b-lg":""}`,children:b===null?"—":`${b>=0?"+":""}${(b*100).toFixed(0)}%`},h)}),A.jsx("td",{className:"px-6 py-4 text-right font-mono font-black text-magic-pink",children:"—"})]})]})]})})]}),A.jsxs("section",{className:"mb-16 rounded-3xl border border-magic-purple/30 bg-gradient-to-br from-magic-purple/10 via-card/40 to-magic-pink/5 p-6 backdrop-blur md:p-10",children:[A.jsxs("div",{className:"mb-8 flex flex-col items-start gap-5 md:flex-row md:items-center",children:[A.jsx("div",{className:"flex h-16 w-16 shrink-0 items-center justify-center rounded-2xl bg-gradient-cta shadow-[0_10px_30px_-8px_rgba(168,85,247,0.6)]",children:A.jsxs("svg",{viewBox:"0 0 64 64",className:"h-10 w-10",fill:"none",stroke:"white",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:[A.jsx("path",{d:"M32 58c-10 0-18-7-18-18V28a4 4 0 1 1 8 0v6"}),A.jsx("path",{d:"M22 28V16a4 4 0 1 1 8 0v14"}),A.jsx("path",{d:"M30 30V12a4 4 0 1 1 8 0v18"}),A.jsx("path",{d:"M38 30V16a4 4 0 1 1 8 0v18"}),A.jsx("path",{d:"M46 28a4 4 0 1 1 8 0v12c0 10-8 18-18 18"}),A.jsx("circle",{cx:"32",cy:"40",r:"3.5"}),A.jsx("path",{d:"M32 36v-2M32 46v-2M28 40h-2M38 40h-2"})]})}),A.jsxs("div",{children:[A.jsx("p",{className:"text-xs font-bold uppercase tracking-[0.3em] text-magic-pink",children:"Plan Summary"}),A.jsxs("h2",{className:"mt-2 font-display text-2xl font-black leading-tight md:text-4xl",children:["The 5 Finance Verticals — ",A.jsx("span",{className:"text-gradient-magic",children:"HAMSA"})]}),A.jsxs("p",{className:"mt-2 max-w-2xl text-sm text-muted-foreground md:text-base",children:["Five fingers, one protective hand. Each vertical compounds the next — from ",ne(wr[0])," in Q3 '26 to ",ne(wr[5])," by Q4 '27 at ",vt(Fh)," GP margin."]})]})]}),A.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:[{title:"Why now",body:"AI search is rewriting how high-intent finance shoppers compare brands — STM is the AI-native discovery layer for that shift."},{title:"Who pays",body:"Banks, fintechs & HELOC originators pay per qualified, converting customer. Partner payouts rise as quality compounds."},{title:"Three-channel engine",body:"Google/Bing Ads for volume, the Z2A publisher network for margin, Social for compounding owned audie
93nces."},{title:"Margin unlocks",body:"CPC compression and conv-rate lift across verticals — blended GP scales from negative to ~37% in 6 quarters."},{title:"Fastest scaler",body:"Checking — 0 → $2.79M quarterly revenue at 40% GP by Q4 '27, riding daily budget growth and creative maturity."},{title:"Moat & risk",body:"Z2A's owned network gives a CPA edge no pure-paid rival can match. Early losses on Savings & Checking are intentional learning spend."},{title:"Required Investment",body:"A launch investment of $162,000 is required to fully fund the initial Q3 '26 setup deficit (-$161.8K) and provide a liquidity cushion as channels scale to profitability."}].map((d,h)=>A.jsxs("div",{className:"group rounded-2xl border border-border bg-card/50 p-5 transition-smooth hover:-translate-y-0.5 hover:border-magic-purple/60",children:[A.jsxs("div",{className:"mb-2 flex items-center gap-3",children:[A.jsx("span",{className:"flex h-7 w-7 items-center justify-center rounded-full bg-gradient-cta text-xs font-black text-white",children:h+1}),A.jsx("h3",{className:"font-display text-base font-black",children:d.title})]}),A.jsx("p",{className:"text-sm leading-relaxed text-muted-foreground",children:d.body})]},d.title))})]}),A.jsxs("section",{className:"rounded-3xl border border-red-500/20 bg-red-500/5 p-8 text-center backdrop-blur",children:[A.jsx(Lg,{className:"mx-auto mb-6 text-2xl md:text-3xl"}),A.jsxs("div",{className:"mx-auto flex max-w-lg flex-col items-center gap-3",children:[A.jsx(kl,{className:"h-8 w-8 text-red-500 animate-pulse"}),A.jsx("h2",{className:"font-display text-lg font-black uppercase tracking-[0.25em] text-red-400",children:"This page is unlisted"}),A.jsx("p",{className:"text-sm font-bold text-muted-foreground uppercase tracking-widest",children:"Do not redistribute or share this URL"}),A.jsx("p",{className:"text-xs text-muted-foreground/60 max-w-sm",children:"This document contains highly sensitive and confidential financial forecasts intended solely for internal strategic planning."})]})]})]}),A.jsx(Bg,{})]})};export{aF as default};

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.