)/g,function(e){return"-".concat(e.toLowerCase())})," ").concat(t,"ms ").concat(r)}).join(",")},warn=function(e,t,r,n,o,i,a,c){};function _slicedToArray(e,t){return easing_arrayWithHoles(e)||_iterableToArrayLimit(e,t)||easing_unsupportedIterableToArray(e,t)||easing_nonIterableRest()}function easing_nonIterableRest(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArrayLimit(e,t){var r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}function easing_arrayWithHoles(e){if(Array.isArray(e))return e}function _toConsumableArray(e){return _arrayWithoutHoles(e)||easing_iterableToArray(e)||easing_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function easing_unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return easing_arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return easing_arrayLikeToArray(e,t)}}function easing_iterableToArray(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return easing_arrayLikeToArray(e)}function easing_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var cubicBezierFactor=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},multyTime=function(e,t){return e.map(function(e,r){return e*Math.pow(t,r)}).reduce(function(e,t){return e+t})},cubicBezier=function(e,t){return function(r){return multyTime(cubicBezierFactor(e,t),r)}},configBezier=function(){for(var e,t,r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];var i=n[0],a=n[1],c=n[2],l=n[3];if(1===n.length)switch(n[0]){case"linear":i=0,a=0,c=1,l=1;break;case"ease":i=.25,a=.1,c=.25,l=1;break;case"ease-in":i=.42,a=0,c=1,l=1;break;case"ease-out":i=.42,a=0,c=.58,l=1;break;case"ease-in-out":i=0,a=0,c=.58,l=1;break;default:var s=n[0].split("(");if("cubic-bezier"===s[0]&&4===s[1].split(")")[0].split(",").length){var u=_slicedToArray(s[1].split(")")[0].split(",").map(function(e){return parseFloat(e)}),4);i=u[0],a=u[1],c=u[2],l=u[3]}else warn(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",n)}warn([i,c,a,l].every(function(e){return"number"==typeof e&&e>=0&&e<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",n);var f=cubicBezier(i,c),p=cubicBezier(a,l),d=(e=i,t=c,function(r){return multyTime([].concat(_toConsumableArray(cubicBezierFactor(e,t).map(function(e,t){return e*t}).slice(1)),[0]),r)}),bezier=function(e){for(var t=e>1?1:e,r=t,n=0;n<8;++n){var o,i=f(r)-t,a=d(r);if(1e-4>Math.abs(i-t)||a<1e-4)break;r=(o=r-i/a)>1?1:o<0?0:o}return p(r)};return bezier.isStepper=!1,bezier},configSpring=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,r=void 0===t?100:t,n=e.damping,o=void 0===n?8:n,i=e.dt,a=void 0===i?17:i,stepper=function(e,t,n){var i=n+(-(e-t)*r-n*o)*a/1e3,c=n*a/1e3+e;return 1e-4>Math.abs(c-t)&&1e-4>Math.abs(i)?[t,0]:[c,i]};return stepper.isStepper=!0,stepper.dt=a,stepper},configEasing=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0];if("string"==typeof n)switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return configBezier(n);case"spring":return configSpring();default:if("cubic-bezier"===n.split("(")[0])return configBezier(n);warn(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead  received %s",t)}return"function"==typeof n?n:(warn(!1,"[configEasing]: first argument type should be function or string, instead received %s",t),null)};function configUpdate_typeof(e){return(configUpdate_typeof="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 configUpdate_toConsumableArray(e){return configUpdate_arrayWithoutHoles(e)||configUpdate_iterableToArray(e)||configUpdate_unsupportedIterableToArray(e)||configUpdate_nonIterableSpread()}function configUpdate_nonIterableSpread(){throw TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function configUpdate_iterableToArray(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function configUpdate_arrayWithoutHoles(e){if(Array.isArray(e))return configUpdate_arrayLikeToArray(e)}function configUpdate_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function configUpdate_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?configUpdate_ownKeys(Object(r),!0).forEach(function(t){configUpdate_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):configUpdate_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function configUpdate_defineProperty(e,t,r){return(t=configUpdate_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function configUpdate_toPropertyKey(e){var t=configUpdate_toPrimitive(e,"string");return"symbol"===configUpdate_typeof(t)?t:String(t)}function configUpdate_toPrimitive(e,t){if("object"!==configUpdate_typeof(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==configUpdate_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function configUpdate_slicedToArray(e,t){return configUpdate_arrayWithHoles(e)||configUpdate_iterableToArrayLimit(e,t)||configUpdate_unsupportedIterableToArray(e,t)||configUpdate_nonIterableRest()}function configUpdate_nonIterableRest(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function configUpdate_unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return configUpdate_arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return configUpdate_arrayLikeToArray(e,t)}}function configUpdate_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function configUpdate_iterableToArrayLimit(e,t){var r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}function configUpdate_arrayWithHoles(e){if(Array.isArray(e))return e}var alpha=function(e,t,r){return e+(t-e)*r},needContinue=function(e){return e.from!==e.to},calStepperVals=function calStepperVals(e,t,r){var n=mapObject(function(t,r){if(needContinue(r)){var n=configUpdate_slicedToArray(e(r.from,r.to,r.velocity),2),o=n[0],i=n[1];return configUpdate_objectSpread(configUpdate_objectSpread({},r),{},{from:o,velocity:i})}return r},t);return r<1?mapObject(function(e,t){return needContinue(t)?configUpdate_objectSpread(configUpdate_objectSpread({},t),{},{velocity:alpha(t.velocity,n[e].velocity,r),from:alpha(t.from,n[e].from,r)}):t},t):calStepperVals(e,n,r-1)};let configUpdate=function(e,t,r,n,o){var i,a,c=[Object.keys(e),Object.keys(t)].reduce(function(e,t){return e.filter(function(e){return t.includes(e)})}),l=c.reduce(function(r,n){return configUpdate_objectSpread(configUpdate_objectSpread({},r),{},configUpdate_defineProperty({},n,[e[n],t[n]]))},{}),s=c.reduce(function(r,n){return configUpdate_objectSpread(configUpdate_objectSpread({},r),{},configUpdate_defineProperty({},n,{from:e[n],velocity:0,to:t[n]}))},{}),u=-1,update=function(){return null};return update=r.isStepper?function(n){i||(i=n);var a=(n-i)/r.dt;s=calStepperVals(r,s,a),o(configUpdate_objectSpread(configUpdate_objectSpread(configUpdate_objectSpread({},e),t),mapObject(function(e,t){return t.from},s))),i=n,Object.values(s).filter(needContinue).length&&(u=requestAnimationFrame(update))}:function(i){a||(a=i);var c=(i-a)/n,s=mapObject(function(e,t){return alpha.apply(void 0,configUpdate_toConsumableArray(t).concat([r(c)]))},l);if(o(configUpdate_objectSpread(configUpdate_objectSpread(configUpdate_objectSpread({},e),t),s)),c<1)u=requestAnimationFrame(update);else{var f=mapObject(function(e,t){return alpha.apply(void 0,configUpdate_toConsumableArray(t).concat([r(1)]))},l);o(configUpdate_objectSpread(configUpdate_objectSpread(configUpdate_objectSpread({},e),t),f))}},function(){return requestAnimationFrame(update),function(){cancelAnimationFrame(u)}}};function Animate_typeof(e){return(Animate_typeof="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)}var b=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}function Animate_toConsumableArray(e){return Animate_arrayWithoutHoles(e)||Animate_iterableToArray(e)||Animate_unsupportedIterableToArray(e)||Animate_nonIterableSpread()}function Animate_nonIterableSpread(){throw TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Animate_unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return Animate_arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Animate_arrayLikeToArray(e,t)}}function Animate_iterableToArray(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function Animate_arrayWithoutHoles(e){if(Array.isArray(e))return Animate_arrayLikeToArray(e)}function Animate_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Animate_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Animate_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Animate_ownKeys(Object(r),!0).forEach(function(t){Animate_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Animate_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Animate_defineProperty(e,t,r){return(t=Animate_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _classCallCheck(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Animate_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Animate_toPropertyKey(e){var t=Animate_toPrimitive(e,"string");return"symbol"===Animate_typeof(t)?t:String(t)}function Animate_toPrimitive(e,t){if("object"!==Animate_typeof(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Animate_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var r,n=_getPrototypeOf(e);return r=t?Reflect.construct(n,arguments,_getPrototypeOf(this).constructor):n.apply(this,arguments),_possibleConstructorReturn(this,r)}}function _possibleConstructorReturn(e,t){if(t&&("object"===Animate_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("u"<typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){_inherits(Animate,e);var t=_createSuper(Animate);function Animate(e,r){_classCallCheck(this,Animate);var n=t.call(this,e,r),o=n.props,i=o.isActive,a=o.attributeName,c=o.from,l=o.to,s=o.steps,u=o.children,f=o.duration;if(n.handleStyleChange=n.handleStyleChange.bind(_assertThisInitialized(n)),n.changeStyle=n.changeStyle.bind(_assertThisInitialized(n)),!i||f<=0)return n.state={style:{}},"function"==typeof u&&(n.state={style:l}),_possibleConstructorReturn(n);if(s&&s.length)n.state={style:s[0].style};else if(c){if("function"==typeof u)return n.state={style:c},_possibleConstructorReturn(n);n.state={style:a?Animate_defineProperty({},a,c):c}}else n.state={style:{}};return n}return _createClass(Animate,[{key:"componentDidMount",value:function(){var e=this.props,t=e.isActive,r=e.canBegin;this.mounted=!0,t&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isActive,n=t.canBegin,o=t.attributeName,i=t.shouldReAnimate,a=t.to,c=t.from,l=this.state.style;if(n){if(!r){var s={style:o?Animate_defineProperty({},o,a):a};this.state&&l&&(o&&l[o]!==a||!o&&l!==a)&&this.setState(s);return}if(!h(e.to,a)||!e.canBegin||!e.isActive){var u=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var f=u||i?c:e.to;if(this.state&&l){var p={style:o?Animate_defineProperty({},o,f):f};(o&&l[o]!==f||!o&&l!==f)&&this.setState(p)}this.runAnimation(Animate_objectSpread(Animate_objectSpread({},this.props),{},{from:f,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),e&&e()}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"runJSAnimation",value:function(e){var t=this,r=e.from,n=e.to,o=e.duration,i=e.easing,a=e.begin,c=e.onAnimationEnd,l=e.onAnimationStart,s=configUpdate(r,n,configEasing(i),o,this.changeStyle);this.manager.start([l,a,function(){t.stopJSAnimation=s()},o,c])}},{key:"runStepAnimation",value:function(e){var t=this,r=e.steps,n=e.begin,o=e.onAnimationStart,i=r[0],a=i.style,c=i.duration;return this.manager.start([o].concat(Animate_toConsumableArray(r.reduce(function(e,n,o){if(0===o)return e;var i=n.duration,a=n.easing,c=void 0===a?"ease":a,l=n.style,s=n.properties,u=n.onAnimationEnd,f=o>0?r[o-1]:n,p=s||Object.keys(l);if("function"==typeof c||"spring"===c)return[].concat(Animate_toConsumableArray(e),[t.runJSAnimation.bind(t,{from:f.style,to:l,duration:i,easing:c}),i]);var d=getTransitionVal(p,i,c),y=Animate_objectSpread(Animate_objectSpread(Animate_objectSpread({},f.style),l),{},{transition:d});return[].concat(Animate_toConsumableArray(e),[y,i,u]).filter(identity)},[a,Math.max(void 0===c?0:c,n)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=createAnimateManager());var t=e.begin,r=e.duration,n=e.attributeName,o=e.to,i=e.easing,a=e.onAnimationStart,c=e.onAnimationEnd,l=e.steps,s=e.children,u=this.manager;if(this.unSubscribe=u.subscribe(this.handleStyleChange),"function"==typeof i||"function"==typeof s||"spring"===i)return void this.runJSAnimation(e);if(l.length>1)return void this.runStepAnimation(e);var f=n?Animate_defineProperty({},n,o):o,p=getTransitionVal(Object.keys(f),r,i);u.start([a,t,Animate_objectSpread(Animate_objectSpread({},f),{},{transition:p}),r,c])}},{key:"render",value:function(){var e=this.props,t=e.children,r=(e.begin,e.duration),o=(e.attributeName,e.easing,e.isActive),i=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,_objectWithoutProperties(e,b)),a=n.Children.count(t),c=this.state.style;if("function"==typeof t)return t(c);if(!o||0===a||r<=0)return t;var cloneContainer=function(e){var t=e.props,r=t.style,o=t.className;return(0,n.cloneElement)(e,Animate_objectSpread(Animate_objectSpread({},i),{},{style:Animate_objectSpread(Animate_objectSpread({},void 0===r?{}:r),c),className:o}))};return 1===a?cloneContainer(n.Children.only(t)):n.createElement("div",null,n.Children.map(t,function(e){return cloneContainer(e)}))}}]),Animate}(n.PureComponent);g.displayName="Animate",g.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},g.propTypes={from:i().oneOfType([i().object,i().string]),to:i().oneOfType([i().object,i().string]),attributeName:i().string,duration:i().number,begin:i().number,easing:i().oneOfType([i().string,i().func]),steps:i().arrayOf(i().shape({duration:i().number.isRequired,style:i().object.isRequired,easing:i().oneOfType([i().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),i().func]),properties:i().arrayOf("string"),onAnimationEnd:i().func})),children:i().oneOfType([i().node,i().func]),isActive:i().bool,canBegin:i().bool,onAnimationEnd:i().func,shouldReAnimate:i().bool,onAnimationStart:i().func,onAnimationReStart:i().func};let m=g},0x150dd3287:(e,t,r)=>{"use strict";var n=r(0x244140ad0);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,e.exports=function(){function shim(e,t,r,o,i,a){if(a!==n){var c=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function getShim(){return shim}shim.isRequired=shim;var e={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return e.PropTypes=e,e}},0x3254a749:(e,t,r)=>{e.exports=r(0x150dd3287)()},0x244140ad0:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},0x148798df5:(e,t,r)=>{"use strict";r.d(t,{G:()=>x});var n=r(0xbad225b5),o=r(0x139443c4a),i=r(0x7750ad3e),a=r(0x33644bb7),c=r(0x8588bca7),l=r(0x202470d56),s=r(0xef503114),u=r(0x9e671ad),f=r(0xb1af60e9),p=r(0xc9f8d4dc),d=r(0x10a0ba9c),y=r(0x13b1693b),h=r(0x29ad96af),b=r(0x7bea1699),g=r(0x13907dc1a),m=r(0xd0f20cec),v=["layout","type","stroke","connectNulls","isRange","ref"],_=["key"];function _typeof(e){return(_typeof="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 _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _callSuper(e,t,r){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,r||[],_getPrototypeOf(e).constructor):t.apply(e,r))}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var x=function(e){function Area(){var e;_classCallCheck(this,Area);for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return _defineProperty(e=_callSuper(this,Area,[].concat(r)),"state",{isAnimationFinished:!0}),_defineProperty(e,"id",(0,b.NF)("recharts-area-")),_defineProperty(e,"handleAnimationEnd",function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),(0,a.A)(t)&&t()}),_defineProperty(e,"handleAnimationStart",function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),(0,a.A)(t)&&t()}),e}return _inherits(Area,e),_createClass(Area,[{key:"renderDots",value:function(e,t,r){var o=this.props.isAnimationActive,i=this.state.isAnimationFinished;if(o&&!i)return null;var a=this.props,c=a.dot,l=a.points,s=a.dataKey,u=(0,m.J9)(this.props,!1),f=(0,m.J9)(c,!0),p=l.map(function(e,t){var r=_objectSpread(_objectSpread(_objectSpread({key:"dot-".concat(t),r:3},u),f),{},{index:t,cx:e.x,cy:e.y,dataKey:s,value:e.value,payload:e.payload,points:l});return Area.renderDotItem(c,r)}),y={clipPath:e?"url(#clipPath-".concat(t?"":"dots-").concat(r,")"):null};return n.createElement(d.W,_extends({className:"recharts-area-dots"},y),p)}},{key:"renderHorizontalRect",value:function(e){var t=this.props,r=t.baseLine,o=t.points,i=t.strokeWidth,a=o[0].x,l=o[o.length-1].x,s=e*Math.abs(a-l),u=(0,c.A)(o.map(function(e){return e.y||0}));return((0,b.Et)(r)&&"number"==typeof r?u=Math.max(r,u):r&&Array.isArray(r)&&r.length&&(u=Math.max((0,c.A)(r.map(function(e){return e.y||0})),u)),(0,b.Et)(u))?n.createElement("rect",{x:a<l?a:a-s,y:0,width:s,height:Math.floor(u+(i?parseInt("".concat(i),10):1))}):null}},{key:"renderVerticalRect",value:function(e){var t=this.props,r=t.baseLine,o=t.points,i=t.strokeWidth,a=o[0].y,l=o[o.length-1].y,s=e*Math.abs(a-l),u=(0,c.A)(o.map(function(e){return e.x||0}));return((0,b.Et)(r)&&"number"==typeof r?u=Math.max(r,u):r&&Array.isArray(r)&&r.length&&(u=Math.max((0,c.A)(r.map(function(e){return e.x||0})),u)),(0,b.Et)(u))?n.createElement("rect",{x:0,y:a<l?a:a-s,width:u+(i?parseInt("".concat(i),10):1),height:Math.floor(s)}):null}},{key:"renderClipRect",value:function(e){return"vertical"===this.props.layout?this.renderVerticalRect(e):this.renderHorizontalRect(e)}},{key:"renderAreaStatically",value:function(e,t,r,o){var i=this.props,a=i.layout,c=i.type,l=i.stroke,s=i.connectNulls,u=i.isRange,p=(i.ref,_objectWithoutProperties(i,v));return n.createElement(d.W,{clipPath:r?"url(#clipPath-".concat(o,")"):null},n.createElement(f.I,_extends({},(0,m.J9)(p,!0),{points:e,connectNulls:s,type:c,baseLine:t,layout:a,stroke:"none",className:"recharts-area-area"})),"none"!==l&&n.createElement(f.I,_extends({},(0,m.J9)(this.props,!1),{className:"recharts-area-curve",layout:a,type:c,connectNulls:s,fill:"none",points:e})),"none"!==l&&u&&n.createElement(f.I,_extends({},(0,m.J9)(this.props,!1),{className:"recharts-area-curve",layout:a,type:c,connectNulls:s,fill:"none",points:t})))}},{key:"renderAreaWithAnimation",value:function(e,t){var r=this,o=this.props,a=o.points,c=o.baseLine,u=o.isAnimationActive,f=o.animationBegin,p=o.animationDuration,y=o.animationEasing,h=o.animationId,g=this.state,m=g.prevPoints,v=g.prevBaseLine;return n.createElement(i.Ay,{begin:f,duration:p,isActive:u,easing:y,from:{t:0},to:{t:1},key:"area-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(o){var i=o.t;if(m){var u,f=m.length/a.length,p=a.map(function(e,t){var r=Math.floor(t*f);if(m[r]){var n=m[r],o=(0,b.Dj)(n.x,e.x),a=(0,b.Dj)(n.y,e.y);return _objectSpread(_objectSpread({},e),{},{x:o(i),y:a(i)})}return e});return u=(0,b.Et)(c)&&"number"==typeof c?(0,b.Dj)(v,c)(i):(0,l.A)(c)||(0,s.A)(c)?(0,b.Dj)(v,0)(i):c.map(function(e,t){var r=Math.floor(t*f);if(v[r]){var n=v[r],o=(0,b.Dj)(n.x,e.x),a=(0,b.Dj)(n.y,e.y);return _objectSpread(_objectSpread({},e),{},{x:o(i),y:a(i)})}return e}),r.renderAreaStatically(p,u,e,t)}return n.createElement(d.W,null,n.createElement("defs",null,n.createElement("clipPath",{id:"animationClipPath-".concat(t)},r.renderClipRect(i))),n.createElement(d.W,{clipPath:"url(#animationClipPath-".concat(t,")")},r.renderAreaStatically(a,c,e,t)))})}},{key:"renderArea",value:function(e,t){var r=this.props,n=r.points,o=r.baseLine,i=r.isAnimationActive,a=this.state,c=a.prevPoints,l=a.prevBaseLine,s=a.totalLength;return i&&n&&n.length&&(!c&&s>0||!(0,u.A)(c,n)||!(0,u.A)(l,o))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(n,o,e,t)}},{key:"render",value:function(){var e,t=this.props,r=t.hide,i=t.dot,a=t.points,c=t.className,s=t.top,u=t.left,f=t.xAxis,p=t.yAxis,h=t.width,b=t.height,g=t.isAnimationActive,v=t.id;if(r||!a||!a.length)return null;var _=this.state.isAnimationFinished,x=1===a.length,P=(0,o.A)("recharts-area",c),A=f&&f.allowDataOverflow,S=p&&p.allowDataOverflow,O=A||S,j=(0,l.A)(v)?this.id:v,w=null!=(e=(0,m.J9)(i,!1))?e:{r:3,strokeWidth:2},C=w.r,T=w.strokeWidth,k=((0,m.sT)(i)?i:{}).clipDot,E=void 0===k||k,M=2*(void 0===C?3:C)+(void 0===T?2:T);return n.createElement(d.W,{className:P},A||S?n.createElement("defs",null,n.createElement("clipPath",{id:"clipPath-".concat(j)},n.createElement("rect",{x:A?u:u-h/2,y:S?s:s-b/2,width:A?h:2*h,height:S?b:2*b})),!E&&n.createElement("clipPath",{id:"clipPath-dots-".concat(j)},n.createElement("rect",{x:u-M/2,y:s-M/2,width:h+M,height:b+M}))):null,x?null:this.renderArea(O,j),(i||x)&&this.renderDots(O,E,j),(!g||_)&&y.Z.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}:e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null}}])}(n.PureComponent);_defineProperty(x,"displayName","Area"),_defineProperty(x,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!h.m.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),_defineProperty(x,"getBaseValue",function(e,t,r,n){var o=e.layout,i=e.baseValue,a=t.props.baseValue,c=null!=a?a:i;if((0,b.Et)(c)&&"number"==typeof c)return c;var l="horizontal"===o?n:r,s=l.scale.domain();if("number"===l.type){var u=Math.max(s[0],s[1]),f=Math.min(s[0],s[1]);return"dataMin"===c?f:"dataMax"===c||u<0?u:Math.max(Math.min(s[0],s[1]),0)}return"dataMin"===c?s[0]:"dataMax"===c?s[1]:s[0]}),_defineProperty(x,"getComposedData",function(e){var t,r=e.props,n=e.item,o=e.xAxis,i=e.yAxis,a=e.xAxisTicks,c=e.yAxisTicks,l=e.bandSize,s=e.dataKey,u=e.stackedData,f=e.dataStartIndex,p=e.displayedData,d=e.offset,y=r.layout,h=u&&u.length,b=x.getBaseValue(r,n,o,i),m="horizontal"===y,v=!1,_=p.map(function(e,t){h?r=u[f+t]:Array.isArray(r=(0,g.kr)(e,s))?v=!0:r=[b,r];var r,n=null==r[1]||h&&null==(0,g.kr)(e,s);return m?{x:(0,g.nb)({axis:o,ticks:a,bandSize:l,entry:e,index:t}),y:n?null:i.scale(r[1]),value:r,payload:e}:{x:n?null:o.scale(r[1]),y:(0,g.nb)({axis:i,ticks:c,bandSize:l,entry:e,index:t}),value:r,payload:e}});return t=h||v?_.map(function(e){var t=Array.isArray(e.value)?e.value[0]:null;return m?{x:e.x,y:null!=t&&null!=e.y?i.scale(t):null}:{x:null!=t?o.scale(t):null,y:e.y}}):m?i.scale(b):o.scale(b),_objectSpread({points:_,baseLine:t,layout:y,isRange:v},d)}),_defineProperty(x,"renderDotItem",function(e,t){var r;if(n.isValidElement(e))r=n.cloneElement(e,t);else if((0,a.A)(e))r=e(t);else{var i=(0,o.A)("recharts-area-dot","boolean"!=typeof e?e.className:""),c=t.key,l=_objectWithoutProperties(t,_);r=n.createElement(p.c,_extends({},l,{key:c,className:i}))}return r})},0x1dc6c0c23:(e,t,r)=>{"use strict";r.d(t,{y:()=>x});var n=r(0xbad225b5),o=r(0x139443c4a),i=r(0x7750ad3e),a=r(0x9e671ad),c=r(0x202470d56),l=r(0x10a0ba9c),s=r(0x17e60f347),u=r(0xa504df3f),f=r(0x13b1693b),p=r(0x7bea1699),d=r(0xd0f20cec),y=r(0x29ad96af),h=r(0x13907dc1a),b=r(0xee79d415),g=r(0x1a54ab070),m=r(0x81a138ba),v=["x","y"];function _typeof(e){return(_typeof="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 _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function typeguardBarRectangleProps(e,t){var r=e.x,n=e.y,o=_objectWithoutProperties(e,v),i=parseInt("".concat(r),10),a=parseInt("".concat(n),10),c=parseInt("".concat(t.height||o.height),10),l=parseInt("".concat(t.width||o.width),10);return _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({},t),o),i?{x:i}:{}),a?{y:a}:{}),{},{height:c,width:l,name:t.name,radius:t.radius})}function BarRectangle(e){return n.createElement(m.yp,_extends({shapeType:"rectangle",propTransformer:typeguardBarRectangleProps,activeClassName:"recharts-active-bar"},e))}var minPointSizeCallback=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof e)return e;var o="number"==typeof r;return o?e(r,n):(o||(0,g.A)(!1),t)}},_=["value","background"];function Bar_typeof(e){return(Bar_typeof="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 Bar_objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=Bar_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Bar_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Bar_extends(){return(Bar_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Bar_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Bar_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bar_ownKeys(Object(r),!0).forEach(function(t){Bar_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bar_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Bar_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _callSuper(e,t,r){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,r||[],_getPrototypeOf(e).constructor):t.apply(e,r))}function _possibleConstructorReturn(e,t){if(t&&("object"===Bar_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Bar_defineProperty(e,t,r){return(t=Bar_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bar_toPropertyKey(e){var t=Bar_toPrimitive(e,"string");return"symbol"==Bar_typeof(t)?t:t+""}function Bar_toPrimitive(e,t){if("object"!=Bar_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Bar_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var x=function(e){function Bar(){var e;_classCallCheck(this,Bar);for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return Bar_defineProperty(e=_callSuper(this,Bar,[].concat(r)),"state",{isAnimationFinished:!1}),Bar_defineProperty(e,"id",(0,p.NF)("recharts-bar-")),Bar_defineProperty(e,"handleAnimationEnd",function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()}),Bar_defineProperty(e,"handleAnimationStart",function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()}),e}return _inherits(Bar,e),_createClass(Bar,[{key:"renderRectanglesStatically",value:function(e){var t=this,r=this.props,o=r.shape,i=r.dataKey,a=r.activeIndex,c=r.activeBar,s=(0,d.J9)(this.props,!1);return e&&e.map(function(e,r){var u=r===a,f=Bar_objectSpread(Bar_objectSpread(Bar_objectSpread({},s),e),{},{isActive:u,option:u?c:o,index:r,dataKey:i,onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd});return n.createElement(l.W,Bar_extends({className:"recharts-bar-rectangle"},(0,b.XC)(t.props,e,r),{key:"rectangle-".concat(null==e?void 0:e.x,"-").concat(null==e?void 0:e.y,"-").concat(null==e?void 0:e.value)}),n.createElement(BarRectangle,f))})}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,t=this.props,r=t.data,o=t.layout,a=t.isAnimationActive,c=t.animationBegin,s=t.animationDuration,u=t.animationEasing,f=t.animationId,d=this.state.prevData;return n.createElement(i.Ay,{begin:c,duration:s,isActive:a,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(t){var i=t.t,a=r.map(function(e,t){var r=d&&d[t];if(r){var n=(0,p.Dj)(r.x,e.x),a=(0,p.Dj)(r.y,e.y),c=(0,p.Dj)(r.width,e.width),l=(0,p.Dj)(r.height,e.height);return Bar_objectSpread(Bar_objectSpread({},e),{},{x:n(i),y:a(i),width:c(i),height:l(i)})}if("horizontal"===o){var s=(0,p.Dj)(0,e.height)(i);return Bar_objectSpread(Bar_objectSpread({},e),{},{y:e.y+e.height-s,height:s})}var u=(0,p.Dj)(0,e.width)(i);return Bar_objectSpread(Bar_objectSpread({},e),{},{width:u})});return n.createElement(l.W,null,e.renderRectanglesStatically(a))})}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,r=e.isAnimationActive,n=this.state.prevData;return r&&t&&t.length&&(!n||!(0,a.A)(n,t))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(t)}},{key:"renderBackground",value:function(){var e=this,t=this.props,r=t.data,o=t.dataKey,i=t.activeIndex,a=(0,d.J9)(this.props.background,!1);return r.map(function(t,r){t.value;var c=t.background,l=Bar_objectWithoutProperties(t,_);if(!c)return null;var s=Bar_objectSpread(Bar_objectSpread(Bar_objectSpread(Bar_objectSpread(Bar_objectSpread({},l),{},{fill:"#eee"},c),a),(0,b.XC)(e.props,t,r)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:o,index:r,className:"recharts-bar-background-rectangle"});return n.createElement(BarRectangle,Bar_extends({key:"background-bar-".concat(r),option:e.props.background,isActive:r===i},s))})}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.data,i=r.xAxis,a=r.yAxis,c=r.layout,u=r.children,f=(0,d.aS)(u,s.u);if(!f)return null;var p="vertical"===c?o[0].height/2:o[0].width/2,dataPointFormatter=function(e,t){var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:(0,h.kr)(e,t)}};return n.createElement(l.W,{clipPath:e?"url(#clipPath-".concat(t,")"):null},f.map(function(e){return n.cloneElement(e,{key:"error-bar-".concat(t,"-").concat(e.props.dataKey),data:o,xAxis:i,yAxis:a,layout:c,offset:p,dataPointFormatter:dataPointFormatter})}))}},{key:"render",value:function(){var e=this.props,t=e.hide,r=e.data,i=e.className,a=e.xAxis,s=e.yAxis,u=e.left,p=e.top,d=e.width,y=e.height,h=e.isAnimationActive,b=e.background,g=e.id;if(t||!r||!r.length)return null;var m=this.state.isAnimationFinished,v=(0,o.A)("recharts-bar",i),_=a&&a.allowDataOverflow,x=s&&s.allowDataOverflow,P=_||x,A=(0,c.A)(g)?this.id:g;return n.createElement(l.W,{className:v},_||x?n.createElement("defs",null,n.createElement("clipPath",{id:"clipPath-".concat(A)},n.createElement("rect",{x:_?u:u-d/2,y:x?p:p-y/2,width:_?d:2*d,height:x?y:2*y}))):null,n.createElement(l.W,{className:"recharts-bar-rectangles",clipPath:P?"url(#clipPath-".concat(A,")"):null},b?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(P,A),(!h||m)&&f.Z.renderCallByParent(this.props,r))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}}])}(n.PureComponent);Bar_defineProperty(x,"displayName","Bar"),Bar_defineProperty(x,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!y.m.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),Bar_defineProperty(x,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,o=e.bandSize,i=e.xAxis,a=e.yAxis,c=e.xAxisTicks,l=e.yAxisTicks,s=e.stackedData,f=e.dataStartIndex,y=e.displayedData,b=e.offset,g=(0,h.xi)(n,r);if(!g)return null;var m=t.layout,v=r.type.defaultProps,_=void 0!==v?Bar_objectSpread(Bar_objectSpread({},v),r.props):r.props,P=_.dataKey,A=_.children,S=_.minPointSize,O="horizontal"===m?a:i,j=s?O.scale.domain():null,w=(0,h.DW)({numericAxis:O}),C=(0,d.aS)(A,u.f),T=y.map(function(e,t){s?u=(0,h._f)(s[f+t],j):Array.isArray(u=(0,h.kr)(e,P))||(u=[w,u]);var n=minPointSizeCallback(S,x.defaultProps.minPointSize)(u[1],t);if("horizontal"===m){var u,d,y,b,v,_,A,O=[a.scale(u[0]),a.scale(u[1])],T=O[0],k=O[1];d=(0,h.y2)({axis:i,ticks:c,bandSize:o,offset:g.offset,entry:e,index:t}),y=null!=(A=null!=k?k:T)?A:void 0,b=g.size;var E=T-k;if(v=Number.isNaN(E)?0:E,_={x:d,y:a.y,width:b,height:a.height},Math.abs(n)>0&&Math.abs(v)<Math.abs(n)){var M=(0,p.sA)(v||n)*(Math.abs(n)-Math.abs(v));y-=M,v+=M}}else{var I=[i.scale(u[0]),i.scale(u[1])],D=I[0],R=I[1];if(d=D,y=(0,h.y2)({axis:a,ticks:l,bandSize:o,offset:g.offset,entry:e,index:t}),b=R-D,v=g.size,_={x:i.x,y:y,width:i.width,height:v},Math.abs(n)>0&&Math.abs(b)<Math.abs(n)){var L=(0,p.sA)(b||n)*(Math.abs(n)-Math.abs(b));b+=L}}return Bar_objectSpread(Bar_objectSpread(Bar_objectSpread({},e),{},{x:d,y:y,width:b,height:v,value:s?u:u[1],payload:e,background:_},C&&C[t]&&C[t].props),{},{tooltipPayload:[(0,h.zb)(r,e)],tooltipPosition:{x:d+b/2,y:y+v/2}})});return Bar_objectSpread({data:T,layout:m},b)})},0x1ef2e0a8b:(e,t,r)=>{"use strict";r.d(t,{u:()=>m});var n=r(0xbad225b5),o=r(0x33644bb7),i=r(0x77727995),a=r(0x139443c4a),c=r(0x319df928),l=r(0x10a0ba9c),s=r(0x187d2c3a3),u=r(0xd7f4847),f=r(0x7bea1699),p=r(0xee79d415),d=r(0xd0f20cec),y=r(0x245678a19),h=["viewBox"],b=["viewBox"],g=["ticks"];function _typeof(e){return(_typeof="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 _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function _classCallCheck(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _callSuper(e,t,r){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,r||[],_getPrototypeOf(e).constructor):t.apply(e,r))}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var m=function(e){function CartesianAxis(e){var t;return _classCallCheck(this,CartesianAxis),(t=_callSuper(this,CartesianAxis,[e])).state={fontSize:"",letterSpacing:""},t}return _inherits(CartesianAxis,e),_createClass(CartesianAxis,[{key:"shouldComponentUpdate",value:function(e,t){var r=e.viewBox,n=_objectWithoutProperties(e,h),o=this.props,i=o.viewBox,a=_objectWithoutProperties(o,b);return!(0,c.b)(r,i)||!(0,c.b)(n,a)||!(0,c.b)(t,this.state)}},{key:"componentDidMount",value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:"getTickLineCoord",value:function(e){var t,r,n,o,i,a,c=this.props,l=c.x,s=c.y,u=c.width,p=c.height,d=c.orientation,y=c.tickSize,h=c.mirror,b=c.tickMargin,g=h?-1:1,m=e.tickSize||y,v=(0,f.Et)(e.tickCoord)?e.tickCoord:e.coordinate;switch(d){case"top":t=r=e.coordinate,a=(n=(o=s+!h*p)-g*m)-g*b,i=v;break;case"left":n=o=e.coordinate,i=(t=(r=l+!h*u)-g*m)-g*b,a=v;break;case"right":n=o=e.coordinate,i=(t=(r=l+h*u)+g*m)+g*b,a=v;break;default:t=r=e.coordinate,a=(n=(o=s+h*p)+g*m)+g*b,i=v}return{line:{x1:t,y1:n,x2:r,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,r=t.orientation,n=t.mirror;switch(r){case"left":e=n?"start":"end";break;case"right":e=n?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,r=e.mirror,n="end";switch(t){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.x,r=e.y,o=e.width,c=e.height,l=e.orientation,s=e.mirror,u=e.axisLine,f=_objectSpread(_objectSpread(_objectSpread({},(0,d.J9)(this.props,!1)),(0,d.J9)(u,!1)),{},{fill:"none"});if("top"===l||"bottom"===l){var p=+("top"===l&&!s||"bottom"===l&&s);f=_objectSpread(_objectSpread({},f),{},{x1:t,y1:r+p*c,x2:t+o,y2:r+p*c})}else{var y=+("left"===l&&!s||"right"===l&&s);f=_objectSpread(_objectSpread({},f),{},{x1:t+y*o,y1:r,x2:t+y*o,y2:r+c})}return n.createElement("line",_extends({},f,{className:(0,a.A)("recharts-cartesian-axis-line",(0,i.A)(u,"className"))}))}},{key:"renderTicks",value:function(e,t,r){var c=this,s=this.props,u=s.tickLine,f=s.stroke,h=s.tick,b=s.tickFormatter,g=s.unit,m=(0,y.f)(_objectSpread(_objectSpread({},this.props),{},{ticks:e}),t,r),v=this.getTickTextAnchor(),_=this.getTickVerticalAnchor(),x=(0,d.J9)(this.props,!1),P=(0,d.J9)(h,!1),A=_objectSpread(_objectSpread({},x),{},{fill:"none"},(0,d.J9)(u,!1)),S=m.map(function(e,t){var r=c.getTickLineCoord(e),s=r.line,d=r.tick,y=_objectSpread(_objectSpread(_objectSpread(_objectSpread({textAnchor:v,verticalAnchor:_},x),{},{stroke:"none",fill:f},P),d),{},{index:t,payload:e,visibleTicksCount:m.length,tickFormatter:b});return n.createElement(l.W,_extends({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e.value,"-").concat(e.coordinate,"-").concat(e.tickCoord)},(0,p.XC)(c.props,e,t)),u&&n.createElement("line",_extends({},A,s,{className:(0,a.A)("recharts-cartesian-axis-tick-line",(0,i.A)(u,"className"))})),h&&CartesianAxis.renderTickItem(h,y,"".concat((0,o.A)(b)?b(e.value,t):e.value).concat(g||"")))});return n.createElement("g",{className:"recharts-cartesian-axis-ticks"},S)}},{key:"render",value:function(){var e=this,t=this.props,r=t.axisLine,i=t.width,c=t.height,s=t.ticksGenerator,f=t.className;if(t.hide)return null;var p=this.props,d=p.ticks,y=_objectWithoutProperties(p,g),h=d;return((0,o.A)(s)&&(h=s(d&&d.length>0?this.props:y)),i<=0||c<=0||!h||!h.length)?null:n.createElement(l.W,{className:(0,a.A)("recharts-cartesian-axis",f),ref:function(t){e.layerReference=t}},r&&this.renderAxisLine(),this.renderTicks(h,this.state.fontSize,this.state.letterSpacing),u.J.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(e,t,r){return n.isValidElement(e)?n.cloneElement(e,t):(0,o.A)(e)?e(t):n.createElement(s.E,_extends({},t,{className:"recharts-cartesian-axis-tick-value"}),r)}}])}(n.Component);_defineProperty(m,"displayName","CartesianAxis"),_defineProperty(m,"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"})},0xf36865a6:(e,t,r)=>{"use strict";r.d(t,{d:()=>CartesianGrid});var n=r(0xbad225b5),o=r(0x33644bb7),i=r(0x1c8d10397),a=r(0x7bea1699),c=r(0xd0f20cec),l=r(0x13907dc1a),s=r(0x245678a19),u=r(0x1ef2e0a8b),f=r(0xd771d54c),p=["x1","y1","x2","y2","key"],d=["offset"];function _typeof(e){return(_typeof="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 ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Background=function(e){var t=e.fill;if(!t||"none"===t)return null;var r=e.fillOpacity,o=e.x,i=e.y,a=e.width,c=e.height,l=e.ry;return n.createElement("rect",{x:o,y:i,ry:l,width:a,height:c,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function renderLineItem(e,t){var r;if(n.isValidElement(e))r=n.cloneElement(e,t);else if((0,o.A)(e))r=e(t);else{var i=t.x1,a=t.y1,l=t.x2,s=t.y2,u=t.key,f=_objectWithoutProperties(t,p),y=(0,c.J9)(f,!1),h=(y.offset,_objectWithoutProperties(y,d));r=n.createElement("line",_extends({},h,{x1:i,y1:a,x2:l,y2:s,fill:"none",key:u}))}return r}function HorizontalGridLines(e){var t=e.x,r=e.width,o=e.horizontal,i=void 0===o||o,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var c=a.map(function(n,o){return renderLineItem(i,_objectSpread(_objectSpread({},e),{},{x1:t,y1:n,x2:t+r,y2:n,key:"line-".concat(o),index:o}))});return n.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}function VerticalGridLines(e){var t=e.y,r=e.height,o=e.vertical,i=void 0===o||o,a=e.verticalPoints;if(!i||!a||!a.length)return null;var c=a.map(function(n,o){return renderLineItem(i,_objectSpread(_objectSpread({},e),{},{x1:n,y1:t,x2:n,y2:t+r,key:"line-".concat(o),index:o}))});return n.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}function HorizontalStripes(e){var t=e.horizontalFill,r=e.fillOpacity,o=e.x,i=e.y,a=e.width,c=e.height,l=e.horizontalPoints,s=e.horizontal;if(!(void 0===s||s)||!t||!t.length)return null;var u=l.map(function(e){return Math.round(e+i-i)}).sort(function(e,t){return e-t});i!==u[0]&&u.unshift(0);var f=u.map(function(e,l){var s=u[l+1]?u[l+1]-e:i+c-e;if(s<=0)return null;var f=l%t.length;return n.createElement("rect",{key:"react-".concat(l),y:e,x:o,height:s,width:a,stroke:"none",fill:t[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return n.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function VerticalStripes(e){var t=e.vertical,r=e.verticalFill,o=e.fillOpacity,i=e.x,a=e.y,c=e.width,l=e.height,s=e.verticalPoints;if(!(void 0===t||t)||!r||!r.length)return null;var u=s.map(function(e){return Math.round(e+i-i)}).sort(function(e,t){return e-t});i!==u[0]&&u.unshift(0);var f=u.map(function(e,t){var s=u[t+1]?u[t+1]-e:i+c-e;if(s<=0)return null;var f=t%r.length;return n.createElement("rect",{key:"react-".concat(t),x:e,y:a,width:s,height:l,stroke:"none",fill:r[f],fillOpacity:o,className:"recharts-cartesian-grid-bg"})});return n.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var defaultVerticalCoordinatesGenerator=function(e,t){var r=e.xAxis,n=e.width,o=e.height,i=e.offset;return(0,l.PW)((0,s.f)(_objectSpread(_objectSpread(_objectSpread({},u.u.defaultProps),r),{},{ticks:(0,l.Rh)(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,t)},defaultHorizontalCoordinatesGenerator=function(e,t){var r=e.yAxis,n=e.width,o=e.height,i=e.offset;return(0,l.PW)((0,s.f)(_objectSpread(_objectSpread(_objectSpread({},u.u.defaultProps),r),{},{ticks:(0,l.Rh)(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,t)},y=[],h=[];function CartesianGrid(e){var t,r,c,l,s,u,p=(0,f.yi)(),d=(0,f.rY)(),b=(0,f.hj)(),g=_objectSpread(_objectSpread({},e),{},{stroke:null!=(t=e.stroke)?t:"#ccc",fill:null!=(r=e.fill)?r:"none",horizontal:null==(c=e.horizontal)||c,horizontalFill:null!=(l=e.horizontalFill)?l:h,vertical:null==(s=e.vertical)||s,verticalFill:null!=(u=e.verticalFill)?u:y,x:(0,a.Et)(e.x)?e.x:b.left,y:(0,a.Et)(e.y)?e.y:b.top,width:(0,a.Et)(e.width)?e.width:b.width,height:(0,a.Et)(e.height)?e.height:b.height}),m=g.x,v=g.y,_=g.width,x=g.height,P=g.syncWithTicks,A=g.horizontalValues,S=g.verticalValues,O=(0,f.pj)(),j=(0,f.$G)();if(!(0,a.Et)(_)||_<=0||!(0,a.Et)(x)||x<=0||!(0,a.Et)(m)||m!==+m||!(0,a.Et)(v)||v!==+v)return null;var w=g.verticalCoordinatesGenerator||defaultVerticalCoordinatesGenerator,C=g.horizontalCoordinatesGenerator||defaultHorizontalCoordinatesGenerator,T=g.horizontalPoints,k=g.verticalPoints;if((!T||!T.length)&&(0,o.A)(C)){var E=A&&A.length,M=C({yAxis:j?_objectSpread(_objectSpread({},j),{},{ticks:E?A:j.ticks}):void 0,width:p,height:d,offset:b},!!E||P);(0,i.R)(Array.isArray(M),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(_typeof(M),"]")),Array.isArray(M)&&(T=M)}if((!k||!k.length)&&(0,o.A)(w)){var I=S&&S.length,D=w({xAxis:O?_objectSpread(_objectSpread({},O),{},{ticks:I?S:O.ticks}):void 0,width:p,height:d,offset:b},!!I||P);(0,i.R)(Array.isArray(D),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(_typeof(D),"]")),Array.isArray(D)&&(k=D)}return n.createElement("g",{className:"recharts-cartesian-grid"},n.createElement(Background,{fill:g.fill,fillOpacity:g.fillOpacity,x:g.x,y:g.y,width:g.width,height:g.height,ry:g.ry}),n.createElement(HorizontalGridLines,_extends({},g,{offset:b,horizontalPoints:T,xAxis:O,yAxis:j})),n.createElement(VerticalGridLines,_extends({},g,{offset:b,verticalPoints:k,xAxis:O,yAxis:j})),n.createElement(HorizontalStripes,_extends({},g,{horizontalPoints:T})),n.createElement(VerticalStripes,_extends({},g,{verticalPoints:k})))}CartesianGrid.displayName="CartesianGrid"},0x17e60f347:(e,t,r)=>{"use strict";r.d(t,{u:()=>l});var n=r(0xbad225b5),o=r(0x1a54ab070),i=r(0x10a0ba9c),a=r(0xd0f20cec),c=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function _typeof(e){return(_typeof="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 _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,t)}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _iterableToArrayLimit(e,t){var r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function _classCallCheck(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _callSuper(e,t,r){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,r||[],_getPrototypeOf(e).constructor):t.apply(e,r))}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var l=function(e){function ErrorBar(){return _classCallCheck(this,ErrorBar),_callSuper(this,ErrorBar,arguments)}return _inherits(ErrorBar,e),_createClass(ErrorBar,[{key:"render",value:function(){var e=this.props,t=e.offset,r=e.layout,l=e.width,s=e.dataKey,u=e.data,f=e.dataPointFormatter,p=e.xAxis,d=e.yAxis,y=_objectWithoutProperties(e,c),h=(0,a.J9)(y,!1);"x"===this.props.direction&&"number"!==p.type&&(0,o.A)(!1);var b=u.map(function(e){var o,a,c=f(e,s),u=c.x,y=c.y,b=c.value,g=c.errorVal;if(!g)return null;var m=[];if(Array.isArray(g)){var v=_slicedToArray(g,2);o=v[0],a=v[1]}else o=a=g;if("vertical"===r){var _=p.scale,x=y+t,P=x+l,A=x-l,S=_(b-o),O=_(b+a);m.push({x1:O,y1:P,x2:O,y2:A}),m.push({x1:S,y1:x,x2:O,y2:x}),m.push({x1:S,y1:P,x2:S,y2:A})}else if("horizontal"===r){var j=d.scale,w=u+t,C=w-l,T=w+l,k=j(b-o),E=j(b+a);m.push({x1:C,y1:E,x2:T,y2:E}),m.push({x1:w,y1:k,x2:w,y2:E}),m.push({x1:C,y1:k,x2:T,y2:k})}return n.createElement(i.W,_extends({className:"recharts-errorBar",key:"bar-".concat(m.map(function(e){return"".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))},h),m.map(function(e){return n.createElement("line",_extends({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))}))});return n.createElement(i.W,{className:"recharts-errorBars"},b)}}])}(n.Component);_defineProperty(l,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"}),_defineProperty(l,"displayName","ErrorBar")},0x7d3cecfa:(e,t,r)=>{"use strict";r.d(t,{N:()=>_});var n=r(0xbad225b5),o=r(0x7750ad3e),i=r(0x33644bb7),a=r(0x202470d56),c=r(0x9e671ad),l=r(0x139443c4a),s=r(0xb1af60e9),u=r(0xc9f8d4dc),f=r(0x10a0ba9c),p=r(0x13b1693b),d=r(0x17e60f347),y=r(0x7bea1699),h=r(0xd0f20cec),b=r(0x29ad96af),g=r(0x13907dc1a),m=["type","layout","connectNulls","ref"],v=["key"];function _typeof(e){return(_typeof="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 _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,t)}}function _iterableToArray(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _classCallCheck(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _callSuper(e,t,r){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,r||[],_getPrototypeOf(e).constructor):t.apply(e,r))}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var _=function(e){function Line(){var e;_classCallCheck(this,Line);for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return _defineProperty(e=_callSuper(this,Line,[].concat(r)),"state",{isAnimationFinished:!0,totalLength:0}),_defineProperty(e,"generateSimpleStrokeDasharray",function(e,t){return"".concat(t,"px ").concat(e-t,"px")}),_defineProperty(e,"getStrokeDasharray",function(t,r,n){var o=n.reduce(function(e,t){return e+t});if(!o)return e.generateSimpleStrokeDasharray(r,t);for(var i=Math.floor(t/o),a=t%o,c=r-t,l=[],s=0,u=0;s<n.length;u+=n[s],++s)if(u+n[s]>a){l=[].concat(_toConsumableArray(n.slice(0,s)),[a-u]);break}var f=l.length%2==0?[0,c]:[c];return[].concat(_toConsumableArray(Line.repeat(n,i)),_toConsumableArray(l),f).map(function(e){return"".concat(e,"px")}).join(", ")}),_defineProperty(e,"id",(0,y.NF)("recharts-line-")),_defineProperty(e,"pathRef",function(t){e.mainCurve=t}),_defineProperty(e,"handleAnimationEnd",function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()}),_defineProperty(e,"handleAnimationStart",function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()}),e}return _inherits(Line,e),_createClass(Line,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();e!==this.state.totalLength&&this.setState({totalLength:e})}}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.points,i=r.xAxis,a=r.yAxis,c=r.layout,l=r.children,s=(0,h.aS)(l,d.u);if(!s)return null;var dataPointFormatter=function(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:(0,g.kr)(e.payload,t)}};return n.createElement(f.W,{clipPath:e?"url(#clipPath-".concat(t,")"):null},s.map(function(e){return n.cloneElement(e,{key:"bar-".concat(e.props.dataKey),data:o,xAxis:i,yAxis:a,layout:c,dataPointFormatter:dataPointFormatter})}))}},{key:"renderDots",value:function(e,t,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var o=this.props,i=o.dot,a=o.points,c=o.dataKey,l=(0,h.J9)(this.props,!1),s=(0,h.J9)(i,!0),u=a.map(function(e,t){var r=_objectSpread(_objectSpread(_objectSpread({key:"dot-".concat(t),r:3},l),s),{},{value:e.value,dataKey:c,cx:e.x,cy:e.y,index:t,payload:e.payload});return Line.renderDotItem(i,r)}),p={clipPath:e?"url(#clipPath-".concat(t?"":"dots-").concat(r,")"):null};return n.createElement(f.W,_extends({className:"recharts-line-dots",key:"dots"},p),u)}},{key:"renderCurveStatically",value:function(e,t,r,o){var i=this.props,a=i.type,c=i.layout,l=i.connectNulls,u=(i.ref,_objectWithoutProperties(i,m)),f=_objectSpread(_objectSpread(_objectSpread({},(0,h.J9)(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(r,")"):null,points:e},o),{},{type:a,layout:c,connectNulls:l});return n.createElement(s.I,_extends({},f,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var r=this,i=this.props,a=i.points,c=i.strokeDasharray,l=i.isAnimationActive,s=i.animationBegin,u=i.animationDuration,f=i.animationEasing,p=i.animationId,d=i.animateNewValues,h=i.width,b=i.height,g=this.state,m=g.prevPoints,v=g.totalLength;return n.createElement(o.Ay,{begin:s,duration:u,isActive:l,easing:f,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(n){var o,i=n.t;if(m){var l=m.length/a.length,s=a.map(function(e,t){var r=Math.floor(t*l);if(m[r]){var n=m[r],o=(0,y.Dj)(n.x,e.x),a=(0,y.Dj)(n.y,e.y);return _objectSpread(_objectSpread({},e),{},{x:o(i),y:a(i)})}if(d){var c=(0,y.Dj)(2*h,e.x),s=(0,y.Dj)(b/2,e.y);return _objectSpread(_objectSpread({},e),{},{x:c(i),y:s(i)})}return _objectSpread(_objectSpread({},e),{},{x:e.x,y:e.y})});return r.renderCurveStatically(s,e,t)}var u=(0,y.Dj)(0,v)(i);if(c){var f="".concat(c).split(/[,\s]+/gim).map(function(e){return parseFloat(e)});o=r.getStrokeDasharray(u,v,f)}else o=r.generateSimpleStrokeDasharray(v,u);return r.renderCurveStatically(a,e,t,{strokeDasharray:o})})}},{key:"renderCurve",value:function(e,t){var r=this.props,n=r.points,o=r.isAnimationActive,i=this.state,a=i.prevPoints,l=i.totalLength;return o&&n&&n.length&&(!a&&l>0||!(0,c.A)(a,n))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(n,e,t)}},{key:"render",value:function(){var e,t=this.props,r=t.hide,o=t.dot,i=t.points,c=t.className,s=t.xAxis,u=t.yAxis,d=t.top,y=t.left,b=t.width,g=t.height,m=t.isAnimationActive,v=t.id;if(r||!i||!i.length)return null;var _=this.state.isAnimationFinished,x=1===i.length,P=(0,l.A)("recharts-line",c),A=s&&s.allowDataOverflow,S=u&&u.allowDataOverflow,O=A||S,j=(0,a.A)(v)?this.id:v,w=null!=(e=(0,h.J9)(o,!1))?e:{r:3,strokeWidth:2},C=w.r,T=w.strokeWidth,k=((0,h.sT)(o)?o:{}).clipDot,E=void 0===k||k,M=2*(void 0===C?3:C)+(void 0===T?2:T);return n.createElement(f.W,{className:P},A||S?n.createElement("defs",null,n.createElement("clipPath",{id:"clipPath-".concat(j)},n.createElement("rect",{x:A?y:y-b/2,y:S?d:d-g/2,width:A?b:2*b,height:S?g:2*g})),!E&&n.createElement("clipPath",{id:"clipPath-dots-".concat(j)},n.createElement("rect",{x:y-M/2,y:d-M/2,width:b+M,height:g+M}))):null,!x&&this.renderCurve(O,j),this.renderErrorBar(O,j),(x||o)&&this.renderDots(O,E,j),(!m||_)&&p.Z.renderCallByParent(this.props,i))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"repeat",value:function(e,t){for(var r=e.length%2!=0?[].concat(_toConsumableArray(e),[0]):e,n=[],o=0;o<t;++o)n=[].concat(_toConsumableArray(n),_toConsumableArray(r));return n}},{key:"renderDotItem",value:function(e,t){var r;if(n.isValidElement(e))r=n.cloneElement(e,t);else if((0,i.A)(e))r=e(t);else{var o=t.key,a=_objectWithoutProperties(t,v),c=(0,l.A)("recharts-line-dot","boolean"!=typeof e?e.className:"");r=n.createElement(u.c,_extends({key:o},a,{className:c}))}return r}}])}(n.PureComponent);_defineProperty(_,"displayName","Line"),_defineProperty(_,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!b.m.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),_defineProperty(_,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,o=e.xAxisTicks,i=e.yAxisTicks,c=e.dataKey,l=e.bandSize,s=e.displayedData,u=e.offset,f=t.layout;return _objectSpread({points:s.map(function(e,t){var s=(0,g.kr)(e,c);return"horizontal"===f?{x:(0,g.nb)({axis:r,ticks:o,bandSize:l,entry:e,index:t}),y:(0,a.A)(s)?null:n.scale(s),value:s,payload:e}:{x:(0,a.A)(s)?null:r.scale(s),y:(0,g.nb)({axis:n,ticks:i,bandSize:l,entry:e,index:t}),value:s,payload:e}}),layout:f},u)})},0xd0c7b779:(e,t,r)=>{"use strict";r.d(t,{W:()=>l});var n=r(0xbad225b5),o=r(0x139443c4a),i=r(0xd771d54c),a=r(0x1ef2e0a8b),c=r(0x13907dc1a);function _typeof(e){return(_typeof="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 _classCallCheck(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _callSuper(e,t,r){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,r||[],_getPrototypeOf(e).constructor):t.apply(e,r))}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function XAxisImpl(e){var t=e.xAxisId,r=(0,i.yi)(),l=(0,i.rY)(),s=(0,i.AF)(t);return null==s?null:n.createElement(a.u,_extends({},s,{className:(0,o.A)("recharts-".concat(s.axisType," ").concat(s.axisType),s.className),viewBox:{x:0,y:0,width:r,height:l},ticksGenerator:function(e){return(0,c.Rh)(e,!0)}}))}var l=function(e){function XAxis(){return _classCallCheck(this,XAxis),_callSuper(this,XAxis,arguments)}return _inherits(XAxis,e),_createClass(XAxis,[{key:"render",value:function(){return n.createElement(XAxisImpl,this.props)}}])}(n.Component);_defineProperty(l,"displayName","XAxis"),_defineProperty(l,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0})},0x39a629fa:(e,t,r)=>{"use strict";r.d(t,{h:()=>l});var n=r(0xbad225b5),o=r(0x139443c4a),i=r(0xd771d54c),a=r(0x1ef2e0a8b),c=r(0x13907dc1a);function _typeof(e){return(_typeof="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 _classCallCheck(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _callSuper(e,t,r){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,r||[],_getPrototypeOf(e).constructor):t.apply(e,r))}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var YAxisImpl=function(e){var t=e.yAxisId,r=(0,i.yi)(),l=(0,i.rY)(),s=(0,i.Nk)(t);return null==s?null:n.createElement(a.u,_extends({},s,{className:(0,o.A)("recharts-".concat(s.axisType," ").concat(s.axisType),s.className),viewBox:{x:0,y:0,width:r,height:l},ticksGenerator:function(e){return(0,c.Rh)(e,!0)}}))},l=function(e){function YAxis(){return _classCallCheck(this,YAxis),_callSuper(this,YAxis,arguments)}return _inherits(YAxis,e),_createClass(YAxis,[{key:"render",value:function(){return n.createElement(YAxisImpl,this.props)}}])}(n.Component);_defineProperty(l,"displayName","YAxis"),_defineProperty(l,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1})},0x245678a19:(e,t,r)=>{"use strict";r.d(t,{f:()=>getTicks});var n=r(0x33644bb7),o=r(0x7bea1699),i=r(0x13e81779d),a=r(0x29ad96af),c=r(0x1877f2163);function getEveryNthWithCondition(e,t,r){if(t<1)return[];if(1===t&&void 0===r)return e;for(var n=[],o=0;o<e.length;o+=t)if(void 0!==r&&!0!==r(e[o]))return;else n.push(e[o]);return n}function getAngledTickWidth(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return(0,c.bx)(n,r)}function getTickBoundaries(e,t,r){var n="width"===r,o=e.x,i=e.y,a=e.width,c=e.height;return 1===t?{start:n?o:i,end:n?o+a:i+c}:{start:n?o+a:i+c,end:n?o:i}}function isVisible(e,t,r,n,o){if(e*t<e*n||e*t>e*o)return!1;var i=r();return e*(t-e*i/2-n)>=0&&e*(t+e*i/2-o)<=0}function getNumberIntervalTicks(e,t){return getEveryNthWithCondition(e,t+1)}function getEquidistantTicks(e,t,r,n,o){for(var i,a=(n||[]).slice(),c=t.start,l=t.end,s=0,u=1,f=c;u<=a.length;)if(i=function(){var t,i=null==n?void 0:n[s];if(void 0===i)return{v:getEveryNthWithCondition(n,u)};var a=s,getSize=function(){return void 0===t&&(t=r(i,a)),t},p=i.coordinate,d=0===s||isVisible(e,p,getSize,f,l);d||(s=0,f=c,u+=1),d&&(f=p+e*(getSize()/2+o),s+=u)}())return i.v;return[]}function _typeof(e){return(_typeof="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 ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function getTicksEnd(e,t,r,n,o){for(var i=(n||[]).slice(),a=i.length,c=t.start,l=t.end,_loop=function(t){var n,s=i[t],getSize=function(){return void 0===n&&(n=r(s,t)),n};if(t===a-1){var u=e*(s.coordinate+e*getSize()/2-l);i[t]=s=_objectSpread(_objectSpread({},s),{},{tickCoord:u>0?s.coordinate-u*e:s.coordinate})}else i[t]=s=_objectSpread(_objectSpread({},s),{},{tickCoord:s.coordinate});isVisible(e,s.tickCoord,getSize,c,l)&&(l=s.tickCoord-e*(getSize()/2+o),i[t]=_objectSpread(_objectSpread({},s),{},{isShow:!0}))},s=a-1;s>=0;s--)_loop(s);return i}function getTicksStart(e,t,r,n,o,i){var a=(n||[]).slice(),c=a.length,l=t.start,s=t.end;if(i){var u=n[c-1],f=r(u,c-1),p=e*(u.coordinate+e*f/2-s);a[c-1]=u=_objectSpread(_objectSpread({},u),{},{tickCoord:p>0?u.coordinate-p*e:u.coordinate}),isVisible(e,u.tickCoord,function(){return f},l,s)&&(s=u.tickCoord-e*(f/2+o),a[c-1]=_objectSpread(_objectSpread({},u),{},{isShow:!0}))}for(var d=i?c-1:c,_loop2=function(t){var n,i=a[t],getSize=function(){return void 0===n&&(n=r(i,t)),n};if(0===t){var c=e*(i.coordinate-e*getSize()/2-l);a[t]=i=_objectSpread(_objectSpread({},i),{},{tickCoord:c<0?i.coordinate-c*e:i.coordinate})}else a[t]=i=_objectSpread(_objectSpread({},i),{},{tickCoord:i.coordinate});isVisible(e,i.tickCoord,getSize,l,s)&&(l=i.tickCoord+e*(getSize()/2+o),a[t]=_objectSpread(_objectSpread({},i),{},{isShow:!0}))},y=0;y<d;y++)_loop2(y);return a}function getTicks(e,t,r){var c=e.tick,l=e.ticks,s=e.viewBox,u=e.minTickGap,f=e.orientation,p=e.interval,d=e.tickFormatter,y=e.unit,h=e.angle;if(!l||!l.length||!c)return[];if((0,o.Et)(p)||a.m.isSsr)return getNumberIntervalTicks(l,"number"==typeof p&&(0,o.Et)(p)?p:0);var b="top"===f||"bottom"===f?"width":"height",g=y&&"width"===b?(0,i.Pu)(y,{fontSize:t,letterSpacing:r}):{width:0,height:0},getTickSize=function(e,o){var a=(0,n.A)(d)?d(e.value,o):e.value;return"width"===b?getAngledTickWidth((0,i.Pu)(a,{fontSize:t,letterSpacing:r}),g,h):(0,i.Pu)(a,{fontSize:t,letterSpacing:r})[b]},m=l.length>=2?(0,o.sA)(l[1].coordinate-l[0].coordinate):1,v=getTickBoundaries(s,m,b);return"equidistantPreserveStart"===p?getEquidistantTicks(m,v,getTickSize,l,u):("preserveStart"===p||"preserveStartEnd"===p?getTicksStart(m,v,getTickSize,l,u,"preserveStartEnd"===p):getTicksEnd(m,v,getTickSize,l,u)).filter(function(e){return e.isShow})}},0x21e584f75:(e,t,r)=>{"use strict";r.d(t,{Q:()=>l});var n=r(0x11cf616ef),o=r(0x148798df5),i=r(0xd0c7b779),a=r(0x39a629fa),c=r(0x1877f2163),l=(0,n.gu)({chartName:"AreaChart",GraphicalChild:o.G,axisComponents:[{axisType:"xAxis",AxisComp:i.W},{axisType:"yAxis",AxisComp:a.h}],formatAxisMap:c.pr})},0x158ce999:(e,t,r)=>{"use strict";r.d(t,{E:()=>l});var n=r(0x11cf616ef),o=r(0x1dc6c0c23),i=r(0xd0c7b779),a=r(0x39a629fa),c=r(0x1877f2163),l=(0,n.gu)({chartName:"BarChart",GraphicalChild:o.y,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:i.W},{axisType:"yAxis",AxisComp:a.h}],formatAxisMap:c.pr})},0x239f58680:(e,t,r)=>{"use strict";r.d(t,{b:()=>l});var n=r(0x11cf616ef),o=r(0x7d3cecfa),i=r(0xd0c7b779),a=r(0x39a629fa),c=r(0x1877f2163),l=(0,n.gu)({chartName:"LineChart",GraphicalChild:o.N,axisComponents:[{axisType:"xAxis",AxisComp:i.W},{axisType:"yAxis",AxisComp:a.h}],formatAxisMap:c.pr})},0x223e8d573:(e,t,r)=>{"use strict";r.d(t,{r:()=>A});var n=r(0x11cf616ef),o=r(0xbad225b5),i=r(0x33644bb7),a=r(0x139443c4a),c=r(0x10a0ba9c),l=r(0xc9f8d4dc),s=r(0xd0f20cec),u=["points","className","baseLinePoints","connectNulls"];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,t)}}function _iterableToArray(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var isValidatePoint=function(e){return e&&e.x===+e.x&&e.y===+e.y},getParsedPoints=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach(function(e){isValidatePoint(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])}),isValidatePoint(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t},getSinglePolygonPath=function(e,t){var r=getParsedPoints(e);t&&(r=[r.reduce(function(e,t){return[].concat(_toConsumableArray(e),_toConsumableArray(t))},[])]);var n=r.map(function(e){return e.reduce(function(e,t,r){return"".concat(e).concat(0===r?"M":"L").concat(t.x,",").concat(t.y)},"")}).join("");return 1===r.length?"".concat(n,"Z"):n},getRanglePath=function(e,t,r){var n=getSinglePolygonPath(e,r);return"".concat("Z"===n.slice(-1)?n.slice(0,-1):n,"L").concat(getSinglePolygonPath(t.reverse(),r).slice(1))},Polygon=function(e){var t=e.points,r=e.className,n=e.baseLinePoints,i=e.connectNulls,c=_objectWithoutProperties(e,u);if(!t||!t.length)return null;var l=(0,a.A)("recharts-polygon",r);if(n&&n.length){var f=c.stroke&&"none"!==c.stroke,p=getRanglePath(t,n,i);return o.createElement("g",{className:l},o.createElement("path",_extends({},(0,s.J9)(c,!0),{fill:"Z"===p.slice(-1)?c.fill:"none",stroke:"none",d:p})),f?o.createElement("path",_extends({},(0,s.J9)(c,!0),{fill:"none",d:getSinglePolygonPath(t,i)})):null,f?o.createElement("path",_extends({},(0,s.J9)(c,!0),{fill:"none",d:getSinglePolygonPath(n,i)})):null)}var d=getSinglePolygonPath(t,i);return o.createElement("path",_extends({},(0,s.J9)(c,!0),{fill:"Z"===d.slice(-1)?c.fill:"none",className:l,d:d}))},f=r(0x187d2c3a3),p=r(0xee79d415),d=r(0x148b36991);function _typeof(e){return(_typeof="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 PolarAngleAxis_extends(){return(PolarAngleAxis_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _callSuper(e,t,r){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,r||[],_getPrototypeOf(e).constructor):t.apply(e,r))}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var y=Math.PI/180,h=function(e){function PolarAngleAxis(){return _classCallCheck(this,PolarAngleAxis),_callSuper(this,PolarAngleAxis,arguments)}return _inherits(PolarAngleAxis,e),_createClass(PolarAngleAxis,[{key:"getTickLineCoord",value:function(e){var t=this.props,r=t.cx,n=t.cy,o=t.radius,i=t.orientation,a=t.tickSize,c=(0,d.IZ)(r,n,o,e.coordinate),l=(0,d.IZ)(r,n,o+("inner"===i?-1:1)*(a||8),e.coordinate);return{x1:c.x,y1:c.y,x2:l.x,y2:l.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,r=Math.cos(-e.coordinate*y);return r>1e-5?"outer"===t?"start":"end":r<-1e-5?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,r=e.cy,n=e.radius,i=e.axisLine,a=e.axisLineType,c=_objectSpread(_objectSpread({},(0,s.J9)(this.props,!1)),{},{fill:"none"},(0,s.J9)(i,!1));if("circle"===a)return o.createElement(l.c,PolarAngleAxis_extends({className:"recharts-polar-angle-axis-line"},c,{cx:t,cy:r,r:n}));var u=this.props.ticks.map(function(e){return(0,d.IZ)(t,r,n,e.coordinate)});return o.createElement(Polygon,PolarAngleAxis_extends({className:"recharts-polar-angle-axis-line"},c,{points:u}))}},{key:"renderTicks",value:function(){var e=this,t=this.props,r=t.ticks,n=t.tick,i=t.tickLine,l=t.tickFormatter,u=t.stroke,f=(0,s.J9)(this.props,!1),y=(0,s.J9)(n,!1),h=_objectSpread(_objectSpread({},f),{},{fill:"none"},(0,s.J9)(i,!1)),b=r.map(function(t,r){var s=e.getTickLineCoord(t),b=_objectSpread(_objectSpread(_objectSpread({textAnchor:e.getTickTextAnchor(t)},f),{},{stroke:"none",fill:u},y),{},{index:r,payload:t,x:s.x2,y:s.y2});return o.createElement(c.W,PolarAngleAxis_extends({className:(0,a.A)("recharts-polar-angle-axis-tick",(0,d.Zk)(n)),key:"tick-".concat(t.coordinate)},(0,p.XC)(e.props,t,r)),i&&o.createElement("line",PolarAngleAxis_extends({className:"recharts-polar-angle-axis-tick-line"},h,s)),n&&PolarAngleAxis.renderTickItem(n,b,l?l(t.value,r):t.value))});return o.createElement(c.W,{className:"recharts-polar-angle-axis-ticks"},b)}},{key:"render",value:function(){var e=this.props,t=e.ticks,r=e.radius,n=e.axisLine;return!(r<=0)&&t&&t.length?o.createElement(c.W,{className:(0,a.A)("recharts-polar-angle-axis",this.props.className)},n&&this.renderAxisLine(),this.renderTicks()):null}}],[{key:"renderTickItem",value:function(e,t,r){return o.isValidElement(e)?o.cloneElement(e,t):(0,i.A)(e)?e(t):o.createElement(f.E,PolarAngleAxis_extends({},t,{className:"recharts-polar-angle-axis-tick-value"}),r)}}])}(o.PureComponent);_defineProperty(h,"displayName","PolarAngleAxis"),_defineProperty(h,"axisType","angleAxis"),_defineProperty(h,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var b=r(0x7a13daf2),g=r(0xfd43ac2c),m=r(0xd7f4847),v=["cx","cy","angle","ticks","axisLine"],_=["ticks","tick","angle","tickFormatter","stroke"];function PolarRadiusAxis_typeof(e){return(PolarRadiusAxis_typeof="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 PolarRadiusAxis_extends(){return(PolarRadiusAxis_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function PolarRadiusAxis_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function PolarRadiusAxis_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?PolarRadiusAxis_ownKeys(Object(r),!0).forEach(function(t){PolarRadiusAxis_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PolarRadiusAxis_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function PolarRadiusAxis_objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=PolarRadiusAxis_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function PolarRadiusAxis_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function PolarRadiusAxis_classCallCheck(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function PolarRadiusAxis_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,PolarRadiusAxis_toPropertyKey(n.key),n)}}function PolarRadiusAxis_createClass(e,t,r){return t&&PolarRadiusAxis_defineProperties(e.prototype,t),r&&PolarRadiusAxis_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function PolarRadiusAxis_callSuper(e,t,r){return t=PolarRadiusAxis_getPrototypeOf(t),PolarRadiusAxis_possibleConstructorReturn(e,PolarRadiusAxis_isNativeReflectConstruct()?Reflect.construct(t,r||[],PolarRadiusAxis_getPrototypeOf(e).constructor):t.apply(e,r))}function PolarRadiusAxis_possibleConstructorReturn(e,t){if(t&&("object"===PolarRadiusAxis_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return PolarRadiusAxis_assertThisInitialized(e)}function PolarRadiusAxis_assertThisInitialized(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PolarRadiusAxis_isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(PolarRadiusAxis_isNativeReflectConstruct=function(){return!!e})()}function PolarRadiusAxis_getPrototypeOf(e){return(PolarRadiusAxis_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function PolarRadiusAxis_inherits(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&PolarRadiusAxis_setPrototypeOf(e,t)}function PolarRadiusAxis_setPrototypeOf(e,t){return(PolarRadiusAxis_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function PolarRadiusAxis_defineProperty(e,t,r){return(t=PolarRadiusAxis_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PolarRadiusAxis_toPropertyKey(e){var t=PolarRadiusAxis_toPrimitive(e,"string");return"symbol"==PolarRadiusAxis_typeof(t)?t:t+""}function PolarRadiusAxis_toPrimitive(e,t){if("object"!=PolarRadiusAxis_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=PolarRadiusAxis_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var x=function(e){function PolarRadiusAxis(){return PolarRadiusAxis_classCallCheck(this,PolarRadiusAxis),PolarRadiusAxis_callSuper(this,PolarRadiusAxis,arguments)}return PolarRadiusAxis_inherits(PolarRadiusAxis,e),PolarRadiusAxis_createClass(PolarRadiusAxis,[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,r=this.props,n=r.angle,o=r.cx,i=r.cy;return(0,d.IZ)(o,i,t,n)}},{key:"getTickTextAnchor",value:function(){var e;switch(this.props.orientation){case"left":e="end";break;case"right":e="start";break;default:e="middle"}return e}},{key:"getViewBox",value:function(){var e=this.props,t=e.cx,r=e.cy,n=e.angle,o=e.ticks,i=(0,b.A)(o,function(e){return e.coordinate||0});return{cx:t,cy:r,startAngle:n,endAngle:n,innerRadius:(0,g.A)(o,function(e){return e.coordinate||0}).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,r=e.cy,n=e.angle,i=e.ticks,a=e.axisLine,c=PolarRadiusAxis_objectWithoutProperties(e,v),l=i.reduce(function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]},[1/0,-1/0]),u=(0,d.IZ)(t,r,l[0],n),f=(0,d.IZ)(t,r,l[1],n),p=PolarRadiusAxis_objectSpread(PolarRadiusAxis_objectSpread(PolarRadiusAxis_objectSpread({},(0,s.J9)(c,!1)),{},{fill:"none"},(0,s.J9)(a,!1)),{},{x1:u.x,y1:u.y,x2:f.x,y2:f.y});return o.createElement("line",PolarRadiusAxis_extends({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var e=this,t=this.props,r=t.ticks,n=t.tick,i=t.angle,l=t.tickFormatter,u=t.stroke,f=PolarRadiusAxis_objectWithoutProperties(t,_),y=this.getTickTextAnchor(),h=(0,s.J9)(f,!1),b=(0,s.J9)(n,!1),g=r.map(function(t,r){var s=e.getTickValueCoord(t),f=PolarRadiusAxis_objectSpread(PolarRadiusAxis_objectSpread(PolarRadiusAxis_objectSpread(PolarRadiusAxis_objectSpread({textAnchor:y,transform:"rotate(".concat(90-i,", ").concat(s.x,", ").concat(s.y,")")},h),{},{stroke:"none",fill:u},b),{},{index:r},s),{},{payload:t});return o.createElement(c.W,PolarRadiusAxis_extends({className:(0,a.A)("recharts-polar-radius-axis-tick",(0,d.Zk)(n)),key:"tick-".concat(t.coordinate)},(0,p.XC)(e.props,t,r)),PolarRadiusAxis.renderTickItem(n,f,l?l(t.value,r):t.value))});return o.createElement(c.W,{className:"recharts-polar-radius-axis-ticks"},g)}},{key:"render",value:function(){var e=this.props,t=e.ticks,r=e.axisLine,n=e.tick;return t&&t.length?o.createElement(c.W,{className:(0,a.A)("recharts-polar-radius-axis",this.props.className)},r&&this.renderAxisLine(),n&&this.renderTicks(),m.J.renderCallByParent(this.props,this.getViewBox())):null}}],[{key:"renderTickItem",value:function(e,t,r){return o.isValidElement(e)?o.cloneElement(e,t):(0,i.A)(e)?e(t):o.createElement(f.E,PolarRadiusAxis_extends({},t,{className:"recharts-polar-radius-axis-tick-value"}),r)}}])}(o.PureComponent);PolarRadiusAxis_defineProperty(x,"displayName","PolarRadiusAxis"),PolarRadiusAxis_defineProperty(x,"axisType","radiusAxis"),PolarRadiusAxis_defineProperty(x,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var P=r(0x10cca74a0),A=(0,n.gu)({chartName:"PieChart",GraphicalChild:P.F,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:h},{axisType:"radiusAxis",AxisComp:x}],formatAxisMap:d.pr,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}})},0x11cf616ef:(e,t,r)=>{"use strict";r.d(t,{gu:()=>generateCategoricalChart});var n=r(0xbad225b5),o=r(0x202470d56),i=r(0x33644bb7),a=r(0xb5e49867),c=r(0x77727995),l=r(0x17294c72a),s=r(0x162afc153),u=r(0x139443c4a),f=r(0x1a54ab070),p=r(0x337531ea),d=r(0x10a0ba9c),y=r(0x797790b2),h=r(0xa108b107),b=r(0xc9f8d4dc),g=r(0x251502696),m=r(0xd0f20cec),v=r(0xa47c5f0b),_=r(0x187d2c3a3),x=r(0x13907dc1a),P=r(0x7bea1699);function _typeof(e){return(_typeof="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 ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var A=["Webkit","Moz","O","ms"],generatePrefixStyle=function(e,t){if(!e)return null;var r=e.replace(/(\w)/,function(e){return e.toUpperCase()}),n=A.reduce(function(e,n){return _objectSpread(_objectSpread({},e),{},_defineProperty({},n+r,t))},{});return n[e]=t,n};function Brush_typeof(e){return(Brush_typeof="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 _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Brush_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Brush_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Brush_ownKeys(Object(r),!0).forEach(function(t){Brush_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Brush_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Brush_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _callSuper(e,t,r){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,r||[],_getPrototypeOf(e).constructor):t.apply(e,r))}function _possibleConstructorReturn(e,t){if(t&&("object"===Brush_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Brush_defineProperty(e,t,r){return(t=Brush_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Brush_toPropertyKey(e){var t=Brush_toPrimitive(e,"string");return"symbol"==Brush_typeof(t)?t:t+""}function Brush_toPrimitive(e,t){if("object"!=Brush_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Brush_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var createScale=function(e){var t=e.data,r=e.startIndex,n=e.endIndex,o=e.x,i=e.width,c=e.travellerWidth;if(!t||!t.length)return{};var l=t.length,s=(0,v.z)().domain((0,a.A)(0,l)).range([o,o+i-c]),u=s.domain().map(function(e){return s(e)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:s(r),endX:s(n),scale:s,scaleValues:u}},isTouch=function(e){return e.changedTouches&&!!e.changedTouches.length},S=function(e){function Brush(e){var t;return _classCallCheck(this,Brush),Brush_defineProperty(t=_callSuper(this,Brush,[e]),"handleDrag",function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)}),Brush_defineProperty(t,"handleTouchMove",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])}),Brush_defineProperty(t,"handleDragEnd",function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var e=t.props,r=e.endIndex,n=e.onDragEnd,o=e.startIndex;null==n||n({endIndex:r,startIndex:o})}),t.detachDragEndListener()}),Brush_defineProperty(t,"handleLeaveWrapper",function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))}),Brush_defineProperty(t,"handleEnterSlideOrTraveller",function(){t.setState({isTextActive:!0})}),Brush_defineProperty(t,"handleLeaveSlideOrTraveller",function(){t.setState({isTextActive:!1})}),Brush_defineProperty(t,"handleSlideDragStart",function(e){var r=isTouch(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:r.pageX}),t.attachDragEndListener()}),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(t,"startX"),endX:t.handleTravellerDragStart.bind(t,"endX")},t.state={},t}return _inherits(Brush,e),_createClass(Brush,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,r=e.endX,n=this.state.scaleValues,o=this.props,i=o.gap,a=o.data.length-1,c=Math.min(t,r),l=Math.max(t,r),s=Brush.getIndexInRange(n,c),u=Brush.getIndexInRange(n,l);return{startIndex:s-s%i,endIndex:u===a?a:u-u%i}}},{key:"getTextOfTick",value:function(e){var t=this.props,r=t.data,n=t.tickFormatter,o=t.dataKey,a=(0,x.kr)(r[e],o,e);return(0,i.A)(n)?n(a,e):a}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,r=t.slideMoveStartX,n=t.startX,o=t.endX,i=this.props,a=i.x,c=i.width,l=i.travellerWidth,s=i.startIndex,u=i.endIndex,f=i.onChange,p=e.pageX-r;p>0?p=Math.min(p,a+c-l-o,a+c-l-n):p<0&&(p=Math.max(p,a-n,a-o));var d=this.getIndex({startX:n+p,endX:o+p});(d.startIndex!==s||d.endIndex!==u)&&f&&f(d),this.setState({startX:n+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var r=isTouch(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t=this.state,r=t.brushMoveStartX,n=t.movingTravellerId,o=t.endX,i=t.startX,a=this.state[n],c=this.props,l=c.x,s=c.width,u=c.travellerWidth,f=c.onChange,p=c.gap,d=c.data,y={startX:this.state.startX,endX:this.state.endX},h=e.pageX-r;h>0?h=Math.min(h,l+s-u-a):h<0&&(h=Math.max(h,l-a)),y[n]=a+h;var b=this.getIndex(y),g=b.startIndex,m=b.endIndex,isFullGap=function(){var e=d.length-1;return"startX"===n&&(o>i?g%p==0:m%p==0)||!!(o<i)&&m===e||"endX"===n&&(o>i?m%p==0:g%p==0)||!!(o>i)&&m===e};this.setState(Brush_defineProperty(Brush_defineProperty({},n,a+h),"brushMoveStartX",e.pageX),function(){f&&isFullGap()&&f(b)})}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var r=this,n=this.state,o=n.scaleValues,i=n.startX,a=n.endX,c=this.state[t],l=o.indexOf(c);if(-1!==l){var s=l+e;if(-1!==s&&!(s>=o.length)){var u=o[s];"startX"===t&&u>=a||"endX"===t&&u<=i||this.setState(Brush_defineProperty({},t,u),function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))})}}}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,r=e.y,o=e.width,i=e.height,a=e.fill,c=e.stroke;return n.createElement("rect",{stroke:c,fill:a,x:t,y:r,width:o,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,t=e.x,r=e.y,o=e.width,i=e.height,a=e.data,c=e.children,l=e.padding,s=n.Children.only(c);return s?n.cloneElement(s,{x:t,y:r,width:o,height:i,margin:l,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,t){var r,o,i=this,a=this.props,c=a.y,l=a.travellerWidth,s=a.height,u=a.traveller,f=a.ariaLabel,p=a.data,y=a.startIndex,h=a.endIndex,b=Math.max(e,this.props.x),g=Brush_objectSpread(Brush_objectSpread({},(0,m.J9)(this.props,!1)),{},{x:b,y:c,width:l,height:s}),v=f||"Min value: ".concat(null==(r=p[y])?void 0:r.name,", Max value: ").concat(null==(o=p[h])?void 0:o.name);return n.createElement(d.W,{tabIndex:0,role:"slider","aria-label":v,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),i.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,t))},onFocus:function(){i.setState({isTravellerFocused:!0})},onBlur:function(){i.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},Brush.renderTraveller(u,g))}},{key:"renderSlide",value:function(e,t){var r=this.props,o=r.y,i=r.height,a=r.stroke,c=r.travellerWidth,l=Math.min(e,t)+c,s=Math.max(Math.abs(t-e)-c,0);return n.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:l,y:o,width:s,height:i})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,r=e.endIndex,o=e.y,i=e.height,a=e.travellerWidth,c=e.stroke,l=this.state,s=l.startX,u=l.endX,f={pointerEvents:"none",fill:c};return n.createElement(d.W,{className:"recharts-brush-texts"},n.createElement(_.E,_extends({textAnchor:"end",verticalAnchor:"middle",x:Math.min(s,u)-5,y:o+i/2},f),this.getTextOfTick(t)),n.createElement(_.E,_extends({textAnchor:"start",verticalAnchor:"middle",x:Math.max(s,u)+a+5,y:o+i/2},f),this.getTextOfTick(r)))}},{key:"render",value:function(){var e=this.props,t=e.data,r=e.className,o=e.children,i=e.x,a=e.y,c=e.width,l=e.height,s=e.alwaysShowText,f=this.state,p=f.startX,y=f.endX,h=f.isTextActive,b=f.isSlideMoving,g=f.isTravellerMoving,m=f.isTravellerFocused;if(!t||!t.length||!(0,P.Et)(i)||!(0,P.Et)(a)||!(0,P.Et)(c)||!(0,P.Et)(l)||c<=0||l<=0)return null;var v=(0,u.A)("recharts-brush",r),_=1===n.Children.count(o),x=generatePrefixStyle("userSelect","none");return n.createElement(d.W,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:x},this.renderBackground(),_&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(h||b||g||m||s)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(e){var t=e.x,r=e.y,o=e.width,i=e.height,a=e.stroke,c=Math.floor(r+i/2)-1;return n.createElement(n.Fragment,null,n.createElement("rect",{x:t,y:r,width:o,height:i,fill:a,stroke:"none"}),n.createElement("line",{x1:t+1,y1:c,x2:t+o-1,y2:c,fill:"none",stroke:"#fff"}),n.createElement("line",{x1:t+1,y1:c+2,x2:t+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return n.isValidElement(e)?n.cloneElement(e,t):(0,i.A)(e)?e(t):Brush.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var r=e.data,n=e.width,o=e.x,i=e.travellerWidth,a=e.updateId,c=e.startIndex,l=e.endIndex;if(r!==t.prevData||a!==t.prevUpdateId)return Brush_objectSpread({prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n},r&&r.length?createScale({data:r,width:n,x:o,travellerWidth:i,startIndex:c,endIndex:l}):{scale:null,scaleValues:null});if(t.scale&&(n!==t.prevWidth||o!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([o,o+n-i]);var s=t.scale.domain().map(function(e){return t.scale(e)});return{prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:s}}return null}},{key:"getIndexInRange",value:function(e,t){for(var r=e.length,n=0,o=r-1;o-n>1;){var i=Math.floor((n+o)/2);e[i]>t?o=i:n=i}return t>=e[o]?o:n}}])}(n.PureComponent);Brush_defineProperty(S,"displayName","Brush"),Brush_defineProperty(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});var O=r(0x13e81779d),j=r(0xd2fa006d),w=r(0xd7f4847),ifOverflowMatches=function(e,t){var r=e.alwaysShow,n=e.ifOverflow;return r&&(n="extendDomain"),n===t},C=r(0x1877f2163),T=r(0x1c8d10397);function ReferenceDot_extends(){return(ReferenceDot_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ReferenceDot_typeof(e){return(ReferenceDot_typeof="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 ReferenceDot_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ReferenceDot_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ReferenceDot_ownKeys(Object(r),!0).forEach(function(t){ReferenceDot_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ReferenceDot_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ReferenceDot_classCallCheck(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function ReferenceDot_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ReferenceDot_toPropertyKey(n.key),n)}}function ReferenceDot_createClass(e,t,r){return t&&ReferenceDot_defineProperties(e.prototype,t),r&&ReferenceDot_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ReferenceDot_callSuper(e,t,r){return t=ReferenceDot_getPrototypeOf(t),ReferenceDot_possibleConstructorReturn(e,ReferenceDot_isNativeReflectConstruct()?Reflect.construct(t,r||[],ReferenceDot_getPrototypeOf(e).constructor):t.apply(e,r))}function ReferenceDot_possibleConstructorReturn(e,t){if(t&&("object"===ReferenceDot_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return ReferenceDot_assertThisInitialized(e)}function ReferenceDot_assertThisInitialized(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ReferenceDot_isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ReferenceDot_isNativeReflectConstruct=function(){return!!e})()}function ReferenceDot_getPrototypeOf(e){return(ReferenceDot_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ReferenceDot_inherits(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ReferenceDot_setPrototypeOf(e,t)}function ReferenceDot_setPrototypeOf(e,t){return(ReferenceDot_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ReferenceDot_defineProperty(e,t,r){return(t=ReferenceDot_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ReferenceDot_toPropertyKey(e){var t=ReferenceDot_toPrimitive(e,"string");return"symbol"==ReferenceDot_typeof(t)?t:t+""}function ReferenceDot_toPrimitive(e,t){if("object"!=ReferenceDot_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ReferenceDot_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var getCoordinate=function(e){var t=e.x,r=e.y,n=e.xAxis,o=e.yAxis,i=(0,C.P2)({x:n.scale,y:o.scale}),a=i.apply({x:t,y:r},{bandAware:!0});return ifOverflowMatches(e,"discard")&&!i.isInRange(a)?null:a},k=function(e){function ReferenceDot(){return ReferenceDot_classCallCheck(this,ReferenceDot),ReferenceDot_callSuper(this,ReferenceDot,arguments)}return ReferenceDot_inherits(ReferenceDot,e),ReferenceDot_createClass(ReferenceDot,[{key:"render",value:function(){var e=this.props,t=e.x,r=e.y,o=e.r,i=e.alwaysShow,a=e.clipPathId,c=(0,P.vh)(t),l=(0,P.vh)(r);if((0,T.R)(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!l)return null;var s=getCoordinate(this.props);if(!s)return null;var f=s.x,p=s.y,y=this.props,h=y.shape,b=y.className,g=ReferenceDot_objectSpread(ReferenceDot_objectSpread({clipPath:ifOverflowMatches(this.props,"hidden")?"url(#".concat(a,")"):void 0},(0,m.J9)(this.props,!0)),{},{cx:f,cy:p});return n.createElement(d.W,{className:(0,u.A)("recharts-reference-dot",b)},ReferenceDot.renderDot(h,g),w.J.renderCallByParent(this.props,{x:f-o,y:p-o,width:2*o,height:2*o}))}}])}(n.Component);ReferenceDot_defineProperty(k,"displayName","ReferenceDot"),ReferenceDot_defineProperty(k,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),ReferenceDot_defineProperty(k,"renderDot",function(e,t){return n.isValidElement(e)?n.cloneElement(e,t):(0,i.A)(e)?e(t):n.createElement(b.c,ReferenceDot_extends({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))});var E=r(0x658a411c),M=r(0xd771d54c);function ReferenceLine_typeof(e){return(ReferenceLine_typeof="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 ReferenceLine_classCallCheck(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function ReferenceLine_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ReferenceLine_toPropertyKey(n.key),n)}}function ReferenceLine_createClass(e,t,r){return t&&ReferenceLine_defineProperties(e.prototype,t),r&&ReferenceLine_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ReferenceLine_callSuper(e,t,r){return t=ReferenceLine_getPrototypeOf(t),ReferenceLine_possibleConstructorReturn(e,ReferenceLine_isNativeReflectConstruct()?Reflect.construct(t,r||[],ReferenceLine_getPrototypeOf(e).constructor):t.apply(e,r))}function ReferenceLine_possibleConstructorReturn(e,t){if(t&&("object"===ReferenceLine_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return ReferenceLine_assertThisInitialized(e)}function ReferenceLine_assertThisInitialized(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ReferenceLine_isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ReferenceLine_isNativeReflectConstruct=function(){return!!e})()}function ReferenceLine_getPrototypeOf(e){return(ReferenceLine_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ReferenceLine_inherits(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ReferenceLine_setPrototypeOf(e,t)}function ReferenceLine_setPrototypeOf(e,t){return(ReferenceLine_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ReferenceLine_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ReferenceLine_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ReferenceLine_ownKeys(Object(r),!0).forEach(function(t){ReferenceLine_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ReferenceLine_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ReferenceLine_defineProperty(e,t,r){return(t=ReferenceLine_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ReferenceLine_toPropertyKey(e){var t=ReferenceLine_toPrimitive(e,"string");return"symbol"==ReferenceLine_typeof(t)?t:t+""}function ReferenceLine_toPrimitive(e,t){if("object"!=ReferenceLine_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ReferenceLine_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,t)}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _iterableToArrayLimit(e,t){var r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function ReferenceLine_extends(){return(ReferenceLine_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var renderLine=function(e,t){return n.isValidElement(e)?n.cloneElement(e,t):(0,i.A)(e)?e(t):n.createElement("line",ReferenceLine_extends({},t,{className:"recharts-reference-line-line"}))},getEndPoints=function(e,t,r,n,o,i,a,c,l){var s=o.x,u=o.y,f=o.width,p=o.height;if(r){var d=l.y,y=e.y.apply(d,{position:i});if(ifOverflowMatches(l,"discard")&&!e.y.isInRange(y))return null;var h=[{x:s+f,y:y},{x:s,y:y}];return"left"===c?h.reverse():h}if(t){var b=l.x,g=e.x.apply(b,{position:i});if(ifOverflowMatches(l,"discard")&&!e.x.isInRange(g))return null;var m=[{x:g,y:u+p},{x:g,y:u}];return"top"===a?m.reverse():m}if(n){var v=l.segment.map(function(t){return e.apply(t,{position:i})});return ifOverflowMatches(l,"discard")&&(0,E.A)(v,function(t){return!e.isInRange(t)})?null:v}return null};function ReferenceLineImpl(e){var t=e.x,r=e.y,o=e.segment,i=e.xAxisId,a=e.yAxisId,c=e.shape,l=e.className,s=e.alwaysShow,f=(0,M.Yp)(),p=(0,M.AF)(i),y=(0,M.Nk)(a),h=(0,M.sk)();if(!f||!h)return null;(0,T.R)(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var b=getEndPoints((0,C.P2)({x:p.scale,y:y.scale}),(0,P.vh)(t),(0,P.vh)(r),o&&2===o.length,h,e.position,p.orientation,y.orientation,e);if(!b)return null;var g=_slicedToArray(b,2),v=g[0],_=v.x,x=v.y,A=g[1],S=A.x,O=A.y,j=ReferenceLine_objectSpread(ReferenceLine_objectSpread({clipPath:ifOverflowMatches(e,"hidden")?"url(#".concat(f,")"):void 0},(0,m.J9)(e,!0)),{},{x1:_,y1:x,x2:S,y2:O});return n.createElement(d.W,{className:(0,u.A)("recharts-reference-line",l)},renderLine(c,j),w.J.renderCallByParent(e,(0,C.vh)({x1:_,y1:x,x2:S,y2:O})))}var I=function(e){function ReferenceLine(){return ReferenceLine_classCallCheck(this,ReferenceLine),ReferenceLine_callSuper(this,ReferenceLine,arguments)}return ReferenceLine_inherits(ReferenceLine,e),ReferenceLine_createClass(ReferenceLine,[{key:"render",value:function(){return n.createElement(ReferenceLineImpl,this.props)}}])}(n.Component);function ReferenceArea_extends(){return(ReferenceArea_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ReferenceArea_typeof(e){return(ReferenceArea_typeof="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 ReferenceArea_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ReferenceArea_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ReferenceArea_ownKeys(Object(r),!0).forEach(function(t){ReferenceArea_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ReferenceArea_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ReferenceArea_classCallCheck(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function ReferenceArea_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ReferenceArea_toPropertyKey(n.key),n)}}function ReferenceArea_createClass(e,t,r){return t&&ReferenceArea_defineProperties(e.prototype,t),r&&ReferenceArea_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ReferenceArea_callSuper(e,t,r){return t=ReferenceArea_getPrototypeOf(t),ReferenceArea_possibleConstructorReturn(e,ReferenceArea_isNativeReflectConstruct()?Reflect.construct(t,r||[],ReferenceArea_getPrototypeOf(e).constructor):t.apply(e,r))}function ReferenceArea_possibleConstructorReturn(e,t){if(t&&("object"===ReferenceArea_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return ReferenceArea_assertThisInitialized(e)}function ReferenceArea_assertThisInitialized(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ReferenceArea_isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ReferenceArea_isNativeReflectConstruct=function(){return!!e})()}function ReferenceArea_getPrototypeOf(e){return(ReferenceArea_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ReferenceArea_inherits(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ReferenceArea_setPrototypeOf(e,t)}function ReferenceArea_setPrototypeOf(e,t){return(ReferenceArea_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ReferenceArea_defineProperty(e,t,r){return(t=ReferenceArea_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ReferenceArea_toPropertyKey(e){var t=ReferenceArea_toPrimitive(e,"string");return"symbol"==ReferenceArea_typeof(t)?t:t+""}function ReferenceArea_toPrimitive(e,t){if("object"!=ReferenceArea_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ReferenceArea_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}ReferenceLine_defineProperty(I,"displayName","ReferenceLine"),ReferenceLine_defineProperty(I,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var getRect=function(e,t,r,n,o){var i=o.x1,a=o.x2,c=o.y1,l=o.y2,s=o.xAxis,u=o.yAxis;if(!s||!u)return null;var f=(0,C.P2)({x:s.scale,y:u.scale}),p={x:e?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(c,{position:"start"}):f.y.rangeMin},d={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(l,{position:"end"}):f.y.rangeMax};return!ifOverflowMatches(o,"discard")||f.isInRange(p)&&f.isInRange(d)?(0,C.sl)(p,d):null},D=function(e){function ReferenceArea(){return ReferenceArea_classCallCheck(this,ReferenceArea),ReferenceArea_callSuper(this,ReferenceArea,arguments)}return ReferenceArea_inherits(ReferenceArea,e),ReferenceArea_createClass(ReferenceArea,[{key:"render",value:function(){var e=this.props,t=e.x1,r=e.x2,o=e.y1,i=e.y2,a=e.className,c=e.alwaysShow,l=e.clipPathId;(0,T.R)(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var s=(0,P.vh)(t),f=(0,P.vh)(r),p=(0,P.vh)(o),y=(0,P.vh)(i),h=this.props.shape;if(!s&&!f&&!p&&!y&&!h)return null;var b=getRect(s,f,p,y,this.props);if(!b&&!h)return null;var g=ifOverflowMatches(this.props,"hidden")?"url(#".concat(l,")"):void 0;return n.createElement(d.W,{className:(0,u.A)("recharts-reference-area",a)},ReferenceArea.renderRect(h,ReferenceArea_objectSpread(ReferenceArea_objectSpread({clipPath:g},(0,m.J9)(this.props,!0)),b)),w.J.renderCallByParent(this.props,b))}}])}(n.Component);function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||DetectReferenceElementsDomain_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DetectReferenceElementsDomain_unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return DetectReferenceElementsDomain_arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return DetectReferenceElementsDomain_arrayLikeToArray(e,t)}}function _iterableToArray(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return DetectReferenceElementsDomain_arrayLikeToArray(e)}function DetectReferenceElementsDomain_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}ReferenceArea_defineProperty(D,"displayName","ReferenceArea"),ReferenceArea_defineProperty(D,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),ReferenceArea_defineProperty(D,"renderRect",function(e,t){return n.isValidElement(e)?n.cloneElement(e,t):(0,i.A)(e)?e(t):n.createElement(g.M,ReferenceArea_extends({},t,{className:"recharts-reference-area-rect"}))});var detectReferenceElementsDomain=function(e,t,r,n,o){var i=(0,m.aS)(e,I),a=(0,m.aS)(e,k),c=[].concat(_toConsumableArray(i),_toConsumableArray(a)),l=(0,m.aS)(e,D),s="".concat(n,"Id"),u=n[0],f=t;if(c.length&&(f=c.reduce(function(e,t){if(t.props[s]===r&&ifOverflowMatches(t.props,"extendDomain")&&(0,P.Et)(t.props[u])){var n=t.props[u];return[Math.min(e[0],n),Math.max(e[1],n)]}return e},f)),l.length){var p="".concat(u,"1"),d="".concat(u,"2");f=l.reduce(function(e,t){if(t.props[s]===r&&ifOverflowMatches(t.props,"extendDomain")&&(0,P.Et)(t.props[p])&&(0,P.Et)(t.props[d])){var n=t.props[p],o=t.props[d];return[Math.min(e[0],n,o),Math.max(e[1],n,o)]}return e},f)}return o&&o.length&&(f=o.reduce(function(e,t){return(0,P.Et)(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e},f)),f},R=r(0x148b36991),L=r(0x319df928),N=r(0x1eb3459ad),B=new(r.n(N)()),W="recharts.syncMouseEvents",U=r(0xee79d415);function AccessibilityManager_typeof(e){return(AccessibilityManager_typeof="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 AccessibilityManager_classCallCheck(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function AccessibilityManager_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,AccessibilityManager_toPropertyKey(n.key),n)}}function AccessibilityManager_createClass(e,t,r){return t&&AccessibilityManager_defineProperties(e.prototype,t),r&&AccessibilityManager_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function AccessibilityManager_defineProperty(e,t,r){return(t=AccessibilityManager_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AccessibilityManager_toPropertyKey(e){var t=AccessibilityManager_toPrimitive(e,"string");return"symbol"==AccessibilityManager_typeof(t)?t:t+""}function AccessibilityManager_toPrimitive(e,t){if("object"!=AccessibilityManager_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=AccessibilityManager_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var K=function(){function AccessibilityManager(){AccessibilityManager_classCallCheck(this,AccessibilityManager),AccessibilityManager_defineProperty(this,"activeIndex",0),AccessibilityManager_defineProperty(this,"coordinateList",[]),AccessibilityManager_defineProperty(this,"layout","horizontal")}return AccessibilityManager_createClass(AccessibilityManager,[{key:"setDetails",value:function(e){var t,r=e.coordinateList,n=void 0===r?null:r,o=e.container,i=void 0===o?null:o,a=e.layout,c=void 0===a?null:a,l=e.offset,s=void 0===l?null:l,u=e.mouseHandlerCallback,f=void 0===u?null:u;this.coordinateList=null!=(t=null!=n?n:this.coordinateList)?t:[],this.container=null!=i?i:this.container,this.layout=null!=c?c:this.layout,this.offset=null!=s?s:this.offset,this.mouseHandlerCallback=null!=f?f:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(e){if(0!==this.coordinateList.length)switch(e.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(e){this.activeIndex=e}},{key:"spoofMouse",value:function(){if("horizontal"===this.layout&&0!==this.coordinateList.length){var e,t,r=this.container.getBoundingClientRect(),n=r.x,o=r.y,i=r.height,a=this.coordinateList[this.activeIndex].coordinate,c=(null==(e=window)?void 0:e.scrollX)||0,l=(null==(t=window)?void 0:t.scrollY)||0,s=o+this.offset.top+i/2+l;this.mouseHandlerCallback({pageX:n+a+c,pageY:s})}}}])}();function isDomainSpecifiedByUser(e,t,r){if("number"===r&&!0===t&&Array.isArray(e)){var n=null==e?void 0:e[0],o=null==e?void 0:e[1];if(n&&o&&(0,P.Et)(n)&&(0,P.Et)(o))return!0}return!1}var z=r(0x81a138ba),F=r(0xb1af60e9);function Cross_typeof(e){return(Cross_typeof="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)}var q=["x","y","top","left","width","height","className"];function Cross_extends(){return(Cross_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function Cross_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Cross_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Cross_ownKeys(Object(r),!0).forEach(function(t){Cross_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cross_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Cross_defineProperty(e,t,r){return(t=Cross_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cross_toPropertyKey(e){var t=Cross_toPrimitive(e,"string");return"symbol"==Cross_typeof(t)?t:t+""}function Cross_toPrimitive(e,t){if("object"!=Cross_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Cross_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Cross=function(e){var t=e.x,r=void 0===t?0:t,o=e.y,i=void 0===o?0:o,a=e.top,c=void 0===a?0:a,l=e.left,s=void 0===l?0:l,f=e.width,p=void 0===f?0:f,d=e.height,y=void 0===d?0:d,h=e.className,b=Cross_objectSpread({x:r,y:i,top:c,left:s,width:p,height:y},_objectWithoutProperties(e,q));return(0,P.Et)(r)&&(0,P.Et)(i)&&(0,P.Et)(p)&&(0,P.Et)(y)&&(0,P.Et)(c)&&(0,P.Et)(s)?n.createElement("path",Cross_extends({},(0,m.J9)(b,!0),{className:(0,u.A)("recharts-cross",h),d:"M".concat(r,",").concat(c,"v").concat(y,"M").concat(s,",").concat(i,"h").concat(p)})):null};function getCursorRectangle(e,t,r,n){var o=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-o:r.left+.5,y:"horizontal"===e?r.top+.5:t.y-o,width:"horizontal"===e?n:r.width-1,height:"horizontal"===e?r.height-1:n}}function getRadialCursorPoints(e){var t=e.cx,r=e.cy,n=e.radius,o=e.startAngle,i=e.endAngle;return{points:[(0,R.IZ)(t,r,n,o),(0,R.IZ)(t,r,n,i)],cx:t,cy:r,radius:n,startAngle:o,endAngle:i}}var H=r(0x1e2a89e47);function getCursorPoints(e,t,r){var n,o,i,a;if("horizontal"===e)i=n=t.x,o=r.top,a=r.top+r.height;else if("vertical"===e)a=o=t.y,n=r.left,i=r.left+r.width;else if(null!=t.cx&&null!=t.cy)if("centric"!==e)return getRadialCursorPoints(t);else{var c=t.cx,l=t.cy,s=t.innerRadius,u=t.outerRadius,f=t.angle,p=(0,R.IZ)(c,l,s,f),d=(0,R.IZ)(c,l,u,f);n=p.x,o=p.y,i=d.x,a=d.y}return[{x:n,y:o},{x:i,y:a}]}function Cursor_typeof(e){return(Cursor_typeof="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 Cursor_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Cursor_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Cursor_ownKeys(Object(r),!0).forEach(function(t){Cursor_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cursor_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Cursor_defineProperty(e,t,r){return(t=Cursor_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cursor_toPropertyKey(e){var t=Cursor_toPrimitive(e,"string");return"symbol"==Cursor_typeof(t)?t:t+""}function Cursor_toPrimitive(e,t){if("object"!=Cursor_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Cursor_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function Cursor(e){var t,r,o,i=e.element,a=e.tooltipEventType,c=e.isActive,l=e.activeCoordinate,s=e.activePayload,f=e.offset,p=e.activeTooltipIndex,d=e.tooltipAxisBandSize,y=e.layout,h=e.chartName,b=null!=(t=i.props.cursor)?t:null==(r=i.type.defaultProps)?void 0:r.cursor;if(!i||!b||!c||!l||"ScatterChart"!==h&&"axis"!==a)return null;var v=F.I;if("ScatterChart"===h)o=l,v=Cross;else if("BarChart"===h)o=getCursorRectangle(y,l,f,d),v=g.M;else if("radial"===y){var _=getRadialCursorPoints(l),x=_.cx,P=_.cy,A=_.radius;o={cx:x,cy:P,startAngle:_.startAngle,endAngle:_.endAngle,innerRadius:A,outerRadius:A},v=H.h}else o={points:getCursorPoints(y,l,f)},v=F.I;var S=Cursor_objectSpread(Cursor_objectSpread(Cursor_objectSpread(Cursor_objectSpread({stroke:"#ccc",pointerEvents:"none"},f),o),(0,m.J9)(b,!1)),{},{payload:s,payloadIndex:p,className:(0,u.A)("recharts-tooltip-cursor",b.className)});return(0,n.isValidElement)(b)?(0,n.cloneElement)(b,S):(0,n.createElement)(v,S)}var V=["item"],X=["children","className","width","height","style","compact","title","desc"];function generateCategoricalChart_typeof(e){return(generateCategoricalChart_typeof="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 generateCategoricalChart_extends(){return(generateCategoricalChart_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function generateCategoricalChart_slicedToArray(e,t){return generateCategoricalChart_arrayWithHoles(e)||generateCategoricalChart_iterableToArrayLimit(e,t)||generateCategoricalChart_unsupportedIterableToArray(e,t)||generateCategoricalChart_nonIterableRest()}function generateCategoricalChart_nonIterableRest(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function generateCategoricalChart_iterableToArrayLimit(e,t){var r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}function generateCategoricalChart_arrayWithHoles(e){if(Array.isArray(e))return e}function generateCategoricalChart_objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=generateCategoricalChart_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function generateCategoricalChart_objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function generateCategoricalChart_classCallCheck(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function generateCategoricalChart_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,generateCategoricalChart_toPropertyKey(n.key),n)}}function generateCategoricalChart_createClass(e,t,r){return t&&generateCategoricalChart_defineProperties(e.prototype,t),r&&generateCategoricalChart_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function generateCategoricalChart_callSuper(e,t,r){return t=generateCategoricalChart_getPrototypeOf(t),generateCategoricalChart_possibleConstructorReturn(e,generateCategoricalChart_isNativeReflectConstruct()?Reflect.construct(t,r||[],generateCategoricalChart_getPrototypeOf(e).constructor):t.apply(e,r))}function generateCategoricalChart_possibleConstructorReturn(e,t){if(t&&("object"===generateCategoricalChart_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return generateCategoricalChart_assertThisInitialized(e)}function generateCategoricalChart_assertThisInitialized(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function generateCategoricalChart_isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(generateCategoricalChart_isNativeReflectConstruct=function(){return!!e})()}function generateCategoricalChart_getPrototypeOf(e){return(generateCategoricalChart_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function generateCategoricalChart_inherits(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&generateCategoricalChart_setPrototypeOf(e,t)}function generateCategoricalChart_setPrototypeOf(e,t){return(generateCategoricalChart_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function generateCategoricalChart_toConsumableArray(e){return generateCategoricalChart_arrayWithoutHoles(e)||generateCategoricalChart_iterableToArray(e)||generateCategoricalChart_unsupportedIterableToArray(e)||generateCategoricalChart_nonIterableSpread()}function generateCategoricalChart_nonIterableSpread(){throw TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function generateCategoricalChart_unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return generateCategoricalChart_arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return generateCategoricalChart_arrayLikeToArray(e,t)}}function generateCategoricalChart_iterableToArray(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function generateCategoricalChart_arrayWithoutHoles(e){if(Array.isArray(e))return generateCategoricalChart_arrayLikeToArray(e)}function generateCategoricalChart_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function generateCategoricalChart_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function generateCategoricalChart_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?generateCategoricalChart_ownKeys(Object(r),!0).forEach(function(t){generateCategoricalChart_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):generateCategoricalChart_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function generateCategoricalChart_defineProperty(e,t,r){return(t=generateCategoricalChart_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function generateCategoricalChart_toPropertyKey(e){var t=generateCategoricalChart_toPrimitive(e,"string");return"symbol"==generateCategoricalChart_typeof(t)?t:t+""}function generateCategoricalChart_toPrimitive(e,t){if("object"!=generateCategoricalChart_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=generateCategoricalChart_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var $={xAxis:["bottom","top"],yAxis:["left","right"]},Y={width:"100%",height:"100%"},G={x:0,y:0};function renderAsIs(e){return e}var getActiveCoordinate=function(e,t,r,n){var o=t.find(function(e){return e&&e.index===r});if(o){if("horizontal"===e)return{x:o.coordinate,y:n.y};if("vertical"===e)return{x:n.x,y:o.coordinate};if("centric"===e){var i=o.coordinate,a=n.radius;return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},n),(0,R.IZ)(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var c=o.coordinate,l=n.angle;return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},n),(0,R.IZ)(n.cx,n.cy,c,l)),{},{angle:l,radius:c})}return G},getDisplayedData=function(e,t){var r=t.graphicalItems,n=t.dataStartIndex,o=t.dataEndIndex,i=(null!=r?r:[]).reduce(function(e,t){var r=t.props.data;return r&&r.length?[].concat(generateCategoricalChart_toConsumableArray(e),generateCategoricalChart_toConsumableArray(r)):e},[]);return i.length>0?i:e&&e.length&&(0,P.Et)(n)&&(0,P.Et)(o)?e.slice(n,o+1):[]};function getDefaultDomainByAxisType(e){return"number"===e?[0,"auto"]:void 0}var getTooltipContent=function(e,t,r,n){var o=e.graphicalItems,i=e.tooltipAxis,a=getDisplayedData(t,e);return r<0||!o||!o.length||r>=a.length?null:o.reduce(function(o,c){var l,s,u=null!=(l=c.props.data)?l:t;if(u&&e.dataStartIndex+e.dataEndIndex!==0&&e.dataEndIndex-e.dataStartIndex>=r&&(u=u.slice(e.dataStartIndex,e.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory){var f=void 0===u?a:u;s=(0,P.eP)(f,i.dataKey,n)}else s=u&&u[r]||a[r];return s?[].concat(generateCategoricalChart_toConsumableArray(o),[(0,x.zb)(c,s)]):o},[])},getTooltipData=function(e,t,r,n){var o=n||{x:e.chartX,y:e.chartY},i="horizontal"===r?o.x:"vertical"===r?o.y:"centric"===r?o.angle:o.radius,a=e.orderedTooltipTicks,c=e.tooltipAxis,l=e.tooltipTicks,s=(0,x.gH)(i,a,l,c);if(s>=0&&l){var u=l[s]&&l[s].value,f=getTooltipContent(e,t,s,u),p=getActiveCoordinate(r,a,s,o);return{activeTooltipIndex:s,activeLabel:u,activePayload:f,activeCoordinate:p}}return null},getAxisMapByAxes=function(e,t){var r=t.axes,n=t.graphicalItems,i=t.axisType,c=t.axisIdKey,l=t.stackGroups,s=t.dataStartIndex,u=t.dataEndIndex,f=e.layout,p=e.children,d=e.stackOffset,y=(0,x._L)(f,i);return r.reduce(function(t,r){var h=void 0!==r.type.defaultProps?generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},r.type.defaultProps),r.props):r.props,b=h.type,g=h.dataKey,m=h.allowDataOverflow,v=h.allowDuplicatedCategory,_=h.scale,A=h.ticks,S=h.includeHidden,O=h[c];if(t[O])return t;var j=getDisplayedData(e.data,{graphicalItems:n.filter(function(e){var t;return(c in e.props?e.props[c]:null==(t=e.type.defaultProps)?void 0:t[c])===O}),dataStartIndex:s,dataEndIndex:u}),w=j.length;isDomainSpecifiedByUser(h.domain,m,b)&&(k=(0,x.AQ)(h.domain,null,m),y&&("number"===b||"auto"!==_)&&(M=(0,x.Ay)(j,g,"category")));var C=getDefaultDomainByAxisType(b);if(!k||0===k.length){var T,k,E,M,I,D=null!=(I=h.domain)?I:C;if(g){if(k=(0,x.Ay)(j,g,b),"category"===b&&y){var R=(0,P.CG)(k);v&&R?(E=k,k=(0,a.A)(0,w)):v||(k=(0,x.KC)(D,k,r).reduce(function(e,t){return e.indexOf(t)>=0?e:[].concat(generateCategoricalChart_toConsumableArray(e),[t])},[]))}else if("category"===b)k=v?k.filter(function(e){return""!==e&&!(0,o.A)(e)}):(0,x.KC)(D,k,r).reduce(function(e,t){return e.indexOf(t)>=0||""===t||(0,o.A)(t)?e:[].concat(generateCategoricalChart_toConsumableArray(e),[t])},[]);else if("number"===b){var L=(0,x.A1)(j,n.filter(function(e){var t,r,n=c in e.props?e.props[c]:null==(t=e.type.defaultProps)?void 0:t[c],o="hide"in e.props?e.props.hide:null==(r=e.type.defaultProps)?void 0:r.hide;return n===O&&(S||!o)}),g,i,f);L&&(k=L)}y&&("number"===b||"auto"!==_)&&(M=(0,x.Ay)(j,g,"category"))}else k=y?(0,a.A)(0,w):l&&l[O]&&l[O].hasStack&&"number"===b?"expand"===d?[0,1]:(0,x.Mk)(l[O].stackGroups,s,u):(0,x.vf)(j,n.filter(function(e){var t=c in e.props?e.props[c]:e.type.defaultProps[c],r="hide"in e.props?e.props.hide:e.type.defaultProps.hide;return t===O&&(S||!r)}),b,f,!0);"number"===b?(k=detectReferenceElementsDomain(p,k,O,i,A),D&&(k=(0,x.AQ)(D,k,m))):"category"===b&&D&&k.every(function(e){return D.indexOf(e)>=0})&&(k=D)}return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},t),{},generateCategoricalChart_defineProperty({},O,generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},h),{},{axisType:i,domain:k,categoricalDomain:M,duplicateDomain:E,originalDomain:null!=(T=h.domain)?T:C,isCategorical:y,layout:f})))},{})},getAxisMapByItems=function(e,t){var r=t.graphicalItems,n=t.Axis,o=t.axisType,i=t.axisIdKey,l=t.stackGroups,s=t.dataStartIndex,u=t.dataEndIndex,f=e.layout,p=e.children,d=getDisplayedData(e.data,{graphicalItems:r,dataStartIndex:s,dataEndIndex:u}),y=d.length,h=(0,x._L)(f,o),b=-1;return r.reduce(function(e,t){var g,m=(void 0!==t.type.defaultProps?generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},t.type.defaultProps),t.props):t.props)[i],v=getDefaultDomainByAxisType("number");return e[m]?e:(b++,g=h?(0,a.A)(0,y):l&&l[m]&&l[m].hasStack?detectReferenceElementsDomain(p,g=(0,x.Mk)(l[m].stackGroups,s,u),m,o):detectReferenceElementsDomain(p,g=(0,x.AQ)(v,(0,x.vf)(d,r.filter(function(e){var t,r,n=i in e.props?e.props[i]:null==(t=e.type.defaultProps)?void 0:t[i],o="hide"in e.props?e.props.hide:null==(r=e.type.defaultProps)?void 0:r.hide;return n===m&&!o}),"number",f),n.defaultProps.allowDataOverflow),m,o),generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},e),{},generateCategoricalChart_defineProperty({},m,generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({axisType:o},n.defaultProps),{},{hide:!0,orientation:(0,c.A)($,"".concat(o,".").concat(b%2),null),domain:g,originalDomain:v,isCategorical:h,layout:f}))))},{})},getAxisMap=function(e,t){var r=t.axisType,n=void 0===r?"xAxis":r,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,c=t.dataStartIndex,l=t.dataEndIndex,s=e.children,u="".concat(n,"Id"),f=(0,m.aS)(s,o),p={};return f&&f.length?p=getAxisMapByAxes(e,{axes:f,graphicalItems:i,axisType:n,axisIdKey:u,stackGroups:a,dataStartIndex:c,dataEndIndex:l}):i&&i.length&&(p=getAxisMapByItems(e,{Axis:o,graphicalItems:i,axisType:n,axisIdKey:u,stackGroups:a,dataStartIndex:c,dataEndIndex:l})),p},tooltipTicksGenerator=function(e){var t=(0,P.lX)(e),r=(0,x.Rh)(t,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:(0,l.A)(r,function(e){return e.coordinate}),tooltipAxis:t,tooltipAxisBandSize:(0,x.Hj)(t,r)}},createDefaultState=function(e){var t=e.children,r=e.defaultShowTooltip,n=(0,m.BU)(t,S),o=0,i=0;return e.data&&0!==e.data.length&&(i=e.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(o=n.props.startIndex),n.props.endIndex>=0&&(i=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:!!r}},getAxisNameByLayout=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"}},calculateOffset=function(e,t){var r=e.props,n=e.graphicalItems,o=e.xAxisMap,i=void 0===o?{}:o,a=e.yAxisMap,l=void 0===a?{}:a,s=r.width,u=r.height,f=r.children,p=r.margin||{},d=(0,m.BU)(f,S),y=(0,m.BU)(f,h.s),b=Object.keys(l).reduce(function(e,t){var r=l[t],n=r.orientation;return r.mirror||r.hide?e:generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},e),{},generateCategoricalChart_defineProperty({},n,e[n]+r.width))},{left:p.left||0,right:p.right||0}),g=Object.keys(i).reduce(function(e,t){var r=i[t],n=r.orientation;return r.mirror||r.hide?e:generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},e),{},generateCategoricalChart_defineProperty({},n,(0,c.A)(e,"".concat(n))+r.height))},{top:p.top||0,bottom:p.bottom||0}),v=generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},g),b),_=v.bottom;d&&(v.bottom+=d.props.height||S.defaultProps.height),y&&t&&(v=(0,x.s0)(v,n,r,t));var P=s-v.left-v.right,A=u-v.top-v.bottom;return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({brushBottom:_},v),{},{width:Math.max(P,0),height:Math.max(A,0)})},generateCategoricalChart=function(e){var t=e.chartName,r=e.GraphicalChild,a=e.defaultTooltipEventType,l=void 0===a?"axis":a,h=e.validateTooltipEventTypes,v=void 0===h?["axis"]:h,_=e.axisComponents,A=e.legendContent,w=e.formatAxisMap,C=e.defaultProps,getFormatItems=function(e,t){var r=t.graphicalItems,n=t.stackGroups,i=t.offset,a=t.updateId,c=t.dataStartIndex,l=t.dataEndIndex,s=e.barSize,u=e.layout,p=e.barGap,d=e.barCategoryGap,y=e.maxBarSize,h=getAxisNameByLayout(u),b=h.numericAxisName,g=h.cateAxisName,v=!!r&&!!r.length&&r.some(function(e){var t=(0,m.Mn)(e&&e.type);return t&&t.indexOf("Bar")>=0}),P=[];return r.forEach(function(r,h){var A=getDisplayedData(e.data,{graphicalItems:[r],dataStartIndex:c,dataEndIndex:l}),S=void 0!==r.type.defaultProps?generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},r.type.defaultProps),r.props):r.props,O=S.dataKey,j=S.maxBarSize,w=S["".concat(b,"Id")],C=S["".concat(g,"Id")],T=_.reduce(function(e,r){var n=t["".concat(r.axisType,"Map")],o=S["".concat(r.axisType,"Id")];n&&n[o]||"zAxis"===r.axisType||(0,f.A)(!1);var i=n[o];return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},e),{},generateCategoricalChart_defineProperty(generateCategoricalChart_defineProperty({},r.axisType,i),"".concat(r.axisType,"Ticks"),(0,x.Rh)(i)))},{}),k=T[g],E=T["".concat(g,"Ticks")],M=n&&n[w]&&n[w].hasStack&&(0,x.kA)(r,n[w].stackGroups),I=(0,m.Mn)(r.type).indexOf("Bar")>=0,D=(0,x.Hj)(k,E),R=[],L=v&&(0,x.tA)({barSize:s,stackGroups:n,totalSize:"xAxis"===g?T[g].width:"yAxis"===g?T[g].height:void 0});if(I){var N,B,W=(0,o.A)(j)?y:j,U=null!=(N=null!=(B=(0,x.Hj)(k,E,!0))?B:W)?N:0;R=(0,x.BX)({barGap:p,barCategoryGap:d,bandSize:U!==D?U:D,sizeList:L[C],maxBarSize:W}),U!==D&&(R=R.map(function(e){return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},e),{},{position:generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},e.position),{},{offset:e.position.offset-U/2})})}))}var K=r&&r.type&&r.type.getComposedData;K&&P.push({props:generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},K(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},T),{},{displayedData:A,props:e,dataKey:O,item:r,bandSize:D,barPosition:R,offset:i,stackedData:M,layout:u,dataStartIndex:c,dataEndIndex:l}))),{},generateCategoricalChart_defineProperty(generateCategoricalChart_defineProperty(generateCategoricalChart_defineProperty({key:r.key||"item-".concat(h)},b,T[b]),g,T[g]),"animationId",a)),childIndex:(0,m.AW)(r,e.children),item:r})}),P},updateStateOfAxisMapsOffsetAndStackGroups=function(e,n){var o=e.props,i=e.dataStartIndex,a=e.dataEndIndex,c=e.updateId;if(!(0,m.Me)({props:o}))return null;var l=o.children,s=o.layout,u=o.stackOffset,f=o.data,p=o.reverseStackOrder,d=getAxisNameByLayout(s),y=d.numericAxisName,h=d.cateAxisName,b=(0,m.aS)(l,r),g=(0,x.Mn)(f,b,"".concat(y,"Id"),"".concat(h,"Id"),u,p),v=_.reduce(function(e,t){var r="".concat(t.axisType,"Map");return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},e),{},generateCategoricalChart_defineProperty({},r,getAxisMap(o,generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},t),{},{graphicalItems:b,stackGroups:t.axisType===y&&g,dataStartIndex:i,dataEndIndex:a}))))},{}),P=calculateOffset(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},v),{},{props:o,graphicalItems:b}),null==n?void 0:n.legendBBox);Object.keys(v).forEach(function(e){v[e]=w(o,v[e],P,e.replace("Map",""),t)});var A=tooltipTicksGenerator(v["".concat(h,"Map")]),S=getFormatItems(o,generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},v),{},{dataStartIndex:i,dataEndIndex:a,updateId:c,graphicalItems:b,stackGroups:g,offset:P}));return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({formattedGraphicalItems:S,graphicalItems:b,offset:P,stackGroups:g},A),v)},T=function(e){function CategoricalChartWrapper(e){var r,a,l;return generateCategoricalChart_classCallCheck(this,CategoricalChartWrapper),generateCategoricalChart_defineProperty(l=generateCategoricalChart_callSuper(this,CategoricalChartWrapper,[e]),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),generateCategoricalChart_defineProperty(l,"accessibilityManager",new K),generateCategoricalChart_defineProperty(l,"handleLegendBBoxUpdate",function(e){if(e){var t=l.state,r=t.dataStartIndex,n=t.dataEndIndex,o=t.updateId;l.setState(generateCategoricalChart_objectSpread({legendBBox:e},updateStateOfAxisMapsOffsetAndStackGroups({props:l.props,dataStartIndex:r,dataEndIndex:n,updateId:o},generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},l.state),{},{legendBBox:e}))))}}),generateCategoricalChart_defineProperty(l,"handleReceiveSyncEvent",function(e,t,r){l.props.syncId===e&&(r!==l.eventEmitterSymbol||"function"==typeof l.props.syncMethod)&&l.applySyncEvent(t)}),generateCategoricalChart_defineProperty(l,"handleBrushChange",function(e){var t=e.startIndex,r=e.endIndex;if(t!==l.state.dataStartIndex||r!==l.state.dataEndIndex){var n=l.state.updateId;l.setState(function(){return generateCategoricalChart_objectSpread({dataStartIndex:t,dataEndIndex:r},updateStateOfAxisMapsOffsetAndStackGroups({props:l.props,dataStartIndex:t,dataEndIndex:r,updateId:n},l.state))}),l.triggerSyncEvent({dataStartIndex:t,dataEndIndex:r})}}),generateCategoricalChart_defineProperty(l,"handleMouseEnter",function(e){var t=l.getMouseInfo(e);if(t){var r=generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},t),{},{isTooltipActive:!0});l.setState(r),l.triggerSyncEvent(r);var n=l.props.onMouseEnter;(0,i.A)(n)&&n(r,e)}}),generateCategoricalChart_defineProperty(l,"triggeredAfterMouseMove",function(e){var t=l.getMouseInfo(e),r=t?generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};l.setState(r),l.triggerSyncEvent(r);var n=l.props.onMouseMove;(0,i.A)(n)&&n(r,e)}),generateCategoricalChart_defineProperty(l,"handleItemMouseEnter",function(e){l.setState(function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}})}),generateCategoricalChart_defineProperty(l,"handleItemMouseLeave",function(){l.setState(function(){return{isTooltipActive:!1}})}),generateCategoricalChart_defineProperty(l,"handleMouseMove",function(e){e.persist(),l.throttleTriggeredAfterMouseMove(e)}),generateCategoricalChart_defineProperty(l,"handleMouseLeave",function(e){l.throttleTriggeredAfterMouseMove.cancel();var t={isTooltipActive:!1};l.setState(t),l.triggerSyncEvent(t);var r=l.props.onMouseLeave;(0,i.A)(r)&&r(t,e)}),generateCategoricalChart_defineProperty(l,"handleOuterEvent",function(e){var t,r=(0,m.X_)(e),n=(0,c.A)(l.props,"".concat(r));r&&(0,i.A)(n)&&n(null!=(t=/.*touch.*/i.test(r)?l.getMouseInfo(e.changedTouches[0]):l.getMouseInfo(e))?t:{},e)}),generateCategoricalChart_defineProperty(l,"handleClick",function(e){var t=l.getMouseInfo(e);if(t){var r=generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},t),{},{isTooltipActive:!0});l.setState(r),l.triggerSyncEvent(r);var n=l.props.onClick;(0,i.A)(n)&&n(r,e)}}),generateCategoricalChart_defineProperty(l,"handleMouseDown",function(e){var t=l.props.onMouseDown;(0,i.A)(t)&&t(l.getMouseInfo(e),e)}),generateCategoricalChart_defineProperty(l,"handleMouseUp",function(e){var t=l.props.onMouseUp;(0,i.A)(t)&&t(l.getMouseInfo(e),e)}),generateCategoricalChart_defineProperty(l,"handleTouchMove",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&l.throttleTriggeredAfterMouseMove(e.changedTouches[0])}),generateCategoricalChart_defineProperty(l,"handleTouchStart",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&l.handleMouseDown(e.changedTouches[0])}),generateCategoricalChart_defineProperty(l,"handleTouchEnd",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&l.handleMouseUp(e.changedTouches[0])}),generateCategoricalChart_defineProperty(l,"handleDoubleClick",function(e){var t=l.props.onDoubleClick;(0,i.A)(t)&&t(l.getMouseInfo(e),e)}),generateCategoricalChart_defineProperty(l,"handleContextMenu",function(e){var t=l.props.onContextMenu;(0,i.A)(t)&&t(l.getMouseInfo(e),e)}),generateCategoricalChart_defineProperty(l,"triggerSyncEvent",function(e){void 0!==l.props.syncId&&B.emit(W,l.props.syncId,e,l.eventEmitterSymbol)}),generateCategoricalChart_defineProperty(l,"applySyncEvent",function(e){var t=l.props,r=t.layout,n=t.syncMethod,o=l.state.updateId,i=e.dataStartIndex,a=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)l.setState(generateCategoricalChart_objectSpread({dataStartIndex:i,dataEndIndex:a},updateStateOfAxisMapsOffsetAndStackGroups({props:l.props,dataStartIndex:i,dataEndIndex:a,updateId:o},l.state)));else if(void 0!==e.activeTooltipIndex){var c=e.chartX,s=e.chartY,u=e.activeTooltipIndex,f=l.state,p=f.offset,d=f.tooltipTicks;if(!p)return;if("function"==typeof n)u=n(d,e);else if("value"===n){u=-1;for(var y=0;y<d.length;y++)if(d[y].value===e.activeLabel){u=y;break}}var h=generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},p),{},{x:p.left,y:p.top}),b=Math.min(c,h.x+h.width),g=Math.min(s,h.y+h.height),m=d[u]&&d[u].value,v=getTooltipContent(l.state,l.props.data,u),_=d[u]?{x:"horizontal"===r?d[u].coordinate:b,y:"horizontal"===r?g:d[u].coordinate}:G;l.setState(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},e),{},{activeLabel:m,activeCoordinate:_,activePayload:v,activeTooltipIndex:u}))}else l.setState(e)}),generateCategoricalChart_defineProperty(l,"renderCursor",function(e){var r,o=l.state,i=o.isTooltipActive,a=o.activeCoordinate,c=o.activePayload,s=o.offset,u=o.activeTooltipIndex,f=o.tooltipAxisBandSize,p=l.getTooltipEventType(),d=null!=(r=e.props.active)?r:i,y=l.props.layout,h=e.key||"_recharts-cursor";return n.createElement(Cursor,{key:h,activeCoordinate:a,activePayload:c,activeTooltipIndex:u,chartName:t,element:e,isActive:d,layout:y,offset:s,tooltipAxisBandSize:f,tooltipEventType:p})}),generateCategoricalChart_defineProperty(l,"renderPolarAxis",function(e,t,r){var o=(0,c.A)(e,"type.axisType"),i=(0,c.A)(l.state,"".concat(o,"Map")),a=e.type.defaultProps,s=void 0!==a?generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},a),e.props):e.props,f=i&&i[s["".concat(o,"Id")]];return(0,n.cloneElement)(e,generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},f),{},{className:(0,u.A)(o,f.className),key:e.key||"".concat(t,"-").concat(r),ticks:(0,x.Rh)(f,!0)}))}),generateCategoricalChart_defineProperty(l,"renderPolarGrid",function(e){var t=e.props,r=t.radialLines,o=t.polarAngles,i=t.polarRadius,a=l.state,c=a.radiusAxisMap,s=a.angleAxisMap,u=(0,P.lX)(c),f=(0,P.lX)(s),p=f.cx,d=f.cy,y=f.innerRadius,h=f.outerRadius;return(0,n.cloneElement)(e,{polarAngles:Array.isArray(o)?o:(0,x.Rh)(f,!0).map(function(e){return e.coordinate}),polarRadius:Array.isArray(i)?i:(0,x.Rh)(u,!0).map(function(e){return e.coordinate}),cx:p,cy:d,innerRadius:y,outerRadius:h,key:e.key||"polar-grid",radialLines:r})}),generateCategoricalChart_defineProperty(l,"renderLegend",function(){var e=l.state.formattedGraphicalItems,t=l.props,r=t.children,o=t.width,i=t.height,a=l.props.margin||{},c=o-(a.left||0)-(a.right||0),s=(0,j.g)({children:r,formattedGraphicalItems:e,legendWidth:c,legendContent:A});if(!s)return null;var u=s.item,f=generateCategoricalChart_objectWithoutProperties(s,V);return(0,n.cloneElement)(u,generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},f),{},{chartWidth:o,chartHeight:i,margin:a,onBBoxUpdate:l.handleLegendBBoxUpdate}))}),generateCategoricalChart_defineProperty(l,"renderTooltip",function(){var e,t=l.props,r=t.children,o=t.accessibilityLayer,i=(0,m.BU)(r,y.m);if(!i)return null;var a=l.state,c=a.isTooltipActive,s=a.activeCoordinate,u=a.activePayload,f=a.activeLabel,p=a.offset,d=null!=(e=i.props.active)?e:c;return(0,n.cloneElement)(i,{viewBox:generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},p),{},{x:p.left,y:p.top}),active:d,label:f,payload:d?u:[],coordinate:s,accessibilityLayer:o})}),generateCategoricalChart_defineProperty(l,"renderBrush",function(e){var t=l.props,r=t.margin,o=t.data,i=l.state,a=i.offset,c=i.dataStartIndex,s=i.dataEndIndex,u=i.updateId;return(0,n.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:(0,x.HQ)(l.handleBrushChange,e.props.onChange),data:o,x:(0,P.Et)(e.props.x)?e.props.x:a.left,y:(0,P.Et)(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:(0,P.Et)(e.props.width)?e.props.width:a.width,startIndex:c,endIndex:s,updateId:"brush-".concat(u)})}),generateCategoricalChart_defineProperty(l,"renderReferenceElement",function(e,t,r){if(!e)return null;var o=l.clipPathId,i=l.state,a=i.xAxisMap,c=i.yAxisMap,s=i.offset,u=e.type.defaultProps||{},f=e.props,p=f.xAxisId,d=void 0===p?u.xAxisId:p,y=f.yAxisId,h=void 0===y?u.yAxisId:y;return(0,n.cloneElement)(e,{key:e.key||"".concat(t,"-").concat(r),xAxis:a[d],yAxis:c[h],viewBox:{x:s.left,y:s.top,width:s.width,height:s.height},clipPathId:o})}),generateCategoricalChart_defineProperty(l,"renderActivePoints",function(e){var t=e.item,r=e.activePoint,n=e.basePoint,o=e.childIndex,i=e.isRange,a=[],c=t.props.key,l=void 0!==t.item.type.defaultProps?generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},t.item.type.defaultProps),t.item.props):t.item.props,s=l.activeDot,u=generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({index:o,dataKey:l.dataKey,cx:r.x,cy:r.y,r:4,fill:(0,x.Ps)(t.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value},(0,m.J9)(s,!1)),(0,U._U)(s));return a.push(CategoricalChartWrapper.renderActiveDot(s,u,"".concat(c,"-activePoint-").concat(o))),n?a.push(CategoricalChartWrapper.renderActiveDot(s,generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},u),{},{cx:n.x,cy:n.y}),"".concat(c,"-basePoint-").concat(o))):i&&a.push(null),a}),generateCategoricalChart_defineProperty(l,"renderGraphicChild",function(e,t,r){var i=l.filterFormatItem(e,t,r);if(!i)return null;var a=l.getTooltipEventType(),c=l.state,s=c.isTooltipActive,u=c.tooltipAxis,f=c.activeTooltipIndex,p=c.activeLabel,d=l.props.children,h=(0,m.BU)(d,y.m),b=i.props,g=b.points,v=b.isRange,_=b.baseLine,A=void 0!==i.item.type.defaultProps?generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},i.item.type.defaultProps),i.item.props):i.item.props,S=A.activeDot,O=A.hide,j=A.activeBar,w=A.activeShape,C=!!(!O&&s&&h&&(S||j||w)),T={};"axis"!==a&&h&&"click"===h.props.trigger?T={onClick:(0,x.HQ)(l.handleItemMouseEnter,e.props.onClick)}:"axis"!==a&&(T={onMouseLeave:(0,x.HQ)(l.handleItemMouseLeave,e.props.onMouseLeave),onMouseEnter:(0,x.HQ)(l.handleItemMouseEnter,e.props.onMouseEnter)});var k=(0,n.cloneElement)(e,generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},i.props),T));function findWithPayload(e){return"function"==typeof u.dataKey?u.dataKey(e.payload):null}if(C)if(f>=0){if(u.dataKey&&!u.allowDuplicatedCategory){var E="function"==typeof u.dataKey?findWithPayload:"payload.".concat(u.dataKey.toString());I=(0,P.eP)(g,E,p),D=v&&_&&(0,P.eP)(_,E,p)}else I=null==g?void 0:g[f],D=v&&_&&_[f];if(w||j){var M=void 0!==e.props.activeIndex?e.props.activeIndex:f;return[(0,n.cloneElement)(e,generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},i.props),T),{},{activeIndex:M})),null,null]}if(!(0,o.A)(I))return[k].concat(generateCategoricalChart_toConsumableArray(l.renderActivePoints({item:i,activePoint:I,basePoint:D,childIndex:f,isRange:v})))}else{var I,D,R,L=(null!=(R=l.getItemByXY(l.state.activeCoordinate))?R:{graphicalItem:k}).graphicalItem,N=L.item,B=void 0===N?e:N,W=L.childIndex,U=generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},i.props),T),{},{activeIndex:W});return[(0,n.cloneElement)(B,U),null,null]}return v?[k,null,null]:[k,null]}),generateCategoricalChart_defineProperty(l,"renderCustomized",function(e,t,r){return(0,n.cloneElement)(e,generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({key:"recharts-customized-".concat(r)},l.props),l.state))}),generateCategoricalChart_defineProperty(l,"renderMap",{CartesianGrid:{handler:renderAsIs,once:!0},ReferenceArea:{handler:l.renderReferenceElement},ReferenceLine:{handler:renderAsIs},ReferenceDot:{handler:l.renderReferenceElement},XAxis:{handler:renderAsIs},YAxis:{handler:renderAsIs},Brush:{handler:l.renderBrush,once:!0},Bar:{handler:l.renderGraphicChild},Line:{handler:l.renderGraphicChild},Area:{handler:l.renderGraphicChild},Radar:{handler:l.renderGraphicChild},RadialBar:{handler:l.renderGraphicChild},Scatter:{handler:l.renderGraphicChild},Pie:{handler:l.renderGraphicChild},Funnel:{handler:l.renderGraphicChild},Tooltip:{handler:l.renderCursor,once:!0},PolarGrid:{handler:l.renderPolarGrid,once:!0},PolarAngleAxis:{handler:l.renderPolarAxis},PolarRadiusAxis:{handler:l.renderPolarAxis},Customized:{handler:l.renderCustomized}}),l.clipPathId="".concat(null!=(r=e.id)?r:(0,P.NF)("recharts"),"-clip"),l.throttleTriggeredAfterMouseMove=(0,s.A)(l.triggeredAfterMouseMove,null!=(a=e.throttleDelay)?a:1e3/60),l.state={},l}return generateCategoricalChart_inherits(CategoricalChartWrapper,e),generateCategoricalChart_createClass(CategoricalChartWrapper,[{key:"componentDidMount",value:function(){var e,t;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!=(e=this.props.margin.left)?e:0,top:null!=(t=this.props.margin.top)?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var e=this.props,t=e.children,r=e.data,n=e.height,o=e.layout,i=(0,m.BU)(t,y.m);if(i){var a=i.props.defaultIndex;if("number"==typeof a&&!(a<0)&&!(a>this.state.tooltipTicks.length-1)){var c=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,l=getTooltipContent(this.state,r,a,c),s=this.state.tooltipTicks[a].coordinate,u=(this.state.offset.top+n)/2,f="horizontal"===o?{x:s,y:u}:{y:s,x:u},p=this.state.formattedGraphicalItems.find(function(e){return"Scatter"===e.item.type.name});p&&(f=generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},f),p.props.points[a].tooltipPosition),l=p.props.points[a].tooltipPayload);var d={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:c,activePayload:l,activeCoordinate:f};this.setState(d),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(e,t){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin){var r,n;this.accessibilityManager.setDetails({offset:{left:null!=(r=this.props.margin.left)?r:0,top:null!=(n=this.props.margin.top)?n:0}})}return null}},{key:"componentDidUpdate",value:function(e){(0,m.OV)([(0,m.BU)(e.children,y.m)],[(0,m.BU)(this.props.children,y.m)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=(0,m.BU)(this.props.children,y.m);if(e&&"boolean"==typeof e.props.shared){var t=e.props.shared?"axis":"item";return v.indexOf(t)>=0?t:l}return l}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=this.container,r=t.getBoundingClientRect(),n=(0,O.A3)(r),o={chartX:Math.round(e.pageX-n.left),chartY:Math.round(e.pageY-n.top)},i=r.width/t.offsetWidth||1,a=this.inRange(o.chartX,o.chartY,i);if(!a)return null;var c=this.state,l=c.xAxisMap,s=c.yAxisMap;if("axis"!==this.getTooltipEventType()&&l&&s){var u=(0,P.lX)(l).scale,f=(0,P.lX)(s).scale,p=u&&u.invert?u.invert(o.chartX):null,d=f&&f.invert?f.invert(o.chartY):null;return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},o),{},{xValue:p,yValue:d})}var y=getTooltipData(this.state,this.props.data,this.props.layout,a);return y?generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},o),y):null}},{key:"inRange",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,o=e/r,i=t/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var c=this.state,l=c.angleAxisMap,s=c.radiusAxisMap;if(l&&s){var u=(0,P.lX)(l);return(0,R.yy)({x:o,y:i},u)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),r=(0,m.BU)(e,y.m),n={};return r&&"axis"===t&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu}),generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},(0,U._U)(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){B.on(W,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){B.removeListener(W,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(e,t,r){for(var n=this.state.formattedGraphicalItems,o=0,i=n.length;o<i;o++){var a=n[o];if(a.item===e||a.props.key===e.key||t===(0,m.Mn)(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,r=t.left,o=t.top,i=t.height,a=t.width;return n.createElement("defs",null,n.createElement("clipPath",{id:e},n.createElement("rect",{x:r,y:o,height:i,width:a})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce(function(e,t){var r=generateCategoricalChart_slicedToArray(t,2),n=r[0],o=r[1];return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},e),{},generateCategoricalChart_defineProperty({},n,o.scale))},{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce(function(e,t){var r=generateCategoricalChart_slicedToArray(t,2),n=r[0],o=r[1];return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},e),{},generateCategoricalChart_defineProperty({},n,o.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(e){var t;return null==(t=this.state.xAxisMap)||null==(t=t[e])?void 0:t.scale}},{key:"getYScaleByAxisId",value:function(e){var t;return null==(t=this.state.yAxisMap)||null==(t=t[e])?void 0:t.scale}},{key:"getItemByXY",value:function(e){var t=this.state,r=t.formattedGraphicalItems,n=t.activeItem;if(r&&r.length)for(var o=0,i=r.length;o<i;o++){var a=r[o],c=a.props,l=a.item,s=void 0!==l.type.defaultProps?generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},l.type.defaultProps),l.props):l.props,u=(0,m.Mn)(l.type);if("Bar"===u){var f=(c.data||[]).find(function(t){return(0,g.J)(e,t)});if(f)return{graphicalItem:a,payload:f}}else if("RadialBar"===u){var p=(c.data||[]).find(function(t){return(0,R.yy)(e,t)});if(p)return{graphicalItem:a,payload:p}}else if((0,z.NE)(a,n)||(0,z.nZ)(a,n)||(0,z.xQ)(a,n)){var d=(0,z.GG)({graphicalItem:a,activeTooltipItem:n,itemData:s.data}),y=void 0===s.activeIndex?d:s.activeIndex;return{graphicalItem:generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},a),{},{childIndex:y}),payload:(0,z.xQ)(a,n)?s.data[d]:a.props.data[d]}}}return null}},{key:"render",value:function(){var e,t,r=this;if(!(0,m.Me)(this))return null;var o=this.props,i=o.children,a=o.className,c=o.width,l=o.height,s=o.style,f=o.compact,d=o.title,y=o.desc,h=generateCategoricalChart_objectWithoutProperties(o,X),b=(0,m.J9)(h,!1);if(f)return n.createElement(M.DR,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},n.createElement(p.u,generateCategoricalChart_extends({},b,{width:c,height:l,title:d,desc:y}),this.renderClipPath(),(0,m.ee)(i,this.renderMap)));this.props.accessibilityLayer&&(b.tabIndex=null!=(e=this.props.tabIndex)?e:0,b.role=null!=(t=this.props.role)?t:"application",b.onKeyDown=function(e){r.accessibilityManager.keyboardEvent(e)},b.onFocus=function(){r.accessibilityManager.focus()});var g=this.parseEventsOfWrapper();return n.createElement(M.DR,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},n.createElement("div",generateCategoricalChart_extends({className:(0,u.A)("recharts-wrapper",a),style:generateCategoricalChart_objectSpread({position:"relative",cursor:"default",width:c,height:l},s)},g,{ref:function(e){r.container=e}}),n.createElement(p.u,generateCategoricalChart_extends({},b,{width:c,height:l,title:d,desc:y,style:Y}),this.renderClipPath(),(0,m.ee)(i,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(n.Component);generateCategoricalChart_defineProperty(T,"displayName",t),generateCategoricalChart_defineProperty(T,"defaultProps",generateCategoricalChart_objectSpread({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},C)),generateCategoricalChart_defineProperty(T,"getDerivedStateFromProps",function(e,t){var r=e.dataKey,n=e.data,i=e.children,a=e.width,c=e.height,l=e.layout,s=e.stackOffset,u=e.margin,f=t.dataStartIndex,p=t.dataEndIndex;if(void 0===t.updateId){var d=createDefaultState(e);return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},d),{},{updateId:0},updateStateOfAxisMapsOffsetAndStackGroups(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({props:e},d),{},{updateId:0}),t)),{},{prevDataKey:r,prevData:n,prevWidth:a,prevHeight:c,prevLayout:l,prevStackOffset:s,prevMargin:u,prevChildren:i})}if(r!==t.prevDataKey||n!==t.prevData||a!==t.prevWidth||c!==t.prevHeight||l!==t.prevLayout||s!==t.prevStackOffset||!(0,L.b)(u,t.prevMargin)){var y=createDefaultState(e),h={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},b=generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},getTooltipData(t,n,l)),{},{updateId:t.updateId+1}),g=generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},y),h),b);return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({},g),updateStateOfAxisMapsOffsetAndStackGroups(generateCategoricalChart_objectSpread({props:e},g),t)),{},{prevDataKey:r,prevData:n,prevWidth:a,prevHeight:c,prevLayout:l,prevStackOffset:s,prevMargin:u,prevChildren:i})}if(!(0,m.OV)(i,t.prevChildren)){var v,_,x,P,A=(0,m.BU)(i,S),O=A&&null!=(v=null==(_=A.props)?void 0:_.startIndex)?v:f,j=A&&null!=(x=null==(P=A.props)?void 0:P.endIndex)?x:p,w=(0,o.A)(n)||O!==f||j!==p?t.updateId+1:t.updateId;return generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({updateId:w},updateStateOfAxisMapsOffsetAndStackGroups(generateCategoricalChart_objectSpread(generateCategoricalChart_objectSpread({props:e},t),{},{updateId:w,dataStartIndex:O,dataEndIndex:j}),t)),{},{prevChildren:i,dataStartIndex:O,dataEndIndex:j})}return null}),generateCategoricalChart_defineProperty(T,"renderActiveDot",function(e,t,r){var o;return o=(0,n.isValidElement)(e)?(0,n.cloneElement)(e,t):(0,i.A)(e)?e(t):n.createElement(b.c,t),n.createElement(d.W,{className:"recharts-active-dot",key:r},o)});var k=(0,n.forwardRef)(function(e,t){return n.createElement(T,generateCategoricalChart_extends({},e,{ref:t}))});return k.displayName=T.displayName,k}},0xa504df3f:(e,t,r)=>{"use strict";r.d(t,{f:()=>Cell});var Cell=function(e){return null};Cell.displayName="Cell"},0xd7f4847:(e,t,r)=>{"use strict";r.d(t,{J:()=>Label});var n=r(0xbad225b5),o=r(0x202470d56),i=r(0x33644bb7),a=r(0x1598e5174),c=r(0x139443c4a),l=r(0x187d2c3a3),s=r(0xd0f20cec),u=r(0x7bea1699),f=r(0x148b36991);function _typeof(e){return(_typeof="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)}var p=["offset"];function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,t)}}function _iterableToArray(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var getLabel=function(e){var t=e.value,r=e.formatter,n=(0,o.A)(e.children)?t:e.children;return(0,i.A)(r)?r(n):n},renderRadialLabel=function(e,t,r){var i,a,l=e.position,s=e.viewBox,p=e.offset,d=e.className,y=s.cx,h=s.cy,b=s.innerRadius,g=s.outerRadius,m=s.startAngle,v=s.endAngle,_=s.clockWise,x=(b+g)/2,P=(0,u.sA)(v-m)*Math.min(Math.abs(v-m),360),A=P>=0?1:-1;"insideStart"===l?(i=m+A*p,a=_):"insideEnd"===l?(i=v-A*p,a=!_):"end"===l&&(i=v+A*p,a=_),a=P<=0?a:!a;var S=(0,f.IZ)(y,h,x,i),O=(0,f.IZ)(y,h,x,i+(a?1:-1)*359),j="M".concat(S.x,",").concat(S.y,`
    A`).concat(x,",").concat(x,",0,1,").concat(+!a,`,
    `).concat(O.x,",").concat(O.y),w=(0,o.A)(e.id)?(0,u.NF)("recharts-radial-line-"):e.id;return n.createElement("text",_extends({},r,{dominantBaseline:"central",className:(0,c.A)("recharts-radial-bar-label",d)}),n.createElement("defs",null,n.createElement("path",{id:w,d:j})),n.createElement("textPath",{xlinkHref:"#".concat(w)},t))},getAttrsOfPolarLabel=function(e){var t=e.viewBox,r=e.offset,n=e.position,o=t.cx,i=t.cy,a=t.innerRadius,c=t.outerRadius,l=(t.startAngle+t.endAngle)/2;if("outside"===n){var s=(0,f.IZ)(o,i,c+r,l),u=s.x;return{x:u,y:s.y,textAnchor:u>=o?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:o,y:i,textAnchor:"middle",verticalAnchor:"end"};var p=(0,f.IZ)(o,i,(a+c)/2,l);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},getAttrsOfCartesianLabel=function(e){var t=e.viewBox,r=e.parentViewBox,n=e.offset,o=e.position,i=t.x,c=t.y,l=t.width,s=t.height,f=s>=0?1:-1,p=f*n,d=f>0?"end":"start",y=f>0?"start":"end",h=l>=0?1:-1,b=h*n,g=h>0?"end":"start",m=h>0?"start":"end";if("top"===o)return _objectSpread(_objectSpread({},{x:i+l/2,y:c-f*n,textAnchor:"middle",verticalAnchor:d}),r?{height:Math.max(c-r.y,0),width:l}:{});if("bottom"===o)return _objectSpread(_objectSpread({},{x:i+l/2,y:c+s+p,textAnchor:"middle",verticalAnchor:y}),r?{height:Math.max(r.y+r.height-(c+s),0),width:l}:{});if("left"===o){var v={x:i-b,y:c+s/2,textAnchor:g,verticalAnchor:"middle"};return _objectSpread(_objectSpread({},v),r?{width:Math.max(v.x-r.x,0),height:s}:{})}if("right"===o){var _={x:i+l+b,y:c+s/2,textAnchor:m,verticalAnchor:"middle"};return _objectSpread(_objectSpread({},_),r?{width:Math.max(r.x+r.width-_.x,0),height:s}:{})}var x=r?{width:l,height:s}:{};return"insideLeft"===o?_objectSpread({x:i+b,y:c+s/2,textAnchor:m,verticalAnchor:"middle"},x):"insideRight"===o?_objectSpread({x:i+l-b,y:c+s/2,textAnchor:g,verticalAnchor:"middle"},x):"insideTop"===o?_objectSpread({x:i+l/2,y:c+p,textAnchor:"middle",verticalAnchor:y},x):"insideBottom"===o?_objectSpread({x:i+l/2,y:c+s-p,textAnchor:"middle",verticalAnchor:d},x):"insideTopLeft"===o?_objectSpread({x:i+b,y:c+p,textAnchor:m,verticalAnchor:y},x):"insideTopRight"===o?_objectSpread({x:i+l-b,y:c+p,textAnchor:g,verticalAnchor:y},x):"insideBottomLeft"===o?_objectSpread({x:i+b,y:c+s-p,textAnchor:m,verticalAnchor:d},x):"insideBottomRight"===o?_objectSpread({x:i+l-b,y:c+s-p,textAnchor:g,verticalAnchor:d},x):(0,a.A)(o)&&((0,u.Et)(o.x)||(0,u._3)(o.x))&&((0,u.Et)(o.y)||(0,u._3)(o.y))?_objectSpread({x:i+(0,u.F4)(o.x,l),y:c+(0,u.F4)(o.y,s),textAnchor:"end",verticalAnchor:"end"},x):_objectSpread({x:i+l/2,y:c+s/2,textAnchor:"middle",verticalAnchor:"middle"},x)};function Label(e){var t,r=e.offset,a=_objectSpread({offset:void 0===r?5:r},_objectWithoutProperties(e,p)),f=a.viewBox,d=a.position,y=a.value,h=a.children,b=a.content,g=a.className,m=a.textBreakAll;if(!f||(0,o.A)(y)&&(0,o.A)(h)&&!(0,n.isValidElement)(b)&&!(0,i.A)(b))return null;if((0,n.isValidElement)(b))return(0,n.cloneElement)(b,a);if((0,i.A)(b)){if(t=(0,n.createElement)(b,a),(0,n.isValidElement)(t))return t}else t=getLabel(a);var v="cx"in f&&(0,u.Et)(f.cx),_=(0,s.J9)(a,!0);if(v&&("insideStart"===d||"insideEnd"===d||"end"===d))return renderRadialLabel(a,t,_);var x=v?getAttrsOfPolarLabel(a):getAttrsOfCartesianLabel(a);return n.createElement(l.E,_extends({className:(0,c.A)("recharts-label",void 0===g?"":g)},_,x,{breakAll:m}),t)}Label.displayName="Label";var parseViewBox=function(e){var t=e.cx,r=e.cy,n=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,c=e.radius,l=e.innerRadius,s=e.outerRadius,f=e.x,p=e.y,d=e.top,y=e.left,h=e.width,b=e.height,g=e.clockWise,m=e.labelViewBox;if(m)return m;if((0,u.Et)(h)&&(0,u.Et)(b)){if((0,u.Et)(f)&&(0,u.Et)(p))return{x:f,y:p,width:h,height:b};if((0,u.Et)(d)&&(0,u.Et)(y))return{x:d,y:y,width:h,height:b}}return(0,u.Et)(f)&&(0,u.Et)(p)?{x:f,y:p,width:0,height:0}:(0,u.Et)(t)&&(0,u.Et)(r)?{cx:t,cy:r,startAngle:o||n||0,endAngle:i||n||0,innerRadius:l||0,outerRadius:s||c||a||0,clockWise:g}:e.viewBox?e.viewBox:{}};Label.parseViewBox=parseViewBox,Label.renderCallByParent=function(e,t){var r,o,c=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e||!e.children&&c&&!e.label)return null;var l=e.children,f=parseViewBox(e),p=(0,s.aS)(l,Label).map(function(e,r){return(0,n.cloneElement)(e,{viewBox:t||f,key:"label-".concat(r)})});return c?[(r=e.label,o=t||f,!r?null:!0===r?n.createElement(Label,{key:"label-implicit",viewBox:o}):(0,u.vh)(r)?n.createElement(Label,{key:"label-implicit",viewBox:o,value:r}):(0,n.isValidElement)(r)?r.type===Label?(0,n.cloneElement)(r,{key:"label-implicit",viewBox:o}):n.createElement(Label,{key:"label-implicit",content:r,viewBox:o}):(0,i.A)(r)?n.createElement(Label,{key:"label-implicit",content:r,viewBox:o}):(0,a.A)(r)?n.createElement(Label,_extends({viewBox:o},r,{key:"label-implicit"})):null)].concat(_toConsumableArray(p)):p}},0x13b1693b:(e,t,r)=>{"use strict";r.d(t,{Z:()=>LabelList});var n=r(0xbad225b5),o=r(0x202470d56),i=r(0x1598e5174),a=r(0x33644bb7),c=r(0x20bafd237),l=r(0xd7f4847),s=r(0x10a0ba9c),u=r(0xd0f20cec),f=r(0x13907dc1a);function _typeof(e){return(_typeof="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)}var p=["valueAccessor"],d=["data","dataKey","clockWise","id","textBreakAll"];function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,t)}}function _iterableToArray(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var defaultAccessor=function(e){return Array.isArray(e.value)?(0,c.A)(e.value):e.value};function LabelList(e){var t=e.valueAccessor,r=void 0===t?defaultAccessor:t,i=_objectWithoutProperties(e,p),a=i.data,c=i.dataKey,y=i.clockWise,h=i.id,b=i.textBreakAll,g=_objectWithoutProperties(i,d);return a&&a.length?n.createElement(s.W,{className:"recharts-label-list"},a.map(function(e,t){var i=(0,o.A)(c)?r(e,t):(0,f.kr)(e&&e.payload,c),a=(0,o.A)(h)?{}:{id:"".concat(h,"-").concat(t)};return n.createElement(l.J,_extends({},(0,u.J9)(e,!0),g,a,{parentViewBox:e.parentViewBox,value:i,textBreakAll:b,viewBox:l.J.parseViewBox((0,o.A)(y)?e:_objectSpread(_objectSpread({},e),{},{clockWise:y})),key:"label-".concat(t),index:t}))})):null}function parseLabelList(e,t){return e?!0===e?n.createElement(LabelList,{key:"labelList-implicit",data:t}):n.isValidElement(e)||(0,a.A)(e)?n.createElement(LabelList,{key:"labelList-implicit",data:t,content:e}):(0,i.A)(e)?n.createElement(LabelList,_extends({data:t},e,{key:"labelList-implicit"})):null:null}function renderCallByParent(e,t){var r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var o=e.children,i=(0,u.aS)(o,LabelList).map(function(e,r){return(0,n.cloneElement)(e,{data:t,key:"labelList-".concat(r)})});return r?[parseLabelList(e.label,t)].concat(_toConsumableArray(i)):i}LabelList.displayName="LabelList",LabelList.renderCallByParent=renderCallByParent},0xa108b107:(e,t,r)=>{"use strict";r.d(t,{s:()=>y});var n=r(0xbad225b5),o=r(0x33644bb7),i=r(0x139443c4a),a=r(0x1c8d10397),c=r(0x337531ea),l=r(0x1b5544108),s=r(0xee79d415);function _typeof(e){return(_typeof="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 _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _callSuper(e,t,r){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,r||[],_getPrototypeOf(e).constructor):t.apply(e,r))}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var u=function(e){function DefaultLegendContent(){return _classCallCheck(this,DefaultLegendContent),_callSuper(this,DefaultLegendContent,arguments)}return _inherits(DefaultLegendContent,e),_createClass(DefaultLegendContent,[{key:"renderIcon",value:function(e){var t=this.props.inactiveColor,r=32/6,o=32/3,i=e.inactive?t:e.color;if("plainline"===e.type)return n.createElement("line",{strokeWidth:4,fill:"none",stroke:i,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:16,x2:32,y2:16,className:"recharts-legend-icon"});if("line"===e.type)return n.createElement("path",{strokeWidth:4,fill:"none",stroke:i,d:"M0,".concat(16,"h").concat(o,`
            A`).concat(r,",").concat(r,",0,1,1,").concat(2*o,",").concat(16,`
            H`).concat(32,"M").concat(2*o,",").concat(16,`
            A`).concat(r,",").concat(r,",0,1,1,").concat(o,",").concat(16),className:"recharts-legend-icon"});if("rect"===e.type)return n.createElement("path",{stroke:"none",fill:i,d:"M0,".concat(4,"h").concat(32,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(n.isValidElement(e.legendIcon)){var a=_objectSpread({},e);return delete a.legendIcon,n.cloneElement(e.legendIcon,a)}return n.createElement(l.i,{fill:i,cx:16,cy:16,size:32,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,t=this.props,r=t.payload,l=t.iconSize,u=t.layout,f=t.formatter,p=t.inactiveColor,d={x:0,y:0,width:32,height:32},y={display:"horizontal"===u?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map(function(t,r){var u=t.formatter||f,b=(0,i.A)(_defineProperty(_defineProperty({"recharts-legend-item":!0},"legend-item-".concat(r),!0),"inactive",t.inactive));if("none"===t.type)return null;var g=(0,o.A)(t.value)?null:t.value;(0,a.R)(!(0,o.A)(t.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var m=t.inactive?p:t.color;return n.createElement("li",_extends({className:b,style:y,key:"legend-item-".concat(r)},(0,s.XC)(e.props,t,r)),n.createElement(c.u,{width:l,height:l,viewBox:d,style:h},e.renderIcon(t)),n.createElement("span",{className:"recharts-legend-item-text",style:{color:m}},u?u(g,t,r):g))})}},{key:"render",value:function(){var e=this.props,t=e.payload,r=e.layout,o=e.align;return t&&t.length?n.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===r?o:"left"}},this.renderItems()):null}}])}(n.PureComponent);_defineProperty(u,"displayName","Legend"),_defineProperty(u,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var f=r(0x7bea1699),p=r(0x2a114bca);function Legend_typeof(e){return(Legend_typeof="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)}var d=["ref"];function Legend_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Legend_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Legend_ownKeys(Object(r),!0).forEach(function(t){Legend_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Legend_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Legend_classCallCheck(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function Legend_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Legend_toPropertyKey(n.key),n)}}function Legend_createClass(e,t,r){return t&&Legend_defineProperties(e.prototype,t),r&&Legend_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Legend_callSuper(e,t,r){return t=Legend_getPrototypeOf(t),Legend_possibleConstructorReturn(e,Legend_isNativeReflectConstruct()?Reflect.construct(t,r||[],Legend_getPrototypeOf(e).constructor):t.apply(e,r))}function Legend_possibleConstructorReturn(e,t){if(t&&("object"===Legend_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return Legend_assertThisInitialized(e)}function Legend_assertThisInitialized(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Legend_isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Legend_isNativeReflectConstruct=function(){return!!e})()}function Legend_getPrototypeOf(e){return(Legend_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Legend_inherits(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Legend_setPrototypeOf(e,t)}function Legend_setPrototypeOf(e,t){return(Legend_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Legend_defineProperty(e,t,r){return(t=Legend_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Legend_toPropertyKey(e){var t=Legend_toPrimitive(e,"string");return"symbol"==Legend_typeof(t)?t:t+""}function Legend_toPrimitive(e,t){if("object"!=Legend_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Legend_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function defaultUniqBy(e){return e.value}function renderContent(e,t){if(n.isValidElement(e))return n.cloneElement(e,t);if("function"==typeof e)return n.createElement(e,t);t.ref;var r=_objectWithoutProperties(t,d);return n.createElement(u,r)}var y=function(e){function Legend(){var e;Legend_classCallCheck(this,Legend);for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return Legend_defineProperty(e=Legend_callSuper(this,Legend,[].concat(r)),"lastBoundingBox",{width:-1,height:-1}),e}return Legend_inherits(Legend,e),Legend_createClass(Legend,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();return e.height=this.wrapperNode.offsetHeight,e.width=this.wrapperNode.offsetWidth,e}return null}},{key:"updateBBox",value:function(){var e=this.props.onBBoxUpdate,t=this.getBBox();t?(Math.abs(t.width-this.lastBoundingBox.width)>1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t)):(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Legend_objectSpread({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(e){var t,r,n=this.props,o=n.layout,i=n.align,a=n.verticalAlign,c=n.margin,l=n.chartWidth,s=n.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===i&&"vertical"===o?{left:((l||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{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)||(r="middle"===a?{top:((s||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:c&&c.bottom||0}:{top:c&&c.top||0}),Legend_objectSpread(Legend_objectSpread({},t),r)}},{key:"render",value:function(){var e=this,t=this.props,r=t.content,o=t.width,i=t.height,a=t.wrapperStyle,c=t.payloadUniqBy,l=t.payload,s=Legend_objectSpread(Legend_objectSpread({position:"absolute",width:o||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return n.createElement("div",{className:"recharts-legend-wrapper",style:s,ref:function(t){e.wrapperNode=t}},renderContent(r,Legend_objectSpread(Legend_objectSpread({},this.props),{},{payload:(0,p.s)(l,c,defaultUniqBy)})))}}],[{key:"getWithHeight",value:function(e,t){var r=Legend_objectSpread(Legend_objectSpread({},this.defaultProps),e.props).layout;return"vertical"===r&&(0,f.Et)(e.props.height)?{height:e.props.height}:"horizontal"===r?{width:e.props.width||t}:null}}])}(n.PureComponent);Legend_defineProperty(y,"displayName","Legend"),Legend_defineProperty(y,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"})},0x210ff5f34:(e,t,r)=>{"use strict";r.d(t,{u:()=>s});var n=r(0x139443c4a),o=r(0xbad225b5),i=r(0x162afc153),a=r(0x7bea1699),c=r(0x1c8d10397),l=r(0xd0f20cec);function _typeof(e){return(_typeof="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 ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,t)}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _iterableToArrayLimit(e,t){var r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}function _arrayWithHoles(e){if(Array.isArray(e))return e}var s=(0,o.forwardRef)(function(e,t){var r=e.aspect,s=e.initialDimension,u=void 0===s?{width:-1,height:-1}:s,f=e.width,p=void 0===f?"100%":f,d=e.height,y=void 0===d?"100%":d,h=e.minWidth,b=void 0===h?0:h,g=e.minHeight,m=e.maxHeight,v=e.children,_=e.debounce,x=void 0===_?0:_,P=e.id,A=e.className,S=e.onResize,O=e.style,j=(0,o.useRef)(null),w=(0,o.useRef)();w.current=S,(0,o.useImperativeHandle)(t,function(){return Object.defineProperty(j.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),j.current},configurable:!0})});var C=_slicedToArray((0,o.useState)({containerWidth:u.width,containerHeight:u.height}),2),T=C[0],k=C[1],E=(0,o.useCallback)(function(e,t){k(function(r){var n=Math.round(e),o=Math.round(t);return r.containerWidth===n&&r.containerHeight===o?r:{containerWidth:n,containerHeight:o}})},[]);(0,o.useEffect)(function(){var callback=function(e){var t,r=e[0].contentRect,n=r.width,o=r.height;E(n,o),null==(t=w.current)||t.call(w,n,o)};x>0&&(callback=(0,i.A)(callback,x,{trailing:!0,leading:!1}));var e=new ResizeObserver(callback),t=j.current.getBoundingClientRect();return E(t.width,t.height),e.observe(j.current),function(){e.disconnect()}},[E,x]);var M=(0,o.useMemo)(function(){var e=T.containerWidth,t=T.containerHeight;if(e<0||t<0)return null;(0,c.R)((0,a._3)(p)||(0,a._3)(y),`The width(%s) and height(%s) are both fixed numbers,
       maybe you don't need to use a ResponsiveContainer.`,p,y),(0,c.R)(!r||r>0,"The aspect(%s) must be greater than zero.",r);var n=(0,a._3)(p)?e:p,i=(0,a._3)(y)?t:y;r&&r>0&&(n?i=n/r:i&&(n=i*r),m&&i>m&&(i=m)),(0,c.R)(n>0||i>0,`The width(%s) and height(%s) of chart should be greater than 0,
       please check the style of container, or the props width(%s) and height(%s),
       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
       height and width.`,n,i,p,y,b,g,r);var s=!Array.isArray(v)&&(0,l.Mn)(v.type).endsWith("Chart");return o.Children.map(v,function(e){return o.isValidElement(e)?(0,o.cloneElement)(e,_objectSpread({width:n,height:i},s?{style:_objectSpread({height:"100%",width:"100%",maxHeight:i,maxWidth:n},e.props.style)}:{})):e})},[r,v,y,m,g,b,T,p]);return o.createElement("div",{id:P?"".concat(P):void 0,className:(0,n.A)("recharts-responsive-container",A),style:_objectSpread(_objectSpread({},void 0===O?{}:O),{},{width:p,height:y,minWidth:b,minHeight:g,maxHeight:m}),ref:j},M)})},0x187d2c3a3:(e,t,r)=>{"use strict";r.d(t,{E:()=>Text});var n=r(0xbad225b5),o=r(0x202470d56),i=r(0x139443c4a),a=r(0x7bea1699),c=r(0x29ad96af),l=r(0xd0f20cec),s=r(0x13e81779d);function _typeof(e){return(_typeof="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 _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,t)}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _iterableToArrayLimit(e,t){var r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _classCallCheck(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var u=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,f=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,p=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,d=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,y={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},h=Object.keys(y);function convertToPx(e,t){return e*y[t]}var b=function(){function DecimalCSS(e,t){_classCallCheck(this,DecimalCSS),this.num=e,this.unit=t,this.num=e,this.unit=t,Number.isNaN(e)&&(this.unit=""),""===t||p.test(t)||(this.num=NaN,this.unit=""),h.includes(t)&&(this.num=convertToPx(e,t),this.unit="px")}return _createClass(DecimalCSS,[{key:"add",value:function(e){return this.unit!==e.unit?new DecimalCSS(NaN,""):new DecimalCSS(this.num+e.num,this.unit)}},{key:"subtract",value:function(e){return this.unit!==e.unit?new DecimalCSS(NaN,""):new DecimalCSS(this.num-e.num,this.unit)}},{key:"multiply",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new DecimalCSS(NaN,""):new DecimalCSS(this.num*e.num,this.unit||e.unit)}},{key:"divide",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new DecimalCSS(NaN,""):new DecimalCSS(this.num/e.num,this.unit||e.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(e){var t,r=_slicedToArray(null!=(t=d.exec(e))?t:[],3),n=r[1],o=r[2];return new DecimalCSS(parseFloat(n),null!=o?o:"")}}])}();function calculateArithmetic(e){if(e.includes("NaN"))return"NaN";for(var t=e;t.includes("*")||t.includes("/");){var r,n=_slicedToArray(null!=(r=u.exec(t))?r:[],4),o=n[1],i=n[2],a=n[3],c=b.parse(null!=o?o:""),l=b.parse(null!=a?a:""),s="*"===i?c.multiply(l):c.divide(l);if(s.isNaN())return"NaN";t=t.replace(u,s.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var p,d=_slicedToArray(null!=(p=f.exec(t))?p:[],4),y=d[1],h=d[2],g=d[3],m=b.parse(null!=y?y:""),v=b.parse(null!=g?g:""),_="+"===h?m.add(v):m.subtract(v);if(_.isNaN())return"NaN";t=t.replace(f,_.toString())}return t}var g=/\(([^()]*)\)/;function calculateParentheses(e){for(var t=e;t.includes("(");){var r=_slicedToArray(g.exec(t),2)[1];t=t.replace(g,calculateArithmetic(r))}return t}function evaluateExpression(e){var t=e.replace(/\s+/g,"");return calculateArithmetic(t=calculateParentheses(t))}function safeEvaluateExpression(e){try{return evaluateExpression(e)}catch{return"NaN"}}function reduceCSSCalc(e){var t=safeEvaluateExpression(e.slice(5,-1));return"NaN"===t?"":t}var m=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],v=["dx","dy","angle","className","breakAll"];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Text_slicedToArray(e,t){return Text_arrayWithHoles(e)||Text_iterableToArrayLimit(e,t)||Text_unsupportedIterableToArray(e,t)||Text_nonIterableRest()}function Text_nonIterableRest(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Text_unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return Text_arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Text_arrayLikeToArray(e,t)}}function Text_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Text_iterableToArrayLimit(e,t){var r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}function Text_arrayWithHoles(e){if(Array.isArray(e))return e}var _=/[ \f\n\r\t\v\u2028\u2029]+/,calculateWordWidths=function(e){var t=e.children,r=e.breakAll,n=e.style;try{var i=[];(0,o.A)(t)||(i=r?t.toString().split(""):t.toString().split(_));var a=i.map(function(e){return{word:e,width:(0,s.Pu)(e,n).width}}),c=r?0:(0,s.Pu)("\xa0",n).width;return{wordsWithComputedWidth:a,spaceWidth:c}}catch{return null}},calculateWordsByLines=function(e,t,r,n,o){var i,c=e.maxLines,l=e.children,s=e.style,u=e.breakAll,f=(0,a.Et)(c),calculate=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.reduce(function(e,t){var i=t.word,a=t.width,c=e[e.length-1];return c&&(null==n||o||c.width+a+r<Number(n))?(c.words.push(i),c.width+=a+r):e.push({words:[i],width:a}),e},[])},p=calculate(t);if(!f)return p;for(var checkOverflow=function(e){var t=calculate(calculateWordWidths({breakAll:u,style:s,children:l.slice(0,e)+"\u2026"}).wordsWithComputedWidth);return[t.length>c||t.reduce(function(e,t){return e.width>t.width?e:t}).width>Number(n),t]},d=0,y=l.length-1,h=0;d<=y&&h<=l.length-1;){var b=Math.floor((d+y)/2),g=Text_slicedToArray(checkOverflow(b-1),2),m=g[0],v=g[1],_=Text_slicedToArray(checkOverflow(b),1)[0];if(m||_||(d=b+1),m&&_&&(y=b-1),!m&&_){i=v;break}h++}return i||p},getWordsWithoutCalculate=function(e){return[{words:(0,o.A)(e)?[]:e.toString().split(_)}]},getWordsByLines=function(e){var t=e.width,r=e.scaleToFit,n=e.children,o=e.style,i=e.breakAll,a=e.maxLines;if((t||r)&&!c.m.isSsr){var l=calculateWordWidths({breakAll:i,children:n,style:o});if(!l)return getWordsWithoutCalculate(n);var s=l.wordsWithComputedWidth,u=l.spaceWidth;return calculateWordsByLines({breakAll:i,children:n,maxLines:a,style:o},s,u,t,r)}return getWordsWithoutCalculate(n)},x="#808080",Text=function(e){var t,r=e.x,o=void 0===r?0:r,c=e.y,s=void 0===c?0:c,u=e.lineHeight,f=void 0===u?"1em":u,p=e.capHeight,d=void 0===p?"0.71em":p,y=e.scaleToFit,h=void 0!==y&&y,b=e.textAnchor,g=e.verticalAnchor,_=e.fill,P=void 0===_?x:_,A=_objectWithoutProperties(e,m),S=(0,n.useMemo)(function(){return getWordsByLines({breakAll:A.breakAll,children:A.children,maxLines:A.maxLines,scaleToFit:h,style:A.style,width:A.width})},[A.breakAll,A.children,A.maxLines,h,A.style,A.width]),O=A.dx,j=A.dy,w=A.angle,C=A.className,T=A.breakAll,k=_objectWithoutProperties(A,v);if(!(0,a.vh)(o)||!(0,a.vh)(s))return null;var E=o+((0,a.Et)(O)?O:0),M=s+((0,a.Et)(j)?j:0);switch(void 0===g?"end":g){case"start":t=reduceCSSCalc("calc(".concat(d,")"));break;case"middle":t=reduceCSSCalc("calc(".concat((S.length-1)/2," * -").concat(f," + (").concat(d," / 2))"));break;default:t=reduceCSSCalc("calc(".concat(S.length-1," * -").concat(f,")"))}var I=[];if(h){var D=S[0].width,R=A.width;I.push("scale(".concat(((0,a.Et)(R)?R/D:1)/D,")"))}return w&&I.push("rotate(".concat(w,", ").concat(E,", ").concat(M,")")),I.length&&(k.transform=I.join(" ")),n.createElement("text",_extends({},(0,l.J9)(k,!0),{x:E,y:M,className:(0,i.A)("recharts-text",C),textAnchor:void 0===b?"start":b,fill:P.includes("url")?x:P}),S.map(function(e,r){var o=e.words.join(T?"":" ");return n.createElement("tspan",{x:E,dy:0===r?t:f,key:"".concat(o,"-").concat(r)},o)}))}},0x797790b2:(e,t,r)=>{"use strict";r.d(t,{m:()=>d});var n=r(0xbad225b5),o=r(0x17294c72a),i=r(0x202470d56),a=r(0x139443c4a),c=r(0x7bea1699);function _typeof(e){return(_typeof="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 _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,t)}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _iterableToArrayLimit(e,t){var r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function defaultFormatter(e){return Array.isArray(e)&&(0,c.vh)(e[0])&&(0,c.vh)(e[1])?e.join(" ~ "):e}var DefaultTooltipContent=function(e){var t=e.separator,r=void 0===t?" : ":t,l=e.contentStyle,s=e.itemStyle,u=void 0===s?{}:s,f=e.labelStyle,p=e.payload,d=e.formatter,y=e.itemSorter,h=e.wrapperClassName,b=e.labelClassName,g=e.label,m=e.labelFormatter,v=e.accessibilityLayer,_=_objectSpread({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},void 0===l?{}:l),x=_objectSpread({margin:0},void 0===f?{}:f),P=!(0,i.A)(g),A=P?g:"",S=(0,a.A)("recharts-default-tooltip",h),O=(0,a.A)("recharts-tooltip-label",b);return P&&m&&null!=p&&(A=m(g,p)),n.createElement("div",_extends({className:S,style:_},void 0!==v&&v?{role:"status","aria-live":"assertive"}:{}),n.createElement("p",{className:O,style:x},n.isValidElement(A)?A:"".concat(A)),function(){if(p&&p.length){var e=(y?(0,o.A)(p,y):p).map(function(e,t){if("none"===e.type)return null;var o=_objectSpread({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},u),i=e.formatter||d||defaultFormatter,a=e.value,l=e.name,s=a,f=l;if(i&&null!=s&&null!=f){var y=i(a,l,e,t,p);if(Array.isArray(y)){var h=_slicedToArray(y,2);s=h[0],f=h[1]}else s=y}return n.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(t),style:o},(0,c.vh)(f)?n.createElement("span",{className:"recharts-tooltip-item-name"},f):null,(0,c.vh)(f)?n.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,n.createElement("span",{className:"recharts-tooltip-item-value"},s),n.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))});return n.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null}())};function translate_typeof(e){return(translate_typeof="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 translate_defineProperty(e,t,r){return(t=translate_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function translate_toPropertyKey(e){var t=translate_toPrimitive(e,"string");return"symbol"==translate_typeof(t)?t:t+""}function translate_toPrimitive(e,t){if("object"!=translate_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=translate_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var l="recharts-tooltip-wrapper",s={visibility:"hidden"};function getTooltipCSSClassName(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return(0,a.A)(l,translate_defineProperty(translate_defineProperty(translate_defineProperty(translate_defineProperty({},"".concat(l,"-right"),(0,c.Et)(r)&&t&&(0,c.Et)(t.x)&&r>=t.x),"".concat(l,"-left"),(0,c.Et)(r)&&t&&(0,c.Et)(t.x)&&r<t.x),"".concat(l,"-bottom"),(0,c.Et)(n)&&t&&(0,c.Et)(t.y)&&n>=t.y),"".concat(l,"-top"),(0,c.Et)(n)&&t&&(0,c.Et)(t.y)&&n<t.y))}function getTooltipTranslateXY(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,o=e.offsetTopLeft,i=e.position,a=e.reverseDirection,l=e.tooltipDimension,s=e.viewBox,u=e.viewBoxDimension;if(i&&(0,c.Et)(i[n]))return i[n];var f=r[n]-l-o,p=r[n]+o;return t[n]?a[n]?f:p:a[n]?f<s[n]?Math.max(p,s[n]):Math.max(f,s[n]):p+l>s[n]+u?Math.max(f,s[n]):Math.max(p,s[n])}function getTransformStyle(e){var t=e.translateX,r=e.translateY;return{transform:e.useTranslate3d?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function getTooltipTranslate(e){var t,r,n,o=e.allowEscapeViewBox,i=e.coordinate,a=e.offsetTopLeft,c=e.position,l=e.reverseDirection,u=e.tooltipBox,f=e.useTranslate3d,p=e.viewBox;return{cssProperties:t=u.height>0&&u.width>0&&i?getTransformStyle({translateX:r=getTooltipTranslateXY({allowEscapeViewBox:o,coordinate:i,key:"x",offsetTopLeft:a,position:c,reverseDirection:l,tooltipDimension:u.width,viewBox:p,viewBoxDimension:p.width}),translateY:n=getTooltipTranslateXY({allowEscapeViewBox:o,coordinate:i,key:"y",offsetTopLeft:a,position:c,reverseDirection:l,tooltipDimension:u.height,viewBox:p,viewBoxDimension:p.height}),useTranslate3d:f}):s,cssClasses:getTooltipCSSClassName({translateX:r,translateY:n,coordinate:i})}}function TooltipBoundingBox_typeof(e){return(TooltipBoundingBox_typeof="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 TooltipBoundingBox_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function TooltipBoundingBox_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?TooltipBoundingBox_ownKeys(Object(r),!0).forEach(function(t){TooltipBoundingBox_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TooltipBoundingBox_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,TooltipBoundingBox_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _callSuper(e,t,r){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,r||[],_getPrototypeOf(e).constructor):t.apply(e,r))}function _possibleConstructorReturn(e,t){if(t&&("object"===TooltipBoundingBox_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function TooltipBoundingBox_defineProperty(e,t,r){return(t=TooltipBoundingBox_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TooltipBoundingBox_toPropertyKey(e){var t=TooltipBoundingBox_toPrimitive(e,"string");return"symbol"==TooltipBoundingBox_typeof(t)?t:t+""}function TooltipBoundingBox_toPrimitive(e,t){if("object"!=TooltipBoundingBox_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=TooltipBoundingBox_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var u=function(e){function TooltipBoundingBox(){var e;_classCallCheck(this,TooltipBoundingBox);for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return TooltipBoundingBox_defineProperty(e=_callSuper(this,TooltipBoundingBox,[].concat(r)),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),TooltipBoundingBox_defineProperty(e,"handleKeyDown",function(t){if("Escape"===t.key){var r,n,o,i;e.setState({dismissed:!0,dismissedAtCoordinate:{x:null!=(r=null==(n=e.props.coordinate)?void 0:n.x)?r:0,y:null!=(o=null==(i=e.props.coordinate)?void 0:i.y)?o:0}})}}),e}return _inherits(TooltipBoundingBox,e),_createClass(TooltipBoundingBox,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(Math.abs(e.width-this.state.lastBoundingBox.width)>1||Math.abs(e.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:e.width,height:e.height}})}else(-1!==this.state.lastBoundingBox.width||-1!==this.state.lastBoundingBox.height)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var e,t;this.props.active&&this.updateBBox(),this.state.dismissed&&((null==(e=this.props.coordinate)?void 0:e.x)!==this.state.dismissedAtCoordinate.x||(null==(t=this.props.coordinate)?void 0:t.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var e=this,t=this.props,r=t.active,o=t.allowEscapeViewBox,i=t.animationDuration,a=t.animationEasing,c=t.children,l=t.coordinate,s=t.hasPayload,u=t.isAnimationActive,f=t.offset,p=t.position,d=t.reverseDirection,y=t.useTranslate3d,h=t.viewBox,b=t.wrapperStyle,g=getTooltipTranslate({allowEscapeViewBox:o,coordinate:l,offsetTopLeft:f,position:p,reverseDirection:d,tooltipBox:this.state.lastBoundingBox,useTranslate3d:y,viewBox:h}),m=g.cssClasses,v=g.cssProperties,_=TooltipBoundingBox_objectSpread(TooltipBoundingBox_objectSpread({transition:u&&r?"transform ".concat(i,"ms ").concat(a):void 0},v),{},{pointerEvents:"none",visibility:!this.state.dismissed&&r&&s?"visible":"hidden",position:"absolute",top:0,left:0},b);return n.createElement("div",{tabIndex:-1,className:m,style:_,ref:function(t){e.wrapperNode=t}},c)}}])}(n.PureComponent),f=r(0x29ad96af),p=r(0x2a114bca);function Tooltip_typeof(e){return(Tooltip_typeof="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 Tooltip_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Tooltip_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tooltip_ownKeys(Object(r),!0).forEach(function(t){Tooltip_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tooltip_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Tooltip_classCallCheck(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function Tooltip_defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Tooltip_toPropertyKey(n.key),n)}}function Tooltip_createClass(e,t,r){return t&&Tooltip_defineProperties(e.prototype,t),r&&Tooltip_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tooltip_callSuper(e,t,r){return t=Tooltip_getPrototypeOf(t),Tooltip_possibleConstructorReturn(e,Tooltip_isNativeReflectConstruct()?Reflect.construct(t,r||[],Tooltip_getPrototypeOf(e).constructor):t.apply(e,r))}function Tooltip_possibleConstructorReturn(e,t){if(t&&("object"===Tooltip_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return Tooltip_assertThisInitialized(e)}function Tooltip_assertThisInitialized(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tooltip_isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Tooltip_isNativeReflectConstruct=function(){return!!e})()}function Tooltip_getPrototypeOf(e){return(Tooltip_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Tooltip_inherits(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tooltip_setPrototypeOf(e,t)}function Tooltip_setPrototypeOf(e,t){return(Tooltip_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Tooltip_defineProperty(e,t,r){return(t=Tooltip_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tooltip_toPropertyKey(e){var t=Tooltip_toPrimitive(e,"string");return"symbol"==Tooltip_typeof(t)?t:t+""}function Tooltip_toPrimitive(e,t){if("object"!=Tooltip_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Tooltip_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function defaultUniqBy(e){return e.dataKey}function renderContent(e,t){return n.isValidElement(e)?n.cloneElement(e,t):"function"==typeof e?n.createElement(e,t):n.createElement(DefaultTooltipContent,t)}var d=function(e){function Tooltip(){return Tooltip_classCallCheck(this,Tooltip),Tooltip_callSuper(this,Tooltip,arguments)}return Tooltip_inherits(Tooltip,e),Tooltip_createClass(Tooltip,[{key:"render",value:function(){var e=this,t=this.props,r=t.active,o=t.allowEscapeViewBox,i=t.animationDuration,a=t.animationEasing,c=t.content,l=t.coordinate,s=t.filterNull,f=t.isAnimationActive,d=t.offset,y=t.payload,h=t.payloadUniqBy,b=t.position,g=t.reverseDirection,m=t.useTranslate3d,v=t.viewBox,_=t.wrapperStyle,x=null!=y?y:[];s&&x.length&&(x=(0,p.s)(y.filter(function(t){return null!=t.value&&(!0!==t.hide||e.props.includeHidden)}),h,defaultUniqBy));var P=x.length>0;return n.createElement(u,{allowEscapeViewBox:o,animationDuration:i,animationEasing:a,isAnimationActive:f,active:r,coordinate:l,hasPayload:P,offset:d,position:b,reverseDirection:g,useTranslate3d:m,viewBox:v,wrapperStyle:_},renderContent(c,Tooltip_objectSpread(Tooltip_objectSpread({},this.props),{},{payload:x})))}}])}(n.PureComponent);Tooltip_defineProperty(d,"displayName","Tooltip"),Tooltip_defineProperty(d,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!f.m.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}})},0x10a0ba9c:(e,t,r)=>{"use strict";r.d(t,{W:()=>c});var n=r(0xbad225b5),o=r(0x139443c4a),i=r(0xd0f20cec),a=["children","className"];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var c=n.forwardRef(function(e,t){var r=e.children,c=e.className,l=_objectWithoutProperties(e,a),s=(0,o.A)("recharts-layer",c);return n.createElement("g",_extends({className:s},(0,i.J9)(l,!0),{ref:t}),r)})},0x337531ea:(e,t,r)=>{"use strict";r.d(t,{u:()=>Surface});var n=r(0xbad225b5),o=r(0x139443c4a),i=r(0xd0f20cec),a=["children","width","height","viewBox","className","style","title","desc"];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Surface(e){var t=e.children,r=e.width,c=e.height,l=e.viewBox,s=e.className,u=e.style,f=e.title,p=e.desc,d=_objectWithoutProperties(e,a),y=l||{width:r,height:c,x:0,y:0},h=(0,o.A)("recharts-surface",s);return n.createElement("svg",_extends({},(0,i.J9)(d,!0,"svg"),{className:h,width:r,height:c,style:u,viewBox:"".concat(y.x," ").concat(y.y," ").concat(y.width," ").concat(y.height)}),n.createElement("title",null,f),n.createElement("desc",null,p),t)}},0xd771d54c:(e,t,r)=>{"use strict";r.d(t,{DR:()=>ChartLayoutContextProvider,pj:()=>useArbitraryXAxis,rY:()=>useChartHeight,yi:()=>useChartWidth,Yp:()=>useClipPathId,hj:()=>useOffset,sk:()=>useViewBox,AF:()=>useXAxisOrThrow,Nk:()=>useYAxisOrThrow,$G:()=>useYAxisWithFiniteDomainOrRandom});var n=r(0xbad225b5),o=r(0x1a54ab070),i=r(0x1e2051844),a=r(0x249159109),c=(0,r(0xca924ee1).A)(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return"l"+e.left+"t"+e.top+"w"+e.width+"h"+e.height}),l=r(0x7bea1699),s=(0,n.createContext)(void 0),u=(0,n.createContext)(void 0),f=(0,n.createContext)(void 0),p=(0,n.createContext)({}),d=(0,n.createContext)(void 0),y=(0,n.createContext)(0),h=(0,n.createContext)(0),ChartLayoutContextProvider=function(e){var t=e.state,r=t.xAxisMap,o=t.yAxisMap,i=t.offset,a=e.clipPathId,l=e.children,b=e.width,g=e.height,m=c(i);return n.createElement(s.Provider,{value:r},n.createElement(u.Provider,{value:o},n.createElement(p.Provider,{value:i},n.createElement(f.Provider,{value:m},n.createElement(d.Provider,{value:a},n.createElement(y.Provider,{value:g},n.createElement(h.Provider,{value:b},l)))))))},useClipPathId=function(){return(0,n.useContext)(d)},useXAxisOrThrow=function(e){var t=(0,n.useContext)(s);null==t&&(0,o.A)(!1);var r=t[e];return null==r&&(0,o.A)(!1),r},useArbitraryXAxis=function(){var e=(0,n.useContext)(s);return(0,l.lX)(e)},useYAxisWithFiniteDomainOrRandom=function(){var e=(0,n.useContext)(u);return(0,i.A)(e,function(e){return(0,a.A)(e.domain,Number.isFinite)})||(0,l.lX)(e)},useYAxisOrThrow=function(e){var t=(0,n.useContext)(u);null==t&&(0,o.A)(!1);var r=t[e];return null==r&&(0,o.A)(!1),r},useViewBox=function(){return(0,n.useContext)(f)},useOffset=function(){return(0,n.useContext)(p)},useChartWidth=function(){return(0,n.useContext)(h)},useChartHeight=function(){return(0,n.useContext)(y)}},0x10cca74a0:(e,t,r)=>{"use strict";r.d(t,{F:()=>S});var n=r(0xbad225b5),o=r(0x7750ad3e),i=r(0x77727995),a=r(0x9e671ad),c=r(0x202470d56),l=r(0x33644bb7),s=r(0x139443c4a),u=r(0x10a0ba9c),f=r(0xb1af60e9),p=r(0x187d2c3a3),d=r(0xd7f4847),y=r(0x13b1693b),h=r(0xa504df3f),b=r(0xd0f20cec),g=r(0x29ad96af),m=r(0x148b36991),v=r(0x7bea1699),_=r(0x13907dc1a),x=r(0x1c8d10397),P=r(0xee79d415),A=r(0x81a138ba);function _typeof(e){return(_typeof="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 _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _callSuper(e,t,r){return t=_getPrototypeOf(t),_possibleConstructorReturn(e,_isNativeReflectConstruct()?Reflect.construct(t,r||[],_getPrototypeOf(e).constructor):t.apply(e,r))}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var S=function(e){function Pie(e){var t;return _classCallCheck(this,Pie),_defineProperty(t=_callSuper(this,Pie,[e]),"pieRef",null),_defineProperty(t,"sectorRefs",[]),_defineProperty(t,"id",(0,v.NF)("recharts-pie-")),_defineProperty(t,"handleAnimationEnd",function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),(0,l.A)(e)&&e()}),_defineProperty(t,"handleAnimationStart",function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),(0,l.A)(e)&&e()}),t.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,sectorToFocus:0},t}return _inherits(Pie,e),_createClass(Pie,[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"hasActiveIndex",value:function(){var e=this.props.activeIndex;return Array.isArray(e)?0!==e.length:e||0===e}},{key:"renderLabels",value:function(e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var t=this.props,r=t.label,o=t.labelLine,i=t.dataKey,a=t.valueKey,l=(0,b.J9)(this.props,!1),s=(0,b.J9)(r,!1),f=(0,b.J9)(o,!1),p=r&&r.offsetRadius||20,d=e.map(function(e,t){var d=(e.startAngle+e.endAngle)/2,y=(0,m.IZ)(e.cx,e.cy,e.outerRadius+p,d),h=_objectSpread(_objectSpread(_objectSpread(_objectSpread({},l),e),{},{stroke:"none"},s),{},{index:t,textAnchor:Pie.getTextAnchor(y.x,e.cx)},y),b=_objectSpread(_objectSpread(_objectSpread(_objectSpread({},l),e),{},{fill:"none",stroke:e.fill},f),{},{index:t,points:[(0,m.IZ)(e.cx,e.cy,e.outerRadius,d),y]}),g=i;return(0,c.A)(i)&&(0,c.A)(a)?g="value":(0,c.A)(i)&&(g=a),n.createElement(u.W,{key:"label-".concat(e.startAngle,"-").concat(e.endAngle,"-").concat(e.midAngle,"-").concat(t)},o&&Pie.renderLabelLineItem(o,b,"line"),Pie.renderLabelItem(r,h,(0,_.kr)(e,g)))});return n.createElement(u.W,{className:"recharts-pie-labels"},d)}},{key:"renderSectorsStatically",value:function(e){var t=this,r=this.props,o=r.activeShape,i=r.blendStroke,a=r.inactiveShape;return e.map(function(r,c){if((null==r?void 0:r.startAngle)===0&&(null==r?void 0:r.endAngle)===0&&1!==e.length)return null;var l=t.isActiveIndex(c),s=a&&t.hasActiveIndex()?a:null,f=_objectSpread(_objectSpread({},r),{},{stroke:i?r.fill:r.stroke,tabIndex:-1});return n.createElement(u.W,_extends({ref:function(e){e&&!t.sectorRefs.includes(e)&&t.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},(0,P.XC)(t.props,r,c),{key:"sector-".concat(null==r?void 0:r.startAngle,"-").concat(null==r?void 0:r.endAngle,"-").concat(r.midAngle,"-").concat(c)}),n.createElement(A.yp,_extends({option:l?o:s,isActive:l,shapeType:"sector"},f)))})}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,r=t.sectors,a=t.isAnimationActive,c=t.animationBegin,l=t.animationDuration,s=t.animationEasing,f=t.animationId,p=this.state,d=p.prevSectors,y=p.prevIsAnimationActive;return n.createElement(o.Ay,{begin:c,duration:l,isActive:a,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(y),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(t){var o=t.t,a=[],c=(r&&r[0]).startAngle;return r.forEach(function(e,t){var r=d&&d[t],n=t>0?(0,i.A)(e,"paddingAngle",0):0;if(r){var l=(0,v.Dj)(r.endAngle-r.startAngle,e.endAngle-e.startAngle),s=_objectSpread(_objectSpread({},e),{},{startAngle:c+n,endAngle:c+l(o)+n});a.push(s),c=s.endAngle}else{var u=e.endAngle,f=e.startAngle,p=(0,v.Dj)(0,u-f)(o),y=_objectSpread(_objectSpread({},e),{},{startAngle:c+n,endAngle:c+p+n});a.push(y),c=y.endAngle}}),n.createElement(u.W,null,e.renderSectorsStatically(a))})}},{key:"attachKeyboardHandlers",value:function(e){var t=this;e.onkeydown=function(e){if(!e.altKey)switch(e.key){case"ArrowLeft":var r=++t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[r].focus(),t.setState({sectorToFocus:r});break;case"ArrowRight":var n=--t.state.sectorToFocus<0?t.sectorRefs.length-1:t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[n].focus(),t.setState({sectorToFocus:n});break;case"Escape":t.sectorRefs[t.state.sectorToFocus].blur(),t.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,r=e.isAnimationActive,n=this.state.prevSectors;return r&&t&&t.length&&(!n||!(0,a.A)(n,t))?this.renderSectorsWithAnimation():this.renderSectorsStatically(t)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var e=this,t=this.props,r=t.hide,o=t.sectors,i=t.className,a=t.label,c=t.cx,l=t.cy,f=t.innerRadius,p=t.outerRadius,h=t.isAnimationActive,b=this.state.isAnimationFinished;if(r||!o||!o.length||!(0,v.Et)(c)||!(0,v.Et)(l)||!(0,v.Et)(f)||!(0,v.Et)(p))return null;var g=(0,s.A)("recharts-pie",i);return n.createElement(u.W,{tabIndex:this.props.rootTabIndex,className:g,ref:function(t){e.pieRef=t}},this.renderSectors(),a&&this.renderLabels(o),d.J.renderCallByParent(this.props,null,!1),(!h||b)&&y.Z.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return t.prevIsAnimationActive!==e.isAnimationActive?{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[],isAnimationFinished:!0}:e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors,isAnimationFinished:!0}:e.sectors!==t.curSectors?{curSectors:e.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":e<t?"end":"middle"}},{key:"renderLabelLineItem",value:function(e,t,r){if(n.isValidElement(e))return n.cloneElement(e,t);if((0,l.A)(e))return e(t);var o=(0,s.A)("recharts-pie-label-line","boolean"!=typeof e?e.className:"");return n.createElement(f.I,_extends({},t,{key:r,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(e,t,r){if(n.isValidElement(e))return n.cloneElement(e,t);var o=r;if((0,l.A)(e)&&(o=e(t),n.isValidElement(o)))return o;var i=(0,s.A)("recharts-pie-label-text","boolean"==typeof e||(0,l.A)(e)?"":e.className);return n.createElement(p.E,_extends({},t,{alignmentBaseline:"middle",className:i}),o)}}])}(n.PureComponent);_defineProperty(S,"displayName","Pie"),_defineProperty(S,"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:!g.m.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0}),_defineProperty(S,"parseDeltaAngle",function(e,t){return(0,v.sA)(t-e)*Math.min(Math.abs(t-e),360)}),_defineProperty(S,"getRealPieData",function(e){var t=e.data,r=e.children,n=(0,b.J9)(e,!1),o=(0,b.aS)(r,h.f);return t&&t.length?t.map(function(e,t){return _objectSpread(_objectSpread(_objectSpread({payload:e},n),e),o&&o[t]&&o[t].props)}):o&&o.length?o.map(function(e){return _objectSpread(_objectSpread({},n),e.props)}):[]}),_defineProperty(S,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,o=t.width,i=t.height,a=(0,m.lY)(o,i);return{cx:n+(0,v.F4)(e.cx,o,o/2),cy:r+(0,v.F4)(e.cy,i,i/2),innerRadius:(0,v.F4)(e.innerRadius,a,0),outerRadius:(0,v.F4)(e.outerRadius,a,.8*a),maxRadius:e.maxRadius||Math.sqrt(o*o+i*i)/2}}),_defineProperty(S,"getComposedData",function(e){var t,r,n=e.item,o=e.offset,i=void 0!==n.type.defaultProps?_objectSpread(_objectSpread({},n.type.defaultProps),n.props):n.props,a=S.getRealPieData(i);if(!a||!a.length)return null;var l=i.cornerRadius,s=i.startAngle,u=i.endAngle,f=i.paddingAngle,p=i.dataKey,d=i.nameKey,y=i.valueKey,h=i.tooltipType,b=Math.abs(i.minAngle),g=S.parseCoordinateOfPie(i,o),P=S.parseDeltaAngle(s,u),A=Math.abs(P),O=p;(0,c.A)(p)&&(0,c.A)(y)?((0,x.R)(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),O="value"):(0,c.A)(p)&&((0,x.R)(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),O=y);var j=a.filter(function(e){return 0!==(0,_.kr)(e,O,0)}).length,w=A-j*b-(A>=360?j:j-1)*f,C=a.reduce(function(e,t){var r=(0,_.kr)(t,O,0);return e+((0,v.Et)(r)?r:0)},0);return C>0&&(t=a.map(function(e,t){var n,o=(0,_.kr)(e,O,0),i=(0,_.kr)(e,d,t),a=((0,v.Et)(o)?o:0)/C,c=(n=t?r.endAngle+(0,v.sA)(P)*f*(0!==o):s)+(0,v.sA)(P)*((0!==o?b:0)+a*w),u=(n+c)/2,p=(g.innerRadius+g.outerRadius)/2,y=[{name:i,value:o,payload:e,dataKey:O,type:h}],x=(0,m.IZ)(g.cx,g.cy,p,u);return r=_objectSpread(_objectSpread(_objectSpread({percent:a,cornerRadius:l,name:i,tooltipPayload:y,midAngle:u,middleRadius:p,tooltipPosition:x},e),g),{},{value:(0,_.kr)(e,O),startAngle:n,endAngle:c,payload:e,paddingAngle:(0,v.sA)(P)*f})})),_objectSpread(_objectSpread({},g),{},{sectors:t,data:a})})},0xb1af60e9:(e,t,r)=>{"use strict";r.d(t,{I:()=>Curve});var n=r(0xbad225b5);function noop(){}function point(e,t,r){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+r)/6)}function Basis(e){this._context=e}function basis(e){return new Basis(e)}function BasisClosed(e){this._context=e}function basisClosed(e){return new BasisClosed(e)}function BasisOpen(e){this._context=e}function basisOpen(e){return new BasisOpen(e)}Basis.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:point(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*=1,t*=1,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:point(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},BasisClosed.prototype={areaStart:noop,areaEnd:noop,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*=1,t*=1,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:point(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},BasisOpen.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*=1,t*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:point(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};let o=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e*=1,t*=1,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._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}};function bumpX(e){return new o(e,!0)}function bumpY(e){return new o(e,!1)}function LinearClosed(e){this._context=e}function linearClosed(e){return new LinearClosed(e)}function Linear(e){this._context=e}function linear(e){return new Linear(e)}function slope3(e,t,r){var n=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(n||o<0&&-0),a=(r-e._y1)/(o||n<0&&-0);return((i<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs((i*o+a*n)/(n+o)))||0}function slope2(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function monotone_point(e,t,r){var n=e._x0,o=e._y0,i=e._x1,a=e._y1,c=(i-n)/3;e._context.bezierCurveTo(n+c,o+c*t,i-c,a-c*r,i,a)}function MonotoneX(e){this._context=e}function MonotoneY(e){this._context=new ReflectContext(e)}function ReflectContext(e){this._context=e}function monotoneX(e){return new MonotoneX(e)}function monotoneY(e){return new MonotoneY(e)}function Natural(e){this._context=e}function controlPoints(e){var t,r,n=e.length-1,o=Array(n),i=Array(n),a=Array(n);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[n-1]=2,i[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=o[t]/i[t-1],i[t]-=r,a[t]-=r*a[t-1];for(o[n-1]=a[n-1]/i[n-1],t=n-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(t=0,i[n-1]=(e[n]+o[n-1])/2;t<n-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function natural(e){return new Natural(e)}function Step(e,t){this._context=e,this._t=t}function step(e){return new Step(e,.5)}function stepBefore(e){return new Step(e,0)}function stepAfter(e){return new Step(e,1)}LinearClosed.prototype={areaStart:noop,areaEnd:noop,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e*=1,t*=1,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},Linear.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*=1,t*=1,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)}}},MonotoneX.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:monotone_point(this,this._t0,slope2(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(t*=1,(e*=1)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,monotone_point(this,slope2(this,r=slope3(this,e,t)),r);break;default:monotone_point(this,this._t0,r=slope3(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}},(MonotoneY.prototype=Object.create(MonotoneX.prototype)).point=function(e,t){MonotoneX.prototype.point.call(this,t,e)},ReflectContext.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,o,i){this._context.bezierCurveTo(t,e,n,r,i,o)}},Natural.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===r)this._context.lineTo(e[1],t[1]);else for(var n=controlPoints(e),o=controlPoints(t),i=0,a=1;a<r;++i,++a)this._context.bezierCurveTo(n[0][i],o[0][i],n[1][i],o[1][i],e[a],t[a]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},Step.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e*=1,t*=1,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 r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}}this._x=e,this._y=t}};var i=r(0x1fea5e730),a=r(0x65ff5cdb),c=r(0x323a5d71);function point_x(e){return e[0]}function point_y(e){return e[1]}function line(e,t){var r=(0,a.A)(!0),n=null,o=linear,l=null,s=(0,c.i)(line);function line(a){var c,u,f,p=(a=(0,i.A)(a)).length,d=!1;for(null==n&&(l=o(f=s())),c=0;c<=p;++c)!(c<p&&r(u=a[c],c,a))===d&&((d=!d)?l.lineStart():l.lineEnd()),d&&l.point(+e(u,c,a),+t(u,c,a));if(f)return l=null,f+""||null}return e="function"==typeof e?e:void 0===e?point_x:(0,a.A)(e),t="function"==typeof t?t:void 0===t?point_y:(0,a.A)(t),line.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,a.A)(+t),line):e},line.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,a.A)(+e),line):t},line.defined=function(e){return arguments.length?(r="function"==typeof e?e:(0,a.A)(!!e),line):r},line.curve=function(e){return arguments.length?(o=e,null!=n&&(l=o(n)),line):o},line.context=function(e){return arguments.length?(null==e?n=l=null:l=o(n=e),line):n},line}function src_area(e,t,r){var n=null,o=(0,a.A)(!0),l=null,s=linear,u=null,f=(0,c.i)(area);function area(a){var c,p,d,y,h,b=(a=(0,i.A)(a)).length,g=!1,m=Array(b),v=Array(b);for(null==l&&(u=s(h=f())),c=0;c<=b;++c){if(!(c<b&&o(y=a[c],c,a))===g)if(g=!g)p=c,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),d=c-1;d>=p;--d)u.point(m[d],v[d]);u.lineEnd(),u.areaEnd()}g&&(m[c]=+e(y,c,a),v[c]=+t(y,c,a),u.point(n?+n(y,c,a):m[c],r?+r(y,c,a):v[c]))}if(h)return u=null,h+""||null}function arealine(){return line().defined(o).curve(s).context(l)}return e="function"==typeof e?e:void 0===e?point_x:(0,a.A)(+e),t="function"==typeof t?t:void 0===t?(0,a.A)(0):(0,a.A)(+t),r="function"==typeof r?r:void 0===r?point_y:(0,a.A)(+r),area.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,a.A)(+t),n=null,area):e},area.x0=function(t){return arguments.length?(e="function"==typeof t?t:(0,a.A)(+t),area):e},area.x1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:(0,a.A)(+e),area):n},area.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,a.A)(+e),r=null,area):t},area.y0=function(e){return arguments.length?(t="function"==typeof e?e:(0,a.A)(+e),area):t},area.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:(0,a.A)(+e),area):r},area.lineX0=area.lineY0=function(){return arealine().x(e).y(t)},area.lineY1=function(){return arealine().x(e).y(r)},area.lineX1=function(){return arealine().x(n).y(t)},area.defined=function(e){return arguments.length?(o="function"==typeof e?e:(0,a.A)(!!e),area):o},area.curve=function(e){return arguments.length?(s=e,null!=l&&(u=s(l)),area):s},area.context=function(e){return arguments.length?(null==e?l=u=null:u=s(l=e),area):l},area}var l=r(0x2ba4bcc9),s=r(0x33644bb7),u=r(0x139443c4a),f=r(0xee79d415),p=r(0xd0f20cec),d=r(0x7bea1699);function _typeof(e){return(_typeof="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 _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var y={curveBasisClosed:basisClosed,curveBasisOpen:basisOpen,curveBasis:basis,curveBumpX:bumpX,curveBumpY:bumpY,curveLinearClosed:linearClosed,curveLinear:linear,curveMonotoneX:monotoneX,curveMonotoneY:monotoneY,curveNatural:natural,curveStep:step,curveStepAfter:stepAfter,curveStepBefore:stepBefore},defined=function(e){return e.x===+e.x&&e.y===+e.y},getX=function(e){return e.x},getY=function(e){return e.y},getCurveFactory=function(e,t){if((0,s.A)(e))return e;var r="curve".concat((0,l.A)(e));return("curveMonotone"===r||"curveBump"===r)&&t?y["".concat(r).concat("vertical"===t?"Y":"X")]:y[r]||linear},getPath=function(e){var t,r=e.type,n=e.points,o=void 0===n?[]:n,i=e.baseLine,a=e.layout,c=e.connectNulls,l=void 0!==c&&c,s=getCurveFactory(void 0===r?"linear":r,a),u=l?o.filter(function(e){return defined(e)}):o;if(Array.isArray(i)){var f=l?i.filter(function(e){return defined(e)}):i,p=u.map(function(e,t){return _objectSpread(_objectSpread({},e),{},{base:f[t]})});return(t="vertical"===a?src_area().y(getY).x1(getX).x0(function(e){return e.base.x}):src_area().x(getX).y1(getY).y0(function(e){return e.base.y})).defined(defined).curve(s),t(p)}return(t="vertical"===a&&(0,d.Et)(i)?src_area().y(getY).x1(getX).x0(i):(0,d.Et)(i)?src_area().x(getX).y1(getY).y0(i):line().x(getX).y(getY)).defined(defined).curve(s),t(u)},Curve=function(e){var t=e.className,r=e.points,o=e.path,i=e.pathRef;if((!r||!r.length)&&!o)return null;var a=r&&r.length?getPath(e):o;return n.createElement("path",_extends({},(0,p.J9)(e,!1),(0,f._U)(e),{className:(0,u.A)("recharts-curve",t),d:a,ref:i}))}},0xc9f8d4dc:(e,t,r)=>{"use strict";r.d(t,{c:()=>Dot});var n=r(0xbad225b5),o=r(0x139443c4a),i=r(0xee79d415),a=r(0xd0f20cec);function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var Dot=function(e){var t=e.cx,r=e.cy,c=e.r,l=e.className,s=(0,o.A)("recharts-dot",l);return t===+t&&r===+r&&c===+c?n.createElement("circle",_extends({},(0,a.J9)(e,!1),(0,i._U)(e),{className:s,cx:t,cy:r,r:c})):null}},0x251502696:(e,t,r)=>{"use strict";r.d(t,{J:()=>isInRectangle,M:()=>Rectangle});var n=r(0xbad225b5),o=r(0x139443c4a),i=r(0x7750ad3e),a=r(0xd0f20cec);function _typeof(e){return(_typeof="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 _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,t)}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _iterableToArrayLimit(e,t){var r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var getRectanglePath=function(e,t,r,n,o){var i,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),c=n>=0?1:-1,l=r>=0?1:-1,s=+(n>=0&&r>=0||n<0&&r<0);if(a>0&&o instanceof Array){for(var u=[0,0,0,0],f=0;f<4;f++)u[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+c*u[0]),u[0]>0&&(i+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(s,",").concat(e+l*u[0],",").concat(t)),i+="L ".concat(e+r-l*u[1],",").concat(t),u[1]>0&&(i+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(s,`,
        `).concat(e+r,",").concat(t+c*u[1])),i+="L ".concat(e+r,",").concat(t+n-c*u[2]),u[2]>0&&(i+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(s,`,
        `).concat(e+r-l*u[2],",").concat(t+n)),i+="L ".concat(e+l*u[3],",").concat(t+n),u[3]>0&&(i+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(s,`,
        `).concat(e,",").concat(t+n-c*u[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var p=Math.min(a,o);i="M ".concat(e,",").concat(t+c*p,`
            A `).concat(p,",").concat(p,",0,0,").concat(s,",").concat(e+l*p,",").concat(t,`
            L `).concat(e+r-l*p,",").concat(t,`
            A `).concat(p,",").concat(p,",0,0,").concat(s,",").concat(e+r,",").concat(t+c*p,`
            L `).concat(e+r,",").concat(t+n-c*p,`
            A `).concat(p,",").concat(p,",0,0,").concat(s,",").concat(e+r-l*p,",").concat(t+n,`
            L `).concat(e+l*p,",").concat(t+n,`
            A `).concat(p,",").concat(p,",0,0,").concat(s,",").concat(e,",").concat(t+n-c*p," Z")}else i="M ".concat(e,",").concat(t," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return i},isInRectangle=function(e,t){if(!e||!t)return!1;var r=e.x,n=e.y,o=t.x,i=t.y,a=t.width,c=t.height;if(Math.abs(a)>0&&Math.abs(c)>0){var l=Math.min(o,o+a),s=Math.max(o,o+a),u=Math.min(i,i+c),f=Math.max(i,i+c);return r>=l&&r<=s&&n>=u&&n<=f}return!1},c={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Rectangle=function(e){var t=_objectSpread(_objectSpread({},c),e),r=(0,n.useRef)(),l=_slicedToArray((0,n.useState)(-1),2),s=l[0],u=l[1];(0,n.useEffect)(function(){if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&u(e)}catch{}},[]);var f=t.x,p=t.y,d=t.width,y=t.height,h=t.radius,b=t.className,g=t.animationEasing,m=t.animationDuration,v=t.animationBegin,_=t.isAnimationActive,x=t.isUpdateAnimationActive;if(f!==+f||p!==+p||d!==+d||y!==+y||0===d||0===y)return null;var P=(0,o.A)("recharts-rectangle",b);return x?n.createElement(i.Ay,{canBegin:s>0,from:{width:d,height:y,x:f,y:p},to:{width:d,height:y,x:f,y:p},duration:m,animationEasing:g,isActive:x},function(e){var o=e.width,c=e.height,l=e.x,u=e.y;return n.createElement(i.Ay,{canBegin:s>0,from:"0px ".concat(-1===s?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:m,isActive:_,easing:g},n.createElement("path",_extends({},(0,a.J9)(t,!0),{className:P,d:getRectanglePath(l,u,o,c,h),ref:r})))}):n.createElement("path",_extends({},(0,a.J9)(t,!0),{className:P,d:getRectanglePath(f,p,d,y,h)}))}},0x1e2a89e47:(e,t,r)=>{"use strict";r.d(t,{h:()=>Sector});var n=r(0xbad225b5),o=r(0x139443c4a),i=r(0xd0f20cec),a=r(0x148b36991),c=r(0x7bea1699);function _typeof(e){return(_typeof="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 _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var getTangentCircle=function(e){var t=e.cx,r=e.cy,n=e.radius,o=e.angle,i=e.sign,c=e.isExternal,l=e.cornerRadius,s=e.cornerIsExternal,u=l*(c?1:-1)+n,f=Math.asin(l/u)/a.Kg,p=s?o:o+i*f;return{center:(0,a.IZ)(t,r,u,p),circleTangency:(0,a.IZ)(t,r,n,p),lineTangency:(0,a.IZ)(t,r,u*Math.cos(f*a.Kg),s?o-i*f:o),theta:f}},getSectorPath=function(e){var t=e.cx,r=e.cy,n=e.innerRadius,o=e.outerRadius,i=e.startAngle,l=e.endAngle,s=(0,c.sA)(l-i)*Math.min(Math.abs(l-i),359.999),u=i+s,f=(0,a.IZ)(t,r,o,i),p=(0,a.IZ)(t,r,o,u),d="M ".concat(f.x,",").concat(f.y,`
    A `).concat(o,",").concat(o,`,0,
    `).concat(+(Math.abs(s)>180),",").concat(+(i>u),`,
    `).concat(p.x,",").concat(p.y,`
  `);if(n>0){var y=(0,a.IZ)(t,r,n,i),h=(0,a.IZ)(t,r,n,u);d+="L ".concat(h.x,",").concat(h.y,`
            A `).concat(n,",").concat(n,`,0,
            `).concat(+(Math.abs(s)>180),",").concat(+(i<=u),`,
            `).concat(y.x,",").concat(y.y," Z")}else d+="L ".concat(t,",").concat(r," Z");return d},getSectorWithCorner=function(e){var t=e.cx,r=e.cy,n=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,l=e.cornerIsExternal,s=e.startAngle,u=e.endAngle,f=(0,c.sA)(u-s),p=getTangentCircle({cx:t,cy:r,radius:o,angle:s,sign:f,cornerRadius:i,cornerIsExternal:l}),d=p.circleTangency,y=p.lineTangency,h=p.theta,b=getTangentCircle({cx:t,cy:r,radius:o,angle:u,sign:-f,cornerRadius:i,cornerIsExternal:l}),g=b.circleTangency,m=b.lineTangency,v=b.theta,_=l?Math.abs(s-u):Math.abs(s-u)-h-v;if(_<0)return a?"M ".concat(y.x,",").concat(y.y,`
        a`).concat(i,",").concat(i,",0,0,1,").concat(2*i,`,0
        a`).concat(i,",").concat(i,",0,0,1,").concat(-(2*i),`,0
      `):getSectorPath({cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:s,endAngle:u});var x="M ".concat(y.x,",").concat(y.y,`
    A`).concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(d.x,",").concat(d.y,`
    A`).concat(o,",").concat(o,",0,").concat(+(_>180),",").concat(+(f<0),",").concat(g.x,",").concat(g.y,`
    A`).concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(m.x,",").concat(m.y,`
  `);if(n>0){var P=getTangentCircle({cx:t,cy:r,radius:n,angle:s,sign:f,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),A=P.circleTangency,S=P.lineTangency,O=P.theta,j=getTangentCircle({cx:t,cy:r,radius:n,angle:u,sign:-f,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),w=j.circleTangency,C=j.lineTangency,T=j.theta,k=l?Math.abs(s-u):Math.abs(s-u)-O-T;if(k<0&&0===i)return"".concat(x,"L").concat(t,",").concat(r,"Z");x+="L".concat(C.x,",").concat(C.y,`
      A`).concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(w.x,",").concat(w.y,`
      A`).concat(n,",").concat(n,",0,").concat(+(k>180),",").concat(+(f>0),",").concat(A.x,",").concat(A.y,`
      A`).concat(i,",").concat(i,",0,0,").concat(+(f<0),",").concat(S.x,",").concat(S.y,"Z")}else x+="L".concat(t,",").concat(r,"Z");return x},l={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Sector=function(e){var t,r=_objectSpread(_objectSpread({},l),e),a=r.cx,s=r.cy,u=r.innerRadius,f=r.outerRadius,p=r.cornerRadius,d=r.forceCornerRadius,y=r.cornerIsExternal,h=r.startAngle,b=r.endAngle,g=r.className;if(f<u||h===b)return null;var m=(0,o.A)("recharts-sector",g),v=f-u,_=(0,c.F4)(p,v,0,!0);return t=_>0&&360>Math.abs(h-b)?getSectorWithCorner({cx:a,cy:s,innerRadius:u,outerRadius:f,cornerRadius:Math.min(_,v/2),forceCornerRadius:d,cornerIsExternal:y,startAngle:h,endAngle:b}):getSectorPath({cx:a,cy:s,innerRadius:u,outerRadius:f,startAngle:h,endAngle:b}),n.createElement("path",_extends({},(0,i.J9)(r,!0),{className:m,d:t,role:"img"}))}},0x1b5544108:(e,t,r)=>{"use strict";r.d(t,{i:()=>Symbols});var n=r(0xbad225b5),o=r(0x2ba4bcc9);let i=Math.cos,a=Math.sin,c=Math.sqrt,l=Math.PI,s=2*l,u={draw(e,t){let r=c(t/l);e.moveTo(r,0),e.arc(0,0,r,0,s)}},f=c(1/3),p=2*f,d=a(l/10)/a(7*l/10),y=a(s/10)*d,h=-i(s/10)*d,b=c(3),g=c(3)/2,m=1/c(12),v=(m/2+1)*3;var _=r(0x65ff5cdb),x=r(0x323a5d71);function symbol_Symbol(e,t){let r=null,n=(0,x.i)(symbol);function symbol(){let o;if(r||(r=o=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),o)return r=null,o+""||null}return e="function"==typeof e?e:(0,_.A)(e||u),t="function"==typeof t?t:(0,_.A)(void 0===t?64:+t),symbol.type=function(t){return arguments.length?(e="function"==typeof t?t:(0,_.A)(t),symbol):e},symbol.size=function(e){return arguments.length?(t="function"==typeof e?e:(0,_.A)(+e),symbol):t},symbol.context=function(e){return arguments.length?(r=null==e?null:e,symbol):r},symbol}c(3),c(3);var P=r(0x139443c4a),A=r(0xd0f20cec);function _typeof(e){return(_typeof="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)}var S=["type","size","sizeType"];function _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var O={symbolCircle:u,symbolCross:{draw(e,t){let r=c(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},symbolDiamond:{draw(e,t){let r=c(t/p),n=r*f;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},symbolSquare:{draw(e,t){let r=c(t),n=-r/2;e.rect(n,n,r,r)}},symbolStar:{draw(e,t){let r=c(.8908130915292852*t),n=y*r,o=h*r;e.moveTo(0,-r),e.lineTo(n,o);for(let t=1;t<5;++t){let c=s*t/5,l=i(c),u=a(c);e.lineTo(u*r,-l*r),e.lineTo(l*n-u*o,u*n+l*o)}e.closePath()}},symbolTriangle:{draw(e,t){let r=-c(t/(3*b));e.moveTo(0,2*r),e.lineTo(-b*r,-r),e.lineTo(b*r,-r),e.closePath()}},symbolWye:{draw(e,t){let r=c(t/v),n=r/2,o=r*m,i=r*m+r,a=-n;e.moveTo(n,o),e.lineTo(n,i),e.lineTo(a,i),e.lineTo(-.5*n-g*o,g*n+-.5*o),e.lineTo(-.5*n-g*i,g*n+-.5*i),e.lineTo(-.5*a-g*i,g*a+-.5*i),e.lineTo(-.5*n+g*o,-.5*o-g*n),e.lineTo(-.5*n+g*i,-.5*i-g*n),e.lineTo(-.5*a+g*i,-.5*i-g*a),e.closePath()}}},j=Math.PI/180,calculateAreaSize=function(e,t,r){if("area"===t)return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var n=18*j;return 1.25*e*e*(Math.tan(n)-Math.tan(2*n)*Math.pow(Math.tan(n),2));case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},Symbols=function(e){var t,r=e.type,i=void 0===r?"circle":r,a=e.size,c=void 0===a?64:a,l=e.sizeType,s=void 0===l?"area":l,f=_objectSpread(_objectSpread({},_objectWithoutProperties(e,S)),{},{type:i,size:c,sizeType:s}),p=f.className,d=f.cx,y=f.cy,h=(0,A.J9)(f,!0);return d===+d&&y===+y&&c===+c?n.createElement("path",_extends({},h,{className:(0,P.A)("recharts-symbols",p),transform:"translate(".concat(d,", ").concat(y,")"),d:(t=O["symbol".concat((0,o.A)(i))]||u,symbol_Symbol().type(t).size(calculateAreaSize(c,s,i))())})):null};Symbols.registerSymbol=function(e,t){O["symbol".concat((0,o.A)(e))]=t}},0x81a138ba:(e,t,r)=>{"use strict";r.d(t,{yp:()=>Shape,GG:()=>getActiveShapeIndexForTooltip,NE:()=>isFunnel,nZ:()=>isPie,xQ:()=>isScatter});var n=r(0xbad225b5),o=r(0x33644bb7),i=r(0x225645a46),a=r(0xdf8554bd),c=r(0x9e671ad),l=r(0x251502696),s=r(0x139443c4a),u=r(0x7750ad3e),f=r(0xd0f20cec);function _typeof(e){return(_typeof="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 _extends(){return(_extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,t)}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _iterableToArrayLimit(e,t){var r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var getTrapezoidPath=function(e,t,r,n,o){var i=r-n;return"M ".concat(e,",").concat(t)+"L ".concat(e+r,",").concat(t)+"L ".concat(e+r-i/2,",").concat(t+o)+"L ".concat(e+r-i/2-n,",").concat(t+o)+"L ".concat(e,",").concat(t," Z")},p={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Trapezoid=function(e){var t=_objectSpread(_objectSpread({},p),e),r=(0,n.useRef)(),o=_slicedToArray((0,n.useState)(-1),2),i=o[0],a=o[1];(0,n.useEffect)(function(){if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&a(e)}catch{}},[]);var c=t.x,l=t.y,d=t.upperWidth,y=t.lowerWidth,h=t.height,b=t.className,g=t.animationEasing,m=t.animationDuration,v=t.animationBegin,_=t.isUpdateAnimationActive;if(c!==+c||l!==+l||d!==+d||y!==+y||h!==+h||0===d&&0===y||0===h)return null;var x=(0,s.A)("recharts-trapezoid",b);return _?n.createElement(u.Ay,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:h,x:c,y:l},to:{upperWidth:d,lowerWidth:y,height:h,x:c,y:l},duration:m,animationEasing:g,isActive:_},function(e){var o=e.upperWidth,a=e.lowerWidth,c=e.height,l=e.x,s=e.y;return n.createElement(u.Ay,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:m,easing:g},n.createElement("path",_extends({},(0,f.J9)(t,!0),{className:x,d:getTrapezoidPath(l,s,o,a,c),ref:r})))}):n.createElement("g",null,n.createElement("path",_extends({},(0,f.J9)(t,!0),{className:x,d:getTrapezoidPath(c,l,d,y,h)})))},d=r(0x1e2a89e47),y=r(0x10a0ba9c),h=r(0x1b5544108),b=["option","shapeType","propTransformer","activeClassName","isActive"];function ActiveShapeUtils_typeof(e){return(ActiveShapeUtils_typeof="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 _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ActiveShapeUtils_ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ActiveShapeUtils_objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ActiveShapeUtils_ownKeys(Object(r),!0).forEach(function(t){ActiveShapeUtils_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ActiveShapeUtils_ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ActiveShapeUtils_defineProperty(e,t,r){return(t=ActiveShapeUtils_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ActiveShapeUtils_toPropertyKey(e){var t=ActiveShapeUtils_toPrimitive(e,"string");return"symbol"==ActiveShapeUtils_typeof(t)?t:t+""}function ActiveShapeUtils_toPrimitive(e,t){if("object"!=ActiveShapeUtils_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ActiveShapeUtils_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function defaultPropTransformer(e,t){return ActiveShapeUtils_objectSpread(ActiveShapeUtils_objectSpread({},t),e)}function isSymbolsProps(e,t){return"symbols"===e}function ShapeSelector(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return n.createElement(l.M,r);case"trapezoid":return n.createElement(Trapezoid,r);case"sector":return n.createElement(d.h,r);case"symbols":if(isSymbolsProps(t,r))return n.createElement(h.i,r);break;default:return null}}function getPropsFromShapeOption(e){return(0,n.isValidElement)(e)?e.props:e}function Shape(e){var t,r=e.option,c=e.shapeType,l=e.propTransformer,s=e.activeClassName,u=e.isActive,f=_objectWithoutProperties(e,b);if((0,n.isValidElement)(r))t=(0,n.cloneElement)(r,ActiveShapeUtils_objectSpread(ActiveShapeUtils_objectSpread({},f),getPropsFromShapeOption(r)));else if((0,o.A)(r))t=r(f);else if((0,i.A)(r)&&!(0,a.A)(r)){var p=(void 0===l?defaultPropTransformer:l)(r,f);t=n.createElement(ShapeSelector,{shapeType:c,elementProps:p})}else t=n.createElement(ShapeSelector,{shapeType:c,elementProps:f});return u?n.createElement(y.W,{className:void 0===s?"recharts-active-shape":s},t):t}function isFunnel(e,t){return null!=t&&"trapezoids"in e.props}function isPie(e,t){return null!=t&&"sectors"in e.props}function isScatter(e,t){return null!=t&&"points"in e.props}function compareFunnel(e,t){var r,n,o=e.x===(null==t||null==(r=t.labelViewBox)?void 0:r.x)||e.x===t.x,i=e.y===(null==t||null==(n=t.labelViewBox)?void 0:n.y)||e.y===t.y;return o&&i}function comparePie(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function compareScatter(e,t){var r=e.x===t.x,n=e.y===t.y,o=e.z===t.z;return r&&n&&o}function getComparisonFn(e,t){var r;return isFunnel(e,t)?r=compareFunnel:isPie(e,t)?r=comparePie:isScatter(e,t)&&(r=compareScatter),r}function getShapeDataKey(e,t){var r;return isFunnel(e,t)?r="trapezoids":isPie(e,t)?r="sectors":isScatter(e,t)&&(r="points"),r}function getActiveShapeTooltipPayload(e,t){var r,n;return isFunnel(e,t)?null==(r=t.tooltipPayload)||null==(r=r[0])||null==(r=r.payload)?void 0:r.payload:isPie(e,t)?null==(n=t.tooltipPayload)||null==(n=n[0])||null==(n=n.payload)?void 0:n.payload:isScatter(e,t)?t.payload:{}}function getActiveShapeIndexForTooltip(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,o=getShapeDataKey(r,t),i=getActiveShapeTooltipPayload(r,t),a=n.filter(function(e,n){var a=(0,c.A)(i,e),l=r.props[o].filter(function(e){return getComparisonFn(r,t)(e,t)}),s=r.props[o].indexOf(l[l.length-1]);return a&&n===s});return n.indexOf(a[a.length-1])}},0x1877f2163:(e,t,r)=>{"use strict";r.d(t,{P2:()=>createLabeledScales,bx:()=>getAngledRectangleWidth,pr:()=>formatAxisMap,sl:()=>rectWithPoints,vh:()=>rectWithCoords});var n=r(0xf4930165),o=r(0x249159109),i=r(0x13907dc1a),a=r(0xd0f20cec),c=r(0x7bea1699),l=r(0x1dc6c0c23);function _typeof(e){return(_typeof="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 _classCallCheck(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_toPropertyKey(n.key),n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var formatAxisMap=function(e,t,r,n,o){var s=e.width,u=e.height,f=e.layout,p=e.children,d=Object.keys(t),y={left:r.left,leftMirror:r.left,right:s-r.right,rightMirror:s-r.right,top:r.top,topMirror:r.top,bottom:u-r.bottom,bottomMirror:u-r.bottom},h=!!(0,a.BU)(p,l.y);return d.reduce(function(a,l){var s,u,p,d,b,g=t[l],m=g.orientation,v=g.domain,_=g.padding,x=void 0===_?{}:_,P=g.mirror,A=g.reversed,S="".concat(m).concat(P?"Mirror":"");if("number"===g.type&&("gap"===g.padding||"no-gap"===g.padding)){var O=v[1]-v[0],j=1/0,w=g.categoricalDomain.sort();if(w.forEach(function(e,t){t>0&&(j=Math.min((e||0)-(w[t-1]||0),j))}),Number.isFinite(j)){var C=j/O,T="vertical"===g.layout?r.height:r.width;if("gap"===g.padding&&(s=C*T/2),"no-gap"===g.padding){var k=(0,c.F4)(e.barCategoryGap,C*T),E=C*T/2;s=E-k-(E-k)/T*k}}}u="xAxis"===n?[r.left+(x.left||0)+(s||0),r.left+r.width-(x.right||0)-(s||0)]:"yAxis"===n?"horizontal"===f?[r.top+r.height-(x.bottom||0),r.top+(x.top||0)]:[r.top+(x.top||0)+(s||0),r.top+r.height-(x.bottom||0)-(s||0)]:g.range,A&&(u=[u[1],u[0]]);var M=(0,i.W7)(g,o,h),I=M.scale,D=M.realScaleType;I.domain(v).range(u),(0,i.YB)(I);var R=(0,i.w7)(I,_objectSpread(_objectSpread({},g),{},{realScaleType:D}));"xAxis"===n?(b="top"===m&&!P||"bottom"===m&&P,p=r.left,d=y[S]-b*g.height):"yAxis"===n&&(b="left"===m&&!P||"right"===m&&P,p=y[S]-b*g.width,d=r.top);var L=_objectSpread(_objectSpread(_objectSpread({},g),R),{},{realScaleType:D,x:p,y:d,scale:I,width:"xAxis"===n?r.width:g.width,height:"yAxis"===n?r.height:g.height});return L.bandSize=(0,i.Hj)(L,R),g.hide||"xAxis"!==n?g.hide||(y[S]+=(b?-1:1)*L.width):y[S]+=(b?-1:1)*L.height,_objectSpread(_objectSpread({},a),{},_defineProperty({},l,L))},{})},rectWithPoints=function(e,t){var r=e.x,n=e.y,o=t.x,i=t.y;return{x:Math.min(r,o),y:Math.min(n,i),width:Math.abs(o-r),height:Math.abs(i-n)}},rectWithCoords=function(e){return rectWithPoints({x:e.x1,y:e.y1},{x:e.x2,y:e.y2})},s=function(){function ScaleHelper(e){_classCallCheck(this,ScaleHelper),this.scale=e}return _createClass(ScaleHelper,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.bandAware,n=t.position;if(void 0!==e){if(n)switch(n){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),r=t[0],n=t[t.length-1];return r<=n?e>=r&&e<=n:e>=n&&e<=r}}],[{key:"create",value:function(e){return new ScaleHelper(e)}}])}();_defineProperty(s,"EPS",1e-4);var createLabeledScales=function(e){var t=Object.keys(e).reduce(function(t,r){return _objectSpread(_objectSpread({},t),{},_defineProperty({},r,s.create(e[r])))},{});return _objectSpread(_objectSpread({},t),{},{apply:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.bandAware,i=r.position;return(0,n.A)(e,function(e,r){return t[r].apply(e,{bandAware:o,position:i})})},isInRange:function(e){return(0,o.A)(e,function(e,r){return t[r].isInRange(e)})}})};function normalizeAngle(e){return(e%180+180)%180}var getAngledRectangleWidth=function(e){var t=e.width,r=e.height,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=normalizeAngle(n)*Math.PI/180,i=Math.atan(r/t);return Math.abs(o>i&&o<Math.PI-i?r/Math.sin(o):t/Math.cos(o))}},0x13907dc1a:(e,t,r)=>{"use strict";r.d(t,{s0:()=>appendOffsetOfLegend,gH:()=>calculateActiveTickIndex,YB:()=>checkDomainOfScale,HQ:()=>combineEventHandlers,xi:()=>findPositionOfBar,Hj:()=>getBandSizeOfAxis,BX:()=>getBarPosition,tA:()=>getBarSizeList,DW:()=>getBaseValueOfBar,y2:()=>getCateCoordinateOfBar,nb:()=>getCateCoordinateOfLine,PW:()=>getCoordinatesOfGrid,Ay:()=>getDomainOfDataByKey,vf:()=>getDomainOfItemsWithSameAxis,Mk:()=>getDomainOfStackGroups,Ps:()=>getMainColorOfGraphicItem,Mn:()=>getStackGroupsByAxisId,kA:()=>getStackedDataOfItem,Rh:()=>getTicksOfAxis,w7:()=>getTicksOfScale,zb:()=>getTooltipItem,kr:()=>getValueByDataKey,_L:()=>isCategoricalAxis,KC:()=>parseDomainOfCategoryAxis,A1:()=>parseErrorBarsOfAxis,W7:()=>parseScale,AQ:()=>parseSpecifiedDomain,_f:()=>truncateByDomain});var n,o,i,a,c,l,s,u={};r.r(u),r.d(u,{scaleBand:()=>f.A,scaleDiverging:()=>diverging,scaleDivergingLog:()=>divergingLog,scaleDivergingPow:()=>divergingPow,scaleDivergingSqrt:()=>divergingSqrt,scaleDivergingSymlog:()=>divergingSymlog,scaleIdentity:()=>identity_identity,scaleImplicit:()=>C.h,scaleLinear:()=>linear,scaleLog:()=>log,scaleOrdinal:()=>C.A,scalePoint:()=>f.z,scalePow:()=>pow,scaleQuantile:()=>quantile_quantile,scaleQuantize:()=>quantize,scaleRadial:()=>radial,scaleSequential:()=>sequential,scaleSequentialLog:()=>sequentialLog,scaleSequentialPow:()=>sequentialPow,scaleSequentialQuantile:()=>sequentialQuantile,scaleSequentialSqrt:()=>sequentialSqrt,scaleSequentialSymlog:()=>sequentialSymlog,scaleSqrt:()=>sqrt,scaleSymlog:()=>symlog,scaleThreshold:()=>threshold,scaleTime:()=>time,scaleUtc:()=>utcTime,tickFormat:()=>tickFormat});var f=r(0xa47c5f0b),p=Math.sqrt(50),d=Math.sqrt(10),y=Math.sqrt(2);function ticks(e,t,r){var n,o,i,a,c=-1;if(r*=1,(e*=1)==(t*=1)&&r>0)return[e];if((n=t<e)&&(o=e,e=t,t=o),0===(a=tickIncrement(e,t,r))||!isFinite(a))return[];if(a>0){let r=Math.round(e/a),n=Math.round(t/a);for(r*a<e&&++r,n*a>t&&--n,i=Array(o=n-r+1);++c<o;)i[c]=(r+c)*a}else{let r=Math.round(e*(a=-a)),n=Math.round(t*a);for(r/a<e&&++r,n/a>t&&--n,i=Array(o=n-r+1);++c<o;)i[c]=(r+c)/a}return n&&i.reverse(),i}function tickIncrement(e,t,r){var n=(t-e)/Math.max(0,r),o=Math.floor(Math.log(n)/Math.LN10),i=n/Math.pow(10,o);return o>=0?(i>=p?10:i>=d?5:i>=y?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=p?10:i>=d?5:i>=y?2:1)}function tickStep(e,t,r){var n=Math.abs(t-e)/Math.max(0,r),o=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),i=n/o;return i>=p?o*=10:i>=d?o*=5:i>=y&&(o*=2),t<e?-o:o}function ascending(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function descending(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function bisector(e){let t,r,n;function left(e,n,o=0,i=e.length){if(o<i){if(0!==t(n,n))return i;do{let t=o+i>>>1;0>r(e[t],n)?o=t+1:i=t}while(o<i)}return o}function center(e,t,r=0,o=e.length){let i=left(e,t,r,o-1);return i>r&&n(e[i-1],t)>-n(e[i],t)?i-1:i}return 2!==e.length?(t=ascending,r=(t,r)=>ascending(e(t),r),n=(t,r)=>e(t)-r):(t=e===ascending||e===descending?e:zero,r=e,n=e),{left,center,right:function(e,n,o=0,i=e.length){if(o<i){if(0!==t(n,n))return i;do{let t=o+i>>>1;0>=r(e[t],n)?o=t+1:i=t}while(o<i)}return o}}}function zero(){return 0}function number(e){return null===e?NaN:+e}function*number_numbers(e,t){if(void 0===t)for(let t of e)null!=t&&(t*=1)>=t&&(yield t);else{let r=-1;for(let n of e)null!=(n=t(n,++r,e))&&(n*=1)>=n&&(yield n)}}let h=bisector(ascending),b=h.right;h.left,bisector(number).center;var g=r(0x21bcd8869),m=r(0xd3dadb25);function genericArray(e,t){var r,n=t?t.length:0,o=e?Math.min(n,e.length):0,i=Array(o),a=Array(n);for(r=0;r<o;++r)i[r]=value(e[r],t[r]);for(;r<n;++r)a[r]=t[r];return function(e){for(r=0;r<o;++r)a[r]=i[r](e);return a}}function date(e,t){var r=new Date;return e*=1,t*=1,function(n){return r.setTime(e*(1-n)+t*n),r}}var v=r(0xa0523d01);function object(e,t){var r,n={},o={};for(r in(null===e||"object"!=typeof e)&&(e={}),(null===t||"object"!=typeof t)&&(t={}),t)r in e?n[r]=value(e[r],t[r]):o[r]=t[r];return function(e){for(r in n)o[r]=n[r](e);return o}}var _=r(0x24fd03b65),x=r(0x200d51768);function src_numberArray(e,t){t||(t=[]);var r,n=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(r=0;r<n;++r)o[r]=e[r]*(1-i)+t[r]*i;return o}}function numberArray_isNumberArray(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function value(e,t){var r,n=typeof t;return null==t||"boolean"===n?(0,x.A)(t):("number"===n?v.A:"string"===n?(r=(0,g.Ay)(t))?(t=r,m.Ay):_.A:t instanceof g.Ay?m.Ay:t instanceof Date?date:numberArray_isNumberArray(t)?src_numberArray:Array.isArray(t)?genericArray:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?object:v.A)(e,t)}function round(e,t){return e*=1,t*=1,function(r){return Math.round(e*(1-r)+t*r)}}function constants(e){return function(){return e}}function number_number(e){return+e}var P=[0,1];function identity(e){return e}function normalize(e,t){return(t-=e*=1)?function(r){return(r-e)/t}:constants(isNaN(t)?NaN:.5)}function clamper(e,t){var r;return e>t&&(r=e,e=t,t=r),function(r){return Math.max(e,Math.min(t,r))}}function bimap(e,t,r){var n=e[0],o=e[1],i=t[0],a=t[1];return o<n?(n=normalize(o,n),i=r(a,i)):(n=normalize(n,o),i=r(i,a)),function(e){return i(n(e))}}function polymap(e,t,r){var n=Math.min(e.length,t.length)-1,o=Array(n),i=Array(n),a=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<n;)o[a]=normalize(e[a],e[a+1]),i[a]=r(t[a],t[a+1]);return function(t){var r=b(e,t,1,n)-1;return i[r](o[r](t))}}function copy(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function transformer(){var e,t,r,n,o,i,a=P,c=P,l=value,s=identity;function rescale(){var e=Math.min(a.length,c.length);return s!==identity&&(s=clamper(a[0],a[e-1])),n=e>2?polymap:bimap,o=i=null,scale}function scale(t){return null==t||isNaN(t*=1)?r:(o||(o=n(a.map(e),c,l)))(e(s(t)))}return scale.invert=function(r){return s(t((i||(i=n(c,a.map(e),v.A)))(r)))},scale.domain=function(e){return arguments.length?(a=Array.from(e,number_number),rescale()):a.slice()},scale.range=function(e){return arguments.length?(c=Array.from(e),rescale()):c.slice()},scale.rangeRound=function(e){return c=Array.from(e),l=round,rescale()},scale.clamp=function(e){return arguments.length?(s=!!e||identity,rescale()):s!==identity},scale.interpolate=function(e){return arguments.length?(l=e,rescale()):l},scale.unknown=function(e){return arguments.length?(r=e,scale):r},function(r,n){return e=r,t=n,rescale()}}function continuous(){return transformer()(identity,identity)}var A=r(0x90b71ef5),S=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function formatSpecifier(e){var t;if(!(t=S.exec(e)))throw Error("invalid format: "+e);return new FormatSpecifier({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function FormatSpecifier(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function formatDecimalParts(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function exponent(e){return(e=formatDecimalParts(Math.abs(e)))?e[1]:NaN}function precisionPrefix(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(exponent(t)/3)))-exponent(Math.abs(e)))}function formatGroup(e,t){return function(r,n){for(var o=r.length,i=[],a=0,c=e[0],l=0;o>0&&c>0&&(l+c+1>n&&(c=Math.max(1,n-l)),i.push(r.substring(o-=c,o+c)),!((l+=c+1)>n));)c=e[a=(a+1)%e.length];return i.reverse().join(t)}}function formatNumerals(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}function formatTrim(e){e:for(var t,r=e.length,n=1,o=-1;n<r;++n)switch(e[n]){case".":o=t=n;break;case"0":0===o&&(o=n),t=n;break;default:if(!+e[n])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}function formatRounded(e,t){var r=formatDecimalParts(e,t);if(!r)return e+"";var n=r[0],o=r[1];return o<0?"0."+Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+Array(o-n.length+2).join("0")}formatSpecifier.prototype=FormatSpecifier.prototype,FormatSpecifier.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};let O={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>formatRounded(100*e,t),r:formatRounded,s:function(e,t){var r=formatDecimalParts(e,t);if(!r)return e+"";var o=r[0],i=r[1],a=i-(n=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,c=o.length;return a===c?o:a>c?o+Array(a-c+1).join("0"):a>0?o.slice(0,a)+"."+o.slice(a):"0."+Array(1-a).join("0")+formatDecimalParts(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function src_identity(e){return e}var j=Array.prototype.map,w=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function locale(e){var t=void 0===e.grouping||void 0===e.thousands?src_identity:formatGroup(j.call(e.grouping,Number),e.thousands+""),r=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",i=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?src_identity:formatNumerals(j.call(e.numerals,String)),c=void 0===e.percent?"%":e.percent+"",l=void 0===e.minus?"\u2212":e.minus+"",s=void 0===e.nan?"NaN":e.nan+"";function newFormat(e){var u=(e=formatSpecifier(e)).fill,f=e.align,p=e.sign,d=e.symbol,y=e.zero,h=e.width,b=e.comma,g=e.precision,m=e.trim,v=e.type;"n"===v?(b=!0,v="g"):O[v]||(void 0===g&&(g=12),m=!0,v="g"),(y||"0"===u&&"="===f)&&(y=!0,u="0",f="=");var _="$"===d?r:"#"===d&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",x="$"===d?o:/[%p]/.test(v)?c:"",P=O[v],A=/[defgprs%]/.test(v);function format(e){var r,o,c,d=_,S=x;if("c"===v)S=P(e)+S,e="";else{var O=(e*=1)<0||1/e<0;if(e=isNaN(e)?s:P(Math.abs(e),g),m&&(e=formatTrim(e)),O&&0==+e&&"+"!==p&&(O=!1),d=(O?"("===p?p:l:"-"===p||"("===p?"":p)+d,S=("s"===v?w[8+n/3]:"")+S+(O&&"("===p?")":""),A){for(r=-1,o=e.length;++r<o;)if(48>(c=e.charCodeAt(r))||c>57){S=(46===c?i+e.slice(r+1):e.slice(r))+S,e=e.slice(0,r);break}}}b&&!y&&(e=t(e,1/0));var j=d.length+e.length+S.length,C=j<h?Array(h-j+1).join(u):"";switch(b&&y&&(e=t(C+e,C.length?h-S.length:1/0),C=""),f){case"<":e=d+e+S+C;break;case"=":e=d+C+e+S;break;case"^":e=C.slice(0,j=C.length>>1)+d+e+S+C.slice(j);break;default:e=C+d+e+S}return a(e)}return g=void 0===g?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),format.toString=function(){return e+""},format}function formatPrefix(e,t){var r=newFormat(((e=formatSpecifier(e)).type="f",e)),n=3*Math.max(-8,Math.min(8,Math.floor(exponent(t)/3))),o=Math.pow(10,-n),i=w[8+n/3];return function(e){return r(o*e)+i}}return{format:newFormat,formatPrefix:formatPrefix}}function precisionRound(e,t){return Math.max(0,exponent(t=Math.abs(t)-(e=Math.abs(e)))-exponent(e))+1}function precisionFixed(e){return Math.max(0,-exponent(Math.abs(e)))}function tickFormat(e,t,r,n){var o,c=tickStep(e,t,r);switch((n=formatSpecifier(null==n?",f":n)).type){case"s":var l=Math.max(Math.abs(e),Math.abs(t));return null!=n.precision||isNaN(o=precisionPrefix(c,l))||(n.precision=o),a(n,l);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(o=precisionRound(c,Math.max(Math.abs(e),Math.abs(t))))||(n.precision=o-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(o=precisionFixed(c))||(n.precision=o-("%"===n.type)*2)}return i(n)}function linearish(e){var t=e.domain;return e.ticks=function(e){var r=t();return ticks(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,r){var n=t();return tickFormat(n[0],n[n.length-1],null==e?10:e,r)},e.nice=function(r){null==r&&(r=10);var n,o,i=t(),a=0,c=i.length-1,l=i[a],s=i[c],u=10;for(s<l&&(o=l,l=s,s=o,o=a,a=c,c=o);u-- >0;){if((o=tickIncrement(l,s,r))===n)return i[a]=l,i[c]=s,t(i);if(o>0)l=Math.floor(l/o)*o,s=Math.ceil(s/o)*o;else if(o<0)l=Math.ceil(l*o)/o,s=Math.floor(s*o)/o;else break;n=o}return e},e}function linear(){var e=continuous();return e.copy=function(){return copy(e,linear())},A.C.apply(e,arguments),linearish(e)}function identity_identity(e){var t;function scale(e){return null==e||isNaN(e*=1)?t:e}return scale.invert=scale,scale.domain=scale.range=function(t){return arguments.length?(e=Array.from(t,number_number),scale):e.slice()},scale.unknown=function(e){return arguments.length?(t=e,scale):t},scale.copy=function(){return identity_identity(e).unknown(t)},e=arguments.length?Array.from(e,number_number):[0,1],linearish(scale)}function nice(e,t){e=e.slice();var r,n=0,o=e.length-1,i=e[n],a=e[o];return a<i&&(r=n,n=o,o=r,r=i,i=a,a=r),e[n]=t.floor(i),e[o]=t.ceil(a),e}function transformLog(e){return Math.log(e)}function transformExp(e){return Math.exp(e)}function transformLogn(e){return-Math.log(-e)}function transformExpn(e){return-Math.exp(-e)}function pow10(e){return isFinite(e)?+("1e"+e):e<0?0:e}function powp(e){return 10===e?pow10:e===Math.E?Math.exp:t=>Math.pow(e,t)}function logp(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function reflect(e){return(t,r)=>-e(-t,r)}function loggish(e){let t,r,n=e(transformLog,transformExp),o=n.domain,a=10;function rescale(){return t=logp(a),r=powp(a),o()[0]<0?(t=reflect(t),r=reflect(r),e(transformLogn,transformExpn)):e(transformLog,transformExp),n}return n.base=function(e){return arguments.length?(a=+e,rescale()):a},n.domain=function(e){return arguments.length?(o(e),rescale()):o()},n.ticks=e=>{let n,i,c=o(),l=c[0],s=c[c.length-1],u=s<l;u&&([l,s]=[s,l]);let f=t(l),p=t(s),d=null==e?10:+e,y=[];if(!(a%1)&&p-f<d){if(f=Math.floor(f),p=Math.ceil(p),l>0){for(;f<=p;++f)for(n=1;n<a;++n)if(!((i=f<0?n/r(-f):n*r(f))<l)){if(i>s)break;y.push(i)}}else for(;f<=p;++f)for(n=a-1;n>=1;--n)if(!((i=f>0?n/r(-f):n*r(f))<l)){if(i>s)break;y.push(i)}2*y.length<d&&(y=ticks(l,s,d))}else y=ticks(f,p,Math.min(p-f,d)).map(r);return u?y.reverse():y},n.tickFormat=(e,o)=>{if(null==e&&(e=10),null==o&&(o=10===a?"s":","),"function"!=typeof o&&(a%1||null!=(o=formatSpecifier(o)).precision||(o.trim=!0),o=i(o)),e===1/0)return o;let c=Math.max(1,a*e/n.ticks().length);return e=>{let n=e/r(Math.round(t(e)));return n*a<a-.5&&(n*=a),n<=c?o(e):""}},n.nice=()=>o(nice(o(),{floor:e=>r(Math.floor(t(e))),ceil:e=>r(Math.ceil(t(e)))})),n}function log(){let e=loggish(transformer()).domain([1,10]);return e.copy=()=>copy(e,log()).base(e.base()),A.C.apply(e,arguments),e}function transformSymlog(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function transformSymexp(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function symlogish(e){var t=1,r=e(transformSymlog(1),transformSymexp(t));return r.constant=function(r){return arguments.length?e(transformSymlog(t=+r),transformSymexp(t)):t},linearish(r)}function symlog(){var e=symlogish(transformer());return e.copy=function(){return copy(e,symlog()).constant(e.constant())},A.C.apply(e,arguments)}(function defaultLocale(e){return i=(o=locale(e)).format,a=o.formatPrefix})({thousands:",",grouping:[3],currency:["$",""]});var C=r(0xf458bf63);function transformPow(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function transformSqrt(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function transformSquare(e){return e<0?-e*e:e*e}function powish(e){var t=e(identity,identity),r=1;function rescale(){return 1===r?e(identity,identity):.5===r?e(transformSqrt,transformSquare):e(transformPow(r),transformPow(1/r))}return t.exponent=function(e){return arguments.length?(r=+e,rescale()):r},linearish(t)}function pow(){var e=powish(transformer());return e.copy=function(){return copy(e,pow()).exponent(e.exponent())},A.C.apply(e,arguments),e}function sqrt(){return pow.apply(null,arguments).exponent(.5)}function square(e){return Math.sign(e)*e*e}function unsquare(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function radial(){var e,t=continuous(),r=[0,1],n=!1;function scale(r){var o=unsquare(t(r));return isNaN(o)?e:n?Math.round(o):o}return scale.invert=function(e){return t.invert(square(e))},scale.domain=function(e){return arguments.length?(t.domain(e),scale):t.domain()},scale.range=function(e){return arguments.length?(t.range((r=Array.from(e,number_number)).map(square)),scale):r.slice()},scale.rangeRound=function(e){return scale.range(e).round(!0)},scale.round=function(e){return arguments.length?(n=!!e,scale):n},scale.clamp=function(e){return arguments.length?(t.clamp(e),scale):t.clamp()},scale.unknown=function(t){return arguments.length?(e=t,scale):e},scale.copy=function(){return radial(t.domain(),r).round(n).clamp(t.clamp()).unknown(e)},A.C.apply(scale,arguments),linearish(scale)}function max(e,t){let r;if(void 0===t)for(let t of e)null!=t&&(r<t||void 0===r&&t>=t)&&(r=t);else{let n=-1;for(let o of e)null!=(o=t(o,++n,e))&&(r<o||void 0===r&&o>=o)&&(r=o)}return r}function min(e,t){let r;if(void 0===t)for(let t of e)null!=t&&(r>t||void 0===r&&t>=t)&&(r=t);else{let n=-1;for(let o of e)null!=(o=t(o,++n,e))&&(r>o||void 0===r&&o>=o)&&(r=o)}return r}function compareDefined(e=ascending){if(e===ascending)return sort_ascendingDefined;if("function"!=typeof e)throw TypeError("compare is not a function");return(t,r)=>{let n=e(t,r);return n||0===n?n:(0===e(r,r))-(0===e(t,t))}}function sort_ascendingDefined(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:+(e>t))}function quickselect_quickselect(e,t,r=0,n=e.length-1,o){for(o=void 0===o?sort_ascendingDefined:compareDefined(o);n>r;){if(n-r>600){let i=n-r+1,a=t-r+1,c=Math.log(i),l=.5*Math.exp(2*c/3),s=.5*Math.sqrt(c*l*(i-l)/i)*(a-i/2<0?-1:1),u=Math.max(r,Math.floor(t-a*l/i+s)),f=Math.min(n,Math.floor(t+(i-a)*l/i+s));quickselect_quickselect(e,t,u,f,o)}let i=e[t],a=r,c=n;for(swap(e,r,t),o(e[n],i)>0&&swap(e,r,n);a<c;){for(swap(e,a,c),++a,--c;0>o(e[a],i);)++a;for(;o(e[c],i)>0;)--c}0===o(e[r],i)?swap(e,r,c):swap(e,++c,n),c<=t&&(r=c+1),t<=c&&(n=c-1)}return e}function swap(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}function quantile(e,t,r){if(n=(e=Float64Array.from(number_numbers(e,r))).length){if((t*=1)<=0||n<2)return min(e);if(t>=1)return max(e);var n,o=(n-1)*t,i=Math.floor(o),a=max(quickselect_quickselect(e,i).subarray(0,i+1));return a+(min(e.subarray(i+1))-a)*(o-i)}}function quantileSorted(e,t,r=number){if(n=e.length){if((t*=1)<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,o=(n-1)*t,i=Math.floor(o),a=+r(e[i],i,e);return a+(r(e[i+1],i+1,e)-a)*(o-i)}}function quantile_quantile(){var e,t=[],r=[],n=[];function rescale(){var e=0,o=Math.max(1,r.length);for(n=Array(o-1);++e<o;)n[e-1]=quantileSorted(t,e/o);return scale}function scale(t){return null==t||isNaN(t*=1)?e:r[b(n,t)]}return scale.invertExtent=function(e){var o=r.indexOf(e);return o<0?[NaN,NaN]:[o>0?n[o-1]:t[0],o<n.length?n[o]:t[t.length-1]]},scale.domain=function(e){if(!arguments.length)return t.slice();for(let r of(t=[],e))null==r||isNaN(r*=1)||t.push(r);return t.sort(ascending),rescale()},scale.range=function(e){return arguments.length?(r=Array.from(e),rescale()):r.slice()},scale.unknown=function(t){return arguments.length?(e=t,scale):e},scale.quantiles=function(){return n.slice()},scale.copy=function(){return quantile_quantile().domain(t).range(r).unknown(e)},A.C.apply(scale,arguments)}function quantize(){var e,t=0,r=1,n=1,o=[.5],i=[0,1];function scale(t){return null!=t&&t<=t?i[b(o,t,0,n)]:e}function rescale(){var e=-1;for(o=Array(n);++e<n;)o[e]=((e+1)*r-(e-n)*t)/(n+1);return scale}return scale.domain=function(e){return arguments.length?([t,r]=e,t*=1,r*=1,rescale()):[t,r]},scale.range=function(e){return arguments.length?(n=(i=Array.from(e)).length-1,rescale()):i.slice()},scale.invertExtent=function(e){var a=i.indexOf(e);return a<0?[NaN,NaN]:a<1?[t,o[0]]:a>=n?[o[n-1],r]:[o[a-1],o[a]]},scale.unknown=function(t){return arguments.length&&(e=t),scale},scale.thresholds=function(){return o.slice()},scale.copy=function(){return quantize().domain([t,r]).range(i).unknown(e)},A.C.apply(linearish(scale),arguments)}function threshold(){var e,t=[.5],r=[0,1],n=1;function scale(o){return null!=o&&o<=o?r[b(t,o,0,n)]:e}return scale.domain=function(e){return arguments.length?(n=Math.min((t=Array.from(e)).length,r.length-1),scale):t.slice()},scale.range=function(e){return arguments.length?(r=Array.from(e),n=Math.min(t.length,r.length-1),scale):r.slice()},scale.invertExtent=function(e){var n=r.indexOf(e);return[t[n-1],t[n]]},scale.unknown=function(t){return arguments.length?(e=t,scale):e},scale.copy=function(){return threshold().domain(t).range(r).unknown(e)},A.C.apply(scale,arguments)}var T=new Date,k=new Date;function newInterval(e,t,r,n){function interval(t){return e(t=0==arguments.length?new Date:new Date(+t)),t}return interval.floor=function(t){return e(t=new Date(+t)),t},interval.ceil=function(r){return e(r=new Date(r-1)),t(r,1),e(r),r},interval.round=function(e){var t=interval(e),r=interval.ceil(e);return e-t<r-e?t:r},interval.offset=function(e,r){return t(e=new Date(+e),null==r?1:Math.floor(r)),e},interval.range=function(r,n,o){var i,a=[];if(r=interval.ceil(r),o=null==o?1:Math.floor(o),!(r<n)||!(o>0))return a;do a.push(i=new Date(+r)),t(r,o),e(r);while(i<r&&r<n)return a},interval.filter=function(r){return newInterval(function(t){if(t>=t)for(;e(t),!r(t);)t.setTime(t-1)},function(e,n){if(e>=e)if(n<0)for(;++n<=0;)for(;t(e,-1),!r(e););else for(;--n>=0;)for(;t(e,1),!r(e););})},r&&(interval.count=function(t,n){return T.setTime(+t),k.setTime(+n),e(T),e(k),Math.floor(r(T,k))},interval.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?interval.filter(n?function(t){return n(t)%e==0}:function(t){return interval.count(0,t)%e==0}):interval:null}),interval}var E=newInterval(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});E.every=function(e){return isFinite(e=Math.floor(e))&&e>0?e>1?newInterval(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):E:null},E.range;var M=newInterval(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()});M.range;var I=newInterval(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},function(e,t){e.setTime(+e+6e4*t)},function(e,t){return(t-e)/6e4},function(e){return e.getMinutes()});I.range;var D=newInterval(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()});D.range;var R=newInterval(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/864e5,e=>e.getDate()-1);function weekday(e){return newInterval(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())*6e4)/6048e5})}R.range;var L=weekday(0),N=weekday(1),B=weekday(2),W=weekday(3),U=weekday(4),K=weekday(5),z=weekday(6);L.range,N.range,B.range,W.range,U.range,K.range,z.range;var F=newInterval(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()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});F.range;var q=newInterval(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()});q.every=function(e){return isFinite(e=Math.floor(e))&&e>0?newInterval(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)}):null},q.range;var H=newInterval(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+6e4*t)},function(e,t){return(t-e)/6e4},function(e){return e.getUTCMinutes()});H.range;var V=newInterval(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()});V.range;var X=newInterval(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});function utcWeekday(e){return newInterval(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/6048e5})}X.range;var $=utcWeekday(0),Y=utcWeekday(1),G=utcWeekday(2),Z=utcWeekday(3),J=utcWeekday(4),Q=utcWeekday(5),ee=utcWeekday(6);$.range,Y.range,G.range,Z.range,J.range,Q.range,ee.range;var et=newInterval(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()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});et.range;var er=newInterval(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()});function ticker(e,t,r,n,o,i){let a=[[M,1,1e3],[M,5,5e3],[M,15,15e3],[M,30,3e4],[i,1,6e4],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[n,1,864e5],[n,2,1728e5],[r,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function tickInterval(t,r,n){let o=Math.abs(r-t)/n,i=bisector(([,,e])=>e).right(a,o);if(i===a.length)return e.every(tickStep(t/31536e6,r/31536e6,n));if(0===i)return E.every(Math.max(tickStep(t,r,n),1));let[c,l]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return c.every(l)}return[function(e,t,r){let n=t<e;n&&([e,t]=[t,e]);let o=r&&"function"==typeof r.range?r:tickInterval(e,t,r),i=o?o.range(e,+t+1):[];return n?i.reverse():i},tickInterval]}er.every=function(e){return isFinite(e=Math.floor(e))&&e>0?newInterval(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)}):null},er.range;let[en,eo]=ticker(er,et,$,X,V,H),[ei,ea]=ticker(q,F,L,R,D,I);function localDate(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 utcDate(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 newDate(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function formatLocale(e){var t=e.dateTime,r=e.date,n=e.time,o=e.periods,i=e.days,a=e.shortDays,c=e.months,l=e.shortMonths,s=formatRe(o),u=formatLookup(o),f=formatRe(i),p=formatLookup(i),d=formatRe(a),y=formatLookup(a),h=formatRe(c),b=formatLookup(c),g=formatRe(l),m=formatLookup(l),v={a:formatShortWeekday,A:formatWeekday,b:formatShortMonth,B:formatMonth,c:null,d:formatDayOfMonth,e:formatDayOfMonth,f:formatMicroseconds,g:formatYearISO,G:formatFullYearISO,H:formatHour24,I:formatHour12,j:formatDayOfYear,L:formatMilliseconds,m:formatMonthNumber,M:formatMinutes,p:formatPeriod,q:formatQuarter,Q:formatUnixTimestamp,s:formatUnixTimestampSeconds,S:formatSeconds,u:formatWeekdayNumberMonday,U:formatWeekNumberSunday,V:formatWeekNumberISO,w:formatWeekdayNumberSunday,W:formatWeekNumberMonday,x:null,X:null,y:formatYear,Y:formatFullYear,Z:formatZone,"%":formatLiteralPercent},_={a:formatUTCShortWeekday,A:formatUTCWeekday,b:formatUTCShortMonth,B:formatUTCMonth,c:null,d:formatUTCDayOfMonth,e:formatUTCDayOfMonth,f:formatUTCMicroseconds,g:formatUTCYearISO,G:formatUTCFullYearISO,H:formatUTCHour24,I:formatUTCHour12,j:formatUTCDayOfYear,L:formatUTCMilliseconds,m:formatUTCMonthNumber,M:formatUTCMinutes,p:formatUTCPeriod,q:formatUTCQuarter,Q:formatUnixTimestamp,s:formatUnixTimestampSeconds,S:formatUTCSeconds,u:formatUTCWeekdayNumberMonday,U:formatUTCWeekNumberSunday,V:formatUTCWeekNumberISO,w:formatUTCWeekdayNumberSunday,W:formatUTCWeekNumberMonday,x:null,X:null,y:formatUTCYear,Y:formatUTCFullYear,Z:formatUTCZone,"%":formatLiteralPercent},x={a:parseShortWeekday,A:parseWeekday,b:parseShortMonth,B:parseMonth,c:parseLocaleDateTime,d:parseDayOfMonth,e:parseDayOfMonth,f:parseMicroseconds,g:parseYear,G:parseFullYear,H:parseHour24,I:parseHour24,j:parseDayOfYear,L:parseMilliseconds,m:parseMonthNumber,M:parseMinutes,p:parsePeriod,q:parseQuarter,Q:parseUnixTimestamp,s:parseUnixTimestampSeconds,S:parseSeconds,u:parseWeekdayNumberMonday,U:parseWeekNumberSunday,V:parseWeekNumberISO,w:parseWeekdayNumberSunday,W:parseWeekNumberMonday,x:parseLocaleDate,X:parseLocaleTime,y:parseYear,Y:parseFullYear,Z:parseZone,"%":parseLiteralPercent};function newFormat(e,t){return function(r){var n,o,i,a=[],c=-1,l=0,s=e.length;for(r instanceof Date||(r=new Date(+r));++c<s;)37===e.charCodeAt(c)&&(a.push(e.slice(l,c)),null!=(o=ec[n=e.charAt(++c)])?n=e.charAt(++c):o="e"===n?" ":"0",(i=t[n])&&(n=i(r,o)),a.push(n),l=c+1);return a.push(e.slice(l,c)),a.join("")}}function newParse(e,t){return function(r){var n,o,i=newDate(1900,void 0,1);if(parseSpecifier(i,e,r+="",0)!=r.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(!t||"Z"in i||(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(n=(o=(n=utcDate(newDate(i.y,0,1))).getUTCDay())>4||0===o?Y.ceil(n):Y(n),n=X.offset(n,(i.V-1)*7),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(n=(o=(n=localDate(newDate(i.y,0,1))).getDay())>4||0===o?N.ceil(n):N(n),n=R.offset(n,(i.V-1)*7),i.y=n.getFullYear(),i.m=n.getMonth(),i.d=n.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:+("W"in i)),o="Z"in i?utcDate(newDate(i.y,0,1)).getUTCDay():localDate(newDate(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,utcDate(i)):localDate(i)}}function parseSpecifier(e,t,r,n){for(var o,i,a=0,c=t.length,l=r.length;a<c;){if(n>=l)return -1;if(37===(o=t.charCodeAt(a++))){if(!(i=x[(o=t.charAt(a++))in ec?t.charAt(a++):o])||(n=i(e,r,n))<0)return -1}else if(o!=r.charCodeAt(n++))return -1}return n}function parsePeriod(e,t,r){var n=s.exec(t.slice(r));return n?(e.p=u.get(n[0].toLowerCase()),r+n[0].length):-1}function parseShortWeekday(e,t,r){var n=d.exec(t.slice(r));return n?(e.w=y.get(n[0].toLowerCase()),r+n[0].length):-1}function parseWeekday(e,t,r){var n=f.exec(t.slice(r));return n?(e.w=p.get(n[0].toLowerCase()),r+n[0].length):-1}function parseShortMonth(e,t,r){var n=g.exec(t.slice(r));return n?(e.m=m.get(n[0].toLowerCase()),r+n[0].length):-1}function parseMonth(e,t,r){var n=h.exec(t.slice(r));return n?(e.m=b.get(n[0].toLowerCase()),r+n[0].length):-1}function parseLocaleDateTime(e,r,n){return parseSpecifier(e,t,r,n)}function parseLocaleDate(e,t,n){return parseSpecifier(e,r,t,n)}function parseLocaleTime(e,t,r){return parseSpecifier(e,n,t,r)}function formatShortWeekday(e){return a[e.getDay()]}function formatWeekday(e){return i[e.getDay()]}function formatShortMonth(e){return l[e.getMonth()]}function formatMonth(e){return c[e.getMonth()]}function formatPeriod(e){return o[+(e.getHours()>=12)]}function formatQuarter(e){return 1+~~(e.getMonth()/3)}function formatUTCShortWeekday(e){return a[e.getUTCDay()]}function formatUTCWeekday(e){return i[e.getUTCDay()]}function formatUTCShortMonth(e){return l[e.getUTCMonth()]}function formatUTCMonth(e){return c[e.getUTCMonth()]}function formatUTCPeriod(e){return o[+(e.getUTCHours()>=12)]}function formatUTCQuarter(e){return 1+~~(e.getUTCMonth()/3)}return v.x=newFormat(r,v),v.X=newFormat(n,v),v.c=newFormat(t,v),_.x=newFormat(r,_),_.X=newFormat(n,_),_.c=newFormat(t,_),{format:function(e){var t=newFormat(e+="",v);return t.toString=function(){return e},t},parse:function(e){var t=newParse(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=newFormat(e+="",_);return t.toString=function(){return e},t},utcParse:function(e){var t=newParse(e+="",!0);return t.toString=function(){return e},t}}}var ec={"-":"",_:" ",0:"0"},el=/^\s*\d+/,es=/^%/,eu=/[\\^$*+?|[\]().{}]/g;function pad(e,t,r){var n=e<0?"-":"",o=(n?-e:e)+"",i=o.length;return n+(i<r?Array(r-i+1).join(t)+o:o)}function requote(e){return e.replace(eu,"\\$&")}function formatRe(e){return RegExp("^(?:"+e.map(requote).join("|")+")","i")}function formatLookup(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function parseWeekdayNumberSunday(e,t,r){var n=el.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function parseWeekdayNumberMonday(e,t,r){var n=el.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function parseWeekNumberSunday(e,t,r){var n=el.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function parseWeekNumberISO(e,t,r){var n=el.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function parseWeekNumberMonday(e,t,r){var n=el.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function parseFullYear(e,t,r){var n=el.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function parseYear(e,t,r){var n=el.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function parseZone(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function parseQuarter(e,t,r){var n=el.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function parseMonthNumber(e,t,r){var n=el.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function parseDayOfMonth(e,t,r){var n=el.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function parseDayOfYear(e,t,r){var n=el.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function parseHour24(e,t,r){var n=el.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function parseMinutes(e,t,r){var n=el.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function parseSeconds(e,t,r){var n=el.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function parseMilliseconds(e,t,r){var n=el.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function parseMicroseconds(e,t,r){var n=el.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function parseLiteralPercent(e,t,r){var n=es.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function parseUnixTimestamp(e,t,r){var n=el.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function parseUnixTimestampSeconds(e,t,r){var n=el.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function formatDayOfMonth(e,t){return pad(e.getDate(),t,2)}function formatHour24(e,t){return pad(e.getHours(),t,2)}function formatHour12(e,t){return pad(e.getHours()%12||12,t,2)}function formatDayOfYear(e,t){return pad(1+R.count(q(e),e),t,3)}function formatMilliseconds(e,t){return pad(e.getMilliseconds(),t,3)}function formatMicroseconds(e,t){return formatMilliseconds(e,t)+"000"}function formatMonthNumber(e,t){return pad(e.getMonth()+1,t,2)}function formatMinutes(e,t){return pad(e.getMinutes(),t,2)}function formatSeconds(e,t){return pad(e.getSeconds(),t,2)}function formatWeekdayNumberMonday(e){var t=e.getDay();return 0===t?7:t}function formatWeekNumberSunday(e,t){return pad(L.count(q(e)-1,e),t,2)}function dISO(e){var t=e.getDay();return t>=4||0===t?U(e):U.ceil(e)}function formatWeekNumberISO(e,t){return e=dISO(e),pad(U.count(q(e),e)+(4===q(e).getDay()),t,2)}function formatWeekdayNumberSunday(e){return e.getDay()}function formatWeekNumberMonday(e,t){return pad(N.count(q(e)-1,e),t,2)}function formatYear(e,t){return pad(e.getFullYear()%100,t,2)}function formatYearISO(e,t){return pad((e=dISO(e)).getFullYear()%100,t,2)}function formatFullYear(e,t){return pad(e.getFullYear()%1e4,t,4)}function formatFullYearISO(e,t){var r=e.getDay();return pad((e=r>=4||0===r?U(e):U.ceil(e)).getFullYear()%1e4,t,4)}function formatZone(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+pad(t/60|0,"0",2)+pad(t%60,"0",2)}function formatUTCDayOfMonth(e,t){return pad(e.getUTCDate(),t,2)}function formatUTCHour24(e,t){return pad(e.getUTCHours(),t,2)}function formatUTCHour12(e,t){return pad(e.getUTCHours()%12||12,t,2)}function formatUTCDayOfYear(e,t){return pad(1+X.count(er(e),e),t,3)}function formatUTCMilliseconds(e,t){return pad(e.getUTCMilliseconds(),t,3)}function formatUTCMicroseconds(e,t){return formatUTCMilliseconds(e,t)+"000"}function formatUTCMonthNumber(e,t){return pad(e.getUTCMonth()+1,t,2)}function formatUTCMinutes(e,t){return pad(e.getUTCMinutes(),t,2)}function formatUTCSeconds(e,t){return pad(e.getUTCSeconds(),t,2)}function formatUTCWeekdayNumberMonday(e){var t=e.getUTCDay();return 0===t?7:t}function formatUTCWeekNumberSunday(e,t){return pad($.count(er(e)-1,e),t,2)}function UTCdISO(e){var t=e.getUTCDay();return t>=4||0===t?J(e):J.ceil(e)}function formatUTCWeekNumberISO(e,t){return e=UTCdISO(e),pad(J.count(er(e),e)+(4===er(e).getUTCDay()),t,2)}function formatUTCWeekdayNumberSunday(e){return e.getUTCDay()}function formatUTCWeekNumberMonday(e,t){return pad(Y.count(er(e)-1,e),t,2)}function formatUTCYear(e,t){return pad(e.getUTCFullYear()%100,t,2)}function formatUTCYearISO(e,t){return pad((e=UTCdISO(e)).getUTCFullYear()%100,t,2)}function formatUTCFullYear(e,t){return pad(e.getUTCFullYear()%1e4,t,4)}function formatUTCFullYearISO(e,t){var r=e.getUTCDay();return pad((e=r>=4||0===r?J(e):J.ceil(e)).getUTCFullYear()%1e4,t,4)}function formatUTCZone(){return"+0000"}function formatLiteralPercent(){return"%"}function formatUnixTimestamp(e){return+e}function formatUnixTimestampSeconds(e){return Math.floor(e/1e3)}function time_date(e){return new Date(e)}function time_number(e){return e instanceof Date?+e:+new Date(+e)}function calendar(e,t,r,n,o,i,a,c,l,s){var u=continuous(),f=u.invert,p=u.domain,d=s(".%L"),y=s(":%S"),h=s("%I:%M"),b=s("%I %p"),g=s("%a %d"),m=s("%b %d"),v=s("%B"),_=s("%Y");function tickFormat(e){return(l(e)<e?d:c(e)<e?y:a(e)<e?h:i(e)<e?b:n(e)<e?o(e)<e?g:m:r(e)<e?v:_)(e)}return u.invert=function(e){return new Date(f(e))},u.domain=function(e){return arguments.length?p(Array.from(e,time_number)):p().map(time_date)},u.ticks=function(t){var r=p();return e(r[0],r[r.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?tickFormat:s(t)},u.nice=function(e){var r=p();return e&&"function"==typeof e.range||(e=t(r[0],r[r.length-1],null==e?10:e)),e?p(nice(r,e)):u},u.copy=function(){return copy(u,calendar(e,t,r,n,o,i,a,c,l,s))},u}function time(){return A.C.apply(calendar(ei,ea,q,F,L,R,D,I,M,l).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function utcTime(){return A.C.apply(calendar(en,eo,er,et,$,X,V,H,M,s).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function sequential_transformer(){var e,t,r,n,o,i=0,a=1,c=identity,l=!1;function scale(t){return null==t||isNaN(t*=1)?o:c(0===r?.5:(t=(n(t)-e)*r,l?Math.max(0,Math.min(1,t)):t))}function range(e){return function(t){var r,n;return arguments.length?([r,n]=t,c=e(r,n),scale):[c(0),c(1)]}}return scale.domain=function(o){return arguments.length?([i,a]=o,e=n(i*=1),t=n(a*=1),r=e===t?0:1/(t-e),scale):[i,a]},scale.clamp=function(e){return arguments.length?(l=!!e,scale):l},scale.interpolator=function(e){return arguments.length?(c=e,scale):c},scale.range=range(value),scale.rangeRound=range(round),scale.unknown=function(e){return arguments.length?(o=e,scale):o},function(o){return n=o,e=o(i),t=o(a),r=e===t?0:1/(t-e),scale}}function sequential_copy(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function sequential(){var e=linearish(sequential_transformer()(identity));return e.copy=function(){return sequential_copy(e,sequential())},A.K.apply(e,arguments)}function sequentialLog(){var e=loggish(sequential_transformer()).domain([1,10]);return e.copy=function(){return sequential_copy(e,sequentialLog()).base(e.base())},A.K.apply(e,arguments)}function sequentialSymlog(){var e=symlogish(sequential_transformer());return e.copy=function(){return sequential_copy(e,sequentialSymlog()).constant(e.constant())},A.K.apply(e,arguments)}function sequentialPow(){var e=powish(sequential_transformer());return e.copy=function(){return sequential_copy(e,sequentialPow()).exponent(e.exponent())},A.K.apply(e,arguments)}function sequentialSqrt(){return sequentialPow.apply(null,arguments).exponent(.5)}function sequentialQuantile(){var e=[],t=identity;function scale(r){if(null!=r&&!isNaN(r*=1))return t((b(e,r,1)-1)/(e.length-1))}return scale.domain=function(t){if(!arguments.length)return e.slice();for(let r of(e=[],t))null==r||isNaN(r*=1)||e.push(r);return e.sort(ascending),scale},scale.interpolator=function(e){return arguments.length?(t=e,scale):t},scale.range=function(){return e.map((r,n)=>t(n/(e.length-1)))},scale.quantiles=function(t){return Array.from({length:t+1},(r,n)=>quantile(e,n/t))},scale.copy=function(){return sequentialQuantile(t).domain(e)},A.K.apply(scale,arguments)}function piecewise(e,t){void 0===t&&(t=e,e=value);for(var r=0,n=t.length-1,o=t[0],i=Array(n<0?0:n);r<n;)i[r]=e(o,o=t[++r]);return function(e){var t=Math.max(0,Math.min(n-1,Math.floor(e*=n)));return i[t](e-t)}}function diverging_transformer(){var e,t,r,n,o,i,a,c=0,l=.5,s=1,u=1,f=identity,p=!1;function scale(e){return isNaN(e*=1)?a:(e=.5+((e=+i(e))-t)*(u*e<u*t?n:o),f(p?Math.max(0,Math.min(1,e)):e))}function range(e){return function(t){var r,n,o;return arguments.length?([r,n,o]=t,f=piecewise(e,[r,n,o]),scale):[f(0),f(.5),f(1)]}}return scale.domain=function(a){return arguments.length?([c,l,s]=a,e=i(c*=1),t=i(l*=1),r=i(s*=1),n=e===t?0:.5/(t-e),o=t===r?0:.5/(r-t),u=t<e?-1:1,scale):[c,l,s]},scale.clamp=function(e){return arguments.length?(p=!!e,scale):p},scale.interpolator=function(e){return arguments.length?(f=e,scale):f},scale.range=range(value),scale.rangeRound=range(round),scale.unknown=function(e){return arguments.length?(a=e,scale):a},function(a){return i=a,e=a(c),t=a(l),r=a(s),n=e===t?0:.5/(t-e),o=t===r?0:.5/(r-t),u=t<e?-1:1,scale}}function diverging(){var e=linearish(diverging_transformer()(identity));return e.copy=function(){return sequential_copy(e,diverging())},A.K.apply(e,arguments)}function divergingLog(){var e=loggish(diverging_transformer()).domain([.1,1,10]);return e.copy=function(){return sequential_copy(e,divergingLog()).base(e.base())},A.K.apply(e,arguments)}function divergingSymlog(){var e=symlogish(diverging_transformer());return e.copy=function(){return sequential_copy(e,divergingSymlog()).constant(e.constant())},A.K.apply(e,arguments)}function divergingPow(){var e=powish(diverging_transformer());return e.copy=function(){return sequential_copy(e,divergingPow()).exponent(e.exponent())},A.K.apply(e,arguments)}function divergingSqrt(){return divergingPow.apply(null,arguments).exponent(.5)}function none(e,t){if((o=e.length)>1)for(var r,n,o,i=1,a=e[t[0]],c=a.length;i<o;++i)for(n=a,a=e[t[i]],r=0;r<c;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function expand(e,t){if((n=e.length)>0){for(var r,n,o,i=0,a=e[0].length;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}none(e,t)}}function silhouette(e,t){if((r=e.length)>0){for(var r,n=0,o=e[t[0]],i=o.length;n<i;++n){for(var a=0,c=0;a<r;++a)c+=e[a][n][1]||0;o[n][1]+=o[n][0]=-c/2}none(e,t)}}function wiggle(e,t){if((o=e.length)>0&&(n=(r=e[t[0]]).length)>0){for(var r,n,o,i=0,a=1;a<n;++a){for(var c=0,l=0,s=0;c<o;++c){for(var u=e[t[c]],f=u[a][1]||0,p=(f-(u[a-1][1]||0))/2,d=0;d<c;++d){var y=e[t[d]];p+=(y[a][1]||0)-(y[a-1][1]||0)}l+=f,s+=p*f}r[a-1][1]+=r[a-1][0]=i,l&&(i-=s/l)}r[a-1][1]+=r[a-1][0]=i,none(e,t)}}(function defaultLocale_defaultLocale(e){return l=(c=formatLocale(e)).format,c.parse,s=c.utcFormat,c.utcParse})({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var ef=r(0x1fea5e730),ep=r(0x65ff5cdb);function order_none(e){for(var t=e.length,r=Array(t);--t>=0;)r[t]=t;return r}function stackValue(e,t){return e[t]}function stackSeries(e){let t=[];return t.key=e,t}function src_stack(){var e=(0,ep.A)([]),t=order_none,r=none,n=stackValue;function stack(o){var i,a,c=Array.from(e.apply(this,arguments),stackSeries),l=c.length,s=-1;for(let e of o)for(i=0,++s;i<l;++i)(c[i][s]=[0,+n(e,c[i].key,s,o)]).data=e;for(i=0,a=(0,ef.A)(t(c));i<l;++i)c[a[i]].index=i;return r(c,a),c}return stack.keys=function(t){return arguments.length?(e="function"==typeof t?t:(0,ep.A)(Array.from(t)),stack):e},stack.value=function(e){return arguments.length?(n="function"==typeof e?e:(0,ep.A)(+e),stack):n},stack.order=function(e){return arguments.length?(t=null==e?order_none:"function"==typeof e?e:(0,ep.A)(Array.from(e)),stack):t},stack.offset=function(e){return arguments.length?(r=null==e?none:e,stack):r},stack}var ed=r(0x8588bca7),ey=r(0x1557e938d),eh=r(0x202470d56),eb=r(0x33644bb7),eg=r(0xb77a689a),em=r(0x77727995),ev=r(0x5359476e),e_=r(0xef503114),ex=r(0x2ba4bcc9),eP=r(0x9e671ad),eA=r(0x17294c72a),eS=r(0x13ce9ec22),eO=r.n(eS);function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,t)}}function _iterableToArray(e){if("u">typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var utils_identity=function(e){return e},ej={},isPlaceHolder=function(e){return e===ej},curry0=function(e){return function _curried(){return 0==arguments.length||1==arguments.length&&isPlaceHolder(arguments.length<=0?void 0:arguments[0])?_curried:e.apply(void 0,arguments)}},curry=function(e){return function curryN(e,t){return 1===e?t:curry0(function(){for(var r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];var i=n.filter(function(e){return e!==ej}).length;return i>=e?t.apply(void 0,n):curryN(e-i,curry0(function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];var i=n.map(function(e){return isPlaceHolder(e)?r.shift():e});return t.apply(void 0,_toConsumableArray(i).concat(r))}))})}(e.length,e)},range=function(e,t){for(var r=[],n=e;n<t;++n)r[n-e]=n;return r},ew=curry(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(e){return t[e]}).map(e)}),compose=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!t.length)return utils_identity;var n=t.reverse(),o=n[0],i=n.slice(1);return function(){return i.reduce(function(e,t){return t(e)},o.apply(void 0,arguments))}},reverse=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},memoize=function(e){var t=null,r=null;return function(){for(var n=arguments.length,o=Array(n),i=0;i<n;i++)o[i]=arguments[i];return t&&o.every(function(e,r){return e===t[r]})?r:(t=o,r=e.apply(void 0,o))}};function getDigitCount(e){return 0===e?1:Math.floor(new(eO())(e).abs().log(10).toNumber())+1}function rangeStep(e,t,r){for(var n=new(eO())(e),o=0,i=[];n.lt(t)&&o<1e5;)i.push(n.toNumber()),n=n.add(r),o++;return i}curry(function(e,t,r){var n=+e;return n+r*(t-n)}),curry(function(e,t,r){var n=t-e;return(r-e)/(n=n||1/0)}),curry(function(e,t,r){var n=t-e;return Math.max(0,Math.min(1,(r-e)/(n=n||1/0)))});let eC=rangeStep,eT=getDigitCount;function getNiceTickValues_toConsumableArray(e){return getNiceTickValues_arrayWithoutHoles(e)||getNiceTickValues_iterableToArray(e)||getNiceTickValues_unsupportedIterableToArray(e)||getNiceTickValues_nonIterableSpread()}function getNiceTickValues_nonIterableSpread(){throw TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function getNiceTickValues_iterableToArray(e){if("u">typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function getNiceTickValues_arrayWithoutHoles(e){if(Array.isArray(e))return getNiceTickValues_arrayLikeToArray(e)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||getNiceTickValues_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function getNiceTickValues_unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return getNiceTickValues_arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return getNiceTickValues_arrayLikeToArray(e,t)}}function getNiceTickValues_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _iterableToArrayLimit(e,t){if("u">typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(o)throw i}}return r}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function getValidInterval(e){var t=_slicedToArray(e,2),r=t[0],n=t[1],o=r,i=n;return r>n&&(o=n,i=r),[o,i]}function getFormatStep(e,t,r){if(e.lte(0))return new(eO())(0);var n=eT(e.toNumber()),o=new(eO())(10).pow(n),i=e.div(o),a=1!==n?.05:.1,c=new(eO())(Math.ceil(i.div(a).toNumber())).add(r).mul(a).mul(o);return t?c:new(eO())(Math.ceil(c))}function getTickOfSingleValue(e,t,r){var n=1,o=new(eO())(e);if(!o.isint()&&r){var i=Math.abs(e);i<1?(n=new(eO())(10).pow(eT(e)-1),o=new(eO())(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new(eO())(Math.floor(e)))}else 0===e?o=new(eO())(Math.floor((t-1)/2)):r||(o=new(eO())(Math.floor(e)));var a=Math.floor((t-1)/2);return compose(ew(function(e){return o.add(new(eO())(e-a).mul(n)).toNumber()}),range)(0,t)}function calculateStep(e,t,r,n){var o,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new(eO())(0),tickMin:new(eO())(0),tickMax:new(eO())(0)};var a=getFormatStep(new(eO())(t).sub(e).div(r-1),n,i),c=Math.ceil((o=e<=0&&t>=0?new(eO())(0):(o=new(eO())(e).add(t).div(2)).sub(new(eO())(o).mod(a))).sub(e).div(a).toNumber()),l=Math.ceil(new(eO())(t).sub(o).div(a).toNumber()),s=c+l+1;return s>r?calculateStep(e,t,r,n,i+1):(s<r&&(l=t>0?l+(r-s):l,c=t>0?c:c+(r-s)),{step:a,tickMin:o.sub(new(eO())(c).mul(a)),tickMax:o.add(new(eO())(l).mul(a))})}function getTickValuesFn(e){var t=_slicedToArray(e,2),r=t[0],n=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(o,2),c=_slicedToArray(getValidInterval([r,n]),2),l=c[0],s=c[1];if(l===-1/0||s===1/0)return[r,n];if(l===s)return getTickOfSingleValue(l,o,i);var u=getFormatStep(new(eO())(s).sub(l).div(a-1),i,0),f=compose(ew(function(e){return new(eO())(l).add(new(eO())(e).mul(u)).toNumber()}),range)(0,a).filter(function(e){return e>=l&&e<=s});return r>n?reverse(f):f}function getTickValuesFixedDomainFn(e,t){var r=_slicedToArray(e,2),n=r[0],o=r[1],i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=_slicedToArray(getValidInterval([n,o]),2),c=a[0],l=a[1];if(c===-1/0||l===1/0)return[n,o];if(c===l)return[c];var s=Math.max(t,2),u=getFormatStep(new(eO())(l).sub(c).div(s-1),i,0),f=[].concat(getNiceTickValues_toConsumableArray(eC(new(eO())(c),new(eO())(l).sub(new(eO())(.99).mul(u)),u)),[l]);return n>o?reverse(f):f}var ek=memoize(function(e){var t=_slicedToArray(e,2),r=t[0],n=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(o,2),c=_slicedToArray(getValidInterval([r,n]),2),l=c[0],s=c[1];if(l===-1/0||s===1/0){var u=s===1/0?[l].concat(getNiceTickValues_toConsumableArray(range(0,o-1).map(function(){return 1/0}))):[].concat(getNiceTickValues_toConsumableArray(range(0,o-1).map(function(){return-1/0})),[s]);return r>n?reverse(u):u}if(l===s)return getTickOfSingleValue(l,o,i);var f=calculateStep(l,s,a,i),p=f.step,d=eC(f.tickMin,f.tickMax.add(new(eO())(.1).mul(p)),p);return r>n?reverse(d):d});memoize(getTickValuesFn);var eE=memoize(getTickValuesFixedDomainFn),eM=r(0x17e60f347),eI=r(0x7bea1699),eD=r(0xd0f20cec),eR=r(0xd2fa006d);function _typeof(e){return(_typeof="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 ChartUtils_toConsumableArray(e){return ChartUtils_arrayWithoutHoles(e)||ChartUtils_iterableToArray(e)||ChartUtils_unsupportedIterableToArray(e)||ChartUtils_nonIterableSpread()}function ChartUtils_nonIterableSpread(){throw TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ChartUtils_unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return ChartUtils_arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ChartUtils_arrayLikeToArray(e,t)}}function ChartUtils_iterableToArray(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function ChartUtils_arrayWithoutHoles(e){if(Array.isArray(e))return ChartUtils_arrayLikeToArray(e)}function ChartUtils_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function getValueByDataKey(e,t,r){return(0,eh.A)(e)||(0,eh.A)(t)?r:(0,eI.vh)(t)?(0,em.A)(e,t,r):(0,eb.A)(t)?t(e):r}function getDomainOfDataByKey(e,t,r,n){var o=(0,ev.A)(e,function(e){return getValueByDataKey(e,t)});if("number"===r){var i=o.filter(function(e){return(0,eI.Et)(e)||parseFloat(e)});return i.length?[(0,ey.A)(i),(0,ed.A)(i)]:[1/0,-1/0]}return(n?o.filter(function(e){return!(0,eh.A)(e)}):o).map(function(e){return(0,eI.vh)(e)||e instanceof Date?e:""})}var calculateActiveTickIndex=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!=(t=null==r?void 0:r.length)?t:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&1e-6>=Math.abs(Math.abs(o.range[1]-o.range[0])-360))for(var c=o.range,l=0;l<a;l++){var s=l>0?n[l-1].coordinate:n[a-1].coordinate,u=n[l].coordinate,f=l>=a-1?n[0].coordinate:n[l+1].coordinate,p=void 0;if((0,eI.sA)(u-s)!==(0,eI.sA)(f-u)){var d=[];if((0,eI.sA)(f-u)===(0,eI.sA)(c[1]-c[0])){p=f;var y=u+c[1]-c[0];d[0]=Math.min(y,(y+s)/2),d[1]=Math.max(y,(y+s)/2)}else{p=s;var h=f+c[1]-c[0];d[0]=Math.min(u,(h+u)/2),d[1]=Math.max(u,(h+u)/2)}var b=[Math.min(u,(p+u)/2),Math.max(u,(p+u)/2)];if(e>b[0]&&e<=b[1]||e>=d[0]&&e<=d[1]){i=n[l].index;break}}else{var g=Math.min(s,f),m=Math.max(s,f);if(e>(g+u)/2&&e<=(m+u)/2){i=n[l].index;break}}}else for(var v=0;v<a;v++)if(0===v&&e<=(r[v].coordinate+r[v+1].coordinate)/2||v>0&&v<a-1&&e>(r[v].coordinate+r[v-1].coordinate)/2&&e<=(r[v].coordinate+r[v+1].coordinate)/2||v===a-1&&e>(r[v].coordinate+r[v-1].coordinate)/2){i=r[v].index;break}return i},getMainColorOfGraphicItem=function(e){var t,r,n=e.type.displayName,o=null!=(t=e.type)&&t.defaultProps?_objectSpread(_objectSpread({},e.type.defaultProps),e.props):e.props,i=o.stroke,a=o.fill;switch(n){case"Line":r=i;break;case"Area":case"Radar":r=i&&"none"!==i?i:a;break;default:r=a}return r},getBarSizeList=function(e){var t=e.barSize,r=e.totalSize,n=e.stackGroups,o=void 0===n?{}:n;if(!o)return{};for(var i={},a=Object.keys(o),c=0,l=a.length;c<l;c++)for(var s=o[a[c]].stackGroups,u=Object.keys(s),f=0,p=u.length;f<p;f++){var d=s[u[f]],y=d.items,h=d.cateAxisId,b=y.filter(function(e){return(0,eD.Mn)(e.type).indexOf("Bar")>=0});if(b&&b.length){var g=b[0].type.defaultProps,m=void 0!==g?_objectSpread(_objectSpread({},g),b[0].props):b[0].props,v=m.barSize,_=m[h];i[_]||(i[_]=[]);var x=(0,eh.A)(v)?t:v;i[_].push({item:b[0],stackList:b.slice(1),barSize:(0,eh.A)(x)?void 0:(0,eI.F4)(x,r,0)})}}return i},getBarPosition=function(e){var t,r=e.barGap,n=e.barCategoryGap,o=e.bandSize,i=e.sizeList,a=void 0===i?[]:i,c=e.maxBarSize,l=a.length;if(l<1)return null;var s=(0,eI.F4)(r,o,0,!0),u=[];if(a[0].barSize===+a[0].barSize){var f=!1,p=o/l,d=a.reduce(function(e,t){return e+t.barSize||0},0);(d+=(l-1)*s)>=o&&(d-=(l-1)*s,s=0),d>=o&&p>0&&(f=!0,p*=.9,d=l*p);var y={offset:((o-d)/2|0)-s,size:0};t=a.reduce(function(e,t){var r={item:t.item,position:{offset:y.offset+y.size+s,size:f?p:t.barSize}},n=[].concat(ChartUtils_toConsumableArray(e),[r]);return y=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){n.push({item:e,position:y})}),n},u)}else{var h=(0,eI.F4)(n,o,0,!0);o-2*h-(l-1)*s<=0&&(s=0);var b=(o-2*h-(l-1)*s)/l;b>1&&(b>>=0);var g=c===+c?Math.min(b,c):b;t=a.reduce(function(e,t,r){var n=[].concat(ChartUtils_toConsumableArray(e),[{item:t.item,position:{offset:h+(b+s)*r+(b-g)/2,size:g}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){n.push({item:e,position:n[n.length-1].position})}),n},u)}return t},appendOffsetOfLegend=function(e,t,r,n){var o=r.children,i=r.width,a=r.margin,c=i-(a.left||0)-(a.right||0),l=(0,eR.g)({children:o,legendWidth:c});if(l){var s=n||{},u=s.width,f=s.height,p=l.align,d=l.verticalAlign,y=l.layout;if(("vertical"===y||"horizontal"===y&&"middle"===d)&&"center"!==p&&(0,eI.Et)(e[p]))return _objectSpread(_objectSpread({},e),{},_defineProperty({},p,e[p]+(u||0)));if(("horizontal"===y||"vertical"===y&&"center"===p)&&"middle"!==d&&(0,eI.Et)(e[d]))return _objectSpread(_objectSpread({},e),{},_defineProperty({},d,e[d]+(f||0)))}return e},getDomainOfErrorBars=function(e,t,r,n,o){var i=t.props.children,a=(0,eD.aS)(i,eM.u).filter(function(e){var t;return t=e.props.direction,!!(0,eh.A)(o)||("horizontal"===n?"yAxis"===o:"vertical"===n||"x"===t?"xAxis"===o:"y"!==t||"yAxis"===o)});if(a&&a.length){var c=a.map(function(e){return e.props.dataKey});return e.reduce(function(e,t){var n=getValueByDataKey(t,r);if((0,eh.A)(n))return e;var o=Array.isArray(n)?[(0,ey.A)(n),(0,ed.A)(n)]:[n,n],i=c.reduce(function(e,r){var n=getValueByDataKey(t,r,0),i=o[0]-Math.abs(Array.isArray(n)?n[0]:n),a=o[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(i,e[0]),Math.max(a,e[1])]},[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]},[1/0,-1/0])}return null},parseErrorBarsOfAxis=function(e,t,r,n,o){var i=t.map(function(t){return getDomainOfErrorBars(e,t,r,o,n)}).filter(function(e){return!(0,eh.A)(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},getDomainOfItemsWithSameAxis=function(e,t,r,n,o){var i=t.map(function(t){var i=t.props.dataKey;return"number"===r&&i&&getDomainOfErrorBars(e,t,i,n)||getDomainOfDataByKey(e,i,r,o)});if("number"===r)return i.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]);var a={};return i.reduce(function(e,t){for(var r=0,n=t.length;r<n;r++)a[t[r]]||(a[t[r]]=!0,e.push(t[r]));return e},[])},isCategoricalAxis=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},getCoordinatesOfGrid=function(e,t,r,n){if(n)return e.map(function(e){return e.coordinate});var o,i,a=e.map(function(e){return e.coordinate===t&&(o=!0),e.coordinate===r&&(i=!0),e.coordinate});return o||a.push(t),i||a.push(r),a},getTicksOfAxis=function(e,t,r){if(!e)return null;var n=e.scale,o=e.duplicateDomain,i=e.type,a=e.range,c="scaleBand"===e.realScaleType?n.bandwidth()/2:2,l=(t||r)&&"category"===i&&n.bandwidth?n.bandwidth()/c:0;return(l="angleAxis"===e.axisType&&(null==a?void 0:a.length)>=2?2*(0,eI.sA)(a[0]-a[1])*l:l,t&&(e.ticks||e.niceTicks))?(e.ticks||e.niceTicks).map(function(e){return{coordinate:n(o?o.indexOf(e):e)+l,value:e,offset:l}}).filter(function(e){return!(0,e_.A)(e.coordinate)}):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(e,t){return{coordinate:n(e)+l,value:e,index:t,offset:l}}):n.ticks&&!r?n.ticks(e.tickCount).map(function(e){return{coordinate:n(e)+l,value:e,offset:l}}):n.domain().map(function(e,t){return{coordinate:n(e)+l,value:o?o[e]:e,index:t,offset:l}})},eL=new WeakMap,combineEventHandlers=function(e,t){if("function"!=typeof t)return e;eL.has(e)||eL.set(e,new WeakMap);var r=eL.get(e);if(r.has(t))return r.get(t);var combineHandler=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return r.set(t,combineHandler),combineHandler},parseScale=function(e,t,r){var n=e.scale,o=e.type,i=e.layout,a=e.axisType;if("auto"===n)return"radial"===i&&"radiusAxis"===a?{scale:f.A(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:linear(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!r)?{scale:f.z(),realScaleType:"point"}:"category"===o?{scale:f.A(),realScaleType:"band"}:{scale:linear(),realScaleType:"linear"};if((0,eg.A)(n)){var c="scale".concat((0,ex.A)(n));return{scale:(u[c]||f.z)(),realScaleType:u[c]?c:"point"}}return(0,eb.A)(n)?{scale:n}:{scale:f.z(),realScaleType:"point"}},checkDomainOfScale=function(e){var t=e.domain();if(t&&!(t.length<=2)){var r=t.length,n=e.range(),o=Math.min(n[0],n[1])-1e-4,i=Math.max(n[0],n[1])+1e-4,a=e(t[0]),c=e(t[r-1]);(a<o||a>i||c<o||c>i)&&e.domain([t[0],t[r-1]])}},findPositionOfBar=function(e,t){if(!e)return null;for(var r=0,n=e.length;r<n;r++)if(e[r].item===t)return e[r].position;return null},truncateByDomain=function(e,t){if(!t||2!==t.length||!(0,eI.Et)(t[0])||!(0,eI.Et)(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!(0,eI.Et)(e[0])||e[0]<r)&&(o[0]=r),(!(0,eI.Et)(e[1])||e[1]>n)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]<r&&(o[1]=r),o},eN={sign:function(e){var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var o=0,i=0,a=0;a<t;++a){var c=(0,e_.A)(e[a][r][1])?e[a][r][0]:e[a][r][1];c>=0?(e[a][r][0]=o,e[a][r][1]=o+c,o=e[a][r][1]):(e[a][r][0]=i,e[a][r][1]=i+c,i=e[a][r][1])}},expand:expand,none:none,silhouette:silhouette,wiggle:wiggle,positive:function(e){var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var o=0,i=0;i<t;++i){var a=(0,e_.A)(e[i][r][1])?e[i][r][0]:e[i][r][1];a>=0?(e[i][r][0]=o,e[i][r][1]=o+a,o=e[i][r][1]):(e[i][r][0]=0,e[i][r][1]=0)}}},getStackedData=function(e,t,r){var n=t.map(function(e){return e.props.dataKey}),o=eN[r];return src_stack().keys(n).value(function(e,t){return+getValueByDataKey(e,t,0)}).order(order_none).offset(o)(e)},getStackGroupsByAxisId=function(e,t,r,n,o,i){if(!e)return null;var a=(i?t.reverse():t).reduce(function(e,t){var o,i=null!=(o=t.type)&&o.defaultProps?_objectSpread(_objectSpread({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(i.hide)return e;var c=i[r],l=e[c]||{hasStack:!1,stackGroups:{}};if((0,eI.vh)(a)){var s=l.stackGroups[a]||{numericAxisId:r,cateAxisId:n,items:[]};s.items.push(t),l.hasStack=!0,l.stackGroups[a]=s}else l.stackGroups[(0,eI.NF)("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[t]};return _objectSpread(_objectSpread({},e),{},_defineProperty({},c,l))},{});return Object.keys(a).reduce(function(t,i){var c=a[i];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce(function(t,i){var a=c.stackGroups[i];return _objectSpread(_objectSpread({},t),{},_defineProperty({},i,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:getStackedData(e,a.items,o)}))},{})),_objectSpread(_objectSpread({},t),{},_defineProperty({},i,c))},{})},getTicksOfScale=function(e,t){var r=t.realScaleType,n=t.type,o=t.tickCount,i=t.originalDomain,a=t.allowDecimals,c=r||t.scale;if("auto"!==c&&"linear"!==c)return null;if(o&&"number"===n&&i&&("auto"===i[0]||"auto"===i[1])){var l=e.domain();if(!l.length)return null;var s=ek(l,o,a);return e.domain([(0,ey.A)(s),(0,ed.A)(s)]),{niceTicks:s}}return o&&"number"===n?{niceTicks:eE(e.domain(),o,a)}:null};function getCateCoordinateOfLine(e){var t=e.axis,r=e.ticks,n=e.bandSize,o=e.entry,i=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!(0,eh.A)(o[t.dataKey])){var c=(0,eI.eP)(r,"value",o[t.dataKey]);if(c)return c.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var l=getValueByDataKey(o,(0,eh.A)(a)?t.dataKey:a);return(0,eh.A)(l)?null:t.scale(l)}var getCateCoordinateOfBar=function(e){var t=e.axis,r=e.ticks,n=e.offset,o=e.bandSize,i=e.entry,a=e.index;if("category"===t.type)return r[a]?r[a].coordinate+n:null;var c=getValueByDataKey(i,t.dataKey,t.domain[a]);return(0,eh.A)(c)?null:t.scale(c)-o/2+n},getBaseValueOfBar=function(e){var t=e.numericAxis,r=t.scale.domain();if("number"===t.type){var n=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return n<=0&&o>=0?0:o<0?o:n}return r[0]},getStackedDataOfItem=function(e,t){var r,n=(null!=(r=e.type)&&r.defaultProps?_objectSpread(_objectSpread({},e.type.defaultProps),e.props):e.props).stackId;if((0,eI.vh)(n)){var o=t[n];if(o){var i=o.items.indexOf(e);return i>=0?o.stackedData[i]:null}}return null},getDomainOfStackGroups=function(e,t,r){return Object.keys(e).reduce(function(n,o){var i=e[o].stackedData.reduce(function(e,n){var o=n.slice(t,r+1).reduce(function(e,t){return[(0,ey.A)(t.concat([e[0]]).filter(eI.Et)),(0,ed.A)(t.concat([e[1]]).filter(eI.Et))]},[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]},[1/0,-1/0]);return[Math.min(i[0],n[0]),Math.max(i[1],n[1])]},[1/0,-1/0]).map(function(e){return e===1/0||e===-1/0?0:e})},eB=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,eW=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,parseSpecifiedDomain=function(e,t,r){if((0,eb.A)(e))return e(t,r);if(!Array.isArray(e))return t;var n=[];if((0,eI.Et)(e[0]))n[0]=r?e[0]:Math.min(e[0],t[0]);else if(eB.test(e[0])){var o=+eB.exec(e[0])[1];n[0]=t[0]-o}else(0,eb.A)(e[0])?n[0]=e[0](t[0]):n[0]=t[0];if((0,eI.Et)(e[1]))n[1]=r?e[1]:Math.max(e[1],t[1]);else if(eW.test(e[1])){var i=+eW.exec(e[1])[1];n[1]=t[1]+i}else(0,eb.A)(e[1])?n[1]=e[1](t[1]):n[1]=t[1];return n},getBandSizeOfAxis=function(e,t,r){if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var o=(0,eA.A)(t,function(e){return e.coordinate}),i=1/0,a=1,c=o.length;a<c;a++){var l=o[a],s=o[a-1];i=Math.min((l.coordinate||0)-(s.coordinate||0),i)}return i===1/0?0:i}return r?void 0:0},parseDomainOfCategoryAxis=function(e,t,r){return!e||!e.length||(0,eP.A)(e,(0,em.A)(r,"type.defaultProps.domain"))?t:e},getTooltipItem=function(e,t){var r=e.type.defaultProps?_objectSpread(_objectSpread({},e.type.defaultProps),e.props):e.props,n=r.dataKey,o=r.name,i=r.unit,a=r.formatter,c=r.tooltipType,l=r.chartType,s=r.hide;return _objectSpread(_objectSpread({},(0,eD.J9)(e,!1)),{},{dataKey:n,unit:i,formatter:a,name:o||n,color:getMainColorOfGraphicItem(e),value:getValueByDataKey(t,n),type:c,payload:t,chartType:l,hide:s})}},0x13e81779d:(e,t,r)=>{"use strict";r.d(t,{A3:()=>getOffset,Pu:()=>getStringSize});var n=r(0x29ad96af);function _typeof(e){return(_typeof="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 ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var o={widthCache:{},cacheCount:0},i={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},a="recharts_measurement_span";function removeInvalidKeys(e){var t=_objectSpread({},e);return Object.keys(t).forEach(function(e){t[e]||delete t[e]}),t}var getStringSize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||n.m.isSsr)return{width:0,height:0};var r=removeInvalidKeys(t),c=JSON.stringify({text:e,copyStyle:r});if(o.widthCache[c])return o.widthCache[c];try{var l=document.getElementById(a);l||((l=document.createElement("span")).setAttribute("id",a),l.setAttribute("aria-hidden","true"),document.body.appendChild(l));var s=_objectSpread(_objectSpread({},i),r);Object.assign(l.style,s),l.textContent="".concat(e);var u=l.getBoundingClientRect(),f={width:u.width,height:u.height};return o.widthCache[c]=f,++o.cacheCount>2e3&&(o.cacheCount=0,o.widthCache={}),f}catch{return{width:0,height:0}}},getOffset=function(e){return{top:e.top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft}}},0x7bea1699:(e,t,r)=>{"use strict";r.d(t,{CG:()=>hasDuplicate,Dj:()=>interpolateNumber,Et:()=>isNumber,F4:()=>getPercentValue,NF:()=>uniqueId,_3:()=>isPercent,eP:()=>findEntryInArray,lX:()=>getAnyElementOfObject,sA:()=>mathSign,vh:()=>isNumOrStr});var n=r(0xb77a689a),o=r(0xef503114),i=r(0x77727995),a=r(0x18f2150ea),mathSign=function(e){return 0===e?0:e>0?1:-1},isPercent=function(e){return(0,n.A)(e)&&e.indexOf("%")===e.length-1},isNumber=function(e){return(0,a.A)(e)&&!(0,o.A)(e)},isNumOrStr=function(e){return isNumber(e)||(0,n.A)(e)},c=0,uniqueId=function(e){var t=++c;return"".concat(e||"").concat(t)},getPercentValue=function(e,t){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!isNumber(e)&&!(0,n.A)(e))return i;if(isPercent(e)){var c=e.indexOf("%");r=t*parseFloat(e.slice(0,c))/100}else r=+e;return(0,o.A)(r)&&(r=i),a&&r>t&&(r=t),r},getAnyElementOfObject=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},hasDuplicate=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(r[e[n]])return!0;else r[e[n]]=!0;return!1},interpolateNumber=function(e,t){return isNumber(e)&&isNumber(t)?function(r){return e+r*(t-e)}:function(){return t}};function findEntryInArray(e,t,r){return e&&e.length?e.find(function(e){return e&&("function"==typeof t?t(e):(0,i.A)(e,t))===r}):null}},0x29ad96af:(e,t,r)=>{"use strict";r.d(t,{m:()=>n});var n={isSsr:!("u">typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(e){return n[e]},set:function(e,t){if("string"==typeof e)n[e]=t;else{var r=Object.keys(e);r&&r.length&&r.forEach(function(t){n[t]=e[t]})}}}},0x1c8d10397:(e,t,r)=>{"use strict";r.d(t,{R:()=>warn});var warn=function(e,t){for(var r=arguments.length,n=Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o]}},0x148b36991:(e,t,r)=>{"use strict";r.d(t,{IZ:()=>polarToCartesian,Kg:()=>l,Zk:()=>getTickClassName,lY:()=>getMaxRadius,pr:()=>formatAxisMap,yy:()=>inRangeOfSector});var n=r(0x202470d56),o=r(0xbad225b5),i=r(0x33644bb7),a=r(0x7bea1699),c=r(0x13907dc1a);function _typeof(e){return(_typeof="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 ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _arrayLikeToArray(e,t)}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _iterableToArrayLimit(e,t){var r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){s=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}function _arrayWithHoles(e){if(Array.isArray(e))return e}var l=Math.PI/180,polarToCartesian=function(e,t,r,n){return{x:e+Math.cos(-l*n)*r,y:t+Math.sin(-l*n)*r}},getMaxRadius=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(r.left||0)-(r.right||0)),Math.abs(t-(r.top||0)-(r.bottom||0)))/2},formatAxisMap=function(e,t,r,o,i){var l=e.width,s=e.height,u=e.startAngle,f=e.endAngle,p=(0,a.F4)(e.cx,l,l/2),d=(0,a.F4)(e.cy,s,s/2),y=getMaxRadius(l,s,r),h=(0,a.F4)(e.innerRadius,y,0),b=(0,a.F4)(e.outerRadius,y,.8*y);return Object.keys(t).reduce(function(e,r){var a,l=t[r],s=l.domain,y=l.reversed;if((0,n.A)(l.range))"angleAxis"===o?a=[u,f]:"radiusAxis"===o&&(a=[h,b]),y&&(a=[a[1],a[0]]);else{var g=_slicedToArray(a=l.range,2);u=g[0],f=g[1]}var m=(0,c.W7)(l,i),v=m.realScaleType,_=m.scale;_.domain(s).range(a),(0,c.YB)(_);var x=(0,c.w7)(_,_objectSpread(_objectSpread({},l),{},{realScaleType:v})),P=_objectSpread(_objectSpread(_objectSpread({},l),x),{},{range:a,radius:b,realScaleType:v,scale:_,cx:p,cy:d,innerRadius:h,outerRadius:b,startAngle:u,endAngle:f});return _objectSpread(_objectSpread({},e),{},_defineProperty({},r,P))},{})},distanceBetweenPoints=function(e,t){var r=e.x,n=e.y;return Math.sqrt(Math.pow(r-t.x,2)+Math.pow(n-t.y,2))},getAngleOfPoint=function(e,t){var r=e.x,n=e.y,o=t.cx,i=t.cy,a=distanceBetweenPoints({x:r,y:n},{x:o,y:i});if(a<=0)return{radius:a};var c=Math.acos((r-o)/a);return n>i&&(c=2*Math.PI-c),{radius:a,angle:180*c/Math.PI,angleInRadian:c}},formatAngleOfSector=function(e){var t=e.startAngle,r=e.endAngle,n=Math.min(Math.floor(t/360),Math.floor(r/360));return{startAngle:t-360*n,endAngle:r-360*n}},inRangeOfSector=function(e,t){var r,n=getAngleOfPoint({x:e.x,y:e.y},t),o=n.radius,i=n.angle,a=t.innerRadius,c=t.outerRadius;if(o<a||o>c)return!1;if(0===o)return!0;var l=formatAngleOfSector(t),s=l.startAngle,u=l.endAngle,f=i;if(s<=u){for(;f>u;)f-=360;for(;f<s;)f+=360;r=f>=s&&f<=u}else{for(;f>s;)f-=360;for(;f<u;)f+=360;r=f>=u&&f<=s}return r?_objectSpread(_objectSpread({},t),{},{radius:o,angle:f+360*Math.min(Math.floor(t.startAngle/360),Math.floor(t.endAngle/360))}):null},getTickClassName=function(e){return(0,o.isValidElement)(e)||(0,i.A)(e)||"boolean"==typeof e?"":e.className}},0xd0f20cec:(e,t,r)=>{"use strict";r.d(t,{AW:()=>parseChildIndex,BU:()=>findChildByType,J9:()=>filterProps,Me:()=>validateWidthHeight,Mn:()=>getDisplayName,OV:()=>isChildrenEqual,X_:()=>getReactEventByType,aS:()=>findAllByType,ee:()=>renderByOrder,sT:()=>hasClipDot});var n=r(0x77727995),o=r(0x202470d56),i=r(0xb77a689a),a=r(0x33644bb7),c=r(0x1598e5174),l=r(0xbad225b5),s=r(0x675ec73e),u=r(0x7bea1699),f=r(0x319df928),p=r(0xee79d415),d=["children"],y=["children"];function _objectWithoutProperties(e,t){if(null==e)return{};var r,n,o=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function _typeof(e){return(_typeof="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)}var h={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},getDisplayName=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},b=null,g=null,toArray=function toArray(e){if(e===b&&Array.isArray(g))return g;var t=[];return l.Children.forEach(e,function(e){(0,o.A)(e)||((0,s.isFragment)(e)?t=t.concat(toArray(e.props.children)):t.push(e))}),g=t,b=e,t};function findAllByType(e,t){var r=[],o=[];return o=Array.isArray(t)?t.map(function(e){return getDisplayName(e)}):[getDisplayName(t)],toArray(e).forEach(function(e){var t=(0,n.A)(e,"type.displayName")||(0,n.A)(e,"type.name");-1!==o.indexOf(t)&&r.push(e)}),r}function findChildByType(e,t){var r=findAllByType(e,t);return r&&r[0]}var validateWidthHeight=function(e){if(!e||!e.props)return!1;var t=e.props,r=t.width,n=t.height;return!!(0,u.Et)(r)&&!(r<=0)&&!!(0,u.Et)(n)&&!(n<=0)},m=["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"],hasClipDot=function(e){return e&&"object"===_typeof(e)&&"clipDot"in e},isValidSpreadableProp=function(e,t,r,n){var o,i=null!=(o=null===p.VU||void 0===p.VU?void 0:p.VU[n])?o:[];return!(0,a.A)(e)&&(n&&i.includes(t)||p.QQ.includes(t))||r&&p.j2.includes(t)},filterProps=function(e,t,r){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var n=e;if((0,l.isValidElement)(e)&&(n=e.props),!(0,c.A)(n))return null;var o={};return Object.keys(n).forEach(function(e){var i;isValidSpreadableProp(null==(i=n)?void 0:i[e],e,t,r)&&(o[e]=n[e])}),o},isChildrenEqual=function isChildrenEqual(e,t){if(e===t)return!0;var r=l.Children.count(e);if(r!==l.Children.count(t))return!1;if(0===r)return!0;if(1===r)return isSingleChildEqual(Array.isArray(e)?e[0]:e,Array.isArray(t)?t[0]:t);for(var n=0;n<r;n++){var o=e[n],i=t[n];if(Array.isArray(o)||Array.isArray(i)){if(!isChildrenEqual(o,i))return!1}else if(!isSingleChildEqual(o,i))return!1}return!0},isSingleChildEqual=function(e,t){if((0,o.A)(e)&&(0,o.A)(t))return!0;if(!(0,o.A)(e)&&!(0,o.A)(t)){var r=e.props||{},n=r.children,i=_objectWithoutProperties(r,d),a=t.props||{},c=a.children,l=_objectWithoutProperties(a,y);if(n&&c)return(0,f.b)(i,l)&&isChildrenEqual(n,c);if(!n&&!c)return(0,f.b)(i,l)}return!1},renderByOrder=function(e,t){var r=[],n={};return toArray(e).forEach(function(e,o){if(e&&e.type&&(0,i.A)(e.type)&&m.indexOf(e.type)>=0)r.push(e);else if(e){var a=getDisplayName(e.type),c=t[a]||{},l=c.handler,s=c.once;if(l&&(!s||!n[a])){var u=l(e,a,o);r.push(u),n[a]=!0}}}),r},getReactEventByType=function(e){var t=e&&e.type;return t&&h[t]?h[t]:null},parseChildIndex=function(e,t){return toArray(t).indexOf(e)}},0x319df928:(e,t,r)=>{"use strict";function shallowEqual(e,t){for(var r in e)if(({}).hasOwnProperty.call(e,r)&&(!({}).hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if(({}).hasOwnProperty.call(t,n)&&!({}).hasOwnProperty.call(e,n))return!1;return!0}r.d(t,{b:()=>shallowEqual})},0xd2fa006d:(e,t,r)=>{"use strict";r.d(t,{g:()=>getLegendProps});var n=r(0xa108b107),o=r(0x13907dc1a),i=r(0xd0f20cec);function _typeof(e){return(_typeof="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 ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_typeof(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var getLegendProps=function(e){var t,r=e.children,a=e.formattedGraphicalItems,c=e.legendWidth,l=e.legendContent,s=(0,i.BU)(r,n.s);if(!s)return null;var u=n.s.defaultProps,f=void 0!==u?_objectSpread(_objectSpread({},u),s.props):{};return t=s.props&&s.props.payload?s.props&&s.props.payload:"children"===l?(a||[]).reduce(function(e,t){var r=t.item,n=t.props,o=n.sectors||n.data||[];return e.concat(o.map(function(e){return{type:s.props.iconType||r.props.legendType,value:e.name,color:e.fill,payload:e}}))},[]):(a||[]).map(function(e){var t=e.item,r=t.type.defaultProps,n=void 0!==r?_objectSpread(_objectSpread({},r),t.props):{},i=n.dataKey,a=n.name,c=n.legendType;return{inactive:n.hide,dataKey:i,type:f.iconType||c||"square",color:(0,o.Ps)(t),value:a||i,payload:n}}),_objectSpread(_objectSpread(_objectSpread({},f),n.s.getWithHeight(s,c)),{},{payload:t,item:s})}},0x2a114bca:(e,t,r)=>{"use strict";r.d(t,{s:()=>getUniqPayload});var n=r(0x18af67efb),o=r(0x33644bb7);function getUniqPayload(e,t,r){return!0===t?(0,n.A)(e,r):(0,o.A)(t)?(0,n.A)(e,t):e}},0xee79d415:(e,t,r)=>{"use strict";r.d(t,{QQ:()=>i,VU:()=>c,XC:()=>adaptEventsOfChild,_U:()=>adaptEventHandlers,j2:()=>l});var n=r(0xbad225b5),o=r(0x1598e5174);function _typeof(e){return(_typeof="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)}var i=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],a=["points","pathLength"],c={svg:["viewBox","children"],polygon:a,polyline:a},l=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],adaptEventHandlers=function(e,t){if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if((0,n.isValidElement)(e)&&(r=e.props),!(0,o.A)(r))return null;var i={};return Object.keys(r).forEach(function(e){l.includes(e)&&(i[e]=t||function(t){return r[e](r,t)})}),i},adaptEventsOfChild=function(e,t,r){if(!(0,o.A)(e)||"object"!==_typeof(e))return null;var n=null;return Object.keys(e).forEach(function(o){var i=e[o];l.includes(o)&&"function"==typeof i&&(n||(n={}),n[o]=function(e){return i(t,r,e),null})}),n}},0x21bcd8869:(e,t,r)=>{"use strict";function src_define(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function extend(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Color(){}r.d(t,{Ay:()=>color,Qh:()=>rgb});var n="\\s*([+-]?\\d+)\\s*",o="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",i="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",a=/^#([0-9a-f]{3,8})$/,c=RegExp(`^rgb\\(${n},${n},${n}\\)$`),l=RegExp(`^rgb\\(${i},${i},${i}\\)$`),s=RegExp(`^rgba\\(${n},${n},${n},${o}\\)$`),u=RegExp(`^rgba\\(${i},${i},${i},${o}\\)$`),f=RegExp(`^hsl\\(${o},${i},${i}\\)$`),p=RegExp(`^hsla\\(${o},${i},${i},${o}\\)$`),d={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function color_formatHex(){return this.rgb().formatHex()}function color_formatRgb(){return this.rgb().formatRgb()}function color(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=a.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?rgbn(t):3===r?new Rgb(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?rgba(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?rgba(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=c.exec(e))?new Rgb(t[1],t[2],t[3],1):(t=l.exec(e))?new Rgb(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=s.exec(e))?rgba(t[1],t[2],t[3],t[4]):(t=u.exec(e))?rgba(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=f.exec(e))?hsla(t[1],t[2]/100,t[3]/100,1):(t=p.exec(e))?hsla(t[1],t[2]/100,t[3]/100,t[4]):d.hasOwnProperty(e)?rgbn(d[e]):"transparent"===e?new Rgb(NaN,NaN,NaN,0):null}function rgbn(e){return new Rgb(e>>16&255,e>>8&255,255&e,1)}function rgba(e,t,r,n){return n<=0&&(e=t=r=NaN),new Rgb(e,t,r,n)}function rgbConvert(e){return(e instanceof Color||(e=color(e)),e)?new Rgb((e=e.rgb()).r,e.g,e.b,e.opacity):new Rgb}function rgb(e,t,r,n){return 1==arguments.length?rgbConvert(e):new Rgb(e,t,r,null==n?1:n)}function Rgb(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function rgb_formatHex(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}`}function rgb_formatHex8(){return`#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity)?1:this.opacity)*255)}`}function rgb_formatRgb(){let e=clampa(this.opacity);return`${1===e?"rgb(":"rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${1===e?")":`, ${e})`}`}function clampa(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function clampi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function hex(e){return((e=clampi(e))<16?"0":"")+e.toString(16)}function hsla(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Hsl(e,t,r,n)}function hslConvert(e){if(e instanceof Hsl)return new Hsl(e.h,e.s,e.l,e.opacity);if(e instanceof Color||(e=color(e)),!e)return new Hsl;if(e instanceof Hsl)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,c=i-o,l=(i+o)/2;return c?(a=t===i?(r-n)/c+(r<n)*6:r===i?(n-t)/c+2:(t-r)/c+4,c/=l<.5?i+o:2-i-o,a*=60):c=l>0&&l<1?0:a,new Hsl(a,c,l,e.opacity)}function hsl(e,t,r,n){return 1==arguments.length?hslConvert(e):new Hsl(e,t,r,null==n?1:n)}function Hsl(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function clamph(e){return(e=(e||0)%360)<0?e+360:e}function clampt(e){return Math.max(0,Math.min(1,e||0))}function hsl2rgb(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}src_define(Color,color,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:color_formatHex,formatHex:color_formatHex,formatHex8:function color_formatHex8(){return this.rgb().formatHex8()},formatHsl:function color_formatHsl(){return hslConvert(this).formatHsl()},formatRgb:color_formatRgb,toString:color_formatRgb}),src_define(Rgb,rgb,extend(Color,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new Rgb(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Rgb(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Rgb(clampi(this.r),clampi(this.g),clampi(this.b),clampa(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rgb_formatHex,formatHex:rgb_formatHex,formatHex8:rgb_formatHex8,formatRgb:rgb_formatRgb,toString:rgb_formatRgb})),src_define(Hsl,hsl,extend(Color,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new Hsl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Hsl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new Rgb(hsl2rgb(e>=240?e-240:e+120,o,n),hsl2rgb(e,o,n),hsl2rgb(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new Hsl(clamph(this.h),clampt(this.s),clampt(this.l),clampa(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=clampa(this.opacity);return`${1===e?"hsl(":"hsla("}${clamph(this.h)}, ${100*clampt(this.s)}%, ${100*clampt(this.l)}%${1===e?")":`, ${e})`}`}}))},0x200d51768:(e,t,r)=>{"use strict";r.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});let __WEBPACK_DEFAULT_EXPORT__=e=>()=>e},0xa0523d01:(e,t,r)=>{"use strict";function __WEBPACK_DEFAULT_EXPORT__(e,t){return e*=1,t*=1,function(r){return e*(1-r)+t*r}}r.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__})},0xd3dadb25:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>i});var n=r(0x21bcd8869);function basis(e,t,r,n,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*r+(1+3*e+3*i-3*a)*n+a*o)/6}function src_basis(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),o=e[n],i=e[n+1],a=n>0?e[n-1]:2*o-i,c=n<t-1?e[n+2]:2*i-o;return basis((r-n/t)*t,a,o,i,c)}}function basisClosed(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),o=e[(n+t-1)%t],i=e[n%t],a=e[(n+1)%t],c=e[(n+2)%t];return basis((r-n/t)*t,o,i,a,c)}}var o=r(0x200d51768);function linear(e,t){return function(r){return e+r*t}}function exponential(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function gamma(e){return 1==(e*=1)?nogamma:function(t,r){return r-t?exponential(t,r,e):(0,o.A)(isNaN(t)?r:t)}}function nogamma(e,t){var r=t-e;return r?linear(e,r):(0,o.A)(isNaN(e)?t:e)}let i=function rgbGamma(e){var t=gamma(e);function rgb(e,r){var o=t((e=(0,n.Qh)(e)).r,(r=(0,n.Qh)(r)).r),i=t(e.g,r.g),a=t(e.b,r.b),c=nogamma(e.opacity,r.opacity);return function(t){return e.r=o(t),e.g=i(t),e.b=a(t),e.opacity=c(t),e+""}}return rgb.gamma=rgbGamma,rgb}(1);function rgbSpline(e){return function(t){var r,o,i=t.length,a=Array(i),c=Array(i),l=Array(i);for(r=0;r<i;++r)o=(0,n.Qh)(t[r]),a[r]=o.r||0,c[r]=o.g||0,l[r]=o.b||0;return a=e(a),c=e(c),l=e(l),o.opacity=1,function(e){return o.r=a(e),o.g=c(e),o.b=l(e),o+""}}}rgbSpline(src_basis),rgbSpline(basisClosed)},0x24fd03b65:(e,t,r)=>{"use strict";r.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__});var n=r(0xa0523d01),o=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,i=RegExp(o.source,"g");function zero(e){return function(){return e}}function one(e){return function(t){return e(t)+""}}function __WEBPACK_DEFAULT_EXPORT__(e,t){var r,a,c,l=o.lastIndex=i.lastIndex=0,s=-1,u=[],f=[];for(e+="",t+="";(r=o.exec(e))&&(a=i.exec(t));)(c=a.index)>l&&(c=t.slice(l,c),u[s]?u[s]+=c:u[++s]=c),(r=r[0])===(a=a[0])?u[s]?u[s]+=a:u[++s]=a:(u[++s]=null,f.push({i:s,x:(0,n.A)(r,a)})),l=i.lastIndex;return l<t.length&&(c=t.slice(l),u[s]?u[s]+=c:u[++s]=c),u.length<2?f[0]?one(f[0].x):zero(t):(t=f.length,function(e){for(var r,n=0;n<t;++n)u[(r=f[n]).i]=r.x(e);return u.join("")})}},0xa47c5f0b:(e,t,r)=>{"use strict";function range(e,t,r){e*=1,t*=1,r=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+r;for(var n=-1,o=0|Math.max(0,Math.ceil((t-e)/r)),i=Array(o);++n<o;)i[n]=e+n*r;return i}r.d(t,{A:()=>band,z:()=>point});var n=r(0x90b71ef5),o=r(0xf458bf63);function band(){var e,t,r=(0,o.A)().unknown(void 0),i=r.domain,a=r.range,c=0,l=1,s=!1,u=0,f=0,p=.5;function rescale(){var r=i().length,n=l<c,o=n?l:c,d=n?c:l;e=(d-o)/Math.max(1,r-u+2*f),s&&(e=Math.floor(e)),o+=(d-o-e*(r-u))*p,t=e*(1-u),s&&(o=Math.round(o),t=Math.round(t));var y=range(r).map(function(t){return o+e*t});return a(n?y.reverse():y)}return delete r.unknown,r.domain=function(e){return arguments.length?(i(e),rescale()):i()},r.range=function(e){return arguments.length?([c,l]=e,c*=1,l*=1,rescale()):[c,l]},r.rangeRound=function(e){return[c,l]=e,c*=1,l*=1,s=!0,rescale()},r.bandwidth=function(){return t},r.step=function(){return e},r.round=function(e){return arguments.length?(s=!!e,rescale()):s},r.padding=function(e){return arguments.length?(u=Math.min(1,f=+e),rescale()):u},r.paddingInner=function(e){return arguments.length?(u=Math.min(1,e),rescale()):u},r.paddingOuter=function(e){return arguments.length?(f=+e,rescale()):f},r.align=function(e){return arguments.length?(p=Math.max(0,Math.min(1,e)),rescale()):p},r.copy=function(){return band(i(),[c,l]).round(s).paddingInner(u).paddingOuter(f).align(p)},n.C.apply(rescale(),arguments)}function pointish(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return pointish(t())},e}function point(){return pointish(band.apply(null,arguments).paddingInner(1))}},0x90b71ef5:(e,t,r)=>{"use strict";function initRange(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function initInterpolator(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}r.d(t,{C:()=>initRange,K:()=>initInterpolator})},0xf458bf63:(e,t,r)=>{"use strict";r.d(t,{A:()=>ordinal,h:()=>o});let InternMap=class InternMap extends Map{constructor(e,t=keyof){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,r]of e)this.set(t,r)}get(e){return super.get(intern_get(this,e))}has(e){return super.has(intern_get(this,e))}set(e,t){return super.set(intern_set(this,e),t)}delete(e){return super.delete(intern_delete(this,e))}};function intern_get({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):r}function intern_set({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function intern_delete({_intern:e,_key:t},r){let n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function keyof(e){return null!==e&&"object"==typeof e?e.valueOf():e}var n=r(0x90b71ef5);let o=Symbol("implicit");function ordinal(){var e=new InternMap,t=[],r=[],i=o;function scale(n){let a=e.get(n);if(void 0===a){if(i!==o)return i;e.set(n,a=t.push(n)-1)}return r[a%r.length]}return scale.domain=function(r){if(!arguments.length)return t.slice();for(let n of(t=[],e=new InternMap,r))e.has(n)||e.set(n,t.push(n)-1);return scale},scale.range=function(e){return arguments.length?(r=Array.from(e),scale):r.slice()},scale.unknown=function(e){return arguments.length?(i=e,scale):i},scale.copy=function(){return ordinal(t,r).unknown(i)},n.C.apply(scale,arguments),scale}},0x1fea5e730:(e,t,r)=>{"use strict";function __WEBPACK_DEFAULT_EXPORT__(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}r.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__}),Array.prototype.slice},0x65ff5cdb:(e,t,r)=>{"use strict";function __WEBPACK_DEFAULT_EXPORT__(e){return function(){return e}}r.d(t,{A:()=>__WEBPACK_DEFAULT_EXPORT__})},0x323a5d71:(e,t,r)=>{"use strict";r.d(t,{i:()=>withPath});let n=Math.PI,o=2*n,i=o-1e-6;function append(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function appendRound(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return append;let r=10**t;return function(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=Math.round(arguments[t]*r)/r+e[t]}}let Path=class Path{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?append:appendRound(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,r,n){this._append`Q${+e},${+t},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(e,t,r,n,o,i){this._append`C${+e},${+t},${+r},${+n},${this._x1=+o},${this._y1=+i}`}arcTo(e,t,r,o,i){if(e*=1,t*=1,r*=1,o*=1,(i*=1)<0)throw Error(`negative radius: ${i}`);let a=this._x1,c=this._y1,l=r-e,s=o-t,u=a-e,f=c-t,p=u*u+f*f;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(p>1e-6)if(Math.abs(f*l-s*u)>1e-6&&i){let d=r-a,y=o-c,h=l*l+s*s,b=Math.sqrt(h),g=Math.sqrt(p),m=i*Math.tan((n-Math.acos((h+p-(d*d+y*y))/(2*b*g)))/2),v=m/g,_=m/b;Math.abs(v-1)>1e-6&&this._append`L${e+v*u},${t+v*f}`,this._append`A${i},${i},0,0,${+(f*d>u*y)},${this._x1=e+_*l},${this._y1=t+_*s}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,r,a,c,l){if(e*=1,t*=1,r*=1,l=!!l,r<0)throw Error(`negative radius: ${r}`);let s=r*Math.cos(a),u=r*Math.sin(a),f=e+s,p=t+u,d=1^l,y=l?a-c:c-a;null===this._x1?this._append`M${f},${p}`:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-p)>1e-6)&&this._append`L${f},${p}`,r&&(y<0&&(y=y%o+o),y>i?this._append`A${r},${r},0,1,${d},${e-s},${t-u}A${r},${r},0,1,${d},${this._x1=f},${this._y1=p}`:y>1e-6&&this._append`A${r},${r},0,${+(y>=n)},${d},${this._x1=e+r*Math.cos(c)},${this._y1=t+r*Math.sin(c)}`)}rect(e,t,r,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${r*=1}v${+n}h${-r}Z`}toString(){return this._}};function withPath(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(null==r)t=null;else{let e=Math.floor(r);if(!(e>=0))throw RangeError(`invalid digits: ${r}`);t=e}return e},()=>new Path(t)}Path.prototype},0x1a54ab070:(e,t,r)=>{"use strict";r.d(t,{A:()=>invariant});function invariant(e,t){if(!e)throw Error("Invariant failed")}}}]);
//# sourceMappingURL=https://slack.com/source-maps/bv1-13/gantry-v2-async-vendors-node_modules_recharts_es6_cartesian_CartesianGrid_js-node_modules_recharts_es6_chart_-553340.d56eae80f59b60a70dbe.min.js.mapØA
—Eoúô