From bc097c38fa76563e7361b2193508a8ce13d73cae Mon Sep 17 00:00:00 2001 From: Determinant Date: Sun, 10 Feb 2019 01:48:32 -0500 Subject: split chunks to reduce extension size --- dist/vendors~index~popup.js | 70 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 dist/vendors~index~popup.js (limited to 'dist/vendors~index~popup.js') diff --git a/dist/vendors~index~popup.js b/dist/vendors~index~popup.js new file mode 100644 index 0000000..f779a8a --- /dev/null +++ b/dist/vendors~index~popup.js @@ -0,0 +1,70 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],[function(e,t,n){e.exports=n(478)()},function(e,t,n){"use strict";e.exports=n(474)},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},,function(e,t,n){"use strict";n.d(t,"i",function(){return d}),n.d(t,"h",function(){return h}),n.d(t,"g",function(){return y}),n.d(t,"f",function(){return v}),n.d(t,"j",function(){return b}),n.d(t,"c",function(){return g}),n.d(t,"b",function(){return x}),n.d(t,"d",function(){return w}),n.d(t,"e",function(){return O}),n.d(t,"a",function(){return _});var r=n(226),i=n.n(r),o=n(16),a=n.n(o),u=n(248),l=n.n(u),c=n(227),s=n.n(c),f=n(57),p=n.n(f),d=function(e){return 0===e?0:e>0?1:-1},h=function(e){return p()(e)&&e.indexOf("%")===e.length-1},y=function(e){return s()(e)&&!l()(e)},v=function(e){return y(e)||p()(e)},m=0,b=function(e){var t=++m;return"".concat(e||"").concat(t)},g=function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!y(e)&&!p()(e))return r;if(h(e)){var o=e.indexOf("%");n=t*parseFloat(e.slice(0,o))/100}else n=+e;return l()(n)&&(n=r),i&&n>t&&(n=t),n},x=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},w=function(e){if(!a()(e))return!1;for(var t=e.length,n={},r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var w={alignmentBaseline:v.a.string,angle:v.a.number,baselineShift:v.a.string,clip:v.a.string,clipPath:v.a.string,clipRule:v.a.string,color:v.a.string,colorInterpolation:v.a.string,colorInterpolationFilters:v.a.string,colorProfile:v.a.string,colorRendering:v.a.string,cursor:v.a.string,direction:v.a.oneOf(["ltr","rtl","inherit"]),display:v.a.string,dominantBaseline:v.a.string,enableBackground:v.a.string,fill:v.a.string,fillOpacity:v.a.oneOfType([v.a.string,v.a.number]),fillRule:v.a.oneOf(["nonzero","evenodd","inherit"]),filter:v.a.string,floodColor:v.a.string,floodOpacity:v.a.oneOfType([v.a.string,v.a.number]),font:v.a.string,fontFamily:v.a.string,fontSize:v.a.oneOfType([v.a.number,v.a.string]),fontSizeAdjust:v.a.oneOfType([v.a.number,v.a.string]),fontStretch:v.a.oneOf(["normal","wider","narrower","ultra-condensed","extra-condensed","condensed","semi-condensed","semi-expanded","expanded","extra-expanded","ultra-expanded","inherit"]),fontStyle:v.a.oneOf(["normal","italic","oblique","inherit"]),fontVariant:v.a.oneOf(["normal","small-caps","inherit"]),fontWeight:v.a.oneOf(["normal","bold","bolder","lighter",100,200,300,400,500,600,700,800,900,"inherit"]),glyphOrientationHorizontal:v.a.string,glyphOrientationVertical:v.a.string,imageRendering:v.a.oneOf(["auto","optimizeSpeed","optimizeQuality","inherit"]),kerning:v.a.oneOfType([v.a.number,v.a.string]),letterSpacing:v.a.oneOfType([v.a.number,v.a.string]),lightingColor:v.a.string,lineHeight:v.a.oneOfType([v.a.number,v.a.string]),markerEnd:v.a.string,markerMid:v.a.string,markerStart:v.a.string,mask:v.a.string,opacity:v.a.oneOfType([v.a.number,v.a.string]),overflow:v.a.oneOf(["visible","hidden","scroll","auto","inherit"]),pointerEvents:v.a.oneOf(["visiblePainted","visibleFill","visibleStroke","visible","painted","fill","stroke","all","none","inherit"]),shapeRendering:v.a.oneOf(["auto","optimizeSpeed","crispEdges","geometricPrecision","inherit"]),stopColor:v.a.string,stopOpacity:v.a.oneOfType([v.a.number,v.a.string]),stroke:v.a.oneOfType([v.a.number,v.a.string]),strokeDasharray:v.a.string,strokeDashoffset:v.a.oneOfType([v.a.number,v.a.string]),strokeLinecap:v.a.oneOf(["butt","round","square","inherit"]),strokeLinejoin:v.a.oneOf(["miter","round","bevel","inherit"]),strokeMiterlimit:v.a.oneOfType([v.a.number,v.a.string]),strokeOpacity:v.a.oneOfType([v.a.number,v.a.string]),strokeWidth:v.a.oneOfType([v.a.number,v.a.string]),textAnchor:v.a.oneOf(["start","middle","end","inherit"]),textDecoration:v.a.oneOf(["none","underline","overline","line-through","blink","inherit"]),textRendering:v.a.oneOf(["auto","optimizeSpeed","optimizeLegibility","geometricPrecision","inherit"]),unicodeBidi:v.a.oneOf(["normal","embed","bidi-override","inherit"]),visibility:v.a.oneOf(["visible","hidden","collapse","inherit"]),wordSpacing:v.a.oneOfType([v.a.number,v.a.string]),writingMode:v.a.oneOf(["lr-tb","rl-tb","tb-rl","lr","rl","tb","inherit"]),transform:v.a.string,style:v.a.object,width:v.a.number,height:v.a.number,dx:v.a.number,dy:v.a.number,x:v.a.number,y:v.a.number,r:v.a.number,radius:v.a.oneOfType([v.a.number,v.a.array])},O={onClick:v.a.func,onMouseDown:v.a.func,onMouseUp:v.a.func,onMouseOver:v.a.func,onMouseMove:v.a.func,onMouseOut:v.a.func,onMouseEnter:v.a.func,onMouseLeave:v.a.func,onTouchEnd:v.a.func,onTouchMove:v.a.func,onTouchStart:v.a.func,onTouchCancel:v.a.func},_={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},k=["auto","linear","pow","sqrt","log","identity","time","band","point","ordinal","quantile","quantize","utc","sequential","threshold"],j=["plainline","line","square","rect","circle","cross","diamond","star","triangle","wye","none"],S=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},T=function(e,t){var n=[],r=[];return r=p()(t)?t.map(function(e){return S(e)}):[S(t)],h.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},E=function(e,t){var n=T(e,t);return n&&n[0]},M=function(e){if(!e||s()(e))return null;var t=h.a.isValidElement(e)?e.props:e;if(!l()(t))return null;var n=null;for(var r in t)({}).hasOwnProperty.call(t,r)&&w[r]&&(n||(n={}),n[r]=t[r]);return n},P=function(e,t){return function(n){return e(t,n),null}},C=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e||s()(e))return null;var r=h.a.isValidElement(e)?e.props:e;if(!l()(r))return null;var i=null;for(var o in r)({}).hasOwnProperty.call(r,o)&&O[o]&&(i||(i={}),i[o]=t||(n?P(r[o],r):r[o]));return i},A=function(e,t,n){return function(r){return e(t,n,r),null}},N=function(e,t,n){if(!l()(e))return null;var r=null;for(var i in e)({}).hasOwnProperty.call(e,i)&&O[i]&&s()(e[i])&&(r||(r={}),r[i]=A(e[i],t,n));return r},I=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!Object(m.g)(n)||n<=0||!Object(m.g)(r)||r<=0)},R=function(){return!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout)},D=["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"],L=function(e,t){if(i()(e)&&i()(t))return!0;if(!i()(e)&&!i()(t)){var n=e.props||{},r=n.children,o=x(n,["children"]),a=t.props||{},u=a.children,l=x(a,["children"]);return r&&u?Object(b.b)(o,l)&&z(r,u):!r&&!u&&Object(b.b)(o,l)}return!1},z=function e(t,n){if(t===n)return!0;if(d.Children.count(t)!==d.Children.count(n))return!1;var r=d.Children.count(t);if(0===r)return!0;if(1===r)return L(p()(t)?t[0]:t,p()(n)?n[0]:n);for(var i=0;i=0}(e))n.push(e);else if(e&&t[S(e.type)]){var o=S(e.type),u=t[o],l=u.handler,c=u.once;if(c&&!r[o]||!c){var s=l(e,o,i);p()(s)?n=[n].concat(g(s)):n.push(s),r[o]=!0}}}),n},F=function(e){var t=e&&e.type;return t&&_[t]?_[t]:null},B=function(e,t){var n=-1;return d.Children.forEach(t,function(t,r){t===e&&(n=r)}),n}},function(e,t,n){var r; +/*! + Copyright (c) 2017 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/ +/*! + Copyright (c) 2017 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/ +!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t,n){var r=n(61),i=n(37),o="[object AsyncFunction]",a="[object Function]",u="[object GeneratorFunction]",l="[object Proxy]";e.exports=function(e){if(!i(e))return!1;var t=r(e);return t==a||t==u||t==o||t==l}},function(e,t){e.exports=function(e){return null==e}},function(e,t,n){"use strict";var r=n(52),i=n.n(r),o=n(280),a=n.n(o),u=n(248),l=n.n(u),c=n(57),s=n.n(c),f=n(445),p=n.n(f),d=n(446),h=n.n(d),y=n(16),v=n.n(y),m=n(447),b=n.n(m),g=n(9),x=n.n(g),w=n(226),O=n.n(w),_=n(10),k=n.n(_),j=n(332),S=n(48),T=n(18),E=n(4),M=n(1),P=n.n(M),C=n(0),A=n.n(C),N=n(6),I=n.n(N),R=n(13),D=n(21),L=n(228),z=n(5),U=n(40),F=n(279),B=n.n(F),W=n(333),V=n.n(W);function G(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{}).bandAware;if(void 0!==e){if(t){var n=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+n}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}();X.EPS=1e-4;var Y,K,Q,J=function(){function e(t){G(this,e),this.scales=V()(t,X.create),Object.assign(this,this.scales)}return q(e,null,[{key:"create",value:function(e){return new this(e)}}]),q(e,[{key:"apply",value:function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).bandAware,n=this.scales;return V()(e,function(e,r){return n[r].apply(e,{bandAware:t})})}},{key:"isInRange",value:function(e){var t=this.scales;return B()(e,function(e,n){return t[n].isInRange(e)})}}]),e}(),Z=n(56);function ee(e){return(ee="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 te(){return(te=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Be(e,t){for(var n=0;n1){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[o-1].coordinate,c=n[u].coordinate,s=u>=o-1?n[0].coordinate:n[u+1].coordinate,f=void 0;if(Object(E.i)(c-l)!==Object(E.i)(s-c)){var p=[];if(Object(E.i)(s-c)===Object(E.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]){i=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){i=n[u].index;break}}}else for(var b=0;b0&&b(t[b].coordinate+t[b-1].coordinate)/2&&e<=(t[b].coordinate+t[b+1].coordinate)/2||b===o-1&&e>(t[b].coordinate+t[b-1].coordinate)/2){i=t[b].index;break}}else i=0;return i},et=function(e){var t;switch(e.type.displayName){case"Line":case"Area":case"Radar":t=e.props.stroke;break;default:t=e.props.fill}return t},tt=function(e){var t,n=e.children,r=e.formatedGraphicalItems,i=e.legendWidth,o=e.legendContent,a=Object(z.h)(n,$e.a);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===o?(r||[]).reduce(function(e,t){var n=t.item,r=t.props,i=r.sectors||r.data||[];return e.concat(i.map(function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}}))},[]):(r||[]).map(function(e){var t=e.item,n=t.props,r=n.dataKey,i=n.name,o=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||o||"square",color:et(t),value:i||r,payload:t.props}}),Ye({},a.props,$e.a.getWithHeight(a,i),{payload:t,item:a})):null},nt=function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var i={},o=Object.keys(r),a=0,u=o.length;a=0});if(y&&y.length){var v=y[0].props.barSize,m=y[0].props[h];i[m]||(i[m]=[]),i[m].push({item:y[0],stackList:y.slice(1),barSize:k()(v)?t:v})}}return i},rt=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,i=e.sizeList,o=void 0===i?[]:i,a=e.maxBarSize,u=o.length;if(u<1)return null;var l,c=Object(E.c)(t,r,0,!0);if(o[0].barSize===+o[0].barSize){var s=!1,f=r/u,p=o.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=o.reduce(function(e,t){var n=Xe(e).concat([{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=Object(E.c)(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=o.reduce(function(e,t,n){var r=Xe(e).concat([{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},it=function(e,t,n,r){var i=n.children,o=n.width,a=n.height,u=n.margin,l=o-(u.left||0)-(u.right||0),c=a-(u.top||0)-(u.bottom||0),s=tt({children:i,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)&&Object(E.g)(e[d])&&(f=Ye({},e,Ke({},d,f[d]+(p.width||0)))),("horizontal"===y||"vertical"===y&&"center"===d)&&Object(E.g)(e[h])&&(f=Ye({},e,Ke({},h,f[h]+(p.height||0))))}return f},ot=function(e,t,n,r){var i=t.props.children,o=Object(z.g)(i,qe).filter(function(e){var t=e.props.direction;return!(!k()(t)&&!k()(r))||r.indexOf(t)>=0});if(o&&o.length){var a=o.map(function(e){return e.props.dataKey});return e.reduce(function(e,t){var r=Qe(t,n,0),i=v()(r)?[h()(r),p()(r)]:[r,r],o=a.reduce(function(e,n){var r=Qe(t,n,0),o=i[0]-Math.abs(v()(r)?r[0]:r),a=i[1]+Math.abs(v()(r)?r[1]:r);return[Math.min(o,e[0]),Math.max(a,e[1])]},[1/0,-1/0]);return[Math.min(o[0],e[0]),Math.max(o[1],e[1])]},[1/0,-1/0])}return null},at=function(e,t,n,r){var i=t.map(function(t){return ot(e,t,n,r)}).filter(function(e){return!k()(e)});return i&&i.length?i.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]):null},ut=function(e,t,n,r){var i=t.map(function(t){var i=t.props.dataKey;return"number"===n&&i&&ot(e,t,i)||Je(e,i,n,r)});if("number"===n)return i.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]);var o={};return i.reduce(function(e,t){for(var n=0,r=t.length;n=0||t.indexOf("AreaChart")>=0)?{scale:S.scalePoint(),realScaleType:"point"}:"category"===r?{scale:S.scaleBand(),realScaleType:"band"}:{scale:S.scaleLinear(),realScaleType:"linear"};if(s()(n)){var a="scale".concat(n.slice(0,1).toUpperCase()).concat(n.slice(1));return{scale:(S[a]||S.scalePoint)(),realScaleType:S[a]?a:"point"}}return x()(n)?{scale:n}:{scale:S.scalePoint(),realScaleType:"point"}},dt=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),i=Math.min(r[0],r[1])-1e-4,o=Math.max(r[0],r[1])+1e-4,a=e(t[0]),u=e(t[n-1]);(ao||uo)&&e.domain([t[0],t[n-1]])}},ht={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n=0?(e[a][n][0]=i,e[a][n][1]=i+u,i=e[a][n][1]):(e[a][n][0]=o,e[a][n][1]=o+u,o=e[a][n][1])}},expand:T.o,none:T.p,silhouette:T.q,wiggle:T.r},yt=function(e,t,n){var r=t.map(function(e){return e.props.dataKey});return Object(T.n)().keys(r).value(function(e,t){return+Qe(e,t,0)}).order(T.s).offset(ht[n])(e)},vt=function(e,t,n,r,i,o){if(!e)return null;var a=(o?t.reverse():t).reduce(function(e,t){var i=t.props,o=i.stackId;if(i.hide)return e;var a=t.props[n],u=e[a]||{hasStack:!1,stackGroups:{}};if(Object(E.f)(o)){var l=u.stackGroups[o]||{numericAxisId:n,cateAxisId:r,items:[]};l.items.push(t),u.hasStack=!0,u.stackGroups[o]=l}else u.stackGroups[Object(E.j)("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return Ye({},e,Ke({},a,u))},{});return Object.keys(a).reduce(function(t,o){var u=a[o];return u.hasStack&&(u.stackGroups=Object.keys(u.stackGroups).reduce(function(t,o){var a=u.stackGroups[o];return Ye({},t,Ke({},o,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:yt(e,a.items,i)}))},{})),Ye({},t,Ke({},o,u))},{})},mt=function(e,t){var n=t.realScaleType,r=t.type,i=t.tickCount,o=t.originalDomain,a=t.allowDecimals,u=n||t.scale;if("auto"!==u&&"linear"!==u)return null;if(i&&"number"===r&&o&&("auto"===o[0]||"auto"===o[1])){var l=e.domain(),c=Object(j.getNiceTickValues)(l,i,a);return e.domain(function(e,t){return"number"===t?[Math.min.apply(null,e),Math.max.apply(null,e)]:e}(c,r)),{niceTicks:c}}if(i&&"number"===r){var s=e.domain();return{niceTicks:Object(j.getTickValuesFixedDomain)(s,i,a)}}return null},bt=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},gt=function(e,t,n,r,i){var o=Object(z.g)(e,Se),a=Object(z.g)(e,fe),u=o.concat(a),l=Object(z.g)(e,De),c="".concat(r,"Id"),s=r[0],f=t;if(u.length&&(f=u.reduce(function(e,t){if(t.props[c]===n&&bt(t.props,"extendDomain")&&Object(E.g)(t.props[s])){var r=t.props[s];return[Math.min(e[0],r),Math.max(e[1],r)]}return e},f)),l.length){var p="".concat(s,"1"),d="".concat(s,"2");f=l.reduce(function(e,t){if(t.props[c]===n&&bt(t.props,"extendDomain")&&Object(E.g)(t.props[p])&&Object(E.g)(t.props[d])){var r=t.props[p],i=t.props[d];return[Math.min(e[0],r,i),Math.max(e[1],r,i)]}return e},f)}return i&&i.length&&(f=i.reduce(function(e,t){return Object(E.g)(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e},f)),f},xt=function(e,t){var n=e.props.stackId;if(Object(E.f)(n)){var r=t[n];if(r&&r.items.length){for(var i=-1,o=0,a=r.items.length;o=0?r.stackedData[i]:null}}return null},wt=function(e,t,n){return Object.keys(e).reduce(function(r,i){var o=e[i].stackedData.reduce(function(e,r){var i=r.slice(t,n+1).reduce(function(e,t){return[Math.min.apply(null,t.concat([e[0]]).filter(E.g)),Math.max.apply(null,t.concat([e[1]]).filter(E.g))]},[1/0,-1/0]);return[Math.min(e[0],i[0]),Math.max(e[1],i[1])]},[1/0,-1/0]);return[Math.min(o[0],r[0]),Math.max(o[1],r[1])]},[1/0,-1/0]).map(function(e){return e===1/0||e===-1/0?0:e})},Ot=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,_t=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,kt=function(e,t,n){if(!v()(e))return t;var r=[];if(Object(E.g)(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(Ot.test(e[0])){var i=+Ot.exec(e[0])[1];r[0]=t[0]-i}else x()(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(Object(E.g)(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(_t.test(e[1])){var o=+_t.exec(e[1])[1];r[1]=t[1]+o}else x()(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},jt=function(e,t){if(e&&e.scale&&e.scale.bandwidth)return e.scale.bandwidth();if(e&&t&&t.length>=2){for(var n=a()(t,function(e){return e.coordinate}),r=1/0,i=1,o=n.length;i1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r,y=t.withTheme,v=void 0!==y&&y,b=t.flip,w=void 0===b?null:b,_=t.name,A=(0,f.default)(t,["withTheme","flip","name"]),N=(0,k.default)(e),I=N.themingEnabled||"string"==typeof _||v;E+=1,N.options.index=E;var R=function(e){function t(e,n){var r;(0,a.default)(this,t),(r=(0,l.default)(this,(0,c.default)(t).call(this,e,n))).jss=n[m.default.jss]||S,r.sheetsManager=M,r.unsubscribeId=null;var i=n.muiThemeProviderOptions;return i&&(i.sheetsManager&&(r.sheetsManager=i.sheetsManager),r.sheetsCache=i.sheetsCache,r.disableStylesGeneration=i.disableStylesGeneration),r.stylesCreatorSaved=N,r.sheetOptions=(0,o.default)({generateClassName:T},n[m.default.sheetOptions]),r.theme=I?O.default.initial(n)||C:P,r.attach(r.theme),r.cacheClasses={value:null,lastProp:null,lastJSS:{}},r}return(0,s.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){var e=this;I&&(this.unsubscribeId=O.default.subscribe(this.context,function(t){var n=e.theme;e.theme=t,e.attach(e.theme),e.setState({},function(){e.detach(n)})}))}},{key:"componentDidUpdate",value:function(){this.stylesCreatorSaved}},{key:"componentWillUnmount",value:function(){this.detach(this.theme),null!==this.unsubscribeId&&O.default.unsubscribe(this.context,this.unsubscribeId)}},{key:"getClasses",value:function(){if(this.disableStylesGeneration)return this.props.classes||{};var e=!1,t=x.default.get(this.sheetsManager,this.stylesCreatorSaved,this.theme);return t.sheet.classes!==this.cacheClasses.lastJSS&&(this.cacheClasses.lastJSS=t.sheet.classes,e=!0),this.props.classes!==this.cacheClasses.lastProp&&(this.cacheClasses.lastProp=this.props.classes,e=!0),e&&(this.cacheClasses.value=(0,g.default)({baseClasses:this.cacheClasses.lastJSS,newClasses:this.props.classes,Component:n})),this.cacheClasses.value}},{key:"attach",value:function(e){if(!this.disableStylesGeneration){var t=this.stylesCreatorSaved,n=x.default.get(this.sheetsManager,t,e);if(n||(n={refs:0,sheet:null},x.default.set(this.sheetsManager,t,e,n)),0===n.refs){var r;this.sheetsCache&&(r=x.default.get(this.sheetsCache,t,e)),r||((r=this.createSheet(e)).attach(),this.sheetsCache&&x.default.set(this.sheetsCache,t,e,r)),n.sheet=r;var i=this.context[m.default.sheetsRegistry];i&&i.add(r)}n.refs+=1}}},{key:"createSheet",value:function(e){var t=this.stylesCreatorSaved.create(e,_),r=_;return this.jss.createStyleSheet(t,(0,o.default)({meta:r,classNamePrefix:r,flip:"boolean"==typeof w?w:"rtl"===e.direction,link:!1},this.sheetOptions,this.stylesCreatorSaved.options,{name:_||n.displayName},A))}},{key:"detach",value:function(e){if(!this.disableStylesGeneration){var t=x.default.get(this.sheetsManager,this.stylesCreatorSaved,e);if(t.refs-=1,0===t.refs){x.default.delete(this.sheetsManager,this.stylesCreatorSaved,e),this.jss.removeStyleSheet(t.sheet);var n=this.context[m.default.sheetsRegistry];n&&n.remove(t.sheet)}}}},{key:"render",value:function(){var e=this.props,t=(e.classes,e.innerRef),r=(0,f.default)(e,["classes","innerRef"]),i=(0,j.default)({theme:this.theme,name:_,props:r});return v&&!i.theme&&(i.theme=this.theme),p.default.createElement(n,(0,o.default)({},i,{classes:this.getClasses(),ref:t}))}}]),t}(p.default.Component);return R.contextTypes=(0,o.default)((r={muiThemeProviderOptions:d.default.object},(0,i.default)(r,m.default.jss,d.default.object),(0,i.default)(r,m.default.sheetOptions,d.default.object),(0,i.default)(r,m.default.sheetsRegistry,d.default.object),r),I?O.default.contextTypes:{}),(0,h.default)(R,n),R}});t.default=function(e,t){return y.ponyfillGlobal.__MUI_STYLES__.withStyles(e,(0,o.default)({defaultTheme:C},t))}},function(e,t,n){"use strict";function r(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 i(e,t){return!r(e,this.props)||!r(t,this.state)}function o(e){e.prototype.shouldComponentUpdate=i}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return o})},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";n.r(t);var r=n(340),i=n.n(r);n.d(t,"componentPropType",function(){return i.a});var o=n(342),a=n.n(o);n.d(t,"chainPropTypes",function(){return a.a});var u=n(343),l=n.n(u);n.d(t,"exactProp",function(){return l.a});var c=n(344),s=n.n(c);n.d(t,"getDisplayName",function(){return s.a});var f=n(345),p=n.n(f);n.d(t,"ponyfillGlobal",function(){return p.a})},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"e",function(){return p}),n.d(t,"c",function(){return d}),n.d(t,"b",function(){return h}),n.d(t,"d",function(){return m});var r=n(10),i=n.n(r),o=n(4),a=n(11);function u(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},h=function(e,t,n,r,s){var f=e.width,p=e.height,h=e.startAngle,y=e.endAngle,v=Object(o.c)(e.cx,f,f/2),m=Object(o.c)(e.cy,p,p/2),b=d(f,p,n),g=Object(o.c)(e.innerRadius,b,0),x=Object(o.c)(e.outerRadius,b,.8*b);return Object.keys(t).reduce(function(e,n){var o,f=t[n],p=f.domain,d=f.reversed;if(i()(f.range))"angleAxis"===r?o=[h,y]:"radiusAxis"===r&&(o=[g,x]),d&&(o=[o[1],o[0]]);else{var b=c(o=f.range,2);h=b[0],y=b[1]}var w=Object(a.x)(f,s),O=w.realScaleType,_=w.scale;_.domain(p).range(o),Object(a.c)(_);var k=Object(a.r)(_,u({},f,{realScaleType:O})),j=u({},f,k,{range:o,radius:x,realScaleType:O,scale:_,cx:v,cy:m,innerRadius:g,outerRadius:x,startAngle:h,endAngle:y});return u({},e,l({},n,j))},{})},y=function(e,t){var n,r,i,o,a,u,l=e.x,c=e.y,s=t.cx,p=t.cy,d=(r={x:s,y:p},i=(n={x:l,y:c}).x,o=n.y,a=r.x,u=r.y,Math.sqrt(Math.pow(i-a,2)+Math.pow(o-u,2)));if(d<=0)return{radius:d};var h=(l-s)/d,y=Math.acos(h);return c>p&&(y=2*Math.PI-y),{radius:d,angle:f(y),angleInRadian:y}},v=function(e,t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360);return e+360*Math.min(i,o)},m=function(e,t){var n=e.x,r=e.y,i=y({x:n,y:r},t),o=i.radius,a=i.angle,l=t.innerRadius,c=t.outerRadius;if(oc)return!1;if(0===o)return!0;var s,f=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:t-360*o,endAngle:n-360*o}}(t),p=f.startAngle,d=f.endAngle,h=a;if(p<=d){for(;h>d;)h-=360;for(;h=p&&h<=d}else{for(;h>p;)h-=360;for(;h=d&&h<=p}return s?u({},t,{radius:o,angle:v(h,t)}):null}},function(e,t,n){"use strict";var r=Math.PI,i=2*r,o=i-1e-6;function a(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function u(){return new a}a.prototype=u.prototype={constructor:a,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,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,i,o){e=+e,t=+t,n=+n,i=+i,o=+o;var a=this._x1,u=this._y1,l=n-e,c=i-t,s=a-e,f=u-t,p=s*s+f*f;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(p>1e-6)if(Math.abs(f*l-c*s)>1e-6&&o){var d=n-a,h=i-u,y=l*l+c*c,v=d*d+h*h,m=Math.sqrt(y),b=Math.sqrt(p),g=o*Math.tan((r-Math.acos((y+p-v)/(2*m*b)))/2),x=g/b,w=g/m;Math.abs(x-1)>1e-6&&(this._+="L"+(e+x*s)+","+(t+x*f)),this._+="A"+o+","+o+",0,0,"+ +(f*d>s*h)+","+(this._x1=e+w*l)+","+(this._y1=t+w*c)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,a,u,l){e=+e,t=+t;var c=(n=+n)*Math.cos(a),s=n*Math.sin(a),f=e+c,p=t+s,d=1^l,h=l?a-u:u-a;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+f+","+p:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-p)>1e-6)&&(this._+="L"+f+","+p),n&&(h<0&&(h=h%i+i),h>o?this._+="A"+n+","+n+",0,1,"+d+","+(e-c)+","+(t-s)+"A"+n+","+n+",0,1,"+d+","+(this._x1=f)+","+(this._y1=p):h>1e-6&&(this._+="A"+n+","+n+",0,"+ +(h>=r)+","+d+","+(this._x1=e+n*Math.cos(u))+","+(this._y1=t+n*Math.sin(u))))},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 l=u,c=function(e){return function(){return e}},s=(Math.abs,Math.atan2,Math.cos,Math.max,Math.min,Math.sin,Math.sqrt,1e-12),f=Math.PI,p=2*f;function d(e){this._context=e}d.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var h=function(e){return new d(e)};function y(e){return e[0]}function v(e){return e[1]}var m=function(){var e=y,t=v,n=c(!0),r=null,i=h,o=null;function a(a){var u,c,s,f=a.length,p=!1;for(null==r&&(o=i(s=l())),u=0;u<=f;++u)!(u=f;--p)u.point(m[p],b[p]);u.lineEnd(),u.areaEnd()}v&&(m[s]=+e(d,s,c),b[s]=+n(d,s,c),u.point(t?+t(d,s,c):m[s],r?+r(d,s,c):b[s]))}if(h)return u=null,h+""||null}function f(){return m().defined(i).curve(a).context(o)}return s.x=function(n){return arguments.length?(e="function"==typeof n?n:c(+n),t=null,s):e},s.x0=function(t){return arguments.length?(e="function"==typeof t?t:c(+t),s):e},s.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:c(+e),s):t},s.y=function(e){return arguments.length?(n="function"==typeof e?e:c(+e),r=null,s):n},s.y0=function(e){return arguments.length?(n="function"==typeof e?e:c(+e),s):n},s.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:c(+e),s):r},s.lineX0=s.lineY0=function(){return f().x(e).y(n)},s.lineY1=function(){return f().x(e).y(r)},s.lineX1=function(){return f().x(t).y(n)},s.defined=function(e){return arguments.length?(i="function"==typeof e?e:c(!!e),s):i},s.curve=function(e){return arguments.length?(a=e,null!=o&&(u=a(o)),s):a},s.context=function(e){return arguments.length?(null==e?o=u=null:u=a(o=e),s):o},s};x(h);function g(e){this._curve=e}function x(e){function t(t){return new g(e(t))}return t._curve=e,t}g.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var w=Array.prototype.slice;var O={draw:function(e,t){var n=Math.sqrt(t/f);e.moveTo(n,0),e.arc(0,0,n,0,p)}},_={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()}},k=Math.sqrt(1/3),j=2*k,S={draw:function(e,t){var n=Math.sqrt(t/j),r=n*k;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},T=Math.sin(f/10)/Math.sin(7*f/10),E=Math.sin(p/10)*T,M=-Math.cos(p/10)*T,P={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=E*n,i=M*n;e.moveTo(0,-n),e.lineTo(r,i);for(var o=1;o<5;++o){var a=p*o/5,u=Math.cos(a),l=Math.sin(a);e.lineTo(l*n,-u*n),e.lineTo(u*r-l*i,l*r+u*i)}e.closePath()}},C={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},A=Math.sqrt(3),N={draw:function(e,t){var n=-Math.sqrt(t/(3*A));e.moveTo(0,2*n),e.lineTo(-A*n,-n),e.lineTo(A*n,-n),e.closePath()}},I=Math.sqrt(3)/2,R=1/Math.sqrt(12),D=3*(R/2+1),L={draw:function(e,t){var n=Math.sqrt(t/D),r=n/2,i=n*R,o=r,a=n*R+n,u=-o,l=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(u,l),e.lineTo(-.5*r-I*i,I*r+-.5*i),e.lineTo(-.5*o-I*a,I*o+-.5*a),e.lineTo(-.5*u-I*l,I*u+-.5*l),e.lineTo(-.5*r+I*i,-.5*i-I*r),e.lineTo(-.5*o+I*a,-.5*a-I*o),e.lineTo(-.5*u+I*l,-.5*l-I*u),e.closePath()}},z=function(){var e=c(O),t=c(64),n=null;function r(){var r;if(n||(n=r=l()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"==typeof t?t:c(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:c(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r},U=function(){};function F(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function B(e){this._context=e}B.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:F(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:F(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var W=function(e){return new B(e)};function V(e){this._context=e}V.prototype={areaStart:U,areaEnd:U,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:F(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var G=function(e){return new V(e)};function H(e){this._context=e}H.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:F(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var q=function(e){return new H(e)};function $(e,t){this._basis=new B(e),this._beta=t}$.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],o=t[0],a=e[n]-i,u=t[n]-o,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(i+r*a),this._beta*t[l]+(1-this._beta)*(o+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};(function e(t){function n(e){return 1===t?new B(e):new $(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function X(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Y(e,t){this._context=e,this._k=(1-t)/6}Y.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:X(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:X(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return new Y(e,t)}return n.tension=function(t){return e(+t)},n})(0);function K(e,t){this._context=e,this._k=(1-t)/6}K.prototype={areaStart:U,areaEnd:U,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:X(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return new K(e,t)}return n.tension=function(t){return e(+t)},n})(0);function Q(e,t){this._context=e,this._k=(1-t)/6}Q.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:X(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return new Q(e,t)}return n.tension=function(t){return e(+t)},n})(0);function J(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>s){var u=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*u-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*u-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>s){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,f=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/f,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/f}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function Z(e,t){this._context=e,this._alpha=t}Z.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:J(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return t?new Z(e,t):new Y(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function ee(e,t){this._context=e,this._alpha=t}ee.prototype={areaStart:U,areaEnd:U,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:J(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return t?new ee(e,t):new K(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function te(e,t){this._context=e,this._alpha=t}te.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:J(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function n(e){return t?new te(e,t):new Q(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function ne(e){this._context=e}ne.prototype={areaStart:U,areaEnd:U,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var re=function(e){return new ne(e)};function ie(e){return e<0?-1:1}function oe(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),u=(o*i+a*r)/(r+i);return(ie(o)+ie(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function ae(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function ue(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,u=(o-r)/3;e._context.bezierCurveTo(r+u,i+u*t,o-u,a-u*n,o,a)}function le(e){this._context=e}function ce(e){this._context=new se(e)}function se(e){this._context=e}function fe(e){return new le(e)}function pe(e){return new ce(e)}function de(e){this._context=e}function he(e){var t,n,r=e.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[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}};var me=function(e){return new ve(e,.5)};function be(e){return new ve(e,0)}function ge(e){return new ve(e,1)}var xe=function(e,t){if((i=e.length)>1)for(var n,r,i,o=1,a=e[t[0]],u=a.length;o=0;)n[t]=t;return n};function Oe(e,t){return e[t]}var _e=function(){var e=c([]),t=we,n=xe,r=Oe;function i(i){var o,a,u=e.apply(this,arguments),l=i.length,c=u.length,s=new Array(c);for(o=0;o0){for(var n,r,i,o=0,a=e[0].length;o0){for(var n,r=0,i=e[t[0]],o=i.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,a=1;a=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var f={className:a.a.string,children:a.a.oneOfType([a.a.arrayOf(a.a.node),a.a.node])};function p(e){var t=e.children,n=e.className,r=s(e,["children","className"]),o=l()("recharts-layer",n);return i.a.createElement("g",c({className:o},r),t)}p.propTypes=f,t.a=p},function(e,t,n){var r=n(83),i=n(258);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){var r=n(558);e.exports=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&&r(e,t)}},function(e,t,n){"use strict";var r=function(){};e.exports=r},,function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createGenerateClassName",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"createMuiTheme",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"jssPreset",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"MuiThemeProvider",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"createStyles",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"withStyles",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"withTheme",{enumerable:!0,get:function(){return s.default}});var i=r(n(338)),o=r(n(291)),a=r(n(346)),u=r(n(556)),l=r(n(560)),c=r(n(12)),s=r(n(234))},,function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(475)},,,,function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(628))},,,function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}});var i=r(n(820))},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},,function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.capitalize=function(e){0;return e.charAt(0).toUpperCase()+e.slice(1)},t.contains=o,t.findIndex=a,t.find=function(e,t){var n=a(e,t);return n>-1?e[n]:void 0},t.createChainedFunction=function(){for(var e=arguments.length,t=new Array(e),n=0;n=0?1:-1;"insideStart"===o?(r=v+k*u,i=w):"insideEnd"===o?(r=g-k*u,i=!w):"end"===o&&(r=g+k*u,i=w),i=_<=0?i:!i;var j=Object(b.e)(f,p,O,r),S=Object(b.e)(f,p,O,r+359*(i?1:-1)),T="M".concat(j.x,",").concat(j.y,"\n A").concat(O,",").concat(O,",0,1,").concat(i?0:1,",\n ").concat(S.x,",").concat(S.y),E=l()(e.id)?Object(m.j)("recharts-radial-line-"):e.id;return s.a.createElement("text",x({},n,{dominantBaseline:"central",className:h()("recharts-radial-bar-label",c)}),s.a.createElement("defs",null,s.a.createElement("path",{id:E,d:T})),s.a.createElement("textPath",{xlinkHref:"#".concat(E)},t))},T=function(e){var t=e.viewBox,n=e.offset,r=e.position,i=t.cx,o=t.cy,a=t.innerRadius,u=t.outerRadius,l=(t.startAngle+t.endAngle)/2;if("outside"===r){var c=Object(b.e)(i,o,u+n,l),s=c.x;return{x:s,y:c.y,textAnchor:s>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"end"};var f=(a+u)/2,p=Object(b.e)(i,o,f,l);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},E=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t.x,a=t.y,u=t.width,l=t.height,c=l>=0?1:-1;return"top"===r?{x:o+u/2,y:a-c*n,textAnchor:"middle",verticalAnchor:c>0?"end":"start"}:"bottom"===r?{x:o+u/2,y:a+l+c*n,textAnchor:"middle",verticalAnchor:"start"}:"left"===r?{x:o-n,y:a+l/2,textAnchor:"end",verticalAnchor:"middle"}:"right"===r?{x:o+u+n,y:a+l/2,textAnchor:"start",verticalAnchor:"middle"}:"insideLeft"===r?{x:o+n,y:a+l/2,textAnchor:"start",verticalAnchor:"middle"}:"insideRight"===r?{x:o+u-n,y:a+l/2,textAnchor:"end",verticalAnchor:"middle"}:"insideTop"===r?{x:o+u/2,y:a+c*n,textAnchor:"middle",verticalAnchor:"start"}:"insideBottom"===r?{x:o+u/2,y:a+l-c*n,textAnchor:"middle",verticalAnchor:"end"}:"insideTopLeft"===r?{x:o+n,y:a+c*n,textAnchor:"start",verticalAnchor:"start"}:"insideTopRight"===r?{x:o+u-n,y:a+c*n,textAnchor:"end",verticalAnchor:"start"}:"insideBottomLeft"===r?{x:o+n,y:a+l-c*n,textAnchor:"start",verticalAnchor:"end"}:"insideBottomRight"===r?{x:o+u-n,y:a+l-c*n,textAnchor:"end",verticalAnchor:"end"}:i()(r)&&(Object(m.g)(r.x)||Object(m.h)(r.x))&&(Object(m.g)(r.y)||Object(m.h)(r.y))?{x:o+Object(m.c)(r.x,u),y:a+Object(m.c)(r.y,l),textAnchor:"end",verticalAnchor:"end"}:{x:o+u/2,y:a+l/2,textAnchor:"middle",verticalAnchor:"middle"}},M=function(e){return Object(m.g)(e.cx)};function P(e){var t,n=e.viewBox,r=e.position,i=e.value,o=e.children,u=e.content,f=e.className,p=void 0===f?"":f;if(!n||l()(i)&&l()(o)&&!Object(c.isValidElement)(u)&&!a()(u))return null;if(Object(c.isValidElement)(u))return Object(c.cloneElement)(u,e);if(a()(u)){if(t=u(e),Object(c.isValidElement)(t))return t}else t=j(e);var d=M(n),m=Object(v.j)(e);if(d&&("insideStart"===r||"insideEnd"===r||"end"===r))return S(e,t,m);var b=d?T(e):E(e);return s.a.createElement(y.a,x({className:h()("recharts-label",p)},m,b),t)}P.displayName="Label",P.defaultProps={offset:5},P.propTypes=k;var C=function(e){var t=e.cx,n=e.cy,r=e.angle,i=e.startAngle,o=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(Object(m.g)(h)&&Object(m.g)(y)){if(Object(m.g)(s)&&Object(m.g)(f))return{x:s,y:f,width:h,height:y};if(Object(m.g)(p)&&Object(m.g)(d))return{x:p,y:d,width:h,height:y}}return Object(m.g)(s)&&Object(m.g)(f)?{x:s,y:f,width:0,height:0}:Object(m.g)(t)&&Object(m.g)(n)?{cx:t,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:l||0,outerRadius:c||u||a||0,clockWise:v}:e.viewBox?e.viewBox:{}};P.parseViewBox=C,P.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=C(e),u=Object(v.g)(r,P).map(function(e,n){return Object(c.cloneElement)(e,{viewBox:t||o,key:"label-".concat(n)})});return n?[function(e,t){return e?!0===e?s.a.createElement(P,{key:"label-implicit",viewBox:t}):Object(m.f)(e)?s.a.createElement(P,{key:"label-implicit",viewBox:t,value:e}):Object(c.isValidElement)(e)||a()(e)?s.a.createElement(P,{key:"label-implicit",content:e,viewBox:t}):i()(e)?s.a.createElement(P,x({viewBox:t},e,{key:"label-implicit"})):null:null}(e.label,t||o)].concat(g(u)):u},t.a=P},,,function(e,t,n){"use strict";var r=n(10),i=n.n(r),o=n(1),a=n.n(o),u=n(0),l=n.n(u),c=n(288),s=n.n(c),f=n(6),p=n.n(f),d=n(4),h=n(5),y=n(47);function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){return(m="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 b(){return(b=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function x(e,t){for(var n=0;n=0&&i===+i?"".concat(i,"px"):i),";");var r,i,a},"")},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||Object(r.m)())return{width:0,height:0};var n="".concat(e),o=c(t),l="".concat(n,"-").concat(o);if(a.widthCache[l])return a.widthCache[l];try{var s=document.getElementById("recharts_measurement_span");s||((s=document.createElement("span")).setAttribute("id","recharts_measurement_span"),document.body.appendChild(s));var f=function(e){for(var t=1;t2e3&&(a.cacheCount=0,a.widthCache={}),d}catch(e){return{width:0,height:0}}},f=function(e){var t=e.ownerDocument.documentElement,n={top:0,left:0};return void 0!==e.getBoundingClientRect&&(n=e.getBoundingClientRect()),{top:n.top+window.pageYOffset-t.clientTop,left:n.left+window.pageXOffset-t.clientLeft}},p=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}},function(e,t,n){"use strict";n.r(t);var r=function(e,t){return et?1:e>=t?0:NaN},i=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return r(t(e),n)}),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;e(t[o],n)>0?i=o:r=o+1}return r}}};var o=i(r),a=o.right,u=(o.left,a);var l=function(e){return null===e?NaN:+e},c=Array.prototype,s=(c.slice,c.map,function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r0)return[e];if((r=t0)for(e=Math.ceil(e/a),t=Math.floor(t/a),o=new Array(i=Math.ceil(t-e+1));++u=0?(o>=f?10:o>=p?5:o>=d?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=f?10:o>=p?5:o>=d?2:1)}function v(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=f?i*=10:o>=p?i*=5:o>=d&&(i*=2),t=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}};function b(){}function g(e,t){var n=new b;if(e instanceof b)e.each(function(e,t){n.set(t,e)});else if(Array.isArray(e)){var r,i=-1,o=e.length;if(null==t)for(;++i>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=z.exec(e))?$(parseInt(t[1],16)):(t=U.exec(e))?new Q(t[1],t[2],t[3],1):(t=F.exec(e))?new Q(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=B.exec(e))?X(t[1],t[2],t[3],t[4]):(t=W.exec(e))?X(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=V.exec(e))?Z(t[1],t[2]/100,t[3]/100,1):(t=G.exec(e))?Z(t[1],t[2]/100,t[3]/100,t[4]):H.hasOwnProperty(e)?$(H[e]):"transparent"===e?new Q(NaN,NaN,NaN,0):null}function $(e){return new Q(e>>16&255,e>>8&255,255&e,1)}function X(e,t,n,r){return r<=0&&(e=t=n=NaN),new Q(e,t,n,r)}function Y(e){return e instanceof N||(e=q(e)),e?new Q((e=e.rgb()).r,e.g,e.b,e.opacity):new Q}function K(e,t,n,r){return 1===arguments.length?Y(e):new Q(e,t,n,null==r?1:r)}function Q(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function J(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Z(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new te(e,t,n,r)}function ee(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof te)return new te(e.h,e.s,e.l,e.opacity);if(e instanceof N||(e=q(e)),!e)return new te;if(e instanceof te)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,u=o-i,l=(o+i)/2;return u?(a=t===o?(n-r)/u+6*(n0&&l<1?0:a,new te(a,u,l,e.opacity)}(e):new te(e,t,n,null==r?1:r)}function te(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ne(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}C(N,q,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),C(Q,K,A(N,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Q(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Q(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+J(this.r)+J(this.g)+J(this.b)},toString:function(){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+")")}})),C(te,ee,A(N,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new te(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new te(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,i=2*n-r;return new Q(ne(e>=240?e-240:e+120,i,r),ne(e,i,r),ne(e<120?e+240:e-120,i,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}}));var re=Math.PI/180,ie=180/Math.PI,oe=.96422,ae=1,ue=.82521,le=4/29,ce=6/29,se=3*ce*ce,fe=ce*ce*ce;function pe(e){if(e instanceof he)return new he(e.l,e.a,e.b,e.opacity);if(e instanceof we){if(isNaN(e.h))return new he(e.l,0,0,e.opacity);var t=e.h*re;return new he(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof Q||(e=Y(e));var n,r,i=be(e.r),o=be(e.g),a=be(e.b),u=ye((.2225045*i+.7168786*o+.0606169*a)/ae);return i===o&&o===a?n=r=u:(n=ye((.4360747*i+.3850649*o+.1430804*a)/oe),r=ye((.0139322*i+.0971045*o+.7141733*a)/ue)),new he(116*u-16,500*(n-u),200*(u-r),e.opacity)}function de(e,t,n,r){return 1===arguments.length?pe(e):new he(e,t,n,null==r?1:r)}function he(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function ye(e){return e>fe?Math.pow(e,1/3):e/se+le}function ve(e){return e>ce?e*e*e:se*(e-le)}function me(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function be(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ge(e){if(e instanceof we)return new we(e.h,e.c,e.l,e.opacity);if(e instanceof he||(e=pe(e)),0===e.a&&0===e.b)return new we(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ie;return new we(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function xe(e,t,n,r){return 1===arguments.length?ge(e):new we(e,t,n,null==r?1:r)}function we(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}C(he,de,A(N,{brighter:function(e){return new he(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new he(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Q(me(3.1338561*(t=oe*ve(t))-1.6168667*(e=ae*ve(e))-.4906146*(n=ue*ve(n))),me(-.9787684*t+1.9161415*e+.033454*n),me(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),C(we,xe,A(N,{brighter:function(e){return new we(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new we(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return pe(this).rgb()}}));var Oe=-.14861,_e=1.78277,ke=-.29227,je=-.90649,Se=1.97294,Te=Se*je,Ee=Se*_e,Me=_e*ke-je*Oe;function Pe(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Ce)return new Ce(e.h,e.s,e.l,e.opacity);e instanceof Q||(e=Y(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(Me*r+Te*t-Ee*n)/(Me+Te-Ee),o=r-i,a=(Se*(n-i)-ke*o)/je,u=Math.sqrt(a*a+o*o)/(Se*i*(1-i)),l=u?Math.atan2(a,o)*ie-120:NaN;return new Ce(l<0?l+360:l,u,i,e.opacity)}(e):new Ce(e,t,n,null==r?1:r)}function Ce(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ae(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}C(Ce,Pe,A(N,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Ce(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Ce(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*re,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Q(255*(t+n*(Oe*r+_e*i)),255*(t+n*(ke*r+je*i)),255*(t+n*(Se*r)),this.opacity)}}));var Ne=function(e){return function(){return e}};function Ie(e,t){return function(n){return e+n*t}}function Re(e,t){var n=t-e;return n?Ie(e,n>180||n<-180?n-360*Math.round(n/360):n):Ne(isNaN(e)?t:e)}function De(e){return 1==(e=+e)?Le: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):Ne(isNaN(t)?n:t)}}function Le(e,t){var n=t-e;return n?Ie(e,n):Ne(isNaN(e)?t:e)}var ze=function e(t){var n=De(t);function r(e,t){var r=n((e=K(e)).r,(t=K(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Le(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Ue(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),u=new Array(i);for(n=0;n=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,u=ro&&(i=t.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(n=n[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,l.push({i:a,x:Fe(n,r)})),o=We.lastIndex;return o180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Fe(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(o.rotate,a.rotate,u,l),function(e,t,n,o){e!==t?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Fe(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(o.skewX,a.skewX,u,l),function(e,t,n,r,o,a){if(e!==n||t!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:Fe(e,n)},{i:u-2,x:Fe(t,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,l),o=a=null,function(e){for(var t,n=-1,r=l.length;++n2?ut:at,r=i=null,s}function s(t){return(r||(r=n(o,a,l?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=t?0:e>=n?1:r(e)}}}(e):e,u)))(+t)}return s.invert=function(e){return(i||(i=n(a,o,ot,l?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=0?t:e>=1?n:r(e)}}}(t):t)))(+e)},s.domain=function(e){return arguments.length?(o=j.call(e,rt),c()):o.slice()},s.range=function(e){return arguments.length?(a=S.call(e),c()):a.slice()},s.rangeRound=function(e){return a=S.call(e),u=Xe,c()},s.clamp=function(e){return arguments.length?(l=!!e,c()):l},s.interpolate=function(e){return arguments.length?(u=e,c()):u},c()}var st=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)]},ft=function(e){return(e=st(Math.abs(e)))?e[1]:NaN},pt=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function dt(e){return new ht(e)}function ht(e){if(!(t=pt.exec(e)))throw new Error("invalid format: "+e);var t;this.fill=t[1]||" ",this.align=t[2]||">",this.sign=t[3]||"-",this.symbol=t[4]||"",this.zero=!!t[5],this.width=t[6]&&+t[6],this.comma=!!t[7],this.precision=t[8]&&+t[8].slice(1),this.trim=!!t[9],this.type=t[10]||""}dt.prototype=ht.prototype,ht.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var yt,vt,mt,bt,gt=function(e){e:for(var t,n=e.length,r=1,i=-1;r0){if(!+e[r])break e;i=0}}return i>0?e.slice(0,i)+e.slice(t+1):e},xt=function(e,t){var n=st(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},wt={"%":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 xt(100*e,t)},r:xt,s:function(e,t){var n=st(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(yt=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+st(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},Ot=function(e){return e},_t=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];vt=function(e){var t,n,r=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,r){for(var i=e.length,o=[],a=0,u=t[0],l=0;i>0&&u>0&&(l+u+1>r&&(u=Math.max(1,r-l)),o.push(e.substring(i-=u,i+u)),!((l+=u+1)>r));)u=t[a=(a+1)%t.length];return o.reverse().join(n)}):Ot,i=e.currency,o=e.decimal,a=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(e.numerals):Ot,u=e.percent||"%";function l(e){var t=(e=dt(e)).fill,n=e.align,l=e.sign,c=e.symbol,s=e.zero,f=e.width,p=e.comma,d=e.precision,h=e.trim,y=e.type;"n"===y?(p=!0,y="g"):wt[y]||(null==d&&(d=12),h=!0,y="g"),(s||"0"===t&&"="===n)&&(s=!0,t="0",n="=");var v="$"===c?i[0]:"#"===c&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",m="$"===c?i[1]:/[%p]/.test(y)?u:"",b=wt[y],g=/[defgprs%]/.test(y);function x(e){var i,u,c,x=v,w=m;if("c"===y)w=b(e)+w,e="";else{var O=(e=+e)<0;if(e=b(Math.abs(e),d),h&&(e=gt(e)),O&&0==+e&&(O=!1),x=(O?"("===l?l:"-":"-"===l||"("===l?"":l)+x,w=("s"===y?_t[8+yt/3]:"")+w+(O&&"("===l?")":""),g)for(i=-1,u=e.length;++i(c=e.charCodeAt(i))||c>57){w=(46===c?o+e.slice(i+1):e.slice(i))+w,e=e.slice(0,i);break}}p&&!s&&(e=r(e,1/0));var _=x.length+e.length+w.length,k=_>1)+x+e+w+k.slice(_);break;default:e=k+x+e+w}return a(e)}return d=null==d?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),x.toString=function(){return e+""},x}return{format:l,formatPrefix:function(e,t){var n=l(((e=dt(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(ft(t)/3))),i=Math.pow(10,-r),o=_t[8+r/3];return function(e){return n(i*e)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),mt=vt.format,bt=vt.formatPrefix;var kt=function(e,t,n){var r,i=e[0],o=e[e.length-1],a=v(i,o,null==t?10:t);switch((n=dt(null==n?",f":n)).type){case"s":var u=Math.max(Math.abs(i),Math.abs(o));return null!=n.precision||isNaN(r=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ft(t)/3)))-ft(Math.abs(e)))}(a,u))||(n.precision=r),bt(n,u);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ft(t)-ft(e))+1}(a,Math.max(Math.abs(i),Math.abs(o))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=function(e){return Math.max(0,-ft(Math.abs(e)))}(a))||(n.precision=r-2*("%"===n.type))}return mt(n)};function jt(e){var t=e.domain;return e.ticks=function(e){var n=t();return h(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){return kt(t(),e,n)},e.nice=function(n){null==n&&(n=10);var r,i=t(),o=0,a=i.length-1,u=i[o],l=i[a];return l0?r=y(u=Math.floor(u/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=y(u=Math.ceil(u*r)/r,l=Math.floor(l*r)/r,n)),r>0?(i[o]=Math.floor(u/r)*r,i[a]=Math.ceil(l/r)*r,t(i)):r<0&&(i[o]=Math.ceil(u*r)/r,i[a]=Math.floor(l*r)/r,t(i)),e},e}function St(){var e=ct(ot,Fe);return e.copy=function(){return lt(e,St())},jt(e)}function Tt(){var e=[0,1];function t(e){return+e}return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=j.call(n,rt),t):e.slice()},t.copy=function(){return Tt().domain(e)},jt(t)}var Et=function(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a0){for(;pl)break;v.push(f)}}else for(;p=1;--s)if(!((f=c*s)l)break;v.push(f)}}else v=h(p,d,Math.min(d-p,y)).map(i);return o?v.reverse():v},e.tickFormat=function(t,o){if(null==o&&(o=10===n?".0e":","),"function"!=typeof o&&(o=mt(o)),t===1/0)return o;null==t&&(t=10);var a=Math.max(1,n*t/e.ticks().length);return function(e){var t=e/i(Math.round(r(e)));return t*n0?n[i-1]:e[0],i=n?[r[n-1],t]:[r[a-1],r[a]]},o.copy=function(){return Ft().domain([e,t]).range(i)},jt(o)}function Bt(){var e=[.5],t=[0,1],n=1;function r(r){if(r<=r)return t[u(e,r,0,n)]}return r.domain=function(i){return arguments.length?(e=S.call(i),n=Math.min(e.length,t.length-1),r):e.slice()},r.range=function(i){return arguments.length?(t=S.call(i),n=Math.min(e.length,t.length-1),r):t.slice()},r.invertExtent=function(n){var r=t.indexOf(n);return[e[r-1],e[r]]},r.copy=function(){return Bt().domain(e).range(t)},r}var Wt=new Date,Vt=new Date;function Gt(e,t,n,r){function i(t){return e(t=new Date(+t)),t}return i.floor=i,i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t0))return u;do{u.push(a=new Date(+n)),t(n,o),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&&(i.count=function(t,r){return Wt.setTime(+t),Vt.setTime(+r),e(Wt),e(Vt),Math.floor(n(Wt,Vt))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var Ht=Gt(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Ht.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Gt(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Ht:null};var qt=Ht,$t=(Ht.range,6e4),Xt=6048e5,Yt=Gt(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()}),Kt=Yt,Qt=(Yt.range,Gt(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},function(e,t){e.setTime(+e+t*$t)},function(e,t){return(t-e)/$t},function(e){return e.getMinutes()})),Jt=Qt,Zt=(Qt.range,Gt(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-e.getMinutes()*$t)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()})),en=Zt,tn=(Zt.range,Gt(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*$t)/864e5},function(e){return e.getDate()-1})),nn=tn;tn.range;function rn(e){return Gt(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*$t)/Xt})}var on=rn(0),an=rn(1),un=rn(2),ln=rn(3),cn=rn(4),sn=rn(5),fn=rn(6),pn=(on.range,an.range,un.range,ln.range,cn.range,sn.range,fn.range,Gt(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()})),dn=pn,hn=(pn.range,Gt(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()}));hn.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Gt(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 yn=hn,vn=(hn.range,Gt(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*$t)},function(e,t){return(t-e)/$t},function(e){return e.getUTCMinutes()})),mn=vn,bn=(vn.range,Gt(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getUTCHours()})),gn=bn,xn=(bn.range,Gt(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})),wn=xn;xn.range;function On(e){return Gt(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)/Xt})}var _n=On(0),kn=On(1),jn=On(2),Sn=On(3),Tn=On(4),En=On(5),Mn=On(6),Pn=(_n.range,kn.range,jn.range,Sn.range,Tn.range,En.range,Mn.range,Gt(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())},function(e){return e.getUTCMonth()})),Cn=Pn,An=(Pn.range,Gt(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()}));An.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Gt(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 Nn=An;An.range;function In(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 Rn(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 Dn(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}var Ln,zn,Un,Fn,Bn={"-":"",_:" ",0:"0"},Wn=/^\s*\d+/,Vn=/^%/,Gn=/[\\^$*+?|[\]().{}]/g;function Hn(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o68?1900:2e3),n+r[0].length):-1}function nr(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 rr(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ir(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function or(e,t,n){var r=Wn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ar(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function ur(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function lr(e,t,n){var r=Wn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function cr(e,t,n){var r=Wn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function sr(e,t,n){var r=Wn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function fr(e,t,n){var r=Vn.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function pr(e,t,n){var r=Wn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function dr(e,t,n){var r=Wn.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function hr(e,t){return Hn(e.getDate(),t,2)}function yr(e,t){return Hn(e.getHours(),t,2)}function vr(e,t){return Hn(e.getHours()%12||12,t,2)}function mr(e,t){return Hn(1+nn.count(yn(e),e),t,3)}function br(e,t){return Hn(e.getMilliseconds(),t,3)}function gr(e,t){return br(e,t)+"000"}function xr(e,t){return Hn(e.getMonth()+1,t,2)}function wr(e,t){return Hn(e.getMinutes(),t,2)}function Or(e,t){return Hn(e.getSeconds(),t,2)}function _r(e){var t=e.getDay();return 0===t?7:t}function kr(e,t){return Hn(on.count(yn(e),e),t,2)}function jr(e,t){var n=e.getDay();return e=n>=4||0===n?cn(e):cn.ceil(e),Hn(cn.count(yn(e),e)+(4===yn(e).getDay()),t,2)}function Sr(e){return e.getDay()}function Tr(e,t){return Hn(an.count(yn(e),e),t,2)}function Er(e,t){return Hn(e.getFullYear()%100,t,2)}function Mr(e,t){return Hn(e.getFullYear()%1e4,t,4)}function Pr(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Hn(t/60|0,"0",2)+Hn(t%60,"0",2)}function Cr(e,t){return Hn(e.getUTCDate(),t,2)}function Ar(e,t){return Hn(e.getUTCHours(),t,2)}function Nr(e,t){return Hn(e.getUTCHours()%12||12,t,2)}function Ir(e,t){return Hn(1+wn.count(Nn(e),e),t,3)}function Rr(e,t){return Hn(e.getUTCMilliseconds(),t,3)}function Dr(e,t){return Rr(e,t)+"000"}function Lr(e,t){return Hn(e.getUTCMonth()+1,t,2)}function zr(e,t){return Hn(e.getUTCMinutes(),t,2)}function Ur(e,t){return Hn(e.getUTCSeconds(),t,2)}function Fr(e){var t=e.getUTCDay();return 0===t?7:t}function Br(e,t){return Hn(_n.count(Nn(e),e),t,2)}function Wr(e,t){var n=e.getUTCDay();return e=n>=4||0===n?Tn(e):Tn.ceil(e),Hn(Tn.count(Nn(e),e)+(4===Nn(e).getUTCDay()),t,2)}function Vr(e){return e.getUTCDay()}function Gr(e,t){return Hn(kn.count(Nn(e),e),t,2)}function Hr(e,t){return Hn(e.getUTCFullYear()%100,t,2)}function qr(e,t){return Hn(e.getUTCFullYear()%1e4,t,4)}function $r(){return"+0000"}function Xr(){return"%"}function Yr(e){return+e}function Kr(e){return Math.floor(+e/1e3)}!function(e){Ln=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,u=e.months,l=e.shortMonths,c=$n(i),s=Xn(i),f=$n(o),p=Xn(o),d=$n(a),h=Xn(a),y=$n(u),v=Xn(u),m=$n(l),b=Xn(l),g={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return u[e.getMonth()]},c:null,d:hr,e:hr,f:gr,H:yr,I:vr,j:mr,L:br,m:xr,M:wr,p:function(e){return i[+(e.getHours()>=12)]},Q:Yr,s:Kr,S:Or,u:_r,U:kr,V:jr,w:Sr,W:Tr,x:null,X:null,y:Er,Y:Mr,Z:Pr,"%":Xr},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return u[e.getUTCMonth()]},c:null,d:Cr,e:Cr,f:Dr,H:Ar,I:Nr,j:Ir,L:Rr,m:Lr,M:zr,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:Yr,s:Kr,S:Ur,u:Fr,U:Br,V:Wr,w:Vr,W:Gr,x:null,X:null,y:Hr,Y:qr,Z:$r,"%":Xr},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=b[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=v[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return k(e,t,n,r)},d:ir,e:ir,f:sr,H:ar,I:ar,j:or,L:cr,m:rr,M:ur,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:pr,s:dr,S:lr,u:Kn,U:Qn,V:Jn,w:Yn,W:Zn,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:tr,Y:er,Z:nr,"%":fr};function O(e,t){return function(n){var r,i,o,a=[],u=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++u53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Rn(Dn(o.y))).getUTCDay(),r=i>4||0===i?kn.ceil(r):kn(r),r=wn.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=t(Dn(o.y))).getDay(),r=i>4||0===i?an.ceil(r):an(r),r=nn.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Rn(Dn(o.y)).getUTCDay():t(Dn(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Rn(o)):t(o)}}function k(e,t,n,r){for(var i,o,a=0,u=t.length,l=n.length;a=l)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=w[i in Bn?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return g.x=O(n,g),g.X=O(r,g),g.c=O(t,g),x.x=O(n,x),x.X=O(r,x),x.c=O(t,x),{format:function(e){var t=O(e+="",g);return t.toString=function(){return e},t},parse:function(e){var t=_(e+="",In);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=_(e,Rn);return t.toString=function(){return e},t}}}(e),zn=Ln.format,Ln.parse,Un=Ln.utcFormat,Fn=Ln.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"]});Date.prototype.toISOString||Un("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||Fn("%Y-%m-%dT%H:%M:%S.%LZ");var Qr=1e3,Jr=60*Qr,Zr=60*Jr,ei=24*Zr,ti=7*ei,ni=30*ei,ri=365*ei;function ii(e){return new Date(e)}function oi(e){return e instanceof Date?+e:+new Date(+e)}function ai(e,t,n,r,o,a,u,l,c){var s=ct(ot,Fe),f=s.invert,p=s.domain,d=c(".%L"),h=c(":%S"),y=c("%I:%M"),m=c("%I %p"),b=c("%a %d"),g=c("%b %d"),x=c("%B"),w=c("%Y"),O=[[u,1,Qr],[u,5,5*Qr],[u,15,15*Qr],[u,30,30*Qr],[a,1,Jr],[a,5,5*Jr],[a,15,15*Jr],[a,30,30*Jr],[o,1,Zr],[o,3,3*Zr],[o,6,6*Zr],[o,12,12*Zr],[r,1,ei],[r,2,2*ei],[n,1,ti],[t,1,ni],[t,3,3*ni],[e,1,ri]];function _(i){return(u(i)1&&void 0!==arguments[1]?arguments[1]:0,n=-1;s()(function r(i){n<0&&(n=i),i-n>t?(e(i),n=-1):s()(r)})}function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(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 h(){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 i=d(r),o=i[0],a=i.slice(1);return"number"==typeof o?void f(n.bind(null,a),o):(n(o),void f(n.bind(null,a)))}"object"===p(r)&&e(r),"function"==typeof r&&r()}}(n)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}var y=n(250),v=n.n(y),m=n(16),b=n.n(m);function g(e){return(g="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 x(e,t){if(e===t)return!0;if("object"!==g(e)||null===e||"object"!==g(t)||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=hasOwnProperty.bind(t),a=0;a=0&&e<=1});var u,l,c=L(r,o),s=L(i,a),f=(u=r,l=o,function(e){var t=I(R(u,l).map(function(e,t){return e*t}).slice(1)).concat([0]);return D(t,e)}),p=function(e){for(var t,n=e>1?1:e,r=n,i=0;i<8;++i){var o=c(r)-n,a=f(r);if(Math.abs(o-n)<1e-4||a<1e-4)return s(r);r=(t=r-o/a)>1?1:t<0?0:t}return s(r)};return p.isStepper=!1,p},U=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,i=void 0===r?8:r,o=e.dt,a=void 0===o?17:o,u=function(e,t,r){var o=r+(-(e-t)*n-r*i)*a/1e3,u=r*a/1e3+e;return Math.abs(u-t)<1e-4&&Math.abs(o)<1e-4?[t,0]:[u,o]};return u.isStepper=!0,u.dt=a,u}()}return"function"==typeof r?r:null},F=n(450),B=n.n(F);function W(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ee(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0?n[i-1]:r,p=c||Object.keys(l);if("function"==typeof u||"spring"===u)return ee(e).concat([t.runJSAnimation.bind(t,{from:f.style,to:l,duration:o,easing:u}),o]);var d=N(p,o,u),h=te({},f.style,l,{transition:d});return ee(e).concat([h,o,s]).filter(P)},[a,Math.max(l,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=h());var t=e.begin,n=e.duration,r=e.attributeName,i=e.to,o=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 o&&"function"!=typeof c&&"spring"!==o)if(l.length>1)this.runStepAnimation(e);else{var f=r?ne({},r,i):i,p=N(Object.keys(f),n,o);s.start([a,t,te({},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,Z(e,["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"])),i=o.Children.count(t),u=A(this.state.style);if("function"==typeof t)return t(u);if(!n||0===i)return t;var l=function(e){var t=e.props,n=t.style,i=void 0===n?{}:n,a=t.className;return Object(o.cloneElement)(e,te({},r,{style:te({},i,u),className:a}))};return 1===i?l(o.Children.only(t)):a.a.createElement("div",null,o.Children.map(t,function(e){return l(e)}))}}])&&re(n.prototype,r),u&&re(n,u),t}(),$.displayName="Animate",$.propTypes={from:l.a.oneOfType([l.a.object,l.a.string]),to:l.a.oneOfType([l.a.object,l.a.string]),attributeName:l.a.string,duration:l.a.number,begin:l.a.number,easing:l.a.oneOfType([l.a.string,l.a.func]),steps:l.a.arrayOf(l.a.shape({duration:l.a.number.isRequired,style:l.a.object.isRequired,easing:l.a.oneOfType([l.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),l.a.func]),properties:l.a.arrayOf("string"),onAnimationEnd:l.a.func})),children:l.a.oneOfType([l.a.node,l.a.func]),isActive:l.a.bool,canBegin:l.a.bool,onAnimationEnd:l.a.func,shouldReAnimate:l.a.bool,onAnimationStart:l.a.func,onAnimationReStart:l.a.func},$.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},q=X))||q,ce=n(282),se=n(227),fe=n.n(se);function pe(e){return(pe="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 de(){return(de=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ve(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+(fe()(t.duration)&&t.duration>0?t.duration:0)},0):fe()(n)?n:0},we=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,i=new Array(r),o=0;o1||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,i=this.props,o=i.payload,a=i.isAnimationActive,l=i.animationDuration,s=i.animationEasing,p=i.filterNull&&o&&o.length?o.filter(function(e){return!u()(e.value)}):o,d=p&&p.length,y=this.props,m=y.content,b=y.viewBox,g=y.coordinate,w=y.position,O=y.active,_=y.offset,k=R({pointerEvents:"none",visibility:O&&d?"visible":"hidden",position:"absolute",top:0},y.wrapperStyle);if(w&&Object(x.g)(w.x)&&Object(x.g)(w.y))t=w.x,n=w.y;else{var j=this.state,S=j.boxWidth,T=j.boxHeight;S>0&&T>0&&g?(t=w&&Object(x.g)(w.x)?w.x:Math.max(g.x+S+_>b.x+b.width?g.x-S-_:g.x+_,b.x),n=w&&Object(x.g)(w.y)?w.y:Math.max(g.y+T+_>b.y+b.height?g.y-T-_:g.y+_,b.y)):k.visibility="hidden"}k=R({},k,Object(h.b)({transform:this.props.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")})),a&&O&&(k=R({},k,Object(h.b)({transition:"transform ".concat(l,"ms ").concat(s)})));var E=v()(B,(D(e={},"".concat(B,"-right"),Object(x.g)(t)&&g&&Object(x.g)(g.x)&&t>=g.x),D(e,"".concat(B,"-left"),Object(x.g)(t)&&g&&Object(x.g)(g.x)&&t=g.y),D(e,"".concat(B,"-top"),Object(x.g)(n)&&g&&Object(x.g)(g.y)&&n=0||(i[n]=e[n]);return i}(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 o=i.default.Children.only(n);return i.default.cloneElement(o,r)},r}(i.default.Component);function d(){}p.contextTypes={transitionGroup:r.object},p.childContextTypes={transitionGroup:function(){}},p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:d,onEntering:d,onEntered:d,onExit:d,onExiting:d,onExited:d},p.UNMOUNTED=0,p.EXITED=1,p.ENTERING=2,p.ENTERED=3,p.EXITING=4;var h=(0,a.polyfill)(p);t.default=h},,,function(e,t,n){var r=n(411);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},function(e,t,n){var r=n(61),i=n(53),o="[object Number]";e.exports=function(e){return"number"==typeof e||i(e)&&r(e)==o}},function(e,t,n){"use strict";var r,i,o,a=n(1),u=n.n(a),l=n(0),c=n.n(l),s=n(6),f=n.n(s),p=n(13),d=n(5);function h(e){return(h="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 y(){return(y=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var L={id:h.a.string,data:h.a.arrayOf(h.a.object),valueAccessor:h.a.func,clockWise:h.a.bool,dataKey:h.a.oneOfType([h.a.string,h.a.number,h.a.func])},z={valueAccessor:function(e){return M()(e.value)?T()(e.value):e.value}};function U(e){var t=e.data,n=e.valueAccessor,r=e.dataKey,i=e.clockWise,o=e.id,a=D(e,["data","valueAccessor","dataKey","clockWise","id"]);return t&&t.length?p.a.createElement(g.a,{className:"recharts-label-list"},t.map(function(e,t){var u=s()(r)?n(e,t):Object(C.s)(e&&e.payload,r),l=s()(o)?{}:{id:"".concat(o,"-").concat(t)};return p.a.createElement(_.a,N({},Object(P.j)(e),a,l,{index:t,value:u,viewBox:_.a.parseViewBox(s()(i)?e:I({},e,{clockWise:i})),key:"label-".concat(t)}))})):null}U.propTypes=L,U.displayName="LabelList";U.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,i=Object(P.g)(r,U).map(function(e,n){return Object(f.cloneElement)(e,{data:t,key:"labelList-".concat(n)})});return n?[function(e,t){return e?!0===e?p.a.createElement(U,{key:"labelList-implicit",data:t}):p.a.isValidElement(e)||l()(e)?p.a.createElement(U,{key:"labelList-implicit",data:t,content:e}):j()(e)?p.a.createElement(U,N({data:t},e,{key:"labelList-implicit"})):null:null}(e.label,t)].concat(A(i)):i},U.defaultProps=z;var F,B,W,V=U,G=n(289),H=n(17),q=n(4),$=n(56);function X(e){return(X="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 Y(){return(Y=Object.assign||function(e){for(var t=1;tt?"start":e0?e.paddingAngle:0;if(n){var u=Object(q.e)(n.endAngle-n.startAngle,e.endAngle-e.startAngle),c=K({},e,{startAngle:o+a,endAngle:o+u(r)+a});i.push(c),o=c.endAngle}else{var s=e.endAngle,f=e.startAngle,p=Object(q.e)(0,s-f)(r),d=K({},e,{startAngle:o+a,endAngle:o+p+a});i.push(d),o=d.endAngle}}),p.a.createElement(g.a,null,e.renderSectorsStatically(i))})}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&i()(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.sectors,r=e.className,o=e.label,a=e.cx,u=e.cy,l=e.innerRadius,c=e.outerRadius,f=e.isAnimationActive,d=e.prevSectors,h=e.id;if(t||!n||!n.length||!Object(q.g)(a)||!Object(q.g)(u)||!Object(q.g)(l)||!Object(q.g)(c))return null;var y=m()("recharts-pie",r);return p.a.createElement(g.a,{className:y},p.a.createElement("g",{clipPath:"url(#".concat(s()(h)?this.id:h,")")},this.renderSectors()),o&&this.renderLabels(n),_.a.renderCallByParent(this.props,null,!1),(!f||d&&i()(d,n))&&V.renderCallByParent(this.props,n,!1))}}])&&J(n.prototype,r),o&&J(n,o),t}(),B.displayName="Pie",B.propTypes=K({},P.c,P.a,{className:h.a.string,animationId:h.a.number,cx:h.a.oneOfType([h.a.number,h.a.string]),cy:h.a.oneOfType([h.a.number,h.a.string]),startAngle:h.a.number,endAngle:h.a.number,paddingAngle:h.a.number,innerRadius:h.a.oneOfType([h.a.number,h.a.string]),outerRadius:h.a.oneOfType([h.a.number,h.a.string]),cornerRadius:h.a.oneOfType([h.a.number,h.a.string]),dataKey:h.a.oneOfType([h.a.string,h.a.number,h.a.func]).isRequired,nameKey:h.a.oneOfType([h.a.string,h.a.number,h.a.func]),valueKey:h.a.oneOfType([h.a.string,h.a.number,h.a.func]),data:h.a.arrayOf(h.a.object),blendStroke:h.a.bool,minAngle:h.a.number,legendType:h.a.oneOf(P.b),maxRadius:h.a.number,sectors:h.a.arrayOf(h.a.object),hide:h.a.bool,labelLine:h.a.oneOfType([h.a.object,h.a.func,h.a.element,h.a.bool]),label:h.a.oneOfType([h.a.shape({offsetRadius:h.a.number}),h.a.func,h.a.element,h.a.bool]),activeShape:h.a.oneOfType([h.a.object,h.a.func,h.a.element]),activeIndex:h.a.oneOfType([h.a.number,h.a.arrayOf(h.a.number)]),isAnimationActive:h.a.bool,animationBegin:h.a.number,animationDuration:h.a.number,animationEasing:h.a.oneOf(["ease","ease-in","ease-out","ease-in-out","spring","linear"]),id:h.a.string}),B.defaultProps={stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Object(P.m)(),animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1},B.parseDeltaAngle=function(e){var t=e.startAngle,n=e.endAngle;return Object(q.i)(n-t)*Math.min(Math.abs(n-t),360)},B.getRealPieData=function(e){var t=e.props,n=t.data,r=t.children,i=Object(P.j)(e.props),o=Object(P.g)(r,G.a);return n&&n.length?n.map(function(e,t){return K({payload:e},i,e,o&&o[t]&&o[t].props)}):o&&o.length?o.map(function(e){return K({},i,e.props)}):[]},B.parseCoordinateOfPie=function(e,t){var n=t.top,r=t.left,i=t.width,o=t.height,a=Object(H.c)(i,o);return{cx:r+Object(q.c)(e.props.cx,i,i/2),cy:n+Object(q.c)(e.props.cy,o,o/2),innerRadius:Object(q.c)(e.props.innerRadius,a,0),outerRadius:Object(q.c)(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(i*i+o*o)/2}},B.getComposedData=function(e){var t=e.item,n=e.offset,r=e.onItemMouseLeave,i=e.onItemMouseEnter,o=ne.getRealPieData(t);if(!o||!o.length)return[];var a=t.props,u=a.cornerRadius,l=a.startAngle,c=a.endAngle,f=a.paddingAngle,p=a.dataKey,d=a.nameKey,h=a.valueKey,y=Math.abs(t.props.minAngle),v=ne.parseCoordinateOfPie(t,n),m=o.length,b=ne.parseDeltaAngle({startAngle:l,endAngle:c}),g=Math.abs(b),x=g-m*y-(g>=360?m:m-1)*f,w=p;s()(p)&&s()(h)?(Object($.a)(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),w="value"):s()(p)&&(Object($.a)(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),w=h);var O,_,k=o.reduce(function(e,t){var n=Object(C.s)(t,w,0);return e+(Object(q.g)(n)?n:0)},0);k>0&&(O=o.map(function(e,t){var n,r=Object(C.s)(e,w,0),i=Object(C.s)(e,d,t),o=(Object(q.g)(r)?r:0)/k,a=(n=t?_.endAngle+Object(q.i)(b)*f:l)+Object(q.i)(b)*(y+o*x),c=(n+a)/2,s=(v.innerRadius+v.outerRadius)/2,p=[{name:i,value:r,payload:e}],h=Object(H.e)(v.cx,v.cy,s,c);return _=K({percent:o,cornerRadius:u,name:i,tooltipPayload:p,midAngle:c,middleRadius:s,tooltipPosition:h},e,v,{value:Object(C.s)(e,w),startAngle:n,endAngle:a,payload:e,paddingAngle:Object(q.i)(b)*f})}));return K({},v,{sectors:O,data:o,onMouseLeave:r,onMouseEnter:i})},F=W))||F;t.a=ne},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.convertHexToRGB=o,t.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=a(e).values;return t=t.map(function(e){return 1===(t=e.toString(16)).length?"0".concat(t):t;var t}),"#".concat(t.join(""))},t.decomposeColor=a,t.recomposeColor=u,t.getContrastRatio=function(e,t){var n=l(e),r=l(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.getLuminance=l,t.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return l(e)>.5?c(e,t):s(e,t)},t.fade=function(e,t){if(!e)return e;e=a(e),t=i(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a");return e.values[3]=t,u(e)},t.darken=c,t.lighten=s;r(n(25));function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return en?n:e}function o(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length/3,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map(function(e){return e+e})),n?"rgb(".concat(n.map(function(e){return parseInt(e,16)}).join(", "),")"):""}function a(e){if("#"===e.charAt(0))return a(o(e));var t=e.indexOf("("),n=e.substring(0,t),r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map(function(e){return parseFloat(e)})}}function u(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")&&(n=n.map(function(e,t){return t<3?parseInt(e,10):e})),-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(e.type,"(").concat(n.join(", "),")")}function l(e){var t=a(e);if(-1!==t.type.indexOf("rgb")){var n=t.values.map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)});return Number((.2126*n[0]+.7152*n[1]+.0722*n[2]).toFixed(3))}return t.values[2]/100}function c(e,t){if(!e)return e;if(e=a(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return u(e)}function s(e,t){if(!e)return e;if(e=a(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return u(e)}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.isNumber=t.isString=t.formatMs=t.duration=t.easing=void 0;var i=r(n(8)),o=(r(n(25)),{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"});t.easing=o;var a={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};t.duration=a;var u=function(e){return"".concat(Math.round(e),"ms")};t.formatMs=u;t.isString=function(e){return"string"==typeof e};t.isNumber=function(e){return!isNaN(parseFloat(e))};var l={easing:o,duration:a,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?a.standard:n,l=t.easing,c=void 0===l?o.easeInOut:l,s=t.delay,f=void 0===s?0:s;(0,i.default)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"==typeof r?r:u(r)," ").concat(c," ").concat("string"==typeof f?f:u(f))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var p={width:a.a.number.isRequired,height:a.a.number.isRequired,viewBox:a.a.shape({x:a.a.number,y:a.a.number,width:a.a.number,height:a.a.number}),className:a.a.string,style:a.a.object,children:a.a.oneOfType([a.a.arrayOf(a.a.node),a.a.node])};function d(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,a=e.className,u=e.style,p=f(e,["children","width","height","viewBox","className","style"]),d=o||{width:n,height:r,x:0,y:0},h=l()("recharts-surface",a),y=Object(c.j)(p);return i.a.createElement("svg",s({},y,{className:h,width:n,height:r,style:u,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height),version:"1.1"}),t)}d.propTypes=p,t.a=d},function(e,t,n){var r=n(61),i=n(732),o=n(53),a="[object Object]",u=Function.prototype,l=Object.prototype,c=u.toString,s=l.hasOwnProperty,f=c.call(Object);e.exports=function(e){if(!o(e)||r(e)!=a)return!1;var t=i(e);if(null===t)return!0;var n=s.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==f}},function(e,t,n){"use strict";var r,i,o,a=n(16),u=n.n(a),l=n(9),c=n.n(l),s=n(1),f=n.n(s),p=n(0),d=n.n(p),h=n(18),y=n(6),v=n.n(y),m=n(13),b=n(5),g=n(4);function x(e){return(x="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 w(){return(w=Object.assign||function(e){for(var t=1;t180),",").concat(+(o>u),",\n ").concat(c.x,",").concat(c.y,"\n ");if(r>0){var f=Object(h.e)(t,n,r,o),p=Object(h.e)(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(+(o<=u),",\n ").concat(f.x,",").concat(f.y," Z")}else s+="L ".concat(t,",").concat(n," Z");return s},j=Object(p.a)((o=i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),x(this,w(t).apply(this,arguments))}var n,r,i;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&&O(e,t)}(t,a["Component"]),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.cornerRadius,a=e.startAngle,l=e.endAngle,c=e.className;if(i0&&Math.abs(a-l)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.cornerRadius,a=e.startAngle,u=e.endAngle,l=Object(y.i)(u-a),c=_({cx:t,cy:n,radius:i,angle:a,sign:l,cornerRadius:o}),s=c.circleTangency,f=c.lineTangency,p=c.theta,d=_({cx:t,cy:n,radius:i,angle:u,sign:-l,cornerRadius:o}),h=d.circleTangency,v=d.lineTangency,m=d.theta,b=Math.abs(a-u)-p-m;if(b<0)return k({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:a,endAngle:u});var g="M ".concat(f.x,",").concat(f.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(s.x,",").concat(s.y,"\n A").concat(i,",").concat(i,",0,").concat(+(b>180),",").concat(+(l<0),",").concat(h.x,",").concat(h.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(v.x,",").concat(v.y,"\n ");if(r>0){var x=_({cx:t,cy:n,radius:r,angle:a,sign:l,isExternal:!0,cornerRadius:o}),w=x.circleTangency,O=x.lineTangency,j=x.theta,S=_({cx:t,cy:n,radius:r,angle:u,sign:-l,isExternal:!0,cornerRadius:o}),T=S.circleTangency,E=S.lineTangency,M=S.theta,P=Math.abs(a-u)-j-M;if(P<0)return"".concat(g,"L").concat(t,",").concat(n,"Z");g+="L".concat(E.x,",").concat(E.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(T.x,",").concat(T.y,"\n A").concat(r,",").concat(r,",0,").concat(+(P>180),",").concat(+(l>0),",").concat(w.x,",").concat(w.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(O.x,",").concat(O.y,"Z")}else g+="L".concat(t,",").concat(n,"Z");return g}({cx:t,cy:n,innerRadius:r,outerRadius:i,cornerRadius:Math.min(v,h/2),startAngle:a,endAngle:l}):k({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:a,endAngle:l}),u.a.createElement("path",b({},Object(d.j)(this.props),Object(d.e)(this.props),{className:p,d:s}))}}])&&g(n.prototype,r),i&&g(n,i),t}(),i.displayName="Sector",i.propTypes=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,i=r.layout,o=r.align,a=r.verticalAlign,u=r.margin,l=r.chartWidth,c=r.chartHeight;e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===o&&"vertical"===i?{left:((l||0)-(this.getBBox()||{width:0}).width)/2}:"right"===o?{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});return H({},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 i=this.wrapperNode.getBoundingClientRect();(Math.abs(i.width-t)>1||Math.abs(i.height-n)>1)&&this.setState({boxWidth:i.width,boxHeight:i.height},function(){r&&r(i)})}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,i=t.height,o=t.wrapperStyle,a=H({position:"absolute",width:r||"auto",height:i||"auto"},this.getDefaultPosition(o),o);return c.a.createElement("div",{className:"recharts-legend-wrapper",style:a,ref:function(t){e.wrapperNode=t}},function(e,t){return c.a.isValidElement(e)?c.a.cloneElement(e,t):u()(e)?e(t):c.a.createElement(W,t)}(n,this.props))}}])&&$(n.prototype,r),i&&$(n,i),t}(),U.displayName="Legend",U.propTypes={content:f.a.oneOfType([f.a.element,f.a.func]),wrapperStyle:f.a.object,chartWidth:f.a.number,chartHeight:f.a.number,width:f.a.number,height:f.a.number,iconSize:f.a.number,iconType:f.a.oneOf(Q),layout:f.a.oneOf(["horizontal","vertical"]),align:f.a.oneOf(["center","left","right"]),verticalAlign:f.a.oneOf(["top","bottom","middle"]),margin:f.a.shape({top:f.a.number,left:f.a.number,bottom:f.a.number,right:f.a.number}),payload:f.a.arrayOf(f.a.shape({value:f.a.any,id:f.a.any,type:f.a.oneOf(m.b)})),formatter:f.a.func,onMouseEnter:f.a.func,onMouseLeave:f.a.func,onClick:f.a.func,onBBoxUpdate:f.a.func},U.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"},z=F))||z;t.a=J},function(e,t,n){e.exports=function(){"use strict";var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?i((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function i(t,o,a){(a=a||{}).arrayMerge=a.arrayMerge||r,a.isMergeableObject=a.isMergeableObject||e;var u=Array.isArray(o),l=Array.isArray(t),c=u===l;return c?u?a.arrayMerge(t,o,a):function(e,t,r){var o={};return r.isMergeableObject(e)&&Object.keys(e).forEach(function(t){o[t]=n(e[t],r)}),Object.keys(t).forEach(function(a){r.isMergeableObject(t[a])&&e[a]?o[a]=i(e[a],t[a],r):o[a]=n(t[a],r)}),o}(t,o,a):n(o,a)}return i.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,n){return i(e,n,t)},{})},i}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:"unnamed",t=arguments[1],n=arguments[2],a=n.jss,u=(0,o.default)(t),l=a.plugins.onCreateRule(e,u,n);if(l)return l;"@"===e[0]&&(0,r.default)(!1,"[JSS] Unknown at-rule %s",e);return new i.default(e,u,n)};var r=a(n(84)),i=a(n(85)),o=a(n(527));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";n.r(t),n.d(t,"isBrowser",function(){return i});var r="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},i="object"===("undefined"==typeof window?"undefined":r(window))&&"object"===("undefined"==typeof document?"undefined":r(document))&&9===document.nodeType;t.default=i},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},,,,,,,function(e,t,n){var r=n(397),i=n(643)(r);e.exports=i},function(e,t,n){var r=n(634),i=n(640),o=n(221);e.exports=function(e){return o(e)?r(e):i(e)}},function(e,t,n){var r=n(646),i=n(647),o=n(648),a=n(649),u=n(650);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t1&&void 0!==arguments[1]?arguments[1]:window,n=(0,i.default)(e);return n.defaultView||n.parentView||t};t.default=o},,,function(e,t,n){var r=n(613),i=n(37),o="Expected a function";e.exports=function(e,t,n){var a=!0,u=!0;if("function"!=typeof e)throw new TypeError(o);return i(n)&&(a="leading"in n?!!n.leading:a,u="trailing"in n?!!n.trailing:u),r(e,t,{leading:a,maxWait:t,trailing:u})}},,function(e,t,n){var r=n(630),i=n(631),o=n(51),a=n(16),u=n(272);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(415),i=n(706),o=n(417),a=n(272),u=o(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])});e.exports=u},function(e,t,n){"use strict";var r,i,o,a=n(1),u=n.n(a),l=n(0),c=n.n(l),s=n(6),f=n.n(s),p=n(64),d=n(13),h=n(5);function y(e){return(y="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 v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(){return(m=Object.assign||function(e){for(var t=1;t=0?1:-1,l=r>=0?1:0;if(a>0&&i instanceof Array){for(var c=[],s=0;s<4;s++)c[s]=i[s]>a?a:i[s];o="M".concat(e,",").concat(t+u*c[0]),c[0]>0&&(o+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(l,",").concat(e+c[0],",").concat(t)),o+="L ".concat(e+n-c[1],",").concat(t),c[1]>0&&(o+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(l,",\n ").concat(e+n,",").concat(t+u*c[1])),o+="L ".concat(e+n,",").concat(t+r-u*c[2]),c[2]>0&&(o+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(l,",\n ").concat(e+n-c[2],",").concat(t+r)),o+="L ".concat(e+c[3],",").concat(t+r),c[3]>0&&(o+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(l,",\n ").concat(e,",").concat(t+r-u*c[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var f=Math.min(a,i);o="M ".concat(e,",").concat(t+u*f,"\n A ").concat(f,",").concat(f,",0,0,").concat(l,",").concat(e+f,",").concat(t,"\n L ").concat(e+n-f,",").concat(t,"\n A ").concat(f,",").concat(f,",0,0,").concat(l,",").concat(e+n,",").concat(t+u*f,"\n L ").concat(e+n,",").concat(t+r-u*f,"\n A ").concat(f,",").concat(f,",0,0,").concat(l,",").concat(e+n-f,",").concat(t+r,"\n L ").concat(e+f,",").concat(t+r,"\n A ").concat(f,",").concat(f,",0,0,").concat(l,",").concat(e,",").concat(t+r-u*f," Z")}else o="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return o},_=Object(d.a)((o=i=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,i=new Array(r),o=0;o0,from:{width:i,height:o,x:n,y:r},to:{width:i,height:o,x:n,y:r},duration:y,animationEasing:d,isActive:g},function(t){var n=t.width,r=t.height,i=t.x,o=t.y;return u.a.createElement(p.a,{canBegin:c>0,from:"0px ".concat(-1===c?1:c,"px"),to:"".concat(c,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:y,isActive:b,easing:d},u.a.createElement("path",m({},Object(h.j)(e.props),Object(h.e)(e.props),{className:x,d:O(i,o,n,r,a),ref:function(t){e.node=t}})))}):u.a.createElement("path",m({},Object(h.j)(this.props),Object(h.e)(this.props),{className:x,d:O(n,r,i,o,a)}))}}])&&b(n.prototype,r),i&&b(n,i),t}(),i.displayName="Rectangle",i.propTypes=function(e){for(var t=1;tu)throw r=0,new Error("Call stack overflow for "+c);if(""===e)throw new Error(o+"(): '"+c+"' must contain a non-whitespace string");var s=function(e){var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,i=r.exec(e);for(;i;)i&&i[1]&&(-1===n.indexOf(i[1].toLowerCase())&&(t.push(i[1]),n.push(i[1].toLowerCase())),i=r.exec(e));return t}(e=function(e,t){e=e.replace(/((?:\-[a-z]+\-)?calc)/g,"");var r,o="",a=e;for(;r=l.exec(a);){r[0].index>0&&(o+=a.substring(0,r[0].index));var u=i("(",")",a.substring([0].index));if(""===u.body)throw new Error("'"+e+"' must contain a non-whitespace string");var c=n(u.body,"",t);o+=u.pre+c,a=u.post}return o+a}(e,c));if(s.length>1||e.indexOf("var(")>-1)return o+"("+e+")";var f=s[0]||"";"%"===f&&(e=e.replace(/\b[0-9\.]+%/g,function(e){return.01*parseFloat(e.slice(0,-1))}));var p,d=e.replace(new RegExp(f,"gi"),"");try{p=a.eval(d)}catch(t){return o+"("+e+")"}return"%"===f&&(p*=100),(o.length||"%"===f)&&(p=Math.round(p*t)/t),p+=f}return r=0,t=Math.pow(10,void 0===t?5:t),e=e.replace(/\n+/g," "),o(e,/((?:\-[a-z]+\-)?calc)\(/,n)}},function(e,t,n){"use strict";var r=n(5);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(){return null}o.propTypes=function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Z(e,t){for(var n=0;n=2?Object(A.i)(v[1].coordinate-v[0].coordinate):1;if(1===g?(n="width"===h?s:f,r="width"===h?s+p:f+d):(n="width"===h?s+p:f+d,r="width"===h?s:f),t){var x=i[b-1],w=y()(o)?o(x.value):x.value,O=Object(H.c)(w)[h]+m,_=g*(x.coordinate+g*O/2-r);v[b-1]=x=K({},x,{tickCoord:_>0?x.coordinate-_*g:x.coordinate}),g*(x.tickCoord-g*O/2-n)>=0&&g*(x.tickCoord+g*O/2-r)<=0&&(r=x.tickCoord-g*(O/2+l),v[b-1]=K({},x,{isShow:!0}))}for(var k=t?b-1:b,j=0;j=0&&g*(S.tickCoord+g*E/2-r)<=0&&(n=S.tickCoord+g*(E/2+l),v[j]=K({},S,{isShow:!0}))}return v.filter(function(e){return e.isShow})}},{key:"getTicksEnd",value:function(e){var t,n,r=e.ticks,i=e.tickFormatter,o=e.viewBox,a=e.orientation,u=e.minTickGap,l=e.unit,c=o.x,s=o.y,f=o.width,p=o.height,d="top"===a||"bottom"===a?"width":"height",h=l?Object(H.c)(l)[d]:0,v=(r||[]).slice(),m=v.length,b=m>=2?Object(A.i)(v[1].coordinate-v[0].coordinate):1;1===b?(t="width"===d?c:s,n="width"===d?c+f:s+p):(t="width"===d?c+f:s+p,n="width"===d?c:s);for(var g=m-1;g>=0;g--){var x=v[g],w=y()(i)?i(x.value):x.value,O=Object(H.c)(w)[d]+h;if(g===m-1){var _=b*(x.coordinate+b*O/2-n);v[g]=x=K({},x,{tickCoord:_>0?x.coordinate-_*b:x.coordinate})}else v[g]=x=K({},x,{tickCoord:x.coordinate});b*(x.tickCoord-b*O/2-t)>=0&&b*(x.tickCoord+b*O/2-n)<=0&&(n=x.tickCoord-b*(O/2+u),v[g]=K({},x,{isShow:!0}))}return v.filter(function(e){return e.isShow})}},{key:"renderTickItem",value:function(e,t,n){return _.a.isValidElement(e)?_.a.cloneElement(e,t):y()(e)?e(t):_.a.createElement(q.a,Y({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],(r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=J(e,["viewBox"]),i=this.props,o=i.viewBox,a=J(i,["viewBox"]);return!Object(C.b)(n,o)||!Object(C.b)(r,a)||!Object(C.b)(t,this.state)}},{key:"getTickLineCoord",value:function(e){var t,n,r,i,o,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,b=Object(A.g)(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=n=e.coordinate,a=(r=(i=c+!h*f)-v*m)-v*y,o=b;break;case"left":r=i=e.coordinate,o=(t=(n=l+!h*s)-v*m)-v*y,a=b;break;case"right":r=i=e.coordinate,o=(t=(n=l+h*s)+v*m)+v*y,a=b;break;default:t=n=e.coordinate,a=(r=(i=c+h*f)+v*m)+v*y,o=b}return{line:{x1:t,y1:r,x2:n,y2:i},tick:{x:o,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,i=e.height,o=e.orientation,a=e.axisLine,u=e.mirror,l=K({},Object(N.j)(this.props),{fill:"none"},Object(N.j)(a));if("top"===o||"bottom"===o){var c="top"===o&&!u||"bottom"===o&&u;l=K({},l,{x1:t,y1:n+c*i,x2:t+r,y2:n+c*i})}else{var s="left"===o&&!u||"right"===o&&u;l=K({},l,{x1:t+s*r,y1:n,x2:t+s*r,y2:n+i})}return _.a.createElement("line",Y({className:"recharts-cartesian-axis-line"},l))}},{key:"renderTicks",value:function(e){var n=this,r=this.props,i=r.tickLine,o=r.stroke,a=r.tick,u=r.tickFormatter,l=r.unit,c=t.getTicks(K({},this.props,{ticks:e})),s=this.getTickTextAnchor(),f=this.getTickVerticalAnchor(),p=Object(N.j)(this.props),d=Object(N.j)(a),h=K({},p,{fill:"none"},Object(N.j)(i)),v=c.map(function(e,t){var r=n.getTickLineCoord(e),v=r.line,m=r.tick,b=K({textAnchor:s,verticalAnchor:f},p,{stroke:"none",fill:o},d,m,{index:t,payload:e,visibleTicksCount:c.length});return _.a.createElement(T.a,Y({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t)},Object(N.f)(n.props,e,t)),i&&_.a.createElement("line",Y({className:"recharts-cartesian-axis-tick-line"},h,v)),a&&n.constructor.renderTickItem(a,b,"".concat(y()(u)?u(e.value):e.value).concat(l||"")))});return _.a.createElement("g",{className:"recharts-cartesian-axis-ticks"},v)}},{key:"render",value:function(){var e=this.props,t=e.axisLine,n=e.width,r=e.height,i=e.ticksGenerator,o=e.className;if(e.hide)return null;var a=this.props,u=a.ticks,l=J(a,["ticks"]),c=u;return y()(i)&&(c=u&&u.length>0?i(this.props):i(l)),n<=0||r<=0||!c||!c.length?null:_.a.createElement(T.a,{className:j()("recharts-cartesian-axis",o)},t&&this.renderAxisLine(),this.renderTicks(c),$.a.renderCallByParent(this.props))}}])&&Z(n.prototype,r),i&&Z(n,i),t}();re.displayName="CartesianAxis",re.propTypes=K({},N.c,N.a,{className:u.a.string,x:u.a.number,y:u.a.number,width:u.a.number,height:u.a.number,orientation:u.a.oneOf(["top","bottom","left","right"]),viewBox:u.a.shape({x:u.a.number,y:u.a.number,width:u.a.number,height:u.a.number}),tick:u.a.oneOfType([u.a.bool,u.a.func,u.a.object,u.a.element]),axisLine:u.a.oneOfType([u.a.bool,u.a.object]),tickLine:u.a.oneOfType([u.a.bool,u.a.object]),mirror:u.a.bool,tickMargin:u.a.number.isRequired,minTickGap:u.a.number,ticks:u.a.array,tickSize:u.a.number,stroke:u.a.string,tickFormatter:u.a.func,ticksGenerator:u.a.func,interval:u.a.oneOfType([u.a.number,u.a.oneOf(["preserveStart","preserveEnd","preserveStartEnd"])])}),re.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 ie=re,oe=n(48),ae=n(11);function ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var le,ce,se,fe=["Webkit","Moz","O","ms"],pe=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,function(e){return e.toUpperCase()}),r=fe.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,1e3))},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(ge(ge(n)),"startX"),endX:n.handleTravellerDragStart.bind(ge(ge(n)),"endX")},n.state=e.data&&e.data.length?n.updateScale(e):{},n}var n,r,i;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&&be(e,t)}(t,O["Component"]),n=t,i=[{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var i=Math.floor((n+r)/2);e[i]>t?r=i:n=i}return t>=e[r]?r:n}}],(r=[{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.data,i=n.width,o=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===i&&e.x===o&&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,i=r.gap,o=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%i,endIndex:c===o?o:c-c%i}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,i=t.dataKey,o=Object(ae.s)(n[e],i,e);return y()(r)?r(o):o}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,i=t.endX,o=this.props,a=o.x,u=o.width,l=o.travellerWidth,c=o.startIndex,s=o.endIndex,f=o.onChange,p=e.pageX-n;p>0?p=Math.min(p,a+u-l-i,a+u-l-r):p<0&&(p=Math.max(p,a-r,a-i));var d=this.getIndex({startX:r+p,endX:i+p});d.startIndex===c&&d.endIndex===s||!f||f(d),this.setState({startX:r+p,endX:i+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,i=n.movingTravellerId,o=n.endX,a=n.startX,u=this.state[i],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[i]=u+v;var m=this.getIndex(y),b=m.startIndex,g=m.endIndex;this.setState((ye(t={},i,u+v),ye(t,"brushMoveStartX",e.pageX),t),function(){var e;p&&(e=h.length-1,("startX"===i&&(o>a?b%d==0:g%d==0)||oa?g%d==0:b%d==0)||o>a&&g===e)&&p(m))})}},{key:"updateScale",value:function(e){var t=this,n=e.data,r=e.startIndex,i=e.endIndex,o=e.x,a=e.width,u=e.travellerWidth,l=n.length;return this.scale=Object(oe.scalePoint)().domain(m()(0,l)).range([o,o+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(i)}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,o=e.fill,a=e.stroke;return _.a.createElement("rect",{stroke:a,fill:o,x:t,y:n,width:r,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,i=e.height,o=e.data,a=e.children,u=e.padding,l=O.Children.only(a);return l?_.a.cloneElement(l,{x:t,y:n,width:r,height:i,margin:u,compact:!0,data:o}):null}},{key:"renderTraveller",value:function(e,t){var n=this.props,r=n.y,i=n.travellerWidth,o=n.height,a=n.stroke,u=Math.floor(r+o/2)-1,l=Math.max(e,this.props.x);return _.a.createElement(T.a,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},_.a.createElement("rect",{x:l,y:r,width:i,height:o,fill:a,stroke:"none"}),_.a.createElement("line",{x1:l+1,y1:u,x2:l+i-1,y2:u,fill:"none",stroke:"#fff"}),_.a.createElement("line",{x1:l+1,y1:u+2,x2:l+i-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,i=n.height,o=n.stroke;return _.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:o,fillOpacity:.2,x:Math.min(e,t),y:r,width:Math.abs(t-e),height:i})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,i=e.height,o=e.travellerWidth,a=e.stroke,u=this.state,l=u.startX,c=u.endX,s={pointerEvents:"none",fill:a};return _.a.createElement(T.a,{className:"recharts-brush-texts"},_.a.createElement(q.a,he({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,c)-5,y:r+i/2},s),this.getTextOfTick(t)),_.a.createElement(q.a,he({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,c)+o+5,y:r+i/2},s),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,i=e.x,o=e.y,a=e.width,u=e.height,l=this.state,c=l.startX,s=l.endX,f=l.isTextActive,p=l.isSlideMoving,d=l.isTravellerMoving;if(!t||!t.length||!Object(A.g)(i)||!Object(A.g)(o)||!Object(A.g)(a)||!Object(A.g)(u)||a<=0||u<=0)return null;var h=j()("recharts-brush",n),y=1===_.a.Children.count(r),v=pe("userSelect","none");return _.a.createElement(T.a,{className:h,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onMouseUp:this.handleDragEnd,onTouchEnd:this.handleDragEnd,onTouchMove:this.handleTouchMove,style:v},this.renderBackground(),y&&this.renderPanorama(),this.renderSlide(c,s),this.renderTraveller(c,"startX"),this.renderTraveller(s,"endX"),(f||p||d)&&this.renderText())}}])&&ve(n.prototype,r),i&&ve(n,i),t}(),ce.displayName="Brush",ce.propTypes={className:u.a.string,fill:u.a.string,stroke:u.a.string,x:u.a.number,y:u.a.number,width:u.a.number,height:u.a.number.isRequired,travellerWidth:u.a.number,gap:u.a.number,padding:u.a.shape({top:u.a.number,right:u.a.number,bottom:u.a.number,left:u.a.number}),dataKey:u.a.oneOfType([u.a.string,u.a.number,u.a.func]),data:u.a.array,startIndex:u.a.number,endIndex:u.a.number,tickFormatter:u.a.func,children:u.a.node,onChange:u.a.func,updateId:u.a.oneOfType([u.a.string,u.a.number])},ce.defaultProps={height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1}},le=se))||le,we=n(17),Oe=n(451),_e=new(n.n(Oe).a);_e.setMaxListeners&&_e.setMaxListeners(10);var ke="recharts.syncMouseEvents";function je(e){return(je="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 Se(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Te(){return(Te=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,i=e.offset;return Object(ae.i)(ie.getTicks(Me({},ie.defaultProps,t,{ticks:Object(ae.q)(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.left,i.left+i.width)},n.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,n=e.width,r=e.height,i=e.offset;return Object(ae.i)(ie.getTicks(Me({},ie.defaultProps,t,{ticks:Object(ae.q)(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.top,i.top+i.height)},n.axesTicksGenerator=function(e){return Object(ae.q)(e,!0)},n.tooltipTicksGenerator=function(e){var t=Object(A.b)(e),n=Object(ae.q)(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:d()(n,function(e){return e.coordinate}),tooltipAxis:t,tooltipAxisBandSize:Object(ae.f)(t)}},n.renderCursor=function(e){var r=n.state,i=r.isTooltipActive,o=r.activeCoordinate,a=r.activePayload,u=r.offset;if(!(e&&e.props.cursor&&i&&o))return null;var l,c=n.props.layout,s=P.a;if("ScatterChart"===t)l=o,s=B;else if("BarChart"===t)l=n.getCursorRectangle(),s=G.a;else if("radial"===c){var f=n.getCursorPoints(),p=f.cx,d=f.cy,h=f.radius;l={cx:p,cy:d,startAngle:f.startAngle,endAngle:f.endAngle,innerRadius:h,outerRadius:h},s=W.a}else l={points:n.getCursorPoints()},s=P.a;var y=e.key||"_recharts-cursor",v=Me({stroke:"#ccc",pointerEvents:"none"},u,l,Object(N.j)(e.props.cursor),{payload:a,key:y,className:"recharts-tooltip-cursor"});return Object(O.isValidElement)(e.props.cursor)?Object(O.cloneElement)(e.props.cursor,v):Object(O.createElement)(s,v)},n.renderPolarAxis=function(e,t,r){var i=e.type.axisType,o=n.state["".concat(i,"Map")][e.props["".concat(i,"Id")]];return Object(O.cloneElement)(e,Me({},o,{className:i,key:e.key||"".concat(t,"-").concat(r),ticks:Object(ae.q)(o,!0)}))},n.renderXAxis=function(e,t,r){var i=n.state.xAxisMap[e.props.xAxisId];return n.renderAxis(i,e,t,r)},n.renderYAxis=function(e,t,r){var i=n.state.yAxisMap[e.props.yAxisId];return n.renderAxis(i,e,t,r)},n.renderGrid=function(e){var t=n.state,r=t.xAxisMap,i=t.yAxisMap,o=t.offset,a=n.props,u=a.width,l=a.height,s=Object(A.b)(r),p=f()(i,function(e){return c()(e.domain,Number.isFinite)})||Object(A.b)(i),d=e.props||{};return Object(O.cloneElement)(e,{key:e.key||"grid",x:Object(A.g)(d.x)?d.x:o.left,y:Object(A.g)(d.y)?d.y:o.top,width:Object(A.g)(d.width)?d.width:o.width,height:Object(A.g)(d.height)?d.height:o.height,xAxis:s,yAxis:p,offset:o,chartWidth:u,chartHeight:l,verticalCoordinatesGenerator:d.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:d.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})},n.renderPolarGrid=function(e){var t=n.state,r=t.radiusAxisMap,i=t.angleAxisMap,o=Object(A.b)(r),a=Object(A.b)(i),u=a.cx,l=a.cy,c=a.innerRadius,s=a.outerRadius;return Object(O.cloneElement)(e,{polarAngles:Object(ae.q)(a,!0).map(function(e){return e.coordinate}),polarRadius:Object(ae.q)(o,!0).map(function(e){return e.coordinate}),cx:u,cy:l,innerRadius:c,outerRadius:s,key:e.key||"polar-grid"})},n.renderBrush=function(e){var t=n.props,r=t.margin,i=t.data,o=n.state,a=o.offset,u=o.dataStartIndex,l=o.dataEndIndex,c=o.updateId;return Object(O.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:Object(ae.d)(n.handleBrushChange,null,e.props.onChange),data:i,x:Object(A.g)(e.props.x)?e.props.x:a.left,y:Object(A.g)(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:Object(A.g)(e.props.width)?e.props.width:a.width,startIndex:u,endIndex:l,updateId:"brush-".concat(c)})},n.renderReferenceElement=function(e,t,r){if(!e)return null;var i=Ie(Ie(n)).clipPathId,o=n.state,a=o.xAxisMap,u=o.yAxisMap,l=o.offset,c=e.props,s=c.xAxisId,f=c.yAxisId;return Object(O.cloneElement)(e,{key:e.key||"".concat(t,"-").concat(r),xAxis:a[s],yAxis:u[f],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:i})},n.renderGraphicChild=function(e,t,r){var i=n.filterFormatItem(e,t,r);if(!i)return null;var o,a,u=Object(O.cloneElement)(e,i.props),l=n.state,c=l.isTooltipActive,s=l.tooltipAxis,f=l.activeTooltipIndex,p=l.activeLabel,d=n.props.children,h=Object(N.h)(d,E.a),y=i.props,v=y.points,m=y.isRange,b=y.baseLine,g=i.item.props,x=g.activeDot;return!g.hide&&c&&h&&x&&f>=0&&(s.dataKey&&!s.allowDuplicatedCategory?(o=Object(A.a)(v,"payload.".concat(s.dataKey),p),a=m&&b&&Object(A.a)(b,"payload.".concat(s.dataKey),p)):(o=v[f],a=m&&b&&b[f]),!w()(o))?[u].concat(Ee(n.renderActivePoints({item:i,activePoint:o,basePoint:a,childIndex:f,isRange:m}))):m?[u,null,null]:[u,null]};var a=n.constructor.createDefaultState(e);return n.state=Me({},a,{updateId:0},n.updateStateOfAxisMapsOffsetAndStackGroups(Me({props:e},a,{updateId:0}))),n.uniqueChartId=w()(e.id)?Object(A.j)("recharts"):e.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),e.throttleDelay&&(n.triggeredAfterMouseMove=g()(n.triggeredAfterMouseMove,e.throttleDelay)),n}var u,s,p;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&&Ne(e,t)}(r,O.Component),u=r,p=[{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(O.isValidElement)(e)?Object(O.cloneElement)(e,t):y()(e)?e(t):_.a.createElement(V.a,t),_.a.createElement(T.a,{className:"recharts-active-dot",key:t.key},n)}}],(s=[{key:"componentDidMount",value:function(){w()(this.props.syncId)||this.addListener()}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.data,i=n.children,o=n.width,a=n.height,u=n.layout,l=n.stackOffset,c=n.margin,s=this.state.updateId;if(e.data===r&&e.width===o&&e.height===a&&e.layout===u&&e.stackOffset===l&&Object(C.b)(e.margin,c)){if(!Object(N.l)(e.children,i)){var f=w()(e.data)?s+1:s;this.setState(function(n){return Me({updateId:f},t.updateStateOfAxisMapsOffsetAndStackGroups(Me({props:e},n,{updateId:f})))})}}else{var p=this.constructor.createDefaultState(e);this.setState(Me({},p,{updateId:s+1},this.updateStateOfAxisMapsOffsetAndStackGroups(Me({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,i=t.AxisComp,o=t.graphicalItems,a=t.stackGroups,u=t.dataStartIndex,l=t.dataEndIndex,c=e.children,s="".concat(r,"Id"),f=Object(N.g)(c,i),p={};return f&&f.length?p=this.getAxisMapByAxes(e,{axes:f,graphicalItems:o,axisType:r,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:l}):o&&o.length&&(p=this.getAxisMapByItems(e,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:l})),p}},{key:"getAxisMapByAxes",value:function(e,t){var n=this,r=t.axes,i=t.graphicalItems,o=t.axisType,a=t.axisIdKey,u=t.stackGroups,l=t.dataStartIndex,c=t.dataEndIndex,s=e.layout,f=e.children,p=e.stackOffset,d=Object(ae.u)(s,o);return r.reduce(function(t,r){var h=r.props,y=h.type,v=h.dataKey,b=h.allowDataOverflow,g=h.allowDuplicatedCategory,x=h.scale,O=h.ticks,_=r.props[a],k=n.constructor.getDisplayedData(e,{graphicalItems:i.filter(function(e){return e.props[a]===_}),dataStartIndex:l,dataEndIndex:c}),j=k.length;if(!t[_]){var S,T,E;if(v){if(S=Object(ae.j)(k,v,y),"category"===y&&d){var M=Object(A.d)(S);g&&M?(T=S,S=m()(0,j)):g||(S=Object(ae.v)(r.props.domain,S,r).reduce(function(e,t){return e.indexOf(t)>=0?e:Ee(e).concat([t])},[]))}else if("category"===y)S=g?S.filter(function(e){return""!==e&&!w()(e)}):Object(ae.v)(r.props.domain,S,r).reduce(function(e,t){return e.indexOf(t)>=0||""===t||w()(t)?e:Ee(e).concat([t])},[]);else if("number"===y){var P=Object(ae.w)(k,i.filter(function(e){return e.props[a]===_&&!e.props.hide}),v,o);P&&(S=P)}!d||"number"!==y&&"auto"===x||(E=Object(ae.j)(k,v,"category"))}else S=d?m()(0,j):u&&u[_]&&u[_].hasStack&&"number"===y?"expand"===p?[0,1]:Object(ae.l)(u[_].stackGroups,l,c):Object(ae.k)(k,i.filter(function(e){return e.props[a]===_&&!e.props.hide}),y,!0);return"number"===y&&(S=Object(ae.e)(f,S,_,o,O),r.props.domain&&(S=Object(ae.y)(r.props.domain,S,b))),Me({},t,Pe({},_,Me({},r.props,{axisType:o,domain:S,categoricalDomain:E,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,i=t.axisType,o=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=Object(ae.u)(c,i),h=-1;return n.reduce(function(e,t){var y,v=t.props[o];return e[v]?e:(h++,d?y=m()(0,p):a&&a[v]&&a[v].hasStack?(y=Object(ae.l)(a[v].stackGroups,u,l),y=Object(ae.e)(s,y,v,i)):(y=Object(ae.y)(r.defaultProps.domain,Object(ae.k)(f,n.filter(function(e){return e.props[o]===v&&!e.props.hide}),"number"),r.defaultProps.allowDataOverflow),y=Object(ae.e)(s,y,v,i)),Me({},e,Pe({},v,Me({axisType:i},r.defaultProps,{hide:!0,orientation:ze[i]&&ze[i][h%2],domain:y,originalDomain:r.defaultProps.domain,isCategorial:d,layout:c}))))},{})}},{key:"getActiveCoordinate",value:function(e,t,n){var r=this.props.layout,i=e.find(function(e){return e&&e.index===t});if(i){if("horizontal"===r)return{x:i.coordinate,y:n.y};if("vertical"===r)return{x:n.x,y:i.coordinate};if("centric"===r){var o=i.coordinate,a=n.radius;return Me({},n,Object(we.e)(n.cx,n.cy,a,o),{angle:o,radius:a})}var u=i.coordinate,l=n.angle;return Me({},n,Object(we.e)(n.cx,n.cy,u,l),{angle:l,radius:u})}return Ue}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=Object(H.b)(this.container),n=Object(H.a)(e,t),r=this.inRange(n.chartX,n.chartY);if(!r)return null;var o=this.state,a=o.xAxisMap,u=o.yAxisMap;if("axis"!==i&&a&&u){var l=Object(A.b)(a).scale,c=Object(A.b)(u).scale;return Me({},n,{xValue:l&&l.invert?l.invert(n.chartX):null,yValue:c&&c.invert?c.invert(n.chartY):null})}var s=this.state,f=s.orderedTooltipTicks,p=s.tooltipAxis,d=s.tooltipTicks,h=this.calculateTooltipPos(r),y=Object(ae.b)(h,f,d,p);if(y>=0&&d){var v=d[y]&&d[y].value;return Me({},n,{activeTooltipIndex:y,activeLabel:v,activePayload:this.getTooltipContent(y,v),activeCoordinate:this.getActiveCoordinate(f,y,r)})}return null}},{key:"getTooltipContent",value:function(e,t){var n=this.state,r=n.graphicalItems,i=n.tooltipAxis,o=this.constructor.getDisplayedData(this.props,this.state);return e<0||!r||!r.length||e>=o.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;return(a=i.dataKey&&!i.allowDuplicatedCategory?Object(A.a)(p||o,i.dataKey,t):o[e])?Ee(n).concat([Me({},Object(N.j)(r),{dataKey:l,unit:s,formatter:f,name:c||l,color:Object(ae.n)(r),value:Object(ae.s)(a,l),payload:a})]):n},[])}},{key:"getFormatItems",value:function(e,t){var n=this,r=t.graphicalItems,i=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,b=this.constructor.hasBar(r),g=b&&Object(ae.h)({barSize:s,stackGroups:i}),x=[];return r.forEach(function(r,s){var y,O=n.constructor.getDisplayedData(e,{dataStartIndex:l,dataEndIndex:c},r),_=r.props,k=_.dataKey,j=_.maxBarSize,S=r.props["".concat(v,"Id")],T=r.props["".concat(m,"Id")],E=o.reduce(function(e,n){var i,o=t["".concat(n.axisType,"Map")],a=r.props["".concat(n.axisType,"Id")],u=o&&o[a];return Me({},e,(Pe(i={},n.axisType,u),Pe(i,"".concat(n.axisType,"Ticks"),Object(ae.q)(u)),i))},{}),M=E[m],P=E["".concat(m,"Ticks")],C=i&&i[S]&&i[S].hasStack&&Object(ae.p)(r,i[S].stackGroups),A=Object(ae.f)(M,P),I=w()(j)?h:j,R=b&&Object(ae.g)({barGap:p,barCategoryGap:d,bandSize:A,sizeList:g[T],maxBarSize:I}),D=r&&r.type&&r.type.getComposedData;D&&x.push({props:Me({},D(Me({},E,{displayedData:O,props:e,dataKey:k,item:r,bandSize:A,barPosition:R,offset:a,stackedData:C,layout:f,dataStartIndex:l,dataEndIndex:c,onItemMouseLeave:Object(ae.d)(n.handleItemMouseLeave,null,r.props.onMouseLeave),onItemMouseEnter:Object(ae.d)(n.handleItemMouseEnter,null,r.props.onMouseEnter)})),(y={key:r.key||"item-".concat(s)},Pe(y,v,E[v]),Pe(y,m,E[m]),Pe(y,"animationId",u),y)),childIndex:Object(N.n)(r,e.children),item:r})}),x}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,i=t.tooltipAxisBandSize,o=i/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-o:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-o,width:"horizontal"===e?i:r.width-1,height:"horizontal"===e?r.height-1:i}}},{key:"getCursorPoints",value:function(){var e,t,n,r,i=this.props.layout,o=this.state,a=o.activeCoordinate,u=o.offset;if("horizontal"===i)n=e=a.x,t=u.top,r=u.top+u.height;else if("vertical"===i)r=t=a.y,e=u.left,n=u.left+u.width;else if(!w()(a.cx)||!w()(a.cy)){if("centric"!==i){var l=a.cx,c=a.cy,s=a.radius,f=a.startAngle,p=a.endAngle;return{points:[Object(we.e)(l,c,s,f),Object(we.e)(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,b=Object(we.e)(d,h,y,m),g=Object(we.e)(d,h,v,m);e=b.x,t=b.y,n=g.x,r=g.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 i=this.state,o=i.angleAxisMap,a=i.radiusAxisMap;if(o&&a){var u=Object(A.b)(o);return Object(we.d)({x:e,y:t},u)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=Object(N.h)(e,E.a)&&"axis"===i?{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}:{};return Me({},Object(N.e)(this.props,this.handleOuterEvent),t)}},{key:"updateStateOfAxisMapsOffsetAndStackGroups",value:function(e){var r=this,i=e.props,a=e.dataStartIndex,u=e.dataEndIndex,c=e.updateId;if(!Object(N.p)({props:i}))return null;var s=i.children,f=i.layout,p=i.stackOffset,d=i.data,h=i.reverseStackOrder,y=this.constructor.getAxisNameByLayout(f),v=y.numericAxisName,m=y.cateAxisName,b=Object(N.g)(s,n),g=Object(ae.o)(d,b,"".concat(v,"Id"),"".concat(m,"Id"),p,h),x=o.reduce(function(e,t){return Me({},e,Pe({},"".concat(t.axisType,"Map"),r.getAxisMap(i,Me({},t,{graphicalItems:b,stackGroups:t.axisType===v&&g,dataStartIndex:a,dataEndIndex:u}))))},{}),w=this.calculateOffset(Me({},x,{props:i,graphicalItems:b}));Object.keys(x).forEach(function(e){x[e]=l(i,x[e],w,e.replace("Map",""),t)});var O=x["".concat(m,"Map")],_=this.tooltipTicksGenerator(O),k=this.getFormatItems(i,Me({},x,{dataStartIndex:a,dataEndIndex:u,updateId:c,graphicalItems:b,stackGroups:g,offset:w}));return Me({formatedGraphicalItems:k,graphicalItems:b,offset:w,stackGroups:g},_,x)}},{key:"addListener",value:function(){_e.on(ke,this.handleReceiveSyncEvent),_e.setMaxListeners&&_e._maxListeners&&_e.setMaxListeners(_e._maxListeners+1)}},{key:"removeListener",value:function(){_e.removeListener(ke,this.handleReceiveSyncEvent),_e.setMaxListeners&&_e._maxListeners&&_e.setMaxListeners(_e._maxListeners-1)}},{key:"calculateOffset",value:function(e){var t=e.props,n=e.graphicalItems,r=e.xAxisMap,i=void 0===r?{}:r,o=e.yAxisMap,a=void 0===o?{}:o,u=t.width,l=t.height,c=t.children,s=t.margin||{},f=Object(N.h)(c,xe),p=Object(N.h)(c,M.a),d=Object.keys(a).reduce(function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:Me({},e,Pe({},r,e[r]+n.width))},{left:s.left||0,right:s.right||0}),h=Object.keys(i).reduce(function(e,t){var n=i[t],r=n.orientation;return n.mirror||n.hide?e:Me({},e,Pe({},r,e[r]+n.height))},{top:s.top||0,bottom:s.bottom||0}),y=Me({},h,d),v=y.bottom;if(f&&(y.bottom+=f.props.height||xe.defaultProps.height),p&&this.legendInstance){var m=this.legendInstance.getBBox();y=Object(ae.a)(y,n,t,m)}return Me({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)||_e.emit(ke,t,this.uniqueChartId,e)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formatedGraphicalItems,i=0,o=r.length;i=0})},h.getDisplayedData=function(e,t,n){var r=t.graphicalItems,i=t.dataStartIndex,o=t.dataEndIndex,a=(r||[]).reduce(function(e,t){var n=t.props.data;return n&&n.length?Ee(e).concat(Ee(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&&Object(A.g)(i)&&Object(A.g)(o)?u.slice(i,o+1):[]},h};function Be(e){return(Be="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 We(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ve(){return(Ve=Object.assign||function(e){for(var t=1;t1e-5?"outer"===t?"start":"end":n<-1e-5?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.radius,i=e.axisLine,o=e.axisLineType,a=tt({},Object(N.j)(this.props),{fill:"none"},Object(N.j)(i));if("circle"===o)return _.a.createElement(V.a,et({className:"recharts-polar-angle-axis-line"},a,{cx:t,cy:n,r:r}));var u=this.props.ticks.map(function(e){return Object(we.e)(t,n,r,e.coordinate)});return _.a.createElement(Je,et({className:"recharts-polar-angle-axis-line"},a,{points:u}))}},{key:"renderTicks",value:function(){var e=this,t=this.props,n=t.ticks,r=t.tick,i=t.tickLine,o=t.tickFormatter,a=t.stroke,u=Object(N.j)(this.props),l=Object(N.j)(r),c=tt({},u,{fill:"none"},Object(N.j)(i)),s=n.map(function(t,n){var s=e.getTickLineCoord(t),f=tt({textAnchor:e.getTickTextAnchor(t)},u,{stroke:"none",fill:a},l,{index:n,payload:t,x:s.x2,y:s.y2});return _.a.createElement(T.a,et({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(n)},Object(N.f)(e.props,t,n)),i&&_.a.createElement("line",et({className:"recharts-polar-angle-axis-tick-line"},c,s)),r&&e.constructor.renderTickItem(r,f,o?o(t.value):t.value))});return _.a.createElement(T.a,{className:"recharts-polar-angle-axis-ticks"},s)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.radius,r=e.axisLine;return n<=0||!t||!t.length?null:_.a.createElement(T.a,{className:"recharts-polar-angle-axis"},r&&this.renderAxisLine(),this.renderTicks())}}])&&rt(n.prototype,r),i&&rt(n,i),t}(),Ye.displayName="PolarAngleAxis",Ye.axisType="angleAxis",Ye.propTypes=tt({},N.c,N.a,{type:u.a.oneOf(["number","category"]),angleAxisId:u.a.oneOfType([u.a.string,u.a.number]),dataKey:u.a.oneOfType([u.a.number,u.a.string,u.a.func]),cx:u.a.number,cy:u.a.number,radius:u.a.oneOfType([u.a.number,u.a.string]),hide:u.a.bool,scale:u.a.oneOfType([u.a.oneOf(N.d),u.a.func]),axisLine:u.a.oneOfType([u.a.bool,u.a.object]),axisLineType:u.a.oneOf(["polygon","circle"]),tickLine:u.a.oneOfType([u.a.bool,u.a.object]),tick:u.a.oneOfType([u.a.bool,u.a.func,u.a.object,u.a.element]),ticks:u.a.arrayOf(u.a.shape({value:u.a.any,coordinate:u.a.number})),stroke:u.a.string,orientation:u.a.oneOf(["inner","outer"]),tickFormatter:u.a.func,allowDuplicatedCategory:u.a.bool}),Ye.defaultProps={type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,domain:[0,"auto"],orientation:"outer",axisLine:!0,tickLine:!0,tick:!0,hide:!1,allowDuplicatedCategory:!0},Xe=Ke))||Xe,pt=n(453),dt=n.n(pt),ht=n(454),yt=n.n(ht);function vt(e){return(vt="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 mt(){return(mt=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function wt(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,m=void 0===r?{}:r,b=e.palette,g=void 0===b?{}:b,x=e.shadows,w=e.spacing,O=void 0===w?{}:w,_=e.typography,k=void 0===_?{}:_,j=(0,o.default)(e,["breakpoints","mixins","palette","shadows","spacing","typography"]),S=(0,s.default)(g),T=(0,l.default)(n),E=(0,i.default)({},h.default,O);return(0,i.default)({breakpoints:T,direction:"ltr",mixins:(0,c.default)(T,E,m),overrides:{},palette:S,props:{},shadows:x||p.default,typography:(0,f.default)(S,k)},(0,a.default)({shape:d.default,spacing:E,transitions:y.default,zIndex:v.default},j,{isMergeableObject:u.default}))};t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="";if(!t)return r;var i=n.indent,u=void 0===i?0:i,l=t.fallbacks;if(u++,l)if(Array.isArray(l))for(var c=0;c-1&&e%1==0&&e-1&&e%1==0&&e<=n}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(71)(n(50),"Map");e.exports=r},function(e,t,n){var r=n(660),i=n(667),o=n(669),a=n(670),u=n(671);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t1)for(var n=1;n=0||(i[n]=e[n]);return i}(e,["component","childFactory"]),o=s(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o:i.default.createElement(t,r,o)},r}(i.default.Component);f.childContextTypes={transitionGroup:r.default.object.isRequired},f.propTypes={},f.defaultProps={component:"div",childFactory:function(e){return e}};var p=(0,o.polyfill)(f);t.default=p,e.exports=t.default},,,,,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getTickValues",{enumerable:!0,get:function(){return r.getTickValues}}),Object.defineProperty(t,"getNiceTickValues",{enumerable:!0,get:function(){return r.getNiceTickValues}}),Object.defineProperty(t,"getTickValuesFixedDomain",{enumerable:!0,get:function(){return r.getTickValuesFixedDomain}});var r=n(719)},function(e,t,n){var r=n(722),i=n(397),o=n(51);e.exports=function(e,t){var n={};return t=o(t,3),i(e,function(e,i,o){r(n,i,t(e,i,o))}),n}},,function(e,t,n){"use strict"; +/* +object-assign +(c) Sindre Sorhus +@license MIT +*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,u=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l0&&void 0!==arguments[0]?arguments[0]:{},t=e.dangerouslyUseGlobalCSS,n=void 0!==t&&t,r=e.productionPrefix,i=void 0===r?"jss":r,a=e.seed,u=void 0===a?"":a,l=0;return function(e,t){return l+=1,n&&t&&t.options.name?"".concat(o(t.options.name),"-").concat(e.key):"".concat(i).concat(u).concat(l)}};r(n(25));var i=/([[\].#*$><+~=|^:(),"'`\s])/g;function o(e){return String(e).replace(i,"-")}},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,u=void 0===r?"px":r,l=e.step,c=void 0===l?5:l,s=(0,o.default)(e,["values","unit","step"]);function f(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(u,")")}function p(e,t){var r=a.indexOf(t)+1;return r===a.length?f(e):"@media (min-width:".concat(n[e]).concat(u,") and ")+"(max-width:".concat(n[a[r]]-c/100).concat(u,")")}return(0,i.default)({keys:a,values:n,up:f,down:function(e){var t=a.indexOf(e)+1,r=n[a[t]];if(t===a.length)return f("xs");return"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-c/100).concat(u,")")},between:p,only:function(e){return p(e,e)},width:function(e){return n[e]}},s)},t.keys=void 0;var i=r(n(7)),o=r(n(8)),a=["xs","sm","md","lg","xl"];t.keys=a},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;r(n(83)),n(341);var i=function(){return null};i.isRequired=function(){return null};var o=i;t.default=o},function(e,t,n){"use strict";e.exports=n(519)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){return function(){return null}};t.default=r},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.specialProperty=void 0;r(n(14)),r(n(7));var i="exact-prop: ​";t.specialProperty=i;var o=function(e){return e};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFunctionName=i,t.default=void 0;var r=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s\/]*)\s*/;function i(e){var t="".concat(e).match(r);return t&&t[1]||""}var o=function(e){return"string"==typeof e?e:e?e.displayName||e.name||i(e)||"Component":void 0};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();t.default=r},function(e,t,n){"use strict";var r=n(2);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(524)),o=r(n(544)),a=r(n(546)),u=r(n(548)),l=r(n(550)),c=r(n(555));var s=function(){return{plugins:[(0,i.default)(),(0,o.default)(),(0,a.default)(),(0,u.default)(),"undefined"==typeof window?null:(0,l.default)(),(0,c.default)()]}};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.create=t.createGenerateClassName=t.sheets=t.RuleList=t.SheetsManager=t.SheetsRegistry=t.toCssValue=t.getDynamicStyles=void 0;var r=n(525);Object.defineProperty(t,"getDynamicStyles",{enumerable:!0,get:function(){return f(r).default}});var i=n(255);Object.defineProperty(t,"toCssValue",{enumerable:!0,get:function(){return f(i).default}});var o=n(348);Object.defineProperty(t,"SheetsRegistry",{enumerable:!0,get:function(){return f(o).default}});var a=n(526);Object.defineProperty(t,"SheetsManager",{enumerable:!0,get:function(){return f(a).default}});var u=n(233);Object.defineProperty(t,"RuleList",{enumerable:!0,get:function(){return f(u).default}});var l=n(293);Object.defineProperty(t,"sheets",{enumerable:!0,get:function(){return f(l).default}});var c=n(351);Object.defineProperty(t,"createGenerateClassName",{enumerable:!0,get:function(){return f(c).default}});var s=f(n(532));function f(e){return e&&e.__esModule?e:{default:e}}var p=t.create=function(e){return new s.default(e)};t.default=p()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n=this.index)t.push(e);else for(var r=0;rn)return void t.splice(r,0,e)}},{key:"reset",value:function(){this.registry=[]}},{key:"remove",value:function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)}},{key:"toString",value:function(e){return this.registry.filter(function(e){return e.attached}).map(function(t){return t.toString(e)}).join("\n")}},{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(528),o=(r=i)&&r.__esModule?r:{default:r};t.default=function(e){return e&&e[o.default]&&e===e[o.default]()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){e.renderable=t,e.rules&&t.cssRules&&e.rules.link(t.cssRules)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(84)),i=(o(n(352)),o(n(531)));function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(){var e=0;return function(t,n){(e+=1)>1e10&&(0,r.default)(!1,"[JSS] You might have a memory leak. Rule counter is at %s.",e);var o="c",a="";return n&&(o=n.options.classNamePrefix||"c",null!=n.options.jss.id&&(a+=n.options.jss.id)),""+o+i.default+a+e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;if(e.Component,!n)return t;var r=(0,i.default)({},t);return Object.keys(n).forEach(function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))}),r};t.default=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(59))},function(e,t,n){var r=n(37),i=n(220),o=NaN,a=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return o;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(a,"");var n=l.test(e);return n||c.test(e)?s(e.slice(2),n?2:8):u.test(e)?o:+e}},,,,,,,,,,function(e,t,n){var r=n(632),i=n(266);e.exports=function(e,t){return e&&r(e,t,i)}},function(e,t,n){(function(e){var r=n(50),i=n(637),o=t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,u=a&&a.exports===o?r.Buffer:void 0,l=(u?u.isBuffer:void 0)||i;e.exports=l}).call(this,n(300)(e))},function(e,t,n){var r=n(638),i=n(313),o=n(639),a=o&&o.isTypedArray,u=a?i(a):r;e.exports=u},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(267),i=n(651),o=n(652),a=n(653),u=n(654),l=n(655);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=u,c.prototype.set=l,e.exports=c},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(404),i=n(405),o=n(406),a=1,u=2;e.exports=function(e,t,n,l,c,s){var f=n&a,p=e.length,d=t.length;if(p!=d&&!(f&&d>p))return!1;var h=s.get(e);if(h&&s.get(t))return h==t;var y=-1,v=!0,m=n&u?new r:void 0;for(s.set(e,t),s.set(t,e);++y0&&o(s)?n>1?e(s,n-1,o,a,u):r(u,s):a||(u[u.length]=s)}return u}},function(e,t,n){var r=n(265),i=n(221);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,function(e,r,i){o[++n]=t(e,r,i)}),o}},function(e,t,n){var r=n(222),i=n(710),o=n(712);e.exports=function(e,t){return o(i(e,t,r),e+"")}},function(e,t,n){var r=n(71),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t){e.exports=function(e,t){return e>t}},function(e,t){e.exports=function(e,t){return e(u=(a=Math.ceil(p/v))>u?a+1:u+1)&&(o=u,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((u=c.length)-(o=s.length)<0&&(o=u,r=s,s=c,c=r),n=0;o;)n=(c[--o]=c[o]+s[o]+n)/y|0,c[o]%=y;for(n&&(c.unshift(n),++i),u=c.length;0==c[--u];)c.pop();return t.d=c,t.e=i,l?M(t,p):t}function x(e,t,n){if(e!==~~e||en)throw Error(s+e)}function w(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;te.e^o.s<0?1:-1;for(t=0,n=(r=o.d.length)<(i=e.d.length)?r:i;te.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1},b.decimalPlaces=b.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*v;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},b.dividedBy=b.div=function(e){return O(this,new this.constructor(e))},b.dividedToIntegerBy=b.idiv=function(e){var t=this.constructor;return M(O(this,new t(e),0,1),t.precision)},b.equals=b.eq=function(e){return!this.cmp(e)},b.exponent=function(){return k(this)},b.greaterThan=b.gt=function(e){return this.cmp(e)>0},b.greaterThanOrEqualTo=b.gte=function(e){return this.cmp(e)>=0},b.isInteger=b.isint=function(){return this.e>this.d.length-2},b.isNegative=b.isneg=function(){return this.s<0},b.isPositive=b.ispos=function(){return this.s>0},b.isZero=function(){return 0===this.s},b.lessThan=b.lt=function(e){return this.cmp(e)<0},b.lessThanOrEqualTo=b.lte=function(e){return this.cmp(e)<1},b.logarithm=b.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(o))throw Error(c+"NaN");if(n.s<1)throw Error(c+(n.s?"NaN":"-Infinity"));return n.eq(o)?new r(0):(l=!1,t=O(T(n,a),T(e,a),a),l=!0,M(t,i))},b.minus=b.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?P(t,e):g(t,(e.s=-e.s,e))},b.modulo=b.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(!(e=new r(e)).s)throw Error(c+"NaN");return n.s?(l=!1,t=O(n,e,0,1).times(e),l=!0,n.minus(t)):M(new r(n),i)},b.naturalExponential=b.exp=function(){return _(this)},b.naturalLogarithm=b.ln=function(){return T(this)},b.negated=b.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},b.plus=b.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?g(t,e):P(t,(e.s=-e.s,e))},b.precision=b.sd=function(e){var t,n,r,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(s+e);if(t=k(i)+1,n=(r=i.d.length-1)*v+1,r=i.d[r]){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},b.squareRoot=b.sqrt=function(){var e,t,n,r,i,o,a,u=this,s=u.constructor;if(u.s<1){if(!u.s)return new s(0);throw Error(c+"NaN")}for(e=k(u),l=!1,0==(i=Math.sqrt(+u))||i==1/0?(((t=w(u.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=p((e+1)/2)-(e<0||e%2),r=new s(t=i==1/0?"1e"+e:(t=i.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new s(i.toString()),i=a=(n=s.precision)+3;;)if(r=(o=r).plus(O(u,o,a+2)).times(.5),w(o.d).slice(0,a)===(t=w(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&"4999"==t){if(M(o,n+1,0),o.times(o).eq(u)){r=o;break}}else if("9999"!=t)break;a+=4}return l=!0,M(r,n)},b.times=b.mul=function(e){var t,n,r,i,o,a,u,c,s,f=this,p=f.constructor,d=f.d,h=(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=h.length)&&(o=d,d=h,h=o,a=c,c=s,s=a),o=[],r=a=c+s;r--;)o.push(0);for(r=s;--r>=0;){for(t=0,i=c+r;i>r;)u=o[i]+h[r]*d[i-r-1]+t,o[i--]=u%y|0,t=u/y|0;o[i]=(o[i]+t)%y|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,l?M(e,p.precision):e},b.toDecimalPlaces=b.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(x(e,0,a),void 0===t?t=r.rounding:x(t,0,8),M(n,e+k(n)+1,t))},b.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=C(r,!0):(x(e,0,a),void 0===t?t=i.rounding:x(t,0,8),n=C(r=M(new i(r),e+1,t),!0,e+1)),n},b.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?C(i):(x(e,0,a),void 0===t?t=o.rounding:x(t,0,8),n=C((r=M(new o(i),e+k(i)+1,t)).abs(),!1,e+k(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)},b.toInteger=b.toint=function(){var e=this,t=e.constructor;return M(new t(e),k(e)+1,t.rounding)},b.toNumber=function(){return+this},b.toPower=b.pow=function(e){var t,n,r,i,a,u,s=this,f=s.constructor,d=+(e=new f(e));if(!e.s)return new f(o);if(!(s=new f(s)).s){if(e.s<1)throw Error(c+"Infinity");return s}if(s.eq(o))return s;if(r=f.precision,e.eq(o))return M(s,r);if(u=(t=e.e)>=(n=e.d.length-1),a=s.s,u){if((n=d<0?-d:d)<=9007199254740991){for(i=new f(o),t=Math.ceil(r/v+4),l=!1;n%2&&A((i=i.times(s)).d,t),0!==(n=p(n/2));)A((s=s.times(s)).d,t);return l=!0,e.s<0?new f(o).div(i):M(i,r)}}else if(a<0)throw Error(c+"NaN");return a=a<0&&1&e.d[Math.max(t,n)]?-1:1,s.s=1,l=!1,i=e.times(T(s,r+12)),l=!0,(i=_(i)).s=a,i},b.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?r=C(i,(n=k(i))<=o.toExpNeg||n>=o.toExpPos):(x(e,1,a),void 0===t?t=o.rounding:x(t,0,8),r=C(i=M(new o(i),e,t),e<=(n=k(i))||n<=o.toExpNeg,e)),r},b.toSignificantDigits=b.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(x(e,1,a),void 0===t?t=n.rounding:x(t,0,8)),M(new n(this),e,t)},b.toString=b.valueOf=b.val=b.toJSON=function(){var e=this,t=k(e),n=e.constructor;return C(e,t<=n.toExpNeg||t>=n.toExpPos)};var O=function(){function e(e,t){var n,r=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+r,e[i]=n%y|0,r=n/y|0;return r&&e.unshift(r),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]1;)e.shift()}return function(r,i,o,a){var u,l,s,f,p,d,h,m,b,g,x,w,O,_,j,S,T,E,P=r.constructor,C=r.s==i.s?1:-1,A=r.d,N=i.d;if(!r.s)return new P(r);if(!i.s)throw Error(c+"Division by zero");for(l=r.e-i.e,T=N.length,j=A.length,m=(h=new P(C)).d=[],s=0;N[s]==(A[s]||0);)++s;if(N[s]>(A[s]||0)&&--l,(w=null==o?o=P.precision:a?o+(k(r)-k(i))+1:o)<0)return new P(0);if(w=w/v+2|0,s=0,1==T)for(f=0,N=N[0],w++;(s1&&(N=e(N,f),A=e(A,f),T=N.length,j=A.length),_=T,g=(b=A.slice(0,T)).length;g=y/2&&++S;do{f=0,(u=t(N,b,T,g))<0?(x=b[0],T!=g&&(x=x*y+(b[1]||0)),(f=x/S|0)>1?(f>=y&&(f=y-1),1==(u=t(p=e(N,f),b,d=p.length,g=b.length))&&(f--,n(p,T16)throw Error(f+k(e));if(!e.s)return new p(o);for(null==t?(l=!1,u=h):u=t,a=new p(.03125);e.abs().gte(.1);)e=e.times(a),s+=5;for(u+=Math.log(d(2,s))/Math.LN10*2+5|0,n=r=i=new p(o),p.precision=u;;){if(r=M(r.times(e),u),n=n.times(++c),w((a=i.plus(O(r,n,u))).d).slice(0,u)===w(i.d).slice(0,u)){for(;s--;)i=M(i.times(i),u);return p.precision=h,null==t?(l=!0,M(i,h)):i}i=a}}function k(e){for(var t=e.e*v,n=e.d[0];n>=10;n/=10)t++;return t}function j(e,t,n){if(t>e.LN10.sd())throw l=!0,n&&(e.precision=n),Error(c+"LN10 precision limit exceeded");return M(new e(e.LN10),t)}function S(e){for(var t="";e--;)t+="0";return t}function T(e,t){var n,r,i,a,u,s,f,p,d,h=1,y=e,v=y.d,m=y.constructor,b=m.precision;if(y.s<1)throw Error(c+(y.s?"NaN":"-Infinity"));if(y.eq(o))return new m(0);if(null==t?(l=!1,p=b):p=t,y.eq(10))return null==t&&(l=!0),j(m,p);if(p+=10,m.precision=p,r=(n=w(v)).charAt(0),a=k(y),!(Math.abs(a)<15e14))return f=j(m,p+2,b).times(a+""),y=T(new m(r+"."+n.slice(1)),p-10).plus(f),m.precision=b,null==t?(l=!0,M(y,b)):y;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=w((y=y.times(e)).d)).charAt(0),h++;for(a=k(y),r>1?(y=new m("0."+n),a++):y=new m(r+"."+n.slice(1)),s=u=y=O(y.minus(o),y.plus(o),p),d=M(y.times(y),p),i=3;;){if(u=M(u.times(d),p),w((f=s.plus(O(u,new m(i),p))).d).slice(0,p)===w(s.d).slice(0,p))return s=s.times(2),0!==a&&(s=s.plus(j(m,p+2,b).times(a+""))),s=O(s,new m(h),p),m.precision=b,null==t?(l=!0,M(s,b)):s;s=f,i+=2}}function E(e,t){var n,r,i;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(i=t.length;48===t.charCodeAt(i-1);)--i;if(t=t.slice(r,i)){if(i-=r,n=n-r-1,e.e=p(n/v),e.d=[],r=(n+1)%v,n<0&&(r+=v),rm||e.e<-m))throw Error(f+n)}else e.s=0,e.e=0,e.d=[0];return e}function M(e,t,n){var r,i,o,a,u,c,s,h,b=e.d;for(a=1,o=b[0];o>=10;o/=10)a++;if((r=t-a)<0)r+=v,i=t,s=b[h=0];else{if((h=Math.ceil((r+1)/v))>=(o=b.length))return e;for(s=o=b[h],a=1;o>=10;o/=10)a++;i=(r%=v)-v+a}if(void 0!==n&&(u=s/(o=d(10,a-i-1))%10|0,c=t<0||void 0!==b[h+1]||s%o,c=n<4?(u||c)&&(0==n||n==(e.s<0?3:2)):u>5||5==u&&(4==n||c||6==n&&(r>0?i>0?s/d(10,a-i):0:b[h-1])%10&1||n==(e.s<0?8:7))),t<1||!b[0])return c?(o=k(e),b.length=1,t=t-o-1,b[0]=d(10,(v-t%v)%v),e.e=p(-t/v)||0):(b.length=1,b[0]=e.e=e.s=0),e;if(0==r?(b.length=h,o=1,h--):(b.length=h+1,o=d(10,v-r),b[h]=i>0?(s/d(10,a-i)%d(10,i)|0)*o:0),c)for(;;){if(0==h){(b[0]+=o)==y&&(b[0]=1,++e.e);break}if(b[h]+=o,b[h]!=y)break;b[h--]=0,o=1}for(r=b.length;0===b[--r];)b.pop();if(l&&(e.e>m||e.e<-m))throw Error(f+k(e));return e}function P(e,t){var n,r,i,o,a,u,c,s,f,p,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),l?M(t,h):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,u=p.length):(n=p,r=s,u=c.length),a>(i=Math.max(Math.ceil(h/v),u)+2)&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for((f=(i=c.length)<(u=p.length))&&(u=i),i=0;i0;--i)c[u++]=0;for(i=p.length;i>a;){if(c[--i]0?o=o.charAt(0)+"."+o.slice(1)+S(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+S(-i-1)+o,n&&(r=n-a)>0&&(o+=S(r))):i>=a?(o+=S(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+S(r))):((r=i+1)0&&(i+1===a&&(o+="."),o+=S(r))),e.s<0?"-"+o:o}function A(e,t){if(e.length>t)return e.length=t,!0}function N(e){if(!e||"object"!=typeof e)throw Error(c+"Object expected");var t,n,r,i=["precision",1,a,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t=i[t+1]&&r<=i[t+2]))throw Error(s+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(s+n+": "+r);this[n]=new this(r)}return this}(u=function e(t){var n,r,i;function o(e){var t=this;if(!(t instanceof o))return new o(e);if(t.constructor=o,e instanceof o)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(s+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])):E(t,e.toString())}if("string"!=typeof e)throw Error(s+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!h.test(e))throw Error(s+e);E(t,e)}if(o.prototype=b,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=e,o.config=o.set=N,void 0===t&&(t={}),t)for(i=["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),i=0;i0&&a.length>i&&!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 f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=function(){for(var e=[],t=0;t0&&(a=t[0]),a instanceof Error)throw a;var u=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var l=i[e];if(void 0===l)return!1;if("function"==typeof l)o(l,this,t);else{var c=l.length,s=h(l,c);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},u.prototype.listeners=function(e){return p(this,e,!0)},u.prototype.rawListeners=function(e){return p(this,e,!1)},u.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},u.prototype.listenerCount=d,u.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},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(273),i=n(51),o=n(420);e.exports=function(e,t){return e&&e.length?r(e,i(t,2),o):void 0}},function(e,t,n){var r=n(273),i=n(419),o=n(51);e.exports=function(e,t){return e&&e.length?r(e,o(t,2),i):void 0}},,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict"; +/** @license React v16.8.1 + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var r=n(335),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,u=i?Symbol.for("react.fragment"):60107,l=i?Symbol.for("react.strict_mode"):60108,c=i?Symbol.for("react.profiler"):60114,s=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,p=i?Symbol.for("react.concurrent_mode"):60111,d=i?Symbol.for("react.forward_ref"):60112,h=i?Symbol.for("react.suspense"):60113,y=i?Symbol.for("react.memo"):60115,v=i?Symbol.for("react.lazy"):60116,m="function"==typeof Symbol&&Symbol.iterator;function b(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;rA.length&&A.push(e)}function R(e,t,n){return null==e?0:function e(t,n,r,i){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 o:case a:l=!0}}if(l)return r(i,t,""===n?"."+D(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;cthis.eventPool.length&&this.eventPool.push(e)}function fe(e){e.eventPool=[],e.getPooled=ce,e.release=se}i(le.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ae)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ae)},persist:function(){this.isPersistent=ae},isPersistent:ue,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=ue,this._dispatchInstances=this._dispatchListeners=null}}),le.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},le.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,fe(n),n},fe(le);var pe=le.extend({data:null}),de=le.extend({data:null}),he=[9,13,27,32],ye=H&&"CompositionEvent"in window,ve=null;H&&"documentMode"in document&&(ve=document.documentMode);var me=H&&"TextEvent"in window&&!ve,be=H&&(!ye||ve&&8=ve),ge=String.fromCharCode(32),xe={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},we=!1;function Oe(e,t){switch(e){case"keyup":return-1!==he.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function _e(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ke=!1;var je={eventTypes:xe,extractEvents:function(e,t,n,r){var i=void 0,o=void 0;if(ye)e:{switch(e){case"compositionstart":i=xe.compositionStart;break e;case"compositionend":i=xe.compositionEnd;break e;case"compositionupdate":i=xe.compositionUpdate;break e}i=void 0}else ke?Oe(e,n)&&(i=xe.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=xe.compositionStart);return i?(be&&"ko"!==n.locale&&(ke||i!==xe.compositionStart?i===xe.compositionEnd&&ke&&(o=oe()):(re="value"in(ne=r)?ne.value:ne.textContent,ke=!0)),i=pe.getPooled(i,t,n,r),o?i.data=o:null!==(o=_e(n))&&(i.data=o),G(i),o=i):o=null,(e=me?function(e,t){switch(e){case"compositionend":return _e(t);case"keypress":return 32!==t.which?null:(we=!0,ge);case"textInput":return(e=t.data)===ge&&we?null:e;default:return null}}(e,n):function(e,t){if(ke)return"compositionend"===e||!ye&&Oe(e,t)?(e=oe(),ie=re=ne=null,ke=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1