????
Current Path : C:/inetpub/vhost/qlk.nextform.vn/www/wwwroot/static/js/ |
Current File : C:/inetpub/vhost/qlk.nextform.vn/www/wwwroot/static/js/8041.b29d9061.chunk.js |
/*! For license information please see 8041.b29d9061.chunk.js.LICENSE.txt */ (self.webpackChunkgdt=self.webpackChunkgdt||[]).push([[8041],{34207:e=>{"use strict";function t(e,t,o){e instanceof RegExp&&(e=n(e,o)),t instanceof RegExp&&(t=n(t,o));var i=r(e,t,o);return i&&{start:i[0],end:i[1],pre:o.slice(0,i[0]),body:o.slice(i[0]+e.length,i[1]),post:o.slice(i[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,o,i,a,u,c=n.indexOf(e),s=n.indexOf(t,c+1),l=c;if(c>=0&&s>0){if(e===t)return[c,s];for(r=[],i=n.length;l>=0&&!u;)l==c?(r.push(l),c=n.indexOf(e,l+1)):1==r.length?u=[r.pop(),s]:((o=r.pop())<i&&(i=o,a=s),s=n.indexOf(t,l+1)),l=c<s&&c>=0?c:s;r.length&&(u=[i,a])}return u}e.exports=t,t.range=r},44441:function(e,t,n){var r;!function(o){"use strict";var i,a=1e9,u={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},c=!0,s="[DecimalError] ",l=s+"Invalid argument: ",f=s+"Exponent out of range: ",p=Math.floor,h=Math.pow,d=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,y=1e7,v=7,m=9007199254740991,g=p(m/v),b={};function x(e,t){var n,r,o,i,a,u,s,l,f=e.constructor,p=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),c?M(t,p):t;if(s=e.d,l=t.d,a=e.e,o=t.e,s=s.slice(),i=a-o){for(i<0?(r=s,i=-i,u=l.length):(r=l,o=a,u=s.length),i>(u=(a=Math.ceil(p/v))>u?a+1:u+1)&&(i=u,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((u=s.length)-(i=l.length)<0&&(i=u,r=l,l=s,s=r),n=0;i;)n=(s[--i]=s[i]+l[i]+n)/y|0,s[i]%=y;for(n&&(s.unshift(n),++o),u=s.length;0==s[--u];)s.pop();return t.d=s,t.e=o,c?M(t,p):t}function O(e,t,n){if(e!==~~e||e<t||e>n)throw Error(l+e)}function w(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)r=e[t]+"",(n=v-r.length)&&(i+=A(n)),i+=r;a=e[t],(n=v-(r=a+"").length)&&(i+=A(n))}else if(0===a)return"0";for(;a%10===0;)a/=10;return i+a}b.absoluteValue=b.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},b.comparedTo=b.cmp=function(e){var t,n,r,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(t=0,n=(r=i.d.length)<(o=e.d.length)?r:o;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},b.decimalPlaces=b.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*v;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},b.dividedBy=b.div=function(e){return j(this,new this.constructor(e))},b.dividedToIntegerBy=b.idiv=function(e){var t=this.constructor;return M(j(this,new t(e),0,1),t.precision)},b.equals=b.eq=function(e){return!this.cmp(e)},b.exponent=function(){return _(this)},b.greaterThan=b.gt=function(e){return this.cmp(e)>0},b.greaterThanOrEqualTo=b.gte=function(e){return this.cmp(e)>=0},b.isInteger=b.isint=function(){return this.e>this.d.length-2},b.isNegative=b.isneg=function(){return this.s<0},b.isPositive=b.ispos=function(){return this.s>0},b.isZero=function(){return 0===this.s},b.lessThan=b.lt=function(e){return this.cmp(e)<0},b.lessThanOrEqualTo=b.lte=function(e){return this.cmp(e)<1},b.logarithm=b.log=function(e){var t,n=this,r=n.constructor,o=r.precision,a=o+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(i))throw Error(s+"NaN");if(n.s<1)throw Error(s+(n.s?"NaN":"-Infinity"));return n.eq(i)?new r(0):(c=!1,t=j(T(n,a),T(e,a),a),c=!0,M(t,o))},b.minus=b.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?P(t,e):x(t,(e.s=-e.s,e))},b.modulo=b.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(s+"NaN");return n.s?(c=!1,t=j(n,e,0,1).times(e),c=!0,n.minus(t)):M(new r(n),o)},b.naturalExponential=b.exp=function(){return k(this)},b.naturalLogarithm=b.ln=function(){return T(this)},b.negated=b.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},b.plus=b.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?x(t,e):P(t,(e.s=-e.s,e))},b.precision=b.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(l+e);if(t=_(o)+1,n=(r=o.d.length-1)*v+1,r=o.d[r]){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},b.squareRoot=b.sqrt=function(){var e,t,n,r,o,i,a,u=this,l=u.constructor;if(u.s<1){if(!u.s)return new l(0);throw Error(s+"NaN")}for(e=_(u),c=!1,0==(o=Math.sqrt(+u))||o==1/0?(((t=w(u.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=p((e+1)/2)-(e<0||e%2),r=new l(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new l(o.toString()),o=a=(n=l.precision)+3;;)if(r=(i=r).plus(j(u,i,a+2)).times(.5),w(i.d).slice(0,a)===(t=w(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(M(i,n+1,0),i.times(i).eq(u)){r=i;break}}else if("9999"!=t)break;a+=4}return c=!0,M(r,n)},b.times=b.mul=function(e){var t,n,r,o,i,a,u,s,l,f=this,p=f.constructor,h=f.d,d=(e=new p(e)).d;if(!f.s||!e.s)return new p(0);for(e.s*=f.s,n=f.e+e.e,(s=h.length)<(l=d.length)&&(i=h,h=d,d=i,a=s,s=l,l=a),i=[],r=a=s+l;r--;)i.push(0);for(r=l;--r>=0;){for(t=0,o=s+r;o>r;)u=i[o]+d[r]*h[o-r-1]+t,i[o--]=u%y|0,t=u/y|0;i[o]=(i[o]+t)%y|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,c?M(e,p.precision):e},b.toDecimalPlaces=b.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(O(e,0,a),void 0===t?t=r.rounding:O(t,0,8),M(n,e+_(n)+1,t))},b.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=C(r,!0):(O(e,0,a),void 0===t?t=o.rounding:O(t,0,8),n=C(r=M(new o(r),e+1,t),!0,e+1)),n},b.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?C(o):(O(e,0,a),void 0===t?t=i.rounding:O(t,0,8),n=C((r=M(new i(o),e+_(o)+1,t)).abs(),!1,e+_(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},b.toInteger=b.toint=function(){var e=this,t=e.constructor;return M(new t(e),_(e)+1,t.rounding)},b.toNumber=function(){return+this},b.toPower=b.pow=function(e){var t,n,r,o,a,u,l=this,f=l.constructor,h=+(e=new f(e));if(!e.s)return new f(i);if(!(l=new f(l)).s){if(e.s<1)throw Error(s+"Infinity");return l}if(l.eq(i))return l;if(r=f.precision,e.eq(i))return M(l,r);if(u=(t=e.e)>=(n=e.d.length-1),a=l.s,u){if((n=h<0?-h:h)<=m){for(o=new f(i),t=Math.ceil(r/v+4),c=!1;n%2&&N((o=o.times(l)).d,t),0!==(n=p(n/2));)N((l=l.times(l)).d,t);return c=!0,e.s<0?new f(i).div(o):M(o,r)}}else if(a<0)throw Error(s+"NaN");return a=a<0&&1&e.d[Math.max(t,n)]?-1:1,l.s=1,c=!1,o=e.times(T(l,r+12)),c=!0,(o=k(o)).s=a,o},b.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=C(o,(n=_(o))<=i.toExpNeg||n>=i.toExpPos):(O(e,1,a),void 0===t?t=i.rounding:O(t,0,8),r=C(o=M(new i(o),e,t),e<=(n=_(o))||n<=i.toExpNeg,e)),r},b.toSignificantDigits=b.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(O(e,1,a),void 0===t?t=n.rounding:O(t,0,8)),M(new n(this),e,t)},b.toString=b.valueOf=b.val=b.toJSON=function(){var e=this,t=_(e),n=e.constructor;return C(e,t<=n.toExpNeg||t>=n.toExpPos)};var j=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%y|0,r=n/y|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*y+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,i,a){var u,c,l,f,p,h,d,m,g,b,x,O,w,j,k,E,A,T,S=r.constructor,P=r.s==o.s?1:-1,C=r.d,N=o.d;if(!r.s)return new S(r);if(!o.s)throw Error(s+"Division by zero");for(c=r.e-o.e,A=N.length,k=C.length,m=(d=new S(P)).d=[],l=0;N[l]==(C[l]||0);)++l;if(N[l]>(C[l]||0)&&--c,(O=null==i?i=S.precision:a?i+(_(r)-_(o))+1:i)<0)return new S(0);if(O=O/v+2|0,l=0,1==A)for(f=0,N=N[0],O++;(l<k||f)&&O--;l++)w=f*y+(C[l]||0),m[l]=w/N|0,f=w%N|0;else{for((f=y/(N[0]+1)|0)>1&&(N=e(N,f),C=e(C,f),A=N.length,k=C.length),j=A,b=(g=C.slice(0,A)).length;b<A;)g[b++]=0;(T=N.slice()).unshift(0),E=N[0],N[1]>=y/2&&++E;do{f=0,(u=t(N,g,A,b))<0?(x=g[0],A!=b&&(x=x*y+(g[1]||0)),(f=x/E|0)>1?(f>=y&&(f=y-1),1==(u=t(p=e(N,f),g,h=p.length,b=g.length))&&(f--,n(p,A<h?T:N,h))):(0==f&&(u=f=1),p=N.slice()),(h=p.length)<b&&p.unshift(0),n(g,p,b),-1==u&&(u=t(N,g,A,b=g.length))<1&&(f++,n(g,A<b?T:N,b)),b=g.length):0===u&&(f++,g=[0]),m[l++]=f,u&&g[0]?g[b++]=C[j]||0:(g=[C[j]],b=1)}while((j++<k||void 0!==g[0])&&O--)}return m[0]||m.shift(),d.e=c,M(d,a?i+_(d)+1:i)}}();function k(e,t){var n,r,o,a,u,s=0,l=0,p=e.constructor,d=p.precision;if(_(e)>16)throw Error(f+_(e));if(!e.s)return new p(i);for(null==t?(c=!1,u=d):u=t,a=new p(.03125);e.abs().gte(.1);)e=e.times(a),l+=5;for(u+=Math.log(h(2,l))/Math.LN10*2+5|0,n=r=o=new p(i),p.precision=u;;){if(r=M(r.times(e),u),n=n.times(++s),w((a=o.plus(j(r,n,u))).d).slice(0,u)===w(o.d).slice(0,u)){for(;l--;)o=M(o.times(o),u);return p.precision=d,null==t?(c=!0,M(o,d)):o}o=a}}function _(e){for(var t=e.e*v,n=e.d[0];n>=10;n/=10)t++;return t}function E(e,t,n){if(t>e.LN10.sd())throw c=!0,n&&(e.precision=n),Error(s+"LN10 precision limit exceeded");return M(new e(e.LN10),t)}function A(e){for(var t="";e--;)t+="0";return t}function T(e,t){var n,r,o,a,u,l,f,p,h,d=1,y=e,v=y.d,m=y.constructor,g=m.precision;if(y.s<1)throw Error(s+(y.s?"NaN":"-Infinity"));if(y.eq(i))return new m(0);if(null==t?(c=!1,p=g):p=t,y.eq(10))return null==t&&(c=!0),E(m,p);if(p+=10,m.precision=p,r=(n=w(v)).charAt(0),a=_(y),!(Math.abs(a)<15e14))return f=E(m,p+2,g).times(a+""),y=T(new m(r+"."+n.slice(1)),p-10).plus(f),m.precision=g,null==t?(c=!0,M(y,g)):y;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=w((y=y.times(e)).d)).charAt(0),d++;for(a=_(y),r>1?(y=new m("0."+n),a++):y=new m(r+"."+n.slice(1)),l=u=y=j(y.minus(i),y.plus(i),p),h=M(y.times(y),p),o=3;;){if(u=M(u.times(h),p),w((f=l.plus(j(u,new m(o),p))).d).slice(0,p)===w(l.d).slice(0,p))return l=l.times(2),0!==a&&(l=l.plus(E(m,p+2,g).times(a+""))),l=j(l,new m(d),p),m.precision=g,null==t?(c=!0,M(l,g)):l;l=f,o+=2}}function S(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=p(n/v),e.d=[],r=(n+1)%v,n<0&&(r+=v),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=v;r<o;)e.d.push(+t.slice(r,r+=v));t=t.slice(r),r=v-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),c&&(e.e>g||e.e<-g))throw Error(f+n)}else e.s=0,e.e=0,e.d=[0];return e}function M(e,t,n){var r,o,i,a,u,s,l,d,m=e.d;for(a=1,i=m[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=v,o=t,l=m[d=0];else{if((d=Math.ceil((r+1)/v))>=(i=m.length))return e;for(l=i=m[d],a=1;i>=10;i/=10)a++;o=(r%=v)-v+a}if(void 0!==n&&(u=l/(i=h(10,a-o-1))%10|0,s=t<0||void 0!==m[d+1]||l%i,s=n<4?(u||s)&&(0==n||n==(e.s<0?3:2)):u>5||5==u&&(4==n||s||6==n&&(r>0?o>0?l/h(10,a-o):0:m[d-1])%10&1||n==(e.s<0?8:7))),t<1||!m[0])return s?(i=_(e),m.length=1,t=t-i-1,m[0]=h(10,(v-t%v)%v),e.e=p(-t/v)||0):(m.length=1,m[0]=e.e=e.s=0),e;if(0==r?(m.length=d,i=1,d--):(m.length=d+1,i=h(10,v-r),m[d]=o>0?(l/h(10,a-o)%h(10,o)|0)*i:0),s)for(;;){if(0==d){(m[0]+=i)==y&&(m[0]=1,++e.e);break}if(m[d]+=i,m[d]!=y)break;m[d--]=0,i=1}for(r=m.length;0===m[--r];)m.pop();if(c&&(e.e>g||e.e<-g))throw Error(f+_(e));return e}function P(e,t){var n,r,o,i,a,u,s,l,f,p,h=e.constructor,d=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),c?M(t,d):t;if(s=e.d,p=t.d,r=t.e,l=e.e,s=s.slice(),a=l-r){for((f=a<0)?(n=s,a=-a,u=p.length):(n=p,r=l,u=s.length),a>(o=Math.max(Math.ceil(d/v),u)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((f=(o=s.length)<(u=p.length))&&(u=o),o=0;o<u;o++)if(s[o]!=p[o]){f=s[o]<p[o];break}a=0}for(f&&(n=s,s=p,p=n,t.s=-t.s),u=s.length,o=p.length-u;o>0;--o)s[u++]=0;for(o=p.length;o>a;){if(s[--o]<p[o]){for(i=o;i&&0===s[--i];)s[i]=y-1;--s[i],s[o]+=y}s[o]-=p[o]}for(;0===s[--u];)s.pop();for(;0===s[0];s.shift())--r;return s[0]?(t.d=s,t.e=r,c?M(t,d):t):new h(0)}function C(e,t,n){var r,o=_(e),i=w(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+A(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+A(-o-1)+i,n&&(r=n-a)>0&&(i+=A(r))):o>=a?(i+=A(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+A(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=A(r))),e.s<0?"-"+i:i}function N(e,t){if(e.length>t)return e.length=t,!0}function D(e){if(!e||"object"!==typeof e)throw Error(s+"Object expected");var t,n,r,o=["precision",1,a,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if(void 0!==(r=e[n=o[t]])){if(!(p(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(l+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(l+n+": "+r);this[n]=new this(r)}return this}u=function e(t){var n,r,o;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)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(l+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(l+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!d.test(e))throw Error(l+e);S(t,e)}if(i.prototype=b,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=e,i.config=i.set=D,void 0===t&&(t={}),t)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<o.length;)t.hasOwnProperty(r=o[n++])||(t[r]=this[r]);return i.config(t),i}(u),u.default=u.Decimal=u,i=new u(1),void 0===(r=function(){return u}.call(t,n,t,e))||(e.exports=r)}()},28981:e=>{"use strict";var t,n="object"===typeof Reflect?Reflect:null,r=n&&"function"===typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"===typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!==e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"===typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}y(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"===typeof e.on&&y(e,"error",t,n)}(e,o,{once:!0})}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function u(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function s(e,t,n,r){var o,i,a,s;if(u(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"===typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=c(e))>0&&a.length>o&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return e}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=l.bind(r);return o.listener=n,r.wrapFn=o,o}function p(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"===typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):d(o,o.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function d(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function y(e,t,n,r){if("function"===typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!==typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){r.once&&e.removeEventListener(t,o),n(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!==typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var u=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var c=i[e];if(void 0===c)return!1;if("function"===typeof c)r(c,this,t);else{var s=c.length,l=d(c,s);for(n=0;n<s;++n)r(l[n],this,t)}return!0},i.prototype.addListener=function(e,t){return s(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return s(this,e,t,!0)},i.prototype.once=function(e,t){return u(t),this.on(e,f(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,f(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,o,i,a;if(u(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!==typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"===typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return p(this,e,!0)},i.prototype.rawListeners=function(e){return p(this,e,!1)},i.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},i.prototype.listenerCount=h,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},64267:(e,t,n)=>{var r=NaN,o="[object Symbol]",i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,f="object"==typeof self&&self&&self.Object===Object&&self,p=l||f||Function("return this")(),h=Object.prototype.toString,d=Math.max,y=Math.min,v=function(){return p.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==o}(e))return r;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=u.test(e);return n||c.test(e)?s(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,n){var r,o,i,a,u,c,s=0,l=!1,f=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var n=r,i=o;return r=o=void 0,s=t,a=e.apply(i,n)}function b(e){var n=e-c;return void 0===c||n>=t||n<0||f&&e-s>=i}function x(){var e=v();if(b(e))return O(e);u=setTimeout(x,function(e){var n=t-(e-c);return f?y(n,i-(e-s)):n}(e))}function O(e){return u=void 0,p&&r?h(e):(r=o=void 0,a)}function w(){var e=v(),n=b(e);if(r=arguments,o=this,c=e,n){if(void 0===u)return function(e){return s=e,u=setTimeout(x,t),l?h(e):a}(c);if(f)return u=setTimeout(x,t),h(c)}return void 0===u&&(u=setTimeout(x,t)),a}return t=g(t)||0,m(n)&&(l=!!n.leading,i=(f="maxWait"in n)?d(g(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),w.cancel=function(){void 0!==u&&clearTimeout(u),s=0,r=c=o=u=void 0},w.flush=function(){return void 0===u?a:O(v())},w}},43088:(e,t,n)=>{var r="Expected a function",o=NaN,i="[object Symbol]",a=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt,f="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,p="object"==typeof self&&self&&self.Object===Object&&self,h=f||p||Function("return this")(),d=Object.prototype.toString,y=Math.max,v=Math.min,m=function(){return h.Date.now()};function g(e,t,n){var o,i,a,u,c,s,l=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new TypeError(r);function d(t){var n=o,r=i;return o=i=void 0,l=t,u=e.apply(r,n)}function g(e){var n=e-s;return void 0===s||n>=t||n<0||p&&e-l>=a}function O(){var e=m();if(g(e))return w(e);c=setTimeout(O,function(e){var n=t-(e-s);return p?v(n,a-(e-l)):n}(e))}function w(e){return c=void 0,h&&o?d(e):(o=i=void 0,u)}function j(){var e=m(),n=g(e);if(o=arguments,i=this,s=e,n){if(void 0===c)return function(e){return l=e,c=setTimeout(O,t),f?d(e):u}(s);if(p)return c=setTimeout(O,t),d(s)}return void 0===c&&(c=setTimeout(O,t)),u}return t=x(t)||0,b(n)&&(f=!!n.leading,a=(p="maxWait"in n)?y(x(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),j.cancel=function(){void 0!==c&&clearTimeout(c),l=0,o=s=i=c=void 0},j.flush=function(){return void 0===c?u:w(m())},j}function b(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function x(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&d.call(e)==i}(e))return o;if(b(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=b(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=c.test(e);return n||s.test(e)?l(e.slice(2),n?2:8):u.test(e)?o:+e}e.exports=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new TypeError(r);return b(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),g(e,t,{leading:o,maxWait:t,trailing:i})}},22434:(e,t,n)=>{var r=n(20220)(n(14759),"DataView");e.exports=r},1111:(e,t,n)=>{var r=n(76958),o=n(41176),i=n(1787),a=n(92612),u=n(27455);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,e.exports=c},85661:(e,t,n)=>{var r=n(5088),o=n(10150),i=n(7889),a=n(44349),u=n(33077);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,e.exports=c},81465:(e,t,n)=>{var r=n(20220)(n(14759),"Map");e.exports=r},54467:(e,t,n)=>{var r=n(40738),o=n(70708),i=n(26823),a=n(20475),u=n(77859);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,e.exports=c},30202:(e,t,n)=>{var r=n(20220)(n(14759),"Promise");e.exports=r},57887:(e,t,n)=>{var r=n(20220)(n(14759),"Set");e.exports=r},36669:(e,t,n)=>{var r=n(54467),o=n(62274),i=n(69757);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},25535:(e,t,n)=>{var r=n(85661),o=n(44710),i=n(78384),a=n(87379),u=n(80799),c=n(12791);function s(e){var t=this.__data__=new r(e);this.size=t.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=u,s.prototype.set=c,e.exports=s},4635:(e,t,n)=>{var r=n(14759).Symbol;e.exports=r},48246:(e,t,n)=>{var r=n(14759).Uint8Array;e.exports=r},94801:(e,t,n)=>{var r=n(20220)(n(14759),"WeakMap");e.exports=r},65507:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},26675:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}},46860:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},83107:(e,t,n)=>{var r=n(11049);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},23259:e=>{e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},37405:(e,t,n)=>{var r=n(44102),o=n(2197),i=n(12279),a=n(6794),u=n(97059),c=n(71641),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),f=!n&&!l&&a(e),p=!n&&!l&&!f&&c(e),h=n||l||f||p,d=h?r(e.length,String):[],y=d.length;for(var v in e)!t&&!s.call(e,v)||h&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||u(v,y))||d.push(v);return d}},61570:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},87518:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},56010:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},45099:(e,t,n)=>{var r=n(44206);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},10366:(e,t,n)=>{var r=n(88925);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},20927:(e,t,n)=>{var r=n(70423),o=n(73267)(r);e.exports=o},57579:(e,t,n)=>{var r=n(20927);e.exports=function(e,t){var n=!0;return r(e,(function(e,r,o){return n=!!t(e,r,o)})),n}},62057:(e,t,n)=>{var r=n(50184);e.exports=function(e,t,n){for(var o=-1,i=e.length;++o<i;){var a=e[o],u=t(a);if(null!=u&&(void 0===c?u===u&&!r(u):n(u,c)))var c=u,s=a}return s}},40900:(e,t,n)=>{var r=n(20927);e.exports=function(e,t){var n=[];return r(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}},6993:e=>{e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},26810:(e,t,n)=>{var r=n(87518),o=n(97989);e.exports=function e(t,n,i,a,u){var c=-1,s=t.length;for(i||(i=o),u||(u=[]);++c<s;){var l=t[c];n>0&&i(l)?n>1?e(l,n-1,i,a,u):r(u,l):a||(u[u.length]=l)}return u}},93031:(e,t,n)=>{var r=n(45211)();e.exports=r},70423:(e,t,n)=>{var r=n(93031),o=n(65724);e.exports=function(e,t){return e&&r(e,t,o)}},10052:(e,t,n)=>{var r=n(26463),o=n(92535);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},54761:(e,t,n)=>{var r=n(87518),o=n(12279);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},22022:(e,t,n)=>{var r=n(4635),o=n(81581),i=n(65336),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},62033:e=>{e.exports=function(e,t){return e>t}},14591:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},11049:(e,t,n)=>{var r=n(6993),o=n(85381),i=n(97825);e.exports=function(e,t,n){return t===t?i(e,t,n):r(e,o,n)}},96255:(e,t,n)=>{var r=n(36669),o=n(83107),i=n(23259),a=n(61570),u=n(35639),c=n(63445),s=Math.min;e.exports=function(e,t,n){for(var l=n?i:o,f=e[0].length,p=e.length,h=p,d=Array(p),y=1/0,v=[];h--;){var m=e[h];h&&t&&(m=a(m,u(t))),y=s(m.length,y),d[h]=!n&&(t||f>=120&&m.length>=120)?new r(h&&m):void 0}m=e[0];var g=-1,b=d[0];e:for(;++g<f&&v.length<y;){var x=m[g],O=t?t(x):x;if(x=n||0!==x?x:0,!(b?c(b,O):l(v,O,n))){for(h=p;--h;){var w=d[h];if(!(w?c(w,O):l(e[h],O,n)))continue e}b&&b.push(O),v.push(x)}}return v}},73012:(e,t,n)=>{var r=n(22022),o=n(39248);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},1404:(e,t,n)=>{var r=n(92130),o=n(39248);e.exports=function e(t,n,i,a,u){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!==t&&n!==n:r(t,n,i,a,e,u))}},92130:(e,t,n)=>{var r=n(25535),o=n(49757),i=n(21416),a=n(16195),u=n(25531),c=n(12279),s=n(6794),l=n(71641),f="[object Arguments]",p="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,y,v,m){var g=c(e),b=c(t),x=g?p:u(e),O=b?p:u(t),w=(x=x==f?h:x)==h,j=(O=O==f?h:O)==h,k=x==O;if(k&&s(e)){if(!s(t))return!1;g=!0,w=!1}if(k&&!w)return m||(m=new r),g||l(e)?o(e,t,n,y,v,m):i(e,t,x,n,y,v,m);if(!(1&n)){var _=w&&d.call(e,"__wrapped__"),E=j&&d.call(t,"__wrapped__");if(_||E){var A=_?e.value():e,T=E?t.value():t;return m||(m=new r),v(A,T,n,y,m)}}return!!k&&(m||(m=new r),a(e,t,n,y,v,m))}},24489:(e,t,n)=>{var r=n(25535),o=n(1404);e.exports=function(e,t,n,i){var a=n.length,u=a,c=!i;if(null==e)return!u;for(e=Object(e);a--;){var s=n[a];if(c&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<u;){var l=(s=n[a])[0],f=e[l],p=s[1];if(c&&s[2]){if(void 0===f&&!(l in e))return!1}else{var h=new r;if(i)var d=i(f,p,l,e,t,h);if(!(void 0===d?o(p,f,3,i,h):d))return!1}}return!0}},85381:e=>{e.exports=function(e){return e!==e}},57949:(e,t,n)=>{var r=n(93008),o=n(73306),i=n(24567),a=n(29131),u=/^\[object .+?Constructor\]$/,c=Function.prototype,s=Object.prototype,l=c.toString,f=s.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:u).test(a(e))}},38183:(e,t,n)=>{var r=n(22022),o=n(5776),i=n(39248),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},15127:(e,t,n)=>{var r=n(79769),o=n(44104),i=n(69002),a=n(12279),u=n(78857);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):u(e)}},37462:(e,t,n)=>{var r=n(82161),o=n(25112),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},17646:e=>{e.exports=function(e,t){return e<t}},56602:(e,t,n)=>{var r=n(20927),o=n(97840);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}},79769:(e,t,n)=>{var r=n(24489),o=n(13334),i=n(14243);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},44104:(e,t,n)=>{var r=n(1404),o=n(87946),i=n(15321),a=n(65916),u=n(29794),c=n(14243),s=n(92535);e.exports=function(e,t){return a(e)&&u(t)?c(s(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},28245:(e,t,n)=>{var r=n(61570),o=n(10052),i=n(15127),a=n(56602),u=n(67311),c=n(35639),s=n(68152),l=n(69002),f=n(12279);e.exports=function(e,t,n){t=t.length?r(t,(function(e){return f(e)?function(t){return o(t,1===e.length?e[0]:e)}:e})):[l];var p=-1;t=r(t,c(i));var h=a(e,(function(e,n,o){return{criteria:r(t,(function(t){return t(e)})),index:++p,value:e}}));return u(h,(function(e,t){return s(e,t,n)}))}},29343:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},84753:(e,t,n)=>{var r=n(10052);e.exports=function(e){return function(t){return r(t,e)}}},64181:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,o,i){for(var a=-1,u=n(t((r-e)/(o||1)),0),c=Array(u);u--;)c[i?u:++a]=e,e+=o;return c}},80516:(e,t,n)=>{var r=n(69002),o=n(24295),i=n(1043);e.exports=function(e,t){return i(o(e,t,r),e+"")}},65148:(e,t,n)=>{var r=n(96800),o=n(88925),i=n(69002),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},88258:(e,t,n)=>{var r=n(20927);e.exports=function(e,t){var n;return r(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}},67311:e=>{e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},44102:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},91582:(e,t,n)=>{var r=n(4635),o=n(61570),i=n(12279),a=n(50184),u=r?r.prototype:void 0,c=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}},86914:(e,t,n)=>{var r=n(88798),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},35639:e=>{e.exports=function(e){return function(t){return e(t)}}},88183:(e,t,n)=>{var r=n(36669),o=n(83107),i=n(23259),a=n(63445),u=n(3739),c=n(26557);e.exports=function(e,t,n){var s=-1,l=o,f=e.length,p=!0,h=[],d=h;if(n)p=!1,l=i;else if(f>=200){var y=t?null:u(e);if(y)return c(y);p=!1,l=a,d=new r}else d=t?[]:h;e:for(;++s<f;){var v=e[s],m=t?t(v):v;if(v=n||0!==v?v:0,p&&m===m){for(var g=d.length;g--;)if(d[g]===m)continue e;t&&d.push(m),h.push(v)}else l(d,m,n)||(d!==h&&d.push(m),h.push(v))}return h}},63445:e=>{e.exports=function(e,t){return e.has(t)}},77795:(e,t,n)=>{var r=n(53815);e.exports=function(e){return r(e)?e:[]}},26463:(e,t,n)=>{var r=n(12279),o=n(65916),i=n(17044),a=n(54008);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},656:(e,t,n)=>{var r=n(50184);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,i=e===e,a=r(e),u=void 0!==t,c=null===t,s=t===t,l=r(t);if(!c&&!l&&!a&&e>t||a&&u&&s&&!c&&!l||o&&u&&s||!n&&s||!i)return 1;if(!o&&!a&&!l&&e<t||l&&n&&i&&!o&&!a||c&&n&&i||!u&&i||!s)return-1}return 0}},68152:(e,t,n)=>{var r=n(656);e.exports=function(e,t,n){for(var o=-1,i=e.criteria,a=t.criteria,u=i.length,c=n.length;++o<u;){var s=r(i[o],a[o]);if(s)return o>=c?s:s*("desc"==n[o]?-1:1)}return e.index-t.index}},64123:(e,t,n)=>{var r=n(14759)["__core-js_shared__"];e.exports=r},73267:(e,t,n)=>{var r=n(97840);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var i=n.length,a=t?i:-1,u=Object(n);(t?a--:++a<i)&&!1!==o(u[a],a,u););return n}}},45211:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),u=a.length;u--;){var c=a[e?u:++o];if(!1===n(i[c],c,i))break}return t}}},47372:(e,t,n)=>{var r=n(15127),o=n(97840),i=n(65724);e.exports=function(e){return function(t,n,a){var u=Object(t);if(!o(t)){var c=r(n,3);t=i(t),n=function(e){return c(u[e],e,u)}}var s=e(t,n,a);return s>-1?u[c?t[s]:s]:void 0}}},79954:(e,t,n)=>{var r=n(64181),o=n(99042),i=n(314);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?t<n?1:-1:i(a),r(t,n,a,e)}}},3739:(e,t,n)=>{var r=n(57887),o=n(19208),i=n(26557),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},88925:(e,t,n)=>{var r=n(20220),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},49757:(e,t,n)=>{var r=n(36669),o=n(56010),i=n(63445);e.exports=function(e,t,n,a,u,c){var s=1&n,l=e.length,f=t.length;if(l!=f&&!(s&&f>l))return!1;var p=c.get(e),h=c.get(t);if(p&&h)return p==t&&h==e;var d=-1,y=!0,v=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++d<l;){var m=e[d],g=t[d];if(a)var b=s?a(g,m,d,t,e,c):a(m,g,d,e,t,c);if(void 0!==b){if(b)continue;y=!1;break}if(v){if(!o(t,(function(e,t){if(!i(v,t)&&(m===e||u(m,e,n,a,c)))return v.push(t)}))){y=!1;break}}else if(m!==g&&!u(m,g,n,a,c)){y=!1;break}}return c.delete(e),c.delete(t),y}},21416:(e,t,n)=>{var r=n(4635),o=n(48246),i=n(44206),a=n(49757),u=n(90943),c=n(26557),s=r?r.prototype:void 0,l=s?s.valueOf:void 0;e.exports=function(e,t,n,r,s,f,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=u;case"[object Set]":var d=1&r;if(h||(h=c),e.size!=t.size&&!d)return!1;var y=p.get(e);if(y)return y==t;r|=2,p.set(e,t);var v=a(h(e),h(t),r,s,f,p);return p.delete(e),v;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},16195:(e,t,n)=>{var r=n(93660),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,u){var c=1&n,s=r(e),l=s.length;if(l!=r(t).length&&!c)return!1;for(var f=l;f--;){var p=s[f];if(!(c?p in t:o.call(t,p)))return!1}var h=u.get(e),d=u.get(t);if(h&&d)return h==t&&d==e;var y=!0;u.set(e,t),u.set(t,e);for(var v=c;++f<l;){var m=e[p=s[f]],g=t[p];if(i)var b=c?i(g,m,p,t,e,u):i(m,g,p,e,t,u);if(!(void 0===b?m===g||a(m,g,n,i,u):b)){y=!1;break}v||(v="constructor"==p)}if(y&&!v){var x=e.constructor,O=t.constructor;x==O||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof O&&O instanceof O||(y=!1)}return u.delete(e),u.delete(t),y}},16658:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},93660:(e,t,n)=>{var r=n(54761),o=n(98194),i=n(65724);e.exports=function(e){return r(e,i,o)}},77101:(e,t,n)=>{var r=n(94672);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},13334:(e,t,n)=>{var r=n(29794),o=n(65724);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},20220:(e,t,n)=>{var r=n(57949),o=n(98166);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},42253:(e,t,n)=>{var r=n(62621)(Object.getPrototypeOf,Object);e.exports=r},81581:(e,t,n)=>{var r=n(4635),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(c){}var o=a.call(e);return r&&(t?e[u]=n:delete e[u]),o}},98194:(e,t,n)=>{var r=n(46860),o=n(71515),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=u},25531:(e,t,n)=>{var r=n(22434),o=n(81465),i=n(30202),a=n(57887),u=n(94801),c=n(22022),s=n(29131),l="[object Map]",f="[object Promise]",p="[object Set]",h="[object WeakMap]",d="[object DataView]",y=s(r),v=s(o),m=s(i),g=s(a),b=s(u),x=c;(r&&x(new r(new ArrayBuffer(1)))!=d||o&&x(new o)!=l||i&&x(i.resolve())!=f||a&&x(new a)!=p||u&&x(new u)!=h)&&(x=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?s(n):"";if(r)switch(r){case y:return d;case v:return l;case m:return f;case g:return p;case b:return h}return t}),e.exports=x},98166:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},10964:(e,t,n)=>{var r=n(26463),o=n(2197),i=n(12279),a=n(97059),u=n(5776),c=n(92535);e.exports=function(e,t,n){for(var s=-1,l=(t=r(t,e)).length,f=!1;++s<l;){var p=c(t[s]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++s!=l?f:!!(l=null==e?0:e.length)&&u(l)&&a(p,l)&&(i(e)||o(e))}},76958:(e,t,n)=>{var r=n(73616);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},41176:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},1787:(e,t,n)=>{var r=n(73616),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},92612:(e,t,n)=>{var r=n(73616),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},27455:(e,t,n)=>{var r=n(73616);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},97989:(e,t,n)=>{var r=n(4635),o=n(2197),i=n(12279),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},97059:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},99042:(e,t,n)=>{var r=n(44206),o=n(97840),i=n(97059),a=n(24567);e.exports=function(e,t,n){if(!a(n))return!1;var u=typeof t;return!!("number"==u?o(n)&&i(t,n.length):"string"==u&&t in n)&&r(n[t],e)}},65916:(e,t,n)=>{var r=n(12279),o=n(50184),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},94672:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},73306:(e,t,n)=>{var r=n(64123),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},82161:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},29794:(e,t,n)=>{var r=n(24567);e.exports=function(e){return e===e&&!r(e)}},5088:e=>{e.exports=function(){this.__data__=[],this.size=0}},10150:(e,t,n)=>{var r=n(45099),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},7889:(e,t,n)=>{var r=n(45099);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},44349:(e,t,n)=>{var r=n(45099);e.exports=function(e){return r(this.__data__,e)>-1}},33077:(e,t,n)=>{var r=n(45099);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},40738:(e,t,n)=>{var r=n(1111),o=n(85661),i=n(81465);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},70708:(e,t,n)=>{var r=n(77101);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},26823:(e,t,n)=>{var r=n(77101);e.exports=function(e){return r(this,e).get(e)}},20475:(e,t,n)=>{var r=n(77101);e.exports=function(e){return r(this,e).has(e)}},77859:(e,t,n)=>{var r=n(77101);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},90943:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},14243:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},23734:(e,t,n)=>{var r=n(20053);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},73616:(e,t,n)=>{var r=n(20220)(Object,"create");e.exports=r},25112:(e,t,n)=>{var r=n(62621)(Object.keys,Object);e.exports=r},82479:(e,t,n)=>{e=n.nmd(e);var r=n(16658),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,u=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=u},65336:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},62621:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},24295:(e,t,n)=>{var r=n(65507),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,u=o(i.length-t,0),c=Array(u);++a<u;)c[a]=i[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=i[a];return s[t]=n(c),r(e,this,s)}}},14759:(e,t,n)=>{var r=n(16658),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},62274:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},69757:e=>{e.exports=function(e){return this.__data__.has(e)}},26557:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},1043:(e,t,n)=>{var r=n(65148),o=n(42929)(r);e.exports=o},42929:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},44710:(e,t,n)=>{var r=n(85661);e.exports=function(){this.__data__=new r,this.size=0}},78384:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},87379:e=>{e.exports=function(e){return this.__data__.get(e)}},80799:e=>{e.exports=function(e){return this.__data__.has(e)}},12791:(e,t,n)=>{var r=n(85661),o=n(81465),i=n(54467);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},97825:e=>{e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},17044:(e,t,n)=>{var r=n(23734),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},92535:(e,t,n)=>{var r=n(50184);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},29131:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},88798:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},96800:e=>{e.exports=function(e){return function(){return e}}},95491:(e,t,n)=>{var r=n(24567),o=n(34378),i=n(72588),a=Math.max,u=Math.min;e.exports=function(e,t,n){var c,s,l,f,p,h,d=0,y=!1,v=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=c,r=s;return c=s=void 0,d=t,f=e.apply(r,n)}function b(e){var n=e-h;return void 0===h||n>=t||n<0||v&&e-d>=l}function x(){var e=o();if(b(e))return O(e);p=setTimeout(x,function(e){var n=t-(e-h);return v?u(n,l-(e-d)):n}(e))}function O(e){return p=void 0,m&&c?g(e):(c=s=void 0,f)}function w(){var e=o(),n=b(e);if(c=arguments,s=this,h=e,n){if(void 0===p)return function(e){return d=e,p=setTimeout(x,t),y?g(e):f}(h);if(v)return clearTimeout(p),p=setTimeout(x,t),g(h)}return void 0===p&&(p=setTimeout(x,t)),f}return t=i(t)||0,r(n)&&(y=!!n.leading,l=(v="maxWait"in n)?a(i(n.maxWait)||0,t):l,m="trailing"in n?!!n.trailing:m),w.cancel=function(){void 0!==p&&clearTimeout(p),d=0,c=h=s=p=void 0},w.flush=function(){return void 0===p?f:O(o())},w}},44206:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},38829:(e,t,n)=>{var r=n(26675),o=n(57579),i=n(15127),a=n(12279),u=n(99042);e.exports=function(e,t,n){var c=a(e)?r:o;return n&&u(e,t,n)&&(t=void 0),c(e,i(t,3))}},13386:(e,t,n)=>{var r=n(46860),o=n(40900),i=n(15127),a=n(12279);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},75915:(e,t,n)=>{var r=n(47372)(n(5695));e.exports=r},5695:(e,t,n)=>{var r=n(6993),o=n(15127),i=n(25171),a=Math.max;e.exports=function(e,t,n){var u=null==e?0:e.length;if(!u)return-1;var c=null==n?0:i(n);return c<0&&(c=a(u+c,0)),r(e,o(t,3),c)}},79113:(e,t,n)=>{var r=n(26810),o=n(55876);e.exports=function(e,t){return r(o(e,t),1)}},87946:(e,t,n)=>{var r=n(10052);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},15321:(e,t,n)=>{var r=n(14591),o=n(10964);e.exports=function(e,t){return null!=e&&o(e,t,r)}},69002:e=>{e.exports=function(e){return e}},92437:(e,t,n)=>{var r=n(61570),o=n(96255),i=n(80516),a=n(77795),u=i((function(e){var t=r(e,a);return t.length&&t[0]===e[0]?o(t):[]}));e.exports=u},2197:(e,t,n)=>{var r=n(73012),o=n(39248),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!u.call(e,"callee")};e.exports=c},12279:e=>{var t=Array.isArray;e.exports=t},97840:(e,t,n)=>{var r=n(93008),o=n(5776);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},53815:(e,t,n)=>{var r=n(97840),o=n(39248);e.exports=function(e){return o(e)&&r(e)}},6794:(e,t,n)=>{e=n.nmd(e);var r=n(14759),o=n(63721),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,u=a&&a.exports===i?r.Buffer:void 0,c=(u?u.isBuffer:void 0)||o;e.exports=c},59418:(e,t,n)=>{var r=n(1404);e.exports=function(e,t){return r(e,t)}},93008:(e,t,n)=>{var r=n(22022),o=n(24567);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5776:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},21099:(e,t,n)=>{var r=n(29853);e.exports=function(e){return r(e)&&e!=+e}},40821:e=>{e.exports=function(e){return null==e}},29853:(e,t,n)=>{var r=n(22022),o=n(39248);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)}},24567:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},39248:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},75461:(e,t,n)=>{var r=n(22022),o=n(42253),i=n(39248),a=Function.prototype,u=Object.prototype,c=a.toString,s=u.hasOwnProperty,l=c.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=s.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==l}},56801:(e,t,n)=>{var r=n(22022),o=n(12279),i=n(39248);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},50184:(e,t,n)=>{var r=n(22022),o=n(39248);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},71641:(e,t,n)=>{var r=n(38183),o=n(35639),i=n(82479),a=i&&i.isTypedArray,u=a?o(a):r;e.exports=u},65724:(e,t,n)=>{var r=n(37405),o=n(37462),i=n(97840);e.exports=function(e){return i(e)?r(e):o(e)}},47988:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},55876:(e,t,n)=>{var r=n(61570),o=n(15127),i=n(56602),a=n(12279);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},6638:(e,t,n)=>{var r=n(10366),o=n(70423),i=n(15127);e.exports=function(e,t){var n={};return t=i(t,3),o(e,(function(e,o,i){r(n,o,t(e,o,i))})),n}},62780:(e,t,n)=>{var r=n(62057),o=n(62033),i=n(69002);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},21885:(e,t,n)=>{var r=n(62057),o=n(62033),i=n(15127);e.exports=function(e,t){return e&&e.length?r(e,i(t,2),o):void 0}},20053:(e,t,n)=>{var r=n(54467);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},47282:(e,t,n)=>{var r=n(62057),o=n(17646),i=n(69002);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},68583:(e,t,n)=>{var r=n(62057),o=n(15127),i=n(17646);e.exports=function(e,t){return e&&e.length?r(e,o(t,2),i):void 0}},19208:e=>{e.exports=function(){}},34378:(e,t,n)=>{var r=n(14759);e.exports=function(){return r.Date.now()}},78857:(e,t,n)=>{var r=n(29343),o=n(84753),i=n(65916),a=n(92535);e.exports=function(e){return i(e)?r(a(e)):o(e)}},39939:(e,t,n)=>{var r=n(79954)();e.exports=r},11032:(e,t,n)=>{var r=n(56010),o=n(15127),i=n(88258),a=n(12279),u=n(99042);e.exports=function(e,t,n){var c=a(e)?r:i;return n&&u(e,t,n)&&(t=void 0),c(e,o(t,3))}},21261:(e,t,n)=>{var r=n(26810),o=n(28245),i=n(80516),a=n(99042),u=i((function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])}));e.exports=u},71515:e=>{e.exports=function(){return[]}},63721:e=>{e.exports=function(){return!1}},80492:(e,t,n)=>{var r=n(95491),o=n(24567);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},314:(e,t,n)=>{var r=n(72588),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},25171:(e,t,n)=>{var r=n(314);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},72588:(e,t,n)=>{var r=n(86914),o=n(24567),i=n(50184),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=u.test(e);return n||c.test(e)?s(e.slice(2),n?2:8):a.test(e)?NaN:+e}},54008:(e,t,n)=>{var r=n(91582);e.exports=function(e){return null==e?"":r(e)}},35420:(e,t,n)=>{var r=n(15127),o=n(88183);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},67035:(e,t,n)=>{var r=n(82476);r.prototype.formulaEval=function(){"use strict";for(var e,t,n,r=[],o=this.value,i=0;i<o.length;i++)1===o[i].type||3===o[i].type?r.push({value:3===o[i].type?o[i].show:o[i].value,type:1}):13===o[i].type?r.push({value:o[i].show,type:1}):0===o[i].type?r[r.length-1]={value:o[i].show+("-"!=o[i].show?"(":"")+r[r.length-1].value+("-"!=o[i].show?")":""),type:0}:7===o[i].type?r[r.length-1]={value:(1!=r[r.length-1].type?"(":"")+r[r.length-1].value+(1!=r[r.length-1].type?")":"")+o[i].show,type:7}:10===o[i].type?(e=r.pop(),t=r.pop(),"P"===o[i].show||"C"===o[i].show?r.push({value:"<sup>"+t.value+"</sup>"+o[i].show+"<sub>"+e.value+"</sub>",type:10}):r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+"<sup>"+e.value+"</sup>",type:1})):2===o[i].type||9===o[i].type?(e=r.pop(),t=r.pop(),r.push({value:(1!=t.type?"(":"")+t.value+(1!=t.type?")":"")+o[i].show+(1!=e.type?"(":"")+e.value+(1!=e.type?")":""),type:o[i].type})):12===o[i].type&&(e=r.pop(),t=r.pop(),n=r.pop(),r.push({value:o[i].show+"("+n.value+","+t.value+","+e.value+")",type:12}));return r[0].value},e.exports=r},87509:(e,t,n)=>{"use strict";var r=n(65584);function o(e,t){for(var n=0;n<e.length;n++)e[n]+=t;return e}for(var i=[{token:"sin",show:"sin",type:0,value:r.math.sin},{token:"cos",show:"cos",type:0,value:r.math.cos},{token:"tan",show:"tan",type:0,value:r.math.tan},{token:"pi",show:"π",type:3,value:"PI"},{token:"(",show:"(",type:4,value:"("},{token:")",show:")",type:5,value:")"},{token:"P",show:"P",type:10,value:r.math.P},{token:"C",show:"C",type:10,value:r.math.C},{token:" ",show:" ",type:14,value:" ".anchor},{token:"asin",show:"asin",type:0,value:r.math.asin},{token:"acos",show:"acos",type:0,value:r.math.acos},{token:"atan",show:"atan",type:0,value:r.math.atan},{token:"7",show:"7",type:1,value:"7"},{token:"8",show:"8",type:1,value:"8"},{token:"9",show:"9",type:1,value:"9"},{token:"int",show:"Int",type:0,value:Math.floor},{token:"cosh",show:"cosh",type:0,value:r.math.cosh},{token:"acosh",show:"acosh",type:0,value:r.math.acosh},{token:"ln",show:" ln",type:0,value:Math.log},{token:"^",show:"^",type:10,value:Math.pow},{token:"root",show:"root",type:0,value:Math.sqrt},{token:"4",show:"4",type:1,value:"4"},{token:"5",show:"5",type:1,value:"5"},{token:"6",show:"6",type:1,value:"6"},{token:"/",show:"÷",type:2,value:r.math.div},{token:"!",show:"!",type:7,value:r.math.fact},{token:"tanh",show:"tanh",type:0,value:r.math.tanh},{token:"atanh",show:"atanh",type:0,value:r.math.atanh},{token:"Mod",show:" Mod ",type:2,value:r.math.mod},{token:"1",show:"1",type:1,value:"1"},{token:"2",show:"2",type:1,value:"2"},{token:"3",show:"3",type:1,value:"3"},{token:"*",show:"×",type:2,value:r.math.mul},{token:"sinh",show:"sinh",type:0,value:r.math.sinh},{token:"asinh",show:"asinh",type:0,value:r.math.asinh},{token:"e",show:"e",type:3,value:"E"},{token:"log",show:" log",type:0,value:r.math.log},{token:"0",show:"0",type:1,value:"0"},{token:".",show:".",type:6,value:"."},{token:"+",show:"+",type:9,value:r.math.add},{token:"-",show:"-",type:9,value:r.math.sub},{token:",",show:",",type:11,value:","},{token:"Sigma",show:"Σ",type:12,value:r.math.sigma},{token:"n",show:"n",type:13,value:"n"},{token:"Pi",show:"Π",type:12,value:r.math.Pi},{token:"pow",show:"pow",type:8,value:Math.pow,numberOfArguments:2},{token:"&",show:"&",type:9,value:r.math.and}],a={0:11,1:0,2:3,3:0,4:0,5:0,6:0,7:11,8:11,9:1,10:10,11:0,12:11,13:0,14:-1,15:11},u=0;u<i.length;u++)i[u].precedence=a[i[u].type];var c={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,9:!0,12:!0,13:!0,14:!0,15:!0},s={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0,10:!0,11:!0,12:!0,13:!0,15:!0},l={0:!0,3:!0,4:!0,8:!0,12:!0,13:!0,15:!0},f={},p={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,12:!0,13:!0,15:!0},h={1:!0},d=[[],["1","2","3","7","8","9","4","5","6","+","-","*","/","(",")","^","!","P","C","e","0",".",",","n"," ","&"],["pi","ln","Pi"],["sin","cos","tan","Del","int","Mod","log","pow"],["asin","acos","atan","cosh","root","tanh","sinh"],["acosh","atanh","asinh","Sigma"]];function y(e,t,n,r){for(var o=0;o<r;o++)if(e[n+o]!==t[o])return!1;return!0}function v(e,t){for(var n=0;n<t.length;n++)if(t[n].token===e)return n;return-1}function m(e){for(var t,n,o,a=[],u=e.length,c=0;c<u;c++)if(!(c<u-1&&" "===e[c]&&" "===e[c+1])){for(t="",n=e.length-c>d.length-2?d.length-1:e.length-c;n>0;n--)if(void 0!==d[n])for(o=0;o<d[n].length;o++)y(e,d[n][o],c,n)&&(t=d[n][o],o=d[n].length,n=0);if(c+=t.length-1,""===t)throw new r.Exception("Can't understand after "+e.slice(c));a.push(i[v(t,i)])}return a}r.tokenTypes={FUNCTION_WITH_ONE_ARG:0,NUMBER:1,BINARY_OPERATOR_HIGH_PRECENDENCE:2,CONSTANT:3,OPENING_PARENTHESIS:4,CLOSING_PARENTHESIS:5,DECIMAL:6,POSTFIX_FUNCTION_WITH_ONE_ARG:7,FUNCTION_WITH_N_ARGS:8,BINARY_OPERATOR_LOW_PRECENDENCE:9,BINARY_OPERATOR_PERMUTATION:10,COMMA:11,EVALUATED_FUNCTION:12,EVALUATED_FUNCTION_PARAMETER:13,SPACE:14},r.addToken=function(e){for(var t=0;t<e.length;t++){var n=e[t].token.length,o=-1;e[t].type===r.tokenTypes.FUNCTION_WITH_N_ARGS&&void 0===e[t].numberOfArguments&&(e[t].numberOfArguments=2),d[n]=d[n]||[];for(var u=0;u<d[n].length;u++)if(e[t].token===d[n][u]){o=v(d[n][u],i);break}-1===o?(i.push(e[t]),e[t].precedence=a[e[t].type],d.length<=e[t].token.length&&(d[e[t].token.length]=[]),d[e[t].token.length].push(e[t].token)):(i[o]=e[t],e[t].precedence=a[e[t].type])}};var g={value:r.math.changeSign,type:0,pre:21,show:"-"},b={value:")",show:")",type:5,pre:0},x={value:"(",type:4,pre:0,show:"("};r.lex=function(e,t){var n,i=[x],a=[],u=e,d=c,y=0,v=f,O="";"undefined"!==typeof t&&r.addToken(t);var w={},j=m(u);for(n=0;n<j.length;n++){var k=j[n];if(14!==k.type){var _,E=k.token,A=k.type,T=k.value,S=k.precedence,M=k.show,P=i[i.length-1];for(_=a.length;_--&&0===a[_];)if(-1!==[0,2,3,4,5,9,11,12,13].indexOf(A)){if(!0!==d[A])throw new r.Exception(E+" is not allowed after "+O);i.push(b),d=s,v=p,a.pop()}if(!0!==d[A])throw new r.Exception(E+" is not allowed after "+O);if(!0===v[A]&&(A=2,T=r.math.mul,M="×",S=3,n-=1),w={value:T,type:A,pre:S,show:M,numberOfArguments:k.numberOfArguments},0===A)d=c,v=f,o(a,2),i.push(w),4!==j[n+1].type&&(i.push(x),a.push(2));else if(1===A)1===P.type?(P.value+=T,o(a,1)):i.push(w),d=s,v=l;else if(2===A)d=c,v=f,o(a,2),i.push(w);else if(3===A)i.push(w),d=s,v=p;else if(4===A)o(a,1),y++,d=c,v=f,i.push(w);else if(5===A){if(!y)throw new r.Exception("Closing parenthesis are more than opening one, wait What!!!");y--,d=s,v=p,i.push(w),o(a,1)}else if(6===A){if(P.hasDec)throw new r.Exception("Two decimals are not allowed in one number");1!==P.type&&(P={value:0,type:1,pre:0},i.push(P)),d=h,o(a,1),v=f,P.value+=T,P.hasDec=!0}else 7===A&&(d=s,v=p,o(a,1),i.push(w));8===A?(d=c,v=f,o(a,k.numberOfArguments+2),i.push(w),4!==j[n+1].type&&(i.push(x),a.push(k.numberOfArguments+2))):9===A?(9===P.type?P.value===r.math.add?(P.value=T,P.show=M,o(a,1)):P.value===r.math.sub&&"-"===M&&(P.value=r.math.add,P.show="+",o(a,1)):5!==P.type&&7!==P.type&&1!==P.type&&3!==P.type&&13!==P.type?"-"===E&&(d=c,v=f,o(a,2).push(2),i.push(g),i.push(x)):(i.push(w),o(a,2)),d=c,v=f):10===A?(d=c,v=f,o(a,2),i.push(w)):11===A?(d=c,v=f,i.push(w)):12===A?(d=c,v=f,o(a,6),i.push(w),4!==j[n+1].type&&(i.push(x),a.push(6))):13===A&&(d=s,v=p,i.push(w)),o(a,-1),O=E}else if(n>0&&n<j.length-1&&1===j[n+1].type&&(1===j[n-1].type||6===j[n-1].type))throw new r.Exception("Unexpected Space")}for(_=a.length;_--;)i.push(b);if(!0!==d[5])throw new r.Exception("complete the expression");for(;y--;)i.push(b);return i.push(b),new r(i)},e.exports=r},65584:e=>{"use strict";var t=function(e){this.value=e};t.math={isDegree:!0,acos:function(e){return t.math.isDegree?180/Math.PI*Math.acos(e):Math.acos(e)},add:function(e,t){return e+t},asin:function(e){return t.math.isDegree?180/Math.PI*Math.asin(e):Math.asin(e)},atan:function(e){return t.math.isDegree?180/Math.PI*Math.atan(e):Math.atan(e)},acosh:function(e){return Math.log(e+Math.sqrt(e*e-1))},asinh:function(e){return Math.log(e+Math.sqrt(e*e+1))},atanh:function(e){return Math.log((1+e)/(1-e))},C:function(e,n){var r=1,o=e-n,i=n;i<o&&(i=o,o=n);for(var a=i+1;a<=e;a++)r*=a;return r/t.math.fact(o)},changeSign:function(e){return-e},cos:function(e){return t.math.isDegree&&(e=t.math.toRadian(e)),Math.cos(e)},cosh:function(e){return(Math.pow(Math.E,e)+Math.pow(Math.E,-1*e))/2},div:function(e,t){return e/t},fact:function(e){if(e%1!==0)return"NaN";for(var t=1,n=2;n<=e;n++)t*=n;return t},inverse:function(e){return 1/e},log:function(e){return Math.log(e)/Math.log(10)},mod:function(e,t){return e%t},mul:function(e,t){return e*t},P:function(e,t){for(var n=1,r=Math.floor(e)-Math.floor(t)+1;r<=Math.floor(e);r++)n*=r;return n},Pi:function(e,t,n){for(var r=1,o=e;o<=t;o++)r*=Number(n.postfixEval({n:o}));return r},pow10x:function(e){for(var t=1;e--;)t*=10;return t},sigma:function(e,t,n){for(var r=0,o=e;o<=t;o++)r+=Number(n.postfixEval({n:o}));return r},sin:function(e){return t.math.isDegree&&(e=t.math.toRadian(e)),Math.sin(e)},sinh:function(e){return(Math.pow(Math.E,e)-Math.pow(Math.E,-1*e))/2},sub:function(e,t){return e-t},tan:function(e){return t.math.isDegree&&(e=t.math.toRadian(e)),Math.tan(e)},tanh:function(e){return t.sinha(e)/t.cosha(e)},toRadian:function(e){return e*Math.PI/180},and:function(e,t){return e&t}},t.Exception=function(e){this.message=e},e.exports=t},69958:(e,t,n)=>{var r=n(87509);r.prototype.toPostfix=function(){"use strict";for(var e,t,n,o,i,a=[],u=[{value:"(",type:4,pre:0}],c=this.value,s=1;s<c.length;s++)if(1===c[s].type||3===c[s].type||13===c[s].type)1===c[s].type&&(c[s].value=Number(c[s].value)),a.push(c[s]);else if(4===c[s].type)u.push(c[s]);else if(5===c[s].type)for(;4!==(t=u.pop()).type;)a.push(t);else if(11===c[s].type){for(;4!==(t=u.pop()).type;)a.push(t);u.push(t)}else{o=(e=c[s]).pre,n=(i=u[u.length-1]).pre;var l="Math.pow"==i.value&&"Math.pow"==e.value;if(o>n)u.push(e);else{for(;n>=o&&!l||l&&o<n;)t=u.pop(),i=u[u.length-1],a.push(t),n=i.pre,l="Math.pow"==e.value&&"Math.pow"==i.value;u.push(e)}}return new r(a)},e.exports=r},82476:(e,t,n)=>{var r=n(69958);r.prototype.postfixEval=function(e){"use strict";(e=e||{}).PI=Math.PI,e.E=Math.E;for(var t,n,o,i=[],a=this.value,u="undefined"!==typeof e.n,c=0;c<a.length;c++)if(1===a[c].type)i.push({value:a[c].value,type:1});else if(3===a[c].type)i.push({value:e[a[c].value],type:1});else if(0===a[c].type)"undefined"===typeof i[i.length-1].type?i[i.length-1].value.push(a[c]):i[i.length-1].value=a[c].value(i[i.length-1].value);else if(7===a[c].type)"undefined"===typeof i[i.length-1].type?i[i.length-1].value.push(a[c]):i[i.length-1].value=a[c].value(i[i.length-1].value);else if(8===a[c].type){for(var s=[],l=0;l<a[c].numberOfArguments;l++)s.push(i.pop().value);i.push({type:1,value:a[c].value.apply(a[c],s.reverse())})}else 10===a[c].type?(t=i.pop(),"undefined"===typeof(n=i.pop()).type?(n.value=n.concat(t),n.value.push(a[c]),i.push(n)):"undefined"===typeof t.type?(t.unshift(n),t.push(a[c]),i.push(t)):i.push({type:1,value:a[c].value(n.value,t.value)})):2===a[c].type||9===a[c].type?(t=i.pop(),"undefined"===typeof(n=i.pop()).type?((n=n.concat(t)).push(a[c]),i.push(n)):"undefined"===typeof t.type?(t.unshift(n),t.push(a[c]),i.push(t)):i.push({type:1,value:a[c].value(n.value,t.value)})):12===a[c].type?("undefined"!==typeof(t=i.pop()).type&&(t=[t]),n=i.pop(),o=i.pop(),i.push({type:1,value:a[c].value(o.value,n.value,new r(t))})):13===a[c].type&&(u?i.push({value:e[a[c].value],type:3}):i.push([a[c]]));if(i.length>1)throw new r.Exception("Uncaught Syntax error");return i[0].value>1e15?"Infinity":parseFloat(i[0].value.toFixed(15))},r.eval=function(e,t,n){return"undefined"===typeof t?this.lex(e).toPostfix().postfixEval():"undefined"===typeof n?"undefined"!==typeof t.length?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t):this.lex(e,t).toPostfix().postfixEval(n)},e.exports=r},94721:function(e){(function(){var t,n,r,o,i,a;"undefined"!==typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!==typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-i)/1e6},n=process.hrtime,o=(t=function(){var e;return 1e9*(e=n())[0]+e[1]})(),a=1e9*process.uptime(),i=o-a):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)},81700:(e,t,n)=>{for(var r=n(94721),o="undefined"===typeof window?n.g:window,i=["moz","webkit"],a="AnimationFrame",u=o["request"+a],c=o["cancel"+a]||o["cancelRequest"+a],s=0;!u&&s<i.length;s++)u=o[i[s]+"Request"+a],c=o[i[s]+"Cancel"+a]||o[i[s]+"CancelRequest"+a];if(!u||!c){var l=0,f=0,p=[];u=function(e){if(0===p.length){var t=r(),n=Math.max(0,16.666666666666668-(t-l));l=n+t,setTimeout((function(){var e=p.slice(0);p.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(l)}catch(n){setTimeout((function(){throw n}),0)}}),Math.round(n))}return p.push({handle:++f,callback:e,cancelled:!1}),f},c=function(e){for(var t=0;t<p.length;t++)p[t].handle===e&&(p[t].cancelled=!0)}}e.exports=function(e){return u.call(o,e)},e.exports.cancel=function(){c.apply(o,arguments)},e.exports.polyfill=function(e){e||(e=o),e.requestAnimationFrame=u,e.cancelAnimationFrame=c}},5338:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(58168),o=n(77387),i=n(9417),a=n(64467),u=n(9950),c=n(2241),s=n.n(c),l=n(71832),f=n(32602),p=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,(0,a.A)((0,i.A)((0,i.A)(t)),"refHandler",(function(e){(0,f.cZ)(t.props.innerRef,e),(0,f.oV)(t.props.setReferenceNode,e)})),t}(0,o.A)(t,e);var n=t.prototype;return n.componentWillUnmount=function(){(0,f.cZ)(this.props.innerRef,null)},n.render=function(){return s()(Boolean(this.props.setReferenceNode),"`Reference` should not be used outside of a `Manager` component."),(0,f.vq)(this.props.children)({ref:this.refHandler})},t}(u.Component);function h(e){return u.createElement(l.$$.Consumer,null,(function(t){return u.createElement(p,(0,r.A)({setReferenceNode:t},e))}))}},26825:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(9950),i=l(o),a=l(n(11942)),u=l(n(30853)),c=l(n(64267)),s=l(n(43088));function l(e){return e&&e.__esModule?e:{default:e}}var f={debounce:c.default,throttle:s.default},p={position:"absolute",width:0,height:0,visibility:"hidden",display:"none"},h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.createResizeObserver=function(e){var t=n.props,r=t.handleWidth,o=t.handleHeight,i=t.onResize;e.forEach((function(e){var t=e.contentRect,a=t.width,u=t.height,c=r&&n.width!==a,s=o&&n.height!==u;n.skipOnMount||!c&&!s||i(a,u),n.width=a,n.height=u,n.skipOnMount=!1}))};var r=e.skipOnMount,o=e.refreshMode,i=e.refreshRate;n.width=void 0,n.height=void 0,n.skipOnMount=r;var a=f[o]&&f[o](n.createResizeObserver,i)||n.createResizeObserver;return n.ro=new u.default(a),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){var e=this.props.resizableElementId,t=e?document.getElementById(e):this.el.parentElement;this.ro.observe(t)}},{key:"componentWillUnmount",value:function(){var e=this.props.resizableElementId,t=e?document.getElementById(e):this.el.parentElement;this.ro.unobserve(t)}},{key:"render",value:function(){var e=this;return i.default.createElement("div",{style:p,ref:function(t){e.el=t}})}}]),t}(o.PureComponent);t.default=h,h.propTypes={handleWidth:a.default.bool,handleHeight:a.default.bool,skipOnMount:a.default.bool,refreshRate:a.default.number,refreshMode:a.default.string,resizableElementId:a.default.string,onResize:a.default.func},h.defaultProps={handleWidth:!1,handleHeight:!1,skipOnMount:!1,refreshRate:1e3,refreshMode:void 0,resizableElementId:"",onResize:function(e){return e}}},72962:(e,t,n)=>{"use strict";var r,o=n(26825),i=(r=o)&&r.__esModule?r:{default:r};t.A=i.default},18465:(e,t,n)=>{"use strict";var r=n(24994);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,o.default)(e,t)||("string"===typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var o=r(n(8235));e.exports=t.default},8235:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},18650:e=>{"use strict";function t(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,n){e.classList?e.classList.remove(n):"string"===typeof e.className?e.className=t(e.className,n):e.setAttribute("class",t(e.className&&e.className.baseVal||"",n))}},49368:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=void 0;!function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}t.default=e}(n(11942));var r=u(n(18465)),o=u(n(18650)),i=u(n(9950)),a=u(n(77293));n(8484);function u(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}var s=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,r.default)(e,t)}))},l=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,o.default)(e,t)}))},f=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).onEnter=function(e,n){var r=t.getClassNames(n?"appear":"enter").className;t.removeClasses(e,"exit"),s(e,r),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.getClassNames(n?"appear":"enter").activeClassName;t.reflowAndAddClass(e,r),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.getClassNames("appear").doneClassName,o=t.getClassNames("enter").doneClassName,i=n?r+" "+o:o;t.removeClasses(e,n?"appear":"enter"),s(e,i),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.getClassNames("exit").className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),s(e,n),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.getClassNames("exit").activeClassName;t.reflowAndAddClass(e,n),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.getClassNames("exit").doneClassName;t.removeClasses(e,"exit"),s(e,n),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,r="string"===typeof n,o=r?(r&&n?n+"-":"")+e:n[e];return{className:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.removeClasses=function(e,t){var n=this.getClassNames(t),r=n.className,o=n.activeClassName,i=n.doneClassName;r&&l(e,r),o&&l(e,o),i&&l(e,i)},o.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,s(e,t))},o.render=function(){var e=c({},this.props);return delete e.classNames,i.default.createElement(a.default,c({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},r}(i.default.Component);f.defaultProps={classNames:""},f.propTypes={};var p=f;t.default=p,e.exports=t.default},68235:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=void 0;a(n(11942));var r=a(n(9950)),o=n(17119),i=a(n(83470));function a(e){return e&&e.__esModule?e:{default:e}}var u=function(e){var t,n;function a(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var u=a.prototype;return u.handleLifecycle=function(e,t,n){var i,a=this.props.children,u=r.default.Children.toArray(a)[t];u.props[e]&&(i=u.props)[e].apply(i,n),this.props[e]&&this.props[e]((0,o.findDOMNode)(this))},u.render=function(){var e=this.props,t=e.children,n=e.in,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["children","in"]),a=r.default.Children.toArray(t),u=a[0],c=a[1];return delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,r.default.createElement(i.default,o,n?r.default.cloneElement(u,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(c,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(r.default.Component);u.propTypes={};var c=u;t.default=c,e.exports=t.default},77293:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(11942)),o=u(n(9950)),i=u(n(17119)),a=n(4899);n(8484);function u(e){return e&&e.__esModule?e:{default:e}}var c="unmounted";t.UNMOUNTED=c;var s="exited";t.EXITED=s;var l="entering";t.ENTERING=l;var f="entered";t.ENTERED=f;var p="exiting";t.EXITING=p;var h=function(e){var t,n;function r(t,n){var r;r=e.call(this,t,n)||this;var o,i=n.transitionGroup,a=i&&!i.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=s,r.appearStatus=l):o=f:o=t.unmountOnExit||t.mountOnEnter?c:s,r.state={status:o},r.nextCallback=null,r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=r.prototype;return a.getChildContext=function(){return{transitionGroup:null}},r.getDerivedStateFromProps=function(e,t){return e.in&&t.status===c?{status:s}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==l&&n!==f&&(t=l):n!==l&&n!==f||(t=p)}this.updateStatus(!1,t)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},a.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=i.default.findDOMNode(this);t===l?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===s&&this.setState({status:c})},a.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,i=this.getTimeouts(),a=o?i.appear:i.enter;t||r?(this.props.onEnter(e,o),this.safeSetState({status:l},(function(){n.props.onEntering(e,o),n.onTransitionEnd(e,a,(function(){n.safeSetState({status:f},(function(){n.props.onEntered(e,o)}))}))}))):this.safeSetState({status:f},(function(){n.props.onEntered(e)}))},a.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:p},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:s},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:s},(function(){t.props.onExited(e)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},a.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},a.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},a.render=function(){var e=this.state.status;if(e===c)return null;var t=this.props,n=t.children,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"===typeof n)return n(e,r);var i=o.default.Children.only(n);return o.default.cloneElement(i,r)},r}(o.default.Component);function d(){}h.contextTypes={transitionGroup:r.object},h.childContextTypes={transitionGroup:function(){}},h.propTypes={},h.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:d,onEntering:d,onEntered:d,onExit:d,onExiting:d,onExited:d},h.UNMOUNTED=0,h.EXITED=1,h.ENTERING=2,h.ENTERED=3,h.EXITING=4;var y=(0,a.polyfill)(h);t.default=y},83470:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=void 0;var r=u(n(11942)),o=u(n(9950)),i=n(4899),a=n(91860);function u(e){return e&&e.__esModule?e:{default:e}}function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var l=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},f=function(e){var t,n;function r(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(s(s(r)));return r.state={handleExited:o,firstRender:!0},r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},i.componentDidMount=function(){this.appeared=!0,this.mounted=!0},i.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?(0,a.getInitialChildMapping)(e,r):(0,a.getNextChildMapping)(e,n,r),firstRender:!1}},i.handleExited=function(e,t){var n=(0,a.getChildMapping)(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=c({},t.children);return delete n[e.key],{children:n}})))},i.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["component","childFactory"]),i=l(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i:o.default.createElement(t,r,i)},r}(o.default.Component);f.childContextTypes={transitionGroup:r.default.object.isRequired},f.propTypes={},f.defaultProps={component:"div",childFactory:function(e){return e}};var p=(0,i.polyfill)(f);t.default=p,e.exports=t.default},58752:(e,t,n)=>{"use strict";var r=u(n(49368)),o=u(n(68235)),i=u(n(83470)),a=u(n(77293));function u(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:a.default,TransitionGroup:i.default,ReplaceTransition:o.default,CSSTransition:r.default}},91860:(e,t,n)=>{"use strict";t.__esModule=!0,t.getChildMapping=o,t.mergeChildMappings=i,t.getInitialChildMapping=function(e,t){return o(e.children,(function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:a(n,"appear",e),enter:a(n,"enter",e),exit:a(n,"exit",e)})}))},t.getNextChildMapping=function(e,t,n){var u=o(e.children),c=i(t,u);return Object.keys(c).forEach((function(o){var i=c[o];if((0,r.isValidElement)(i)){var s=o in t,l=o in u,f=t[o],p=(0,r.isValidElement)(f)&&!f.props.in;!l||s&&!p?l||!s||p?l&&s&&(0,r.isValidElement)(f)&&(c[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:f.props.in,exit:a(i,"exit",e),enter:a(i,"enter",e)})):c[o]=(0,r.cloneElement)(i,{in:!1}):c[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:!0,exit:a(i,"exit",e),enter:a(i,"enter",e)})}})),c};var r=n(9950);function o(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)})),n}function i(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var u={};for(var c in t){if(o[c])for(r=0;r<o[c].length;r++){var s=o[c][r];u[o[c][r]]=n(s)}u[c]=n(c)}for(r=0;r<i.length;r++)u[i[r]]=n(i[r]);return u}function a(e,t,n){return null!=n[t]?n[t]:e.props[t]}},8484:(e,t,n)=>{"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var r;(r=n(11942))&&r.__esModule;t.timeoutsShape=null;t.classNamesShape=null},18849:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(58168),o=n(98587),i=n(9417),a=n(77387),u=n(9950),c=n(11942),s=n.n(c),l=n(48738),f=n.n(l),p=n(44208),h=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"],d={active:s().bool,"aria-label":s().string,block:s().bool,color:s().string,disabled:s().bool,outline:s().bool,tag:p.Wx,innerRef:s().oneOfType([s().object,s().func,s().string]),onClick:s().func,size:s().string,children:s().node,className:s().string,cssModule:s().object,close:s().bool},y=function(e){function t(t){var n;return(n=e.call(this,t)||this).onClick=n.onClick.bind((0,i.A)(n)),n}(0,a.A)(t,e);var n=t.prototype;return n.onClick=function(e){if(!this.props.disabled)return this.props.onClick?this.props.onClick(e):void 0;e.preventDefault()},n.render=function(){var e=this.props,t=e.active,n=e["aria-label"],i=e.block,a=e.className,c=e.close,s=e.cssModule,l=e.color,d=e.outline,y=e.size,v=e.tag,m=e.innerRef,g=(0,o.A)(e,h);c&&"undefined"===typeof g.children&&(g.children=u.createElement("span",{"aria-hidden":!0},"\xd7"));var b="btn"+(d?"-outline":"")+"-"+l,x=(0,p.qO)(f()(a,{close:c},c||"btn",c||b,!!y&&"btn-"+y,!!i&&"btn-block",{active:t,disabled:this.props.disabled}),s);g.href&&"button"===v&&(v="a");var O=c?"Close":null;return u.createElement(v,(0,r.A)({type:"button"===v&&g.onClick?"button":void 0},g,{className:x,ref:m,onClick:this.onClick,"aria-label":n||O}))},t}(u.Component);y.propTypes=d,y.defaultProps={color:"secondary",tag:"button"};const v=y},23931:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(58168),o=n(98587),i=n(9950),a=n(11942),u=n.n(a),c=n(48738),s=n.n(c),l=n(44208),f=["className","cssModule","widths","tag"],p=u().oneOfType([u().number,u().string]),h=u().oneOfType([u().bool,u().number,u().string,u().shape({size:u().oneOfType([u().bool,u().number,u().string]),order:p,offset:p})]),d={tag:l.Wx,xs:h,sm:h,md:h,lg:h,xl:h,className:u().string,cssModule:u().object,widths:u().array},y={tag:"div",widths:["xs","sm","md","lg","xl"]},v=function(e,t,n){return!0===n||""===n?e?"col":"col-"+t:"auto"===n?e?"col-auto":"col-"+t+"-auto":e?"col-"+n:"col-"+t+"-"+n},m=function(e){var t=e.className,n=e.cssModule,a=e.widths,u=e.tag,c=(0,o.A)(e,f),p=[];a.forEach((function(t,r){var o=e[t];if(delete c[t],o||""===o){var i=!r;if((0,l.Gv)(o)){var a,u=i?"-":"-"+t+"-",f=v(i,t,o.size);p.push((0,l.qO)(s()(((a={})[f]=o.size||""===o.size,a["order"+u+o.order]=o.order||0===o.order,a["offset"+u+o.offset]=o.offset||0===o.offset,a)),n))}else{var h=v(i,t,o);p.push(h)}}})),p.length||p.push("col");var h=(0,l.qO)(s()(t,p),n);return i.createElement(u,(0,r.A)({},c,{className:h}))};m.propTypes=d,m.defaultProps=y;const g=m},82654:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var r=n(58168),o=n(98587),i=n(9950),a=n(11942),u=n.n(a),c=n(48738),s=n.n(c),l=n(44208),f=["className","cssModule","fluid","tag"],p={tag:l.Wx,fluid:u().oneOfType([u().bool,u().string]),className:u().string,cssModule:u().object},h=function(e){var t=e.className,n=e.cssModule,a=e.fluid,u=e.tag,c=(0,o.A)(e,f),p="container";!0===a?p="container-fluid":a&&(p="container-"+a);var h=(0,l.qO)(s()(t,p),n);return i.createElement(u,(0,r.A)({},c,{className:h}))};h.propTypes=p,h.defaultProps={tag:"div"};const d=h},1858:(e,t,n)=>{"use strict";n.d(t,{A:()=>m});var r=n(58168),o=n(64467),i=n(98587),a=n(9950),u=n(11942),c=n.n(u),s=n(48738),l=n.n(s),f=n(44208),p=["children","className","barClassName","cssModule","value","min","max","animated","striped","color","bar","multi","tag","style","barStyle","barAriaValueText","barAriaLabelledBy"];function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,o.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var y={children:c().node,bar:c().bool,multi:c().bool,tag:f.Wx,value:c().oneOfType([c().string,c().number]),min:c().oneOfType([c().string,c().number]),max:c().oneOfType([c().string,c().number]),animated:c().bool,striped:c().bool,color:c().string,className:c().string,barClassName:c().string,cssModule:c().object,style:c().object,barStyle:c().object,barAriaValueText:c().string,barAriaLabelledBy:c().string},v=function(e){var t=e.children,n=e.className,o=e.barClassName,u=e.cssModule,c=e.value,s=e.min,h=e.max,y=e.animated,v=e.striped,m=e.color,g=e.bar,b=e.multi,x=e.tag,O=e.style,w=e.barStyle,j=e.barAriaValueText,k=e.barAriaLabelledBy,_=(0,i.A)(e,p),E=(0,f.Ro)(c)/(0,f.Ro)(h)*100,A=(0,f.qO)(l()(n,"progress"),u),T={className:(0,f.qO)(l()("progress-bar",g&&n||o,y?"progress-bar-animated":null,m?"bg-"+m:null,v||y?"progress-bar-striped":null),u),style:d(d(d({},g?O:{}),w),{},{width:E+"%"}),role:"progressbar","aria-valuenow":c,"aria-valuemin":s,"aria-valuemax":h,"aria-valuetext":j,"aria-labelledby":k,children:t};return g?a.createElement(x,(0,r.A)({},_,T)):a.createElement(x,(0,r.A)({},_,{style:O,className:A}),b?t:a.createElement("div",T))};v.propTypes=y,v.defaultProps={tag:"div",value:0,min:0,max:100,style:{},barStyle:{}};const m=v},70349:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(58168),o=n(98587),i=n(9950),a=n(11942),u=n.n(a),c=n(48738),s=n.n(c),l=n(44208),f=["className","cssModule","noGutters","tag","form","widths"],p=u().oneOfType([u().number,u().string]),h={tag:l.Wx,noGutters:u().bool,className:u().string,cssModule:u().object,form:u().bool,xs:p,sm:p,md:p,lg:p,xl:p},d={tag:"div",widths:["xs","sm","md","lg","xl"]},y=function(e){var t=e.className,n=e.cssModule,a=e.noGutters,u=e.tag,c=e.form,p=e.widths,h=(0,o.A)(e,f),d=[];p.forEach((function(t,n){var r=e[t];if(delete h[t],r){var o=!n;d.push(o?"row-cols-"+r:"row-cols-"+t+"-"+r)}}));var y=(0,l.qO)(s()(t,a?"no-gutters":null,c?"form-row":"row",d),n);return i.createElement(u,(0,r.A)({},h,{className:y}))};y.propTypes=h,y.defaultProps=d;const v=y},38152:(e,t,n)=>{"use strict";n.d(t,{yP:()=>Kp,Es:()=>by,dC:()=>Ep,fh:()=>gr,s$:()=>xt,Fq:()=>dp,rW:()=>iv,uf:()=>dr,m_:()=>or,WX:()=>nh,h8:()=>sh});var r={};n.r(r),n.d(r,{scaleBand:()=>Ro,scaleDiverging:()=>hs,scaleDivergingLog:()=>ds,scaleDivergingPow:()=>vs,scaleDivergingSqrt:()=>ms,scaleDivergingSymlog:()=>ys,scaleIdentity:()=>aa,scaleImplicit:()=>Do,scaleLinear:()=>ia,scaleLog:()=>ya,scaleOrdinal:()=>Io,scalePoint:()=>Bo,scalePow:()=>ka,scaleQuantile:()=>Ea,scaleQuantize:()=>Aa,scaleSequential:()=>as,scaleSequentialLog:()=>us,scaleSequentialPow:()=>ss,scaleSequentialQuantile:()=>fs,scaleSequentialSqrt:()=>ls,scaleSequentialSymlog:()=>cs,scaleSqrt:()=>_a,scaleSymlog:()=>ba,scaleThreshold:()=>Ta,scaleTime:()=>$c,scaleUtc:()=>rs,tickFormat:()=>ra});n(96415);var o=n(93008),i=n.n(o),a=n(35420),u=n.n(a),c=n(9950),s=n(11942),l=n.n(s),f=n(48738),p=n.n(f),h=n(40821),d=n.n(h),y=n(56801),v=n.n(y),m=n(24567),g=n.n(m),b=n(12279),x=n.n(b),O=n(87946),w=n.n(O),j=n(21099),k=n.n(j),_=n(29853),E=n.n(_),A=function(e){return 0===e?0:e>0?1:-1},T=function(e){return v()(e)&&e.indexOf("%")===e.length-1},S=function(e){return E()(e)&&!k()(e)},M=function(e){return S(e)||v()(e)},P=0,C=function(e){var t=++P;return"".concat(e||"").concat(t)},N=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!S(e)&&!v()(e))return r;if(T(e)){var i=e.indexOf("%");n=t*parseFloat(e.slice(0,i))/100}else n=+e;return k()(n)&&(n=r),o&&n>t&&(n=t),n},D=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},I=function(e,t){return S(e)&&S(t)?function(n){return e+n*(t-e)}:function(){return t}},R=function(e,t,n){return e&&e.length?e.find((function(e){return e&&("function"===typeof t?t(e):w()(e,t))===n})):null};function L(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function B(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function z(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var F={"aria-current":l().string,"aria-details":l().any,"aria-disabled":l().any,"aria-hidden":l().any,"aria-invalid":l().any,"aria-keyshortcuts":l().any,"aria-label":l().any,"aria-roledescription":l().any,"aria-autocomplete":l().any,"aria-checked":l().any,"aria-expanded":l().any,"aria-haspopup":l().any,"aria-level":l().any,"aria-modal":l().any,"aria-multiline":l().any,"aria-multiselectable":l().any,"aria-orientation":l().any,"aria-placeholder":l().any,"aria-pressed":l().any,"aria-readonly":l().any,"aria-required":l().any,"aria-selected":l().any,"aria-sort":l().any,"aria-valuemax":l().any,"aria-valuemin":l().any,"aria-valuenow":l().any,"aria-valuetext":l().any,"aria-atomic":l().any,"aria-busy":l().any,"aria-live":l().any,"aria-relevant":l().any,"aria-dropeffect":l().any,"aria-grabbed":l().any,"aria-activedescendant":l().any,"aria-colcount":l().any,"aria-colindex":l().any,"aria-colspan":l().any,"aria-controls":l().any,"aria-describedby":l().any,"aria-errormessage":l().any,"aria-flowto":l().any,"aria-labelledby":l().any,"aria-owns":l().any,"aria-posinset":l().any,"aria-rowcount":l().any,"aria-rowindex":l().any,"aria-rowspan":l().any,"aria-setsize":l().any,alignmentBaseline:l().string,angle:l().number,baselineShift:l().string,clip:l().string,clipPath:l().string,clipRule:l().string,color:l().string,colorInterpolation:l().string,colorInterpolationFilters:l().string,colorProfile:l().string,colorRendering:l().string,cursor:l().string,direction:l().oneOf(["ltr","rtl","inherit"]),display:l().string,dominantBaseline:l().string,enableBackground:l().string,fill:l().string,fillOpacity:l().oneOfType([l().string,l().number]),fillRule:l().oneOf(["nonzero","evenodd","inherit"]),filter:l().string,floodColor:l().string,floodOpacity:l().oneOfType([l().string,l().number]),font:l().string,fontFamily:l().string,fontSize:l().oneOfType([l().number,l().string]),fontSizeAdjust:l().oneOfType([l().number,l().string]),fontStretch:l().oneOf(["normal","wider","narrower","ultra-condensed","extra-condensed","condensed","semi-condensed","semi-expanded","expanded","extra-expanded","ultra-expanded","inherit"]),fontStyle:l().oneOf(["normal","italic","oblique","inherit"]),fontVariant:l().oneOf(["normal","small-caps","inherit"]),fontWeight:l().oneOf(["normal","bold","bolder","lighter",100,200,300,400,500,600,700,800,900,"inherit"]),glyphOrientationHorizontal:l().string,glyphOrientationVertical:l().string,imageRendering:l().oneOf(["auto","optimizeSpeed","optimizeQuality","inherit"]),kerning:l().oneOfType([l().number,l().string]),letterSpacing:l().oneOfType([l().number,l().string]),lightingColor:l().string,lineHeight:l().oneOfType([l().number,l().string]),markerEnd:l().string,markerMid:l().string,markerStart:l().string,mask:l().string,opacity:l().oneOfType([l().number,l().string]),overflow:l().oneOf(["visible","hidden","scroll","auto","inherit"]),pointerEvents:l().oneOf(["visiblePainted","visibleFill","visibleStroke","visible","painted","fill","stroke","all","none","inherit"]),shapeRendering:l().oneOf(["auto","optimizeSpeed","crispEdges","geometricPrecision","inherit"]),stopColor:l().string,stopOpacity:l().oneOfType([l().number,l().string]),stroke:l().oneOfType([l().number,l().string]),strokeDasharray:l().string,strokeDashoffset:l().oneOfType([l().number,l().string]),strokeLinecap:l().oneOf(["butt","round","square","inherit"]),strokeLinejoin:l().oneOf(["miter","round","bevel","inherit"]),strokeMiterlimit:l().oneOfType([l().number,l().string]),strokeOpacity:l().oneOfType([l().number,l().string]),strokeWidth:l().oneOfType([l().number,l().string]),textAnchor:l().oneOf(["start","middle","end","inherit"]),textDecoration:l().oneOf(["none","underline","overline","line-through","blink","inherit"]),textRendering:l().oneOf(["auto","optimizeSpeed","optimizeLegibility","geometricPrecision","inherit"]),unicodeBidi:l().oneOf(["normal","embed","bidi-override","inherit"]),visibility:l().oneOf(["visible","hidden","collapse","inherit"]),wordSpacing:l().oneOfType([l().number,l().string]),writingMode:l().oneOf(["lr-tb","rl-tb","tb-rl","lr","rl","tb","inherit"]),transform:l().string,role:l().string,focusable:l().string,tabIndex:l().string,style:l().object,width:l().number,height:l().number,dx:l().number,dy:l().number,x:l().number,y:l().number,r:l().number,radius:l().oneOfType([l().number,l().array])},W={onClick:l().func,onMouseDown:l().func,onMouseUp:l().func,onMouseOver:l().func,onMouseMove:l().func,onMouseOut:l().func,onMouseEnter:l().func,onMouseLeave:l().func,onTouchEnd:l().func,onTouchMove:l().func,onTouchStart:l().func,onTouchCancel:l().func},U={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},G=["auto","linear","pow","sqrt","log","identity","time","band","point","ordinal","quantile","quantize","utc","sequential","threshold"],q=["plainline","line","square","rect","circle","cross","diamond","star","triangle","wye","none"],H=["none"],V=function(e){return"string"===typeof e?e:e?e.displayName||e.name||"Component":""},X=function(e,t){var n=[],r=[];return r=x()(t)?t.map((function(e){return V(e)})):[V(t)],c.Children.forEach(e,(function(e){var t=e&&e.type&&(e.type.displayName||e.type.name);-1!==r.indexOf(t)&&n.push(e)})),n},Y=function(e,t){var n=X(e,t);return n&&n[0]},K=function(e){if(!e||i()(e))return null;var t=c.isValidElement(e)?e.props:e;if(!g()(t))return null;var n=null;for(var r in t)({}).hasOwnProperty.call(t,r)&&F[r]&&(n||(n={}),n[r]=t[r]);return n},$=function(e,t){return function(n){return e(t,n),null}},Z=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e||i()(e))return null;var r=c.isValidElement(e)?e.props:e;if(!g()(r))return null;var o=null;for(var a in r)({}).hasOwnProperty.call(r,a)&&W[a]&&(o||(o={}),o[a]=t||(n?$(r[a],r):r[a]));return o},J=function(e,t,n){return function(r){return e(t,n,r),null}},Q=function(e,t,n){if(!g()(e))return null;var r=null;for(var o in e)({}).hasOwnProperty.call(e,o)&&W[o]&&i()(e[o])&&(r||(r={}),r[o]=J(e[o],t,n));return r},ee=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!S(n)||n<=0||!S(r)||r<=0)},te=function(){return!("undefined"!==typeof window&&window.document&&window.document.createElement&&window.setTimeout)},ne=["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"],re=function(e,t){if(d()(e)&&d()(t))return!0;if(!d()(e)&&!d()(t)){var n=e.props||{},r=n.children,o=z(n,["children"]),i=t.props||{},a=i.children,u=z(i,["children"]);return r&&a?L(o,u)&&oe(r,a):!r&&!a&&L(o,u)}return!1},oe=function e(t,n){if(t===n)return!0;if(c.Children.count(t)!==c.Children.count(n))return!1;var r=c.Children.count(t);if(0===r)return!0;if(1===r)return re(x()(t)?t[0]:t,x()(n)?n[0]:n);for(var o=0;o<r;o++){var i=t[o],a=n[o];if(x()(i)||x()(a)){if(!e(i,a))return!1}else if(!re(i,a))return!1}return!0},ie=function(e,t){var n=[],r={};return c.Children.forEach(e,(function(e,o){if(e&&function(e){return e&&e.type&&v()(e.type)&&ne.indexOf(e.type)>=0}(e))n.push(e);else if(e&&t[V(e.type)]){var i=V(e.type),a=t[i],u=a.handler,c=a.once;if(c&&!r[i]||!c){var s=u(e,i,o);x()(s)?n=[n].concat(B(s)):n.push(s),r[i]=!0}}})),n},ae=function(e,t){var n=-1;return c.Children.forEach(t,(function(t,r){t===e&&(n=r)})),n};function ue(){return ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ue.apply(this,arguments)}function ce(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var se={width:l().number.isRequired,height:l().number.isRequired,viewBox:l().shape({x:l().number,y:l().number,width:l().number,height:l().number}),className:l().string,style:l().object,children:l().oneOfType([l().arrayOf(l().node),l().node])};function le(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,i=e.className,a=e.style,u=ce(e,["children","width","height","viewBox","className","style"]),s=o||{width:n,height:r,x:0,y:0},l=p()("recharts-surface",i),f=K(u);return c.createElement("svg",ue({},f,{className:l,width:n,height:r,style:a,viewBox:"".concat(s.x," ").concat(s.y," ").concat(s.width," ").concat(s.height),version:"1.1"}),t)}le.propTypes=se;const fe=le;Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt;var pe=Math.PI,he=2*pe;const de={draw:function(e,t){var n=Math.sqrt(t/pe);e.moveTo(n,0),e.arc(0,0,n,0,he)}},ye={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}};var ve=Math.sqrt(1/3),me=2*ve;const ge={draw:function(e,t){var n=Math.sqrt(t/me),r=n*ve;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},be={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}};var xe=Math.sin(pe/10)/Math.sin(7*pe/10),Oe=Math.sin(he/10)*xe,we=-Math.cos(he/10)*xe;const je={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=Oe*n,o=we*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;i<5;++i){var a=he*i/5,u=Math.cos(a),c=Math.sin(a);e.lineTo(c*n,-u*n),e.lineTo(u*r-c*o,c*r+u*o)}e.closePath()}};var ke=Math.sqrt(3);const _e={draw:function(e,t){var n=-Math.sqrt(t/(3*ke));e.moveTo(0,2*n),e.lineTo(-ke*n,-n),e.lineTo(ke*n,-n),e.closePath()}};var Ee=-.5,Ae=Math.sqrt(3)/2,Te=1/Math.sqrt(12),Se=3*(Te/2+1);const Me={draw:function(e,t){var n=Math.sqrt(t/Se),r=n/2,o=n*Te,i=r,a=n*Te+n,u=-i,c=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(u,c),e.lineTo(Ee*r-Ae*o,Ae*r+Ee*o),e.lineTo(Ee*i-Ae*a,Ae*i+Ee*a),e.lineTo(Ee*u-Ae*c,Ae*u+Ee*c),e.lineTo(Ee*r+Ae*o,Ee*o-Ae*r),e.lineTo(Ee*i+Ae*a,Ee*a-Ae*i),e.lineTo(Ee*u+Ae*c,Ee*c-Ae*u),e.closePath()}};var Pe=Math.PI,Ce=2*Pe,Ne=1e-6,De=Ce-Ne;function Ie(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Re(){return new Ie}Ie.prototype=Re.prototype={constructor:Ie,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,o,i){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},arcTo:function(e,t,n,r,o){e=+e,t=+t,n=+n,r=+r,o=+o;var i=this._x1,a=this._y1,u=n-e,c=r-t,s=i-e,l=a-t,f=s*s+l*l;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>Ne)if(Math.abs(l*u-c*s)>Ne&&o){var p=n-i,h=r-a,d=u*u+c*c,y=p*p+h*h,v=Math.sqrt(d),m=Math.sqrt(f),g=o*Math.tan((Pe-Math.acos((d+f-y)/(2*v*m)))/2),b=g/m,x=g/v;Math.abs(b-1)>Ne&&(this._+="L"+(e+b*s)+","+(t+b*l)),this._+="A"+o+","+o+",0,0,"+ +(l*p>s*h)+","+(this._x1=e+x*u)+","+(this._y1=t+x*c)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,o,i){e=+e,t=+t,i=!!i;var a=(n=+n)*Math.cos(r),u=n*Math.sin(r),c=e+a,s=t+u,l=1^i,f=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+s:(Math.abs(this._x1-c)>Ne||Math.abs(this._y1-s)>Ne)&&(this._+="L"+c+","+s),n&&(f<0&&(f=f%Ce+Ce),f>De?this._+="A"+n+","+n+",0,1,"+l+","+(e-a)+","+(t-u)+"A"+n+","+n+",0,1,"+l+","+(this._x1=c)+","+(this._y1=s):f>Ne&&(this._+="A"+n+","+n+",0,"+ +(f>=Pe)+","+l+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const Le=Re;function Be(e){return function(){return e}}function ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function We(e){return We="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},We(e)}function Ue(){return Ue=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ue.apply(this,arguments)}function Ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qe(e,t){return!t||"object"!==We(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function He(e){return He=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},He(e)}function Ve(e,t){return Ve=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ve(e,t)}var Xe={symbolCircle:de,symbolCross:ye,symbolDiamond:ge,symbolSquare:be,symbolStar:je,symbolTriangle:_e,symbolWye:Me},Ye=Math.PI/180,Ke=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),qe(this,He(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)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}}),t&&Ve(e,t)}(t,e),n=t,r=[{key:"getPath",value:function(){var e=this.props,t=e.size,n=e.sizeType,r=e.type,o=function(e){var t="symbol".concat(e.slice(0,1).toUpperCase()).concat(e.slice(1));return Xe[t]||de}(r),i=function(){var e=Be(de),t=Be(64),n=null;function r(){var r;if(n||(n=r=Le()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"===typeof t?t:Be(t),r):e},r.size=function(e){return arguments.length?(t="function"===typeof e?e:Be(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r}().type(o).size(function(e,t,n){if("area"===t)return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var r=18*Ye;return 1.25*e*e*(Math.tan(r)-Math.tan(2*r)*Math.pow(Math.tan(r),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}}(t,n,r));return i()}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.cx,r=e.cy,o=e.size;return n===+n&&r===+r&&o===+o?c.createElement("path",Ue({},K(this.props),Z(this.props),{className:p()("recharts-symbols",t),transform:"translate(".concat(n,", ").concat(r,")"),d:this.getPath()})):null}}],r&&Ge(n.prototype,r),o&&Ge(n,o),t}(c.PureComponent);Ke.displayName="Symbols",Ke.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ze(n,!0).forEach((function(t){Fe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},F,{className:l().string,type:l().oneOf(["circle","cross","diamond","square","star","triangle","wye"]),cx:l().number,cy:l().number,size:l().number,sizeType:l().oneOf(["area","diameter"])}),Ke.defaultProps={type:"circle",size:64,sizeType:"area"};const $e=Ke;function Ze(e){return Ze="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ze(e)}function Je(){return Je=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Je.apply(this,arguments)}function Qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function et(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tt(e,t){return!t||"object"!==Ze(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function nt(e){return nt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},nt(e)}function rt(e,t){return rt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},rt(e,t)}var ot=32,it=q.filter((function(e){return"none"!==e})),at=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),tt(this,nt(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)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}}),t&&rt(e,t)}(t,e),n=t,r=[{key:"renderIcon",value:function(e){var t=this.props.inactiveColor,n=16,r=ot/6,o=ot/3,i=e.inactive?t:e.color;return"plainline"===e.type?c.createElement("line",{strokeWidth:4,fill:"none",stroke:i,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:n,x2:ot,y2:n,className:"recharts-legend-icon"}):"line"===e.type?c.createElement("path",{strokeWidth:4,fill:"none",stroke:i,d:"M0,".concat(n,"h").concat(o,"\n A").concat(r,",").concat(r,",0,1,1,").concat(2*o,",").concat(n,"\n H").concat(ot,"M").concat(2*o,",").concat(n,"\n A").concat(r,",").concat(r,",0,1,1,").concat(o,",").concat(n),className:"recharts-legend-icon"}):"rect"===e.type?c.createElement("path",{stroke:"none",fill:i,d:"M0,".concat(4,"h").concat(ot,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"}):c.createElement($e,{fill:i,cx:n,cy:n,size:ot,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,t=this.props,n=t.payload,r=t.iconSize,o=t.layout,i=t.formatter,a={x:0,y:0,width:ot,height:ot},u={display:"horizontal"===o?"inline-block":"block",marginRight:10},s={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map((function(t,n){var o,l=t.formatter||i,f=p()((Qe(o={"recharts-legend-item":!0},"legend-item-".concat(n),!0),Qe(o,"inactive",t.inactive),o));return"none"===t.type?null:c.createElement("li",Je({className:f,style:u,key:"legend-item-".concat(n)},Q(e.props,t,n)),c.createElement(fe,{width:r,height:r,viewBox:a,style:s},e.renderIcon(t)),c.createElement("span",{className:"recharts-legend-item-text"},l?l(t.value,t,n):t.value))}))}},{key:"render",value:function(){var e=this.props,t=e.payload,n=e.layout,r=e.align;if(!t||!t.length)return null;var o={padding:0,margin:0,textAlign:"horizontal"===n?r:"left"};return c.createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}],r&&et(n.prototype,r),o&&et(n,o),t}(c.PureComponent);at.displayName="Legend",at.propTypes={content:l().element,iconSize:l().number,iconType:l().oneOf(it),layout:l().oneOf(["horizontal","vertical"]),align:l().oneOf(["center","left","right"]),verticalAlign:l().oneOf(["top","bottom","middle"]),payload:l().arrayOf(l().shape({value:l().any,id:l().any,type:l().oneOf(q)})),inactiveColor:l().string,formatter:l().func,onMouseEnter:l().func,onMouseLeave:l().func,onClick:l().func},at.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"};const ut=at;function ct(e){return ct="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ct(e)}function st(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?st(n,!0).forEach((function(t){ft(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):st(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ft(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ht(e,t){return!t||"object"!==ct(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function dt(e){return dt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},dt(e)}function yt(e,t){return yt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},yt(e,t)}var vt=function(e){return e.value},mt=function(e,t){return!0===e?u()(t,vt):i()(e)?u()(t,e):t},gt=q.filter((function(e){return"none"!==e})),bt=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=ht(this,(e=dt(t)).call.apply(e,[this].concat(o)))).state={boxWidth:-1,boxHeight:-1},n}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)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}}),t&&yt(e,t)}(t,e),n=t,o=[{key:"getWithHeight",value:function(e,t){var n=e.props.layout;return"vertical"===n&&S(e.props.height)?{height:e.props.height}:"horizontal"===n?{width:e.props.width||t}:null}}],(r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight;return t>=0&&n>=0?{width:t,height:n}:null}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,i=r.align,a=r.verticalAlign,u=r.margin,c=r.chartWidth,s=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===i&&"vertical"===o?{left:((c||0)-(this.getBBox()||{width:0}).width)/2}:"right"===i?{right:u&&u.right||0}:{left:u&&u.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===a?{top:((s||0)-(this.getBBox()||{height:0}).height)/2}:"bottom"===a?{bottom:u&&u.bottom||0}:{top:u&&u.top||0}),lt({},t,{},n)}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight,r=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var o=this.wrapperNode.getBoundingClientRect();(Math.abs(o.width-t)>1||Math.abs(o.height-n)>1)&&this.setState({boxWidth:o.width,boxHeight:o.height},(function(){r&&r(o)}))}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1},(function(){r&&r(null)}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,r=t.width,o=t.height,a=t.wrapperStyle,u=t.paylodUniqBy,s=t.payload,l=lt({position:"absolute",width:r||"auto",height:o||"auto"},this.getDefaultPosition(a),{},a);return c.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(t){e.wrapperNode=t}},function(e,t){return c.isValidElement(e)?c.cloneElement(e,t):i()(e)?e(t):c.createElement(ut,t)}(n,lt({},this.props,{payload:mt(u,s)})))}}])&&pt(n.prototype,r),o&&pt(n,o),t}(c.PureComponent);bt.displayName="Legend",bt.propTypes={content:l().oneOfType([l().element,l().func]),wrapperStyle:l().object,chartWidth:l().number,chartHeight:l().number,width:l().number,height:l().number,iconSize:l().number,iconType:l().oneOf(gt),layout:l().oneOf(["horizontal","vertical"]),align:l().oneOf(["center","left","right"]),verticalAlign:l().oneOf(["top","bottom","middle"]),margin:l().shape({top:l().number,left:l().number,bottom:l().number,right:l().number}),payload:l().arrayOf(l().shape({value:l().any,id:l().any,type:l().oneOf(q)})),paylodUniqBy:l().oneOfType([l().func,l().bool]),formatter:l().func,onMouseEnter:l().func,onMouseLeave:l().func,onClick:l().func,onBBoxUpdate:l().func},bt.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"};const xt=bt;var Ot=n(59418),wt=n.n(Ot),jt=n(81700),kt=n.n(jt);function _t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;kt()((function r(o){n<0&&(n=o),o-n>t?(e(o),n=-1):kt()(r)}))}function Et(e){return Et="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Et(e)}function At(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Tt(){var e=function(){return null},t=!1,n=function n(r){if(!t){if(Array.isArray(r)){if(!r.length)return;var o=At(r),i=o[0],a=o.slice(1);return"number"===typeof i?void _t(n.bind(null,a),i):(n(i),void _t(n.bind(null,a)))}"object"===Et(r)&&e(r),"function"===typeof r&&r()}};return{stop:function(){t=!0},start:function(e){t=!1,n(e)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}var St=n(92437),Mt=n.n(St);function Pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ct(e,t,n[t])}))}return e}function Ct(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Nt=["Webkit","Moz","O","ms"],Dt=["-webkit-","-moz-","-o-","-ms-"],It=["transform","transformOrigin","transition"],Rt=function(e){return e},Lt=function(e,t){return Object.keys(t).reduce((function(n,r){return Pt({},n,Ct({},r,e(r,t[r])))}),{})},Bt=function(e){return Object.keys(e).reduce((function(e,t){return Pt({},e,function(e,t){if(-1===It.indexOf(e))return Ct({},e,t);var n="transition"===e,r=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),o=t;return Nt.reduce((function(e,i,a){return n&&(o=t.replace(/(transform|transform-origin)/gim,"".concat(Dt[a],"$1"))),Pt({},e,Ct({},i+r,o))}),{})}(t,e[t]))}),e)},zt=function(e,t,n){return e.map((function(e){return"".concat((r=e,r.replace(/([A-Z])/g,(function(e){return"-".concat(e.toLowerCase())})))," ").concat(t,"ms ").concat(n);var r})).join(",")};function Ft(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Wt(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var Ut=1e-4,Gt=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},qt=function(e,t){return e.map((function(e,n){return e*Math.pow(t,n)})).reduce((function(e,t){return e+t}))},Ht=function(e,t){return function(n){var r=Gt(e,t);return qt(r,n)}},Vt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],i=t[2],a=t[3];if(1===t.length)switch(t[0]){case"linear":r=0,o=0,i=1,a=1;break;case"ease":r=.25,o=.1,i=.25,a=1;break;case"ease-in":r=.42,o=0,i=1,a=1;break;case"ease-out":r=.42,o=0,i=.58,a=1;break;case"ease-in-out":r=0,o=0,i=.58,a=1;break;default:var u=t[0].split("(");if("cubic-bezier"===u[0]&&4===u[1].split(")")[0].split(",").length){var c=Ft(u[1].split(")")[0].split(",").map((function(e){return parseFloat(e)})),4);r=c[0],o=c[1],i=c[2],a=c[3]}}[r,i,o,a].every((function(e){return"number"===typeof e&&e>=0&&e<=1}));var s,l,f=Ht(r,i),p=Ht(o,a),h=(s=r,l=i,function(e){var t=Wt(Gt(s,l).map((function(e,t){return e*t})).slice(1)).concat([0]);return qt(t,e)}),d=function(e){return e>1?1:e<0?0:e},y=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var o=f(n)-t,i=h(n);if(Math.abs(o-t)<Ut||i<Ut)return p(n);n=d(n-o/i)}return p(n)};return y.isStepper=!1,y},Xt=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];if("string"===typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Vt(r);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,i=e.dt,a=void 0===i?17:i,u=function(e,t,r){var i=r+(-(e-t)*n-r*o)*a/1e3,u=r*a/1e3+e;return Math.abs(u-t)<Ut&&Math.abs(i)<Ut?[t,0]:[u,i]};return u.isStepper=!0,u.dt=a,u}();default:if("cubic-bezier"===r.split("(")[0])return Vt(r)}return"function"===typeof r?r:null},Yt=n(13386),Kt=n.n(Yt);function $t(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Zt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Jt(e,t,n[t])}))}return e}function Jt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var en=function(e,t,n){return e+(t-e)*n},tn=function(e){return e.from!==e.to},nn=function e(t,n,r){var o=Lt((function(e,n){if(tn(n)){var r=Qt(t(n.from,n.to,n.velocity),2);return Zt({},n,{from:r[0],velocity:r[1]})}return n}),n);return r<1?Lt((function(e,t){return tn(t)?Zt({},t,{velocity:en(t.velocity,o[e].velocity,r),from:en(t.from,o[e].from,r)}):t}),n):e(t,o,r-1)};const rn=function(e,t,n,r,o){var i,a,u,c,s=(i=e,a=t,Mt()(Object.keys(i),Object.keys(a))),l=s.reduce((function(n,r){return Zt({},n,Jt({},r,[e[r],t[r]]))}),{}),f=s.reduce((function(n,r){return Zt({},n,Jt({},r,{from:e[r],velocity:0,to:t[r]}))}),{}),p=-1,h=function(){return null};return h=n.isStepper?function(r){u||(u=r);var i=(r-u)/n.dt;f=nn(n,f,i),o(Zt({},e,t,Lt((function(e,t){return t.from}),f))),u=r,Kt()(f,tn).length&&(p=kt()(h))}:function(i){c||(c=i);var a=(i-c)/r,u=Lt((function(e,t){return en.apply(void 0,$t(t).concat([n(a)]))}),l);if(o(Zt({},e,t,u)),a<1)p=kt()(h);else{var s=Lt((function(e,t){return en.apply(void 0,$t(t).concat([n(1)]))}),l);o(Zt({},e,t,s))}},function(){return kt()(h),function(){(0,jt.cancel)(p)}}};function on(e){return on="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},on(e)}function an(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function un(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function cn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){sn(e,t,n[t])}))}return e}function sn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ln(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fn(e,t){return!t||"object"!==on(t)&&"function"!==typeof t?dn(e):t}function pn(e){return pn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},pn(e)}function hn(e,t){return hn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},hn(e,t)}function dn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var yn=function(e){function t(e,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=(r=fn(this,pn(t).call(this,e,n))).props,i=o.isActive,a=o.attributeName,u=o.from,c=o.to,s=o.steps,l=o.children;if(r.handleStyleChange=r.handleStyleChange.bind(dn(dn(r))),r.changeStyle=r.changeStyle.bind(dn(dn(r))),!i)return r.state={style:{}},"function"===typeof l&&(r.state={style:c}),fn(r);if(s&&s.length)r.state={style:s[0].style};else if(u){if("function"===typeof l)return r.state={style:u},fn(r);r.state={style:a?sn({},a,u):u}}else r.state={style:{}};return r}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)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}}),t&&hn(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){var e=this.props,t=e.isActive,n=e.canBegin;this.mounted=!0,t&&n&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isActive,r=t.canBegin,o=t.attributeName,i=t.shouldReAnimate;if(r)if(n){if(!(wt()(e.to,this.props.to)&&e.canBegin&&e.isActive)){var a=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var u=a||i?this.props.from:e.to;if(this.state&&this.state.style){var c={style:o?sn({},o,u):u};(o&&this.state.style[o]!==u||!o&&this.state.style!==u)&&this.setState(c)}this.runAnimation(cn({},this.props,{from:u,begin:0}))}}else{var s={style:o?sn({},o,this.props.to):this.props.to};this.state&&this.state.style&&(o&&this.state.style[o]!==this.props.to||!o&&this.state.style!==this.props.to)&&this.setState(s)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1,this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation()}},{key:"runJSAnimation",value:function(e){var t=this,n=e.from,r=e.to,o=e.duration,i=e.easing,a=e.begin,u=e.onAnimationEnd,c=e.onAnimationStart,s=rn(n,r,Xt(i),o,this.changeStyle);this.manager.start([c,a,function(){t.stopJSAnimation=s()},o,u])}},{key:"runStepAnimation",value:function(e){var t=this,n=e.steps,r=e.begin,o=e.onAnimationStart,i=n[0],a=i.style,u=i.duration,c=void 0===u?0:u;return this.manager.start([o].concat(un(n.reduce((function(e,r,o){if(0===o)return e;var i=r.duration,a=r.easing,u=void 0===a?"ease":a,c=r.style,s=r.properties,l=r.onAnimationEnd,f=o>0?n[o-1]:r,p=s||Object.keys(c);if("function"===typeof u||"spring"===u)return un(e).concat([t.runJSAnimation.bind(t,{from:f.style,to:c,duration:i,easing:u}),i]);var h=zt(p,i,u),d=cn({},f.style,c,{transition:h});return un(e).concat([d,i,l]).filter(Rt)}),[a,Math.max(c,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=Tt());var t=e.begin,n=e.duration,r=e.attributeName,o=e.to,i=e.easing,a=e.onAnimationStart,u=e.onAnimationEnd,c=e.steps,s=e.children,l=this.manager;if(this.unSubscribe=l.subscribe(this.handleStyleChange),"function"!==typeof i&&"function"!==typeof s&&"spring"!==i)if(c.length>1)this.runStepAnimation(e);else{var f=r?sn({},r,o):o,p=zt(Object.keys(f),n,i);l.start([a,t,cn({},f,{transition:p}),n,u])}else this.runJSAnimation(e)}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.begin,e.duration,e.attributeName,e.easing,e.isActive),r=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,an(e,["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"])),o=c.Children.count(t),i=Bt(this.state.style);if("function"===typeof t)return t(i);if(!n||0===o)return t;var a=function(e){var t=e.props,n=t.style,o=void 0===n?{}:n,a=t.className;return(0,c.cloneElement)(e,cn({},r,{style:cn({},o,i),className:a}))};return 1===o?a(c.Children.only(t)):c.createElement("div",null,c.Children.map(t,(function(e){return a(e)})))}}])&&ln(n.prototype,r),o&&ln(n,o),t}(c.PureComponent);yn.displayName="Animate",yn.propTypes={from:l().oneOfType([l().object,l().string]),to:l().oneOfType([l().object,l().string]),attributeName:l().string,duration:l().number,begin:l().number,easing:l().oneOfType([l().string,l().func]),steps:l().arrayOf(l().shape({duration:l().number.isRequired,style:l().object.isRequired,easing:l().oneOfType([l().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),l().func]),properties:l().arrayOf("string"),onAnimationEnd:l().func})),children:l().oneOfType([l().node,l().func]),isActive:l().bool,canBegin:l().bool,onAnimationEnd:l().func,shouldReAnimate:l().bool,onAnimationStart:l().func,onAnimationReStart:l().func},yn.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};const vn=yn;var mn=n(58752);function gn(e){return gn="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gn(e)}function bn(){return bn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bn.apply(this,arguments)}function xn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function On(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jn(e,t){return!t||"object"!==gn(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function kn(e){return kn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},kn(e)}function _n(e,t){return _n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_n(e,t)}var En=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.steps,n=e.duration;return t&&t.length?t.reduce((function(e,t){return e+(E()(t.duration)&&t.duration>0?t.duration:0)}),0):E()(n)?n:0},An=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=jn(this,(e=kn(t)).call.apply(e,[this].concat(o)))).state={isActive:!1},n.handleEnter=function(e,t){var r=n.props,o=r.appearOptions,i=r.enterOptions;n.handleStyleActive(t?o:i)},n.handleExit=function(){n.handleStyleActive(n.props.leaveOptions)},n}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)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}}),t&&_n(e,t)}(t,e),n=t,r=[{key:"handleStyleActive",value:function(e){if(e){var t=e.onAnimationEnd?function(){e.onAnimationEnd()}:null;this.setState(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){On(e,t,n[t])}))}return e}({},e,{onAnimationEnd:t,isActive:!0}))}}},{key:"parseTimeout",value:function(){var e=this.props,t=e.appearOptions,n=e.enterOptions,r=e.leaveOptions;return En(t)+En(n)+En(r)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=(t.appearOptions,t.enterOptions,t.leaveOptions,xn(t,["children","appearOptions","enterOptions","leaveOptions"]));return c.createElement(mn.Transition,bn({},r,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),(function(){return c.createElement(vn,e.state,c.Children.only(n))}))}}],r&&wn(n.prototype,r),o&&wn(n,o),t}(c.Component);An.propTypes={appearOptions:l().object,enterOptions:l().object,leaveOptions:l().object,children:l().element};const Tn=An;function Sn(e){var t=e.component,n=e.children,r=e.appear,o=e.enter,i=e.leave;return c.createElement(mn.TransitionGroup,{component:t},c.Children.map(n,(function(e,t){return c.createElement(Tn,{appearOptions:r,enterOptions:o,leaveOptions:i,key:"child-".concat(t)},e)})))}Sn.propTypes={appear:l().object,enter:l().object,leave:l().object,children:l().oneOfType([l().array,l().element]),component:l().any},Sn.defaultProps={component:"span"};const Mn=vn;var Pn=n(21261),Cn=n.n(Pn);function Nn(e){return Nn="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nn(e)}function Dn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function In(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?In(n,!0).forEach((function(t){Ln(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):In(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ln(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zn(e,t){return!t||"object"!==Nn(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Fn(e){return Fn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Fn(e)}function Wn(e,t){return Wn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Wn(e,t)}var Un=function(e){return x()(e)&&M(e[0])&&M(e[1])?e.join(" ~ "):e},Gn=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),zn(this,Fn(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)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}}),t&&Wn(e,t)}(t,e),n=t,r=[{key:"renderContent",value:function(){var e=this.props,t=e.payload,n=e.separator,r=e.formatter,o=e.itemStyle,i=e.itemSorter;if(t&&t.length){var a=(i?Cn()(t,i):t).map((function(e,t){if("none"===e.type)return null;var i=Rn({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},o),a=e.formatter||r||Un,u=e.name,s=e.value;if(a){var l=a(s,u,e,t);if(Array.isArray(l)){var f=Dn(l,2);s=f[0],u=f[1]}else s=l}return c.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(t),style:i},M(u)?c.createElement("span",{className:"recharts-tooltip-item-name"},u):null,M(u)?c.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,c.createElement("span",{className:"recharts-tooltip-item-value"},s),c.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))}));return c.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},a)}return null}},{key:"render",value:function(){var e=this.props,t=e.wrapperClassName,n=e.contentStyle,r=e.labelClassName,o=e.labelStyle,i=e.label,a=e.labelFormatter,u=Rn({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},n),s=Rn({margin:0},o),l=M(i),f=l?i:"",h=p()("recharts-default-tooltip",t),d=p()("recharts-tooltip-label",r);return l&&a&&(f=a(i)),c.createElement("div",{className:h,style:u},c.createElement("p",{className:d,style:s},f),this.renderContent())}}],r&&Bn(n.prototype,r),o&&Bn(n,o),t}(c.PureComponent);Gn.displayName="DefaultTooltipContent",Gn.propTypes={separator:l().string,wrapperClassName:l().string,labelClassName:l().string,formatter:l().func,contentStyle:l().object,itemStyle:l().object,labelStyle:l().object,labelFormatter:l().func,label:l().any,payload:l().arrayOf(l().shape({name:l().any,value:l().oneOfType([l().number,l().string,l().array]),unit:l().any})),itemSorter:l().func},Gn.defaultProps={separator:" : ",contentStyle:{},itemStyle:{},labelStyle:{}};const qn=Gn;function Hn(e){return Hn="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hn(e)}function Vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vn(n,!0).forEach((function(t){Yn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vn(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $n(e,t){return!t||"object"!==Hn(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Zn(e){return Zn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Zn(e)}function Jn(e,t){return Jn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Jn(e,t)}var Qn="recharts-tooltip-wrapper",er=function(e){return e.dataKey},tr={allowEscapeViewBox:l().shape({x:l().bool,y:l().bool}),content:l().oneOfType([l().element,l().func]),viewBox:l().shape({x:l().number,y:l().number,width:l().number,height:l().number}),active:l().bool,separator:l().string,formatter:l().func,offset:l().number,itemStyle:l().object,labelStyle:l().object,wrapperStyle:l().object,contentStyle:l().object,cursor:l().oneOfType([l().bool,l().element,l().object]),coordinate:l().shape({x:l().number,y:l().number}),position:l().shape({x:l().number,y:l().number}),label:l().any,payload:l().arrayOf(l().shape({name:l().any,value:l().oneOfType([l().number,l().string,l().array]),unit:l().any,type:l().oneOf(H)})),paylodUniqBy:l().oneOfType([l().func,l().bool]),isAnimationActive:l().bool,animationDuration:l().number,animationEasing:l().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),itemSorter:l().func,filterNull:l().bool,useTranslate3d:l().bool},nr={active:!1,allowEscapeViewBox:{x:!1,y:!1},offset:10,viewBox:{x1:0,x2:0,y1:0,y2:0},coordinate:{x:0,y:0},cursorStyle:{},separator:" : ",wrapperStyle:{},contentStyle:{},itemStyle:{},labelStyle:{},cursor:!0,isAnimationActive:!te(),animationEasing:"ease",animationDuration:400,filterNull:!0,useTranslate3d:!1},rr=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=$n(this,(e=Zn(t)).call.apply(e,[this].concat(o)))).state={boxWidth:-1,boxHeight:-1},n.getTranslate=function(e){var t=e.key,r=e.tooltipDimension,o=e.viewBoxDimension,i=n.props,a=i.allowEscapeViewBox,u=i.coordinate,c=i.offset,s=i.position,l=i.viewBox;if(s&&S(s[t]))return s[t];var f=u[t]-r-c,p=u[t]+c;return a[t]?p:u[t]+r+c>l[t]+o?Math.max(f,l[t]):Math.max(p,l[t])},n}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)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}}),t&&Jn(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-t)>1||Math.abs(r.height-n)>1)&&this.setState({boxWidth:r.width,boxHeight:r.height})}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var e,t,n,r=this,o=this.props,a=o.payload,s=o.isAnimationActive,l=o.animationDuration,f=o.animationEasing,h=o.filterNull,y=function(e,t){return!0===e?u()(t,er):i()(e)?u()(t,e):t}(o.paylodUniqBy,h&&a&&a.length?a.filter((function(e){return!d()(e.value)})):a),v=y&&y.length,m=this.props,g=m.content,b=m.viewBox,x=m.coordinate,O=m.position,w=m.active,j=Xn({pointerEvents:"none",visibility:w&&v?"visible":"hidden",position:"absolute",top:0},m.wrapperStyle);if(O&&S(O.x)&&S(O.y))t=O.x,n=O.y;else{var k=this.state,_=k.boxWidth,E=k.boxHeight;_>0&&E>0&&x?(t=this.getTranslate({key:"x",tooltipDimension:_,viewBoxDimension:b.width}),n=this.getTranslate({key:"y",tooltipDimension:E,viewBoxDimension:b.height})):j.visibility="hidden"}j=Xn({},Bt({transform:this.props.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}),{},j),s&&w&&(j=Xn({},Bt({transition:"transform ".concat(l,"ms ").concat(f)}),{},j));var A=p()(Qn,(Yn(e={},"".concat(Qn,"-right"),S(t)&&x&&S(x.x)&&t>=x.x),Yn(e,"".concat(Qn,"-left"),S(t)&&x&&S(x.x)&&t<x.x),Yn(e,"".concat(Qn,"-bottom"),S(n)&&x&&S(x.y)&&n>=x.y),Yn(e,"".concat(Qn,"-top"),S(n)&&x&&S(x.y)&&n<x.y),e));return c.createElement("div",{className:A,style:j,ref:function(e){r.wrapperNode=e}},function(e,t){return c.isValidElement(e)?c.cloneElement(e,t):i()(e)?e(t):c.createElement(qn,t)}(g,Xn({},this.props,{payload:y})))}}])&&Kn(n.prototype,r),o&&Kn(n,o),t}(c.PureComponent);rr.displayName="Tooltip",rr.propTypes=tr,rr.defaultProps=nr;const or=rr;var ir=n(95491),ar=n.n(ir),ur=n(72962);function cr(e){return cr="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cr(e)}function sr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function lr(e,t){return!t||"object"!==cr(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function fr(e){return fr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},fr(e)}function pr(e,t){return pr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},pr(e,t)}var hr=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=lr(this,fr(t).call(this,e))).updateDimensionsImmediate=function(){if(n.mounted){var e=n.getContainerSize();if(e){var t=n.state,r=t.containerWidth,o=t.containerHeight,i=e.containerWidth,a=e.containerHeight;i===r&&a===o||n.setState({containerWidth:i,containerHeight:a})}}},n.state={containerWidth:-1,containerHeight:-1},n.handleResize=e.debounce>0?ar()(n.updateDimensionsImmediate,e.debounce):n.updateDimensionsImmediate,n}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)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}}),t&&pr(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.getContainerSize();e&&this.setState(e)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"getContainerSize",value:function(){return this.container?{containerWidth:this.container.clientWidth,containerHeight:this.container.clientHeight}:null}},{key:"renderChart",value:function(){var e=this.state,t=e.containerWidth,n=e.containerHeight;if(t<0||n<0)return null;var r=this.props,o=r.aspect,i=r.width,a=r.height,u=(r.minWidth,r.minHeight,r.maxHeight),s=r.children;T(i)||T(a);var l=T(i)?t:i,f=T(a)?n:a;return o&&o>0&&(l?f=l/o:f&&(l=f*o),u&&f>u&&(f=u)),c.cloneElement(s,{width:l,height:f})}},{key:"render",value:function(){var e=this,t=this.props,n=t.minWidth,r=t.minHeight,o=t.width,i=t.height,a=t.maxHeight,u=t.id,s=t.className,l={width:o,height:i,minWidth:n,minHeight:r,maxHeight:a};return c.createElement("div",{id:u,className:p()("recharts-responsive-container",s),style:l,ref:function(t){e.container=t}},this.renderChart(),c.createElement(ur.A,{handleWidth:!0,handleHeight:!0,onResize:this.handleResize}))}}])&&sr(n.prototype,r),o&&sr(n,o),t}(c.Component);hr.displayName="ResponsiveContainer",hr.propTypes={aspect:l().number,width:l().oneOfType([l().string,l().number]),height:l().oneOfType([l().string,l().number]),minHeight:l().oneOfType([l().string,l().number]),minWidth:l().oneOfType([l().string,l().number]),maxHeight:l().oneOfType([l().string,l().number]),children:l().node.isRequired,debounce:l().number,id:l().oneOfType([l().string,l().number]),className:l().oneOfType([l().string,l().number])},hr.defaultProps={width:"100%",height:"100%",debounce:0};const dr=hr;function yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mr(){return null}mr.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yr(n,!0).forEach((function(t){vr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yr(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},F),mr.displayName="Cell";const gr=mr;var br=n(75461),xr=n.n(br);function Or(){return Or=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Or.apply(this,arguments)}function wr(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var jr={className:l().string,children:l().oneOfType([l().arrayOf(l().node),l().node])};function kr(e){var t=e.children,n=e.className,r=wr(e,["children","className"]),o=p()("recharts-layer",n);return c.createElement("g",Or({className:o},r),t)}kr.propTypes=jr;const _r=kr;var Er=n(62780),Ar=n.n(Er),Tr=n(47282),Sr=n.n(Tr),Mr=n(79113),Pr=n.n(Mr),Cr=n(44441),Nr=n.n(Cr);function Dr(e){return function(e){if(Array.isArray(e))return Ir(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return Ir(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ir(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ir(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Rr=function(e){return e},Lr={"@@functional/placeholder":!0},Br=function(e){return e===Lr},zr=function(e){return function t(){return 0===arguments.length||1===arguments.length&&Br(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},Fr=function e(t,n){return 1===t?n:zr((function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.filter((function(e){return e!==Lr})).length;return a>=t?n.apply(void 0,o):e(t-a,zr((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=o.map((function(e){return Br(e)?t.shift():e}));return n.apply(void 0,Dr(i).concat(t))})))}))},Wr=function(e){return Fr(e.length,e)},Ur=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},Gr=Wr((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),qr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return Rr;var r=t.reverse(),o=r[0],i=r.slice(1);return function(){return i.reduce((function(e,t){return t(e)}),o.apply(void 0,arguments))}},Hr=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},Vr=function(e){var t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t&&o.every((function(e,n){return e===t[n]}))?n:(t=o,n=e.apply(void 0,o))}};var Xr=Wr((function(e,t,n){var r=+e;return r+n*(+t-r)})),Yr=Wr((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),Kr=Wr((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))}));const $r={rangeStep:function(e,t,n){for(var r=new(Nr())(e),o=0,i=[];r.lt(t)&&o<1e5;)i.push(r.toNumber()),r=r.add(n),o++;return i},getDigitCount:function(e){return 0===e?1:Math.floor(new(Nr())(e).abs().log(10).toNumber())+1},interpolateNumber:Xr,uninterpolateNumber:Yr,uninterpolateTruncation:Kr};function Zr(e){return function(e){if(Array.isArray(e))return eo(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Qr(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||Qr(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qr(e,t){if(e){if("string"===typeof e)return eo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eo(e,t):void 0}}function eo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function to(e){var t=Jr(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function no(e,t,n){if(e.lte(0))return new(Nr())(0);var r=$r.getDigitCount(e.toNumber()),o=new(Nr())(10).pow(r),i=e.div(o),a=1!==r?.05:.1,u=new(Nr())(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return t?u:new(Nr())(Math.ceil(u))}function ro(e,t,n){var r=1,o=new(Nr())(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new(Nr())(10).pow($r.getDigitCount(e)-1),o=new(Nr())(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new(Nr())(Math.floor(e)))}else 0===e?o=new(Nr())(Math.floor((t-1)/2)):n||(o=new(Nr())(Math.floor(e)));var a=Math.floor((t-1)/2);return qr(Gr((function(e){return o.add(new(Nr())(e-a).mul(r)).toNumber()})),Ur)(0,t)}function oo(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new(Nr())(0),tickMin:new(Nr())(0),tickMax:new(Nr())(0)};var i,a=no(new(Nr())(t).sub(e).div(n-1),r,o);i=e<=0&&t>=0?new(Nr())(0):(i=new(Nr())(e).add(t).div(2)).sub(new(Nr())(i).mod(a));var u=Math.ceil(i.sub(e).div(a).toNumber()),c=Math.ceil(new(Nr())(t).sub(i).div(a).toNumber()),s=u+c+1;return s>n?oo(e,t,n,r,o+1):(s<n&&(c=t>0?c+(n-s):c,u=t>0?u:u+(n-s)),{step:a,tickMin:i.sub(new(Nr())(u).mul(a)),tickMax:i.add(new(Nr())(c).mul(a))})}var io=Vr((function(e){var t=Jr(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),u=Jr(to([n,r]),2),c=u[0],s=u[1];if(c===-1/0||s===1/0){var l=s===1/0?[c].concat(Zr(Ur(0,o-1).map((function(){return 1/0})))):[].concat(Zr(Ur(0,o-1).map((function(){return-1/0}))),[s]);return n>r?Hr(l):l}if(c===s)return ro(c,o,i);var f=oo(c,s,a,i),p=f.step,h=f.tickMin,d=f.tickMax,y=$r.rangeStep(h,d.add(new(Nr())(.1).mul(p)),p);return n>r?Hr(y):y})),ao=(Vr((function(e){var t=Jr(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),u=Jr(to([n,r]),2),c=u[0],s=u[1];if(c===-1/0||s===1/0)return[n,r];if(c===s)return ro(c,o,i);var l=no(new(Nr())(s).sub(c).div(a-1),i,0),f=qr(Gr((function(e){return new(Nr())(c).add(new(Nr())(e).mul(l)).toNumber()})),Ur)(0,a).filter((function(e){return e>=c&&e<=s}));return n>r?Hr(f):f})),Vr((function(e,t){var n=Jr(e,2),r=n[0],o=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Jr(to([r,o]),2),u=a[0],c=a[1];if(u===-1/0||c===1/0)return[r,o];if(u===c)return[u];var s=Math.max(t,2),l=no(new(Nr())(c).sub(u).div(s-1),i,0),f=[].concat(Zr($r.rangeStep(new(Nr())(u),new(Nr())(c).sub(new(Nr())(.99).mul(l)),l)),[c]);return r>o?Hr(f):f})));function uo(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function co(e){var t;return 1===e.length&&(t=e,e=function(e,n){return uo(t(e),n)}),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)>0?o=i:r=i+1}return r}}}var so=co(uo),lo=so.right;so.left;const fo=lo;var po=Array.prototype,ho=(po.slice,po.map,Math.sqrt(50)),yo=Math.sqrt(10),vo=Math.sqrt(2);function mo(e,t,n){var r,o,i,a,u=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t<e)&&(o=e,e=t,t=o),0===(a=go(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),i=new Array(o=Math.ceil(t-e+1));++u<o;)i[u]=(e+u)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),i=new Array(o=Math.ceil(e-t+1));++u<o;)i[u]=(e-u)/a;return r&&i.reverse(),i}function go(e,t,n){var r=(t-e)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?(i>=ho?10:i>=yo?5:i>=vo?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=ho?10:i>=yo?5:i>=vo?2:1)}function bo(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=ho?o*=10:i>=yo?o*=5:i>=vo&&(o*=2),t<e?-o:o}function xo(e){return null===e?NaN:+e}function Oo(e,t,n){if(null==n&&(n=xo),r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}}function wo(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function jo(e,t){switch(arguments.length){case 0:break;case 1:this.interpolator(e);break;default:this.interpolator(t).domain(e)}return this}var ko="$";function _o(){}function Eo(e,t){var n=new _o;if(e instanceof _o)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,o=-1,i=e.length;if(null==t)for(;++o<i;)n.set(o,e[o]);else for(;++o<i;)n.set(t(r=e[o],o,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}_o.prototype=Eo.prototype={constructor:_o,has:function(e){return ko+e in this},get:function(e){return this[ko+e]},set:function(e,t){return this[ko+e]=t,this},remove:function(e){var t=ko+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===ko&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===ko&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===ko&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===ko&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===ko&&++e;return e},empty:function(){for(var e in this)if(e[0]===ko)return!1;return!0},each:function(e){for(var t in this)t[0]===ko&&e(this[t],t.slice(1),this)}};const Ao=Eo;function To(){}var So=Ao.prototype;function Mo(e,t){var n=new To;if(e instanceof To)e.each((function(e){n.add(e)}));else if(e){var r=-1,o=e.length;if(null==t)for(;++r<o;)n.add(e[r]);else for(;++r<o;)n.add(t(e[r],r,e))}return n}To.prototype=Mo.prototype={constructor:To,has:So.has,add:function(e){return this[ko+(e+="")]=e,this},remove:So.remove,clear:So.clear,values:So.keys,size:So.size,empty:So.empty,each:So.each};var Po=Array.prototype,Co=Po.map,No=Po.slice,Do={name:"implicit"};function Io(){var e=Ao(),t=[],n=[],r=Do;function o(o){var i=o+"",a=e.get(i);if(!a){if(r!==Do)return r;e.set(i,a=t.push(o))}return n[(a-1)%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=Ao();for(var r,i,a=-1,u=n.length;++a<u;)e.has(i=(r=n[a])+"")||e.set(i,t.push(r));return o},o.range=function(e){return arguments.length?(n=No.call(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return Io(t,n).unknown(r)},wo.apply(o,arguments),o}function Ro(){var e,t,n=Io().unknown(void 0),r=n.domain,o=n.range,i=[0,1],a=!1,u=0,c=0,s=.5;function l(){var n=r().length,l=i[1]<i[0],f=i[l-0],p=i[1-l];e=(p-f)/Math.max(1,n-u+2*c),a&&(e=Math.floor(e)),f+=(p-f-e*(n-u))*s,t=e*(1-u),a&&(f=Math.round(f),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}(n).map((function(t){return f+e*t}));return o(l?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),l()):r()},n.range=function(e){return arguments.length?(i=[+e[0],+e[1]],l()):i.slice()},n.rangeRound=function(e){return i=[+e[0],+e[1]],a=!0,l()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,l()):a},n.padding=function(e){return arguments.length?(u=Math.min(1,c=+e),l()):u},n.paddingInner=function(e){return arguments.length?(u=Math.min(1,e),l()):u},n.paddingOuter=function(e){return arguments.length?(c=+e,l()):c},n.align=function(e){return arguments.length?(s=Math.max(0,Math.min(1,e)),l()):s},n.copy=function(){return Ro(r(),i).round(a).paddingInner(u).paddingOuter(c).align(s)},wo.apply(l(),arguments)}function Lo(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Lo(t())},e}function Bo(){return Lo(Ro.apply(null,arguments).paddingInner(1))}function zo(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Fo(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Wo(){}var Uo=.7,Go=1/Uo,qo="\\s*([+-]?\\d+)\\s*",Ho="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Vo="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Xo=/^#([0-9a-f]{3,8})$/,Yo=new RegExp("^rgb\\("+[qo,qo,qo]+"\\)$"),Ko=new RegExp("^rgb\\("+[Vo,Vo,Vo]+"\\)$"),$o=new RegExp("^rgba\\("+[qo,qo,qo,Ho]+"\\)$"),Zo=new RegExp("^rgba\\("+[Vo,Vo,Vo,Ho]+"\\)$"),Jo=new RegExp("^hsl\\("+[Ho,Vo,Vo]+"\\)$"),Qo=new RegExp("^hsla\\("+[Ho,Vo,Vo,Ho]+"\\)$"),ei={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};function ti(){return this.rgb().formatHex()}function ni(){return this.rgb().formatRgb()}function ri(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Xo.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?oi(t):3===n?new ui(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ii(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ii(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Yo.exec(e))?new ui(t[1],t[2],t[3],1):(t=Ko.exec(e))?new ui(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=$o.exec(e))?ii(t[1],t[2],t[3],t[4]):(t=Zo.exec(e))?ii(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Jo.exec(e))?fi(t[1],t[2]/100,t[3]/100,1):(t=Qo.exec(e))?fi(t[1],t[2]/100,t[3]/100,t[4]):ei.hasOwnProperty(e)?oi(ei[e]):"transparent"===e?new ui(NaN,NaN,NaN,0):null}function oi(e){return new ui(e>>16&255,e>>8&255,255&e,1)}function ii(e,t,n,r){return r<=0&&(e=t=n=NaN),new ui(e,t,n,r)}function ai(e,t,n,r){return 1===arguments.length?((o=e)instanceof Wo||(o=ri(o)),o?new ui((o=o.rgb()).r,o.g,o.b,o.opacity):new ui):new ui(e,t,n,null==r?1:r);var o}function ui(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ci(){return"#"+li(this.r)+li(this.g)+li(this.b)}function si(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function li(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function fi(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new hi(e,t,n,r)}function pi(e){if(e instanceof hi)return new hi(e.h,e.s,e.l,e.opacity);if(e instanceof Wo||(e=ri(e)),!e)return new hi;if(e instanceof hi)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,u=i-o,c=(i+o)/2;return u?(a=t===i?(n-r)/u+6*(n<r):n===i?(r-t)/u+2:(t-n)/u+4,u/=c<.5?i+o:2-i-o,a*=60):u=c>0&&c<1?0:a,new hi(a,u,c,e.opacity)}function hi(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function di(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function yi(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}function vi(e){return function(){return e}}function mi(e,t){return function(n){return e+n*t}}function gi(e){return 1===(e=+e)?bi:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):vi(isNaN(t)?n:t)}}function bi(e,t){var n=t-e;return n?mi(e,n):vi(isNaN(e)?t:e)}zo(Wo,ri,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:ti,formatHex:ti,formatHsl:function(){return pi(this).formatHsl()},formatRgb:ni,toString:ni}),zo(ui,ai,Fo(Wo,{brighter:function(e){return e=null==e?Go:Math.pow(Go,e),new ui(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?Uo:Math.pow(Uo,e),new ui(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:ci,formatHex:ci,formatRgb:si,toString:si})),zo(hi,(function(e,t,n,r){return 1===arguments.length?pi(e):new hi(e,t,n,null==r?1:r)}),Fo(Wo,{brighter:function(e){return e=null==e?Go:Math.pow(Go,e),new hi(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?Uo:Math.pow(Uo,e),new hi(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new ui(di(e>=240?e-240:e+120,o,r),di(e,o,r),di(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));const xi=function e(t){var n=gi(t);function r(e,t){var r=n((e=ai(e)).r,(t=ai(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=bi(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Oi(e){return function(t){var n,r,o=t.length,i=new Array(o),a=new Array(o),u=new Array(o);for(n=0;n<o;++n)r=ai(t[n]),i[n]=r.r||0,a[n]=r.g||0,u[n]=r.b||0;return i=e(i),a=e(a),u=e(u),r.opacity=1,function(e){return r.r=i(e),r.g=a(e),r.b=u(e),r+""}}}Oi((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,u=r<t-1?e[r+2]:2*i-o;return yi((n-r/t)*t,a,o,i,u)}})),Oi((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],i=e[r%t],a=e[(r+1)%t],u=e[(r+2)%t];return yi((n-r/t)*t,o,i,a,u)}}));function wi(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=Mi(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function ji(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function ki(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function _i(e,t){var n,r={},o={};for(n in null!==e&&"object"===typeof e||(e={}),null!==t&&"object"===typeof t||(t={}),t)n in e?r[n]=Mi(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var Ei=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ai=new RegExp(Ei.source,"g");function Ti(e,t){var n,r,o,i=Ei.lastIndex=Ai.lastIndex=0,a=-1,u=[],c=[];for(e+="",t+="";(n=Ei.exec(e))&&(r=Ai.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),u[a]?u[a]+=o:u[++a]=o),(n=n[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:ki(n,r)})),i=Ai.lastIndex;return i<t.length&&(o=t.slice(i),u[a]?u[a]+=o:u[++a]=o),u.length<2?c[0]?function(e){return function(t){return e(t)+""}}(c[0].x):function(e){return function(){return e}}(t):(t=c.length,function(e){for(var n,r=0;r<t;++r)u[(n=c[r]).i]=n.x(e);return u.join("")})}function Si(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function Mi(e,t){var n,r,o=typeof t;return null==t||"boolean"===o?vi(t):("number"===o?ki:"string"===o?(n=ri(t))?(t=n,xi):Ti:t instanceof ri?xi:t instanceof Date?ji:(r=t,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(t)?wi:"function"!==typeof t.valueOf&&"function"!==typeof t.toString||isNaN(t)?_i:ki:Si))(e,t)}function Pi(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Ci(e){return+e}var Ni=[0,1];function Di(e){return e}function Ii(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function Ri(e){var t,n=e[0],r=e[e.length-1];return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function Li(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=Ii(o,r),i=n(a,i)):(r=Ii(r,o),i=n(i,a)),function(e){return i(r(e))}}function Bi(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=Ii(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=fo(e,t,1,r)-1;return i[n](o[n](t))}}function zi(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Fi(){var e,t,n,r,o,i,a=Ni,u=Ni,c=Mi,s=Di;function l(){return r=Math.min(a.length,u.length)>2?Bi:Li,o=i=null,f}function f(t){return isNaN(t=+t)?n:(o||(o=r(a.map(e),u,c)))(e(s(t)))}return f.invert=function(n){return s(t((i||(i=r(u,a.map(e),ki)))(n)))},f.domain=function(e){return arguments.length?(a=Co.call(e,Ci),s===Di||(s=Ri(a)),l()):a.slice()},f.range=function(e){return arguments.length?(u=No.call(e),l()):u.slice()},f.rangeRound=function(e){return u=No.call(e),c=Pi,l()},f.clamp=function(e){return arguments.length?(s=e?Ri(a):Di,f):s!==Di},f.interpolate=function(e){return arguments.length?(c=e,l()):c},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,l()}}function Wi(e,t){return Fi()(e,t)}var Ui,Gi=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function qi(e){if(!(t=Gi.exec(e)))throw new Error("invalid format: "+e);var t;return new Hi({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]})}function Hi(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function Vi(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Xi(e){return(e=Vi(Math.abs(e)))?e[1]:NaN}function Yi(e,t){var n=Vi(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}qi.prototype=Hi.prototype,Hi.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Ki={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Yi(100*e,t)},r:Yi,s:function(e,t){var n=Vi(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(Ui=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Vi(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function $i(e){return e}var Zi,Ji,Qi,ea=Array.prototype.map,ta=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function na(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?$i:(t=ea.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,u=t[0],c=0;o>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),i.push(e.substring(o-=u,o+u)),!((c+=u+1)>r));)u=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",u=void 0===e.numerals?$i:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(ea.call(e.numerals,String)),c=void 0===e.percent?"%":e.percent+"",s=void 0===e.minus?"-":e.minus+"",l=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=qi(e)).fill,n=e.align,f=e.sign,p=e.symbol,h=e.zero,d=e.width,y=e.comma,v=e.precision,m=e.trim,g=e.type;"n"===g?(y=!0,g="g"):Ki[g]||(void 0===v&&(v=12),m=!0,g="g"),(h||"0"===t&&"="===n)&&(h=!0,t="0",n="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",x="$"===p?i:/[%p]/.test(g)?c:"",O=Ki[g],w=/[defgprs%]/.test(g);function j(e){var o,i,c,p=b,j=x;if("c"===g)j=O(e)+j,e="";else{var k=(e=+e)<0||1/e<0;if(e=isNaN(e)?l:O(Math.abs(e),v),m&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),k&&0===+e&&"+"!==f&&(k=!1),p=(k?"("===f?f:s:"-"===f||"("===f?"":f)+p,j=("s"===g?ta[8+Ui/3]:"")+j+(k&&"("===f?")":""),w)for(o=-1,i=e.length;++o<i;)if(48>(c=e.charCodeAt(o))||c>57){j=(46===c?a+e.slice(o+1):e.slice(o))+j,e=e.slice(0,o);break}}y&&!h&&(e=r(e,1/0));var _=p.length+e.length+j.length,E=_<d?new Array(d-_+1).join(t):"";switch(y&&h&&(e=r(E+e,E.length?d-j.length:1/0),E=""),n){case"<":e=p+e+j+E;break;case"=":e=p+E+e+j;break;case"^":e=E.slice(0,_=E.length>>1)+p+e+j+E.slice(_);break;default:e=E+p+e+j}return u(e)}return v=void 0===v?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),j.toString=function(){return e+""},j}return{format:f,formatPrefix:function(e,t){var n=f(((e=qi(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Xi(t)/3))),o=Math.pow(10,-r),i=ta[8+r/3];return function(e){return n(o*e)+i}}}}function ra(e,t,n,r){var o,i=bo(e,t,n);switch((r=qi(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Xi(t)/3)))-Xi(Math.abs(e)))}(i,a))||(r.precision=o),Qi(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Xi(t)-Xi(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-Xi(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return Ji(r)}function oa(e){var t=e.domain;return e.ticks=function(e){var n=t();return mo(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return ra(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o=t(),i=0,a=o.length-1,u=o[i],c=o[a];return c<u&&(r=u,u=c,c=r,r=i,i=a,a=r),(r=go(u,c,n))>0?r=go(u=Math.floor(u/r)*r,c=Math.ceil(c/r)*r,n):r<0&&(r=go(u=Math.ceil(u*r)/r,c=Math.floor(c*r)/r,n)),r>0?(o[i]=Math.floor(u/r)*r,o[a]=Math.ceil(c/r)*r,t(o)):r<0&&(o[i]=Math.ceil(u*r)/r,o[a]=Math.floor(c*r)/r,t(o)),e},e}function ia(){var e=Wi(Di,Di);return e.copy=function(){return zi(e,ia())},wo.apply(e,arguments),oa(e)}function aa(e){var t;function n(e){return isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Co.call(t,Ci),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return aa(e).unknown(t)},e=arguments.length?Co.call(e,Ci):[0,1],oa(n)}function ua(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}function ca(e){return Math.log(e)}function sa(e){return Math.exp(e)}function la(e){return-Math.log(-e)}function fa(e){return-Math.exp(-e)}function pa(e){return isFinite(e)?+("1e"+e):e<0?0:e}function ha(e){return function(t){return-e(-t)}}function da(e){var t,n,r=e(ca,sa),o=r.domain,i=10;function a(){return t=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}(i),n=function(e){return 10===e?pa:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}(i),o()[0]<0?(t=ha(t),n=ha(n),e(la,fa)):e(ca,sa),r}return r.base=function(e){return arguments.length?(i=+e,a()):i},r.domain=function(e){return arguments.length?(o(e),a()):o()},r.ticks=function(e){var r,a=o(),u=a[0],c=a[a.length-1];(r=c<u)&&(p=u,u=c,c=p);var s,l,f,p=t(u),h=t(c),d=null==e?10:+e,y=[];if(!(i%1)&&h-p<d){if(p=Math.round(p)-1,h=Math.round(h)+1,u>0){for(;p<h;++p)for(l=1,s=n(p);l<i;++l)if(!((f=s*l)<u)){if(f>c)break;y.push(f)}}else for(;p<h;++p)for(l=i-1,s=n(p);l>=1;--l)if(!((f=s*l)<u)){if(f>c)break;y.push(f)}}else y=mo(p,h,Math.min(h-p,d)).map(n);return r?y.reverse():y},r.tickFormat=function(e,o){if(null==o&&(o=10===i?".0e":","),"function"!==typeof o&&(o=Ji(o)),e===1/0)return o;null==e&&(e=10);var a=Math.max(1,i*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*i<i-.5&&(r*=i),r<=a?o(e):""}},r.nice=function(){return o(ua(o(),{floor:function(e){return n(Math.floor(t(e)))},ceil:function(e){return n(Math.ceil(t(e)))}}))},r}function ya(){var e=da(Fi()).domain([1,10]);return e.copy=function(){return zi(e,ya()).base(e.base())},wo.apply(e,arguments),e}function va(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function ma(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function ga(e){var t=1,n=e(va(t),ma(t));return n.constant=function(n){return arguments.length?e(va(t=+n),ma(t)):t},oa(n)}function ba(){var e=ga(Fi());return e.copy=function(){return zi(e,ba()).constant(e.constant())},wo.apply(e,arguments)}function xa(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Oa(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function wa(e){return e<0?-e*e:e*e}function ja(e){var t=e(Di,Di),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(Di,Di):.5===n?e(Oa,wa):e(xa(n),xa(1/n)):n},oa(t)}function ka(){var e=ja(Fi());return e.copy=function(){return zi(e,ka()).exponent(e.exponent())},wo.apply(e,arguments),e}function _a(){return ka.apply(null,arguments).exponent(.5)}function Ea(){var e,t=[],n=[],r=[];function o(){var e=0,o=Math.max(1,n.length);for(r=new Array(o-1);++e<o;)r[e-1]=Oo(t,e/o);return i}function i(t){return isNaN(t=+t)?e:n[fo(r,t)]}return i.invertExtent=function(e){var o=n.indexOf(e);return o<0?[NaN,NaN]:[o>0?r[o-1]:t[0],o<r.length?r[o]:t[t.length-1]]},i.domain=function(e){if(!arguments.length)return t.slice();t=[];for(var n,r=0,i=e.length;r<i;++r)null==(n=e[r])||isNaN(n=+n)||t.push(n);return t.sort(uo),o()},i.range=function(e){return arguments.length?(n=No.call(e),o()):n.slice()},i.unknown=function(t){return arguments.length?(e=t,i):e},i.quantiles=function(){return r.slice()},i.copy=function(){return Ea().domain(t).range(n).unknown(e)},wo.apply(i,arguments)}function Aa(){var e,t=0,n=1,r=1,o=[.5],i=[0,1];function a(t){return t<=t?i[fo(o,t,0,r)]:e}function u(){var e=-1;for(o=new Array(r);++e<r;)o[e]=((e+1)*n-(e-r)*t)/(r+1);return a}return a.domain=function(e){return arguments.length?(t=+e[0],n=+e[1],u()):[t,n]},a.range=function(e){return arguments.length?(r=(i=No.call(e)).length-1,u()):i.slice()},a.invertExtent=function(e){var a=i.indexOf(e);return a<0?[NaN,NaN]:a<1?[t,o[0]]:a>=r?[o[r-1],n]:[o[a-1],o[a]]},a.unknown=function(t){return arguments.length?(e=t,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return Aa().domain([t,n]).range(i).unknown(e)},wo.apply(oa(a),arguments)}function Ta(){var e,t=[.5],n=[0,1],r=1;function o(o){return o<=o?n[fo(t,o,0,r)]:e}return o.domain=function(e){return arguments.length?(t=No.call(e),r=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(e){return arguments.length?(n=No.call(e),r=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return Ta().domain(t).range(n).unknown(e)},wo.apply(o,arguments)}Zi=na({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Ji=Zi.format,Qi=Zi.formatPrefix;var Sa=new Date,Ma=new Date;function Pa(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,i){var a,u=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r)||!(i>0))return u;do{u.push(a=new Date(+n)),t(n,i),e(n)}while(a<n&&n<r);return u},o.filter=function(n){return Pa((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return Sa.setTime(+t),Ma.setTime(+r),e(Sa),e(Ma),Math.floor(n(Sa,Ma))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e===0}:function(t){return o.count(0,t)%e===0}):o:null}),o}var Ca=Pa((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));Ca.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Pa((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};const Na=Ca;Ca.range;var Da=Pa((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}));const Ia=Da;Da.range;var Ra=1e3,La=6e4,Ba=36e5,za=864e5,Fa=6048e5;function Wa(e){return Pa((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*La)/Fa}))}var Ua=Wa(0),Ga=Wa(1),qa=Wa(2),Ha=Wa(3),Va=Wa(4),Xa=Wa(5),Ya=Wa(6),Ka=(Ua.range,Ga.range,qa.range,Ha.range,Va.range,Xa.range,Ya.range,Pa((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*La)/za}),(function(e){return e.getDate()-1})));const $a=Ka;Ka.range;var Za=Pa((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ra-e.getMinutes()*La)}),(function(e,t){e.setTime(+e+t*Ba)}),(function(e,t){return(t-e)/Ba}),(function(e){return e.getHours()}));const Ja=Za;Za.range;var Qa=Pa((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ra)}),(function(e,t){e.setTime(+e+t*La)}),(function(e,t){return(t-e)/La}),(function(e){return e.getMinutes()}));const eu=Qa;Qa.range;var tu=Pa((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*Ra)}),(function(e,t){return(t-e)/Ra}),(function(e){return e.getUTCSeconds()}));const nu=tu;tu.range;var ru=Pa((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));ru.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Pa((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):ru:null};const ou=ru;ru.range;function iu(e){return Pa((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/Fa}))}var au=iu(0),uu=iu(1),cu=iu(2),su=iu(3),lu=iu(4),fu=iu(5),pu=iu(6),hu=(au.range,uu.range,cu.range,su.range,lu.range,fu.range,pu.range,Pa((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/za}),(function(e){return e.getUTCDate()-1})));const du=hu;hu.range;var yu=Pa((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));yu.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Pa((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};const vu=yu;yu.range;function mu(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 gu(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 bu(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var xu,Ou,wu,ju={"-":"",_:" ",0:"0"},ku=/^\s*\d+/,_u=/^%/,Eu=/[\\^$*+?|[\]().{}]/g;function Au(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function Tu(e){return e.replace(Eu,"\\$&")}function Su(e){return new RegExp("^(?:"+e.map(Tu).join("|")+")","i")}function Mu(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function Pu(e,t,n){var r=ku.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Cu(e,t,n){var r=ku.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Nu(e,t,n){var r=ku.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Du(e,t,n){var r=ku.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Iu(e,t,n){var r=ku.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Ru(e,t,n){var r=ku.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Lu(e,t,n){var r=ku.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Bu(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function zu(e,t,n){var r=ku.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function Fu(e,t,n){var r=ku.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Wu(e,t,n){var r=ku.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Uu(e,t,n){var r=ku.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Gu(e,t,n){var r=ku.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function qu(e,t,n){var r=ku.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Hu(e,t,n){var r=ku.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Vu(e,t,n){var r=ku.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Xu(e,t,n){var r=ku.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Yu(e,t,n){var r=_u.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Ku(e,t,n){var r=ku.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function $u(e,t,n){var r=ku.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Zu(e,t){return Au(e.getDate(),t,2)}function Ju(e,t){return Au(e.getHours(),t,2)}function Qu(e,t){return Au(e.getHours()%12||12,t,2)}function ec(e,t){return Au(1+$a.count(Na(e),e),t,3)}function tc(e,t){return Au(e.getMilliseconds(),t,3)}function nc(e,t){return tc(e,t)+"000"}function rc(e,t){return Au(e.getMonth()+1,t,2)}function oc(e,t){return Au(e.getMinutes(),t,2)}function ic(e,t){return Au(e.getSeconds(),t,2)}function ac(e){var t=e.getDay();return 0===t?7:t}function uc(e,t){return Au(Ua.count(Na(e)-1,e),t,2)}function cc(e){var t=e.getDay();return t>=4||0===t?Va(e):Va.ceil(e)}function sc(e,t){return e=cc(e),Au(Va.count(Na(e),e)+(4===Na(e).getDay()),t,2)}function lc(e){return e.getDay()}function fc(e,t){return Au(Ga.count(Na(e)-1,e),t,2)}function pc(e,t){return Au(e.getFullYear()%100,t,2)}function hc(e,t){return Au((e=cc(e)).getFullYear()%100,t,2)}function dc(e,t){return Au(e.getFullYear()%1e4,t,4)}function yc(e,t){var n=e.getDay();return Au((e=n>=4||0===n?Va(e):Va.ceil(e)).getFullYear()%1e4,t,4)}function vc(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Au(t/60|0,"0",2)+Au(t%60,"0",2)}function mc(e,t){return Au(e.getUTCDate(),t,2)}function gc(e,t){return Au(e.getUTCHours(),t,2)}function bc(e,t){return Au(e.getUTCHours()%12||12,t,2)}function xc(e,t){return Au(1+du.count(vu(e),e),t,3)}function Oc(e,t){return Au(e.getUTCMilliseconds(),t,3)}function wc(e,t){return Oc(e,t)+"000"}function jc(e,t){return Au(e.getUTCMonth()+1,t,2)}function kc(e,t){return Au(e.getUTCMinutes(),t,2)}function _c(e,t){return Au(e.getUTCSeconds(),t,2)}function Ec(e){var t=e.getUTCDay();return 0===t?7:t}function Ac(e,t){return Au(au.count(vu(e)-1,e),t,2)}function Tc(e){var t=e.getUTCDay();return t>=4||0===t?lu(e):lu.ceil(e)}function Sc(e,t){return e=Tc(e),Au(lu.count(vu(e),e)+(4===vu(e).getUTCDay()),t,2)}function Mc(e){return e.getUTCDay()}function Pc(e,t){return Au(uu.count(vu(e)-1,e),t,2)}function Cc(e,t){return Au(e.getUTCFullYear()%100,t,2)}function Nc(e,t){return Au((e=Tc(e)).getUTCFullYear()%100,t,2)}function Dc(e,t){return Au(e.getUTCFullYear()%1e4,t,4)}function Ic(e,t){var n=e.getUTCDay();return Au((e=n>=4||0===n?lu(e):lu.ceil(e)).getUTCFullYear()%1e4,t,4)}function Rc(){return"+0000"}function Lc(){return"%"}function Bc(e){return+e}function zc(e){return Math.floor(+e/1e3)}!function(e){xu=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,u=e.months,c=e.shortMonths,s=Su(o),l=Mu(o),f=Su(i),p=Mu(i),h=Su(a),d=Mu(a),y=Su(u),v=Mu(u),m=Su(c),g=Mu(c),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return u[e.getMonth()]},c:null,d:Zu,e:Zu,f:nc,g:hc,G:yc,H:Ju,I:Qu,j:ec,L:tc,m:rc,M:oc,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Bc,s:zc,S:ic,u:ac,U:uc,V:sc,w:lc,W:fc,x:null,X:null,y:pc,Y:dc,Z:vc,"%":Lc},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return u[e.getUTCMonth()]},c:null,d:mc,e:mc,f:wc,g:Nc,G:Ic,H:gc,I:bc,j:xc,L:Oc,m:jc,M:kc,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Bc,s:zc,S:_c,u:Ec,U:Ac,V:Sc,w:Mc,W:Pc,x:null,X:null,y:Cc,Y:Dc,Z:Rc,"%":Lc},O={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=d[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=v[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return k(e,t,n,r)},d:Wu,e:Wu,f:Xu,g:Lu,G:Ru,H:Gu,I:Gu,j:Uu,L:Vu,m:Fu,M:qu,p:function(e,t,n){var r=s.exec(t.slice(n));return r?(e.p=l[r[0].toLowerCase()],n+r[0].length):-1},q:zu,Q:Ku,s:$u,S:Hu,u:Cu,U:Nu,V:Du,w:Pu,W:Iu,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:Lu,Y:Ru,Z:Bu,"%":Yu};function w(e,t){return function(n){var r,o,i,a=[],u=-1,c=0,s=e.length;for(n instanceof Date||(n=new Date(+n));++u<s;)37===e.charCodeAt(u)&&(a.push(e.slice(c,u)),null!=(o=ju[r=e.charAt(++u)])?r=e.charAt(++u):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),c=u+1);return a.push(e.slice(c,u)),a.join("")}}function j(e,t){return function(n){var r,o,i=bu(1900,void 0,1);if(k(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=gu(bu(i.y,0,1))).getUTCDay(),r=o>4||0===o?uu.ceil(r):uu(r),r=du.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=mu(bu(i.y,0,1))).getDay(),r=o>4||0===o?Ga.ceil(r):Ga(r),r=$a.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?gu(bu(i.y,0,1)).getUTCDay():mu(bu(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,gu(i)):mu(i)}}function k(e,t,n,r){for(var o,i,a=0,u=t.length,c=n.length;a<u;){if(r>=c)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=O[o in ju?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=w(n,b),b.X=w(r,b),b.c=w(t,b),x.x=w(n,x),x.X=w(r,x),x.c=w(t,x),{format:function(e){var t=w(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=j(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=w(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=j(e+="",!0);return t.toString=function(){return e},t}}}(e),Ou=xu.format,xu.parse,wu=xu.utcFormat,xu.utcParse}({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"]});var Fc=1e3,Wc=60*Fc,Uc=60*Wc,Gc=24*Uc,qc=7*Gc,Hc=30*Gc,Vc=365*Gc;function Xc(e){return new Date(e)}function Yc(e){return e instanceof Date?+e:+new Date(+e)}function Kc(e,t,n,r,o,i,a,u,c){var s=Wi(Di,Di),l=s.invert,f=s.domain,p=c(".%L"),h=c(":%S"),d=c("%I:%M"),y=c("%I %p"),v=c("%a %d"),m=c("%b %d"),g=c("%B"),b=c("%Y"),x=[[a,1,Fc],[a,5,5*Fc],[a,15,15*Fc],[a,30,30*Fc],[i,1,Wc],[i,5,5*Wc],[i,15,15*Wc],[i,30,30*Wc],[o,1,Uc],[o,3,3*Uc],[o,6,6*Uc],[o,12,12*Uc],[r,1,Gc],[r,2,2*Gc],[n,1,qc],[t,1,Hc],[t,3,3*Hc],[e,1,Vc]];function O(u){return(a(u)<u?p:i(u)<u?h:o(u)<u?d:r(u)<u?y:t(u)<u?n(u)<u?v:m:e(u)<u?g:b)(u)}function w(t,n,r,o){if(null==t&&(t=10),"number"===typeof t){var i=Math.abs(r-n)/t,a=co((function(e){return e[2]})).right(x,i);a===x.length?(o=bo(n/Vc,r/Vc,t),t=e):a?(o=(a=x[i/x[a-1][2]<x[a][2]/i?a-1:a])[1],t=a[0]):(o=Math.max(bo(n,r,t),1),t=u)}return null==o?t:t.every(o)}return s.invert=function(e){return new Date(l(e))},s.domain=function(e){return arguments.length?f(Co.call(e,Yc)):f().map(Xc)},s.ticks=function(e,t){var n,r=f(),o=r[0],i=r[r.length-1],a=i<o;return a&&(n=o,o=i,i=n),n=(n=w(e,o,i,t))?n.range(o,i+1):[],a?n.reverse():n},s.tickFormat=function(e,t){return null==t?O:c(t)},s.nice=function(e,t){var n=f();return(e=w(e,n[0],n[n.length-1],t))?f(ua(n,e)):s},s.copy=function(){return zi(s,Kc(e,t,n,r,o,i,a,u,c))},s}function $c(){return wo.apply(Kc(Na,Ia,Ua,$a,Ja,eu,nu,ou,Ou).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var Zc=Pa((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}));const Jc=Zc;Zc.range;var Qc=Pa((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Ba)}),(function(e,t){return(t-e)/Ba}),(function(e){return e.getUTCHours()}));const es=Qc;Qc.range;var ts=Pa((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*La)}),(function(e,t){return(t-e)/La}),(function(e){return e.getUTCMinutes()}));const ns=ts;ts.range;function rs(){return wo.apply(Kc(vu,Jc,au,du,es,ns,nu,ou,wu).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function os(){var e,t,n,r,o,i=0,a=1,u=Di,c=!1;function s(t){return isNaN(t=+t)?o:u(0===n?.5:(t=(r(t)-e)*n,c?Math.max(0,Math.min(1,t)):t))}return s.domain=function(o){return arguments.length?(e=r(i=+o[0]),t=r(a=+o[1]),n=e===t?0:1/(t-e),s):[i,a]},s.clamp=function(e){return arguments.length?(c=!!e,s):c},s.interpolator=function(e){return arguments.length?(u=e,s):u},s.unknown=function(e){return arguments.length?(o=e,s):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),s}}function is(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function as(){var e=oa(os()(Di));return e.copy=function(){return is(e,as())},jo.apply(e,arguments)}function us(){var e=da(os()).domain([1,10]);return e.copy=function(){return is(e,us()).base(e.base())},jo.apply(e,arguments)}function cs(){var e=ga(os());return e.copy=function(){return is(e,cs()).constant(e.constant())},jo.apply(e,arguments)}function ss(){var e=ja(os());return e.copy=function(){return is(e,ss()).exponent(e.exponent())},jo.apply(e,arguments)}function ls(){return ss.apply(null,arguments).exponent(.5)}function fs(){var e=[],t=Di;function n(n){if(!isNaN(n=+n))return t((fo(e,n)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(var r,o=0,i=t.length;o<i;++o)null==(r=t[o])||isNaN(r=+r)||e.push(r);return e.sort(uo),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return fs(t).domain(e)},jo.apply(n,arguments)}function ps(){var e,t,n,r,o,i,a,u=0,c=.5,s=1,l=Di,f=!1;function p(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(e<t?r:o),l(f?Math.max(0,Math.min(1,e)):e))}return p.domain=function(a){return arguments.length?(e=i(u=+a[0]),t=i(c=+a[1]),n=i(s=+a[2]),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),p):[u,c,s]},p.clamp=function(e){return arguments.length?(f=!!e,p):f},p.interpolator=function(e){return arguments.length?(l=e,p):l},p.unknown=function(e){return arguments.length?(a=e,p):a},function(a){return i=a,e=a(u),t=a(c),n=a(s),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),p}}function hs(){var e=oa(ps()(Di));return e.copy=function(){return is(e,hs())},jo.apply(e,arguments)}function ds(){var e=da(ps()).domain([.1,1,10]);return e.copy=function(){return is(e,ds()).base(e.base())},jo.apply(e,arguments)}function ys(){var e=ga(ps());return e.copy=function(){return is(e,ys()).constant(e.constant())},jo.apply(e,arguments)}function vs(){var e=ja(ps());return e.copy=function(){return is(e,vs()).exponent(e.exponent())},jo.apply(e,arguments)}function ms(){return vs.apply(null,arguments).exponent(.5)}function gs(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],u=a.length;i<o;++i)for(r=a,a=e[t[i]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}var bs=Array.prototype.slice;function xs(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Os(e,t){return e[t]}function ws(e){return ws="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ws(e)}function js(){return js=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},js.apply(this,arguments)}function ks(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function _s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Es(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function As(e,t){return!t||"object"!==ws(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ts(e){return Ts=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ts(e)}function Ss(e,t){return Ss=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ss(e,t)}var Ms=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),As(this,Ts(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)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}}),t&&Ss(e,t)}(t,e),n=t,r=[{key:"renderErrorBars",value:function(){var e=this.props,t=e.offset,n=e.layout,r=e.width,o=e.dataKey,i=e.data,a=e.dataPointFormatter,u=e.xAxis,s=e.yAxis,l=_s(e,["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"]),f=K(l);return i.map((function(e,i){var l,p,h,d,y,v,m,g,b,x,O,w,j=a(e,o),k=j.x,_=j.y,E=j.value,A=j.errorVal;if(!A)return null;if(Array.isArray(A)){var T=ks(A,2);O=T[0],w=T[1]}else O=w=A;return"vertical"===n?(m=u.scale,p=_+t,h=m((l=E)-O),d=p+r,g={x1:y=m(l+w),y1:d,x2:y,y2:v=p-r},b={x1:h,y1:p,x2:y,y2:p},x={x1:h,y1:d,x2:h,y2:v}):"horizontal"===n&&(m=s.scale,h=(l=k+t)-r,y=l+r,d=m((p=E)-O),g={x1:h,y1:v=m(p+w),x2:y,y2:v},b={x1:l,y1:d,x2:l,y2:v},x={x1:h,y1:d,x2:y,y2:d}),c.createElement(_r,js({className:"recharts-errorBar",key:"bar-".concat(i)},f),c.createElement("line",g),c.createElement("line",b),c.createElement("line",x))}))}},{key:"render",value:function(){return c.createElement(_r,{className:"recharts-errorBars"},this.renderErrorBars())}}],r&&Es(n.prototype,r),o&&Es(n,o),t}(c.Component);Ms.propTypes={dataKey:l().oneOfType([l().string,l().number,l().func]).isRequired,data:l().array,xAxis:l().object,yAxis:l().object,layout:l().string,dataPointFormatter:l().func,stroke:l().string,strokeWidth:l().number,width:l().number,offset:l().number},Ms.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};const Ps=Ms;function Cs(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Ns(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ds(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ns(n,!0).forEach((function(t){Is(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ns(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Is(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rs=function(e,t,n){return d()(e)||d()(t)?n:M(t)?w()(e,t,n):i()(t)?t(e):n},Ls=function(e,t,n,r){var o=Pr()(e,(function(e){return Rs(e,t)}));if("number"===n){var i=o.filter((function(e){return S(e)||parseFloat(e,10)}));return i.length?[Sr()(i),Ar()(i)]:[1/0,-1/0]}return(r?o.filter((function(e){return!d()(e)})):o).map((function(e){return M(e)?e:""}))},Bs=function(e){var t,n=e.type.displayName,r=e.props,o=r.stroke,i=r.fill;switch(n){case"Line":t=o;break;case"Area":case"Radar":t=o&&"none"!==o?o:i;break;default:t=i}return t},zs=function(e){var t,n=e.children,r=e.formatedGraphicalItems,o=e.legendWidth,i=e.legendContent,a=Y(n,xt);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===i?(r||[]).reduce((function(e,t){var n=t.item,r=t.props,o=r.sectors||r.data||[];return e.concat(o.map((function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(r||[]).map((function(e){var t=e.item,n=t.props,r=n.dataKey,o=n.name,i=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||i||"square",color:Bs(t),value:o||r,payload:t.props}})),Ds({},a.props,{},xt.getWithHeight(a,o),{payload:t,item:a})):null},Fs=function(e,t,n,r){var o=t.props.children,i=X(o,Ps).filter((function(e){var t=e.props.direction;return!(!d()(t)&&!d()(r))||r.indexOf(t)>=0}));if(i&&i.length){var a=i.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=Rs(t,n,0),o=x()(r)?[Sr()(r),Ar()(r)]:[r,r],i=a.reduce((function(e,n){var r=Rs(t,n,0),i=o[0]-Math.abs(x()(r)?r[0]:r),a=o[1]+Math.abs(x()(r)?r[1]:r);return[Math.min(i,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]}),[1/0,-1/0])}return null},Ws=function(e,t,n,r){var o=t.map((function(t){var o=t.props.dataKey;return"number"===n&&o&&Fs(e,t,o)||Ls(e,o,n,r)}));if("number"===n)return o.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var i={};return o.reduce((function(e,t){for(var n=0,r=t.length;n<r;n++)i[t[n]]||(i[t[n]]=!0,e.push(t[n]));return e}),[])},Us=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},Gs=function(e,t,n){var r,o,i=e.map((function(e){return e.coordinate===t&&(r=!0),e.coordinate===n&&(o=!0),e.coordinate}));return r||i.push(t),o||i.push(n),i},qs=function(e,t,n){if(!e)return null;var r=e.scale,o=e.duplicateDomain,i=e.type,a=e.range,u=(t||n)&&"category"===i&&r.bandwidth?r.bandwidth()/2:0;return u="angleAxis"===e.axisType?2*A(a[0]-a[1])*u:u,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=o?o.indexOf(e):e;return{coordinate:r(t)+u,value:e,offset:u}})):e.isCategorial&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:r(e),value:e,index:t,offset:u}})):r.ticks&&!n?r.ticks(e.tickCount).map((function(e){return{coordinate:r(e)+u,value:e,offset:u}})):r.domain().map((function(e,t){return{coordinate:r(e)+u,value:o?o[e]:e,index:t,offset:u}}))},Hs=function(e,t,n){var r;return i()(n)?r=n:i()(t)&&(r=t),i()(e)||r?function(t,n,o,a){i()(e)&&e(t,n,o,a),i()(r)&&r(t,n,o,a)}:null},Vs=function(e,t){var n=e.scale,o=e.type,a=e.layout,u=e.axisType;if("auto"===n)return"radial"===a&&"radiusAxis"===u?{scale:Ro(),realScaleType:"band"}:"radial"===a&&"angleAxis"===u?{scale:ia(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0)?{scale:Bo(),realScaleType:"point"}:"category"===o?{scale:Ro(),realScaleType:"band"}:{scale:ia(),realScaleType:"linear"};if(v()(n)){var c="scale".concat(n.slice(0,1).toUpperCase()).concat(n.slice(1));return{scale:(r[c]||Bo)(),realScaleType:r[c]?c:"point"}}return i()(n)?{scale:n}:{scale:Bo(),realScaleType:"point"}},Xs=1e-4,Ys=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-Xs,i=Math.max(r[0],r[1])+Xs,a=e(t[0]),u=e(t[n-1]);(a<o||a>i||u<o||u>i)&&e.domain([t[0],t[n-1]])}},Ks={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0,a=0;a<t;++a){var u=k()(e[a][n][1])?e[a][n][0]:e[a][n][1];u>=0?(e[a][n][0]=o,e[a][n][1]=o+u,o=e[a][n][1]):(e[a][n][0]=i,e[a][n][1]=i+u,i=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}gs(e,t)}},none:gs,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r<i;++r){for(var a=0,u=0;a<n;++a)u+=e[a][r][1]||0;o[r][1]+=o[r][0]=-u/2}gs(e,t)}},wiggle:function(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var u=0,c=0,s=0;u<o;++u){for(var l=e[t[u]],f=l[a][1]||0,p=(f-(l[a-1][1]||0))/2,h=0;h<u;++h){var d=e[t[h]];p+=(d[a][1]||0)-(d[a-1][1]||0)}c+=f,s+=p*f}n[a-1][1]+=n[a-1][0]=i,c&&(i-=s/c)}n[a-1][1]+=n[a-1][0]=i,gs(e,t)}}},$s=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),o=function(){var e=Be([]),t=xs,n=gs,r=Os;function o(o){var i,a,u=e.apply(this,arguments),c=o.length,s=u.length,l=new Array(s);for(i=0;i<s;++i){for(var f,p=u[i],h=l[i]=new Array(c),d=0;d<c;++d)h[d]=f=[0,+r(o[d],p,d,o)],f.data=o[d];h.key=p}for(i=0,a=t(l);i<s;++i)l[a[i]].index=i;return n(l,a),l}return o.keys=function(t){return arguments.length?(e="function"===typeof t?t:Be(bs.call(t)),o):e},o.value=function(e){return arguments.length?(r="function"===typeof e?e:Be(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?xs:"function"===typeof e?e:Be(bs.call(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?gs:e,o):n},o}().keys(r).value((function(e,t){return+Rs(e,t,0)})).order(xs).offset(Ks[n]);return o(e)},Zs=function(e,t){var n=t.realScaleType,r=t.type,o=t.tickCount,i=t.originalDomain,a=t.allowDecimals,u=n||t.scale;if("auto"!==u&&"linear"!==u)return null;if(o&&"number"===r&&i&&("auto"===i[0]||"auto"===i[1])){var c=e.domain();if(!c.length)return null;var s=io(c,o,a);return e.domain(function(e,t){return"number"===t?[Sr()(e),Ar()(e)]:e}(s,r)),{niceTicks:s}}if(o&&"number"===r){var l=e.domain();return{niceTicks:ao(l,o,a)}}return null},Js=function(e){var t=e.axis,n=e.ticks,r=e.offset,o=e.bandSize,i=e.entry,a=e.index;if("category"===t.type)return n[a]?n[a].coordinate+r:null;var u=Rs(i,t.dataKey,t.domain[a]);return d()(u)?null:t.scale(u)-o/2+r},Qs=function(e,t,n){return Object.keys(e).reduce((function(r,o){var i=e[o].stackedData.reduce((function(e,r){var o=r.slice(t,n+1).reduce((function(e,t){return[Sr()(t.concat([e[0]]).filter(S)),Ar()(t.concat([e[1]]).filter(S))]}),[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],r[0]),Math.max(i[1],r[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},el=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,tl=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,nl=function(e,t,n){if(!x()(e))return t;var r=[];if(S(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(el.test(e[0])){var o=+el.exec(e[0])[1];r[0]=t[0]-o}else i()(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(S(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(tl.test(e[1])){var a=+tl.exec(e[1])[1];r[1]=t[1]+a}else i()(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},rl=function(e,t){if(e&&e.scale&&e.scale.bandwidth)return e.scale.bandwidth();if(e&&t&&t.length>=2){for(var n=Cn()(t,(function(e){return e.coordinate})),r=1/0,o=1,i=n.length;o<i;o++){var a=n[o],u=n[o-1];r=Math.min((a.coordinate||0)-(u.coordinate||0),r)}return r===1/0?0:r}return 0},ol=function(e,t,n){return e&&e.length?wt()(e,w()(n,"type.defaultProps.domain"))?t:e:t};function il(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function al(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?il(n,!0).forEach((function(t){ul(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):il(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ul(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var sl=Math.PI/180,ll=function(e){return 180*e/Math.PI},fl=function(e,t,n,r){return{x:e+Math.cos(-sl*r)*n,y:t+Math.sin(-sl*r)*n}},pl=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},hl=function(e,t){var n=e.x,r=e.y,o=t.cx,i=t.cy,a=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-i,2))}({x:n,y:r},{x:o,y:i});if(a<=0)return{radius:a};var u=(n-o)/a,c=Math.acos(u);return r>i&&(c=2*Math.PI-c),{radius:a,angle:ll(c),angleInRadian:c}},dl=function(e,t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360);return e+360*Math.min(o,i)},yl=function(e,t){var n=e.x,r=e.y,o=hl({x:n,y:r},t),i=o.radius,a=o.angle,u=t.innerRadius,c=t.outerRadius;if(i<u||i>c)return!1;if(0===i)return!0;var s,l=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:t-360*i,endAngle:n-360*i}}(t),f=l.startAngle,p=l.endAngle,h=a;if(f<=p){for(;h>p;)h-=360;for(;h<f;)h+=360;s=h>=f&&h<=p}else{for(;h>f;)h-=360;for(;h<p;)h+=360;s=h>=p&&h<=f}return s?al({},t,{radius:i,angle:dl(h,t)}):null};function vl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ml(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gl(e){return gl="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gl(e)}function bl(){return bl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bl.apply(this,arguments)}function xl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ol(e,t){return!t||"object"!==gl(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function wl(e){return wl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},wl(e)}function jl(e,t){return jl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},jl(e,t)}var kl=function(e){var t=e.cx,n=e.cy,r=e.radius,o=e.angle,i=e.sign,a=e.isExternal,u=e.cornerRadius,c=e.cornerIsExternal,s=u*(a?1:-1)+r,l=Math.asin(u/s)/sl,f=c?o:o+i*l,p=c?o-i*l:o;return{center:fl(t,n,s,f),circleTangency:fl(t,n,r,f),lineTangency:fl(t,n,s*Math.cos(l*sl),p),theta:l}},_l=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=function(e,t){return A(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),u=i+a,c=fl(t,n,o,i),s=fl(t,n,o,u),l="M ".concat(c.x,",").concat(c.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>u),",\n ").concat(s.x,",").concat(s.y,"\n ");if(r>0){var f=fl(t,n,r,i),p=fl(t,n,r,u);l+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=u),",\n ").concat(f.x,",").concat(f.y," Z")}else l+="L ".concat(t,",").concat(n," Z");return l},El=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Ol(this,wl(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)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}}),t&&jl(e,t)}(t,e),n=t,r=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,u=e.cornerIsExternal,s=e.startAngle,l=e.endAngle,f=e.className;if(o<r||s===l)return null;var h,d=p()("recharts-sector",f),y=o-r,v=N(i,y,0,!0);return h=v>0&&Math.abs(s-l)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,u=e.cornerIsExternal,c=e.startAngle,s=e.endAngle,l=A(s-c),f=kl({cx:t,cy:n,radius:o,angle:c,sign:l,cornerRadius:i,cornerIsExternal:u}),p=f.circleTangency,h=f.lineTangency,d=f.theta,y=kl({cx:t,cy:n,radius:o,angle:s,sign:-l,cornerRadius:i,cornerIsExternal:u}),v=y.circleTangency,m=y.lineTangency,g=y.theta,b=Math.abs(c-s)-d-g;if(b<0)return a?"M ".concat(h.x,",").concat(h.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):_l({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:c,endAngle:s});var x="M ".concat(h.x,",").concat(h.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(l<0),",").concat(v.x,",").concat(v.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(m.x,",").concat(m.y,"\n ");if(r>0){var O=kl({cx:t,cy:n,radius:r,angle:c,sign:l,isExternal:!0,cornerRadius:i,cornerIsExternal:u}),w=O.circleTangency,j=O.lineTangency,k=O.theta,_=kl({cx:t,cy:n,radius:r,angle:s,sign:-l,isExternal:!0,cornerRadius:i,cornerIsExternal:u}),E=_.circleTangency,T=_.lineTangency,S=_.theta,M=Math.abs(c-s)-k-S;if(M<0)return"".concat(x,"L").concat(t,",").concat(n,"Z");x+="L".concat(T.x,",").concat(T.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(E.x,",").concat(E.y,"\n A").concat(r,",").concat(r,",0,").concat(+(M>180),",").concat(+(l>0),",").concat(w.x,",").concat(w.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(j.x,",").concat(j.y,"Z")}else x+="L".concat(t,",").concat(n,"Z");return x}({cx:t,cy:n,innerRadius:r,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:a,cornerIsExternal:u,startAngle:s,endAngle:l}):_l({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:s,endAngle:l}),c.createElement("path",bl({},K(this.props),Z(this.props),{className:d,d:h}))}}],r&&xl(n.prototype,r),o&&xl(n,o),t}(c.PureComponent);El.displayName="Sector",El.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vl(n,!0).forEach((function(t){ml(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vl(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},F,{className:l().string,cx:l().number,cy:l().number,innerRadius:l().number,outerRadius:l().number,startAngle:l().number,endAngle:l().number,cornerRadius:l().oneOfType([l().number,l().string]),forceCornerRadius:l().bool,cornerIsExternal:l().bool}),El.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1};const Al=El;function Tl(){}function Sl(e,t,n){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+n)/6)}function Ml(e){this._context=e}function Pl(e){this._context=e}function Cl(e){this._context=e}function Nl(e){this._context=e}function Dl(e){this._context=e}function Il(e){return new Dl(e)}function Rl(e){return e<0?-1:1}function Ll(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),u=(i*o+a*r)/(r+o);return(Rl(i)+Rl(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(u))||0}function Bl(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function zl(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,u=(i-r)/3;e._context.bezierCurveTo(r+u,o+u*t,i-u,a-u*n,i,a)}function Fl(e){this._context=e}function Wl(e){this._context=new Ul(e)}function Ul(e){this._context=e}function Gl(e){this._context=e}function ql(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/i[t-1],i[t]-=n,a[t]-=n*a[t-1];for(o[r-1]=a[r-1]/i[r-1],t=r-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function Hl(e,t){this._context=e,this._t=t}function Vl(e){return e[0]}function Xl(e){return e[1]}function Yl(){var e=Vl,t=Xl,n=Be(!0),r=null,o=Il,i=null;function a(a){var u,c,s,l=a.length,f=!1;for(null==r&&(i=o(s=Le())),u=0;u<=l;++u)!(u<l&&n(c=a[u],u,a))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+e(c,u,a),+t(c,u,a));if(s)return i=null,s+""||null}return a.x=function(t){return arguments.length?(e="function"===typeof t?t:Be(+t),a):e},a.y=function(e){return arguments.length?(t="function"===typeof e?e:Be(+e),a):t},a.defined=function(e){return arguments.length?(n="function"===typeof e?e:Be(!!e),a):n},a.curve=function(e){return arguments.length?(o=e,null!=r&&(i=o(r)),a):o},a.context=function(e){return arguments.length?(null==e?r=i=null:i=o(r=e),a):r},a}function Kl(){var e=Vl,t=null,n=Be(0),r=Xl,o=Be(!0),i=null,a=Il,u=null;function c(c){var s,l,f,p,h,d=c.length,y=!1,v=new Array(d),m=new Array(d);for(null==i&&(u=a(h=Le())),s=0;s<=d;++s){if(!(s<d&&o(p=c[s],s,c))===y)if(y=!y)l=s,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),f=s-1;f>=l;--f)u.point(v[f],m[f]);u.lineEnd(),u.areaEnd()}y&&(v[s]=+e(p,s,c),m[s]=+n(p,s,c),u.point(t?+t(p,s,c):v[s],r?+r(p,s,c):m[s]))}if(h)return u=null,h+""||null}function s(){return Yl().defined(o).curve(a).context(i)}return c.x=function(n){return arguments.length?(e="function"===typeof n?n:Be(+n),t=null,c):e},c.x0=function(t){return arguments.length?(e="function"===typeof t?t:Be(+t),c):e},c.x1=function(e){return arguments.length?(t=null==e?null:"function"===typeof e?e:Be(+e),c):t},c.y=function(e){return arguments.length?(n="function"===typeof e?e:Be(+e),r=null,c):n},c.y0=function(e){return arguments.length?(n="function"===typeof e?e:Be(+e),c):n},c.y1=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:Be(+e),c):r},c.lineX0=c.lineY0=function(){return s().x(e).y(n)},c.lineY1=function(){return s().x(e).y(r)},c.lineX1=function(){return s().x(t).y(n)},c.defined=function(e){return arguments.length?(o="function"===typeof e?e:Be(!!e),c):o},c.curve=function(e){return arguments.length?(a=e,null!=i&&(u=a(i)),c):a},c.context=function(e){return arguments.length?(null==e?i=u=null:u=a(i=e),c):i},c}function $l(e){return $l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$l(e)}function Zl(){return Zl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zl.apply(this,arguments)}function Jl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ql(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jl(n,!0).forEach((function(t){ef(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jl(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ef(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nf(e,t){return!t||"object"!==$l(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function rf(e){return rf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},rf(e)}function of(e,t){return of=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},of(e,t)}Ml.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:Sl(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&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:Sl(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Pl.prototype={areaStart:Tl,areaEnd:Tl,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)}},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:Sl(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Cl.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||0!==this._line&&3===this._point)&&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 n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Sl(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Nl.prototype={areaStart:Tl,areaEnd:Tl,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))}},Dl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&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)}}},Fl.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:zl(this,this._t0,Bl(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+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,zl(this,Bl(this,n=Ll(this,e,t)),n);break;default:zl(this,this._t0,n=Ll(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(Wl.prototype=Object.create(Fl.prototype)).point=function(e,t){Fl.prototype.point.call(this,t,e)},Ul.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,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}},Gl.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,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=ql(e),o=ql(t),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],e[a],t[a]);(this._line||0!==this._line&&1===n)&&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)}},Hl.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&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&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 n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var af={curveBasisClosed:function(e){return new Pl(e)},curveBasisOpen:function(e){return new Cl(e)},curveBasis:function(e){return new Ml(e)},curveLinearClosed:function(e){return new Nl(e)},curveLinear:Il,curveMonotoneX:function(e){return new Fl(e)},curveMonotoneY:function(e){return new Wl(e)},curveNatural:function(e){return new Gl(e)},curveStep:function(e){return new Hl(e,.5)},curveStepAfter:function(e){return new Hl(e,1)},curveStepBefore:function(e){return new Hl(e,0)}},uf=function(e){return e.x===+e.x&&e.y===+e.y},cf=function(e){return e.x},sf=function(e){return e.y},lf=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),nf(this,rf(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)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}}),t&&of(e,t)}(t,e),n=t,r=[{key:"getPath",value:function(){var e,t=this.props,n=t.type,r=t.points,o=t.baseLine,a=t.layout,u=t.connectNulls,c=function(e,t){if(i()(e))return e;var n="curve".concat(e.slice(0,1).toUpperCase()).concat(e.slice(1));return"curveMonotone"===n&&t?af["".concat(n).concat("vertical"===t?"Y":"X")]:af[n]||Il}(n,a),s=u?r.filter((function(e){return uf(e)})):r;if(x()(o)){var l=u?o.filter((function(e){return uf(e)})):o,f=s.map((function(e,t){return Ql({},e,{base:l[t]})}));return(e="vertical"===a?Kl().y(sf).x1(cf).x0((function(e){return e.base.x})):Kl().x(cf).y1(sf).y0((function(e){return e.base.y}))).defined(uf).curve(c),e(f)}return(e="vertical"===a&&S(o)?Kl().y(sf).x1(cf).x0(o):S(o)?Kl().x(cf).y1(sf).y0(o):Yl().x(cf).y(sf)).defined(uf).curve(c),e(s)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.points,r=e.path,o=e.pathRef;if((!n||!n.length)&&!r)return null;var i=n&&n.length?this.getPath():r;return c.createElement("path",Zl({},K(this.props),Z(this.props,null,!0),{className:p()("recharts-curve",t),d:i,ref:o}))}}],r&&tf(n.prototype,r),o&&tf(n,o),t}(c.PureComponent);lf.displayName="Curve",lf.propTypes=Ql({},F,{className:l().string,type:l().oneOfType([l().oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),l().func]),layout:l().oneOf(["horizontal","vertical"]),baseLine:l().oneOfType([l().number,l().array]),points:l().arrayOf(l().object),connectNulls:l().bool,path:l().string,pathRef:l().func}),lf.defaultProps={type:"linear",points:[],connectNulls:!1};const ff=lf;var pf=n(43163),hf=n.n(pf);function df(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vf(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var mf={widthCache:{},cacheCount:0},gf={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},bf=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],xf="recharts_measurement_span";var Of=function(e){return Object.keys(e).reduce((function(t,n){return"".concat(t).concat((r=n,r.split("").reduce((function(e,t){return t===t.toUpperCase()?[].concat(vf(e),["-",t.toLowerCase()]):[].concat(vf(e),[t])}),[]).join("")),":").concat(function(e,t){return bf.indexOf(e)>=0&&t===+t?"".concat(t,"px"):t}(n,e[n]),";");var r}),"")},wf=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e||null===e||te())return{width:0,height:0};var n="".concat(e),r=Of(t),o="".concat(n,"-").concat(r);if(mf.widthCache[o])return mf.widthCache[o];try{var i=document.getElementById(xf);i||((i=document.createElement("span")).setAttribute("id",xf),document.body.appendChild(i));var a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?df(n,!0).forEach((function(t){yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):df(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},gf,{},t);Object.keys(a).map((function(e){return i.style[e]=a[e],e})),i.textContent=n;var u=i.getBoundingClientRect(),c={width:u.width,height:u.height};return mf.widthCache[o]=c,++mf.cacheCount>2e3&&(mf.cacheCount=0,mf.widthCache={}),c}catch(s){return{width:0,height:0}}};function jf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _f(e){return _f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_f(e)}function Ef(){return Ef=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ef.apply(this,arguments)}function Af(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Tf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Sf(e,t){return!t||"object"!==_f(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Mf(e){return Mf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Mf(e)}function Pf(e,t){return Pf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Pf(e,t)}var Cf=/[ \f\n\r\t\v\u2028\u2029]+/,Nf=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Sf(this,Mf(t).call(this,e))).getWordsWithoutCalculate=function(e){return[{words:d()(e.children)?[]:e.children.toString().split(Cf)}]},n.state={wordsByLines:n.getWordsByLines(e,!0)},n}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)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}}),t&&Pf(e,t)}(t,e),n=t,r=[{key:"componentDidMount",value:function(){this.updateWordsByLines(this.props,!0)}},{key:"componentDidUpdate",value:function(e){if(e.width!==this.props.width||e.scaleToFit!==this.props.scaleToFit||e.children!==this.props.children||e.style!==this.props.style){var t=this.props.children!==e.children||this.props.style!==e.style;this.updateWordsByLines(this.props,t)}}},{key:"updateWordsByLines",value:function(e,t){this.setState({wordsByLines:this.getWordsByLines(e,t)})}},{key:"getWordsByLines",value:function(e,t){if((e.width||e.scaleToFit)&&!te()){if(t){var n=function(e){try{return{wordsWithComputedWidth:(d()(e.children)?[]:e.children.toString().split(Cf)).map((function(t){return{word:t,width:wf(t,e.style).width}})),spaceWidth:wf("\xa0",e.style).width}}catch(t){return null}}(e);if(!n)return this.getWordsWithoutCalculate(e);var r=n.wordsWithComputedWidth,o=n.spaceWidth;this.wordsWithComputedWidth=r,this.spaceWidth=o}return this.calculateWordsByLines(this.wordsWithComputedWidth,this.spaceWidth,e.width)}return this.getWordsWithoutCalculate(e)}},{key:"calculateWordsByLines",value:function(e,t,n){var r=this.props.scaleToFit;return(e||[]).reduce((function(e,o){var i=o.word,a=o.width,u=e[e.length-1];if(u&&(null==n||r||u.width+a+t<n))u.words.push(i),u.width+=a+t;else{var c={words:[i],width:a};e.push(c)}return e}),[])}},{key:"render",value:function(){var e=this.props,t=e.dx,n=e.dy,r=e.textAnchor,o=e.verticalAnchor,i=e.scaleToFit,a=e.angle,u=e.lineHeight,s=e.capHeight,l=e.className,f=Af(e,["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className"]),h=this.state.wordsByLines;if(!M(f.x)||!M(f.y))return null;var d,y=f.x+(S(t)?t:0),v=f.y+(S(n)?n:0);switch(o){case"start":d=hf()("calc(".concat(s,")"));break;case"middle":d=hf()("calc(".concat((h.length-1)/2," * -").concat(u," + (").concat(s," / 2))"));break;default:d=hf()("calc(".concat(h.length-1," * -").concat(u,")"))}var m=[];if(i){var g=h[0].width;m.push("scale(".concat(this.props.width/g,")"))}return a&&m.push("rotate(".concat(a,", ").concat(y,", ").concat(v,")")),m.length&&(f.transform=m.join(" ")),c.createElement("text",Ef({},K(f),Z(f),{x:y,y:v,className:p()("recharts-text",l),textAnchor:r}),h.map((function(e,t){return c.createElement("tspan",{x:y,dy:0===t?d:u,key:t},e.words.join(" "))})))}}],r&&Tf(n.prototype,r),o&&Tf(n,o),t}(c.Component);Nf.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jf(n,!0).forEach((function(t){kf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jf(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},F,{scaleToFit:l().bool,angle:l().number,textAnchor:l().oneOf(["start","middle","end","inherit"]),verticalAnchor:l().oneOf(["start","middle","end"]),style:l().object}),Nf.defaultProps={x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end"};const Df=Nf;function If(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Rf(){return Rf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rf.apply(this,arguments)}function Lf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zf=l().shape({x:l().number,y:l().number,width:l().number,height:l().number}),Ff=l().shape({cx:l().number,cy:l().number,innerRadius:l().number,outerRadius:l().number,startAngle:l().number,endAngle:l().number}),Wf=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lf(n,!0).forEach((function(t){Bf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lf(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},F,{viewBox:l().oneOfType([zf,Ff]),formatter:l().func,value:l().oneOfType([l().number,l().string]),offset:l().number,position:l().oneOf(["top","left","right","bottom","inside","outside","insideLeft","insideRight","insideTop","insideBottom","insideTopLeft","insideBottomLeft","insideTopRight","insideBottomRight","insideStart","insideEnd","end","center","centerTop","centerBottom"]),children:l().oneOfType([l().arrayOf(l().node),l().node]),className:l().string,content:l().oneOfType([l().element,l().func])}),Uf=function(e,t,n){var r,o,i=e.position,a=e.viewBox,u=e.offset,s=e.className,l=a.cx,f=a.cy,h=a.innerRadius,y=a.outerRadius,v=a.startAngle,m=a.endAngle,g=a.clockWise,b=(h+y)/2,x=function(e,t){return A(t-e)*Math.min(Math.abs(t-e),360)}(v,m),O=x>=0?1:-1;"insideStart"===i?(r=v+O*u,o=g):"insideEnd"===i?(r=m-O*u,o=!g):"end"===i&&(r=m+O*u,o=g),o=x<=0?o:!o;var w=fl(l,f,b,r),j=fl(l,f,b,r+359*(o?1:-1)),k="M".concat(w.x,",").concat(w.y,"\n A").concat(b,",").concat(b,",0,1,").concat(o?0:1,",\n ").concat(j.x,",").concat(j.y),_=d()(e.id)?C("recharts-radial-line-"):e.id;return c.createElement("text",Rf({},n,{dominantBaseline:"central",className:p()("recharts-radial-bar-label",s)}),c.createElement("defs",null,c.createElement("path",{id:_,d:k})),c.createElement("textPath",{xlinkHref:"#".concat(_)},t))};function Gf(e){var t,n=e.viewBox,r=e.position,o=e.value,a=e.children,u=e.content,s=e.className,l=void 0===s?"":s;if(!n||d()(o)&&d()(a)&&!(0,c.isValidElement)(u)&&!i()(u))return null;if((0,c.isValidElement)(u))return(0,c.cloneElement)(u,e);if(i()(u)){if(t=u(e),(0,c.isValidElement)(t))return t}else t=function(e){var t=e.value,n=e.formatter,r=d()(e.children)?t:e.children;return i()(n)?n(r):r}(e);var f=function(e){return S(e.cx)}(n),h=K(e),y=Z(e);if(f&&("insideStart"===r||"insideEnd"===r||"end"===r))return Uf(e,t,h);var v=f?function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t.cx,i=t.cy,a=t.innerRadius,u=t.outerRadius,c=(t.startAngle+t.endAngle)/2;if("outside"===r){var s=fl(o,i,u+n,c),l=s.x;return{x:l,y:s.y,textAnchor:l>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"end"};var f=fl(o,i,(a+u)/2,c);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}}(e):function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t.x,i=t.y,a=t.width,u=t.height,c=u>=0?1:-1;return"top"===r?{x:o+a/2,y:i-c*n,textAnchor:"middle",verticalAnchor:c>0?"end":"start"}:"bottom"===r?{x:o+a/2,y:i+u+c*n,textAnchor:"middle",verticalAnchor:"start"}:"left"===r?{x:o-n,y:i+u/2,textAnchor:"end",verticalAnchor:"middle"}:"right"===r?{x:o+a+n,y:i+u/2,textAnchor:"start",verticalAnchor:"middle"}:"insideLeft"===r?{x:o+n,y:i+u/2,textAnchor:"start",verticalAnchor:"middle"}:"insideRight"===r?{x:o+a-n,y:i+u/2,textAnchor:"end",verticalAnchor:"middle"}:"insideTop"===r?{x:o+a/2,y:i+c*n,textAnchor:"middle",verticalAnchor:"start"}:"insideBottom"===r?{x:o+a/2,y:i+u-c*n,textAnchor:"middle",verticalAnchor:"end"}:"insideTopLeft"===r?{x:o+n,y:i+c*n,textAnchor:"start",verticalAnchor:"start"}:"insideTopRight"===r?{x:o+a-n,y:i+c*n,textAnchor:"end",verticalAnchor:"start"}:"insideBottomLeft"===r?{x:o+n,y:i+u-c*n,textAnchor:"start",verticalAnchor:"end"}:"insideBottomRight"===r?{x:o+a-n,y:i+u-c*n,textAnchor:"end",verticalAnchor:"end"}:g()(r)&&(S(r.x)||T(r.x))&&(S(r.y)||T(r.y))?{x:o+N(r.x,a),y:i+N(r.y,u),textAnchor:"end",verticalAnchor:"end"}:{x:o+a/2,y:i+u/2,textAnchor:"middle",verticalAnchor:"middle"}}(e);return c.createElement(Df,Rf({className:p()("recharts-label",l)},h,v,y),t)}Gf.displayName="Label",Gf.defaultProps={offset:5},Gf.propTypes=Wf;var qf=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,u=e.radius,c=e.innerRadius,s=e.outerRadius,l=e.x,f=e.y,p=e.top,h=e.left,d=e.width,y=e.height,v=e.clockWise;if(S(d)&&S(y)){if(S(l)&&S(f))return{x:l,y:f,width:d,height:y};if(S(p)&&S(h))return{x:p,y:h,width:d,height:y}}return S(l)&&S(f)?{x:l,y:f,width:0,height:0}:S(t)&&S(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:c||0,outerRadius:s||u||a||0,clockWise:v}:e.viewBox?e.viewBox:{}};Gf.parseViewBox=qf,Gf.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=qf(e),a=X(r,Gf).map((function(e,n){return(0,c.cloneElement)(e,{viewBox:t||o,key:"label-".concat(n)})}));if(!n)return a;var u=function(e,t){return e?!0===e?c.createElement(Gf,{key:"label-implicit",viewBox:t}):M(e)?c.createElement(Gf,{key:"label-implicit",viewBox:t,value:e}):(0,c.isValidElement)(e)?e.type===Gf?(0,c.cloneElement)(e,{key:"label-implicit",viewBox:t}):c.createElement(Gf,{key:"label-implicit",content:e,viewBox:t}):i()(e)?c.createElement(Gf,{key:"label-implicit",content:e,viewBox:t}):g()(e)?c.createElement(Gf,Rf({viewBox:t},e,{key:"label-implicit"})):null:null}(e.label,t||o);return[u].concat(If(a))};const Hf=Gf;var Vf=n(47988),Xf=n.n(Vf);function Yf(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Kf(){return Kf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kf.apply(this,arguments)}function $f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$f(n,!0).forEach((function(t){Jf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$f(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qf(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ep={id:l().string,data:l().arrayOf(l().object),valueAccessor:l().func,clockWise:l().bool,dataKey:l().oneOfType([l().string,l().number,l().func])},tp={valueAccessor:function(e){return x()(e.value)?Xf()(e.value):e.value}};function np(e){var t=e.data,n=e.valueAccessor,r=e.dataKey,o=e.clockWise,i=e.id,a=Qf(e,["data","valueAccessor","dataKey","clockWise","id"]);return t&&t.length?c.createElement(_r,{className:"recharts-label-list"},t.map((function(e,t){var u=d()(r)?n(e,t):Rs(e&&e.payload,r),s=d()(i)?{}:{id:"".concat(i,"-").concat(t)};return c.createElement(Hf,Kf({},K(e),a,s,{index:t,value:u,viewBox:Hf.parseViewBox(d()(o)?e:Zf({},e,{clockWise:o})),key:"label-".concat(t)}))}))):null}np.propTypes=ep,np.displayName="LabelList";np.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=X(r,np).map((function(e,n){return(0,c.cloneElement)(e,{data:t,key:"labelList-".concat(n)})}));if(!n)return o;var a=function(e,t){return e?!0===e?c.createElement(np,{key:"labelList-implicit",data:t}):c.isValidElement(e)||i()(e)?c.createElement(np,{key:"labelList-implicit",data:t,content:e}):g()(e)?c.createElement(np,Kf({data:t},e,{key:"labelList-implicit"})):null:null}(e.label,t);return[a].concat(Yf(o))},np.defaultProps=tp;const rp=np;function op(e){return op="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},op(e)}function ip(){return ip=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ip.apply(this,arguments)}function ap(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function up(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ap(n,!0).forEach((function(t){cp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ap(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function lp(e,t){return!t||"object"!==op(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function fp(e){return fp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},fp(e)}function pp(e,t){return pp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},pp(e,t)}var hp=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return(n=lp(this,(e=fp(t)).call.apply(e,[this].concat(o)))).state={isAnimationFinished:!1},n.id=C("recharts-pie-"),n.cachePrevData=function(e){n.setState({prevSectors:e})},n.handleAnimationEnd=function(){var e=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),i()(e)&&e()},n.handleAnimationStart=function(){var e=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),i()(e)&&e()},n}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)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}}),t&&pp(e,t)}(t,e),n=t,o=[{key:"getTextAnchor",value:function(e,t){return e>t?"start":e<t?"end":"middle"}},{key:"renderLabelLineItem",value:function(e,t){return c.isValidElement(e)?c.cloneElement(e,t):i()(e)?e(t):c.createElement(ff,ip({},t,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(e,t,n){if(c.isValidElement(e))return c.cloneElement(e,t);var r=n;return i()(e)&&(r=e(t),c.isValidElement(r))?r:c.createElement(Df,ip({},t,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),r)}},{key:"renderSectorItem",value:function(e,t){return c.isValidElement(e)?c.cloneElement(e,t):i()(e)?e(t):xr()(e)?c.createElement(Al,ip({},t,e)):c.createElement(Al,t)}}],(r=[{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.animationId,r=t.sectors;e.isAnimationActive!==this.props.isAnimationActive?this.cachePrevData([]):e.animationId!==n&&this.cachePrevData(r)}},{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"renderLabels",value:function(e){var t=this;if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.label,o=n.labelLine,i=n.dataKey,a=n.valueKey,u=K(this.props),s=K(r),l=K(o),f=r&&r.offsetRadius||20,p=e.map((function(e,n){var p=(e.startAngle+e.endAngle)/2,h=fl(e.cx,e.cy,e.outerRadius+f,p),y=up({},u,{},e,{stroke:"none"},s,{index:n,textAnchor:t.constructor.getTextAnchor(h.x,e.cx)},h),v=up({},u,{},e,{fill:"none",stroke:e.fill},l,{index:n,points:[fl(e.cx,e.cy,e.outerRadius,p),h],key:"line"}),m=i;return d()(i)&&d()(a)?m="value":d()(i)&&(m=a),c.createElement(_r,{key:"label-".concat(n)},o&&t.constructor.renderLabelLineItem(o,v),t.constructor.renderLabelItem(r,y,Rs(e,m)))}));return c.createElement(_r,{className:"recharts-pie-labels"},p)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.activeShape,o=n.blendStroke;return e.map((function(e,n){var i=t.isActiveIndex(n)?r:null,a=up({},e,{stroke:o?e.fill:e.stroke});return c.createElement(_r,ip({className:"recharts-pie-sector"},Q(t.props,e,n),{key:"sector-".concat(n)}),t.constructor.renderSectorItem(i,a))}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,n=t.sectors,r=t.isAnimationActive,o=t.animationBegin,i=t.animationDuration,a=t.animationEasing,u=t.animationId,s=this.state.prevSectors;return c.createElement(Mn,{begin:o,duration:i,isActive:r,easing:a,from:{t:0},to:{t:1},key:"pie-".concat(u),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var r=t.t,o=[],i=(n&&n[0]).startAngle;return n.forEach((function(e,t){var n=s&&s[t],a=t>0?w()(e,"paddingAngle",0):0;if(n){var u=I(n.endAngle-n.startAngle,e.endAngle-e.startAngle),c=up({},e,{startAngle:i+a,endAngle:i+u(r)+a});o.push(c),i=c.endAngle}else{var l=e.endAngle,f=e.startAngle,p=I(0,l-f)(r),h=up({},e,{startAngle:i+a,endAngle:i+p+a});o.push(h),i=h.endAngle}})),c.createElement(_r,null,e.renderSectorsStatically(o))}))}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&wt()(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.sectors,r=e.className,o=e.label,i=e.cx,a=e.cy,u=e.innerRadius,s=e.outerRadius,l=e.isAnimationActive,f=e.prevSectors;if(t||!n||!n.length||!S(i)||!S(a)||!S(u)||!S(s))return null;var h=p()("recharts-pie",r);return c.createElement(_r,{className:h},this.renderSectors(),o&&this.renderLabels(n),Hf.renderCallByParent(this.props,null,!1),(!l||f&&wt()(f,n))&&rp.renderCallByParent(this.props,n,!1))}}])&&sp(n.prototype,r),o&&sp(n,o),t}(c.PureComponent);hp.displayName="Pie",hp.propTypes=up({},F,{},W,{className:l().string,animationId:l().number,cx:l().oneOfType([l().number,l().string]),cy:l().oneOfType([l().number,l().string]),startAngle:l().number,endAngle:l().number,paddingAngle:l().number,innerRadius:l().oneOfType([l().number,l().string]),outerRadius:l().oneOfType([l().number,l().string]),cornerRadius:l().oneOfType([l().number,l().string]),dataKey:l().oneOfType([l().string,l().number,l().func]).isRequired,nameKey:l().oneOfType([l().string,l().number,l().func]),valueKey:l().oneOfType([l().string,l().number,l().func]),data:l().arrayOf(l().object),blendStroke:l().bool,minAngle:l().number,legendType:l().oneOf(q),tooltipType:l().oneOf(H),maxRadius:l().number,sectors:l().arrayOf(l().object),hide:l().bool,labelLine:l().oneOfType([l().object,l().func,l().element,l().bool]),label:l().oneOfType([l().shape({offsetRadius:l().number}),l().func,l().element,l().bool]),activeShape:l().oneOfType([l().object,l().func,l().element]),activeIndex:l().oneOfType([l().number,l().arrayOf(l().number)]),onAnimationStart:l().func,onAnimationEnd:l().func,isAnimationActive:l().bool,animationBegin:l().number,animationDuration:l().number,animationEasing:l().oneOf(["ease","ease-in","ease-out","ease-in-out","spring","linear"]),id:l().string}),hp.defaultProps={stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!te(),animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1},hp.parseDeltaAngle=function(e){var t=e.startAngle,n=e.endAngle;return A(n-t)*Math.min(Math.abs(n-t),360)},hp.getRealPieData=function(e){var t=e.props,n=t.data,r=t.children,o=K(e.props),i=X(r,gr);return n&&n.length?n.map((function(e,t){return up({payload:e},o,{},e,{},i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return up({},o,{},e.props)})):[]},hp.parseCoordinateOfPie=function(e,t){var n=t.top,r=t.left,o=t.width,i=t.height,a=pl(o,i);return{cx:r+N(e.props.cx,o,o/2),cy:n+N(e.props.cy,i,i/2),innerRadius:N(e.props.innerRadius,a,0),outerRadius:N(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(o*o+i*i)/2}},hp.getComposedData=function(e){var t=e.item,n=e.offset,r=e.onItemMouseLeave,o=e.onItemMouseEnter,i=hp.getRealPieData(t);if(!i||!i.length)return[];var a=t.props,u=a.cornerRadius,c=a.startAngle,s=a.endAngle,l=a.paddingAngle,f=a.dataKey,p=a.nameKey,h=a.valueKey,y=a.tooltipType,v=Math.abs(t.props.minAngle),m=hp.parseCoordinateOfPie(t,n),g=i.length,b=hp.parseDeltaAngle({startAngle:c,endAngle:s}),x=Math.abs(b),O=x-g*v-(x>=360?g:g-1)*l,w=f;d()(f)&&d()(h)?w="value":d()(f)&&(w=h);var j,k,_=i.reduce((function(e,t){var n=Rs(t,w,0);return e+(S(n)?n:0)}),0);_>0&&(j=i.map((function(e,t){var n,r=Rs(e,w,0),o=Rs(e,p,t),i=(S(r)?r:0)/_,a=(n=t?k.endAngle+A(b)*l:c)+A(b)*(v+i*O),s=(n+a)/2,f=(m.innerRadius+m.outerRadius)/2,h=[{name:o,value:r,payload:e,dataKey:w,type:y}],d=fl(m.cx,m.cy,f,s);return k=up({percent:i,cornerRadius:u,name:o,tooltipPayload:h,midAngle:s,middleRadius:f,tooltipPosition:d},e,{},m,{value:Rs(e,w),startAngle:n,endAngle:a,payload:e,paddingAngle:A(b)*l})})));return up({},m,{sectors:j,data:i,onMouseLeave:r,onMouseEnter:o})};const dp=hp;function yp(e){return yp="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yp(e)}function vp(){return vp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vp.apply(this,arguments)}function mp(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function gp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gp(n,!0).forEach((function(t){xp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gp(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Op(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wp(e,t){return!t||"object"!==yp(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function jp(e){return jp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},jp(e)}function kp(e,t){return kp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},kp(e,t)}var _p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),wp(this,jp(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)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}}),t&&kp(e,t)}(t,e),n=t,r=[{key:"renderHorizontal",value:function(e){var t=this,n=this.props,r=n.x,o=n.width,i=n.horizontal;if(!e||!e.length)return null;var a=e.map((function(e,n){var a=bp({},t.props,{x1:r,y1:e,x2:r+o,y2:e,key:"line-".concat(n),index:n});return t.constructor.renderLineItem(i,a)}));return c.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}},{key:"renderVertical",value:function(e){var t=this,n=this.props,r=n.y,o=n.height,i=n.vertical;if(!e||!e.length)return null;var a=e.map((function(e,n){var a=bp({},t.props,{x1:e,y1:r,x2:e,y2:r+o,key:"line-".concat(n),index:n});return t.constructor.renderLineItem(i,a)}));return c.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}},{key:"renderVerticalStripes",value:function(e){var t=this.props.verticalFill;if(!t||!t.length)return null;var n=this.props,r=n.fillOpacity,o=n.x,i=n.y,a=n.width,u=n.height,s=e.slice().sort((function(e,t){return e-t}));o!==s[0]&&s.unshift(0);var l=s.map((function(e,n){var l=s[n+1]?s[n+1]-e:o+a-e;if(l<=0)return null;var f=n%t.length;return c.createElement("rect",{key:"react-".concat(n),x:Math.round(e+o-o),y:i,width:l,height:u,stroke:"none",fill:t[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return c.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}},{key:"renderHorizontalStripes",value:function(e){var t=this.props.horizontalFill;if(!t||!t.length)return null;var n=this.props,r=n.fillOpacity,o=n.x,i=n.y,a=n.width,u=n.height,s=e.slice().sort((function(e,t){return e-t}));i!==s[0]&&s.unshift(0);var l=s.map((function(e,n){var l=s[n+1]?s[n+1]-e:i+u-e;if(l<=0)return null;var f=n%t.length;return c.createElement("rect",{key:"react-".concat(n),y:Math.round(e+i-i),x:o,height:l,width:a,stroke:"none",fill:t[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return c.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}},{key:"renderBackground",value:function(){var e=this.props.fill;if(!e||"none"===e)return null;var t=this.props,n=t.fillOpacity,r=t.x,o=t.y,i=t.width,a=t.height;return c.createElement("rect",{x:r,y:o,width:i,height:a,stroke:"none",fill:e,fillOpacity:n,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,a=e.horizontal,u=e.vertical,s=e.horizontalCoordinatesGenerator,l=e.verticalCoordinatesGenerator,f=e.xAxis,p=e.yAxis,h=e.offset,d=e.chartWidth,y=e.chartHeight;if(!S(r)||r<=0||!S(o)||o<=0||!S(t)||t!==+t||!S(n)||n!==+n)return null;var v=this.props,m=v.horizontalPoints,g=v.verticalPoints;return m&&m.length||!i()(s)||(m=s({yAxis:p,width:d,height:y,offset:h})),g&&g.length||!i()(l)||(g=l({xAxis:f,width:d,height:y,offset:h})),c.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),a&&this.renderHorizontal(m),u&&this.renderVertical(g),a&&this.renderHorizontalStripes(m),u&&this.renderVerticalStripes(g))}}],o=[{key:"renderLineItem",value:function(e,t){var n;if(c.isValidElement(e))n=c.cloneElement(e,t);else if(i()(e))n=e(t);else{var r=t.x1,o=t.y1,a=t.x2,u=t.y2,s=t.key,l=mp(t,["x1","y1","x2","y2","key"]);n=c.createElement("line",vp({},K(l),{x1:r,y1:o,x2:a,y2:u,fill:"none",key:s}))}return n}}],r&&Op(n.prototype,r),o&&Op(n,o),t}(c.PureComponent);_p.displayName="CartesianGrid",_p.propTypes=bp({},F,{x:l().number,y:l().number,width:l().number,height:l().number,horizontal:l().oneOfType([l().object,l().element,l().func,l().bool]),vertical:l().oneOfType([l().object,l().element,l().func,l().bool]),horizontalPoints:l().arrayOf(l().number),verticalPoints:l().arrayOf(l().number),horizontalCoordinatesGenerator:l().func,verticalCoordinatesGenerator:l().func,xAxis:l().object,yAxis:l().object,offset:l().object,chartWidth:l().number,chartHeight:l().number,verticalFill:l().arrayOf(l().string),horizontalFill:l().arrayOf(l().string)}),_p.defaultProps={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};const Ep=_p;function Ap(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sp(e){return Sp="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sp(e)}function Mp(){return Mp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mp.apply(this,arguments)}function Pp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Cp(e,t){return!t||"object"!==Sp(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Np(e){return Np=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Np(e)}function Dp(e,t){return Dp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Dp(e,t)}var Ip=function(e,t,n,r,o){var i,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),u=r>=0?1:-1,c=n>=0?1:-1,s=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var l=[],f=0;f<4;f++)l[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+u*l[0]),l[0]>0&&(i+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(s,",").concat(e+c*l[0],",").concat(t)),i+="L ".concat(e+n-c*l[1],",").concat(t),l[1]>0&&(i+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(s,",\n ").concat(e+n,",").concat(t+u*l[1])),i+="L ".concat(e+n,",").concat(t+r-u*l[2]),l[2]>0&&(i+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(s,",\n ").concat(e+n-c*l[2],",").concat(t+r)),i+="L ".concat(e+c*l[3],",").concat(t+r),l[3]>0&&(i+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(s,",\n ").concat(e,",").concat(t+r-u*l[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(e,",").concat(t+u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e+c*p,",").concat(t,"\n L ").concat(e+n-c*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e+n,",").concat(t+u*p,"\n L ").concat(e+n,",").concat(t+r-u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e+n-c*p,",").concat(t+r,"\n L ").concat(e+c*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(e,",").concat(t+r-u*p," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},Rp=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=Cp(this,(e=Np(t)).call.apply(e,[this].concat(o)))).state={totalLength:-1},n}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)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}}),t&&Dp(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(t){}}},{key:"render",value:function(){var e=this,t=this.props,n=t.x,r=t.y,o=t.width,i=t.height,a=t.radius,u=t.className,s=this.state.totalLength,l=this.props,f=l.animationEasing,h=l.animationDuration,d=l.animationBegin,y=l.isAnimationActive,v=l.isUpdateAnimationActive;if(n!==+n||r!==+r||o!==+o||i!==+i||0===o||0===i)return null;var m=p()("recharts-rectangle",u);return v?c.createElement(Mn,{canBegin:s>0,from:{width:o,height:i,x:n,y:r},to:{width:o,height:i,x:n,y:r},duration:h,animationEasing:f,isActive:v},(function(t){var n=t.width,r=t.height,o=t.x,i=t.y;return c.createElement(Mn,{canBegin:s>0,from:"0px ".concat(-1===s?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:h,isActive:y,easing:f},c.createElement("path",Mp({},K(e.props),Z(e.props),{className:m,d:Ip(o,i,n,r,a),ref:function(t){e.node=t}})))})):c.createElement("path",Mp({},K(this.props),Z(this.props),{className:m,d:Ip(n,r,o,i,a)}))}}])&&Pp(n.prototype,r),o&&Pp(n,o),t}(c.PureComponent);Rp.displayName="Rectangle",Rp.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ap(n,!0).forEach((function(t){Tp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ap(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},F,{},W,{className:l().string,x:l().number,y:l().number,width:l().number,height:l().number,radius:l().oneOfType([l().number,l().array]),isAnimationActive:l().bool,isUpdateAnimationActive:l().bool,animationBegin:l().number,animationDuration:l().number,animationEasing:l().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"])}),Rp.defaultProps={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"};const Lp=Rp;function Bp(e){return Bp="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bp(e)}function zp(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Fp(){return Fp=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fp.apply(this,arguments)}function Wp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Up(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wp(n,!0).forEach((function(t){Gp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wp(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Hp(e,t){return!t||"object"!==Bp(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Vp(e){return Vp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Vp(e)}function Xp(e,t){return Xp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Xp(e,t)}var Yp=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return(n=Hp(this,(e=Vp(t)).call.apply(e,[this].concat(o)))).state={isAnimationFinished:!1},n.id=C("recharts-bar-"),n.cachePrevData=function(e){n.setState({prevData:e})},n.handleAnimationEnd=function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd()},n.handleAnimationStart=function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart()},n}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)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}}),t&&Xp(e,t)}(t,e),n=t,o=[{key:"renderRectangle",value:function(e,t){return c.isValidElement(e)?c.cloneElement(e,t):i()(e)?e(t):c.createElement(Lp,t)}}],(r=[{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.animationId,r=t.data;e.animationId!==n&&this.cachePrevData(r)}},{key:"renderRectanglesStatically",value:function(e){var t=this,n=this.props.shape,r=K(this.props);return e&&e.map((function(e,o){var i=Up({},r,{},e,{index:o});return c.createElement(_r,Fp({className:"recharts-bar-rectangle"},Q(t.props,e,o),{key:"rectangle-".concat(o)}),t.constructor.renderRectangle(n,i))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,t=this.props,n=t.data,r=t.layout,o=t.isAnimationActive,i=t.animationBegin,a=t.animationDuration,u=t.animationEasing,s=t.animationId,l=this.state.prevData;return c.createElement(Mn,{begin:i,duration:a,isActive:o,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var o=t.t,i=n.map((function(e,t){var n=l&&l[t];if(n){var i=I(n.x,e.x),a=I(n.y,e.y),u=I(n.width,e.width),c=I(n.height,e.height);return Up({},e,{x:i(o),y:a(o),width:u(o),height:c(o)})}if("horizontal"===r){var s=I(0,e.height)(o);return Up({},e,{y:e.y+e.height-s,height:s})}return Up({},e,{width:I(0,e.width)(o)})}));return c.createElement(_r,null,e.renderRectanglesStatically(i))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&wt()(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props.data,n=K(this.props.background);return t.map((function(t,r){t.value;var o=t.background,i=zp(t,["value","background"]);if(!o)return null;var a=Up({},i,{fill:"#eee"},o,{},n,{},Q(e.props,t,r),{index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return e.constructor.renderRectangle(e.props.background,a)}))}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.data,n=e.xAxis,r=e.yAxis,o=e.layout,i=e.children,a=X(i,Ps);if(!a)return null;var u="vertical"===o?t[0].height/2:t[0].width/2;function s(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:Rs(e,t)}}return a.map((function(e,i){return c.cloneElement(e,{key:"error-bar-".concat(i),data:t,xAxis:n,yAxis:r,layout:o,offset:u,dataPointFormatter:s})}))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,o=e.xAxis,i=e.yAxis,a=e.left,u=e.top,s=e.width,l=e.height,f=e.isAnimationActive,h=e.background,y=e.id;if(t||!n||!n.length)return null;var v=this.state.isAnimationFinished,m=p()("recharts-bar",r),g=o&&o.allowDataOverflow||i&&i.allowDataOverflow,b=d()(y)?this.id:y;return c.createElement(_r,{className:m},g?c.createElement("defs",null,c.createElement("clipPath",{id:"clipPath-".concat(b)},c.createElement("rect",{x:a,y:u,width:s,height:l}))):null,c.createElement(_r,{className:"recharts-bar-rectangles",clipPath:g?"url(#clipPath-".concat(b,")"):null},h?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(),(!f||v)&&rp.renderCallByParent(this.props,n))}}])&&qp(n.prototype,r),o&&qp(n,o),t}(c.PureComponent);Yp.displayName="Bar",Yp.propTypes=Up({},F,{},W,{className:l().string,layout:l().oneOf(["vertical","horizontal"]),xAxisId:l().oneOfType([l().number,l().string]),yAxisId:l().oneOfType([l().number,l().string]),yAxis:l().object,xAxis:l().object,stackId:l().oneOfType([l().number,l().string]),barSize:l().number,unit:l().oneOfType([l().string,l().number]),name:l().oneOfType([l().string,l().number]),dataKey:l().oneOfType([l().string,l().number,l().func]).isRequired,legendType:l().oneOf(q),tooltipType:l().oneOf(H),minPointSize:l().number,maxBarSize:l().number,hide:l().bool,shape:l().oneOfType([l().func,l().element]),data:l().arrayOf(l().shape({x:l().number,y:l().number,width:l().number,height:l().number,radius:l().oneOfType([l().number,l().array]),value:l().oneOfType([l().number,l().string,l().array])})),onAnimationStart:l().func,onAnimationEnd:l().func,animationId:l().number,isAnimationActive:l().bool,animationBegin:l().number,animationDuration:l().number,animationEasing:l().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),id:l().string}),Yp.defaultProps={xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!te(),animationBegin:0,animationDuration:400,animationEasing:"ease",onAnimationStart:function(){},onAnimationEnd:function(){}},Yp.getComposedData=function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,i=e.xAxis,a=e.yAxis,u=e.xAxisTicks,c=e.yAxisTicks,s=e.stackedData,l=e.dataStartIndex,f=e.displayedData,p=e.offset,h=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null}(r,n);if(!h)return[];var d=t.layout,y=n.props,v=y.dataKey,m=y.children,g=y.minPointSize,b="horizontal"===d?a:i,O=s?b.scale.domain():null,w=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return r<=0&&o>=0?0:o<0?o:r}return n[0]}({props:t,numericAxis:b}),j=X(m,gr),k=f.map((function(e,t){var n,r,f,p,y,m;if(s?n=function(e,t){if(!t||2!==t.length||!S(t[0])||!S(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!S(e[0])||e[0]<n)&&(o[0]=n),(!S(e[1])||e[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o}(s[l+t],O):(n=Rs(e,v),x()(n)||(n=[w,n])),"horizontal"===d){if(r=Js({axis:i,ticks:u,bandSize:o,offset:h.offset,entry:e,index:t}),f=a.scale(n[1]),p=h.size,y=a.scale(n[0])-a.scale(n[1]),m={x:r,y:a.y,width:p,height:a.height},Math.abs(g)>0&&Math.abs(y)<Math.abs(g)){var b=A(y||g)*(Math.abs(g)-Math.abs(y));f-=b,y+=b}}else r=i.scale(n[0]),f=Js({axis:a,ticks:c,bandSize:o,offset:h.offset,entry:e,index:t}),p=i.scale(n[1])-i.scale(n[0]),y=h.size,m={x:i.x,y:f,width:i.width,height:y},Math.abs(g)>0&&Math.abs(p)<Math.abs(g)&&(p+=A(p||g)*(Math.abs(g)-Math.abs(p)));return Up({},e,{x:r,y:f,width:p,height:y,value:s?n:n[1],payload:e,background:m},j&&j[t]&&j[t].props)}));return Up({data:k,layout:d},p)};const Kp=Yp;function $p(e){return $p="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$p(e)}function Zp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Jp(e,t){return!t||"object"!==$p(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Qp(e){return Qp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Qp(e)}function eh(e,t){return eh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},eh(e,t)}var th=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Jp(this,Qp(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)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}}),t&&eh(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return null}}])&&Zp(n.prototype,r),o&&Zp(n,o),t}(c.PureComponent);th.displayName="XAxis",th.propTypes={allowDecimals:l().bool,allowDuplicatedCategory:l().bool,hide:l().bool,name:l().oneOfType([l().string,l().number]),unit:l().oneOfType([l().string,l().number]),xAxisId:l().oneOfType([l().string,l().number]),domain:l().arrayOf(l().oneOfType([l().string,l().number,l().func,l().oneOf(["auto","dataMin","dataMax"])])),dataKey:l().oneOfType([l().string,l().number,l().func]),width:l().number,height:l().number,mirror:l().bool,orientation:l().oneOf(["top","bottom"]),type:l().oneOf(["number","category"]),ticks:l().array,tickCount:l().number,tickFormatter:l().func,padding:l().shape({left:l().number,right:l().number}),allowDataOverflow:l().bool,scale:l().oneOfType([l().oneOf(G),l().func]),tick:l().oneOfType([l().bool,l().func,l().object,l().element]),axisLine:l().oneOfType([l().bool,l().object]),tickLine:l().oneOfType([l().bool,l().object]),minTickGap:l().number,tickSize:l().number,interval:l().oneOfType([l().number,l().oneOf(["preserveStart","preserveEnd","preserveStartEnd"])]),reversed:l().bool},th.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",domain:[0,"auto"],padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};const nh=th;function rh(e){return rh="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rh(e)}function oh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ih(e,t){return!t||"object"!==rh(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ah(e){return ah=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ah(e)}function uh(e,t){return uh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},uh(e,t)}var ch=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ih(this,ah(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)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}}),t&&uh(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){return null}}])&&oh(n.prototype,r),o&&oh(n,o),t}(c.PureComponent);ch.displayName="YAxis",ch.propTypes={allowDecimals:l().bool,allowDuplicatedCategory:l().bool,hide:l().bool,name:l().oneOfType([l().string,l().number]),unit:l().oneOfType([l().string,l().number]),yAxisId:l().oneOfType([l().string,l().number]),domain:l().arrayOf(l().oneOfType([l().string,l().number,l().func,l().oneOf(["auto","dataMin","dataMax"])])),dataKey:l().oneOfType([l().string,l().number,l().func]),ticks:l().array,tickCount:l().number,tickFormatter:l().func,width:l().number,height:l().number,mirror:l().bool,orientation:l().oneOf(["left","right"]),type:l().oneOf(["number","category"]),padding:l().shape({top:l().number,bottom:l().number}),allowDataOverflow:l().bool,scale:l().oneOfType([l().oneOf(["auto","linear","pow","sqrt","log","identity","time","band","point","ordinal","quantile","quantize","utc","sequential","threshold"]),l().func]),tick:l().oneOfType([l().bool,l().func,l().object,l().element]),axisLine:l().oneOfType([l().bool,l().object]),tickLine:l().oneOfType([l().bool,l().object]),minTickGap:l().number,tickSize:l().number,interval:l().oneOfType([l().number,l().oneOf(["preserveStart","preserveEnd","preserveStartEnd"])]),reversed:l().bool},ch.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",domain:[0,"auto"],padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};const sh=ch;var lh=n(38829),fh=n.n(lh),ph=n(75915),hh=n.n(ph),dh=n(39939),yh=n.n(dh),vh=n(80492),mh=n.n(vh);function gh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xh(e){return xh="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xh(e)}function Oh(){return Oh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oh.apply(this,arguments)}function wh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jh(e,t){return!t||"object"!==xh(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function kh(e){return kh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},kh(e)}function _h(e,t){return _h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_h(e,t)}var Eh=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),jh(this,kh(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)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}}),t&&_h(e,t)}(t,e),n=t,o=[{key:"getPath",value:function(e,t,n,r,o,i){return"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)}}],(r=[{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.top,a=e.left,u=e.className;return S(t)&&S(n)&&S(r)&&S(o)&&S(i)&&S(a)?c.createElement("path",Oh({},K(this.props),{className:p()("recharts-cross",u),d:this.constructor.getPath(t,n,r,o,i,a)})):null}}])&&wh(n.prototype,r),o&&wh(n,o),t}(c.PureComponent);Eh.displayName="Cross",Eh.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gh(n,!0).forEach((function(t){bh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gh(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},F,{x:l().number,y:l().number,width:l().number,height:l().number,top:l().number,left:l().number,className:l().string}),Eh.defaultProps={x:0,y:0,top:0,left:0,width:0,height:0};const Ah=Eh;function Th(e){return Th="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Th(e)}function Sh(){return Sh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sh.apply(this,arguments)}function Mh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ph(e,t){return!t||"object"!==Th(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ch(e){return Ch=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ch(e)}function Nh(e,t){return Nh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Nh(e,t)}var Dh=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Ph(this,Ch(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)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}}),t&&Nh(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.r,o=e.className,i=p()("recharts-dot",o);return t===+t&&n===+n&&r===+r?c.createElement("circle",Sh({},K(this.props),Z(this.props,null,!0),{className:i,cx:t,cy:n,r:r})):null}}])&&Mh(n.prototype,r),o&&Mh(n,o),t}(c.PureComponent);Dh.displayName="Dot",Dh.propTypes={className:l().string,cx:l().number,cy:l().number,r:l().number};const Ih=Dh;function Rh(e){return Rh="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rh(e)}function Lh(){return Lh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lh.apply(this,arguments)}function Bh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bh(n,!0).forEach((function(t){Fh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bh(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wh(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Uh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gh(e,t){return!t||"object"!==Rh(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function qh(e){return qh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},qh(e)}function Hh(e,t){return Hh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Hh(e,t)}var Vh=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Gh(this,qh(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)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}}),t&&Hh(e,t)}(t,e),n=t,r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=Wh(e,["viewBox"]),o=this.props,i=o.viewBox,a=Wh(o,["viewBox"]);return!L(n,i)||!L(r,a)||!L(t,this.state)}},{key:"getTickLineCoord",value:function(e){var t,n,r,o,i,a,u=this.props,c=u.x,s=u.y,l=u.width,f=u.height,p=u.orientation,h=u.tickSize,d=u.mirror,y=u.tickMargin,v=d?-1:1,m=e.tickSize||h,g=S(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=n=e.coordinate,a=(r=(o=s+!d*f)-v*m)-v*y,i=g;break;case"left":r=o=e.coordinate,i=(t=(n=c+!d*l)-v*m)-v*y,a=g;break;case"right":r=o=e.coordinate,i=(t=(n=c+d*l)+v*m)+v*y,a=g;break;default:t=n=e.coordinate,a=(r=(o=s+d*f)+v*m)+v*y,i=g}return{line:{x1:t,y1:r,x2:n,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.orientation,a=e.axisLine,u=e.mirror,s=zh({},K(this.props),{fill:"none"},K(a));if("top"===i||"bottom"===i){var l="top"===i&&!u||"bottom"===i&&u;s=zh({},s,{x1:t,y1:n+l*o,x2:t+r,y2:n+l*o})}else{var f="left"===i&&!u||"right"===i&&u;s=zh({},s,{x1:t+f*r,y1:n,x2:t+f*r,y2:n+o})}return c.createElement("line",Lh({className:"recharts-cartesian-axis-line"},s))}},{key:"renderTicks",value:function(e){var n=this,r=this.props,o=r.tickLine,a=r.stroke,u=r.tick,s=r.tickFormatter,l=r.unit,f=t.getTicks(zh({},this.props,{ticks:e})),p=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),d=K(this.props),y=K(u),v=zh({},d,{fill:"none"},K(o)),m=f.map((function(e,t){var r=n.getTickLineCoord(e),m=r.line,g=r.tick,b=zh({textAnchor:p,verticalAnchor:h},d,{stroke:"none",fill:a},y,{},g,{index:t,payload:e,visibleTicksCount:f.length});return c.createElement(_r,Lh({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t)},Q(n.props,e,t)),o&&c.createElement("line",Lh({className:"recharts-cartesian-axis-tick-line"},v,m)),u&&n.constructor.renderTickItem(u,b,"".concat(i()(s)?s(e.value):e.value).concat(l||"")))}));return c.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var e=this.props,t=e.axisLine,n=e.width,r=e.height,o=e.ticksGenerator,a=e.className;if(e.hide)return null;var u=this.props,s=u.ticks,l=Wh(u,["ticks"]),f=s;return i()(o)&&(f=s&&s.length>0?o(this.props):o(l)),n<=0||r<=0||!f||!f.length?null:c.createElement(_r,{className:p()("recharts-cartesian-axis",a)},t&&this.renderAxisLine(),this.renderTicks(f),Hf.renderCallByParent(this.props))}}],o=[{key:"getTicks",value:function(e){var n=e.tick,r=e.ticks,o=e.viewBox,i=e.minTickGap,a=e.orientation,u=e.interval,c=e.tickFormatter,s=e.unit;return r&&r.length&&n?S(u)||te()?t.getNumberIntervalTicks(r,S(u)?u:0):"preserveStartEnd"===u?t.getTicksStart({ticks:r,tickFormatter:c,viewBox:o,orientation:a,minTickGap:i,unit:s},!0):"preserveStart"===u?t.getTicksStart({ticks:r,tickFormatter:c,viewBox:o,orientation:a,minTickGap:i,unit:s}):t.getTicksEnd({ticks:r,tickFormatter:c,viewBox:o,orientation:a,minTickGap:i,unit:s}):[]}},{key:"getNumberIntervalTicks",value:function(e,t){return e.filter((function(e,n){return n%(t+1)===0}))}},{key:"getTicksStart",value:function(e,t){var n,r,o=e.ticks,a=e.tickFormatter,u=e.viewBox,c=e.orientation,s=e.minTickGap,l=e.unit,f=u.x,p=u.y,h=u.width,d=u.height,y="top"===c||"bottom"===c?"width":"height",v=(o||[]).slice(),m=l&&"width"===y?wf(l)[y]:0,g=v.length,b=g>=2?A(v[1].coordinate-v[0].coordinate):1;if(1===b?(n="width"===y?f:p,r="width"===y?f+h:p+d):(n="width"===y?f+h:p+d,r="width"===y?f:p),t){var x=o[g-1],O=i()(a)?a(x.value):x.value,w=wf(O)[y]+m,j=b*(x.coordinate+b*w/2-r);v[g-1]=x=zh({},x,{tickCoord:j>0?x.coordinate-j*b:x.coordinate}),b*(x.tickCoord-b*w/2-n)>=0&&b*(x.tickCoord+b*w/2-r)<=0&&(r=x.tickCoord-b*(w/2+s),v[g-1]=zh({},x,{isShow:!0}))}for(var k=t?g-1:g,_=0;_<k;_++){var E=v[_],T=i()(a)?a(E.value):E.value,S=wf(T)[y]+m;if(0===_){var M=b*(E.coordinate-b*S/2-n);v[_]=E=zh({},E,{tickCoord:M<0?E.coordinate-M*b:E.coordinate})}else v[_]=E=zh({},E,{tickCoord:E.coordinate});b*(E.tickCoord-b*S/2-n)>=0&&b*(E.tickCoord+b*S/2-r)<=0&&(n=E.tickCoord+b*(S/2+s),v[_]=zh({},E,{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"getTicksEnd",value:function(e){var t,n,r=e.ticks,o=e.tickFormatter,a=e.viewBox,u=e.orientation,c=e.minTickGap,s=e.unit,l=a.x,f=a.y,p=a.width,h=a.height,d="top"===u||"bottom"===u?"width":"height",y=s&&"width"===d?wf(s)[d]:0,v=(r||[]).slice(),m=v.length,g=m>=2?A(v[1].coordinate-v[0].coordinate):1;1===g?(t="width"===d?l:f,n="width"===d?l+p:f+h):(t="width"===d?l+p:f+h,n="width"===d?l:f);for(var b=m-1;b>=0;b--){var x=v[b],O=i()(o)?o(x.value):x.value,w=wf(O)[d]+y;if(b===m-1){var j=g*(x.coordinate+g*w/2-n);v[b]=x=zh({},x,{tickCoord:j>0?x.coordinate-j*g:x.coordinate})}else v[b]=x=zh({},x,{tickCoord:x.coordinate});g*(x.tickCoord-g*w/2-t)>=0&&g*(x.tickCoord+g*w/2-n)<=0&&(n=x.tickCoord-g*(w/2+c),v[b]=zh({},x,{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"renderTickItem",value:function(e,t,n){return c.isValidElement(e)?c.cloneElement(e,t):i()(e)?e(t):c.createElement(Df,Lh({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],r&&Uh(n.prototype,r),o&&Uh(n,o),t}(c.Component);Vh.displayName="CartesianAxis",Vh.propTypes=zh({},F,{},W,{className:l().string,x:l().number,y:l().number,width:l().number,height:l().number,orientation:l().oneOf(["top","bottom","left","right"]),viewBox:l().shape({x:l().number,y:l().number,width:l().number,height:l().number}),tick:l().oneOfType([l().bool,l().func,l().object,l().element]),axisLine:l().oneOfType([l().bool,l().object]),tickLine:l().oneOfType([l().bool,l().object]),mirror:l().bool,tickMargin:l().number.isRequired,minTickGap:l().number,ticks:l().array,tickSize:l().number,stroke:l().string,tickFormatter:l().func,ticksGenerator:l().func,interval:l().oneOfType([l().number,l().oneOf(["preserveStart","preserveEnd","preserveStartEnd"])])}),Vh.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"};const Xh=Vh;function Yh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $h=["Webkit","Moz","O","ms"],Zh=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=$h.reduce((function(e,r){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yh(n,!0).forEach((function(t){Kh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yh(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,Kh({},r+n,t))}),{});return r[e]=t,r};function Jh(e){return Jh="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jh(e)}function Qh(){return Qh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qh.apply(this,arguments)}function ed(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function td(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nd(e){return nd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},nd(e)}function rd(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function od(e,t){return od=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},od(e,t)}var id=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t){return!t||"object"!==Jh(t)&&"function"!==typeof t?rd(e):t}(this,nd(t).call(this,e))).handleDrag=function(e){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(e):n.state.isSlideMoving&&n.handleSlideDrag(e)},n.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleDrag(e.changedTouches[0])},n.handleDragEnd=function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1})},n.handleLeaveWrapper=function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=setTimeout(n.handleDragEnd,n.props.leaveTimeOut))},n.handleEnterSlideOrTraveller=function(){n.setState({isTextActive:!0})},n.handleLeaveSlideOrTraveller=function(){n.setState({isTextActive:!1})},n.handleSlideDragStart=function(e){var t=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:t.pageX})},n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(rd(n),"startX"),endX:n.handleTravellerDragStart.bind(rd(n),"endX")},n.state=e.data&&e.data.length?n.updateScale(e):{},n}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)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}}),t&&od(e,t)}(t,e),n=t,r=[{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.data,o=n.width,i=n.x,a=n.travellerWidth,u=n.updateId;(e.data!==r||e.updateId!==u)&&e.data&&e.data.length?this.setState(this.updateScale(e)):e.width===o&&e.x===i&&e.travellerWidth===a||(this.scale.range([e.x,e.x+e.width-e.travellerWidth]),this.scaleValues=this.scale.domain().map((function(e){return t.scale(e)})),this.setState({startX:this.scale(e.startIndex),endX:this.scale(e.endIndex)}))}},{key:"componentWillUnmount",value:function(){this.scale=null,this.scaleValues=null,this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null)}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=this.props,o=r.gap,i=r.data.length-1,a=Math.min(t,n),u=Math.max(t,n),c=this.constructor.getIndexInRange(this.scaleValues,a),s=this.constructor.getIndexInRange(this.scaleValues,u);return{startIndex:c-c%o,endIndex:s===i?i:s-s%o}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,a=Rs(n[e],o,e);return i()(r)?r(a):a}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,u=i.width,c=i.travellerWidth,s=i.startIndex,l=i.endIndex,f=i.onChange,p=e.pageX-n;p>0?p=Math.min(p,a+u-c-o,a+u-c-r):p<0&&(p=Math.max(p,a-r,a-o));var h=this.getIndex({startX:r+p,endX:o+p});h.startIndex===s&&h.endIndex===l||!f||f(h),this.setState({startX:r+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX})}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,o=n.movingTravellerId,i=n.endX,a=n.startX,u=this.state[o],c=this.props,s=c.x,l=c.width,f=c.travellerWidth,p=c.onChange,h=c.gap,d=c.data,y={startX:this.state.startX,endX:this.state.endX},v=e.pageX-r;v>0?v=Math.min(v,s+l-f-u):v<0&&(v=Math.max(v,s-u)),y[o]=u+v;var m=this.getIndex(y),g=m.startIndex,b=m.endIndex;this.setState((ed(t={},o,u+v),ed(t,"brushMoveStartX",e.pageX),t),(function(){p&&function(){var e=d.length-1;return"startX"===o&&(i>a?g%h===0:b%h===0)||i<a&&b===e||"endX"===o&&(i>a?b%h===0:g%h===0)||i>a&&b===e}()&&p(m)}))}},{key:"updateScale",value:function(e){var t=this,n=e.data,r=e.startIndex,o=e.endIndex,i=e.x,a=e.width,u=e.travellerWidth,c=n.length;return this.scale=Bo().domain(yh()(0,c)).range([i,i+a-u]),this.scaleValues=this.scale.domain().map((function(e){return t.scale(e)})),{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:this.scale(r),endX:this.scale(o)}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.fill,a=e.stroke;return c.createElement("rect",{stroke:a,fill:i,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.data,a=e.children,u=e.padding,s=c.Children.only(a);return s?c.cloneElement(s,{x:t,y:n,width:r,height:o,margin:u,compact:!0,data:i}):null}},{key:"renderTraveller",value:function(e,t){var n=this.props,r=n.y,o=n.travellerWidth,i=n.height,a=n.stroke,u=Math.floor(r+i/2)-1,s=Math.max(e,this.props.x);return c.createElement(_r,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},c.createElement("rect",{x:s,y:r,width:o,height:i,fill:a,stroke:"none"}),c.createElement("line",{x1:s+1,y1:u,x2:s+o-1,y2:u,fill:"none",stroke:"#fff"}),c.createElement("line",{x1:s+1,y1:u+2,x2:s+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,i=n.stroke;return c.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:i,fillOpacity:.2,x:Math.min(e,t),y:r,width:Math.abs(t-e),height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,i=e.travellerWidth,a=e.stroke,u=this.state,s=u.startX,l=u.endX,f={pointerEvents:"none",fill:a};return c.createElement(_r,{className:"recharts-brush-texts"},c.createElement(Df,Qh({textAnchor:"end",verticalAnchor:"middle",x:Math.min(s,l)-5,y:r+o/2},f),this.getTextOfTick(t)),c.createElement(Df,Qh({textAnchor:"start",verticalAnchor:"middle",x:Math.max(s,l)+i+5,y:r+o/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=e.x,i=e.y,a=e.width,u=e.height,s=e.alwaysShowText,l=this.state,f=l.startX,h=l.endX,d=l.isTextActive,y=l.isSlideMoving,v=l.isTravellerMoving;if(!t||!t.length||!S(o)||!S(i)||!S(a)||!S(u)||a<=0||u<=0)return null;var m=p()("recharts-brush",n),g=1===c.Children.count(r),b=Zh("userSelect","none");return c.createElement(_r,{className:m,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onMouseUp:this.handleDragEnd,onTouchEnd:this.handleDragEnd,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),g&&this.renderPanorama(),this.renderSlide(f,h),this.renderTraveller(f,"startX"),this.renderTraveller(h,"endX"),(d||y||v||s)&&this.renderText())}}],o=[{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var o=Math.floor((n+r)/2);e[o]>t?r=o:n=o}return t>=e[r]?r:n}}],r&&td(n.prototype,r),o&&td(n,o),t}(c.PureComponent);id.displayName="Brush",id.propTypes={className:l().string,fill:l().string,stroke:l().string,x:l().number,y:l().number,width:l().number,height:l().number.isRequired,travellerWidth:l().number,gap:l().number,padding:l().shape({top:l().number,right:l().number,bottom:l().number,left:l().number}),dataKey:l().oneOfType([l().string,l().number,l().func]),data:l().array,startIndex:l().number,endIndex:l().number,tickFormatter:l().func,children:l().node,onChange:l().func,updateId:l().oneOfType([l().string,l().number]),leaveTimeOut:l().number,alwaysShowText:l().bool},id.defaultProps={height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1};const ad=id;var ud=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},cd=n(6638),sd=n.n(cd);function ld(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pd(e,t,n){return t&&fd(e.prototype,t),n&&fd(e,n),e}function hd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hd(n,!0).forEach((function(t){yd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hd(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vd=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return{x:Math.min(n,o),y:Math.min(r,i),width:Math.abs(o-n),height:Math.abs(i-r)}},md=function(){function e(t){ld(this,e),this.scale=t}return pd(e,null,[{key:"create",value:function(t){return new e(t)}}]),pd(e,[{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}},{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}}]),e}();md.EPS=1e-4;var gd=function(){function e(t){ld(this,e),this.scales=sd()(t,md.create),Object.assign(this,this.scales)}return pd(e,null,[{key:"create",value:function(e){return new this(e)}}]),pd(e,[{key:"apply",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).bandAware,n=this.scales;return sd()(e,(function(e,r){return n[r].apply(e,{bandAware:t})}))}},{key:"isInRange",value:function(e){var t=this.scales;return fh()(e,(function(e,n){return t[n].isInRange(e)}))}}]),e}();function bd(e){return bd="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},bd(e)}function xd(){return xd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xd.apply(this,arguments)}function Od(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Od(n,!0).forEach((function(t){jd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Od(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _d(e,t){return!t||"object"!==bd(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ed(e){return Ed=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ed(e)}function Ad(e,t){return Ad=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ad(e,t)}var Td=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),_d(this,Ed(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)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}}),t&&Ad(e,t)}(t,e),n=t,o=[{key:"renderDot",value:function(e,t){return c.isValidElement(e)?c.cloneElement(e,t):i()(e)?e(t):c.createElement(Ih,xd({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))}}],(r=[{key:"getCoordinate",value:function(){var e=this.props,t=e.x,n=e.y,r=e.xAxis,o=e.yAxis,i=gd.create({x:r.scale,y:o.scale}),a=i.apply({x:t,y:n},{bandAware:!0});return ud(this.props,"discard")&&!i.isInRange(a)?null:a}},{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.r,o=(e.alwaysShow,e.clipPathId),i=M(t),a=M(n);if(!i||!a)return null;var u=this.getCoordinate();if(!u)return null;var s=u.x,l=u.y,f=this.props,h=f.shape,d=f.className,y=wd({clipPath:ud(this.props,"hidden")?"url(#".concat(o,")"):void 0},K(this.props),{},Z(this.props),{cx:s,cy:l});return c.createElement(_r,{className:p()("recharts-reference-dot",d)},this.constructor.renderDot(h,y),Hf.renderCallByParent(this.props,{x:s-r,y:l-r,width:2*r,height:2*r}))}}])&&kd(n.prototype,r),o&&kd(n,o),t}(c.PureComponent);Td.displayName="ReferenceDot",Td.propTypes=wd({},F,{},W,{r:l().number,xAxis:l().shape({scale:l().func}),yAxis:l().shape({scale:l().func}),isFront:l().bool,alwaysShow:l().bool,ifOverflow:l().oneOf(["hidden","visible","discard","extendDomain"]),x:l().oneOfType([l().number,l().string]),y:l().oneOfType([l().number,l().string]),className:l().oneOfType([l().number,l().string]),yAxisId:l().oneOfType([l().string,l().number]),xAxisId:l().oneOfType([l().string,l().number]),shape:l().oneOfType([l().func,l().element]),clipPathId:l().string}),Td.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1};const Sd=Td;var Md=n(11032),Pd=n.n(Md);function Cd(e){return Cd="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cd(e)}function Nd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nd(n,!0).forEach((function(t){Id(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nd(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Id(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(c){o=!0,i=c}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Ld(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Bd(e,t){return!t||"object"!==Cd(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function zd(e){return zd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},zd(e)}function Fd(e,t){return Fd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Fd(e,t)}function Wd(){return Wd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wd.apply(this,arguments)}var Ud=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Bd(this,zd(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)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}}),t&&Fd(e,t)}(t,e),n=t,(r=[{key:"getEndPoints",value:function(e,t,n,r){var o=this.props,i=o.viewBox,a=i.x,u=i.y,c=i.width,s=i.height,l=o.position;if(n){var f=this.props,p=f.y,h=f.yAxis.orientation,d=e.y.apply(p,{position:l});if(ud(this.props,"discard")&&!e.y.isInRange(d))return null;var y=[{x:a+c,y:d},{x:a,y:d}];return"left"===h?y.reverse():y}if(t){var v=this.props,m=v.x,g=v.xAxis.orientation,b=e.x.apply(m,{position:l});if(ud(this.props,"discard")&&!e.x.isInRange(b))return null;var x=[{x:b,y:u+s},{x:b,y:u}];return"top"===g?x.reverse():x}if(r){var O=this.props.segment.map((function(t){return e.apply(t,{position:l})}));return ud(this.props,"discard")&&Pd()(O,(function(t){return!e.isInRange(t)}))?null:O}return null}},{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.segment,o=e.xAxis,a=e.yAxis,u=e.shape,s=e.className,l=(e.alwaysShow,e.clipPathId),f=gd.create({x:o.scale,y:a.scale}),h=M(t),d=M(n),y=r&&2===r.length,v=this.getEndPoints(f,h,d,y);if(!v)return null;var m=Rd(v,2),g=m[0],b=g.x,x=g.y,O=m[1],w=O.x,j=O.y,k=Dd({clipPath:ud(this.props,"hidden")?"url(#".concat(l,")"):void 0},K(this.props),{},Z(this.props),{x1:b,y1:x,x2:w,y2:j});return c.createElement(_r,{className:p()("recharts-reference-line",s)},function(e,t){return c.isValidElement(e)?c.cloneElement(e,t):i()(e)?e(t):c.createElement("line",Wd({},t,{className:"recharts-reference-line-line"}))}(u,k),Hf.renderCallByParent(this.props,function(e){var t=e.x1,n=e.y1,r=e.x2,o=e.y2;return vd({x:t,y:n},{x:r,y:o})}({x1:b,y1:x,x2:w,y2:j})))}}])&&Ld(n.prototype,r),o&&Ld(n,o),t}(c.PureComponent);Ud.displayName="ReferenceLine",Ud.propTypes=Dd({},F,{viewBox:l().shape({x:l().number,y:l().number,width:l().number,height:l().number}),xAxis:l().object,yAxis:l().object,isFront:l().bool,alwaysShow:l().bool,ifOverflow:l().oneOf(["hidden","visible","discard","extendDomain"]),x:l().oneOfType([l().number,l().string]),y:l().oneOfType([l().number,l().string]),segment:l().arrayOf(l().shape({x:l().oneOfType([l().number,l().string]),y:l().oneOfType([l().number,l().string])})),position:l().oneOf(["middle","start","end"]),className:l().oneOfType([l().number,l().string]),yAxisId:l().oneOfType([l().string,l().number]),xAxisId:l().oneOfType([l().string,l().number]),shape:l().func}),Ud.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};const Gd=Ud;function qd(e){return qd="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qd(e)}function Hd(){return Hd=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hd.apply(this,arguments)}function Vd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vd(n,!0).forEach((function(t){Yd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vd(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $d(e,t){return!t||"object"!==qd(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Zd(e){return Zd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Zd(e)}function Jd(e,t){return Jd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Jd(e,t)}var Qd=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),$d(this,Zd(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)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}}),t&&Jd(e,t)}(t,e),n=t,o=[{key:"renderRect",value:function(e,t){return c.isValidElement(e)?c.cloneElement(e,t):i()(e)?e(t):c.createElement(Lp,Hd({},t,{className:"recharts-reference-area-rect"}))}}],(r=[{key:"getRect",value:function(e,t,n,r){var o=this.props,i=o.x1,a=o.x2,u=o.y1,c=o.y2,s=o.xAxis,l=o.yAxis,f=gd.create({x:s.scale,y:l.scale}),p={x:e?f.x.apply(i):f.x.rangeMin,y:n?f.y.apply(u):f.y.rangeMin},h={x:t?f.x.apply(a):f.x.rangeMax,y:r?f.y.apply(c):f.y.rangeMax};return!ud(this.props,"discard")||f.isInRange(p)&&f.isInRange(h)?vd(p,h):null}},{key:"render",value:function(){var e=this.props,t=e.x1,n=e.x2,r=e.y1,o=e.y2,i=e.className,a=(e.alwaysShow,e.clipPathId),u=M(t),s=M(n),l=M(r),f=M(o),h=this.props.shape;if(!u&&!s&&!l&&!f&&!h)return null;var d=this.getRect(u,s,l,f);if(!d&&!h)return null;var y=ud(this.props,"hidden")?"url(#".concat(a,")"):void 0;return c.createElement(_r,{className:p()("recharts-reference-area",i)},this.constructor.renderRect(h,Xd({clipPath:y},this.props,{},d)),Hf.renderCallByParent(this.props,d))}}])&&Kd(n.prototype,r),o&&Kd(n,o),t}(c.PureComponent);Qd.displayName="ReferenceArea",Qd.propTypes=Xd({},F,{viewBox:l().shape({x:l().number,y:l().number,width:l().number,height:l().number}),xAxis:l().object,yAxis:l().object,isFront:l().bool,alwaysShow:l().bool,ifOverflow:l().oneOf(["hidden","visible","discard","extendDomain"]),x1:l().oneOfType([l().number,l().string]),x2:l().oneOfType([l().number,l().string]),y1:l().oneOfType([l().number,l().string]),y2:l().oneOfType([l().number,l().string]),className:l().oneOfType([l().number,l().string]),yAxisId:l().oneOfType([l().string,l().number]),xAxisId:l().oneOfType([l().string,l().number]),shape:l().oneOfType([l().func,l().element])}),Qd.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1};const ey=Qd;var ty=function(e,t,n,r,o){var i=X(e,Gd),a=X(e,Sd),u=i.concat(a),c=X(e,ey),s="".concat(r,"Id"),l=r[0],f=t;if(u.length&&(f=u.reduce((function(e,t){if(t.props[s]===n&&ud(t.props,"extendDomain")&&S(t.props[l])){var r=t.props[l];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),f)),c.length){var p="".concat(l,"1"),h="".concat(l,"2");f=c.reduce((function(e,t){if(t.props[s]===n&&ud(t.props,"extendDomain")&&S(t.props[p])&&S(t.props[h])){var r=t.props[p],o=t.props[h];return[Math.min(e[0],r,o),Math.max(e[1],r,o)]}return e}),f)}return o&&o.length&&(f=o.reduce((function(e,t){return S(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},ny=n(28981),ry=new(n.n(ny)());ry.setMaxListeners&&ry.setMaxListeners(10);var oy="recharts.syncMouseEvents";function iy(e){return iy="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iy(e)}function ay(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function uy(){return uy=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uy.apply(this,arguments)}function cy(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function sy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ly(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sy(n,!0).forEach((function(t){fy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sy(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function py(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hy(e){return hy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hy(e)}function dy(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yy(e,t){return yy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},yy(e,t)}var vy={xAxis:["bottom","top"],yAxis:["left","right"]},my={x:0,y:0};const gy=function(e){var t=e.chartName,n=e.GraphicalChild,r=e.eventType,o=void 0===r?"axis":r,a=e.axisComponents,u=e.legendContent,s=e.formatAxisMap,f=e.defaultProps,h=e.propTypes,y=function(e){function r(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(n=function(e,t){return!t||"object"!==iy(t)&&"function"!==typeof t?dy(e):t}(this,hy(r).call(this,e))).handleLegendBBoxUpdate=function(e){if(e&&n.legendInstance){var t=n.state,r=t.dataStartIndex,o=t.dataEndIndex,i=t.updateId;n.setState(n.updateStateOfAxisMapsOffsetAndStackGroups({props:n.props,dataStartIndex:r,dataEndIndex:o,updateId:i}))}},n.handleReceiveSyncEvent=function(e,t,r){var o=n.props,i=o.syncId,a=o.layout,u=n.state.updateId;if(i===e&&t!==n.uniqueChartId){var c=r.dataStartIndex,s=r.dataEndIndex;if(d()(r.dataStartIndex)&&d()(r.dataEndIndex))if(d()(r.activeTooltipIndex))n.setState(r);else{var l=r.chartX,f=r.chartY,p=r.activeTooltipIndex,h=n.state,y=h.offset,v=h.tooltipTicks;if(!y)return;var m=ly({},y,{x:y.left,y:y.top}),g=Math.min(l,m.x+m.width),b=Math.min(f,m.y+m.height),x=v[p]&&v[p].value,O=n.getTooltipContent(p),w=v[p]?{x:"horizontal"===a?v[p].coordinate:g,y:"horizontal"===a?b:v[p].coordinate}:my;n.setState(ly({},r,{activeLabel:x,activeCoordinate:w,activePayload:O}))}else n.setState(ly({dataStartIndex:c,dataEndIndex:s},n.updateStateOfAxisMapsOffsetAndStackGroups({props:n.props,dataStartIndex:c,dataEndIndex:s,updateId:u})))}},n.handleBrushChange=function(e){var t=e.startIndex,r=e.endIndex;if(t!==n.state.dataStartIndex||r!==n.state.dataEndIndex){var o=n.state.updateId;n.setState((function(){return ly({dataStartIndex:t,dataEndIndex:r},n.updateStateOfAxisMapsOffsetAndStackGroups({props:n.props,dataStartIndex:t,dataEndIndex:r,updateId:o}))})),n.triggerSyncEvent({dataStartIndex:t,dataEndIndex:r})}},n.handleMouseEnter=function(e){var t=n.props.onMouseEnter,r=n.getMouseInfo(e);if(r){var o=ly({},r,{isTooltipActive:!0});n.setState(o),n.triggerSyncEvent(o),i()(t)&&t(o,e)}},n.triggeredAfterMouseMove=function(e){var t=n.props.onMouseMove,r=n.getMouseInfo(e),o=r?ly({},r,{isTooltipActive:!0}):{isTooltipActive:!1};n.setState(o),n.triggerSyncEvent(o),i()(t)&&t(o,e)},n.handleItemMouseEnter=function(e){n.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))},n.handleItemMouseLeave=function(){n.setState((function(){return{isTooltipActive:!1}}))},n.handleMouseMove=function(e){e&&i()(e.persist)&&e.persist(),n.triggeredAfterMouseMove(e)},n.handleMouseLeave=function(e){var t=n.props.onMouseLeave,r={isTooltipActive:!1};n.setState(r),n.triggerSyncEvent(r),i()(t)&&t(r,e)},n.handleOuterEvent=function(e){var t=function(e){var t=e&&e.type;return t&&U[t]?U[t]:null}(e);if(t&&i()(n.props[t])){var r=n.getMouseInfo(e);(0,n.props[t])(r,e)}},n.handleClick=function(e){var t=n.props.onClick;i()(t)&&t(n.getMouseInfo(e),e)},n.handleMouseDown=function(e){var t=n.props.onMouseDown;i()(t)&&t(n.getMouseInfo(e),e)},n.handleMouseUp=function(e){var t=n.props.onMouseUp;i()(t)&&t(n.getMouseInfo(e),e)},n.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseMove(e.changedTouches[0])},n.handleTouchStart=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseDown(e.changedTouches[0])},n.handleTouchEnd=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseUp(e.changedTouches[0])},n.verticalCoordinatesGenerator=function(e){var t=e.xAxis,n=e.width,r=e.height,o=e.offset;return Gs(Xh.getTicks(ly({},Xh.defaultProps,{},t,{ticks:qs(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)},n.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,n=e.width,r=e.height,o=e.offset;return Gs(Xh.getTicks(ly({},Xh.defaultProps,{},t,{ticks:qs(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)},n.axesTicksGenerator=function(e){return qs(e,!0)},n.tooltipTicksGenerator=function(e){var t=D(e),n=qs(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Cn()(n,(function(e){return e.coordinate})),tooltipAxis:t,tooltipAxisBandSize:rl(t)}},n.renderCursor=function(e){var r=n.state,o=r.isTooltipActive,i=r.activeCoordinate,a=r.activePayload,u=r.offset;if(!e||!e.props.cursor||!o||!i)return null;var s,l=n.props.layout,f=ff;if("ScatterChart"===t)s=i,f=Ah;else if("BarChart"===t)s=n.getCursorRectangle(),f=Lp;else if("radial"===l){var p=n.getCursorPoints(),h=p.cx,d=p.cy,y=p.radius;s={cx:h,cy:d,startAngle:p.startAngle,endAngle:p.endAngle,innerRadius:y,outerRadius:y},f=Al}else s={points:n.getCursorPoints()},f=ff;var v=e.key||"_recharts-cursor",m=ly({stroke:"#ccc",pointerEvents:"none"},u,{},s,{},K(e.props.cursor),{payload:a,key:v,className:"recharts-tooltip-cursor"});return(0,c.isValidElement)(e.props.cursor)?(0,c.cloneElement)(e.props.cursor,m):(0,c.createElement)(f,m)},n.renderPolarAxis=function(e,t,r){var o=e.type.axisType,i=n.state["".concat(o,"Map")][e.props["".concat(o,"Id")]];return(0,c.cloneElement)(e,ly({},i,{className:o,key:e.key||"".concat(t,"-").concat(r),ticks:qs(i,!0)}))},n.renderXAxis=function(e,t,r){var o=n.state.xAxisMap[e.props.xAxisId];return n.renderAxis(o,e,t,r)},n.renderYAxis=function(e,t,r){var o=n.state.yAxisMap[e.props.yAxisId];return n.renderAxis(o,e,t,r)},n.renderGrid=function(e){var t=n.state,r=t.xAxisMap,o=t.yAxisMap,i=t.offset,a=n.props,u=a.width,s=a.height,l=D(r),f=hh()(o,(function(e){return fh()(e.domain,Number.isFinite)}))||D(o),p=e.props||{};return(0,c.cloneElement)(e,{key:e.key||"grid",x:S(p.x)?p.x:i.left,y:S(p.y)?p.y:i.top,width:S(p.width)?p.width:i.width,height:S(p.height)?p.height:i.height,xAxis:l,yAxis:f,offset:i,chartWidth:u,chartHeight:s,verticalCoordinatesGenerator:p.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:p.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})},n.renderPolarGrid=function(e){var t=n.state,r=t.radiusAxisMap,o=t.angleAxisMap,i=D(r),a=D(o),u=a.cx,s=a.cy,l=a.innerRadius,f=a.outerRadius;return(0,c.cloneElement)(e,{polarAngles:qs(a,!0).map((function(e){return e.coordinate})),polarRadius:qs(i,!0).map((function(e){return e.coordinate})),cx:u,cy:s,innerRadius:l,outerRadius:f,key:e.key||"polar-grid"})},n.renderBrush=function(e){var t=n.props,r=t.margin,o=t.data,i=n.state,a=i.offset,u=i.dataStartIndex,s=i.dataEndIndex,l=i.updateId;return(0,c.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:Hs(n.handleBrushChange,null,e.props.onChange),data:o,x:S(e.props.x)?e.props.x:a.left,y:S(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:S(e.props.width)?e.props.width:a.width,startIndex:u,endIndex:s,updateId:"brush-".concat(l)})},n.renderReferenceElement=function(e,t,r){if(!e)return null;var o=dy(n).clipPathId,i=n.state,a=i.xAxisMap,u=i.yAxisMap,s=i.offset,l=e.props,f=l.xAxisId,p=l.yAxisId;return(0,c.cloneElement)(e,{key:e.key||"".concat(t,"-").concat(r),xAxis:a[f],yAxis:u[p],viewBox:{x:s.left,y:s.top,width:s.width,height:s.height},clipPathId:o})},n.renderGraphicChild=function(e,t,r){var o=n.filterFormatItem(e,t,r);if(!o)return null;var i=(0,c.cloneElement)(e,o.props),a=n.state,u=a.isTooltipActive,s=a.tooltipAxis,l=a.activeTooltipIndex,f=a.activeLabel,p=n.props.children,h=Y(p,or),y=o.props,v=y.points,m=y.isRange,g=y.baseLine,b=o.item.props,x=b.activeDot;if(!b.hide&&u&&h&&x&&l>=0){var O,w;if(s.dataKey&&!s.allowDuplicatedCategory){var j="function"===typeof s.dataKey?function(e){return s.dataKey(e.payload)}:"payload.".concat(s.dataKey);O=R(v,j,f),w=m&&g&&R(g,j,f)}else O=v[l],w=m&&g&&g[l];if(!d()(O))return[i].concat(cy(n.renderActivePoints({item:o,activePoint:O,basePoint:w,childIndex:l,isRange:m})))}return m?[i,null,null]:[i,null]},n.renderCustomized=function(e){return(0,c.cloneElement)(e,ly({},n.props,{},n.state))};var o=n.constructor.createDefaultState(e);return n.state=ly({},o,{updateId:0},n.updateStateOfAxisMapsOffsetAndStackGroups(ly({props:e},o,{updateId:0}))),n.uniqueChartId=d()(e.id)?C("recharts"):e.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),e.throttleDelay&&(n.triggeredAfterMouseMove=mh()(n.triggeredAfterMouseMove,e.throttleDelay)),n}var l,f,h;return function(e,t){if("function"!==typeof t&&null!==t)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}}),t&&yy(e,t)}(r,e),l=r,f=[{key:"componentDidMount",value:function(){d()(this.props.syncId)||this.addListener()}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.data,o=n.children,i=n.width,a=n.height,u=n.layout,c=n.stackOffset,s=n.margin,l=this.state.updateId;if(e.data===r&&e.width===i&&e.height===a&&e.layout===u&&e.stackOffset===c&&L(e.margin,s)){if(!oe(e.children,o)){var f=d()(e.data)?l+1:l;this.setState((function(n){return ly({updateId:f},t.updateStateOfAxisMapsOffsetAndStackGroups(ly({props:e},n,{updateId:f})))}))}}else{var p=this.constructor.createDefaultState(e);this.setState((function(n){return ly({},p,{updateId:l+1,chartX:n.chartX,chartY:n.chartY},t.getTooltipData(),{isTooltipActive:n.isTooltipActive},t.updateStateOfAxisMapsOffsetAndStackGroups(ly({props:e},p,{updateId:l+1})))}))}d()(this.props.syncId)&&!d()(e.syncId)&&this.addListener(),!d()(this.props.syncId)&&d()(e.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){d()(this.props.syncId)||this.removeListener(),"function"===typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getAxisMap",value:function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,u=t.dataStartIndex,c=t.dataEndIndex,s=e.children,l="".concat(r,"Id"),f=X(s,o),p={};return f&&f.length?p=this.getAxisMapByAxes(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:u,dataEndIndex:c}):i&&i.length&&(p=this.getAxisMapByItems(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:u,dataEndIndex:c})),p}},{key:"getAxisMapByAxes",value:function(e,t){var n=this,r=t.axes,o=t.graphicalItems,i=t.axisType,a=t.axisIdKey,u=t.stackGroups,c=t.dataStartIndex,s=t.dataEndIndex,l=e.layout,f=e.children,p=e.stackOffset,h=Us(l,i),y=r.reduce((function(t,r){var y=r.props,v=y.type,m=y.dataKey,g=y.allowDataOverflow,b=y.allowDuplicatedCategory,O=y.scale,w=y.ticks,j=r.props[a],k=n.constructor.getDisplayedData(e,{graphicalItems:o.filter((function(e){return e.props[a]===j})),dataStartIndex:c,dataEndIndex:s}),_=k.length;if(!t[j]){var E,A,T;if(m){if(E=Ls(k,m,v),"category"===v&&h){var S=function(e){if(!x()(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1}(E);b&&S?(A=E,E=yh()(0,_)):b||(E=ol(r.props.domain,E,r).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(cy(e),[t])}),[]))}else if("category"===v)E=b?E.filter((function(e){return""!==e&&!d()(e)})):ol(r.props.domain,E,r).reduce((function(e,t){return e.indexOf(t)>=0||""===t||d()(t)?e:[].concat(cy(e),[t])}),[]);else if("number"===v){var M=function(e,t,n,r){var o=t.map((function(t){return Fs(e,t,n,r)})).filter((function(e){return!d()(e)}));return o&&o.length?o.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(k,o.filter((function(e){return e.props[a]===j&&!e.props.hide})),m,i);M&&(E=M)}!h||"number"!==v&&"auto"===O||(T=Ls(k,m,"category"))}else E=h?yh()(0,_):u&&u[j]&&u[j].hasStack&&"number"===v?"expand"===p?[0,1]:Qs(u[j].stackGroups,c,s):Ws(k,o.filter((function(e){return e.props[a]===j&&!e.props.hide})),v,!0);return"number"===v&&(E=ty(f,E,j,i,w),r.props.domain&&(E=nl(r.props.domain,E,g))),ly({},t,fy({},j,ly({},r.props,{axisType:i,domain:E,categoricalDomain:T,duplicateDomain:A,originalDomain:r.props.domain,isCategorial:h,layout:l})))}return t}),{});return y}},{key:"getAxisMapByItems",value:function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,u=t.dataStartIndex,c=t.dataEndIndex,s=e.layout,l=e.children,f=this.constructor.getDisplayedData(e,{graphicalItems:n,dataStartIndex:u,dataEndIndex:c}),p=f.length,h=Us(s,o),d=-1;return n.reduce((function(e,t){var y,v=t.props[i];return e[v]?e:(d++,h?y=yh()(0,p):a&&a[v]&&a[v].hasStack?(y=Qs(a[v].stackGroups,u,c),y=ty(l,y,v,o)):(y=nl(r.defaultProps.domain,Ws(f,n.filter((function(e){return e.props[i]===v&&!e.props.hide})),"number"),r.defaultProps.allowDataOverflow),y=ty(l,y,v,o)),ly({},e,fy({},v,ly({axisType:o},r.defaultProps,{hide:!0,orientation:vy[o]&&vy[o][d%2],domain:y,originalDomain:r.defaultProps.domain,isCategorial:h,layout:s}))))}),{})}},{key:"getActiveCoordinate",value:function(e,t,n){var r=this.props.layout,o=e.find((function(e){return e&&e.index===t}));if(o){if("horizontal"===r)return{x:o.coordinate,y:n.y};if("vertical"===r)return{x:n.x,y:o.coordinate};if("centric"===r){var i=o.coordinate,a=n.radius;return ly({},n,{},fl(n.cx,n.cy,a,i),{angle:i,radius:a})}var u=o.coordinate,c=n.angle;return ly({},n,{},fl(n.cx,n.cy,u,c),{angle:c,radius:u})}return my}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}(e,function(e){var t=e.ownerDocument.documentElement,n={top:0,left:0};return"undefined"!==typeof e.getBoundingClientRect&&(n=e.getBoundingClientRect()),{top:n.top+window.pageYOffset-t.clientTop,left:n.left+window.pageXOffset-t.clientLeft}}(this.container)),n=this.inRange(t.chartX,t.chartY);if(!n)return null;var r=this.state,i=r.xAxisMap,a=r.yAxisMap;if("axis"!==o&&i&&a){var u=D(i).scale,c=D(a).scale;return ly({},t,{xValue:u&&u.invert?u.invert(t.chartX):null,yValue:c&&c.invert?c.invert(t.chartY):null})}var s=this.getTooltipData(n);return s?ly({},t,{},s):null}},{key:"getTooltipData",value:function(e){var t=e||{x:this.state.chartX,y:this.state.chartY},n=this.calculateTooltipPos(t),r=this.state,o=r.orderedTooltipTicks,i=r.tooltipAxis,a=r.tooltipTicks;if(!o)return null;var u=function(e,t,n,r){var o=-1,i=t.length;if(i>1){if(r&&"angleAxis"===r.axisType&&Math.abs(Math.abs(r.range[1]-r.range[0])-360)<=1e-6)for(var a=r.range,u=0;u<i;u++){var c=u>0?n[u-1].coordinate:n[i-1].coordinate,s=n[u].coordinate,l=u>=i-1?n[0].coordinate:n[u+1].coordinate,f=void 0;if(A(s-c)!==A(l-s)){var p=[];if(A(l-s)===A(a[1]-a[0])){f=l;var h=s+a[1]-a[0];p[0]=Math.min(h,(h+c)/2),p[1]=Math.max(h,(h+c)/2)}else{f=c;var d=l+a[1]-a[0];p[0]=Math.min(s,(d+s)/2),p[1]=Math.max(s,(d+s)/2)}var y=[Math.min(s,(f+s)/2),Math.max(s,(f+s)/2)];if(e>y[0]&&e<=y[1]||e>=p[0]&&e<=p[1]){o=n[u].index;break}}else{var v=Math.min(c,l),m=Math.max(c,l);if(e>(v+s)/2&&e<=(m+s)/2){o=n[u].index;break}}}else for(var g=0;g<i;g++)if(0===g&&e<=(t[g].coordinate+t[g+1].coordinate)/2||g>0&&g<i-1&&e>(t[g].coordinate+t[g-1].coordinate)/2&&e<=(t[g].coordinate+t[g+1].coordinate)/2||g===i-1&&e>(t[g].coordinate+t[g-1].coordinate)/2){o=t[g].index;break}}else o=0;return o}(n,o,a,i);if(u>=0&&a){var c=a[u]&&a[u].value;return{activeTooltipIndex:u,activeLabel:c,activePayload:this.getTooltipContent(u,c),activeCoordinate:this.getActiveCoordinate(o,u,t)}}return null}},{key:"getTooltipContent",value:function(e,t){var n=this.state,r=n.graphicalItems,o=n.tooltipAxis,i=this.constructor.getDisplayedData(this.props,this.state);return e<0||!r||!r.length||e>=i.length?null:r.reduce((function(n,r){if(r.props.hide)return n;var a,u=r.props,c=u.dataKey,s=u.name,l=u.unit,f=u.formatter,p=u.data,h=u.tooltipType;return(a=o.dataKey&&!o.allowDuplicatedCategory?R(p||i,o.dataKey,t):p&&p[e]||i[e])?[].concat(cy(n),[ly({},K(r),{dataKey:c,unit:l,formatter:f,name:s||c,color:Bs(r),value:Rs(a,c),type:h,payload:a})]):n}),[])}},{key:"getFormatItems",value:function(e,t){var n=this,r=t.graphicalItems,o=t.stackGroups,i=t.offset,u=t.updateId,c=t.dataStartIndex,s=t.dataEndIndex,l=e.barSize,f=e.layout,p=e.barGap,h=e.barCategoryGap,y=e.maxBarSize,v=this.constructor.getAxisNameByLayout(f),m=v.numericAxisName,g=v.cateAxisName,b=this.constructor.hasBar(r),x=b&&function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},i=Object.keys(r),a=0,u=i.length;a<u;a++)for(var c=r[i[a]].stackGroups,s=Object.keys(c),l=0,f=s.length;l<f;l++){var p=c[s[l]],h=p.items,y=p.cateAxisId,v=h.filter((function(e){return V(e.type).indexOf("Bar")>=0}));if(v&&v.length){var m=v[0].props.barSize,g=v[0].props[y];o[g]||(o[g]=[]),o[g].push({item:v[0],stackList:v.slice(1),barSize:d()(m)?t:m})}}return o}({barSize:l,stackGroups:o}),O=[];return r.forEach((function(r,l){var v,w=n.constructor.getDisplayedData(e,{dataStartIndex:c,dataEndIndex:s},r),j=r.props,k=j.dataKey,_=j.maxBarSize,E=r.props["".concat(m,"Id")],A=r.props["".concat(g,"Id")],T=a.reduce((function(e,n){var o,i=t["".concat(n.axisType,"Map")],a=r.props["".concat(n.axisType,"Id")],u=i&&i[a];return ly({},e,(fy(o={},n.axisType,u),fy(o,"".concat(n.axisType,"Ticks"),qs(u)),o))}),{}),S=T[g],P=T["".concat(g,"Ticks")],C=o&&o[E]&&o[E].hasStack&&function(e,t){var n=e.props.stackId;if(M(n)){var r=t[n];if(r&&r.items.length){for(var o=-1,i=0,a=r.items.length;i<a;i++)if(r.items[i]===e){o=i;break}return o>=0?r.stackedData[o]:null}}return null}(r,o[E].stackGroups),D=rl(S,P),I=d()(_)?y:_,R=b&&function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,u=i.length;if(u<1)return null;var c,s=N(t,r,0,!0);if(i[0].barSize===+i[0].barSize){var l=!1,f=r/u,p=i.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(u-1)*s)>=r&&(p-=(u-1)*s,s=0),p>=r&&f>0&&(l=!0,p=u*(f*=.9));var h={offset:((r-p)/2|0)-s,size:0};c=i.reduce((function(e,t){var n=[].concat(Cs(e),[{item:t.item,position:{offset:h.offset+h.size+s,size:l?f:t.barSize}}]);return h=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:h})})),n}),[])}else{var d=N(n,r,0,!0);r-2*d-(u-1)*s<=0&&(s=0);var y=(r-2*d-(u-1)*s)/u;y>1&&(y>>=0);var v=a===+a?Math.min(y,a):y;c=i.reduce((function(e,t,n){var r=[].concat(Cs(e),[{item:t.item,position:{offset:d+(y+s)*n+(y-v)/2,size:v}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),[])}return c}({barGap:p,barCategoryGap:h,bandSize:D,sizeList:x[A],maxBarSize:I}),L=r&&r.type&&r.type.getComposedData;L&&O.push({props:ly({},L(ly({},T,{displayedData:w,props:e,dataKey:k,item:r,bandSize:D,barPosition:R,offset:i,stackedData:C,layout:f,dataStartIndex:c,dataEndIndex:s,onItemMouseLeave:Hs(n.handleItemMouseLeave,null,r.props.onMouseLeave),onItemMouseEnter:Hs(n.handleItemMouseEnter,null,r.props.onMouseEnter)})),(v={key:r.key||"item-".concat(l)},fy(v,m,T[m]),fy(v,g,T[g]),fy(v,"animationId",u),v)),childIndex:ae(r,e.children),item:r})})),O}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,o=t.tooltipAxisBandSize,i=o/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-i:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-i,width:"horizontal"===e?o:r.width-1,height:"horizontal"===e?r.height-1:o}}},{key:"getCursorPoints",value:function(){var e,t,n,r,o=this.props.layout,i=this.state,a=i.activeCoordinate,u=i.offset;if("horizontal"===o)n=e=a.x,t=u.top,r=u.top+u.height;else if("vertical"===o)r=t=a.y,e=u.left,n=u.left+u.width;else if(!d()(a.cx)||!d()(a.cy)){if("centric"!==o){var c=a.cx,s=a.cy,l=a.radius,f=a.startAngle,p=a.endAngle;return{points:[fl(c,s,l,f),fl(c,s,l,p)],cx:c,cy:s,radius:l,startAngle:f,endAngle:p}}var h=a.cx,y=a.cy,v=a.innerRadius,m=a.outerRadius,g=a.angle,b=fl(h,y,v,g),x=fl(h,y,m,g);e=b.x,t=b.y,n=x.x,r=x.y}return[{x:e,y:t},{x:n,y:r}]}},{key:"calculateTooltipPos",value:function(e){var t=this.props.layout;return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}},{key:"inRange",value:function(e,t){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return e>=r.left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height?{x:e,y:t}:null}var o=this.state,i=o.angleAxisMap,a=o.radiusAxisMap;if(i&&a){var u=D(i);return yl({x:e,y:t},u)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=Y(e,or)&&"axis"===o?{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}:{};return ly({},Z(this.props,this.handleOuterEvent),{},t)}},{key:"updateStateOfAxisMapsOffsetAndStackGroups",value:function(e){var r=this,o=e.props,i=e.dataStartIndex,u=e.dataEndIndex,c=e.updateId;if(!ee({props:o}))return null;var l=o.children,f=o.layout,p=o.stackOffset,h=o.data,d=o.reverseStackOrder,y=this.constructor.getAxisNameByLayout(f),v=y.numericAxisName,m=y.cateAxisName,g=X(l,n),b=function(e,t,n,r,o,i){if(!e)return null;var a=(i?t.reverse():t).reduce((function(e,t){var o=t.props,i=o.stackId;if(o.hide)return e;var a=t.props[n],u=e[a]||{hasStack:!1,stackGroups:{}};if(M(i)){var c=u.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};c.items.push(t),u.hasStack=!0,u.stackGroups[i]=c}else u.stackGroups[C("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return Ds({},e,Is({},a,u))}),{});return Object.keys(a).reduce((function(t,i){var u=a[i];return u.hasStack&&(u.stackGroups=Object.keys(u.stackGroups).reduce((function(t,i){var a=u.stackGroups[i];return Ds({},t,Is({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:$s(e,a.items,o)}))}),{})),Ds({},t,Is({},i,u))}),{})}(h,g,"".concat(v,"Id"),"".concat(m,"Id"),p,d),x=a.reduce((function(e,t){return ly({},e,fy({},"".concat(t.axisType,"Map"),r.getAxisMap(o,ly({},t,{graphicalItems:g,stackGroups:t.axisType===v&&b,dataStartIndex:i,dataEndIndex:u}))))}),{}),O=this.calculateOffset(ly({},x,{props:o,graphicalItems:g}));Object.keys(x).forEach((function(e){x[e]=s(o,x[e],O,e.replace("Map",""),t)}));var w=x["".concat(m,"Map")],j=this.tooltipTicksGenerator(w),k=this.getFormatItems(o,ly({},x,{dataStartIndex:i,dataEndIndex:u,updateId:c,graphicalItems:g,stackGroups:b,offset:O}));return ly({formatedGraphicalItems:k,graphicalItems:g,offset:O,stackGroups:b},j,{},x)}},{key:"addListener",value:function(){ry.on(oy,this.handleReceiveSyncEvent),ry.setMaxListeners&&ry._maxListeners&&ry.setMaxListeners(ry._maxListeners+1)}},{key:"removeListener",value:function(){ry.removeListener(oy,this.handleReceiveSyncEvent),ry.setMaxListeners&&ry._maxListeners&&ry.setMaxListeners(ry._maxListeners-1)}},{key:"calculateOffset",value:function(e){var t=e.props,n=e.graphicalItems,r=e.xAxisMap,o=void 0===r?{}:r,i=e.yAxisMap,a=void 0===i?{}:i,u=t.width,c=t.height,s=t.children,l=t.margin||{},f=Y(s,ad),p=Y(s,xt),h=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:ly({},e,fy({},r,e[r]+n.width))}),{left:l.left||0,right:l.right||0}),d=Object.keys(o).reduce((function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:ly({},e,fy({},r,e[r]+n.height))}),{top:l.top||0,bottom:l.bottom||0}),y=ly({},d,{},h),v=y.bottom;return f&&(y.bottom+=f.props.height||ad.defaultProps.height),p&&this.legendInstance&&(y=function(e,t,n,r){var o=n.children,i=n.width,a=n.height,u=n.margin,c=i-(u.left||0)-(u.right||0),s=a-(u.top||0)-(u.bottom||0),l=zs({children:o,items:t,legendWidth:c,legendHeight:s}),f=e;if(l){var p=r||{},h=l.align,d=l.verticalAlign,y=l.layout;("vertical"===y||"horizontal"===y&&"center"===d)&&S(e[h])&&(f=Ds({},e,Is({},h,f[h]+(p.width||0)))),("horizontal"===y||"vertical"===y&&"center"===h)&&S(e[d])&&(f=Ds({},e,Is({},d,f[d]+(p.height||0))))}return f}(y,n,t,this.legendInstance.getBBox())),ly({brushBottom:v},y,{width:u-y.left-y.right,height:c-y.top-y.bottom})}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;d()(t)||ry.emit(oy,t,this.uniqueChartId,e)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formatedGraphicalItems,o=0,i=r.length;o<i;o++){var a=r[o];if(a.item===e||a.props.key===e.key||t===V(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(e,t,n,r){var o=this.props,i=o.width,a=o.height;return c.createElement(Xh,uy({},e,{className:"recharts-".concat(e.axisType," ").concat(e.axisType),key:t.key||"".concat(n,"-").concat(r),viewBox:{x:0,y:0,width:i,height:a},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderLegend",value:function(){var e=this,t=this.state.formatedGraphicalItems,n=this.props,r=n.children,o=n.width,i=n.height,a=this.props.margin||{},s=o-(a.left||0)-(a.right||0),l=i-(a.top||0)-(a.bottom||0),f=zs({children:r,formatedGraphicalItems:t,legendWidth:s,legendHeight:l,legendContent:u});if(!f)return null;var p=f.item,h=ay(f,["item"]);return(0,c.cloneElement)(p,ly({},h,{chartWidth:o,chartHeight:i,margin:a,ref:function(t){e.legendInstance=t},onBBoxUpdate:this.handleLegendBBoxUpdate}))}},{key:"renderTooltip",value:function(){var e=this.props.children,t=Y(e,or);if(!t)return null;var n=this.state,r=n.isTooltipActive,o=n.activeCoordinate,i=n.activePayload,a=n.activeLabel,u=n.offset;return(0,c.cloneElement)(t,{viewBox:ly({},u,{x:u.left,y:u.top}),active:r,label:a,payload:r?i:[],coordinate:o})}},{key:"renderActivePoints",value:function(e){var t=e.item,n=e.activePoint,r=e.basePoint,o=e.childIndex,i=e.isRange,a=[],u=t.props.key,c=t.item.props,s=c.activeDot,l=ly({index:o,dataKey:c.dataKey,cx:n.x,cy:n.y,r:4,fill:Bs(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(u,"-activePoint-").concat(o)},K(s),{},Z(s));return a.push(this.constructor.renderActiveDot(s,l,o)),r?a.push(this.constructor.renderActiveDot(s,ly({},l,{cx:r.x,cy:r.y,key:"".concat(u,"-basePoint-").concat(o)}),o)):i&&a.push(null),a}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,n=t.left,r=t.top,o=t.height,i=t.width;return c.createElement("defs",null,c.createElement("clipPath",{id:e},c.createElement("rect",{x:n,y:r,height:o,width:i})))}},{key:"render",value:function(){var e=this;if(!ee(this))return null;var t=this.props,n=t.children,r=t.className,o=t.width,i=t.height,a=t.style,u=t.compact,s=ay(t,["children","className","width","height","style","compact"]),l=K(s),f={CartesianGrid:{handler:this.renderGrid,once:!0},ReferenceArea:{handler:this.renderReferenceElement},ReferenceLine:{handler:this.renderReferenceElement},ReferenceDot:{handler:this.renderReferenceElement},XAxis:{handler:this.renderXAxis},YAxis:{handler:this.renderYAxis},Brush:{handler:this.renderBrush,once:!0},Bar:{handler:this.renderGraphicChild},Line:{handler:this.renderGraphicChild},Area:{handler:this.renderGraphicChild},Radar:{handler:this.renderGraphicChild},RadialBar:{handler:this.renderGraphicChild},Scatter:{handler:this.renderGraphicChild},Pie:{handler:this.renderGraphicChild},Funnel:{handler:this.renderGraphicChild},Tooltip:{handler:this.renderCursor,once:!0},PolarGrid:{handler:this.renderPolarGrid,once:!0},PolarAngleAxis:{handler:this.renderPolarAxis},PolarRadiusAxis:{handler:this.renderPolarAxis},Customized:{handler:this.renderCustomized}};if(u)return c.createElement(fe,uy({},l,{width:o,height:i}),this.renderClipPath(),ie(n,f));var h=this.parseEventsOfWrapper();return c.createElement("div",uy({className:p()("recharts-wrapper",r),style:ly({position:"relative",cursor:"default",width:o,height:i},a)},h,{ref:function(t){e.container=t}}),c.createElement(fe,uy({},l,{width:o,height:i}),this.renderClipPath(),ie(n,f)),this.renderLegend(),this.renderTooltip())}}],h=[{key:"getAxisNameByLayout",value:function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}}},{key:"renderActiveDot",value:function(e,t){var n;return n=(0,c.isValidElement)(e)?(0,c.cloneElement)(e,t):i()(e)?e(t):c.createElement(Ih,t),c.createElement(_r,{className:"recharts-active-dot",key:t.key},n)}}],f&&py(l.prototype,f),h&&py(l,h),r}(c.Component);return y.displayName=t,y.propTypes=ly({syncId:l().oneOfType([l().string,l().number]),compact:l().bool,width:l().number,height:l().number,data:l().arrayOf(l().object),layout:l().oneOf(["horizontal","vertical"]),stackOffset:l().oneOf(["sign","expand","none","wiggle","silhouette"]),throttleDelay:l().number,margin:l().shape({top:l().number,right:l().number,bottom:l().number,left:l().number}),barCategoryGap:l().oneOfType([l().number,l().string]),barGap:l().oneOfType([l().number,l().string]),barSize:l().oneOfType([l().number,l().string]),maxBarSize:l().number,style:l().object,className:l().string,children:l().oneOfType([l().arrayOf(l().node),l().node]),defaultShowTooltip:l().bool,onClick:l().func,onMouseLeave:l().func,onMouseEnter:l().func,onMouseMove:l().func,onMouseDown:l().func,onMouseUp:l().func,reverseStackOrder:l().bool,id:l().string},h),y.defaultProps=ly({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1},f),y.createDefaultState=function(e){var t=e.children,n=e.defaultShowTooltip,r=Y(t,ad);return{chartX:0,chartY:0,dataStartIndex:r&&r.props&&r.props.startIndex||0,dataEndIndex:r&&r.props&&r.props.endIndex||e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!d()(n)&&n}},y.hasBar=function(e){return!(!e||!e.length)&&e.some((function(e){var t=V(e&&e.type);return t&&t.indexOf("Bar")>=0}))},y.getDisplayedData=function(e,t,n){var r=t.graphicalItems,o=t.dataStartIndex,i=t.dataEndIndex,a=(r||[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(cy(e),cy(n)):e}),[]);if(a&&a.length>0)return a;if(n&&n.props&&n.props.data&&n.props.data.length>0)return n.props.data;var u=e.data;return u&&u.length&&S(o)&&S(i)?u.slice(o,i+1):[]},y},by=gy({chartName:"BarChart",GraphicalChild:Kp,axisComponents:[{axisType:"xAxis",AxisComp:nh},{axisType:"yAxis",AxisComp:sh}],formatAxisMap:function(e,t,n,r,o){var i=e.width,a=e.height,u=e.layout,c=Object.keys(t),s={left:n.left,leftMirror:n.left,right:i-n.right,rightMirror:i-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom};return c.reduce((function(e,i){var a,c,l,f,p=t[i],h=p.orientation,d=p.domain,y=p.padding,v=void 0===y?{}:y,m=p.mirror,g=p.reversed,b="".concat(h).concat(m?"Mirror":"");a="xAxis"===r?[n.left+(v.left||0),n.left+n.width-(v.right||0)]:"yAxis"===r?"horizontal"===u?[n.top+n.height-(v.bottom||0),n.top+(v.top||0)]:[n.top+(v.top||0),n.top+n.height-(v.bottom||0)]:p.range,g&&(a=[a[1],a[0]]);var x=Vs(p,o),O=x.scale,w=x.realScaleType;O.domain(d).range(a),Ys(O);var j=Zs(O,dd({},p,{realScaleType:w}));"xAxis"===r?(f="top"===h&&!m||"bottom"===h&&m,c=n.left,l=s[b]-f*p.height):"yAxis"===r&&(f="left"===h&&!m||"right"===h&&m,c=s[b]-f*p.width,l=n.top);var k=dd({},p,{},j,{realScaleType:w,x:c,y:l,scale:O,width:"xAxis"===r?n.width:p.width,height:"yAxis"===r?n.height:p.height});return k.bandSize=rl(k,j),p.hide||"xAxis"!==r?p.hide||(s[b]+=(f?-1:1)*k.width):s[b]+=(f?-1:1)*k.height,dd({},e,yd({},i,k))}),{})}});function xy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wy(e){return wy="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wy(e)}function jy(){return jy=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jy.apply(this,arguments)}function ky(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _y(e,t){return!t||"object"!==wy(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ey(e){return Ey=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ey(e)}function Ay(e,t){return Ay=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ay(e,t)}var Ty=function(e){return e.reduce((function(e,t){return t.x===+t.x&&t.y===+t.y&&e.push([t.x,t.y]),e}),[]).join(" ")},Sy=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),_y(this,Ey(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)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}}),t&&Ay(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.points,n=e.className;if(!t||!t.length)return null;var r=p()("recharts-polygon",n);return c.createElement("polygon",jy({},K(this.props),Z(this.props),{className:r,points:Ty(t)}))}}])&&ky(n.prototype,r),o&&ky(n,o),t}(c.PureComponent);Sy.displayName="Polygon",Sy.propTypes=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xy(n,!0).forEach((function(t){Oy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xy(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},F,{className:l().string,points:l().arrayOf(l().shape({x:l().number,y:l().number}))});const My=Sy;function Py(e){return Py="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Py(e)}function Cy(){return Cy=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cy.apply(this,arguments)}function Ny(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ny(n,!0).forEach((function(t){Iy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ny(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Iy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ry(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ly(e,t){return!t||"object"!==Py(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function By(e){return By=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},By(e)}function zy(e,t){return zy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},zy(e,t)}var Fy=Math.PI/180,Wy=1e-5,Uy=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Ly(this,By(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)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}}),t&&zy(e,t)}(t,e),n=t,r=[{key:"getTickLineCoord",value:function(e){var t=this.props,n=t.cx,r=t.cy,o=t.radius,i=t.orientation,a=t.tickLine,u=a&&a.size||8,c=fl(n,r,o,e.coordinate),s=fl(n,r,o+("inner"===i?-1:1)*u,e.coordinate);return{x1:c.x,y1:c.y,x2:s.x,y2:s.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,n=Math.cos(-e.coordinate*Fy);return n>Wy?"outer"===t?"start":"end":n<-Wy?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.radius,o=e.axisLine,i=e.axisLineType,a=Dy({},K(this.props),{fill:"none"},K(o));if("circle"===i)return c.createElement(Ih,Cy({className:"recharts-polar-angle-axis-line"},a,{cx:t,cy:n,r:r}));var u=this.props.ticks.map((function(e){return fl(t,n,r,e.coordinate)}));return c.createElement(My,Cy({className:"recharts-polar-angle-axis-line"},a,{points:u}))}},{key:"renderTicks",value:function(){var e=this,t=this.props,n=t.ticks,r=t.tick,o=t.tickLine,i=t.tickFormatter,a=t.stroke,u=K(this.props),s=K(r),l=Dy({},u,{fill:"none"},K(o)),f=n.map((function(t,n){var f=e.getTickLineCoord(t),p=Dy({textAnchor:e.getTickTextAnchor(t)},u,{stroke:"none",fill:a},s,{index:n,payload:t,x:f.x2,y:f.y2});return c.createElement(_r,Cy({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(n)},Q(e.props,t,n)),o&&c.createElement("line",Cy({className:"recharts-polar-angle-axis-tick-line"},l,f)),r&&e.constructor.renderTickItem(r,p,i?i(t.value):t.value))}));return c.createElement(_r,{className:"recharts-polar-angle-axis-ticks"},f)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.radius,r=e.axisLine;return n<=0||!t||!t.length?null:c.createElement(_r,{className:"recharts-polar-angle-axis"},r&&this.renderAxisLine(),this.renderTicks())}}],o=[{key:"renderTickItem",value:function(e,t,n){return c.isValidElement(e)?c.cloneElement(e,t):i()(e)?e(t):c.createElement(Df,Cy({},t,{className:"recharts-polar-angle-axis-tick-value"}),n)}}],r&&Ry(n.prototype,r),o&&Ry(n,o),t}(c.PureComponent);Uy.displayName="PolarAngleAxis",Uy.axisType="angleAxis",Uy.propTypes=Dy({},F,{},W,{type:l().oneOf(["number","category"]),angleAxisId:l().oneOfType([l().string,l().number]),dataKey:l().oneOfType([l().number,l().string,l().func]),cx:l().number,cy:l().number,radius:l().oneOfType([l().number,l().string]),hide:l().bool,scale:l().oneOfType([l().oneOf(G),l().func]),axisLine:l().oneOfType([l().bool,l().object]),axisLineType:l().oneOf(["polygon","circle"]),tickLine:l().oneOfType([l().bool,l().object]),tick:l().oneOfType([l().bool,l().func,l().object,l().element]),ticks:l().arrayOf(l().shape({value:l().any,coordinate:l().number})),stroke:l().string,orientation:l().oneOf(["inner","outer"]),tickFormatter:l().func,allowDuplicatedCategory:l().bool}),Uy.defaultProps={type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,domain:[0,"auto"],orientation:"outer",axisLine:!0,tickLine:!0,tick:!0,hide:!1,allowDuplicatedCategory:!0};const Gy=Uy;var qy=n(68583),Hy=n.n(qy),Vy=n(21885),Xy=n.n(Vy);function Yy(e){return Yy="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yy(e)}function Ky(){return Ky=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ky.apply(this,arguments)}function $y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$y(n,!0).forEach((function(t){Jy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$y(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qy(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ev(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tv(e,t){return!t||"object"!==Yy(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function nv(e){return nv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},nv(e)}function rv(e,t){return rv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},rv(e,t)}var ov=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),tv(this,nv(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)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}}),t&&rv(e,t)}(t,e),n=t,r=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,o=n.cx,i=n.cy;return fl(o,i,t,r)}},{key:"getTickTextAnchor",value:function(){var e;switch(this.props.orientation){case"left":e="end";break;case"right":e="start";break;default:e="middle"}return e}},{key:"getViewBox",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,o=e.ticks,i=Xy()(o,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:Hy()(o,(function(e){return e.coordinate||0})).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,o=e.ticks,i=e.axisLine,a=Qy(e,["cx","cy","angle","ticks","axisLine"]),u=o.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),s=fl(t,n,u[0],r),l=fl(t,n,u[1],r),f=Zy({},K(a),{fill:"none"},K(i),{x1:s.x,y1:s.y,x2:l.x,y2:l.y});return c.createElement("line",Ky({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var e=this,t=this.props,n=t.ticks,r=t.tick,o=t.angle,i=t.tickFormatter,a=t.stroke,u=Qy(t,["ticks","tick","angle","tickFormatter","stroke"]),s=this.getTickTextAnchor(),l=K(u),f=K(r),p=n.map((function(t,n){var u=e.getTickValueCoord(t),p=Zy({textAnchor:s,transform:"rotate(".concat(90-o,", ").concat(u.x,", ").concat(u.y,")")},l,{stroke:"none",fill:a},f,{index:n},u,{payload:t});return c.createElement(_r,Ky({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(n)},Q(e.props,t,n)),e.constructor.renderTickItem(r,p,i?i(t.value):t.value))}));return c.createElement(_r,{className:"recharts-polar-radius-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.axisLine,r=e.tick;return t&&t.length?c.createElement(_r,{className:"recharts-polar-radius-axis"},n&&this.renderAxisLine(),r&&this.renderTicks(),Hf.renderCallByParent(this.props,this.getViewBox())):null}}],o=[{key:"renderTickItem",value:function(e,t,n){return c.isValidElement(e)?c.cloneElement(e,t):i()(e)?e(t):c.createElement(Df,Ky({},t,{className:"recharts-polar-radius-axis-tick-value"}),n)}}],r&&ev(n.prototype,r),o&&ev(n,o),t}(c.PureComponent);ov.displayName="PolarRadiusAxis",ov.axisType="radiusAxis",ov.propTypes=Zy({},F,{},W,{type:l().oneOf(["number","category"]),cx:l().number,cy:l().number,hide:l().bool,radiusAxisId:l().oneOfType([l().string,l().number]),angle:l().number,tickCount:l().number,ticks:l().arrayOf(l().shape({value:l().any,coordinate:l().number})),orientation:l().oneOf(["left","right","middle"]),axisLine:l().oneOfType([l().bool,l().object]),tick:l().oneOfType([l().bool,l().object,l().element,l().func]),stroke:l().string,tickFormatter:l().func,domain:l().arrayOf(l().oneOfType([l().number,l().oneOf(["auto","dataMin","dataMax"])])),scale:l().oneOfType([l().oneOf(["auto","linear","pow","sqrt","log","identity","time","band","point","ordinal","quantile","quantize","utc","sequential","threshold"]),l().func]),allowDataOverflow:l().bool,allowDuplicatedCategory:l().bool}),ov.defaultProps={type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,domain:[0,"auto"],allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0};const iv=gy({chartName:"PieChart",GraphicalChild:dp,eventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Gy},{axisType:"radiusAxis",AxisComp:ov}],formatAxisMap:function(e,t,n,r,o){var i=e.width,a=e.height,u=e.startAngle,c=e.endAngle,s=N(e.cx,i,i/2),l=N(e.cy,a,a/2),f=pl(i,a,n),p=N(e.innerRadius,f,0),h=N(e.outerRadius,f,.8*f);return Object.keys(t).reduce((function(e,n){var i,a=t[n],f=a.domain,y=a.reversed;if(d()(a.range))"angleAxis"===r?i=[u,c]:"radiusAxis"===r&&(i=[p,h]),y&&(i=[i[1],i[0]]);else{var v=cl(i=a.range,2);u=v[0],c=v[1]}var m=Vs(a,o),g=m.realScaleType,b=m.scale;b.domain(f).range(i),Ys(b);var x=Zs(b,al({},a,{realScaleType:g})),O=al({},a,{},x,{range:i,radius:h,realScaleType:g,scale:b,cx:s,cy:l,innerRadius:p,outerRadius:h,startAngle:u,endAngle:c});return al({},e,ul({},n,O))}),{})},defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},propTypes:{layout:l().oneOf(["centric"]),startAngle:l().number,endAngle:l().number,cx:l().oneOfType([l().number,l().string]),cy:l().oneOfType([l().number,l().string]),innerRadius:l().oneOfType([l().number,l().string]),outerRadius:l().oneOfType([l().number,l().string])}})},96415:()=>{if(!Object.setPrototypeOf&&!{}.__proto__){var e=Object.getPrototypeOf;Object.getPrototypeOf=function(t){return t.__proto__?t.__proto__:e.call(Object,t)}}},43163:(e,t,n)=>{var r,o=n(21219),i=n(13831),a=n(67035),u=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g;e.exports=function(e,t){function n(e,i,c){if(r++>100)throw r=0,new Error("Call stack overflow for "+c);if(""===e)throw new Error(i+"(): '"+c+"' must contain a non-whitespace string");e=function(e,t){e=e.replace(/((?:\-[a-z]+\-)?calc)/g,"");var r,i="",a=e;for(;r=u.exec(a);){r[0].index>0&&(i+=a.substring(0,r[0].index));var c=o("(",")",a.substring([0].index));if(""===c.body)throw new Error("'"+e+"' must contain a non-whitespace string");var s=n(c.body,"",t);i+=c.pre+s,a=c.post}return i+a}(e,c);var s=function(e){var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,o=r.exec(e);for(;o;)o&&o[1]&&(-1===n.indexOf(o[1].toLowerCase())&&(t.push(o[1]),n.push(o[1].toLowerCase())),o=r.exec(e));return t}(e);if(s.length>1||e.indexOf("var(")>-1)return i+"("+e+")";var l=s[0]||"";"%"===l&&(e=e.replace(/\b[0-9\.]+%/g,(function(e){return.01*parseFloat(e.slice(0,-1))})));var f,p=e.replace(new RegExp(l,"gi"),"");try{f=a.eval(p)}catch(h){return i+"("+e+")"}return"%"===l&&(f*=100),(i.length||"%"===l)&&(f=Math.round(f*t)/t),f+=l}return r=0,t=Math.pow(10,void 0===t?5:t),e=e.replace(/\n+/g," "),i(e,/((?:\-[a-z]+\-)?calc)\(/,n)}},21219:e=>{function t(e,t,o){e instanceof RegExp&&(e=n(e,o)),t instanceof RegExp&&(t=n(t,o));var i=r(e,t,o);return i&&{start:i[0],end:i[1],pre:o.slice(0,i[0]),body:o.slice(i[0]+e.length,i[1]),post:o.slice(i[1]+t.length)}}function n(e,t){var n=t.match(e);return n?n[0]:null}function r(e,t,n){var r,o,i,a,u,c=n.indexOf(e),s=n.indexOf(t,c+1),l=c;if(c>=0&&s>0){for(r=[],i=n.length;l>=0&&!u;)l==c?(r.push(l),c=n.indexOf(e,l+1)):1==r.length?u=[r.pop(),s]:((o=r.pop())<i&&(i=o,a=s),s=n.indexOf(t,l+1)),l=c<s&&c>=0?c:s;r.length&&(u=[i,a])}return u}e.exports=t,t.range=r},13831:(e,t,n)=>{var r=n(34207);function o(e,t,n){var i=e;return function(e,t){var n=[],o="string"===typeof t?new RegExp("\\b("+t+")\\("):t;do{var i=o.exec(e);if(!i)return n;if(void 0===i[1])throw new Error("Missing the first couple of parenthesis to get the function identifier in "+t);var a=i[1],u=i.index,c=r("(",")",e.substring(u));if(!c||c.start!==i[0].length-1)throw new SyntaxError(a+"(): missing closing ')' in the value '"+e+"'");n.push({matches:c,functionIdentifier:a}),e=c.post}while(o.test(e));return n}(e,t).reduce((function(e,r){return e.replace(r.functionIdentifier+"("+r.matches.body+")",function(e,t,n,r,i){return n(o(e,i,n),t,r)}(r.matches.body,r.functionIdentifier,n,i,t))}),e)}e.exports=o},30853:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k});var r=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var o=r[n];e.call(t,o[1],o[0])}},t}()}(),o="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,i="undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),a="function"===typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var u=["top","right","bottom","left","width","height","size","weight"],c="undefined"!==typeof MutationObserver,s=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&c()}function u(){a(i)}function c(){var e=Date.now();if(n){if(e-o<2)return;r=!0}else n=!0,r=!1,setTimeout(u,t);o=e}return c}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){o&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){o&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;u.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),l=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},p=g(0,0,0,0);function h(e){return parseFloat(e)||0}function d(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+h(e["border-"+n+"-width"])}),0)}function y(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=f(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var o=r[n],i=e["padding-"+o];t[o]=h(i)}return t}(r),i=o.left+o.right,a=o.top+o.bottom,u=h(r.width),c=h(r.height);if("border-box"===r.boxSizing&&(Math.round(u+i)!==t&&(u-=d(r,"left","right")+i),Math.round(c+a)!==n&&(c-=d(r,"top","bottom")+a)),!function(e){return e===f(e).document.documentElement}(e)){var s=Math.round(u+i)-t,l=Math.round(c+a)-n;1!==Math.abs(s)&&(u-=s),1!==Math.abs(l)&&(c-=l)}return g(o.left,o.top,u,c)}var v="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"===typeof e.getBBox};function m(e){return o?v(e)?function(e){var t=e.getBBox();return g(0,0,t.width,t.height)}(e):y(e):p}function g(e,t,n,r){return{x:e,y:t,width:n,height:r}}var b=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=g(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=m(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),x=function(e,t){var n=function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return l(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}(t);l(this,{target:e,contentRect:n})},O=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new r,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new b(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new x(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),w="undefined"!==typeof WeakMap?new WeakMap:new r,j=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=s.getInstance(),r=new O(t,n,this);w.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){j.prototype[e]=function(){var t;return(t=w.get(this))[e].apply(t,arguments)}}));const k="undefined"!==typeof i.ResizeObserver?i.ResizeObserver:j},43145:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},92901:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(20816);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,r.A)(o.key),o)}}function i(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},80045:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(98587);function o(e,t){if(null==e)return{};var n,o,i=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},80296:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(27800);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,u=[],c=!0,s=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return u}}(e,t)||(0,r.A)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},45458:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(43145);var o=n(27800);function i(e){return function(e){if(Array.isArray(e))return(0,r.A)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},27800:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(43145);function o(e,t){if(e){if("string"===typeof e)return(0,r.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}}}]);