UNPKG

recharts

Version:
2 lines 585 kB
/*! For license information please see Recharts.js.LICENSE.txt */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom"),require("react-is")):"function"==typeof define&&define.amd?define(["react","react-dom","react-is"],t):"object"==typeof exports?exports.Recharts=t(require("react"),require("react-dom"),require("react-is")):e.Recharts=t(e.React,e.ReactDOM,e.ReactIs)}(this,(e,t,r)=>(()=>{var n={351(e,t,r){var n;!function(){"use strict";var i,a=1e9,o={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},l=!0,u="[DecimalError] ",c=u+"Invalid argument: ",s=u+"Exponent out of range: ",f=Math.floor,d=Math.pow,p=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,h=1e7,v=9007199254740991,y=f(1286742750677284.5),m={};function g(e,t){var r,n,i,a,o,u,c,s,f=e.constructor,d=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),l?k(t,d):t;if(c=e.d,s=t.d,o=e.e,i=t.e,c=c.slice(),a=o-i){for(a<0?(n=c,a=-a,u=s.length):(n=s,i=o,u=c.length),a>(u=(o=Math.ceil(d/7))>u?o+1:u+1)&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for((u=c.length)-(a=s.length)<0&&(a=u,n=s,s=c,c=n),r=0;a;)r=(c[--a]=c[a]+s[a]+r)/h|0,c[a]%=h;for(r&&(c.unshift(r),++i),u=c.length;0==c[--u];)c.pop();return t.d=c,t.e=i,l?k(t,d):t}function b(e,t,r){if(e!==~~e||e<t||e>r)throw Error(c+e)}function x(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)(r=7-(n=e[t]+"").length)&&(a+=P(r)),a+=n;(r=7-(n=(o=e[t])+"").length)&&(a+=P(r))}else if(0===o)return"0";for(;o%10==0;)o/=10;return a+o}m.absoluteValue=m.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},m.comparedTo=m.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(t=0,r=(n=a.d.length)<(i=e.d.length)?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},m.decimalPlaces=m.dp=function(){var e=this,t=e.d.length-1,r=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)r--;return r<0?0:r},m.dividedBy=m.div=function(e){return w(this,new this.constructor(e))},m.dividedToIntegerBy=m.idiv=function(e){var t=this.constructor;return k(w(this,new t(e),0,1),t.precision)},m.equals=m.eq=function(e){return!this.cmp(e)},m.exponent=function(){return E(this)},m.greaterThan=m.gt=function(e){return this.cmp(e)>0},m.greaterThanOrEqualTo=m.gte=function(e){return this.cmp(e)>=0},m.isInteger=m.isint=function(){return this.e>this.d.length-2},m.isNegative=m.isneg=function(){return this.s<0},m.isPositive=m.ispos=function(){return this.s>0},m.isZero=function(){return 0===this.s},m.lessThan=m.lt=function(e){return this.cmp(e)<0},m.lessThanOrEqualTo=m.lte=function(e){return this.cmp(e)<1},m.logarithm=m.log=function(e){var t,r=this,n=r.constructor,a=n.precision,o=a+5;if(void 0===e)e=new n(10);else if((e=new n(e)).s<1||e.eq(i))throw Error(u+"NaN");if(r.s<1)throw Error(u+(r.s?"NaN":"-Infinity"));return r.eq(i)?new n(0):(l=!1,t=w(j(r,o),j(e,o),o),l=!0,k(t,a))},m.minus=m.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?I(t,e):g(t,(e.s=-e.s,e))},m.modulo=m.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(!(e=new n(e)).s)throw Error(u+"NaN");return r.s?(l=!1,t=w(r,e,0,1).times(e),l=!0,r.minus(t)):k(new n(r),i)},m.naturalExponential=m.exp=function(){return O(this)},m.naturalLogarithm=m.ln=function(){return j(this)},m.negated=m.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},m.plus=m.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?g(t,e):I(t,(e.s=-e.s,e))},m.precision=m.sd=function(e){var t,r,n,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(c+e);if(t=E(i)+1,r=7*(n=i.d.length-1)+1,n=i.d[n]){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r},m.squareRoot=m.sqrt=function(){var e,t,r,n,i,a,o,c=this,s=c.constructor;if(c.s<1){if(!c.s)return new s(0);throw Error(u+"NaN")}for(e=E(c),l=!1,0==(i=Math.sqrt(+c))||i==1/0?(((t=x(c.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=f((e+1)/2)-(e<0||e%2),n=new s(t=i==1/0?"5e"+e:(t=i.toExponential()).slice(0,t.indexOf("e")+1)+e)):n=new s(i.toString()),i=o=(r=s.precision)+3;;)if(n=(a=n).plus(w(c,a,o+2)).times(.5),x(a.d).slice(0,o)===(t=x(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&"4999"==t){if(k(a,r+1,0),a.times(a).eq(c)){n=a;break}}else if("9999"!=t)break;o+=4}return l=!0,k(n,r)},m.times=m.mul=function(e){var t,r,n,i,a,o,u,c,s,f=this,d=f.constructor,p=f.d,v=(e=new d(e)).d;if(!f.s||!e.s)return new d(0);for(e.s*=f.s,r=f.e+e.e,(c=p.length)<(s=v.length)&&(a=p,p=v,v=a,o=c,c=s,s=o),a=[],n=o=c+s;n--;)a.push(0);for(n=s;--n>=0;){for(t=0,i=c+n;i>n;)u=a[i]+v[n]*p[i-n-1]+t,a[i--]=u%h|0,t=u/h|0;a[i]=(a[i]+t)%h|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,l?k(e,d.precision):e},m.toDecimalPlaces=m.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),void 0===e?r:(b(e,0,a),void 0===t?t=n.rounding:b(t,0,8),k(r,e+E(r)+1,t))},m.toExponential=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=M(n,!0):(b(e,0,a),void 0===t?t=i.rounding:b(t,0,8),r=M(n=k(new i(n),e+1,t),!0,e+1)),r},m.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return void 0===e?M(i):(b(e,0,a),void 0===t?t=o.rounding:b(t,0,8),r=M((n=k(new o(i),e+E(i)+1,t)).abs(),!1,e+E(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)},m.toInteger=m.toint=function(){var e=this,t=e.constructor;return k(new t(e),E(e)+1,t.rounding)},m.toNumber=function(){return+this},m.toPower=m.pow=function(e){var t,r,n,a,o,c,s=this,d=s.constructor,p=+(e=new d(e));if(!e.s)return new d(i);if(!(s=new d(s)).s){if(e.s<1)throw Error(u+"Infinity");return s}if(s.eq(i))return s;if(n=d.precision,e.eq(i))return k(s,n);if(c=(t=e.e)>=(r=e.d.length-1),o=s.s,c){if((r=p<0?-p:p)<=v){for(a=new d(i),t=Math.ceil(n/7+4),l=!1;r%2&&D((a=a.times(s)).d,t),0!==(r=f(r/2));)D((s=s.times(s)).d,t);return l=!0,e.s<0?new d(i).div(a):k(a,n)}}else if(o<0)throw Error(u+"NaN");return o=o<0&&1&e.d[Math.max(t,r)]?-1:1,s.s=1,l=!1,a=e.times(j(s,n+12)),l=!0,(a=O(a)).s=o,a},m.toPrecision=function(e,t){var r,n,i=this,o=i.constructor;return void 0===e?n=M(i,(r=E(i))<=o.toExpNeg||r>=o.toExpPos):(b(e,1,a),void 0===t?t=o.rounding:b(t,0,8),n=M(i=k(new o(i),e,t),e<=(r=E(i))||r<=o.toExpNeg,e)),n},m.toSignificantDigits=m.tosd=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(b(e,1,a),void 0===t?t=r.rounding:b(t,0,8)),k(new r(this),e,t)},m.toString=m.valueOf=m.val=m.toJSON=function(){var e=this,t=E(e),r=e.constructor;return M(e,t<=r.toExpNeg||t>=r.toExpPos)};var w=function(){function e(e,t){var r,n=0,i=e.length;for(e=e.slice();i--;)r=e[i]*t+n,e[i]=r%h|0,n=r/h|0;return n&&e.unshift(n),e}function t(e,t,r,n){var i,a;if(r!=n)a=r>n?1:-1;else for(i=a=0;i<r;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function r(e,t,r){for(var n=0;r--;)e[r]-=n,n=e[r]<t[r]?1:0,e[r]=n*h+e[r]-t[r];for(;!e[0]&&e.length>1;)e.shift()}return function(n,i,a,o){var l,c,s,f,d,p,v,y,m,g,b,x,w,O,A,P,j,S,I=n.constructor,M=n.s==i.s?1:-1,D=n.d,T=i.d;if(!n.s)return new I(n);if(!i.s)throw Error(u+"Division by zero");for(c=n.e-i.e,j=T.length,A=D.length,y=(v=new I(M)).d=[],s=0;T[s]==(D[s]||0);)++s;if(T[s]>(D[s]||0)&&--c,(x=null==a?a=I.precision:o?a+(E(n)-E(i))+1:a)<0)return new I(0);if(x=x/7+2|0,s=0,1==j)for(f=0,T=T[0],x++;(s<A||f)&&x--;s++)w=f*h+(D[s]||0),y[s]=w/T|0,f=w%T|0;else{for((f=h/(T[0]+1)|0)>1&&(T=e(T,f),D=e(D,f),j=T.length,A=D.length),O=j,g=(m=D.slice(0,j)).length;g<j;)m[g++]=0;(S=T.slice()).unshift(0),P=T[0],T[1]>=h/2&&++P;do{f=0,(l=t(T,m,j,g))<0?(b=m[0],j!=g&&(b=b*h+(m[1]||0)),(f=b/P|0)>1?(f>=h&&(f=h-1),1==(l=t(d=e(T,f),m,p=d.length,g=m.length))&&(f--,r(d,j<p?S:T,p))):(0==f&&(l=f=1),d=T.slice()),(p=d.length)<g&&d.unshift(0),r(m,d,g),-1==l&&(l=t(T,m,j,g=m.length))<1&&(f++,r(m,j<g?S:T,g)),g=m.length):0===l&&(f++,m=[0]),y[s++]=f,l&&m[0]?m[g++]=D[O]||0:(m=[D[O]],g=1)}while((O++<A||void 0!==m[0])&&x--)}return y[0]||y.shift(),v.e=c,k(v,o?a+E(v)+1:a)}}();function O(e,t){var r,n,a,o,u,c=0,f=0,p=e.constructor,h=p.precision;if(E(e)>16)throw Error(s+E(e));if(!e.s)return new p(i);for(null==t?(l=!1,u=h):u=t,o=new p(.03125);e.abs().gte(.1);)e=e.times(o),f+=5;for(u+=Math.log(d(2,f))/Math.LN10*2+5|0,r=n=a=new p(i),p.precision=u;;){if(n=k(n.times(e),u),r=r.times(++c),x((o=a.plus(w(n,r,u))).d).slice(0,u)===x(a.d).slice(0,u)){for(;f--;)a=k(a.times(a),u);return p.precision=h,null==t?(l=!0,k(a,h)):a}a=o}}function E(e){for(var t=7*e.e,r=e.d[0];r>=10;r/=10)t++;return t}function A(e,t,r){if(t>e.LN10.sd())throw l=!0,r&&(e.precision=r),Error(u+"LN10 precision limit exceeded");return k(new e(e.LN10),t)}function P(e){for(var t="";e--;)t+="0";return t}function j(e,t){var r,n,a,o,c,s,f,d,p,h=1,v=e,y=v.d,m=v.constructor,g=m.precision;if(v.s<1)throw Error(u+(v.s?"NaN":"-Infinity"));if(v.eq(i))return new m(0);if(null==t?(l=!1,d=g):d=t,v.eq(10))return null==t&&(l=!0),A(m,d);if(d+=10,m.precision=d,n=(r=x(y)).charAt(0),o=E(v),!(Math.abs(o)<15e14))return f=A(m,d+2,g).times(o+""),v=j(new m(n+"."+r.slice(1)),d-10).plus(f),m.precision=g,null==t?(l=!0,k(v,g)):v;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=x((v=v.times(e)).d)).charAt(0),h++;for(o=E(v),n>1?(v=new m("0."+r),o++):v=new m(n+"."+r.slice(1)),s=c=v=w(v.minus(i),v.plus(i),d),p=k(v.times(v),d),a=3;;){if(c=k(c.times(p),d),x((f=s.plus(w(c,new m(a),d))).d).slice(0,d)===x(s.d).slice(0,d))return s=s.times(2),0!==o&&(s=s.plus(A(m,d+2,g).times(o+""))),s=w(s,new m(h),d),m.precision=g,null==t?(l=!0,k(s,g)):s;s=f,a+=2}}function S(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;48===t.charCodeAt(n);)++n;for(i=t.length;48===t.charCodeAt(i-1);)--i;if(t=t.slice(n,i)){if(i-=n,r=r-n-1,e.e=f(r/7),e.d=[],n=(r+1)%7,r<0&&(n+=7),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=7;n<i;)e.d.push(+t.slice(n,n+=7));n=7-(t=t.slice(n)).length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),l&&(e.e>y||e.e<-y))throw Error(s+r)}else e.s=0,e.e=0,e.d=[0];return e}function k(e,t,r){var n,i,a,o,u,c,p,v,m=e.d;for(o=1,a=m[0];a>=10;a/=10)o++;if((n=t-o)<0)n+=7,i=t,p=m[v=0];else{if((v=Math.ceil((n+1)/7))>=(a=m.length))return e;for(p=a=m[v],o=1;a>=10;a/=10)o++;i=(n%=7)-7+o}if(void 0!==r&&(u=p/(a=d(10,o-i-1))%10|0,c=t<0||void 0!==m[v+1]||p%a,c=r<4?(u||c)&&(0==r||r==(e.s<0?3:2)):u>5||5==u&&(4==r||c||6==r&&(n>0?i>0?p/d(10,o-i):0:m[v-1])%10&1||r==(e.s<0?8:7))),t<1||!m[0])return c?(a=E(e),m.length=1,t=t-a-1,m[0]=d(10,(7-t%7)%7),e.e=f(-t/7)||0):(m.length=1,m[0]=e.e=e.s=0),e;if(0==n?(m.length=v,a=1,v--):(m.length=v+1,a=d(10,7-n),m[v]=i>0?(p/d(10,o-i)%d(10,i)|0)*a:0),c)for(;;){if(0==v){(m[0]+=a)==h&&(m[0]=1,++e.e);break}if(m[v]+=a,m[v]!=h)break;m[v--]=0,a=1}for(n=m.length;0===m[--n];)m.pop();if(l&&(e.e>y||e.e<-y))throw Error(s+E(e));return e}function I(e,t){var r,n,i,a,o,u,c,s,f,d,p=e.constructor,v=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),l?k(t,v):t;if(c=e.d,d=t.d,n=t.e,s=e.e,c=c.slice(),o=s-n){for((f=o<0)?(r=c,o=-o,u=d.length):(r=d,n=s,u=c.length),o>(i=Math.max(Math.ceil(v/7),u)+2)&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for((f=(i=c.length)<(u=d.length))&&(u=i),i=0;i<u;i++)if(c[i]!=d[i]){f=c[i]<d[i];break}o=0}for(f&&(r=c,c=d,d=r,t.s=-t.s),u=c.length,i=d.length-u;i>0;--i)c[u++]=0;for(i=d.length;i>o;){if(c[--i]<d[i]){for(a=i;a&&0===c[--a];)c[a]=h-1;--c[a],c[i]+=h}c[i]-=d[i]}for(;0===c[--u];)c.pop();for(;0===c[0];c.shift())--n;return c[0]?(t.d=c,t.e=n,l?k(t,v):t):new p(0)}function M(e,t,r){var n,i=E(e),a=x(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+P(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+P(-i-1)+a,r&&(n=r-o)>0&&(a+=P(n))):i>=o?(a+=P(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+P(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=P(n))),e.s<0?"-"+a:a}function D(e,t){if(e.length>t)return e.length=t,!0}function T(e){if(!e||"object"!=typeof e)throw Error(u+"Object expected");var t,r,n,i=["precision",1,a,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if(void 0!==(n=e[r=i[t]])){if(!(f(n)===n&&n>=i[t+1]&&n<=i[t+2]))throw Error(c+r+": "+n);this[r]=n}if(void 0!==(n=e[r="LN10"])){if(n!=Math.LN10)throw Error(c+r+": "+n);this[r]=new this(n)}return this}o=function e(t){var r,n,i;function a(e){var t=this;if(!(t instanceof a))return new a(e);if(t.constructor=a,e instanceof a)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(c+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):S(t,e.toString())}if("string"!=typeof e)throw Error(c+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!p.test(e))throw Error(c+e);S(t,e)}if(a.prototype=m,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=e,a.config=a.set=T,void 0===t&&(t={}),t)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<i.length;)t.hasOwnProperty(n=i[r++])||(t[n]=this[n]);return a.config(t),a}(o),o.default=o.Decimal=o,i=new o(1),void 0===(n=function(){return o}.call(t,r,t,e))||(e.exports=n)}()},228(e){"use strict";var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function a(e,t,n,a,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var l=new i(n,a||e,o),u=r?r+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],l]:e._events[u].push(l):(e._events[u]=l,e._eventsCount++),e}function o(e,t){0===--e._eventsCount?e._events=new n:delete e._events[t]}function l(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),l.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},l.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=new Array(a);i<a;i++)o[i]=n[i].fn;return o},l.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},l.prototype.emit=function(e,t,n,i,a,o){var l=r?r+e:e;if(!this._events[l])return!1;var u,c,s=this._events[l],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(e,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,t),!0;case 3:return s.fn.call(s.context,t,n),!0;case 4:return s.fn.call(s.context,t,n,i),!0;case 5:return s.fn.call(s.context,t,n,i,a),!0;case 6:return s.fn.call(s.context,t,n,i,a,o),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];s.fn.apply(s.context,u)}else{var d,p=s.length;for(c=0;c<p;c++)switch(s[c].once&&this.removeListener(e,s[c].fn,void 0,!0),f){case 1:s[c].fn.call(s[c].context);break;case 2:s[c].fn.call(s[c].context,t);break;case 3:s[c].fn.call(s[c].context,t,n);break;case 4:s[c].fn.call(s[c].context,t,n,i);break;default:if(!u)for(d=1,u=new Array(f-1);d<f;d++)u[d-1]=arguments[d];s[c].fn.apply(s[c].context,u)}}return!0},l.prototype.on=function(e,t,r){return a(this,e,t,r,!1)},l.prototype.once=function(e,t,r){return a(this,e,t,r,!0)},l.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return o(this,a),this;var l=this._events[a];if(l.fn)l.fn!==t||i&&!l.once||n&&l.context!==n||o(this,a);else{for(var u=0,c=[],s=l.length;u<s;u++)(l[u].fn!==t||i&&!l[u].once||n&&l[u].context!==n)&&c.push(l[u]);c.length?this._events[a]=1===c.length?c[0]:c:o(this,a)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&o(this,t)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,e.exports=l},146(e,t,r){"use strict";var n=r(751),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return n.isMemo(e)?o:l[e.$$typeof]||i}l[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[n.Memo]=o;var c=Object.defineProperty,s=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(h){var i=p(r);i&&i!==h&&e(t,i,n)}var o=s(r);f&&(o=o.concat(f(r)));for(var l=u(t),v=u(r),y=0;y<o.length;++y){var m=o[y];if(!(a[m]||n&&n[m]||v&&v[m]||l&&l[m])){var g=d(r,m);try{c(t,m,g)}catch(e){}}}}return t}},493(e,t,r){"use strict";var n=r(442);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,o=n.useEffect,l=n.useLayoutEffect,u=n.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),i=n[0].inst,s=n[1];return l(function(){i.value=r,i.getSnapshot=t,c(i)&&s({inst:i})},[e,r,t]),o(function(){return c(i)&&s({inst:i}),e(function(){c(i)&&s({inst:i})})},[e]),u(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:s},162(e,t,r){"use strict";var n=r(442),i=r(888);var a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=i.useSyncExternalStore,l=n.useRef,u=n.useEffect,c=n.useMemo,s=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var f=l(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=c(function(){function e(e){if(!u){if(u=!0,o=e,e=n(e),void 0!==i&&d.hasValue){var t=d.value;if(i(t,e))return l=t}return l=e}if(t=l,a(o,e))return t;var r=n(e);return void 0!==i&&i(t,r)?(o=e,t):(o=e,l=r)}var o,l,u=!1,c=void 0===r?null:r;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,r,n,i]);var p=o(e,f[0],f[1]);return u(function(){d.hasValue=!0,d.value=p},[p]),s(p),p}},888(e,t,r){"use strict";e.exports=r(493)},242(e,t,r){"use strict";e.exports=r(162)},442(t){"use strict";t.exports=e},3(e){"use strict";e.exports=t},751(e){"use strict";e.exports=r}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return n[e].call(r.exports,r,r.exports,a),r.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";a.r(o),a.d(o,{AnimationControllerProvider:()=>is,Area:()=>pN,AreaChart:()=>YK,AreaRevealShape:()=>XC,Bar:()=>h_,BarChart:()=>fL,BarStack:()=>FN,Brush:()=>HM,CSSTransitionAnimation:()=>ps,CartesianAxis:()=>dT,CartesianGrid:()=>DT,Cell:()=>oE,ComposedChart:()=>nB,Cross:()=>Hc,Curve:()=>Fc,Customized:()=>CA,DefaultLegendContent:()=>$e,DefaultTooltipContent:()=>Wu,DefaultZIndexes:()=>td,Dot:()=>FA,ErrorBar:()=>zz,Funnel:()=>iF,FunnelChart:()=>oF,Global:()=>Hu,JavascriptAnimation:()=>ds,Label:()=>mA,LabelList:()=>MA,Layer:()=>b,Legend:()=>Cu,Line:()=>SC,LineChart:()=>cL,LineDrawShape:()=>RT,Pie:()=>NS,PieChart:()=>AL,PolarAngleAxis:()=>aj,PolarGrid:()=>OP,PolarRadiusAxis:()=>VP,Polygon:()=>KA,Radar:()=>uI,RadarChart:()=>$K,RadialBar:()=>fM,RadialBarChart:()=>tB,Rectangle:()=>$s,ReferenceArea:()=>BD,ReferenceDot:()=>MD,ReferenceLine:()=>xD,ResponsiveContainer:()=>bo,Sankey:()=>KK,Scatter:()=>F_,ScatterChart:()=>HK,Sector:()=>mf,SunburstChart:()=>wB,Surface:()=>y,Symbols:()=>Ie,Text:()=>HE,Tooltip:()=>aE,Trapezoid:()=>DB,Treemap:()=>nK,XAxis:()=>az,YAxis:()=>gz,ZAxis:()=>wz,ZIndexLayer:()=>wO,createCentricChart:()=>gF,createHorizontalChart:()=>dF,createRadialChart:()=>bF,createVerticalChart:()=>pF,getNiceTickValues:()=>Uf,getRelativeCoordinate:()=>Lz,interpolate:()=>ye,matchAppend:()=>Rj,matchByDataKey:()=>Lj,matchByIndex:()=>zj,useActiveTooltipCoordinate:()=>Sk,useActiveTooltipDataPoints:()=>Ek,useActiveTooltipLabel:()=>xk,useCartesianChartLayout:()=>Io,useCartesianScale:()=>bk,useChartHeight:()=>Po,useChartLayout:()=>ko,useChartWidth:()=>Ao,useIsTooltipActive:()=>jk,useMargin:()=>jo,useOffset:()=>wk,usePlotArea:()=>Ok,usePolarChartLayout:()=>Do,useXAxisDomain:()=>Ak,useXAxisInverseDataSnapScale:()=>dk,useXAxisInverseScale:()=>fk,useXAxisInverseTickSnapScale:()=>pk,useXAxisScale:()=>ck,useXAxisTicks:()=>mk,useYAxisDomain:()=>Pk,useYAxisInverseDataSnapScale:()=>vk,useYAxisInverseScale:()=>hk,useYAxisInverseTickSnapScale:()=>yk,useYAxisScale:()=>sk,useYAxisTicks:()=>gk});var e={};a.r(e),a.d(e,{scaleBand:()=>Wd,scaleDiverging:()=>zm,scaleDivergingLog:()=>Rm,scaleDivergingPow:()=>Km,scaleDivergingSqrt:()=>Bm,scaleDivergingSymlog:()=>Lm,scaleIdentity:()=>Mh,scaleImplicit:()=>Bd,scaleLinear:()=>Ih,scaleLog:()=>Kh,scaleOrdinal:()=>Fd,scalePoint:()=>Vd,scalePow:()=>qh,scaleQuantile:()=>ov,scaleQuantize:()=>lv,scaleRadial:()=>Zh,scaleSequential:()=>Im,scaleSequentialLog:()=>Mm,scaleSequentialPow:()=>Tm,scaleSequentialQuantile:()=>Nm,scaleSequentialSqrt:()=>Cm,scaleSequentialSymlog:()=>Dm,scaleSqrt:()=>Yh,scaleSymlog:()=>Uh,scaleThreshold:()=>uv,scaleTime:()=>Pm,scaleUtc:()=>jm,tickFormat:()=>Sh});var t=a(442);function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function n(){for(var e,t,n=0,i="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}var i=["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"];function l(e){return"string"==typeof e&&i.includes(e)}var u=new Set(["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"]);function c(e){return"string"==typeof e&&u.has(e)}function s(e){return"string"==typeof e&&e.startsWith("data-")}function f(e){if("object"!=typeof e||null===e)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(c(r)||s(r))&&(t[r]=e[r]);return t}function d(e){return null==e?null:(0,t.isValidElement)(e)&&"object"==typeof e.props&&null!==e.props?f(e.props):"object"!=typeof e||Array.isArray(e)?null:f(e)}function p(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(c(r)||s(r)||l(r))&&(t[r]=e[r]);return t}var h=["children","width","height","viewBox","className","style","title","desc"];function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},v.apply(null,arguments)}var y=(0,t.forwardRef)((e,r)=>{var i=e.children,a=e.width,o=e.height,l=e.viewBox,u=e.className,c=e.style,s=e.title,f=e.desc,d=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,h),y=l||{width:a,height:o,x:0,y:0},m=n("recharts-surface",u);return t.createElement("svg",v({},p(d),{className:m,width:a,height:o,style:c,viewBox:"".concat(y.x," ").concat(y.y," ").concat(y.width," ").concat(y.height),ref:r}),t.createElement("title",null,s),t.createElement("desc",null,f),i)}),m=["children","className"];function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},g.apply(null,arguments)}var b=t.forwardRef((e,r)=>{var i=e.children,a=e.className,o=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,m),l=n("recharts-layer",a);return t.createElement("g",g({className:l},p(o),{ref:r}),i)}),x=a(3),w=(0,t.createContext)(null);Math.abs,Math.atan2;const O=Math.cos,E=(Math.max,Math.min,Math.sin),A=Math.sqrt,P=Math.PI,j=2*P;const S={draw(e,t){const r=A(t/P);e.moveTo(r,0),e.arc(0,0,r,0,j)}},k={draw(e,t){const r=A(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()}},I=A(1/3),M=2*I,D={draw(e,t){const r=A(t/M),n=r*I;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},T={draw(e,t){const r=A(t),n=-r/2;e.rect(n,n,r,r)}},C=E(P/10)/E(7*P/10),N=E(j/10)*C,_=-O(j/10)*C,z={draw(e,t){const r=A(.8908130915292852*t),n=N*r,i=_*r;e.moveTo(0,-r),e.lineTo(n,i);for(let t=1;t<5;++t){const a=j*t/5,o=O(a),l=E(a);e.lineTo(l*r,-o*r),e.lineTo(o*n-l*i,l*n+o*i)}e.closePath()}},R=A(3),L={draw(e,t){const r=-A(t/(3*R));e.moveTo(0,2*r),e.lineTo(-R*r,-r),e.lineTo(R*r,-r),e.closePath()}},K=-.5,B=A(3)/2,F=1/A(12),W=3*(F/2+1),U={draw(e,t){const r=A(t/W),n=r/2,i=r*F,a=n,o=r*F+r,l=-a,u=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(l,u),e.lineTo(K*n-B*i,B*n+K*i),e.lineTo(K*a-B*o,B*a+K*o),e.lineTo(K*l-B*u,B*l+K*u),e.lineTo(K*n+B*i,K*i-B*n),e.lineTo(K*a+B*o,K*o-B*a),e.lineTo(K*l+B*u,K*u-B*l),e.closePath()}};function V(e){return function(){return e}}const $=Math.PI,X=2*$,H=1e-6,q=X-H;function Y(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}class G{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?Y:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Y;const r=10**t;return function(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=Math.round(arguments[t]*r)/r+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,r,n){this._append`Q${+e},${+t},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(e,t,r,n,i,a){this._append`C${+e},${+t},${+r},${+n},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,r,n,i){if(e=+e,t=+t,r=+r,n=+n,(i=+i)<0)throw new Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,l=r-e,u=n-t,c=a-e,s=o-t,f=c*c+s*s;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(f>H)if(Math.abs(s*l-u*c)>H&&i){let d=r-a,p=n-o,h=l*l+u*u,v=d*d+p*p,y=Math.sqrt(h),m=Math.sqrt(f),g=i*Math.tan(($-Math.acos((h+f-v)/(2*y*m)))/2),b=g/m,x=g/y;Math.abs(b-1)>H&&this._append`L${e+b*c},${t+b*s}`,this._append`A${i},${i},0,0,${+(s*d>c*p)},${this._x1=e+x*l},${this._y1=t+x*u}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,r,n,i,a){if(e=+e,t=+t,a=!!a,(r=+r)<0)throw new Error(`negative radius: ${r}`);let o=r*Math.cos(n),l=r*Math.sin(n),u=e+o,c=t+l,s=1^a,f=a?n-i:i-n;null===this._x1?this._append`M${u},${c}`:(Math.abs(this._x1-u)>H||Math.abs(this._y1-c)>H)&&this._append`L${u},${c}`,r&&(f<0&&(f=f%X+X),f>q?this._append`A${r},${r},0,1,${s},${e-o},${t-l}A${r},${r},0,1,${s},${this._x1=u},${this._y1=c}`:f>H&&this._append`A${r},${r},0,${+(f>=$)},${s},${this._x1=e+r*Math.cos(i)},${this._y1=t+r*Math.sin(i)}`)}rect(e,t,r,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function Z(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(null==r)t=null;else{const e=Math.floor(r);if(!(e>=0))throw new RangeError(`invalid digits: ${r}`);t=e}return e},()=>new G(t)}function J(e){return"__proto__"===e}function Q(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}function ee(e){return"string"==typeof e||"symbol"==typeof e?e:Object.is(e?.valueOf?.(),-0)?"-0":String(e)}function te(e){if(null==e)return"";if("string"==typeof e)return e;if(Array.isArray(e))return e.map(te).join(",");const t=String(e);return"0"===t&&Object.is(Number(e),-0)?"-0":t}function re(e){if(Array.isArray(e))return e.map(ee);if("symbol"==typeof e)return[e];const t=[],r=(e=te(e)).length;if(0===r)return t;let n=0,i="",a="",o=!1;for(46===e.charCodeAt(0)&&t.push("");n<r;){const l=e[n];if(a)"\\"===l&&n+1<r?(n++,i+=e[n]):l===a?a="":i+=l;else if(o)'"'===l||"'"===l?a=l:"]"===l?(o=!1,t.push(i),i=""):i+=l;else if("["===l)o=!0,i&&(t.push(i),i="");else if("."===l){i&&(t.push(i),i="");const r=e[n+1];void 0!==r&&"."!==r||t.push("")}else i+=l;n++}return i&&t.push(i),t}function ne(e,t,r){if(null==e)return r;switch(typeof t){case"string":{if(J(t))return r;const n=e[t];return void 0===n?Q(t)&&!Object.hasOwn(e,t)?ne(e,re(t),r):r:n}case"number":case"symbol":{"number"==typeof t&&(t=ee(t));const n=e[t];return void 0===n?r:n}default:{if(Array.isArray(t))return function(e,t,r){if(0===t.length)return r;let n=e;for(let e=0;e<t.length;e++){if(null==n)return r;if(J(t[e]))return r;n=n[t[e]]}return void 0===n?r:n}(e,t,r);if(J(t=Object.is(t?.valueOf(),-0)?"-0":String(t)))return r;const n=e[t];return void 0===n?r:n}}}var ie=4;function ae(e){var t=10**(arguments.length>1&&void 0!==arguments[1]?arguments[1]:ie),r=Math.round(e*t)/t;return Object.is(r,-0)?0:r}function oe(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.reduce((e,t,n)=>{var i=r[n-1];return"string"==typeof i?e+i+t:void 0!==i?e+ae(i)+t:e+t},"")}var le=e=>0===e?0:e>0?1:-1,ue=e=>"number"==typeof e&&e!=+e,ce=e=>"string"==typeof e&&e.length>1&&e.indexOf("%")===e.length-1,se=e=>("number"==typeof e||e instanceof Number)&&!ue(e),fe=e=>se(e)||"string"==typeof e,de=0,pe=e=>{var t=++de;return"".concat(e||"").concat(t)},he=function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!se(e)&&"string"!=typeof e)return n;if(ce(e)){if(null==t)return n;var a=e.indexOf("%");r=t*parseFloat(e.slice(0,a))/100}else r=+e;return ue(r)&&(r=n),i&&null!=t&&r>t&&(r=t),r},ve=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++){if(r[String(e[n])])return!0;r[String(e[n])]=!0}return!1};function ye(e,t,r){return se(e)&&se(t)?ae(e+r*(t-e)):t}function me(e,t,r){if(e&&e.length)return e.find(e=>e&&("function"==typeof t?t(e):ne(e,t))===r)}var ge=e=>null==e,be=e=>ge(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function xe(e){return null!=e}function we(){}var Oe=["type","size","sizeType"];function Ee(){return Ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ee.apply(null,arguments)}function Ae(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Pe(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ae(Object(r),!0).forEach(function(t){je(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ae(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function je(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Se={symbolCircle:S,symbolCross:k,symbolDiamond:D,symbolSquare:T,symbolStar:z,symbolTriangle:L,symbolWye:U},ke=Math.PI/180,Ie=e=>{var r=e.type,i=void 0===r?"circle":r,a=e.size,o=void 0===a?64:a,l=e.sizeType,u=void 0===l?"area":l,c=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,Oe),s=Pe(Pe({},c),{},{type:i,size:o,sizeType:u}),f="circle";"string"==typeof i&&(f=i);var d=s.className,h=s.cx,v=s.cy,y=p(s);return se(h)&&se(v)&&se(o)?t.createElement("path",Ee({},y,{className:n("recharts-symbols",d),transform:"translate(".concat(h,", ").concat(v,")"),d:(()=>{var e=(e=>{var t="symbol".concat(be(e));return Se[t]||S})(f),t=function(e,t){let r=null,n=Z(i);function i(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return e="function"==typeof e?e:V(e||S),t="function"==typeof t?t:V(void 0===t?64:+t),i.type=function(t){return arguments.length?(e="function"==typeof t?t:V(t),i):e},i.size=function(e){return arguments.length?(t="function"==typeof e?e:V(+e),i):t},i.context=function(e){return arguments.length?(r=e??null,i):r},i}().type(e).size(((e,t,r)=>{if("area"===t)return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var n=18*ke;return 1.25*e*e*(Math.tan(n)-Math.tan(2*n)*Math.tan(n)**2);case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}})(o,u,f)),r=t();if(null!==r)return r})()})):null};Ie.registerSymbol=(e,t)=>{Se["symbol".concat(be(e))]=t};var Me=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,De=(e,r)=>{if(!e||"function"==typeof e||"boolean"==typeof e)return null;var n=e;if((0,t.isValidElement)(e)&&(n=e.props),"object"!=typeof n&&"function"!=typeof n)return null;var i={};return Object.keys(n).forEach(e=>{l(e)&&"function"==typeof n[e]&&(i[e]=r||(t=>n[e](n,t)))}),i},Te=(e,t,r)=>{if(null===e||"object"!=typeof e&&"function"!=typeof e)return null;var n=null;return Object.keys(e).forEach(i=>{var a=e[i];l(i)&&"function"==typeof a&&(n||(n={}),n[i]=((e,t,r)=>n=>(e(t,r,n),null))(a,t,r))}),n};function Ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ne(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _e(e,t){var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(r),!0).forEach(function(t){Ne(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ce(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},e),n=t;return Object.keys(t).reduce((e,t)=>(void 0===e[t]&&void 0!==n[t]&&(e[t]=n[t]),e),r)}function ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ze.apply(null,arguments)}function Re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Le(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(r),!0).forEach(function(t){Ke(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Re(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ke(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Be=32,Fe={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle",labelStyle:{}};function We(e){if("object"==typeof e&&null!==e&&"strokeDasharray"in e)return String(e.strokeDasharray)}function Ue(e){var r=e.data,n=e.iconType,i=e.inactiveColor,a=16,o=Be/6,l=Be/3,u=r.inactive?i:r.color,c=null!=n?n:r.type;if("none"===c)return null;if("plainline"===c)return t.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:We(r.payload),x1:0,y1:a,x2:Be,y2:a,className:"recharts-legend-icon"});if("line"===c)return t.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(a,"h").concat(l,"\n A").concat(o,",").concat(o,",0,1,1,").concat(2*l,",").concat(a,"\n H").concat(Be,"M").concat(2*l,",").concat(a,"\n A").concat(o,",").concat(o,",0,1,1,").concat(l,",").concat(a),className:"recharts-legend-icon"});if("rect"===c)return t.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(4,"h").concat(Be,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(t.isValidElement(r.legendIcon)){var s=Le({},r);return delete s.legendIcon,t.cloneElement(r.legendIcon,s)}return t.createElement(Ie,{fill:u,cx:a,cy:a,size:Be,sizeType:"diameter",type:c})}function Ve(e){var r=e.payload,i=e.iconSize,a=e.layout,o=e.formatter,l=e.inactiveColor,u=e.iconType,c=e.labelStyle,s={x:0,y:0,width:Be,height:Be},f={display:"horizontal"===a?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map((r,a)=>{var p=r.formatter||o,h=n({"recharts-legend-item":!0,["legend-item-".concat(a)]:!0,inactive:r.inactive});if("none"===r.type)return null;var v="object"==typeof c?Le({},c):{};v.color=r.inactive?l:v.color||r.color;var m=p?p(r.value,r,a):r.value;return t.createElement("li",ze({className:h,style:f,key:"legend-item-".concat(a)},Te(e,r,a)),t.createElement(y,{width:i,height:i,viewBox:s,style:d,"aria-label":null==r.value?"legend icon":"".concat(r.value," legend icon")},t.createElement(Ue,{data:r,iconType:u,inactiveColor:l})),t.createElement("span",{className:"recharts-legend-item-text",style:v},m))})}var $e=e=>{var r=_e(e,Fe),n=r.payload,i=r.layout,a=r.align;if(!n||!n.length)return null;var o={padding:0,margin:0,textAlign:"horizontal"===i?a:"left"};return t.createElement("ul",{className:"recharts-default-legend",style:o},t.createElement(Ve,ze({},r,{payload:n})))};function Xe(e){return e}function He(e){return null==e||"object"!=typeof e&&"function"!=typeof e}function qe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Ye(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Ge(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Ze="[object RegExp]",Je="[object String]",Qe="[object Number]",et="[object Boolean]",tt="[object Arguments]",rt="[object Symbol]",nt="[object Date]",it="[object Map]",at="[object Set]",ot="[object Array]",lt="[object ArrayBuffer]",ut="[object Object]",ct="[object DataView]",st="[object Uint8Array]",ft="[object Uint8ClampedArray]",dt="[object Uint16Array]",pt="[object Uint32Array]",ht="[object Int8Array]",vt="[object Int16Array]",yt="[object Int32Array]",mt="[object Float32Array]",gt="[object Float64Array]",bt="object"==typeof globalThis&&globalThis||"object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof a.g&&a.g||function(){return this}();function xt(e){return void 0!==bt.Buffer&&bt.Buffer.isBuffer(e)}function wt(e,t,r,n=new Map,i=void 0){const a=i?.(e,t,r,n);if(void 0!==a)return a;if(He(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){const t=new Array(e.length);n.set(e,t);for(let a=0;a<e.length;a++)t[a]=wt(e[a],a,r,n,i);return Object.hasOwn(e,"index")&&(t.index=e.index),Object.hasOwn(e,"input")&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){const t=new Map;n.set(e,t);for(const[a,o]of e)t.set(a,wt(o,a,r,n,i));return t}if(e instanceof Set){const t=new Set;n.set(e,t);for(const a of e)t.add(wt(a,void 0,r,n,i));return t}if(xt(e))return e.subarray();if(qe(e)){const t=new(Object.getPrototypeOf(e).constructor)(e.length);n.set(e,t);for(let a=0;a<e.length;a++)t[a]=wt(e[a],a,r,n,i);return t}if(e instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return n.set(e,t),Ot(t,e,r,n,i),t}if("undefined"!=typeof File&&e instanceof File){const t=new File([e],e.name,{type:e.type});return n.set(e,t),Ot(t,e,r,n,i),t}if("undefined"!=typeof Blob&&e instanceof Blob){const t=new Blob([e],{type:e.type});return n.set(e,t),Ot(t,e,r,n,i),t}if(e instanceof Error){const t=structuredClone(e);return n.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,Ot(t,e,r,n,i),t}if(e instanceof Boolean){const t=new Boolean(e.valueOf());return n.set(e,t),Ot(t,e,r,n,i),t}if(e instanceof Number){const t=new Number(e.valueOf());return n.set(e,t),Ot(t,e,r,n,i),t}if(e instanceof String){const t=new String(e.valueOf());return n.set(e,t),Ot(t,e,r,n,i),t}if("object"==typeof e&&function(e){switch(Ge(e)){case tt:case ot:case lt:case ct:case et:case nt:case mt:case gt:case ht:case vt:case yt:case it:case Qe:case ut:case Ze:case at:case Je:case rt:case st:case ft:case dt:case pt:return!0;default:return!1}}(e)){const t=Object.create(Object.getPrototypeOf(e));return n.set(e,t),Ot(t,e,r,n,i),t}return e}function Ot(e,t,r=e,n,i){const a=[...Object.keys(t),...Ye(t)];for(let o=0;o<a.length;o++){const l=a[o],u=Object.getOwnPropertyDescriptor(e,l);(null==u||u.writable)&&(e[l]=wt(t[l],l,r,n,i))}}function Et(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function At(e){return null!==e&&("object"==typeof e||"function"==typeof e)}function Pt(e,t,r){return"function"!=typeof r?Pt(e,t,()=>{}):jt(e,t,function e(t,n,i,a,o,l){con