/*! For license information please see 2.6c3b2620.chunk.js.LICENSE.txt */ (this["webpackJsonpexotic-frequencies"]=this["webpackJsonpexotic-frequencies"]||[]).push([[2],[function(e,t,n){e.exports=n(191)()},function(e,t,n){"use strict";e.exports=n(184)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n=0)return e;if(!this.isFlaggable||this.isFlaggable&&e.key.indexOf(this._options.separator)<0)return;return this.get(e.key)}if(Object(a.c)(e)){var r=this;if(this._options.ignoreCase&&(r=this.getLowerCaseEnums(),e=e.toLowerCase()),e.indexOf(this._options.separator)>0){for(var o=e.split(this._options.separator),l=0,c=0;c0&&void 0!==arguments[0]?arguments[0]:"Enum";"undefined"===typeof e||e[n]?"undefined"===typeof window||window[n]||(window[n]=t):e[n]=t}}]),t}(),s=["_options","get","getKey","getValue","enums","isFlaggable","_enumMap","toJSON","_enumLastIndex"];function f(e,t){if(e&&"name"===t||u.a.call(s,t)>=0)throw new Error("Enum key ".concat(t," is a reserved word!"))}}).call(this,n(67))},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(243),o=n(299),i=n(33),a=n(9),u=n(308);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):u(e)}},function(e,t,n){var r=n(28),o=n(9),i=n(25);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a}));var r=function(e,t){return typeof t===e},o=function(e){return r("object",e)},i=function(e){return r("string",e)},a=function(e){return r("number",e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return Rl})),n.d(t,"b",(function(){return ff})),n.d(t,"d",(function(){return bf})),n.d(t,"e",(function(){return _f})),n.d(t,"f",(function(){return ss})),n.d(t,"c",(function(){return ph}));var r={};n.r(r),n.d(r,"scaleBand",(function(){return wt})),n.d(r,"scalePoint",(function(){return kt})),n.d(r,"scaleIdentity",(function(){return $n})),n.d(r,"scaleLinear",(function(){return qn})),n.d(r,"scaleLog",(function(){return er})),n.d(r,"scaleSymlog",(function(){return or})),n.d(r,"scaleOrdinal",(function(){return xt})),n.d(r,"scaleImplicit",(function(){return bt})),n.d(r,"scalePow",(function(){return cr})),n.d(r,"scaleSqrt",(function(){return sr})),n.d(r,"scaleQuantile",(function(){return fr})),n.d(r,"scaleQuantize",(function(){return pr})),n.d(r,"scaleThreshold",(function(){return dr})),n.d(r,"scaleTime",(function(){return gi})),n.d(r,"scaleUtc",(function(){return Ei})),n.d(r,"scaleSequential",(function(){return Pi})),n.d(r,"scaleSequentialLog",(function(){return ji})),n.d(r,"scaleSequentialPow",(function(){return Ai})),n.d(r,"scaleSequentialSqrt",(function(){return Ci})),n.d(r,"scaleSequentialSymlog",(function(){return Mi})),n.d(r,"scaleSequentialQuantile",(function(){return Ni})),n.d(r,"scaleDiverging",(function(){return Di})),n.d(r,"scaleDivergingLog",(function(){return Ri})),n.d(r,"scaleDivergingPow",(function(){return zi})),n.d(r,"scaleDivergingSqrt",(function(){return Fi})),n.d(r,"scaleDivergingSymlog",(function(){return Li})),n.d(r,"tickFormat",(function(){return Wn}));n(193),n(215);if(!Object.setPrototypeOf&&!{}.__proto__){var o=Object.getPrototypeOf;Object.getPrototypeOf=function(e){return e.__proto__?e.__proto__:o.call(Object,e)}}var i=n(144),a=n.n(i),u=n(4),l=n.n(u),c=n(1),s=n.n(c),f=n(0),p=n.n(f),d=n(6),h=n.n(d);function y(){return(y=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var m={className:p.a.string,children:p.a.oneOfType([p.a.arrayOf(p.a.node),p.a.node])};function g(e){var t=e.children,n=e.className,r=v(e,["children","className"]),o=h()("recharts-layer",n);return s.a.createElement("g",y({className:o},r),t)}g.propTypes=m;var b=g,x=n(5),w=n.n(x),O=n(21),k=n.n(O),S=n(13),E=n.n(S),T=n(9),_=n.n(T),P=n(36),j=n.n(P),M=n(49),A=n.n(M),C=n(39),N=n.n(C),I=function(e){return 0===e?0:e>0?1:-1},D=function(e){return k()(e)&&e.indexOf("%")===e.length-1},R=function(e){return N()(e)&&!A()(e)},L=function(e){return R(e)||k()(e)},z=0,F=function(e){var t=++z;return"".concat(e||"").concat(t)},B=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!R(e)&&!k()(e))return r;if(D(e)){var i=e.indexOf("%");n=t*parseFloat(e.slice(0,i))/100}else n=+e;return A()(n)&&(n=r),o&&n>t&&(n=t),n},U=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},W=function(e,t){return R(e)&&R(t)?function(n){return e+n*(t-e)}:function(){return t}},V=function(e,t,n){return e&&e.length?e.find((function(e){return e&&("function"===typeof t?t(e):j()(e,t))===n})):null};function q(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function $(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var H={"aria-current":p.a.string,"aria-details":p.a.any,"aria-disabled":p.a.any,"aria-hidden":p.a.any,"aria-invalid":p.a.any,"aria-keyshortcuts":p.a.any,"aria-label":p.a.any,"aria-roledescription":p.a.any,"aria-autocomplete":p.a.any,"aria-checked":p.a.any,"aria-expanded":p.a.any,"aria-haspopup":p.a.any,"aria-level":p.a.any,"aria-modal":p.a.any,"aria-multiline":p.a.any,"aria-multiselectable":p.a.any,"aria-orientation":p.a.any,"aria-placeholder":p.a.any,"aria-pressed":p.a.any,"aria-readonly":p.a.any,"aria-required":p.a.any,"aria-selected":p.a.any,"aria-sort":p.a.any,"aria-valuemax":p.a.any,"aria-valuemin":p.a.any,"aria-valuenow":p.a.any,"aria-valuetext":p.a.any,"aria-atomic":p.a.any,"aria-busy":p.a.any,"aria-live":p.a.any,"aria-relevant":p.a.any,"aria-dropeffect":p.a.any,"aria-grabbed":p.a.any,"aria-activedescendant":p.a.any,"aria-colcount":p.a.any,"aria-colindex":p.a.any,"aria-colspan":p.a.any,"aria-controls":p.a.any,"aria-describedby":p.a.any,"aria-errormessage":p.a.any,"aria-flowto":p.a.any,"aria-labelledby":p.a.any,"aria-owns":p.a.any,"aria-posinset":p.a.any,"aria-rowcount":p.a.any,"aria-rowindex":p.a.any,"aria-rowspan":p.a.any,"aria-setsize":p.a.any,alignmentBaseline:p.a.string,angle:p.a.number,baselineShift:p.a.string,clip:p.a.string,clipPath:p.a.string,clipRule:p.a.string,color:p.a.string,colorInterpolation:p.a.string,colorInterpolationFilters:p.a.string,colorProfile:p.a.string,colorRendering:p.a.string,cursor:p.a.string,direction:p.a.oneOf(["ltr","rtl","inherit"]),display:p.a.string,dominantBaseline:p.a.string,enableBackground:p.a.string,fill:p.a.string,fillOpacity:p.a.oneOfType([p.a.string,p.a.number]),fillRule:p.a.oneOf(["nonzero","evenodd","inherit"]),filter:p.a.string,floodColor:p.a.string,floodOpacity:p.a.oneOfType([p.a.string,p.a.number]),font:p.a.string,fontFamily:p.a.string,fontSize:p.a.oneOfType([p.a.number,p.a.string]),fontSizeAdjust:p.a.oneOfType([p.a.number,p.a.string]),fontStretch:p.a.oneOf(["normal","wider","narrower","ultra-condensed","extra-condensed","condensed","semi-condensed","semi-expanded","expanded","extra-expanded","ultra-expanded","inherit"]),fontStyle:p.a.oneOf(["normal","italic","oblique","inherit"]),fontVariant:p.a.oneOf(["normal","small-caps","inherit"]),fontWeight:p.a.oneOf(["normal","bold","bolder","lighter",100,200,300,400,500,600,700,800,900,"inherit"]),glyphOrientationHorizontal:p.a.string,glyphOrientationVertical:p.a.string,imageRendering:p.a.oneOf(["auto","optimizeSpeed","optimizeQuality","inherit"]),kerning:p.a.oneOfType([p.a.number,p.a.string]),letterSpacing:p.a.oneOfType([p.a.number,p.a.string]),lightingColor:p.a.string,lineHeight:p.a.oneOfType([p.a.number,p.a.string]),markerEnd:p.a.string,markerMid:p.a.string,markerStart:p.a.string,mask:p.a.string,opacity:p.a.oneOfType([p.a.number,p.a.string]),overflow:p.a.oneOf(["visible","hidden","scroll","auto","inherit"]),pointerEvents:p.a.oneOf(["visiblePainted","visibleFill","visibleStroke","visible","painted","fill","stroke","all","none","inherit"]),shapeRendering:p.a.oneOf(["auto","optimizeSpeed","crispEdges","geometricPrecision","inherit"]),stopColor:p.a.string,stopOpacity:p.a.oneOfType([p.a.number,p.a.string]),stroke:p.a.oneOfType([p.a.number,p.a.string]),strokeDasharray:p.a.string,strokeDashoffset:p.a.oneOfType([p.a.number,p.a.string]),strokeLinecap:p.a.oneOf(["butt","round","square","inherit"]),strokeLinejoin:p.a.oneOf(["miter","round","bevel","inherit"]),strokeMiterlimit:p.a.oneOfType([p.a.number,p.a.string]),strokeOpacity:p.a.oneOfType([p.a.number,p.a.string]),strokeWidth:p.a.oneOfType([p.a.number,p.a.string]),textAnchor:p.a.oneOf(["start","middle","end","inherit"]),textDecoration:p.a.oneOf(["none","underline","overline","line-through","blink","inherit"]),textRendering:p.a.oneOf(["auto","optimizeSpeed","optimizeLegibility","geometricPrecision","inherit"]),unicodeBidi:p.a.oneOf(["normal","embed","bidi-override","inherit"]),visibility:p.a.oneOf(["visible","hidden","collapse","inherit"]),wordSpacing:p.a.oneOfType([p.a.number,p.a.string]),writingMode:p.a.oneOf(["lr-tb","rl-tb","tb-rl","lr","rl","tb","inherit"]),transform:p.a.string,role:p.a.string,focusable:p.a.string,tabIndex:p.a.string,style:p.a.object,width:p.a.number,height:p.a.number,dx:p.a.number,dy:p.a.number,x:p.a.number,y:p.a.number,r:p.a.number,radius:p.a.oneOfType([p.a.number,p.a.array])},X={onClick:p.a.func,onMouseDown:p.a.func,onMouseUp:p.a.func,onMouseOver:p.a.func,onMouseMove:p.a.func,onMouseOut:p.a.func,onMouseEnter:p.a.func,onMouseLeave:p.a.func,onTouchEnd:p.a.func,onTouchMove:p.a.func,onTouchStart:p.a.func,onTouchCancel:p.a.func},K={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Y=["plainline","line","square","rect","circle","cross","diamond","star","triangle","wye","none"],Q=["none"],J=function(e){return"string"===typeof e?e:e?e.displayName||e.name||"Component":""},Z=function(e,t){var n=[],r=[];return r=_()(t)?t.map((function(e){return J(e)})):[J(t)],s.a.Children.forEach(e,(function(e){var t=e&&e.type&&(e.type.displayName||e.type.name);-1!==r.indexOf(t)&&n.push(e)})),n},ee=function(e,t){var n=Z(e,t);return n&&n[0]},te=function(e){if(!e||l()(e))return null;var t=s.a.isValidElement(e)?e.props:e;if(!E()(t))return null;var n=null;for(var r in t)({}).hasOwnProperty.call(t,r)&&H[r]&&(n||(n={}),n[r]=t[r]);return n},ne=function(e,t){return function(n){return e(t,n),null}},re=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e||l()(e))return null;var r=s.a.isValidElement(e)?e.props:e;if(!E()(r))return null;var o=null;for(var i in r)({}).hasOwnProperty.call(r,i)&&X[i]&&(o||(o={}),o[i]=t||(n?ne(r[i],r):r[i]));return o},oe=function(e,t,n){return function(r){return e(t,n,r),null}},ie=function(e,t,n){if(!E()(e))return null;var r=null;for(var o in e)({}).hasOwnProperty.call(e,o)&&X[o]&&l()(e[o])&&(r||(r={}),r[o]=oe(e[o],t,n));return r},ae=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!R(n)||n<=0||!R(r)||r<=0)},ue=function(){return!("undefined"!==typeof window&&window.document&&window.document.createElement&&window.setTimeout)},le=["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"],ce=function(e,t){if(w()(e)&&w()(t))return!0;if(!w()(e)&&!w()(t)){var n=e.props||{},r=n.children,o=G(n,["children"]),i=t.props||{},a=i.children,u=G(i,["children"]);return r&&a?q(o,u)&&se(r,a):!r&&!a&&q(o,u)}return!1},se=function e(t,n){if(t===n)return!0;if(c.Children.count(t)!==c.Children.count(n))return!1;var r=c.Children.count(t);if(0===r)return!0;if(1===r)return ce(_()(t)?t[0]:t,_()(n)?n[0]:n);for(var o=0;o=0}(e))n.push(e);else if(e&&t[J(e.type)]){var i=J(e.type),a=t[i],u=a.handler,l=a.once;if(l&&!r[i]||!l){var c=u(e,i,o);_()(c)?n=[n].concat($(c)):n.push(c),r[i]=!0}}})),n},pe=function(e,t){var n=-1;return c.Children.forEach(t,(function(t,r){t===e&&(n=r)})),n},de=n(66),he=n.n(de);function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t=0&&o===+o?"".concat(o,"px"):o),";");var r,o,i}),"")},ke=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e||null===e||ue())return{width:0,height:0};var n="".concat(e),r=Oe(t),o="".concat(n,"-").concat(r);if(be.widthCache[o])return be.widthCache[o];try{var i=document.getElementById("recharts_measurement_span");i||((i=document.createElement("span")).setAttribute("id","recharts_measurement_span"),document.body.appendChild(i));var a=ve({},xe,{},t);Object.keys(a).map((function(e){return i.style[e]=a[e],e})),i.textContent=n;var u=i.getBoundingClientRect(),l={width:u.width,height:u.height};return be.widthCache[o]=l,++be.cacheCount>2e3&&(be.cacheCount=0,be.widthCache={}),l}catch(c){return{width:0,height:0}}};function Se(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Te(e){return(Te="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _e(){return(_e=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function je(e,t){for(var n=0;nt?1:e>=t?0:NaN},Xe=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return He(t(e),n)}),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[i],n)>0?o=i:r=i+1}return r}}};var Ke=Xe(He),Ye=Ke.right,Qe=(Ke.left,Ye);var Je=function(e){return null===e?NaN:+e},Ze=Array.prototype,et=(Ze.slice,Ze.map,function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r0)return[e];if((r=t0)for(e=Math.ceil(e/a),t=Math.floor(t/a),i=new Array(o=Math.ceil(t-e+1));++u=0?(i>=tt?10:i>=nt?5:i>=rt?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=tt?10:i>=nt?5:i>=rt?2:1)}function at(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=tt?o*=10:i>=nt?o*=5:i>=rt&&(o*=2),t=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}};function lt(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function ct(e,t){switch(arguments.length){case 0:break;case 1:this.interpolator(e);break;default:this.interpolator(t).domain(e)}return this}function st(){}function ft(e,t){var n=new st;if(e instanceof st)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,o=-1,i=e.length;if(null==t)for(;++o>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Wt(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Wt(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=At.exec(e))?new $t(t[1],t[2],t[3],1):(t=Ct.exec(e))?new $t(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Nt.exec(e))?Wt(t[1],t[2],t[3],t[4]):(t=It.exec(e))?Wt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Dt.exec(e))?Kt(t[1],t[2]/100,t[3]/100,1):(t=Rt.exec(e))?Kt(t[1],t[2]/100,t[3]/100,t[4]):Lt.hasOwnProperty(e)?Ut(Lt[e]):"transparent"===e?new $t(NaN,NaN,NaN,0):null}function Ut(e){return new $t(e>>16&255,e>>8&255,255&e,1)}function Wt(e,t,n,r){return r<=0&&(e=t=n=NaN),new $t(e,t,n,r)}function Vt(e){return e instanceof Tt||(e=Bt(e)),e?new $t((e=e.rgb()).r,e.g,e.b,e.opacity):new $t}function qt(e,t,n,r){return 1===arguments.length?Vt(e):new $t(e,t,n,null==r?1:r)}function $t(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Gt(){return"#"+Xt(this.r)+Xt(this.g)+Xt(this.b)}function Ht(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function Xt(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Kt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Qt(e,t,n,r)}function Yt(e){if(e instanceof Qt)return new Qt(e.h,e.s,e.l,e.opacity);if(e instanceof Tt||(e=Bt(e)),!e)return new Qt;if(e instanceof Qt)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,u=i-o,l=(i+o)/2;return u?(a=t===i?(n-r)/u+6*(n0&&l<1?0:a,new Qt(a,u,l,e.opacity)}function Qt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Jt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function Zt(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}St(Tt,Bt,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:zt,formatHex:zt,formatHsl:function(){return Yt(this).formatHsl()},formatRgb:Ft,toString:Ft}),St($t,qt,Et(Tt,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new $t(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new $t(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Gt,formatHex:Gt,formatRgb:Ht,toString:Ht})),St(Qt,(function(e,t,n,r){return 1===arguments.length?Yt(e):new Qt(e,t,n,null==r?1:r)}),Et(Tt,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Qt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Qt(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new $t(Jt(e>=240?e-240:e+120,o,r),Jt(e,o,r),Jt(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var en=function(e){return function(){return e}};function tn(e,t){return function(n){return e+n*t}}function nn(e){return 1===(e=+e)?rn:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):en(isNaN(t)?n:t)}}function rn(e,t){var n=t-e;return n?tn(e,n):en(isNaN(e)?t:e)}var on=function e(t){var n=nn(t);function r(e,t){var r=n((e=qt(e)).r,(t=qt(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=rn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function an(e){return function(t){var n,r,o=t.length,i=new Array(o),a=new Array(o),u=new Array(o);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,u=ri&&(o=t.slice(i,o),u[a]?u[a]+=o:u[++a]=o),(n=n[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,l.push({i:a,x:fn(n,r)})),i=hn.lastIndex;return ir&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function kn(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o2?Sn:kn,o=i=null,f}function f(t){return isNaN(t=+t)?n:(o||(o=r(a.map(e),u,l)))(e(c(t)))}return f.invert=function(n){return c(t((i||(i=r(u,a.map(e),fn)))(n)))},f.domain=function(e){return arguments.length?(a=mt.call(e,gn),c===xn||(c=On(a)),s()):a.slice()},f.range=function(e){return arguments.length?(u=gt.call(e),s()):u.slice()},f.rangeRound=function(e){return u=gt.call(e),l=mn,s()},f.clamp=function(e){return arguments.length?(c=e?On(a):xn,f):c!==xn},f.interpolate=function(e){return arguments.length?(l=e,s()):l},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,s()}}function _n(e,t){return Tn()(e,t)}var Pn=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function jn(e){if(!(t=Pn.exec(e)))throw new Error("invalid format: "+e);var t;return new Mn({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Mn(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}jn.prototype=Mn.prototype,Mn.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 An,Cn,Nn,In,Dn=function(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]},Rn=function(e){return(e=Dn(Math.abs(e)))?e[1]:NaN},Ln=function(e,t){var n=Dn(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")},zn={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Ln(100*e,t)},r:Ln,s:function(e,t){var n=Dn(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(An=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")+Dn(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},Fn=function(e){return e},Bn=Array.prototype.map,Un=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];Cn=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Fn:(t=Bn.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,u=t[0],l=0;o>0&&u>0&&(l+u+1>r&&(u=Math.max(1,r-l)),i.push(e.substring(o-=u,o+u)),!((l+=u+1)>r));)u=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",u=void 0===e.numerals?Fn:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Bn.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"-":e.minus+"",s=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=jn(e)).fill,n=e.align,f=e.sign,p=e.symbol,d=e.zero,h=e.width,y=e.comma,v=e.precision,m=e.trim,g=e.type;"n"===g?(y=!0,g="g"):zn[g]||(void 0===v&&(v=12),m=!0,g="g"),(d||"0"===t&&"="===n)&&(d=!0,t="0",n="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",x="$"===p?i:/[%p]/.test(g)?l:"",w=zn[g],O=/[defgprs%]/.test(g);function k(e){var o,i,l,p=b,k=x;if("c"===g)k=w(e)+k,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?s:w(Math.abs(e),v),m&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),S&&0===+e&&"+"!==f&&(S=!1),p=(S?"("===f?f:c:"-"===f||"("===f?"":f)+p,k=("s"===g?Un[8+An/3]:"")+k+(S&&"("===f?")":""),O)for(o=-1,i=e.length;++o(l=e.charCodeAt(o))||l>57){k=(46===l?a+e.slice(o+1):e.slice(o))+k,e=e.slice(0,o);break}}y&&!d&&(e=r(e,1/0));var E=p.length+e.length+k.length,T=E>1)+p+e+k+T.slice(E);break;default:e=T+p+e+k}return u(e)}return v=void 0===v?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),k.toString=function(){return e+""},k}return{format:f,formatPrefix:function(e,t){var n=f(((e=jn(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Rn(t)/3))),o=Math.pow(10,-r),i=Un[8+r/3];return function(e){return n(o*e)+i}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Nn=Cn.format,In=Cn.formatPrefix;var Wn=function(e,t,n,r){var o,i=at(e,t,n);switch((r=jn(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Rn(t)/3)))-Rn(Math.abs(e)))}(i,a))||(r.precision=o),In(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Rn(t)-Rn(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-Rn(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return Nn(r)};function Vn(e){var t=e.domain;return e.ticks=function(e){var n=t();return ot(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Wn(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o=t(),i=0,a=o.length-1,u=o[i],l=o[a];return l0?r=it(u=Math.floor(u/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=it(u=Math.ceil(u*r)/r,l=Math.floor(l*r)/r,n)),r>0?(o[i]=Math.floor(u/r)*r,o[a]=Math.ceil(l/r)*r,t(o)):r<0&&(o[i]=Math.ceil(u*r)/r,o[a]=Math.floor(l*r)/r,t(o)),e},e}function qn(){var e=_n(xn,xn);return e.copy=function(){return En(e,qn())},lt.apply(e,arguments),Vn(e)}function $n(e){var t;function n(e){return isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=mt.call(t,gn),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return $n(e).unknown(t)},e=arguments.length?mt.call(e,gn):[0,1],Vn(n)}var Gn=function(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a0){for(;pl)break;y.push(f)}}else for(;p=1;--s)if(!((f=c*s)l)break;y.push(f)}}else y=ot(p,d,Math.min(d-p,h)).map(n);return r?y.reverse():y},r.tickFormat=function(e,o){if(null==o&&(o=10===i?".0e":","),"function"!==typeof o&&(o=Nn(o)),e===1/0)return o;null==e&&(e=10);var a=Math.max(1,i*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*i0?r[o-1]:t[0],o=r?[o[r-1],n]:[o[a-1],o[a]]},a.unknown=function(t){return arguments.length?(e=t,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return pr().domain([t,n]).range(i).unknown(e)},lt.apply(Vn(a),arguments)}function dr(){var e,t=[.5],n=[0,1],r=1;function o(o){return o<=o?n[Qe(t,o,0,r)]:e}return o.domain=function(e){return arguments.length?(t=gt.call(e),r=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(e){return arguments.length?(n=gt.call(e),r=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return dr().domain(t).range(n).unknown(e)},lt.apply(o,arguments)}var hr=new Date,yr=new Date;function vr(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t0))return u;do{u.push(a=new Date(+n)),t(n,i),e(n)}while(a=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return hr.setTime(+t),yr.setTime(+r),e(hr),e(yr),Math.floor(n(hr,yr))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e===0}:function(t){return o.count(0,t)%e===0}):o:null}),o}var mr=vr((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));mr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?vr((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var gr=mr,br=(mr.range,vr((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}))),xr=br;br.range;function wr(e){return vr((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/6048e5}))}var Or=wr(0),kr=wr(1),Sr=wr(2),Er=wr(3),Tr=wr(4),_r=wr(5),Pr=wr(6),jr=(Or.range,kr.range,Sr.range,Er.range,Tr.range,_r.range,Pr.range,vr((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5}),(function(e){return e.getDate()-1}))),Mr=jr,Ar=(jr.range,vr((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getHours()}))),Cr=Ar,Nr=(Ar.range,vr((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getMinutes()}))),Ir=Nr,Dr=(Nr.range,vr((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()}))),Rr=Dr,Lr=(Dr.range,vr((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e})));Lr.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?vr((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Lr:null};var zr=Lr;Lr.range;function Fr(e){return vr((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/6048e5}))}var Br=Fr(0),Ur=Fr(1),Wr=Fr(2),Vr=Fr(3),qr=Fr(4),$r=Fr(5),Gr=Fr(6),Hr=(Br.range,Ur.range,Wr.range,Vr.range,qr.range,$r.range,Gr.range,vr((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/864e5}),(function(e){return e.getUTCDate()-1}))),Xr=Hr,Kr=(Hr.range,vr((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()})));Kr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?vr((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var Yr=Kr;Kr.range;function Qr(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Jr(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Zr(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var eo,to,no,ro={"-":"",_:" ",0:"0"},oo=/^\s*\d+/,io=/^%/,ao=/[\\^$*+?|[\]().{}]/g;function uo(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i68?1900:2e3),n+r[0].length):-1}function bo(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function xo(e,t,n){var r=oo.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function wo(e,t,n){var r=oo.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Oo(e,t,n){var r=oo.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function ko(e,t,n){var r=oo.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function So(e,t,n){var r=oo.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Eo(e,t,n){var r=oo.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function To(e,t,n){var r=oo.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function _o(e,t,n){var r=oo.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Po(e,t,n){var r=oo.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function jo(e,t,n){var r=io.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Mo(e,t,n){var r=oo.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Ao(e,t,n){var r=oo.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Co(e,t){return uo(e.getDate(),t,2)}function No(e,t){return uo(e.getHours(),t,2)}function Io(e,t){return uo(e.getHours()%12||12,t,2)}function Do(e,t){return uo(1+Mr.count(gr(e),e),t,3)}function Ro(e,t){return uo(e.getMilliseconds(),t,3)}function Lo(e,t){return Ro(e,t)+"000"}function zo(e,t){return uo(e.getMonth()+1,t,2)}function Fo(e,t){return uo(e.getMinutes(),t,2)}function Bo(e,t){return uo(e.getSeconds(),t,2)}function Uo(e){var t=e.getDay();return 0===t?7:t}function Wo(e,t){return uo(Or.count(gr(e)-1,e),t,2)}function Vo(e,t){var n=e.getDay();return e=n>=4||0===n?Tr(e):Tr.ceil(e),uo(Tr.count(gr(e),e)+(4===gr(e).getDay()),t,2)}function qo(e){return e.getDay()}function $o(e,t){return uo(kr.count(gr(e)-1,e),t,2)}function Go(e,t){return uo(e.getFullYear()%100,t,2)}function Ho(e,t){return uo(e.getFullYear()%1e4,t,4)}function Xo(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+uo(t/60|0,"0",2)+uo(t%60,"0",2)}function Ko(e,t){return uo(e.getUTCDate(),t,2)}function Yo(e,t){return uo(e.getUTCHours(),t,2)}function Qo(e,t){return uo(e.getUTCHours()%12||12,t,2)}function Jo(e,t){return uo(1+Xr.count(Yr(e),e),t,3)}function Zo(e,t){return uo(e.getUTCMilliseconds(),t,3)}function ei(e,t){return Zo(e,t)+"000"}function ti(e,t){return uo(e.getUTCMonth()+1,t,2)}function ni(e,t){return uo(e.getUTCMinutes(),t,2)}function ri(e,t){return uo(e.getUTCSeconds(),t,2)}function oi(e){var t=e.getUTCDay();return 0===t?7:t}function ii(e,t){return uo(Br.count(Yr(e)-1,e),t,2)}function ai(e,t){var n=e.getUTCDay();return e=n>=4||0===n?qr(e):qr.ceil(e),uo(qr.count(Yr(e),e)+(4===Yr(e).getUTCDay()),t,2)}function ui(e){return e.getUTCDay()}function li(e,t){return uo(Ur.count(Yr(e)-1,e),t,2)}function ci(e,t){return uo(e.getUTCFullYear()%100,t,2)}function si(e,t){return uo(e.getUTCFullYear()%1e4,t,4)}function fi(){return"+0000"}function pi(){return"%"}function di(e){return+e}function hi(e){return Math.floor(+e/1e3)}!function(e){eo=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,u=e.months,l=e.shortMonths,c=co(o),s=so(o),f=co(i),p=so(i),d=co(a),h=so(a),y=co(u),v=so(u),m=co(l),g=so(l),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return u[e.getMonth()]},c:null,d:Co,e:Co,f:Lo,H:No,I:Io,j:Do,L:Ro,m:zo,M:Fo,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:di,s:hi,S:Bo,u:Uo,U:Wo,V:Vo,w:qo,W:$o,x:null,X:null,y:Go,Y:Ho,Z:Xo,"%":pi},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return u[e.getUTCMonth()]},c:null,d:Ko,e:Ko,f:ei,H:Yo,I:Qo,j:Jo,L:Zo,m:ti,M:ni,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:di,s:hi,S:ri,u:oi,U:ii,V:ai,w:ui,W:li,x:null,X:null,y:ci,Y:si,Z:fi,"%":pi},w={a:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=v[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return S(e,t,n,r)},d:Oo,e:Oo,f:Po,H:So,I:So,j:ko,L:_o,m:wo,M:Eo,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=s[r[0].toLowerCase()],n+r[0].length):-1},q:xo,Q:Mo,s:Ao,S:To,u:po,U:ho,V:yo,w:fo,W:vo,x:function(e,t,r){return S(e,n,t,r)},X:function(e,t,n){return S(e,r,t,n)},y:go,Y:mo,Z:bo,"%":jo};function O(e,t){return function(n){var r,o,i,a=[],u=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++u53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=Jr(Zr(i.y,0,1))).getUTCDay(),r=o>4||0===o?Ur.ceil(r):Ur(r),r=Xr.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=Qr(Zr(i.y,0,1))).getDay(),r=o>4||0===o?kr.ceil(r):kr(r),r=Mr.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?Jr(Zr(i.y,0,1)).getUTCDay():Qr(Zr(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,Jr(i)):Qr(i)}}function S(e,t,n,r){for(var o,i,a=0,u=t.length,l=n.length;a=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=w[o in ro?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=O(n,b),b.X=O(r,b),b.c=O(t,b),x.x=O(n,x),x.X=O(r,x),x.c=O(t,x),{format:function(e){var t=O(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=k(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=O(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=k(e+="",!0);return t.toString=function(){return e},t}}}(e),to=eo.format,eo.parse,no=eo.utcFormat,eo.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"]});function yi(e){return new Date(e)}function vi(e){return e instanceof Date?+e:+new Date(+e)}function mi(e,t,n,r,o,i,a,u,l){var c=_n(xn,xn),s=c.invert,f=c.domain,p=l(".%L"),d=l(":%S"),h=l("%I:%M"),y=l("%I %p"),v=l("%a %d"),m=l("%b %d"),g=l("%B"),b=l("%Y"),x=[[a,1,1e3],[a,5,5e3],[a,15,15e3],[a,30,3e4],[i,1,6e4],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function w(u){return(a(u)1)for(var n,r,o,i=1,a=e[t[0]],u=a.length;i=0;)n[t]=t;return n};function qi(e,t){return e[t]}function $i(e){return($i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gi(){return(Gi=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ki(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yi(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var aa={width:p.a.number.isRequired,height:p.a.number.isRequired,viewBox:p.a.shape({x:p.a.number,y:p.a.number,width:p.a.number,height:p.a.number}),className:p.a.string,style:p.a.object,children:p.a.oneOfType([p.a.arrayOf(p.a.node),p.a.node])};function ua(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,i=e.className,a=e.style,u=ia(e,["children","width","height","viewBox","className","style"]),l=o||{width:n,height:r,x:0,y:0},c=h()("recharts-surface",i),f=te(u);return s.a.createElement("svg",oa({},f,{className:c,width:n,height:r,style:a,viewBox:"".concat(l.x," ").concat(l.y," ").concat(l.width," ").concat(l.height),version:"1.1"}),t)}ua.propTypes=aa;var la=ua,ca=(Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt,Math.PI),sa=2*ca;var fa={draw:function(e,t){var n=Math.sqrt(t/ca);e.moveTo(n,0),e.arc(0,0,n,0,sa)}},pa={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},da=Math.sqrt(1/3),ha=2*da,ya={draw:function(e,t){var n=Math.sqrt(t/ha),r=n*da;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},va={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},ma=Math.sin(ca/10)/Math.sin(7*ca/10),ga=Math.sin(sa/10)*ma,ba=-Math.cos(sa/10)*ma,xa={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=ga*n,o=ba*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;i<5;++i){var a=sa*i/5,u=Math.cos(a),l=Math.sin(a);e.lineTo(l*n,-u*n),e.lineTo(u*r-l*o,l*r+u*o)}e.closePath()}},wa=Math.sqrt(3),Oa={draw:function(e,t){var n=-Math.sqrt(t/(3*wa));e.moveTo(0,2*n),e.lineTo(-wa*n,-n),e.lineTo(wa*n,-n),e.closePath()}},ka=Math.sqrt(3)/2,Sa=1/Math.sqrt(12),Ea=3*(Sa/2+1),Ta={draw:function(e,t){var n=Math.sqrt(t/Ea),r=n/2,o=n*Sa,i=r,a=n*Sa+n,u=-i,l=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(u,l),e.lineTo(-.5*r-ka*o,ka*r+-.5*o),e.lineTo(-.5*i-ka*a,ka*i+-.5*a),e.lineTo(-.5*u-ka*l,ka*u+-.5*l),e.lineTo(-.5*r+ka*o,-.5*o-ka*r),e.lineTo(-.5*i+ka*a,-.5*a-ka*i),e.lineTo(-.5*u+ka*l,-.5*l-ka*u),e.closePath()}},_a=Math.PI,Pa=2*_a,ja=Pa-1e-6;function Ma(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Aa(){return new Ma}Ma.prototype=Aa.prototype={constructor:Ma,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,o,i){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},arcTo:function(e,t,n,r,o){e=+e,t=+t,n=+n,r=+r,o=+o;var i=this._x1,a=this._y1,u=n-e,l=r-t,c=i-e,s=a-t,f=c*c+s*s;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>1e-6)if(Math.abs(s*u-l*c)>1e-6&&o){var p=n-i,d=r-a,h=u*u+l*l,y=p*p+d*d,v=Math.sqrt(h),m=Math.sqrt(f),g=o*Math.tan((_a-Math.acos((h+f-y)/(2*v*m)))/2),b=g/m,x=g/v;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*c)+","+(t+b*s)),this._+="A"+o+","+o+",0,0,"+ +(s*p>c*d)+","+(this._x1=e+x*u)+","+(this._y1=t+x*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,o,i){e=+e,t=+t,i=!!i;var a=(n=+n)*Math.cos(r),u=n*Math.sin(r),l=e+a,c=t+u,s=1^i,f=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-c)>1e-6)&&(this._+="L"+l+","+c),n&&(f<0&&(f=f%Pa+Pa),f>ja?this._+="A"+n+","+n+",0,1,"+s+","+(e-a)+","+(t-u)+"A"+n+","+n+",0,1,"+s+","+(this._x1=l)+","+(this._y1=c):f>1e-6&&(this._+="A"+n+","+n+",0,"+ +(f>=_a)+","+s+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Ca=Aa;function Na(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ia(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Da(e){return(Da="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ra(){return(Ra=Object.assign||function(e){for(var t=1;t=0&&n>=0?{width:t,height:n}:null}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,o=r.layout,i=r.align,a=r.verticalAlign,u=r.margin,l=r.chartWidth,c=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===i&&"vertical"===o?{left:((l||0)-(this.getBBox()||{width:0}).width)/2}:"right"===i?{right:u&&u.right||0}:{left:u&&u.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===a?{top:((c||0)-(this.getBBox()||{height:0}).height)/2}:"bottom"===a?{bottom:u&&u.bottom||0}:{top:u&&u.top||0}),iu({},t,{},n)}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight,r=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var o=this.wrapperNode.getBoundingClientRect();(Math.abs(o.width-t)>1||Math.abs(o.height-n)>1)&&this.setState({boxWidth:o.width,boxHeight:o.height},(function(){r&&r(o)}))}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1},(function(){r&&r(null)}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,r=t.width,o=t.height,i=t.wrapperStyle,a=t.paylodUniqBy,u=t.payload,c=iu({position:"absolute",width:r||"auto",height:o||"auto"},this.getDefaultPosition(i),{},i);return s.a.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(t){e.wrapperNode=t}},function(e,t){return s.a.isValidElement(e)?s.a.cloneElement(e,t):l()(e)?e(t):s.a.createElement(nu,t)}(n,iu({},this.props,{payload:du(a,u)})))}}])&&lu(n.prototype,r),o&&lu(n,o),t}(c.PureComponent);yu.displayName="Legend",yu.propTypes={content:p.a.oneOfType([p.a.element,p.a.func]),wrapperStyle:p.a.object,chartWidth:p.a.number,chartHeight:p.a.number,width:p.a.number,height:p.a.number,iconSize:p.a.number,iconType:p.a.oneOf(hu),layout:p.a.oneOf(["horizontal","vertical"]),align:p.a.oneOf(["center","left","right"]),verticalAlign:p.a.oneOf(["top","bottom","middle"]),margin:p.a.shape({top:p.a.number,left:p.a.number,bottom:p.a.number,right:p.a.number}),payload:p.a.arrayOf(p.a.shape({value:p.a.any,id:p.a.any,type:p.a.oneOf(Y)})),paylodUniqBy:p.a.oneOfType([p.a.func,p.a.bool]),formatter:p.a.func,onMouseEnter:p.a.func,onMouseLeave:p.a.func,onClick:p.a.func,onBBoxUpdate:p.a.func},yu.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"};var vu=yu;function mu(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0}));if(i&&i.length){var a=i.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=wu(t,n,0),o=_()(r)?[Ve()(r),Ue()(r)]:[r,r],i=a.reduce((function(e,n){var r=wu(t,n,0),i=o[0]-Math.abs(_()(r)?r[0]:r),a=o[1]+Math.abs(_()(r)?r[1]:r);return[Math.min(i,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]}),[1/0,-1/0])}return null},Tu=function(e,t,n,r){var o=t.map((function(t){var o=t.props.dataKey;return"number"===n&&o&&Eu(e,t,o)||Ou(e,o,n,r)}));if("number"===n)return o.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var i={};return o.reduce((function(e,t){for(var n=0,r=t.length;n=0||t.indexOf("AreaChart")>=0)?{scale:kt(),realScaleType:"point"}:"category"===o?{scale:wt(),realScaleType:"band"}:{scale:qn(),realScaleType:"linear"};if(k()(n)){var u="scale".concat(n.slice(0,1).toUpperCase()).concat(n.slice(1));return{scale:(r[u]||kt)(),realScaleType:r[u]?u:"point"}}return l()(n)?{scale:n}:{scale:kt(),realScaleType:"point"}},Cu=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-1e-4,i=Math.max(r[0],r[1])+1e-4,a=e(t[0]),u=e(t[n-1]);(ai||ui)&&e.domain([t[0],t[n-1]])}},Nu={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n=0?(e[a][n][0]=o,e[a][n][1]=o+u,o=e[a][n][1]):(e[a][n][0]=i,e[a][n][1]=i+u,i=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i0){for(var n,r=0,o=e[t[0]],i=o.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a=2){for(var n=Fe()(t,(function(e){return e.coordinate})),r=1/0,o=1,i=n.length;oi&&(l=2*Math.PI-l),{radius:a,angle:Hu(l),angleInRadian:l}},Yu=function(e,t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360);return e+360*Math.min(o,i)},Qu=function(e,t){var n=e.x,r=e.y,o=Ku({x:n,y:r},t),i=o.radius,a=o.angle,u=t.innerRadius,l=t.outerRadius;if(il)return!1;if(0===i)return!0;var c,s=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:t-360*i,endAngle:n-360*i}}(t),f=s.startAngle,p=s.endAngle,d=a;if(f<=p){for(;d>p;)d-=360;for(;d=f&&d<=p}else{for(;d>f;)d-=360;for(;d=p&&d<=f}return c?qu({},t,{radius:i,angle:Yu(d,t)}):null};function Ju(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0?1:-1;"insideStart"===i?(r=y+x*u,o=m):"insideEnd"===i?(r=v-x*u,o=!m):"end"===i&&(r=v+x*u,o=m),o=b<=0?o:!o;var O=Xu(c,f,g,r),k=Xu(c,f,g,r+359*(o?1:-1)),S="M".concat(O.x,",").concat(O.y,"\n A").concat(g,",").concat(g,",0,1,").concat(o?0:1,",\n ").concat(k.x,",").concat(k.y),E=w()(e.id)?F("recharts-radial-line-"):e.id;return s.a.createElement("text",Zu({},n,{dominantBaseline:"central",className:h()("recharts-radial-bar-label",l)}),s.a.createElement("defs",null,s.a.createElement("path",{id:E,d:S})),s.a.createElement("textPath",{xlinkHref:"#".concat(E)},t))};function al(e){var t,n=e.viewBox,r=e.position,o=e.value,i=e.children,a=e.content,u=e.className,f=void 0===u?"":u;if(!n||w()(o)&&w()(i)&&!Object(c.isValidElement)(a)&&!l()(a))return null;if(Object(c.isValidElement)(a))return Object(c.cloneElement)(a,e);if(l()(a)){if(t=a(e),Object(c.isValidElement)(t))return t}else t=function(e){var t=e.value,n=e.formatter,r=w()(e.children)?t:e.children;return l()(n)?n(r):r}(e);var p=function(e){return R(e.cx)}(n),d=te(e),y=re(e);if(p&&("insideStart"===r||"insideEnd"===r||"end"===r))return il(e,t,d);var v=p?function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t.cx,i=t.cy,a=t.innerRadius,u=t.outerRadius,l=(t.startAngle+t.endAngle)/2;if("outside"===r){var c=Xu(o,i,u+n,l),s=c.x;return{x:s,y:c.y,textAnchor:s>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"end"};var f=Xu(o,i,(a+u)/2,l);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}}(e):function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t.x,i=t.y,a=t.width,u=t.height,l=u>=0?1:-1;return"top"===r?{x:o+a/2,y:i-l*n,textAnchor:"middle",verticalAnchor:l>0?"end":"start"}:"bottom"===r?{x:o+a/2,y:i+u+l*n,textAnchor:"middle",verticalAnchor:"start"}:"left"===r?{x:o-n,y:i+u/2,textAnchor:"end",verticalAnchor:"middle"}:"right"===r?{x:o+a+n,y:i+u/2,textAnchor:"start",verticalAnchor:"middle"}:"insideLeft"===r?{x:o+n,y:i+u/2,textAnchor:"start",verticalAnchor:"middle"}:"insideRight"===r?{x:o+a-n,y:i+u/2,textAnchor:"end",verticalAnchor:"middle"}:"insideTop"===r?{x:o+a/2,y:i+l*n,textAnchor:"middle",verticalAnchor:"start"}:"insideBottom"===r?{x:o+a/2,y:i+u-l*n,textAnchor:"middle",verticalAnchor:"end"}:"insideTopLeft"===r?{x:o+n,y:i+l*n,textAnchor:"start",verticalAnchor:"start"}:"insideTopRight"===r?{x:o+a-n,y:i+l*n,textAnchor:"end",verticalAnchor:"start"}:"insideBottomLeft"===r?{x:o+n,y:i+u-l*n,textAnchor:"start",verticalAnchor:"end"}:"insideBottomRight"===r?{x:o+a-n,y:i+u-l*n,textAnchor:"end",verticalAnchor:"end"}:E()(r)&&(R(r.x)||D(r.x))&&(R(r.y)||D(r.y))?{x:o+B(r.x,a),y:i+B(r.y,u),textAnchor:"end",verticalAnchor:"end"}:{x:o+a/2,y:i+u/2,textAnchor:"middle",verticalAnchor:"middle"}}(e);return s.a.createElement(De,Zu({className:h()("recharts-label",f)},d,v,y),t)}al.displayName="Label",al.defaultProps={offset:5},al.propTypes=ol;var ul=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,u=e.radius,l=e.innerRadius,c=e.outerRadius,s=e.x,f=e.y,p=e.top,d=e.left,h=e.width,y=e.height,v=e.clockWise;if(R(h)&&R(y)){if(R(s)&&R(f))return{x:s,y:f,width:h,height:y};if(R(p)&&R(d))return{x:p,y:d,width:h,height:y}}return R(s)&&R(f)?{x:s,y:f,width:0,height:0}:R(t)&&R(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:l||0,outerRadius:c||u||a||0,clockWise:v}:e.viewBox?e.viewBox:{}},ll=function(e,t){return e?!0===e?s.a.createElement(al,{key:"label-implicit",viewBox:t}):L(e)?s.a.createElement(al,{key:"label-implicit",viewBox:t,value:e}):Object(c.isValidElement)(e)?e.type===al?Object(c.cloneElement)(e,{key:"label-implicit",viewBox:t}):s.a.createElement(al,{key:"label-implicit",content:e,viewBox:t}):l()(e)?s.a.createElement(al,{key:"label-implicit",content:e,viewBox:t}):E()(e)?s.a.createElement(al,Zu({viewBox:t},e,{key:"label-implicit"})):null:null};al.parseViewBox=ul,al.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=ul(e),i=Z(r,al).map((function(e,n){return Object(c.cloneElement)(e,{viewBox:t||o,key:"label-".concat(n)})}));if(!n)return i;var a=ll(e.label,t||o);return[a].concat(Ju(i))};var cl=al,sl=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},fl=n(64),pl=n.n(fl),dl=n(93),hl=n.n(dl);function yl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vl(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i;default:return this.scale(e)}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}},{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}}]),e}();Ol.EPS=1e-4;var kl=function(){function e(t){yl(this,e),this.scales=hl()(t,Ol.create),Object.assign(this,this.scales)}return ml(e,null,[{key:"create",value:function(e){return new this(e)}}]),ml(e,[{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=this.scales;return hl()(e,(function(e,t){return r[t].apply(e,{bandAware:n})}))}},{key:"isInRange",value:function(e){var t=this.scales;return pl()(e,(function(e,n){return t[n].isInRange(e)}))}}]),e}();function Sl(e){return(Sl="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function El(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tl(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=function r(o){n<0&&(n=o),o-n>t?(e(o),n=-1):zl()(r)};zl()(r)}function Bl(e){return(Bl="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ul(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function Wl(){var e=function(){return null},t=!1;return{stop:function(){t=!0},start:function(n){t=!1,function n(r){if(!t){if(Array.isArray(r)){if(!r.length)return;var o=Ul(r),i=o[0],a=o.slice(1);return"number"===typeof i?void Fl(n.bind(null,a),i):(n(i),void Fl(n.bind(null,a)))}"object"===Bl(r)&&e(r),"function"===typeof r&&r()}}(n)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}var Vl=n(146),ql=n.n(Vl);function $l(e){for(var t=1;t=0&&e<=1}));var s=oc(r,i),f=oc(o,a),p=ic(r,i),d=function(e){return e>1?1:e<0?0:e},h=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var o=s(n)-t,i=p(n);if(Math.abs(o-t)<1e-4||i<1e-4)return f(n);n=d(n-o/i)}return f(n)};return h.isStepper=!1,h},uc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,o=void 0===r?8:r,i=e.dt,a=void 0===i?17:i,u=function(e,t,r){var i=r+(-(e-t)*n-r*o)*a/1e3,u=r*a/1e3+e;return Math.abs(u-t)<1e-4&&Math.abs(i)<1e-4?[t,0]:[u,i]};return u.isStepper=!0,u.dt=a,u},lc=n(147),cc=n.n(lc);function sc(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function bc(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0?n[o-1]:r,p=c||Object.keys(l);if("function"===typeof u||"spring"===u)return bc(e).concat([t.runJSAnimation.bind(t,{from:f.style,to:l,duration:i,easing:u}),i]);var d=Zl(p,i,u),h=xc({},f.style,l,{transition:d});return bc(e).concat([h,i,s]).filter(Yl)}),[a,Math.max(l,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=Wl());var t=e.begin,n=e.duration,r=e.attributeName,o=e.to,i=e.easing,a=e.onAnimationStart,u=e.onAnimationEnd,l=e.steps,c=e.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!==typeof i&&"function"!==typeof c&&"spring"!==i)if(l.length>1)this.runStepAnimation(e);else{var f=r?wc({},r,o):o,p=Zl(Object.keys(f),n,i);s.start([a,t,xc({},f,{transition:p}),n,u])}else this.runJSAnimation(e)}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"render",value:function(){var e=this.props,t=e.children,n=(e.begin,e.duration,e.attributeName,e.easing,e.isActive),r=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,gc(e,["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"])),o=c.Children.count(t),i=Jl(this.state.style);if("function"===typeof t)return t(i);if(!n||0===o)return t;var a=function(e){var t=e.props,n=t.style,o=void 0===n?{}:n,a=t.className;return Object(c.cloneElement)(e,xc({},r,{style:xc({},o,i),className:a}))};return 1===o?a(c.Children.only(t)):s.a.createElement("div",null,c.Children.map(t,(function(e){return a(e)})))}}])&&Oc(n.prototype,r),o&&Oc(n,o),t}(c.PureComponent);_c.displayName="Animate",_c.propTypes={from:p.a.oneOfType([p.a.object,p.a.string]),to:p.a.oneOfType([p.a.object,p.a.string]),attributeName:p.a.string,duration:p.a.number,begin:p.a.number,easing:p.a.oneOfType([p.a.string,p.a.func]),steps:p.a.arrayOf(p.a.shape({duration:p.a.number.isRequired,style:p.a.object.isRequired,easing:p.a.oneOfType([p.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),p.a.func]),properties:p.a.arrayOf("string"),onAnimationEnd:p.a.func})),children:p.a.oneOfType([p.a.node,p.a.func]),isActive:p.a.bool,canBegin:p.a.bool,onAnimationEnd:p.a.func,shouldReAnimate:p.a.bool,onAnimationStart:p.a.func,onAnimationReStart:p.a.func},_c.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};var Pc=_c,jc=n(65);function Mc(e){return(Mc="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ac(){return(Ac=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Nc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ic(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dc(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.steps,n=e.duration;return t&&t.length?t.reduce((function(e,t){return e+(N()(t.duration)&&t.duration>0?t.duration:0)}),0):N()(n)?n:0},Bc=function(e){function t(){var e,n;Ic(this,t);for(var r=arguments.length,o=new Array(r),i=0;i=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Jc={id:p.a.string,data:p.a.arrayOf(p.a.object),valueAccessor:p.a.func,clockWise:p.a.bool,dataKey:p.a.oneOfType([p.a.string,p.a.number,p.a.func])},Zc={valueAccessor:function(e){return _()(e.value)?$c()(e.value):e.value}};function es(e){var t=e.data,n=e.valueAccessor,r=e.dataKey,o=e.clockWise,i=e.id,a=Qc(e,["data","valueAccessor","dataKey","clockWise","id"]);return t&&t.length?s.a.createElement(b,{className:"recharts-label-list"},t.map((function(e,t){var u=w()(r)?n(e,t):wu(e&&e.payload,r),l=w()(i)?{}:{id:"".concat(i,"-").concat(t)};return s.a.createElement(cl,Hc({},te(e),a,l,{index:t,value:u,viewBox:cl.parseViewBox(w()(o)?e:Kc({},e,{clockWise:o})),key:"label-".concat(t)}))}))):null}es.propTypes=Jc,es.displayName="LabelList";var ts=function(e,t){return e?!0===e?s.a.createElement(es,{key:"labelList-implicit",data:t}):s.a.isValidElement(e)||l()(e)?s.a.createElement(es,{key:"labelList-implicit",data:t,content:e}):E()(e)?s.a.createElement(es,Hc({data:t},e,{key:"labelList-implicit"})):null:null};es.renderCallByParent=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var r=e.children,o=Z(r,es).map((function(e,n){return Object(c.cloneElement)(e,{data:t,key:"labelList-".concat(n)})}));if(!n)return o;var i=ts(e.label,t);return[i].concat(Gc(o))},es.defaultProps=Zc;var ns=es;function rs(e){return(rs="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function os(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function is(e,t){for(var n=0;n=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};function js(e){return e[0]}function Ms(e){return e[1]}var As=function(){var e=js,t=Ms,n=Wi(!0),r=null,o=gs,i=null;function a(a){var u,l,c,s=a.length,f=!1;for(null==r&&(i=o(c=Ca())),u=0;u<=s;++u)!(u=s;--f)u.point(v[f],m[f]);u.lineEnd(),u.areaEnd()}y&&(v[c]=+e(p,c,l),m[c]=+n(p,c,l),u.point(t?+t(p,c,l):v[c],r?+r(p,c,l):m[c]))}if(d)return u=null,d+""||null}function c(){return As().defined(o).curve(a).context(i)}return l.x=function(n){return arguments.length?(e="function"===typeof n?n:Wi(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"===typeof t?t:Wi(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"===typeof e?e:Wi(+e),l):t},l.y=function(e){return arguments.length?(n="function"===typeof e?e:Wi(+e),r=null,l):n},l.y0=function(e){return arguments.length?(n="function"===typeof e?e:Wi(+e),l):n},l.y1=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:Wi(+e),l):r},l.lineX0=l.lineY0=function(){return c().x(e).y(n)},l.lineY1=function(){return c().x(e).y(r)},l.lineX1=function(){return c().x(t).y(n)},l.defined=function(e){return arguments.length?(o="function"===typeof e?e:Wi(!!e),l):o},l.curve=function(e){return arguments.length?(a=e,null!=i&&(u=a(i)),l):a},l.context=function(e){return arguments.length?(null==e?i=u=null:u=a(i=e),l):i},l};function Ns(e){return(Ns="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Is(){return(Is=Object.assign||function(e){for(var t=1;ts[t]+o?Math.max(f,s[t]):Math.max(p,s[t])},n}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tp(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-t)>1||Math.abs(r.height-n)>1)&&this.setState({boxWidth:r.width,boxHeight:r.height})}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var e,t,n,r=this,o=this.props,i=o.payload,a=o.isAnimationActive,u=o.animationDuration,c=o.animationEasing,f=o.filterNull,p=function(e,t){return!0===e?ra()(t,rp):l()(e)?ra()(t,e):t}(o.paylodUniqBy,f&&i&&i.length?i.filter((function(e){return!w()(e.value)})):i),d=p&&p.length,y=this.props,v=y.content,m=y.viewBox,g=y.coordinate,b=y.position,x=y.active,O=Kf({pointerEvents:"none",visibility:x&&d?"visible":"hidden",position:"absolute",top:0},y.wrapperStyle);if(b&&R(b.x)&&R(b.y))t=b.x,n=b.y;else{var k=this.state,S=k.boxWidth,E=k.boxHeight;S>0&&E>0&&g?(t=this.getTranslate({key:"x",tooltipDimension:S,viewBoxDimension:m.width}),n=this.getTranslate({key:"y",tooltipDimension:E,viewBoxDimension:m.height})):O.visibility="hidden"}O=Kf({},Jl({transform:this.props.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}),{},O),a&&x&&(O=Kf({},Jl({transition:"transform ".concat(u,"ms ").concat(c)}),{},O));var T=h()(np,(Yf(e={},"".concat(np,"-right"),R(t)&&g&&R(g.x)&&t>=g.x),Yf(e,"".concat(np,"-left"),R(t)&&g&&R(g.x)&&t=g.y),Yf(e,"".concat(np,"-top"),R(n)&&g&&R(g.y)&&n180),",").concat(+(i>u),",\n ").concat(c.x,",").concat(c.y,"\n ");if(r>0){var f=Xu(t,n,r,i),p=Xu(t,n,r,u);s+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=u),",\n ").concat(f.x,",").concat(f.y," Z")}else s+="L ".concat(t,",").concat(n," Z");return s},Mp=function(e){function t(){return kp(this,t),Ep(this,Tp(t).apply(this,arguments))}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_p(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,u=e.cornerIsExternal,l=e.startAngle,c=e.endAngle,f=e.className;if(o0&&Math.abs(l-c)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,u=e.cornerIsExternal,l=e.startAngle,c=e.endAngle,s=I(c-l),f=Pp({cx:t,cy:n,radius:o,angle:l,sign:s,cornerRadius:i,cornerIsExternal:u}),p=f.circleTangency,d=f.lineTangency,h=f.theta,y=Pp({cx:t,cy:n,radius:o,angle:c,sign:-s,cornerRadius:i,cornerIsExternal:u}),v=y.circleTangency,m=y.lineTangency,g=y.theta,b=Math.abs(l-c)-h-g;if(b<0)return a?"M ".concat(d.x,",").concat(d.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 "):jp({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:l,endAngle:c});var x="M ".concat(d.x,",").concat(d.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(s<0),",").concat(v.x,",").concat(v.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(m.x,",").concat(m.y,"\n ");if(r>0){var w=Pp({cx:t,cy:n,radius:r,angle:l,sign:s,isExternal:!0,cornerRadius:i,cornerIsExternal:u}),O=w.circleTangency,k=w.lineTangency,S=w.theta,E=Pp({cx:t,cy:n,radius:r,angle:c,sign:-s,isExternal:!0,cornerRadius:i,cornerIsExternal:u}),T=E.circleTangency,_=E.lineTangency,P=E.theta,j=Math.abs(l-c)-S-P;if(j<0)return"".concat(x,"L").concat(t,",").concat(n,"Z");x+="L".concat(_.x,",").concat(_.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(T.x,",").concat(T.y,"\n A").concat(r,",").concat(r,",0,").concat(+(j>180),",").concat(+(s>0),",").concat(O.x,",").concat(O.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(s<0),",").concat(k.x,",").concat(k.y,"Z")}else x+="L".concat(t,",").concat(n,"Z");return x}({cx:t,cy:n,innerRadius:r,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:a,cornerIsExternal:u,startAngle:l,endAngle:c}):jp({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:l,endAngle:c}),s.a.createElement("path",Op({},te(this.props),re(this.props),{className:d,d:p}))}}])&&Sp(n.prototype,r),o&&Sp(n,o),t}(c.PureComponent);Mp.displayName="Sector",Mp.propTypes=function(e){for(var t=1;t=0?1:-1,l=n>=0?1:-1,c=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var s=[],f=0;f<4;f++)s[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+u*s[0]),s[0]>0&&(i+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(c,",").concat(e+l*s[0],",").concat(t)),i+="L ".concat(e+n-l*s[1],",").concat(t),s[1]>0&&(i+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(c,",\n ").concat(e+n,",").concat(t+u*s[1])),i+="L ".concat(e+n,",").concat(t+r-u*s[2]),s[2]>0&&(i+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(c,",\n ").concat(e+n-l*s[2],",").concat(t+r)),i+="L ".concat(e+l*s[3],",").concat(t+r),s[3]>0&&(i+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(c,",\n ").concat(e,",").concat(t+r-u*s[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(e,",").concat(t+u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+l*p,",").concat(t,"\n L ").concat(e+n-l*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+n,",").concat(t+u*p,"\n L ").concat(e+n,",").concat(t+r-u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+n-l*p,",").concat(t+r,"\n L ").concat(e+l*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e,",").concat(t+r-u*p," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},Qp=function(e){function t(){var e,n;$p(this,t);for(var r=arguments.length,o=new Array(r),i=0;i0,from:{width:o,height:i,x:n,y:r},to:{width:o,height:i,x:n,y:r},duration:p,animationEasing:f,isActive:v},(function(t){var n=t.width,r=t.height,o=t.x,i=t.y;return s.a.createElement(Vc,{canBegin:l>0,from:"0px ".concat(-1===l?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,isActive:y,easing:f},s.a.createElement("path",qp({},te(e.props),re(e.props),{className:m,d:Yp(o,i,n,r,a),ref:function(t){e.node=t}})))})):s.a.createElement("path",qp({},te(this.props),re(this.props),{className:m,d:Yp(n,r,o,i,a)}))}}])&&Gp(n.prototype,r),o&&Gp(n,o),t}(c.PureComponent);Qp.displayName="Rectangle",Qp.propTypes=function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function id(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ad(e,t){for(var n=0;n=2?I(v[1].coordinate-v[0].coordinate):1;if(1===b?(n="width"===y?f:p,r="width"===y?f+d:p+h):(n="width"===y?f+d:p+h,r="width"===y?f:p),t){var x=o[g-1],w=l()(i)?i(x.value):x.value,O=ke(w)[y]+m,k=b*(x.coordinate+b*O/2-r);v[g-1]=x=nd({},x,{tickCoord:k>0?x.coordinate-k*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+c),v[g-1]=nd({},x,{isShow:!0}))}for(var S=t?g-1:g,E=0;E=0&&b*(T.tickCoord+b*P/2-r)<=0&&(n=T.tickCoord+b*(P/2+c),v[E]=nd({},T,{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"getTicksEnd",value:function(e){var t,n,r=e.ticks,o=e.tickFormatter,i=e.viewBox,a=e.orientation,u=e.minTickGap,c=e.unit,s=i.x,f=i.y,p=i.width,d=i.height,h="top"===a||"bottom"===a?"width":"height",y=c&&"width"===h?ke(c)[h]:0,v=(r||[]).slice(),m=v.length,g=m>=2?I(v[1].coordinate-v[0].coordinate):1;1===g?(t="width"===h?s:f,n="width"===h?s+p:f+d):(t="width"===h?s+p:f+d,n="width"===h?s:f);for(var b=m-1;b>=0;b--){var x=v[b],w=l()(o)?o(x.value):x.value,O=ke(w)[h]+y;if(b===m-1){var k=g*(x.coordinate+g*O/2-n);v[b]=x=nd({},x,{tickCoord:k>0?x.coordinate-k*g:x.coordinate})}else v[b]=x=nd({},x,{tickCoord:x.coordinate});g*(x.tickCoord-g*O/2-t)>=0&&g*(x.tickCoord+g*O/2-n)<=0&&(n=x.tickCoord-g*(O/2+u),v[b]=nd({},x,{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"renderTickItem",value:function(e,t,n){return s.a.isValidElement(e)?s.a.cloneElement(e,t):l()(e)?e(t):s.a.createElement(De,ed({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],(r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=od(e,["viewBox"]),o=this.props,i=o.viewBox,a=od(o,["viewBox"]);return!q(n,i)||!q(r,a)||!q(t,this.state)}},{key:"getTickLineCoord",value:function(e){var t,n,r,o,i,a,u=this.props,l=u.x,c=u.y,s=u.width,f=u.height,p=u.orientation,d=u.tickSize,h=u.mirror,y=u.tickMargin,v=h?-1:1,m=e.tickSize||d,g=R(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=n=e.coordinate,a=(r=(o=c+!h*f)-v*m)-v*y,i=g;break;case"left":r=o=e.coordinate,i=(t=(n=l+!h*s)-v*m)-v*y,a=g;break;case"right":r=o=e.coordinate,i=(t=(n=l+h*s)+v*m)+v*y,a=g;break;default:t=n=e.coordinate,a=(r=(o=c+h*f)+v*m)+v*y,i=g}return{line:{x1:t,y1:r,x2:n,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.orientation,a=e.axisLine,u=e.mirror,l=nd({},te(this.props),{fill:"none"},te(a));if("top"===i||"bottom"===i){var c="top"===i&&!u||"bottom"===i&&u;l=nd({},l,{x1:t,y1:n+c*o,x2:t+r,y2:n+c*o})}else{var f="left"===i&&!u||"right"===i&&u;l=nd({},l,{x1:t+f*r,y1:n,x2:t+f*r,y2:n+o})}return s.a.createElement("line",ed({className:"recharts-cartesian-axis-line"},l))}},{key:"renderTicks",value:function(e){var n=this,r=this.props,o=r.tickLine,i=r.stroke,a=r.tick,u=r.tickFormatter,c=r.unit,f=t.getTicks(nd({},this.props,{ticks:e})),p=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),h=te(this.props),y=te(a),v=nd({},h,{fill:"none"},te(o)),m=f.map((function(e,t){var r=n.getTickLineCoord(e),m=r.line,g=r.tick,x=nd({textAnchor:p,verticalAnchor:d},h,{stroke:"none",fill:i},y,{},g,{index:t,payload:e,visibleTicksCount:f.length});return s.a.createElement(b,ed({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t)},ie(n.props,e,t)),o&&s.a.createElement("line",ed({className:"recharts-cartesian-axis-tick-line"},v,m)),a&&n.constructor.renderTickItem(a,x,"".concat(l()(u)?u(e.value):e.value).concat(c||"")))}));return s.a.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var e=this.props,t=e.axisLine,n=e.width,r=e.height,o=e.ticksGenerator,i=e.className;if(e.hide)return null;var a=this.props,u=a.ticks,c=od(a,["ticks"]),f=u;return l()(o)&&(f=u&&u.length>0?o(this.props):o(c)),n<=0||r<=0||!f||!f.length?null:s.a.createElement(b,{className:h()("recharts-cartesian-axis",i)},t&&this.renderAxisLine(),this.renderTicks(f),cl.renderCallByParent(this.props))}}])&&ad(n.prototype,r),o&&ad(n,o),t}(c.Component);sd.displayName="CartesianAxis",sd.propTypes=nd({},H,{},X,{className:p.a.string,x:p.a.number,y:p.a.number,width:p.a.number,height:p.a.number,orientation:p.a.oneOf(["top","bottom","left","right"]),viewBox:p.a.shape({x:p.a.number,y:p.a.number,width:p.a.number,height:p.a.number}),tick:p.a.oneOfType([p.a.bool,p.a.func,p.a.object,p.a.element]),axisLine:p.a.oneOfType([p.a.bool,p.a.object]),tickLine:p.a.oneOfType([p.a.bool,p.a.object]),mirror:p.a.bool,tickMargin:p.a.number.isRequired,minTickGap:p.a.number,ticks:p.a.array,tickSize:p.a.number,stroke:p.a.string,tickFormatter:p.a.func,ticksGenerator:p.a.func,interval:p.a.oneOfType([p.a.number,p.a.oneOf(["preserveStart","preserveEnd","preserveStartEnd"])])}),sd.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 fd=sd;function pd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hd=["Webkit","Moz","O","ms"],yd=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=hd.reduce((function(e,r){return function(e){for(var t=1;t0&&n.handleDrag(e.changedTouches[0])},n.handleDragEnd=function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1})},n.handleLeaveWrapper=function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=setTimeout(n.handleDragEnd,n.props.leaveTimeOut))},n.handleEnterSlideOrTraveller=function(){n.setState({isTextActive:!0})},n.handleLeaveSlideOrTraveller=function(){n.setState({isTextActive:!1})},n.handleSlideDragStart=function(e){var t=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:t.pageX})},n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(wd(n),"startX"),endX:n.handleTravellerDragStart.bind(wd(n),"endX")},n.state=e.data&&e.data.length?n.updateScale(e):{},n}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Od(e,t)}(t,e),n=t,o=[{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var o=Math.floor((n+r)/2);e[o]>t?r=o:n=o}return t>=e[r]?r:n}}],(r=[{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.data,o=n.width,i=n.x,a=n.travellerWidth,u=n.updateId;(e.data!==r||e.updateId!==u)&&e.data&&e.data.length?this.setState(this.updateScale(e)):e.width===o&&e.x===i&&e.travellerWidth===a||(this.scale.range([e.x,e.x+e.width-e.travellerWidth]),this.scaleValues=this.scale.domain().map((function(e){return t.scale(e)})),this.setState({startX:this.scale(e.startIndex),endX:this.scale(e.endIndex)}))}},{key:"componentWillUnmount",value:function(){this.scale=null,this.scaleValues=null,this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null)}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,r=this.props,o=r.gap,i=r.data.length-1,a=Math.min(t,n),u=Math.max(t,n),l=this.constructor.getIndexInRange(this.scaleValues,a),c=this.constructor.getIndexInRange(this.scaleValues,u);return{startIndex:l-l%o,endIndex:c===i?i:c-c%o}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,i=wu(n[e],o,e);return l()(r)?r(i):i}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,u=i.width,l=i.travellerWidth,c=i.startIndex,s=i.endIndex,f=i.onChange,p=e.pageX-n;p>0?p=Math.min(p,a+u-l-o,a+u-l-r):p<0&&(p=Math.max(p,a-r,a-o));var d=this.getIndex({startX:r+p,endX:o+p});d.startIndex===c&&d.endIndex===s||!f||f(d),this.setState({startX:r+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX})}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,o=n.movingTravellerId,i=n.endX,a=n.startX,u=this.state[o],l=this.props,c=l.x,s=l.width,f=l.travellerWidth,p=l.onChange,d=l.gap,h=l.data,y={startX:this.state.startX,endX:this.state.endX},v=e.pageX-r;v>0?v=Math.min(v,c+s-f-u):v<0&&(v=Math.max(v,c-u)),y[o]=u+v;var m=this.getIndex(y),g=m.startIndex,b=m.endIndex;this.setState((gd(t={},o,u+v),gd(t,"brushMoveStartX",e.pageX),t),(function(){p&&function(){var e=h.length-1;return"startX"===o&&(i>a?g%d===0:b%d===0)||ia?b%d===0:g%d===0)||i>a&&b===e}()&&p(m)}))}},{key:"updateScale",value:function(e){var t=this,n=e.data,r=e.startIndex,o=e.endIndex,i=e.x,a=e.width,u=e.travellerWidth,l=n.length;return this.scale=kt().domain(Af()(0,l)).range([i,i+a-u]),this.scaleValues=this.scale.domain().map((function(e){return t.scale(e)})),{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:this.scale(r),endX:this.scale(o)}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.fill,a=e.stroke;return s.a.createElement("rect",{stroke:a,fill:i,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.data,a=e.children,u=e.padding,l=c.Children.only(a);return l?s.a.cloneElement(l,{x:t,y:n,width:r,height:o,margin:u,compact:!0,data:i}):null}},{key:"renderTraveller",value:function(e,t){var n=this.props,r=n.y,o=n.travellerWidth,i=n.height,a=n.stroke,u=Math.floor(r+i/2)-1,l=Math.max(e,this.props.x);return s.a.createElement(b,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},s.a.createElement("rect",{x:l,y:r,width:o,height:i,fill:a,stroke:"none"}),s.a.createElement("line",{x1:l+1,y1:u,x2:l+o-1,y2:u,fill:"none",stroke:"#fff"}),s.a.createElement("line",{x1:l+1,y1:u+2,x2:l+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,i=n.stroke;return s.a.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:i,fillOpacity:.2,x:Math.min(e,t),y:r,width:Math.abs(t-e),height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,i=e.travellerWidth,a=e.stroke,u=this.state,l=u.startX,c=u.endX,f={pointerEvents:"none",fill:a};return s.a.createElement(b,{className:"recharts-brush-texts"},s.a.createElement(De,md({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,c)-5,y:r+o/2},f),this.getTextOfTick(t)),s.a.createElement(De,md({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,c)+i+5,y:r+o/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=e.x,i=e.y,a=e.width,u=e.height,l=e.alwaysShowText,c=this.state,f=c.startX,p=c.endX,d=c.isTextActive,y=c.isSlideMoving,v=c.isTravellerMoving;if(!t||!t.length||!R(o)||!R(i)||!R(a)||!R(u)||a<=0||u<=0)return null;var m=h()("recharts-brush",n),g=1===s.a.Children.count(r),x=yd("userSelect","none");return s.a.createElement(b,{className:m,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onMouseUp:this.handleDragEnd,onTouchEnd:this.handleDragEnd,onTouchMove:this.handleTouchMove,style:x},this.renderBackground(),g&&this.renderPanorama(),this.renderSlide(f,p),this.renderTraveller(f,"startX"),this.renderTraveller(p,"endX"),(d||y||v||l)&&this.renderText())}}])&&bd(n.prototype,r),o&&bd(n,o),t}(c.PureComponent);kd.displayName="Brush",kd.propTypes={className:p.a.string,fill:p.a.string,stroke:p.a.string,x:p.a.number,y:p.a.number,width:p.a.number,height:p.a.number.isRequired,travellerWidth:p.a.number,gap:p.a.number,padding:p.a.shape({top:p.a.number,right:p.a.number,bottom:p.a.number,left:p.a.number}),dataKey:p.a.oneOfType([p.a.string,p.a.number,p.a.func]),data:p.a.array,startIndex:p.a.number,endIndex:p.a.number,tickFormatter:p.a.func,children:p.a.node,onChange:p.a.func,updateId:p.a.oneOfType([p.a.string,p.a.number]),leaveTimeOut:p.a.number,alwaysShowText:p.a.bool},kd.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 Sd=kd;function Ed(e){return(Ed="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Td(){return(Td=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function th(){return(th=Object.assign||function(e){for(var t=1;t0&&n.handleMouseMove(e.changedTouches[0])},n.handleTouchStart=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseDown(e.changedTouches[0])},n.handleTouchEnd=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseUp(e.changedTouches[0])},n.verticalCoordinatesGenerator=function(e){var t=e.xAxis,n=e.width,r=e.height,o=e.offset;return Pu(fd.getTicks(oh({},fd.defaultProps,{},t,{ticks:ju(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)},n.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,n=e.width,r=e.height,o=e.offset;return Pu(fd.getTicks(oh({},fd.defaultProps,{},t,{ticks:ju(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)},n.axesTicksGenerator=function(e){return ju(e,!0)},n.tooltipTicksGenerator=function(e){var t=U(e),n=ju(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Fe()(n,(function(e){return e.coordinate})),tooltipAxis:t,tooltipAxisBandSize:Uu(t)}},n.renderCursor=function(e){var r=n.state,o=r.isTooltipActive,i=r.activeCoordinate,a=r.activePayload,u=r.offset;if(!e||!e.props.cursor||!o||!i)return null;var l,s=n.props.layout,f=Xs;if("ScatterChart"===t)l=i,f=gp;else if("BarChart"===t)l=n.getCursorRectangle(),f=Jp;else if("radial"===s){var p=n.getCursorPoints(),d=p.cx,h=p.cy,y=p.radius;l={cx:d,cy:h,startAngle:p.startAngle,endAngle:p.endAngle,innerRadius:y,outerRadius:y},f=Ap}else l={points:n.getCursorPoints()},f=Xs;var v=e.key||"_recharts-cursor",m=oh({stroke:"#ccc",pointerEvents:"none"},u,{},l,{},te(e.props.cursor),{payload:a,key:v,className:"recharts-tooltip-cursor"});return Object(c.isValidElement)(e.props.cursor)?Object(c.cloneElement)(e.props.cursor,m):Object(c.createElement)(f,m)},n.renderPolarAxis=function(e,t,r){var o=e.type.axisType,i=n.state["".concat(o,"Map")][e.props["".concat(o,"Id")]];return Object(c.cloneElement)(e,oh({},i,{className:o,key:e.key||"".concat(t,"-").concat(r),ticks:ju(i,!0)}))},n.renderXAxis=function(e,t,r){var o=n.state.xAxisMap[e.props.xAxisId];return n.renderAxis(o,e,t,r)},n.renderYAxis=function(e,t,r){var o=n.state.yAxisMap[e.props.yAxisId];return n.renderAxis(o,e,t,r)},n.renderGrid=function(e){var t=n.state,r=t.xAxisMap,o=t.yAxisMap,i=t.offset,a=n.props,u=a.width,l=a.height,s=U(r),f=jf()(o,(function(e){return pl()(e.domain,Number.isFinite)}))||U(o),p=e.props||{};return Object(c.cloneElement)(e,{key:e.key||"grid",x:R(p.x)?p.x:i.left,y:R(p.y)?p.y:i.top,width:R(p.width)?p.width:i.width,height:R(p.height)?p.height:i.height,xAxis:s,yAxis:f,offset:i,chartWidth:u,chartHeight:l,verticalCoordinatesGenerator:p.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:p.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})},n.renderPolarGrid=function(e){var t=n.state,r=t.radiusAxisMap,o=t.angleAxisMap,i=U(r),a=U(o),u=a.cx,l=a.cy,s=a.innerRadius,f=a.outerRadius;return Object(c.cloneElement)(e,{polarAngles:ju(a,!0).map((function(e){return e.coordinate})),polarRadius:ju(i,!0).map((function(e){return e.coordinate})),cx:u,cy:l,innerRadius:s,outerRadius:f,key:e.key||"polar-grid"})},n.renderBrush=function(e){var t=n.props,r=t.margin,o=t.data,i=n.state,a=i.offset,u=i.dataStartIndex,l=i.dataEndIndex,s=i.updateId;return Object(c.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:Mu(n.handleBrushChange,null,e.props.onChange),data:o,x:R(e.props.x)?e.props.x:a.left,y:R(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:R(e.props.width)?e.props.width:a.width,startIndex:u,endIndex:l,updateId:"brush-".concat(s)})},n.renderReferenceElement=function(e,t,r){if(!e)return null;var o=lh(n).clipPathId,i=n.state,a=i.xAxisMap,u=i.yAxisMap,l=i.offset,s=e.props,f=s.xAxisId,p=s.yAxisId;return Object(c.cloneElement)(e,{key:e.key||"".concat(t,"-").concat(r),xAxis:a[f],yAxis:u[p],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:o})},n.renderGraphicChild=function(e,t,r){var o=n.filterFormatItem(e,t,r);if(!o)return null;var i=Object(c.cloneElement)(e,o.props),a=n.state,u=a.isTooltipActive,l=a.tooltipAxis,s=a.activeTooltipIndex,f=a.activeLabel,p=n.props.children,d=ee(p,up),h=o.props,y=h.points,v=h.isRange,m=h.baseLine,g=o.item.props,b=g.activeDot;if(!g.hide&&u&&d&&b&&s>=0){var x,O;if(l.dataKey&&!l.allowDuplicatedCategory){var k="function"===typeof l.dataKey?function(e){return l.dataKey(e.payload)}:"payload.".concat(l.dataKey);x=V(y,k,f),O=v&&m&&V(m,k,f)}else x=y[s],O=v&&m&&m[s];if(!w()(x))return[i].concat(nh(n.renderActivePoints({item:o,activePoint:x,basePoint:O,childIndex:s,isRange:v})))}return v?[i,null,null]:[i,null]},n.renderCustomized=function(e){return Object(c.cloneElement)(e,oh({},n.props,{},n.state))};var o=n.constructor.createDefaultState(e);return n.state=oh({},o,{updateId:0},n.updateStateOfAxisMapsOffsetAndStackGroups(oh({props:e},o,{updateId:0}))),n.uniqueChartId=w()(e.id)?F("recharts"):e.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),e.throttleDelay&&(n.triggeredAfterMouseMove=Nf()(n.triggeredAfterMouseMove,e.throttleDelay)),n}var f,p,d;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ch(e,t)}(r,e),f=r,d=[{key:"getAxisNameByLayout",value:function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}}},{key:"renderActiveDot",value:function(e,t){var n;return n=Object(c.isValidElement)(e)?Object(c.cloneElement)(e,t):l()(e)?e(t):s.a.createElement(Bp,t),s.a.createElement(b,{className:"recharts-active-dot",key:t.key},n)}}],(p=[{key:"componentDidMount",value:function(){w()(this.props.syncId)||this.addListener()}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.data,o=n.children,i=n.width,a=n.height,u=n.layout,l=n.stackOffset,c=n.margin,s=this.state.updateId;if(e.data===r&&e.width===i&&e.height===a&&e.layout===u&&e.stackOffset===l&&q(e.margin,c)){if(!se(e.children,o)){var f=w()(e.data)?s+1:s;this.setState((function(n){return oh({updateId:f},t.updateStateOfAxisMapsOffsetAndStackGroups(oh({props:e},n,{updateId:f})))}))}}else{var p=this.constructor.createDefaultState(e);this.setState(oh({},p,{updateId:s+1},this.updateStateOfAxisMapsOffsetAndStackGroups(oh({props:e},p,{updateId:s+1}))))}w()(this.props.syncId)&&!w()(e.syncId)&&this.addListener(),!w()(this.props.syncId)&&w()(e.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){w()(this.props.syncId)||this.removeListener(),"function"===typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getAxisMap",value:function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,u=t.dataStartIndex,l=t.dataEndIndex,c=e.children,s="".concat(r,"Id"),f=Z(c,o),p={};return f&&f.length?p=this.getAxisMapByAxes(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:l}):i&&i.length&&(p=this.getAxisMapByItems(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:l})),p}},{key:"getAxisMapByAxes",value:function(e,t){var n=this,r=t.axes,o=t.graphicalItems,i=t.axisType,a=t.axisIdKey,u=t.stackGroups,l=t.dataStartIndex,c=t.dataEndIndex,s=e.layout,f=e.children,p=e.stackOffset,d=_u(s,i);return r.reduce((function(t,r){var h=r.props,y=h.type,v=h.dataKey,m=h.allowDataOverflow,g=h.allowDuplicatedCategory,b=h.scale,x=h.ticks,O=r.props[a],k=n.constructor.getDisplayedData(e,{graphicalItems:o.filter((function(e){return e.props[a]===O})),dataStartIndex:l,dataEndIndex:c}),S=k.length;if(!t[O]){var E,T,P;if(v){if(E=Ou(k,v,y),"category"===y&&d){var j=function(e){if(!_()(e))return!1;for(var t=e.length,n={},r=0;r=0?e:[].concat(nh(e),[t])}),[]))}else if("category"===y)E=g?E.filter((function(e){return""!==e&&!w()(e)})):Wu(r.props.domain,E,r).reduce((function(e,t){return e.indexOf(t)>=0||""===t||w()(t)?e:[].concat(nh(e),[t])}),[]);else if("number"===y){var M=function(e,t,n,r){var o=t.map((function(t){return Eu(e,t,n,r)})).filter((function(e){return!w()(e)}));return o&&o.length?o.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(k,o.filter((function(e){return e.props[a]===O&&!e.props.hide})),v,i);M&&(E=M)}!d||"number"!==y&&"auto"===b||(P=Ou(k,v,"category"))}else E=d?Af()(0,S):u&&u[O]&&u[O].hasStack&&"number"===y?"expand"===p?[0,1]:Lu(u[O].stackGroups,l,c):Tu(k,o.filter((function(e){return e.props[a]===O&&!e.props.hide})),y,!0);return"number"===y&&(E=Kd(f,E,O,i,x),r.props.domain&&(E=Bu(r.props.domain,E,m))),oh({},t,ih({},O,oh({},r.props,{axisType:i,domain:E,categoricalDomain:P,duplicateDomain:T,originalDomain:r.props.domain,isCategorial:d,layout:s})))}return t}),{})}},{key:"getAxisMapByItems",value:function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,u=t.dataStartIndex,l=t.dataEndIndex,c=e.layout,s=e.children,f=this.constructor.getDisplayedData(e,{graphicalItems:n,dataStartIndex:u,dataEndIndex:l}),p=f.length,d=_u(c,o),h=-1;return n.reduce((function(e,t){var y,v=t.props[i];return e[v]?e:(h++,d?y=Af()(0,p):a&&a[v]&&a[v].hasStack?(y=Lu(a[v].stackGroups,u,l),y=Kd(s,y,v,o)):(y=Bu(r.defaultProps.domain,Tu(f,n.filter((function(e){return e.props[i]===v&&!e.props.hide})),"number"),r.defaultProps.allowDataOverflow),y=Kd(s,y,v,o)),oh({},e,ih({},v,oh({axisType:o},r.defaultProps,{hide:!0,orientation:sh[o]&&sh[o][h%2],domain:y,originalDomain:r.defaultProps.domain,isCategorial:d,layout:c}))))}),{})}},{key:"getActiveCoordinate",value:function(e,t,n){var r=this.props.layout,o=e.find((function(e){return e&&e.index===t}));if(o){if("horizontal"===r)return{x:o.coordinate,y:n.y};if("vertical"===r)return{x:n.x,y:o.coordinate};if("centric"===r){var i=o.coordinate,a=n.radius;return oh({},n,{},Xu(n.cx,n.cy,a,i),{angle:i,radius:a})}var u=o.coordinate,l=n.angle;return oh({},n,{},Xu(n.cx,n.cy,u,l),{angle:l,radius:u})}return fh}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}(e,function(e){var t=e.ownerDocument.documentElement,n={top:0,left:0};return"undefined"!==typeof e.getBoundingClientRect&&(n=e.getBoundingClientRect()),{top:n.top+window.pageYOffset-t.clientTop,left:n.left+window.pageXOffset-t.clientLeft}}(this.container)),n=this.inRange(t.chartX,t.chartY);if(!n)return null;var r=this.state,i=r.xAxisMap,a=r.yAxisMap;if("axis"!==o&&i&&a){var u=U(i).scale,l=U(a).scale;return oh({},t,{xValue:u&&u.invert?u.invert(t.chartX):null,yValue:l&&l.invert?l.invert(t.chartY):null})}var c=this.state,s=c.orderedTooltipTicks,f=c.tooltipAxis,p=c.tooltipTicks,d=function(e,t,n,r){var o=-1,i=t.length;if(i>1){if(r&&"angleAxis"===r.axisType&&Math.abs(Math.abs(r.range[1]-r.range[0])-360)<=1e-6)for(var a=r.range,u=0;u0?n[u-1].coordinate:n[i-1].coordinate,c=n[u].coordinate,s=u>=i-1?n[0].coordinate:n[u+1].coordinate,f=void 0;if(I(c-l)!==I(s-c)){var p=[];if(I(s-c)===I(a[1]-a[0])){f=s;var d=c+a[1]-a[0];p[0]=Math.min(d,(d+l)/2),p[1]=Math.max(d,(d+l)/2)}else{f=l;var h=s+a[1]-a[0];p[0]=Math.min(c,(h+c)/2),p[1]=Math.max(c,(h+c)/2)}var y=[Math.min(c,(f+c)/2),Math.max(c,(f+c)/2)];if(e>y[0]&&e<=y[1]||e>=p[0]&&e<=p[1]){o=n[u].index;break}}else{var v=Math.min(l,s),m=Math.max(l,s);if(e>(v+c)/2&&e<=(m+c)/2){o=n[u].index;break}}}else for(var g=0;g0&&g(t[g].coordinate+t[g-1].coordinate)/2&&e<=(t[g].coordinate+t[g+1].coordinate)/2||g===i-1&&e>(t[g].coordinate+t[g-1].coordinate)/2){o=t[g].index;break}}else o=0;return o}(this.calculateTooltipPos(n),s,p,f);if(d>=0&&p){var h=p[d]&&p[d].value;return oh({},t,{activeTooltipIndex:d,activeLabel:h,activePayload:this.getTooltipContent(d,h),activeCoordinate:this.getActiveCoordinate(s,d,n)})}return null}},{key:"getTooltipContent",value:function(e,t){var n=this.state,r=n.graphicalItems,o=n.tooltipAxis,i=this.constructor.getDisplayedData(this.props,this.state);return e<0||!r||!r.length||e>=i.length?null:r.reduce((function(n,r){if(r.props.hide)return n;var a,u=r.props,l=u.dataKey,c=u.name,s=u.unit,f=u.formatter,p=u.data,d=u.tooltipType;return(a=o.dataKey&&!o.allowDuplicatedCategory?V(p||i,o.dataKey,t):p&&p[e]||i[e])?[].concat(nh(n),[oh({},te(r),{dataKey:l,unit:s,formatter:f,name:c||l,color:ku(r),value:wu(a,l),type:d,payload:a})]):n}),[])}},{key:"getFormatItems",value:function(e,t){var n=this,r=t.graphicalItems,o=t.stackGroups,a=t.offset,u=t.updateId,l=t.dataStartIndex,c=t.dataEndIndex,s=e.barSize,f=e.layout,p=e.barGap,d=e.barCategoryGap,h=e.maxBarSize,y=this.constructor.getAxisNameByLayout(f),v=y.numericAxisName,m=y.cateAxisName,g=this.constructor.hasBar(r),b=g&&function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},i=Object.keys(r),a=0,u=i.length;a=0}));if(y&&y.length){var v=y[0].props.barSize,m=y[0].props[h];o[m]||(o[m]=[]),o[m].push({item:y[0],stackList:y.slice(1),barSize:w()(v)?t:v})}}return o}({barSize:s,stackGroups:o}),x=[];return r.forEach((function(r,s){var y,O=n.constructor.getDisplayedData(e,{dataStartIndex:l,dataEndIndex:c},r),k=r.props,S=k.dataKey,E=k.maxBarSize,T=r.props["".concat(v,"Id")],_=r.props["".concat(m,"Id")],P=i.reduce((function(e,n){var o,i=t["".concat(n.axisType,"Map")],a=r.props["".concat(n.axisType,"Id")],u=i&&i[a];return oh({},e,(ih(o={},n.axisType,u),ih(o,"".concat(n.axisType,"Ticks"),ju(u)),o))}),{}),j=P[m],M=P["".concat(m,"Ticks")],A=o&&o[T]&&o[T].hasStack&&function(e,t){var n=e.props.stackId;if(L(n)){var r=t[n];if(r&&r.items.length){for(var o=-1,i=0,a=r.items.length;i=0?r.stackedData[o]:null}}return null}(r,o[T].stackGroups),C=Uu(j,M),N=w()(E)?h:E,I=g&&function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,u=i.length;if(u<1)return null;var l,c=B(t,r,0,!0);if(i[0].barSize===+i[0].barSize){var s=!1,f=r/u,p=i.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(u-1)*c)>=r&&(p-=(u-1)*c,c=0),p>=r&&f>0&&(s=!0,p=u*(f*=.9));var d={offset:((r-p)/2>>0)-c,size:0};l=i.reduce((function(e,t){var n=[].concat(mu(e),[{item:t.item,position:{offset:d.offset+d.size+c,size:s?f:t.barSize}}]);return d=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:d})})),n}),[])}else{var h=B(n,r,0,!0);r-2*h-(u-1)*c<=0&&(c=0);var y=(r-2*h-(u-1)*c)/u;y>1&&(y>>=0);var v=a===+a?Math.min(y,a):y;l=i.reduce((function(e,t,n){var r=[].concat(mu(e),[{item:t.item,position:{offset:h+(y+c)*n+(y-v)/2,size:v}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),[])}return l}({barGap:p,barCategoryGap:d,bandSize:C,sizeList:b[_],maxBarSize:N}),D=r&&r.type&&r.type.getComposedData;D&&x.push({props:oh({},D(oh({},P,{displayedData:O,props:e,dataKey:S,item:r,bandSize:C,barPosition:I,offset:a,stackedData:A,layout:f,dataStartIndex:l,dataEndIndex:c,onItemMouseLeave:Mu(n.handleItemMouseLeave,null,r.props.onMouseLeave),onItemMouseEnter:Mu(n.handleItemMouseEnter,null,r.props.onMouseEnter)})),(y={key:r.key||"item-".concat(s)},ih(y,v,P[v]),ih(y,m,P[m]),ih(y,"animationId",u),y)),childIndex:pe(r,e.children),item:r})})),x}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,o=t.tooltipAxisBandSize,i=o/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-i:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-i,width:"horizontal"===e?o:r.width-1,height:"horizontal"===e?r.height-1:o}}},{key:"getCursorPoints",value:function(){var e,t,n,r,o=this.props.layout,i=this.state,a=i.activeCoordinate,u=i.offset;if("horizontal"===o)n=e=a.x,t=u.top,r=u.top+u.height;else if("vertical"===o)r=t=a.y,e=u.left,n=u.left+u.width;else if(!w()(a.cx)||!w()(a.cy)){if("centric"!==o){var l=a.cx,c=a.cy,s=a.radius,f=a.startAngle,p=a.endAngle;return{points:[Xu(l,c,s,f),Xu(l,c,s,p)],cx:l,cy:c,radius:s,startAngle:f,endAngle:p}}var d=a.cx,h=a.cy,y=a.innerRadius,v=a.outerRadius,m=a.angle,g=Xu(d,h,y,m),b=Xu(d,h,v,m);e=g.x,t=g.y,n=b.x,r=b.y}return[{x:e,y:t},{x:n,y:r}]}},{key:"calculateTooltipPos",value:function(e){var t=this.props.layout;return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}},{key:"inRange",value:function(e,t){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return e>=r.left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height?{x:e,y:t}:null}var o=this.state,i=o.angleAxisMap,a=o.radiusAxisMap;if(i&&a){var u=U(i);return Qu({x:e,y:t},u)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=ee(e,up)&&"axis"===o?{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}:{};return oh({},re(this.props,this.handleOuterEvent),{},t)}},{key:"updateStateOfAxisMapsOffsetAndStackGroups",value:function(e){var r=this,o=e.props,a=e.dataStartIndex,l=e.dataEndIndex,c=e.updateId;if(!ae({props:o}))return null;var s=o.children,f=o.layout,p=o.stackOffset,d=o.data,h=o.reverseStackOrder,y=this.constructor.getAxisNameByLayout(f),v=y.numericAxisName,m=y.cateAxisName,g=Z(s,n),b=function(e,t,n,r,o,i){if(!e)return null;var a=(i?t.reverse():t).reduce((function(e,t){var o=t.props,i=o.stackId;if(o.hide)return e;var a=t.props[n],u=e[a]||{hasStack:!1,stackGroups:{}};if(L(i)){var l=u.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};l.items.push(t),u.hasStack=!0,u.stackGroups[i]=l}else u.stackGroups[F("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return bu({},e,xu({},a,u))}),{});return Object.keys(a).reduce((function(t,i){var u=a[i];return u.hasStack&&(u.stackGroups=Object.keys(u.stackGroups).reduce((function(t,i){var a=u.stackGroups[i];return bu({},t,xu({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:Iu(e,a.items,o)}))}),{})),bu({},t,xu({},i,u))}),{})}(d,g,"".concat(v,"Id"),"".concat(m,"Id"),p,h),x=i.reduce((function(e,t){return oh({},e,ih({},"".concat(t.axisType,"Map"),r.getAxisMap(o,oh({},t,{graphicalItems:g,stackGroups:t.axisType===v&&b,dataStartIndex:a,dataEndIndex:l}))))}),{}),w=this.calculateOffset(oh({},x,{props:o,graphicalItems:g}));Object.keys(x).forEach((function(e){x[e]=u(o,x[e],w,e.replace("Map",""),t)}));var O=x["".concat(m,"Map")],k=this.tooltipTicksGenerator(O),S=this.getFormatItems(o,oh({},x,{dataStartIndex:a,dataEndIndex:l,updateId:c,graphicalItems:g,stackGroups:b,offset:w}));return oh({formatedGraphicalItems:S,graphicalItems:g,offset:w,stackGroups:b},k,{},x)}},{key:"addListener",value:function(){Qd.on(Jd,this.handleReceiveSyncEvent),Qd.setMaxListeners&&Qd._maxListeners&&Qd.setMaxListeners(Qd._maxListeners+1)}},{key:"removeListener",value:function(){Qd.removeListener(Jd,this.handleReceiveSyncEvent),Qd.setMaxListeners&&Qd._maxListeners&&Qd.setMaxListeners(Qd._maxListeners-1)}},{key:"calculateOffset",value:function(e){var t=e.props,n=e.graphicalItems,r=e.xAxisMap,o=void 0===r?{}:r,i=e.yAxisMap,a=void 0===i?{}:i,u=t.width,l=t.height,c=t.children,s=t.margin||{},f=ee(c,Sd),p=ee(c,vu),d=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:oh({},e,ih({},r,e[r]+n.width))}),{left:s.left||0,right:s.right||0}),h=Object.keys(o).reduce((function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:oh({},e,ih({},r,e[r]+n.height))}),{top:s.top||0,bottom:s.bottom||0}),y=oh({},h,{},d),v=y.bottom;return f&&(y.bottom+=f.props.height||Sd.defaultProps.height),p&&this.legendInstance&&(y=function(e,t,n,r){var o=n.children,i=n.width,a=n.height,u=n.margin,l=i-(u.left||0)-(u.right||0),c=a-(u.top||0)-(u.bottom||0),s=Su({children:o,items:t,legendWidth:l,legendHeight:c}),f=e;if(s){var p=r||{},d=s.align,h=s.verticalAlign,y=s.layout;("vertical"===y||"horizontal"===y&&"center"===h)&&R(e[d])&&(f=bu({},e,xu({},d,f[d]+(p.width||0)))),("horizontal"===y||"vertical"===y&&"center"===d)&&R(e[h])&&(f=bu({},e,xu({},h,f[h]+(p.height||0))))}return f}(y,n,t,this.legendInstance.getBBox())),oh({brushBottom:v},y,{width:u-y.left-y.right,height:l-y.top-y.bottom})}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;w()(t)||Qd.emit(Jd,t,this.uniqueChartId,e)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formatedGraphicalItems,o=0,i=r.length;o=0}))},y.getDisplayedData=function(e,t,n){var r=t.graphicalItems,o=t.dataStartIndex,i=t.dataEndIndex,a=(r||[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(nh(e),nh(n)):e}),[]);if(a&&a.length>0)return a;if(n&&n.props&&n.props.data&&n.props.data.length>0)return n.props.data;var u=e.data;return u&&u.length&&R(o)&&R(i)?u.slice(o,i+1):[]},y}({chartName:"ScatterChart",GraphicalChild:ff,eventType:"single",axisComponents:[{axisType:"xAxis",AxisComp:bf},{axisType:"yAxis",AxisComp:_f},{axisType:"zAxis",AxisComp:ss}],formatAxisMap:function(e,t,n,r,o){var i=e.width,a=e.height,u=e.layout,l=Object.keys(t),c={left:n.left,leftMirror:n.left,right:i-n.right,rightMirror:i-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom};return l.reduce((function(e,i){var a,l,s,f,p=t[i],d=p.orientation,h=p.domain,y=p.padding,v=void 0===y?{}:y,m=p.mirror,g=p.reversed,b="".concat(d).concat(m?"Mirror":"");a="xAxis"===r?[n.left+(v.left||0),n.left+n.width-(v.right||0)]:"yAxis"===r?"horizontal"===u?[n.top+n.height-(v.bottom||0),n.top+(v.top||0)]:[n.top+(v.top||0),n.top+n.height-(v.bottom||0)]:p.range,g&&(a=[a[1],a[0]]);var x=Au(p,o),w=x.scale,O=x.realScaleType;w.domain(h).range(a),Cu(w);var k=Du(w,bl({},p,{realScaleType:O}));"xAxis"===r?(f="top"===d&&!m||"bottom"===d&&m,l=n.left,s=c[b]-f*p.height):"yAxis"===r&&(f="left"===d&&!m||"right"===d&&m,l=c[b]-f*p.width,s=n.top);var S=bl({},p,{},k,{realScaleType:O,x:l,y:s,scale:w,width:"xAxis"===r?n.width:p.width,height:"yAxis"===r?n.height:p.height});return S.bandSize=Uu(S,k),p.hide||"xAxis"!==r?p.hide||(c[b]+=(f?-1:1)*S.width):c[b]+=(f?-1:1)*S.height,bl({},e,xl({},i,S))}),{})}})},function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){(function(t){for(var r=n(348),o="undefined"===typeof window?t:window,i=["moz","webkit"],a="AnimationFrame",u=o["request"+a],l=o["cancel"+a]||o["cancelRequest"+a],c=0;!u&&c1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])}));e.exports=u},function(e,t,n){var r=n(28),o=n(25);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==r(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(12);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i,a=!0,u=!1;return{s:function(){o=e[Symbol.iterator]()},n:function(){var e=o.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==o.return||o.return()}finally{if(u)throw i}}}}},function(e,t,n){var r=n(39);e.exports=function(e){return r(e)&&e!=+e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(2),o=n(3),i=n(22),a=function(){function e(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object(r.a)(this,e),this.key=t,this.value=n,this._options=o,this._options.ignoreCase=this._options.ignoreCase||!1}return Object(o.a)(e,[{key:"has",value:function(t){return e.isEnumItem(t)?0!==(this.value&t.value):Object(i.c)(t)?this._options.ignoreCase?this.key.toLowerCase().indexOf(t.toLowerCase())>=0:this.key.indexOf(t)>=0:0!==(this.value&t)}},{key:"is",value:function(t){return e.isEnumItem(t)?this.key===t.key:Object(i.c)(t)?this._options.ignoreCase?this.key.toLowerCase()===t.toLowerCase():this.key===t:this.value===t}},{key:"toString",value:function(){return this.key}},{key:"toJSON",value:function(){return this.key}},{key:"valueOf",value:function(){return this.value}}],[{key:"isEnumItem",value:function(t){return t instanceof e||Object(i.b)(t)&&void 0!==t.key&&void 0!==t.value}}]),e}()},function(e,t,n){var r=n(132),o=n(329),i=n(33);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},function(e,t,n){var r=n(132),o=n(330),i=n(33);e.exports=function(e){return e&&e.length?r(e,i,o):void 0}},function(e,t,n){var r=n(29);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(245),o=n(246),i=n(247),a=n(248),u=n(249);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t100)throw r=0,new Error("Call stack overflow for "+l);if(""===e)throw new Error(i+"(): '"+l+"' must contain a non-whitespace string");var c=function(e){var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,o=r.exec(e);for(;o;)o&&o[1]&&(-1===n.indexOf(o[1].toLowerCase())&&(t.push(o[1]),n.push(o[1].toLowerCase())),o=r.exec(e));return t}(e=function(e,t){e=e.replace(/((?:\-[a-z]+\-)?calc)/g,"");var r,i="",a=e;for(;r=u.exec(a);){r[0].index>0&&(i+=a.substring(0,r[0].index));var l=o("(",")",a.substring([0].index));if(""===l.body)throw new Error("'"+e+"' must contain a non-whitespace string");var c=n(l.body,"",t);i+=l.pre+c,a=l.post}return i+a}(e,l));if(c.length>1||e.indexOf("var(")>-1)return i+"("+e+")";var s=c[0]||"";"%"===s&&(e=e.replace(/\b[0-9\.]+%/g,(function(e){return.01*parseFloat(e.slice(0,-1))})));var f,p=e.replace(new RegExp(s,"gi"),"");try{f=a.eval(p)}catch(d){return i+"("+e+")"}return"%"===s&&(f*=100),(i.length||"%"===s)&&(f=Math.round(f*t)/t),f+=s}return r=0,t=Math.pow(10,void 0===t?5:t),e=e.replace(/\n+/g," "),i(e,/((?:\-[a-z]+\-)?calc)\(/,n)}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(53),o=n(100),i=n(69),a=Object.defineProperty;t.f=n(30)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(u){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(29);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(220),o=n(74);e.exports=function(e){return r(o(e))}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(11),o=n(74),i=n(24),a=n(77),u="["+a+"]",l=RegExp("^"+u+u+"*"),c=RegExp(u+u+"*$"),s=function(e,t,n){var o={},u=i((function(){return!!a[e]()||"\u200b\x85"!="\u200b\x85"[e]()})),l=o[e]=u?t(f):a[e];n&&(o[n]=l),r(r.P+r.F*u,"String",o)},f=s.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(c,"")),e};e.exports=s},function(e,t){e.exports="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},function(e,t){e.exports=function(e,t){return e===t||e!==e&&t!==t}},function(e,t,n){var r=n(27)(n(17),"Map");e.exports=r},function(e,t,n){var r=n(261),o=n(268),i=n(270),a=n(271),u=n(272);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){var r=n(126),o=n(61);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n>>8,n[2*r+1]=a%256}return n},decompressFromUint8Array:function(t){if(null===t||void 0===t)return i.decompress(t);for(var n=new Array(t.length/2),r=0,o=n.length;r>=1}else{for(o=1,r=0;r>=1}0==--f&&(f=Math.pow(2,d),d++),delete u[s]}else for(o=a[s],r=0;r>=1;0==--f&&(f=Math.pow(2,d),d++),a[c]=p++,s=String(l)}if(""!==s){if(Object.prototype.hasOwnProperty.call(u,s)){if(s.charCodeAt(0)<256){for(r=0;r>=1}else{for(o=1,r=0;r>=1}0==--f&&(f=Math.pow(2,d),d++),delete u[s]}else for(o=a[s],r=0;r>=1;0==--f&&(f=Math.pow(2,d),d++)}for(o=2,r=0;r>=1;for(;;){if(y<<=1,v==t-1){h.push(n(y));break}v++}return h.join("")},decompress:function(e){return null==e?"":""==e?null:i._decompress(e.length,32768,(function(t){return e.charCodeAt(t)}))},_decompress:function(t,n,r){var o,i,a,u,l,c,s,f=[],p=4,d=4,h=3,y="",v=[],m={val:r(0),position:n,index:1};for(o=0;o<3;o+=1)f[o]=o;for(a=0,l=Math.pow(2,2),c=1;c!=l;)u=m.val&m.position,m.position>>=1,0==m.position&&(m.position=n,m.val=r(m.index++)),a|=(u>0?1:0)*c,c<<=1;switch(a){case 0:for(a=0,l=Math.pow(2,8),c=1;c!=l;)u=m.val&m.position,m.position>>=1,0==m.position&&(m.position=n,m.val=r(m.index++)),a|=(u>0?1:0)*c,c<<=1;s=e(a);break;case 1:for(a=0,l=Math.pow(2,16),c=1;c!=l;)u=m.val&m.position,m.position>>=1,0==m.position&&(m.position=n,m.val=r(m.index++)),a|=(u>0?1:0)*c,c<<=1;s=e(a);break;case 2:return""}for(f[3]=s,i=s,v.push(s);;){if(m.index>t)return"";for(a=0,l=Math.pow(2,h),c=1;c!=l;)u=m.val&m.position,m.position>>=1,0==m.position&&(m.position=n,m.val=r(m.index++)),a|=(u>0?1:0)*c,c<<=1;switch(s=a){case 0:for(a=0,l=Math.pow(2,8),c=1;c!=l;)u=m.val&m.position,m.position>>=1,0==m.position&&(m.position=n,m.val=r(m.index++)),a|=(u>0?1:0)*c,c<<=1;f[d++]=e(a),s=d-1,p--;break;case 1:for(a=0,l=Math.pow(2,16),c=1;c!=l;)u=m.val&m.position,m.position>>=1,0==m.position&&(m.position=n,m.val=r(m.index++)),a|=(u>0?1:0)*c,c<<=1;f[d++]=e(a),s=d-1,p--;break;case 2:return v.join("")}if(0==p&&(p=Math.pow(2,h),h++),f[s])y=f[s];else{if(s!==d)return null;y=i+i.charAt(0)}v.push(y),f[d++]=i+y.charAt(0),i=y,0==--p&&(p=Math.pow(2,h),h++)}}};return i}();void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=Array.prototype.indexOf||function(e,t){void 0===t&&(t=0),t<0&&(t+=this.length),t<0&&(t=0);for(var n=this.length;t-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){var r=n(219),o=n(102),i=n(73),a=n(69),u=n(54),l=n(100),c=Object.getOwnPropertyDescriptor;t.f=n(30)?c:function(e,t){if(e=i(e),t=a(t,!0),l)try{return c(e,t)}catch(n){}if(u(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(54),o=n(73),i=n(222)(!1),a=n(110)("IE_PROTO");e.exports=function(e,t){var n,u=o(e),l=0,c=[];for(n in u)n!=a&&r(u,n)&&c.push(n);for(;t.length>l;)r(u,n=t[l++])&&(~i(c,n)||c.push(n));return c}},function(e,t,n){var r=n(105)("keys"),o=n(104);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(72);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},function(e,t,n){var r=n(29),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++ns))return!1;var p=l.get(e),d=l.get(t);if(p&&d)return p==t&&d==e;var h=-1,y=!0,v=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++h0&&i(s)?n>1?e(s,n-1,i,a,u):r(u,s):a||(u[u.length]=s)}return u}},function(e,t,n){var r=n(62),o=n(31);e.exports=function(e,t){var n=-1,i=o(e)?Array(e.length):[];return r(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}},function(e,t,n){var r=n(33),o=n(323),i=n(325);e.exports=function(e,t){return i(o(e,t,r),e+"")}},function(e,t,n){var r=n(32);e.exports=function(e,t,n){for(var o=-1,i=e.length;++o(l=(a=Math.ceil(p/7))>l?a+1:l+1)&&(i=l,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((l=c.length)-(i=s.length)<0&&(i=l,r=s,s=c,c=r),n=0;i;)n=(c[--i]=c[i]+s[i]+n)/h|0,c[i]%=h;for(n&&(c.unshift(n),++o),l=c.length;0==c[--l];)c.pop();return t.d=c,t.e=o,u?_(t,p):t}function g(e,t,n){if(e!==~~e||en)throw Error(c+e)}function b(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;te.e^i.s<0?1:-1;for(t=0,n=(r=i.d.length)<(o=e.d.length)?r:o;te.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},v.decimalPlaces=v.dp=function(){var e=this,t=e.d.length-1,n=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},v.dividedBy=v.div=function(e){return x(this,new this.constructor(e))},v.dividedToIntegerBy=v.idiv=function(e){var t=this.constructor;return _(x(this,new t(e),0,1),t.precision)},v.equals=v.eq=function(e){return!this.cmp(e)},v.exponent=function(){return O(this)},v.greaterThan=v.gt=function(e){return this.cmp(e)>0},v.greaterThanOrEqualTo=v.gte=function(e){return this.cmp(e)>=0},v.isInteger=v.isint=function(){return this.e>this.d.length-2},v.isNegative=v.isneg=function(){return this.s<0},v.isPositive=v.ispos=function(){return this.s>0},v.isZero=function(){return 0===this.s},v.lessThan=v.lt=function(e){return this.cmp(e)<0},v.lessThanOrEqualTo=v.lte=function(e){return this.cmp(e)<1},v.logarithm=v.log=function(e){var t,n=this,r=n.constructor,o=r.precision,a=o+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(i))throw Error(l+"NaN");if(n.s<1)throw Error(l+(n.s?"NaN":"-Infinity"));return n.eq(i)?new r(0):(u=!1,t=x(E(n,a),E(e,a),a),u=!0,_(t,o))},v.minus=v.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?P(t,e):m(t,(e.s=-e.s,e))},v.modulo=v.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(l+"NaN");return n.s?(u=!1,t=x(n,e,0,1).times(e),u=!0,n.minus(t)):_(new r(n),o)},v.naturalExponential=v.exp=function(){return w(this)},v.naturalLogarithm=v.ln=function(){return E(this)},v.negated=v.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},v.plus=v.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?m(t,e):P(t,(e.s=-e.s,e))},v.precision=v.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(c+e);if(t=O(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 e&&t>n?t:n},v.squareRoot=v.sqrt=function(){var e,t,n,r,o,i,a,c=this,s=c.constructor;if(c.s<1){if(!c.s)return new s(0);throw Error(l+"NaN")}for(e=O(c),u=!1,0==(o=Math.sqrt(+c))||o==1/0?(((t=b(c.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=f((e+1)/2)-(e<0||e%2),r=new s(t=o==1/0?"1e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new s(o.toString()),o=a=(n=s.precision)+3;;)if(r=(i=r).plus(x(c,i,a+2)).times(.5),b(i.d).slice(0,a)===(t=b(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(_(i,n+1,0),i.times(i).eq(c)){r=i;break}}else if("9999"!=t)break;a+=4}return u=!0,_(r,n)},v.times=v.mul=function(e){var t,n,r,o,i,a,l,c,s,f=this,p=f.constructor,d=f.d,y=(e=new p(e)).d;if(!f.s||!e.s)return new p(0);for(e.s*=f.s,n=f.e+e.e,(c=d.length)<(s=y.length)&&(i=d,d=y,y=i,a=c,c=s,s=a),i=[],r=a=c+s;r--;)i.push(0);for(r=s;--r>=0;){for(t=0,o=c+r;o>r;)l=i[o]+y[r]*d[o-r-1]+t,i[o--]=l%h|0,t=l/h|0;i[o]=(i[o]+t)%h|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,u?_(e,p.precision):e},v.toDecimalPlaces=v.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(g(e,0,1e9),void 0===t?t=r.rounding:g(t,0,8),_(n,e+O(n)+1,t))},v.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=j(r,!0):(g(e,0,1e9),void 0===t?t=o.rounding:g(t,0,8),n=j(r=_(new o(r),e+1,t),!0,e+1)),n},v.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?j(o):(g(e,0,1e9),void 0===t?t=i.rounding:g(t,0,8),n=j((r=_(new i(o),e+O(o)+1,t)).abs(),!1,e+O(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},v.toInteger=v.toint=function(){var e=this,t=e.constructor;return _(new t(e),O(e)+1,t.rounding)},v.toNumber=function(){return+this},v.toPower=v.pow=function(e){var t,n,r,o,a,c,s=this,p=s.constructor,d=+(e=new p(e));if(!e.s)return new p(i);if(!(s=new p(s)).s){if(e.s<1)throw Error(l+"Infinity");return s}if(s.eq(i))return s;if(r=p.precision,e.eq(i))return _(s,r);if(c=(t=e.e)>=(n=e.d.length-1),a=s.s,c){if((n=d<0?-d:d)<=9007199254740991){for(o=new p(i),t=Math.ceil(r/7+4),u=!1;n%2&&M((o=o.times(s)).d,t),0!==(n=f(n/2));)M((s=s.times(s)).d,t);return u=!0,e.s<0?new p(i).div(o):_(o,r)}}else if(a<0)throw Error(l+"NaN");return a=a<0&&1&e.d[Math.max(t,n)]?-1:1,s.s=1,u=!1,o=e.times(E(s,r+12)),u=!0,(o=w(o)).s=a,o},v.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=j(o,(n=O(o))<=i.toExpNeg||n>=i.toExpPos):(g(e,1,1e9),void 0===t?t=i.rounding:g(t,0,8),r=j(o=_(new i(o),e,t),e<=(n=O(o))||n<=i.toExpNeg,e)),r},v.toSignificantDigits=v.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(g(e,1,1e9),void 0===t?t=n.rounding:g(t,0,8)),_(new n(this),e,t)},v.toString=v.valueOf=v.val=v.toJSON=function(){var e=this,t=O(e),n=e.constructor;return j(e,t<=n.toExpNeg||t>=n.toExpPos)};var x=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%h|0,r=n/h|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;ot[o]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]1;)e.shift()}return function(r,o,i,a){var u,c,s,f,p,d,y,v,m,g,b,x,w,k,S,E,T,P,j=r.constructor,M=r.s==o.s?1:-1,A=r.d,C=o.d;if(!r.s)return new j(r);if(!o.s)throw Error(l+"Division by zero");for(c=r.e-o.e,T=C.length,S=A.length,v=(y=new j(M)).d=[],s=0;C[s]==(A[s]||0);)++s;if(C[s]>(A[s]||0)&&--c,(x=null==i?i=j.precision:a?i+(O(r)-O(o))+1:i)<0)return new j(0);if(x=x/7+2|0,s=0,1==T)for(f=0,C=C[0],x++;(s1&&(C=e(C,f),A=e(A,f),T=C.length,S=A.length),k=T,g=(m=A.slice(0,T)).length;g=h/2&&++E;do{f=0,(u=t(C,m,T,g))<0?(b=m[0],T!=g&&(b=b*h+(m[1]||0)),(f=b/E|0)>1?(f>=h&&(f=h-1),1==(u=t(p=e(C,f),m,d=p.length,g=m.length))&&(f--,n(p,T16)throw Error(s+O(e));if(!e.s)return new d(i);for(null==t?(u=!1,l=h):l=t,a=new d(.03125);e.abs().gte(.1);)e=e.times(a),f+=5;for(l+=Math.log(p(2,f))/Math.LN10*2+5|0,n=r=o=new d(i),d.precision=l;;){if(r=_(r.times(e),l),n=n.times(++c),b((a=o.plus(x(r,n,l))).d).slice(0,l)===b(o.d).slice(0,l)){for(;f--;)o=_(o.times(o),l);return d.precision=h,null==t?(u=!0,_(o,h)):o}o=a}}function O(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function k(e,t,n){if(t>e.LN10.sd())throw u=!0,n&&(e.precision=n),Error(l+"LN10 precision limit exceeded");return _(new e(e.LN10),t)}function S(e){for(var t="";e--;)t+="0";return t}function E(e,t){var n,r,o,a,c,s,f,p,d,h=1,y=e,v=y.d,m=y.constructor,g=m.precision;if(y.s<1)throw Error(l+(y.s?"NaN":"-Infinity"));if(y.eq(i))return new m(0);if(null==t?(u=!1,p=g):p=t,y.eq(10))return null==t&&(u=!0),k(m,p);if(p+=10,m.precision=p,r=(n=b(v)).charAt(0),a=O(y),!(Math.abs(a)<15e14))return f=k(m,p+2,g).times(a+""),y=E(new m(r+"."+n.slice(1)),p-10).plus(f),m.precision=g,null==t?(u=!0,_(y,g)):y;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=b((y=y.times(e)).d)).charAt(0),h++;for(a=O(y),r>1?(y=new m("0."+n),a++):y=new m(r+"."+n.slice(1)),s=c=y=x(y.minus(i),y.plus(i),p),d=_(y.times(y),p),o=3;;){if(c=_(c.times(d),p),b((f=s.plus(x(c,new m(o),p))).d).slice(0,p)===b(s.d).slice(0,p))return s=s.times(2),0!==a&&(s=s.plus(k(m,p+2,g).times(a+""))),s=x(s,new m(h),p),m.precision=g,null==t?(u=!0,_(s,g)):s;s=f,o+=2}}function T(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=f(n/7),e.d=[],r=(n+1)%7,n<0&&(r+=7),ry||e.e<-y))throw Error(s+n)}else e.s=0,e.e=0,e.d=[0];return e}function _(e,t,n){var r,o,i,a,l,c,d,v,m=e.d;for(a=1,i=m[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=7,o=t,d=m[v=0];else{if((v=Math.ceil((r+1)/7))>=(i=m.length))return e;for(d=i=m[v],a=1;i>=10;i/=10)a++;o=(r%=7)-7+a}if(void 0!==n&&(l=d/(i=p(10,a-o-1))%10|0,c=t<0||void 0!==m[v+1]||d%i,c=n<4?(l||c)&&(0==n||n==(e.s<0?3:2)):l>5||5==l&&(4==n||c||6==n&&(r>0?o>0?d/p(10,a-o):0:m[v-1])%10&1||n==(e.s<0?8:7))),t<1||!m[0])return c?(i=O(e),m.length=1,t=t-i-1,m[0]=p(10,(7-t%7)%7),e.e=f(-t/7)||0):(m.length=1,m[0]=e.e=e.s=0),e;if(0==r?(m.length=v,i=1,v--):(m.length=v+1,i=p(10,7-r),m[v]=o>0?(d/p(10,a-o)%p(10,o)|0)*i:0),c)for(;;){if(0==v){(m[0]+=i)==h&&(m[0]=1,++e.e);break}if(m[v]+=i,m[v]!=h)break;m[v--]=0,i=1}for(r=m.length;0===m[--r];)m.pop();if(u&&(e.e>y||e.e<-y))throw Error(s+O(e));return e}function P(e,t){var n,r,o,i,a,l,c,s,f,p,d=e.constructor,y=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),u?_(t,y):t;if(c=e.d,p=t.d,r=t.e,s=e.e,c=c.slice(),a=s-r){for((f=a<0)?(n=c,a=-a,l=p.length):(n=p,r=s,l=c.length),a>(o=Math.max(Math.ceil(y/7),l)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((f=(o=c.length)<(l=p.length))&&(l=o),o=0;o0;--o)c[l++]=0;for(o=p.length;o>a;){if(c[--o]0?i=i.charAt(0)+"."+i.slice(1)+S(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+S(-o-1)+i,n&&(r=n-a)>0&&(i+=S(r))):o>=a?(i+=S(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+S(r))):((r=o+1)0&&(o+1===a&&(i+="."),i+=S(r))),e.s<0?"-"+i:i}function M(e,t){if(e.length>t)return e.length=t,!0}function A(e){if(!e||"object"!==typeof e)throw Error(l+"Object expected");var t,n,r,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t=o[t+1]&&r<=o[t+2]))throw Error(c+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(c+n+": "+r);this[n]=new this(r)}return this}(a=function e(t){var n,r,o;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"===typeof e){if(0*e!==0)throw Error(c+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):T(t,e.toString())}if("string"!==typeof e)throw Error(c+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!d.test(e))throw Error(c+e);T(t,e)}if(i.prototype=v,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=A,void 0===t&&(t={}),t)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n=t?n.apply(void 0,l):e(t-s,u((function(){for(var e=arguments.length,t=new Array(e),o=0;o-1}},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i=0||(o[n]=e[n]);return o}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"===typeof n)return n(e,r);var i=o.default.Children.only(n);return o.default.cloneElement(i,r)},r}(o.default.Component);function c(){}l.contextTypes={transitionGroup:r.object},l.childContextTypes={transitionGroup:function(){}},l.propTypes={},l.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:c,onEntering:c,onEntered:c,onExit:c,onExiting:c,onExited:c},l.UNMOUNTED=0,l.EXITED=1,l.ENTERING=2,l.ENTERED=3,l.EXITING=4;var s=(0,a.polyfill)(l);t.default=s},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function o(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function i(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof e.getDerivedStateFromProps&&"function"!==typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,u=null;if("function"===typeof t.componentWillMount?n="componentWillMount":"function"===typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"===typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"===typeof t.componentWillUpdate?u="componentWillUpdate":"function"===typeof t.UNSAFE_componentWillUpdate&&(u="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==u){var l=e.displayName||e.name,c="function"===typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+l+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==u?"\n "+u:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=o),"function"===typeof t.getSnapshotBeforeUpdate){if("function"!==typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=i;var s=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;s.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",(function(){return a})),r.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0},function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;var r;(r=n(0))&&r.__esModule;t.timeoutsShape=null;t.classNamesShape=null},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=u(n(0)),o=u(n(1)),i=n(139),a=n(360);function u(e){return e&&e.__esModule?e:{default:e}}function l(){return(l=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,["component","childFactory"]),i=s(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i:o.default.createElement(t,r,i)},r}(o.default.Component);f.childContextTypes={transitionGroup:r.default.object.isRequired},f.propTypes={},f.defaultProps={component:"div",childFactory:function(e){return e}};var p=(0,i.polyfill)(f);t.default=p,e.exports=t.default},function(e,t,n){var r=n(143);e.exports=function(e){return e?(e=r(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},function(e,t,n){var r=n(13),o=n(32),i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=u.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},function(e,t,n){var r=n(113),o=n(20),i=n(311),a=n(9),u=n(63);e.exports=function(e,t,n){var l=a(e)?r:i;return n&&u(e,t,n)&&(t=void 0),l(e,o(t,3))}},function(e,t,n){var r=n(129),o=n(331);e.exports=function(e,t){return r(o(e,t),1)}},function(e,t,n){var r=n(46),o=n(350),i=n(131),a=n(351),u=i((function(e){var t=r(e,a);return t.length&&t[0]===e[0]?o(t):[]}));e.exports=u},function(e,t,n){var r=n(119),o=n(353),i=n(20),a=n(9);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){var r=n(361)(n(362));e.exports=r},function(e,t,n){var r=n(366),o=n(13);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},function(e,t,n){"use strict";var r,o="object"===typeof Reflect?Reflect:null,i=o&&"function"===typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=o&&"function"===typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!==e};function u(){u.init.call(this)}e.exports=u,e.exports.once=function(e,t){return new Promise((function(n,r){function o(){void 0!==i&&e.removeListener("error",i),n([].slice.call(arguments))}var i;"error"!==t&&(i=function(n){e.removeListener(t,o),r(n)},e.once("error",i)),e.once(t,o)}))},u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var l=10;function c(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function s(e){return void 0===e._maxListeners?u.defaultMaxListeners:e._maxListeners}function f(e,t,n,r){var o,i,a,u;if(c(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"===typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=s(e))>0&&a.length>o&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,u=l,console&&console.warn&&console.warn(u)}return e}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=p.bind(r);return o.listener=n,r.wrapFn=o,o}function h(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"===typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var u=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var l=o[e];if(void 0===l)return!1;if("function"===typeof l)i(l,this,t);else{var c=l.length,s=v(l,c);for(n=0;n=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},u.prototype.listeners=function(e){return h(this,e,!0)},u.prototype.rawListeners=function(e){return h(this,e,!1)},u.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):y.call(e,t)},u.prototype.listenerCount=y,u.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){"use strict";var r=n(368),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function l(e){return r.isMemo(e)?a:u[e.$$typeof]||o}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=a;var c=Object.defineProperty,s=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var o=d(n);o&&o!==h&&e(t,o,r)}var a=s(n);f&&(a=a.concat(f(n)));for(var u=l(t),y=l(n),v=0;vM.length&&M.push(e)}function N(e,t,n){return null==e?0:function e(t,n,r,o){var u=typeof t;"undefined"!==u&&"boolean"!==u||(t=null);var l=!1;if(null===t)l=!0;else switch(u){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case i:case a:l=!0}}if(l)return r(o,t,""===n?"."+I(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c