(this["webpackJsonpgonzo-test-client"]=this["webpackJsonpgonzo-test-client"]||[]).push([[89],{"/jJ5":function(e,t,n){"use strict";var r=n("GoyQ"),a=n.n(r),o=n("lSCD"),i=n.n(o),c=n("J2iB"),s=n.n(c),l=n("RBan"),u=n.n(l),p=n("Z0cm"),f=n.n(p),h=n("q1tI"),d=n.n(h),y=n("17x9"),b=n.n(y),m=n("FQZO"),v=n("GKuj"),g=n("34C+"),O=n("G95L");function x(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var T={id:b.a.string,data:b.a.arrayOf(b.a.object),valueAccessor:b.a.func,clockWise:b.a.bool,dataKey:b.a.oneOfType([b.a.string,b.a.number,b.a.func])},P={valueAccessor:function(e){return f()(e.value)?u()(e.value):e.value}};function E(e){var t=e.data,n=e.valueAccessor,r=e.dataKey,a=e.clockWise,o=e.id,i=S(e,["data","valueAccessor","dataKey","clockWise","id"]);return t&&t.length?d.a.createElement(v.a,{className:"recharts-label-list"},t.map((function(e,t){var c=s()(r)?n(e,t):Object(O.v)(e&&e.payload,r),l=s()(o)?{}:{id:"".concat(o,"-").concat(t)};return d.a.createElement(m.a,j({},Object(g.k)(e),i,l,{index:t,value:c,viewBox:m.a.parseViewBox(s()(a)?e:k({},e,{clockWise:a})),key:"label-".concat(t)}))}))):null}E.propTypes=T,E.displayName="LabelList";var I=function(e,t){return e?!0===e?d.a.createElement(E,{key:"labelList-implicit",data:t}):d.a.isValidElement(e)||i()(e)?d.a.createElement(E,{key:"labelList-implicit",data:t,content:e}):a()(e)?d.a.createElement(E,j({data:t},e,{key:"labelList-implicit"})):null:null};E.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,a=Object(g.h)(r,E).map((function(e,n){return Object(h.cloneElement)(e,{data:t,key:"labelList-".concat(n)})}));if(!n)return a;var o=I(e.label,t);return[o].concat(x(a))},E.defaultProps=P,t.a=E},"0d+u":function(e,t,n){"use strict";var r=n("hszt"),a=n("BChI"),o=n("2Ovm"),i=n("wcMh"),c=n("3kbO"),s=n("J+eN"),l=n("b+jq"),u=n("2Fwe"),p=n("Ao2N");t.a=Object(r.a)({chartName:"ComposedChart",GraphicalChild:[i.a,a.a,o.a,c.a],axisComponents:[{axisType:"xAxis",AxisComp:s.a},{axisType:"yAxis",AxisComp:l.a},{axisType:"zAxis",AxisComp:u.a}],formatAxisMap:p.b})},"2Fwe":function(e,t,n){"use strict";var r=n("q1tI"),a=n("17x9"),o=n.n(a);function i(e){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function P(){return(P=Object.assign||function(e){for(var t=1;t0&&Math.abs(b)0&&Math.abs(h)0||!a()(s,r)||!a()(l,o))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,o,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,a=e.className,o=e.top,i=e.left,c=e.xAxis,s=e.yAxis,l=e.width,u=e.height,p=e.isAnimationActive,f=e.id;if(t||!r||!r.length)return null;var h=this.state.isAnimationFinished,y=1===r.length,b=j()("recharts-area",a),m=c&&c.allowDataOverflow||s&&s.allowDataOverflow,g=d()(f)?this.id:f;return v.a.createElement(S.a,{className:b},m?v.a.createElement("defs",null,v.a.createElement("clipPath",{id:"clipPath-".concat(g)},v.a.createElement("rect",{x:i,y:o,width:l,height:parseInt(u,10)}))):null,y?null:this.renderArea(m,g),(n||y)&&this.renderDots(m,g),(!p||h)&&T.a.renderCallByParent(this.props,r))}}])&&R(n.prototype,r),o&&R(n,o),t}(m.PureComponent);G.displayName="Area",G.propTypes=B({},P.c,{},P.a,{className:O.a.string,dataKey:O.a.oneOfType([O.a.string,O.a.number,O.a.func]).isRequired,type:O.a.oneOfType([O.a.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),O.a.func]),unit:O.a.oneOfType([O.a.string,O.a.number]),name:O.a.oneOfType([O.a.string,O.a.number]),yAxisId:O.a.oneOfType([O.a.string,O.a.number]),xAxisId:O.a.oneOfType([O.a.string,O.a.number]),yAxis:O.a.object,xAxis:O.a.object,stackId:O.a.oneOfType([O.a.number,O.a.string]),legendType:O.a.oneOf(P.b),tooltipType:O.a.oneOf(P.e),connectNulls:O.a.bool,activeDot:O.a.oneOfType([O.a.object,O.a.element,O.a.func,O.a.bool]),dot:O.a.oneOfType([O.a.func,O.a.element,O.a.object,O.a.bool]),label:O.a.oneOfType([O.a.func,O.a.element,O.a.object,O.a.bool]),hide:O.a.bool,layout:O.a.oneOf(["horizontal","vertical"]),baseLine:O.a.oneOfType([O.a.number,O.a.array]),isRange:O.a.bool,points:O.a.arrayOf(O.a.shape({x:O.a.number,y:O.a.number,value:O.a.oneOfType([O.a.number,O.a.array])})),onAnimationStart:O.a.func,onAnimationEnd:O.a.func,animationId:O.a.number,isAnimationActive:O.a.bool,animationBegin:O.a.number,animationDuration:O.a.number,animationEasing:O.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),id:O.a.string}),G.defaultProps={stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Object(P.n)(),animationBegin:0,animationDuration:1500,animationEasing:"ease"},G.getBaseValue=function(e,t,n){var r=e.layout,a=e.baseValue;if(Object(E.h)(a))return a;var o="horizontal"===r?n:t,i=o.scale.domain();if("number"===o.type){var c=Math.max(i[0],i[1]),s=Math.min(i[0],i[1]);return"dataMin"===a?s:"dataMax"===a||c<0?c:Math.max(Math.min(i[0],i[1]),0)}return"dataMin"===a?i[0]:"dataMax"===a?i[1]:i[0]},G.getComposedData=function(e){var t,n=e.props,r=e.xAxis,a=e.yAxis,o=e.xAxisTicks,i=e.yAxisTicks,c=e.bandSize,s=e.dataKey,l=e.stackedData,u=e.dataStartIndex,p=e.displayedData,h=e.offset,y=n.layout,m=l&&l.length,v=G.getBaseValue(n,r,a),g=!1,O=p.map((function(e,t){var n;return m?n=l[u+t]:(n=Object(I.v)(e,s),b()(n)?g=!0:n=[v,n]),"horizontal"===y?{x:Object(I.k)({axis:r,ticks:o,bandSize:c,entry:e,index:t}),y:d()(n[1])?null:a.scale(n[1]),value:n,payload:e}:{x:d()(n[1])?null:r.scale(n[1]),y:Object(I.k)({axis:a,ticks:i,bandSize:c,entry:e,index:t}),value:n,payload:e}}));return t=m||g?O.map((function(e){return"horizontal"===y?{x:e.x,y:d()(f()(e,"value[0]"))?null:a.scale(f()(e,"value[0]"))}:{x:d()(f()(e,"value[0]"))?null:r.scale(f()(e,"value[0]")),y:e.y}})):"horizontal"===y?a.scale(v):r.scale(v),B({points:O,baseLine:t,layout:y,isRange:g},h)},G.renderDotItem=function(e,t){return v.a.isValidElement(e)?v.a.cloneElement(e,t):u()(e)?e(t):v.a.createElement(A.a,D({},t,{className:"recharts-area-dot"}))},t.a=G},C7jv:function(e,t,n){"use strict";var r=n("lSCD"),a=n.n(r),o=n("q1tI"),i=n.n(o),c=n("17x9"),s=n.n(c),l=n("TSYQ"),u=n.n(l),p=n("GKuj"),f=n("FQZO"),h=n("Ao2N"),d=n("BJo3"),y=n("km7V"),b=n("U8Fc"),m=n("34C+"),v=n("lEKu");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 O(){return(O=Object.assign||function(e){for(var t=1;t=0?1:-1;"insideStart"===o?(r=b+k*c,a=x):"insideEnd"===o?(r=g-k*c,a=!x):"end"===o&&(r=g+k*c,a=x),a=w<=0?a:!a;var A=Object(v.c)(p,f,j,r),S=Object(v.c)(p,f,j,r+359*(a?1:-1)),T="M".concat(A.x,",").concat(A.y,"\n A").concat(j,",").concat(j,",0,1,").concat(a?0:1,",\n ").concat(S.x,",").concat(S.y),P=s()(e.id)?Object(m.k)("recharts-radial-line-"):e.id;return u.a.createElement("text",O({},n,{dominantBaseline:"central",className:d()("recharts-radial-bar-label",l)}),u.a.createElement("defs",null,u.a.createElement("path",{id:P,d:T})),u.a.createElement("textPath",{xlinkHref:"#".concat(P)},t))};function T(e){var t,n=e.viewBox,r=e.position,o=e.value,c=e.children,p=e.content,f=e.className,h=void 0===f?"":f;if(!n||s()(o)&&s()(c)&&!Object(l.isValidElement)(p)&&!i()(p))return null;if(Object(l.isValidElement)(p))return Object(l.cloneElement)(p,e);if(i()(p)){if(t=p(e),Object(l.isValidElement)(t))return t}else t=function(e){var t=e.value,n=e.formatter,r=s()(e.children)?t:e.children;return i()(n)?n(r):r}(e);var g=function(e){return Object(m.h)(e.cx)}(n),x=Object(b.k)(e),j=Object(b.f)(e);if(g&&("insideStart"===r||"insideEnd"===r||"end"===r))return S(e,t,x);var w=g?function(e){var t=e.viewBox,n=e.offset,r=e.position,a=t.cx,o=t.cy,i=t.innerRadius,c=t.outerRadius,s=(t.startAngle+t.endAngle)/2;if("outside"===r){var l=Object(v.c)(a,o,c+n,s),u=l.x;return{x:u,y:l.y,textAnchor:u>=a?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:a,y:o,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:a,y:o,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:a,y:o,textAnchor:"middle",verticalAnchor:"end"};var p=(i+c)/2,f=Object(v.c)(a,o,p,s);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}}(e):function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t.x,i=t.y,c=t.width,s=t.height,l=s>=0?1:-1;return"top"===r?{x:o+c/2,y:i-l*n,textAnchor:"middle",verticalAnchor:l>0?"end":"start"}:"bottom"===r?{x:o+c/2,y:i+s+l*n,textAnchor:"middle",verticalAnchor:"start"}:"left"===r?{x:o-n,y:i+s/2,textAnchor:"end",verticalAnchor:"middle"}:"right"===r?{x:o+c+n,y:i+s/2,textAnchor:"start",verticalAnchor:"middle"}:"insideLeft"===r?{x:o+n,y:i+s/2,textAnchor:"start",verticalAnchor:"middle"}:"insideRight"===r?{x:o+c-n,y:i+s/2,textAnchor:"end",verticalAnchor:"middle"}:"insideTop"===r?{x:o+c/2,y:i+l*n,textAnchor:"middle",verticalAnchor:"start"}:"insideBottom"===r?{x:o+c/2,y:i+s-l*n,textAnchor:"middle",verticalAnchor:"end"}:"insideTopLeft"===r?{x:o+n,y:i+l*n,textAnchor:"start",verticalAnchor:"start"}:"insideTopRight"===r?{x:o+c-n,y:i+l*n,textAnchor:"end",verticalAnchor:"start"}:"insideBottomLeft"===r?{x:o+n,y:i+s-l*n,textAnchor:"start",verticalAnchor:"end"}:"insideBottomRight"===r?{x:o+c-n,y:i+s-l*n,textAnchor:"end",verticalAnchor:"end"}:a()(r)&&(Object(m.h)(r.x)||Object(m.i)(r.x))&&(Object(m.h)(r.y)||Object(m.i)(r.y))?{x:o+Object(m.d)(r.x,c),y:i+Object(m.d)(r.y,s),textAnchor:"end",verticalAnchor:"end"}:{x:o+c/2,y:i+s/2,textAnchor:"middle",verticalAnchor:"middle"}}(e);return u.a.createElement(y.a,O({className:d()("recharts-label",h)},x,w,j),t)}T.displayName="Label",T.defaultProps={offset:5},T.propTypes=A;var P=function(e){var t=e.cx,n=e.cy,r=e.angle,a=e.startAngle,o=e.endAngle,i=e.r,c=e.radius,s=e.innerRadius,l=e.outerRadius,u=e.x,p=e.y,f=e.top,h=e.left,d=e.width,y=e.height,b=e.clockWise;if(Object(m.h)(d)&&Object(m.h)(y)){if(Object(m.h)(u)&&Object(m.h)(p))return{x:u,y:p,width:d,height:y};if(Object(m.h)(f)&&Object(m.h)(h))return{x:f,y:h,width:d,height:y}}return Object(m.h)(u)&&Object(m.h)(p)?{x:u,y:p,width:0,height:0}:Object(m.h)(t)&&Object(m.h)(n)?{cx:t,cy:n,startAngle:a||r||0,endAngle:o||r||0,innerRadius:s||0,outerRadius:l||c||i||0,clockWise:b}:e.viewBox?e.viewBox:{}},E=function(e,t){return e?!0===e?u.a.createElement(T,{key:"label-implicit",viewBox:t}):Object(m.g)(e)?u.a.createElement(T,{key:"label-implicit",viewBox:t,value:e}):Object(l.isValidElement)(e)?e.type===T?Object(l.cloneElement)(e,{key:"label-implicit",viewBox:t}):u.a.createElement(T,{key:"label-implicit",content:e,viewBox:t}):i()(e)?u.a.createElement(T,{key:"label-implicit",content:e,viewBox:t}):a()(e)?u.a.createElement(T,O({viewBox:t},e,{key:"label-implicit"})):null:null};T.parseViewBox=P,T.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,a=P(e),o=Object(b.h)(r,T).map((function(e,n){return Object(l.cloneElement)(e,{viewBox:t||a,key:"label-".concat(n)})}));if(!n)return o;var i=E(e.label,t||a);return[i].concat(g(o))},t.a=T},GKuj:function(e,t,n){"use strict";var r=n("q1tI"),a=n.n(r),o=n("17x9"),i=n.n(o),c=n("TSYQ"),s=n.n(c);function l(){return(l=Object.assign||function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var p={className:i.a.string,children:i.a.oneOfType([i.a.arrayOf(i.a.node),i.a.node])};function f(e){var t=e.children,n=e.className,r=u(e,["children","className"]),o=s()("recharts-layer",n);return a.a.createElement("g",l({className:o},r),t)}f.propTypes=p,t.a=f},"Ha+H":function(e,t,n){"use strict";var r=n("q1tI"),a=n.n(r),o=n("17x9"),i=n.n(o),c=n("TSYQ"),s=n.n(c),l=n("34C+");function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var f={width:i.a.number.isRequired,height:i.a.number.isRequired,viewBox:i.a.shape({x:i.a.number,y:i.a.number,width:i.a.number,height:i.a.number}),className:i.a.string,style:i.a.object,children:i.a.oneOfType([i.a.arrayOf(i.a.node),i.a.node])};function h(e){var t=e.children,n=e.width,r=e.height,o=e.viewBox,i=e.className,c=e.style,f=p(e,["children","width","height","viewBox","className","style"]),h=o||{width:n,height:r,x:0,y:0},d=s()("recharts-surface",i),y=Object(l.k)(f);return a.a.createElement("svg",u({},y,{className:d,width:n,height:r,style:c,viewBox:"".concat(h.x," ").concat(h.y," ").concat(h.width," ").concat(h.height),version:"1.1"}),t)}h.propTypes=f,t.a=h},"J+eN":function(e,t,n){"use strict";var r=n("q1tI"),a=n("17x9"),o=n.n(a),i=n("34C+");function c(e){return(c="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 s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n0&&n.handleDrag(e.changedTouches[0])},n.handleDragEnd=function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1})},n.handleLeaveWrapper=function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=setTimeout(n.handleDragEnd,n.props.leaveTimeOut))},n.handleEnterSlideOrTraveller=function(){n.setState({isTextActive:!0})},n.handleLeaveSlideOrTraveller=function(){n.setState({isTextActive:!1})},n.handleSlideDragStart=function(e){var t=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:t.pageX})},n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(k(n),"startX"),endX:n.handleTravellerDragStart.bind(k(n),"endX")},n.state=e.data&&e.data.length?n.updateScale(e):{},n}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&A(e,t)}(t,e),n=t,o=[{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var a=Math.floor((n+r)/2);e[a]>t?r=a:n=a}return t>=e[r]?r:n}}],(r=[{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.data,a=n.width,o=n.x,i=n.travellerWidth,c=n.updateId;(e.data!==r||e.updateId!==c)&&e.data&&e.data.length?this.setState(this.updateScale(e)):e.width===a&&e.x===o&&e.travellerWidth===i||(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,a=r.gap,o=r.data.length-1,i=Math.min(t,n),c=Math.max(t,n),s=this.constructor.getIndexInRange(this.scaleValues,i),l=this.constructor.getIndexInRange(this.scaleValues,c);return{startIndex:s-s%a,endIndex:l===o?o:l-l%a}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,a=t.dataKey,o=Object(d.v)(n[e],a,e);return i()(r)?r(o):o}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,a=t.endX,o=this.props,i=o.x,c=o.width,s=o.travellerWidth,l=o.startIndex,u=o.endIndex,p=o.onChange,f=e.pageX-n;f>0?f=Math.min(f,i+c-s-a,i+c-s-r):f<0&&(f=Math.max(f,i-r,i-a));var h=this.getIndex({startX:r+f,endX:a+f});h.startIndex===l&&h.endIndex===u||!p||p(h),this.setState({startX:r+f,endX:a+f,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,a=n.movingTravellerId,o=n.endX,i=n.startX,c=this.state[a],s=this.props,l=s.x,u=s.width,p=s.travellerWidth,f=s.onChange,h=s.gap,d=s.data,y={startX:this.state.startX,endX:this.state.endX},b=e.pageX-r;b>0?b=Math.min(b,l+u-p-c):b<0&&(b=Math.max(b,l-c)),y[a]=c+b;var m=this.getIndex(y),v=m.startIndex,g=m.endIndex;this.setState((x(t={},a,c+b),x(t,"brushMoveStartX",e.pageX),t),(function(){f&&function(){var e=d.length-1;return"startX"===a&&(o>i?v%h===0:g%h===0)||oi?g%h===0:v%h===0)||o>i&&g===e}()&&f(m)}))}},{key:"updateScale",value:function(e){var t=this,n=e.data,r=e.startIndex,o=e.endIndex,i=e.x,c=e.width,s=e.travellerWidth,l=n.length;return this.scale=Object(h.scalePoint)().domain(a()(0,l)).range([i,i+c-s]),this.scaleValues=this.scale.domain().map((function(e){return t.scale(e)})),{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:this.scale(r),endX:this.scale(o)}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,a=e.height,o=e.fill,i=e.stroke;return s.a.createElement("rect",{stroke:i,fill:o,x:t,y:n,width:r,height:a})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,a=e.height,o=e.data,i=e.children,l=e.padding,u=c.Children.only(i);return u?s.a.cloneElement(u,{x:t,y:n,width:r,height:a,margin:l,compact:!0,data:o}):null}},{key:"renderTraveller",value:function(e,t){var n=this.props,r=n.y,a=n.travellerWidth,o=n.height,i=n.stroke,c=Math.floor(r+o/2)-1,l=Math.max(e,this.props.x);return s.a.createElement(y.a,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},s.a.createElement("rect",{x:l,y:r,width:a,height:o,fill:i,stroke:"none"}),s.a.createElement("line",{x1:l+1,y1:c,x2:l+a-1,y2:c,fill:"none",stroke:"#fff"}),s.a.createElement("line",{x1:l+1,y1:c+2,x2:l+a-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,a=n.height,o=n.stroke;return s.a.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:o,fillOpacity:.2,x:Math.min(e,t),y:r,width:Math.abs(t-e),height:a})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,a=e.height,o=e.travellerWidth,i=e.stroke,c=this.state,l=c.startX,u=c.endX,p={pointerEvents:"none",fill:i};return s.a.createElement(y.a,{className:"recharts-brush-texts"},s.a.createElement(b.a,O({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,u)-5,y:r+a/2},p),this.getTextOfTick(t)),s.a.createElement(b.a,O({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,u)+o+5,y:r+a/2},p),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,a=e.x,o=e.y,i=e.width,c=e.height,l=e.alwaysShowText,u=this.state,p=u.startX,h=u.endX,d=u.isTextActive,b=u.isSlideMoving,g=u.isTravellerMoving;if(!t||!t.length||!Object(m.h)(a)||!Object(m.h)(o)||!Object(m.h)(i)||!Object(m.h)(c)||i<=0||c<=0)return null;var O=f()("recharts-brush",n),x=1===s.a.Children.count(r),j=Object(v.a)("userSelect","none");return s.a.createElement(y.a,{className:O,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onMouseUp:this.handleDragEnd,onTouchEnd:this.handleDragEnd,onTouchMove:this.handleTouchMove,style:j},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(p,h),this.renderTraveller(p,"startX"),this.renderTraveller(h,"endX"),(d||b||g||l)&&this.renderText())}}])&&j(n.prototype,r),o&&j(n,o),t}(c.PureComponent);S.displayName="Brush",S.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]),leaveTimeOut:u.a.number,alwaysShowText:u.a.bool},S.defaultProps={height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1},t.a=S},Yjvw:function(e,t,n){"use strict";var r=n("lSCD"),a=n.n(r),o=n("qPyV"),i=n.n(o),c=n("q1tI"),s=n.n(c),l=n("17x9"),u=n.n(l),p=n("TSYQ"),f=n.n(p),h=n("Ha+H"),d=n("nWHP"),y=n("34C+");function b(e){return(b="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 m(){return(m=Object.assign||function(e){for(var t=1;t=0&&n>=0?{width:t,height:n}:null}},{key:"getDefaultPosition",value:function(e){var t,n,r=this.props,a=r.layout,o=r.align,i=r.verticalAlign,c=r.margin,s=r.chartWidth,l=r.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===o&&"vertical"===a?{left:((s||0)-(this.getBBox()||{width:0}).width)/2}:"right"===o?{right:c&&c.right||0}:{left:c&&c.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(n="middle"===i?{top:((l||0)-(this.getBBox()||{height:0}).height)/2}:"bottom"===i?{bottom:c&&c.bottom||0}:{top:c&&c.top||0}),I({},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 a=this.wrapperNode.getBoundingClientRect();(Math.abs(a.width-t)>1||Math.abs(a.height-n)>1)&&this.setState({boxWidth:a.width,boxHeight:a.height},(function(){r&&r(a)}))}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1},(function(){r&&r(null)}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.content,r=t.width,o=t.height,i=t.wrapperStyle,c=t.paylodUniqBy,l=t.payload,u=I({position:"absolute",width:r||"auto",height:o||"auto"},this.getDefaultPosition(i),{},i);return s.a.createElement("div",{className:"recharts-legend-wrapper",style:u,ref:function(t){e.wrapperNode=t}},function(e,t){return s.a.isValidElement(e)?s.a.cloneElement(e,t):a()(e)?e(t):s.a.createElement(S,t)}(n,I({},this.props,{payload:z(c,l)})))}}])&&M(n.prototype,r),o&&M(n,o),t}(c.PureComponent);W.displayName="Legend",W.propTypes={content:u.a.oneOfType([u.a.element,u.a.func]),wrapperStyle:u.a.object,chartWidth:u.a.number,chartHeight:u.a.number,width:u.a.number,height:u.a.number,iconSize:u.a.number,iconType:u.a.oneOf(L),layout:u.a.oneOf(["horizontal","vertical"]),align:u.a.oneOf(["center","left","right"]),verticalAlign:u.a.oneOf(["top","bottom","middle"]),margin:u.a.shape({top:u.a.number,left:u.a.number,bottom:u.a.number,right:u.a.number}),payload:u.a.arrayOf(u.a.shape({value:u.a.any,id:u.a.any,type:u.a.oneOf(y.b)})),paylodUniqBy:u.a.oneOfType([u.a.func,u.a.bool]),formatter:u.a.func,onMouseEnter:u.a.func,onMouseLeave:u.a.func,onClick:u.a.func,onBBoxUpdate:u.a.func},W.defaultProps={iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"};t.a=W},"b+jq":function(e,t,n){"use strict";var r=n("q1tI"),a=n("17x9"),o=n.n(a);function i(e){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function K(){return(K=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,a=e.offset;return Object(R.l)(M.a.getTicks(H({},M.a.defaultProps,{},t,{ticks:Object(R.t)(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),a.left,a.left+a.width)},n.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,n=e.width,r=e.height,a=e.offset;return Object(R.l)(M.a.getTicks(H({},M.a.defaultProps,{},t,{ticks:Object(R.t)(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),a.top,a.top+a.height)},n.axesTicksGenerator=function(e){return Object(R.t)(e,!0)},n.tooltipTicksGenerator=function(e){var t=Object(_.b)(e),n=Object(R.t)(t,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:s()(n,(function(e){return e.coordinate})),tooltipAxis:t,tooltipAxisBandSize:Object(R.f)(t)}},n.renderCursor=function(e){var r=n.state,a=r.isTooltipActive,o=r.activeCoordinate,i=r.activePayload,c=r.offset;if(!e||!e.props.cursor||!a||!o)return null;var s,l=n.props.layout,u=T.a;if("ScatterChart"===t)s=o,u=P.a;else if("BarChart"===t)s=n.getCursorRectangle(),u=C.a;else if("radial"===l){var p=n.getCursorPoints(),f=p.cx,h=p.cy,d=p.radius;s={cx:f,cy:h,startAngle:p.startAngle,endAngle:p.endAngle,innerRadius:d,outerRadius:d},u=E.a}else s={points:n.getCursorPoints()},u=T.a;var y=e.key||"_recharts-cursor",b=H({stroke:"#ccc",pointerEvents:"none"},c,{},s,{},Object(D.k)(e.props.cursor),{payload:i,key:y,className:"recharts-tooltip-cursor"});return Object(m.isValidElement)(e.props.cursor)?Object(m.cloneElement)(e.props.cursor,b):Object(m.createElement)(u,b)},n.renderPolarAxis=function(e,t,r){var a=e.type.axisType,o=n.state["".concat(a,"Map")][e.props["".concat(a,"Id")]];return Object(m.cloneElement)(e,H({},o,{className:a,key:e.key||"".concat(t,"-").concat(r),ticks:Object(R.t)(o,!0)}))},n.renderXAxis=function(e,t,r){var a=n.state.xAxisMap[e.props.xAxisId];return n.renderAxis(a,e,t,r)},n.renderYAxis=function(e,t,r){var a=n.state.yAxisMap[e.props.yAxisId];return n.renderAxis(a,e,t,r)},n.renderGrid=function(e){var t=n.state,r=t.xAxisMap,o=t.yAxisMap,c=t.offset,s=n.props,l=s.width,u=s.height,p=Object(_.b)(r),f=i()(o,(function(e){return a()(e.domain,Number.isFinite)}))||Object(_.b)(o),h=e.props||{};return Object(m.cloneElement)(e,{key:e.key||"grid",x:Object(_.h)(h.x)?h.x:c.left,y:Object(_.h)(h.y)?h.y:c.top,width:Object(_.h)(h.width)?h.width:c.width,height:Object(_.h)(h.height)?h.height:c.height,xAxis:p,yAxis:f,offset:c,chartWidth:l,chartHeight:u,verticalCoordinatesGenerator:h.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:h.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})},n.renderPolarGrid=function(e){var t=n.state,r=t.radiusAxisMap,a=t.angleAxisMap,o=Object(_.b)(r),i=Object(_.b)(a),c=i.cx,s=i.cy,l=i.innerRadius,u=i.outerRadius;return Object(m.cloneElement)(e,{polarAngles:Object(R.t)(i,!0).map((function(e){return e.coordinate})),polarRadius:Object(R.t)(o,!0).map((function(e){return e.coordinate})),cx:c,cy:s,innerRadius:l,outerRadius:u,key:e.key||"polar-grid"})},n.renderBrush=function(e){var t=n.props,r=t.margin,a=t.data,o=n.state,i=o.offset,c=o.dataStartIndex,s=o.dataEndIndex,l=o.updateId;return Object(m.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:Object(R.d)(n.handleBrushChange,null,e.props.onChange),data:a,x:Object(_.h)(e.props.x)?e.props.x:i.left,y:Object(_.h)(e.props.y)?e.props.y:i.top+i.height+i.brushBottom-(r.bottom||0),width:Object(_.h)(e.props.width)?e.props.width:i.width,startIndex:c,endIndex:s,updateId:"brush-".concat(l)})},n.renderReferenceElement=function(e,t,r){if(!e)return null;var a=Q(n).clipPathId,o=n.state,i=o.xAxisMap,c=o.yAxisMap,s=o.offset,l=e.props,u=l.xAxisId,p=l.yAxisId;return Object(m.cloneElement)(e,{key:e.key||"".concat(t,"-").concat(r),xAxis:i[u],yAxis:c[p],viewBox:{x:s.left,y:s.top,width:s.width,height:s.height},clipPathId:a})},n.renderGraphicChild=function(e,t,r){var a=n.filterFormatItem(e,t,r);if(!a)return null;var o=Object(m.cloneElement)(e,a.props),i=n.state,c=i.isTooltipActive,s=i.tooltipAxis,l=i.activeTooltipIndex,u=i.activeLabel,p=n.props.children,f=Object(D.i)(p,A.a),h=a.props,d=h.points,y=h.isRange,v=h.baseLine,g=a.item.props,O=g.activeDot;if(!g.hide&&c&&f&&O&&l>=0){var x,j;if(s.dataKey&&!s.allowDuplicatedCategory){var w="function"===typeof s.dataKey?function(e){return s.dataKey(e.payload)}:"payload.".concat(s.dataKey);x=Object(_.a)(d,w,u),j=y&&v&&Object(_.a)(v,w,u)}else x=d[l],j=y&&v&&v[l];if(!b()(x))return[o].concat(q(n.renderActivePoints({item:a,activePoint:x,basePoint:j,childIndex:l,isRange:y})))}return y?[o,null,null]:[o,null]},n.renderCustomized=function(e){return Object(m.cloneElement)(e,H({},n.props,{},n.state))};var l=n.constructor.createDefaultState(e);return n.state=H({},l,{updateId:0},n.updateStateOfAxisMapsOffsetAndStackGroups(H({props:e},l,{updateId:0}))),n.uniqueChartId=b()(e.id)?Object(_.k)("recharts"):e.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),e.throttleDelay&&(n.triggeredAfterMouseMove=d()(n.triggeredAfterMouseMove,e.throttleDelay)),n}var h,y,g;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&&Z(e,t)}(r,e),h=r,g=[{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(m.isValidElement)(e)?Object(m.cloneElement)(e,t):u()(e)?e(t):v.a.createElement(I.a,t),v.a.createElement(k.a,{className:"recharts-active-dot",key:t.key},n)}}],(y=[{key:"componentDidMount",value:function(){b()(this.props.syncId)||this.addListener()}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props,r=n.data,a=n.children,o=n.width,i=n.height,c=n.layout,s=n.stackOffset,l=n.margin,u=this.state.updateId;if(e.data===r&&e.width===o&&e.height===i&&e.layout===c&&e.stackOffset===s&&Object(W.a)(e.margin,l)){if(!Object(D.m)(e.children,a)){var p=b()(e.data)?u+1:u;this.setState((function(n){return H({updateId:p},t.updateStateOfAxisMapsOffsetAndStackGroups(H({props:e},n,{updateId:p})))}))}}else{var f=this.constructor.createDefaultState(e);this.setState(H({},f,{updateId:u+1},this.updateStateOfAxisMapsOffsetAndStackGroups(H({props:e},f,{updateId:u+1}))))}b()(this.props.syncId)&&!b()(e.syncId)&&this.addListener(),!b()(this.props.syncId)&&b()(e.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){b()(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,a=t.AxisComp,o=t.graphicalItems,i=t.stackGroups,c=t.dataStartIndex,s=t.dataEndIndex,l=e.children,u="".concat(r,"Id"),p=Object(D.h)(l,a),f={};return p&&p.length?f=this.getAxisMapByAxes(e,{axes:p,graphicalItems:o,axisType:r,axisIdKey:u,stackGroups:i,dataStartIndex:c,dataEndIndex:s}):o&&o.length&&(f=this.getAxisMapByItems(e,{Axis:a,graphicalItems:o,axisType:r,axisIdKey:u,stackGroups:i,dataStartIndex:c,dataEndIndex:s})),f}},{key:"getAxisMapByAxes",value:function(e,t){var n=this,r=t.axes,a=t.graphicalItems,o=t.axisType,i=t.axisIdKey,c=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,u=e.layout,p=e.children,h=e.stackOffset,d=Object(R.w)(u,o);return r.reduce((function(t,r){var y=r.props,m=y.type,v=y.dataKey,g=y.allowDataOverflow,O=y.allowDuplicatedCategory,x=y.scale,j=y.ticks,w=r.props[i],k=n.constructor.getDisplayedData(e,{graphicalItems:a.filter((function(e){return e.props[i]===w})),dataStartIndex:s,dataEndIndex:l}),A=k.length;if(!t[w]){var S,T,P;if(v){if(S=Object(R.m)(k,v,m),"category"===m&&d){var E=Object(_.e)(S);O&&E?(T=S,S=f()(0,A)):O||(S=Object(R.x)(r.props.domain,S,r).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(q(e),[t])}),[]))}else if("category"===m)S=O?S.filter((function(e){return""!==e&&!b()(e)})):Object(R.x)(r.props.domain,S,r).reduce((function(e,t){return e.indexOf(t)>=0||""===t||b()(t)?e:[].concat(q(e),[t])}),[]);else if("number"===m){var I=Object(R.y)(k,a.filter((function(e){return e.props[i]===w&&!e.props.hide})),v,o);I&&(S=I)}!d||"number"!==m&&"auto"===x||(P=Object(R.m)(k,v,"category"))}else S=d?f()(0,A):c&&c[w]&&c[w].hasStack&&"number"===m?"expand"===h?[0,1]:Object(R.o)(c[w].stackGroups,s,l):Object(R.n)(k,a.filter((function(e){return e.props[i]===w&&!e.props.hide})),m,!0);return"number"===m&&(S=Object(z.a)(p,S,w,o,j),r.props.domain&&(S=Object(R.A)(r.props.domain,S,g))),H({},t,J({},w,H({},r.props,{axisType:o,domain:S,categoricalDomain:P,duplicateDomain:T,originalDomain:r.props.domain,isCategorial:d,layout:u})))}return t}),{})}},{key:"getAxisMapByItems",value:function(e,t){var n=t.graphicalItems,r=t.Axis,a=t.axisType,o=t.axisIdKey,i=t.stackGroups,c=t.dataStartIndex,s=t.dataEndIndex,l=e.layout,u=e.children,p=this.constructor.getDisplayedData(e,{graphicalItems:n,dataStartIndex:c,dataEndIndex:s}),h=p.length,d=Object(R.w)(l,a),y=-1;return n.reduce((function(e,t){var b,m=t.props[o];return e[m]?e:(y++,d?b=f()(0,h):i&&i[m]&&i[m].hasStack?(b=Object(R.o)(i[m].stackGroups,c,s),b=Object(z.a)(u,b,m,a)):(b=Object(R.A)(r.defaultProps.domain,Object(R.n)(p,n.filter((function(e){return e.props[o]===m&&!e.props.hide})),"number"),r.defaultProps.allowDataOverflow),b=Object(z.a)(u,b,m,a)),H({},e,J({},m,H({axisType:a},r.defaultProps,{hide:!0,orientation:$[a]&&$[a][y%2],domain:b,originalDomain:r.defaultProps.domain,isCategorial:d,layout:l}))))}),{})}},{key:"getActiveCoordinate",value:function(e,t,n){var r=this.props.layout,a=e.find((function(e){return e&&e.index===t}));if(a){if("horizontal"===r)return{x:a.coordinate,y:n.y};if("vertical"===r)return{x:n.x,y:a.coordinate};if("centric"===r){var o=a.coordinate,i=n.radius;return H({},n,{},Object(L.c)(n.cx,n.cy,i,o),{angle:o,radius:i})}var c=a.coordinate,s=n.angle;return H({},n,{},Object(L.c)(n.cx,n.cy,c,s),{angle:s,radius:c})}return ee}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=Object(N.b)(this.container),n=Object(N.a)(e,t),r=this.inRange(n.chartX,n.chartY);if(!r)return null;var a=this.state,i=a.xAxisMap,c=a.yAxisMap;if("axis"!==o&&i&&c){var s=Object(_.b)(i).scale,l=Object(_.b)(c).scale;return H({},n,{xValue:s&&s.invert?s.invert(n.chartX):null,yValue:l&&l.invert?l.invert(n.chartY):null})}var u=this.state,p=u.orderedTooltipTicks,f=u.tooltipAxis,h=u.tooltipTicks,d=this.calculateTooltipPos(r),y=Object(R.b)(d,p,h,f);if(y>=0&&h){var b=h[y]&&h[y].value;return H({},n,{activeTooltipIndex:y,activeLabel:b,activePayload:this.getTooltipContent(y,b),activeCoordinate:this.getActiveCoordinate(p,y,r)})}return null}},{key:"getTooltipContent",value:function(e,t){var n=this.state,r=n.graphicalItems,a=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 i,c=r.props,s=c.dataKey,l=c.name,u=c.unit,p=c.formatter,f=c.data,h=c.tooltipType;return(i=a.dataKey&&!a.allowDuplicatedCategory?Object(_.a)(f||o,a.dataKey,t):f&&f[e]||o[e])?[].concat(q(n),[H({},Object(D.k)(r),{dataKey:s,unit:u,formatter:p,name:l||s,color:Object(R.q)(r),value:Object(R.v)(i,s),type:h,payload:i})]):n}),[])}},{key:"getFormatItems",value:function(e,t){var n=this,r=t.graphicalItems,a=t.stackGroups,o=t.offset,i=t.updateId,s=t.dataStartIndex,l=t.dataEndIndex,u=e.barSize,p=e.layout,f=e.barGap,h=e.barCategoryGap,d=e.maxBarSize,y=this.constructor.getAxisNameByLayout(p),m=y.numericAxisName,v=y.cateAxisName,g=this.constructor.hasBar(r),O=g&&Object(R.h)({barSize:u,stackGroups:a}),x=[];return r.forEach((function(r,u){var y,j=n.constructor.getDisplayedData(e,{dataStartIndex:s,dataEndIndex:l},r),w=r.props,k=w.dataKey,A=w.maxBarSize,S=r.props["".concat(m,"Id")],T=r.props["".concat(v,"Id")],P=c.reduce((function(e,n){var a,o=t["".concat(n.axisType,"Map")],i=r.props["".concat(n.axisType,"Id")],c=o&&o[i];return H({},e,(J(a={},n.axisType,c),J(a,"".concat(n.axisType,"Ticks"),Object(R.t)(c)),a))}),{}),E=P[v],I=P["".concat(v,"Ticks")],C=a&&a[S]&&a[S].hasStack&&Object(R.s)(r,a[S].stackGroups),M=Object(R.f)(E,I),B=b()(A)?d:A,N=g&&Object(R.g)({barGap:f,barCategoryGap:h,bandSize:M,sizeList:O[T],maxBarSize:B}),_=r&&r.type&&r.type.getComposedData;_&&x.push({props:H({},_(H({},P,{displayedData:j,props:e,dataKey:k,item:r,bandSize:M,barPosition:N,offset:o,stackedData:C,layout:p,dataStartIndex:s,dataEndIndex:l,onItemMouseLeave:Object(R.d)(n.handleItemMouseLeave,null,r.props.onMouseLeave),onItemMouseEnter:Object(R.d)(n.handleItemMouseEnter,null,r.props.onMouseEnter)})),(y={key:r.key||"item-".concat(u)},J(y,m,P[m]),J(y,v,P[v]),J(y,"animationId",i),y)),childIndex:Object(D.o)(r,e.children),item:r})})),x}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,a=t.tooltipAxisBandSize,o=a/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?a:r.width-1,height:"horizontal"===e?r.height-1:a}}},{key:"getCursorPoints",value:function(){var e,t,n,r,a=this.props.layout,o=this.state,i=o.activeCoordinate,c=o.offset;if("horizontal"===a)n=e=i.x,t=c.top,r=c.top+c.height;else if("vertical"===a)r=t=i.y,e=c.left,n=c.left+c.width;else if(!b()(i.cx)||!b()(i.cy)){if("centric"!==a){var s=i.cx,l=i.cy,u=i.radius,p=i.startAngle,f=i.endAngle;return{points:[Object(L.c)(s,l,u,p),Object(L.c)(s,l,u,f)],cx:s,cy:l,radius:u,startAngle:p,endAngle:f}}var h=i.cx,d=i.cy,y=i.innerRadius,m=i.outerRadius,v=i.angle,g=Object(L.c)(h,d,y,v),O=Object(L.c)(h,d,m,v);e=g.x,t=g.y,n=O.x,r=O.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 a=this.state,o=a.angleAxisMap,i=a.radiusAxisMap;if(o&&i){var c=Object(_.b)(o);return Object(L.b)({x:e,y:t},c)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=Object(D.i)(e,A.a)&&"axis"===o?{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}:{};return H({},Object(D.f)(this.props,this.handleOuterEvent),{},t)}},{key:"updateStateOfAxisMapsOffsetAndStackGroups",value:function(e){var r=this,a=e.props,o=e.dataStartIndex,i=e.dataEndIndex,s=e.updateId;if(!Object(D.q)({props:a}))return null;var l=a.children,u=a.layout,f=a.stackOffset,h=a.data,d=a.reverseStackOrder,y=this.constructor.getAxisNameByLayout(u),b=y.numericAxisName,m=y.cateAxisName,v=Object(D.h)(l,n),g=Object(R.r)(h,v,"".concat(b,"Id"),"".concat(m,"Id"),f,d),O=c.reduce((function(e,t){return H({},e,J({},"".concat(t.axisType,"Map"),r.getAxisMap(a,H({},t,{graphicalItems:v,stackGroups:t.axisType===b&&g,dataStartIndex:o,dataEndIndex:i}))))}),{}),x=this.calculateOffset(H({},O,{props:a,graphicalItems:v}));Object.keys(O).forEach((function(e){O[e]=p(a,O[e],x,e.replace("Map",""),t)}));var j=O["".concat(m,"Map")],w=this.tooltipTicksGenerator(j),k=this.getFormatItems(a,H({},O,{dataStartIndex:o,dataEndIndex:i,updateId:s,graphicalItems:v,stackGroups:g,offset:x}));return H({formatedGraphicalItems:k,graphicalItems:v,offset:x,stackGroups:g},w,{},O)}},{key:"addListener",value:function(){G.b.on(G.a,this.handleReceiveSyncEvent),G.b.setMaxListeners&&G.b._maxListeners&&G.b.setMaxListeners(G.b._maxListeners+1)}},{key:"removeListener",value:function(){G.b.removeListener(G.a,this.handleReceiveSyncEvent),G.b.setMaxListeners&&G.b._maxListeners&&G.b.setMaxListeners(G.b._maxListeners-1)}},{key:"calculateOffset",value:function(e){var t=e.props,n=e.graphicalItems,r=e.xAxisMap,a=void 0===r?{}:r,o=e.yAxisMap,i=void 0===o?{}:o,c=t.width,s=t.height,l=t.children,u=t.margin||{},p=Object(D.i)(l,B.a),f=Object(D.i)(l,S.a),h=Object.keys(i).reduce((function(e,t){var n=i[t],r=n.orientation;return n.mirror||n.hide?e:H({},e,J({},r,e[r]+n.width))}),{left:u.left||0,right:u.right||0}),d=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:H({},e,J({},r,e[r]+n.height))}),{top:u.top||0,bottom:u.bottom||0}),y=H({},d,{},h),b=y.bottom;if(p&&(y.bottom+=p.props.height||B.a.defaultProps.height),f&&this.legendInstance){var m=this.legendInstance.getBBox();y=Object(R.a)(y,n,t,m)}return H({brushBottom:b},y,{width:c-y.left-y.right,height:s-y.top-y.bottom})}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;b()(t)||G.b.emit(G.a,t,this.uniqueChartId,e)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formatedGraphicalItems,a=0,o=r.length;a=0}))},g.getDisplayedData=function(e,t,n){var r=t.graphicalItems,a=t.dataStartIndex,o=t.dataEndIndex,i=(r||[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(q(e),q(n)):e}),[]);if(i&&i.length>0)return i;if(n&&n.props&&n.props.data&&n.props.data.length>0)return n.props.data;var c=e.data;return c&&c.length&&Object(_.h)(a)&&Object(_.h)(o)?c.slice(a,o+1):[]},g}},hySP:function(e,t,n){"use strict";var r=n("q1tI"),a=n.n(r),o=n("17x9"),i=n.n(o),c=n("GKuj"),s=n("34C+");function l(e){return(l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(){return(u=Object.assign||function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n=t?n.apply(void 0,s):e(t-u,c((function(){for(var e=arguments.length,t=new Array(e),a=0;a=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){for(var n=0;n=2?Object(m.j)(v[1].coordinate-v[0].coordinate):1;if(1===j?(n="width"===b?p:h,r="width"===b?p+d:h+y):(n="width"===b?p+d:h+y,r="width"===b?p:h),t){var w=o[O-1],k=a()(i)?i(w.value):w.value,A=Object(f.c)(k)[b]+g,S=j*(w.coordinate+j*A/2-r);v[O-1]=w=x({},w,{tickCoord:S>0?w.coordinate-S*j:w.coordinate}),j*(w.tickCoord-j*A/2-n)>=0&&j*(w.tickCoord+j*A/2-r)<=0&&(r=w.tickCoord-j*(A/2+l),v[O-1]=x({},w,{isShow:!0}))}for(var T=t?O-1:O,P=0;P=0&&j*(E.tickCoord+j*C/2-r)<=0&&(n=E.tickCoord+j*(C/2+l),v[P]=x({},E,{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"getTicksEnd",value:function(e){var t,n,r=e.ticks,o=e.tickFormatter,i=e.viewBox,c=e.orientation,s=e.minTickGap,l=e.unit,u=i.x,p=i.y,h=i.width,d=i.height,y="top"===c||"bottom"===c?"width":"height",b=l&&"width"===y?Object(f.c)(l)[y]:0,v=(r||[]).slice(),g=v.length,O=g>=2?Object(m.j)(v[1].coordinate-v[0].coordinate):1;1===O?(t="width"===y?u:p,n="width"===y?u+h:p+d):(t="width"===y?u+h:p+d,n="width"===y?u:p);for(var j=g-1;j>=0;j--){var w=v[j],k=a()(o)?o(w.value):w.value,A=Object(f.c)(k)[y]+b;if(j===g-1){var S=O*(w.coordinate+O*A/2-n);v[j]=w=x({},w,{tickCoord:S>0?w.coordinate-S*O:w.coordinate})}else v[j]=w=x({},w,{tickCoord:w.coordinate});O*(w.tickCoord-O*A/2-t)>=0&&O*(w.tickCoord+O*A/2-n)<=0&&(n=w.tickCoord-O*(A/2+s),v[j]=x({},w,{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"renderTickItem",value:function(e,t,n){return i.a.isValidElement(e)?i.a.cloneElement(e,t):a()(e)?e(t):i.a.createElement(d.a,g({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],(r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=w(e,["viewBox"]),a=this.props,o=a.viewBox,i=w(a,["viewBox"]);return!Object(p.a)(n,o)||!Object(p.a)(r,i)||!Object(p.a)(t,this.state)}},{key:"getTickLineCoord",value:function(e){var t,n,r,a,o,i,c=this.props,s=c.x,l=c.y,u=c.width,p=c.height,f=c.orientation,h=c.tickSize,d=c.mirror,y=c.tickMargin,b=d?-1:1,v=e.tickSize||h,g=Object(m.h)(e.tickCoord)?e.tickCoord:e.coordinate;switch(f){case"top":t=n=e.coordinate,i=(r=(a=l+!d*p)-b*v)-b*y,o=g;break;case"left":r=a=e.coordinate,o=(t=(n=s+!d*u)-b*v)-b*y,i=g;break;case"right":r=a=e.coordinate,o=(t=(n=s+d*u)+b*v)+b*y,i=g;break;default:t=n=e.coordinate,i=(r=(a=l+d*p)+b*v)+b*y,o=g}return{line:{x1:t,y1:r,x2:n,y2:a},tick:{x:o,y:i}}}},{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,a=e.height,o=e.orientation,c=e.axisLine,s=e.mirror,l=x({},Object(b.k)(this.props),{fill:"none"},Object(b.k)(c));if("top"===o||"bottom"===o){var u="top"===o&&!s||"bottom"===o&&s;l=x({},l,{x1:t,y1:n+u*a,x2:t+r,y2:n+u*a})}else{var p="left"===o&&!s||"right"===o&&s;l=x({},l,{x1:t+p*r,y1:n,x2:t+p*r,y2:n+a})}return i.a.createElement("line",g({className:"recharts-cartesian-axis-line"},l))}},{key:"renderTicks",value:function(e){var n=this,r=this.props,o=r.tickLine,c=r.stroke,s=r.tick,l=r.tickFormatter,u=r.unit,p=t.getTicks(x({},this.props,{ticks:e})),f=this.getTickTextAnchor(),d=this.getTickVerticalAnchor(),y=Object(b.k)(this.props),m=Object(b.k)(s),v=x({},y,{fill:"none"},Object(b.k)(o)),O=p.map((function(e,t){var r=n.getTickLineCoord(e),O=r.line,j=r.tick,w=x({textAnchor:f,verticalAnchor:d},y,{stroke:"none",fill:c},m,{},j,{index:t,payload:e,visibleTicksCount:p.length});return i.a.createElement(h.a,g({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t)},Object(b.g)(n.props,e,t)),o&&i.a.createElement("line",g({className:"recharts-cartesian-axis-tick-line"},v,O)),s&&n.constructor.renderTickItem(s,w,"".concat(a()(l)?l(e.value):e.value).concat(u||"")))}));return i.a.createElement("g",{className:"recharts-cartesian-axis-ticks"},O)}},{key:"render",value:function(){var e=this.props,t=e.axisLine,n=e.width,r=e.height,o=e.ticksGenerator,c=e.className;if(e.hide)return null;var s=this.props,l=s.ticks,p=w(s,["ticks"]),f=l;return a()(o)&&(f=l&&l.length>0?o(this.props):o(p)),n<=0||r<=0||!f||!f.length?null:i.a.createElement(h.a,{className:u()("recharts-cartesian-axis",c)},t&&this.renderAxisLine(),this.renderTicks(f),y.a.renderCallByParent(this.props))}}])&&A(n.prototype,r),o&&A(n,o),t}(o.Component);E.displayName="CartesianAxis",E.propTypes=x({},b.c,{},b.a,{className:s.a.string,x:s.a.number,y:s.a.number,width:s.a.number,height:s.a.number,orientation:s.a.oneOf(["top","bottom","left","right"]),viewBox:s.a.shape({x:s.a.number,y:s.a.number,width:s.a.number,height:s.a.number}),tick:s.a.oneOfType([s.a.bool,s.a.func,s.a.object,s.a.element]),axisLine:s.a.oneOfType([s.a.bool,s.a.object]),tickLine:s.a.oneOfType([s.a.bool,s.a.object]),mirror:s.a.bool,tickMargin:s.a.number.isRequired,minTickGap:s.a.number,ticks:s.a.array,tickSize:s.a.number,stroke:s.a.string,tickFormatter:s.a.func,ticksGenerator:s.a.func,interval:s.a.oneOfType([s.a.number,s.a.oneOf(["preserveStart","preserveEnd","preserveStartEnd"])])}),E.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"},t.a=E},lQYU:function(e,t,n){"use strict";var r=n("MJIl"),a=n.n(r),o=n("lSCD"),i=n.n(o),c=n("q1tI"),s=n.n(c),l=n("17x9"),u=n.n(l),p=n("TSYQ"),f=n.n(p),h=n("GKuj"),d=n("34C+"),y=n("FQZO"),b=n("BJo3"),m=n("km7V"),v=n("Ao2N"),g=n("U8Fc");function O(e){return(O="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){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;tr&&(a=r,o=n),[a,o]}function u(e,t,n){if(e.lte(0))return new r.default(0);var a=o.default.getDigitCount(e.toNumber()),i=new r.default(10).pow(a),c=e.div(i),s=1!==a?.05:.1,l=new r.default(Math.ceil(c.div(s).toNumber())).add(n).mul(s).mul(i);return t?l:new r.default(Math.ceil(l))}function p(e,t,n){var i=1,c=new r.default(e);if(!c.isint()&&n){var s=Math.abs(e);s<1?(i=new r.default(10).pow(o.default.getDigitCount(e)-1),c=new r.default(Math.floor(c.div(i).toNumber())).mul(i)):s>1&&(c=new r.default(Math.floor(e)))}else 0===e?c=new r.default(Math.floor((t-1)/2)):n||(c=new r.default(Math.floor(e)));var l=Math.floor((t-1)/2);return(0,a.compose)((0,a.map)((function(e){return c.add(new r.default(e-l).mul(i)).toNumber()})),a.range)(0,t)}function f(e,t,n,a){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new r.default(0),tickMin:new r.default(0),tickMax:new r.default(0)};var i,c=u(new r.default(t).sub(e).div(n-1),a,o);i=e<=0&&t>=0?new r.default(0):(i=new r.default(e).add(t).div(2)).sub(new r.default(i).mod(c));var s=Math.ceil(i.sub(e).div(c).toNumber()),l=Math.ceil(new r.default(t).sub(i).div(c).toNumber()),p=s+l+1;return p>n?f(e,t,n,a,o+1):(p0?l+(n-p):l,s=t>0?s:s+(n-p)),{step:c,tickMin:i.sub(new r.default(s).mul(c)),tickMax:i.add(new r.default(l).mul(c))})}var h=(0,a.memoize)((function(e){var t=s(e,2),n=t[0],i=t[1],u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,h=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],d=Math.max(u,2),y=l([n,i]),b=s(y,2),m=b[0],v=b[1];if(m===-1/0||v===1/0){var g=v===1/0?[m].concat(c((0,a.range)(0,u-1).map((function(){return 1/0})))):c((0,a.range)(0,u-1).map((function(){return-1/0}))).concat([v]);return n>i?(0,a.reverse)(g):g}if(m===v)return p(m,u,h);var O=f(m,v,d,h),x=O.step,j=O.tickMin,w=O.tickMax,k=o.default.rangeStep(j,w.add(new r.default(.1).mul(x)),x);return n>i?(0,a.reverse)(k):k}));t.getNiceTickValues=h;var d=(0,a.memoize)((function(e){var t=s(e,2),n=t[0],o=t[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,c=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],f=Math.max(i,2),h=l([n,o]),d=s(h,2),y=d[0],b=d[1];if(y===-1/0||b===1/0)return[n,o];if(y===b)return p(y,i,c);var m=u(new r.default(b).sub(y).div(f-1),c,0),v=(0,a.compose)((0,a.map)((function(e){return new r.default(y).add(new r.default(e).mul(m)).toNumber()})),a.range),g=v(0,f).filter((function(e){return e>=y&&e<=b}));return n>o?(0,a.reverse)(g):g}));t.getTickValues=d;var y=(0,a.memoize)((function(e,t){var n=s(e,2),i=n[0],p=n[1],f=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],h=l([i,p]),d=s(h,2),y=d[0],b=d[1];if(y===-1/0||b===1/0)return[i,p];if(y===b)return[y];var m=Math.max(t,2),v=u(new r.default(b).sub(y).div(m-1),f,0),g=c(o.default.rangeStep(new r.default(y),new r.default(b).sub(new r.default(.99).mul(v)),v)).concat([b]);return i>p?(0,a.reverse)(g):g}));t.getTickValuesFixedDomain=y},nJDY:function(e,t,n){"use strict";var r=n("J2iB"),a=n.n(r),o=n("lSCD"),i=n.n(o),c=n("qPyV"),s=n.n(c),l=n("q1tI"),u=n.n(l),p=n("17x9"),f=n.n(p),h=n("hCD6"),d=n("TSYQ"),y=n.n(d),b=n("xweI"),m=n.n(b),v=n("Z0cm"),g=n.n(v),O=n("km7V");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 j(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(s){a=!0,o=s}finally{try{r||null==c.return||c.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;tu[t]+a?Math.max(p,u[t]):Math.max(f,u[t])},n}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&V(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"updateBBox",value:function(){var e=this.state,t=e.boxWidth,n=e.boxHeight;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-t)>1||Math.abs(r.height-n)>1)&&this.setState({boxWidth:r.width,boxHeight:r.height})}else-1===t&&-1===n||this.setState({boxWidth:-1,boxHeight:-1})}},{key:"render",value:function(){var e,t,n,r=this,o=this.props,c=o.payload,l=o.isAnimationActive,p=o.animationDuration,f=o.animationEasing,d=o.filterNull,b=function(e,t){return!0===e?s()(t,q):i()(e)?s()(t,e):t}(o.paylodUniqBy,d&&c&&c.length?c.filter((function(e){return!a()(e.value)})):c),m=b&&b.length,v=this.props,g=v.content,x=v.viewBox,j=v.coordinate,w=v.position,k=v.active,A=R({pointerEvents:"none",visibility:k&&m?"visible":"hidden",position:"absolute",top:0},v.wrapperStyle);if(w&&Object(O.h)(w.x)&&Object(O.h)(w.y))t=w.x,n=w.y;else{var S=this.state,T=S.boxWidth,P=S.boxHeight;T>0&&P>0&&j?(t=this.getTranslate({key:"x",tooltipDimension:T,viewBoxDimension:x.width}),n=this.getTranslate({key:"y",tooltipDimension:P,viewBoxDimension:x.height})):A.visibility="hidden"}A=R({},Object(h.b)({transform:this.props.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}),{},A),l&&k&&(A=R({},Object(h.b)({transition:"transform ".concat(p,"ms ").concat(f)}),{},A));var E=y()(K,(z(e={},"".concat(K,"-right"),Object(O.h)(t)&&j&&Object(O.h)(j.x)&&t>=j.x),z(e,"".concat(K,"-left"),Object(O.h)(t)&&j&&Object(O.h)(j.x)&&t=j.y),z(e,"".concat(K,"-top"),Object(O.h)(n)&&j&&Object(O.h)(j.y)&&n0?a()(n.updateDimensionsImmediate,e.debounce):n.updateDimensionsImmediate,n}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this.mounted=!0;var e=this.getContainerSize();e&&this.setState(e)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"getContainerSize",value:function(){return this.container?{containerWidth:this.container.clientWidth,containerHeight:this.container.clientHeight}:null}},{key:"renderChart",value:function(){var e=this.state,t=e.containerWidth,n=e.containerHeight;if(t<0||n<0)return null;var r=this.props,a=r.aspect,o=r.width,c=r.height,s=r.minWidth,l=r.minHeight,u=r.maxHeight,p=r.children;Object(d.a)(Object(h.i)(o)||Object(h.i)(c),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",o,c),Object(d.a)(!a||a>0,"The aspect(%s) must be greater than zero.",a);var f=Object(h.i)(o)?t:o,y=Object(h.i)(c)?n:c;return a&&a>0&&(f?y=f/a:y&&(f=y*a),u&&y>u&&(y=u)),Object(d.a)(f>0||y>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",f,y,o,c,s,l,a),i.a.cloneElement(p,{width:f,height:y})}},{key:"render",value:function(){var e=this,t=this.props,n=t.minWidth,r=t.minHeight,a=t.width,o=t.height,c=t.maxHeight,s=t.id,l=t.className,p={width:a,height:o,minWidth:n,minHeight:r,maxHeight:c};return i.a.createElement("div",{id:s,className:u()("recharts-responsive-container",l),style:p,ref:function(t){e.container=t}},this.renderChart(),i.a.createElement(f.a,{handleWidth:!0,handleHeight:!0,onResize:this.handleResize}))}}])&&b(n.prototype,r),o&&b(n,o),t}(o.Component);O.displayName="ResponsiveContainer",O.propTypes={aspect:s.a.number,width:s.a.oneOfType([s.a.string,s.a.number]),height:s.a.oneOfType([s.a.string,s.a.number]),minHeight:s.a.oneOfType([s.a.string,s.a.number]),minWidth:s.a.oneOfType([s.a.string,s.a.number]),maxHeight:s.a.oneOfType([s.a.string,s.a.number]),children:s.a.node.isRequired,debounce:s.a.number,id:s.a.oneOfType([s.a.string,s.a.number]),className:s.a.oneOfType([s.a.string,s.a.number])},O.defaultProps={width:"100%",height:"100%",debounce:0},t.a=O},t7U6:function(e,t,n){"use strict";var r=n("hszt"),a=n("2Ovm"),o=n("J+eN"),i=n("b+jq"),c=n("Ao2N");t.a=Object(r.a)({chartName:"BarChart",GraphicalChild:a.a,axisComponents:[{axisType:"xAxis",AxisComp:o.a},{axisType:"yAxis",AxisComp:i.a}],formatAxisMap:c.b})},tutj:function(e,t,n){"use strict";var r=n("J2iB"),a=n.n(r),o=n("q1tI"),i=n.n(o),c=n("17x9"),s=n.n(c),l=n("3BBL"),u=n.n(l),p=n("TSYQ"),f=n.n(p),h=n("km7V"),d=n("34C+"),y=n("IlWu");function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){return(v="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 g(){return(g=Object.assign||function(e){for(var t=1;t=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function x(e,t){for(var n=0;no){c=[].concat(E(n.slice(0,s)),[o-l]);break}var u=c.length%2===0?[0,i]:[i];return[].concat(E(this.constructor.repeat(n,a)),E(c),u).map((function(e){return"".concat(e,"px")})).join(", ")}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.points,n=e.xAxis,r=e.yAxis,a=e.layout,o=e.children,i=Object(j.h)(o,O.a);if(!i)return null;function c(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:Object(w.v)(e.payload,t)}}return i.map((function(e,o){return u.a.cloneElement(e,{key:o,data:t,xAxis:n,yAxis:r,layout:a,dataPointFormatter:c})}))}},{key:"renderDots",value:function(e,t){var n=this;if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,a=r.dot,o=r.points,i=r.dataKey,c=Object(j.k)(this.props),s=Object(j.k)(a),l=Object(j.f)(a),p=o.map((function(e,t){var r=T({key:"dot-".concat(t),r:3},c,{},s,{},l,{value:e.value,dataKey:i,cx:e.x,cy:e.y,index:t,payload:e.payload});return n.constructor.renderDotItem(a,r)})),f={clipPath:e?"url(#clipPath-".concat(t,")"):null};return u.a.createElement(v.a,A({className:"recharts-line-dots",key:"dots"},f),p)}},{key:"renderCurveStatically",value:function(e,t,n,r){var a=this.props,o=a.type,i=a.layout,c=a.connectNulls,s=T({},Object(j.k)(this.props),{},Object(j.f)(this.props),{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(n,")"):null,points:e},r,{type:o,layout:i,connectNulls:c});return u.a.createElement(b.a,A({},s,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var n=this,r=this.props,a=r.points,o=r.strokeDasharray,i=r.isAnimationActive,c=r.animationBegin,s=r.animationDuration,l=r.animationEasing,p=r.animationId,f=r.width,d=r.height,y=this.state,b=y.prevPoints,m=y.totalLength;return u.a.createElement(h.a,{begin:c,duration:s,isActive:i,easing:l,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var i=r.t;if(b){var c=b.length/a.length,s=a.map((function(e,t){var r=Math.floor(t*c);if(b[r]){var a=b[r],o=Object(x.f)(a.x,e.x),s=Object(x.f)(a.y,e.y);return T({},e,{x:o(i),y:s(i)})}if(n.animateNewValues){var l=Object(x.f)(2*f,e.x),u=Object(x.f)(d/2,e.y);return T({},e,{x:l(i),y:u(i)})}return T({},e,{x:e.x,y:e.y})}));return n.renderCurveStatically(s,e,t)}var l,u=Object(x.f)(0,m)(i);if(o){var p=o.split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));l=n.getStrokeDasharray(u,m,p)}else l="".concat(u,"px ").concat(m-u,"px");return n.renderCurveStatically(a,e,t,{strokeDasharray:l})}))}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,o=n.isAnimationActive,i=this.state,c=i.prevPoints,s=i.totalLength;return o&&r&&r.length&&(!c&&s>0||!a()(c,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,a=e.className,o=e.xAxis,i=e.yAxis,c=e.top,l=e.left,p=e.width,f=e.height,h=e.isAnimationActive,d=e.id;if(t||!r||!r.length)return null;var b=this.state.isAnimationFinished,m=1===r.length,O=y()("recharts-line",a),x=o&&o.allowDataOverflow||i&&i.allowDataOverflow,j=s()(d)?this.id:d;return u.a.createElement(v.a,{className:O},x?u.a.createElement("defs",null,u.a.createElement("clipPath",{id:"clipPath-".concat(j)},u.a.createElement("rect",{x:l,y:c,width:p,height:f}))):null,!m&&this.renderCurve(x,j),this.renderErrorBar(),(m||n)&&this.renderDots(x,j),(!h||b)&&g.a.renderCallByParent(this.props,r))}}])&&C(n.prototype,r),o&&C(n,o),t}(l.PureComponent);N.displayName="Line",N.propTypes=T({},j.c,{},j.a,{className:f.a.string,type:f.a.oneOfType([f.a.oneOf(["basis","basisClosed","basisOpen","linear","linearClosed","natural","monotoneX","monotoneY","monotone","step","stepBefore","stepAfter"]),f.a.func]),unit:f.a.oneOfType([f.a.string,f.a.number]),name:f.a.oneOfType([f.a.string,f.a.number]),yAxisId:f.a.oneOfType([f.a.string,f.a.number]),xAxisId:f.a.oneOfType([f.a.string,f.a.number]),yAxis:f.a.object,xAxis:f.a.object,legendType:f.a.oneOf(j.b),tooltipType:f.a.oneOf(j.e),layout:f.a.oneOf(["horizontal","vertical"]),connectNulls:f.a.bool,hide:f.a.bool,activeDot:f.a.oneOfType([f.a.object,f.a.element,f.a.func,f.a.bool]),dot:f.a.oneOfType([f.a.object,f.a.element,f.a.func,f.a.bool]),top:f.a.number,left:f.a.number,width:f.a.number,height:f.a.number,points:f.a.arrayOf(f.a.shape({x:f.a.number,y:f.a.number,value:f.a.value})),onAnimationStart:f.a.func,onAnimationEnd:f.a.func,isAnimationActive:f.a.bool,animateNewValues:f.a.bool,animationBegin:f.a.number,animationDuration:f.a.number,animationEasing:f.a.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),animationId:f.a.number,id:f.a.string}),N.defaultProps={xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Object(j.n)(),animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,onAnimationStart:function(){},onAnimationEnd:function(){}},N.getComposedData=function(e){var t=e.props,n=e.xAxis,r=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,i=e.dataKey,c=e.bandSize,l=e.displayedData,u=e.offset,p=t.layout;return T({points:l.map((function(e,t){var l=Object(w.v)(e,i);return"horizontal"===p?{x:Object(w.k)({axis:n,ticks:a,bandSize:c,entry:e,index:t}),y:s()(l)?null:r.scale(l),value:l,payload:e}:{x:s()(l)?null:n.scale(l),y:Object(w.k)({axis:r,ticks:o,bandSize:c,entry:e,index:t}),value:l,payload:e}})),layout:p},u)},t.a=N},wmdK:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,a=(r=n("haXk"))&&r.__esModule?r:{default:r},o=n("iSSB");var i={rangeStep:function(e,t,n){for(var r=new a.default(e),o=0,i=[];r.lt(t)&&o<1e5;)i.push(r.toNumber()),r=r.add(n),o++;return i},getDigitCount:function(e){return 0===e?1:Math.floor(new a.default(e).abs().log(10).toNumber())+1},interpolateNumber:(0,o.curry)((function(e,t,n){var r=+e;return r+n*(+t-r)})),uninterpolateNumber:(0,o.curry)((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),uninterpolateTruncation:(0,o.curry)((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))}))};t.default=i},wwo5:function(e,t,n){"use strict";var r=n("lSCD"),a=n.n(r),o=n("q1tI"),i=n.n(o),c=n("17x9"),s=n.n(c),l=n("TSYQ"),u=n.n(l),p=n("GKuj"),f=n("bAKJ"),h=n("34C+"),d=n("FQZO"),y=n("km7V"),b=n("BJo3"),m=n("Ao2N"),v=n("U8Fc");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 O(){return(O=Object.assign||function(e){for(var t=1;t