(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9210],{94184:function(t,e){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var t=[],e=0;eo)if(Math.abs(p*s-l*f)>o&&a){var d=r-c,y=i-u,v=s*s+l*l,g=d*d+y*y,m=Math.sqrt(v),b=Math.sqrt(h),x=a*Math.tan((n-Math.acos((v+h-g)/(2*m*b)))/2),w=x/b,O=x/m;Math.abs(w-1)>o&&(this._+="L"+(t+w*f)+","+(e+w*p)),this._+="A"+a+","+a+",0,0,"+ +(p*d>f*y)+","+(this._x1=t+O*s)+","+(this._y1=e+O*l)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,a,c,u,s){t=+t,e=+e,s=!!s;var l=(a=+a)*Math.cos(c),f=a*Math.sin(c),p=t+l,h=e+f,d=1^s,y=s?c-u:u-c;if(a<0)throw new Error("negative radius: "+a);null===this._x1?this._+="M"+p+","+h:(Math.abs(this._x1-p)>o||Math.abs(this._y1-h)>o)&&(this._+="L"+p+","+h),a&&(y<0&&(y=y%r+r),y>i?this._+="A"+a+","+a+",0,1,"+d+","+(t-l)+","+(e-f)+"A"+a+","+a+",0,1,"+d+","+(this._x1=p)+","+(this._y1=h):y>o&&(this._+="A"+a+","+a+",0,"+ +(y>=n)+","+d+","+(this._x1=t+a*Math.cos(u))+","+(this._y1=e+a*Math.sin(u))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},e.Z=c},98844:function(t,e,n){"use strict";function r(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((e-t)/n)),i=new Array(o);++r(c=(a=Math.ceil(p/7))>c?a+1:c+1)&&(i=c,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((c=s.length)-(i=l.length)<0&&(i=c,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),c=s.length;0==s[--c];)s.pop();return e.d=s,e.e=o,u?P(e,p):e}function x(t,e,n){if(t!==~~t||tn)throw Error(l+t)}function w(t){var e,n,r,o=t.length-1,i="",a=t[0];if(o>0){for(i+=a,e=1;et.e^i.s<0?1:-1;for(e=0,n=(r=i.d.length)<(o=t.d.length)?r:o;et.d[e]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},m.decimalPlaces=m.dp=function(){var t=this,e=t.d.length-1,n=7*(e-t.e);if(e=t.d[e])for(;e%10==0;e/=10)n--;return n<0?0:n},m.dividedBy=m.div=function(t){return O(this,new this.constructor(t))},m.dividedToIntegerBy=m.idiv=function(t){var e=this.constructor;return P(O(this,new e(t),0,1),e.precision)},m.equals=m.eq=function(t){return!this.cmp(t)},m.exponent=function(){return E(this)},m.greaterThan=m.gt=function(t){return this.cmp(t)>0},m.greaterThanOrEqualTo=m.gte=function(t){return this.cmp(t)>=0},m.isInteger=m.isint=function(){return this.e>this.d.length-2},m.isNegative=m.isneg=function(){return this.s<0},m.isPositive=m.ispos=function(){return this.s>0},m.isZero=function(){return 0===this.s},m.lessThan=m.lt=function(t){return this.cmp(t)<0},m.lessThanOrEqualTo=m.lte=function(t){return this.cmp(t)<1},m.logarithm=m.log=function(t){var e,n=this,r=n.constructor,o=r.precision,a=o+5;if(void 0===t)t=new r(10);else if((t=new r(t)).s<1||t.eq(i))throw Error(s+"NaN");if(n.s<1)throw Error(s+(n.s?"NaN":"-Infinity"));return n.eq(i)?new r(0):(u=!1,e=O(k(n,a),k(t,a),a),u=!0,P(e,o))},m.minus=m.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?M(e,t):b(e,(t.s=-t.s,t))},m.modulo=m.mod=function(t){var e,n=this,r=n.constructor,o=r.precision;if(!(t=new r(t)).s)throw Error(s+"NaN");return n.s?(u=!1,e=O(n,t,0,1).times(t),u=!0,n.minus(e)):P(new r(n),o)},m.naturalExponential=m.exp=function(){return _(this)},m.naturalLogarithm=m.ln=function(){return k(this)},m.negated=m.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},m.plus=m.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?b(e,t):M(e,(t.s=-t.s,t))},m.precision=m.sd=function(t){var e,n,r,o=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(l+t);if(e=E(o)+1,n=7*(r=o.d.length-1)+1,r=o.d[r]){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return t&&e>n?e:n},m.squareRoot=m.sqrt=function(){var t,e,n,r,o,i,a,c=this,l=c.constructor;if(c.s<1){if(!c.s)return new l(0);throw Error(s+"NaN")}for(t=E(c),u=!1,0==(o=Math.sqrt(+c))||o==1/0?(((e=w(c.d)).length+t)%2==0&&(e+="0"),o=Math.sqrt(e),t=p((t+1)/2)-(t<0||t%2),r=new l(e=o==1/0?"5e"+t:(e=o.toExponential()).slice(0,e.indexOf("e")+1)+t)):r=new l(o.toString()),o=a=(n=l.precision)+3;;)if(r=(i=r).plus(O(c,i,a+2)).times(.5),w(i.d).slice(0,a)===(e=w(r.d)).slice(0,a)){if(e=e.slice(a-3,a+1),o==a&&"4999"==e){if(P(i,n+1,0),i.times(i).eq(c)){r=i;break}}else if("9999"!=e)break;a+=4}return u=!0,P(r,n)},m.times=m.mul=function(t){var e,n,r,o,i,a,c,s,l,f=this,p=f.constructor,h=f.d,d=(t=new p(t)).d;if(!f.s||!t.s)return new p(0);for(t.s*=f.s,n=f.e+t.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(e=0,o=s+r;o>r;)c=i[o]+d[r]*h[o-r-1]+e,i[o--]=c%y|0,e=c/y|0;i[o]=(i[o]+e)%y|0}for(;!i[--a];)i.pop();return e?++n:i.shift(),t.d=i,t.e=n,u?P(t,p.precision):t},m.toDecimalPlaces=m.todp=function(t,e){var n=this,r=n.constructor;return n=new r(n),void 0===t?n:(x(t,0,a),void 0===e?e=r.rounding:x(e,0,8),P(n,t+E(n)+1,e))},m.toExponential=function(t,e){var n,r=this,o=r.constructor;return void 0===t?n=T(r,!0):(x(t,0,a),void 0===e?e=o.rounding:x(e,0,8),n=T(r=P(new o(r),t+1,e),!0,t+1)),n},m.toFixed=function(t,e){var n,r,o=this,i=o.constructor;return void 0===t?T(o):(x(t,0,a),void 0===e?e=i.rounding:x(e,0,8),n=T((r=P(new i(o),t+E(o)+1,e)).abs(),!1,t+E(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},m.toInteger=m.toint=function(){var t=this,e=t.constructor;return P(new e(t),E(t)+1,e.rounding)},m.toNumber=function(){return+this},m.toPower=m.pow=function(t){var e,n,r,o,a,c,l=this,f=l.constructor,h=+(t=new f(t));if(!t.s)return new f(i);if(!(l=new f(l)).s){if(t.s<1)throw Error(s+"Infinity");return l}if(l.eq(i))return l;if(r=f.precision,t.eq(i))return P(l,r);if(c=(e=t.e)>=(n=t.d.length-1),a=l.s,c){if((n=h<0?-h:h)<=v){for(o=new f(i),e=Math.ceil(r/7+4),u=!1;n%2&&C((o=o.times(l)).d,e),0!==(n=p(n/2));)C((l=l.times(l)).d,e);return u=!0,t.s<0?new f(i).div(o):P(o,r)}}else if(a<0)throw Error(s+"NaN");return a=a<0&&1&t.d[Math.max(e,n)]?-1:1,l.s=1,u=!1,o=t.times(k(l,r+12)),u=!0,(o=_(o)).s=a,o},m.toPrecision=function(t,e){var n,r,o=this,i=o.constructor;return void 0===t?r=T(o,(n=E(o))<=i.toExpNeg||n>=i.toExpPos):(x(t,1,a),void 0===e?e=i.rounding:x(e,0,8),r=T(o=P(new i(o),t,e),t<=(n=E(o))||n<=i.toExpNeg,t)),r},m.toSignificantDigits=m.tosd=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(x(t,1,a),void 0===e?e=n.rounding:x(e,0,8)),P(new n(this),t,e)},m.toString=m.valueOf=m.val=m.toJSON=function(){var t=this,e=E(t),n=t.constructor;return T(t,e<=n.toExpNeg||e>=n.toExpPos)};var O=function(){function t(t,e){var n,r=0,o=t.length;for(t=t.slice();o--;)n=t[o]*e+r,t[o]=n%y|0,r=n/y|0;return r&&t.unshift(r),t}function e(t,e,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;oe[o]?1:-1;break}return i}function n(t,e,n){for(var r=0;n--;)t[n]-=r,r=t[n]1;)t.shift()}return function(r,o,i,a){var c,u,l,f,p,h,d,v,g,m,b,x,w,O,_,S,j,k,A=r.constructor,M=r.s==o.s?1:-1,T=r.d,C=o.d;if(!r.s)return new A(r);if(!o.s)throw Error(s+"Division by zero");for(u=r.e-o.e,j=C.length,_=T.length,v=(d=new A(M)).d=[],l=0;C[l]==(T[l]||0);)++l;if(C[l]>(T[l]||0)&&--u,(x=null==i?i=A.precision:a?i+(E(r)-E(o))+1:i)<0)return new A(0);if(x=x/7+2|0,l=0,1==j)for(f=0,C=C[0],x++;(l<_||f)&&x--;l++)w=f*y+(T[l]||0),v[l]=w/C|0,f=w%C|0;else{for((f=y/(C[0]+1)|0)>1&&(C=t(C,f),T=t(T,f),j=C.length,_=T.length),O=j,m=(g=T.slice(0,j)).length;m=y/2&&++S;do{f=0,(c=e(C,g,j,m))<0?(b=g[0],j!=m&&(b=b*y+(g[1]||0)),(f=b/S|0)>1?(f>=y&&(f=y-1),1==(c=e(p=t(C,f),g,h=p.length,m=g.length))&&(f--,n(p,j16)throw Error(f+E(t));if(!t.s)return new p(i);for(null==e?(u=!1,c=d):c=e,a=new p(.03125);t.abs().gte(.1);)t=t.times(a),l+=5;for(c+=Math.log(h(2,l))/Math.LN10*2+5|0,n=r=o=new p(i),p.precision=c;;){if(r=P(r.times(t),c),n=n.times(++s),w((a=o.plus(O(r,n,c))).d).slice(0,c)===w(o.d).slice(0,c)){for(;l--;)o=P(o.times(o),c);return p.precision=d,null==e?(u=!0,P(o,d)):o}o=a}}function E(t){for(var e=7*t.e,n=t.d[0];n>=10;n/=10)e++;return e}function S(t,e,n){if(e>t.LN10.sd())throw u=!0,n&&(t.precision=n),Error(s+"LN10 precision limit exceeded");return P(new t(t.LN10),e)}function j(t){for(var e="";t--;)e+="0";return e}function k(t,e){var n,r,o,a,c,l,f,p,h,d=1,y=t,v=y.d,g=y.constructor,m=g.precision;if(y.s<1)throw Error(s+(y.s?"NaN":"-Infinity"));if(y.eq(i))return new g(0);if(null==e?(u=!1,p=m):p=e,y.eq(10))return null==e&&(u=!0),S(g,p);if(p+=10,g.precision=p,r=(n=w(v)).charAt(0),a=E(y),!(Math.abs(a)<15e14))return f=S(g,p+2,m).times(a+""),y=k(new g(r+"."+n.slice(1)),p-10).plus(f),g.precision=m,null==e?(u=!0,P(y,m)):y;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=w((y=y.times(t)).d)).charAt(0),d++;for(a=E(y),r>1?(y=new g("0."+n),a++):y=new g(r+"."+n.slice(1)),l=c=y=O(y.minus(i),y.plus(i),p),h=P(y.times(y),p),o=3;;){if(c=P(c.times(h),p),w((f=l.plus(O(c,new g(o),p))).d).slice(0,p)===w(l.d).slice(0,p))return l=l.times(2),0!==a&&(l=l.plus(S(g,p+2,m).times(a+""))),l=O(l,new g(d),p),g.precision=m,null==e?(u=!0,P(l,m)):l;l=f,o+=2}}function A(t,e){var n,r,o;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;48===e.charCodeAt(r);)++r;for(o=e.length;48===e.charCodeAt(o-1);)--o;if(e=e.slice(r,o)){if(o-=r,n=n-r-1,t.e=p(n/7),t.d=[],r=(n+1)%7,n<0&&(r+=7),rg||t.e<-g))throw Error(f+n)}else t.s=0,t.e=0,t.d=[0];return t}function P(t,e,n){var r,o,i,a,c,s,l,d,v=t.d;for(a=1,i=v[0];i>=10;i/=10)a++;if((r=e-a)<0)r+=7,o=e,l=v[d=0];else{if((d=Math.ceil((r+1)/7))>=(i=v.length))return t;for(l=i=v[d],a=1;i>=10;i/=10)a++;o=(r%=7)-7+a}if(void 0!==n&&(c=l/(i=h(10,a-o-1))%10|0,s=e<0||void 0!==v[d+1]||l%i,s=n<4?(c||s)&&(0==n||n==(t.s<0?3:2)):c>5||5==c&&(4==n||s||6==n&&(r>0?o>0?l/h(10,a-o):0:v[d-1])%10&1||n==(t.s<0?8:7))),e<1||!v[0])return s?(i=E(t),v.length=1,e=e-i-1,v[0]=h(10,(7-e%7)%7),t.e=p(-e/7)||0):(v.length=1,v[0]=t.e=t.s=0),t;if(0==r?(v.length=d,i=1,d--):(v.length=d+1,i=h(10,7-r),v[d]=o>0?(l/h(10,a-o)%h(10,o)|0)*i:0),s)for(;;){if(0==d){(v[0]+=i)==y&&(v[0]=1,++t.e);break}if(v[d]+=i,v[d]!=y)break;v[d--]=0,i=1}for(r=v.length;0===v[--r];)v.pop();if(u&&(t.e>g||t.e<-g))throw Error(f+E(t));return t}function M(t,e){var n,r,o,i,a,c,s,l,f,p,h=t.constructor,d=h.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new h(t),u?P(e,d):e;if(s=t.d,p=e.d,r=e.e,l=t.e,s=s.slice(),a=l-r){for((f=a<0)?(n=s,a=-a,c=p.length):(n=p,r=l,c=s.length),a>(o=Math.max(Math.ceil(d/7),c)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((f=(o=s.length)<(c=p.length))&&(c=o),o=0;o0;--o)s[c++]=0;for(o=p.length;o>a;){if(s[--o]0?i=i.charAt(0)+"."+i.slice(1)+j(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+j(-o-1)+i,n&&(r=n-a)>0&&(i+=j(r))):o>=a?(i+=j(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+j(r))):((r=o+1)0&&(o+1===a&&(i+="."),i+=j(r))),t.s<0?"-"+i:i}function C(t,e){if(t.length>e)return t.length=e,!0}function N(t){if(!t||"object"!==typeof t)throw Error(s+"Object expected");var e,n,r,o=["precision",1,a,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e=o[e+1]&&r<=o[e+2]))throw Error(l+n+": "+r);this[n]=r}if(void 0!==(r=t[n="LN10"])){if(r!=Math.LN10)throw Error(l+n+": "+r);this[n]=new this(r)}return this}c=function t(e){var n,r,o;function i(t){var e=this;if(!(e instanceof i))return new i(t);if(e.constructor=i,t instanceof i)return e.s=t.s,e.e=t.e,void(e.d=(t=t.d)?t.slice():t);if("number"===typeof t){if(0*t!==0)throw Error(l+t);if(t>0)e.s=1;else{if(!(t<0))return e.s=0,e.e=0,void(e.d=[0]);t=-t,e.s=-1}return t===~~t&&t<1e7?(e.e=0,void(e.d=[t])):A(e,t.toString())}if("string"!==typeof t)throw Error(l+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!d.test(t))throw Error(l+t);A(e,t)}if(i.prototype=m,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=t,i.config=i.set=N,void 0===e&&(e={}),e)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;ne}},70433:function(t){t.exports=function(t,e){return te||a&&c&&s&&!u&&!l||o&&c&&s||!n&&s||!i)return 1;if(!o&&!a&&!l&&t=u?s:s*("desc"==n[o]?-1:1)}return t.index-e.index}},99291:function(t,e,n){var r=n(98612);t.exports=function(t,e){return function(n,o){if(null==n)return n;if(!r(n))return t(n,o);for(var i=n.length,a=e?i:-1,c=Object(n);(e?a--:++a-1?c[u?e[s]:s]:void 0}}},47445:function(t,e,n){var r=n(40098),o=n(16612),i=n(18601);t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&o(e,n,a)&&(n=a=void 0),e=i(e),void 0===n?(n=e,e=0):n=i(n),a=void 0===a?e0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},75703:function(t){t.exports=function(t){return function(){return t}}},711:function(t,e,n){var r=n(66193),o=n(93239),i=n(67206),a=n(1469),c=n(16612);t.exports=function(t,e,n){var u=a(t)?r:o;return n&&c(t,e,n)&&(e=void 0),u(t,i(e,3))}},13311:function(t,e,n){var r=n(67740)(n(30998));t.exports=r},30998:function(t,e,n){var r=n(41848),o=n(67206),i=n(40554),a=Math.max;t.exports=function(t,e,n){var c=null==t?0:t.length;if(!c)return-1;var u=null==n?0:i(n);return u<0&&(u=a(c+u,0)),r(t,o(e,3),u)}},94654:function(t,e,n){var r=n(21078),o=n(35161);t.exports=function(t,e){return r(o(t,e),1)}},51584:function(t,e,n){var r=n(44239),o=n(37005);t.exports=function(t){return!0===t||!1===t||o(t)&&"[object Boolean]"==r(t)}},18446:function(t,e,n){var r=n(90939);t.exports=function(t,e){return r(t,e)}},7654:function(t,e,n){var r=n(81763);t.exports=function(t){return r(t)&&t!=+t}},14293:function(t){t.exports=function(t){return null==t}},81763:function(t,e,n){var r=n(44239),o=n(37005);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==r(t)}},47037:function(t,e,n){var r=n(44239),o=n(1469),i=n(37005);t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&"[object String]"==r(t)}},35161:function(t,e,n){var r=n(29932),o=n(67206),i=n(69199),a=n(1469);t.exports=function(t,e){return(a(t)?r:i)(t,o(e,3))}},6162:function(t,e,n){var r=n(56029),o=n(53325),i=n(6557);t.exports=function(t){return t&&t.length?r(t,i,o):void 0}},53632:function(t,e,n){var r=n(56029),o=n(70433),i=n(6557);t.exports=function(t){return t&&t.length?r(t,i,o):void 0}},96026:function(t,e,n){var r=n(47445)();t.exports=r},59704:function(t,e,n){var r=n(82908),o=n(67206),i=n(5076),a=n(1469),c=n(16612);t.exports=function(t,e,n){var u=a(t)?r:i;return n&&c(t,e,n)&&(e=void 0),u(t,o(e,3))}},89734:function(t,e,n){var r=n(21078),o=n(82689),i=n(5976),a=n(16612),c=i((function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),o(t,r(e,1),[])}));t.exports=c},18601:function(t,e,n){var r=n(14841),o=1/0;t.exports=function(t){return t?(t=r(t))===o||t===-1/0?17976931348623157e292*(t<0?-1:1):t===t?t:0:0===t?t:0}},40554:function(t,e,n){var r=n(18601);t.exports=function(t){var e=r(t),n=e%1;return e===e?n?e-n:e:0}},46871:function(t,e,n){"use strict";function r(){var t=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==t&&void 0!==t&&this.setState(t)}function o(t){this.setState(function(e){var n=this.constructor.getDerivedStateFromProps(t,e);return null!==n&&void 0!==n?n:null}.bind(this))}function i(t,e){try{var n=this.props,r=this.state;this.props=t,this.state=e,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(t){var e=t.prototype;if(!e||!e.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof t.getDerivedStateFromProps&&"function"!==typeof e.getSnapshotBeforeUpdate)return t;var n=null,a=null,c=null;if("function"===typeof e.componentWillMount?n="componentWillMount":"function"===typeof e.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof e.componentWillReceiveProps?a="componentWillReceiveProps":"function"===typeof e.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"===typeof e.componentWillUpdate?c="componentWillUpdate":"function"===typeof e.UNSAFE_componentWillUpdate&&(c="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==c){var u=t.displayName||t.name,s="function"===typeof t.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+s+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==c?"\n "+c:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof t.getDerivedStateFromProps&&(e.componentWillMount=r,e.componentWillReceiveProps=o),"function"===typeof e.getSnapshotBeforeUpdate){if("function"!==typeof e.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");e.componentWillUpdate=i;var l=e.componentDidUpdate;e.componentDidUpdate=function(t,e,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,t,e,r)}}return t}n.r(e),n.d(e,{polyfill:function(){return a}}),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},86326:function(t,e,n){"use strict";n.d(e,{ZP:function(){return te},bO:function(){return $}});var r=n(67294),o=n(45697),i=n.n(o),a=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty;function s(t,e){return function(n,r,o){return t(n,r,o)&&e(n,r,o)}}function l(t){return function(e,n,r){if(!e||!n||"object"!==typeof e||"object"!==typeof n)return t(e,n,r);var o=r.cache,i=o.get(e),a=o.get(n);if(i&&a)return i===n&&a===e;o.set(e,n),o.set(n,e);var c=t(e,n,r);return o.delete(e),o.delete(n),c}}function f(t){return a(t).concat(c(t))}var p=Object.hasOwn||function(t,e){return u.call(t,e)};function h(t,e){return t||e?t===e:t===e||t!==t&&e!==e}var d="_owner",y=Object.getOwnPropertyDescriptor,v=Object.keys;function g(t,e,n){var r=t.length;if(e.length!==r)return!1;for(;r-->0;)if(!n.equals(t[r],e[r],r,r,t,e,n))return!1;return!0}function m(t,e){return h(t.getTime(),e.getTime())}function b(t,e,n){if(t.size!==e.size)return!1;for(var r,o,i={},a=t.entries(),c=0;(r=a.next())&&!r.done;){for(var u=e.entries(),s=!1,l=0;(o=u.next())&&!o.done;){var f=r.value,p=f[0],h=f[1],d=o.value,y=d[0],v=d[1];s||i[l]||!(s=n.equals(p,y,c,l,t,e,n)&&n.equals(h,v,p,y,t,e,n))||(i[l]=!0),l++}if(!s)return!1;c++}return!0}function x(t,e,n){var r,o=v(t),i=o.length;if(v(e).length!==i)return!1;for(;i-->0;){if((r=o[i])===d&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!p(e,r)||!n.equals(t[r],e[r],r,r,t,e,n))return!1}return!0}function w(t,e,n){var r,o,i,a=f(t),c=a.length;if(f(e).length!==c)return!1;for(;c-->0;){if((r=a[c])===d&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!p(e,r))return!1;if(!n.equals(t[r],e[r],r,r,t,e,n))return!1;if(o=y(t,r),i=y(e,r),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function O(t,e){return h(t.valueOf(),e.valueOf())}function _(t,e){return t.source===e.source&&t.flags===e.flags}function E(t,e,n){if(t.size!==e.size)return!1;for(var r,o,i={},a=t.values();(r=a.next())&&!r.done;){for(var c=e.values(),u=!1,s=0;(o=c.next())&&!o.done;)u||i[s]||!(u=n.equals(r.value,o.value,r.value,o.value,t,e,n))||(i[s]=!0),s++;if(!u)return!1}return!0}function S(t,e){var n=t.length;if(e.length!==n)return!1;for(;n-->0;)if(t[n]!==e[n])return!1;return!0}var j=Array.isArray,k="function"===typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,A=Object.assign,P=Object.prototype.toString.call.bind(Object.prototype.toString);var M=T();T({strict:!0}),T({circular:!0}),T({circular:!0,strict:!0}),T({createInternalComparator:function(){return h}}),T({strict:!0,createInternalComparator:function(){return h}}),T({circular:!0,createInternalComparator:function(){return h}}),T({circular:!0,createInternalComparator:function(){return h},strict:!0});function T(t){void 0===t&&(t={});var e,n=t.circular,r=void 0!==n&&n,o=t.createInternalComparator,i=t.createState,a=t.strict,c=void 0!==a&&a,u=function(t){var e=t.circular,n=t.createCustomConfig,r=t.strict,o={areArraysEqual:r?w:g,areDatesEqual:m,areMapsEqual:r?s(b,w):b,areObjectsEqual:r?w:x,arePrimitiveWrappersEqual:O,areRegExpsEqual:_,areSetsEqual:r?s(E,w):E,areTypedArraysEqual:r?w:S};if(n&&(o=A({},o,n(o))),e){var i=l(o.areArraysEqual),a=l(o.areMapsEqual),c=l(o.areObjectsEqual),u=l(o.areSetsEqual);o=A({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:u})}return o}(t),f=function(t){var e=t.areArraysEqual,n=t.areDatesEqual,r=t.areMapsEqual,o=t.areObjectsEqual,i=t.arePrimitiveWrappersEqual,a=t.areRegExpsEqual,c=t.areSetsEqual,u=t.areTypedArraysEqual;return function(t,s,l){if(t===s)return!0;if(null==t||null==s||"object"!==typeof t||"object"!==typeof s)return t!==t&&s!==s;var f=t.constructor;if(f!==s.constructor)return!1;if(f===Object)return o(t,s,l);if(j(t))return e(t,s,l);if(null!=k&&k(t))return u(t,s,l);if(f===Date)return n(t,s,l);if(f===RegExp)return a(t,s,l);if(f===Map)return r(t,s,l);if(f===Set)return c(t,s,l);var p=P(t);return"[object Date]"===p?n(t,s,l):"[object RegExp]"===p?a(t,s,l):"[object Map]"===p?r(t,s,l):"[object Set]"===p?c(t,s,l):"[object Object]"===p?"function"!==typeof t.then&&"function"!==typeof s.then&&o(t,s,l):"[object Arguments]"===p?o(t,s,l):("[object Boolean]"===p||"[object Number]"===p||"[object String]"===p)&&i(t,s,l)}}(u);return function(t){var e=t.circular,n=t.comparator,r=t.createState,o=t.equals,i=t.strict;if(r)return function(t,a){var c=r(),u=c.cache,s=void 0===u?e?new WeakMap:void 0:u,l=c.meta;return n(t,a,{cache:s,equals:o,meta:l,strict:i})};if(e)return function(t,e){return n(t,e,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(t,e){return n(t,e,a)}}({circular:r,comparator:f,createState:i,equals:o?o(f):(e=f,function(t,n,r,o,i,a,c){return e(t,n,c)}),strict:c})}function C(t){"undefined"!==typeof requestAnimationFrame&&requestAnimationFrame(t)}function N(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=function r(o){n<0&&(n=o),o-n>e?(t(o),n=-1):C(r)};requestAnimationFrame(r)}function I(t){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},I(t)}function D(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return R(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return R(t,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 R(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0&&t<=1}));var l=nt(r,i),f=nt(o,a),p=rt(r,i),h=function(t){return t>1?1:t<0?0:t},d=function(t){for(var e=t>1?1:t,n=e,r=0;r<8;++r){var o=l(n)-e,i=p(n);if(Math.abs(o-e)0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,n=void 0===e?100:e,r=t.damping,o=void 0===r?8:r,i=t.dt,a=void 0===i?17:i,c=function(t,e,r){var i=r+(-(t-e)*n-r*o)*a/1e3,c=r*a/1e3+t;return Math.abs(c-e)t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function wt(t){return function(t){if(Array.isArray(t))return Ot(t)}(t)||function(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return Ot(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ot(t,e)}(t)||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 Ot(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?n[o-1]:r,p=s||Object.keys(u);if("function"===typeof c||"spring"===c)return[].concat(wt(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:i,easing:c}),i]);var h=Y(p,i,c),d=Et(Et(Et({},f.style),u),{},{transition:h});return[].concat(wt(t),[d,i,l]).filter(H)}),[a,Math.max(u,r)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=L());var e=t.begin,n=t.duration,r=t.attributeName,o=t.to,i=t.easing,a=t.onAnimationStart,c=t.onAnimationEnd,u=t.steps,s=t.children,l=this.manager;if(this.unSubscribe=l.subscribe(this.handleStyleChange),"function"!==typeof i&&"function"!==typeof s&&"spring"!==i)if(u.length>1)this.runStepAnimation(t);else{var f=r?St({},r,o):o,p=Y(Object.keys(f),n,i);l.start([a,e,Et(Et({},f),{},{transition:p}),n,c])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,e=t.children,n=(t.begin,t.duration),o=(t.attributeName,t.easing,t.isActive),i=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,xt(t,bt)),a=r.Children.count(e),c=$(this.state.style);if("function"===typeof e)return e(c);if(!o||0===a||n<=0)return e;var u=function(t){var e=t.props,n=e.style,o=void 0===n?{}:n,a=e.className;return(0,r.cloneElement)(t,Et(Et({},i),{},{style:Et(Et({},o),c),className:a}))};return 1===a?u(r.Children.only(e)):r.createElement("div",null,r.Children.map(e,(function(t){return u(t)})))}}],n&&jt(e.prototype,n),o&&jt(e,o),Object.defineProperty(e,"prototype",{writable:!1}),a}(r.PureComponent);Nt.displayName="Animate",Nt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},Nt.propTypes={from:i().oneOfType([i().object,i().string]),to:i().oneOfType([i().object,i().string]),attributeName:i().string,duration:i().number,begin:i().number,easing:i().oneOfType([i().string,i().func]),steps:i().arrayOf(i().shape({duration:i().number.isRequired,style:i().object.isRequired,easing:i().oneOfType([i().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),i().func]),properties:i().arrayOf("string"),onAnimationEnd:i().func})),children:i().oneOfType([i().node,i().func]),isActive:i().bool,canBegin:i().bool,onAnimationEnd:i().func,shouldReAnimate:i().bool,onAnimationStart:i().func,onAnimationReStart:i().func};var It=Nt,Dt=n(64317),Rt=["children","appearOptions","enterOptions","leaveOptions"];function Lt(t){return Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lt(t)}function Bt(){return Bt=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function Ut(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function zt(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=t.steps,n=t.duration;return e&&e.length?e.reduce((function(t,e){return t+(Number.isFinite(e.duration)&&e.duration>0?e.duration:0)}),0):Number.isFinite(n)?n:0},Kt=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vt(t,e)}(a,t);var e,n,o,i=Wt(a);function a(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),Yt(Gt(t=i.call(this)),"handleEnter",(function(e,n){var r=t.props,o=r.appearOptions,i=r.enterOptions;t.handleStyleActive(n?o:i)})),Yt(Gt(t),"handleExit",(function(){var e=t.props.leaveOptions;t.handleStyleActive(e)})),t.state={isActive:!1},t}return e=a,(n=[{key:"handleStyleActive",value:function(t){if(t){var e=t.onAnimationEnd?function(){t.onAnimationEnd()}:null;this.setState(zt(zt({},t),{},{onAnimationEnd:e,isActive:!0}))}}},{key:"parseTimeout",value:function(){var t=this.props,e=t.appearOptions,n=t.enterOptions,r=t.leaveOptions;return Zt(e)+Zt(n)+Zt(r)}},{key:"render",value:function(){var t=this,e=this.props,n=e.children,o=(e.appearOptions,e.enterOptions,e.leaveOptions,Ft(e,Rt));return r.createElement(Dt.Transition,Bt({},o,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),(function(){return r.createElement(It,t.state,r.Children.only(n))}))}}])&&qt(e.prototype,n),o&&qt(e,o),Object.defineProperty(e,"prototype",{writable:!1}),a}(r.Component);Kt.propTypes={appearOptions:i().object,enterOptions:i().object,leaveOptions:i().object,children:i().element};var Jt=Kt;function Qt(t){var e=t.component,n=t.children,o=t.appear,i=t.enter,a=t.leave;return r.createElement(Dt.TransitionGroup,{component:e},r.Children.map(n,(function(t,e){return r.createElement(Jt,{appearOptions:o,enterOptions:i,leaveOptions:a,key:"child-".concat(e)},t)})))}Qt.propTypes={appear:i().object,enter:i().object,leave:i().object,children:i().oneOfType([i().array,i().element]),component:i().any},Qt.defaultProps={component:"span"};var te=It},80129:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;!function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};r.get||r.set?Object.defineProperty(e,n,r):e[n]=t[n]}e.default=t}(n(45697));var r=c(n(98141)),o=c(n(10602)),i=c(n(67294)),a=c(n(60644));n(54726);function c(t){return t&&t.__esModule?t:{default:t}}function u(){return u=Object.assign||function(t){for(var e=1;e=0||(o[n]=t[n]);return o}(t,["children","in"]),a=r.default.Children.toArray(e),c=a[0],u=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(c,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(u,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},a}(r.default.Component);c.propTypes={};var u=c;e.default=u,t.exports=e.default},60644:function(t,e,n){"use strict";e.__esModule=!0,e.default=e.EXITING=e.ENTERED=e.ENTERING=e.EXITED=e.UNMOUNTED=void 0;var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};r.get||r.set?Object.defineProperty(e,n,r):e[n]=t[n]}return e.default=t,e}(n(45697)),o=c(n(67294)),i=c(n(73935)),a=n(46871);n(54726);function c(t){return t&&t.__esModule?t:{default:t}}var u="unmounted";e.UNMOUNTED=u;var s="exited";e.EXITED=s;var l="entering";e.ENTERING=l;var f="entered";e.ENTERED=f;var p="exiting";e.EXITING=p;var h=function(t){var e,n;function r(e,n){var r;r=t.call(this,e,n)||this;var o,i=n.transitionGroup,a=i&&!i.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?a?(o=s,r.appearStatus=l):o=f:o=e.unmountOnExit||e.mountOnEnter?u:s,r.state={status:o},r.nextCallback=null,r}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=r.prototype;return a.getChildContext=function(){return{transitionGroup:null}},r.getDerivedStateFromProps=function(t,e){return t.in&&e.status===u?{status:s}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?n!==l&&n!==f&&(e=l):n!==l&&n!==f||(e=p)}this.updateStatus(!1,e)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var t,e,n,r=this.props.timeout;return t=e=n=r,null!=r&&"number"!==typeof r&&(t=r.exit,e=r.enter,n=void 0!==r.appear?r.appear:e),{exit:t,enter:e,appear:n}},a.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e){this.cancelNextCallback();var n=i.default.findDOMNode(this);e===l?this.performEnter(n,t):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===s&&this.setState({status:u})},a.performEnter=function(t,e){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:e,i=this.getTimeouts(),a=o?i.appear:i.enter;e||r?(this.props.onEnter(t,o),this.safeSetState({status:l},(function(){n.props.onEntering(t,o),n.onTransitionEnd(t,a,(function(){n.safeSetState({status:f},(function(){n.props.onEntered(t,o)}))}))}))):this.safeSetState({status:f},(function(){n.props.onEntered(t)}))},a.performExit=function(t){var e=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(t),this.safeSetState({status:p},(function(){e.props.onExiting(t),e.onTransitionEnd(t,r.exit,(function(){e.safeSetState({status:s},(function(){e.props.onExited(t)}))}))}))):this.safeSetState({status:s},(function(){e.props.onExited(t)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},a.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},a.onTransitionEnd=function(t,e,n){this.setNextCallback(n);var r=null==e&&!this.props.addEndListener;t&&!r?(this.props.addEndListener&&this.props.addEndListener(t,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},a.render=function(){var t=this.state.status;if(t===u)return null;var e=this.props,n=e.children,r=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r=0||(o[n]=t[n]);return o}(e,["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(t,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);e.default=y},92381:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r=c(n(45697)),o=c(n(67294)),i=n(46871),a=n(40537);function c(t){return t&&t.__esModule?t:{default:t}}function u(){return u=Object.assign||function(t){for(var e=1;e=0||(o[n]=t[n]);return o}(t,["component","childFactory"]),i=l(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===e?i:o.default.createElement(e,r,i)},r}(o.default.Component);f.childContextTypes={transitionGroup:r.default.object.isRequired},f.propTypes={},f.defaultProps={component:"div",childFactory:function(t){return t}};var p=(0,i.polyfill)(f);e.default=p,t.exports=e.default},64317:function(t,e,n){"use strict";var r=c(n(80129)),o=c(n(26093)),i=c(n(92381)),a=c(n(60644));function c(t){return t&&t.__esModule?t:{default:t}}t.exports={Transition:a.default,TransitionGroup:i.default,ReplaceTransition:o.default,CSSTransition:r.default}},40537:function(t,e,n){"use strict";e.__esModule=!0,e.getChildMapping=o,e.mergeChildMappings=i,e.getInitialChildMapping=function(t,e){return o(t.children,(function(n){return(0,r.cloneElement)(n,{onExited:e.bind(null,n),in:!0,appear:a(n,"appear",t),enter:a(n,"enter",t),exit:a(n,"exit",t)})}))},e.getNextChildMapping=function(t,e,n){var c=o(t.children),u=i(e,c);return Object.keys(u).forEach((function(o){var i=u[o];if((0,r.isValidElement)(i)){var s=o in e,l=o in c,f=e[o],p=(0,r.isValidElement)(f)&&!f.props.in;!l||s&&!p?l||!s||p?l&&s&&(0,r.isValidElement)(f)&&(u[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:f.props.in,exit:a(i,"exit",t),enter:a(i,"enter",t)})):u[o]=(0,r.cloneElement)(i,{in:!1}):u[o]=(0,r.cloneElement)(i,{onExited:n.bind(null,i),in:!0,exit:a(i,"exit",t),enter:a(i,"enter",t)})}})),u};var r=n(67294);function o(t,e){var n=Object.create(null);return t&&r.Children.map(t,(function(t){return t})).forEach((function(t){n[t.key]=function(t){return e&&(0,r.isValidElement)(t)?e(t):t}(t)})),n}function i(t,e){function n(n){return n in e?e[n]:t[n]}t=t||{},e=e||{};var r,o=Object.create(null),i=[];for(var a in t)a in e?i.length&&(o[a]=i,i=[]):i.push(a);var c={};for(var u in e){if(o[u])for(r=0;r=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function O(t){var e=t.offset,n=t.layout,r=t.width,o=t.dataKey,i=t.data,a=t.dataPointFormatter,c=t.xAxis,u=t.yAxis,l=w(t,["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"]),f=(0,g.L6)(l),p=i.map((function(t,i){var l=a(t,o),p=l.x,h=l.y,d=l.value,v=l.errorVal;if(!v)return null;var g,x,w=[];if(Array.isArray(v)){var O=b(v,2);g=O[0],x=O[1]}else g=x=v;if("vertical"===n){var _=c.scale,E=h+e,S=E+r,j=E-r,k=_(d-g),A=_(d+x);w.push({x1:A,y1:S,x2:A,y2:j}),w.push({x1:k,y1:E,x2:A,y2:E}),w.push({x1:k,y1:S,x2:k,y2:j})}else if("horizontal"===n){var P=u.scale,M=p+e,T=M-r,C=M+r,N=P(d-g),I=P(d+x);w.push({x1:T,y1:I,x2:C,y2:I}),w.push({x1:M,y1:N,x2:M,y2:I}),w.push({x1:T,y1:N,x2:C,y2:N})}return s.createElement(y.m,m({className:"recharts-errorBar",key:"bar-".concat(i)},f),w.map((function(t,e){return s.createElement("line",m({},t,{key:"line-".concat(e)}))})))}));return s.createElement(y.m,{className:"recharts-errorBars"},p)}O.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},O.displayName="ErrorBar";var _=n(69055),E=n(52017),S=n(47523),j=n(77718);function k(t){return k="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},k(t)}function A(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function P(){return P=Object.assign||function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);ni){u=[].concat(N(n.slice(0,s)),[i-l]);break}var f=u.length%2===0?[0,a]:[a];return[].concat(N(c.repeat(n,o)),N(u),f).map((function(t){return"".concat(t,"px")})).join(", ")},t.id=(0,_.EL)("recharts-line-"),t.pathRef=function(e){t.mainCurve=e},t.handleAnimationEnd=function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()},t.handleAnimationStart=function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()},t}return e=c,r=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:e.curPoints}:t.points!==e.curPoints?{curPoints:t.points}:null}},{key:"repeat",value:function(t,e){for(var n=t.length%2!==0?[].concat(N(t),[0]):t,r=[],o=0;o0||!o()(c,r))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(r,t,e)}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.dot,r=t.points,o=t.className,i=t.xAxis,a=t.yAxis,c=t.top,l=t.left,f=t.width,h=t.height,d=t.isAnimationActive,g=t.id;if(e||!r||!r.length)return null;var m=this.state.isAnimationFinished,b=1===r.length,x=p()("recharts-line",o),w=i&&i.allowDataOverflow||a&&a.allowDataOverflow,O=u()(g)?this.id:g;return s.createElement(y.m,{className:x},w?s.createElement("defs",null,s.createElement("clipPath",{id:"clipPath-".concat(O)},s.createElement("rect",{x:l,y:c,width:f,height:h}))):null,!b&&this.renderCurve(w,O),this.renderErrorBar(),(b||n)&&this.renderDots(w,O),(!d||m)&&v.e.renderCallByParent(this.props,r))}}])&&R(e.prototype,n),r&&R(e,r),c}(s.PureComponent);z.displayName="Line",z.defaultProps={xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!S.x.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1},z.getComposedData=function(t){var e=t.props,n=t.xAxis,r=t.yAxis,o=t.xAxisTicks,i=t.yAxisTicks,a=t.dataKey,c=t.bandSize,s=t.displayedData,l=t.offset,f=e.layout;return T({points:s.map((function(t,e){var s=(0,j.F$)(t,a);return"horizontal"===f?{x:(0,j.Hv)({axis:n,ticks:o,bandSize:c,entry:t,index:e}),y:u()(s)?null:r.scale(s),value:s,payload:t}:{x:u()(s)?null:n.scale(s),y:(0,j.Hv)({axis:r,ticks:i,bandSize:c,entry:t,index:e}),value:s,payload:t}})),layout:f},l)}},26383:function(t,e,n){"use strict";n.d(e,{q:function(){return x}});var r=n(23560),o=n.n(r),i=n(67294),a=n(94184),c=n.n(a),u=n(48710),s=n(93061),l=n(25048),f=n(69055),p=n(47548),h=n(97187),d=n(6213),y=n(79896);function v(){return v=Object.assign||function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n180),",").concat(+(i>c),",\n ").concat(s.x,",").concat(s.y,"\n ");if(r>0){var f=(0,q.op)(e,n,r,i),p=(0,q.op)(e,n,r,c);l+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=c),",\n ").concat(f.x,",").concat(f.y," Z")}else l+="L ".concat(e,",").concat(n," Z");return l},Q=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$(t,e)}(i,t);var e,n,r,o=Y(i);function i(){return H(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"render",value:function(){var t=this.props,e=t.cx,n=t.cy,r=t.innerRadius,o=t.outerRadius,i=t.cornerRadius,a=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,s=t.endAngle,l=t.className;if(o0&&Math.abs(u-s)<360?function(t){var e=t.cx,n=t.cy,r=t.innerRadius,o=t.outerRadius,i=t.cornerRadius,a=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,s=t.endAngle,l=(0,T.uY)(s-u),f=K({cx:e,cy:n,radius:o,angle:u,sign:l,cornerRadius:i,cornerIsExternal:c}),p=f.circleTangency,h=f.lineTangency,d=f.theta,y=K({cx:e,cy:n,radius:o,angle:s,sign:-l,cornerRadius:i,cornerIsExternal:c}),v=y.circleTangency,g=y.lineTangency,m=y.theta,b=c?Math.abs(u-s):Math.abs(u-s)-d-m;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 "):J({cx:e,cy:n,innerRadius:r,outerRadius:o,startAngle:u,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(g.x,",").concat(g.y,"\n ");if(r>0){var w=K({cx:e,cy:n,radius:r,angle:u,sign:l,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),O=w.circleTangency,_=w.lineTangency,E=w.theta,S=K({cx:e,cy:n,radius:r,angle:s,sign:-l,isExternal:!0,cornerRadius:i,cornerIsExternal:c}),j=S.circleTangency,k=S.lineTangency,A=S.theta,P=c?Math.abs(u-s):Math.abs(u-s)-E-A;if(P<0&&0===i)return"".concat(x,"L").concat(e,",").concat(n,"Z");x+="L".concat(k.x,",").concat(k.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(j.x,",").concat(j.y,"\n A").concat(r,",").concat(r,",0,").concat(+(P>180),",").concat(+(l>0),",").concat(O.x,",").concat(O.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(_.x,",").concat(_.y,"Z")}else x+="L".concat(e,",").concat(n,"Z");return x}({cx:e,cy:n,innerRadius:r,outerRadius:o,cornerRadius:Math.min(d,h/2),forceCornerRadius:a,cornerIsExternal:c,startAngle:u,endAngle:s}):J({cx:e,cy:n,innerRadius:r,outerRadius:o,startAngle:u,endAngle:s}),_.createElement("path",W({},(0,C.L6)(this.props,!0),{className:p,d:f}))}}])&&G(e.prototype,n),r&&G(e,r),i}(_.PureComponent);Q.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1};var tt=n(93061),et=n(86326);function nt(t){return nt="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nt(t)}function rt(){return rt=Object.assign||function(t){for(var e=1;e=0?1:-1,u=n>=0?1:-1,s=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var l=[0,0,0,0],f=0;f<4;f++)l[f]=o[f]>a?a:o[f];i="M".concat(t,",").concat(e+c*l[0]),l[0]>0&&(i+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(s,",").concat(t+u*l[0],",").concat(e)),i+="L ".concat(t+n-u*l[1],",").concat(e),l[1]>0&&(i+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(s,",\n ").concat(t+n,",").concat(e+c*l[1])),i+="L ".concat(t+n,",").concat(e+r-c*l[2]),l[2]>0&&(i+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(s,",\n ").concat(t+n-u*l[2],",").concat(e+r)),i+="L ".concat(t+u*l[3],",").concat(e+r),l[3]>0&&(i+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(s,",\n ").concat(t,",").concat(e+r-c*l[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(t,",").concat(e+c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(t+u*p,",").concat(e,"\n L ").concat(t+n-u*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(t+n,",").concat(e+c*p,"\n L ").concat(t+n,",").concat(e+r-c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(t+n-u*p,",").concat(e+r,"\n L ").concat(t+u*p,",").concat(e+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(s,",").concat(t,",").concat(e+r-c*p," Z")}else i="M ".concat(t,",").concat(e," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},ft=function(t,e){if(!t||!e)return!1;var n=t.x,r=t.y,o=e.x,i=e.y,a=e.width,c=e.height;if(Math.abs(a)>0&&Math.abs(c)>0){var u=Math.min(o,o+a),s=Math.max(o,o+a),l=Math.min(i,i+c),f=Math.max(i,i+c);return n>=u&&n<=s&&r>=l&&r<=f}return!1},pt=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&at(t,e)}(i,t);var e,n,r,o=ct(i);function i(){var t;ot(this,i);for(var e=arguments.length,n=new Array(e),r=0;r0,from:{width:o,height:i,x:n,y:r},to:{width:o,height:i,x:n,y:r},duration:f,animationEasing:l,isActive:d},(function(e){var n=e.width,r=e.height,o=e.x,i=e.y;return _.createElement(et.ZP,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:f,isActive:h,easing:l},_.createElement("path",rt({},(0,C.L6)(t.props,!0),{className:y,d:lt(o,i,n,r,a),ref:function(e){t.node=e}})))})):_.createElement("path",rt({},(0,C.L6)(this.props,!0),{className:y,d:lt(n,r,o,i,a)}))}}])&&it(e.prototype,n),r&&it(e,r),i}(_.PureComponent);pt.defaultProps={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"};var ht=n(52017),dt=n(30791),yt=n(41209),vt=n(88169),gt=n(25048),mt=n(47523);function bt(t){return bt="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bt(t)}function xt(){return xt=Object.assign||function(t){for(var e=1;e=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function St(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jt(t,e){for(var n=0;n=2?(0,T.uY)(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),e){var x=o[m-1],w=u()(i)?i(x.value,m-1):x.value,O=(0,yt.xE)(w)[y]+g,_=b*(x.coordinate+b*O/2-r);v[m-1]=x=Ot(Ot({},x),{},{tickCoord:_>0?x.coordinate-_*b:x.coordinate}),b*(x.tickCoord-b*O/2-n)>=0&&b*(x.tickCoord+b*O/2-r)<=0&&(r=x.tickCoord-b*(O/2+s),v[m-1]=Ot(Ot({},x),{},{isShow:!0}))}for(var E=e?m-1:m,S=0;S=0&&b*(j.tickCoord+b*A/2-r)<=0&&(n=j.tickCoord+b*(A/2+s),v[S]=Ot(Ot({},j),{},{isShow:!0}))}return v.filter((function(t){return t.isShow}))}},{key:"getTicksEnd",value:function(t){var e,n,r=t.ticks,o=t.tickFormatter,i=t.viewBox,a=t.orientation,c=t.minTickGap,s=t.unit,l=i.x,f=i.y,p=i.width,h=i.height,d="top"===a||"bottom"===a?"width":"height",y=s&&"width"===d?(0,yt.xE)(s)[d]:0,v=(r||[]).slice(),g=v.length,m=g>=2?(0,T.uY)(v[1].coordinate-v[0].coordinate):1;1===m?(e="width"===d?l:f,n="width"===d?l+p:f+h):(e="width"===d?l+p:f+h,n="width"===d?l:f);for(var b=g-1;b>=0;b--){var x=v[b],w=u()(o)?o(x.value,g-b-1):x.value,O=(0,yt.xE)(w)[d]+y;if(b===g-1){var _=m*(x.coordinate+m*O/2-n);v[b]=x=Ot(Ot({},x),{},{tickCoord:_>0?x.coordinate-_*m:x.coordinate})}else v[b]=x=Ot(Ot({},x),{},{tickCoord:x.coordinate});m*(x.tickCoord-m*O/2-e)>=0&&m*(x.tickCoord+m*O/2-n)<=0&&(n=x.tickCoord-m*(O/2+c),v[b]=Ot(Ot({},x),{},{isShow:!0}))}return v.filter((function(t){return t.isShow}))}},{key:"renderTickItem",value:function(t,e,n){return _.isValidElement(t)?_.cloneElement(t,e):u()(t)?t(e):_.createElement(vt.x,xt({},e,{className:"recharts-cartesian-axis-tick-value"}),n)}}],(n=[{key:"shouldComponentUpdate",value:function(t){var e=t.viewBox,n=Et(t,["viewBox"]),r=this.props,o=r.viewBox,i=Et(r,["viewBox"]);return!(0,dt.w)(e,o)||!(0,dt.w)(n,i)}},{key:"getTickLineCoord",value:function(t){var e,n,r,o,i,a,c=this.props,u=c.x,s=c.y,l=c.width,f=c.height,p=c.orientation,h=c.tickSize,d=c.mirror,y=c.tickMargin,v=d?-1:1,g=t.tickSize||h,m=(0,T.hj)(t.tickCoord)?t.tickCoord:t.coordinate;switch(p){case"top":e=n=t.coordinate,a=(r=(o=s+ +!d*f)-v*g)-v*y,i=m;break;case"left":r=o=t.coordinate,i=(e=(n=u+ +!d*l)-v*g)-v*y,a=m;break;case"right":r=o=t.coordinate,i=(e=(n=u+ +d*l)+v*g)+v*y,a=m;break;default:e=n=t.coordinate,a=(r=(o=s+ +d*f)+v*g)+v*y,i=m}return{line:{x1:e,y1:r,x2:n,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,n=e.orientation,r=e.mirror;switch(n){case"left":t=r?"start":"end";break;case"right":t=r?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,n=t.mirror,r="end";switch(e){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 t=this.props,e=t.x,n=t.y,r=t.width,o=t.height,i=t.orientation,a=t.mirror,c=t.axisLine,u=Ot(Ot(Ot({},(0,C.L6)(this.props)),(0,C.L6)(c)),{},{fill:"none"});if("top"===i||"bottom"===i){var s=+("top"===i&&!a||"bottom"===i&&a);u=Ot(Ot({},u),{},{x1:e,y1:n+s*o,x2:e+r,y2:n+s*o})}else{var l=+("left"===i&&!a||"right"===i&&a);u=Ot(Ot({},u),{},{x1:e+l*r,y1:n,x2:e+l*r,y2:n+o})}return _.createElement("line",xt({},u,{className:S()("recharts-cartesian-axis-line",d()(c,"className"))}))}},{key:"renderTicks",value:function(t){var e=this,n=this.props,r=n.tickLine,o=n.stroke,a=n.tick,c=n.tickFormatter,s=n.unit,l=i.getTicks(Ot(Ot({},this.props),{},{ticks:t})),f=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),h=(0,C.L6)(this.props),y=(0,C.L6)(a),v=Ot(Ot({},h),{},{fill:"none"},(0,C.L6)(r)),g=l.map((function(t,n){var g=e.getTickLineCoord(t),m=g.line,b=g.tick,x=Ot(Ot(Ot(Ot({textAnchor:f,verticalAnchor:p},h),{},{stroke:"none",fill:o},y),b),{},{index:n,payload:t,visibleTicksCount:l.length,tickFormatter:c});return _.createElement(k.m,xt({className:"recharts-cartesian-axis-tick",key:"tick-".concat(n)},(0,C.bw)(e.props,t,n)),r&&_.createElement("line",xt({},v,m,{className:S()("recharts-cartesian-axis-tick-line",d()(r,"className"))})),a&&i.renderTickItem(a,x,"".concat(u()(c)?c(t.value,n):t.value).concat(s||"")))}));return _.createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{key:"render",value:function(){var t=this.props,e=t.axisLine,n=t.width,r=t.height,o=t.ticksGenerator,i=t.className;if(t.hide)return null;var a=this.props,c=a.ticks,s=Et(a,["ticks"]),l=c;return u()(o)&&(l=c&&c.length>0?o(this.props):o(s)),n<=0||r<=0||!l||!l.length?null:_.createElement(k.m,{className:S()("recharts-cartesian-axis",i)},e&&this.renderAxisLine(),this.renderTicks(l),gt._.renderCallByParent(this.props))}}])&&jt(e.prototype,n),r&&jt(e,r),i}(_.Component);Tt.displayName="CartesianAxis",Tt.defaultProps={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"};var Ct=n(98844),Nt=n(77718);function It(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Dt(t){for(var e=1;e0&&e.handleDrag(t.changedTouches[0])},e.handleDragEnd=function(){e.setState({isTravellerMoving:!1,isSlideMoving:!1}),e.detachDragEndListener()},e.handleLeaveWrapper=function(){(e.state.isTravellerMoving||e.state.isSlideMoving)&&(e.leaveTimer=window.setTimeout(e.handleDragEnd,e.props.leaveTimeOut))},e.handleEnterSlideOrTraveller=function(){e.setState({isTextActive:!0})},e.handleLeaveSlideOrTraveller=function(){e.setState({isTextActive:!1})},e.handleSlideDragStart=function(t){var n=Xt(t)?t.changedTouches[0]:t;e.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),e.attachDragEndListener()},e.travellerDragStartHandlers={startX:e.handleTravellerDragStart.bind($t(e),"startX"),endX:e.handleTravellerDragStart.bind($t(e),"endX")},e.state={},e}return e=i,r=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,n=t.y,r=t.width,o=t.height,i=t.stroke,a=Math.floor(n+o/2)-1;return _.createElement(_.Fragment,null,_.createElement("rect",{x:e,y:n,width:r,height:o,fill:i,stroke:"none"}),_.createElement("line",{x1:e+1,y1:a,x2:e+r-1,y2:a,fill:"none",stroke:"#fff"}),_.createElement("line",{x1:e+1,y1:a+2,x2:e+r-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,e){return _.isValidElement(t)?_.cloneElement(t,e):u()(t)?t(e):i.renderDefaultTraveller(e)}},{key:"getDerivedStateFromProps",value:function(t,e){var n=t.data,r=t.width,o=t.x,i=t.travellerWidth,a=t.updateId,c=t.startIndex,u=t.endIndex;if(n!==e.prevData||a!==e.prevUpdateId)return zt({prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r},n&&n.length?function(t){var e=t.data,n=t.startIndex,r=t.endIndex,o=t.x,i=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var c=e.length,u=(0,Ct.x)().domain(v()(0,c)).range([o,o+i-a]),s=u.domain().map((function(t){return u(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:u(n),endX:u(r),scale:u,scaleValues:s}}({data:n,width:r,x:o,travellerWidth:i,startIndex:c,endIndex:u}):{scale:null,scaleValues:null});if(e.scale&&(r!==e.prevWidth||o!==e.prevX||i!==e.prevTravellerWidth)){e.scale.range([o,o+r-i]);var s=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:s}}return null}},{key:"getIndexInRange",value:function(t,e){for(var n=0,r=t.length-1;r-n>1;){var o=Math.floor((n+r)/2);t[o]>e?r=o:n=o}return e>=t[r]?r:n}}],(n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var e=t.startX,n=t.endX,r=this.state.scaleValues,o=this.props,a=o.gap,c=o.data.length-1,u=Math.min(e,n),s=Math.max(e,n),l=i.getIndexInRange(r,u),f=i.getIndexInRange(r,s);return{startIndex:l-l%a,endIndex:f===c?c:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,n=e.data,r=e.tickFormatter,o=e.dataKey,i=(0,Nt.F$)(n[t],o,t);return u()(r)?r(i,t):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,n=e.slideMoveStartX,r=e.startX,o=e.endX,i=this.props,a=i.x,c=i.width,u=i.travellerWidth,s=i.startIndex,l=i.endIndex,f=i.onChange,p=t.pageX-n;p>0?p=Math.min(p,a+c-u-o,a+c-u-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:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var n=Xt(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e,n=this.state,r=n.brushMoveStartX,o=n.movingTravellerId,i=n.endX,a=n.startX,c=this.state[o],u=this.props,s=u.x,l=u.width,f=u.travellerWidth,p=u.onChange,h=u.gap,d=u.data,y={startX:this.state.startX,endX:this.state.endX},v=t.pageX-r;v>0?v=Math.min(v,s+l-f-c):v<0&&(v=Math.max(v,s-c)),y[o]=c+v;var g=this.getIndex(y),m=g.startIndex,b=g.endIndex;this.setState((qt(e={},o,c+v),qt(e,"brushMoveStartX",t.pageX),e),(function(){p&&function(){var t=d.length-1;return"startX"===o&&(i>a?m%h===0:b%h===0)||ia?b%h===0:m%h===0)||i>a&&b===t}()&&p(g)}))}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,o=t.height,i=t.fill,a=t.stroke;return _.createElement("rect",{stroke:a,fill:i,x:e,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,o=t.height,i=t.data,a=t.children,c=t.padding,u=_.Children.only(a);return u?_.cloneElement(u,{x:e,y:n,width:r,height:o,margin:c,compact:!0,data:i}):null}},{key:"renderTravellerLayer",value:function(t,e){var n=this.props,r=n.y,o=n.travellerWidth,a=n.height,c=n.traveller,u=Math.max(t,this.props.x),s=zt(zt({},(0,C.L6)(this.props)),{},{x:u,y:r,width:o,height:a});return _.createElement(k.m,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[e],onTouchStart:this.travellerDragStartHandlers[e],style:{cursor:"col-resize"}},i.renderTraveller(c,s))}},{key:"renderSlide",value:function(t,e){var n=this.props,r=n.y,o=n.height,i=n.stroke,a=n.travellerWidth,c=Math.min(t,e)+a,u=Math.max(Math.abs(e-t)-a,0);return _.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:c,y:r,width:u,height:o})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,n=t.endIndex,r=t.y,o=t.height,i=t.travellerWidth,a=t.stroke,c=this.state,u=c.startX,s=c.endX,l={pointerEvents:"none",fill:a};return _.createElement(k.m,{className:"recharts-brush-texts"},_.createElement(vt.x,Ft({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,s)-5,y:r+o/2},l),this.getTextOfTick(e)),_.createElement(vt.x,Ft({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,s)+i+5,y:r+o/2},l),this.getTextOfTick(n)))}},{key:"render",value:function(){var t=this.props,e=t.data,n=t.className,r=t.children,o=t.x,i=t.y,a=t.width,c=t.height,u=t.alwaysShowText,s=this.state,l=s.startX,f=s.endX,p=s.isTextActive,h=s.isSlideMoving,d=s.isTravellerMoving;if(!e||!e.length||!(0,T.hj)(o)||!(0,T.hj)(i)||!(0,T.hj)(a)||!(0,T.hj)(c)||a<=0||c<=0)return null;var y=S()("recharts-brush",n),v=1===_.Children.count(r),g=function(t,e){if(!t)return null;var n=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),r=Lt.reduce((function(t,r){return Dt(Dt({},t),{},Rt({},r+n,e))}),{});return r[t]=e,r}("userSelect","none");return _.createElement(k.m,{className:y,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(l,f),this.renderTravellerLayer(l,"startX"),this.renderTravellerLayer(f,"endX"),(p||h||d||u)&&this.renderText())}}])&&Vt(e.prototype,n),r&&Vt(e,r),i}(_.PureComponent);Zt.displayName="Brush",Zt.defaultProps={height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1};var Kt=n(26383),Jt=n(4545),Qt=n(97187),te=n(47548),ee=n(6213);function ne(){return ne=Object.assign||function(t){for(var e=1;e=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function ye(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?a:n&&n.props&&n.props.data&&n.props.data.length>0?n.props.data:t&&t.length&&(0,T.hj)(o)&&(0,T.hj)(i)?t.slice(o,i+1):[]},Ne=function(t,e,n,r){var o=t.graphicalItems,i=t.tooltipAxis,a=Ce(e,t);return n<0||!o||!o.length||n>=a.length?null:o.reduce((function(t,e){if(e.props.hide)return t;var o,c=e.props.data;if(i.dataKey&&!i.allowDuplicatedCategory){var u=void 0===c?a:c;o=(0,T.Ap)(u,i.dataKey,r)}else o=c&&c[n]||a[n];return o?[].concat(we(t),[(0,Nt.Qo)(e,o)]):t}),[])},Ie=function(t,e,n,r){var o=r||{x:t.chartX,y:t.chartY},i=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(o,n),a=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,s=(0,Nt.VO)(i,a,u,c);if(s>=0&&u){var l=u[s]&&u[s].value,f=Ne(t,e,s,l),p=function(t,e,n,r){var o=e.find((function(t){return t&&t.index===n}));if(o){if("horizontal"===t)return{x:o.coordinate,y:r.y};if("vertical"===t)return{x:r.x,y:o.coordinate};if("centric"===t){var i=o.coordinate,a=r.radius;return Se(Se(Se({},r),(0,q.op)(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var c=o.coordinate,u=r.angle;return Se(Se(Se({},r),(0,q.op)(r.cx,r.cy,c,u)),{},{angle:u,radius:c})}return Ae}(n,a,s,o);return{activeTooltipIndex:s,activeLabel:l,activePayload:f,activeCoordinate:p}}return null},De=function(t,e){var n=e.axisType,r=void 0===n?"xAxis":n,o=e.AxisComp,i=e.graphicalItems,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,s=t.children,l="".concat(r,"Id"),f=(0,ht.NN)(s,o),p={};return f&&f.length?p=function(t,e){var n=e.axes,r=e.graphicalItems,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,s=t.layout,l=t.children,f=t.stackOffset,p=(0,Nt.NA)(s,o);return n.reduce((function(e,n){var h=n.props,d=h.type,y=h.dataKey,g=h.allowDataOverflow,b=h.allowDuplicatedCategory,x=h.scale,w=h.ticks,O=n.props[i],_=Ce(t.data,{graphicalItems:r.filter((function(t){return t.props[i]===O})),dataStartIndex:c,dataEndIndex:u}),E=_.length;if(!e[O]){var S,j,k;if(y){if(S=(0,Nt.gF)(_,y,d),"category"===d&&p){var A=(0,T.bv)(S);b&&A?(j=S,S=v()(0,E)):b||(S=(0,Nt.ko)(n.props.domain,S,n).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(we(t),[e])}),[]))}else if("category"===d)S=b?S.filter((function(t){return""!==t&&!m()(t)})):(0,Nt.ko)(n.props.domain,S,n).reduce((function(t,e){return t.indexOf(e)>=0||""===e||m()(e)?t:[].concat(we(t),[e])}),[]);else if("number"===d){var P=(0,Nt.ZI)(_,r.filter((function(t){return t.props[i]===O&&!t.props.hide})),y,o);P&&(S=P)}!p||"number"!==d&&"auto"===x||(k=(0,Nt.gF)(_,y,"category"))}else S=p?v()(0,E):a&&a[O]&&a[O].hasStack&&"number"===d?"expand"===f?[0,1]:(0,Nt.EB)(a[O].stackGroups,c,u):(0,Nt.s6)(_,r.filter((function(t){return t.props[i]===O&&!t.props.hide})),d,!0);if("number"===d)S=ce(l,S,O,o,w),n.props.domain&&(S=(0,Nt.LG)(n.props.domain,S,g));else if("category"===d&&n.props.domain){var M=n.props.domain;S.every((function(t){return M.indexOf(t)>=0}))&&(S=M)}return Se(Se({},e),{},je({},O,Se(Se({},n.props),{},{axisType:o,domain:S,categoricalDomain:k,duplicateDomain:j,originalDomain:n.props.domain,isCategorical:p,layout:s})))}return e}),{})}(t,{axes:f,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:c,dataEndIndex:u}):i&&i.length&&(p=function(t,e){var n=e.graphicalItems,r=e.Axis,o=e.axisType,i=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,s=t.layout,l=t.children,f=Ce(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:u}),p=f.length,h=(0,Nt.NA)(s,o),y=-1;return n.reduce((function(t,e){var g,m=e.props[i];return t[m]?t:(y++,h?g=v()(0,p):a&&a[m]&&a[m].hasStack?(g=(0,Nt.EB)(a[m].stackGroups,c,u),g=ce(l,g,m,o)):(g=(0,Nt.LG)(r.defaultProps.domain,(0,Nt.s6)(f,n.filter((function(t){return t.props[i]===m&&!t.props.hide})),"number"),r.defaultProps.allowDataOverflow),g=ce(l,g,m,o)),Se(Se({},t),{},je({},m,Se(Se({axisType:o},r.defaultProps),{},{hide:!0,orientation:d()(ke,"".concat(o,".").concat(y%2),null),domain:g,originalDomain:r.defaultProps.domain,isCategorical:h,layout:s}))))}),{})}(t,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:c,dataEndIndex:u})),p},Re=function(t){var e=t.children,n=t.defaultShowTooltip,r=(0,ht.sP)(e,Zt.displayName);return{chartX:0,chartY:0,dataStartIndex:r&&r.props&&r.props.startIndex||0,dataEndIndex:r&&r.props&&r.props.endIndex||t.data&&t.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!m()(n)&&n}},Le=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},Be=function(t){var e,n,r=t.chartName,i=t.GraphicalChild,c=t.defaultTooltipEventType,s=void 0===c?"axis":c,f=t.validateTooltipEventTypes,h=void 0===f?["axis"]:f,y=t.axisComponents,v=t.legendContent,g=t.formatAxisMap,b=t.defaultProps,w=function(t,e){var n=e.graphicalItems,r=e.stackGroups,o=e.offset,i=e.updateId,a=e.dataStartIndex,c=e.dataEndIndex,u=t.barSize,s=t.layout,l=t.barGap,f=t.barCategoryGap,p=t.maxBarSize,h=Le(s),d=h.numericAxisName,v=h.cateAxisName,g=function(t){return!(!t||!t.length)&&t.some((function(t){var e=(0,ht.Gf)(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(n),b=g&&(0,Nt.pt)({barSize:u,stackGroups:r}),x=[];return n.forEach((function(n,u){var h=Ce(t.data,{dataStartIndex:a,dataEndIndex:c},n),g=n.props,w=g.dataKey,O=g.maxBarSize,_=n.props["".concat(d,"Id")],E=n.props["".concat(v,"Id")],S=y.reduce((function(t,r){var o,i=e["".concat(r.axisType,"Map")],a=n.props["".concat(r.axisType,"Id")],c=i&&i[a];return Se(Se({},t),{},(je(o={},r.axisType,c),je(o,"".concat(r.axisType,"Ticks"),(0,Nt.uY)(c)),o))}),{}),j=S[v],k=S["".concat(v,"Ticks")],A=r&&r[_]&&r[_].hasStack&&(0,Nt.O3)(n,r[_].stackGroups),P=(0,ht.Gf)(n.type).indexOf("Bar")>=0,M=(0,Nt.zT)(j,k),T=[];if(P){var C,N,I=m()(O)?p:O,D=null!==(C=null!==(N=(0,Nt.zT)(j,k,!0))&&void 0!==N?N:I)&&void 0!==C?C:0;T=(0,Nt.qz)({barGap:l,barCategoryGap:f,bandSize:D!==M?D:M,sizeList:b[E],maxBarSize:I}),D!==M&&(T=T.map((function(t){return Se(Se({},t),{},{position:Se(Se({},t.position),{},{offset:t.position.offset-D/2})})})))}var R,L=n&&n.type&&n.type.getComposedData;L&&x.push({props:Se(Se({},L(Se(Se({},S),{},{displayedData:h,props:t,dataKey:w,item:n,bandSize:M,barPosition:T,offset:o,stackedData:A,layout:s,dataStartIndex:a,dataEndIndex:c}))),{},(R={key:n.key||"item-".concat(u)},je(R,d,S[d]),je(R,v,S[v]),je(R,"animationId",i),R)),childIndex:(0,ht.$R)(n,t.children),item:n})})),x},E=function(t,e){var n=t.props,o=t.dataStartIndex,a=t.dataEndIndex,c=t.updateId;if(!(0,ht.TT)({props:n}))return null;var u=n.children,s=n.layout,l=n.stackOffset,f=n.data,h=n.reverseStackOrder,v=Le(s),m=v.numericAxisName,b=v.cateAxisName,x=(0,ht.NN)(u,i),O=(0,Nt.wh)(f,x,"".concat(m,"Id"),"".concat(b,"Id"),l,h),_=y.reduce((function(t,e){var r="".concat(e.axisType,"Map");return Se(Se({},t),{},je({},r,De(n,Se(Se({},e),{},{graphicalItems:x,stackGroups:e.axisType===m&&O,dataStartIndex:o,dataEndIndex:a}))))}),{}),E=function(t,e){var n=t.props,r=t.graphicalItems,o=t.xAxisMap,i=void 0===o?{}:o,a=t.yAxisMap,c=void 0===a?{}:a,u=n.width,s=n.height,l=n.children,f=n.margin||{},p=(0,ht.sP)(l,Zt.displayName),h=(0,ht.sP)(l,P.D.displayName),y=Object.keys(c).reduce((function(t,e){var n=c[e],r=n.orientation;return n.mirror||n.hide?t:Se(Se({},t),{},je({},r,t[r]+n.width))}),{left:f.left||0,right:f.right||0}),v=Object.keys(i).reduce((function(t,e){var n=i[e],r=n.orientation;return n.mirror||n.hide?t:Se(Se({},t),{},je({},r,d()(t,"".concat(r))+n.height))}),{top:f.top||0,bottom:f.bottom||0}),g=Se(Se({},v),y),m=g.bottom;return p&&(g.bottom+=p.props.height||Zt.defaultProps.height),h&&e&&(g=(0,Nt.By)(g,r,n,e)),Se(Se({brushBottom:m},g),{},{width:u-g.left-g.right,height:s-g.top-g.bottom})}(Se(Se({},_),{},{props:n,graphicalItems:x}),null===e||void 0===e?void 0:e.legendBBox);Object.keys(_).forEach((function(t){_[t]=g(n,_[t],E,t.replace("Map",""),r)}));var S=function(t){var e=(0,T.Kt)(t),n=(0,Nt.uY)(e,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:p()(n,(function(t){return t.coordinate})),tooltipAxis:e,tooltipAxisBandSize:(0,Nt.zT)(e,n)}}(_["".concat(b,"Map")]),j=w(n,Se(Se({},_),{},{dataStartIndex:o,dataEndIndex:a,updateId:c,graphicalItems:x,stackGroups:O,offset:E}));return Se(Se({formattedGraphicalItems:j,graphicalItems:x,offset:E,stackGroups:O},S),_)};return n=e=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ve(t,e)}(f,t);var e,n,i,c=ge(f);function f(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),(e=c.call(this,t)).uniqueChartId=void 0,e.clipPathId=void 0,e.legendInstance=void 0,e.deferId=void 0,e.container=void 0,e.clearDeferId=function(){!m()(e.deferId)&&Te&&Te(e.deferId),e.deferId=null},e.handleLegendBBoxUpdate=function(t){if(t){var n=e.state,r=n.dataStartIndex,o=n.dataEndIndex,i=n.updateId;e.setState(Se({legendBBox:t},E({props:e.props,dataStartIndex:r,dataEndIndex:o,updateId:i},Se(Se({},e.state),{},{legendBBox:t}))))}},e.handleReceiveSyncEvent=function(t,n,r){e.props.syncId===t&&n!==e.uniqueChartId&&(e.clearDeferId(),e.deferId=Me&&Me(e.applySyncEvent.bind(be(e),r)))},e.handleBrushChange=function(t){var n=t.startIndex,r=t.endIndex;if(n!==e.state.dataStartIndex||r!==e.state.dataEndIndex){var o=e.state.updateId;e.setState((function(){return Se({dataStartIndex:n,dataEndIndex:r},E({props:e.props,dataStartIndex:n,dataEndIndex:r,updateId:o},e.state))})),e.triggerSyncEvent({dataStartIndex:n,dataEndIndex:r})}},e.handleMouseEnter=function(t){var n=e.props.onMouseEnter,r=e.getMouseInfo(t);if(r){var o=Se(Se({},r),{},{isTooltipActive:!0});e.setState(o),e.triggerSyncEvent(o),u()(n)&&n(o,t)}},e.triggeredAfterMouseMove=function(t){var n=e.props.onMouseMove,r=e.getMouseInfo(t),o=r?Se(Se({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};e.setState(o),e.triggerSyncEvent(o),u()(n)&&n(o,t)},e.handleItemMouseEnter=function(t){e.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))},e.handleItemMouseLeave=function(){e.setState((function(){return{isTooltipActive:!1}}))},e.handleMouseMove=function(t){t&&u()(t.persist)&&t.persist(),e.triggeredAfterMouseMove(t)},e.handleMouseLeave=function(t){var n=e.props.onMouseLeave,r={isTooltipActive:!1};e.setState(r),e.triggerSyncEvent(r),u()(n)&&n(r,t),e.cancelThrottledTriggerAfterMouseMove()},e.handleOuterEvent=function(t){var n=(0,ht.Bh)(t),r=d()(e.props,"".concat(n));n&&u()(r)&&r(/.*touch.*/i.test(n)?e.getMouseInfo(t.changedTouches[0]):e.getMouseInfo(t),t)},e.handleClick=function(t){var n=e.props.onClick,r=e.getMouseInfo(t);if(r){var o=Se(Se({},r),{},{isTooltipActive:!0});e.setState(o),e.triggerSyncEvent(o),u()(n)&&n(o,t)}},e.handleMouseDown=function(t){var n=e.props.onMouseDown;u()(n)&&n(e.getMouseInfo(t),t)},e.handleMouseUp=function(t){var n=e.props.onMouseUp;u()(n)&&n(e.getMouseInfo(t),t)},e.handleTouchMove=function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleMouseMove(t.changedTouches[0])},e.handleTouchStart=function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleMouseDown(t.changedTouches[0])},e.handleTouchEnd=function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleMouseUp(t.changedTouches[0])},e.verticalCoordinatesGenerator=function(t){var e=t.xAxis,n=t.width,r=t.height,o=t.offset;return(0,Nt.Rf)(Tt.getTicks(Se(Se(Se({},Tt.defaultProps),e),{},{ticks:(0,Nt.uY)(e,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)},e.horizontalCoordinatesGenerator=function(t){var e=t.yAxis,n=t.width,r=t.height,o=t.offset;return(0,Nt.Rf)(Tt.getTicks(Se(Se(Se({},Tt.defaultProps),e),{},{ticks:(0,Nt.uY)(e,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)},e.axesTicksGenerator=function(t){return(0,Nt.uY)(t,!0)},e.renderCursor=function(t){var n=e.state,o=n.isTooltipActive,i=n.activeCoordinate,a=n.activePayload,c=n.offset,u=n.activeTooltipIndex,s=e.getTooltipEventType();if(!t||!t.props.cursor||!o||!i||"ScatterChart"!==r&&"axis"!==s)return null;var l,f=e.props.layout,p=M.H;if("ScatterChart"===r)l=i,p=z;else if("BarChart"===r)l=e.getCursorRectangle(),p=pt;else if("radial"===f){var h=e.getCursorPoints(),d=h.cx,y=h.cy,v=h.radius;l={cx:d,cy:y,startAngle:h.startAngle,endAngle:h.endAngle,innerRadius:v,outerRadius:v},p=Q}else l={points:e.getCursorPoints()},p=M.H;var g=t.key||"_recharts-cursor",m=Se(Se(Se(Se({stroke:"#ccc",pointerEvents:"none"},c),l),(0,C.L6)(t.props.cursor)),{},{payload:a,payloadIndex:u,key:g,className:"recharts-tooltip-cursor"});return(0,_.isValidElement)(t.props.cursor)?(0,_.cloneElement)(t.props.cursor,m):(0,_.createElement)(p,m)},e.renderPolarAxis=function(t,n,r){var o=d()(t,"type.axisType"),i=d()(e.state,"".concat(o,"Map"))[t.props["".concat(o,"Id")]];return(0,_.cloneElement)(t,Se(Se({},i),{},{className:o,key:t.key||"".concat(n,"-").concat(r),ticks:(0,Nt.uY)(i,!0)}))},e.renderXAxis=function(t,n,r){var o=e.state.xAxisMap[t.props.xAxisId];return e.renderAxis(o,t,n,r)},e.renderYAxis=function(t,n,r){var o=e.state.yAxisMap[t.props.yAxisId];return e.renderAxis(o,t,n,r)},e.renderGrid=function(t){var n=e.state,r=n.xAxisMap,i=n.yAxisMap,c=n.offset,u=e.props,s=u.width,l=u.height,f=(0,T.Kt)(r),p=a()(i,(function(t){return o()(t.domain,Pe)}))||(0,T.Kt)(i),h=t.props||{};return(0,_.cloneElement)(t,{key:t.key||"grid",x:(0,T.hj)(h.x)?h.x:c.left,y:(0,T.hj)(h.y)?h.y:c.top,width:(0,T.hj)(h.width)?h.width:c.width,height:(0,T.hj)(h.height)?h.height:c.height,xAxis:f,yAxis:p,offset:c,chartWidth:s,chartHeight:l,verticalCoordinatesGenerator:h.verticalCoordinatesGenerator||e.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:h.horizontalCoordinatesGenerator||e.horizontalCoordinatesGenerator})},e.renderPolarGrid=function(t){var n=t.props,r=n.radialLines,o=n.polarAngles,i=n.polarRadius,a=e.state,c=a.radiusAxisMap,u=a.angleAxisMap,s=(0,T.Kt)(c),l=(0,T.Kt)(u),f=l.cx,p=l.cy,h=l.innerRadius,d=l.outerRadius;return(0,_.cloneElement)(t,{polarAngles:O()(o)?o:(0,Nt.uY)(l,!0).map((function(t){return t.coordinate})),polarRadius:O()(i)?i:(0,Nt.uY)(s,!0).map((function(t){return t.coordinate})),cx:f,cy:p,innerRadius:h,outerRadius:d,key:t.key||"polar-grid",radialLines:r})},e.renderLegend=function(){var t=e.state.formattedGraphicalItems,n=e.props,r=n.children,o=n.width,i=n.height,a=e.props.margin||{},c=o-(a.left||0)-(a.right||0),u=(0,Nt.zp)({children:r,formattedGraphicalItems:t,legendWidth:c,legendContent:v});if(!u)return null;var s=u.item,l=de(u,["item"]);return(0,_.cloneElement)(s,Se(Se({},l),{},{chartWidth:o,chartHeight:i,margin:a,ref:function(t){e.legendInstance=t},onBBoxUpdate:e.handleLegendBBoxUpdate}))},e.renderTooltip=function(){var t=e.props.children,n=(0,ht.sP)(t,A.u.displayName);if(!n)return null;var r=e.state,o=r.isTooltipActive,i=r.activeCoordinate,a=r.activePayload,c=r.activeLabel,u=r.offset;return(0,_.cloneElement)(n,{viewBox:Se(Se({},u),{},{x:u.left,y:u.top}),active:o,label:c,payload:o?a:[],coordinate:i})},e.renderBrush=function(t){var n=e.props,r=n.margin,o=n.data,i=e.state,a=i.offset,c=i.dataStartIndex,u=i.dataEndIndex,s=i.updateId;return(0,_.cloneElement)(t,{key:t.key||"_recharts-brush",onChange:(0,Nt.DO)(e.handleBrushChange,null,t.props.onChange),data:o,x:(0,T.hj)(t.props.x)?t.props.x:a.left,y:(0,T.hj)(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:(0,T.hj)(t.props.width)?t.props.width:a.width,startIndex:c,endIndex:u,updateId:"brush-".concat(s)})},e.renderReferenceElement=function(t,n,r){if(!t)return null;var o=be(e).clipPathId,i=e.state,a=i.xAxisMap,c=i.yAxisMap,u=i.offset,s=t.props,l=s.xAxisId,f=s.yAxisId;return(0,_.cloneElement)(t,{key:t.key||"".concat(n,"-").concat(r),xAxis:a[l],yAxis:c[f],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:o})},e.renderActivePoints=function(t){var e=t.item,n=t.activePoint,r=t.basePoint,o=t.childIndex,i=t.isRange,a=[],c=e.props.key,u=e.item.props,s=u.activeDot,l=Se(Se({index:o,dataKey:u.dataKey,cx:n.x,cy:n.y,r:4,fill:(0,Nt.fk)(e.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(c,"-activePoint-").concat(o)},(0,C.L6)(s)),(0,C.Ym)(s));return a.push(f.renderActiveDot(s,l)),r?a.push(f.renderActiveDot(s,Se(Se({},l),{},{cx:r.x,cy:r.y,key:"".concat(c,"-basePoint-").concat(o)}))):i&&a.push(null),a},e.renderGraphicChild=function(t,n,r){var o=e.filterFormatItem(t,n,r);if(!o)return null;var i=e.getTooltipEventType(),a=e.state,c=a.isTooltipActive,u=a.tooltipAxis,s=a.activeTooltipIndex,l=a.activeLabel,f=e.props.children,p=(0,ht.sP)(f,A.u.displayName),h=o.props,d=h.points,y=h.isRange,v=h.baseLine,g=o.item.props,b=g.activeDot,x=!g.hide&&c&&p&&b&&s>=0,w={};"axis"!==i&&p&&"click"===p.props.trigger?w={onClick:(0,Nt.DO)(e.handleItemMouseEnter,null,t.props.onCLick)}:"axis"!==i&&(w={onMouseLeave:(0,Nt.DO)(e.handleItemMouseLeave,null,t.props.onMouseLeave),onMouseEnter:(0,Nt.DO)(e.handleItemMouseEnter,null,t.props.onMouseEnter)});var O=(0,_.cloneElement)(t,Se(Se({},o.props),w));if(x){var E,S;if(u.dataKey&&!u.allowDuplicatedCategory){var j="function"===typeof u.dataKey?function(t){return"function"===typeof u.dataKey?u.dataKey(t.payload):null}:"payload.".concat(u.dataKey.toString());E=(0,T.Ap)(d,j,l),S=y&&v&&(0,T.Ap)(v,j,l)}else E=d[s],S=y&&v&&v[s];if(!m()(E))return[O].concat(we(e.renderActivePoints({item:o,activePoint:E,basePoint:S,childIndex:s,isRange:y})))}return y?[O,null,null]:[O,null]},e.renderCustomized=function(t,n,r){return(0,_.cloneElement)(t,Se(Se({key:"recharts-customized-".concat(r)},e.props),e.state))},e.uniqueChartId=m()(t.id)?(0,T.EL)("recharts"):t.id,e.clipPathId="".concat(e.uniqueChartId,"-clip"),t.throttleDelay&&(e.triggeredAfterMouseMove=l()(e.triggeredAfterMouseMove,t.throttleDelay)),e.state={},e}return e=f,(n=[{key:"componentDidMount",value:function(){m()(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(t){m()(t.syncId)&&!m()(this.props.syncId)&&this.addListener(),!m()(t.syncId)&&m()(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),m()(this.props.syncId)||this.removeListener(),this.cancelThrottledTriggerAfterMouseMove()}},{key:"cancelThrottledTriggerAfterMouseMove",value:function(){"function"===typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=(0,ht.sP)(this.props.children,A.u.displayName);if(t&&x()(t.props.shared)){var e=t.props.shared?"axis":"item";return h.indexOf(e)>=0?e:s}return s}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e=(0,yt.os)(this.container),n=(0,yt.IR)(t,e),r=this.inRange(n.chartX,n.chartY);if(!r)return null;var o=this.state,i=o.xAxisMap,a=o.yAxisMap;if("axis"!==this.getTooltipEventType()&&i&&a){var c=(0,T.Kt)(i).scale,u=(0,T.Kt)(a).scale,s=c&&c.invert?c.invert(n.chartX):null,l=u&&u.invert?u.invert(n.chartY):null;return Se(Se({},n),{},{xValue:s,yValue:l})}var f=Ie(this.state,this.props.data,this.props.layout,r);return f?Se(Se({},n),f):null}},{key:"getCursorRectangle",value:function(){var t=this.props.layout,e=this.state,n=e.activeCoordinate,r=e.offset,o=e.tooltipAxisBandSize,i=o/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?n.x-i:r.left+.5,y:"horizontal"===t?r.top+.5:n.y-i,width:"horizontal"===t?o:r.width-1,height:"horizontal"===t?r.height-1:o}}},{key:"getCursorPoints",value:function(){var t,e,n,r,o=this.props.layout,i=this.state,a=i.activeCoordinate,c=i.offset;if("horizontal"===o)n=t=a.x,e=c.top,r=c.top+c.height;else if("vertical"===o)r=e=a.y,t=c.left,n=c.left+c.width;else if(!m()(a.cx)||!m()(a.cy)){if("centric"!==o){var u=a.cx,s=a.cy,l=a.radius,f=a.startAngle,p=a.endAngle;return{points:[(0,q.op)(u,s,l,f),(0,q.op)(u,s,l,p)],cx:u,cy:s,radius:l,startAngle:f,endAngle:p}}var h=a.cx,d=a.cy,y=a.innerRadius,v=a.outerRadius,g=a.angle,b=(0,q.op)(h,d,y,g),x=(0,q.op)(h,d,v,g);t=b.x,e=b.y,n=x.x,r=x.y}return[{x:t,y:e},{x:n,y:r}]}},{key:"inRange",value:function(t,e){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return t>=r.left&&t<=r.left+r.width&&e>=r.top&&e<=r.top+r.height?{x:t,y:e}:null}var o=this.state,i=o.angleAxisMap,a=o.radiusAxisMap;if(i&&a){var c=(0,T.Kt)(i);return(0,q.z3)({x:t,y:e},c)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),n=(0,ht.sP)(t,A.u.displayName),r={};return n&&"axis"===e&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),Se(Se({},(0,C.Ym)(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){se.on(le,this.handleReceiveSyncEvent),se.setMaxListeners&&se._maxListeners&&se.setMaxListeners(se._maxListeners+1)}},{key:"removeListener",value:function(){se.removeListener(le,this.handleReceiveSyncEvent),se.setMaxListeners&&se._maxListeners&&se.setMaxListeners(se._maxListeners-1)}},{key:"triggerSyncEvent",value:function(t){var e=this.props.syncId;m()(e)||se.emit(le,e,this.uniqueChartId,t)}},{key:"applySyncEvent",value:function(t){var e=this.props,n=e.layout,r=e.syncMethod,o=this.state.updateId,i=t.dataStartIndex,a=t.dataEndIndex;if(m()(t.dataStartIndex)&&m()(t.dataEndIndex))if(m()(t.activeTooltipIndex))this.setState(t);else{var c=t.chartX,u=t.chartY,s=t.activeTooltipIndex,l=this.state,f=l.offset,p=l.tooltipTicks;if(!f)return;if("function"===typeof r)s=r(p,t);else if("value"===r){s=-1;for(var h=0;ht.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0?1:-1;"insideStart"===i?(r=b+S*c,o=w):"insideEnd"===i?(r=x-S*c,o=!w):"end"===i&&(r=x+S*c,o=w),o=E<=0?o:!o;var j=(0,y.op)(h,v,_,r),k=(0,y.op)(h,v,_,r+359*(o?1:-1)),A="M".concat(j.x,",").concat(j.y,"\n A").concat(_,",").concat(_,",0,1,").concat(o?0:1,",\n ").concat(k.x,",").concat(k.y),P=u()(t.id)?(0,d.EL)("recharts-radial-line-"):t.id;return s.createElement("text",O({},n,{dominantBaseline:"central",className:f()("recharts-radial-bar-label",l)}),s.createElement("defs",null,s.createElement("path",{id:P,d:A})),s.createElement("textPath",{xlinkHref:"#".concat(P)},e))};function E(t){var e,n=t.viewBox,r=t.position,i=t.value,c=t.children,l=t.content,h=t.className,g=void 0===h?"":h,m=t.textBreakAll;if(!n||u()(i)&&u()(c)&&!(0,s.isValidElement)(l)&&!a()(l))return null;if((0,s.isValidElement)(l))return(0,s.cloneElement)(l,t);if(a()(l)){if(e=(0,s.createElement)(l,t),(0,s.isValidElement)(e))return e}else e=function(t){var e=t.value,n=t.formatter,r=u()(t.children)?e:t.children;return a()(n)?n(r):r}(t);var b=function(t){return(0,d.hj)(t.cx)}(n),w=(0,v.L6)(t,!0);if(b&&("insideStart"===r||"insideEnd"===r||"end"===r))return _(t,e,w);var E=b?function(t){var e=t.viewBox,n=t.offset,r=t.position,o=e,i=o.cx,a=o.cy,c=o.innerRadius,u=o.outerRadius,s=(o.startAngle+o.endAngle)/2;if("outside"===r){var l=(0,y.op)(i,a,u+n,s),f=l.x;return{x:f,y:l.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=(c+u)/2,h=(0,y.op)(i,a,p,s);return{x:h.x,y:h.y,textAnchor:"middle",verticalAnchor:"middle"}}(t):function(t){var e=t.viewBox,n=t.parentViewBox,r=t.offset,i=t.position,a=e,c=a.x,u=a.y,s=a.width,l=a.height,f=l>=0?1:-1,p=f*r,h=f>0?"end":"start",y=f>0?"start":"end",v=s>=0?1:-1,g=v*r,m=v>0?"end":"start",b=v>0?"start":"end";if("top"===i)return x(x({},{x:c+s/2,y:u-f*r,textAnchor:"middle",verticalAnchor:h}),n?{height:Math.max(u-n.y,0),width:s}:{});if("bottom"===i)return x(x({},{x:c+s/2,y:u+l+p,textAnchor:"middle",verticalAnchor:y}),n?{height:Math.max(n.y+n.height-(u+l),0),width:s}:{});if("left"===i){var w={x:c-g,y:u+l/2,textAnchor:m,verticalAnchor:"middle"};return x(x({},w),n?{width:Math.max(w.x-n.x,0),height:l}:{})}if("right"===i){var O={x:c+s+g,y:u+l/2,textAnchor:b,verticalAnchor:"middle"};return x(x({},O),n?{width:Math.max(n.x+n.width-O.x,0),height:l}:{})}var _=n?{width:s,height:l}:{};return"insideLeft"===i?x({x:c+g,y:u+l/2,textAnchor:b,verticalAnchor:"middle"},_):"insideRight"===i?x({x:c+s-g,y:u+l/2,textAnchor:m,verticalAnchor:"middle"},_):"insideTop"===i?x({x:c+s/2,y:u+p,textAnchor:"middle",verticalAnchor:y},_):"insideBottom"===i?x({x:c+s/2,y:u+l-p,textAnchor:"middle",verticalAnchor:h},_):"insideTopLeft"===i?x({x:c+g,y:u+p,textAnchor:b,verticalAnchor:y},_):"insideTopRight"===i?x({x:c+s-g,y:u+p,textAnchor:m,verticalAnchor:y},_):"insideBottomLeft"===i?x({x:c+g,y:u+l-p,textAnchor:b,verticalAnchor:h},_):"insideBottomRight"===i?x({x:c+s-g,y:u+l-p,textAnchor:m,verticalAnchor:h},_):o()(i)&&((0,d.hj)(i.x)||(0,d.hU)(i.x))&&((0,d.hj)(i.y)||(0,d.hU)(i.y))?x({x:c+(0,d.h1)(i.x,s),y:u+(0,d.h1)(i.y,l),textAnchor:"end",verticalAnchor:"end"},_):x({x:c+s/2,y:u+l/2,textAnchor:"middle",verticalAnchor:"middle"},_)}(t);return s.createElement(p.x,O({className:f()("recharts-label",g)},w,E,{breakAll:m}),e)}E.displayName="Label",E.defaultProps={offset:5};var S=function(t){var e=t.cx,n=t.cy,r=t.angle,o=t.startAngle,i=t.endAngle,a=t.r,c=t.radius,u=t.innerRadius,s=t.outerRadius,l=t.x,f=t.y,p=t.top,h=t.left,y=t.width,v=t.height,g=t.clockWise,m=t.labelViewBox;if(m)return m;if((0,d.hj)(y)&&(0,d.hj)(v)){if((0,d.hj)(l)&&(0,d.hj)(f))return{x:l,y:f,width:y,height:v};if((0,d.hj)(p)&&(0,d.hj)(h))return{x:p,y:h,width:y,height:v}}return(0,d.hj)(l)&&(0,d.hj)(f)?{x:l,y:f,width:0,height:0}:(0,d.hj)(e)&&(0,d.hj)(n)?{cx:e,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:u||0,outerRadius:s||c||a||0,clockWise:g}:t.viewBox?t.viewBox:{}},j=function(t,e){return t?!0===t?s.createElement(E,{key:"label-implicit",viewBox:e}):(0,d.P2)(t)?s.createElement(E,{key:"label-implicit",viewBox:e,value:t}):(0,s.isValidElement)(t)?t.type===E?(0,s.cloneElement)(t,{key:"label-implicit",viewBox:e}):s.createElement(E,{key:"label-implicit",content:t,viewBox:e}):a()(t)?s.createElement(E,{key:"label-implicit",content:t,viewBox:e}):o()(t)?s.createElement(E,O({viewBox:e},t,{key:"label-implicit"})):null:null};E.parseViewBox=S,E.renderCallByParent=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&n&&!t.label)return null;var r=t.children,o=S(t),i=(0,h.NN)(r,E.displayName).map((function(t,n){return(0,s.cloneElement)(t,{viewBox:e||o,key:"label-".concat(n)})}));if(!n)return i;var a=j(t.label,e||o);return[a].concat(g(i))}},2763:function(t,e,n){"use strict";n.d(e,{e:function(){return k}});var r=n(13218),o=n.n(r),i=n(23560),a=n.n(i),c=n(14293),u=n.n(c),s=n(10928),l=n.n(s),f=n(1469),p=n.n(f),h=n(67294),d=n(25048),y=n(48710),v=n(52017),g=n(77718),m=n(79896);function b(t){return function(t){if(Array.isArray(t))return x(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return x(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x(t,e)}(t)||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 x(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var j={valueAccessor:function(t){return p()(t.value)?l()(t.value):t.value}};function k(t){var e=t.data,n=t.valueAccessor,r=t.dataKey,o=t.clockWise,i=t.id,a=t.textBreakAll,c=S(t,["data","valueAccessor","dataKey","clockWise","id","textBreakAll"]);return e&&e.length?h.createElement(y.m,{className:"recharts-label-list"},e.map((function(t,e){var s=u()(r)?n(t,e):(0,g.F$)(t&&t.payload,r),l=u()(i)?{}:{id:"".concat(i,"-").concat(e)};return h.createElement(d._,w({},(0,m.L6)(t,!0),c,l,{parentViewBox:t.parentViewBox,index:e,value:s,textBreakAll:a,viewBox:d._.parseViewBox(u()(o)?t:_(_({},t),{},{clockWise:o})),key:"label-".concat(e)}))}))):null}function A(t,e){return t?!0===t?h.createElement(k,{key:"labelList-implicit",data:e}):h.isValidElement(t)||a()(t)?h.createElement(k,{key:"labelList-implicit",data:e,content:t}):o()(t)?h.createElement(k,w({data:e},t,{key:"labelList-implicit"})):null:null}k.displayName="LabelList",k.renderCallByParent=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&n&&!t.label)return null;var r=t.children,o=(0,v.NN)(r,k.displayName).map((function(t,n){return(0,h.cloneElement)(t,{data:e,key:"labelList-".concat(n)})}));if(!n)return o;var i=A(t.label,e);return[i].concat(b(o))},k.defaultProps=j},44141:function(t,e,n){"use strict";n.d(e,{D:function(){return mt}});var r=n(23560),o=n.n(r),i=n(45578),a=n.n(i),c=n(67294),u=n(94184),s=n.n(u),l=n(20514),f=n(11700),p=n.n(f),h=(Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt,Math.PI),d=2*h;var y={draw:function(t,e){var n=Math.sqrt(e/h);t.moveTo(n,0),t.arc(0,0,n,0,d)}},v={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},g=Math.sqrt(1/3),m=2*g,b={draw:function(t,e){var n=Math.sqrt(e/m),r=n*g;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},x={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}},w=Math.sin(h/10)/Math.sin(7*h/10),O=Math.sin(d/10)*w,_=-Math.cos(d/10)*w,E={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=O*n,o=_*n;t.moveTo(0,-n),t.lineTo(r,o);for(var i=1;i<5;++i){var a=d*i/5,c=Math.cos(a),u=Math.sin(a);t.lineTo(u*n,-c*n),t.lineTo(c*r-u*o,u*r+c*o)}t.closePath()}},S=Math.sqrt(3),j={draw:function(t,e){var n=-Math.sqrt(e/(3*S));t.moveTo(0,2*n),t.lineTo(-S*n,-n),t.lineTo(S*n,-n),t.closePath()}},k=-.5,A=Math.sqrt(3)/2,P=1/Math.sqrt(12),M=3*(P/2+1),T={draw:function(t,e){var n=Math.sqrt(e/M),r=n/2,o=n*P,i=r,a=n*P+n,c=-i,u=a;t.moveTo(r,o),t.lineTo(i,a),t.lineTo(c,u),t.lineTo(k*r-A*o,A*r+k*o),t.lineTo(k*i-A*a,A*i+k*a),t.lineTo(k*c-A*u,A*c+k*u),t.lineTo(k*r+A*o,k*o-A*r),t.lineTo(k*i+A*a,k*a-A*i),t.lineTo(k*c+A*u,k*u-A*c),t.closePath()}},C=n(11108),N=n(93072);var I=n(79896);function D(t){return D="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},D(t)}function R(){return R=Object.assign||function(t){for(var e=1;e=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function vt(t){return t.value}function gt(t,e){return!0===t?a()(e,vt):o()(t)?a()(e,t):e}var mt=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ft(t,e)}(a,t);var e,n,r,i=pt(a);function a(){var t;st(this,a);for(var e=arguments.length,n=new Array(e),r=0;r=0&&n>=0?{width:e,height:n}:null}},{key:"getDefaultPosition",value:function(t){var e,n,r=this.props,o=r.layout,i=r.align,a=r.verticalAlign,c=r.margin,u=r.chartWidth,s=r.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===i&&"vertical"===o?{left:((u||0)-(this.getBBoxSnapshot()||{width:0}).width)/2}:"right"===i?{right:c&&c.right||0}:{left:c&&c.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(n="middle"===a?{top:((s||0)-(this.getBBoxSnapshot()||{height:0}).height)/2}:"bottom"===a?{bottom:c&&c.bottom||0}:{top:c&&c.top||0}),ct(ct({},e),n)}},{key:"updateBBox",value:function(){var t=this.state,e=t.boxWidth,n=t.boxHeight,r=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var o=this.wrapperNode.getBoundingClientRect();(Math.abs(o.width-e)>1||Math.abs(o.height-n)>1)&&this.setState({boxWidth:o.width,boxHeight:o.height},(function(){r&&r(o)}))}else-1===e&&-1===n||this.setState({boxWidth:-1,boxHeight:-1},(function(){r&&r(null)}))}},{key:"render",value:function(){var t=this,e=this.props,n=e.content,r=e.width,i=e.height,a=e.wrapperStyle,u=e.payloadUniqBy,s=e.payload,l=ct(ct({position:"absolute",width:r||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return c.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(e){t.wrapperNode=e}},function(t,e){if(c.isValidElement(t))return c.cloneElement(t,e);if(o()(t))return c.createElement(t,e);e.ref;var n=yt(e,["ref"]);return c.createElement(rt,n)}(n,ct(ct({},this.props),{},{payload:gt(u,s)})))}}])&<(e.prototype,n),r&<(e,r),a}(c.PureComponent);mt.displayName="Legend",mt.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"}},9253:function(t,e,n){"use strict";n.d(e,{h:function(){return st}});var r=n(23279),o=n.n(r),i=n(94184),a=n.n(i),c=n(67294),u=n(73935),s=function(t,e){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},s(t,e)};function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function f(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o=e||n<0||f&&t-s>=i}function v(){var t=W();if(y(t))return g(t);c=setTimeout(v,function(t){var n=e-(t-u);return f?$(n,i-(t-s)):n}(t))}function g(t){return c=void 0,p&&r?h(t):(r=o=void 0,a)}function m(){var t=W(),n=y(t);if(r=arguments,o=this,u=t,n){if(void 0===c)return d(u);if(f)return clearTimeout(c),c=setTimeout(v,e),h(u)}return void 0===c&&(c=setTimeout(v,e)),a}return e=H(e)||0,V(n)&&(l=!!n.leading,i=(f="maxWait"in n)?G(H(n.maxWait)||0,e):i,p="trailing"in n?!!n.trailing:p),m.cancel=function(){void 0!==c&&clearTimeout(c),s=0,r=u=o=c=void 0},m.flush=function(){return void 0===c?a:g(W())},m},X=Y,Z=h;var K=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return Z(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),X(t,e,{leading:r,maxWait:e,trailing:o})},J=function(t,e,n,r){switch(e){case"debounce":return Y(t,n,r);case"throttle":return K(t,n,r);default:return t}},Q=function(t){return"function"===typeof t},tt=function(){return"undefined"===typeof window},et=function(t){return t instanceof Element||t instanceof HTMLDocument},nt=function(t,e,n,r){return function(o){var i=o.width,a=o.height;e((function(e){return e.width===i&&e.height===a||e.width===i&&!r||e.height===a&&!n?e:(t&&Q(t)&&t(i,a),{width:i,height:a})}))}},rt=function(t){function e(e){var n=t.call(this,e)||this;n.cancelHandler=function(){n.resizeHandler&&n.resizeHandler.cancel&&(n.resizeHandler.cancel(),n.resizeHandler=null)},n.attachObserver=function(){var t=n.props,e=t.targetRef,r=t.observerOptions;if(!tt()){e&&e.current&&(n.targetRef.current=e.current);var o=n.getElement();o&&(n.observableElement&&n.observableElement===o||(n.observableElement=o,n.resizeObserver.observe(o,r)))}},n.getElement=function(){var t=n.props,e=t.querySelector,r=t.targetDomEl;if(tt())return null;if(e)return document.querySelector(e);if(r&&et(r))return r;if(n.targetRef&&et(n.targetRef.current))return n.targetRef.current;var o=(0,u.findDOMNode)(n);if(!o)return null;switch(n.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return o;default:return o.parentElement}},n.createResizeHandler=function(t){var e=n.props,r=e.handleWidth,o=void 0===r||r,i=e.handleHeight,a=void 0===i||i,c=e.onResize;if(o||a){var u=nt(c,n.setState.bind(n),o,a);t.forEach((function(t){var e=t&&t.contentRect||{},r=e.width,o=e.height;!n.skipOnMount&&!tt()&&u({width:r,height:o}),n.skipOnMount=!1}))}},n.getRenderType=function(){var t=n.props,e=t.render,r=t.children;return Q(e)?"renderProp":Q(r)?"childFunction":(0,c.isValidElement)(r)?"child":Array.isArray(r)?"childArray":"parent"};var r=e.skipOnMount,o=e.refreshMode,i=e.refreshRate,a=void 0===i?1e3:i,s=e.refreshOptions;return n.state={width:void 0,height:void 0},n.skipOnMount=r,n.targetRef=(0,c.createRef)(),n.observableElement=null,tt()||(n.resizeHandler=J(n.createResizeHandler,o,a,s),n.resizeObserver=new window.ResizeObserver(n.resizeHandler)),n}return l(e,t),e.prototype.componentDidMount=function(){this.attachObserver()},e.prototype.componentDidUpdate=function(){this.attachObserver()},e.prototype.componentWillUnmount=function(){tt()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},e.prototype.render=function(){var t,e=this.props,n=e.render,r=e.children,o=e.nodeType,i=void 0===o?"div":o,a=this.state,u={width:a.width,height:a.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return n&&n(u);case"childFunction":return(t=r)(u);case"child":if((t=r).type&&"string"===typeof t.type){var s=f(u,["targetRef"]);return(0,c.cloneElement)(t,s)}return(0,c.cloneElement)(t,u);case"childArray":return(t=r).map((function(t){return!!t&&(0,c.cloneElement)(t,u)}));default:return c.createElement(i,null)}},e}(c.PureComponent);tt()?c.useEffect:c.useLayoutEffect;var ot=n(69055),it=n(6213);function at(){return at=Object.assign||function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?o()(j,y):j;(0,c.useEffect)((function(){if(_){var t=S();t&&x(t)}}),[_]),(0,c.useEffect)((function(){E(!0)}),[]);var A={width:i,height:s,minWidth:l,minHeight:f,maxHeight:p};return c.createElement(rt,{handleWidth:!0,handleHeight:!0,onResize:k,targetRef:w},c.createElement("div",at({},null!=v?{id:"".concat(v)}:{},{className:a()("recharts-responsive-container",g),style:A,ref:w}),function(){var t=b.containerWidth,e=b.containerHeight;if(t<0||e<0)return null;(0,it.Z)((0,ot.hU)(i)||(0,ot.hU)(s),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",i,s),(0,it.Z)(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=(0,ot.hU)(i)?t:i,o=(0,ot.hU)(s)?e:s;return n&&n>0&&(r?o=r/n:o&&(r=o*n),p&&o>p&&(o=p)),(0,it.Z)(r>0||o>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",r,o,i,s,l,f,n),(0,c.cloneElement)(h,{width:r,height:o})}()))}))},88169:function(t,e,n){"use strict";n.d(e,{x:function(){return C}});var r=n(14293),o=n.n(r),i=n(67294),a=n(84275),c=n.n(a),u=n(94184),s=n.n(u),l=n(69055),f=n(47523),p=n(79896),h=n(41209);function d(t){return d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function y(){return y=Object.assign||function(t){for(var e=1;e=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(t,e){var i=e.word,a=e.width,c=t[t.length-1];if(c&&(null==r||o||c.width+a+nt.maxLines||function(t){return t.reduce((function(t,e){return t.width>e.width?t:e}))}(i).width>r;return[u,i]},p=0,h=a.length-1,d=0;p<=h&&d<=a.length-1;){var y=Math.floor((p+h)/2),v=_(f(y-1),2),g=v[0],m=v[1],b=_(f(y),1)[0];if(g||b||(p=y+1),g&&b&&(h=y-1),!g&&b){s=m;break}d++}return s||u}(t,n.wordsWithComputedWidth,n.spaceWidth,t.width,t.scaleToFit):M(t.children)}return M(t.children)},C=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}(a,t);var e,n,r,o=x(a);function a(){var t;g(this,a);for(var e=arguments.length,n=new Array(e),r=0;rt.length)&&(e=t.length);for(var n=0,r=new Array(e);nl[n]+o?Math.max(f,l[n]):Math.max(p,l[n])},t}return e=c,(n=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var t=this.state,e=t.boxWidth,n=t.boxHeight;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-e)>1||Math.abs(r.height-n)>1)&&this.setState({boxWidth:r.width,boxHeight:r.height})}else-1===e&&-1===n||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var t,e,n,r=this,i=this.props,c=i.payload,f=i.isAnimationActive,h=i.animationDuration,d=i.animationEasing,y=i.filterNull,v=function(t,e){return!0===t?u()(e,W):a()(t)?u()(e,t):e}(i.payloadUniqBy,y&&c&&c.length?c.filter((function(t){return!o()(t.value)})):c),m=v&&v.length,b=this.props,x=b.content,w=b.viewBox,O=b.coordinate,_=b.position,E=b.active,S=D({pointerEvents:"none",visibility:E&&m?"visible":"hidden",position:"absolute",top:0,left:0},b.wrapperStyle);if(_&&(0,g.hj)(_.x)&&(0,g.hj)(_.y))e=_.x,n=_.y;else{var j=this.state,k=j.boxWidth,A=j.boxHeight;k>0&&A>0&&O?(e=this.getTranslate({key:"x",tooltipDimension:k,viewBoxDimension:w.width}),n=this.getTranslate({key:"y",tooltipDimension:A,viewBoxDimension:w.height})):S.visibility="hidden"}S=D(D({},(0,l.bO)({transform:this.props.useTranslate3d?"translate3d(".concat(e,"px, ").concat(n,"px, 0)"):"translate(".concat(e,"px, ").concat(n,"px)")})),S),f&&E&&(S=D(D({},(0,l.bO)({transition:"transform ".concat(h,"ms ").concat(d)})),S));var P=p()(V,(R(t={},"".concat(V,"-right"),(0,g.hj)(e)&&O&&(0,g.hj)(O.x)&&e>=O.x),R(t,"".concat(V,"-left"),(0,g.hj)(e)&&O&&(0,g.hj)(O.x)&&e=O.y),R(t,"".concat(V,"-top"),(0,g.hj)(n)&&O&&(0,g.hj)(O.y)&&n=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function s(t){var e=t.children,n=t.className,o=u(t,["children","className"]),s=i()("recharts-layer",n);return r.createElement("g",c({className:s},(0,a.L6)(o,!0)),e)}},20514:function(t,e,n){"use strict";n.d(e,{T:function(){return s}});var r=n(67294),o=n(94184),i=n.n(o),a=n(79896);function c(){return c=Object.assign||function(t){for(var e=1;e=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function s(t){var e=t.children,n=t.width,o=t.height,s=t.viewBox,l=t.className,f=t.style,p=u(t,["children","width","height","viewBox","className","style"]),h=s||{width:n,height:o,x:0,y:0},d=i()("recharts-surface",l);return r.createElement("svg",c({},(0,a.L6)(p,!0,!0),{className:d,width:n,height:o,style:f,viewBox:"".concat(h.x," ").concat(h.y," ").concat(h.width," ").concat(h.height),version:"1.1"}),e)}},33508:function(t,e,n){"use strict";n.d(e,{H:function(){return tt}});var r=n(1469),o=n.n(r),i=n(11700),a=n.n(i),c=n(23560),u=n.n(c),s=n(67294);function l(){}function f(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function p(t){this._context=t}function h(t){this._context=t}function d(t){this._context=t}function y(t){this._context=t}function v(t){this._context=t}function g(t){return new v(t)}function m(t){return t<0?-1:1}function b(t,e,n){var r=t._x1-t._x0,o=e-t._x1,i=(t._y1-t._y0)/(r||o<0&&-0),a=(n-t._y1)/(o||r<0&&-0),c=(i*o+a*r)/(r+o);return(m(i)+m(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(c))||0}function x(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function w(t,e,n){var r=t._x0,o=t._y0,i=t._x1,a=t._y1,c=(i-r)/3;t._context.bezierCurveTo(r+c,o+c*e,i-c,a-c*n,i,a)}function O(t){this._context=t}function _(t){this._context=new E(t)}function E(t){this._context=t}function S(t){this._context=t}function j(t){var e,n,r=t.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=t[0]+2*t[1],e=1;e=0;--e)o[e]=(a[e]-o[e+1])/i[e];for(i[r-1]=(t[r]+o[r-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var A=n(11108),P=n(5742),M=n(93072);function T(t){return t[0]}function C(t){return t[1]}function N(t,e){var n=(0,M.Z)(!0),r=null,o=g,i=null;function a(a){var c,u,s,l=(a=(0,P.Z)(a)).length,f=!1;for(null==r&&(i=o(s=(0,A.Z)())),c=0;c<=l;++c)!(c=l;--f)c.point(v[f],g[f]);c.lineEnd(),c.areaEnd()}y&&(v[s]=+t(p,s,u),g[s]=+e(p,s,u),c.point(r?+r(p,s,u):v[s],n?+n(p,s,u):g[s]))}if(h)return c=null,h+""||null}function s(){return N().defined(o).curve(a).context(i)}return t="function"===typeof t?t:void 0===t?T:(0,M.Z)(+t),e="function"===typeof e?e:void 0===e?(0,M.Z)(0):(0,M.Z)(+e),n="function"===typeof n?n:void 0===n?C:(0,M.Z)(+n),u.x=function(e){return arguments.length?(t="function"===typeof e?e:(0,M.Z)(+e),r=null,u):t},u.x0=function(e){return arguments.length?(t="function"===typeof e?e:(0,M.Z)(+e),u):t},u.x1=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:(0,M.Z)(+t),u):r},u.y=function(t){return arguments.length?(e="function"===typeof t?t:(0,M.Z)(+t),n=null,u):e},u.y0=function(t){return arguments.length?(e="function"===typeof t?t:(0,M.Z)(+t),u):e},u.y1=function(t){return arguments.length?(n=null==t?null:"function"===typeof t?t:(0,M.Z)(+t),u):n},u.lineX0=u.lineY0=function(){return s().x(t).y(e)},u.lineY1=function(){return s().x(t).y(n)},u.lineX1=function(){return s().x(r).y(e)},u.defined=function(t){return arguments.length?(o="function"===typeof t?t:(0,M.Z)(!!t),u):o},u.curve=function(t){return arguments.length?(a=t,null!=i&&(c=a(i)),u):a},u.context=function(t){return arguments.length?(null==t?i=c=null:c=a(i=t),u):i},u}var D=n(94184),R=n.n(D),L=n(79896),B=n(69055);function F(t){return F="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},F(t)}function U(){return U=Object.assign||function(t){for(var e=1;e0&&(A=Math.min((t||0)-(P[e-1]||0),A))}));var M=A/k,T="vertical"===b.layout?n.height:n.width;if("gap"===b.padding&&(u=M*T/2),"no-gap"===b.padding){var C=(0,s.h1)(t.barCategoryGap,M*T),N=M*T/2;u=N-C-(N-C)/T*C}}f="xAxis"===r?[n.left+(_.left||0)+(u||0),n.left+n.width-(_.right||0)-(u||0)]:"yAxis"===r?"horizontal"===l?[n.top+n.height-(_.bottom||0),n.top+(_.top||0)]:[n.top+(_.top||0)+(u||0),n.top+n.height-(_.bottom||0)-(u||0)]:b.range,S&&(f=[f[1],f[0]]);var I=(0,c.Hq)(b,o,v),D=I.scale,R=I.realScaleType;D.domain(w).range(f),(0,c.zF)(D);var L=(0,c.g$)(D,p(p({},b),{},{realScaleType:R}));"xAxis"===r?(m="top"===x&&!E||"bottom"===x&&E,d=n.left,g=y[j]-m*b.height):"yAxis"===r&&(m="left"===x&&!E||"right"===x&&E,d=y[j]-m*b.width,g=n.top);var B=p(p(p({},b),L),{},{realScaleType:R,x:d,y:g,scale:D,width:"xAxis"===r?n.width:b.width,height:"yAxis"===r?n.height:b.height});return B.bandSize=(0,c.zT)(B,L),b.hide||"xAxis"!==r?b.hide||(y[j]+=(m?-1:1)*B.width):y[j]+=(m?-1:1)*B.height,p(p({},i),{},h({},a,B))}),{})},y=function(t,e){var n=t.x,r=t.y,o=e.x,i=e.y;return{x:Math.min(n,o),y:Math.min(r,i),width:Math.abs(o-n),height:Math.abs(i-r)}},v=function(t){var e=t.x1,n=t.y1,r=t.x2,o=t.y2;return y({x:e,y:n},{x:r,y:o})},g=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scale=void 0,this.scale=e}var e,n,r;return e=t,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}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.bandAware,r=e.position;if(void 0!==t){if(r)switch(r){case"start":default:return this.scale(t);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(t)+i}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),n=e[0],r=e[e.length-1];return n<=r?t>=n&&t<=r:t>=r&&t<=n}}],r=[{key:"create",value:function(e){return new t(e)}}],n&&l(e.prototype,n),r&&l(e,r),t}();g.EPS=1e-4;var m=function(t){var e=Object.keys(t).reduce((function(e,n){return p(p({},e),{},h({},n,g.create(t[n])))}),{});return p(p({},e),{},{apply:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return a()(t,(function(t,n){return e[n].apply(t,{bandAware:r,position:o})}))},isInRange:function(t){return o()(t,(function(t,n){return e[n].isInRange(t)}))}})}},77718:function(t,e,n){"use strict";n.d(e,{By:function(){return Ai},VO:function(){return _i},zF:function(){return Bi},DO:function(){return Di},zT:function(){return Xi},qz:function(){return ki},pt:function(){return ji},Hv:function(){return Vi},Rf:function(){return Ni},gF:function(){return Oi},s6:function(){return Ti},EB:function(){return Hi},zp:function(){return Si},fk:function(){return Ei},wh:function(){return zi},O3:function(){return Wi},uY:function(){return Ii},g$:function(){return qi},Qo:function(){return Ki},F$:function(){return wi},NA:function(){return Ci},ko:function(){return Zi},ZI:function(){return Mi},Hq:function(){return Ri},LG:function(){return Yi}});var r={};n.r(r),n.d(r,{scaleBand:function(){return tt.Z},scaleDiverging:function(){return ei},scaleDivergingLog:function(){return ni},scaleDivergingPow:function(){return oi},scaleDivergingSqrt:function(){return ii},scaleDivergingSymlog:function(){return ri},scaleIdentity:function(){return De},scaleImplicit:function(){return Xe.O},scaleLinear:function(){return Ie},scaleLog:function(){return We},scaleOrdinal:function(){return Xe.Z},scalePoint:function(){return tt.x},scalePow:function(){return tn},scaleQuantile:function(){return pn},scaleQuantize:function(){return hn},scaleRadial:function(){return on},scaleSequential:function(){return $o},scaleSequentialLog:function(){return Yo},scaleSequentialPow:function(){return Zo},scaleSequentialQuantile:function(){return Jo},scaleSequentialSqrt:function(){return Ko},scaleSequentialSymlog:function(){return Xo},scaleSqrt:function(){return en},scaleSymlog:function(){return Ye},scaleThreshold:function(){return dn},scaleTime:function(){return Vo},scaleUtc:function(){return Wo},tickFormat:function(){return Ce}});var o=n(18446),i=n.n(o),a=n(89734),c=n.n(a),u=n(7654),s=n.n(u),l=n(11700),f=n.n(l),p=n(47037),h=n.n(p),d=n(1469),y=n.n(d),v=n(6162),g=n.n(v),m=n(53632),b=n.n(m),x=n(94654),w=n.n(x),O=n(23560),_=n.n(O),E=n(27361),S=n.n(E),j=n(14293),k=n.n(j),A=n(29887),P=n.n(A);function M(t){return function(t){if(Array.isArray(t))return T(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return T(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T(t,e)}(t)||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 T(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=e?n.apply(void 0,o):t(e-a,D((function(){for(var t=arguments.length,e=new Array(t),r=0;rt.length)&&(e=t.length);for(var n=0,r=new Array(e);nr&&(o=r,i=n),[o,i]}function X(t,e,n){if(t.lte(0))return new(P())(0);var r=V.getDigitCount(t.toNumber()),o=new(P())(10).pow(r),i=t.div(o),a=1!==r?.05:.1,c=new(P())(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return e?c:new(P())(Math.ceil(c))}function Z(t,e,n){var r=1,o=new(P())(t);if(!o.isint()&&n){var i=Math.abs(t);i<1?(r=new(P())(10).pow(V.getDigitCount(t)-1),o=new(P())(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new(P())(Math.floor(t)))}else 0===t?o=new(P())(Math.floor((e-1)/2)):n||(o=new(P())(Math.floor(t)));var a=Math.floor((e-1)/2);return U(F((function(t){return o.add(new(P())(t-a).mul(r)).toNumber()})),B)(0,e)}function K(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((e-t)/(n-1)))return{step:new(P())(0),tickMin:new(P())(0),tickMax:new(P())(0)};var i,a=X(new(P())(e).sub(t).div(n-1),r,o);i=t<=0&&e>=0?new(P())(0):(i=new(P())(t).add(e).div(2)).sub(new(P())(i).mod(a));var c=Math.ceil(i.sub(t).div(a).toNumber()),u=Math.ceil(new(P())(e).sub(i).div(a).toNumber()),s=c+u+1;return s>n?K(t,e,n,r,o+1):(s0?u+(n-s):u,c=e>0?c:c+(n-s)),{step:a,tickMin:i.sub(new(P())(c).mul(a)),tickMax:i.add(new(P())(u).mul(a))})}var J=q((function(t){var e=H(t,2),n=e[0],r=e[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),c=Y([n,r]),u=H(c,2),s=u[0],l=u[1];if(s===-1/0||l===1/0){var f=l===1/0?[s].concat(W(B(0,o-1).map((function(){return 1/0})))):[].concat(W(B(0,o-1).map((function(){return-1/0}))),[l]);return n>r?z(f):f}if(s===l)return Z(s,o,i);var p=K(s,l,a,i),h=p.step,d=p.tickMin,y=p.tickMax,v=V.rangeStep(d,y.add(new(P())(.1).mul(h)),h);return n>r?z(v):v})),Q=(q((function(t){var e=H(t,2),n=e[0],r=e[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),c=Y([n,r]),u=H(c,2),s=u[0],l=u[1];if(s===-1/0||l===1/0)return[n,r];if(s===l)return Z(s,o,i);var f=X(new(P())(l).sub(s).div(a-1),i,0),p=U(F((function(t){return new(P())(s).add(new(P())(t).mul(f)).toNumber()})),B),h=p(0,a).filter((function(t){return t>=s&&t<=l}));return n>r?z(h):h})),q((function(t,e){var n=H(t,2),r=n[0],o=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Y([r,o]),c=H(a,2),u=c[0],s=c[1];if(u===-1/0||s===1/0)return[r,o];if(u===s)return[u];var l=Math.max(e,2),f=X(new(P())(s).sub(u).div(l-1),i,0),p=[].concat(W(V.rangeStep(new(P())(u),new(P())(s).sub(new(P())(.99).mul(f)),f)),[s]);return r>o?z(p):p}))),tt=n(98844),et=Math.sqrt(50),nt=Math.sqrt(10),rt=Math.sqrt(2);function ot(t,e,n){var r,o,i,a,c=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((r=e0){let n=Math.round(t/a),r=Math.round(e/a);for(n*ae&&--r,i=new Array(o=r-n+1);++ce&&--r,i=new Array(o=r-n+1);++c=0?(i>=et?10:i>=nt?5:i>=rt?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=et?10:i>=nt?5:i>=rt?2:1)}function at(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=et?o*=10:i>=nt?o*=5:i>=rt&&(o*=2),ee?1:t>=e?0:NaN}function ut(t){let e=t,n=t;function r(t,e,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;n(t[i],e)<0?r=i+1:o=i}return r}return 1===t.length&&(e=(e,n)=>t(e)-n,n=function(t){return(e,n)=>ct(t(e),n)}(t)),{left:r,center:function(t,n,o,i){null==o&&(o=0),null==i&&(i=t.length);const a=r(t,n,o,i-1);return a>o&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,e,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;n(t[i],e)>0?o=i:r=i+1}return r}}}function st(t){return null===t?NaN:+t}const lt=ut(ct),ft=lt.right;lt.left,ut(st).center;var pt=ft;function ht(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function dt(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function yt(){}var vt=.7,gt=1/vt,mt="\\s*([+-]?\\d+)\\s*",bt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",xt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",wt=/^#([0-9a-f]{3,8})$/,Ot=new RegExp("^rgb\\("+[mt,mt,mt]+"\\)$"),_t=new RegExp("^rgb\\("+[xt,xt,xt]+"\\)$"),Et=new RegExp("^rgba\\("+[mt,mt,mt,bt]+"\\)$"),St=new RegExp("^rgba\\("+[xt,xt,xt,bt]+"\\)$"),jt=new RegExp("^hsl\\("+[bt,xt,xt]+"\\)$"),kt=new RegExp("^hsla\\("+[bt,xt,xt,bt]+"\\)$"),At={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 Pt(){return this.rgb().formatHex()}function Mt(){return this.rgb().formatRgb()}function Tt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=wt.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Ct(e):3===n?new Rt(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Nt(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Nt(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Ot.exec(t))?new Rt(e[1],e[2],e[3],1):(e=_t.exec(t))?new Rt(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Et.exec(t))?Nt(e[1],e[2],e[3],e[4]):(e=St.exec(t))?Nt(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=jt.exec(t))?Ut(e[1],e[2]/100,e[3]/100,1):(e=kt.exec(t))?Ut(e[1],e[2]/100,e[3]/100,e[4]):At.hasOwnProperty(t)?Ct(At[t]):"transparent"===t?new Rt(NaN,NaN,NaN,0):null}function Ct(t){return new Rt(t>>16&255,t>>8&255,255&t,1)}function Nt(t,e,n,r){return r<=0&&(t=e=n=NaN),new Rt(t,e,n,r)}function It(t){return t instanceof yt||(t=Tt(t)),t?new Rt((t=t.rgb()).r,t.g,t.b,t.opacity):new Rt}function Dt(t,e,n,r){return 1===arguments.length?It(t):new Rt(t,e,n,null==r?1:r)}function Rt(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Lt(){return"#"+Ft(this.r)+Ft(this.g)+Ft(this.b)}function Bt(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function Ft(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Ut(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new qt(t,e,n,r)}function zt(t){if(t instanceof qt)return new qt(t.h,t.s,t.l,t.opacity);if(t instanceof yt||(t=Tt(t)),!t)return new qt;if(t instanceof qt)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),i=Math.max(e,n,r),a=NaN,c=i-o,u=(i+o)/2;return c?(a=e===i?(n-r)/c+6*(n0&&u<1?0:a,new qt(a,c,u,t.opacity)}function qt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Vt(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Wt(t,e,n,r,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*n+(1+3*t+3*i-3*a)*r+a*o)/6}ht(yt,Tt,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Pt,formatHex:Pt,formatHsl:function(){return zt(this).formatHsl()},formatRgb:Mt,toString:Mt}),ht(Rt,Dt,dt(yt,{brighter:function(t){return t=null==t?gt:Math.pow(gt,t),new Rt(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?vt:Math.pow(vt,t),new Rt(this.r*t,this.g*t,this.b*t,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:Lt,formatHex:Lt,formatRgb:Bt,toString:Bt})),ht(qt,(function(t,e,n,r){return 1===arguments.length?zt(t):new qt(t,e,n,null==r?1:r)}),dt(yt,{brighter:function(t){return t=null==t?gt:Math.pow(gt,t),new qt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?vt:Math.pow(vt,t),new qt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,o=2*n-r;return new Rt(Vt(t>=240?t-240:t+120,o,r),Vt(t,o,r),Vt(t<120?t+240:t-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 t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Ht=t=>()=>t;function Gt(t,e){return function(n){return t+n*e}}function $t(t){return 1===(t=+t)?Yt:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Ht(isNaN(e)?n:e)}}function Yt(t,e){var n=e-t;return n?Gt(t,n):Ht(isNaN(t)?e:t)}var Xt=function t(e){var n=$t(e);function r(t,e){var r=n((t=Dt(t)).r,(e=Dt(e)).r),o=n(t.g,e.g),i=n(t.b,e.b),a=Yt(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Zt(t){return function(e){var n,r,o=e.length,i=new Array(o),a=new Array(o),c=new Array(o);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),o=t[r],i=t[r+1],a=r>0?t[r-1]:2*o-i,c=ri&&(o=e.slice(i,o),c[a]?c[a]+=o:c[++a]=o),(n=n[0])===(r=r[0])?c[a]?c[a]+=r:c[++a]=r:(c[++a]=null,u.push({i:a,x:Qt(n,r)})),i=ne.lastIndex;return ie&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}(a[0],a[t-1])),r=t>2?pe:fe,o=i=null,f}function f(e){return null==e||isNaN(e=+e)?n:(o||(o=r(a.map(t),c,u)))(t(s(e)))}return f.invert=function(n){return s(e((i||(i=r(c,a.map(t),Qt)))(n)))},f.domain=function(t){return arguments.length?(a=Array.from(t,ce),l()):a.slice()},f.range=function(t){return arguments.length?(c=Array.from(t),l()):c.slice()},f.rangeRound=function(t){return c=Array.from(t),u=ae,l()},f.clamp=function(t){return arguments.length?(s=!!t||se,l()):s!==se},f.interpolate=function(t){return arguments.length?(u=t,l()):u},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,l()}}function ye(){return de()(se,se)}var ve,ge=n(48348),me=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function be(t){if(!(e=me.exec(t)))throw new Error("invalid format: "+t);var e;return new xe({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function xe(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function we(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Oe(t){return(t=we(Math.abs(t)))?t[1]:NaN}function _e(t,e){var n=we(t,e);if(!n)return t+"";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")}be.prototype=xe.prototype,xe.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};var Ee={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>_e(100*t,e),r:_e,s:function(t,e){var n=we(t,e);if(!n)return t+"";var r=n[0],o=n[1],i=o-(ve=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")+we(t,Math.max(0,e+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Se(t){return t}var je,ke,Ae,Pe=Array.prototype.map,Me=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Te(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?Se:(e=Pe.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var o=t.length,i=[],a=0,c=e[0],u=0;o>0&&c>0&&(u+c+1>r&&(c=Math.max(1,r-u)),i.push(t.substring(o-=c,o+c)),!((u+=c+1)>r));)c=e[a=(a+1)%e.length];return i.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",c=void 0===t.numerals?Se:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Pe.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",s=void 0===t.minus?"\u2212":t.minus+"",l=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=be(t)).fill,n=t.align,f=t.sign,p=t.symbol,h=t.zero,d=t.width,y=t.comma,v=t.precision,g=t.trim,m=t.type;"n"===m?(y=!0,m="g"):Ee[m]||(void 0===v&&(v=12),g=!0,m="g"),(h||"0"===e&&"="===n)&&(h=!0,e="0",n="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",x="$"===p?i:/[%p]/.test(m)?u:"",w=Ee[m],O=/[defgprs%]/.test(m);function _(t){var o,i,u,p=b,_=x;if("c"===m)_=w(t)+_,t="";else{var E=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:w(Math.abs(t),v),g&&(t=function(t){t:for(var e,n=t.length,r=1,o=-1;r0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),E&&0===+t&&"+"!==f&&(E=!1),p=(E?"("===f?f:s:"-"===f||"("===f?"":f)+p,_=("s"===m?Me[8+ve/3]:"")+_+(E&&"("===f?")":""),O)for(o=-1,i=t.length;++o(u=t.charCodeAt(o))||u>57){_=(46===u?a+t.slice(o+1):t.slice(o))+_,t=t.slice(0,o);break}}y&&!h&&(t=r(t,1/0));var S=p.length+t.length+_.length,j=S>1)+p+t+_+j.slice(S);break;default:t=j+p+t+_}return c(t)}return v=void 0===v?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),_.toString=function(){return t+""},_}return{format:f,formatPrefix:function(t,e){var n=f(((t=be(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Oe(e)/3))),o=Math.pow(10,-r),i=Me[8+r/3];return function(t){return n(o*t)+i}}}}function Ce(t,e,n,r){var o,i=at(t,e,n);switch((r=be(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Oe(e)/3)))-Oe(Math.abs(t)))}(i,a))||(r.precision=o),Ae(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Oe(e)-Oe(t))+1}(i,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(t){return Math.max(0,-Oe(Math.abs(t)))}(i))||(r.precision=o-2*("%"===r.type))}return ke(r)}function Ne(t){var e=t.domain;return t.ticks=function(t){var n=e();return ot(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return Ce(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,o,i=e(),a=0,c=i.length-1,u=i[a],s=i[c],l=10;for(s0;){if((o=it(u,s,n))===r)return i[a]=u,i[c]=s,e(i);if(o>0)u=Math.floor(u/o)*o,s=Math.ceil(s/o)*o;else{if(!(o<0))break;u=Math.ceil(u*o)/o,s=Math.floor(s*o)/o}r=o}return t},t}function Ie(){var t=ye();return t.copy=function(){return he(t,Ie())},ge.o.apply(t,arguments),Ne(t)}function De(t){var e;function n(t){return null==t||isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,ce),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return De(t).unknown(e)},t=arguments.length?Array.from(t,ce):[0,1],Ne(n)}function Re(t,e){var n,r=0,o=(t=t.slice()).length-1,i=t[r],a=t[o];return a0){for(;p<=h;++p)for(l=1,s=n(p);lu)break;y.push(f)}}else for(;p<=h;++p)for(l=i-1,s=n(p);l>=1;--l)if(!((f=s*l)u)break;y.push(f)}2*y.length=r)&&(n=r);else{let r=-1;for(let o of t)null!=(o=e(o,++r,t))&&(n=o)&&(n=o)}return n}function cn(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let o of t)null!=(o=e(o,++r,t))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function un(t,e,n=0,r=t.length-1,o=ct){for(;r>n;){if(r-n>600){const i=r-n+1,a=e-n+1,c=Math.log(i),u=.5*Math.exp(2*c/3),s=.5*Math.sqrt(c*u*(i-u)/i)*(a-i/2<0?-1:1);un(t,e,Math.max(n,Math.floor(e-a*u/i+s)),Math.min(r,Math.floor(e+(i-a)*u/i+s)),o)}const i=t[e];let a=n,c=r;for(sn(t,n,e),o(t[r],i)>0&&sn(t,n,r);a0;)--c}0===o(t[n],i)?sn(t,n,c):(++c,sn(t,c,r)),c<=e&&(n=c+1),e<=c&&(r=c-1)}return t}function sn(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function ln(t,e,n){if(t=Float64Array.from(function*(t,e){if(void 0===e)for(let n of t)null!=n&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}(t,n)),r=t.length){if((e=+e)<=0||r<2)return cn(t);if(e>=1)return an(t);var r,o=(r-1)*e,i=Math.floor(o),a=an(un(t,i).subarray(0,i+1));return a+(cn(t.subarray(i+1))-a)*(o-i)}}function fn(t,e,n=st){if(r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,o=(r-1)*e,i=Math.floor(o),a=+n(t[i],i,t);return a+(+n(t[i+1],i+1,t)-a)*(o-i)}}function pn(){var t,e=[],n=[],r=[];function o(){var t=0,o=Math.max(1,n.length);for(r=new Array(o-1);++t0?r[o-1]:e[0],o=r?[o[r-1],n]:[o[a-1],o[a]]},a.unknown=function(e){return arguments.length?(t=e,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return hn().domain([e,n]).range(i).unknown(t)},ge.o.apply(Ne(a),arguments)}function dn(){var t,e=[.5],n=[0,1],r=1;function o(o){return null!=o&&o<=o?n[pt(e,o,0,r)]:t}return o.domain=function(t){return arguments.length?(e=Array.from(t),r=Math.min(e.length,n.length-1),o):e.slice()},o.range=function(t){return arguments.length?(n=Array.from(t),r=Math.min(e.length,n.length-1),o):n.slice()},o.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return dn().domain(e).range(n).unknown(t)},ge.o.apply(o,arguments)}const yn=1e3,vn=6e4,gn=36e5,mn=864e5,bn=6048e5,xn=2592e6,wn=31536e6;var On=new Date,_n=new Date;function En(t,e,n,r){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=function(e){return t(e=new Date(+e)),e},o.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},o.round=function(t){var e=o(t),n=o.ceil(t);return t-e0))return c;do{c.push(a=new Date(+n)),e(n,i),t(n)}while(a=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(o.count=function(e,r){return On.setTime(+e),_n.setTime(+r),t(On),t(_n),Math.floor(n(On,_n))},o.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(r?function(e){return r(e)%t===0}:function(e){return o.count(0,e)%t===0}):o:null}),o}var Sn=En((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));Sn.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?En((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):Sn:null};var jn=Sn,kn=(Sn.range,En((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*yn)}),(function(t,e){return(e-t)/yn}),(function(t){return t.getUTCSeconds()}))),An=kn,Pn=(kn.range,En((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*yn)}),(function(t,e){t.setTime(+t+e*vn)}),(function(t,e){return(e-t)/vn}),(function(t){return t.getMinutes()}))),Mn=Pn,Tn=(Pn.range,En((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*yn-t.getMinutes()*vn)}),(function(t,e){t.setTime(+t+e*gn)}),(function(t,e){return(e-t)/gn}),(function(t){return t.getHours()}))),Cn=Tn,Nn=(Tn.range,En((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*vn)/mn),(t=>t.getDate()-1))),In=Nn;Nn.range;function Dn(t){return En((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*vn)/bn}))}var Rn=Dn(0),Ln=Dn(1),Bn=Dn(2),Fn=Dn(3),Un=Dn(4),zn=Dn(5),qn=Dn(6),Vn=(Rn.range,Ln.range,Bn.range,Fn.range,Un.range,zn.range,qn.range,En((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),Wn=Vn,Hn=(Vn.range,En((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()})));Hn.every=function(t){return isFinite(t=Math.floor(t))&&t>0?En((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var Gn=Hn,$n=(Hn.range,En((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*vn)}),(function(t,e){return(e-t)/vn}),(function(t){return t.getUTCMinutes()}))),Yn=$n,Xn=($n.range,En((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*gn)}),(function(t,e){return(e-t)/gn}),(function(t){return t.getUTCHours()}))),Zn=Xn,Kn=(Xn.range,En((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/mn}),(function(t){return t.getUTCDate()-1}))),Jn=Kn;Kn.range;function Qn(t){return En((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/bn}))}var tr=Qn(0),er=Qn(1),nr=Qn(2),rr=Qn(3),or=Qn(4),ir=Qn(5),ar=Qn(6),cr=(tr.range,er.range,nr.range,rr.range,or.range,ir.range,ar.range,En((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}))),ur=cr,sr=(cr.range,En((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));sr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?En((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var lr=sr;sr.range;function fr(t,e,n,r,o,i){const a=[[An,1,yn],[An,5,5e3],[An,15,15e3],[An,30,3e4],[i,1,vn],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,gn],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,mn],[r,2,1728e5],[n,1,bn],[e,1,xn],[e,3,7776e6],[t,1,wn]];function c(e,n,r){const o=Math.abs(n-e)/r,i=ut((([,,t])=>t)).right(a,o);if(i===a.length)return t.every(at(e/wn,n/wn,r));if(0===i)return jn.every(Math.max(at(e,n,r),1));const[c,u]=a[o/a[i-1][2][t.toLowerCase(),e])))}function Mr(t,e,n){var r=_r.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Tr(t,e,n){var r=_r.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Cr(t,e,n){var r=_r.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Nr(t,e,n){var r=_r.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Ir(t,e,n){var r=_r.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Dr(t,e,n){var r=_r.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Rr(t,e,n){var r=_r.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Lr(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Br(t,e,n){var r=_r.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Fr(t,e,n){var r=_r.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Ur(t,e,n){var r=_r.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function zr(t,e,n){var r=_r.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function qr(t,e,n){var r=_r.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Vr(t,e,n){var r=_r.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Wr(t,e,n){var r=_r.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Hr(t,e,n){var r=_r.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Gr(t,e,n){var r=_r.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function $r(t,e,n){var r=Er.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Yr(t,e,n){var r=_r.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Xr(t,e,n){var r=_r.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Zr(t,e){return jr(t.getDate(),e,2)}function Kr(t,e){return jr(t.getHours(),e,2)}function Jr(t,e){return jr(t.getHours()%12||12,e,2)}function Qr(t,e){return jr(1+In.count(Gn(t),t),e,3)}function to(t,e){return jr(t.getMilliseconds(),e,3)}function eo(t,e){return to(t,e)+"000"}function no(t,e){return jr(t.getMonth()+1,e,2)}function ro(t,e){return jr(t.getMinutes(),e,2)}function oo(t,e){return jr(t.getSeconds(),e,2)}function io(t){var e=t.getDay();return 0===e?7:e}function ao(t,e){return jr(Rn.count(Gn(t)-1,t),e,2)}function co(t){var e=t.getDay();return e>=4||0===e?Un(t):Un.ceil(t)}function uo(t,e){return t=co(t),jr(Un.count(Gn(t),t)+(4===Gn(t).getDay()),e,2)}function so(t){return t.getDay()}function lo(t,e){return jr(Ln.count(Gn(t)-1,t),e,2)}function fo(t,e){return jr(t.getFullYear()%100,e,2)}function po(t,e){return jr((t=co(t)).getFullYear()%100,e,2)}function ho(t,e){return jr(t.getFullYear()%1e4,e,4)}function yo(t,e){var n=t.getDay();return jr((t=n>=4||0===n?Un(t):Un.ceil(t)).getFullYear()%1e4,e,4)}function vo(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+jr(e/60|0,"0",2)+jr(e%60,"0",2)}function go(t,e){return jr(t.getUTCDate(),e,2)}function mo(t,e){return jr(t.getUTCHours(),e,2)}function bo(t,e){return jr(t.getUTCHours()%12||12,e,2)}function xo(t,e){return jr(1+Jn.count(lr(t),t),e,3)}function wo(t,e){return jr(t.getUTCMilliseconds(),e,3)}function Oo(t,e){return wo(t,e)+"000"}function _o(t,e){return jr(t.getUTCMonth()+1,e,2)}function Eo(t,e){return jr(t.getUTCMinutes(),e,2)}function So(t,e){return jr(t.getUTCSeconds(),e,2)}function jo(t){var e=t.getUTCDay();return 0===e?7:e}function ko(t,e){return jr(tr.count(lr(t)-1,t),e,2)}function Ao(t){var e=t.getUTCDay();return e>=4||0===e?or(t):or.ceil(t)}function Po(t,e){return t=Ao(t),jr(or.count(lr(t),t)+(4===lr(t).getUTCDay()),e,2)}function Mo(t){return t.getUTCDay()}function To(t,e){return jr(er.count(lr(t)-1,t),e,2)}function Co(t,e){return jr(t.getUTCFullYear()%100,e,2)}function No(t,e){return jr((t=Ao(t)).getUTCFullYear()%100,e,2)}function Io(t,e){return jr(t.getUTCFullYear()%1e4,e,4)}function Do(t,e){var n=t.getUTCDay();return jr((t=n>=4||0===n?or(t):or.ceil(t)).getUTCFullYear()%1e4,e,4)}function Ro(){return"+0000"}function Lo(){return"%"}function Bo(t){return+t}function Fo(t){return Math.floor(+t/1e3)}function Uo(t){return new Date(t)}function zo(t){return t instanceof Date?+t:+new Date(+t)}function qo(t,e,n,r,o,i,a,c,u,s){var l=ye(),f=l.invert,p=l.domain,h=s(".%L"),d=s(":%S"),y=s("%I:%M"),v=s("%I %p"),g=s("%a %d"),m=s("%b %d"),b=s("%B"),x=s("%Y");function w(t){return(u(t)e(r/(t.length-1))))},n.quantiles=function(e){return Array.from({length:e+1},((n,r)=>ln(t,r/e)))},n.copy=function(){return Jo(e).domain(t)},ge.O.apply(n,arguments)}function Qo(t,e){void 0===e&&(e=t,t=ie);for(var n=0,r=e.length-1,o=e[0],i=new Array(r<0?0:r);n1)for(var n,r,o,i=1,a=t[e[0]],c=a.length;i=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Bo,s:Fo,S:oo,u:io,U:ao,V:uo,w:so,W:lo,x:null,X:null,y:fo,Y:ho,Z:vo,"%":Lo},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return c[t.getUTCMonth()]},c:null,d:go,e:go,f:Oo,g:No,G:Do,H:mo,I:bo,j:xo,L:wo,m:_o,M:Eo,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Bo,s:Fo,S:So,u:jo,U:ko,V:Po,w:Mo,W:To,x:null,X:null,y:Co,Y:Io,Z:Ro,"%":Lo},w={a:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return E(t,e,n,r)},d:Ur,e:Ur,f:Gr,g:Rr,G:Dr,H:qr,I:qr,j:zr,L:Hr,m:Fr,M:Vr,p:function(t,e,n){var r=s.exec(e.slice(n));return r?(t.p=l.get(r[0].toLowerCase()),n+r[0].length):-1},q:Br,Q:Yr,s:Xr,S:Wr,u:Tr,U:Cr,V:Nr,w:Mr,W:Ir,x:function(t,e,r){return E(t,n,e,r)},X:function(t,e,n){return E(t,r,e,n)},y:Rr,Y:Dr,Z:Lr,"%":$r};function O(t,e){return function(n){var r,o,i,a=[],c=-1,u=0,s=t.length;for(n instanceof Date||(n=new Date(+n));++c53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=gr(mr(i.y,0,1))).getUTCDay(),r=o>4||0===o?er.ceil(r):er(r),r=Jn.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=vr(mr(i.y,0,1))).getDay(),r=o>4||0===o?Ln.ceil(r):Ln(r),r=In.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?gr(mr(i.y,0,1)).getUTCDay():vr(mr(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,gr(i)):vr(i)}}function E(t,e,n,r){for(var o,i,a=0,c=e.length,u=n.length;a=u)return-1;if(37===(o=e.charCodeAt(a++))){if(o=e.charAt(a++),!(i=w[o in Or?e.charAt(a++):o])||(r=i(t,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=O(n,b),b.X=O(r,b),b.c=O(e,b),x.x=O(n,x),x.X=O(r,x),x.c=O(e,x),{format:function(t){var e=O(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=_(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=O(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=_(t+="",!0);return e.toString=function(){return t},e}}}(t),xr=br.format,br.parse,wr=br.utcFormat,br.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 ci=n(5742),ui=n(93072);function si(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function li(t,e){return t[e]}function fi(t){const e=[];return e.key=t,e}var pi=n(69055),hi=n(44141),di=n(52017),yi=n(79896);function vi(t){return function(t){if(Array.isArray(t))return gi(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return gi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gi(t,e)}(t)||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 gi(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(e=null===n||void 0===n?void 0:n.length)&&void 0!==e?e:0;if(a>1){if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var c=o.range,u=0;u0?r[u-1].coordinate:r[a-1].coordinate,l=r[u].coordinate,f=u>=a-1?r[0].coordinate:r[u+1].coordinate,p=void 0;if((0,pi.uY)(l-s)!==(0,pi.uY)(f-l)){var h=[];if((0,pi.uY)(f-l)===(0,pi.uY)(c[1]-c[0])){p=f;var d=l+c[1]-c[0];h[0]=Math.min(d,(d+s)/2),h[1]=Math.max(d,(d+s)/2)}else{p=s;var y=f+c[1]-c[0];h[0]=Math.min(l,(y+l)/2),h[1]=Math.max(l,(y+l)/2)}var v=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(t>v[0]&&t<=v[1]||t>=h[0]&&t<=h[1]){i=r[u].index;break}}else{var g=Math.min(s,f),m=Math.max(s,f);if(t>(g+l)/2&&t<=(m+l)/2){i=r[u].index;break}}}else for(var b=0;b0&&b(n[b].coordinate+n[b-1].coordinate)/2&&t<=(n[b].coordinate+n[b+1].coordinate)/2||b===a-1&&t>(n[b].coordinate+n[b-1].coordinate)/2){i=n[b].index;break}}else i=0;return i},Ei=function(t){var e,n=t.type.displayName,r=t.props,o=r.stroke,i=r.fill;switch(n){case"Line":e=o;break;case"Area":case"Radar":e=o&&"none"!==o?o:i;break;default:e=i}return e},Si=function(t){var e,n=t.children,r=t.formattedGraphicalItems,o=t.legendWidth,i=t.legendContent,a=(0,di.sP)(n,hi.D.displayName);return a?(e=a.props&&a.props.payload?a.props&&a.props.payload:"children"===i?(r||[]).reduce((function(t,e){var n=e.item,r=e.props,o=r.sectors||r.data||[];return t.concat(o.map((function(t){return{type:a.props.iconType||n.props.legendType,value:t.name,color:t.fill,payload:t}})))}),[]):(r||[]).map((function(t){var e=t.item,n=e.props,r=n.dataKey,o=n.name,i=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||i||"square",color:Ei(e),value:o||r,payload:e.props}})),bi(bi(bi({},a.props),hi.D.getWithHeight(a,o)),{},{payload:e,item:a})):null},ji=function(t){var e=t.barSize,n=t.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},i=Object.keys(r),a=0,c=i.length;a=0}));if(y&&y.length){var v=y[0].props.barSize,g=y[0].props[d];o[g]||(o[g]=[]),o[g].push({item:y[0],stackList:y.slice(1),barSize:k()(v)?e:v})}}return o},ki=function(t){var e=t.barGap,n=t.barCategoryGap,r=t.bandSize,o=t.sizeList,i=void 0===o?[]:o,a=t.maxBarSize,c=i.length;if(c<1)return null;var u,s=(0,pi.h1)(e,r,0,!0);if(i[0].barSize===+i[0].barSize){var l=!1,f=r/c,p=i.reduce((function(t,e){return t+e.barSize||0}),0);(p+=(c-1)*s)>=r&&(p-=(c-1)*s,s=0),p>=r&&f>0&&(l=!0,p=c*(f*=.9));var h={offset:((r-p)/2>>0)-s,size:0};u=i.reduce((function(t,e){var n=[].concat(vi(t),[{item:e.item,position:{offset:h.offset+h.size+s,size:l?f:e.barSize}}]);return h=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:h})})),n}),[])}else{var d=(0,pi.h1)(n,r,0,!0);r-2*d-(c-1)*s<=0&&(s=0);var y=(r-2*d-(c-1)*s)/c;y>1&&(y>>=0);var v=a===+a?Math.min(y,a):y;u=i.reduce((function(t,e,n){var r=[].concat(vi(t),[{item:e.item,position:{offset:d+(y+s)*n+(y-v)/2,size:v}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){r.push({item:t,position:r[r.length-1].position})})),r}),[])}return u},Ai=function(t,e,n,r){var o=n.children,i=n.width,a=n.margin,c=i-(a.left||0)-(a.right||0),u=Si({children:o,legendWidth:c}),s=t;if(u){var l=r||{},f=u.align,p=u.verticalAlign,h=u.layout;("vertical"===h||"horizontal"===h&&"center"===p)&&(0,pi.hj)(t[f])&&(s=bi(bi({},t),{},xi({},f,s[f]+(l.width||0)))),("horizontal"===h||"vertical"===h&&"center"===f)&&(0,pi.hj)(t[p])&&(s=bi(bi({},t),{},xi({},p,s[p]+(l.height||0))))}return s},Pi=function(t,e,n,r){var o=e.props.children,i=(0,di.NN)(o,"ErrorBar").filter((function(t){var e=t.props.direction;return!(!k()(e)&&!k()(r))||r.indexOf(e)>=0}));if(i&&i.length){var a=i.map((function(t){return t.props.dataKey}));return t.reduce((function(t,e){var r=wi(e,n,0),o=y()(r)?[b()(r),g()(r)]:[r,r],i=a.reduce((function(t,n){var r=wi(e,n,0),i=o[0]-Math.abs(y()(r)?r[0]:r),a=o[1]+Math.abs(y()(r)?r[1]:r);return[Math.min(i,t[0]),Math.max(a,t[1])]}),[1/0,-1/0]);return[Math.min(i[0],t[0]),Math.max(i[1],t[1])]}),[1/0,-1/0])}return null},Mi=function(t,e,n,r){var o=e.map((function(e){return Pi(t,e,n,r)})).filter((function(t){return!k()(t)}));return o&&o.length?o.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]):null},Ti=function(t,e,n,r){var o=e.map((function(e){var o=e.props.dataKey;return"number"===n&&o&&Pi(t,e,o)||Oi(t,o,n,r)}));if("number"===n)return o.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]);var i={};return o.reduce((function(t,e){for(var n=0,r=e.length;n=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!n)?{scale:tt.x(),realScaleType:"point"}:"category"===i?{scale:tt.Z(),realScaleType:"band"}:{scale:Ie(),realScaleType:"linear"};if(h()(o)){var u="scale".concat(f()(o));return{scale:(r[u]||tt.x)(),realScaleType:r[u]?u:"point"}}return _()(o)?{scale:o}:{scale:tt.x(),realScaleType:"point"}},Li=1e-4,Bi=function(t){var e=t.domain();if(e&&!(e.length<=2)){var n=e.length,r=t.range(),o=Math.min(r[0],r[1])-Li,i=Math.max(r[0],r[1])+Li,a=t(e[0]),c=t(e[n-1]);(ai||ci)&&t.domain([e[0],e[n-1]])}},Fi={sign:function(t){var e=t.length;if(!(e<=0))for(var n=0,r=t[0].length;n=0?(t[a][n][0]=o,t[a][n][1]=o+c,o=t[a][n][1]):(t[a][n][0]=i,t[a][n][1]=i+c,i=t[a][n][1])}},expand:function(t,e){if((r=t.length)>0){for(var n,r,o,i=0,a=t[0].length;i0){for(var n,r=0,o=t[e[0]],i=o.length;r0&&(r=(n=t[e[0]]).length)>0){for(var n,r,o,i=0,a=1;a=0?(t[i][n][0]=o,t[i][n][1]=o+a,o=t[i][n][1]):(t[i][n][0]=0,t[i][n][1]=0)}}},Ui=function(t,e,n){var r=e.map((function(t){return t.props.dataKey})),o=function(){var t=(0,ui.Z)([]),e=si,n=ai,r=li;function o(o){var i,a,c=Array.from(t.apply(this,arguments),fi),u=c.length,s=-1;for(const t of o)for(i=0,++s;i=0?r.stackedData[o]:null}}return null},Hi=function(t,e,n){return Object.keys(t).reduce((function(r,o){var i=t[o].stackedData.reduce((function(t,r){var o=r.slice(e,n+1).reduce((function(t,e){return[b()(e.concat([t[0]]).filter(pi.hj)),g()(e.concat([t[1]]).filter(pi.hj))]}),[1/0,-1/0]);return[Math.min(t[0],o[0]),Math.max(t[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(t){return t===1/0||t===-1/0?0:t}))},Gi=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,$i=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Yi=function(t,e,n){if(_()(t))return t(e,n);if(!y()(t))return e;var r=[];if((0,pi.hj)(t[0]))r[0]=n?t[0]:Math.min(t[0],e[0]);else if(Gi.test(t[0])){var o=+Gi.exec(t[0])[1];r[0]=e[0]-o}else _()(t[0])?r[0]=t[0](e[0]):r[0]=e[0];if((0,pi.hj)(t[1]))r[1]=n?t[1]:Math.max(t[1],e[1]);else if($i.test(t[1])){var i=+$i.exec(t[1])[1];r[1]=e[1]+i}else _()(t[1])?r[1]=t[1](e[1]):r[1]=e[1];return r},Xi=function(t,e,n){if(t&&t.scale&&t.scale.bandwidth){var r=t.scale.bandwidth();if(!n||r>0)return r}if(t&&e&&e.length>=2){for(var o=c()(e,(function(t){return t.coordinate})),i=1/0,a=1,u=o.length;at.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0&&o===+o?"".concat(o,"px"):o),";");var r,o,i}),"")},d=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===t||null===t||r.x.isSsr)return{width:0,height:0};var n="".concat(t),o=h(e),a="".concat(n,"-").concat(o);if(s.widthCache[a])return s.widthCache[a];try{var c=document.getElementById(p);c||((c=document.createElement("span")).setAttribute("id",p),c.setAttribute("aria-hidden","true"),document.body.appendChild(c));var u=i(i({},l),e);Object.keys(u).map((function(t){return c.style[t]=u[t],t})),c.textContent=n;var f=c.getBoundingClientRect(),d={width:f.width,height:f.height};return s.widthCache[a]=d,++s.cacheCount>2e3&&(s.cacheCount=0,s.widthCache={}),d}catch(y){return{width:0,height:0}}},y=function(t){var e=t.ownerDocument.documentElement,n={top:0,left:0};return"undefined"!==typeof t.getBoundingClientRect&&(n=t.getBoundingClientRect()),{top:n.top+window.pageYOffset-e.clientTop,left:n.left+window.pageXOffset-e.clientLeft}},v=function(t,e){return{chartX:Math.round(t.pageX-e.left),chartY:Math.round(t.pageY-e.top)}}},69055:function(t,e,n){"use strict";n.d(e,{Ap:function(){return _},EL:function(){return m},Kt:function(){return x},P2:function(){return v},bv:function(){return w},h1:function(){return b},hU:function(){return d},hj:function(){return y},k4:function(){return O},uY:function(){return h}});var r=n(27361),o=n.n(r),i=n(1469),a=n.n(i),c=n(7654),u=n.n(c),s=n(81763),l=n.n(s),f=n(47037),p=n.n(f),h=function(t){return 0===t?0:t>0?1:-1},d=function(t){return p()(t)&&t.indexOf("%")===t.length-1},y=function(t){return l()(t)&&!u()(t)},v=function(t){return y(t)||p()(t)},g=0,m=function(t){var e=++g;return"".concat(t||"").concat(e)},b=function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!y(t)&&!p()(t))return r;if(d(t)){var i=t.indexOf("%");n=e*parseFloat(t.slice(0,i))/100}else n=+t;return u()(n)&&(n=r),o&&n>e&&(n=e),n},x=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},w=function(t){if(!a()(t))return!1;for(var e=t.length,n={},r=0;r2?n-2:0),o=2;oi&&(s=2*Math.PI-s),{radius:a,angle:c(s),angleInRadian:s}},l=function(t,e){var n=e.startAngle,r=e.endAngle,o=Math.floor(n/360),i=Math.floor(r/360);return t+360*Math.min(o,i)},f=function(t,e){var n=t.x,r=t.y,i=s({x:n,y:r},e),a=i.radius,c=i.angle,u=e.innerRadius,f=e.outerRadius;if(af)return!1;if(0===a)return!0;var p,h=function(t){var e=t.startAngle,n=t.endAngle,r=Math.floor(e/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:e-360*i,endAngle:n-360*i}}(e),d=h.startAngle,y=h.endAngle,v=c;if(d<=y){for(;v>y;)v-=360;for(;v=d&&v<=y}else{for(;v>d;)v-=360;for(;v=y&&v<=d}return p?o(o({},e),{},{radius:a,angle:l(v,e)}):null}},52017:function(t,e,n){"use strict";n.d(e,{$R:function(){return M},Bh:function(){return P},Gf:function(){return g},NN:function(){return w},TT:function(){return _},eu:function(){return A},rL:function(){return j},sP:function(){return O}});var r=n(47037),o=n.n(r),i=n(27361),a=n.n(i),c=n(14293),u=n.n(c),s=n(1469),l=n.n(s),f=n(67294),p=n(98508),h=n(69055),d=n(30791);function y(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var v={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=function(t){return"string"===typeof t?t:t?t.displayName||t.name||"Component":""},m=null,b=null,x=function t(e){if(e===m&&l()(b))return b;var n=[];return f.Children.forEach(e,(function(e){u()(e)||((0,p.isFragment)(e)?n=n.concat(t(e.props.children)):n.push(e))})),b=n,m=e,n},w=function(t,e){var n=[],r=[];return r=l()(e)?e.map((function(t){return g(t)})):[g(e)],x(t).forEach((function(t){var e=a()(t,"type.displayName")||a()(t,"type.name");-1!==r.indexOf(e)&&n.push(t)})),n},O=function(t,e){var n=w(t,e);return n&&n[0]},_=function(t){if(!t||!t.props)return!1;var e=t.props,n=e.width,r=e.height;return!(!(0,h.hj)(n)||n<=0||!(0,h.hj)(r)||r<=0)},E=["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"],S=function(t){return t&&t.type&&o()(t.type)&&E.indexOf(t.type)>=0},j=function t(e,n){if(e===n)return!0;var r=f.Children.count(e);if(r!==f.Children.count(n))return!1;if(0===r)return!0;if(1===r)return k(l()(e)?e[0]:e,l()(n)?n[0]:n);for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:5;return(0,r.default)(t).walk((function(t){if("function"===t.type&&u.test(t.value)){var n=r.default.stringify(t.nodes);if(!(n.indexOf("constant")>=0||n.indexOf("env")>=0)){var c=o.parser.parse(n),s=(0,i.default)(c,e);t.type="word",t.value=(0,a.default)(t.value,s,e)}}}),!0).toString()},t.exports=e.default},70460:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(33258),i=(r=o)&&r.__esModule?r:{default:r};e.default=function(t,e,n){switch(t.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":return function(t,e,n){e.type===t.type&&(e={type:t.type,value:(0,i.default)(e.value,e.unit,t.unit,n),unit:t.unit});return{left:t,right:e}}(t,e,n);default:return{left:t,right:e}}},t.exports=e.default},40174:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.flip=s;var r,o=n(70460),i=(r=o)&&r.__esModule?r:{default:r};function a(t,e){return"MathExpression"===t.type?function(t,e){switch(t=function(t,e){var n=(0,i.default)(t.left,t.right,e),r=a(n.left,e),o=a(n.right,e);"MathExpression"===r.type&&"MathExpression"===o.type&&("/"===r.operator&&"*"===o.operator||"-"===r.operator&&"+"===o.operator||"*"===r.operator&&"/"===o.operator||"+"===r.operator&&"-"===o.operator)&&(c(r.right,o.right)?n=(0,i.default)(r.left,o.left,e):c(r.right,o.left)&&(n=(0,i.default)(r.left,o.right,e)),r=a(n.left,e),o=a(n.right,e));return t.left=r,t.right=o,t}(t,e),t.operator){case"+":case"-":return function(t,e){var n=t,r=n.left,o=n.right,i=n.operator;if("CssVariable"===r.type||"CssVariable"===o.type)return t;if(0===o.value)return r;if(0===r.value&&"+"===i)return o;if(0===r.value&&"-"===i)return l(o);r.type===o.type&&u(r.type)&&((t=Object.assign({},r)).value="+"===i?r.value+o.value:r.value-o.value);if(u(r.type)&&("+"===o.operator||"-"===o.operator)&&"MathExpression"===o.type){if(r.type===o.left.type)return(t=Object.assign({},t)).left=a({type:"MathExpression",operator:i,left:r,right:o.left},e),t.right=o.right,t.operator="-"===i?s(o.operator):o.operator,a(t,e);if(r.type===o.right.type)return(t=Object.assign({},t)).left=a({type:"MathExpression",operator:"-"===i?s(o.operator):o.operator,left:r,right:o.right},e),t.right=o.left,a(t,e)}if("MathExpression"===r.type&&("+"===r.operator||"-"===r.operator)&&u(o.type)){if(o.type===r.left.type)return(t=Object.assign({},r)).left=a({type:"MathExpression",operator:i,left:r.left,right:o},e),a(t,e);if(o.type===r.right.type)return t=Object.assign({},r),"-"===r.operator?(t.right=a({type:"MathExpression",operator:"-"===i?"+":"-",left:o,right:r.right},e),t.operator="-"===i?"-":"+"):t.right=a({type:"MathExpression",operator:i,left:r.right,right:o},e),t.right.value<0&&(t.right.value*=-1,t.operator="-"===t.operator?"+":"-"),a(t,e)}return t}(t,e);case"/":return function(t,e){if(!u(t.right.type))return t;if("Value"!==t.right.type)throw new Error('Cannot divide by "'+t.right.unit+'", number expected');if(0===t.right.value)throw new Error("Cannot divide by zero");if("MathExpression"===t.left.type)return u(t.left.left.type)&&u(t.left.right.type)?(t.left.left.value/=t.right.value,t.left.right.value/=t.right.value,a(t.left,e)):t;if(u(t.left.type))return t.left.value/=t.right.value,t.left;return t}(t,e);case"*":return function(t){if("MathExpression"===t.left.type&&"Value"===t.right.type){if(u(t.left.left.type)&&u(t.left.right.type))return t.left.left.value*=t.right.value,t.left.right.value*=t.right.value,t.left}else{if(u(t.left.type)&&"Value"===t.right.type)return t.left.value*=t.right.value,t.left;if("Value"===t.left.type&&"MathExpression"===t.right.type){if(u(t.right.left.type)&&u(t.right.right.type))return t.right.left.value*=t.left.value,t.right.right.value*=t.left.value,t.right}else if("Value"===t.left.type&&u(t.right.type))return t.right.value*=t.left.value,t.right}return t}(t)}return t}(t,e):"Calc"===t.type?a(t.value,e):t}function c(t,e){return t.type===e.type&&t.value===e.value}function u(t){switch(t){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":case"EmValue":case"ExValue":case"ChValue":case"RemValue":case"VhValue":case"VwValue":case"VminValue":case"VmaxValue":case"PercentageValue":case"Value":return!0}return!1}function s(t){return"+"===t?"-":"+"}function l(t){return u(t.type)?t.value=-t.value:"MathExpression"==t.type&&(t.left=l(t.left),t.right=l(t.right)),t}e.default=a},53697:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r=a(e,n);return"MathExpression"===e.type&&(r=t+"("+r+")"),r};var r=n(40174),o={"*":0,"/":0,"+":1,"-":1};function i(t,e){if(!1!==e){var n=Math.pow(10,e);return Math.round(t*n)/n}return t}function a(t,e){switch(t.type){case"MathExpression":var n=t.left,c=t.right,u=t.operator,s="";return"MathExpression"===n.type&&o[u]1)return t;if(e.cleanupAfterLex&&e.cleanupAfterLex(a),f&&(f.lexer=void 0,f.parser=void 0,e.yy===f&&(e.yy=void 0)),f=void 0,this.parseError=this.originalParseError,this.quoteName=this.originalQuoteName,r.length=0,o.length=0,i.length=0,c=0,!a){for(var l=this.__error_infos.length-1;l>=0;l--){var p=this.__error_infos[l];p&&"function"===typeof p.destroy&&p.destroy()}this.__error_infos.length=0}return t},this.constructParseErrorInfo=function(t,n,a,s){var l={errStr:t,exception:n,text:e.match,value:e.yytext,token:this.describeSymbol(u)||u,token_id:u,line:e.yylineno,expected:a,recoverable:s,state:h,action:d,new_state:x,symbol_stack:r,state_stack:o,value_stack:i,stack_pointer:c,yy:f,lexer:e,parser:this,destroy:function(){var t=!!this.recoverable;for(var e in this)this.hasOwnProperty(e)&&"object"===typeof e&&(this[e]=void 0);this.recoverable=t}};return this.__error_infos.push(l),l};var h,d,y,v,g,m,b,x,w=function(){var t=e.lex();return"number"!==typeof t&&(t=n.symbols_[t]||t),t||s},O={$:!0,_$:void 0,yy:f},_=!1;try{if(this.__reentrant_call_depth++,e.setInput(t,f),"function"===typeof e.canIUse)e.canIUse().fastLex&&(w=p);for(i[c]=null,o[c]=0,r[c]=0,++c,this.pre_parse&&this.pre_parse.call(this,f),f.pre_parse&&f.pre_parse.call(this,f),x=o[c-1];;){if(h=x,this.defaultActions[h])d=2,x=this.defaultActions[h];else if(u||(u=w()),v=a[h]&&a[h][u]||l,x=v[1],!(d=v[0])){var E,S=this.describeSymbol(u)||u,j=this.collect_expected_token_set(h);E="number"===typeof e.yylineno?"Parse error on line "+(e.yylineno+1)+": ":"Parse error: ","function"===typeof e.showPosition&&(E+="\n"+e.showPosition(69,10)+"\n"),j.length?E+="Expecting "+j.join(", ")+", got unexpected "+S:E+="Unexpected "+S,g=this.constructParseErrorInfo(E,null,j,!1),"undefined"!==typeof(y=this.parseError(g.errStr,g,this.JisonParserError))&&(_=y);break}switch(d){default:if(d instanceof Array){g=this.constructParseErrorInfo("Parse Error: multiple actions possible at state: "+h+", token: "+u,null,null,!1),"undefined"!==typeof(y=this.parseError(g.errStr,g,this.JisonParserError))&&(_=y);break}g=this.constructParseErrorInfo("Parsing halted. No viable error recovery approach available due to internal system failure.",null,null,!1),"undefined"!==typeof(y=this.parseError(g.errStr,g,this.JisonParserError))&&(_=y);break;case 1:r[c]=u,i[c]=e.yytext,o[c]=x,++c,u=0;continue;case 2:if(m=(b=this.productions_[x-1])[1],"undefined"!==typeof(y=this.performAction.call(O,x,c-1,i))){_=y;break}c-=m;var k=b[0];r[c]=k,i[c]=O.$,x=a[o[c-1]][k],o[c]=x,++c;continue;case 3:-2!==c&&(_=!0,c--,"undefined"!==typeof i[c]&&(_=i[c]))}break}}catch(A){if(A instanceof this.JisonParserError)throw A;if(e&&"function"===typeof e.JisonLexerError&&A instanceof e.JisonLexerError)throw A;g=this.constructParseErrorInfo("Parsing aborted due to exception.",A,null,!1),_=!1,"undefined"!==typeof(y=this.parseError(g.errStr,g,this.JisonParserError))&&(_=y)}finally{_=this.cleanupAfterParse(_,!0,!0),this.__reentrant_call_depth--}return _}};o.originalParseError=o.parseError,o.originalQuoteName=o.quoteName;var i=function(){function t(t,e){var n;if(Object.defineProperty(this,"name",{enumerable:!1,writable:!1,value:"JisonLexerError"}),null==t&&(t="???"),Object.defineProperty(this,"message",{enumerable:!1,writable:!0,value:t}),this.hash=e,e&&e.exception instanceof Error){var r=e.exception;this.message=r.message||t,n=r.stack}n||(Error.hasOwnProperty("captureStackTrace")?Error.captureStackTrace(this,this.constructor):n=new Error(t).stack),n&&Object.defineProperty(this,"stack",{enumerable:!1,writable:!1,value:n})}"function"===typeof Object.setPrototypeOf?Object.setPrototypeOf(t.prototype,Error.prototype):t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.name="JisonLexerError";var e={EOF:1,ERROR:2,__currentRuleSet__:null,__error_infos:[],__decompressed:!1,done:!1,_backtrack:!1,_input:"",_more:!1,_signaled_error_token:!1,conditionStack:[],match:"",matched:"",matches:!1,yytext:"",offset:0,yyleng:0,yylineno:0,yylloc:null,constructLexErrorInfo:function(t,e,n){if(t=""+t,void 0==n&&(n=!(t.indexOf("\n")>0&&t.indexOf("^")>0)),this.yylloc&&n)if("function"===typeof this.prettyPrintRange){this.prettyPrintRange(this.yylloc);/\n\s*$/.test(t)||(t+="\n"),t+="\n Erroneous area:\n"+this.prettyPrintRange(this.yylloc)}else if("function"===typeof this.showPosition){var r=this.showPosition();r&&(t.length&&"\n"!==t[t.length-1]&&"\n"!==r[0]?t+="\n"+r:t+=r)}var o={errStr:t,recoverable:!!e,text:this.match,token:null,line:this.yylineno,loc:this.yylloc,yy:this.yy,lexer:this,destroy:function(){var t=!!this.recoverable;for(var e in this)this.hasOwnProperty(e)&&"object"===typeof e&&(this[e]=void 0);this.recoverable=t}};return this.__error_infos.push(o),o},parseError:function(t,e,n){if(n||(n=this.JisonLexerError),this.yy){if(this.yy.parser&&"function"===typeof this.yy.parser.parseError)return this.yy.parser.parseError.call(this,t,e,n)||this.ERROR;if("function"===typeof this.yy.parseError)return this.yy.parseError.call(this,t,e,n)||this.ERROR}throw new n(t,e)},yyerror:function(t){var e="";this.yylloc&&(e=" on line "+(this.yylineno+1));var n=this.constructLexErrorInfo("Lexical error"+e+": "+t,this.options.lexerErrorsAreRecoverable),r=Array.prototype.slice.call(arguments,1);return r.length&&(n.extra_error_attributes=r),this.parseError(n.errStr,n,this.JisonLexerError)||this.ERROR},cleanupAfterLex:function(t){if(this.setInput("",{}),!t){for(var e=this.__error_infos.length-1;e>=0;e--){var n=this.__error_infos[e];n&&"function"===typeof n.destroy&&n.destroy()}this.__error_infos.length=0}return this},clear:function(){this.yytext="",this.yyleng=0,this.match="",this.matches=!1,this._more=!1,this._backtrack=!1;var t=this.yylloc?this.yylloc.last_column:0;this.yylloc={first_line:this.yylineno+1,first_column:t,last_line:this.yylineno+1,last_column:t,range:[this.offset,this.offset]}},setInput:function(t,e){if(this.yy=e||this.yy||{},!this.__decompressed){for(var n=this.rules,r=0,o=n.length;r1){this.yylineno-=n.length-1,this.yylloc.last_line=this.yylineno+1;var r=this.match,o=r.split(/(?:\r\n?|\n)/g);1===o.length&&(o=(r=this.matched).split(/(?:\r\n?|\n)/g)),this.yylloc.last_column=o[o.length-1].length}else this.yylloc.last_column-=e;return this.yylloc.range[1]=this.yylloc.range[0]+this.yyleng,this.done=!1,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else{var t="";this.yylloc&&(t=" on line "+(this.yylineno+1));var e=this.constructLexErrorInfo("Lexical error"+t+": You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).",!1);this._signaled_error_token=this.parseError(e.errStr,e,this.JisonLexerError)||this.ERROR}return this},less:function(t){return this.unput(this.match.slice(t))},pastInput:function(t,e){var n=this.matched.substring(0,this.matched.length-this.match.length);t<0?t=n.length:t||(t=20),e<0?e=n.length:e||(e=1);var r=(n=n.substr(2*-t-2)).replace(/\r\n|\r/g,"\n").split("\n");return(n=(r=r.slice(-e)).join("\n")).length>t&&(n="..."+n.substr(-t)),n},upcomingInput:function(t,e){var n=this.match;t<0?t=n.length+this._input.length:t||(t=20),e<0?e=t:e||(e=1),n.length<2*t+2&&(n+=this._input.substring(0,2*t+2));var r=n.replace(/\r\n|\r/g,"\n").split("\n");return(n=(r=r.slice(0,e)).join("\n")).length>t&&(n=n.substring(0,t)+"..."),n},showPosition:function(t,e){var n=this.pastInput(t).replace(/\s/g," "),r=new Array(n.length+1).join("-");return n+this.upcomingInput(e).replace(/\s/g," ")+"\n"+r+"^"},deriveLocationInfo:function(t,e,n,r){var o={first_line:1,first_column:0,last_line:1,last_column:0,range:[0,0]};return t&&(o.first_line=0|t.first_line,o.last_line=0|t.last_line,o.first_column=0|t.first_column,o.last_column=0|t.last_column,t.range&&(o.range[0]=0|t.range[0],o.range[1]=0|t.range[1])),(o.first_line<=0||o.last_line=o.first_line)&&(o.last_line=0|r.last_line,o.last_column=0|r.last_column,r.range&&(o.range[1]=0|r.range[1]))),o.last_line<=0&&(o.first_line<=0?(o.first_line=this.yylloc.first_line,o.last_line=this.yylloc.last_line,o.first_column=this.yylloc.first_column,o.last_column=this.yylloc.last_column,o.range[0]=this.yylloc.range[0],o.range[1]=this.yylloc.range[1]):(o.last_line=this.yylloc.last_line,o.last_column=this.yylloc.last_column,o.range[1]=this.yylloc.range[1])),o.first_line<=0&&(o.first_line=o.last_line,o.first_column=0,o.range[1]=o.range[0]),o.first_column<0&&(o.first_column=0),o.last_column<0&&(o.last_column=o.first_column>0?o.first_column:80),o},prettyPrintRange:function(t,e,n){t=this.deriveLocationInfo(t,e,n);var r=(this.matched+this._input).split("\n"),o=Math.max(1,e?e.first_line:t.first_line-3),i=Math.max(1,n?n.last_line:t.last_line+1),a=1+Math.log10(1|i)|0,c=new Array(a).join(" "),u=[],s=r.slice(o-1,i+1).map((function(e,n){var r=n+o,i=(c+r).substr(-a)+": "+e,s=new Array(a+1).join("^"),l=3,f=0;(r===t.first_line?(l+=t.first_column,f=Math.max(2,(r===t.last_line?t.last_column:e.length)-t.first_column+1)):r===t.last_line?f=Math.max(2,t.last_column+1):r>t.first_line&&r0&&u.push(n));return i=i.replace(/\t/g," ")}));if(u.length>4){var l=u[1]+1,f=u[u.length-2]-1,p=new Array(a+1).join(" ")+" (...continued...)";p+="\n"+new Array(a+1).join("-")+" (---------------)",s.splice(l,f-l+1,p)}return s.join("\n")},describeYYLLOC:function(t,e){var n,r=t.first_line,o=t.last_line,i=t.first_column,a=t.last_column;if(0===o-r?(n="line "+r+", ",n+=a-i<=1?"column "+i:"columns "+i+" .. "+a):n="lines "+r+"(column "+i+") .. "+o+"(column "+a+")",t.range&&e){var c=t.range[0],u=t.range[1]-1;n+=u<=c?" {String Offset: "+c+"}":" {String Offset range: "+c+" .. "+u+"}"}return n},test_match:function(t,e){var n,r,o,i,a;if(this.options.backtrack_lexer&&(o={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.yylloc.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column,range:this.yylloc.range.slice(0)},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done}),a=(i=t[0]).length,(r=i.split(/(?:\r\n?|\n)/g)).length>1?(this.yylineno+=r.length-1,this.yylloc.last_line=this.yylineno+1,this.yylloc.last_column=r[r.length-1].length):this.yylloc.last_column+=a,this.yytext+=i,this.match+=i,this.matched+=i,this.matches=t,this.yyleng=this.yytext.length,this.yylloc.range[1]+=a,this.offset+=a,this._more=!1,this._backtrack=!1,this._input=this._input.slice(a),n=this.performAction.call(this,this.yy,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var c in o)this[c]=o[c];return this.__currentRuleSet__=null,!1}return!!this._signaled_error_token&&(n=this._signaled_error_token,this._signaled_error_token=!1,n)},next:function(){if(this.done)return this.clear(),this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||this.clear();var o=this.__currentRuleSet__;if(!o&&(!(o=this.__currentRuleSet__=this._currentRules())||!o.rules)){var i="";this.options.trackPosition&&(i=" on line "+(this.yylineno+1));var a=this.constructLexErrorInfo("Internal lexer engine error"+i+': The lex grammar programmer pushed a non-existing condition name "'+this.topState()+'"; this is a fatal error and should be reported to the application programmer team!',!1);return this.parseError(a.errStr,a,this.JisonLexerError)||this.ERROR}for(var c=o.rules,u=o.__rule_regexes,s=o.__rule_count,l=1;l<=s;l++)if((n=this._input.match(u[l]))&&(!e||n[0].length>e[0].length)){if(e=n,r=l,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,c[l])))return t;if(this._backtrack){e=void 0;continue}return!1}if(!this.options.flex)break}if(e)return!1!==(t=this.test_match(e,c[r]))&&t;if(this._input){i="";this.options.trackPosition&&(i=" on line "+(this.yylineno+1));a=this.constructLexErrorInfo("Lexical error"+i+": Unrecognized text.",this.options.lexerErrorsAreRecoverable);var f=this._input,p=this.topState(),h=this.conditionStack.length;return(t=this.parseError(a.errStr,a,this.JisonLexerError)||this.ERROR)===this.ERROR&&(this.matches||f!==this._input||p!==this.topState()||h!==this.conditionStack.length||this.input()),t}return this.done=!0,this.clear(),this.EOF},lex:function(){var t;for("function"===typeof this.pre_lex&&(t=this.pre_lex.call(this,0)),"function"===typeof this.options.pre_lex&&(t=this.options.pre_lex.call(this,t)||t),this.yy&&"function"===typeof this.yy.pre_lex&&(t=this.yy.pre_lex.call(this,t)||t);!t;)t=this.next();return this.yy&&"function"===typeof this.yy.post_lex&&(t=this.yy.post_lex.call(this,t)||t),"function"===typeof this.options.post_lex&&(t=this.options.post_lex.call(this,t)||t),"function"===typeof this.post_lex&&(t=this.post_lex.call(this,t)||t),t},fastLex:function(){for(var t;!t;)t=this.next();return t},canIUse:function(){return{fastLex:!("function"===typeof this.pre_lex||"function"===typeof this.options.pre_lex||this.yy&&"function"===typeof this.yy.pre_lex||this.yy&&"function"===typeof this.yy.post_lex||"function"===typeof this.options.post_lex||"function"===typeof this.post_lex)&&"function"===typeof this.fastLex}},begin:function(t){return this.pushState(t)},pushState:function(t){return this.conditionStack.push(t),this.__currentRuleSet__=null,this},popState:function(){return this.conditionStack.length-1>0?(this.__currentRuleSet__=null,this.conditionStack.pop()):this.conditionStack[0]},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:"INITIAL"},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]]:this.conditions.INITIAL},stateStackSize:function(){return this.conditionStack.length},options:{trackPosition:!0},JisonLexerError:t,performAction:function(t,e,n){if(1!==e)return this.simpleCaseActionClusters[e]},simpleCaseActionClusters:{0:13,2:5,3:6,4:3,5:4,6:15,7:15,8:15,9:15,10:15,11:15,12:16,13:16,14:16,15:16,16:17,17:17,18:18,19:18,20:19,21:19,22:19,23:20,24:21,25:22,26:23,27:25,28:24,29:26,30:27,31:28,32:11,33:9,34:12,35:10,36:7,37:8,38:14,39:1},rules:[/^(?:(--[\d\-A-Za-z]*))/,/^(?:\s+)/,/^(?:\*)/,/^(?:\/)/,/^(?:\+)/,/^(?:-)/,/^(?:(\d+(\.\d*)?|\.\d+)px\b)/,/^(?:(\d+(\.\d*)?|\.\d+)cm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)mm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)in\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pt\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pc\b)/,/^(?:(\d+(\.\d*)?|\.\d+)deg\b)/,/^(?:(\d+(\.\d*)?|\.\d+)grad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)turn\b)/,/^(?:(\d+(\.\d*)?|\.\d+)s\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ms\b)/,/^(?:(\d+(\.\d*)?|\.\d+)Hz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)kHz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpi\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpcm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dppx\b)/,/^(?:(\d+(\.\d*)?|\.\d+)em\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ex\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ch\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rem\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vw\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vh\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmin\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmax\b)/,/^(?:(\d+(\.\d*)?|\.\d+)%)/,/^(?:(\d+(\.\d*)?|\.\d+)\b)/,/^(?:(calc))/,/^(?:(var))/,/^(?:([a-z]+))/,/^(?:\()/,/^(?:\))/,/^(?:,)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}};return e}();function a(){this.yy={}}return o.lexer=i,a.prototype=o,o.Parser=a,new a}();e.parser=n,e.Parser=n.Parser,e.parse=function(){return n.parse.apply(n,arguments)}},98336:function(t,e,n){var r=n(98219),o=n(46461),i=n(21088);function a(t){return this instanceof a?(this.nodes=r(t),this):new a(t)}a.prototype.toString=function(){return Array.isArray(this.nodes)?i(this.nodes):""},a.prototype.walk=function(t,e){return o(this.nodes,t,e),this},a.unit=n(4386),a.walk=o,a.stringify=i,t.exports=a},98219:function(t){var e="(".charCodeAt(0),n=")".charCodeAt(0),r="'".charCodeAt(0),o='"'.charCodeAt(0),i="\\".charCodeAt(0),a="/".charCodeAt(0),c=",".charCodeAt(0),u=":".charCodeAt(0),s="*".charCodeAt(0);t.exports=function(t){for(var l,f,p,h,d,y,v,g,m=[],b=t,x=0,w=b.charCodeAt(x),O=b.length,_=[{nodes:m}],E=0,S="",j="",k="";x=48&&a<=57)f=!0;else if(a===o||a===i){if(l>-1)break;l=c}else if(a===r){if(s)break;s=!0}else{if(a!==n&&a!==e)break;if(0!==c)break}c+=1}return l+1===c&&c--,!!f&&{number:t.slice(0,c),unit:t.slice(c)}}},46461:function(t){t.exports=function t(e,n,r){var o,i,a,c;for(o=0,i=e.length;o