llmtap 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/dashboard/assets/BarChart-N8X7TKRf.js +1 -0
  2. package/dist/dashboard/assets/Costs-BhWdS2kw.js +4 -0
  3. package/dist/dashboard/assets/Dashboard-DnHLwJsN.js +9 -0
  4. package/dist/dashboard/assets/Models-5jWcyfAk.js +1 -0
  5. package/dist/dashboard/assets/Sessions-IXJPYjKe.js +3 -0
  6. package/dist/dashboard/assets/Settings-kxBLuIHe.js +6 -0
  7. package/dist/dashboard/assets/TraceDetail-DdKFps7x.js +18 -0
  8. package/dist/dashboard/assets/Traces-Cv9L_xTe.js +2 -0
  9. package/dist/dashboard/assets/chevron-down-B0xosrpl.js +1 -0
  10. package/dist/dashboard/assets/clock-CSGov78l.js +1 -0
  11. package/dist/dashboard/assets/coins-RIVI5-1a.js +1 -0
  12. package/dist/dashboard/assets/download-PygxZ--5.js +1 -0
  13. package/dist/dashboard/assets/fira-code-400-CHoedHDv.woff2 +0 -0
  14. package/dist/dashboard/assets/fira-sans-300-B2LrTgQS.woff2 +0 -0
  15. package/dist/dashboard/assets/fira-sans-400-a0AnQzuD.woff2 +0 -0
  16. package/dist/dashboard/assets/fira-sans-500-Bvbxc8ch.woff2 +0 -0
  17. package/dist/dashboard/assets/fira-sans-600-CXKlxLG9.woff2 +0 -0
  18. package/dist/dashboard/assets/fira-sans-700-CRhwpWTq.woff2 +0 -0
  19. package/dist/dashboard/assets/format-BiBDo3KS.js +1 -0
  20. package/dist/dashboard/assets/gauge-BBNKtqFH.js +1 -0
  21. package/dist/dashboard/assets/generateCategoricalChart-CylgFInn.js +61 -0
  22. package/dist/dashboard/assets/index-BBr9_AHg.js +22 -0
  23. package/dist/dashboard/assets/index-CIGK6hiV.css +1 -0
  24. package/dist/dashboard/assets/layers--K2XRXAx.js +1 -0
  25. package/dist/dashboard/assets/message-square-DdcqfsnD.js +1 -0
  26. package/dist/dashboard/assets/orbit-2k6lSwt7.js +1 -0
  27. package/dist/dashboard/assets/search-BwbP84dP.js +1 -0
  28. package/dist/dashboard/assets/zap-Ccrxhk2Q.js +1 -0
  29. package/dist/dashboard/index.html +13 -0
  30. package/dist/index.js +487 -0
  31. package/dist/index.js.map +1 -0
  32. package/package.json +50 -0
@@ -0,0 +1,61 @@
1
+ import{n as Gn,l as ue,r as N,R as T}from"./index-BBr9_AHg.js";function Bm(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Bm(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function te(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Bm(e))&&(n&&(n+=" "),n+=t);return n}var Da,ah;function Re(){if(ah)return Da;ah=1;var e=Array.isArray;return Da=e,Da}var Na,oh;function Lm(){if(oh)return Na;oh=1;var e=typeof Gn=="object"&&Gn&&Gn.Object===Object&&Gn;return Na=e,Na}var qa,uh;function it(){if(uh)return qa;uh=1;var e=Lm(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return qa=r,qa}var Ba,ch;function Dn(){if(ch)return Ba;ch=1;var e=it(),t=e.Symbol;return Ba=t,Ba}var La,sh;function Yx(){if(sh)return La;sh=1;var e=Dn(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var u=r.call(o,i),c=o[i];try{o[i]=void 0;var s=!0}catch{}var f=n.call(o);return s&&(u?o[i]=c:delete o[i]),f}return La=a,La}var Fa,lh;function Zx(){if(lh)return Fa;lh=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Fa=r,Fa}var Ua,fh;function gt(){if(fh)return Ua;fh=1;var e=Dn(),t=Yx(),r=Zx(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?i:n:a&&a in Object(u)?t(u):r(u)}return Ua=o,Ua}var Wa,hh;function mt(){if(hh)return Wa;hh=1;function e(t){return t!=null&&typeof t=="object"}return Wa=e,Wa}var za,ph;function Cr(){if(ph)return za;ph=1;var e=gt(),t=mt(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return za=n,za}var Ha,dh;function Jl(){if(dh)return Ha;dh=1;var e=Re(),t=Cr(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return Ha=i,Ha}var Ga,vh;function Pt(){if(vh)return Ga;vh=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Ga=e,Ga}var Ka,yh;function Ql(){if(yh)return Ka;yh=1;var e=gt(),t=Pt(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!t(u))return!1;var c=e(u);return c==n||c==i||c==r||c==a}return Ka=o,Ka}var Xa,gh;function Jx(){if(gh)return Xa;gh=1;var e=it(),t=e["__core-js_shared__"];return Xa=t,Xa}var Va,mh;function Qx(){if(mh)return Va;mh=1;var e=Jx(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return Va=r,Va}var Ya,bh;function Fm(){if(bh)return Ya;bh=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return Ya=r,Ya}var Za,xh;function ew(){if(xh)return Za;xh=1;var e=Ql(),t=Qx(),r=Pt(),n=Fm(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,c=o.toString,s=u.hasOwnProperty,f=RegExp("^"+c.call(s).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(h){if(!r(h)||t(h))return!1;var d=e(h)?f:a;return d.test(n(h))}return Za=l,Za}var Ja,wh;function tw(){if(wh)return Ja;wh=1;function e(t,r){return t?.[r]}return Ja=e,Ja}var Qa,Oh;function Xt(){if(Oh)return Qa;Oh=1;var e=ew(),t=tw();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return Qa=r,Qa}var eo,_h;function na(){if(_h)return eo;_h=1;var e=Xt(),t=e(Object,"create");return eo=t,eo}var to,Sh;function rw(){if(Sh)return to;Sh=1;var e=na();function t(){this.__data__=e?e(null):{},this.size=0}return to=t,to}var ro,Ah;function nw(){if(Ah)return ro;Ah=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return ro=e,ro}var no,Ph;function iw(){if(Ph)return no;Ph=1;var e=na(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var u=o[a];return u===t?void 0:u}return n.call(o,a)?o[a]:void 0}return no=i,no}var io,Th;function aw(){if(Th)return io;Th=1;var e=na(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return io=n,io}var ao,Eh;function ow(){if(Eh)return ao;Eh=1;var e=na(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return ao=r,ao}var oo,jh;function uw(){if(jh)return oo;jh=1;var e=rw(),t=nw(),r=iw(),n=aw(),i=ow();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,oo=a,oo}var uo,Mh;function cw(){if(Mh)return uo;Mh=1;function e(){this.__data__=[],this.size=0}return uo=e,uo}var co,Ch;function ef(){if(Ch)return co;Ch=1;function e(t,r){return t===r||t!==t&&r!==r}return co=e,co}var so,$h;function ia(){if($h)return so;$h=1;var e=ef();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return so=t,so}var lo,Ih;function sw(){if(Ih)return lo;Ih=1;var e=ia(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var u=a.length-1;return o==u?a.pop():r.call(a,o,1),--this.size,!0}return lo=n,lo}var fo,Rh;function lw(){if(Rh)return fo;Rh=1;var e=ia();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return fo=t,fo}var ho,kh;function fw(){if(kh)return ho;kh=1;var e=ia();function t(r){return e(this.__data__,r)>-1}return ho=t,ho}var po,Dh;function hw(){if(Dh)return po;Dh=1;var e=ia();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return po=t,po}var vo,Nh;function aa(){if(Nh)return vo;Nh=1;var e=cw(),t=sw(),r=lw(),n=fw(),i=hw();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,vo=a,vo}var yo,qh;function tf(){if(qh)return yo;qh=1;var e=Xt(),t=it(),r=e(t,"Map");return yo=r,yo}var go,Bh;function pw(){if(Bh)return go;Bh=1;var e=uw(),t=aa(),r=tf();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return go=n,go}var mo,Lh;function dw(){if(Lh)return mo;Lh=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return mo=e,mo}var bo,Fh;function oa(){if(Fh)return bo;Fh=1;var e=dw();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return bo=t,bo}var xo,Uh;function vw(){if(Uh)return xo;Uh=1;var e=oa();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return xo=t,xo}var wo,Wh;function yw(){if(Wh)return wo;Wh=1;var e=oa();function t(r){return e(this,r).get(r)}return wo=t,wo}var Oo,zh;function gw(){if(zh)return Oo;zh=1;var e=oa();function t(r){return e(this,r).has(r)}return Oo=t,Oo}var _o,Hh;function mw(){if(Hh)return _o;Hh=1;var e=oa();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return _o=t,_o}var So,Gh;function rf(){if(Gh)return So;Gh=1;var e=pw(),t=vw(),r=yw(),n=gw(),i=mw();function a(o){var u=-1,c=o==null?0:o.length;for(this.clear();++u<c;){var s=o[u];this.set(s[0],s[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,So=a,So}var Ao,Kh;function Um(){if(Kh)return Ao;Kh=1;var e=rf(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],c=a.cache;if(c.has(u))return c.get(u);var s=n.apply(this,o);return a.cache=c.set(u,s)||c,s};return a.cache=new(r.Cache||e),a}return r.Cache=e,Ao=r,Ao}var Po,Xh;function bw(){if(Xh)return Po;Xh=1;var e=Um(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Po=r,Po}var To,Vh;function xw(){if(Vh)return To;Vh=1;var e=bw(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,u,c,s){a.push(c?s.replace(r,"$1"):u||o)}),a});return To=n,To}var Eo,Yh;function nf(){if(Yh)return Eo;Yh=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return Eo=e,Eo}var jo,Zh;function ww(){if(Zh)return jo;Zh=1;var e=Dn(),t=nf(),r=Re(),n=Cr(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(r(u))return t(u,o)+"";if(n(u))return a?a.call(u):"";var c=u+"";return c=="0"&&1/u==-1/0?"-0":c}return jo=o,jo}var Mo,Jh;function Wm(){if(Jh)return Mo;Jh=1;var e=ww();function t(r){return r==null?"":e(r)}return Mo=t,Mo}var Co,Qh;function zm(){if(Qh)return Co;Qh=1;var e=Re(),t=Jl(),r=xw(),n=Wm();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return Co=i,Co}var $o,ep;function ua(){if(ep)return $o;ep=1;var e=Cr();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return $o=t,$o}var Io,tp;function af(){if(tp)return Io;tp=1;var e=zm(),t=ua();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return Io=r,Io}var Ro,rp;function Hm(){if(rp)return Ro;rp=1;var e=af();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Ro=t,Ro}var Ow=Hm();const We=ue(Ow);var ko,np;function _w(){if(np)return ko;np=1;function e(t){return t==null}return ko=e,ko}var Sw=_w();const Z=ue(Sw);var Do,ip;function Aw(){if(ip)return Do;ip=1;var e=gt(),t=Re(),r=mt(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Do=i,Do}var Pw=Aw();const zt=ue(Pw);var Tw=Ql();const Y=ue(Tw);var Ew=Pt();const $r=ue(Ew);var No={exports:{}},re={};var ap;function jw(){if(ap)return re;ap=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function v(p){if(typeof p=="object"&&p!==null){var b=p.$$typeof;switch(b){case e:switch(p=p.type,p){case r:case i:case n:case s:case f:return p;default:switch(p=p&&p.$$typeof,p){case u:case o:case c:case h:case l:case a:return p;default:return b}}case t:return b}}}return re.ContextConsumer=o,re.ContextProvider=a,re.Element=e,re.ForwardRef=c,re.Fragment=r,re.Lazy=h,re.Memo=l,re.Portal=t,re.Profiler=i,re.StrictMode=n,re.Suspense=s,re.SuspenseList=f,re.isAsyncMode=function(){return!1},re.isConcurrentMode=function(){return!1},re.isContextConsumer=function(p){return v(p)===o},re.isContextProvider=function(p){return v(p)===a},re.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},re.isForwardRef=function(p){return v(p)===c},re.isFragment=function(p){return v(p)===r},re.isLazy=function(p){return v(p)===h},re.isMemo=function(p){return v(p)===l},re.isPortal=function(p){return v(p)===t},re.isProfiler=function(p){return v(p)===i},re.isStrictMode=function(p){return v(p)===n},re.isSuspense=function(p){return v(p)===s},re.isSuspenseList=function(p){return v(p)===f},re.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===n||p===s||p===f||p===d||typeof p=="object"&&p!==null&&(p.$$typeof===h||p.$$typeof===l||p.$$typeof===a||p.$$typeof===o||p.$$typeof===c||p.$$typeof===y||p.getModuleId!==void 0)},re.typeOf=v,re}var op;function Mw(){return op||(op=1,No.exports=jw()),No.exports}var Cw=Mw(),qo,up;function Gm(){if(up)return qo;up=1;var e=gt(),t=mt(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return qo=n,qo}var Bo,cp;function $w(){if(cp)return Bo;cp=1;var e=Gm();function t(r){return e(r)&&r!=+r}return Bo=t,Bo}var Iw=$w();const Nn=ue(Iw);var Rw=Gm();const kw=ue(Rw);var Ve=function(t){return t===0?0:t>0?1:-1},Nt=function(t){return zt(t)&&t.indexOf("%")===t.length-1},q=function(t){return kw(t)&&!Nn(t)},Dw=function(t){return Z(t)},xe=function(t){return q(t)||zt(t)},Nw=0,ca=function(t){var r=++Nw;return"".concat(t||"").concat(r)},Ye=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!q(t)&&!zt(t))return n;var a;if(Nt(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},Ot=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},qw=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},Qt=function(t,r){return q(t)&&q(r)?function(n){return t+n*(r-t)}:function(){return r}};function oi(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):We(n,t))===r})}var Bw=function(t,r){return q(t)&&q(r)?t-r:zt(t)&&zt(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function or(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 Ns(e){"@babel/helpers - typeof";return Ns=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},Ns(e)}var Lw=["viewBox","children"],Fw=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],sp=["points","pathLength"],Lo={svg:Lw,polygon:sp,polyline:sp},of=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],ui=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(N.isValidElement(t)&&(n=t.props),!$r(n))return null;var i={};return Object.keys(n).forEach(function(a){of.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},Uw=function(t,r,n){return function(i){return t(r,n,i),null}},ci=function(t,r,n){if(!$r(t)||Ns(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];of.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=Uw(o,r,n))}),i},Ww=["children"],zw=["children"];function lp(e,t){if(e==null)return{};var r=Hw(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 Hw(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 qs(e){"@babel/helpers - typeof";return qs=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},qs(e)}var fp={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},ft=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},hp=null,Fo=null,uf=function e(t){if(t===hp&&Array.isArray(Fo))return Fo;var r=[];return N.Children.forEach(t,function(n){Z(n)||(Cw.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Fo=r,hp=t,r};function Ze(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return ft(i)}):n=[ft(t)],uf(e).forEach(function(i){var a=We(i,"type.displayName")||We(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Ne(e,t){var r=Ze(e,t);return r&&r[0]}var pp=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!q(n)||n<=0||!q(i)||i<=0)},Gw=["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"],Kw=function(t){return t&&t.type&&zt(t.type)&&Gw.indexOf(t.type)>=0},RD=function(t){return t&&qs(t)==="object"&&"clipDot"in t},Xw=function(t,r,n,i){var a,o=(a=Lo?.[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!Y(t)&&(i&&o.includes(r)||Fw.includes(r))||n&&of.includes(r)},ee=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(N.isValidElement(t)&&(i=t.props),!$r(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;Xw((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},Bs=function e(t,r){if(t===r)return!0;var n=N.Children.count(t);if(n!==N.Children.count(r))return!1;if(n===0)return!0;if(n===1)return dp(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(!dp(a,o))return!1}return!0},dp=function(t,r){if(Z(t)&&Z(r))return!0;if(!Z(t)&&!Z(r)){var n=t.props||{},i=n.children,a=lp(n,Ww),o=r.props||{},u=o.children,c=lp(o,zw);return i&&u?or(a,c)&&Bs(i,u):!i&&!u?or(a,c):!1}return!1},vp=function(t,r){var n=[],i={};return uf(t).forEach(function(a,o){if(Kw(a))n.push(a);else if(a){var u=ft(a.type),c=r[u]||{},s=c.handler,f=c.once;if(s&&(!f||!i[u])){var l=s(a,u,o);n.push(l),i[u]=!0}}}),n},Vw=function(t){var r=t&&t.type;return r&&fp[r]?fp[r]:null},Yw=function(t,r){return uf(r).indexOf(t)},Zw=["children","width","height","viewBox","className","style","title","desc"];function Ls(){return Ls=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},Ls.apply(this,arguments)}function Jw(e,t){if(e==null)return{};var r=Qw(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 Qw(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 Fs(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,c=e.desc,s=Jw(e,Zw),f=i||{width:r,height:n,x:0,y:0},l=te("recharts-surface",a);return T.createElement("svg",Ls({},ee(s,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),T.createElement("title",null,u),T.createElement("desc",null,c),t)}var eO=["children","className"];function Us(){return Us=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Us.apply(this,arguments)}function tO(e,t){if(e==null)return{};var r=rO(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 rO(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 _e=T.forwardRef(function(e,t){var r=e.children,n=e.className,i=tO(e,eO),a=te("recharts-layer",n);return T.createElement("g",Us({className:a},ee(i,!0),{ref:t}),r)}),ht=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]},Uo,yp;function nO(){if(yp)return Uo;yp=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return Uo=e,Uo}var Wo,gp;function iO(){if(gp)return Wo;gp=1;var e=nO();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return Wo=t,Wo}var zo,mp;function Km(){if(mp)return zo;mp=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",u=RegExp("["+o+e+i+a+"]");function c(s){return u.test(s)}return zo=c,zo}var Ho,bp;function aO(){if(bp)return Ho;bp=1;function e(t){return t.split("")}return Ho=e,Ho}var Go,xp;function oO(){if(xp)return Go;xp=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",u="["+i+"]",c="\\ud83c[\\udffb-\\udfff]",s="(?:"+u+"|"+c+")",f="[^"+e+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",d="\\u200d",y=s+"?",v="["+a+"]?",p="(?:"+d+"(?:"+[f,l,h].join("|")+")"+v+y+")*",b=v+y+p,x="(?:"+[f+u+"?",u,l,h,o].join("|")+")",w=RegExp(c+"(?="+c+")|"+x+b,"g");function O(g){return g.match(w)||[]}return Go=O,Go}var Ko,wp;function uO(){if(wp)return Ko;wp=1;var e=aO(),t=Km(),r=oO();function n(i){return t(i)?r(i):e(i)}return Ko=n,Ko}var Xo,Op;function cO(){if(Op)return Xo;Op=1;var e=iO(),t=Km(),r=uO(),n=Wm();function i(a){return function(o){o=n(o);var u=t(o)?r(o):void 0,c=u?u[0]:o.charAt(0),s=u?e(u,1).join(""):o.slice(1);return c[a]()+s}}return Xo=i,Xo}var Vo,_p;function sO(){if(_p)return Vo;_p=1;var e=cO(),t=e("toUpperCase");return Vo=t,Vo}var lO=sO();const sa=ue(lO);function oe(e){return function(){return e}}const Xm=Math.cos,si=Math.sin,Qe=Math.sqrt,li=Math.PI,la=2*li,Ws=Math.PI,zs=2*Ws,kt=1e-6,fO=zs-kt;function Vm(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function hO(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Vm;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 pO{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Vm:hO(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,c=n-t,s=i-r,f=o-t,l=u-r,h=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>kt)if(!(Math.abs(l*c-s*f)>kt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let d=n-o,y=i-u,v=c*c+s*s,p=d*d+y*y,b=Math.sqrt(v),x=Math.sqrt(h),w=a*Math.tan((Ws-Math.acos((v+h-p)/(2*b*x)))/2),O=w/x,g=w/b;Math.abs(O-1)>kt&&this._append`L${t+O*f},${r+O*l}`,this._append`A${a},${a},0,0,${+(l*d>f*y)},${this._x1=t+g*c},${this._y1=r+g*s}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),c=n*Math.sin(i),s=t+u,f=r+c,l=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${s},${f}`:(Math.abs(this._x1-s)>kt||Math.abs(this._y1-f)>kt)&&this._append`L${s},${f}`,n&&(h<0&&(h=h%zs+zs),h>fO?this._append`A${n},${n},0,1,${l},${t-u},${r-c}A${n},${n},0,1,${l},${this._x1=s},${this._y1=f}`:h>kt&&this._append`A${n},${n},0,${+(h>=Ws)},${l},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function cf(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 pO(t)}function sf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Ym(e){this._context=e}Ym.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 fa(e){return new Ym(e)}function Zm(e){return e[0]}function Jm(e){return e[1]}function Qm(e,t){var r=oe(!0),n=null,i=fa,a=null,o=cf(u);e=typeof e=="function"?e:e===void 0?Zm:oe(e),t=typeof t=="function"?t:t===void 0?Jm:oe(t);function u(c){var s,f=(c=sf(c)).length,l,h=!1,d;for(n==null&&(a=i(d=o())),s=0;s<=f;++s)!(s<f&&r(l=c[s],s,c))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(l,s,c),+t(l,s,c));if(d)return a=null,d+""||null}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:oe(+c),u):e},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:oe(+c),u):t},u.defined=function(c){return arguments.length?(r=typeof c=="function"?c:oe(!!c),u):r},u.curve=function(c){return arguments.length?(i=c,n!=null&&(a=i(n)),u):i},u.context=function(c){return arguments.length?(c==null?n=a=null:a=i(n=c),u):n},u}function Kn(e,t,r){var n=null,i=oe(!0),a=null,o=fa,u=null,c=cf(s);e=typeof e=="function"?e:e===void 0?Zm:oe(+e),t=typeof t=="function"?t:oe(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?Jm:oe(+r);function s(l){var h,d,y,v=(l=sf(l)).length,p,b=!1,x,w=new Array(v),O=new Array(v);for(a==null&&(u=o(x=c())),h=0;h<=v;++h){if(!(h<v&&i(p=l[h],h,l))===b)if(b=!b)d=h,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=h-1;y>=d;--y)u.point(w[y],O[y]);u.lineEnd(),u.areaEnd()}b&&(w[h]=+e(p,h,l),O[h]=+t(p,h,l),u.point(n?+n(p,h,l):w[h],r?+r(p,h,l):O[h]))}if(x)return u=null,x+""||null}function f(){return Qm().defined(i).curve(o).context(a)}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:oe(+l),n=null,s):e},s.x0=function(l){return arguments.length?(e=typeof l=="function"?l:oe(+l),s):e},s.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:oe(+l),s):n},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:oe(+l),r=null,s):t},s.y0=function(l){return arguments.length?(t=typeof l=="function"?l:oe(+l),s):t},s.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:oe(+l),s):r},s.lineX0=s.lineY0=function(){return f().x(e).y(t)},s.lineY1=function(){return f().x(e).y(r)},s.lineX1=function(){return f().x(n).y(t)},s.defined=function(l){return arguments.length?(i=typeof l=="function"?l:oe(!!l),s):i},s.curve=function(l){return arguments.length?(o=l,a!=null&&(u=o(a)),s):o},s.context=function(l){return arguments.length?(l==null?a=u=null:u=o(a=l),s):a},s}class eb{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 dO(e){return new eb(e,!0)}function vO(e){return new eb(e,!1)}const lf={draw(e,t){const r=Qe(t/li);e.moveTo(r,0),e.arc(0,0,r,0,la)}},yO={draw(e,t){const r=Qe(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()}},tb=Qe(1/3),gO=tb*2,mO={draw(e,t){const r=Qe(t/gO),n=r*tb;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},bO={draw(e,t){const r=Qe(t),n=-r/2;e.rect(n,n,r,r)}},xO=.8908130915292852,rb=si(li/10)/si(7*li/10),wO=si(la/10)*rb,OO=-Xm(la/10)*rb,_O={draw(e,t){const r=Qe(t*xO),n=wO*r,i=OO*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=la*a/5,u=Xm(o),c=si(o);e.lineTo(c*r,-u*r),e.lineTo(u*n-c*i,c*n+u*i)}e.closePath()}},Yo=Qe(3),SO={draw(e,t){const r=-Qe(t/(Yo*3));e.moveTo(0,r*2),e.lineTo(-Yo*r,-r),e.lineTo(Yo*r,-r),e.closePath()}},Be=-.5,Le=Qe(3)/2,Hs=1/Qe(12),AO=(Hs/2+1)*3,PO={draw(e,t){const r=Qe(t/AO),n=r/2,i=r*Hs,a=n,o=r*Hs+r,u=-a,c=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,c),e.lineTo(Be*n-Le*i,Le*n+Be*i),e.lineTo(Be*a-Le*o,Le*a+Be*o),e.lineTo(Be*u-Le*c,Le*u+Be*c),e.lineTo(Be*n+Le*i,Be*i-Le*n),e.lineTo(Be*a+Le*o,Be*o-Le*a),e.lineTo(Be*u+Le*c,Be*c-Le*u),e.closePath()}};function TO(e,t){let r=null,n=cf(i);e=typeof e=="function"?e:oe(e||lf),t=typeof t=="function"?t:oe(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:oe(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:oe(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function fi(){}function hi(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 nb(e){this._context=e}nb.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:hi(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:hi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function EO(e){return new nb(e)}function ib(e){this._context=e}ib.prototype={areaStart:fi,areaEnd:fi,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:hi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function jO(e){return new ib(e)}function ab(e){this._context=e}ab.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:hi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function MO(e){return new ab(e)}function ob(e){this._context=e}ob.prototype={areaStart:fi,areaEnd:fi,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 CO(e){return new ob(e)}function Sp(e){return e<0?-1:1}function Ap(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(Sp(a)+Sp(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function Pp(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Zo(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function pi(e){this._context=e}pi.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:Zo(this,this._t0,Pp(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,Zo(this,Pp(this,r=Ap(this,e,t)),r);break;default:Zo(this,this._t0,r=Ap(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function ub(e){this._context=new cb(e)}(ub.prototype=Object.create(pi.prototype)).point=function(e,t){pi.prototype.point.call(this,t,e)};function cb(e){this._context=e}cb.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 $O(e){return new pi(e)}function IO(e){return new ub(e)}function sb(e){this._context=e}sb.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=Tp(e),i=Tp(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 Tp(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 RO(e){return new sb(e)}function ha(e,t){this._context=e,this._t=t}ha.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function kO(e){return new ha(e,.5)}function DO(e){return new ha(e,0)}function NO(e){return new ha(e,1)}function lr(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Gs(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function qO(e,t){return e[t]}function BO(e){const t=[];return t.key=e,t}function LO(){var e=oe([]),t=Gs,r=lr,n=qO;function i(a){var o=Array.from(e.apply(this,arguments),BO),u,c=o.length,s=-1,f;for(const l of a)for(u=0,++s;u<c;++u)(o[u][s]=[0,+n(l,o[u].key,s,a)]).data=l;for(u=0,f=sf(t(o));u<c;++u)o[f[u]].index=u;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:oe(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:oe(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Gs:typeof a=="function"?a:oe(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??lr,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}lr(e,t)}}function UO(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}lr(e,t)}}function WO(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,c=0,s=0;u<o;++u){for(var f=e[t[u]],l=f[n][1]||0,h=f[n-1][1]||0,d=(l-h)/2,y=0;y<u;++y){var v=e[t[y]],p=v[n][1]||0,b=v[n-1][1]||0;d+=p-b}c+=l,s+=d*l}i[n-1][1]+=i[n-1][0]=r,c&&(r-=s/c)}i[n-1][1]+=i[n-1][0]=r,lr(e,t)}}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 zO=["type","size","sizeType"];function Ks(){return Ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ks.apply(this,arguments)}function 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 jp(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){HO(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 HO(e,t,r){return t=GO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GO(e){var t=KO(e,"string");return en(t)=="symbol"?t:t+""}function KO(e,t){if(en(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(en(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function XO(e,t){if(e==null)return{};var r=VO(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 VO(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 lb={symbolCircle:lf,symbolCross:yO,symbolDiamond:mO,symbolSquare:bO,symbolStar:_O,symbolTriangle:SO,symbolWye:PO},YO=Math.PI/180,ZO=function(t){var r="symbol".concat(sa(t));return lb[r]||lf},JO=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*YO;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}},QO=function(t,r){lb["symbol".concat(sa(t))]=r},ff=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,u=o===void 0?"area":o,c=XO(t,zO),s=jp(jp({},c),{},{type:n,size:a,sizeType:u}),f=function(){var p=ZO(n),b=TO().type(p).size(JO(a,u,n));return b()},l=s.className,h=s.cx,d=s.cy,y=ee(s,!0);return h===+h&&d===+d&&a===+a?T.createElement("path",Ks({},y,{className:te("recharts-symbols",l),transform:"translate(".concat(h,", ").concat(d,")"),d:f()})):null};ff.registerSymbol=QO;function fr(e){"@babel/helpers - typeof";return fr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fr(e)}function Xs(){return Xs=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},Xs.apply(this,arguments)}function Mp(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 e1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mp(Object(r),!0).forEach(function(n){tn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function t1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r1(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,hb(n.key),n)}}function n1(e,t,r){return t&&r1(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function i1(e,t,r){return t=di(t),a1(e,fb()?Reflect.construct(t,r||[],di(e).constructor):t.apply(e,r))}function a1(e,t){if(t&&(fr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return o1(e)}function o1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fb=function(){return!!e})()}function di(e){return di=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},di(e)}function u1(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&&Vs(e,t)}function Vs(e,t){return Vs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vs(e,t)}function tn(e,t,r){return t=hb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hb(e){var t=c1(e,"string");return fr(t)=="symbol"?t:t+""}function c1(e,t){if(fr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Fe=32,hf=(function(e){function t(){return t1(this,t),i1(this,t,arguments)}return u1(t,e),n1(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Fe/2,o=Fe/6,u=Fe/3,c=n.inactive?i:n.color;if(n.type==="plainline")return T.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Fe,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return T.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(a,"h").concat(u,`
2
+ A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,`
3
+ H`).concat(Fe,"M").concat(2*u,",").concat(a,`
4
+ A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return T.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(Fe/8,"h").concat(Fe,"v").concat(Fe*3/4,"h").concat(-Fe,"z"),className:"recharts-legend-icon"});if(T.isValidElement(n.legendIcon)){var s=e1({},n);return delete s.legendIcon,T.cloneElement(n.legendIcon,s)}return T.createElement(ff,{fill:c,cx:a,cy:a,size:Fe,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,u=i.layout,c=i.formatter,s=i.inactiveColor,f={x:0,y:0,width:Fe,height:Fe},l={display:u==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(d,y){var v=d.formatter||c,p=te(tn(tn({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",d.inactive));if(d.type==="none")return null;var b=Y(d.value)?null:d.value;ht(!Y(d.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=d.inactive?s:d.color;return T.createElement("li",Xs({className:p,style:l,key:"legend-item-".concat(y)},ci(n.props,d,y)),T.createElement(Fs,{width:o,height:o,viewBox:f,style:h},n.renderIcon(d)),T.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},v?v(b,d,y):b))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return T.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(N.PureComponent);tn(hf,"displayName","Legend");tn(hf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Jo,Cp;function s1(){if(Cp)return Jo;Cp=1;var e=aa();function t(){this.__data__=new e,this.size=0}return Jo=t,Jo}var Qo,$p;function l1(){if($p)return Qo;$p=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return Qo=e,Qo}var eu,Ip;function f1(){if(Ip)return eu;Ip=1;function e(t){return this.__data__.get(t)}return eu=e,eu}var tu,Rp;function h1(){if(Rp)return tu;Rp=1;function e(t){return this.__data__.has(t)}return tu=e,tu}var ru,kp;function p1(){if(kp)return ru;kp=1;var e=aa(),t=tf(),r=rf(),n=200;function i(a,o){var u=this.__data__;if(u instanceof e){var c=u.__data__;if(!t||c.length<n-1)return c.push([a,o]),this.size=++u.size,this;u=this.__data__=new r(c)}return u.set(a,o),this.size=u.size,this}return ru=i,ru}var nu,Dp;function pb(){if(Dp)return nu;Dp=1;var e=aa(),t=s1(),r=l1(),n=f1(),i=h1(),a=p1();function o(u){var c=this.__data__=new e(u);this.size=c.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,nu=o,nu}var iu,Np;function d1(){if(Np)return iu;Np=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return iu=t,iu}var au,qp;function v1(){if(qp)return au;qp=1;function e(t){return this.__data__.has(t)}return au=e,au}var ou,Bp;function db(){if(Bp)return ou;Bp=1;var e=rf(),t=d1(),r=v1();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,ou=n,ou}var uu,Lp;function vb(){if(Lp)return uu;Lp=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return uu=e,uu}var cu,Fp;function yb(){if(Fp)return cu;Fp=1;function e(t,r){return t.has(r)}return cu=e,cu}var su,Up;function gb(){if(Up)return su;Up=1;var e=db(),t=vb(),r=yb(),n=1,i=2;function a(o,u,c,s,f,l){var h=c&n,d=o.length,y=u.length;if(d!=y&&!(h&&y>d))return!1;var v=l.get(o),p=l.get(u);if(v&&p)return v==u&&p==o;var b=-1,x=!0,w=c&i?new e:void 0;for(l.set(o,u),l.set(u,o);++b<d;){var O=o[b],g=u[b];if(s)var m=h?s(g,O,b,u,o,l):s(O,g,b,o,u,l);if(m!==void 0){if(m)continue;x=!1;break}if(w){if(!t(u,function(_,S){if(!r(w,S)&&(O===_||f(O,_,c,s,l)))return w.push(S)})){x=!1;break}}else if(!(O===g||f(O,g,c,s,l))){x=!1;break}}return l.delete(o),l.delete(u),x}return su=a,su}var lu,Wp;function y1(){if(Wp)return lu;Wp=1;var e=it(),t=e.Uint8Array;return lu=t,lu}var fu,zp;function g1(){if(zp)return fu;zp=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return fu=e,fu}var hu,Hp;function pf(){if(Hp)return hu;Hp=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return hu=e,hu}var pu,Gp;function m1(){if(Gp)return pu;Gp=1;var e=Dn(),t=y1(),r=ef(),n=gb(),i=g1(),a=pf(),o=1,u=2,c="[object Boolean]",s="[object Date]",f="[object Error]",l="[object Map]",h="[object Number]",d="[object RegExp]",y="[object Set]",v="[object String]",p="[object Symbol]",b="[object ArrayBuffer]",x="[object DataView]",w=e?e.prototype:void 0,O=w?w.valueOf:void 0;function g(m,_,S,A,M,E,P){switch(S){case x:if(m.byteLength!=_.byteLength||m.byteOffset!=_.byteOffset)return!1;m=m.buffer,_=_.buffer;case b:return!(m.byteLength!=_.byteLength||!E(new t(m),new t(_)));case c:case s:case h:return r(+m,+_);case f:return m.name==_.name&&m.message==_.message;case d:case v:return m==_+"";case l:var j=i;case y:var $=A&o;if(j||(j=a),m.size!=_.size&&!$)return!1;var C=P.get(m);if(C)return C==_;A|=u,P.set(m,_);var R=n(j(m),j(_),A,M,E,P);return P.delete(m),R;case p:if(O)return O.call(m)==O.call(_)}return!1}return pu=g,pu}var du,Kp;function mb(){if(Kp)return du;Kp=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return du=e,du}var vu,Xp;function b1(){if(Xp)return vu;Xp=1;var e=mb(),t=Re();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return vu=r,vu}var yu,Vp;function x1(){if(Vp)return yu;Vp=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var u=t[n];r(u,n,t)&&(o[a++]=u)}return o}return yu=e,yu}var gu,Yp;function w1(){if(Yp)return gu;Yp=1;function e(){return[]}return gu=e,gu}var mu,Zp;function O1(){if(Zp)return mu;Zp=1;var e=x1(),t=w1(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(u){return n.call(o,u)}))}:t;return mu=a,mu}var bu,Jp;function _1(){if(Jp)return bu;Jp=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return bu=e,bu}var xu,Qp;function S1(){if(Qp)return xu;Qp=1;var e=gt(),t=mt(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return xu=n,xu}var wu,ed;function df(){if(ed)return wu;ed=1;var e=S1(),t=mt(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return wu=a,wu}var Kr={exports:{}},Ou,td;function A1(){if(td)return Ou;td=1;function e(){return!1}return Ou=e,Ou}Kr.exports;var rd;function bb(){return rd||(rd=1,(function(e,t){var r=it(),n=A1(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?r.Buffer:void 0,c=u?u.isBuffer:void 0,s=c||n;e.exports=s})(Kr,Kr.exports)),Kr.exports}var _u,nd;function vf(){if(nd)return _u;nd=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return _u=r,_u}var Su,id;function yf(){if(id)return Su;id=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Su=t,Su}var Au,ad;function P1(){if(ad)return Au;ad=1;var e=gt(),t=yf(),r=mt(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",c="[object Function]",s="[object Map]",f="[object Number]",l="[object Object]",h="[object RegExp]",d="[object Set]",y="[object String]",v="[object WeakMap]",p="[object ArrayBuffer]",b="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",g="[object Int16Array]",m="[object Int32Array]",_="[object Uint8Array]",S="[object Uint8ClampedArray]",A="[object Uint16Array]",M="[object Uint32Array]",E={};E[x]=E[w]=E[O]=E[g]=E[m]=E[_]=E[S]=E[A]=E[M]=!0,E[n]=E[i]=E[p]=E[a]=E[b]=E[o]=E[u]=E[c]=E[s]=E[f]=E[l]=E[h]=E[d]=E[y]=E[v]=!1;function P(j){return r(j)&&t(j.length)&&!!E[e(j)]}return Au=P,Au}var Pu,od;function xb(){if(od)return Pu;od=1;function e(t){return function(r){return t(r)}}return Pu=e,Pu}var Xr={exports:{}};Xr.exports;var ud;function T1(){return ud||(ud=1,(function(e,t){var r=Lm(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,u=(function(){try{var c=i&&i.require&&i.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}})();e.exports=u})(Xr,Xr.exports)),Xr.exports}var Tu,cd;function wb(){if(cd)return Tu;cd=1;var e=P1(),t=xb(),r=T1(),n=r&&r.isTypedArray,i=n?t(n):e;return Tu=i,Tu}var Eu,sd;function E1(){if(sd)return Eu;sd=1;var e=_1(),t=df(),r=Re(),n=bb(),i=vf(),a=wb(),o=Object.prototype,u=o.hasOwnProperty;function c(s,f){var l=r(s),h=!l&&t(s),d=!l&&!h&&n(s),y=!l&&!h&&!d&&a(s),v=l||h||d||y,p=v?e(s.length,String):[],b=p.length;for(var x in s)(f||u.call(s,x))&&!(v&&(x=="length"||d&&(x=="offset"||x=="parent")||y&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||i(x,b)))&&p.push(x);return p}return Eu=c,Eu}var ju,ld;function j1(){if(ld)return ju;ld=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return ju=t,ju}var Mu,fd;function Ob(){if(fd)return Mu;fd=1;function e(t,r){return function(n){return t(r(n))}}return Mu=e,Mu}var Cu,hd;function M1(){if(hd)return Cu;hd=1;var e=Ob(),t=e(Object.keys,Object);return Cu=t,Cu}var $u,pd;function C1(){if(pd)return $u;pd=1;var e=j1(),t=M1(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var u in Object(a))n.call(a,u)&&u!="constructor"&&o.push(u);return o}return $u=i,$u}var Iu,dd;function qn(){if(dd)return Iu;dd=1;var e=Ql(),t=yf();function r(n){return n!=null&&t(n.length)&&!e(n)}return Iu=r,Iu}var Ru,vd;function pa(){if(vd)return Ru;vd=1;var e=E1(),t=C1(),r=qn();function n(i){return r(i)?e(i):t(i)}return Ru=n,Ru}var ku,yd;function $1(){if(yd)return ku;yd=1;var e=b1(),t=O1(),r=pa();function n(i){return e(i,r,t)}return ku=n,ku}var Du,gd;function I1(){if(gd)return Du;gd=1;var e=$1(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u,c,s,f){var l=u&t,h=e(a),d=h.length,y=e(o),v=y.length;if(d!=v&&!l)return!1;for(var p=d;p--;){var b=h[p];if(!(l?b in o:n.call(o,b)))return!1}var x=f.get(a),w=f.get(o);if(x&&w)return x==o&&w==a;var O=!0;f.set(a,o),f.set(o,a);for(var g=l;++p<d;){b=h[p];var m=a[b],_=o[b];if(c)var S=l?c(_,m,b,o,a,f):c(m,_,b,a,o,f);if(!(S===void 0?m===_||s(m,_,u,c,f):S)){O=!1;break}g||(g=b=="constructor")}if(O&&!g){var A=a.constructor,M=o.constructor;A!=M&&"constructor"in a&&"constructor"in o&&!(typeof A=="function"&&A instanceof A&&typeof M=="function"&&M instanceof M)&&(O=!1)}return f.delete(a),f.delete(o),O}return Du=i,Du}var Nu,md;function R1(){if(md)return Nu;md=1;var e=Xt(),t=it(),r=e(t,"DataView");return Nu=r,Nu}var qu,bd;function k1(){if(bd)return qu;bd=1;var e=Xt(),t=it(),r=e(t,"Promise");return qu=r,qu}var Bu,xd;function _b(){if(xd)return Bu;xd=1;var e=Xt(),t=it(),r=e(t,"Set");return Bu=r,Bu}var Lu,wd;function D1(){if(wd)return Lu;wd=1;var e=Xt(),t=it(),r=e(t,"WeakMap");return Lu=r,Lu}var Fu,Od;function N1(){if(Od)return Fu;Od=1;var e=R1(),t=tf(),r=k1(),n=_b(),i=D1(),a=gt(),o=Fm(),u="[object Map]",c="[object Object]",s="[object Promise]",f="[object Set]",l="[object WeakMap]",h="[object DataView]",d=o(e),y=o(t),v=o(r),p=o(n),b=o(i),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=h||t&&x(new t)!=u||r&&x(r.resolve())!=s||n&&x(new n)!=f||i&&x(new i)!=l)&&(x=function(w){var O=a(w),g=O==c?w.constructor:void 0,m=g?o(g):"";if(m)switch(m){case d:return h;case y:return u;case v:return s;case p:return f;case b:return l}return O}),Fu=x,Fu}var Uu,_d;function q1(){if(_d)return Uu;_d=1;var e=pb(),t=gb(),r=m1(),n=I1(),i=N1(),a=Re(),o=bb(),u=wb(),c=1,s="[object Arguments]",f="[object Array]",l="[object Object]",h=Object.prototype,d=h.hasOwnProperty;function y(v,p,b,x,w,O){var g=a(v),m=a(p),_=g?f:i(v),S=m?f:i(p);_=_==s?l:_,S=S==s?l:S;var A=_==l,M=S==l,E=_==S;if(E&&o(v)){if(!o(p))return!1;g=!0,A=!1}if(E&&!A)return O||(O=new e),g||u(v)?t(v,p,b,x,w,O):r(v,p,_,b,x,w,O);if(!(b&c)){var P=A&&d.call(v,"__wrapped__"),j=M&&d.call(p,"__wrapped__");if(P||j){var $=P?v.value():v,C=j?p.value():p;return O||(O=new e),w($,C,b,x,O)}}return E?(O||(O=new e),n(v,p,b,x,w,O)):!1}return Uu=y,Uu}var Wu,Sd;function gf(){if(Sd)return Wu;Sd=1;var e=q1(),t=mt();function r(n,i,a,o,u){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,u)}return Wu=r,Wu}var zu,Ad;function B1(){if(Ad)return zu;Ad=1;var e=pb(),t=gf(),r=1,n=2;function i(a,o,u,c){var s=u.length,f=s,l=!c;if(a==null)return!f;for(a=Object(a);s--;){var h=u[s];if(l&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++s<f;){h=u[s];var d=h[0],y=a[d],v=h[1];if(l&&h[2]){if(y===void 0&&!(d in a))return!1}else{var p=new e;if(c)var b=c(y,v,d,a,o,p);if(!(b===void 0?t(v,y,r|n,c,p):b))return!1}}return!0}return zu=i,zu}var Hu,Pd;function Sb(){if(Pd)return Hu;Pd=1;var e=Pt();function t(r){return r===r&&!e(r)}return Hu=t,Hu}var Gu,Td;function L1(){if(Td)return Gu;Td=1;var e=Sb(),t=pa();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],u=n[o];i[a]=[o,u,e(u)]}return i}return Gu=r,Gu}var Ku,Ed;function Ab(){if(Ed)return Ku;Ed=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Ku=e,Ku}var Xu,jd;function F1(){if(jd)return Xu;jd=1;var e=B1(),t=L1(),r=Ab();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return Xu=n,Xu}var Vu,Md;function U1(){if(Md)return Vu;Md=1;function e(t,r){return t!=null&&r in Object(t)}return Vu=e,Vu}var Yu,Cd;function W1(){if(Cd)return Yu;Cd=1;var e=zm(),t=df(),r=Re(),n=vf(),i=yf(),a=ua();function o(u,c,s){c=e(c,u);for(var f=-1,l=c.length,h=!1;++f<l;){var d=a(c[f]);if(!(h=u!=null&&s(u,d)))break;u=u[d]}return h||++f!=l?h:(l=u==null?0:u.length,!!l&&i(l)&&n(d,l)&&(r(u)||t(u)))}return Yu=o,Yu}var Zu,$d;function z1(){if($d)return Zu;$d=1;var e=U1(),t=W1();function r(n,i){return n!=null&&t(n,i,e)}return Zu=r,Zu}var Ju,Id;function H1(){if(Id)return Ju;Id=1;var e=gf(),t=Hm(),r=z1(),n=Jl(),i=Sb(),a=Ab(),o=ua(),u=1,c=2;function s(f,l){return n(f)&&i(l)?a(o(f),l):function(h){var d=t(h,f);return d===void 0&&d===l?r(h,f):e(l,d,u|c)}}return Ju=s,Ju}var Qu,Rd;function Ir(){if(Rd)return Qu;Rd=1;function e(t){return t}return Qu=e,Qu}var ec,kd;function G1(){if(kd)return ec;kd=1;function e(t){return function(r){return r?.[t]}}return ec=e,ec}var tc,Dd;function K1(){if(Dd)return tc;Dd=1;var e=af();function t(r){return function(n){return e(n,r)}}return tc=t,tc}var rc,Nd;function X1(){if(Nd)return rc;Nd=1;var e=G1(),t=K1(),r=Jl(),n=ua();function i(a){return r(a)?e(n(a)):t(a)}return rc=i,rc}var nc,qd;function Tt(){if(qd)return nc;qd=1;var e=F1(),t=H1(),r=Ir(),n=Re(),i=X1();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return nc=a,nc}var ic,Bd;function Pb(){if(Bd)return ic;Bd=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return ic=e,ic}var ac,Ld;function V1(){if(Ld)return ac;Ld=1;function e(t){return t!==t}return ac=e,ac}var oc,Fd;function Y1(){if(Fd)return oc;Fd=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return oc=e,oc}var uc,Ud;function Z1(){if(Ud)return uc;Ud=1;var e=Pb(),t=V1(),r=Y1();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return uc=n,uc}var cc,Wd;function J1(){if(Wd)return cc;Wd=1;var e=Z1();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return cc=t,cc}var sc,zd;function Q1(){if(zd)return sc;zd=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return sc=e,sc}var lc,Hd;function e_(){if(Hd)return lc;Hd=1;function e(){}return lc=e,lc}var fc,Gd;function t_(){if(Gd)return fc;Gd=1;var e=_b(),t=e_(),r=pf(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return fc=i,fc}var hc,Kd;function r_(){if(Kd)return hc;Kd=1;var e=db(),t=J1(),r=Q1(),n=yb(),i=t_(),a=pf(),o=200;function u(c,s,f){var l=-1,h=t,d=c.length,y=!0,v=[],p=v;if(f)y=!1,h=r;else if(d>=o){var b=s?null:i(c);if(b)return a(b);y=!1,h=n,p=new e}else p=s?[]:v;e:for(;++l<d;){var x=c[l],w=s?s(x):x;if(x=f||x!==0?x:0,y&&w===w){for(var O=p.length;O--;)if(p[O]===w)continue e;s&&p.push(w),v.push(x)}else h(p,w,f)||(p!==v&&p.push(w),v.push(x))}return v}return hc=u,hc}var pc,Xd;function n_(){if(Xd)return pc;Xd=1;var e=Tt(),t=r_();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return pc=r,pc}var i_=n_();const Vd=ue(i_);function Tb(e,t,r){return t===!0?Vd(e,r):Y(t)?Vd(e,t):e}function hr(e){"@babel/helpers - typeof";return hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hr(e)}var a_=["ref"];function Yd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function at(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yd(Object(r),!0).forEach(function(n){da(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function o_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zd(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,jb(n.key),n)}}function u_(e,t,r){return t&&Zd(e.prototype,t),r&&Zd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function c_(e,t,r){return t=vi(t),s_(e,Eb()?Reflect.construct(t,r||[],vi(e).constructor):t.apply(e,r))}function s_(e,t){if(t&&(hr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l_(e)}function l_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Eb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Eb=function(){return!!e})()}function vi(e){return vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vi(e)}function f_(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&&Ys(e,t)}function Ys(e,t){return Ys=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ys(e,t)}function da(e,t,r){return t=jb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jb(e){var t=h_(e,"string");return hr(t)=="symbol"?t:t+""}function h_(e,t){if(hr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function p_(e,t){if(e==null)return{};var r=d_(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 d_(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 v_(e){return e.value}function y_(e,t){if(T.isValidElement(e))return T.cloneElement(e,t);if(typeof e=="function")return T.createElement(e,t);t.ref;var r=p_(t,a_);return T.createElement(hf,r)}var Jd=1,ur=(function(e){function t(){var r;o_(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=c_(this,t,[].concat(i)),da(r,"lastBoundingBox",{width:-1,height:-1}),r}return f_(t,e),u_(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)>Jd||Math.abs(i.height-this.lastBoundingBox.height)>Jd)&&(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?at({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,c=i.margin,s=i.chartWidth,f=i.chartHeight,l,h;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var d=this.getBBoxSnapshot();l={left:((s||0)-d.width)/2}}else l=o==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var y=this.getBBoxSnapshot();h={top:((f||0)-y.height)/2}}else h=u==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return at(at({},l),h)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,c=i.wrapperStyle,s=i.payloadUniqBy,f=i.payload,l=at(at({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(c)),c);return T.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(d){n.wrapperNode=d}},y_(a,at(at({},this.props),{},{payload:Tb(f,s,v_)})))}}],[{key:"getWithHeight",value:function(n,i){var a=at(at({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&q(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(N.PureComponent);da(ur,"displayName","Legend");da(ur,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var dc,Qd;function g_(){if(Qd)return dc;Qd=1;var e=Dn(),t=df(),r=Re(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return dc=i,dc}var vc,ev;function Mb(){if(ev)return vc;ev=1;var e=mb(),t=g_();function r(n,i,a,o,u){var c=-1,s=n.length;for(a||(a=t),u||(u=[]);++c<s;){var f=n[c];i>0&&a(f)?i>1?r(f,i-1,a,o,u):e(u,f):o||(u[u.length]=f)}return u}return vc=r,vc}var yc,tv;function m_(){if(tv)return yc;tv=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),u=i(r),c=u.length;c--;){var s=u[t?c:++a];if(n(o[s],s,o)===!1)break}return r}}return yc=e,yc}var gc,rv;function b_(){if(rv)return gc;rv=1;var e=m_(),t=e();return gc=t,gc}var mc,nv;function Cb(){if(nv)return mc;nv=1;var e=b_(),t=pa();function r(n,i){return n&&e(n,i,t)}return mc=r,mc}var bc,iv;function x_(){if(iv)return bc;iv=1;var e=qn();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,u=n?o:-1,c=Object(i);(n?u--:++u<o)&&a(c[u],u,c)!==!1;);return i}}return bc=t,bc}var xc,av;function mf(){if(av)return xc;av=1;var e=Cb(),t=x_(),r=t(e);return xc=r,xc}var wc,ov;function $b(){if(ov)return wc;ov=1;var e=mf(),t=qn();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(u,c,s){o[++a]=i(u,c,s)}),o}return wc=r,wc}var Oc,uv;function w_(){if(uv)return Oc;uv=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Oc=e,Oc}var _c,cv;function O_(){if(cv)return _c;cv=1;var e=Cr();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,u=e(r),c=n!==void 0,s=n===null,f=n===n,l=e(n);if(!s&&!l&&!u&&r>n||u&&c&&f&&!s&&!l||a&&c&&f||!i&&f||!o)return 1;if(!a&&!u&&!l&&r<n||l&&i&&o&&!a&&!u||s&&i&&o||!c&&o||!f)return-1}return 0}return _c=t,_c}var Sc,sv;function __(){if(sv)return Sc;sv=1;var e=O_();function t(r,n,i){for(var a=-1,o=r.criteria,u=n.criteria,c=o.length,s=i.length;++a<c;){var f=e(o[a],u[a]);if(f){if(a>=s)return f;var l=i[a];return f*(l=="desc"?-1:1)}}return r.index-n.index}return Sc=t,Sc}var Ac,lv;function S_(){if(lv)return Ac;lv=1;var e=nf(),t=af(),r=Tt(),n=$b(),i=w_(),a=xb(),o=__(),u=Ir(),c=Re();function s(f,l,h){l.length?l=e(l,function(v){return c(v)?function(p){return t(p,v.length===1?v[0]:v)}:v}):l=[u];var d=-1;l=e(l,a(r));var y=n(f,function(v,p,b){var x=e(l,function(w){return w(v)});return{criteria:x,index:++d,value:v}});return i(y,function(v,p){return o(v,p,h)})}return Ac=s,Ac}var Pc,fv;function A_(){if(fv)return Pc;fv=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Pc=e,Pc}var Tc,hv;function P_(){if(hv)return Tc;hv=1;var e=A_(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,u=-1,c=t(o.length-i,0),s=Array(c);++u<c;)s[u]=o[i+u];u=-1;for(var f=Array(i+1);++u<i;)f[u]=o[u];return f[i]=a(s),e(n,this,f)}}return Tc=r,Tc}var Ec,pv;function T_(){if(pv)return Ec;pv=1;function e(t){return function(){return t}}return Ec=e,Ec}var jc,dv;function Ib(){if(dv)return jc;dv=1;var e=Xt(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return jc=t,jc}var Mc,vv;function E_(){if(vv)return Mc;vv=1;var e=T_(),t=Ib(),r=Ir(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Mc=n,Mc}var Cc,yv;function j_(){if(yv)return Cc;yv=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var u=r(),c=t-(u-o);if(o=u,c>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return Cc=n,Cc}var $c,gv;function M_(){if(gv)return $c;gv=1;var e=E_(),t=j_(),r=t(e);return $c=r,$c}var Ic,mv;function C_(){if(mv)return Ic;mv=1;var e=Ir(),t=P_(),r=M_();function n(i,a){return r(t(i,a,e),i+"")}return Ic=n,Ic}var Rc,bv;function va(){if(bv)return Rc;bv=1;var e=ef(),t=qn(),r=vf(),n=Pt();function i(a,o,u){if(!n(u))return!1;var c=typeof o;return(c=="number"?t(u)&&r(o,u.length):c=="string"&&o in u)?e(u[o],a):!1}return Rc=i,Rc}var kc,xv;function $_(){if(xv)return kc;xv=1;var e=Mb(),t=S_(),r=C_(),n=va(),i=r(function(a,o){if(a==null)return[];var u=o.length;return u>1&&n(a,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return kc=i,kc}var I_=$_();const bf=ue(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 Zs(){return Zs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zs.apply(this,arguments)}function R_(e,t){return q_(e)||N_(e,t)||D_(e,t)||k_()}function k_(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
5
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D_(e,t){if(e){if(typeof e=="string")return wv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wv(e,t)}}function wv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function N_(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function q_(e){if(Array.isArray(e))return e}function Ov(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 Dc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ov(Object(r),!0).forEach(function(n){B_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ov(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function B_(e,t,r){return t=L_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L_(e){var t=F_(e,"string");return rn(t)=="symbol"?t:t+""}function F_(e,t){if(rn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(rn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function U_(e){return Array.isArray(e)&&xe(e[0])&&xe(e[1])?e.join(" ~ "):e}var W_=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,u=o===void 0?{}:o,c=t.labelStyle,s=c===void 0?{}:c,f=t.payload,l=t.formatter,h=t.itemSorter,d=t.wrapperClassName,y=t.labelClassName,v=t.label,p=t.labelFormatter,b=t.accessibilityLayer,x=b===void 0?!1:b,w=function(){if(f&&f.length){var P={padding:0,margin:0},j=(h?bf(f,h):f).map(function($,C){if($.type==="none")return null;var R=Dc({display:"block",paddingTop:4,paddingBottom:4,color:$.color||"#000"},u),D=$.formatter||l||U_,B=$.value,L=$.name,z=B,G=L;if(D&&z!=null&&G!=null){var U=D(B,L,$,C,f);if(Array.isArray(U)){var K=R_(U,2);z=K[0],G=K[1]}else z=U}return T.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(C),style:R},xe(G)?T.createElement("span",{className:"recharts-tooltip-item-name"},G):null,xe(G)?T.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,T.createElement("span",{className:"recharts-tooltip-item-value"},z),T.createElement("span",{className:"recharts-tooltip-item-unit"},$.unit||""))});return T.createElement("ul",{className:"recharts-tooltip-item-list",style:P},j)}return null},O=Dc({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),g=Dc({margin:0},s),m=!Z(v),_=m?v:"",S=te("recharts-default-tooltip",d),A=te("recharts-tooltip-label",y);m&&p&&f!==void 0&&f!==null&&(_=p(v,f));var M=x?{role:"status","aria-live":"assertive"}:{};return T.createElement("div",Zs({className:S,style:O},M),T.createElement("p",{className:A,style:g},T.isValidElement(_)?_:"".concat(_)),w())};function nn(e){"@babel/helpers - typeof";return nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nn(e)}function Xn(e,t,r){return t=z_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z_(e){var t=H_(e,"string");return nn(t)=="symbol"?t:t+""}function H_(e,t){if(nn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(nn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qr="recharts-tooltip-wrapper",G_={visibility:"hidden"};function K_(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return te(qr,Xn(Xn(Xn(Xn({},"".concat(qr,"-right"),q(r)&&t&&q(t.x)&&r>=t.x),"".concat(qr,"-left"),q(r)&&t&&q(t.x)&&r<t.x),"".concat(qr,"-bottom"),q(n)&&t&&q(t.y)&&n>=t.y),"".concat(qr,"-top"),q(n)&&t&&q(t.y)&&n<t.y))}function _v(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,u=e.tooltipDimension,c=e.viewBox,s=e.viewBoxDimension;if(a&&q(a[n]))return a[n];var f=r[n]-u-i,l=r[n]+i;if(t[n])return o[n]?f:l;if(o[n]){var h=f,d=c[n];return h<d?Math.max(l,c[n]):Math.max(f,c[n])}var y=l+u,v=c[n]+s;return y>v?Math.max(f,c[n]):Math.max(l,c[n])}function X_(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 V_(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,c=e.viewBox,s,f,l;return o.height>0&&o.width>0&&r?(f=_v({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),l=_v({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),s=X_({translateX:f,translateY:l,useTranslate3d:u})):s=G_,{cssProperties:s,cssClasses:K_({translateX:f,translateY:l,coordinate:r})}}function pr(e){"@babel/helpers - typeof";return pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pr(e)}function Sv(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 Av(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sv(Object(r),!0).forEach(function(n){Qs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Y_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Z_(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,kb(n.key),n)}}function J_(e,t,r){return t&&Z_(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q_(e,t,r){return t=yi(t),eS(e,Rb()?Reflect.construct(t,r||[],yi(e).constructor):t.apply(e,r))}function eS(e,t){if(t&&(pr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tS(e)}function tS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rb=function(){return!!e})()}function yi(e){return yi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yi(e)}function rS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Js(e,t)}function Js(e,t){return Js=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Js(e,t)}function Qs(e,t,r){return t=kb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kb(e){var t=nS(e,"string");return pr(t)=="symbol"?t:t+""}function nS(e,t){if(pr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Pv=1,iS=(function(e){function t(){var r;Y_(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Q_(this,t,[].concat(i)),Qs(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Qs(r,"handleKeyDown",function(o){if(o.key==="Escape"){var u,c,s,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(c=r.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&u!==void 0?u:0,y:(s=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&s!==void 0?s:0}})}}),r}return rS(t,e),J_(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Pv||Math.abs(n.height-this.state.lastBoundingBox.height)>Pv)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,c=i.animationEasing,s=i.children,f=i.coordinate,l=i.hasPayload,h=i.isAnimationActive,d=i.offset,y=i.position,v=i.reverseDirection,p=i.useTranslate3d,b=i.viewBox,x=i.wrapperStyle,w=V_({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:d,position:y,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:p,viewBox:b}),O=w.cssClasses,g=w.cssProperties,m=Av(Av({transition:h&&a?"transform ".concat(u,"ms ").concat(c):void 0},g),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},x);return T.createElement("div",{tabIndex:-1,className:O,style:m,ref:function(S){n.wrapperNode=S}},s)}}])})(N.PureComponent),aS=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Bn={isSsr:aS()};function dr(e){"@babel/helpers - typeof";return dr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dr(e)}function Tv(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 Ev(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tv(Object(r),!0).forEach(function(n){xf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Nb(n.key),n)}}function cS(e,t,r){return t&&uS(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sS(e,t,r){return t=gi(t),lS(e,Db()?Reflect.construct(t,r||[],gi(e).constructor):t.apply(e,r))}function lS(e,t){if(t&&(dr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fS(e)}function fS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Db(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Db=function(){return!!e})()}function gi(e){return gi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gi(e)}function hS(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&el(e,t)}function el(e,t){return el=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},el(e,t)}function xf(e,t,r){return t=Nb(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nb(e){var t=pS(e,"string");return dr(t)=="symbol"?t:t+""}function pS(e,t){if(dr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function dS(e){return e.dataKey}function vS(e,t){return T.isValidElement(e)?T.cloneElement(e,t):typeof e=="function"?T.createElement(e,t):T.createElement(W_,t)}var ot=(function(e){function t(){return oS(this,t),sS(this,t,arguments)}return hS(t,e),cS(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,c=i.animationEasing,s=i.content,f=i.coordinate,l=i.filterNull,h=i.isAnimationActive,d=i.offset,y=i.payload,v=i.payloadUniqBy,p=i.position,b=i.reverseDirection,x=i.useTranslate3d,w=i.viewBox,O=i.wrapperStyle,g=y??[];l&&g.length&&(g=Tb(y.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),v,dS));var m=g.length>0;return T.createElement(iS,{allowEscapeViewBox:o,animationDuration:u,animationEasing:c,isAnimationActive:h,active:a,coordinate:f,hasPayload:m,offset:d,position:p,reverseDirection:b,useTranslate3d:x,viewBox:w,wrapperStyle:O},vS(s,Ev(Ev({},this.props),{},{payload:g})))}}])})(N.PureComponent);xf(ot,"displayName","Tooltip");xf(ot,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Bn.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 Nc,jv;function yS(){if(jv)return Nc;jv=1;var e=it(),t=function(){return e.Date.now()};return Nc=t,Nc}var qc,Mv;function gS(){if(Mv)return qc;Mv=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return qc=t,qc}var Bc,Cv;function mS(){if(Cv)return Bc;Cv=1;var e=gS(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Bc=r,Bc}var Lc,$v;function qb(){if($v)return Lc;$v=1;var e=mS(),t=Pt(),r=Cr(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function c(s){if(typeof s=="number")return s;if(r(s))return n;if(t(s)){var f=typeof s.valueOf=="function"?s.valueOf():s;s=t(f)?f+"":f}if(typeof s!="string")return s===0?s:+s;s=e(s);var l=a.test(s);return l||o.test(s)?u(s.slice(2),l?2:8):i.test(s)?n:+s}return Lc=c,Lc}var Fc,Iv;function bS(){if(Iv)return Fc;Iv=1;var e=Pt(),t=yS(),r=qb(),n="Expected a function",i=Math.max,a=Math.min;function o(u,c,s){var f,l,h,d,y,v,p=0,b=!1,x=!1,w=!0;if(typeof u!="function")throw new TypeError(n);c=r(c)||0,e(s)&&(b=!!s.leading,x="maxWait"in s,h=x?i(r(s.maxWait)||0,c):h,w="trailing"in s?!!s.trailing:w);function O(j){var $=f,C=l;return f=l=void 0,p=j,d=u.apply(C,$),d}function g(j){return p=j,y=setTimeout(S,c),b?O(j):d}function m(j){var $=j-v,C=j-p,R=c-$;return x?a(R,h-C):R}function _(j){var $=j-v,C=j-p;return v===void 0||$>=c||$<0||x&&C>=h}function S(){var j=t();if(_(j))return A(j);y=setTimeout(S,m(j))}function A(j){return y=void 0,w&&f?O(j):(f=l=void 0,d)}function M(){y!==void 0&&clearTimeout(y),p=0,f=v=l=y=void 0}function E(){return y===void 0?d:A(t())}function P(){var j=t(),$=_(j);if(f=arguments,l=this,v=j,$){if(y===void 0)return g(v);if(x)return clearTimeout(y),y=setTimeout(S,c),O(v)}return y===void 0&&(y=setTimeout(S,c)),d}return P.cancel=M,P.flush=E,P}return Fc=o,Fc}var Uc,Rv;function xS(){if(Rv)return Uc;Rv=1;var e=bS(),t=Pt(),r="Expected a function";function n(i,a,o){var u=!0,c=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(u="leading"in o?!!o.leading:u,c="trailing"in o?!!o.trailing:c),e(i,a,{leading:u,maxWait:a,trailing:c})}return Uc=n,Uc}var wS=xS();const Bb=ue(wS);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 kv(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 Vn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kv(Object(r),!0).forEach(function(n){OS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OS(e,t,r){return t=_S(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _S(e){var t=SS(e,"string");return an(t)=="symbol"?t:t+""}function SS(e,t){if(an(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(an(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AS(e,t){return jS(e)||ES(e,t)||TS(e,t)||PS()}function PS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
6
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TS(e,t){if(e){if(typeof e=="string")return Dv(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 Dv(e,t)}}function Dv(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 ES(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function jS(e){if(Array.isArray(e))return e}var kD=N.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,u=e.height,c=u===void 0?"100%":u,s=e.minWidth,f=s===void 0?0:s,l=e.minHeight,h=e.maxHeight,d=e.children,y=e.debounce,v=y===void 0?0:y,p=e.id,b=e.className,x=e.onResize,w=e.style,O=w===void 0?{}:w,g=N.useRef(null),m=N.useRef();m.current=x,N.useImperativeHandle(t,function(){return Object.defineProperty(g.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),g.current},configurable:!0})});var _=N.useState({containerWidth:i.width,containerHeight:i.height}),S=AS(_,2),A=S[0],M=S[1],E=N.useCallback(function(j,$){M(function(C){var R=Math.round(j),D=Math.round($);return C.containerWidth===R&&C.containerHeight===D?C:{containerWidth:R,containerHeight:D}})},[]);N.useEffect(function(){var j=function(L){var z,G=L[0].contentRect,U=G.width,K=G.height;E(U,K),(z=m.current)===null||z===void 0||z.call(m,U,K)};v>0&&(j=Bb(j,v,{trailing:!0,leading:!1}));var $=new ResizeObserver(j),C=g.current.getBoundingClientRect(),R=C.width,D=C.height;return E(R,D),$.observe(g.current),function(){$.disconnect()}},[E,v]);var P=N.useMemo(function(){var j=A.containerWidth,$=A.containerHeight;if(j<0||$<0)return null;ht(Nt(o)||Nt(c),`The width(%s) and height(%s) are both fixed numbers,
7
+ maybe you don't need to use a ResponsiveContainer.`,o,c),ht(!r||r>0,"The aspect(%s) must be greater than zero.",r);var C=Nt(o)?j:o,R=Nt(c)?$:c;r&&r>0&&(C?R=C/r:R&&(C=R*r),h&&R>h&&(R=h)),ht(C>0||R>0,`The width(%s) and height(%s) of chart should be greater than 0,
8
+ please check the style of container, or the props width(%s) and height(%s),
9
+ or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
10
+ height and width.`,C,R,o,c,f,l,r);var D=!Array.isArray(d)&&ft(d.type).endsWith("Chart");return T.Children.map(d,function(B){return T.isValidElement(B)?N.cloneElement(B,Vn({width:C,height:R},D?{style:Vn({height:"100%",width:"100%",maxHeight:R,maxWidth:C},B.props.style)}:{})):B})},[r,d,c,h,l,f,A,o]);return T.createElement("div",{id:p?"".concat(p):void 0,className:te("recharts-responsive-container",b),style:Vn(Vn({},O),{},{width:o,height:c,minWidth:f,minHeight:l,maxHeight:h}),ref:g},P)}),Lb=function(t){return null};Lb.displayName="Cell";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 Nv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nv(Object(r),!0).forEach(function(n){MS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function MS(e,t,r){return t=CS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CS(e){var t=$S(e,"string");return on(t)=="symbol"?t:t+""}function $S(e,t){if(on(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(on(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var er={widthCache:{},cacheCount:0},IS=2e3,RS={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},qv="recharts_measurement_span";function kS(e){var t=tl({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Yr=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Bn.isSsr)return{width:0,height:0};var n=kS(r),i=JSON.stringify({text:t,copyStyle:n});if(er.widthCache[i])return er.widthCache[i];try{var a=document.getElementById(qv);a||(a=document.createElement("span"),a.setAttribute("id",qv),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=tl(tl({},RS),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),c={width:u.width,height:u.height};return er.widthCache[i]=c,++er.cacheCount>IS&&(er.cacheCount=0,er.widthCache={}),c}catch{return{width:0,height:0}}},DS=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function un(e){"@babel/helpers - typeof";return un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},un(e)}function mi(e,t){return LS(e)||BS(e,t)||qS(e,t)||NS()}function NS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
11
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qS(e,t){if(e){if(typeof e=="string")return Bv(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 Bv(e,t)}}function Bv(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 BS(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function LS(e){if(Array.isArray(e))return e}function FS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lv(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,WS(n.key),n)}}function US(e,t,r){return t&&Lv(e.prototype,t),r&&Lv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function WS(e){var t=zS(e,"string");return un(t)=="symbol"?t:t+""}function zS(e,t){if(un(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Fv=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Uv=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,HS=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,GS=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Fb={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},KS=Object.keys(Fb),nr="NaN";function XS(e,t){return e*Fb[t]}var Yn=(function(){function e(t,r){FS(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!HS.test(r)&&(this.num=NaN,this.unit=""),KS.includes(r)&&(this.num=XS(t,r),this.unit="px")}return US(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=GS.exec(r))!==null&&n!==void 0?n:[],a=mi(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])})();function Ub(e){if(e.includes(nr))return nr;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=Fv.exec(t))!==null&&r!==void 0?r:[],i=mi(n,4),a=i[1],o=i[2],u=i[3],c=Yn.parse(a??""),s=Yn.parse(u??""),f=o==="*"?c.multiply(s):c.divide(s);if(f.isNaN())return nr;t=t.replace(Fv,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,h=(l=Uv.exec(t))!==null&&l!==void 0?l:[],d=mi(h,4),y=d[1],v=d[2],p=d[3],b=Yn.parse(y??""),x=Yn.parse(p??""),w=v==="+"?b.add(x):b.subtract(x);if(w.isNaN())return nr;t=t.replace(Uv,w.toString())}return t}var Wv=/\(([^()]*)\)/;function VS(e){for(var t=e;t.includes("(");){var r=Wv.exec(t),n=mi(r,2),i=n[1];t=t.replace(Wv,Ub(i))}return t}function YS(e){var t=e.replace(/\s+/g,"");return t=VS(t),t=Ub(t),t}function ZS(e){try{return YS(e)}catch{return nr}}function Wc(e){var t=ZS(e.slice(5,-1));return t===nr?"":t}var JS=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],QS=["dx","dy","angle","className","breakAll"];function rl(){return rl=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},rl.apply(this,arguments)}function zv(e,t){if(e==null)return{};var r=eA(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function eA(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Hv(e,t){return iA(e)||nA(e,t)||rA(e,t)||tA()}function tA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
12
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rA(e,t){if(e){if(typeof e=="string")return Gv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gv(e,t)}}function Gv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function nA(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function iA(e){if(Array.isArray(e))return e}var Wb=/[ \f\n\r\t\v\u2028\u2029]+/,zb=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];Z(r)||(n?a=r.toString().split(""):a=r.toString().split(Wb));var o=a.map(function(c){return{word:c,width:Yr(c,i).width}}),u=n?0:Yr(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},aA=function(t,r,n,i,a){var o=t.maxLines,u=t.children,c=t.style,s=t.breakAll,f=q(o),l=u,h=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return C.reduce(function(R,D){var B=D.word,L=D.width,z=R[R.length-1];if(z&&(i==null||a||z.width+L+n<Number(i)))z.words.push(B),z.width+=L+n;else{var G={words:[B],width:L};R.push(G)}return R},[])},d=h(r),y=function(C){return C.reduce(function(R,D){return R.width>D.width?R:D})};if(!f)return d;for(var v="…",p=function(C){var R=l.slice(0,C),D=zb({breakAll:s,style:c,children:R+v}).wordsWithComputedWidth,B=h(D),L=B.length>o||y(B).width>Number(i);return[L,B]},b=0,x=l.length-1,w=0,O;b<=x&&w<=l.length-1;){var g=Math.floor((b+x)/2),m=g-1,_=p(m),S=Hv(_,2),A=S[0],M=S[1],E=p(g),P=Hv(E,1),j=P[0];if(!A&&!j&&(b=g+1),A&&j&&(x=g-1),!A&&j){O=M;break}w++}return O||d},Kv=function(t){var r=Z(t)?[]:t.toString().split(Wb);return[{words:r}]},oA=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!Bn.isSsr){var c,s,f=zb({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,h=f.spaceWidth;c=l,s=h}else return Kv(i);return aA({breakAll:o,children:i,maxLines:u,style:a},c,s,r,n)}return Kv(i)},Xv="#808080",bi=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,u=o===void 0?"1em":o,c=t.capHeight,s=c===void 0?"0.71em":c,f=t.scaleToFit,l=f===void 0?!1:f,h=t.textAnchor,d=h===void 0?"start":h,y=t.verticalAnchor,v=y===void 0?"end":y,p=t.fill,b=p===void 0?Xv:p,x=zv(t,JS),w=N.useMemo(function(){return oA({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:l,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,l,x.style,x.width]),O=x.dx,g=x.dy,m=x.angle,_=x.className,S=x.breakAll,A=zv(x,QS);if(!xe(n)||!xe(a))return null;var M=n+(q(O)?O:0),E=a+(q(g)?g:0),P;switch(v){case"start":P=Wc("calc(".concat(s,")"));break;case"middle":P=Wc("calc(".concat((w.length-1)/2," * -").concat(u," + (").concat(s," / 2))"));break;default:P=Wc("calc(".concat(w.length-1," * -").concat(u,")"));break}var j=[];if(l){var $=w[0].width,C=x.width;j.push("scale(".concat((q(C)?C/$:1)/$,")"))}return m&&j.push("rotate(".concat(m,", ").concat(M,", ").concat(E,")")),j.length&&(A.transform=j.join(" ")),T.createElement("text",rl({},ee(A,!0),{x:M,y:E,className:te("recharts-text",_),textAnchor:d,fill:b.includes("url")?Xv:b}),w.map(function(R,D){var B=R.words.join(S?"":" ");return T.createElement("tspan",{x:M,dy:D===0?P:u,key:"".concat(B,"-").concat(D)},B)}))};function St(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function uA(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function wf(e){let t,r,n;e.length!==2?(t=St,r=(u,c)=>St(e(u),c),n=(u,c)=>e(u)-c):(t=e===St||e===uA?e:cA,r=e,n=e);function i(u,c,s=0,f=u.length){if(s<f){if(t(c,c)!==0)return f;do{const l=s+f>>>1;r(u[l],c)<0?s=l+1:f=l}while(s<f)}return s}function a(u,c,s=0,f=u.length){if(s<f){if(t(c,c)!==0)return f;do{const l=s+f>>>1;r(u[l],c)<=0?s=l+1:f=l}while(s<f)}return s}function o(u,c,s=0,f=u.length){const l=i(u,c,s,f-1);return l>s&&n(u[l-1],c)>-n(u[l],c)?l-1:l}return{left:i,center:o,right:a}}function cA(){return 0}function Hb(e){return e===null?NaN:+e}function*sA(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const lA=wf(St),Ln=lA.right;wf(Hb).center;class Vv extends Map{constructor(t,r=pA){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(Yv(this,t))}has(t){return super.has(Yv(this,t))}set(t,r){return super.set(fA(this,t),r)}delete(t){return super.delete(hA(this,t))}}function Yv({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function fA({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function hA({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function pA(e){return e!==null&&typeof e=="object"?e.valueOf():e}function dA(e=St){if(e===St)return Gb;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 Gb(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const vA=Math.sqrt(50),yA=Math.sqrt(10),gA=Math.sqrt(2);function xi(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>=vA?10:a>=yA?5:a>=gA?2:1;let u,c,s;return i<0?(s=Math.pow(10,-i)/o,u=Math.round(e*s),c=Math.round(t*s),u/s<e&&++u,c/s>t&&--c,s=-s):(s=Math.pow(10,i)*o,u=Math.round(e/s),c=Math.round(t/s),u*s<e&&++u,c*s>t&&--c),c<u&&.5<=r&&r<2?xi(e,t,r*2):[u,c,s]}function nl(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?xi(t,e,r):xi(e,t,r);if(!(a>=i))return[];const u=a-i+1,c=new Array(u);if(n)if(o<0)for(let s=0;s<u;++s)c[s]=(a-s)/-o;else for(let s=0;s<u;++s)c[s]=(a-s)*o;else if(o<0)for(let s=0;s<u;++s)c[s]=(i+s)/-o;else for(let s=0;s<u;++s)c[s]=(i+s)*o;return c}function il(e,t,r){return t=+t,e=+e,r=+r,xi(e,t,r)[2]}function al(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?il(t,e,r):il(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Zv(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Jv(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function Kb(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?Gb:dA(i);n>r;){if(n-r>600){const c=n-r+1,s=t-r+1,f=Math.log(c),l=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*l*(c-l)/c)*(s-c/2<0?-1:1),d=Math.max(r,Math.floor(t-s*l/c+h)),y=Math.min(n,Math.floor(t+(c-s)*l/c+h));Kb(e,t,d,y,i)}const a=e[t];let o=r,u=n;for(Br(e,r,t),i(e[n],a)>0&&Br(e,r,n);o<u;){for(Br(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?Br(e,r,u):(++u,Br(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function Br(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function mA(e,t,r){if(e=Float64Array.from(sA(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Jv(e);if(t>=1)return Zv(e);var n,i=(n-1)*t,a=Math.floor(i),o=Zv(Kb(e,a).subarray(0,a+1)),u=Jv(e.subarray(a+1));return o+(u-o)*(i-a)}}function bA(e,t,r=Hb){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),u=+r(e[a+1],a+1,e);return o+(u-o)*(i-a)}}function xA(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 He(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function bt(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 ol=Symbol("implicit");function Of(){var e=new Vv,t=[],r=[],n=ol;function i(a){let o=e.get(a);if(o===void 0){if(n!==ol)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 Vv;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 Of(t,r).unknown(n)},He.apply(i,arguments),i}function cn(){var e=Of().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,c=0,s=0,f=.5;delete e.unknown;function l(){var h=t().length,d=i<n,y=d?i:n,v=d?n:i;a=(v-y)/Math.max(1,h-c+s*2),u&&(a=Math.floor(a)),y+=(v-y-a*(h-c))*f,o=a*(1-c),u&&(y=Math.round(y),o=Math.round(o));var p=xA(h).map(function(b){return y+a*b});return r(d?p.reverse():p)}return e.domain=function(h){return arguments.length?(t(h),l()):t()},e.range=function(h){return arguments.length?([n,i]=h,n=+n,i=+i,l()):[n,i]},e.rangeRound=function(h){return[n,i]=h,n=+n,i=+i,u=!0,l()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(u=!!h,l()):u},e.padding=function(h){return arguments.length?(c=Math.min(1,s=+h),l()):c},e.paddingInner=function(h){return arguments.length?(c=Math.min(1,h),l()):c},e.paddingOuter=function(h){return arguments.length?(s=+h,l()):s},e.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),l()):f},e.copy=function(){return cn(t(),[n,i]).round(u).paddingInner(c).paddingOuter(s).align(f)},He.apply(l(),arguments)}function Xb(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Xb(t())},e}function Zr(){return Xb(cn.apply(null,arguments).paddingInner(1))}function _f(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Vb(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Fn(){}var sn=.7,wi=1/sn,cr="\\s*([+-]?\\d+)\\s*",ln="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",tt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",wA=/^#([0-9a-f]{3,8})$/,OA=new RegExp(`^rgb\\(${cr},${cr},${cr}\\)$`),_A=new RegExp(`^rgb\\(${tt},${tt},${tt}\\)$`),SA=new RegExp(`^rgba\\(${cr},${cr},${cr},${ln}\\)$`),AA=new RegExp(`^rgba\\(${tt},${tt},${tt},${ln}\\)$`),PA=new RegExp(`^hsl\\(${ln},${tt},${tt}\\)$`),TA=new RegExp(`^hsla\\(${ln},${tt},${tt},${ln}\\)$`),Qv={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};_f(Fn,fn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ey,formatHex:ey,formatHex8:EA,formatHsl:jA,formatRgb:ty,toString:ty});function ey(){return this.rgb().formatHex()}function EA(){return this.rgb().formatHex8()}function jA(){return Yb(this).formatHsl()}function ty(){return this.rgb().formatRgb()}function fn(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=wA.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?ry(t):r===3?new Ie(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Zn(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Zn(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=OA.exec(e))?new Ie(t[1],t[2],t[3],1):(t=_A.exec(e))?new Ie(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=SA.exec(e))?Zn(t[1],t[2],t[3],t[4]):(t=AA.exec(e))?Zn(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=PA.exec(e))?ay(t[1],t[2]/100,t[3]/100,1):(t=TA.exec(e))?ay(t[1],t[2]/100,t[3]/100,t[4]):Qv.hasOwnProperty(e)?ry(Qv[e]):e==="transparent"?new Ie(NaN,NaN,NaN,0):null}function ry(e){return new Ie(e>>16&255,e>>8&255,e&255,1)}function Zn(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ie(e,t,r,n)}function MA(e){return e instanceof Fn||(e=fn(e)),e?(e=e.rgb(),new Ie(e.r,e.g,e.b,e.opacity)):new Ie}function ul(e,t,r,n){return arguments.length===1?MA(e):new Ie(e,t,r,n??1)}function Ie(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}_f(Ie,ul,Vb(Fn,{brighter(e){return e=e==null?wi:Math.pow(wi,e),new Ie(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?sn:Math.pow(sn,e),new Ie(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ie(Ft(this.r),Ft(this.g),Ft(this.b),Oi(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:ny,formatHex:ny,formatHex8:CA,formatRgb:iy,toString:iy}));function ny(){return`#${qt(this.r)}${qt(this.g)}${qt(this.b)}`}function CA(){return`#${qt(this.r)}${qt(this.g)}${qt(this.b)}${qt((isNaN(this.opacity)?1:this.opacity)*255)}`}function iy(){const e=Oi(this.opacity);return`${e===1?"rgb(":"rgba("}${Ft(this.r)}, ${Ft(this.g)}, ${Ft(this.b)}${e===1?")":`, ${e})`}`}function Oi(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ft(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function qt(e){return e=Ft(e),(e<16?"0":"")+e.toString(16)}function ay(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Xe(e,t,r,n)}function Yb(e){if(e instanceof Xe)return new Xe(e.h,e.s,e.l,e.opacity);if(e instanceof Fn||(e=fn(e)),!e)return new Xe;if(e instanceof Xe)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,u=a-i,c=(a+i)/2;return u?(t===a?o=(r-n)/u+(r<n)*6:r===a?o=(n-t)/u+2:o=(t-r)/u+4,u/=c<.5?a+i:2-a-i,o*=60):u=c>0&&c<1?0:o,new Xe(o,u,c,e.opacity)}function $A(e,t,r,n){return arguments.length===1?Yb(e):new Xe(e,t,r,n??1)}function Xe(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}_f(Xe,$A,Vb(Fn,{brighter(e){return e=e==null?wi:Math.pow(wi,e),new Xe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?sn:Math.pow(sn,e),new Xe(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Ie(zc(e>=240?e-240:e+120,i,n),zc(e,i,n),zc(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Xe(oy(this.h),Jn(this.s),Jn(this.l),Oi(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=Oi(this.opacity);return`${e===1?"hsl(":"hsla("}${oy(this.h)}, ${Jn(this.s)*100}%, ${Jn(this.l)*100}%${e===1?")":`, ${e})`}`}}));function oy(e){return e=(e||0)%360,e<0?e+360:e}function Jn(e){return Math.max(0,Math.min(1,e||0))}function zc(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 Sf=e=>()=>e;function IA(e,t){return function(r){return e+r*t}}function RA(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 kA(e){return(e=+e)==1?Zb:function(t,r){return r-t?RA(t,r,e):Sf(isNaN(t)?r:t)}}function Zb(e,t){var r=t-e;return r?IA(e,r):Sf(isNaN(e)?t:e)}const uy=(function e(t){var r=kA(t);function n(i,a){var o=r((i=ul(i)).r,(a=ul(a)).r),u=r(i.g,a.g),c=r(i.b,a.b),s=Zb(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=u(f),i.b=c(f),i.opacity=s(f),i+""}}return n.gamma=e,n})(1);function DA(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 NA(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function qA(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]=Rr(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function BA(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function _i(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function LA(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]=Rr(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var cl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Hc=new RegExp(cl.source,"g");function FA(e){return function(){return e}}function UA(e){return function(t){return e(t)+""}}function WA(e,t){var r=cl.lastIndex=Hc.lastIndex=0,n,i,a,o=-1,u=[],c=[];for(e=e+"",t=t+"";(n=cl.exec(e))&&(i=Hc.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,c.push({i:o,x:_i(n,i)})),r=Hc.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?c[0]?UA(c[0].x):FA(t):(t=c.length,function(s){for(var f=0,l;f<t;++f)u[(l=c[f]).i]=l.x(s);return u.join("")})}function Rr(e,t){var r=typeof t,n;return t==null||r==="boolean"?Sf(t):(r==="number"?_i:r==="string"?(n=fn(t))?(t=n,uy):WA:t instanceof fn?uy:t instanceof Date?BA:NA(t)?DA:Array.isArray(t)?qA:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?LA:_i)(e,t)}function Af(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function zA(e,t){t===void 0&&(t=e,e=Rr);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}function HA(e){return function(){return e}}function Si(e){return+e}var cy=[0,1];function Me(e){return e}function sl(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:HA(isNaN(t)?NaN:.5)}function GA(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function KA(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=sl(i,n),a=r(o,a)):(n=sl(n,i),a=r(a,o)),function(u){return a(n(u))}}function XA(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]=sl(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var c=Ln(e,u,1,n)-1;return a[c](i[c](u))}}function Un(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ya(){var e=cy,t=cy,r=Rr,n,i,a,o=Me,u,c,s;function f(){var h=Math.min(e.length,t.length);return o!==Me&&(o=GA(e[0],e[h-1])),u=h>2?XA:KA,c=s=null,l}function l(h){return h==null||isNaN(h=+h)?a:(c||(c=u(e.map(n),t,r)))(n(o(h)))}return l.invert=function(h){return o(i((s||(s=u(t,e.map(n),_i)))(h)))},l.domain=function(h){return arguments.length?(e=Array.from(h,Si),f()):e.slice()},l.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},l.rangeRound=function(h){return t=Array.from(h),r=Af,f()},l.clamp=function(h){return arguments.length?(o=h?!0:Me,f()):o!==Me},l.interpolate=function(h){return arguments.length?(r=h,f()):r},l.unknown=function(h){return arguments.length?(a=h,l):a},function(h,d){return n=h,i=d,f()}}function Pf(){return ya()(Me,Me)}function VA(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ai(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function vr(e){return e=Ai(Math.abs(e)),e?e[1]:NaN}function YA(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],c=0;i>0&&u>0&&(c+u+1>n&&(u=Math.max(1,n-c)),a.push(r.substring(i-=u,i+u)),!((c+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function ZA(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var JA=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function hn(e){if(!(t=JA.exec(e)))throw new Error("invalid format: "+e);var t;return new Tf({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]})}hn.prototype=Tf.prototype;function Tf(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+""}Tf.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 QA(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 Pi;function eP(e,t){var r=Ai(e,t);if(!r)return Pi=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(Pi=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")+Ai(e,Math.max(0,t+a-1))[0]}function sy(e,t){var r=Ai(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 ly={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:VA,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>sy(e*100,t),r:sy,s:eP,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function fy(e){return e}var hy=Array.prototype.map,py=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function tP(e){var t=e.grouping===void 0||e.thousands===void 0?fy:YA(hy.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?fy:ZA(hy.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function s(l,h){l=hn(l);var d=l.fill,y=l.align,v=l.sign,p=l.symbol,b=l.zero,x=l.width,w=l.comma,O=l.precision,g=l.trim,m=l.type;m==="n"?(w=!0,m="g"):ly[m]||(O===void 0&&(O=12),g=!0,m="g"),(b||d==="0"&&y==="=")&&(b=!0,d="0",y="=");var _=(h&&h.prefix!==void 0?h.prefix:"")+(p==="$"?r:p==="#"&&/[boxX]/.test(m)?"0"+m.toLowerCase():""),S=(p==="$"?n:/[%p]/.test(m)?o:"")+(h&&h.suffix!==void 0?h.suffix:""),A=ly[m],M=/[defgprs%]/.test(m);O=O===void 0?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function E(P){var j=_,$=S,C,R,D;if(m==="c")$=A(P)+$,P="";else{P=+P;var B=P<0||1/P<0;if(P=isNaN(P)?c:A(Math.abs(P),O),g&&(P=QA(P)),B&&+P==0&&v!=="+"&&(B=!1),j=(B?v==="("?v:u:v==="-"||v==="("?"":v)+j,$=(m==="s"&&!isNaN(P)&&Pi!==void 0?py[8+Pi/3]:"")+$+(B&&v==="("?")":""),M){for(C=-1,R=P.length;++C<R;)if(D=P.charCodeAt(C),48>D||D>57){$=(D===46?i+P.slice(C+1):P.slice(C))+$,P=P.slice(0,C);break}}}w&&!b&&(P=t(P,1/0));var L=j.length+P.length+$.length,z=L<x?new Array(x-L+1).join(d):"";switch(w&&b&&(P=t(z+P,z.length?x-$.length:1/0),z=""),y){case"<":P=j+P+$+z;break;case"=":P=j+z+P+$;break;case"^":P=z.slice(0,L=z.length>>1)+j+P+$+z.slice(L);break;default:P=z+j+P+$;break}return a(P)}return E.toString=function(){return l+""},E}function f(l,h){var d=Math.max(-8,Math.min(8,Math.floor(vr(h)/3)))*3,y=Math.pow(10,-d),v=s((l=hn(l),l.type="f",l),{suffix:py[8+d/3]});return function(p){return v(y*p)}}return{format:s,formatPrefix:f}}var Qn,Ef,Jb;rP({thousands:",",grouping:[3],currency:["$",""]});function rP(e){return Qn=tP(e),Ef=Qn.format,Jb=Qn.formatPrefix,Qn}function nP(e){return Math.max(0,-vr(Math.abs(e)))}function iP(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(vr(t)/3)))*3-vr(Math.abs(e)))}function aP(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,vr(t)-vr(e))+1}function Qb(e,t,r,n){var i=al(e,t,r),a;switch(n=hn(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=iP(i,o))&&(n.precision=a),Jb(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=aP(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=nP(i))&&(n.precision=a-(n.type==="%")*2);break}}return Ef(n)}function Et(e){var t=e.domain;return e.ticks=function(r){var n=t();return nl(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return Qb(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],u=n[a],c,s,f=10;for(u<o&&(s=o,o=u,u=s,s=i,i=a,a=s);f-- >0;){if(s=il(o,u,r),s===c)return n[i]=o,n[a]=u,t(n);if(s>0)o=Math.floor(o/s)*s,u=Math.ceil(u/s)*s;else if(s<0)o=Math.ceil(o*s)/s,u=Math.floor(u*s)/s;else break;c=s}return e},e}function Ti(){var e=Pf();return e.copy=function(){return Un(e,Ti())},He.apply(e,arguments),Et(e)}function e0(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,Si),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return e0(e).unknown(t)},e=arguments.length?Array.from(e,Si):[0,1],Et(r)}function t0(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 dy(e){return Math.log(e)}function vy(e){return Math.exp(e)}function oP(e){return-Math.log(-e)}function uP(e){return-Math.exp(-e)}function cP(e){return isFinite(e)?+("1e"+e):e<0?0:e}function sP(e){return e===10?cP:e===Math.E?Math.exp:t=>Math.pow(e,t)}function lP(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 yy(e){return(t,r)=>-e(-t,r)}function jf(e){const t=e(dy,vy),r=t.domain;let n=10,i,a;function o(){return i=lP(n),a=sP(n),r()[0]<0?(i=yy(i),a=yy(a),e(oP,uP)):e(dy,vy),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const c=r();let s=c[0],f=c[c.length-1];const l=f<s;l&&([s,f]=[f,s]);let h=i(s),d=i(f),y,v;const p=u==null?10:+u;let b=[];if(!(n%1)&&d-h<p){if(h=Math.floor(h),d=Math.ceil(d),s>0){for(;h<=d;++h)for(y=1;y<n;++y)if(v=h<0?y/a(-h):y*a(h),!(v<s)){if(v>f)break;b.push(v)}}else for(;h<=d;++h)for(y=n-1;y>=1;--y)if(v=h>0?y/a(-h):y*a(h),!(v<s)){if(v>f)break;b.push(v)}b.length*2<p&&(b=nl(s,f,p))}else b=nl(h,d,Math.min(d-h,p)).map(a);return l?b.reverse():b},t.tickFormat=(u,c)=>{if(u==null&&(u=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=hn(c)).precision==null&&(c.trim=!0),c=Ef(c)),u===1/0)return c;const s=Math.max(1,n*u/t.ticks().length);return f=>{let l=f/a(Math.round(i(f)));return l*n<n-.5&&(l*=n),l<=s?c(f):""}},t.nice=()=>r(t0(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function r0(){const e=jf(ya()).domain([1,10]);return e.copy=()=>Un(e,r0()).base(e.base()),He.apply(e,arguments),e}function gy(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function my(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Mf(e){var t=1,r=e(gy(t),my(t));return r.constant=function(n){return arguments.length?e(gy(t=+n),my(t)):t},Et(r)}function n0(){var e=Mf(ya());return e.copy=function(){return Un(e,n0()).constant(e.constant())},He.apply(e,arguments)}function by(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function fP(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function hP(e){return e<0?-e*e:e*e}function Cf(e){var t=e(Me,Me),r=1;function n(){return r===1?e(Me,Me):r===.5?e(fP,hP):e(by(r),by(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Et(t)}function $f(){var e=Cf(ya());return e.copy=function(){return Un(e,$f()).exponent(e.exponent())},He.apply(e,arguments),e}function pP(){return $f.apply(null,arguments).exponent(.5)}function xy(e){return Math.sign(e)*e*e}function dP(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function i0(){var e=Pf(),t=[0,1],r=!1,n;function i(a){var o=dP(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(xy(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,Si)).map(xy)),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 i0(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},He.apply(i,arguments),Et(i)}function a0(){var e=[],t=[],r=[],n;function i(){var o=0,u=Math.max(1,t.length);for(r=new Array(u-1);++o<u;)r[o-1]=bA(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Ln(r,o)]}return a.invertExtent=function(o){var u=t.indexOf(o);return u<0?[NaN,NaN]:[u>0?r[u-1]:e[0],u<r.length?r[u]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let u of o)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(St),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 a0().domain(e).range(t).unknown(n)},He.apply(a,arguments)}function o0(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(c){return c!=null&&c<=c?i[Ln(n,c,0,r)]:a}function u(){var c=-1;for(n=new Array(r);++c<r;)n[c]=((c+1)*t-(c-r)*e)/(r+1);return o}return o.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,u()):[e,t]},o.range=function(c){return arguments.length?(r=(i=Array.from(c)).length-1,u()):i.slice()},o.invertExtent=function(c){var s=i.indexOf(c);return s<0?[NaN,NaN]:s<1?[e,n[0]]:s>=r?[n[r-1],t]:[n[s-1],n[s]]},o.unknown=function(c){return arguments.length&&(a=c),o},o.thresholds=function(){return n.slice()},o.copy=function(){return o0().domain([e,t]).range(i).unknown(a)},He.apply(Et(o),arguments)}function u0(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Ln(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 u0().domain(e).range(t).unknown(r)},He.apply(i,arguments)}const Gc=new Date,Kc=new Date;function we(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const c=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return c;let s;do c.push(s=new Date(+a)),t(a,u),e(a);while(s<a&&a<o);return c},i.filter=a=>we(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Gc.setTime(+a),Kc.setTime(+o),e(Gc),e(Kc),Math.floor(r(Gc,Kc))),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 Ei=we(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ei.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?we(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ei);Ei.range;const ct=1e3,Ue=ct*60,st=Ue*60,dt=st*24,If=dt*7,wy=dt*30,Xc=dt*365,Bt=we(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ct)},(e,t)=>(t-e)/ct,e=>e.getUTCSeconds());Bt.range;const Rf=we(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ct)},(e,t)=>{e.setTime(+e+t*Ue)},(e,t)=>(t-e)/Ue,e=>e.getMinutes());Rf.range;const kf=we(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ue)},(e,t)=>(t-e)/Ue,e=>e.getUTCMinutes());kf.range;const Df=we(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ct-e.getMinutes()*Ue)},(e,t)=>{e.setTime(+e+t*st)},(e,t)=>(t-e)/st,e=>e.getHours());Df.range;const Nf=we(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*st)},(e,t)=>(t-e)/st,e=>e.getUTCHours());Nf.range;const Wn=we(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ue)/dt,e=>e.getDate()-1);Wn.range;const ga=we(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/dt,e=>e.getUTCDate()-1);ga.range;const c0=we(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/dt,e=>Math.floor(e/dt));c0.range;function Vt(e){return we(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Ue)/If)}const ma=Vt(0),ji=Vt(1),vP=Vt(2),yP=Vt(3),yr=Vt(4),gP=Vt(5),mP=Vt(6);ma.range;ji.range;vP.range;yP.range;yr.range;gP.range;mP.range;function Yt(e){return we(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)/If)}const ba=Yt(0),Mi=Yt(1),bP=Yt(2),xP=Yt(3),gr=Yt(4),wP=Yt(5),OP=Yt(6);ba.range;Mi.range;bP.range;xP.range;gr.range;wP.range;OP.range;const qf=we(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());qf.range;const Bf=we(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());Bf.range;const vt=we(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());vt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:we(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)});vt.range;const yt=we(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());yt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:we(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)});yt.range;function s0(e,t,r,n,i,a){const o=[[Bt,1,ct],[Bt,5,5*ct],[Bt,15,15*ct],[Bt,30,30*ct],[a,1,Ue],[a,5,5*Ue],[a,15,15*Ue],[a,30,30*Ue],[i,1,st],[i,3,3*st],[i,6,6*st],[i,12,12*st],[n,1,dt],[n,2,2*dt],[r,1,If],[t,1,wy],[t,3,3*wy],[e,1,Xc]];function u(s,f,l){const h=f<s;h&&([s,f]=[f,s]);const d=l&&typeof l.range=="function"?l:c(s,f,l),y=d?d.range(s,+f+1):[];return h?y.reverse():y}function c(s,f,l){const h=Math.abs(f-s)/l,d=wf(([,,p])=>p).right(o,h);if(d===o.length)return e.every(al(s/Xc,f/Xc,l));if(d===0)return Ei.every(Math.max(al(s,f,l),1));const[y,v]=o[h/o[d-1][2]<o[d][2]/h?d-1:d];return y.every(v)}return[u,c]}const[_P,SP]=s0(yt,Bf,ba,c0,Nf,kf),[AP,PP]=s0(vt,qf,ma,Wn,Df,Rf);function Vc(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 Yc(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 Lr(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function TP(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,c=e.shortMonths,s=Fr(i),f=Ur(i),l=Fr(a),h=Ur(a),d=Fr(o),y=Ur(o),v=Fr(u),p=Ur(u),b=Fr(c),x=Ur(c),w={a:D,A:B,b:L,B:z,c:null,d:Ty,e:Ty,f:YP,g:oT,G:cT,H:KP,I:XP,j:VP,L:l0,m:ZP,M:JP,p:G,q:U,Q:My,s:Cy,S:QP,u:eT,U:tT,V:rT,w:nT,W:iT,x:null,X:null,y:aT,Y:uT,Z:sT,"%":jy},O={a:K,A:ce,b:pe,B:ke,c:null,d:Ey,e:Ey,f:pT,g:_T,G:AT,H:lT,I:fT,j:hT,L:h0,m:dT,M:vT,p:Ct,q:Ce,Q:My,s:Cy,S:yT,u:gT,U:mT,V:bT,w:xT,W:wT,x:null,X:null,y:OT,Y:ST,Z:PT,"%":jy},g={a:M,A:E,b:P,B:j,c:$,d:Ay,e:Ay,f:WP,g:Sy,G:_y,H:Py,I:Py,j:BP,L:UP,m:qP,M:LP,p:A,q:NP,Q:HP,s:GP,S:FP,u:$P,U:IP,V:RP,w:CP,W:kP,x:C,X:R,y:Sy,Y:_y,Z:DP,"%":zP};w.x=m(r,w),w.X=m(n,w),w.c=m(t,w),O.x=m(r,O),O.X=m(n,O),O.c=m(t,O);function m(F,X){return function(V){var k=[],fe=-1,J=0,ye=F.length,ge,$e,xt;for(V instanceof Date||(V=new Date(+V));++fe<ye;)F.charCodeAt(fe)===37&&(k.push(F.slice(J,fe)),($e=Oy[ge=F.charAt(++fe)])!=null?ge=F.charAt(++fe):$e=ge==="e"?" ":"0",(xt=X[ge])&&(ge=xt(V,$e)),k.push(ge),J=fe+1);return k.push(F.slice(J,fe)),k.join("")}}function _(F,X){return function(V){var k=Lr(1900,void 0,1),fe=S(k,F,V+="",0),J,ye;if(fe!=V.length)return null;if("Q"in k)return new Date(k.Q);if("s"in k)return new Date(k.s*1e3+("L"in k?k.L:0));if(X&&!("Z"in k)&&(k.Z=0),"p"in k&&(k.H=k.H%12+k.p*12),k.m===void 0&&(k.m="q"in k?k.q:0),"V"in k){if(k.V<1||k.V>53)return null;"w"in k||(k.w=1),"Z"in k?(J=Yc(Lr(k.y,0,1)),ye=J.getUTCDay(),J=ye>4||ye===0?Mi.ceil(J):Mi(J),J=ga.offset(J,(k.V-1)*7),k.y=J.getUTCFullYear(),k.m=J.getUTCMonth(),k.d=J.getUTCDate()+(k.w+6)%7):(J=Vc(Lr(k.y,0,1)),ye=J.getDay(),J=ye>4||ye===0?ji.ceil(J):ji(J),J=Wn.offset(J,(k.V-1)*7),k.y=J.getFullYear(),k.m=J.getMonth(),k.d=J.getDate()+(k.w+6)%7)}else("W"in k||"U"in k)&&("w"in k||(k.w="u"in k?k.u%7:"W"in k?1:0),ye="Z"in k?Yc(Lr(k.y,0,1)).getUTCDay():Vc(Lr(k.y,0,1)).getDay(),k.m=0,k.d="W"in k?(k.w+6)%7+k.W*7-(ye+5)%7:k.w+k.U*7-(ye+6)%7);return"Z"in k?(k.H+=k.Z/100|0,k.M+=k.Z%100,Yc(k)):Vc(k)}}function S(F,X,V,k){for(var fe=0,J=X.length,ye=V.length,ge,$e;fe<J;){if(k>=ye)return-1;if(ge=X.charCodeAt(fe++),ge===37){if(ge=X.charAt(fe++),$e=g[ge in Oy?X.charAt(fe++):ge],!$e||(k=$e(F,V,k))<0)return-1}else if(ge!=V.charCodeAt(k++))return-1}return k}function A(F,X,V){var k=s.exec(X.slice(V));return k?(F.p=f.get(k[0].toLowerCase()),V+k[0].length):-1}function M(F,X,V){var k=d.exec(X.slice(V));return k?(F.w=y.get(k[0].toLowerCase()),V+k[0].length):-1}function E(F,X,V){var k=l.exec(X.slice(V));return k?(F.w=h.get(k[0].toLowerCase()),V+k[0].length):-1}function P(F,X,V){var k=b.exec(X.slice(V));return k?(F.m=x.get(k[0].toLowerCase()),V+k[0].length):-1}function j(F,X,V){var k=v.exec(X.slice(V));return k?(F.m=p.get(k[0].toLowerCase()),V+k[0].length):-1}function $(F,X,V){return S(F,t,X,V)}function C(F,X,V){return S(F,r,X,V)}function R(F,X,V){return S(F,n,X,V)}function D(F){return o[F.getDay()]}function B(F){return a[F.getDay()]}function L(F){return c[F.getMonth()]}function z(F){return u[F.getMonth()]}function G(F){return i[+(F.getHours()>=12)]}function U(F){return 1+~~(F.getMonth()/3)}function K(F){return o[F.getUTCDay()]}function ce(F){return a[F.getUTCDay()]}function pe(F){return c[F.getUTCMonth()]}function ke(F){return u[F.getUTCMonth()]}function Ct(F){return i[+(F.getUTCHours()>=12)]}function Ce(F){return 1+~~(F.getUTCMonth()/3)}return{format:function(F){var X=m(F+="",w);return X.toString=function(){return F},X},parse:function(F){var X=_(F+="",!1);return X.toString=function(){return F},X},utcFormat:function(F){var X=m(F+="",O);return X.toString=function(){return F},X},utcParse:function(F){var X=_(F+="",!0);return X.toString=function(){return F},X}}}var Oy={"-":"",_:" ",0:"0"},Se=/^\s*\d+/,EP=/^%/,jP=/[\\^$*+?|[\]().{}]/g;function Q(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 MP(e){return e.replace(jP,"\\$&")}function Fr(e){return new RegExp("^(?:"+e.map(MP).join("|")+")","i")}function Ur(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function CP(e,t,r){var n=Se.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function $P(e,t,r){var n=Se.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function IP(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function RP(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function kP(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function _y(e,t,r){var n=Se.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Sy(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function DP(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 NP(e,t,r){var n=Se.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function qP(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Ay(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function BP(e,t,r){var n=Se.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Py(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function LP(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function FP(e,t,r){var n=Se.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function UP(e,t,r){var n=Se.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function WP(e,t,r){var n=Se.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function zP(e,t,r){var n=EP.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function HP(e,t,r){var n=Se.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function GP(e,t,r){var n=Se.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Ty(e,t){return Q(e.getDate(),t,2)}function KP(e,t){return Q(e.getHours(),t,2)}function XP(e,t){return Q(e.getHours()%12||12,t,2)}function VP(e,t){return Q(1+Wn.count(vt(e),e),t,3)}function l0(e,t){return Q(e.getMilliseconds(),t,3)}function YP(e,t){return l0(e,t)+"000"}function ZP(e,t){return Q(e.getMonth()+1,t,2)}function JP(e,t){return Q(e.getMinutes(),t,2)}function QP(e,t){return Q(e.getSeconds(),t,2)}function eT(e){var t=e.getDay();return t===0?7:t}function tT(e,t){return Q(ma.count(vt(e)-1,e),t,2)}function f0(e){var t=e.getDay();return t>=4||t===0?yr(e):yr.ceil(e)}function rT(e,t){return e=f0(e),Q(yr.count(vt(e),e)+(vt(e).getDay()===4),t,2)}function nT(e){return e.getDay()}function iT(e,t){return Q(ji.count(vt(e)-1,e),t,2)}function aT(e,t){return Q(e.getFullYear()%100,t,2)}function oT(e,t){return e=f0(e),Q(e.getFullYear()%100,t,2)}function uT(e,t){return Q(e.getFullYear()%1e4,t,4)}function cT(e,t){var r=e.getDay();return e=r>=4||r===0?yr(e):yr.ceil(e),Q(e.getFullYear()%1e4,t,4)}function sT(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Q(t/60|0,"0",2)+Q(t%60,"0",2)}function Ey(e,t){return Q(e.getUTCDate(),t,2)}function lT(e,t){return Q(e.getUTCHours(),t,2)}function fT(e,t){return Q(e.getUTCHours()%12||12,t,2)}function hT(e,t){return Q(1+ga.count(yt(e),e),t,3)}function h0(e,t){return Q(e.getUTCMilliseconds(),t,3)}function pT(e,t){return h0(e,t)+"000"}function dT(e,t){return Q(e.getUTCMonth()+1,t,2)}function vT(e,t){return Q(e.getUTCMinutes(),t,2)}function yT(e,t){return Q(e.getUTCSeconds(),t,2)}function gT(e){var t=e.getUTCDay();return t===0?7:t}function mT(e,t){return Q(ba.count(yt(e)-1,e),t,2)}function p0(e){var t=e.getUTCDay();return t>=4||t===0?gr(e):gr.ceil(e)}function bT(e,t){return e=p0(e),Q(gr.count(yt(e),e)+(yt(e).getUTCDay()===4),t,2)}function xT(e){return e.getUTCDay()}function wT(e,t){return Q(Mi.count(yt(e)-1,e),t,2)}function OT(e,t){return Q(e.getUTCFullYear()%100,t,2)}function _T(e,t){return e=p0(e),Q(e.getUTCFullYear()%100,t,2)}function ST(e,t){return Q(e.getUTCFullYear()%1e4,t,4)}function AT(e,t){var r=e.getUTCDay();return e=r>=4||r===0?gr(e):gr.ceil(e),Q(e.getUTCFullYear()%1e4,t,4)}function PT(){return"+0000"}function jy(){return"%"}function My(e){return+e}function Cy(e){return Math.floor(+e/1e3)}var tr,d0,v0;TT({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 TT(e){return tr=TP(e),d0=tr.format,tr.parse,v0=tr.utcFormat,tr.utcParse,tr}function ET(e){return new Date(e)}function jT(e){return e instanceof Date?+e:+new Date(+e)}function Lf(e,t,r,n,i,a,o,u,c,s){var f=Pf(),l=f.invert,h=f.domain,d=s(".%L"),y=s(":%S"),v=s("%I:%M"),p=s("%I %p"),b=s("%a %d"),x=s("%b %d"),w=s("%B"),O=s("%Y");function g(m){return(c(m)<m?d:u(m)<m?y:o(m)<m?v:a(m)<m?p:n(m)<m?i(m)<m?b:x:r(m)<m?w:O)(m)}return f.invert=function(m){return new Date(l(m))},f.domain=function(m){return arguments.length?h(Array.from(m,jT)):h().map(ET)},f.ticks=function(m){var _=h();return e(_[0],_[_.length-1],m??10)},f.tickFormat=function(m,_){return _==null?g:s(_)},f.nice=function(m){var _=h();return(!m||typeof m.range!="function")&&(m=t(_[0],_[_.length-1],m??10)),m?h(t0(_,m)):f},f.copy=function(){return Un(f,Lf(e,t,r,n,i,a,o,u,c,s))},f}function MT(){return He.apply(Lf(AP,PP,vt,qf,ma,Wn,Df,Rf,Bt,d0).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function CT(){return He.apply(Lf(_P,SP,yt,Bf,ba,ga,Nf,kf,Bt,v0).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function xa(){var e=0,t=1,r,n,i,a,o=Me,u=!1,c;function s(l){return l==null||isNaN(l=+l)?c:o(i===0?.5:(l=(a(l)-r)*i,u?Math.max(0,Math.min(1,l)):l))}s.domain=function(l){return arguments.length?([e,t]=l,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),s):[e,t]},s.clamp=function(l){return arguments.length?(u=!!l,s):u},s.interpolator=function(l){return arguments.length?(o=l,s):o};function f(l){return function(h){var d,y;return arguments.length?([d,y]=h,o=l(d,y),s):[o(0),o(1)]}}return s.range=f(Rr),s.rangeRound=f(Af),s.unknown=function(l){return arguments.length?(c=l,s):c},function(l){return a=l,r=l(e),n=l(t),i=r===n?0:1/(n-r),s}}function jt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function y0(){var e=Et(xa()(Me));return e.copy=function(){return jt(e,y0())},bt.apply(e,arguments)}function g0(){var e=jf(xa()).domain([1,10]);return e.copy=function(){return jt(e,g0()).base(e.base())},bt.apply(e,arguments)}function m0(){var e=Mf(xa());return e.copy=function(){return jt(e,m0()).constant(e.constant())},bt.apply(e,arguments)}function Ff(){var e=Cf(xa());return e.copy=function(){return jt(e,Ff()).exponent(e.exponent())},bt.apply(e,arguments)}function $T(){return Ff.apply(null,arguments).exponent(.5)}function b0(){var e=[],t=Me;function r(n){if(n!=null&&!isNaN(n=+n))return t((Ln(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(St),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)=>mA(e,a/n))},r.copy=function(){return b0(t).domain(e)},bt.apply(r,arguments)}function wa(){var e=0,t=.5,r=1,n=1,i,a,o,u,c,s=Me,f,l=!1,h;function d(v){return isNaN(v=+v)?h:(v=.5+((v=+f(v))-a)*(n*v<n*a?u:c),s(l?Math.max(0,Math.min(1,v)):v))}d.domain=function(v){return arguments.length?([e,t,r]=v,i=f(e=+e),a=f(t=+t),o=f(r=+r),u=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,d):[e,t,r]},d.clamp=function(v){return arguments.length?(l=!!v,d):l},d.interpolator=function(v){return arguments.length?(s=v,d):s};function y(v){return function(p){var b,x,w;return arguments.length?([b,x,w]=p,s=zA(v,[b,x,w]),d):[s(0),s(.5),s(1)]}}return d.range=y(Rr),d.rangeRound=y(Af),d.unknown=function(v){return arguments.length?(h=v,d):h},function(v){return f=v,i=v(e),a=v(t),o=v(r),u=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,d}}function x0(){var e=Et(wa()(Me));return e.copy=function(){return jt(e,x0())},bt.apply(e,arguments)}function w0(){var e=jf(wa()).domain([.1,1,10]);return e.copy=function(){return jt(e,w0()).base(e.base())},bt.apply(e,arguments)}function O0(){var e=Mf(wa());return e.copy=function(){return jt(e,O0()).constant(e.constant())},bt.apply(e,arguments)}function Uf(){var e=Cf(wa());return e.copy=function(){return jt(e,Uf()).exponent(e.exponent())},bt.apply(e,arguments)}function IT(){return Uf.apply(null,arguments).exponent(.5)}const $y=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:cn,scaleDiverging:x0,scaleDivergingLog:w0,scaleDivergingPow:Uf,scaleDivergingSqrt:IT,scaleDivergingSymlog:O0,scaleIdentity:e0,scaleImplicit:ol,scaleLinear:Ti,scaleLog:r0,scaleOrdinal:Of,scalePoint:Zr,scalePow:$f,scaleQuantile:a0,scaleQuantize:o0,scaleRadial:i0,scaleSequential:y0,scaleSequentialLog:g0,scaleSequentialPow:Ff,scaleSequentialQuantile:b0,scaleSequentialSqrt:$T,scaleSequentialSymlog:m0,scaleSqrt:pP,scaleSymlog:n0,scaleThreshold:u0,scaleTime:MT,scaleUtc:CT,tickFormat:Qb},Symbol.toStringTag,{value:"Module"}));var Zc,Iy;function _0(){if(Iy)return Zc;Iy=1;var e=Cr();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var u=r[a],c=n(u);if(c!=null&&(s===void 0?c===c&&!e(c):i(c,s)))var s=c,f=u}return f}return Zc=t,Zc}var Jc,Ry;function RT(){if(Ry)return Jc;Ry=1;function e(t,r){return t>r}return Jc=e,Jc}var Qc,ky;function kT(){if(ky)return Qc;ky=1;var e=_0(),t=RT(),r=Ir();function n(i){return i&&i.length?e(i,r,t):void 0}return Qc=n,Qc}var DT=kT();const Oa=ue(DT);var es,Dy;function NT(){if(Dy)return es;Dy=1;function e(t,r){return t<r}return es=e,es}var ts,Ny;function qT(){if(Ny)return ts;Ny=1;var e=_0(),t=NT(),r=Ir();function n(i){return i&&i.length?e(i,r,t):void 0}return ts=n,ts}var BT=qT();const _a=ue(BT);var rs,qy;function LT(){if(qy)return rs;qy=1;var e=nf(),t=Tt(),r=$b(),n=Re();function i(a,o){var u=n(a)?e:r;return u(a,t(o,3))}return rs=i,rs}var ns,By;function FT(){if(By)return ns;By=1;var e=Mb(),t=LT();function r(n,i){return e(t(n,i),1)}return ns=r,ns}var UT=FT();const WT=ue(UT);var is,Ly;function zT(){if(Ly)return is;Ly=1;var e=gf();function t(r,n){return e(r,n)}return is=t,is}var HT=zT();const Wf=ue(HT);var kr=1e9,GT={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Hf,le=!0,ze="[DecimalError] ",Ut=ze+"Invalid argument: ",zf=ze+"Exponent out of range: ",Dr=Math.floor,Dt=Math.pow,KT=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,qe,Oe=1e7,se=7,S0=9007199254740991,Ci=Dr(S0/se),W={};W.absoluteValue=W.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};W.comparedTo=W.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};W.decimalPlaces=W.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*se;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};W.dividedBy=W.div=function(e){return pt(this,new this.constructor(e))};W.dividedToIntegerBy=W.idiv=function(e){var t=this,r=t.constructor;return ae(pt(t,new r(e),0,1),r.precision)};W.equals=W.eq=function(e){return!this.cmp(e)};W.exponent=function(){return ve(this)};W.greaterThan=W.gt=function(e){return this.cmp(e)>0};W.greaterThanOrEqualTo=W.gte=function(e){return this.cmp(e)>=0};W.isInteger=W.isint=function(){return this.e>this.d.length-2};W.isNegative=W.isneg=function(){return this.s<0};W.isPositive=W.ispos=function(){return this.s>0};W.isZero=function(){return this.s===0};W.lessThan=W.lt=function(e){return this.cmp(e)<0};W.lessThanOrEqualTo=W.lte=function(e){return this.cmp(e)<1};W.logarithm=W.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(qe))throw Error(ze+"NaN");if(r.s<1)throw Error(ze+(r.s?"NaN":"-Infinity"));return r.eq(qe)?new n(0):(le=!1,t=pt(pn(r,a),pn(e,a),a),le=!0,ae(t,i))};W.minus=W.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?T0(t,e):A0(t,(e.s=-e.s,e))};W.modulo=W.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(ze+"NaN");return r.s?(le=!1,t=pt(r,e,0,1).times(e),le=!0,r.minus(t)):ae(new n(r),i)};W.naturalExponential=W.exp=function(){return P0(this)};W.naturalLogarithm=W.ln=function(){return pn(this)};W.negated=W.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};W.plus=W.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?A0(t,e):T0(t,(e.s=-e.s,e))};W.precision=W.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Ut+e);if(t=ve(i)+1,n=i.d.length-1,r=n*se+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};W.squareRoot=W.sqrt=function(){var e,t,r,n,i,a,o,u=this,c=u.constructor;if(u.s<1){if(!u.s)return new c(0);throw Error(ze+"NaN")}for(e=ve(u),le=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=et(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Dr((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new c(t)):n=new c(i.toString()),r=c.precision,i=o=r+3;;)if(a=n,n=a.plus(pt(u,a,o+2)).times(.5),et(a.d).slice(0,o)===(t=et(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(ae(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return le=!0,ae(n,r)};W.times=W.mul=function(e){var t,r,n,i,a,o,u,c,s,f=this,l=f.constructor,h=f.d,d=(e=new l(e)).d;if(!f.s||!e.s)return new l(0);for(e.s*=f.s,r=f.e+e.e,c=h.length,s=d.length,c<s&&(a=h,h=d,d=a,o=c,c=s,s=o),a=[],o=c+s,n=o;n--;)a.push(0);for(n=s;--n>=0;){for(t=0,i=c+n;i>n;)u=a[i]+d[n]*h[i-n-1]+t,a[i--]=u%Oe|0,t=u/Oe|0;a[i]=(a[i]+t)%Oe|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,le?ae(e,l.precision):e};W.toDecimalPlaces=W.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(nt(e,0,kr),t===void 0?t=n.rounding:nt(t,0,8),ae(r,e+ve(r)+1,t))};W.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Ht(n,!0):(nt(e,0,kr),t===void 0?t=i.rounding:nt(t,0,8),n=ae(new i(n),e+1,t),r=Ht(n,!0,e+1)),r};W.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Ht(i):(nt(e,0,kr),t===void 0?t=a.rounding:nt(t,0,8),n=ae(new a(i),e+ve(i)+1,t),r=Ht(n.abs(),!1,e+ve(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};W.toInteger=W.toint=function(){var e=this,t=e.constructor;return ae(new t(e),ve(e)+1,t.rounding)};W.toNumber=function(){return+this};W.toPower=W.pow=function(e){var t,r,n,i,a,o,u=this,c=u.constructor,s=12,f=+(e=new c(e));if(!e.s)return new c(qe);if(u=new c(u),!u.s){if(e.s<1)throw Error(ze+"Infinity");return u}if(u.eq(qe))return u;if(n=c.precision,e.eq(qe))return ae(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=S0){for(i=new c(qe),t=Math.ceil(n/se+4),le=!1;r%2&&(i=i.times(u),Uy(i.d,t)),r=Dr(r/2),r!==0;)u=u.times(u),Uy(u.d,t);return le=!0,e.s<0?new c(qe).div(i):ae(i,n)}}else if(a<0)throw Error(ze+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,le=!1,i=e.times(pn(u,n+s)),le=!0,i=P0(i),i.s=a,i};W.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=ve(i),n=Ht(i,r<=a.toExpNeg||r>=a.toExpPos)):(nt(e,1,kr),t===void 0?t=a.rounding:nt(t,0,8),i=ae(new a(i),e,t),r=ve(i),n=Ht(i,e<=r||r<=a.toExpNeg,e)),n};W.toSignificantDigits=W.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(nt(e,1,kr),t===void 0?t=n.rounding:nt(t,0,8)),ae(new n(r),e,t)};W.toString=W.valueOf=W.val=W.toJSON=W[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ve(e),r=e.constructor;return Ht(e,t<=r.toExpNeg||t>=r.toExpPos)};function A0(e,t){var r,n,i,a,o,u,c,s,f=e.constructor,l=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),le?ae(t,l):t;if(c=e.d,s=t.d,o=e.e,i=t.e,c=c.slice(),a=o-i,a){for(a<0?(n=c,a=-a,u=s.length):(n=s,i=o,u=c.length),o=Math.ceil(l/se),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=c.length,a=s.length,u-a<0&&(a=u,n=s,s=c,c=n),r=0;a;)r=(c[--a]=c[a]+s[a]+r)/Oe|0,c[a]%=Oe;for(r&&(c.unshift(r),++i),u=c.length;c[--u]==0;)c.pop();return t.d=c,t.e=i,le?ae(t,l):t}function nt(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Ut+e)}function et(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=se-n.length,r&&(a+=wt(r)),a+=n;o=e[t],n=o+"",r=se-n.length,r&&(a+=wt(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var pt=(function(){function e(n,i){var a,o=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%Oe|0,o=a/Oe|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,c;if(a!=o)c=a>o?1:-1;else for(u=c=0;u<a;u++)if(n[u]!=i[u]){c=n[u]>i[u]?1:-1;break}return c}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Oe+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,c,s,f,l,h,d,y,v,p,b,x,w,O,g,m,_,S,A=n.constructor,M=n.s==i.s?1:-1,E=n.d,P=i.d;if(!n.s)return new A(n);if(!i.s)throw Error(ze+"Division by zero");for(c=n.e-i.e,_=P.length,g=E.length,d=new A(M),y=d.d=[],s=0;P[s]==(E[s]||0);)++s;if(P[s]>(E[s]||0)&&--c,a==null?x=a=A.precision:o?x=a+(ve(n)-ve(i))+1:x=a,x<0)return new A(0);if(x=x/se+2|0,s=0,_==1)for(f=0,P=P[0],x++;(s<g||f)&&x--;s++)w=f*Oe+(E[s]||0),y[s]=w/P|0,f=w%P|0;else{for(f=Oe/(P[0]+1)|0,f>1&&(P=e(P,f),E=e(E,f),_=P.length,g=E.length),O=_,v=E.slice(0,_),p=v.length;p<_;)v[p++]=0;S=P.slice(),S.unshift(0),m=P[0],P[1]>=Oe/2&&++m;do f=0,u=t(P,v,_,p),u<0?(b=v[0],_!=p&&(b=b*Oe+(v[1]||0)),f=b/m|0,f>1?(f>=Oe&&(f=Oe-1),l=e(P,f),h=l.length,p=v.length,u=t(l,v,h,p),u==1&&(f--,r(l,_<h?S:P,h))):(f==0&&(u=f=1),l=P.slice()),h=l.length,h<p&&l.unshift(0),r(v,l,p),u==-1&&(p=v.length,u=t(P,v,_,p),u<1&&(f++,r(v,_<p?S:P,p))),p=v.length):u===0&&(f++,v=[0]),y[s++]=f,u&&v[0]?v[p++]=E[O]||0:(v=[E[O]],p=1);while((O++<g||v[0]!==void 0)&&x--)}return y[0]||y.shift(),d.e=c,ae(d,o?a+ve(d)+1:a)}})();function P0(e,t){var r,n,i,a,o,u,c=0,s=0,f=e.constructor,l=f.precision;if(ve(e)>16)throw Error(zf+ve(e));if(!e.s)return new f(qe);for(le=!1,u=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(n=Math.log(Dt(2,s))/Math.LN10*2+5|0,u+=n,r=i=a=new f(qe),f.precision=u;;){if(i=ae(i.times(e),u),r=r.times(++c),o=a.plus(pt(i,r,u)),et(o.d).slice(0,u)===et(a.d).slice(0,u)){for(;s--;)a=ae(a.times(a),u);return f.precision=l,t==null?(le=!0,ae(a,l)):a}a=o}}function ve(e){for(var t=e.e*se,r=e.d[0];r>=10;r/=10)t++;return t}function as(e,t,r){if(t>e.LN10.sd())throw le=!0,r&&(e.precision=r),Error(ze+"LN10 precision limit exceeded");return ae(new e(e.LN10),t)}function wt(e){for(var t="";e--;)t+="0";return t}function pn(e,t){var r,n,i,a,o,u,c,s,f,l=1,h=10,d=e,y=d.d,v=d.constructor,p=v.precision;if(d.s<1)throw Error(ze+(d.s?"NaN":"-Infinity"));if(d.eq(qe))return new v(0);if(t==null?(le=!1,s=p):s=t,d.eq(10))return t==null&&(le=!0),as(v,s);if(s+=h,v.precision=s,r=et(y),n=r.charAt(0),a=ve(d),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)d=d.times(e),r=et(d.d),n=r.charAt(0),l++;a=ve(d),n>1?(d=new v("0."+r),a++):d=new v(n+"."+r.slice(1))}else return c=as(v,s+2,p).times(a+""),d=pn(new v(n+"."+r.slice(1)),s-h).plus(c),v.precision=p,t==null?(le=!0,ae(d,p)):d;for(u=o=d=pt(d.minus(qe),d.plus(qe),s),f=ae(d.times(d),s),i=3;;){if(o=ae(o.times(f),s),c=u.plus(pt(o,new v(i),s)),et(c.d).slice(0,s)===et(u.d).slice(0,s))return u=u.times(2),a!==0&&(u=u.plus(as(v,s+2,p).times(a+""))),u=pt(u,new v(l),s),v.precision=p,t==null?(le=!0,ae(u,p)):u;u=c,i+=2}}function Fy(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=Dr(r/se),e.d=[],n=(r+1)%se,r<0&&(n+=se),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=se;n<i;)e.d.push(+t.slice(n,n+=se));t=t.slice(n),n=se-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),le&&(e.e>Ci||e.e<-Ci))throw Error(zf+r)}else e.s=0,e.e=0,e.d=[0];return e}function ae(e,t,r){var n,i,a,o,u,c,s,f,l=e.d;for(o=1,a=l[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=se,i=t,s=l[f=0];else{if(f=Math.ceil((n+1)/se),a=l.length,f>=a)return e;for(s=a=l[f],o=1;a>=10;a/=10)o++;n%=se,i=n-se+o}if(r!==void 0&&(a=Dt(10,o-i-1),u=s/a%10|0,c=t<0||l[f+1]!==void 0||s%a,c=r<4?(u||c)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||c||r==6&&(n>0?i>0?s/Dt(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return c?(a=ve(e),l.length=1,t=t-a-1,l[0]=Dt(10,(se-t%se)%se),e.e=Dr(-t/se)||0):(l.length=1,l[0]=e.e=e.s=0),e;if(n==0?(l.length=f,a=1,f--):(l.length=f+1,a=Dt(10,se-n),l[f]=i>0?(s/Dt(10,o-i)%Dt(10,i)|0)*a:0),c)for(;;)if(f==0){(l[0]+=a)==Oe&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=Oe)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(le&&(e.e>Ci||e.e<-Ci))throw Error(zf+ve(e));return e}function T0(e,t){var r,n,i,a,o,u,c,s,f,l,h=e.constructor,d=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),le?ae(t,d):t;if(c=e.d,l=t.d,n=t.e,s=e.e,c=c.slice(),o=s-n,o){for(f=o<0,f?(r=c,o=-o,u=l.length):(r=l,n=s,u=c.length),i=Math.max(Math.ceil(d/se),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=c.length,u=l.length,f=i<u,f&&(u=i),i=0;i<u;i++)if(c[i]!=l[i]){f=c[i]<l[i];break}o=0}for(f&&(r=c,c=l,l=r,t.s=-t.s),u=c.length,i=l.length-u;i>0;--i)c[u++]=0;for(i=l.length;i>o;){if(c[--i]<l[i]){for(a=i;a&&c[--a]===0;)c[a]=Oe-1;--c[a],c[i]+=Oe}c[i]-=l[i]}for(;c[--u]===0;)c.pop();for(;c[0]===0;c.shift())--n;return c[0]?(t.d=c,t.e=n,le?ae(t,d):t):new h(0)}function Ht(e,t,r){var n,i=ve(e),a=et(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+wt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+wt(-i-1)+a,r&&(n=r-o)>0&&(a+=wt(n))):i>=o?(a+=wt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+wt(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=wt(n))),e.s<0?"-"+a:a}function Uy(e,t){if(e.length>t)return e.length=t,!0}function E0(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(Ut+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 Fy(o,a.toString())}else if(typeof a!="string")throw Error(Ut+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,KT.test(a))Fy(o,a);else throw Error(Ut+a)}if(i.prototype=W,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=E0,i.config=i.set=XT,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 XT(e){if(!e||typeof e!="object")throw Error(ze+"Object expected");var t,r,n,i=["precision",1,kr,"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(Dr(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Ut+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Ut+r+": "+n);return this}var Hf=E0(GT);qe=new Hf(1);const ie=Hf;function VT(e){return QT(e)||JT(e)||ZT(e)||YT()}function YT(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
13
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZT(e,t){if(e){if(typeof e=="string")return ll(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 ll(e,t)}}function JT(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function QT(e){if(Array.isArray(e))return ll(e)}function ll(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 eE=function(t){return t},j0={},M0=function(t){return t===j0},Wy=function(t){return function r(){return arguments.length===0||arguments.length===1&&M0(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},tE=function e(t,r){return t===1?r:Wy(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(u){return u!==j0}).length;return o>=t?r.apply(void 0,i):e(t-o,Wy(function(){for(var u=arguments.length,c=new Array(u),s=0;s<u;s++)c[s]=arguments[s];var f=i.map(function(l){return M0(l)?c.shift():l});return r.apply(void 0,VT(f).concat(c))}))})},Sa=function(t){return tE(t.length,t)},fl=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},rE=Sa(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),nE=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return eE;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(u,c){return c(u)},a.apply(void 0,arguments))}},hl=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},C0=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(u,c){return u===r[c]})||(r=a,n=t.apply(void 0,a)),n}};function iE(e){var t;return e===0?t=1:t=Math.floor(new ie(e).abs().log(10).toNumber())+1,t}function aE(e,t,r){for(var n=new ie(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var oE=Sa(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),uE=Sa(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),cE=Sa(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Aa={rangeStep:aE,getDigitCount:iE,interpolateNumber:oE,uninterpolateNumber:uE,uninterpolateTruncation:cE};function pl(e){return fE(e)||lE(e)||$0(e)||sE()}function sE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
14
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lE(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function fE(e){if(Array.isArray(e))return dl(e)}function dn(e,t){return dE(e)||pE(e,t)||$0(e,t)||hE()}function hE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
15
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $0(e,t){if(e){if(typeof e=="string")return dl(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 dl(e,t)}}function dl(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 pE(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),u;!(n=(u=o.next()).done)&&(r.push(u.value),!(t&&r.length===t));n=!0);}catch(c){i=!0,a=c}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function dE(e){if(Array.isArray(e))return e}function I0(e){var t=dn(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function R0(e,t,r){if(e.lte(0))return new ie(0);var n=Aa.getDigitCount(e.toNumber()),i=new ie(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new ie(Math.ceil(a.div(o).toNumber())).add(r).mul(o),c=u.mul(i);return t?c:new ie(Math.ceil(c))}function vE(e,t,r){var n=1,i=new ie(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new ie(10).pow(Aa.getDigitCount(e)-1),i=new ie(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new ie(Math.floor(e)))}else e===0?i=new ie(Math.floor((t-1)/2)):r||(i=new ie(Math.floor(e)));var o=Math.floor((t-1)/2),u=nE(rE(function(c){return i.add(new ie(c-o).mul(n)).toNumber()}),fl);return u(0,t)}function k0(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new ie(0),tickMin:new ie(0),tickMax:new ie(0)};var a=R0(new ie(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new ie(0):(o=new ie(e).add(t).div(2),o=o.sub(new ie(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),c=Math.ceil(new ie(t).sub(o).div(a).toNumber()),s=u+c+1;return s>r?k0(e,t,r,n,i+1):(s<r&&(c=t>0?c+(r-s):c,u=t>0?u:u+(r-s)),{step:a,tickMin:o.sub(new ie(u).mul(a)),tickMax:o.add(new ie(c).mul(a))})}function yE(e){var t=dn(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),u=I0([r,n]),c=dn(u,2),s=c[0],f=c[1];if(s===-1/0||f===1/0){var l=f===1/0?[s].concat(pl(fl(0,i-1).map(function(){return 1/0}))):[].concat(pl(fl(0,i-1).map(function(){return-1/0})),[f]);return r>n?hl(l):l}if(s===f)return vE(s,i,a);var h=k0(s,f,o,a),d=h.step,y=h.tickMin,v=h.tickMax,p=Aa.rangeStep(y,v.add(new ie(.1).mul(d)),d);return r>n?hl(p):p}function gE(e,t){var r=dn(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=I0([n,i]),u=dn(o,2),c=u[0],s=u[1];if(c===-1/0||s===1/0)return[n,i];if(c===s)return[c];var f=Math.max(t,2),l=R0(new ie(s).sub(c).div(f-1),a,0),h=[].concat(pl(Aa.rangeStep(new ie(c),new ie(s).sub(new ie(.99).mul(l)),l)),[s]);return n>i?hl(h):h}var mE=C0(yE),bE=C0(gE),xE="Invariant failed";function Gt(e,t){throw new Error(xE)}var wE=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function mr(e){"@babel/helpers - typeof";return mr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mr(e)}function $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)}function OE(e,t){return PE(e)||AE(e,t)||SE(e,t)||_E()}function _E(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
16
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SE(e,t){if(e){if(typeof e=="string")return zy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zy(e,t)}}function zy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function AE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function PE(e){if(Array.isArray(e))return e}function TE(e,t){if(e==null)return{};var r=EE(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 EE(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 jE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ME(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,q0(n.key),n)}}function CE(e,t,r){return t&&ME(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $E(e,t,r){return t=Ii(t),IE(e,D0()?Reflect.construct(t,r||[],Ii(e).constructor):t.apply(e,r))}function IE(e,t){if(t&&(mr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return RE(e)}function RE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(D0=function(){return!!e})()}function Ii(e){return Ii=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ii(e)}function kE(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vl(e,t)}function vl(e,t){return vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},vl(e,t)}function N0(e,t,r){return t=q0(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q0(e){var t=DE(e,"string");return mr(t)=="symbol"?t:t+""}function DE(e,t){if(mr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Pa=(function(e){function t(){return jE(this,t),$E(this,t,arguments)}return kE(t,e),CE(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,u=n.dataKey,c=n.data,s=n.dataPointFormatter,f=n.xAxis,l=n.yAxis,h=TE(n,wE),d=ee(h,!1);this.props.direction==="x"&&f.type!=="number"&&Gt();var y=c.map(function(v){var p=s(v,u),b=p.x,x=p.y,w=p.value,O=p.errorVal;if(!O)return null;var g=[],m,_;if(Array.isArray(O)){var S=OE(O,2);m=S[0],_=S[1]}else m=_=O;if(a==="vertical"){var A=f.scale,M=x+i,E=M+o,P=M-o,j=A(w-m),$=A(w+_);g.push({x1:$,y1:E,x2:$,y2:P}),g.push({x1:j,y1:M,x2:$,y2:M}),g.push({x1:j,y1:E,x2:j,y2:P})}else if(a==="horizontal"){var C=l.scale,R=b+i,D=R-o,B=R+o,L=C(w-m),z=C(w+_);g.push({x1:D,y1:z,x2:B,y2:z}),g.push({x1:R,y1:L,x2:R,y2:z}),g.push({x1:D,y1:L,x2:B,y2:L})}return T.createElement(_e,$i({className:"recharts-errorBar",key:"bar-".concat(g.map(function(G){return"".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))},d),g.map(function(G){return T.createElement("line",$i({},G,{key:"line-".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))}))});return T.createElement(_e,{className:"recharts-errorBars"},y)}}])})(T.Component);N0(Pa,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});N0(Pa,"displayName","ErrorBar");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 Hy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Hy(Object(r),!0).forEach(function(n){NE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function NE(e,t,r){return t=qE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qE(e){var t=BE(e,"string");return vn(t)=="symbol"?t:t+""}function BE(e,t){if(vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var B0=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Ne(r,ur);if(!o)return null;var u=ur.defaultProps,c=u!==void 0?Rt(Rt({},u),o.props):{},s;return o.props&&o.props.payload?s=o.props&&o.props.payload:a==="children"?s=(n||[]).reduce(function(f,l){var h=l.item,d=l.props,y=d.sectors||d.data||[];return f.concat(y.map(function(v){return{type:o.props.iconType||h.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):s=(n||[]).map(function(f){var l=f.item,h=l.type.defaultProps,d=h!==void 0?Rt(Rt({},h),l.props):{},y=d.dataKey,v=d.name,p=d.legendType,b=d.hide;return{inactive:b,dataKey:y,type:c.iconType||p||"square",color:Gf(l),value:v||y,payload:d}}),Rt(Rt(Rt({},c),ur.getWithHeight(o,i)),{},{payload:s,item:o})};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 Gy(e){return WE(e)||UE(e)||FE(e)||LE()}function LE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
17
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FE(e,t){if(e){if(typeof e=="string")return yl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yl(e,t)}}function UE(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WE(e){if(Array.isArray(e))return yl(e)}function yl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ky(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function he(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ky(Object(r),!0).forEach(function(n){sr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ky(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sr(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=HE(e,"string");return yn(t)=="symbol"?t:t+""}function HE(e,t){if(yn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Je(e,t,r){return Z(e)||Z(t)?r:xe(t)?We(e,t,r):Y(t)?t(e):r}function Jr(e,t,r,n){var i=WT(e,function(u){return Je(u,t)});if(r==="number"){var a=i.filter(function(u){return q(u)||parseFloat(u)});return a.length?[_a(a),Oa(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!Z(u)}):i;return o.map(function(u){return xe(u)||u instanceof Date?u:""})}var GE=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n?.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var c=a.range,s=0;s<u;s++){var f=s>0?i[s-1].coordinate:i[u-1].coordinate,l=i[s].coordinate,h=s>=u-1?i[0].coordinate:i[s+1].coordinate,d=void 0;if(Ve(l-f)!==Ve(h-l)){var y=[];if(Ve(h-l)===Ve(c[1]-c[0])){d=h;var v=l+c[1]-c[0];y[0]=Math.min(v,(v+f)/2),y[1]=Math.max(v,(v+f)/2)}else{d=f;var p=h+c[1]-c[0];y[0]=Math.min(l,(p+l)/2),y[1]=Math.max(l,(p+l)/2)}var b=[Math.min(l,(d+l)/2),Math.max(l,(d+l)/2)];if(t>b[0]&&t<=b[1]||t>=y[0]&&t<=y[1]){o=i[s].index;break}}else{var x=Math.min(f,h),w=Math.max(f,h);if(t>(x+l)/2&&t<=(w+l)/2){o=i[s].index;break}}}else for(var O=0;O<u;O++)if(O===0&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O>0&&O<u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},Gf=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?he(he({},t.type.defaultProps),t.props):t.props,o=a.stroke,u=a.fill,c;switch(i){case"Line":c=o;break;case"Area":case"Radar":c=o&&o!=="none"?o:u;break;default:c=u;break}return c},KE=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},u=Object.keys(a),c=0,s=u.length;c<s;c++)for(var f=a[u[c]].stackGroups,l=Object.keys(f),h=0,d=l.length;h<d;h++){var y=f[l[h]],v=y.items,p=y.cateAxisId,b=v.filter(function(_){return ft(_.type).indexOf("Bar")>=0});if(b&&b.length){var x=b[0].type.defaultProps,w=x!==void 0?he(he({},x),b[0].props):b[0].props,O=w.barSize,g=w[p];o[g]||(o[g]=[]);var m=Z(O)?r:O;o[g].push({item:b[0],stackList:b.slice(1),barSize:Z(m)?void 0:Ye(m,n,0)})}}return o},XE=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,c=o.length;if(c<1)return null;var s=Ye(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var h=!1,d=i/c,y=o.reduce(function(O,g){return O+g.barSize||0},0);y+=(c-1)*s,y>=i&&(y-=(c-1)*s,s=0),y>=i&&d>0&&(h=!0,d*=.9,y=c*d);var v=(i-y)/2>>0,p={offset:v-s,size:0};f=o.reduce(function(O,g){var m={item:g.item,position:{offset:p.offset+p.size+s,size:h?d:g.barSize}},_=[].concat(Gy(O),[m]);return p=_[_.length-1].position,g.stackList&&g.stackList.length&&g.stackList.forEach(function(S){_.push({item:S,position:p})}),_},l)}else{var b=Ye(n,i,0,!0);i-2*b-(c-1)*s<=0&&(s=0);var x=(i-2*b-(c-1)*s)/c;x>1&&(x>>=0);var w=u===+u?Math.min(x,u):x;f=o.reduce(function(O,g,m){var _=[].concat(Gy(O),[{item:g.item,position:{offset:b+(x+s)*m+(x-w)/2,size:w}}]);return g.stackList&&g.stackList.length&&g.stackList.forEach(function(S){_.push({item:S,position:_[_.length-1].position})}),_},l)}return f},VE=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,c=o-(u.left||0)-(u.right||0),s=B0({children:a,legendWidth:c});if(s){var f=i||{},l=f.width,h=f.height,d=s.align,y=s.verticalAlign,v=s.layout;if((v==="vertical"||v==="horizontal"&&y==="middle")&&d!=="center"&&q(t[d]))return he(he({},t),{},sr({},d,t[d]+(l||0)));if((v==="horizontal"||v==="vertical"&&d==="center")&&y!=="middle"&&q(t[y]))return he(he({},t),{},sr({},y,t[y]+(h||0)))}return t},YE=function(t,r,n){return Z(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},L0=function(t,r,n,i,a){var o=r.props.children,u=Ze(o,Pa).filter(function(s){return YE(i,a,s.props.direction)});if(u&&u.length){var c=u.map(function(s){return s.props.dataKey});return t.reduce(function(s,f){var l=Je(f,n);if(Z(l))return s;var h=Array.isArray(l)?[_a(l),Oa(l)]:[l,l],d=c.reduce(function(y,v){var p=Je(f,v,0),b=h[0]-Math.abs(Array.isArray(p)?p[0]:p),x=h[1]+Math.abs(Array.isArray(p)?p[1]:p);return[Math.min(b,y[0]),Math.max(x,y[1])]},[1/0,-1/0]);return[Math.min(d[0],s[0]),Math.max(d[1],s[1])]},[1/0,-1/0])}return null},ZE=function(t,r,n,i,a){var o=r.map(function(u){return L0(t,u,n,a,i)}).filter(function(u){return!Z(u)});return o&&o.length?o.reduce(function(u,c){return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]):null},F0=function(t,r,n,i,a){var o=r.map(function(c){var s=c.props.dataKey;return n==="number"&&s&&L0(t,c,s,i)||Jr(t,s,n,a)});if(n==="number")return o.reduce(function(c,s){return[Math.min(c[0],s[0]),Math.max(c[1],s[1])]},[1/0,-1/0]);var u={};return o.reduce(function(c,s){for(var f=0,l=s.length;f<l;f++)u[s[f]]||(u[s[f]]=!0,c.push(s[f]));return c},[])},U0=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},W0=function(t,r,n,i){if(i)return t.map(function(c){return c.coordinate});var a,o,u=t.map(function(c){return c.coordinate===r&&(a=!0),c.coordinate===n&&(o=!0),c.coordinate});return a||u.push(r),o||u.push(n),u},lt=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,u=t.range,c=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,s=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/c:0;if(s=t.axisType==="angleAxis"&&u?.length>=2?Ve(u[0]-u[1])*2*s:s,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var h=a?a.indexOf(l):l;return{coordinate:i(h)+s,value:l,offset:s}});return f.filter(function(l){return!Nn(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,h){return{coordinate:i(l)+s,value:l,index:h,offset:s}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(l){return{coordinate:i(l)+s,value:l,offset:s}}):i.domain().map(function(l,h){return{coordinate:i(l)+s,value:a?a[l]:l,index:h,offset:s}})},os=new WeakMap,ei=function(t,r){if(typeof r!="function")return t;os.has(t)||os.set(t,new WeakMap);var n=os.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},z0=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,u=t.axisType;if(i==="auto")return o==="radial"&&u==="radiusAxis"?{scale:cn(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:Ti(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Zr(),realScaleType:"point"}:a==="category"?{scale:cn(),realScaleType:"band"}:{scale:Ti(),realScaleType:"linear"};if(zt(i)){var c="scale".concat(sa(i));return{scale:($y[c]||Zr)(),realScaleType:$y[c]?c:"point"}}return Y(i)?{scale:i}:{scale:Zr(),realScaleType:"point"}},Xy=1e-4,H0=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])-Xy,o=Math.max(i[0],i[1])+Xy,u=t(r[0]),c=t(r[n-1]);(u<a||u>o||c<a||c>o)&&t.domain([r[0],r[n-1]])}},JE=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},QE=function(t,r){if(!r||r.length!==2||!q(r[0])||!q(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!q(t[0])||t[0]<n)&&(a[0]=n),(!q(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},ej=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,u=0;u<r;++u){var c=Nn(t[u][n][1])?t[u][n][0]:t[u][n][1];c>=0?(t[u][n][0]=a,t[u][n][1]=a+c,a=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+c,o=t[u][n][1])}},tj=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var u=Nn(t[o][n][1])?t[o][n][0]:t[o][n][1];u>=0?(t[o][n][0]=a,t[o][n][1]=a+u,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},rj={sign:ej,expand:FO,none:lr,silhouette:UO,wiggle:WO,positive:tj},nj=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=rj[n],o=LO().keys(i).value(function(u,c){return+Je(u,c,0)}).order(Gs).offset(a);return o(t)},ij=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,c={},s=u.reduce(function(l,h){var d,y=(d=h.type)!==null&&d!==void 0&&d.defaultProps?he(he({},h.type.defaultProps),h.props):h.props,v=y.stackId,p=y.hide;if(p)return l;var b=y[n],x=l[b]||{hasStack:!1,stackGroups:{}};if(xe(v)){var w=x.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(h),x.hasStack=!0,x.stackGroups[v]=w}else x.stackGroups[ca("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return he(he({},l),{},sr({},b,x))},c),f={};return Object.keys(s).reduce(function(l,h){var d=s[h];if(d.hasStack){var y={};d.stackGroups=Object.keys(d.stackGroups).reduce(function(v,p){var b=d.stackGroups[p];return he(he({},v),{},sr({},p,{numericAxisId:n,cateAxisId:i,items:b.items,stackedData:nj(t,b.items,a)}))},y)}return he(he({},l),{},sr({},h,d))},f)},G0=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,c=n||r.scale;if(c!=="auto"&&c!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var s=t.domain();if(!s.length)return null;var f=mE(s,a,u);return t.domain([_a(f),Oa(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),h=bE(l,a,u);return{niceTicks:h}}return null};function DD(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Z(i[t.dataKey])){var u=oi(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var c=Je(i,Z(o)?t.dataKey:o);return Z(c)?null:t.scale(c)}var Vy=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,u=t.index;if(r.type==="category")return n[u]?n[u].coordinate+i:null;var c=Je(o,r.dataKey,r.domain[u]);return Z(c)?null:r.scale(c)-a/2+i},aj=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]},oj=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?he(he({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(xe(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},uj=function(t){return t.reduce(function(r,n){return[_a(n.concat([r[0]]).filter(q)),Oa(n.concat([r[1]]).filter(q))]},[1/0,-1/0])},K0=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,c=u.reduce(function(s,f){var l=uj(f.slice(r,n+1));return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Yy=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Zy=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,gl=function(t,r,n){if(Y(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(q(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(Yy.test(t[0])){var a=+Yy.exec(t[0])[1];i[0]=r[0]-a}else Y(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(q(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(Zy.test(t[1])){var o=+Zy.exec(t[1])[1];i[1]=r[1]+o}else Y(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Ri=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=bf(r,function(l){return l.coordinate}),o=1/0,u=1,c=a.length;u<c;u++){var s=a[u],f=a[u-1];o=Math.min((s.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},Jy=function(t,r,n){return!t||!t.length||Wf(t,We(n,"type.defaultProps.domain"))?r:t},X0=function(t,r){var n=t.type.defaultProps?he(he({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,u=n.formatter,c=n.tooltipType,s=n.chartType,f=n.hide;return he(he({},ee(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:Gf(t),value:Je(r,i),type:c,payload:r,chartType:s,hide:f})};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 Qy(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 ut(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qy(Object(r),!0).forEach(function(n){V0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function V0(e,t,r){return t=cj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cj(e){var t=sj(e,"string");return gn(t)=="symbol"?t:t+""}function sj(e,t){if(gn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lj(e,t){return dj(e)||pj(e,t)||hj(e,t)||fj()}function fj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
18
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hj(e,t){if(e){if(typeof e=="string")return eg(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 eg(e,t)}}function eg(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 pj(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function dj(e){if(Array.isArray(e))return e}var ki=Math.PI/180,vj=function(t){return t*180/Math.PI},Pe=function(t,r,n,i){return{x:t+Math.cos(-ki*i)*n,y:r+Math.sin(-ki*i)*n}},yj=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},ND=function(t,r,n,i,a){var o=t.width,u=t.height,c=t.startAngle,s=t.endAngle,f=Ye(t.cx,o,o/2),l=Ye(t.cy,u,u/2),h=yj(o,u,n),d=Ye(t.innerRadius,h,0),y=Ye(t.outerRadius,h,h*.8),v=Object.keys(r);return v.reduce(function(p,b){var x=r[b],w=x.domain,O=x.reversed,g;if(Z(x.range))i==="angleAxis"?g=[c,s]:i==="radiusAxis"&&(g=[d,y]),O&&(g=[g[1],g[0]]);else{g=x.range;var m=g,_=lj(m,2);c=_[0],s=_[1]}var S=z0(x,a),A=S.realScaleType,M=S.scale;M.domain(w).range(g),H0(M);var E=G0(M,ut(ut({},x),{},{realScaleType:A})),P=ut(ut(ut({},x),E),{},{range:g,radius:y,realScaleType:A,scale:M,cx:f,cy:l,innerRadius:d,outerRadius:y,startAngle:c,endAngle:s});return ut(ut({},p),{},V0({},b,P))},{})},gj=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))},mj=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=gj({x:n,y:i},{x:a,y:o});if(u<=0)return{radius:u};var c=(n-a)/u,s=Math.acos(c);return i>o&&(s=2*Math.PI-s),{radius:u,angle:vj(s),angleInRadian:s}},bj=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}},xj=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),u=Math.min(a,o);return t+u*360},tg=function(t,r){var n=t.x,i=t.y,a=mj({x:n,y:i},r),o=a.radius,u=a.angle,c=r.innerRadius,s=r.outerRadius;if(o<c||o>s)return!1;if(o===0)return!0;var f=bj(r),l=f.startAngle,h=f.endAngle,d=u,y;if(l<=h){for(;d>h;)d-=360;for(;d<l;)d+=360;y=d>=l&&d<=h}else{for(;d>l;)d-=360;for(;d<h;)d+=360;y=d>=h&&d<=l}return y?ut(ut({},r),{},{radius:o,angle:xj(d,r)}):null},qD=function(t){return!N.isValidElement(t)&&!Y(t)&&typeof t!="boolean"?t.className:""};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)}var wj=["offset"];function Oj(e){return Pj(e)||Aj(e)||Sj(e)||_j()}function _j(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
19
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sj(e,t){if(e){if(typeof e=="string")return ml(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ml(e,t)}}function Aj(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Pj(e){if(Array.isArray(e))return ml(e)}function ml(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Tj(e,t){if(e==null)return{};var r=Ej(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 Ej(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 rg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function be(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rg(Object(r),!0).forEach(function(n){jj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jj(e,t,r){return t=Mj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mj(e){var t=Cj(e,"string");return mn(t)=="symbol"?t:t+""}function Cj(e,t){if(mn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bn(){return bn=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},bn.apply(this,arguments)}var $j=function(t){var r=t.value,n=t.formatter,i=Z(t.children)?r:t.children;return Y(n)?n(i):i},Ij=function(t,r){var n=Ve(r-t),i=Math.min(Math.abs(r-t),360);return n*i},Rj=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,u=t.className,c=a,s=c.cx,f=c.cy,l=c.innerRadius,h=c.outerRadius,d=c.startAngle,y=c.endAngle,v=c.clockWise,p=(l+h)/2,b=Ij(d,y),x=b>=0?1:-1,w,O;i==="insideStart"?(w=d+x*o,O=v):i==="insideEnd"?(w=y-x*o,O=!v):i==="end"&&(w=y+x*o,O=v),O=b<=0?O:!O;var g=Pe(s,f,p,w),m=Pe(s,f,p,w+(O?1:-1)*359),_="M".concat(g.x,",").concat(g.y,`
20
+ A`).concat(p,",").concat(p,",0,1,").concat(O?0:1,`,
21
+ `).concat(m.x,",").concat(m.y),S=Z(t.id)?ca("recharts-radial-line-"):t.id;return T.createElement("text",bn({},n,{dominantBaseline:"central",className:te("recharts-radial-bar-label",u)}),T.createElement("defs",null,T.createElement("path",{id:S,d:_})),T.createElement("textPath",{xlinkHref:"#".concat(S)},r))},kj=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,u=a.cy,c=a.innerRadius,s=a.outerRadius,f=a.startAngle,l=a.endAngle,h=(f+l)/2;if(i==="outside"){var d=Pe(o,u,s+n,h),y=d.x,v=d.y;return{x:y,y:v,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"end"};var p=(c+s)/2,b=Pe(o,u,p,h),x=b.x,w=b.y;return{x,y:w,textAnchor:"middle",verticalAnchor:"middle"}},Dj=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,u=o.x,c=o.y,s=o.width,f=o.height,l=f>=0?1:-1,h=l*i,d=l>0?"end":"start",y=l>0?"start":"end",v=s>=0?1:-1,p=v*i,b=v>0?"end":"start",x=v>0?"start":"end";if(a==="top"){var w={x:u+s/2,y:c-l*i,textAnchor:"middle",verticalAnchor:d};return be(be({},w),n?{height:Math.max(c-n.y,0),width:s}:{})}if(a==="bottom"){var O={x:u+s/2,y:c+f+h,textAnchor:"middle",verticalAnchor:y};return be(be({},O),n?{height:Math.max(n.y+n.height-(c+f),0),width:s}:{})}if(a==="left"){var g={x:u-p,y:c+f/2,textAnchor:b,verticalAnchor:"middle"};return be(be({},g),n?{width:Math.max(g.x-n.x,0),height:f}:{})}if(a==="right"){var m={x:u+s+p,y:c+f/2,textAnchor:x,verticalAnchor:"middle"};return be(be({},m),n?{width:Math.max(n.x+n.width-m.x,0),height:f}:{})}var _=n?{width:s,height:f}:{};return a==="insideLeft"?be({x:u+p,y:c+f/2,textAnchor:x,verticalAnchor:"middle"},_):a==="insideRight"?be({x:u+s-p,y:c+f/2,textAnchor:b,verticalAnchor:"middle"},_):a==="insideTop"?be({x:u+s/2,y:c+h,textAnchor:"middle",verticalAnchor:y},_):a==="insideBottom"?be({x:u+s/2,y:c+f-h,textAnchor:"middle",verticalAnchor:d},_):a==="insideTopLeft"?be({x:u+p,y:c+h,textAnchor:x,verticalAnchor:y},_):a==="insideTopRight"?be({x:u+s-p,y:c+h,textAnchor:b,verticalAnchor:y},_):a==="insideBottomLeft"?be({x:u+p,y:c+f-h,textAnchor:x,verticalAnchor:d},_):a==="insideBottomRight"?be({x:u+s-p,y:c+f-h,textAnchor:b,verticalAnchor:d},_):$r(a)&&(q(a.x)||Nt(a.x))&&(q(a.y)||Nt(a.y))?be({x:u+Ye(a.x,s),y:c+Ye(a.y,f),textAnchor:"end",verticalAnchor:"end"},_):be({x:u+s/2,y:c+f/2,textAnchor:"middle",verticalAnchor:"middle"},_)},Nj=function(t){return"cx"in t&&q(t.cx)};function Ee(e){var t=e.offset,r=t===void 0?5:t,n=Tj(e,wj),i=be({offset:r},n),a=i.viewBox,o=i.position,u=i.value,c=i.children,s=i.content,f=i.className,l=f===void 0?"":f,h=i.textBreakAll;if(!a||Z(u)&&Z(c)&&!N.isValidElement(s)&&!Y(s))return null;if(N.isValidElement(s))return N.cloneElement(s,i);var d;if(Y(s)){if(d=N.createElement(s,i),N.isValidElement(d))return d}else d=$j(i);var y=Nj(a),v=ee(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return Rj(i,d,v);var p=y?kj(i):Dj(i);return T.createElement(bi,bn({className:te("recharts-label",l)},v,p,{breakAll:h}),d)}Ee.displayName="Label";var Y0=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,c=t.radius,s=t.innerRadius,f=t.outerRadius,l=t.x,h=t.y,d=t.top,y=t.left,v=t.width,p=t.height,b=t.clockWise,x=t.labelViewBox;if(x)return x;if(q(v)&&q(p)){if(q(l)&&q(h))return{x:l,y:h,width:v,height:p};if(q(d)&&q(y))return{x:d,y,width:v,height:p}}return q(l)&&q(h)?{x:l,y:h,width:0,height:0}:q(r)&&q(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:s||0,outerRadius:f||c||u||0,clockWise:b}:t.viewBox?t.viewBox:{}},qj=function(t,r){return t?t===!0?T.createElement(Ee,{key:"label-implicit",viewBox:r}):xe(t)?T.createElement(Ee,{key:"label-implicit",viewBox:r,value:t}):N.isValidElement(t)?t.type===Ee?N.cloneElement(t,{key:"label-implicit",viewBox:r}):T.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):Y(t)?T.createElement(Ee,{key:"label-implicit",content:t,viewBox:r}):$r(t)?T.createElement(Ee,bn({viewBox:r},t,{key:"label-implicit"})):null:null},Bj=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=Y0(t),o=Ze(i,Ee).map(function(c,s){return N.cloneElement(c,{viewBox:r||a,key:"label-".concat(s)})});if(!n)return o;var u=qj(t.label,r||a);return[u].concat(Oj(o))};Ee.parseViewBox=Y0;Ee.renderCallByParent=Bj;var us,ng;function Lj(){if(ng)return us;ng=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return us=e,us}var Fj=Lj();const Uj=ue(Fj);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)}var Wj=["valueAccessor"],zj=["data","dataKey","clockWise","id","textBreakAll"];function Hj(e){return Vj(e)||Xj(e)||Kj(e)||Gj()}function Gj(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
22
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kj(e,t){if(e){if(typeof e=="string")return bl(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 bl(e,t)}}function Xj(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vj(e){if(Array.isArray(e))return bl(e)}function bl(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 Di(){return Di=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},Di.apply(this,arguments)}function ig(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ag(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ig(Object(r),!0).forEach(function(n){Yj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ig(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yj(e,t,r){return t=Zj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zj(e){var t=Jj(e,"string");return xn(t)=="symbol"?t:t+""}function Jj(e,t){if(xn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function og(e,t){if(e==null)return{};var r=Qj(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Qj(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var eM=function(t){return Array.isArray(t.value)?Uj(t.value):t.value};function Wt(e){var t=e.valueAccessor,r=t===void 0?eM:t,n=og(e,Wj),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,c=n.textBreakAll,s=og(n,zj);return!i||!i.length?null:T.createElement(_e,{className:"recharts-label-list"},i.map(function(f,l){var h=Z(a)?r(f,l):Je(f&&f.payload,a),d=Z(u)?{}:{id:"".concat(u,"-").concat(l)};return T.createElement(Ee,Di({},ee(f,!0),s,d,{parentViewBox:f.parentViewBox,value:h,textBreakAll:c,viewBox:Ee.parseViewBox(Z(o)?f:ag(ag({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}Wt.displayName="LabelList";function tM(e,t){return e?e===!0?T.createElement(Wt,{key:"labelList-implicit",data:t}):T.isValidElement(e)||Y(e)?T.createElement(Wt,{key:"labelList-implicit",data:t,content:e}):$r(e)?T.createElement(Wt,Di({data:t},e,{key:"labelList-implicit"})):null:null}function rM(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=Ze(n,Wt).map(function(o,u){return N.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=tM(e.label,t);return[a].concat(Hj(i))}Wt.renderCallByParent=rM;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 xl(){return xl=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},xl.apply(this,arguments)}function ug(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ug(Object(r),!0).forEach(function(n){nM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ug(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nM(e,t,r){return t=iM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iM(e){var t=aM(e,"string");return wn(t)=="symbol"?t:t+""}function aM(e,t){if(wn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oM=function(t,r){var n=Ve(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},ti=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,u=t.isExternal,c=t.cornerRadius,s=t.cornerIsExternal,f=c*(u?1:-1)+i,l=Math.asin(c/f)/ki,h=s?a:a+o*l,d=Pe(r,n,f,h),y=Pe(r,n,i,h),v=s?a-o*l:a,p=Pe(r,n,f*Math.cos(l*ki),v);return{center:d,circleTangency:y,lineTangency:p,theta:l}},Z0=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,c=oM(o,u),s=o+c,f=Pe(r,n,a,o),l=Pe(r,n,a,s),h="M ".concat(f.x,",").concat(f.y,`
23
+ A `).concat(a,",").concat(a,`,0,
24
+ `).concat(+(Math.abs(c)>180),",").concat(+(o>s),`,
25
+ `).concat(l.x,",").concat(l.y,`
26
+ `);if(i>0){var d=Pe(r,n,i,o),y=Pe(r,n,i,s);h+="L ".concat(y.x,",").concat(y.y,`
27
+ A `).concat(i,",").concat(i,`,0,
28
+ `).concat(+(Math.abs(c)>180),",").concat(+(o<=s),`,
29
+ `).concat(d.x,",").concat(d.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},uM=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,c=t.cornerIsExternal,s=t.startAngle,f=t.endAngle,l=Ve(f-s),h=ti({cx:r,cy:n,radius:a,angle:s,sign:l,cornerRadius:o,cornerIsExternal:c}),d=h.circleTangency,y=h.lineTangency,v=h.theta,p=ti({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:c}),b=p.circleTangency,x=p.lineTangency,w=p.theta,O=c?Math.abs(s-f):Math.abs(s-f)-v-w;if(O<0)return u?"M ".concat(y.x,",").concat(y.y,`
30
+ a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
31
+ a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
32
+ `):Z0({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:s,endAngle:f});var g="M ".concat(y.x,",").concat(y.y,`
33
+ A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(d.x,",").concat(d.y,`
34
+ A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(l<0),",").concat(b.x,",").concat(b.y,`
35
+ A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(x.x,",").concat(x.y,`
36
+ `);if(i>0){var m=ti({cx:r,cy:n,radius:i,angle:s,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),_=m.circleTangency,S=m.lineTangency,A=m.theta,M=ti({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),E=M.circleTangency,P=M.lineTangency,j=M.theta,$=c?Math.abs(s-f):Math.abs(s-f)-A-j;if($<0&&o===0)return"".concat(g,"L").concat(r,",").concat(n,"Z");g+="L".concat(P.x,",").concat(P.y,`
37
+ A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(E.x,",").concat(E.y,`
38
+ A`).concat(i,",").concat(i,",0,").concat(+($>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,`
39
+ A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(S.x,",").concat(S.y,"Z")}else g+="L".concat(r,",").concat(n,"Z");return g},cM={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},J0=function(t){var r=cg(cg({},cM),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,c=r.forceCornerRadius,s=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,h=r.className;if(o<a||f===l)return null;var d=te("recharts-sector",h),y=o-a,v=Ye(u,y,0,!0),p;return v>0&&Math.abs(f-l)<360?p=uM({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:c,cornerIsExternal:s,startAngle:f,endAngle:l}):p=Z0({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),T.createElement("path",xl({},ee(r,!0),{className:d,d:p,role:"img"}))};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 wl(){return wl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wl.apply(this,arguments)}function sg(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 lg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sg(Object(r),!0).forEach(function(n){sM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sM(e,t,r){return t=lM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lM(e){var t=fM(e,"string");return On(t)=="symbol"?t:t+""}function fM(e,t){if(On(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(On(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fg={curveBasisClosed:jO,curveBasisOpen:MO,curveBasis:EO,curveBumpX:dO,curveBumpY:vO,curveLinearClosed:CO,curveLinear:fa,curveMonotoneX:$O,curveMonotoneY:IO,curveNatural:RO,curveStep:kO,curveStepAfter:NO,curveStepBefore:DO},ri=function(t){return t.x===+t.x&&t.y===+t.y},Wr=function(t){return t.x},zr=function(t){return t.y},hM=function(t,r){if(Y(t))return t;var n="curve".concat(sa(t));return(n==="curveMonotone"||n==="curveBump")&&r?fg["".concat(n).concat(r==="vertical"?"Y":"X")]:fg[n]||fa},pM=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,u=t.layout,c=t.connectNulls,s=c===void 0?!1:c,f=hM(n,u),l=s?a.filter(function(v){return ri(v)}):a,h;if(Array.isArray(o)){var d=s?o.filter(function(v){return ri(v)}):o,y=l.map(function(v,p){return lg(lg({},v),{},{base:d[p]})});return u==="vertical"?h=Kn().y(zr).x1(Wr).x0(function(v){return v.base.x}):h=Kn().x(Wr).y1(zr).y0(function(v){return v.base.y}),h.defined(ri).curve(f),h(y)}return u==="vertical"&&q(o)?h=Kn().y(zr).x1(Wr).x0(o):q(o)?h=Kn().x(Wr).y1(zr).y0(o):h=Qm().x(Wr).y(zr),h.defined(ri).curve(f),h(l)},hg=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?pM(t):i;return N.createElement("path",wl({},ee(t,!1),ui(t),{className:te("recharts-curve",r),d:o,ref:a}))},cs={exports:{}},ss,pg;function dM(){if(pg)return ss;pg=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ss=e,ss}var ls,dg;function vM(){if(dg)return ls;dg=1;var e=dM();function t(){}function r(){}return r.resetWarningCache=t,ls=function(){function n(o,u,c,s,f,l){if(l!==e){var h=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 h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},ls}var vg;function yM(){return vg||(vg=1,cs.exports=vM()()),cs.exports}var gM=yM();const ne=ue(gM),{getOwnPropertyNames:mM,getOwnPropertySymbols:bM}=Object,{hasOwnProperty:xM}=Object.prototype;function fs(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function ni(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:a}=i,o=a.get(r),u=a.get(n);if(o&&u)return o===n&&u===r;a.set(r,n),a.set(n,r);const c=e(r,n,i);return a.delete(r),a.delete(n),c}}function wM(e){return e?.[Symbol.toStringTag]}function yg(e){return mM(e).concat(bM(e))}const OM=Object.hasOwn||((e,t)=>xM.call(e,t));function Zt(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const _M="__v",SM="__o",AM="_owner",{getOwnPropertyDescriptor:gg,keys:mg}=Object;function PM(e,t){return e.byteLength===t.byteLength&&Ni(new Uint8Array(e),new Uint8Array(t))}function TM(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function EM(e,t){return e.byteLength===t.byteLength&&Ni(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function jM(e,t){return Zt(e.getTime(),t.getTime())}function MM(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function CM(e,t){return e===t}function bg(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,u,c=0;for(;(o=a.next())&&!o.done;){const s=t.entries();let f=!1,l=0;for(;(u=s.next())&&!u.done;){if(i[l]){l++;continue}const h=o.value,d=u.value;if(r.equals(h[0],d[0],c,l,e,t,r)&&r.equals(h[1],d[1],h[0],d[0],e,t,r)){f=i[l]=!0;break}l++}if(!f)return!1;c++}return!0}const $M=Zt;function IM(e,t,r){const n=mg(e);let i=n.length;if(mg(t).length!==i)return!1;for(;i-- >0;)if(!Q0(e,t,r,n[i]))return!1;return!0}function Hr(e,t,r){const n=yg(e);let i=n.length;if(yg(t).length!==i)return!1;let a,o,u;for(;i-- >0;)if(a=n[i],!Q0(e,t,r,a)||(o=gg(e,a),u=gg(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function RM(e,t){return Zt(e.valueOf(),t.valueOf())}function kM(e,t){return e.source===t.source&&e.flags===t.flags}function xg(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.values();let o,u;for(;(o=a.next())&&!o.done;){const c=t.values();let s=!1,f=0;for(;(u=c.next())&&!u.done;){if(!i[f]&&r.equals(o.value,u.value,o.value,u.value,e,t,r)){s=i[f]=!0;break}f++}if(!s)return!1}return!0}function Ni(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function DM(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 Q0(e,t,r,n){return(n===AM||n===SM||n===_M)&&(e.$$typeof||t.$$typeof)?!0:OM(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const NM="[object ArrayBuffer]",qM="[object Arguments]",BM="[object Boolean]",LM="[object DataView]",FM="[object Date]",UM="[object Error]",WM="[object Map]",zM="[object Number]",HM="[object Object]",GM="[object RegExp]",KM="[object Set]",XM="[object String]",VM={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},YM="[object URL]",ZM=Object.prototype.toString;function JM({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:u,areObjectsEqual:c,arePrimitiveWrappersEqual:s,areRegExpsEqual:f,areSetsEqual:l,areTypedArraysEqual:h,areUrlsEqual:d,unknownTagComparators:y}){return function(p,b,x){if(p===b)return!0;if(p==null||b==null)return!1;const w=typeof p;if(w!==typeof b)return!1;if(w!=="object")return w==="number"?u(p,b,x):w==="function"?a(p,b,x):!1;const O=p.constructor;if(O!==b.constructor)return!1;if(O===Object)return c(p,b,x);if(Array.isArray(p))return t(p,b,x);if(O===Date)return n(p,b,x);if(O===RegExp)return f(p,b,x);if(O===Map)return o(p,b,x);if(O===Set)return l(p,b,x);const g=ZM.call(p);if(g===FM)return n(p,b,x);if(g===GM)return f(p,b,x);if(g===WM)return o(p,b,x);if(g===KM)return l(p,b,x);if(g===HM)return typeof p.then!="function"&&typeof b.then!="function"&&c(p,b,x);if(g===YM)return d(p,b,x);if(g===UM)return i(p,b,x);if(g===qM)return c(p,b,x);if(VM[g])return h(p,b,x);if(g===NM)return e(p,b,x);if(g===LM)return r(p,b,x);if(g===BM||g===zM||g===XM)return s(p,b,x);if(y){let m=y[g];if(!m){const _=wM(p);_&&(m=y[_])}if(m)return m(p,b,x)}return!1}}function QM({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:PM,areArraysEqual:r?Hr:TM,areDataViewsEqual:EM,areDatesEqual:jM,areErrorsEqual:MM,areFunctionsEqual:CM,areMapsEqual:r?fs(bg,Hr):bg,areNumbersEqual:$M,areObjectsEqual:r?Hr:IM,arePrimitiveWrappersEqual:RM,areRegExpsEqual:kM,areSetsEqual:r?fs(xg,Hr):xg,areTypedArraysEqual:r?fs(Ni,Hr):Ni,areUrlsEqual:DM,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=ni(n.areArraysEqual),a=ni(n.areMapsEqual),o=ni(n.areObjectsEqual),u=ni(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:u})}return n}function eC(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function tC({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(u,c){const{cache:s=e?new WeakMap:void 0,meta:f}=r();return t(u,c,{cache:s,equals:n,meta:f,strict:i})};if(e)return function(u,c){return t(u,c,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(u,c){return t(u,c,a)}}const rC=Mt();Mt({strict:!0});Mt({circular:!0});Mt({circular:!0,strict:!0});Mt({createInternalComparator:()=>Zt});Mt({strict:!0,createInternalComparator:()=>Zt});Mt({circular:!0,createInternalComparator:()=>Zt});Mt({circular:!0,createInternalComparator:()=>Zt,strict:!0});function Mt(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=QM(e),o=JM(a),u=r?r(o):eC(o);return tC({circular:t,comparator:o,createState:n,equals:u,strict:i})}function nC(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function wg(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):nC(i)};requestAnimationFrame(n)}function Ol(e){"@babel/helpers - typeof";return Ol=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},Ol(e)}function iC(e){return cC(e)||uC(e)||oC(e)||aC()}function aC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
40
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oC(e,t){if(e){if(typeof e=="string")return Og(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Og(e,t)}}function Og(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function uC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cC(e){if(Array.isArray(e))return e}function sC(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,u=iC(o),c=u[0],s=u.slice(1);if(typeof c=="number"){wg(i.bind(null,s),c);return}i(c),wg(i.bind(null,s));return}Ol(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 _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 _g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Sg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_g(Object(r),!0).forEach(function(n){ex(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_g(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ex(e,t,r){return t=lC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lC(e){var t=fC(e,"string");return _n(t)==="symbol"?t:String(t)}function fC(e,t){if(_n(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_n(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hC=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},pC=function(t){return t},dC=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Qr=function(t,r){return Object.keys(r).reduce(function(n,i){return Sg(Sg({},n),{},ex({},i,t(i,r[i])))},{})},Ag=function(t,r,n){return t.map(function(i){return"".concat(dC(i)," ").concat(r,"ms ").concat(n)}).join(",")};function vC(e,t){return mC(e)||gC(e,t)||tx(e,t)||yC()}function yC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
41
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function mC(e){if(Array.isArray(e))return e}function bC(e){return OC(e)||wC(e)||tx(e)||xC()}function xC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
42
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tx(e,t){if(e){if(typeof e=="string")return _l(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 _l(e,t)}}function wC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OC(e){if(Array.isArray(e))return _l(e)}function _l(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 qi=1e-4,rx=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},nx=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},Pg=function(t,r){return function(n){var i=rx(t,r);return nx(i,n)}},_C=function(t,r){return function(n){var i=rx(t,r),a=[].concat(bC(i.map(function(o,u){return o*u}).slice(1)),[0]);return nx(a,n)}},Tg=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],u=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,u=1;break;case"ease":i=.25,a=.1,o=.25,u=1;break;case"ease-in":i=.42,a=0,o=1,u=1;break;case"ease-out":i=.42,a=0,o=.58,u=1;break;case"ease-in-out":i=0,a=0,o=.58,u=1;break;default:{var c=r[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var s=c[1].split(")")[0].split(",").map(function(p){return parseFloat(p)}),f=vC(s,4);i=f[0],a=f[1],o=f[2],u=f[3]}}}var l=Pg(i,o),h=Pg(a,u),d=_C(i,o),y=function(b){return b>1?1:b<0?0:b},v=function(b){for(var x=b>1?1:b,w=x,O=0;O<8;++O){var g=l(w)-x,m=d(w);if(Math.abs(g-x)<qi||m<qi)return h(w);w=y(w-g/m)}return h(w)};return v.isStepper=!1,v},SC=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,u=o===void 0?17:o,c=function(f,l,h){var d=-(f-l)*n,y=h*a,v=h+(d-y)*u/1e3,p=h*u/1e3+f;return Math.abs(p-l)<qi&&Math.abs(v)<qi?[l,0]:[p,v]};return c.isStepper=!0,c.dt=u,c},AC=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 Tg(i);case"spring":return SC();default:if(i.split("(")[0]==="cubic-bezier")return Tg(i)}return typeof i=="function"?i:null};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 Eg(e){return EC(e)||TC(e)||ix(e)||PC()}function PC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
43
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function EC(e){if(Array.isArray(e))return Al(e)}function jg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jg(Object(r),!0).forEach(function(n){Sl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Sl(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=MC(e,"string");return Sn(t)==="symbol"?t:String(t)}function MC(e,t){if(Sn(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sn(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function CC(e,t){return RC(e)||IC(e,t)||ix(e,t)||$C()}function $C(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
44
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ix(e,t){if(e){if(typeof e=="string")return Al(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 Al(e,t)}}function Al(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 IC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function RC(e){if(Array.isArray(e))return e}var Bi=function(t,r,n){return t+(r-t)*n},Pl=function(t){var r=t.from,n=t.to;return r!==n},kC=function e(t,r,n){var i=Qr(function(a,o){if(Pl(o)){var u=t(o.from,o.to,o.velocity),c=CC(u,2),s=c[0],f=c[1];return Ae(Ae({},o),{},{from:s,velocity:f})}return o},r);return n<1?Qr(function(a,o){return Pl(o)?Ae(Ae({},o),{},{velocity:Bi(o.velocity,i[a].velocity,n),from:Bi(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const DC=(function(e,t,r,n,i){var a=hC(e,t),o=a.reduce(function(p,b){return Ae(Ae({},p),{},Sl({},b,[e[b],t[b]]))},{}),u=a.reduce(function(p,b){return Ae(Ae({},p),{},Sl({},b,{from:e[b],velocity:0,to:t[b]}))},{}),c=-1,s,f,l=function(){return null},h=function(){return Qr(function(b,x){return x.from},u)},d=function(){return!Object.values(u).filter(Pl).length},y=function(b){s||(s=b);var x=b-s,w=x/r.dt;u=kC(r,u,w),i(Ae(Ae(Ae({},e),t),h())),s=b,d()||(c=requestAnimationFrame(l))},v=function(b){f||(f=b);var x=(b-f)/n,w=Qr(function(g,m){return Bi.apply(void 0,Eg(m).concat([r(x)]))},o);if(i(Ae(Ae(Ae({},e),t),w)),x<1)c=requestAnimationFrame(l);else{var O=Qr(function(g,m){return Bi.apply(void 0,Eg(m).concat([r(1)]))},o);i(Ae(Ae(Ae({},e),t),O))}};return l=r.isStepper?y:v,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(c)}}});function br(e){"@babel/helpers - typeof";return br=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},br(e)}var NC=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function qC(e,t){if(e==null)return{};var r=BC(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 BC(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 hs(e){return WC(e)||UC(e)||FC(e)||LC()}function LC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
45
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FC(e,t){if(e){if(typeof e=="string")return Tl(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 Tl(e,t)}}function UC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WC(e){if(Array.isArray(e))return Tl(e)}function Tl(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 Mg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mg(Object(r),!0).forEach(function(n){Vr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vr(e,t,r){return t=ax(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HC(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,ax(n.key),n)}}function GC(e,t,r){return t&&HC(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ax(e){var t=KC(e,"string");return br(t)==="symbol"?t:String(t)}function KC(e,t){if(br(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(br(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function XC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&El(e,t)}function El(e,t){return El=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},El(e,t)}function VC(e){var t=YC();return function(){var n=Li(e),i;if(t){var a=Li(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return jl(this,i)}}function jl(e,t){if(t&&(br(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return 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 YC(){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 Li(e){return Li=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Li(e)}var At=(function(e){XC(r,e);var t=VC(r);function r(n,i){var a;zC(this,r),a=t.call(this,n,i);var o=a.props,u=o.isActive,c=o.attributeName,s=o.from,f=o.to,l=o.steps,h=o.children,d=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Ml(a)),a.changeStyle=a.changeStyle.bind(Ml(a)),!u||d<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:f}),jl(a);if(l&&l.length)a.state={style:l[0].style};else if(s){if(typeof h=="function")return a.state={style:s},jl(a);a.state={style:c?Vr({},c,s):s}}else a.state={style:{}};return a}return GC(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,u=a.canBegin,c=a.attributeName,s=a.shouldReAnimate,f=a.to,l=a.from,h=this.state.style;if(u){if(!o){var d={style:c?Vr({},c,f):f};this.state&&h&&(c&&h[c]!==f||!c&&h!==f)&&this.setState(d);return}if(!(rC(i.to,f)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=y||s?l:i.to;if(this.state&&h){var p={style:c?Vr({},c,v):v};(c&&h[c]!==v||!c&&h!==v)&&this.setState(p)}this.runAnimation(Ge(Ge({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,u=i.to,c=i.duration,s=i.easing,f=i.begin,l=i.onAnimationEnd,h=i.onAnimationStart,d=DC(o,u,AC(s),c,this.changeStyle),y=function(){a.stopJSAnimation=d()};this.manager.start([h,f,y,c,l])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,c=i.onAnimationStart,s=o[0],f=s.style,l=s.duration,h=l===void 0?0:l,d=function(v,p,b){if(b===0)return v;var x=p.duration,w=p.easing,O=w===void 0?"ease":w,g=p.style,m=p.properties,_=p.onAnimationEnd,S=b>0?o[b-1]:p,A=m||Object.keys(g);if(typeof O=="function"||O==="spring")return[].concat(hs(v),[a.runJSAnimation.bind(a,{from:S.style,to:g,duration:x,easing:O}),x]);var M=Ag(A,x,O),E=Ge(Ge(Ge({},S.style),g),{},{transition:M});return[].concat(hs(v),[E,x,_]).filter(pC)};return this.manager.start([c].concat(hs(o.reduce(d,[f,Math.max(h,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=sC());var a=i.begin,o=i.duration,u=i.attributeName,c=i.to,s=i.easing,f=i.onAnimationStart,l=i.onAnimationEnd,h=i.steps,d=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof s=="function"||typeof d=="function"||s==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var v=u?Vr({},u,c):c,p=Ag(Object.keys(v),o,s);y.start([f,a,Ge(Ge({},v),{},{transition:p}),o,l])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var c=qC(i,NC),s=N.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!u||s===0||o<=0)return a;var l=function(d){var y=d.props,v=y.style,p=v===void 0?{}:v,b=y.className,x=N.cloneElement(d,Ge(Ge({},c),{},{style:Ge(Ge({},p),f),className:b}));return x};return s===1?l(N.Children.only(a)):T.createElement("div",null,N.Children.map(a,function(h){return l(h)}))}}]),r})(N.PureComponent);At.displayName="Animate";At.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};At.propTypes={from:ne.oneOfType([ne.object,ne.string]),to:ne.oneOfType([ne.object,ne.string]),attributeName:ne.string,duration:ne.number,begin:ne.number,easing:ne.oneOfType([ne.string,ne.func]),steps:ne.arrayOf(ne.shape({duration:ne.number.isRequired,style:ne.object.isRequired,easing:ne.oneOfType([ne.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ne.func]),properties:ne.arrayOf("string"),onAnimationEnd:ne.func})),children:ne.oneOfType([ne.node,ne.func]),isActive:ne.bool,canBegin:ne.bool,onAnimationEnd:ne.func,shouldReAnimate:ne.bool,onAnimationStart:ne.func,onAnimationReStart:ne.func};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 Fi(){return Fi=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},Fi.apply(this,arguments)}function ZC(e,t){return t$(e)||e$(e,t)||QC(e,t)||JC()}function JC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
46
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QC(e,t){if(e){if(typeof e=="string")return Cg(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 Cg(e,t)}}function Cg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function e$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function t$(e){if(Array.isArray(e))return e}function $g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ig(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$g(Object(r),!0).forEach(function(n){r$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$g(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function r$(e,t,r){return t=n$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n$(e){var t=i$(e,"string");return An(t)=="symbol"?t:t+""}function i$(e,t){if(An(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(An(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rg=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=i>=0?1:-1,c=n>=0?1:-1,s=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var l=[0,0,0,0],h=0,d=4;h<d;h++)l[h]=a[h]>o?o:a[h];f="M".concat(t,",").concat(r+u*l[0]),l[0]>0&&(f+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(s,",").concat(t+c*l[0],",").concat(r)),f+="L ".concat(t+n-c*l[1],",").concat(r),l[1]>0&&(f+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(s,`,
47
+ `).concat(t+n,",").concat(r+u*l[1])),f+="L ".concat(t+n,",").concat(r+i-u*l[2]),l[2]>0&&(f+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(s,`,
48
+ `).concat(t+n-c*l[2],",").concat(r+i)),f+="L ".concat(t+c*l[3],",").concat(r+i),l[3]>0&&(f+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(s,`,
49
+ `).concat(t,",").concat(r+i-u*l[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);f="M ".concat(t,",").concat(r+u*y,`
50
+ A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+c*y,",").concat(r,`
51
+ L `).concat(t+n-c*y,",").concat(r,`
52
+ A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+n,",").concat(r+u*y,`
53
+ L `).concat(t+n,",").concat(r+i-u*y,`
54
+ A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t+n-c*y,",").concat(r+i,`
55
+ L `).concat(t+c*y,",").concat(r+i,`
56
+ A `).concat(y,",").concat(y,",0,0,").concat(s,",").concat(t,",").concat(r+i-u*y," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},a$=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,u=r.width,c=r.height;if(Math.abs(u)>0&&Math.abs(c)>0){var s=Math.min(a,a+u),f=Math.max(a,a+u),l=Math.min(o,o+c),h=Math.max(o,o+c);return n>=s&&n<=f&&i>=l&&i<=h}return!1},o$={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Kf=function(t){var r=Ig(Ig({},o$),t),n=N.useRef(),i=N.useState(-1),a=ZC(i,2),o=a[0],u=a[1];N.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&u(O)}catch{}},[]);var c=r.x,s=r.y,f=r.width,l=r.height,h=r.radius,d=r.className,y=r.animationEasing,v=r.animationDuration,p=r.animationBegin,b=r.isAnimationActive,x=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||f===0||l===0)return null;var w=te("recharts-rectangle",d);return x?T.createElement(At,{canBegin:o>0,from:{width:f,height:l,x:c,y:s},to:{width:f,height:l,x:c,y:s},duration:v,animationEasing:y,isActive:x},function(O){var g=O.width,m=O.height,_=O.x,S=O.y;return T.createElement(At,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:v,isActive:b,easing:y},T.createElement("path",Fi({},ee(r,!0),{className:w,d:Rg(_,S,g,m,h),ref:n})))}):T.createElement("path",Fi({},ee(r,!0),{className:w,d:Rg(c,s,f,l,h)}))};function Cl(){return Cl=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},Cl.apply(this,arguments)}var ox=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=te("recharts-dot",a);return r===+r&&n===+n&&i===+i?N.createElement("circle",Cl({},ee(t,!1),ui(t),{className:o,cx:r,cy:n,r:i})):null};function Pn(e){"@babel/helpers - typeof";return Pn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pn(e)}var u$=["x","y","top","left","width","height","className"];function $l(){return $l=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},$l.apply(this,arguments)}function kg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function c$(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kg(Object(r),!0).forEach(function(n){s$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function s$(e,t,r){return t=l$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l$(e){var t=f$(e,"string");return Pn(t)=="symbol"?t:t+""}function f$(e,t){if(Pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function h$(e,t){if(e==null)return{};var r=p$(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 p$(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 d$=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},v$=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,u=o===void 0?0:o,c=t.left,s=c===void 0?0:c,f=t.width,l=f===void 0?0:f,h=t.height,d=h===void 0?0:h,y=t.className,v=h$(t,u$),p=c$({x:n,y:a,top:u,left:s,width:l,height:d},v);return!q(n)||!q(a)||!q(l)||!q(d)||!q(u)||!q(s)?null:T.createElement("path",$l({},ee(p,!0),{className:te("recharts-cross",y),d:d$(n,a,l,d,u,s)}))},ps,Dg;function y$(){if(Dg)return ps;Dg=1;var e=Ob(),t=e(Object.getPrototypeOf,Object);return ps=t,ps}var ds,Ng;function g$(){if(Ng)return ds;Ng=1;var e=gt(),t=y$(),r=mt(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,u=a.hasOwnProperty,c=o.call(Object);function s(f){if(!r(f)||e(f)!=n)return!1;var l=t(f);if(l===null)return!0;var h=u.call(l,"constructor")&&l.constructor;return typeof h=="function"&&h instanceof h&&o.call(h)==c}return ds=s,ds}var m$=g$();const b$=ue(m$);var vs,qg;function x$(){if(qg)return vs;qg=1;var e=gt(),t=mt(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return vs=n,vs}var w$=x$();const O$=ue(w$);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 Ui(){return Ui=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},Ui.apply(this,arguments)}function _$(e,t){return T$(e)||P$(e,t)||A$(e,t)||S$()}function S$(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
57
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A$(e,t){if(e){if(typeof e=="string")return Bg(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 Bg(e,t)}}function Bg(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 P$(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function T$(e){if(Array.isArray(e))return e}function Lg(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 Fg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lg(Object(r),!0).forEach(function(n){E$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function E$(e,t,r){return t=j$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j$(e){var t=M$(e,"string");return Tn(t)=="symbol"?t:t+""}function M$(e,t){if(Tn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ug=function(t,r,n,i,a){var o=n-i,u;return u="M ".concat(t,",").concat(r),u+="L ".concat(t+n,",").concat(r),u+="L ".concat(t+n-o/2,",").concat(r+a),u+="L ".concat(t+n-o/2-i,",").concat(r+a),u+="L ".concat(t,",").concat(r," Z"),u},C$={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},$$=function(t){var r=Fg(Fg({},C$),t),n=N.useRef(),i=N.useState(-1),a=_$(i,2),o=a[0],u=a[1];N.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&u(w)}catch{}},[]);var c=r.x,s=r.y,f=r.upperWidth,l=r.lowerWidth,h=r.height,d=r.className,y=r.animationEasing,v=r.animationDuration,p=r.animationBegin,b=r.isUpdateAnimationActive;if(c!==+c||s!==+s||f!==+f||l!==+l||h!==+h||f===0&&l===0||h===0)return null;var x=te("recharts-trapezoid",d);return b?T.createElement(At,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:c,y:s},to:{upperWidth:f,lowerWidth:l,height:h,x:c,y:s},duration:v,animationEasing:y,isActive:b},function(w){var O=w.upperWidth,g=w.lowerWidth,m=w.height,_=w.x,S=w.y;return T.createElement(At,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:v,easing:y},T.createElement("path",Ui({},ee(r,!0),{className:x,d:Ug(_,S,O,g,m),ref:n})))}):T.createElement("g",null,T.createElement("path",Ui({},ee(r,!0),{className:x,d:Ug(c,s,f,l,h)})))},I$=["option","shapeType","propTransformer","activeClassName","isActive"];function En(e){"@babel/helpers - typeof";return En=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},En(e)}function R$(e,t){if(e==null)return{};var r=k$(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 k$(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 Wg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Wi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wg(Object(r),!0).forEach(function(n){D$(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function D$(e,t,r){return t=N$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N$(e){var t=q$(e,"string");return En(t)=="symbol"?t:t+""}function q$(e,t){if(En(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(En(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function B$(e,t){return Wi(Wi({},t),e)}function L$(e,t){return e==="symbols"}function zg(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return T.createElement(Kf,r);case"trapezoid":return T.createElement($$,r);case"sector":return T.createElement(J0,r);case"symbols":if(L$(t))return T.createElement(ff,r);break;default:return null}}function F$(e){return N.isValidElement(e)?e.props:e}function U$(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?B$:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,c=R$(e,I$),s;if(N.isValidElement(t))s=N.cloneElement(t,Wi(Wi({},c),F$(t)));else if(Y(t))s=t(c);else if(b$(t)&&!O$(t)){var f=i(t,c);s=T.createElement(zg,{shapeType:r,elementProps:f})}else{var l=c;s=T.createElement(zg,{shapeType:r,elementProps:l})}return u?T.createElement(_e,{className:o},s):s}function Ta(e,t){return t!=null&&"trapezoids"in e.props}function Ea(e,t){return t!=null&&"sectors"in e.props}function jn(e,t){return t!=null&&"points"in e.props}function W$(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 z$(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function H$(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function G$(e,t){var r;return Ta(e,t)?r=W$:Ea(e,t)?r=z$:jn(e,t)&&(r=H$),r}function K$(e,t){var r;return Ta(e,t)?r="trapezoids":Ea(e,t)?r="sectors":jn(e,t)&&(r="points"),r}function X$(e,t){if(Ta(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(Ea(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 jn(e,t)?t.payload:{}}function V$(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=K$(r,t),a=X$(r,t),o=n.filter(function(c,s){var f=Wf(a,c),l=r.props[i].filter(function(y){var v=G$(r,t);return v(y,t)}),h=r.props[i].indexOf(l[l.length-1]),d=s===h;return f&&d}),u=n.indexOf(o[o.length-1]);return u}var ys,Hg;function Y$(){if(Hg)return ys;Hg=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var u=-1,c=t(e((i-n)/(a||1)),0),s=Array(c);c--;)s[o?c:++u]=n,n+=a;return s}return ys=r,ys}var gs,Gg;function ux(){if(Gg)return gs;Gg=1;var e=qb(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return gs=n,gs}var ms,Kg;function Z$(){if(Kg)return ms;Kg=1;var e=Y$(),t=va(),r=ux();function n(i){return function(a,o,u){return u&&typeof u!="number"&&t(a,o,u)&&(o=u=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),u=u===void 0?a<o?1:-1:r(u),e(a,o,u,i)}}return ms=n,ms}var bs,Xg;function J$(){if(Xg)return bs;Xg=1;var e=Z$(),t=e();return bs=t,bs}var Q$=J$();const zi=ue(Q$);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 Vg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Yg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vg(Object(r),!0).forEach(function(n){cx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cx(e,t,r){return t=eI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eI(e){var t=tI(e,"string");return Mn(t)=="symbol"?t:t+""}function tI(e,t){if(Mn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rI=["Webkit","Moz","O","ms"],nI=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=rI.reduce(function(a,o){return Yg(Yg({},a),{},cx({},o+n,r))},{});return i[t]=r,i};function xr(e){"@babel/helpers - typeof";return xr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xr(e)}function Hi(){return Hi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hi.apply(this,arguments)}function Zg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zg(Object(r),!0).forEach(function(n){De(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,lx(n.key),n)}}function aI(e,t,r){return t&&Jg(e.prototype,t),r&&Jg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function oI(e,t,r){return t=Gi(t),uI(e,sx()?Reflect.construct(t,r||[],Gi(e).constructor):t.apply(e,r))}function uI(e,t){if(t&&(xr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cI(e)}function cI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sx=function(){return!!e})()}function Gi(e){return Gi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gi(e)}function sI(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&&Il(e,t)}function Il(e,t){return Il=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Il(e,t)}function De(e,t,r){return t=lx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lx(e){var t=lI(e,"string");return xr(t)=="symbol"?t:t+""}function lI(e,t){if(xr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var fI=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,u=t.travellerWidth;if(!r||!r.length)return{};var c=r.length,s=Zr().domain(zi(0,c)).range([a,a+o-u]),f=s.domain().map(function(l){return s(l)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:s(n),endX:s(i),scale:s,scaleValues:f}},Qg=function(t){return t.changedTouches&&!!t.changedTouches.length},wr=(function(e){function t(r){var n;return iI(this,t),n=oI(this,t,[r]),De(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),De(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),De(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o?.({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),De(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),De(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),De(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),De(n,"handleSlideDragStart",function(i){var a=Qg(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 sI(t,e),aI(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,u=this.props,c=u.gap,s=u.data,f=s.length-1,l=Math.min(i,a),h=Math.max(i,a),d=t.getIndexInRange(o,l),y=t.getIndexInRange(o,h);return{startIndex:d-d%c,endIndex:y===f?f:y-y%c}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,c=Je(a[n],u,n);return Y(o)?o(c,n):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,u=i.endX,c=this.props,s=c.x,f=c.width,l=c.travellerWidth,h=c.startIndex,d=c.endIndex,y=c.onChange,v=n.pageX-a;v>0?v=Math.min(v,s+f-l-u,s+f-l-o):v<0&&(v=Math.max(v,s-o,s-u));var p=this.getIndex({startX:o+v,endX:u+v});(p.startIndex!==h||p.endIndex!==d)&&y&&y(p),this.setState({startX:o+v,endX:u+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=Qg(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,u=i.endX,c=i.startX,s=this.state[o],f=this.props,l=f.x,h=f.width,d=f.travellerWidth,y=f.onChange,v=f.gap,p=f.data,b={startX:this.state.startX,endX:this.state.endX},x=n.pageX-a;x>0?x=Math.min(x,l+h-d-s):x<0&&(x=Math.max(x,l-s)),b[o]=s+x;var w=this.getIndex(b),O=w.startIndex,g=w.endIndex,m=function(){var S=p.length-1;return o==="startX"&&(u>c?O%v===0:g%v===0)||u<c&&g===S||o==="endX"&&(u>c?g%v===0:O%v===0)||u>c&&g===S};this.setState(De(De({},o,s+x),"brushMoveStartX",n.pageX),function(){y&&m()&&y(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,c=o.startX,s=o.endX,f=this.state[i],l=u.indexOf(f);if(l!==-1){var h=l+n;if(!(h===-1||h>=u.length)){var d=u[h];i==="startX"&&d>=s||i==="endX"&&d<=c||this.setState(De({},i,d),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.fill,s=n.stroke;return T.createElement("rect",{stroke:s,fill:c,x:i,y:a,width:o,height:u})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.data,s=n.children,f=n.padding,l=N.Children.only(s);return l?T.cloneElement(l,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,c=this.props,s=c.y,f=c.travellerWidth,l=c.height,h=c.traveller,d=c.ariaLabel,y=c.data,v=c.startIndex,p=c.endIndex,b=Math.max(n,this.props.x),x=xs(xs({},ee(this.props,!1)),{},{x:b,y:s,width:f,height:l}),w=d||"Min value: ".concat((a=y[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[p])===null||o===void 0?void 0:o.name);return T.createElement(_e,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(g){["ArrowLeft","ArrowRight"].includes(g.key)&&(g.preventDefault(),g.stopPropagation(),u.handleTravellerMoveKeyboard(g.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,x))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,c=a.stroke,s=a.travellerWidth,f=Math.min(n,i)+s,l=Math.max(Math.abs(i-n)-s,0);return T.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:f,y:o,width:l,height:u})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,u=n.height,c=n.travellerWidth,s=n.stroke,f=this.state,l=f.startX,h=f.endX,d=5,y={pointerEvents:"none",fill:s};return T.createElement(_e,{className:"recharts-brush-texts"},T.createElement(bi,Hi({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,h)-d,y:o+u/2},y),this.getTextOfTick(i)),T.createElement(bi,Hi({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,h)+c+d,y:o+u/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,u=n.x,c=n.y,s=n.width,f=n.height,l=n.alwaysShowText,h=this.state,d=h.startX,y=h.endX,v=h.isTextActive,p=h.isSlideMoving,b=h.isTravellerMoving,x=h.isTravellerFocused;if(!i||!i.length||!q(u)||!q(c)||!q(s)||!q(f)||s<=0||f<=0)return null;var w=te("recharts-brush",a),O=T.Children.count(o)===1,g=nI("userSelect","none");return T.createElement(_e,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(d,y),this.renderTravellerLayer(d,"startX"),this.renderTravellerLayer(y,"endX"),(v||p||b||x||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,c=n.stroke,s=Math.floor(a+u/2)-1;return T.createElement(T.Fragment,null,T.createElement("rect",{x:i,y:a,width:o,height:u,fill:c,stroke:"none"}),T.createElement("line",{x1:i+1,y1:s,x2:i+o-1,y2:s,fill:"none",stroke:"#fff"}),T.createElement("line",{x1:i+1,y1:s+2,x2:i+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return T.isValidElement(n)?a=T.cloneElement(n,i):Y(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,u=n.x,c=n.travellerWidth,s=n.updateId,f=n.startIndex,l=n.endIndex;if(a!==i.prevData||s!==i.prevUpdateId)return xs({prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o},a&&a.length?fI({data:a,width:o,x:u,travellerWidth:c,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([u,u+o-c]);var h=i.scale.domain().map(function(d){return i.scale(d)});return{prevData:a,prevTravellerWidth:c,prevUpdateId:s,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,u=a-1;u-o>1;){var c=Math.floor((o+u)/2);n[c]>i?u=c:o=c}return i>=n[u]?u:o}}])})(N.PureComponent);De(wr,"displayName","Brush");De(wr,"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 ws,em;function hI(){if(em)return ws;em=1;var e=mf();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return ws=t,ws}var Os,tm;function pI(){if(tm)return Os;tm=1;var e=vb(),t=Tt(),r=hI(),n=Re(),i=va();function a(o,u,c){var s=n(o)?e:r;return c&&i(o,u,c)&&(u=void 0),s(o,t(u,3))}return Os=a,Os}var dI=pI();const vI=ue(dI);var rt=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},_s,rm;function yI(){if(rm)return _s;rm=1;var e=Ib();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return _s=t,_s}var Ss,nm;function gI(){if(nm)return Ss;nm=1;var e=yI(),t=Cb(),r=Tt();function n(i,a){var o={};return a=r(a,3),t(i,function(u,c,s){e(o,c,a(u,c,s))}),o}return Ss=n,Ss}var mI=gI();const bI=ue(mI);var As,im;function xI(){if(im)return As;im=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return As=e,As}var Ps,am;function wI(){if(am)return Ps;am=1;var e=mf();function t(r,n){var i=!0;return e(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return Ps=t,Ps}var Ts,om;function OI(){if(om)return Ts;om=1;var e=xI(),t=wI(),r=Tt(),n=Re(),i=va();function a(o,u,c){var s=n(o)?e:t;return c&&i(o,u,c)&&(u=void 0),s(o,r(u,3))}return Ts=a,Ts}var _I=OI();const fx=ue(_I);var SI=["x","y"];function Cn(e){"@babel/helpers - typeof";return Cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cn(e)}function Rl(){return Rl=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},Rl.apply(this,arguments)}function um(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?um(Object(r),!0).forEach(function(n){AI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):um(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function AI(e,t,r){return t=PI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PI(e){var t=TI(e,"string");return Cn(t)=="symbol"?t:t+""}function TI(e,t){if(Cn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function EI(e,t){if(e==null)return{};var r=jI(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 jI(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 MI(e,t){var r=e.x,n=e.y,i=EI(e,SI),a="".concat(r),o=parseInt(a,10),u="".concat(n),c=parseInt(u,10),s="".concat(t.height||i.height),f=parseInt(s,10),l="".concat(t.width||i.width),h=parseInt(l,10);return Gr(Gr(Gr(Gr(Gr({},t),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function cm(e){return T.createElement(U$,Rl({shapeType:"rectangle",propTransformer:MI,activeClassName:"recharts-active-bar"},e))}var CI=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=q(n)||Dw(n);return a?t(n,i):(a||Gt(),r)}},$I=["value","background"],hx;function Or(e){"@babel/helpers - typeof";return Or=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Or(e)}function II(e,t){if(e==null)return{};var r=RI(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function RI(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ki(){return Ki=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ki.apply(this,arguments)}function sm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function de(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sm(Object(r),!0).forEach(function(n){_t(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lm(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,dx(n.key),n)}}function DI(e,t,r){return t&&lm(e.prototype,t),r&&lm(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function NI(e,t,r){return t=Xi(t),qI(e,px()?Reflect.construct(t,r||[],Xi(e).constructor):t.apply(e,r))}function qI(e,t){if(t&&(Or(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BI(e)}function BI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function px(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(px=function(){return!!e})()}function Xi(e){return Xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xi(e)}function LI(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kl(e,t)}function kl(e,t){return kl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kl(e,t)}function _t(e,t,r){return t=dx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dx(e){var t=FI(e,"string");return Or(t)=="symbol"?t:t+""}function FI(e,t){if(Or(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Or(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var zn=(function(e){function t(){var r;kI(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=NI(this,t,[].concat(i)),_t(r,"state",{isAnimationFinished:!1}),_t(r,"id",ca("recharts-bar-")),_t(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),_t(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return LI(t,e),DI(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,c=a.activeIndex,s=a.activeBar,f=ee(this.props,!1);return n&&n.map(function(l,h){var d=h===c,y=d?s:o,v=de(de(de({},f),l),{},{isActive:d,option:y,index:h,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return T.createElement(_e,Ki({className:"recharts-bar-rectangle"},ci(i.props,l,h),{key:"rectangle-".concat(l?.x,"-").concat(l?.y,"-").concat(l?.value,"-").concat(h)}),T.createElement(cm,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,c=i.animationBegin,s=i.animationDuration,f=i.animationEasing,l=i.animationId,h=this.state.prevData;return T.createElement(At,{begin:c,duration:s,isActive:u,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var y=d.t,v=a.map(function(p,b){var x=h&&h[b];if(x){var w=Qt(x.x,p.x),O=Qt(x.y,p.y),g=Qt(x.width,p.width),m=Qt(x.height,p.height);return de(de({},p),{},{x:w(y),y:O(y),width:g(y),height:m(y)})}if(o==="horizontal"){var _=Qt(0,p.height),S=_(y);return de(de({},p),{},{y:p.y+p.height-S,height:S})}var A=Qt(0,p.width),M=A(y);return de(de({},p),{},{width:M})});return T.createElement(_e,null,n.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!Wf(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,u=i.activeIndex,c=ee(this.props.background,!1);return a.map(function(s,f){s.value;var l=s.background,h=II(s,$I);if(!l)return null;var d=de(de(de(de(de({},h),{},{fill:"#eee"},l),c),ci(n.props,s,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return T.createElement(cm,Ki({key:"background-bar-".concat(f),option:n.props.background,isActive:f===u},d))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,u=a.xAxis,c=a.yAxis,s=a.layout,f=a.children,l=Ze(f,Pa);if(!l)return null;var h=s==="vertical"?o[0].height/2:o[0].width/2,d=function(p,b){var x=Array.isArray(p.value)?p.value[1]:p.value;return{x:p.x,y:p.y,value:x,errorVal:Je(p,b)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return T.createElement(_e,y,l.map(function(v){return T.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:u,yAxis:c,layout:s,offset:h,dataPointFormatter:d})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,c=n.yAxis,s=n.left,f=n.top,l=n.width,h=n.height,d=n.isAnimationActive,y=n.background,v=n.id;if(i||!a||!a.length)return null;var p=this.state.isAnimationFinished,b=te("recharts-bar",o),x=u&&u.allowDataOverflow,w=c&&c.allowDataOverflow,O=x||w,g=Z(v)?this.id:v;return T.createElement(_e,{className:b},x||w?T.createElement("defs",null,T.createElement("clipPath",{id:"clipPath-".concat(g)},T.createElement("rect",{x:x?s:s-l/2,y:w?f:f-h/2,width:x?l:l*2,height:w?h:h*2}))):null,T.createElement(_e,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(g,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,g),(!d||p)&&Wt.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(N.PureComponent);hx=zn;_t(zn,"displayName","Bar");_t(zn,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Bn.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});_t(zn,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,u=e.xAxisTicks,c=e.yAxisTicks,s=e.stackedData,f=e.dataStartIndex,l=e.displayedData,h=e.offset,d=JE(n,r);if(!d)return null;var y=t.layout,v=r.type.defaultProps,p=v!==void 0?de(de({},v),r.props):r.props,b=p.dataKey,x=p.children,w=p.minPointSize,O=y==="horizontal"?o:a,g=s?O.scale.domain():null,m=aj({numericAxis:O}),_=Ze(x,Lb),S=l.map(function(A,M){var E,P,j,$,C,R;s?E=QE(s[f+M],g):(E=Je(A,b),Array.isArray(E)||(E=[m,E]));var D=CI(w,hx.defaultProps.minPointSize)(E[1],M);if(y==="horizontal"){var B,L=[o.scale(E[0]),o.scale(E[1])],z=L[0],G=L[1];P=Vy({axis:a,ticks:u,bandSize:i,offset:d.offset,entry:A,index:M}),j=(B=G??z)!==null&&B!==void 0?B:void 0,$=d.size;var U=z-G;if(C=Number.isNaN(U)?0:U,R={x:P,y:o.y,width:$,height:o.height},Math.abs(D)>0&&Math.abs(C)<Math.abs(D)){var K=Ve(C||D)*(Math.abs(D)-Math.abs(C));j-=K,C+=K}}else{var ce=[a.scale(E[0]),a.scale(E[1])],pe=ce[0],ke=ce[1];if(P=pe,j=Vy({axis:o,ticks:c,bandSize:i,offset:d.offset,entry:A,index:M}),$=ke-pe,C=d.size,R={x:a.x,y:j,width:a.width,height:C},Math.abs(D)>0&&Math.abs($)<Math.abs(D)){var Ct=Ve($||D)*(Math.abs(D)-Math.abs($));$+=Ct}}return de(de(de({},A),{},{x:P,y:j,width:$,height:C,value:s?E:E[1],payload:A,background:R},_&&_[M]&&_[M].props),{},{tooltipPayload:[X0(r,A)],tooltipPosition:{x:P+$/2,y:j+C/2}})});return de({data:S,layout:y},h)});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 UI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fm(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vx(n.key),n)}}function WI(e,t,r){return t&&fm(e.prototype,t),r&&fm(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function hm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ke(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hm(Object(r),!0).forEach(function(n){ja(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ja(e,t,r){return t=vx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vx(e){var t=zI(e,"string");return $n(t)=="symbol"?t:t+""}function zI(e,t){if($n(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($n(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var BD=function(t,r,n,i,a){var o=t.width,u=t.height,c=t.layout,s=t.children,f=Object.keys(r),l={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:u-n.bottom,bottomMirror:u-n.bottom},h=!!Ne(s,zn);return f.reduce(function(d,y){var v=r[y],p=v.orientation,b=v.domain,x=v.padding,w=x===void 0?{}:x,O=v.mirror,g=v.reversed,m="".concat(p).concat(O?"Mirror":""),_,S,A,M,E;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var P=b[1]-b[0],j=1/0,$=v.categoricalDomain.sort(Bw);if($.forEach(function(ce,pe){pe>0&&(j=Math.min((ce||0)-($[pe-1]||0),j))}),Number.isFinite(j)){var C=j/P,R=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(_=C*R/2),v.padding==="no-gap"){var D=Ye(t.barCategoryGap,C*R),B=C*R/2;_=B-D-(B-D)/R*D}}}i==="xAxis"?S=[n.left+(w.left||0)+(_||0),n.left+n.width-(w.right||0)-(_||0)]:i==="yAxis"?S=c==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(_||0),n.top+n.height-(w.bottom||0)-(_||0)]:S=v.range,g&&(S=[S[1],S[0]]);var L=z0(v,a,h),z=L.scale,G=L.realScaleType;z.domain(b).range(S),H0(z);var U=G0(z,Ke(Ke({},v),{},{realScaleType:G}));i==="xAxis"?(E=p==="top"&&!O||p==="bottom"&&O,A=n.left,M=l[m]-E*v.height):i==="yAxis"&&(E=p==="left"&&!O||p==="right"&&O,A=l[m]-E*v.width,M=n.top);var K=Ke(Ke(Ke({},v),U),{},{realScaleType:G,x:A,y:M,scale:z,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return K.bandSize=Ri(K,U),!v.hide&&i==="xAxis"?l[m]+=(E?-1:1)*K.height:v.hide||(l[m]+=(E?-1:1)*K.width),Ke(Ke({},d),{},ja({},y,K))},{})},yx=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)}},HI=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return yx({x:r,y:n},{x:i,y:a})},gx=(function(){function e(t){UI(this,e),this.scale=t}return WI(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(r)+u}default:return this.scale(r)}if(i){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+c}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();ja(gx,"EPS",1e-4);var Xf=function(t){var r=Object.keys(t).reduce(function(n,i){return Ke(Ke({},n),{},ja({},i,gx.create(t[i])))},{});return Ke(Ke({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return bI(i,function(c,s){return r[s].apply(c,{bandAware:o,position:u})})},isInRange:function(i){return fx(i,function(a,o){return r[o].isInRange(a)})}})};function GI(e){return(e%180+180)%180}var KI=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=GI(i),o=a*Math.PI/180,u=Math.atan(n/r),c=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(c)},Es,pm;function XI(){if(pm)return Es;pm=1;var e=Tt(),t=qn(),r=pa();function n(i){return function(a,o,u){var c=Object(a);if(!t(a)){var s=e(o,3);a=r(a),o=function(l){return s(c[l],l,c)}}var f=i(a,o,u);return f>-1?c[s?a[f]:f]:void 0}}return Es=n,Es}var js,dm;function VI(){if(dm)return js;dm=1;var e=ux();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return js=t,js}var Ms,vm;function YI(){if(vm)return Ms;vm=1;var e=Pb(),t=Tt(),r=VI(),n=Math.max;function i(a,o,u){var c=a==null?0:a.length;if(!c)return-1;var s=u==null?0:r(u);return s<0&&(s=n(c+s,0)),e(a,t(o,3),s)}return Ms=i,Ms}var Cs,ym;function ZI(){if(ym)return Cs;ym=1;var e=XI(),t=YI(),r=e(t);return Cs=r,Cs}var JI=ZI();const QI=ue(JI);var eR=Um();const tR=ue(eR);var rR=tR(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("")}),Vf=N.createContext(void 0),Yf=N.createContext(void 0),mx=N.createContext(void 0),bx=N.createContext({}),xx=N.createContext(void 0),wx=N.createContext(0),Ox=N.createContext(0),gm=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,u=t.children,c=t.width,s=t.height,f=rR(a);return T.createElement(Vf.Provider,{value:n},T.createElement(Yf.Provider,{value:i},T.createElement(bx.Provider,{value:a},T.createElement(mx.Provider,{value:f},T.createElement(xx.Provider,{value:o},T.createElement(wx.Provider,{value:s},T.createElement(Ox.Provider,{value:c},u)))))))},nR=function(){return N.useContext(xx)},_x=function(t){var r=N.useContext(Vf);r==null&&Gt();var n=r[t];return n==null&&Gt(),n},iR=function(){var t=N.useContext(Vf);return Ot(t)},aR=function(){var t=N.useContext(Yf),r=QI(t,function(n){return fx(n.domain,Number.isFinite)});return r||Ot(t)},Sx=function(t){var r=N.useContext(Yf);r==null&&Gt();var n=r[t];return n==null&&Gt(),n},oR=function(){var t=N.useContext(mx);return t},uR=function(){return N.useContext(bx)},Zf=function(){return N.useContext(Ox)},Jf=function(){return N.useContext(wx)};function _r(e){"@babel/helpers - typeof";return _r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_r(e)}function cR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sR(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,Px(n.key),n)}}function lR(e,t,r){return t&&sR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fR(e,t,r){return t=Vi(t),hR(e,Ax()?Reflect.construct(t,r||[],Vi(e).constructor):t.apply(e,r))}function hR(e,t){if(t&&(_r(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pR(e)}function pR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ax(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ax=function(){return!!e})()}function Vi(e){return Vi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vi(e)}function dR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dl(e,t)}function Dl(e,t){return Dl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Dl(e,t)}function mm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mm(Object(r),!0).forEach(function(n){Qf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qf(e,t,r){return t=Px(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Px(e){var t=vR(e,"string");return _r(t)=="symbol"?t:t+""}function vR(e,t){if(_r(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_r(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function yR(e,t){return xR(e)||bR(e,t)||mR(e,t)||gR()}function gR(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
58
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mR(e,t){if(e){if(typeof e=="string")return xm(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 xm(e,t)}}function xm(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 bR(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function xR(e){if(Array.isArray(e))return e}function Nl(){return Nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nl.apply(this,arguments)}var wR=function(t,r){var n;return T.isValidElement(t)?n=T.cloneElement(t,r):Y(t)?n=t(r):n=T.createElement("line",Nl({},r,{className:"recharts-reference-line-line"})),n},OR=function(t,r,n,i,a,o,u,c,s){var f=a.x,l=a.y,h=a.width,d=a.height;if(n){var y=s.y,v=t.y.apply(y,{position:o});if(rt(s,"discard")&&!t.y.isInRange(v))return null;var p=[{x:f+h,y:v},{x:f,y:v}];return c==="left"?p.reverse():p}if(r){var b=s.x,x=t.x.apply(b,{position:o});if(rt(s,"discard")&&!t.x.isInRange(x))return null;var w=[{x,y:l+d},{x,y:l}];return u==="top"?w.reverse():w}if(i){var O=s.segment,g=O.map(function(m){return t.apply(m,{position:o})});return rt(s,"discard")&&vI(g,function(m){return!t.isInRange(m)})?null:g}return null};function _R(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,u=e.className,c=e.alwaysShow,s=nR(),f=_x(i),l=Sx(a),h=oR();if(!s||!h)return null;ht(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=Xf({x:f.scale,y:l.scale}),y=xe(t),v=xe(r),p=n&&n.length===2,b=OR(d,y,v,p,h,e.position,f.orientation,l.orientation,e);if(!b)return null;var x=yR(b,2),w=x[0],O=w.x,g=w.y,m=x[1],_=m.x,S=m.y,A=rt(e,"hidden")?"url(#".concat(s,")"):void 0,M=bm(bm({clipPath:A},ee(e,!0)),{},{x1:O,y1:g,x2:_,y2:S});return T.createElement(_e,{className:te("recharts-reference-line",u)},wR(o,M),Ee.renderCallByParent(e,HI({x1:O,y1:g,x2:_,y2:S})))}var eh=(function(e){function t(){return cR(this,t),fR(this,t,arguments)}return dR(t,e),lR(t,[{key:"render",value:function(){return T.createElement(_R,this.props)}}])})(T.Component);Qf(eh,"displayName","ReferenceLine");Qf(eh,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function ql(){return ql=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},ql.apply(this,arguments)}function Sr(e){"@babel/helpers - typeof";return Sr=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},Sr(e)}function wm(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 Om(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wm(Object(r),!0).forEach(function(n){Ma(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AR(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,Ex(n.key),n)}}function PR(e,t,r){return t&&AR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function TR(e,t,r){return t=Yi(t),ER(e,Tx()?Reflect.construct(t,r||[],Yi(e).constructor):t.apply(e,r))}function ER(e,t){if(t&&(Sr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jR(e)}function jR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Tx=function(){return!!e})()}function Yi(e){return Yi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yi(e)}function MR(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&&Bl(e,t)}function Bl(e,t){return Bl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Bl(e,t)}function Ma(e,t,r){return t=Ex(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ex(e){var t=CR(e,"string");return Sr(t)=="symbol"?t:t+""}function CR(e,t){if(Sr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $R=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=Xf({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return rt(t,"discard")&&!o.isInRange(u)?null:u},Ca=(function(e){function t(){return SR(this,t),TR(this,t,arguments)}return MR(t,e),PR(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,u=n.alwaysShow,c=n.clipPathId,s=xe(i),f=xe(a);if(ht(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!f)return null;var l=$R(this.props);if(!l)return null;var h=l.x,d=l.y,y=this.props,v=y.shape,p=y.className,b=rt(this.props,"hidden")?"url(#".concat(c,")"):void 0,x=Om(Om({clipPath:b},ee(this.props,!0)),{},{cx:h,cy:d});return T.createElement(_e,{className:te("recharts-reference-dot",p)},t.renderDot(v,x),Ee.renderCallByParent(this.props,{x:h-o,y:d-o,width:2*o,height:2*o}))}}])})(T.Component);Ma(Ca,"displayName","ReferenceDot");Ma(Ca,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Ma(Ca,"renderDot",function(e,t){var r;return T.isValidElement(e)?r=T.cloneElement(e,t):Y(e)?r=e(t):r=T.createElement(ox,ql({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Ll(){return Ll=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},Ll.apply(this,arguments)}function Ar(e){"@babel/helpers - typeof";return Ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ar(e)}function _m(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 Sm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_m(Object(r),!0).forEach(function(n){$a(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_m(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RR(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,Mx(n.key),n)}}function kR(e,t,r){return t&&RR(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function DR(e,t,r){return t=Zi(t),NR(e,jx()?Reflect.construct(t,r||[],Zi(e).constructor):t.apply(e,r))}function NR(e,t){if(t&&(Ar(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qR(e)}function qR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jx=function(){return!!e})()}function Zi(e){return Zi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zi(e)}function BR(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&&Fl(e,t)}function Fl(e,t){return Fl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Fl(e,t)}function $a(e,t,r){return t=Mx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mx(e){var t=LR(e,"string");return Ar(t)=="symbol"?t:t+""}function LR(e,t){if(Ar(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ar(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var FR=function(t,r,n,i,a){var o=a.x1,u=a.x2,c=a.y1,s=a.y2,f=a.xAxis,l=a.yAxis;if(!f||!l)return null;var h=Xf({x:f.scale,y:l.scale}),d={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(c,{position:"start"}):h.y.rangeMin},y={x:r?h.x.apply(u,{position:"end"}):h.x.rangeMax,y:i?h.y.apply(s,{position:"end"}):h.y.rangeMax};return rt(a,"discard")&&(!h.isInRange(d)||!h.isInRange(y))?null:yx(d,y)},Ia=(function(e){function t(){return IR(this,t),DR(this,t,arguments)}return BR(t,e),kR(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,u=n.y2,c=n.className,s=n.alwaysShow,f=n.clipPathId;ht(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=xe(i),h=xe(a),d=xe(o),y=xe(u),v=this.props.shape;if(!l&&!h&&!d&&!y&&!v)return null;var p=FR(l,h,d,y,this.props);if(!p&&!v)return null;var b=rt(this.props,"hidden")?"url(#".concat(f,")"):void 0;return T.createElement(_e,{className:te("recharts-reference-area",c)},t.renderRect(v,Sm(Sm({clipPath:b},ee(this.props,!0)),p)),Ee.renderCallByParent(this.props,p))}}])})(T.Component);$a(Ia,"displayName","ReferenceArea");$a(Ia,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});$a(Ia,"renderRect",function(e,t){var r;return T.isValidElement(e)?r=T.cloneElement(e,t):Y(e)?r=e(t):r=T.createElement(Kf,Ll({},t,{className:"recharts-reference-area-rect"})),r});function Cx(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 UR(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return KI(n,r)}function WR(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,u=e.height;return t===1?{start:n?i:a,end:n?i+o:a+u}:{start:n?i+o:a+u,end:n?i:a}}function Ji(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 zR(e,t){return Cx(e,t+1)}function HR(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,u=t.end,c=0,s=1,f=o,l=function(){var y=n?.[c];if(y===void 0)return{v:Cx(n,s)};var v=c,p,b=function(){return p===void 0&&(p=r(y,v)),p},x=y.coordinate,w=c===0||Ji(e,x,b,f,u);w||(c=0,f=o,s+=1),w&&(f=x+e*(b()/2+i),c+=s)},h;s<=a.length;)if(h=l(),h)return h.v;return[]}function In(e){"@babel/helpers - typeof";return In=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},In(e)}function Am(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Te(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Am(Object(r),!0).forEach(function(n){GR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Am(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GR(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=XR(e,"string");return In(t)=="symbol"?t:t+""}function XR(e,t){if(In(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(In(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function VR(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=t.start,c=t.end,s=function(h){var d=a[h],y,v=function(){return y===void 0&&(y=r(d,h)),y};if(h===o-1){var p=e*(d.coordinate+e*v()/2-c);a[h]=d=Te(Te({},d),{},{tickCoord:p>0?d.coordinate-p*e:d.coordinate})}else a[h]=d=Te(Te({},d),{},{tickCoord:d.coordinate});var b=Ji(e,d.tickCoord,v,u,c);b&&(c=d.tickCoord-e*(v()/2+i),a[h]=Te(Te({},d),{},{isShow:!0}))},f=o-1;f>=0;f--)s(f);return a}function YR(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,c=t.start,s=t.end;if(a){var f=n[u-1],l=r(f,u-1),h=e*(f.coordinate+e*l/2-s);o[u-1]=f=Te(Te({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var d=Ji(e,f.tickCoord,function(){return l},c,s);d&&(s=f.tickCoord-e*(l/2+i),o[u-1]=Te(Te({},f),{},{isShow:!0}))}for(var y=a?u-1:u,v=function(x){var w=o[x],O,g=function(){return O===void 0&&(O=r(w,x)),O};if(x===0){var m=e*(w.coordinate-e*g()/2-c);o[x]=w=Te(Te({},w),{},{tickCoord:m<0?w.coordinate-m*e:w.coordinate})}else o[x]=w=Te(Te({},w),{},{tickCoord:w.coordinate});var _=Ji(e,w.tickCoord,g,c,s);_&&(c=w.tickCoord+e*(g()/2+i),o[x]=Te(Te({},w),{},{isShow:!0}))},p=0;p<y;p++)v(p);return o}function th(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,u=e.orientation,c=e.interval,s=e.tickFormatter,f=e.unit,l=e.angle;if(!i||!i.length||!n)return[];if(q(c)||Bn.isSsr)return zR(i,typeof c=="number"&&q(c)?c:0);var h=[],d=u==="top"||u==="bottom"?"width":"height",y=f&&d==="width"?Yr(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(w,O){var g=Y(s)?s(w.value,O):w.value;return d==="width"?UR(Yr(g,{fontSize:t,letterSpacing:r}),y,l):Yr(g,{fontSize:t,letterSpacing:r})[d]},p=i.length>=2?Ve(i[1].coordinate-i[0].coordinate):1,b=WR(a,p,d);return c==="equidistantPreserveStart"?HR(p,b,v,i,o):(c==="preserveStart"||c==="preserveStartEnd"?h=YR(p,b,v,i,o,c==="preserveStartEnd"):h=VR(p,b,v,i,o),h.filter(function(x){return x.isShow}))}var ZR=["viewBox"],JR=["viewBox"],QR=["ticks"];function Pr(e){"@babel/helpers - typeof";return Pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pr(e)}function ir(){return ir=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},ir.apply(this,arguments)}function Pm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pm(Object(r),!0).forEach(function(n){rh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $s(e,t){if(e==null)return{};var r=ek(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 ek(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 tk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tm(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,Ix(n.key),n)}}function rk(e,t,r){return t&&Tm(e.prototype,t),r&&Tm(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function nk(e,t,r){return t=Qi(t),ik(e,$x()?Reflect.construct(t,r||[],Qi(e).constructor):t.apply(e,r))}function ik(e,t){if(t&&(Pr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ak(e)}function ak(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($x=function(){return!!e})()}function Qi(e){return Qi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qi(e)}function ok(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ul(e,t)}function Ul(e,t){return Ul=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ul(e,t)}function rh(e,t,r){return t=Ix(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ix(e){var t=uk(e,"string");return Pr(t)=="symbol"?t:t+""}function uk(e,t){if(Pr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Nr=(function(e){function t(r){var n;return tk(this,t),n=nk(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return ok(t,e),rk(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=$s(n,ZR),u=this.props,c=u.viewBox,s=$s(u,JR);return!or(a,c)||!or(o,s)||!or(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,u=i.width,c=i.height,s=i.orientation,f=i.tickSize,l=i.mirror,h=i.tickMargin,d,y,v,p,b,x,w=l?-1:1,O=n.tickSize||f,g=q(n.tickCoord)?n.tickCoord:n.coordinate;switch(s){case"top":d=y=n.coordinate,p=o+ +!l*c,v=p-w*O,x=v-w*h,b=g;break;case"left":v=p=n.coordinate,y=a+ +!l*u,d=y-w*O,b=d-w*h,x=g;break;case"right":v=p=n.coordinate,y=a+ +l*u,d=y+w*O,b=d+w*h,x=g;break;default:d=y=n.coordinate,p=o+ +l*c,v=p+w*O,x=v+w*h,b=g;break}return{line:{x1:d,y1:v,x2:y,y2:p},tick:{x:b,y:x}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.orientation,s=n.mirror,f=n.axisLine,l=me(me(me({},ee(this.props,!1)),ee(f,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var h=+(c==="top"&&!s||c==="bottom"&&s);l=me(me({},l),{},{x1:i,y1:a+h*u,x2:i+o,y2:a+h*u})}else{var d=+(c==="left"&&!s||c==="right"&&s);l=me(me({},l),{},{x1:i+d*o,y1:a,x2:i+d*o,y2:a+u})}return T.createElement("line",ir({},l,{className:te("recharts-cartesian-axis-line",We(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,c=u.tickLine,s=u.stroke,f=u.tick,l=u.tickFormatter,h=u.unit,d=th(me(me({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),p=ee(this.props,!1),b=ee(f,!1),x=me(me({},p),{},{fill:"none"},ee(c,!1)),w=d.map(function(O,g){var m=o.getTickLineCoord(O),_=m.line,S=m.tick,A=me(me(me(me({textAnchor:y,verticalAnchor:v},p),{},{stroke:"none",fill:s},b),S),{},{index:g,payload:O,visibleTicksCount:d.length,tickFormatter:l});return T.createElement(_e,ir({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},ci(o.props,O,g)),c&&T.createElement("line",ir({},x,_,{className:te("recharts-cartesian-axis-tick-line",We(c,"className"))})),f&&t.renderTickItem(f,A,"".concat(Y(l)?l(O.value,g):O.value).concat(h||"")))});return T.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,u=i.height,c=i.ticksGenerator,s=i.className,f=i.hide;if(f)return null;var l=this.props,h=l.ticks,d=$s(l,QR),y=h;return Y(c)&&(y=h&&h.length>0?c(this.props):c(d)),o<=0||u<=0||!y||!y.length?null:T.createElement(_e,{className:te("recharts-cartesian-axis",s),ref:function(p){n.layerReference=p}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Ee.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=te(i.className,"recharts-cartesian-axis-tick-value");return T.isValidElement(n)?o=T.cloneElement(n,me(me({},i),{},{className:u})):Y(n)?o=n(me(me({},i),{},{className:u})):o=T.createElement(bi,ir({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(N.Component);rh(Nr,"displayName","CartesianAxis");rh(Nr,"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 ck=["x1","y1","x2","y2","key"],sk=["offset"];function Kt(e){"@babel/helpers - typeof";return Kt=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},Kt(e)}function Em(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Em(Object(r),!0).forEach(function(n){lk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Em(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lk(e,t,r){return t=fk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fk(e){var t=hk(e,"string");return Kt(t)=="symbol"?t:t+""}function hk(e,t){if(Kt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Kt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Lt(){return Lt=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},Lt.apply(this,arguments)}function jm(e,t){if(e==null)return{};var r=pk(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 pk(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 dk=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,u=t.height,c=t.ry;return T.createElement("rect",{x:i,y:a,ry:c,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function Rx(e,t){var r;if(T.isValidElement(e))r=T.cloneElement(e,t);else if(Y(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,u=t.key,c=jm(t,ck),s=ee(c,!1);s.offset;var f=jm(s,sk);r=T.createElement("line",Lt({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function vk(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,c){var s=je(je({},e),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(c),index:c});return Rx(i,s)});return T.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function yk(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,c){var s=je(je({},e),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(c),index:c});return Rx(i,s)});return T.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function gk(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,u=e.horizontalPoints,c=e.horizontal,s=c===void 0?!0:c;if(!s||!t||!t.length)return null;var f=u.map(function(h){return Math.round(h+i-i)}).sort(function(h,d){return h-d});i!==f[0]&&f.unshift(0);var l=f.map(function(h,d){var y=!f[d+1],v=y?i+o-h:f[d+1]-h;if(v<=0)return null;var p=d%t.length;return T.createElement("rect",{key:"react-".concat(d),y:h,x:n,height:v,width:a,stroke:"none",fill:t[p],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return T.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function mk(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,u=e.width,c=e.height,s=e.verticalPoints;if(!r||!n||!n.length)return null;var f=s.map(function(h){return Math.round(h+a-a)}).sort(function(h,d){return h-d});a!==f[0]&&f.unshift(0);var l=f.map(function(h,d){var y=!f[d+1],v=y?a+u-h:f[d+1]-h;if(v<=0)return null;var p=d%n.length;return T.createElement("rect",{key:"react-".concat(d),x:h,y:o,width:v,height:c,stroke:"none",fill:n[p],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return T.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var bk=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return W0(th(je(je(je({},Nr.defaultProps),n),{},{ticks:lt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},xk=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return W0(th(je(je(je({},Nr.defaultProps),n),{},{ticks:lt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},rr={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function wk(e){var t,r,n,i,a,o,u=Zf(),c=Jf(),s=uR(),f=je(je({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:rr.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:rr.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:rr.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:rr.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:rr.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:rr.verticalFill,x:q(e.x)?e.x:s.left,y:q(e.y)?e.y:s.top,width:q(e.width)?e.width:s.width,height:q(e.height)?e.height:s.height}),l=f.x,h=f.y,d=f.width,y=f.height,v=f.syncWithTicks,p=f.horizontalValues,b=f.verticalValues,x=iR(),w=aR();if(!q(d)||d<=0||!q(y)||y<=0||!q(l)||l!==+l||!q(h)||h!==+h)return null;var O=f.verticalCoordinatesGenerator||bk,g=f.horizontalCoordinatesGenerator||xk,m=f.horizontalPoints,_=f.verticalPoints;if((!m||!m.length)&&Y(g)){var S=p&&p.length,A=g({yAxis:w?je(je({},w),{},{ticks:S?p:w.ticks}):void 0,width:u,height:c,offset:s},S?!0:v);ht(Array.isArray(A),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Kt(A),"]")),Array.isArray(A)&&(m=A)}if((!_||!_.length)&&Y(O)){var M=b&&b.length,E=O({xAxis:x?je(je({},x),{},{ticks:M?b:x.ticks}):void 0,width:u,height:c,offset:s},M?!0:v);ht(Array.isArray(E),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Kt(E),"]")),Array.isArray(E)&&(_=E)}return T.createElement("g",{className:"recharts-cartesian-grid"},T.createElement(dk,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),T.createElement(vk,Lt({},f,{offset:s,horizontalPoints:m,xAxis:x,yAxis:w})),T.createElement(yk,Lt({},f,{offset:s,verticalPoints:_,xAxis:x,yAxis:w})),T.createElement(gk,Lt({},f,{horizontalPoints:m})),T.createElement(mk,Lt({},f,{verticalPoints:_})))}wk.displayName="CartesianGrid";function Tr(e){"@babel/helpers - typeof";return Tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tr(e)}function Ok(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _k(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Nx(n.key),n)}}function Sk(e,t,r){return t&&_k(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ak(e,t,r){return t=ea(t),Pk(e,kx()?Reflect.construct(t,r||[],ea(e).constructor):t.apply(e,r))}function Pk(e,t){if(t&&(Tr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tk(e)}function Tk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kx=function(){return!!e})()}function ea(e){return ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ea(e)}function Ek(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wl(e,t)}function Wl(e,t){return Wl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Wl(e,t)}function Dx(e,t,r){return t=Nx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nx(e){var t=jk(e,"string");return Tr(t)=="symbol"?t:t+""}function jk(e,t){if(Tr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function zl(){return zl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zl.apply(this,arguments)}function Mk(e){var t=e.xAxisId,r=Zf(),n=Jf(),i=_x(t);return i==null?null:N.createElement(Nr,zl({},i,{className:te("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return lt(o,!0)}}))}var qx=(function(e){function t(){return Ok(this,t),Ak(this,t,arguments)}return Ek(t,e),Sk(t,[{key:"render",value:function(){return N.createElement(Mk,this.props)}}])})(N.Component);Dx(qx,"displayName","XAxis");Dx(qx,"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 Er(e){"@babel/helpers - typeof";return Er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Er(e)}function Ck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $k(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,Fx(n.key),n)}}function Ik(e,t,r){return t&&$k(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rk(e,t,r){return t=ta(t),kk(e,Bx()?Reflect.construct(t,r||[],ta(e).constructor):t.apply(e,r))}function kk(e,t){if(t&&(Er(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dk(e)}function Dk(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bx=function(){return!!e})()}function ta(e){return ta=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ta(e)}function Nk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hl(e,t)}function Hl(e,t){return Hl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Hl(e,t)}function Lx(e,t,r){return t=Fx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fx(e){var t=qk(e,"string");return Er(t)=="symbol"?t:t+""}function qk(e,t){if(Er(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Er(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Gl(){return Gl=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},Gl.apply(this,arguments)}var Bk=function(t){var r=t.yAxisId,n=Zf(),i=Jf(),a=Sx(r);return a==null?null:N.createElement(Nr,Gl({},a,{className:te("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return lt(u,!0)}}))},Ux=(function(e){function t(){return Ck(this,t),Rk(this,t,arguments)}return Nk(t,e),Ik(t,[{key:"render",value:function(){return N.createElement(Bk,this.props)}}])})(N.Component);Lx(Ux,"displayName","YAxis");Lx(Ux,"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 Mm(e){return Wk(e)||Uk(e)||Fk(e)||Lk()}function Lk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
59
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fk(e,t){if(e){if(typeof e=="string")return Kl(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 Kl(e,t)}}function Uk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Wk(e){if(Array.isArray(e))return Kl(e)}function Kl(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 Xl=function(t,r,n,i,a){var o=Ze(t,eh),u=Ze(t,Ca),c=[].concat(Mm(o),Mm(u)),s=Ze(t,Ia),f="".concat(i,"Id"),l=i[0],h=r;if(c.length&&(h=c.reduce(function(v,p){if(p.props[f]===n&&rt(p.props,"extendDomain")&&q(p.props[l])){var b=p.props[l];return[Math.min(v[0],b),Math.max(v[1],b)]}return v},h)),s.length){var d="".concat(l,"1"),y="".concat(l,"2");h=s.reduce(function(v,p){if(p.props[f]===n&&rt(p.props,"extendDomain")&&q(p.props[d])&&q(p.props[y])){var b=p.props[d],x=p.props[y];return[Math.min(v[0],b,x),Math.max(v[1],b,x)]}return v},h)}return a&&a.length&&(h=a.reduce(function(v,p){return q(p)?[Math.min(v[0],p),Math.max(v[1],p)]:v},h)),h},Is={exports:{}},Cm;function zk(){return Cm||(Cm=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(c,s,f){this.fn=c,this.context=s,this.once=f||!1}function a(c,s,f,l,h){if(typeof f!="function")throw new TypeError("The listener must be a function");var d=new i(f,l||c,h),y=r?r+s:s;return c._events[y]?c._events[y].fn?c._events[y]=[c._events[y],d]:c._events[y].push(d):(c._events[y]=d,c._eventsCount++),c}function o(c,s){--c._eventsCount===0?c._events=new n:delete c._events[s]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var s=[],f,l;if(this._eventsCount===0)return s;for(l in f=this._events)t.call(f,l)&&s.push(r?l.slice(1):l);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(f)):s},u.prototype.listeners=function(s){var f=r?r+s:s,l=this._events[f];if(!l)return[];if(l.fn)return[l.fn];for(var h=0,d=l.length,y=new Array(d);h<d;h++)y[h]=l[h].fn;return y},u.prototype.listenerCount=function(s){var f=r?r+s:s,l=this._events[f];return l?l.fn?1:l.length:0},u.prototype.emit=function(s,f,l,h,d,y){var v=r?r+s:s;if(!this._events[v])return!1;var p=this._events[v],b=arguments.length,x,w;if(p.fn){switch(p.once&&this.removeListener(s,p.fn,void 0,!0),b){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,f),!0;case 3:return p.fn.call(p.context,f,l),!0;case 4:return p.fn.call(p.context,f,l,h),!0;case 5:return p.fn.call(p.context,f,l,h,d),!0;case 6:return p.fn.call(p.context,f,l,h,d,y),!0}for(w=1,x=new Array(b-1);w<b;w++)x[w-1]=arguments[w];p.fn.apply(p.context,x)}else{var O=p.length,g;for(w=0;w<O;w++)switch(p[w].once&&this.removeListener(s,p[w].fn,void 0,!0),b){case 1:p[w].fn.call(p[w].context);break;case 2:p[w].fn.call(p[w].context,f);break;case 3:p[w].fn.call(p[w].context,f,l);break;case 4:p[w].fn.call(p[w].context,f,l,h);break;default:if(!x)for(g=1,x=new Array(b-1);g<b;g++)x[g-1]=arguments[g];p[w].fn.apply(p[w].context,x)}}return!0},u.prototype.on=function(s,f,l){return a(this,s,f,l,!1)},u.prototype.once=function(s,f,l){return a(this,s,f,l,!0)},u.prototype.removeListener=function(s,f,l,h){var d=r?r+s:s;if(!this._events[d])return this;if(!f)return o(this,d),this;var y=this._events[d];if(y.fn)y.fn===f&&(!h||y.once)&&(!l||y.context===l)&&o(this,d);else{for(var v=0,p=[],b=y.length;v<b;v++)(y[v].fn!==f||h&&!y[v].once||l&&y[v].context!==l)&&p.push(y[v]);p.length?this._events[d]=p.length===1?p[0]:p:o(this,d)}return this},u.prototype.removeAllListeners=function(s){var f;return s?(f=r?r+s:s,this._events[f]&&o(this,f)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(Is)),Is.exports}var Hk=zk();const Gk=ue(Hk);var Rs=new Gk,ks="recharts.syncMouseEvents";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 Kk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xk(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,Wx(n.key),n)}}function Vk(e,t,r){return t&&Xk(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ds(e,t,r){return t=Wx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wx(e){var t=Yk(e,"string");return Rn(t)=="symbol"?t:t+""}function Yk(e,t){if(Rn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Zk=(function(){function e(){Kk(this,e),Ds(this,"activeIndex",0),Ds(this,"coordinateList",[]),Ds(this,"layout","horizontal")}return Vk(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,u=o===void 0?null:o,c=r.layout,s=c===void 0?null:c,f=r.offset,l=f===void 0?null:f,h=r.mouseHandlerCallback,d=h===void 0?null:h;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=u??this.container,this.layout=s??this.layout,this.offset=l??this.offset,this.mouseHandlerCallback=d??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,u=i.height,c=this.coordinateList[this.activeIndex].coordinate,s=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,l=a+c+s,h=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:l,pageY:h})}}}])})();function Jk(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e?.[0],i=e?.[1];if(n&&i&&q(n)&&q(i))return!0}return!1}function Qk(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 zx(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Pe(t,r,n,i),u=Pe(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function eD(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var u=t.cx,c=t.cy,s=t.innerRadius,f=t.outerRadius,l=t.angle,h=Pe(u,c,s,l),d=Pe(u,c,f,l);n=h.x,i=h.y,a=d.x,o=d.y}else return zx(t);return[{x:n,y:i},{x:a,y:o}]}function kn(e){"@babel/helpers - typeof";return kn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kn(e)}function $m(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 ii(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$m(Object(r),!0).forEach(function(n){tD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$m(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tD(e,t,r){return t=rD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rD(e){var t=nD(e,"string");return kn(t)=="symbol"?t:t+""}function nD(e,t){if(kn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(kn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function iD(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,u=e.activePayload,c=e.offset,s=e.activeTooltipIndex,f=e.tooltipAxisBandSize,l=e.layout,h=e.chartName,d=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!d||!a||!o||h!=="ScatterChart"&&i!=="axis")return null;var y,v=hg;if(h==="ScatterChart")y=o,v=v$;else if(h==="BarChart")y=Qk(l,o,c,f),v=Kf;else if(l==="radial"){var p=zx(o),b=p.cx,x=p.cy,w=p.radius,O=p.startAngle,g=p.endAngle;y={cx:b,cy:x,startAngle:O,endAngle:g,innerRadius:w,outerRadius:w},v=J0}else y={points:eD(l,o,c)},v=hg;var m=ii(ii(ii(ii({stroke:"#ccc",pointerEvents:"none"},c),y),ee(d,!1)),{},{payload:u,payloadIndex:s,className:te("recharts-tooltip-cursor",d.className)});return N.isValidElement(d)?N.cloneElement(d,m):N.createElement(v,m)}var aD=["item"],oD=["children","className","width","height","style","compact","title","desc"];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 ar(){return ar=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},ar.apply(this,arguments)}function Im(e,t){return sD(e)||cD(e,t)||Gx(e,t)||uD()}function uD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
60
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cD(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);c=!0);}catch(f){s=!0,i=f}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return u}}function sD(e){if(Array.isArray(e))return e}function Rm(e,t){if(e==null)return{};var r=lD(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 lD(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 fD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hD(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Kx(n.key),n)}}function pD(e,t,r){return t&&hD(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dD(e,t,r){return t=ra(t),vD(e,Hx()?Reflect.construct(t,r||[],ra(e).constructor):t.apply(e,r))}function vD(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 yD(e)}function yD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hx=function(){return!!e})()}function ra(e){return ra=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ra(e)}function gD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vl(e,t)}function Vl(e,t){return Vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vl(e,t)}function Mr(e){return xD(e)||bD(e)||Gx(e)||mD()}function mD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
61
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gx(e,t){if(e){if(typeof e=="string")return Yl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yl(e,t)}}function bD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xD(e){if(Array.isArray(e))return Yl(e)}function Yl(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function km(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function I(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?km(Object(r),!0).forEach(function(n){H(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):km(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function H(e,t,r){return t=Kx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kx(e){var t=wD(e,"string");return jr(t)=="symbol"?t:t+""}function wD(e,t){if(jr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var OD={xAxis:["bottom","top"],yAxis:["left","right"]},_D={width:"100%",height:"100%"},Xx={x:0,y:0};function ai(e){return e}var SD=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},AD=function(t,r,n,i){var a=r.find(function(f){return f&&f.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,u=i.radius;return I(I(I({},i),Pe(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var c=a.coordinate,s=i.angle;return I(I(I({},i),Pe(i.cx,i.cy,c,s)),{},{angle:s,radius:c})}return Xx},Ra=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(u,c){var s=c.props.data;return s&&s.length?[].concat(Mr(u),Mr(s)):u},[]);return o.length>0?o:t&&t.length&&q(i)&&q(a)?t.slice(i,a+1):[]};function Vx(e){return e==="number"?[0,"auto"]:void 0}var Zl=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=Ra(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(c,s){var f,l=(f=s.props.data)!==null&&f!==void 0?f:r;l&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(l=l.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var d=l===void 0?u:l;h=oi(d,o.dataKey,i)}else h=l&&l[n]||u[n];return h?[].concat(Mr(c),[X0(s,h)]):c},[])},Dm=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=SD(a,n),u=t.orderedTooltipTicks,c=t.tooltipAxis,s=t.tooltipTicks,f=GE(o,u,s,c);if(f>=0&&s){var l=s[f]&&s[f].value,h=Zl(t,r,f,l),d=AD(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:h,activeCoordinate:d}}return null},PD=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,l=t.children,h=t.stackOffset,d=U0(f,a);return n.reduce(function(y,v){var p,b=v.type.defaultProps!==void 0?I(I({},v.type.defaultProps),v.props):v.props,x=b.type,w=b.dataKey,O=b.allowDataOverflow,g=b.allowDuplicatedCategory,m=b.scale,_=b.ticks,S=b.includeHidden,A=b[o];if(y[A])return y;var M=Ra(t.data,{graphicalItems:i.filter(function(U){var K,ce=o in U.props?U.props[o]:(K=U.type.defaultProps)===null||K===void 0?void 0:K[o];return ce===A}),dataStartIndex:c,dataEndIndex:s}),E=M.length,P,j,$;Jk(b.domain,O,x)&&(P=gl(b.domain,null,O),d&&(x==="number"||m!=="auto")&&($=Jr(M,w,"category")));var C=Vx(x);if(!P||P.length===0){var R,D=(R=b.domain)!==null&&R!==void 0?R:C;if(w){if(P=Jr(M,w,x),x==="category"&&d){var B=qw(P);g&&B?(j=P,P=zi(0,E)):g||(P=Jy(D,P,v).reduce(function(U,K){return U.indexOf(K)>=0?U:[].concat(Mr(U),[K])},[]))}else if(x==="category")g?P=P.filter(function(U){return U!==""&&!Z(U)}):P=Jy(D,P,v).reduce(function(U,K){return U.indexOf(K)>=0||K===""||Z(K)?U:[].concat(Mr(U),[K])},[]);else if(x==="number"){var L=ZE(M,i.filter(function(U){var K,ce,pe=o in U.props?U.props[o]:(K=U.type.defaultProps)===null||K===void 0?void 0:K[o],ke="hide"in U.props?U.props.hide:(ce=U.type.defaultProps)===null||ce===void 0?void 0:ce.hide;return pe===A&&(S||!ke)}),w,a,f);L&&(P=L)}d&&(x==="number"||m!=="auto")&&($=Jr(M,w,"category"))}else d?P=zi(0,E):u&&u[A]&&u[A].hasStack&&x==="number"?P=h==="expand"?[0,1]:K0(u[A].stackGroups,c,s):P=F0(M,i.filter(function(U){var K=o in U.props?U.props[o]:U.type.defaultProps[o],ce="hide"in U.props?U.props.hide:U.type.defaultProps.hide;return K===A&&(S||!ce)}),x,f,!0);if(x==="number")P=Xl(l,P,A,a,_),D&&(P=gl(D,P,O));else if(x==="category"&&D){var z=D,G=P.every(function(U){return z.indexOf(U)>=0});G&&(P=z)}}return I(I({},y),{},H({},A,I(I({},b),{},{axisType:a,domain:P,categoricalDomain:$,duplicateDomain:j,originalDomain:(p=b.domain)!==null&&p!==void 0?p:C,isCategorical:d,layout:f})))},{})},TD=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,l=t.children,h=Ra(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:s}),d=h.length,y=U0(f,a),v=-1;return n.reduce(function(p,b){var x=b.type.defaultProps!==void 0?I(I({},b.type.defaultProps),b.props):b.props,w=x[o],O=Vx("number");if(!p[w]){v++;var g;return y?g=zi(0,d):u&&u[w]&&u[w].hasStack?(g=K0(u[w].stackGroups,c,s),g=Xl(l,g,w,a)):(g=gl(O,F0(h,n.filter(function(m){var _,S,A=o in m.props?m.props[o]:(_=m.type.defaultProps)===null||_===void 0?void 0:_[o],M="hide"in m.props?m.props.hide:(S=m.type.defaultProps)===null||S===void 0?void 0:S.hide;return A===w&&!M}),"number",f),i.defaultProps.allowDataOverflow),g=Xl(l,g,w,a)),I(I({},p),{},H({},w,I(I({axisType:a},i.defaultProps),{},{hide:!0,orientation:We(OD,"".concat(a,".").concat(v%2),null),domain:g,originalDomain:O,isCategorical:y,layout:f})))}return p},{})},ED=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,c=r.dataStartIndex,s=r.dataEndIndex,f=t.children,l="".concat(i,"Id"),h=Ze(f,a),d={};return h&&h.length?d=PD(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s}):o&&o.length&&(d=TD(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:c,dataEndIndex:s})),d},jD=function(t){var r=Ot(t),n=lt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:bf(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Ri(r,n)}},Nm=function(t){var r=t.children,n=t.defaultShowTooltip,i=Ne(r,wr),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}},MD=function(t){return!t||!t.length?!1:t.some(function(r){var n=ft(r&&r.type);return n&&n.indexOf("Bar")>=0})},qm=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"}},CD=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,c=u===void 0?{}:u,s=n.width,f=n.height,l=n.children,h=n.margin||{},d=Ne(l,wr),y=Ne(l,ur),v=Object.keys(c).reduce(function(g,m){var _=c[m],S=_.orientation;return!_.mirror&&!_.hide?I(I({},g),{},H({},S,g[S]+_.width)):g},{left:h.left||0,right:h.right||0}),p=Object.keys(o).reduce(function(g,m){var _=o[m],S=_.orientation;return!_.mirror&&!_.hide?I(I({},g),{},H({},S,We(g,"".concat(S))+_.height)):g},{top:h.top||0,bottom:h.bottom||0}),b=I(I({},p),v),x=b.bottom;d&&(b.bottom+=d.props.height||wr.defaultProps.height),y&&r&&(b=VE(b,i,n,r));var w=s-b.left-b.right,O=f-b.top-b.bottom;return I(I({brushBottom:x},b),{},{width:Math.max(w,0),height:Math.max(O,0)})},$D=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},LD=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,u=o===void 0?["axis"]:o,c=t.axisComponents,s=t.legendContent,f=t.formatAxisMap,l=t.defaultProps,h=function(b,x){var w=x.graphicalItems,O=x.stackGroups,g=x.offset,m=x.updateId,_=x.dataStartIndex,S=x.dataEndIndex,A=b.barSize,M=b.layout,E=b.barGap,P=b.barCategoryGap,j=b.maxBarSize,$=qm(M),C=$.numericAxisName,R=$.cateAxisName,D=MD(w),B=[];return w.forEach(function(L,z){var G=Ra(b.data,{graphicalItems:[L],dataStartIndex:_,dataEndIndex:S}),U=L.type.defaultProps!==void 0?I(I({},L.type.defaultProps),L.props):L.props,K=U.dataKey,ce=U.maxBarSize,pe=U["".concat(C,"Id")],ke=U["".concat(R,"Id")],Ct={},Ce=c.reduce(function($t,It){var ka=x["".concat(It.axisType,"Map")],nh=U["".concat(It.axisType,"Id")];ka&&ka[nh]||It.axisType==="zAxis"||Gt();var ih=ka[nh];return I(I({},$t),{},H(H({},It.axisType,ih),"".concat(It.axisType,"Ticks"),lt(ih)))},Ct),F=Ce[R],X=Ce["".concat(R,"Ticks")],V=O&&O[pe]&&O[pe].hasStack&&oj(L,O[pe].stackGroups),k=ft(L.type).indexOf("Bar")>=0,fe=Ri(F,X),J=[],ye=D&&KE({barSize:A,stackGroups:O,totalSize:$D(Ce,R)});if(k){var ge,$e,xt=Z(ce)?j:ce,Jt=(ge=($e=Ri(F,X,!0))!==null&&$e!==void 0?$e:xt)!==null&&ge!==void 0?ge:0;J=XE({barGap:E,barCategoryGap:P,bandSize:Jt!==fe?Jt:fe,sizeList:ye[ke],maxBarSize:xt}),Jt!==fe&&(J=J.map(function($t){return I(I({},$t),{},{position:I(I({},$t.position),{},{offset:$t.position.offset-Jt/2})})}))}var Hn=L&&L.type&&L.type.getComposedData;Hn&&B.push({props:I(I({},Hn(I(I({},Ce),{},{displayedData:G,props:b,dataKey:K,item:L,bandSize:fe,barPosition:J,offset:g,stackedData:V,layout:M,dataStartIndex:_,dataEndIndex:S}))),{},H(H(H({key:L.key||"item-".concat(z)},C,Ce[C]),R,Ce[R]),"animationId",m)),childIndex:Yw(L,b.children),item:L})}),B},d=function(b,x){var w=b.props,O=b.dataStartIndex,g=b.dataEndIndex,m=b.updateId;if(!pp({props:w}))return null;var _=w.children,S=w.layout,A=w.stackOffset,M=w.data,E=w.reverseStackOrder,P=qm(S),j=P.numericAxisName,$=P.cateAxisName,C=Ze(_,n),R=ij(M,C,"".concat(j,"Id"),"".concat($,"Id"),A,E),D=c.reduce(function(U,K){var ce="".concat(K.axisType,"Map");return I(I({},U),{},H({},ce,ED(w,I(I({},K),{},{graphicalItems:C,stackGroups:K.axisType===j&&R,dataStartIndex:O,dataEndIndex:g}))))},{}),B=CD(I(I({},D),{},{props:w,graphicalItems:C}),x?.legendBBox);Object.keys(D).forEach(function(U){D[U]=f(w,D[U],B,U.replace("Map",""),r)});var L=D["".concat($,"Map")],z=jD(L),G=h(w,I(I({},D),{},{dataStartIndex:O,dataEndIndex:g,updateId:m,graphicalItems:C,stackGroups:R,offset:B}));return I(I({formattedGraphicalItems:G,graphicalItems:C,offset:B,stackGroups:R},z),D)},y=(function(p){function b(x){var w,O,g;return fD(this,b),g=dD(this,b,[x]),H(g,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),H(g,"accessibilityManager",new Zk),H(g,"handleLegendBBoxUpdate",function(m){if(m){var _=g.state,S=_.dataStartIndex,A=_.dataEndIndex,M=_.updateId;g.setState(I({legendBBox:m},d({props:g.props,dataStartIndex:S,dataEndIndex:A,updateId:M},I(I({},g.state),{},{legendBBox:m}))))}}),H(g,"handleReceiveSyncEvent",function(m,_,S){if(g.props.syncId===m){if(S===g.eventEmitterSymbol&&typeof g.props.syncMethod!="function")return;g.applySyncEvent(_)}}),H(g,"handleBrushChange",function(m){var _=m.startIndex,S=m.endIndex;if(_!==g.state.dataStartIndex||S!==g.state.dataEndIndex){var A=g.state.updateId;g.setState(function(){return I({dataStartIndex:_,dataEndIndex:S},d({props:g.props,dataStartIndex:_,dataEndIndex:S,updateId:A},g.state))}),g.triggerSyncEvent({dataStartIndex:_,dataEndIndex:S})}}),H(g,"handleMouseEnter",function(m){var _=g.getMouseInfo(m);if(_){var S=I(I({},_),{},{isTooltipActive:!0});g.setState(S),g.triggerSyncEvent(S);var A=g.props.onMouseEnter;Y(A)&&A(S,m)}}),H(g,"triggeredAfterMouseMove",function(m){var _=g.getMouseInfo(m),S=_?I(I({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};g.setState(S),g.triggerSyncEvent(S);var A=g.props.onMouseMove;Y(A)&&A(S,m)}),H(g,"handleItemMouseEnter",function(m){g.setState(function(){return{isTooltipActive:!0,activeItem:m,activePayload:m.tooltipPayload,activeCoordinate:m.tooltipPosition||{x:m.cx,y:m.cy}}})}),H(g,"handleItemMouseLeave",function(){g.setState(function(){return{isTooltipActive:!1}})}),H(g,"handleMouseMove",function(m){m.persist(),g.throttleTriggeredAfterMouseMove(m)}),H(g,"handleMouseLeave",function(m){g.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};g.setState(_),g.triggerSyncEvent(_);var S=g.props.onMouseLeave;Y(S)&&S(_,m)}),H(g,"handleOuterEvent",function(m){var _=Vw(m),S=We(g.props,"".concat(_));if(_&&Y(S)){var A,M;/.*touch.*/i.test(_)?M=g.getMouseInfo(m.changedTouches[0]):M=g.getMouseInfo(m),S((A=M)!==null&&A!==void 0?A:{},m)}}),H(g,"handleClick",function(m){var _=g.getMouseInfo(m);if(_){var S=I(I({},_),{},{isTooltipActive:!0});g.setState(S),g.triggerSyncEvent(S);var A=g.props.onClick;Y(A)&&A(S,m)}}),H(g,"handleMouseDown",function(m){var _=g.props.onMouseDown;if(Y(_)){var S=g.getMouseInfo(m);_(S,m)}}),H(g,"handleMouseUp",function(m){var _=g.props.onMouseUp;if(Y(_)){var S=g.getMouseInfo(m);_(S,m)}}),H(g,"handleTouchMove",function(m){m.changedTouches!=null&&m.changedTouches.length>0&&g.throttleTriggeredAfterMouseMove(m.changedTouches[0])}),H(g,"handleTouchStart",function(m){m.changedTouches!=null&&m.changedTouches.length>0&&g.handleMouseDown(m.changedTouches[0])}),H(g,"handleTouchEnd",function(m){m.changedTouches!=null&&m.changedTouches.length>0&&g.handleMouseUp(m.changedTouches[0])}),H(g,"handleDoubleClick",function(m){var _=g.props.onDoubleClick;if(Y(_)){var S=g.getMouseInfo(m);_(S,m)}}),H(g,"handleContextMenu",function(m){var _=g.props.onContextMenu;if(Y(_)){var S=g.getMouseInfo(m);_(S,m)}}),H(g,"triggerSyncEvent",function(m){g.props.syncId!==void 0&&Rs.emit(ks,g.props.syncId,m,g.eventEmitterSymbol)}),H(g,"applySyncEvent",function(m){var _=g.props,S=_.layout,A=_.syncMethod,M=g.state.updateId,E=m.dataStartIndex,P=m.dataEndIndex;if(m.dataStartIndex!==void 0||m.dataEndIndex!==void 0)g.setState(I({dataStartIndex:E,dataEndIndex:P},d({props:g.props,dataStartIndex:E,dataEndIndex:P,updateId:M},g.state)));else if(m.activeTooltipIndex!==void 0){var j=m.chartX,$=m.chartY,C=m.activeTooltipIndex,R=g.state,D=R.offset,B=R.tooltipTicks;if(!D)return;if(typeof A=="function")C=A(B,m);else if(A==="value"){C=-1;for(var L=0;L<B.length;L++)if(B[L].value===m.activeLabel){C=L;break}}var z=I(I({},D),{},{x:D.left,y:D.top}),G=Math.min(j,z.x+z.width),U=Math.min($,z.y+z.height),K=B[C]&&B[C].value,ce=Zl(g.state,g.props.data,C),pe=B[C]?{x:S==="horizontal"?B[C].coordinate:G,y:S==="horizontal"?U:B[C].coordinate}:Xx;g.setState(I(I({},m),{},{activeLabel:K,activeCoordinate:pe,activePayload:ce,activeTooltipIndex:C}))}else g.setState(m)}),H(g,"renderCursor",function(m){var _,S=g.state,A=S.isTooltipActive,M=S.activeCoordinate,E=S.activePayload,P=S.offset,j=S.activeTooltipIndex,$=S.tooltipAxisBandSize,C=g.getTooltipEventType(),R=(_=m.props.active)!==null&&_!==void 0?_:A,D=g.props.layout,B=m.key||"_recharts-cursor";return T.createElement(iD,{key:B,activeCoordinate:M,activePayload:E,activeTooltipIndex:j,chartName:r,element:m,isActive:R,layout:D,offset:P,tooltipAxisBandSize:$,tooltipEventType:C})}),H(g,"renderPolarAxis",function(m,_,S){var A=We(m,"type.axisType"),M=We(g.state,"".concat(A,"Map")),E=m.type.defaultProps,P=E!==void 0?I(I({},E),m.props):m.props,j=M&&M[P["".concat(A,"Id")]];return N.cloneElement(m,I(I({},j),{},{className:te(A,j.className),key:m.key||"".concat(_,"-").concat(S),ticks:lt(j,!0)}))}),H(g,"renderPolarGrid",function(m){var _=m.props,S=_.radialLines,A=_.polarAngles,M=_.polarRadius,E=g.state,P=E.radiusAxisMap,j=E.angleAxisMap,$=Ot(P),C=Ot(j),R=C.cx,D=C.cy,B=C.innerRadius,L=C.outerRadius;return N.cloneElement(m,{polarAngles:Array.isArray(A)?A:lt(C,!0).map(function(z){return z.coordinate}),polarRadius:Array.isArray(M)?M:lt($,!0).map(function(z){return z.coordinate}),cx:R,cy:D,innerRadius:B,outerRadius:L,key:m.key||"polar-grid",radialLines:S})}),H(g,"renderLegend",function(){var m=g.state.formattedGraphicalItems,_=g.props,S=_.children,A=_.width,M=_.height,E=g.props.margin||{},P=A-(E.left||0)-(E.right||0),j=B0({children:S,formattedGraphicalItems:m,legendWidth:P,legendContent:s});if(!j)return null;var $=j.item,C=Rm(j,aD);return N.cloneElement($,I(I({},C),{},{chartWidth:A,chartHeight:M,margin:E,onBBoxUpdate:g.handleLegendBBoxUpdate}))}),H(g,"renderTooltip",function(){var m,_=g.props,S=_.children,A=_.accessibilityLayer,M=Ne(S,ot);if(!M)return null;var E=g.state,P=E.isTooltipActive,j=E.activeCoordinate,$=E.activePayload,C=E.activeLabel,R=E.offset,D=(m=M.props.active)!==null&&m!==void 0?m:P;return N.cloneElement(M,{viewBox:I(I({},R),{},{x:R.left,y:R.top}),active:D,label:C,payload:D?$:[],coordinate:j,accessibilityLayer:A})}),H(g,"renderBrush",function(m){var _=g.props,S=_.margin,A=_.data,M=g.state,E=M.offset,P=M.dataStartIndex,j=M.dataEndIndex,$=M.updateId;return N.cloneElement(m,{key:m.key||"_recharts-brush",onChange:ei(g.handleBrushChange,m.props.onChange),data:A,x:q(m.props.x)?m.props.x:E.left,y:q(m.props.y)?m.props.y:E.top+E.height+E.brushBottom-(S.bottom||0),width:q(m.props.width)?m.props.width:E.width,startIndex:P,endIndex:j,updateId:"brush-".concat($)})}),H(g,"renderReferenceElement",function(m,_,S){if(!m)return null;var A=g,M=A.clipPathId,E=g.state,P=E.xAxisMap,j=E.yAxisMap,$=E.offset,C=m.type.defaultProps||{},R=m.props,D=R.xAxisId,B=D===void 0?C.xAxisId:D,L=R.yAxisId,z=L===void 0?C.yAxisId:L;return N.cloneElement(m,{key:m.key||"".concat(_,"-").concat(S),xAxis:P[B],yAxis:j[z],viewBox:{x:$.left,y:$.top,width:$.width,height:$.height},clipPathId:M})}),H(g,"renderActivePoints",function(m){var _=m.item,S=m.activePoint,A=m.basePoint,M=m.childIndex,E=m.isRange,P=[],j=_.props.key,$=_.item.type.defaultProps!==void 0?I(I({},_.item.type.defaultProps),_.item.props):_.item.props,C=$.activeDot,R=$.dataKey,D=I(I({index:M,dataKey:R,cx:S.x,cy:S.y,r:4,fill:Gf(_.item),strokeWidth:2,stroke:"#fff",payload:S.payload,value:S.value},ee(C,!1)),ui(C));return P.push(b.renderActiveDot(C,D,"".concat(j,"-activePoint-").concat(M))),A?P.push(b.renderActiveDot(C,I(I({},D),{},{cx:A.x,cy:A.y}),"".concat(j,"-basePoint-").concat(M))):E&&P.push(null),P}),H(g,"renderGraphicChild",function(m,_,S){var A=g.filterFormatItem(m,_,S);if(!A)return null;var M=g.getTooltipEventType(),E=g.state,P=E.isTooltipActive,j=E.tooltipAxis,$=E.activeTooltipIndex,C=E.activeLabel,R=g.props.children,D=Ne(R,ot),B=A.props,L=B.points,z=B.isRange,G=B.baseLine,U=A.item.type.defaultProps!==void 0?I(I({},A.item.type.defaultProps),A.item.props):A.item.props,K=U.activeDot,ce=U.hide,pe=U.activeBar,ke=U.activeShape,Ct=!!(!ce&&P&&D&&(K||pe||ke)),Ce={};M!=="axis"&&D&&D.props.trigger==="click"?Ce={onClick:ei(g.handleItemMouseEnter,m.props.onClick)}:M!=="axis"&&(Ce={onMouseLeave:ei(g.handleItemMouseLeave,m.props.onMouseLeave),onMouseEnter:ei(g.handleItemMouseEnter,m.props.onMouseEnter)});var F=N.cloneElement(m,I(I({},A.props),Ce));function X(It){return typeof j.dataKey=="function"?j.dataKey(It.payload):null}if(Ct)if($>=0){var V,k;if(j.dataKey&&!j.allowDuplicatedCategory){var fe=typeof j.dataKey=="function"?X:"payload.".concat(j.dataKey.toString());V=oi(L,fe,C),k=z&&G&&oi(G,fe,C)}else V=L?.[$],k=z&&G&&G[$];if(ke||pe){var J=m.props.activeIndex!==void 0?m.props.activeIndex:$;return[N.cloneElement(m,I(I(I({},A.props),Ce),{},{activeIndex:J})),null,null]}if(!Z(V))return[F].concat(Mr(g.renderActivePoints({item:A,activePoint:V,basePoint:k,childIndex:$,isRange:z})))}else{var ye,ge=(ye=g.getItemByXY(g.state.activeCoordinate))!==null&&ye!==void 0?ye:{graphicalItem:F},$e=ge.graphicalItem,xt=$e.item,Jt=xt===void 0?m:xt,Hn=$e.childIndex,$t=I(I(I({},A.props),Ce),{},{activeIndex:Hn});return[N.cloneElement(Jt,$t),null,null]}return z?[F,null,null]:[F,null]}),H(g,"renderCustomized",function(m,_,S){return N.cloneElement(m,I(I({key:"recharts-customized-".concat(S)},g.props),g.state))}),H(g,"renderMap",{CartesianGrid:{handler:ai,once:!0},ReferenceArea:{handler:g.renderReferenceElement},ReferenceLine:{handler:ai},ReferenceDot:{handler:g.renderReferenceElement},XAxis:{handler:ai},YAxis:{handler:ai},Brush:{handler:g.renderBrush,once:!0},Bar:{handler:g.renderGraphicChild},Line:{handler:g.renderGraphicChild},Area:{handler:g.renderGraphicChild},Radar:{handler:g.renderGraphicChild},RadialBar:{handler:g.renderGraphicChild},Scatter:{handler:g.renderGraphicChild},Pie:{handler:g.renderGraphicChild},Funnel:{handler:g.renderGraphicChild},Tooltip:{handler:g.renderCursor,once:!0},PolarGrid:{handler:g.renderPolarGrid,once:!0},PolarAngleAxis:{handler:g.renderPolarAxis},PolarRadiusAxis:{handler:g.renderPolarAxis},Customized:{handler:g.renderCustomized}}),g.clipPathId="".concat((w=x.id)!==null&&w!==void 0?w:ca("recharts"),"-clip"),g.throttleTriggeredAfterMouseMove=Bb(g.triggeredAfterMouseMove,(O=x.throttleDelay)!==null&&O!==void 0?O:1e3/60),g.state={},g}return gD(b,p),pD(b,[{key:"componentDidMount",value:function(){var w,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,O=w.children,g=w.data,m=w.height,_=w.layout,S=Ne(O,ot);if(S){var A=S.props.defaultIndex;if(!(typeof A!="number"||A<0||A>this.state.tooltipTicks.length-1)){var M=this.state.tooltipTicks[A]&&this.state.tooltipTicks[A].value,E=Zl(this.state,g,A,M),P=this.state.tooltipTicks[A].coordinate,j=(this.state.offset.top+m)/2,$=_==="horizontal",C=$?{x:P,y:j}:{y:P,x:j},R=this.state.formattedGraphicalItems.find(function(B){var L=B.item;return L.type.name==="Scatter"});R&&(C=I(I({},C),R.props.points[A].tooltipPosition),E=R.props.points[A].tooltipPayload);var D={activeTooltipIndex:A,isTooltipActive:!0,activeLabel:M,activePayload:E,activeCoordinate:C};this.setState(D),this.renderCursor(S),this.accessibilityManager.setIndex(A)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var g,m;this.accessibilityManager.setDetails({offset:{left:(g=this.props.margin.left)!==null&&g!==void 0?g:0,top:(m=this.props.margin.top)!==null&&m!==void 0?m:0}})}return null}},{key:"componentDidUpdate",value:function(w){Bs([Ne(w.children,ot)],[Ne(this.props.children,ot)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=Ne(this.props.children,ot);if(w&&typeof w.props.shared=="boolean"){var O=w.props.shared?"axis":"item";return u.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var O=this.container,g=O.getBoundingClientRect(),m=DS(g),_={chartX:Math.round(w.pageX-m.left),chartY:Math.round(w.pageY-m.top)},S=g.width/O.offsetWidth||1,A=this.inRange(_.chartX,_.chartY,S);if(!A)return null;var M=this.state,E=M.xAxisMap,P=M.yAxisMap,j=this.getTooltipEventType(),$=Dm(this.state,this.props.data,this.props.layout,A);if(j!=="axis"&&E&&P){var C=Ot(E).scale,R=Ot(P).scale,D=C&&C.invert?C.invert(_.chartX):null,B=R&&R.invert?R.invert(_.chartY):null;return I(I({},_),{},{xValue:D,yValue:B},$)}return $?I(I({},_),$):null}},{key:"inRange",value:function(w,O){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,m=this.props.layout,_=w/g,S=O/g;if(m==="horizontal"||m==="vertical"){var A=this.state.offset,M=_>=A.left&&_<=A.left+A.width&&S>=A.top&&S<=A.top+A.height;return M?{x:_,y:S}:null}var E=this.state,P=E.angleAxisMap,j=E.radiusAxisMap;if(P&&j){var $=Ot(P);return tg({x:_,y:S},$)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,O=this.getTooltipEventType(),g=Ne(w,ot),m={};g&&O==="axis"&&(g.props.trigger==="click"?m={onClick:this.handleClick}:m={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 _=ui(this.props,this.handleOuterEvent);return I(I({},_),m)}},{key:"addListener",value:function(){Rs.on(ks,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Rs.removeListener(ks,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,O,g){for(var m=this.state.formattedGraphicalItems,_=0,S=m.length;_<S;_++){var A=m[_];if(A.item===w||A.props.key===w.key||O===ft(A.item.type)&&g===A.childIndex)return A}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,O=this.state.offset,g=O.left,m=O.top,_=O.height,S=O.width;return T.createElement("defs",null,T.createElement("clipPath",{id:w},T.createElement("rect",{x:g,y:m,height:_,width:S})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(O,g){var m=Im(g,2),_=m[0],S=m[1];return I(I({},O),{},H({},_,S.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(O,g){var m=Im(g,2),_=m[0],S=m[1];return I(I({},O),{},H({},_,S.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(w){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(w){var O=this.state,g=O.formattedGraphicalItems,m=O.activeItem;if(g&&g.length)for(var _=0,S=g.length;_<S;_++){var A=g[_],M=A.props,E=A.item,P=E.type.defaultProps!==void 0?I(I({},E.type.defaultProps),E.props):E.props,j=ft(E.type);if(j==="Bar"){var $=(M.data||[]).find(function(B){return a$(w,B)});if($)return{graphicalItem:A,payload:$}}else if(j==="RadialBar"){var C=(M.data||[]).find(function(B){return tg(w,B)});if(C)return{graphicalItem:A,payload:C}}else if(Ta(A,m)||Ea(A,m)||jn(A,m)){var R=V$({graphicalItem:A,activeTooltipItem:m,itemData:P.data}),D=P.activeIndex===void 0?R:P.activeIndex;return{graphicalItem:I(I({},A),{},{childIndex:D}),payload:jn(A,m)?P.data[R]:A.props.data[R]}}}return null}},{key:"render",value:function(){var w=this;if(!pp(this))return null;var O=this.props,g=O.children,m=O.className,_=O.width,S=O.height,A=O.style,M=O.compact,E=O.title,P=O.desc,j=Rm(O,oD),$=ee(j,!1);if(M)return T.createElement(gm,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},T.createElement(Fs,ar({},$,{width:_,height:S,title:E,desc:P}),this.renderClipPath(),vp(g,this.renderMap)));if(this.props.accessibilityLayer){var C,R;$.tabIndex=(C=this.props.tabIndex)!==null&&C!==void 0?C:0,$.role=(R=this.props.role)!==null&&R!==void 0?R:"application",$.onKeyDown=function(B){w.accessibilityManager.keyboardEvent(B)},$.onFocus=function(){w.accessibilityManager.focus()}}var D=this.parseEventsOfWrapper();return T.createElement(gm,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},T.createElement("div",ar({className:te("recharts-wrapper",m),style:I({position:"relative",cursor:"default",width:_,height:S},A)},D,{ref:function(L){w.container=L}}),T.createElement(Fs,ar({},$,{width:_,height:S,title:E,desc:P,style:_D}),this.renderClipPath(),vp(g,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(N.Component);H(y,"displayName",r),H(y,"defaultProps",I({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),H(y,"getDerivedStateFromProps",function(p,b){var x=p.dataKey,w=p.data,O=p.children,g=p.width,m=p.height,_=p.layout,S=p.stackOffset,A=p.margin,M=b.dataStartIndex,E=b.dataEndIndex;if(b.updateId===void 0){var P=Nm(p);return I(I(I({},P),{},{updateId:0},d(I(I({props:p},P),{},{updateId:0}),b)),{},{prevDataKey:x,prevData:w,prevWidth:g,prevHeight:m,prevLayout:_,prevStackOffset:S,prevMargin:A,prevChildren:O})}if(x!==b.prevDataKey||w!==b.prevData||g!==b.prevWidth||m!==b.prevHeight||_!==b.prevLayout||S!==b.prevStackOffset||!or(A,b.prevMargin)){var j=Nm(p),$={chartX:b.chartX,chartY:b.chartY,isTooltipActive:b.isTooltipActive},C=I(I({},Dm(b,w,_)),{},{updateId:b.updateId+1}),R=I(I(I({},j),$),C);return I(I(I({},R),d(I({props:p},R),b)),{},{prevDataKey:x,prevData:w,prevWidth:g,prevHeight:m,prevLayout:_,prevStackOffset:S,prevMargin:A,prevChildren:O})}if(!Bs(O,b.prevChildren)){var D,B,L,z,G=Ne(O,wr),U=G&&(D=(B=G.props)===null||B===void 0?void 0:B.startIndex)!==null&&D!==void 0?D:M,K=G&&(L=(z=G.props)===null||z===void 0?void 0:z.endIndex)!==null&&L!==void 0?L:E,ce=U!==M||K!==E,pe=!Z(w),ke=pe&&!ce?b.updateId:b.updateId+1;return I(I({updateId:ke},d(I(I({props:p},b),{},{updateId:ke,dataStartIndex:U,dataEndIndex:K}),b)),{},{prevChildren:O,dataStartIndex:U,dataEndIndex:K})}return null}),H(y,"renderActiveDot",function(p,b,x){var w;return N.isValidElement(p)?w=N.cloneElement(p,b):Y(p)?w=p(b):w=T.createElement(ox,b),T.createElement(_e,{className:"recharts-active-dot",key:x},w)});var v=N.forwardRef(function(b,x){return T.createElement(y,ar({},b,{ref:x}))});return v.displayName=y.displayName,v};export{At as A,We as B,hg as C,ox as D,Ve as E,Ze as F,Bn as G,Lb as H,yj as I,Ye as J,ht as K,_e as L,ND as M,zn as N,kD as R,U$ as S,ot as T,qx as X,Ux as Y,Qt as a,Z as b,Nn as c,Wf as d,te as e,ee as f,Wt as g,RD as h,q as i,Y as j,Je as k,DD as l,Oa as m,LD as n,BD as o,wk as p,RT as q,_0 as r,Tt as s,NT as t,ca as u,bi as v,Pe as w,qD as x,ci as y,Ee as z};