import{a as B,b as P,P as Z,g as Us}from"./@fortawesome-BrQH7clO.js";import{i as nn,a as Ys,b as nr,g as Se,c as ir,d as H,e as G,u as ti,f as yo,s as Xa,t as Hc,m as ri,h as Ze,j as Zs,k as Dt,l as Js,n as Qs,o as ef,p as tf,q as rf,r as bn,v as nf,w as Uc,x as af,y as of,z as uf}from"./lodash-BXc8AdSU.js";import"./sentry-bT6RnIm4.js";import{S as cf,s as Yc,a as lf,b as sf,c as ff,d as pf,e as df,f as vf,g as mo,l as go,p as mn,h as bo,i as hf,j as yf,k as mf,m as gf,n as bf,o as Of,q as un,r as xf,t as Zc,u as wf,v as Af,w as Pf,x as Sf,y as jf,z as Ef,A as $f,B as _f,C as Tf,D as If,E as kf,F as Cf}from"./d3-DLGAemJv.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="6650d667-3fe6-4491-a83c-877c5eb6b2e8",t._sentryDebugIdIdentifier="sentry-dbid-6650d667-3fe6-4491-a83c-877c5eb6b2e8")}catch{}})();function Jc(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(r=Jc(t[e]))&&(n&&(n+=" "),n+=r);else for(e in t)t[e]&&(n&&(n+=" "),n+=e);return n}function U(){for(var t,e,r=0,n="";r<arguments.length;)(t=arguments[r++])&&(e=Jc(t))&&(n&&(n+=" "),n+=e);return n}var Ai={exports:{}},J={};/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Oo;function Mf(){if(Oo)return J;Oo=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),s=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function y(d){if(typeof d=="object"&&d!==null){var O=d.$$typeof;switch(O){case t:switch(d=d.type,d){case r:case i:case n:case l:case s:return d;default:switch(d=d&&d.$$typeof,d){case u:case o:case c:case p:case f:case a:return d;default:return O}}case e:return O}}}return J.ContextConsumer=o,J.ContextProvider=a,J.Element=t,J.ForwardRef=c,J.Fragment=r,J.Lazy=p,J.Memo=f,J.Portal=e,J.Profiler=i,J.StrictMode=n,J.Suspense=l,J.SuspenseList=s,J.isAsyncMode=function(){return!1},J.isConcurrentMode=function(){return!1},J.isContextConsumer=function(d){return y(d)===o},J.isContextProvider=function(d){return y(d)===a},J.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===t},J.isForwardRef=function(d){return y(d)===c},J.isFragment=function(d){return y(d)===r},J.isLazy=function(d){return y(d)===p},J.isMemo=function(d){return y(d)===f},J.isPortal=function(d){return y(d)===e},J.isProfiler=function(d){return y(d)===i},J.isStrictMode=function(d){return y(d)===n},J.isSuspense=function(d){return y(d)===l},J.isSuspenseList=function(d){return y(d)===s},J.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===i||d===n||d===l||d===s||d===v||typeof d=="object"&&d!==null&&(d.$$typeof===p||d.$$typeof===f||d.$$typeof===a||d.$$typeof===o||d.$$typeof===c||d.$$typeof===m||d.getModuleId!==void 0)},J.typeOf=y,J}var xo;function Df(){return xo||(xo=1,Ai.exports=Mf()),Ai.exports}var Nf=Df(),be=function(e){return e===0?0:e>0?1:-1},st=function(e){return nn(e)&&e.indexOf("%")===e.length-1},D=function(e){return Ys(e)&&!nr(e)},fe=function(e){return D(e)||nn(e)},Bf=0,ar=function(e){var r=++Bf;return"".concat(e||"").concat(r)},Oe=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!D(e)&&!nn(e))return n;var a;if(st(e)){var o=e.indexOf("%");a=r*parseFloat(e.slice(0,o))/100}else a=+e;return nr(a)&&(a=n),i&&a>r&&(a=r),a},Ye=function(e){if(!e)return null;var r=Object.keys(e);return r&&r.length?e[r[0]]:null},Rf=function(e){if(!Array.isArray(e))return!1;for(var r=e.length,n={},i=0;i<r;i++)if(!n[e[i]])n[e[i]]=!0;else return!0;return!1},xe=function(e,r){return D(e)&&D(r)?function(n){return e+n*(r-e)}:function(){return r}};function On(t,e,r){return!t||!t.length?null:t.find(function(n){return n&&(typeof e=="function"?e(n):Se(n,e))===r})}function It(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}function Bi(t){"@babel/helpers - typeof";return Bi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bi(t)}var Lf=["viewBox","children"],zf=["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"],wo=["points","pathLength"],Pi={svg:Lf,polygon:wo,polyline:wo},qa=["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"],xn=function(e,r){if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(B.isValidElement(e)&&(n=e.props),!ir(n))return null;var i={};return Object.keys(n).forEach(function(a){qa.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},Wf=function(e,r,n){return function(i){return e(r,n,i),null}},vt=function(e,r,n){if(!ir(e)||Bi(e)!=="object")return null;var i=null;return Object.keys(e).forEach(function(a){var o=e[a];qa.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=Wf(o,r,n))}),i},Ff=["children"],Kf=["children"];function Ao(t,e){if(t==null)return{};var r=Vf(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Vf(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function Ri(t){"@babel/helpers - typeof";return Ri=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ri(t)}var Po={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"},Ge=function(e){return typeof e=="string"?e:e?e.displayName||e.name||"Component":""},So=null,Si=null,Ha=function t(e){if(e===So&&Array.isArray(Si))return Si;var r=[];return B.Children.forEach(e,function(n){H(n)||(Nf.isFragment(n)?r=r.concat(t(n.props.children)):r.push(n))}),Si=r,So=e,r};function _e(t,e){var r=[],n=[];return Array.isArray(e)?n=e.map(function(i){return Ge(i)}):n=[Ge(e)],Ha(t).forEach(function(i){var a=Se(i,"type.displayName")||Se(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Ae(t,e){var r=_e(t,e);return r&&r[0]}var jo=function(e){if(!e||!e.props)return!1;var r=e.props,n=r.width,i=r.height;return!(!D(n)||n<=0||!D(i)||i<=0)},Gf=["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"],Xf=function(e){return e&&e.type&&nn(e.type)&&Gf.indexOf(e.type)>=0},qf=function(e){return e&&Ri(e)==="object"&&"clipDot"in e},Hf=function(e,r,n,i){var a,o=(a=Pi==null?void 0:Pi[i])!==null&&a!==void 0?a:[];return!G(e)&&(i&&o.includes(r)||zf.includes(r))||n&&qa.includes(r)},F=function(e,r,n){if(!e||typeof e=="function"||typeof e=="boolean")return null;var i=e;if(B.isValidElement(e)&&(i=e.props),!ir(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;Hf((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},Li=function t(e,r){if(e===r)return!0;var n=B.Children.count(e);if(n!==B.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Eo(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=e[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!t(a,o))return!1}else if(!Eo(a,o))return!1}return!0},Eo=function(e,r){if(H(e)&&H(r))return!0;if(!H(e)&&!H(r)){var n=e.props||{},i=n.children,a=Ao(n,Ff),o=r.props||{},u=o.children,c=Ao(o,Kf);return i&&u?It(a,c)&&Li(i,u):!i&&!u?It(a,c):!1}return!1},$o=function(e,r){var n=[],i={};return Ha(e).forEach(function(a,o){if(Xf(a))n.push(a);else if(a){var u=Ge(a.type),c=r[u]||{},l=c.handler,s=c.once;if(l&&(!s||!i[u])){var f=l(a,u,o);n.push(f),i[u]=!0}}}),n},Uf=function(e){var r=e&&e.type;return r&&Po[r]?Po[r]:null},Yf=function(e,r){return Ha(r).indexOf(e)},Zf=["children","width","height","viewBox","className","style","title","desc"];function zi(){return zi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},zi.apply(this,arguments)}function Jf(t,e){if(t==null)return{};var r=Qf(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Qf(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function Wi(t){var e=t.children,r=t.width,n=t.height,i=t.viewBox,a=t.className,o=t.style,u=t.title,c=t.desc,l=Jf(t,Zf),s=i||{width:r,height:n,x:0,y:0},f=U("recharts-surface",a);return P.createElement("svg",zi({},F(l,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(s.x," ").concat(s.y," ").concat(s.width," ").concat(s.height)}),P.createElement("title",null,u),P.createElement("desc",null,c),e)}var ep=["children","className"];function Fi(){return Fi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Fi.apply(this,arguments)}function tp(t,e){if(t==null)return{};var r=rp(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function rp(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var Y=P.forwardRef(function(t,e){var r=t.children,n=t.className,i=tp(t,ep),a=U("recharts-layer",n);return P.createElement("g",Fi({className:a},F(i,!0),{ref:e}),r)}),Me=function(e,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]};function Er(t){"@babel/helpers - typeof";return Er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Er(t)}var np=["type","size","sizeType"];function Ki(){return Ki=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ki.apply(this,arguments)}function _o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function To(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?_o(Object(r),!0).forEach(function(n){ip(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_o(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ip(t,e,r){return e=ap(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ap(t){var e=op(t,"string");return Er(e)=="symbol"?e:e+""}function op(t,e){if(Er(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Er(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function up(t,e){if(t==null)return{};var r=cp(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function cp(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var Qc={symbolCircle:Yc,symbolCross:lf,symbolDiamond:sf,symbolSquare:ff,symbolStar:pf,symbolTriangle:df,symbolWye:vf},lp=Math.PI/180,sp=function(e){var r="symbol".concat(ti(e));return Qc[r]||Yc},fp=function(e,r,n){if(r==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var i=18*lp;return 1.25*e*e*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),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}},pp=function(e,r){Qc["symbol".concat(ti(e))]=r},Ua=function(e){var r=e.type,n=r===void 0?"circle":r,i=e.size,a=i===void 0?64:i,o=e.sizeType,u=o===void 0?"area":o,c=up(e,np),l=To(To({},c),{},{type:n,size:a,sizeType:u}),s=function(){var d=sp(n),O=cf().type(d).size(fp(a,u,n));return O()},f=l.className,p=l.cx,v=l.cy,m=F(l,!0);return p===+p&&v===+v&&a===+a?P.createElement("path",Ki({},m,{className:U("recharts-symbols",f),transform:"translate(".concat(p,", ").concat(v,")"),d:s()})):null};Ua.registerSymbol=pp;function Nt(t){"@babel/helpers - typeof";return Nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nt(t)}function Vi(){return Vi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Vi.apply(this,arguments)}function Io(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function dp(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Io(Object(r),!0).forEach(function(n){$r(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Io(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function vp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hp(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,tl(n.key),n)}}function yp(t,e,r){return e&&hp(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function mp(t,e,r){return e=wn(e),gp(t,el()?Reflect.construct(e,r||[],wn(t).constructor):e.apply(t,r))}function gp(t,e){if(e&&(Nt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bp(t)}function bp(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function el(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(el=function(){return!!t})()}function wn(t){return wn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wn(t)}function Op(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Gi(t,e)}function Gi(t,e){return Gi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gi(t,e)}function $r(t,e,r){return e=tl(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function tl(t){var e=xp(t,"string");return Nt(e)=="symbol"?e:e+""}function xp(t,e){if(Nt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Nt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ee=32,Ya=function(t){function e(){return vp(this,e),mp(this,e,arguments)}return Op(e,t),yp(e,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Ee/2,o=Ee/6,u=Ee/3,c=n.inactive?i:n.color;if(n.type==="plainline")return P.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Ee,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return P.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(a,"h").concat(u,`
            A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,`
            H`).concat(Ee,"M").concat(2*u,",").concat(a,`
            A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return P.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(Ee/8,"h").concat(Ee,"v").concat(Ee*3/4,"h").concat(-Ee,"z"),className:"recharts-legend-icon"});if(P.isValidElement(n.legendIcon)){var l=dp({},n);return delete l.legendIcon,P.cloneElement(n.legendIcon,l)}return P.createElement(Ua,{fill:c,cx:a,cy:a,size:Ee,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,u=i.layout,c=i.formatter,l=i.inactiveColor,s={x:0,y:0,width:Ee,height:Ee},f={display:u==="horizontal"?"inline-block":"block",marginRight:10},p={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(v,m){var y=v.formatter||c,d=U($r($r({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",v.inactive));if(v.type==="none")return null;var O=G(v.value)?null:v.value;Me(!G(v.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 b=v.inactive?l:v.color;return P.createElement("li",Vi({className:d,style:f,key:"legend-item-".concat(m)},vt(n.props,v,m)),P.createElement(Wi,{width:o,height:o,viewBox:s,style:p},n.renderIcon(v)),P.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},y?y(O,v,m):O))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return P.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])}(B.PureComponent);$r(Ya,"displayName","Legend");$r(Ya,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});function rl(t,e,r){return e===!0?yo(t,r):G(e)?yo(t,e):t}function Bt(t){"@babel/helpers - typeof";return Bt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bt(t)}var wp=["ref"];function ko(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function We(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ko(Object(r),!0).forEach(function(n){ni(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ko(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Ap(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Co(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,il(n.key),n)}}function Pp(t,e,r){return e&&Co(t.prototype,e),r&&Co(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Sp(t,e,r){return e=An(e),jp(t,nl()?Reflect.construct(e,r||[],An(t).constructor):e.apply(t,r))}function jp(t,e){if(e&&(Bt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ep(t)}function Ep(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function nl(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nl=function(){return!!t})()}function An(t){return An=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},An(t)}function $p(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Xi(t,e)}function Xi(t,e){return Xi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Xi(t,e)}function ni(t,e,r){return e=il(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function il(t){var e=_p(t,"string");return Bt(e)=="symbol"?e:e+""}function _p(t,e){if(Bt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Bt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Tp(t,e){if(t==null)return{};var r=Ip(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Ip(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function kp(t){return t.value}function Cp(t,e){if(P.isValidElement(t))return P.cloneElement(t,e);if(typeof t=="function")return P.createElement(t,e);e.ref;var r=Tp(e,wp);return P.createElement(Ya,r)}var Mo=1,kt=function(t){function e(){var r;Ap(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Sp(this,e,[].concat(i)),ni(r,"lastBoundingBox",{width:-1,height:-1}),r}return $p(e,t),Pp(e,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>Mo||Math.abs(i.height-this.lastBoundingBox.height)>Mo)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?We({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,c=i.margin,l=i.chartWidth,s=i.chartHeight,f,p;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var v=this.getBBoxSnapshot();f={left:((l||0)-v.width)/2}}else f=o==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var m=this.getBBoxSnapshot();p={top:((s||0)-m.height)/2}}else p=u==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return We(We({},f),p)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,c=i.wrapperStyle,l=i.payloadUniqBy,s=i.payload,f=We(We({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(c)),c);return P.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(v){n.wrapperNode=v}},Cp(a,We(We({},this.props),{},{payload:rl(s,l,kp)})))}}],[{key:"getWithHeight",value:function(n,i){var a=We(We({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&D(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])}(B.PureComponent);ni(kt,"displayName","Legend");ni(kt,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});function _r(t){"@babel/helpers - typeof";return _r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_r(t)}function qi(){return qi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},qi.apply(this,arguments)}function Mp(t,e){return Rp(t)||Bp(t,e)||Np(t,e)||Dp()}function Dp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Np(t,e){if(t){if(typeof t=="string")return Do(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Do(t,e)}}function Do(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Bp(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,l=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(s){l=!0,i=s}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function Rp(t){if(Array.isArray(t))return t}function No(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ji(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?No(Object(r),!0).forEach(function(n){Lp(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):No(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Lp(t,e,r){return e=zp(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zp(t){var e=Wp(t,"string");return _r(e)=="symbol"?e:e+""}function Wp(t,e){if(_r(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(_r(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Fp(t){return Array.isArray(t)&&fe(t[0])&&fe(t[1])?t.join(" ~ "):t}var Kp=function(e){var r=e.separator,n=r===void 0?" : ":r,i=e.contentStyle,a=i===void 0?{}:i,o=e.itemStyle,u=o===void 0?{}:o,c=e.labelStyle,l=c===void 0?{}:c,s=e.payload,f=e.formatter,p=e.itemSorter,v=e.wrapperClassName,m=e.labelClassName,y=e.label,d=e.labelFormatter,O=e.accessibilityLayer,b=O===void 0?!1:O,x=function(){if(s&&s.length){var $={padding:0,margin:0},k=(p?Xa(s,p):s).map(function(C,I){if(C.type==="none")return null;var M=ji({display:"block",paddingTop:4,paddingBottom:4,color:C.color||"#000"},u),N=C.formatter||f||Fp,R=C.value,W=C.name,K=R,X=W;if(N&&K!=null&&X!=null){var L=N(R,W,C,I,s);if(Array.isArray(L)){var q=Mp(L,2);K=q[0],X=q[1]}else K=L}return P.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(I),style:M},fe(X)?P.createElement("span",{className:"recharts-tooltip-item-name"},X):null,fe(X)?P.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,P.createElement("span",{className:"recharts-tooltip-item-value"},K),P.createElement("span",{className:"recharts-tooltip-item-unit"},C.unit||""))});return P.createElement("ul",{className:"recharts-tooltip-item-list",style:$},k)}return null},w=ji({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),h=ji({margin:0},l),g=!H(y),A=g?y:"",S=U("recharts-default-tooltip",v),j=U("recharts-tooltip-label",m);g&&d&&s!==void 0&&s!==null&&(A=d(y,s));var _=b?{role:"status","aria-live":"assertive"}:{};return P.createElement("div",qi({className:S,style:w},_),P.createElement("p",{className:j,style:h},P.isValidElement(A)?A:"".concat(A)),x())};function Tr(t){"@babel/helpers - typeof";return Tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tr(t)}function cn(t,e,r){return e=Vp(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Vp(t){var e=Gp(t,"string");return Tr(e)=="symbol"?e:e+""}function Gp(t,e){if(Tr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var yr="recharts-tooltip-wrapper",Xp={visibility:"hidden"};function qp(t){var e=t.coordinate,r=t.translateX,n=t.translateY;return U(yr,cn(cn(cn(cn({},"".concat(yr,"-right"),D(r)&&e&&D(e.x)&&r>=e.x),"".concat(yr,"-left"),D(r)&&e&&D(e.x)&&r<e.x),"".concat(yr,"-bottom"),D(n)&&e&&D(e.y)&&n>=e.y),"".concat(yr,"-top"),D(n)&&e&&D(e.y)&&n<e.y))}function Bo(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,i=t.offsetTopLeft,a=t.position,o=t.reverseDirection,u=t.tooltipDimension,c=t.viewBox,l=t.viewBoxDimension;if(a&&D(a[n]))return a[n];var s=r[n]-u-i,f=r[n]+i;if(e[n])return o[n]?s:f;if(o[n]){var p=s,v=c[n];return p<v?Math.max(f,c[n]):Math.max(s,c[n])}var m=f+u,y=c[n]+l;return m>y?Math.max(s,c[n]):Math.max(f,c[n])}function Hp(t){var e=t.translateX,r=t.translateY,n=t.useTranslate3d;return{transform:n?"translate3d(".concat(e,"px, ").concat(r,"px, 0)"):"translate(".concat(e,"px, ").concat(r,"px)")}}function Up(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.offsetTopLeft,i=t.position,a=t.reverseDirection,o=t.tooltipBox,u=t.useTranslate3d,c=t.viewBox,l,s,f;return o.height>0&&o.width>0&&r?(s=Bo({allowEscapeViewBox:e,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),f=Bo({allowEscapeViewBox:e,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),l=Hp({translateX:s,translateY:f,useTranslate3d:u})):l=Xp,{cssProperties:l,cssClasses:qp({translateX:s,translateY:f,coordinate:r})}}function Rt(t){"@babel/helpers - typeof";return Rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rt(t)}function Ro(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Lo(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ro(Object(r),!0).forEach(function(n){Ui(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ro(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Yp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zp(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ol(n.key),n)}}function Jp(t,e,r){return e&&Zp(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Qp(t,e,r){return e=Pn(e),ed(t,al()?Reflect.construct(e,r||[],Pn(t).constructor):e.apply(t,r))}function ed(t,e){if(e&&(Rt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return td(t)}function td(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function al(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(al=function(){return!!t})()}function Pn(t){return Pn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pn(t)}function rd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Hi(t,e)}function Hi(t,e){return Hi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Hi(t,e)}function Ui(t,e,r){return e=ol(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ol(t){var e=nd(t,"string");return Rt(e)=="symbol"?e:e+""}function nd(t,e){if(Rt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Rt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var zo=1,id=function(t){function e(){var r;Yp(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Qp(this,e,[].concat(i)),Ui(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Ui(r,"handleKeyDown",function(o){if(o.key==="Escape"){var u,c,l,s;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(c=r.props.coordinate)===null||c===void 0?void 0:c.x)!==null&&u!==void 0?u:0,y:(l=(s=r.props.coordinate)===null||s===void 0?void 0:s.y)!==null&&l!==void 0?l:0}})}}),r}return rd(e,t),Jp(e,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>zo||Math.abs(n.height-this.state.lastBoundingBox.height)>zo)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&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 n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,c=i.animationEasing,l=i.children,s=i.coordinate,f=i.hasPayload,p=i.isAnimationActive,v=i.offset,m=i.position,y=i.reverseDirection,d=i.useTranslate3d,O=i.viewBox,b=i.wrapperStyle,x=Up({allowEscapeViewBox:o,coordinate:s,offsetTopLeft:v,position:m,reverseDirection:y,tooltipBox:this.state.lastBoundingBox,useTranslate3d:d,viewBox:O}),w=x.cssClasses,h=x.cssProperties,g=Lo(Lo({transition:p&&a?"transform ".concat(u,"ms ").concat(c):void 0},h),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},b);return P.createElement("div",{tabIndex:-1,className:w,style:g,ref:function(S){n.wrapperNode=S}},l)}}])}(B.PureComponent),ad=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Be={isSsr:ad(),get:function(e){return Be[e]},set:function(e,r){if(typeof e=="string")Be[e]=r;else{var n=Object.keys(e);n&&n.length&&n.forEach(function(i){Be[i]=e[i]})}}};function Lt(t){"@babel/helpers - typeof";return Lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lt(t)}function Wo(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Fo(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Wo(Object(r),!0).forEach(function(n){Za(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Wo(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function od(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ud(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,cl(n.key),n)}}function cd(t,e,r){return e&&ud(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function ld(t,e,r){return e=Sn(e),sd(t,ul()?Reflect.construct(e,r||[],Sn(t).constructor):e.apply(t,r))}function sd(t,e){if(e&&(Lt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fd(t)}function fd(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ul(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ul=function(){return!!t})()}function Sn(t){return Sn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Sn(t)}function pd(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Yi(t,e)}function Yi(t,e){return Yi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Yi(t,e)}function Za(t,e,r){return e=cl(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cl(t){var e=dd(t,"string");return Lt(e)=="symbol"?e:e+""}function dd(t,e){if(Lt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Lt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function vd(t){return t.dataKey}function hd(t,e){return P.isValidElement(t)?P.cloneElement(t,e):typeof t=="function"?P.createElement(t,e):P.createElement(Kp,e)}var Fe=function(t){function e(){return od(this,e),ld(this,e,arguments)}return pd(e,t),cd(e,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,c=i.animationEasing,l=i.content,s=i.coordinate,f=i.filterNull,p=i.isAnimationActive,v=i.offset,m=i.payload,y=i.payloadUniqBy,d=i.position,O=i.reverseDirection,b=i.useTranslate3d,x=i.viewBox,w=i.wrapperStyle,h=m??[];f&&h.length&&(h=rl(m.filter(function(A){return A.value!=null&&(A.hide!==!0||n.props.includeHidden)}),y,vd));var g=h.length>0;return P.createElement(id,{allowEscapeViewBox:o,animationDuration:u,animationEasing:c,isAnimationActive:p,active:a,coordinate:s,hasPayload:g,offset:v,position:d,reverseDirection:O,useTranslate3d:b,viewBox:x,wrapperStyle:w},hd(l,Fo(Fo({},this.props),{},{payload:h})))}}])}(B.PureComponent);Za(Fe,"displayName","Tooltip");Za(Fe,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Be.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:{}});function Ir(t){"@babel/helpers - typeof";return Ir=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ir(t)}function Ko(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ln(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ko(Object(r),!0).forEach(function(n){yd(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ko(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function yd(t,e,r){return e=md(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function md(t){var e=gd(t,"string");return Ir(e)=="symbol"?e:e+""}function gd(t,e){if(Ir(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Ir(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function bd(t,e){return Ad(t)||wd(t,e)||xd(t,e)||Od()}function Od(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xd(t,e){if(t){if(typeof t=="string")return Vo(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vo(t,e)}}function Vo(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function wd(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,l=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(s){l=!0,i=s}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function Ad(t){if(Array.isArray(t))return t}var Rx=B.forwardRef(function(t,e){var r=t.aspect,n=t.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=t.width,o=a===void 0?"100%":a,u=t.height,c=u===void 0?"100%":u,l=t.minWidth,s=l===void 0?0:l,f=t.minHeight,p=t.maxHeight,v=t.children,m=t.debounce,y=m===void 0?0:m,d=t.id,O=t.className,b=t.onResize,x=t.style,w=x===void 0?{}:x,h=B.useRef(null),g=B.useRef();g.current=b,B.useImperativeHandle(e,function(){return Object.defineProperty(h.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),h.current},configurable:!0})});var A=B.useState({containerWidth:i.width,containerHeight:i.height}),S=bd(A,2),j=S[0],_=S[1],E=B.useCallback(function(k,C){_(function(I){var M=Math.round(k),N=Math.round(C);return I.containerWidth===M&&I.containerHeight===N?I:{containerWidth:M,containerHeight:N}})},[]);B.useEffect(function(){var k=function(W){var K,X=W[0].contentRect,L=X.width,q=X.height;E(L,q),(K=g.current)===null||K===void 0||K.call(g,L,q)};y>0&&(k=Hc(k,y,{trailing:!0,leading:!1}));var C=new ResizeObserver(k),I=h.current.getBoundingClientRect(),M=I.width,N=I.height;return E(M,N),C.observe(h.current),function(){C.disconnect()}},[E,y]);var $=B.useMemo(function(){var k=j.containerWidth,C=j.containerHeight;if(k<0||C<0)return null;Me(st(o)||st(c),`The width(%s) and height(%s) are both fixed numbers,
       maybe you don't need to use a ResponsiveContainer.`,o,c),Me(!r||r>0,"The aspect(%s) must be greater than zero.",r);var I=st(o)?k:o,M=st(c)?C:c;r&&r>0&&(I?M=I/r:M&&(I=M*r),p&&M>p&&(M=p)),Me(I>0||M>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.`,I,M,o,c,s,f,r);var N=!Array.isArray(v)&&Ge(v.type).endsWith("Chart");return P.Children.map(v,function(R){return P.isValidElement(R)?B.cloneElement(R,ln({width:I,height:M},N?{style:ln({height:"100%",width:"100%",maxHeight:M,maxWidth:I},R.props.style)}:{})):R})},[r,v,c,p,f,s,j,o]);return P.createElement("div",{id:d?"".concat(d):void 0,className:U("recharts-responsive-container",O),style:ln(ln({},w),{},{width:o,height:c,minWidth:s,minHeight:f,maxHeight:p}),ref:h},$)}),Ja=function(e){return null};Ja.displayName="Cell";function kr(t){"@babel/helpers - typeof";return kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kr(t)}function Go(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Zi(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Go(Object(r),!0).forEach(function(n){Pd(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Go(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Pd(t,e,r){return e=Sd(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Sd(t){var e=jd(t,"string");return kr(e)=="symbol"?e:e+""}function jd(t,e){if(kr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(kr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Pt={widthCache:{},cacheCount:0},Ed=2e3,$d={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Xo="recharts_measurement_span";function _d(t){var e=Zi({},t);return Object.keys(e).forEach(function(r){e[r]||delete e[r]}),e}var wr=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e==null||Be.isSsr)return{width:0,height:0};var n=_d(r),i=JSON.stringify({text:e,copyStyle:n});if(Pt.widthCache[i])return Pt.widthCache[i];try{var a=document.getElementById(Xo);a||(a=document.createElement("span"),a.setAttribute("id",Xo),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=Zi(Zi({},$d),n);Object.assign(a.style,o),a.textContent="".concat(e);var u=a.getBoundingClientRect(),c={width:u.width,height:u.height};return Pt.widthCache[i]=c,++Pt.cacheCount>Ed&&(Pt.cacheCount=0,Pt.widthCache={}),c}catch{return{width:0,height:0}}},Td=function(e){return{top:e.top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft}};function Cr(t){"@babel/helpers - typeof";return Cr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Cr(t)}function jn(t,e){return Md(t)||Cd(t,e)||kd(t,e)||Id()}function Id(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kd(t,e){if(t){if(typeof t=="string")return qo(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qo(t,e)}}function qo(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Cd(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,l=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(s){l=!0,i=s}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function Md(t){if(Array.isArray(t))return t}function Dd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ho(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Bd(n.key),n)}}function Nd(t,e,r){return e&&Ho(t.prototype,e),r&&Ho(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Bd(t){var e=Rd(t,"string");return Cr(e)=="symbol"?e:e+""}function Rd(t,e){if(Cr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Cr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var Uo=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Yo=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Ld=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,zd=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,ll={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Wd=Object.keys(ll),jt="NaN";function Fd(t,e){return t*ll[e]}var sn=function(){function t(e,r){Dd(this,t),this.num=e,this.unit=r,this.num=e,this.unit=r,Number.isNaN(e)&&(this.unit=""),r!==""&&!Ld.test(r)&&(this.num=NaN,this.unit=""),Wd.includes(r)&&(this.num=Fd(e,r),this.unit="px")}return Nd(t,[{key:"add",value:function(r){return this.unit!==r.unit?new t(NaN,""):new t(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new t(NaN,""):new t(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new t(NaN,""):new t(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new t(NaN,""):new t(this.num/r.num,this.unit||r.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(r){var n,i=(n=zd.exec(r))!==null&&n!==void 0?n:[],a=jn(i,3),o=a[1],u=a[2];return new t(parseFloat(o),u??"")}}])}();function sl(t){if(t.includes(jt))return jt;for(var e=t;e.includes("*")||e.includes("/");){var r,n=(r=Uo.exec(e))!==null&&r!==void 0?r:[],i=jn(n,4),a=i[1],o=i[2],u=i[3],c=sn.parse(a??""),l=sn.parse(u??""),s=o==="*"?c.multiply(l):c.divide(l);if(s.isNaN())return jt;e=e.replace(Uo,s.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var f,p=(f=Yo.exec(e))!==null&&f!==void 0?f:[],v=jn(p,4),m=v[1],y=v[2],d=v[3],O=sn.parse(m??""),b=sn.parse(d??""),x=y==="+"?O.add(b):O.subtract(b);if(x.isNaN())return jt;e=e.replace(Yo,x.toString())}return e}var Zo=/\(([^()]*)\)/;function Kd(t){for(var e=t;e.includes("(");){var r=Zo.exec(e),n=jn(r,2),i=n[1];e=e.replace(Zo,sl(i))}return e}function Vd(t){var e=t.replace(/\s+/g,"");return e=Kd(e),e=sl(e),e}function Gd(t){try{return Vd(t)}catch{return jt}}function Ei(t){var e=Gd(t.slice(5,-1));return e===jt?"":e}var Xd=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],qd=["dx","dy","angle","className","breakAll"];function Ji(){return Ji=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ji.apply(this,arguments)}function Jo(t,e){if(t==null)return{};var r=Hd(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Hd(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function Qo(t,e){return Jd(t)||Zd(t,e)||Yd(t,e)||Ud()}function Ud(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yd(t,e){if(t){if(typeof t=="string")return eu(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eu(t,e)}}function eu(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Zd(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,l=!1;try{if(a=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(s){l=!0,i=s}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function Jd(t){if(Array.isArray(t))return t}var fl=/[ \f\n\r\t\v\u2028\u2029]+/,pl=function(e){var r=e.children,n=e.breakAll,i=e.style;try{var a=[];H(r)||(n?a=r.toString().split(""):a=r.toString().split(fl));var o=a.map(function(c){return{word:c,width:wr(c,i).width}}),u=n?0:wr(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},Qd=function(e,r,n,i,a){var o=e.maxLines,u=e.children,c=e.style,l=e.breakAll,s=D(o),f=u,p=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return I.reduce(function(M,N){var R=N.word,W=N.width,K=M[M.length-1];if(K&&(i==null||a||K.width+W+n<Number(i)))K.words.push(R),K.width+=W+n;else{var X={words:[R],width:W};M.push(X)}return M},[])},v=p(r),m=function(I){return I.reduce(function(M,N){return M.width>N.width?M:N})};if(!s)return v;for(var y="…",d=function(I){var M=f.slice(0,I),N=pl({breakAll:l,style:c,children:M+y}).wordsWithComputedWidth,R=p(N),W=R.length>o||m(R).width>Number(i);return[W,R]},O=0,b=f.length-1,x=0,w;O<=b&&x<=f.length-1;){var h=Math.floor((O+b)/2),g=h-1,A=d(g),S=Qo(A,2),j=S[0],_=S[1],E=d(h),$=Qo(E,1),k=$[0];if(!j&&!k&&(O=h+1),j&&k&&(b=h-1),!j&&k){w=_;break}x++}return w||v},tu=function(e){var r=H(e)?[]:e.toString().split(fl);return[{words:r}]},ev=function(e){var r=e.width,n=e.scaleToFit,i=e.children,a=e.style,o=e.breakAll,u=e.maxLines;if((r||n)&&!Be.isSsr){var c,l,s=pl({breakAll:o,children:i,style:a});if(s){var f=s.wordsWithComputedWidth,p=s.spaceWidth;c=f,l=p}else return tu(i);return Qd({breakAll:o,children:i,maxLines:u,style:a},c,l,r,n)}return tu(i)},ru="#808080",ht=function(e){var r=e.x,n=r===void 0?0:r,i=e.y,a=i===void 0?0:i,o=e.lineHeight,u=o===void 0?"1em":o,c=e.capHeight,l=c===void 0?"0.71em":c,s=e.scaleToFit,f=s===void 0?!1:s,p=e.textAnchor,v=p===void 0?"start":p,m=e.verticalAnchor,y=m===void 0?"end":m,d=e.fill,O=d===void 0?ru:d,b=Jo(e,Xd),x=B.useMemo(function(){return ev({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:f,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,f,b.style,b.width]),w=b.dx,h=b.dy,g=b.angle,A=b.className,S=b.breakAll,j=Jo(b,qd);if(!fe(n)||!fe(a))return null;var _=n+(D(w)?w:0),E=a+(D(h)?h:0),$;switch(y){case"start":$=Ei("calc(".concat(l,")"));break;case"middle":$=Ei("calc(".concat((x.length-1)/2," * -").concat(u," + (").concat(l," / 2))"));break;default:$=Ei("calc(".concat(x.length-1," * -").concat(u,")"));break}var k=[];if(f){var C=x[0].width,I=b.width;k.push("scale(".concat((D(I)?I/C:1)/C,")"))}return g&&k.push("rotate(".concat(g,", ").concat(_,", ").concat(E,")")),k.length&&(j.transform=k.join(" ")),P.createElement("text",Ji({},F(j,!0),{x:_,y:E,className:U("recharts-text",A),textAnchor:v,fill:O.includes("url")?ru:O}),x.map(function(M,N){var R=M.words.join(S?"":" ");return P.createElement("tspan",{x:_,dy:N===0?$:u,key:"".concat(R,"-").concat(N)},R)}))},or=1e9,tv={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},eo,ie=!0,Te="[DecimalError] ",dt=Te+"Invalid argument: ",Qa=Te+"Exponent out of range: ",ur=Math.floor,ct=Math.pow,rv=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Pe,de=1e7,ne=7,dl=9007199254740991,En=ur(dl/ne),z={};z.absoluteValue=z.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t};z.comparedTo=z.cmp=function(t){var e,r,n,i,a=this;if(t=new a.constructor(t),a.s!==t.s)return a.s||-t.s;if(a.e!==t.e)return a.e>t.e^a.s<0?1:-1;for(n=a.d.length,i=t.d.length,e=0,r=n<i?n:i;e<r;++e)if(a.d[e]!==t.d[e])return a.d[e]>t.d[e]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};z.decimalPlaces=z.dp=function(){var t=this,e=t.d.length-1,r=(e-t.e)*ne;if(e=t.d[e],e)for(;e%10==0;e/=10)r--;return r<0?0:r};z.dividedBy=z.div=function(t){return Xe(this,new this.constructor(t))};z.dividedToIntegerBy=z.idiv=function(t){var e=this,r=e.constructor;return ee(Xe(e,new r(t),0,1),r.precision)};z.equals=z.eq=function(t){return!this.cmp(t)};z.exponent=function(){return ce(this)};z.greaterThan=z.gt=function(t){return this.cmp(t)>0};z.greaterThanOrEqualTo=z.gte=function(t){return this.cmp(t)>=0};z.isInteger=z.isint=function(){return this.e>this.d.length-2};z.isNegative=z.isneg=function(){return this.s<0};z.isPositive=z.ispos=function(){return this.s>0};z.isZero=function(){return this.s===0};z.lessThan=z.lt=function(t){return this.cmp(t)<0};z.lessThanOrEqualTo=z.lte=function(t){return this.cmp(t)<1};z.logarithm=z.log=function(t){var e,r=this,n=r.constructor,i=n.precision,a=i+5;if(t===void 0)t=new n(10);else if(t=new n(t),t.s<1||t.eq(Pe))throw Error(Te+"NaN");if(r.s<1)throw Error(Te+(r.s?"NaN":"-Infinity"));return r.eq(Pe)?new n(0):(ie=!1,e=Xe(Mr(r,a),Mr(t,a),a),ie=!0,ee(e,i))};z.minus=z.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?yl(e,t):vl(e,(t.s=-t.s,t))};z.modulo=z.mod=function(t){var e,r=this,n=r.constructor,i=n.precision;if(t=new n(t),!t.s)throw Error(Te+"NaN");return r.s?(ie=!1,e=Xe(r,t,0,1).times(t),ie=!0,r.minus(e)):ee(new n(r),i)};z.naturalExponential=z.exp=function(){return hl(this)};z.naturalLogarithm=z.ln=function(){return Mr(this)};z.negated=z.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t};z.plus=z.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?vl(e,t):yl(e,(t.s=-t.s,t))};z.precision=z.sd=function(t){var e,r,n,i=this;if(t!==void 0&&t!==!!t&&t!==1&&t!==0)throw Error(dt+t);if(e=ce(i)+1,n=i.d.length-1,r=n*ne+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return t&&e>r?e:r};z.squareRoot=z.sqrt=function(){var t,e,r,n,i,a,o,u=this,c=u.constructor;if(u.s<1){if(!u.s)return new c(0);throw Error(Te+"NaN")}for(t=ce(u),ie=!1,i=Math.sqrt(+u),i==0||i==1/0?(e=De(u.d),(e.length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=ur((t+1)/2)-(t<0||t%2),i==1/0?e="5e"+t:(e=i.toExponential(),e=e.slice(0,e.indexOf("e")+1)+t),n=new c(e)):n=new c(i.toString()),r=c.precision,i=o=r+3;;)if(a=n,n=a.plus(Xe(u,a,o+2)).times(.5),De(a.d).slice(0,o)===(e=De(n.d)).slice(0,o)){if(e=e.slice(o-3,o+1),i==o&&e=="4999"){if(ee(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(e!="9999")break;o+=4}return ie=!0,ee(n,r)};z.times=z.mul=function(t){var e,r,n,i,a,o,u,c,l,s=this,f=s.constructor,p=s.d,v=(t=new f(t)).d;if(!s.s||!t.s)return new f(0);for(t.s*=s.s,r=s.e+t.e,c=p.length,l=v.length,c<l&&(a=p,p=v,v=a,o=c,c=l,l=o),a=[],o=c+l,n=o;n--;)a.push(0);for(n=l;--n>=0;){for(e=0,i=c+n;i>n;)u=a[i]+v[n]*p[i-n-1]+e,a[i--]=u%de|0,e=u/de|0;a[i]=(a[i]+e)%de|0}for(;!a[--o];)a.pop();return e?++r:a.shift(),t.d=a,t.e=r,ie?ee(t,f.precision):t};z.toDecimalPlaces=z.todp=function(t,e){var r=this,n=r.constructor;return r=new n(r),t===void 0?r:(Le(t,0,or),e===void 0?e=n.rounding:Le(e,0,8),ee(r,t+ce(r)+1,e))};z.toExponential=function(t,e){var r,n=this,i=n.constructor;return t===void 0?r=yt(n,!0):(Le(t,0,or),e===void 0?e=i.rounding:Le(e,0,8),n=ee(new i(n),t+1,e),r=yt(n,!0,t+1)),r};z.toFixed=function(t,e){var r,n,i=this,a=i.constructor;return t===void 0?yt(i):(Le(t,0,or),e===void 0?e=a.rounding:Le(e,0,8),n=ee(new a(i),t+ce(i)+1,e),r=yt(n.abs(),!1,t+ce(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};z.toInteger=z.toint=function(){var t=this,e=t.constructor;return ee(new e(t),ce(t)+1,e.rounding)};z.toNumber=function(){return+this};z.toPower=z.pow=function(t){var e,r,n,i,a,o,u=this,c=u.constructor,l=12,s=+(t=new c(t));if(!t.s)return new c(Pe);if(u=new c(u),!u.s){if(t.s<1)throw Error(Te+"Infinity");return u}if(u.eq(Pe))return u;if(n=c.precision,t.eq(Pe))return ee(u,n);if(e=t.e,r=t.d.length-1,o=e>=r,a=u.s,o){if((r=s<0?-s:s)<=dl){for(i=new c(Pe),e=Math.ceil(n/ne+4),ie=!1;r%2&&(i=i.times(u),iu(i.d,e)),r=ur(r/2),r!==0;)u=u.times(u),iu(u.d,e);return ie=!0,t.s<0?new c(Pe).div(i):ee(i,n)}}else if(a<0)throw Error(Te+"NaN");return a=a<0&&t.d[Math.max(e,r)]&1?-1:1,u.s=1,ie=!1,i=t.times(Mr(u,n+l)),ie=!0,i=hl(i),i.s=a,i};z.toPrecision=function(t,e){var r,n,i=this,a=i.constructor;return t===void 0?(r=ce(i),n=yt(i,r<=a.toExpNeg||r>=a.toExpPos)):(Le(t,1,or),e===void 0?e=a.rounding:Le(e,0,8),i=ee(new a(i),t,e),r=ce(i),n=yt(i,t<=r||r<=a.toExpNeg,t)),n};z.toSignificantDigits=z.tosd=function(t,e){var r=this,n=r.constructor;return t===void 0?(t=n.precision,e=n.rounding):(Le(t,1,or),e===void 0?e=n.rounding:Le(e,0,8)),ee(new n(r),t,e)};z.toString=z.valueOf=z.val=z.toJSON=z[Symbol.for("nodejs.util.inspect.custom")]=function(){var t=this,e=ce(t),r=t.constructor;return yt(t,e<=r.toExpNeg||e>=r.toExpPos)};function vl(t,e){var r,n,i,a,o,u,c,l,s=t.constructor,f=s.precision;if(!t.s||!e.s)return e.s||(e=new s(t)),ie?ee(e,f):e;if(c=t.d,l=e.d,o=t.e,i=e.e,c=c.slice(),a=o-i,a){for(a<0?(n=c,a=-a,u=l.length):(n=l,i=o,u=c.length),o=Math.ceil(f/ne),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=c.length,a=l.length,u-a<0&&(a=u,n=l,l=c,c=n),r=0;a;)r=(c[--a]=c[a]+l[a]+r)/de|0,c[a]%=de;for(r&&(c.unshift(r),++i),u=c.length;c[--u]==0;)c.pop();return e.d=c,e.e=i,ie?ee(e,f):e}function Le(t,e,r){if(t!==~~t||t<e||t>r)throw Error(dt+t)}function De(t){var e,r,n,i=t.length-1,a="",o=t[0];if(i>0){for(a+=o,e=1;e<i;e++)n=t[e]+"",r=ne-n.length,r&&(a+=Ue(r)),a+=n;o=t[e],n=o+"",r=ne-n.length,r&&(a+=Ue(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var Xe=function(){function t(n,i){var a,o=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%de|0,o=a/de|0;return o&&n.unshift(o),n}function e(n,i,a,o){var u,c;if(a!=o)c=a>o?1:-1;else for(u=c=0;u<a;u++)if(n[u]!=i[u]){c=n[u]>i[u]?1:-1;break}return c}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*de+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,c,l,s,f,p,v,m,y,d,O,b,x,w,h,g,A,S,j=n.constructor,_=n.s==i.s?1:-1,E=n.d,$=i.d;if(!n.s)return new j(n);if(!i.s)throw Error(Te+"Division by zero");for(c=n.e-i.e,A=$.length,h=E.length,v=new j(_),m=v.d=[],l=0;$[l]==(E[l]||0);)++l;if($[l]>(E[l]||0)&&--c,a==null?b=a=j.precision:o?b=a+(ce(n)-ce(i))+1:b=a,b<0)return new j(0);if(b=b/ne+2|0,l=0,A==1)for(s=0,$=$[0],b++;(l<h||s)&&b--;l++)x=s*de+(E[l]||0),m[l]=x/$|0,s=x%$|0;else{for(s=de/($[0]+1)|0,s>1&&($=t($,s),E=t(E,s),A=$.length,h=E.length),w=A,y=E.slice(0,A),d=y.length;d<A;)y[d++]=0;S=$.slice(),S.unshift(0),g=$[0],$[1]>=de/2&&++g;do s=0,u=e($,y,A,d),u<0?(O=y[0],A!=d&&(O=O*de+(y[1]||0)),s=O/g|0,s>1?(s>=de&&(s=de-1),f=t($,s),p=f.length,d=y.length,u=e(f,y,p,d),u==1&&(s--,r(f,A<p?S:$,p))):(s==0&&(u=s=1),f=$.slice()),p=f.length,p<d&&f.unshift(0),r(y,f,d),u==-1&&(d=y.length,u=e($,y,A,d),u<1&&(s++,r(y,A<d?S:$,d))),d=y.length):u===0&&(s++,y=[0]),m[l++]=s,u&&y[0]?y[d++]=E[w]||0:(y=[E[w]],d=1);while((w++<h||y[0]!==void 0)&&b--)}return m[0]||m.shift(),v.e=c,ee(v,o?a+ce(v)+1:a)}}();function hl(t,e){var r,n,i,a,o,u,c=0,l=0,s=t.constructor,f=s.precision;if(ce(t)>16)throw Error(Qa+ce(t));if(!t.s)return new s(Pe);for(e==null?(ie=!1,u=f):u=e,o=new s(.03125);t.abs().gte(.1);)t=t.times(o),l+=5;for(n=Math.log(ct(2,l))/Math.LN10*2+5|0,u+=n,r=i=a=new s(Pe),s.precision=u;;){if(i=ee(i.times(t),u),r=r.times(++c),o=a.plus(Xe(i,r,u)),De(o.d).slice(0,u)===De(a.d).slice(0,u)){for(;l--;)a=ee(a.times(a),u);return s.precision=f,e==null?(ie=!0,ee(a,f)):a}a=o}}function ce(t){for(var e=t.e*ne,r=t.d[0];r>=10;r/=10)e++;return e}function $i(t,e,r){if(e>t.LN10.sd())throw ie=!0,r&&(t.precision=r),Error(Te+"LN10 precision limit exceeded");return ee(new t(t.LN10),e)}function Ue(t){for(var e="";t--;)e+="0";return e}function Mr(t,e){var r,n,i,a,o,u,c,l,s,f=1,p=10,v=t,m=v.d,y=v.constructor,d=y.precision;if(v.s<1)throw Error(Te+(v.s?"NaN":"-Infinity"));if(v.eq(Pe))return new y(0);if(e==null?(ie=!1,l=d):l=e,v.eq(10))return e==null&&(ie=!0),$i(y,l);if(l+=p,y.precision=l,r=De(m),n=r.charAt(0),a=ce(v),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)v=v.times(t),r=De(v.d),n=r.charAt(0),f++;a=ce(v),n>1?(v=new y("0."+r),a++):v=new y(n+"."+r.slice(1))}else return c=$i(y,l+2,d).times(a+""),v=Mr(new y(n+"."+r.slice(1)),l-p).plus(c),y.precision=d,e==null?(ie=!0,ee(v,d)):v;for(u=o=v=Xe(v.minus(Pe),v.plus(Pe),l),s=ee(v.times(v),l),i=3;;){if(o=ee(o.times(s),l),c=u.plus(Xe(o,new y(i),l)),De(c.d).slice(0,l)===De(u.d).slice(0,l))return u=u.times(2),a!==0&&(u=u.plus($i(y,l+2,d).times(a+""))),u=Xe(u,new y(f),l),y.precision=d,e==null?(ie=!0,ee(u,d)):u;u=c,i+=2}}function nu(t,e){var r,n,i;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;e.charCodeAt(n)===48;)++n;for(i=e.length;e.charCodeAt(i-1)===48;)--i;if(e=e.slice(n,i),e){if(i-=n,r=r-n-1,t.e=ur(r/ne),t.d=[],n=(r+1)%ne,r<0&&(n+=ne),n<i){for(n&&t.d.push(+e.slice(0,n)),i-=ne;n<i;)t.d.push(+e.slice(n,n+=ne));e=e.slice(n),n=ne-e.length}else n-=i;for(;n--;)e+="0";if(t.d.push(+e),ie&&(t.e>En||t.e<-En))throw Error(Qa+r)}else t.s=0,t.e=0,t.d=[0];return t}function ee(t,e,r){var n,i,a,o,u,c,l,s,f=t.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=e-o,n<0)n+=ne,i=e,l=f[s=0];else{if(s=Math.ceil((n+1)/ne),a=f.length,s>=a)return t;for(l=a=f[s],o=1;a>=10;a/=10)o++;n%=ne,i=n-ne+o}if(r!==void 0&&(a=ct(10,o-i-1),u=l/a%10|0,c=e<0||f[s+1]!==void 0||l%a,c=r<4?(u||c)&&(r==0||r==(t.s<0?3:2)):u>5||u==5&&(r==4||c||r==6&&(n>0?i>0?l/ct(10,o-i):0:f[s-1])%10&1||r==(t.s<0?8:7))),e<1||!f[0])return c?(a=ce(t),f.length=1,e=e-a-1,f[0]=ct(10,(ne-e%ne)%ne),t.e=ur(-e/ne)||0):(f.length=1,f[0]=t.e=t.s=0),t;if(n==0?(f.length=s,a=1,s--):(f.length=s+1,a=ct(10,ne-n),f[s]=i>0?(l/ct(10,o-i)%ct(10,i)|0)*a:0),c)for(;;)if(s==0){(f[0]+=a)==de&&(f[0]=1,++t.e);break}else{if(f[s]+=a,f[s]!=de)break;f[s--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(ie&&(t.e>En||t.e<-En))throw Error(Qa+ce(t));return t}function yl(t,e){var r,n,i,a,o,u,c,l,s,f,p=t.constructor,v=p.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new p(t),ie?ee(e,v):e;if(c=t.d,f=e.d,n=e.e,l=t.e,c=c.slice(),o=l-n,o){for(s=o<0,s?(r=c,o=-o,u=f.length):(r=f,n=l,u=c.length),i=Math.max(Math.ceil(v/ne),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=c.length,u=f.length,s=i<u,s&&(u=i),i=0;i<u;i++)if(c[i]!=f[i]){s=c[i]<f[i];break}o=0}for(s&&(r=c,c=f,f=r,e.s=-e.s),u=c.length,i=f.length-u;i>0;--i)c[u++]=0;for(i=f.length;i>o;){if(c[--i]<f[i]){for(a=i;a&&c[--a]===0;)c[a]=de-1;--c[a],c[i]+=de}c[i]-=f[i]}for(;c[--u]===0;)c.pop();for(;c[0]===0;c.shift())--n;return c[0]?(e.d=c,e.e=n,ie?ee(e,v):e):new p(0)}function yt(t,e,r){var n,i=ce(t),a=De(t.d),o=a.length;return e?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Ue(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Ue(-i-1)+a,r&&(n=r-o)>0&&(a+=Ue(n))):i>=o?(a+=Ue(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Ue(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Ue(n))),t.s<0?"-"+a:a}function iu(t,e){if(t.length>e)return t.length=e,!0}function ml(t){var e,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(dt+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return nu(o,a.toString())}else if(typeof a!="string")throw Error(dt+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,rv.test(a))nu(o,a);else throw Error(dt+a)}if(i.prototype=z,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=ml,i.config=i.set=nv,t===void 0&&(t={}),t)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],e=0;e<n.length;)t.hasOwnProperty(r=n[e++])||(t[r]=this[r]);return i.config(t),i}function nv(t){if(!t||typeof t!="object")throw Error(Te+"Object expected");var e,r,n,i=["precision",1,or,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<i.length;e+=3)if((n=t[r=i[e]])!==void 0)if(ur(n)===n&&n>=i[e+1]&&n<=i[e+2])this[r]=n;else throw Error(dt+r+": "+n);if((n=t[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(dt+r+": "+n);return this}var eo=ml(tv);Pe=new eo(1);const Q=eo;function iv(t){return cv(t)||uv(t)||ov(t)||av()}function av(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ov(t,e){if(t){if(typeof t=="string")return Qi(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qi(t,e)}}function uv(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function cv(t){if(Array.isArray(t))return Qi(t)}function Qi(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var lv=function(e){return e},gl={"@@functional/placeholder":!0},bl=function(e){return e===gl},au=function(e){return function r(){return arguments.length===0||arguments.length===1&&bl(arguments.length<=0?void 0:arguments[0])?r:e.apply(void 0,arguments)}},sv=function t(e,r){return e===1?r:au(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(u){return u!==gl}).length;return o>=e?r.apply(void 0,i):t(e-o,au(function(){for(var u=arguments.length,c=new Array(u),l=0;l<u;l++)c[l]=arguments[l];var s=i.map(function(f){return bl(f)?c.shift():f});return r.apply(void 0,iv(s).concat(c))}))})},ii=function(e){return sv(e.length,e)},ea=function(e,r){for(var n=[],i=e;i<r;++i)n[i-e]=i;return n},fv=ii(function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map(function(r){return e[r]}).map(t)}),pv=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];if(!r.length)return lv;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(u,c){return c(u)},a.apply(void 0,arguments))}},ta=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},Ol=function(e){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(u,c){return u===r[c]})||(r=a,n=e.apply(void 0,a)),n}};function dv(t){var e;return t===0?e=1:e=Math.floor(new Q(t).abs().log(10).toNumber())+1,e}function vv(t,e,r){for(var n=new Q(t),i=0,a=[];n.lt(e)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var hv=ii(function(t,e,r){var n=+t,i=+e;return n+r*(i-n)}),yv=ii(function(t,e,r){var n=e-+t;return n=n||1/0,(r-t)/n}),mv=ii(function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))});const ai={rangeStep:vv,getDigitCount:dv,interpolateNumber:hv,uninterpolateNumber:yv,uninterpolateTruncation:mv};function ra(t){return Ov(t)||bv(t)||xl(t)||gv()}function gv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bv(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function Ov(t){if(Array.isArray(t))return na(t)}function Dr(t,e){return Av(t)||wv(t,e)||xl(t,e)||xv()}function xv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xl(t,e){if(t){if(typeof t=="string")return na(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return na(t,e)}}function na(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function wv(t,e){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(t)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=t[Symbol.iterator](),u;!(n=(u=o.next()).done)&&(r.push(u.value),!(e&&r.length===e));n=!0);}catch(c){i=!0,a=c}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function Av(t){if(Array.isArray(t))return t}function wl(t){var e=Dr(t,2),r=e[0],n=e[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function Al(t,e,r){if(t.lte(0))return new Q(0);var n=ai.getDigitCount(t.toNumber()),i=new Q(10).pow(n),a=t.div(i),o=n!==1?.05:.1,u=new Q(Math.ceil(a.div(o).toNumber())).add(r).mul(o),c=u.mul(i);return e?c:new Q(Math.ceil(c))}function Pv(t,e,r){var n=1,i=new Q(t);if(!i.isint()&&r){var a=Math.abs(t);a<1?(n=new Q(10).pow(ai.getDigitCount(t)-1),i=new Q(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new Q(Math.floor(t)))}else t===0?i=new Q(Math.floor((e-1)/2)):r||(i=new Q(Math.floor(t)));var o=Math.floor((e-1)/2),u=pv(fv(function(c){return i.add(new Q(c-o).mul(n)).toNumber()}),ea);return u(0,e)}function Pl(t,e,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((e-t)/(r-1)))return{step:new Q(0),tickMin:new Q(0),tickMax:new Q(0)};var a=Al(new Q(e).sub(t).div(r-1),n,i),o;t<=0&&e>=0?o=new Q(0):(o=new Q(t).add(e).div(2),o=o.sub(new Q(o).mod(a)));var u=Math.ceil(o.sub(t).div(a).toNumber()),c=Math.ceil(new Q(e).sub(o).div(a).toNumber()),l=u+c+1;return l>r?Pl(t,e,r,n,i+1):(l<r&&(c=e>0?c+(r-l):c,u=e>0?u:u+(r-l)),{step:a,tickMin:o.sub(new Q(u).mul(a)),tickMax:o.add(new Q(c).mul(a))})}function Sv(t){var e=Dr(t,2),r=e[0],n=e[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),u=wl([r,n]),c=Dr(u,2),l=c[0],s=c[1];if(l===-1/0||s===1/0){var f=s===1/0?[l].concat(ra(ea(0,i-1).map(function(){return 1/0}))):[].concat(ra(ea(0,i-1).map(function(){return-1/0})),[s]);return r>n?ta(f):f}if(l===s)return Pv(l,i,a);var p=Pl(l,s,o,a),v=p.step,m=p.tickMin,y=p.tickMax,d=ai.rangeStep(m,y.add(new Q(.1).mul(v)),v);return r>n?ta(d):d}function jv(t,e){var r=Dr(t,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=wl([n,i]),u=Dr(o,2),c=u[0],l=u[1];if(c===-1/0||l===1/0)return[n,i];if(c===l)return[c];var s=Math.max(e,2),f=Al(new Q(l).sub(c).div(s-1),a,0),p=[].concat(ra(ai.rangeStep(new Q(c),new Q(l).sub(new Q(.99).mul(f)),f)),[l]);return n>i?ta(p):p}var Ev=Ol(Sv),$v=Ol(jv),_v="Invariant failed";function mt(t,e){throw new Error(_v)}var Tv=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function zt(t){"@babel/helpers - typeof";return zt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zt(t)}function $n(){return $n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},$n.apply(this,arguments)}function Iv(t,e){return Dv(t)||Mv(t,e)||Cv(t,e)||kv()}function kv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cv(t,e){if(t){if(typeof t=="string")return ou(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ou(t,e)}}function ou(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Mv(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,l=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(s){l=!0,i=s}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function Dv(t){if(Array.isArray(t))return t}function Nv(t,e){if(t==null)return{};var r=Bv(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Bv(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function Rv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Lv(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,El(n.key),n)}}function zv(t,e,r){return e&&Lv(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Wv(t,e,r){return e=_n(e),Fv(t,Sl()?Reflect.construct(e,r||[],_n(t).constructor):e.apply(t,r))}function Fv(t,e){if(e&&(zt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kv(t)}function Kv(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Sl(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Sl=function(){return!!t})()}function _n(t){return _n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_n(t)}function Vv(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ia(t,e)}function ia(t,e){return ia=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ia(t,e)}function jl(t,e,r){return e=El(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function El(t){var e=Gv(t,"string");return zt(e)=="symbol"?e:e+""}function Gv(t,e){if(zt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(zt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var oi=function(t){function e(){return Rv(this,e),Wv(this,e,arguments)}return Vv(e,t),zv(e,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,u=n.dataKey,c=n.data,l=n.dataPointFormatter,s=n.xAxis,f=n.yAxis,p=Nv(n,Tv),v=F(p,!1);this.props.direction==="x"&&s.type!=="number"&&mt();var m=c.map(function(y){var d=l(y,u),O=d.x,b=d.y,x=d.value,w=d.errorVal;if(!w)return null;var h=[],g,A;if(Array.isArray(w)){var S=Iv(w,2);g=S[0],A=S[1]}else g=A=w;if(a==="vertical"){var j=s.scale,_=b+i,E=_+o,$=_-o,k=j(x-g),C=j(x+A);h.push({x1:C,y1:E,x2:C,y2:$}),h.push({x1:k,y1:_,x2:C,y2:_}),h.push({x1:k,y1:E,x2:k,y2:$})}else if(a==="horizontal"){var I=f.scale,M=O+i,N=M-o,R=M+o,W=I(x-g),K=I(x+A);h.push({x1:N,y1:K,x2:R,y2:K}),h.push({x1:M,y1:W,x2:M,y2:K}),h.push({x1:N,y1:W,x2:R,y2:W})}return P.createElement(Y,$n({className:"recharts-errorBar",key:"bar-".concat(h.map(function(X){return"".concat(X.x1,"-").concat(X.x2,"-").concat(X.y1,"-").concat(X.y2)}))},v),h.map(function(X){return P.createElement("line",$n({},X,{key:"line-".concat(X.x1,"-").concat(X.x2,"-").concat(X.y1,"-").concat(X.y2)}))}))});return P.createElement(Y,{className:"recharts-errorBars"},m)}}])}(P.Component);jl(oi,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});jl(oi,"displayName","ErrorBar");function Nr(t){"@babel/helpers - typeof";return Nr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nr(t)}function uu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function at(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?uu(Object(r),!0).forEach(function(n){Xv(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):uu(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Xv(t,e,r){return e=qv(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qv(t){var e=Hv(t,"string");return Nr(e)=="symbol"?e:e+""}function Hv(t,e){if(Nr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Nr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var $l=function(e){var r=e.children,n=e.formattedGraphicalItems,i=e.legendWidth,a=e.legendContent,o=Ae(r,kt);if(!o)return null;var u=kt.defaultProps,c=u!==void 0?at(at({},u),o.props):{},l;return o.props&&o.props.payload?l=o.props&&o.props.payload:a==="children"?l=(n||[]).reduce(function(s,f){var p=f.item,v=f.props,m=v.sectors||v.data||[];return s.concat(m.map(function(y){return{type:o.props.iconType||p.props.legendType,value:y.name,color:y.fill,payload:y}}))},[]):l=(n||[]).map(function(s){var f=s.item,p=f.type.defaultProps,v=p!==void 0?at(at({},p),f.props):{},m=v.dataKey,y=v.name,d=v.legendType,O=v.hide;return{inactive:O,dataKey:m,type:c.iconType||d||"square",color:to(f),value:y||m,payload:v}}),at(at(at({},c),kt.getWithHeight(o,i)),{},{payload:l,item:o})};function Br(t){"@babel/helpers - typeof";return Br=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Br(t)}function cu(t){return Jv(t)||Zv(t)||Yv(t)||Uv()}function Uv(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yv(t,e){if(t){if(typeof t=="string")return aa(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return aa(t,e)}}function Zv(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Jv(t){if(Array.isArray(t))return aa(t)}function aa(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function lu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function oe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?lu(Object(r),!0).forEach(function(n){Ct(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lu(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Ct(t,e,r){return e=Qv(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qv(t){var e=eh(t,"string");return Br(e)=="symbol"?e:e+""}function eh(t,e){if(Br(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Br(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function se(t,e,r){return H(t)||H(e)?r:fe(e)?Se(t,e,r):G(e)?e(t):r}function Ar(t,e,r,n){var i=Zs(t,function(u){return se(u,e)});if(r==="number"){var a=i.filter(function(u){return D(u)||parseFloat(u)});return a.length?[ri(a),Ze(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!H(u)}):i;return o.map(function(u){return fe(u)||u instanceof Date?u:""})}var th=function(e){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var c=a.range,l=0;l<u;l++){var s=l>0?i[l-1].coordinate:i[u-1].coordinate,f=i[l].coordinate,p=l>=u-1?i[0].coordinate:i[l+1].coordinate,v=void 0;if(be(f-s)!==be(p-f)){var m=[];if(be(p-f)===be(c[1]-c[0])){v=p;var y=f+c[1]-c[0];m[0]=Math.min(y,(y+s)/2),m[1]=Math.max(y,(y+s)/2)}else{v=s;var d=p+c[1]-c[0];m[0]=Math.min(f,(d+f)/2),m[1]=Math.max(f,(d+f)/2)}var O=[Math.min(f,(v+f)/2),Math.max(f,(v+f)/2)];if(e>O[0]&&e<=O[1]||e>=m[0]&&e<=m[1]){o=i[l].index;break}}else{var b=Math.min(s,p),x=Math.max(s,p);if(e>(b+f)/2&&e<=(x+f)/2){o=i[l].index;break}}}else for(var w=0;w<u;w++)if(w===0&&e<=(n[w].coordinate+n[w+1].coordinate)/2||w>0&&w<u-1&&e>(n[w].coordinate+n[w-1].coordinate)/2&&e<=(n[w].coordinate+n[w+1].coordinate)/2||w===u-1&&e>(n[w].coordinate+n[w-1].coordinate)/2){o=n[w].index;break}return o},to=function(e){var r,n=e,i=n.type.displayName,a=(r=e.type)!==null&&r!==void 0&&r.defaultProps?oe(oe({},e.type.defaultProps),e.props):e.props,o=a.stroke,u=a.fill,c;switch(i){case"Line":c=o;break;case"Area":case"Radar":c=o&&o!=="none"?o:u;break;default:c=u;break}return c},rh=function(e){var r=e.barSize,n=e.totalSize,i=e.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},u=Object.keys(a),c=0,l=u.length;c<l;c++)for(var s=a[u[c]].stackGroups,f=Object.keys(s),p=0,v=f.length;p<v;p++){var m=s[f[p]],y=m.items,d=m.cateAxisId,O=y.filter(function(A){return Ge(A.type).indexOf("Bar")>=0});if(O&&O.length){var b=O[0].type.defaultProps,x=b!==void 0?oe(oe({},b),O[0].props):O[0].props,w=x.barSize,h=x[d];o[h]||(o[h]=[]);var g=H(w)?r:w;o[h].push({item:O[0],stackList:O.slice(1),barSize:H(g)?void 0:Oe(g,n,0)})}}return o},nh=function(e){var r=e.barGap,n=e.barCategoryGap,i=e.bandSize,a=e.sizeList,o=a===void 0?[]:a,u=e.maxBarSize,c=o.length;if(c<1)return null;var l=Oe(r,i,0,!0),s,f=[];if(o[0].barSize===+o[0].barSize){var p=!1,v=i/c,m=o.reduce(function(w,h){return w+h.barSize||0},0);m+=(c-1)*l,m>=i&&(m-=(c-1)*l,l=0),m>=i&&v>0&&(p=!0,v*=.9,m=c*v);var y=(i-m)/2>>0,d={offset:y-l,size:0};s=o.reduce(function(w,h){var g={item:h.item,position:{offset:d.offset+d.size+l,size:p?v:h.barSize}},A=[].concat(cu(w),[g]);return d=A[A.length-1].position,h.stackList&&h.stackList.length&&h.stackList.forEach(function(S){A.push({item:S,position:d})}),A},f)}else{var O=Oe(n,i,0,!0);i-2*O-(c-1)*l<=0&&(l=0);var b=(i-2*O-(c-1)*l)/c;b>1&&(b>>=0);var x=u===+u?Math.min(b,u):b;s=o.reduce(function(w,h,g){var A=[].concat(cu(w),[{item:h.item,position:{offset:O+(b+l)*g+(b-x)/2,size:x}}]);return h.stackList&&h.stackList.length&&h.stackList.forEach(function(S){A.push({item:S,position:A[A.length-1].position})}),A},f)}return s},ih=function(e,r,n,i){var a=n.children,o=n.width,u=n.margin,c=o-(u.left||0)-(u.right||0),l=$l({children:a,legendWidth:c});if(l){var s=i||{},f=s.width,p=s.height,v=l.align,m=l.verticalAlign,y=l.layout;if((y==="vertical"||y==="horizontal"&&m==="middle")&&v!=="center"&&D(e[v]))return oe(oe({},e),{},Ct({},v,e[v]+(f||0)));if((y==="horizontal"||y==="vertical"&&v==="center")&&m!=="middle"&&D(e[m]))return oe(oe({},e),{},Ct({},m,e[m]+(p||0)))}return e},ah=function(e,r,n){return H(r)?!0:e==="horizontal"?r==="yAxis":e==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},_l=function(e,r,n,i,a){var o=r.props.children,u=_e(o,oi).filter(function(l){return ah(i,a,l.props.direction)});if(u&&u.length){var c=u.map(function(l){return l.props.dataKey});return e.reduce(function(l,s){var f=se(s,n);if(H(f))return l;var p=Array.isArray(f)?[ri(f),Ze(f)]:[f,f],v=c.reduce(function(m,y){var d=se(s,y,0),O=p[0]-Math.abs(Array.isArray(d)?d[0]:d),b=p[1]+Math.abs(Array.isArray(d)?d[1]:d);return[Math.min(O,m[0]),Math.max(b,m[1])]},[1/0,-1/0]);return[Math.min(v[0],l[0]),Math.max(v[1],l[1])]},[1/0,-1/0])}return null},oh=function(e,r,n,i,a){var o=r.map(function(u){return _l(e,u,n,a,i)}).filter(function(u){return!H(u)});return o&&o.length?o.reduce(function(u,c){return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]):null},Tl=function(e,r,n,i,a){var o=r.map(function(c){var l=c.props.dataKey;return n==="number"&&l&&_l(e,c,l,i)||Ar(e,l,n,a)});if(n==="number")return o.reduce(function(c,l){return[Math.min(c[0],l[0]),Math.max(c[1],l[1])]},[1/0,-1/0]);var u={};return o.reduce(function(c,l){for(var s=0,f=l.length;s<f;s++)u[l[s]]||(u[l[s]]=!0,c.push(l[s]));return c},[])},Il=function(e,r){return e==="horizontal"&&r==="xAxis"||e==="vertical"&&r==="yAxis"||e==="centric"&&r==="angleAxis"||e==="radial"&&r==="radiusAxis"},kl=function(e,r,n,i){if(i)return e.map(function(c){return c.coordinate});var a,o,u=e.map(function(c){return c.coordinate===r&&(a=!0),c.coordinate===n&&(o=!0),c.coordinate});return a||u.push(r),o||u.push(n),u},Ve=function(e,r,n){if(!e)return null;var i=e.scale,a=e.duplicateDomain,o=e.type,u=e.range,c=e.realScaleType==="scaleBand"?i.bandwidth()/2:2,l=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/c:0;if(l=e.axisType==="angleAxis"&&(u==null?void 0:u.length)>=2?be(u[0]-u[1])*2*l:l,r&&(e.ticks||e.niceTicks)){var s=(e.ticks||e.niceTicks).map(function(f){var p=a?a.indexOf(f):f;return{coordinate:i(p)+l,value:f,offset:l}});return s.filter(function(f){return!nr(f.coordinate)})}return e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map(function(f,p){return{coordinate:i(f)+l,value:f,index:p,offset:l}}):i.ticks&&!n?i.ticks(e.tickCount).map(function(f){return{coordinate:i(f)+l,value:f,offset:l}}):i.domain().map(function(f,p){return{coordinate:i(f)+l,value:a?a[f]:f,index:p,offset:l}})},_i=new WeakMap,fn=function(e,r){if(typeof r!="function")return e;_i.has(e)||_i.set(e,new WeakMap);var n=_i.get(e);if(n.has(r))return n.get(r);var i=function(){e.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},Cl=function(e,r,n){var i=e.scale,a=e.type,o=e.layout,u=e.axisType;if(i==="auto")return o==="radial"&&u==="radiusAxis"?{scale:mo(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:go(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:mn(),realScaleType:"point"}:a==="category"?{scale:mo(),realScaleType:"band"}:{scale:go(),realScaleType:"linear"};if(nn(i)){var c="scale".concat(ti(i));return{scale:(bo[c]||mn)(),realScaleType:bo[c]?c:"point"}}return G(i)?{scale:i}:{scale:mn(),realScaleType:"point"}},su=1e-4,Ml=function(e){var r=e.domain();if(!(!r||r.length<=2)){var n=r.length,i=e.range(),a=Math.min(i[0],i[1])-su,o=Math.max(i[0],i[1])+su,u=e(r[0]),c=e(r[n-1]);(u<a||u>o||c<a||c>o)&&e.domain([r[0],r[n-1]])}},uh=function(e,r){if(!e)return null;for(var n=0,i=e.length;n<i;n++)if(e[n].item===r)return e[n].position;return null},ch=function(e,r){if(!r||r.length!==2||!D(r[0])||!D(r[1]))return e;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[e[0],e[1]];return(!D(e[0])||e[0]<n)&&(a[0]=n),(!D(e[1])||e[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},lh=function(e){var r=e.length;if(!(r<=0))for(var n=0,i=e[0].length;n<i;++n)for(var a=0,o=0,u=0;u<r;++u){var c=nr(e[u][n][1])?e[u][n][0]:e[u][n][1];c>=0?(e[u][n][0]=a,e[u][n][1]=a+c,a=e[u][n][1]):(e[u][n][0]=o,e[u][n][1]=o+c,o=e[u][n][1])}},sh=function(e){var r=e.length;if(!(r<=0))for(var n=0,i=e[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var u=nr(e[o][n][1])?e[o][n][0]:e[o][n][1];u>=0?(e[o][n][0]=a,e[o][n][1]=a+u,a=e[o][n][1]):(e[o][n][0]=0,e[o][n][1]=0)}},fh={sign:lh,expand:mf,none:gf,silhouette:bf,wiggle:Of,positive:sh},ph=function(e,r,n){var i=r.map(function(u){return u.props.dataKey}),a=fh[n],o=hf().keys(i).value(function(u,c){return+se(u,c,0)}).order(yf).offset(a);return o(e)},dh=function(e,r,n,i,a,o){if(!e)return null;var u=o?r.reverse():r,c={},l=u.reduce(function(f,p){var v,m=(v=p.type)!==null&&v!==void 0&&v.defaultProps?oe(oe({},p.type.defaultProps),p.props):p.props,y=m.stackId,d=m.hide;if(d)return f;var O=m[n],b=f[O]||{hasStack:!1,stackGroups:{}};if(fe(y)){var x=b.stackGroups[y]||{numericAxisId:n,cateAxisId:i,items:[]};x.items.push(p),b.hasStack=!0,b.stackGroups[y]=x}else b.stackGroups[ar("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[p]};return oe(oe({},f),{},Ct({},O,b))},c),s={};return Object.keys(l).reduce(function(f,p){var v=l[p];if(v.hasStack){var m={};v.stackGroups=Object.keys(v.stackGroups).reduce(function(y,d){var O=v.stackGroups[d];return oe(oe({},y),{},Ct({},d,{numericAxisId:n,cateAxisId:i,items:O.items,stackedData:ph(e,O.items,a)}))},m)}return oe(oe({},f),{},Ct({},p,v))},s)},Dl=function(e,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,c=n||r.scale;if(c!=="auto"&&c!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var l=e.domain();if(!l.length)return null;var s=Ev(l,a,u);return e.domain([ri(s),Ze(s)]),{niceTicks:s}}if(a&&i==="number"){var f=e.domain(),p=$v(f,a,u);return{niceTicks:p}}return null};function fu(t){var e=t.axis,r=t.ticks,n=t.bandSize,i=t.entry,a=t.index,o=t.dataKey;if(e.type==="category"){if(!e.allowDuplicatedCategory&&e.dataKey&&!H(i[e.dataKey])){var u=On(r,"value",i[e.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var c=se(i,H(o)?e.dataKey:o);return H(c)?null:e.scale(c)}var pu=function(e){var r=e.axis,n=e.ticks,i=e.offset,a=e.bandSize,o=e.entry,u=e.index;if(r.type==="category")return n[u]?n[u].coordinate+i:null;var c=se(o,r.dataKey,r.domain[u]);return H(c)?null:r.scale(c)-a/2+i},vh=function(e){var r=e.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},hh=function(e,r){var n,i=(n=e.type)!==null&&n!==void 0&&n.defaultProps?oe(oe({},e.type.defaultProps),e.props):e.props,a=i.stackId;if(fe(a)){var o=r[a];if(o){var u=o.items.indexOf(e);return u>=0?o.stackedData[u]:null}}return null},yh=function(e){return e.reduce(function(r,n){return[ri(n.concat([r[0]]).filter(D)),Ze(n.concat([r[1]]).filter(D))]},[1/0,-1/0])},Nl=function(e,r,n){return Object.keys(e).reduce(function(i,a){var o=e[a],u=o.stackedData,c=u.reduce(function(l,s){var f=yh(s.slice(r,n+1));return[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(c[0],i[0]),Math.max(c[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},du=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,vu=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,oa=function(e,r,n){if(G(e))return e(r,n);if(!Array.isArray(e))return r;var i=[];if(D(e[0]))i[0]=n?e[0]:Math.min(e[0],r[0]);else if(du.test(e[0])){var a=+du.exec(e[0])[1];i[0]=r[0]-a}else G(e[0])?i[0]=e[0](r[0]):i[0]=r[0];if(D(e[1]))i[1]=n?e[1]:Math.max(e[1],r[1]);else if(vu.test(e[1])){var o=+vu.exec(e[1])[1];i[1]=r[1]+o}else G(e[1])?i[1]=e[1](r[1]):i[1]=r[1];return i},Tn=function(e,r,n){if(e&&e.scale&&e.scale.bandwidth){var i=e.scale.bandwidth();if(!n||i>0)return i}if(e&&r&&r.length>=2){for(var a=Xa(r,function(f){return f.coordinate}),o=1/0,u=1,c=a.length;u<c;u++){var l=a[u],s=a[u-1];o=Math.min((l.coordinate||0)-(s.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},hu=function(e,r,n){return!e||!e.length||Dt(e,Se(n,"type.defaultProps.domain"))?r:e},Bl=function(e,r){var n=e.type.defaultProps?oe(oe({},e.type.defaultProps),e.props):e.props,i=n.dataKey,a=n.name,o=n.unit,u=n.formatter,c=n.tooltipType,l=n.chartType,s=n.hide;return oe(oe({},F(e,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:to(e),value:se(r,i),type:c,payload:r,chartType:l,hide:s})};function Rr(t){"@babel/helpers - typeof";return Rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rr(t)}function yu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ke(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?yu(Object(r),!0).forEach(function(n){Rl(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yu(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Rl(t,e,r){return e=mh(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mh(t){var e=gh(t,"string");return Rr(e)=="symbol"?e:e+""}function gh(t,e){if(Rr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Rr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function bh(t,e){return Ah(t)||wh(t,e)||xh(t,e)||Oh()}function Oh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xh(t,e){if(t){if(typeof t=="string")return mu(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mu(t,e)}}function mu(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function wh(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,l=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(s){l=!0,i=s}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function Ah(t){if(Array.isArray(t))return t}var In=Math.PI/180,Ph=function(e){return e*180/Math.PI},re=function(e,r,n,i){return{x:e+Math.cos(-In*i)*n,y:r+Math.sin(-In*i)*n}},Ll=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},Sh=function(e,r,n,i,a){var o=e.width,u=e.height,c=e.startAngle,l=e.endAngle,s=Oe(e.cx,o,o/2),f=Oe(e.cy,u,u/2),p=Ll(o,u,n),v=Oe(e.innerRadius,p,0),m=Oe(e.outerRadius,p,p*.8),y=Object.keys(r);return y.reduce(function(d,O){var b=r[O],x=b.domain,w=b.reversed,h;if(H(b.range))i==="angleAxis"?h=[c,l]:i==="radiusAxis"&&(h=[v,m]),w&&(h=[h[1],h[0]]);else{h=b.range;var g=h,A=bh(g,2);c=A[0],l=A[1]}var S=Cl(b,a),j=S.realScaleType,_=S.scale;_.domain(x).range(h),Ml(_);var E=Dl(_,Ke(Ke({},b),{},{realScaleType:j})),$=Ke(Ke(Ke({},b),E),{},{range:h,radius:m,realScaleType:j,scale:_,cx:s,cy:f,innerRadius:v,outerRadius:m,startAngle:c,endAngle:l});return Ke(Ke({},d),{},Rl({},O,$))},{})},jh=function(e,r){var n=e.x,i=e.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},Eh=function(e,r){var n=e.x,i=e.y,a=r.cx,o=r.cy,u=jh({x:n,y:i},{x:a,y:o});if(u<=0)return{radius:u};var c=(n-a)/u,l=Math.acos(c);return i>o&&(l=2*Math.PI-l),{radius:u,angle:Ph(l),angleInRadian:l}},$h=function(e){var r=e.startAngle,n=e.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},_h=function(e,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),u=Math.min(a,o);return e+u*360},gu=function(e,r){var n=e.x,i=e.y,a=Eh({x:n,y:i},r),o=a.radius,u=a.angle,c=r.innerRadius,l=r.outerRadius;if(o<c||o>l)return!1;if(o===0)return!0;var s=$h(r),f=s.startAngle,p=s.endAngle,v=u,m;if(f<=p){for(;v>p;)v-=360;for(;v<f;)v+=360;m=v>=f&&v<=p}else{for(;v>f;)v-=360;for(;v<p;)v+=360;m=v>=p&&v<=f}return m?Ke(Ke({},r),{},{radius:o,angle:_h(v,r)}):null},zl=function(e){return!B.isValidElement(e)&&!G(e)&&typeof e!="boolean"?e.className:""};function Lr(t){"@babel/helpers - typeof";return Lr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lr(t)}var Th=["offset"];function Ih(t){return Dh(t)||Mh(t)||Ch(t)||kh()}function kh(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ch(t,e){if(t){if(typeof t=="string")return ua(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ua(t,e)}}function Mh(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Dh(t){if(Array.isArray(t))return ua(t)}function ua(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Nh(t,e){if(t==null)return{};var r=Bh(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Bh(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function bu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function le(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?bu(Object(r),!0).forEach(function(n){Rh(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bu(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Rh(t,e,r){return e=Lh(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Lh(t){var e=zh(t,"string");return Lr(e)=="symbol"?e:e+""}function zh(t,e){if(Lr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Lr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function zr(){return zr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},zr.apply(this,arguments)}var Wh=function(e){var r=e.value,n=e.formatter,i=H(e.children)?r:e.children;return G(n)?n(i):i},Fh=function(e,r){var n=be(r-e),i=Math.min(Math.abs(r-e),360);return n*i},Kh=function(e,r,n){var i=e.position,a=e.viewBox,o=e.offset,u=e.className,c=a,l=c.cx,s=c.cy,f=c.innerRadius,p=c.outerRadius,v=c.startAngle,m=c.endAngle,y=c.clockWise,d=(f+p)/2,O=Fh(v,m),b=O>=0?1:-1,x,w;i==="insideStart"?(x=v+b*o,w=y):i==="insideEnd"?(x=m-b*o,w=!y):i==="end"&&(x=m+b*o,w=y),w=O<=0?w:!w;var h=re(l,s,d,x),g=re(l,s,d,x+(w?1:-1)*359),A="M".concat(h.x,",").concat(h.y,`
    A`).concat(d,",").concat(d,",0,1,").concat(w?0:1,`,
    `).concat(g.x,",").concat(g.y),S=H(e.id)?ar("recharts-radial-line-"):e.id;return P.createElement("text",zr({},n,{dominantBaseline:"central",className:U("recharts-radial-bar-label",u)}),P.createElement("defs",null,P.createElement("path",{id:S,d:A})),P.createElement("textPath",{xlinkHref:"#".concat(S)},r))},Vh=function(e){var r=e.viewBox,n=e.offset,i=e.position,a=r,o=a.cx,u=a.cy,c=a.innerRadius,l=a.outerRadius,s=a.startAngle,f=a.endAngle,p=(s+f)/2;if(i==="outside"){var v=re(o,u,l+n,p),m=v.x,y=v.y;return{x:m,y,textAnchor:m>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"end"};var d=(c+l)/2,O=re(o,u,d,p),b=O.x,x=O.y;return{x:b,y:x,textAnchor:"middle",verticalAnchor:"middle"}},Gh=function(e){var r=e.viewBox,n=e.parentViewBox,i=e.offset,a=e.position,o=r,u=o.x,c=o.y,l=o.width,s=o.height,f=s>=0?1:-1,p=f*i,v=f>0?"end":"start",m=f>0?"start":"end",y=l>=0?1:-1,d=y*i,O=y>0?"end":"start",b=y>0?"start":"end";if(a==="top"){var x={x:u+l/2,y:c-f*i,textAnchor:"middle",verticalAnchor:v};return le(le({},x),n?{height:Math.max(c-n.y,0),width:l}:{})}if(a==="bottom"){var w={x:u+l/2,y:c+s+p,textAnchor:"middle",verticalAnchor:m};return le(le({},w),n?{height:Math.max(n.y+n.height-(c+s),0),width:l}:{})}if(a==="left"){var h={x:u-d,y:c+s/2,textAnchor:O,verticalAnchor:"middle"};return le(le({},h),n?{width:Math.max(h.x-n.x,0),height:s}:{})}if(a==="right"){var g={x:u+l+d,y:c+s/2,textAnchor:b,verticalAnchor:"middle"};return le(le({},g),n?{width:Math.max(n.x+n.width-g.x,0),height:s}:{})}var A=n?{width:l,height:s}:{};return a==="insideLeft"?le({x:u+d,y:c+s/2,textAnchor:b,verticalAnchor:"middle"},A):a==="insideRight"?le({x:u+l-d,y:c+s/2,textAnchor:O,verticalAnchor:"middle"},A):a==="insideTop"?le({x:u+l/2,y:c+p,textAnchor:"middle",verticalAnchor:m},A):a==="insideBottom"?le({x:u+l/2,y:c+s-p,textAnchor:"middle",verticalAnchor:v},A):a==="insideTopLeft"?le({x:u+d,y:c+p,textAnchor:b,verticalAnchor:m},A):a==="insideTopRight"?le({x:u+l-d,y:c+p,textAnchor:O,verticalAnchor:m},A):a==="insideBottomLeft"?le({x:u+d,y:c+s-p,textAnchor:b,verticalAnchor:v},A):a==="insideBottomRight"?le({x:u+l-d,y:c+s-p,textAnchor:O,verticalAnchor:v},A):ir(a)&&(D(a.x)||st(a.x))&&(D(a.y)||st(a.y))?le({x:u+Oe(a.x,l),y:c+Oe(a.y,s),textAnchor:"end",verticalAnchor:"end"},A):le({x:u+l/2,y:c+s/2,textAnchor:"middle",verticalAnchor:"middle"},A)},Xh=function(e){return"cx"in e&&D(e.cx)};function ve(t){var e=t.offset,r=e===void 0?5:e,n=Nh(t,Th),i=le({offset:r},n),a=i.viewBox,o=i.position,u=i.value,c=i.children,l=i.content,s=i.className,f=s===void 0?"":s,p=i.textBreakAll;if(!a||H(u)&&H(c)&&!B.isValidElement(l)&&!G(l))return null;if(B.isValidElement(l))return B.cloneElement(l,i);var v;if(G(l)){if(v=B.createElement(l,i),B.isValidElement(v))return v}else v=Wh(i);var m=Xh(a),y=F(i,!0);if(m&&(o==="insideStart"||o==="insideEnd"||o==="end"))return Kh(i,v,y);var d=m?Vh(i):Gh(i);return P.createElement(ht,zr({className:U("recharts-label",f)},y,d,{breakAll:p}),v)}ve.displayName="Label";var Wl=function(e){var r=e.cx,n=e.cy,i=e.angle,a=e.startAngle,o=e.endAngle,u=e.r,c=e.radius,l=e.innerRadius,s=e.outerRadius,f=e.x,p=e.y,v=e.top,m=e.left,y=e.width,d=e.height,O=e.clockWise,b=e.labelViewBox;if(b)return b;if(D(y)&&D(d)){if(D(f)&&D(p))return{x:f,y:p,width:y,height:d};if(D(v)&&D(m))return{x:v,y:m,width:y,height:d}}return D(f)&&D(p)?{x:f,y:p,width:0,height:0}:D(r)&&D(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:l||0,outerRadius:s||c||u||0,clockWise:O}:e.viewBox?e.viewBox:{}},qh=function(e,r){return e?e===!0?P.createElement(ve,{key:"label-implicit",viewBox:r}):fe(e)?P.createElement(ve,{key:"label-implicit",viewBox:r,value:e}):B.isValidElement(e)?e.type===ve?B.cloneElement(e,{key:"label-implicit",viewBox:r}):P.createElement(ve,{key:"label-implicit",content:e,viewBox:r}):G(e)?P.createElement(ve,{key:"label-implicit",content:e,viewBox:r}):ir(e)?P.createElement(ve,zr({viewBox:r},e,{key:"label-implicit"})):null:null},Hh=function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var i=e.children,a=Wl(e),o=_e(i,ve).map(function(c,l){return B.cloneElement(c,{viewBox:r||a,key:"label-".concat(l)})});if(!n)return o;var u=qh(e.label,r||a);return[u].concat(Ih(o))};ve.parseViewBox=Wl;ve.renderCallByParent=Hh;function Wr(t){"@babel/helpers - typeof";return Wr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wr(t)}var Uh=["valueAccessor"],Yh=["data","dataKey","clockWise","id","textBreakAll"];function Zh(t){return ty(t)||ey(t)||Qh(t)||Jh()}function Jh(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qh(t,e){if(t){if(typeof t=="string")return ca(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ca(t,e)}}function ey(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ty(t){if(Array.isArray(t))return ca(t)}function ca(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function kn(){return kn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},kn.apply(this,arguments)}function Ou(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function xu(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ou(Object(r),!0).forEach(function(n){ry(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ou(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ry(t,e,r){return e=ny(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ny(t){var e=iy(t,"string");return Wr(e)=="symbol"?e:e+""}function iy(t,e){if(Wr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Wr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function wu(t,e){if(t==null)return{};var r=ay(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function ay(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var oy=function(e){return Array.isArray(e.value)?Js(e.value):e.value};function qe(t){var e=t.valueAccessor,r=e===void 0?oy:e,n=wu(t,Uh),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,c=n.textBreakAll,l=wu(n,Yh);return!i||!i.length?null:P.createElement(Y,{className:"recharts-label-list"},i.map(function(s,f){var p=H(a)?r(s,f):se(s&&s.payload,a),v=H(u)?{}:{id:"".concat(u,"-").concat(f)};return P.createElement(ve,kn({},F(s,!0),l,v,{parentViewBox:s.parentViewBox,value:p,textBreakAll:c,viewBox:ve.parseViewBox(H(o)?s:xu(xu({},s),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}qe.displayName="LabelList";function uy(t,e){return t?t===!0?P.createElement(qe,{key:"labelList-implicit",data:e}):P.isValidElement(t)||G(t)?P.createElement(qe,{key:"labelList-implicit",data:e,content:t}):ir(t)?P.createElement(qe,kn({data:e},t,{key:"labelList-implicit"})):null:null}function cy(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var n=t.children,i=_e(n,qe).map(function(o,u){return B.cloneElement(o,{data:e,key:"labelList-".concat(u)})});if(!r)return i;var a=uy(t.label,e);return[a].concat(Zh(i))}qe.renderCallByParent=cy;function Fr(t){"@babel/helpers - typeof";return Fr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fr(t)}function la(){return la=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},la.apply(this,arguments)}function Au(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Pu(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Au(Object(r),!0).forEach(function(n){ly(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Au(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ly(t,e,r){return e=sy(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sy(t){var e=fy(t,"string");return Fr(e)=="symbol"?e:e+""}function fy(t,e){if(Fr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Fr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var py=function(e,r){var n=be(r-e),i=Math.min(Math.abs(r-e),359.999);return n*i},pn=function(e){var r=e.cx,n=e.cy,i=e.radius,a=e.angle,o=e.sign,u=e.isExternal,c=e.cornerRadius,l=e.cornerIsExternal,s=c*(u?1:-1)+i,f=Math.asin(c/s)/In,p=l?a:a+o*f,v=re(r,n,s,p),m=re(r,n,i,p),y=l?a-o*f:a,d=re(r,n,s*Math.cos(f*In),y);return{center:v,circleTangency:m,lineTangency:d,theta:f}},Fl=function(e){var r=e.cx,n=e.cy,i=e.innerRadius,a=e.outerRadius,o=e.startAngle,u=e.endAngle,c=py(o,u),l=o+c,s=re(r,n,a,o),f=re(r,n,a,l),p="M ".concat(s.x,",").concat(s.y,`
    A `).concat(a,",").concat(a,`,0,
    `).concat(+(Math.abs(c)>180),",").concat(+(o>l),`,
    `).concat(f.x,",").concat(f.y,`
  `);if(i>0){var v=re(r,n,i,o),m=re(r,n,i,l);p+="L ".concat(m.x,",").concat(m.y,`
            A `).concat(i,",").concat(i,`,0,
            `).concat(+(Math.abs(c)>180),",").concat(+(o<=l),`,
            `).concat(v.x,",").concat(v.y," Z")}else p+="L ".concat(r,",").concat(n," Z");return p},dy=function(e){var r=e.cx,n=e.cy,i=e.innerRadius,a=e.outerRadius,o=e.cornerRadius,u=e.forceCornerRadius,c=e.cornerIsExternal,l=e.startAngle,s=e.endAngle,f=be(s-l),p=pn({cx:r,cy:n,radius:a,angle:l,sign:f,cornerRadius:o,cornerIsExternal:c}),v=p.circleTangency,m=p.lineTangency,y=p.theta,d=pn({cx:r,cy:n,radius:a,angle:s,sign:-f,cornerRadius:o,cornerIsExternal:c}),O=d.circleTangency,b=d.lineTangency,x=d.theta,w=c?Math.abs(l-s):Math.abs(l-s)-y-x;if(w<0)return u?"M ".concat(m.x,",").concat(m.y,`
        a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
        a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
      `):Fl({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:l,endAngle:s});var h="M ".concat(m.x,",").concat(m.y,`
    A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(v.x,",").concat(v.y,`
    A`).concat(a,",").concat(a,",0,").concat(+(w>180),",").concat(+(f<0),",").concat(O.x,",").concat(O.y,`
    A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(b.x,",").concat(b.y,`
  `);if(i>0){var g=pn({cx:r,cy:n,radius:i,angle:l,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),A=g.circleTangency,S=g.lineTangency,j=g.theta,_=pn({cx:r,cy:n,radius:i,angle:s,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),E=_.circleTangency,$=_.lineTangency,k=_.theta,C=c?Math.abs(l-s):Math.abs(l-s)-j-k;if(C<0&&o===0)return"".concat(h,"L").concat(r,",").concat(n,"Z");h+="L".concat($.x,",").concat($.y,`
      A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(E.x,",").concat(E.y,`
      A`).concat(i,",").concat(i,",0,").concat(+(C>180),",").concat(+(f>0),",").concat(A.x,",").concat(A.y,`
      A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(S.x,",").concat(S.y,"Z")}else h+="L".concat(r,",").concat(n,"Z");return h},vy={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Kl=function(e){var r=Pu(Pu({},vy),e),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,c=r.forceCornerRadius,l=r.cornerIsExternal,s=r.startAngle,f=r.endAngle,p=r.className;if(o<a||s===f)return null;var v=U("recharts-sector",p),m=o-a,y=Oe(u,m,0,!0),d;return y>0&&Math.abs(s-f)<360?d=dy({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(y,m/2),forceCornerRadius:c,cornerIsExternal:l,startAngle:s,endAngle:f}):d=Fl({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:s,endAngle:f}),P.createElement("path",la({},F(r,!0),{className:v,d,role:"img"}))};function Kr(t){"@babel/helpers - typeof";return Kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kr(t)}function sa(){return sa=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},sa.apply(this,arguments)}function Su(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ju(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Su(Object(r),!0).forEach(function(n){hy(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Su(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function hy(t,e,r){return e=yy(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function yy(t){var e=my(t,"string");return Kr(e)=="symbol"?e:e+""}function my(t,e){if(Kr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Kr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Eu={curveBasisClosed:wf,curveBasisOpen:Af,curveBasis:Pf,curveBumpX:Sf,curveBumpY:jf,curveLinearClosed:Ef,curveLinear:Zc,curveMonotoneX:$f,curveMonotoneY:_f,curveNatural:Tf,curveStep:If,curveStepAfter:kf,curveStepBefore:Cf},dn=function(e){return e.x===+e.x&&e.y===+e.y},mr=function(e){return e.x},gr=function(e){return e.y},gy=function(e,r){if(G(e))return e;var n="curve".concat(ti(e));return(n==="curveMonotone"||n==="curveBump")&&r?Eu["".concat(n).concat(r==="vertical"?"Y":"X")]:Eu[n]||Zc},by=function(e){var r=e.type,n=r===void 0?"linear":r,i=e.points,a=i===void 0?[]:i,o=e.baseLine,u=e.layout,c=e.connectNulls,l=c===void 0?!1:c,s=gy(n,u),f=l?a.filter(function(y){return dn(y)}):a,p;if(Array.isArray(o)){var v=l?o.filter(function(y){return dn(y)}):o,m=f.map(function(y,d){return ju(ju({},y),{},{base:v[d]})});return u==="vertical"?p=un().y(gr).x1(mr).x0(function(y){return y.base.x}):p=un().x(mr).y1(gr).y0(function(y){return y.base.y}),p.defined(dn).curve(s),p(m)}return u==="vertical"&&D(o)?p=un().y(gr).x1(mr).x0(o):D(o)?p=un().x(mr).y1(gr).y0(o):p=xf().x(mr).y(gr),p.defined(dn).curve(s),p(f)},Mt=function(e){var r=e.className,n=e.points,i=e.path,a=e.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?by(e):i;return P.createElement("path",sa({},F(e,!1),xn(e),{className:U("recharts-curve",r),d:o,ref:a}))},Oy=Object.getOwnPropertyNames,xy=Object.getOwnPropertySymbols,wy=Object.prototype.hasOwnProperty;function $u(t,e){return function(n,i,a){return t(n,i,a)&&e(n,i,a)}}function vn(t){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return t(r,n,i);var a=i.cache,o=a.get(r),u=a.get(n);if(o&&u)return o===n&&u===r;a.set(r,n),a.set(n,r);var c=t(r,n,i);return a.delete(r),a.delete(n),c}}function _u(t){return Oy(t).concat(xy(t))}var Vl=Object.hasOwn||function(t,e){return wy.call(t,e)};function cr(t,e){return t||e?t===e:t===e||t!==t&&e!==e}var Gl="_owner",Tu=Object.getOwnPropertyDescriptor,Iu=Object.keys;function Ay(t,e,r){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function Py(t,e){return cr(t.getTime(),e.getTime())}function ku(t,e,r){if(t.size!==e.size)return!1;for(var n={},i=t.entries(),a=0,o,u;(o=i.next())&&!o.done;){for(var c=e.entries(),l=!1,s=0;(u=c.next())&&!u.done;){var f=o.value,p=f[0],v=f[1],m=u.value,y=m[0],d=m[1];!l&&!n[s]&&(l=r.equals(p,y,a,s,t,e,r)&&r.equals(v,d,p,y,t,e,r))&&(n[s]=!0),s++}if(!l)return!1;a++}return!0}function Sy(t,e,r){var n=Iu(t),i=n.length;if(Iu(e).length!==i)return!1;for(var a;i-- >0;)if(a=n[i],a===Gl&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof||!Vl(e,a)||!r.equals(t[a],e[a],a,a,t,e,r))return!1;return!0}function br(t,e,r){var n=_u(t),i=n.length;if(_u(e).length!==i)return!1;for(var a,o,u;i-- >0;)if(a=n[i],a===Gl&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof||!Vl(e,a)||!r.equals(t[a],e[a],a,a,t,e,r)||(o=Tu(t,a),u=Tu(e,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function jy(t,e){return cr(t.valueOf(),e.valueOf())}function Ey(t,e){return t.source===e.source&&t.flags===e.flags}function Cu(t,e,r){if(t.size!==e.size)return!1;for(var n={},i=t.values(),a,o;(a=i.next())&&!a.done;){for(var u=e.values(),c=!1,l=0;(o=u.next())&&!o.done;)!c&&!n[l]&&(c=r.equals(a.value,o.value,a.value,o.value,t,e,r))&&(n[l]=!0),l++;if(!c)return!1}return!0}function $y(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}var _y="[object Arguments]",Ty="[object Boolean]",Iy="[object Date]",ky="[object Map]",Cy="[object Number]",My="[object Object]",Dy="[object RegExp]",Ny="[object Set]",By="[object String]",Ry=Array.isArray,Mu=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,Du=Object.assign,Ly=Object.prototype.toString.call.bind(Object.prototype.toString);function zy(t){var e=t.areArraysEqual,r=t.areDatesEqual,n=t.areMapsEqual,i=t.areObjectsEqual,a=t.arePrimitiveWrappersEqual,o=t.areRegExpsEqual,u=t.areSetsEqual,c=t.areTypedArraysEqual;return function(s,f,p){if(s===f)return!0;if(s==null||f==null||typeof s!="object"||typeof f!="object")return s!==s&&f!==f;var v=s.constructor;if(v!==f.constructor)return!1;if(v===Object)return i(s,f,p);if(Ry(s))return e(s,f,p);if(Mu!=null&&Mu(s))return c(s,f,p);if(v===Date)return r(s,f,p);if(v===RegExp)return o(s,f,p);if(v===Map)return n(s,f,p);if(v===Set)return u(s,f,p);var m=Ly(s);return m===Iy?r(s,f,p):m===Dy?o(s,f,p):m===ky?n(s,f,p):m===Ny?u(s,f,p):m===My?typeof s.then!="function"&&typeof f.then!="function"&&i(s,f,p):m===_y?i(s,f,p):m===Ty||m===Cy||m===By?a(s,f,p):!1}}function Wy(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,i={areArraysEqual:n?br:Ay,areDatesEqual:Py,areMapsEqual:n?$u(ku,br):ku,areObjectsEqual:n?br:Sy,arePrimitiveWrappersEqual:jy,areRegExpsEqual:Ey,areSetsEqual:n?$u(Cu,br):Cu,areTypedArraysEqual:n?br:$y};if(r&&(i=Du({},i,r(i))),e){var a=vn(i.areArraysEqual),o=vn(i.areMapsEqual),u=vn(i.areObjectsEqual),c=vn(i.areSetsEqual);i=Du({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:u,areSetsEqual:c})}return i}function Fy(t){return function(e,r,n,i,a,o,u){return t(e,r,u)}}function Ky(t){var e=t.circular,r=t.comparator,n=t.createState,i=t.equals,a=t.strict;if(n)return function(c,l){var s=n(),f=s.cache,p=f===void 0?e?new WeakMap:void 0:f,v=s.meta;return r(c,l,{cache:p,equals:i,meta:v,strict:a})};if(e)return function(c,l){return r(c,l,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(c,l){return r(c,l,o)}}var Vy=Qe();Qe({strict:!0});Qe({circular:!0});Qe({circular:!0,strict:!0});Qe({createInternalComparator:function(){return cr}});Qe({strict:!0,createInternalComparator:function(){return cr}});Qe({circular:!0,createInternalComparator:function(){return cr}});Qe({circular:!0,createInternalComparator:function(){return cr},strict:!0});function Qe(t){t===void 0&&(t={});var e=t.circular,r=e===void 0?!1:e,n=t.createInternalComparator,i=t.createState,a=t.strict,o=a===void 0?!1:a,u=Wy(t),c=zy(u),l=n?n(c):Fy(c);return Ky({circular:r,comparator:c,createState:i,equals:l,strict:o})}function Gy(t){typeof requestAnimationFrame<"u"&&requestAnimationFrame(t)}function Nu(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>e?(t(a),r=-1):Gy(i)};requestAnimationFrame(n)}function fa(t){"@babel/helpers - typeof";return fa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fa(t)}function Xy(t){return Yy(t)||Uy(t)||Hy(t)||qy()}function qy(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hy(t,e){if(t){if(typeof t=="string")return Bu(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bu(t,e)}}function Bu(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Uy(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Yy(t){if(Array.isArray(t))return t}function Zy(){var t={},e=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,u=Xy(o),c=u[0],l=u.slice(1);if(typeof c=="number"){Nu(i.bind(null,l),c);return}i(c),Nu(i.bind(null,l));return}fa(a)==="object"&&(t=a,e(t)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return e=a,function(){e=function(){return null}}}}}function Vr(t){"@babel/helpers - typeof";return Vr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vr(t)}function Ru(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Lu(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ru(Object(r),!0).forEach(function(n){Xl(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ru(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Xl(t,e,r){return e=Jy(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jy(t){var e=Qy(t,"string");return Vr(e)==="symbol"?e:String(e)}function Qy(t,e){if(Vr(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Vr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var em=function(e,r){return[Object.keys(e),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},tm=function(e){return e},rm=function(e){return e.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Pr=function(e,r){return Object.keys(r).reduce(function(n,i){return Lu(Lu({},n),{},Xl({},i,e(i,r[i])))},{})},zu=function(e,r,n){return e.map(function(i){return"".concat(rm(i)," ").concat(r,"ms ").concat(n)}).join(",")};function nm(t,e){return om(t)||am(t,e)||ql(t,e)||im()}function im(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function am(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,l=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(s){l=!0,i=s}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function om(t){if(Array.isArray(t))return t}function um(t){return sm(t)||lm(t)||ql(t)||cm()}function cm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ql(t,e){if(t){if(typeof t=="string")return pa(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pa(t,e)}}function lm(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function sm(t){if(Array.isArray(t))return pa(t)}function pa(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Cn=1e-4,Hl=function(e,r){return[0,3*e,3*r-6*e,3*e-3*r+1]},Ul=function(e,r){return e.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},Wu=function(e,r){return function(n){var i=Hl(e,r);return Ul(i,n)}},fm=function(e,r){return function(n){var i=Hl(e,r),a=[].concat(um(i.map(function(o,u){return o*u}).slice(1)),[0]);return Ul(a,n)}},Fu=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],u=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,u=1;break;case"ease":i=.25,a=.1,o=.25,u=1;break;case"ease-in":i=.42,a=0,o=1,u=1;break;case"ease-out":i=.42,a=0,o=.58,u=1;break;case"ease-in-out":i=0,a=0,o=.58,u=1;break;default:{var c=r[0].split("(");if(c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4){var l=c[1].split(")")[0].split(",").map(function(d){return parseFloat(d)}),s=nm(l,4);i=s[0],a=s[1],o=s[2],u=s[3]}}}var f=Wu(i,o),p=Wu(a,u),v=fm(i,o),m=function(O){return O>1?1:O<0?0:O},y=function(O){for(var b=O>1?1:O,x=b,w=0;w<8;++w){var h=f(x)-b,g=v(x);if(Math.abs(h-b)<Cn||g<Cn)return p(x);x=m(x-h/g)}return p(x)};return y.isStepper=!1,y},pm=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.stiff,n=r===void 0?100:r,i=e.damping,a=i===void 0?8:i,o=e.dt,u=o===void 0?17:o,c=function(s,f,p){var v=-(s-f)*n,m=p*a,y=p+(v-m)*u/1e3,d=p*u/1e3+s;return Math.abs(d-f)<Cn&&Math.abs(y)<Cn?[f,0]:[d,y]};return c.isStepper=!0,c.dt=u,c},dm=function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Fu(i);case"spring":return pm();default:if(i.split("(")[0]==="cubic-bezier")return Fu(i)}return typeof i=="function"?i:null};function Gr(t){"@babel/helpers - typeof";return Gr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gr(t)}function Ku(t){return ym(t)||hm(t)||Yl(t)||vm()}function vm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hm(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function ym(t){if(Array.isArray(t))return va(t)}function Vu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function he(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Vu(Object(r),!0).forEach(function(n){da(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Vu(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function da(t,e,r){return e=mm(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mm(t){var e=gm(t,"string");return Gr(e)==="symbol"?e:String(e)}function gm(t,e){if(Gr(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Gr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function bm(t,e){return wm(t)||xm(t,e)||Yl(t,e)||Om()}function Om(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yl(t,e){if(t){if(typeof t=="string")return va(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return va(t,e)}}function va(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function xm(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,l=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(s){l=!0,i=s}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function wm(t){if(Array.isArray(t))return t}var Mn=function(e,r,n){return e+(r-e)*n},ha=function(e){var r=e.from,n=e.to;return r!==n},Am=function t(e,r,n){var i=Pr(function(a,o){if(ha(o)){var u=e(o.from,o.to,o.velocity),c=bm(u,2),l=c[0],s=c[1];return he(he({},o),{},{from:l,velocity:s})}return o},r);return n<1?Pr(function(a,o){return ha(o)?he(he({},o),{},{velocity:Mn(o.velocity,i[a].velocity,n),from:Mn(o.from,i[a].from,n)}):o},r):t(e,i,n-1)};const Pm=function(t,e,r,n,i){var a=em(t,e),o=a.reduce(function(d,O){return he(he({},d),{},da({},O,[t[O],e[O]]))},{}),u=a.reduce(function(d,O){return he(he({},d),{},da({},O,{from:t[O],velocity:0,to:e[O]}))},{}),c=-1,l,s,f=function(){return null},p=function(){return Pr(function(O,b){return b.from},u)},v=function(){return!Object.values(u).filter(ha).length},m=function(O){l||(l=O);var b=O-l,x=b/r.dt;u=Am(r,u,x),i(he(he(he({},t),e),p())),l=O,v()||(c=requestAnimationFrame(f))},y=function(O){s||(s=O);var b=(O-s)/n,x=Pr(function(h,g){return Mn.apply(void 0,Ku(g).concat([r(b)]))},o);if(i(he(he(he({},t),e),x)),b<1)c=requestAnimationFrame(f);else{var w=Pr(function(h,g){return Mn.apply(void 0,Ku(g).concat([r(1)]))},o);i(he(he(he({},t),e),w))}};return f=r.isStepper?m:y,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(c)}}};function Wt(t){"@babel/helpers - typeof";return Wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wt(t)}var Sm=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function jm(t,e){if(t==null)return{};var r=Em(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Em(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,a;for(a=0;a<n.length;a++)i=n[a],!(e.indexOf(i)>=0)&&(r[i]=t[i]);return r}function Ti(t){return Im(t)||Tm(t)||_m(t)||$m()}function $m(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _m(t,e){if(t){if(typeof t=="string")return ya(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ya(t,e)}}function Tm(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Im(t){if(Array.isArray(t))return ya(t)}function ya(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Gu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ke(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Gu(Object(r),!0).forEach(function(n){xr(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Gu(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function xr(t,e,r){return e=Zl(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function km(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Cm(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Zl(n.key),n)}}function Mm(t,e,r){return e&&Cm(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Zl(t){var e=Dm(t,"string");return Wt(e)==="symbol"?e:String(e)}function Dm(t,e){if(Wt(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Wt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Nm(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ma(t,e)}function ma(t,e){return ma=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ma(t,e)}function Bm(t){var e=Rm();return function(){var n=Dn(t),i;if(e){var a=Dn(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return ga(this,i)}}function ga(t,e){if(e&&(Wt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ba(t)}function ba(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Rm(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Dn(t){return Dn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Dn(t)}var ze=function(t){Nm(r,t);var e=Bm(r);function r(n,i){var a;km(this,r),a=e.call(this,n,i);var o=a.props,u=o.isActive,c=o.attributeName,l=o.from,s=o.to,f=o.steps,p=o.children,v=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(ba(a)),a.changeStyle=a.changeStyle.bind(ba(a)),!u||v<=0)return a.state={style:{}},typeof p=="function"&&(a.state={style:s}),ga(a);if(f&&f.length)a.state={style:f[0].style};else if(l){if(typeof p=="function")return a.state={style:l},ga(a);a.state={style:c?xr({},c,l):l}}else a.state={style:{}};return a}return Mm(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,u=a.canBegin,c=a.attributeName,l=a.shouldReAnimate,s=a.to,f=a.from,p=this.state.style;if(u){if(!o){var v={style:c?xr({},c,s):s};this.state&&p&&(c&&p[c]!==s||!c&&p!==s)&&this.setState(v);return}if(!(Vy(i.to,s)&&i.canBegin&&i.isActive)){var m=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var y=m||l?f:i.to;if(this.state&&p){var d={style:c?xr({},c,y):y};(c&&p[c]!==y||!c&&p!==y)&&this.setState(d)}this.runAnimation(ke(ke({},this.props),{},{from:y,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,u=i.to,c=i.duration,l=i.easing,s=i.begin,f=i.onAnimationEnd,p=i.onAnimationStart,v=Pm(o,u,dm(l),c,this.changeStyle),m=function(){a.stopJSAnimation=v()};this.manager.start([p,s,m,c,f])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,c=i.onAnimationStart,l=o[0],s=l.style,f=l.duration,p=f===void 0?0:f,v=function(y,d,O){if(O===0)return y;var b=d.duration,x=d.easing,w=x===void 0?"ease":x,h=d.style,g=d.properties,A=d.onAnimationEnd,S=O>0?o[O-1]:d,j=g||Object.keys(h);if(typeof w=="function"||w==="spring")return[].concat(Ti(y),[a.runJSAnimation.bind(a,{from:S.style,to:h,duration:b,easing:w}),b]);var _=zu(j,b,w),E=ke(ke(ke({},S.style),h),{},{transition:_});return[].concat(Ti(y),[E,b,A]).filter(tm)};return this.manager.start([c].concat(Ti(o.reduce(v,[s,Math.max(p,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=Zy());var a=i.begin,o=i.duration,u=i.attributeName,c=i.to,l=i.easing,s=i.onAnimationStart,f=i.onAnimationEnd,p=i.steps,v=i.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof l=="function"||typeof v=="function"||l==="spring"){this.runJSAnimation(i);return}if(p.length>1){this.runStepAnimation(i);return}var y=u?xr({},u,c):c,d=zu(Object.keys(y),o,l);m.start([s,a,ke(ke({},y),{},{transition:d}),o,f])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var c=jm(i,Sm),l=B.Children.count(a),s=this.state.style;if(typeof a=="function")return a(s);if(!u||l===0||o<=0)return a;var f=function(v){var m=v.props,y=m.style,d=y===void 0?{}:y,O=m.className,b=B.cloneElement(v,ke(ke({},c),{},{style:ke(ke({},d),s),className:O}));return b};return l===1?f(B.Children.only(a)):P.createElement("div",null,B.Children.map(a,function(p){return f(p)}))}}]),r}(B.PureComponent);ze.displayName="Animate";ze.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};ze.propTypes={from:Z.oneOfType([Z.object,Z.string]),to:Z.oneOfType([Z.object,Z.string]),attributeName:Z.string,duration:Z.number,begin:Z.number,easing:Z.oneOfType([Z.string,Z.func]),steps:Z.arrayOf(Z.shape({duration:Z.number.isRequired,style:Z.object.isRequired,easing:Z.oneOfType([Z.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Z.func]),properties:Z.arrayOf("string"),onAnimationEnd:Z.func})),children:Z.oneOfType([Z.node,Z.func]),isActive:Z.bool,canBegin:Z.bool,onAnimationEnd:Z.func,shouldReAnimate:Z.bool,onAnimationStart:Z.func,onAnimationReStart:Z.func};function Xr(t){"@babel/helpers - typeof";return Xr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xr(t)}function Nn(){return Nn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Nn.apply(this,arguments)}function Lm(t,e){return Km(t)||Fm(t,e)||Wm(t,e)||zm()}function zm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wm(t,e){if(t){if(typeof t=="string")return Xu(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xu(t,e)}}function Xu(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Fm(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,l=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(s){l=!0,i=s}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function Km(t){if(Array.isArray(t))return t}function qu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Hu(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?qu(Object(r),!0).forEach(function(n){Vm(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):qu(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Vm(t,e,r){return e=Gm(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Gm(t){var e=Xm(t,"string");return Xr(e)=="symbol"?e:e+""}function Xm(t,e){if(Xr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Xr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Uu=function(e,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=i>=0?1:-1,c=n>=0?1:-1,l=i>=0&&n>=0||i<0&&n<0?1:0,s;if(o>0&&a instanceof Array){for(var f=[0,0,0,0],p=0,v=4;p<v;p++)f[p]=a[p]>o?o:a[p];s="M".concat(e,",").concat(r+u*f[0]),f[0]>0&&(s+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(l,",").concat(e+c*f[0],",").concat(r)),s+="L ".concat(e+n-c*f[1],",").concat(r),f[1]>0&&(s+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(l,`,
        `).concat(e+n,",").concat(r+u*f[1])),s+="L ".concat(e+n,",").concat(r+i-u*f[2]),f[2]>0&&(s+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(l,`,
        `).concat(e+n-c*f[2],",").concat(r+i)),s+="L ".concat(e+c*f[3],",").concat(r+i),f[3]>0&&(s+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(l,`,
        `).concat(e,",").concat(r+i-u*f[3])),s+="Z"}else if(o>0&&a===+a&&a>0){var m=Math.min(o,a);s="M ".concat(e,",").concat(r+u*m,`
            A `).concat(m,",").concat(m,",0,0,").concat(l,",").concat(e+c*m,",").concat(r,`
            L `).concat(e+n-c*m,",").concat(r,`
            A `).concat(m,",").concat(m,",0,0,").concat(l,",").concat(e+n,",").concat(r+u*m,`
            L `).concat(e+n,",").concat(r+i-u*m,`
            A `).concat(m,",").concat(m,",0,0,").concat(l,",").concat(e+n-c*m,",").concat(r+i,`
            L `).concat(e+c*m,",").concat(r+i,`
            A `).concat(m,",").concat(m,",0,0,").concat(l,",").concat(e,",").concat(r+i-u*m," Z")}else s="M ".concat(e,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return s},qm=function(e,r){if(!e||!r)return!1;var n=e.x,i=e.y,a=r.x,o=r.y,u=r.width,c=r.height;if(Math.abs(u)>0&&Math.abs(c)>0){var l=Math.min(a,a+u),s=Math.max(a,a+u),f=Math.min(o,o+c),p=Math.max(o,o+c);return n>=l&&n<=s&&i>=f&&i<=p}return!1},Hm={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ro=function(e){var r=Hu(Hu({},Hm),e),n=B.useRef(),i=B.useState(-1),a=Lm(i,2),o=a[0],u=a[1];B.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&u(w)}catch{}},[]);var c=r.x,l=r.y,s=r.width,f=r.height,p=r.radius,v=r.className,m=r.animationEasing,y=r.animationDuration,d=r.animationBegin,O=r.isAnimationActive,b=r.isUpdateAnimationActive;if(c!==+c||l!==+l||s!==+s||f!==+f||s===0||f===0)return null;var x=U("recharts-rectangle",v);return b?P.createElement(ze,{canBegin:o>0,from:{width:s,height:f,x:c,y:l},to:{width:s,height:f,x:c,y:l},duration:y,animationEasing:m,isActive:b},function(w){var h=w.width,g=w.height,A=w.x,S=w.y;return P.createElement(ze,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:y,isActive:O,easing:m},P.createElement("path",Nn({},F(r,!0),{className:x,d:Uu(A,S,h,g,p),ref:n})))}):P.createElement("path",Nn({},F(r,!0),{className:x,d:Uu(c,l,s,f,p)}))},Um=["points","className","baseLinePoints","connectNulls"];function Et(){return Et=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Et.apply(this,arguments)}function Ym(t,e){if(t==null)return{};var r=Zm(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Zm(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function Yu(t){return tg(t)||eg(t)||Qm(t)||Jm()}function Jm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qm(t,e){if(t){if(typeof t=="string")return Oa(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Oa(t,e)}}function eg(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function tg(t){if(Array.isArray(t))return Oa(t)}function Oa(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Zu=function(e){return e&&e.x===+e.x&&e.y===+e.y},rg=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return e.forEach(function(n){Zu(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),Zu(e[0])&&r[r.length-1].push(e[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Sr=function(e,r){var n=rg(e);r&&(n=[n.reduce(function(a,o){return[].concat(Yu(a),Yu(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,u,c){return"".concat(o).concat(c===0?"M":"L").concat(u.x,",").concat(u.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},ng=function(e,r,n){var i=Sr(e,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Sr(r.reverse(),n).slice(1))},ig=function(e){var r=e.points,n=e.className,i=e.baseLinePoints,a=e.connectNulls,o=Ym(e,Um);if(!r||!r.length)return null;var u=U("recharts-polygon",n);if(i&&i.length){var c=o.stroke&&o.stroke!=="none",l=ng(r,i,a);return P.createElement("g",{className:u},P.createElement("path",Et({},F(o,!0),{fill:l.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:l})),c?P.createElement("path",Et({},F(o,!0),{fill:"none",d:Sr(r,a)})):null,c?P.createElement("path",Et({},F(o,!0),{fill:"none",d:Sr(i,a)})):null)}var s=Sr(r,a);return P.createElement("path",Et({},F(o,!0),{fill:s.slice(-1)==="Z"?o.fill:"none",className:u,d:s}))};function xa(){return xa=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},xa.apply(this,arguments)}var ui=function(e){var r=e.cx,n=e.cy,i=e.r,a=e.className,o=U("recharts-dot",a);return r===+r&&n===+n&&i===+i?P.createElement("circle",xa({},F(e,!1),xn(e),{className:o,cx:r,cy:n,r:i})):null};function qr(t){"@babel/helpers - typeof";return qr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qr(t)}var ag=["x","y","top","left","width","height","className"];function wa(){return wa=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},wa.apply(this,arguments)}function Ju(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function og(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ju(Object(r),!0).forEach(function(n){ug(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ju(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ug(t,e,r){return e=cg(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function cg(t){var e=lg(t,"string");return qr(e)=="symbol"?e:e+""}function lg(t,e){if(qr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(qr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function sg(t,e){if(t==null)return{};var r=fg(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function fg(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var pg=function(e,r,n,i,a,o){return"M".concat(e,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},dg=function(e){var r=e.x,n=r===void 0?0:r,i=e.y,a=i===void 0?0:i,o=e.top,u=o===void 0?0:o,c=e.left,l=c===void 0?0:c,s=e.width,f=s===void 0?0:s,p=e.height,v=p===void 0?0:p,m=e.className,y=sg(e,ag),d=og({x:n,y:a,top:u,left:l,width:f,height:v},y);return!D(n)||!D(a)||!D(f)||!D(v)||!D(u)||!D(l)?null:P.createElement("path",wa({},F(d,!0),{className:U("recharts-cross",m),d:pg(n,a,f,v,u,l)}))},vg=["cx","cy","angle","ticks","axisLine"],hg=["ticks","tick","angle","tickFormatter","stroke"];function Ft(t){"@babel/helpers - typeof";return Ft=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ft(t)}function jr(){return jr=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},jr.apply(this,arguments)}function Qu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ot(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Qu(Object(r),!0).forEach(function(n){ci(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Qu(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ec(t,e){if(t==null)return{};var r=yg(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function yg(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function mg(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function tc(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ql(n.key),n)}}function gg(t,e,r){return e&&tc(t.prototype,e),r&&tc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function bg(t,e,r){return e=Bn(e),Og(t,Jl()?Reflect.construct(e,r||[],Bn(t).constructor):e.apply(t,r))}function Og(t,e){if(e&&(Ft(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xg(t)}function xg(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Jl(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Jl=function(){return!!t})()}function Bn(t){return Bn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bn(t)}function wg(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Aa(t,e)}function Aa(t,e){return Aa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Aa(t,e)}function ci(t,e,r){return e=Ql(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ql(t){var e=Ag(t,"string");return Ft(e)=="symbol"?e:e+""}function Ag(t,e){if(Ft(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Ft(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var li=function(t){function e(){return mg(this,e),bg(this,e,arguments)}return wg(e,t),gg(e,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,u=a.cx,c=a.cy;return re(u,c,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,c=Qs(u,function(s){return s.coordinate||0}),l=ef(u,function(s){return s.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:l.coordinate||0,outerRadius:c.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,c=n.axisLine,l=ec(n,vg),s=u.reduce(function(m,y){return[Math.min(m[0],y.coordinate),Math.max(m[1],y.coordinate)]},[1/0,-1/0]),f=re(i,a,s[0],o),p=re(i,a,s[1],o),v=ot(ot(ot({},F(l,!1)),{},{fill:"none"},F(c,!1)),{},{x1:f.x,y1:f.y,x2:p.x,y2:p.y});return P.createElement("line",jr({className:"recharts-polar-radius-axis-line"},v))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.angle,c=i.tickFormatter,l=i.stroke,s=ec(i,hg),f=this.getTickTextAnchor(),p=F(s,!1),v=F(o,!1),m=a.map(function(y,d){var O=n.getTickValueCoord(y),b=ot(ot(ot(ot({textAnchor:f,transform:"rotate(".concat(90-u,", ").concat(O.x,", ").concat(O.y,")")},p),{},{stroke:"none",fill:l},v),{},{index:d},O),{},{payload:y});return P.createElement(Y,jr({className:U("recharts-polar-radius-axis-tick",zl(o)),key:"tick-".concat(y.coordinate)},vt(n.props,y,d)),e.renderTickItem(o,b,c?c(y.value,d):y.value))});return P.createElement(Y,{className:"recharts-polar-radius-axis-ticks"},m)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:P.createElement(Y,{className:U("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),ve.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return P.isValidElement(n)?o=P.cloneElement(n,i):G(n)?o=n(i):o=P.createElement(ht,jr({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])}(B.PureComponent);ci(li,"displayName","PolarRadiusAxis");ci(li,"axisType","radiusAxis");ci(li,"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});function Kt(t){"@babel/helpers - typeof";return Kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kt(t)}function lt(){return lt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},lt.apply(this,arguments)}function rc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ut(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?rc(Object(r),!0).forEach(function(n){si(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Pg(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function nc(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ts(n.key),n)}}function Sg(t,e,r){return e&&nc(t.prototype,e),r&&nc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function jg(t,e,r){return e=Rn(e),Eg(t,es()?Reflect.construct(e,r||[],Rn(t).constructor):e.apply(t,r))}function Eg(t,e){if(e&&(Kt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $g(t)}function $g(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function es(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(es=function(){return!!t})()}function Rn(t){return Rn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Rn(t)}function _g(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Pa(t,e)}function Pa(t,e){return Pa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Pa(t,e)}function si(t,e,r){return e=ts(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ts(t){var e=Tg(t,"string");return Kt(e)=="symbol"?e:e+""}function Tg(t,e){if(Kt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Kt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ig=Math.PI/180,ic=1e-5,fi=function(t){function e(){return Pg(this,e),jg(this,e,arguments)}return _g(e,t),Sg(e,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,u=i.radius,c=i.orientation,l=i.tickSize,s=l||8,f=re(a,o,u,n.coordinate),p=re(a,o,u+(c==="inner"?-1:1)*s,n.coordinate);return{x1:f.x,y1:f.y,x2:p.x,y2:p.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*Ig),o;return a>ic?o=i==="outer"?"start":"end":a<-ic?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,u=n.axisLine,c=n.axisLineType,l=ut(ut({},F(this.props,!1)),{},{fill:"none"},F(u,!1));if(c==="circle")return P.createElement(ui,lt({className:"recharts-polar-angle-axis-line"},l,{cx:i,cy:a,r:o}));var s=this.props.ticks,f=s.map(function(p){return re(i,a,o,p.coordinate)});return P.createElement(ig,lt({className:"recharts-polar-angle-axis-line"},l,{points:f}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.tickLine,c=i.tickFormatter,l=i.stroke,s=F(this.props,!1),f=F(o,!1),p=ut(ut({},s),{},{fill:"none"},F(u,!1)),v=a.map(function(m,y){var d=n.getTickLineCoord(m),O=n.getTickTextAnchor(m),b=ut(ut(ut({textAnchor:O},s),{},{stroke:"none",fill:l},f),{},{index:y,payload:m,x:d.x2,y:d.y2});return P.createElement(Y,lt({className:U("recharts-polar-angle-axis-tick",zl(o)),key:"tick-".concat(m.coordinate)},vt(n.props,m,y)),u&&P.createElement("line",lt({className:"recharts-polar-angle-axis-tick-line"},p,d)),o&&e.renderTickItem(o,b,c?c(m.value,y):m.value))});return P.createElement(Y,{className:"recharts-polar-angle-axis-ticks"},v)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:P.createElement(Y,{className:U("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return P.isValidElement(n)?o=P.cloneElement(n,i):G(n)?o=n(i):o=P.createElement(ht,lt({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(B.PureComponent);si(fi,"displayName","PolarAngleAxis");si(fi,"axisType","angleAxis");si(fi,"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});function Hr(t){"@babel/helpers - typeof";return Hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hr(t)}function Ln(){return Ln=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ln.apply(this,arguments)}function kg(t,e){return Ng(t)||Dg(t,e)||Mg(t,e)||Cg()}function Cg(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mg(t,e){if(t){if(typeof t=="string")return ac(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ac(t,e)}}function ac(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Dg(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,l=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(s){l=!0,i=s}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function Ng(t){if(Array.isArray(t))return t}function oc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function uc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?oc(Object(r),!0).forEach(function(n){Bg(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):oc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Bg(t,e,r){return e=Rg(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Rg(t){var e=Lg(t,"string");return Hr(e)=="symbol"?e:e+""}function Lg(t,e){if(Hr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Hr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var cc=function(e,r,n,i,a){var o=n-i,u;return u="M ".concat(e,",").concat(r),u+="L ".concat(e+n,",").concat(r),u+="L ".concat(e+n-o/2,",").concat(r+a),u+="L ".concat(e+n-o/2-i,",").concat(r+a),u+="L ".concat(e,",").concat(r," Z"),u},zg={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Wg=function(e){var r=uc(uc({},zg),e),n=B.useRef(),i=B.useState(-1),a=kg(i,2),o=a[0],u=a[1];B.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var x=n.current.getTotalLength();x&&u(x)}catch{}},[]);var c=r.x,l=r.y,s=r.upperWidth,f=r.lowerWidth,p=r.height,v=r.className,m=r.animationEasing,y=r.animationDuration,d=r.animationBegin,O=r.isUpdateAnimationActive;if(c!==+c||l!==+l||s!==+s||f!==+f||p!==+p||s===0&&f===0||p===0)return null;var b=U("recharts-trapezoid",v);return O?P.createElement(ze,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:p,x:c,y:l},to:{upperWidth:s,lowerWidth:f,height:p,x:c,y:l},duration:y,animationEasing:m,isActive:O},function(x){var w=x.upperWidth,h=x.lowerWidth,g=x.height,A=x.x,S=x.y;return P.createElement(ze,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:y,easing:m},P.createElement("path",Ln({},F(r,!0),{className:b,d:cc(A,S,w,h,g),ref:n})))}):P.createElement("g",null,P.createElement("path",Ln({},F(r,!0),{className:b,d:cc(c,l,s,f,p)})))},Fg=["option","shapeType","propTransformer","activeClassName","isActive"];function Ur(t){"@babel/helpers - typeof";return Ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ur(t)}function Kg(t,e){if(t==null)return{};var r=Vg(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Vg(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function lc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function zn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?lc(Object(r),!0).forEach(function(n){Gg(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Gg(t,e,r){return e=Xg(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Xg(t){var e=qg(t,"string");return Ur(e)=="symbol"?e:e+""}function qg(t,e){if(Ur(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Ur(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Hg(t,e){return zn(zn({},e),t)}function Ug(t,e){return t==="symbols"}function sc(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return P.createElement(ro,r);case"trapezoid":return P.createElement(Wg,r);case"sector":return P.createElement(Kl,r);case"symbols":if(Ug(e))return P.createElement(Ua,r);break;default:return null}}function Yg(t){return B.isValidElement(t)?t.props:t}function rs(t){var e=t.option,r=t.shapeType,n=t.propTransformer,i=n===void 0?Hg:n,a=t.activeClassName,o=a===void 0?"recharts-active-shape":a,u=t.isActive,c=Kg(t,Fg),l;if(B.isValidElement(e))l=B.cloneElement(e,zn(zn({},c),Yg(e)));else if(G(e))l=e(c);else if(tf(e)&&!rf(e)){var s=i(e,c);l=P.createElement(sc,{shapeType:r,elementProps:s})}else{var f=c;l=P.createElement(sc,{shapeType:r,elementProps:f})}return u?P.createElement(Y,{className:o},l):l}function pi(t,e){return e!=null&&"trapezoids"in t.props}function di(t,e){return e!=null&&"sectors"in t.props}function Yr(t,e){return e!=null&&"points"in t.props}function Zg(t,e){var r,n,i=t.x===(e==null||(r=e.labelViewBox)===null||r===void 0?void 0:r.x)||t.x===e.x,a=t.y===(e==null||(n=e.labelViewBox)===null||n===void 0?void 0:n.y)||t.y===e.y;return i&&a}function Jg(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function Qg(t,e){var r=t.x===e.x,n=t.y===e.y,i=t.z===e.z;return r&&n&&i}function eb(t,e){var r;return pi(t,e)?r=Zg:di(t,e)?r=Jg:Yr(t,e)&&(r=Qg),r}function tb(t,e){var r;return pi(t,e)?r="trapezoids":di(t,e)?r="sectors":Yr(t,e)&&(r="points"),r}function rb(t,e){if(pi(t,e)){var r;return(r=e.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(di(t,e)){var n;return(n=e.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return Yr(t,e)?e.payload:{}}function nb(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,i=tb(r,e),a=rb(r,e),o=n.filter(function(c,l){var s=Dt(a,c),f=r.props[i].filter(function(m){var y=eb(r,e);return y(m,e)}),p=r.props[i].indexOf(f[f.length-1]),v=l===p;return s&&v}),u=n.indexOf(o[o.length-1]);return u}var gn;function Vt(t){"@babel/helpers - typeof";return Vt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vt(t)}function $t(){return $t=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},$t.apply(this,arguments)}function fc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function te(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?fc(Object(r),!0).forEach(function(n){$e(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ib(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pc(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,is(n.key),n)}}function ab(t,e,r){return e&&pc(t.prototype,e),r&&pc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function ob(t,e,r){return e=Wn(e),ub(t,ns()?Reflect.construct(e,r||[],Wn(t).constructor):e.apply(t,r))}function ub(t,e){if(e&&(Vt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cb(t)}function cb(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ns(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ns=function(){return!!t})()}function Wn(t){return Wn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wn(t)}function lb(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Sa(t,e)}function Sa(t,e){return Sa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Sa(t,e)}function $e(t,e,r){return e=is(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function is(t){var e=sb(t,"string");return Vt(e)=="symbol"?e:e+""}function sb(t,e){if(Vt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Vt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var et=function(t){function e(r){var n;return ib(this,e),n=ob(this,e,[r]),$e(n,"pieRef",null),$e(n,"sectorRefs",[]),$e(n,"id",ar("recharts-pie-")),$e(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),G(i)&&i()}),$e(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),G(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return lb(e,t),ab(e,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,u=a.labelLine,c=a.dataKey,l=a.valueKey,s=F(this.props,!1),f=F(o,!1),p=F(u,!1),v=o&&o.offsetRadius||20,m=n.map(function(y,d){var O=(y.startAngle+y.endAngle)/2,b=re(y.cx,y.cy,y.outerRadius+v,O),x=te(te(te(te({},s),y),{},{stroke:"none"},f),{},{index:d,textAnchor:e.getTextAnchor(b.x,y.cx)},b),w=te(te(te(te({},s),y),{},{fill:"none",stroke:y.fill},p),{},{index:d,points:[re(y.cx,y.cy,y.outerRadius,O),b]}),h=c;return H(c)&&H(l)?h="value":H(c)&&(h=l),P.createElement(Y,{key:"label-".concat(y.startAngle,"-").concat(y.endAngle,"-").concat(y.midAngle,"-").concat(d)},u&&e.renderLabelLineItem(u,w,"line"),e.renderLabelItem(o,x,se(y,h)))});return P.createElement(Y,{className:"recharts-pie-labels"},m)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.activeShape,u=a.blendStroke,c=a.inactiveShape;return n.map(function(l,s){if((l==null?void 0:l.startAngle)===0&&(l==null?void 0:l.endAngle)===0&&n.length!==1)return null;var f=i.isActiveIndex(s),p=c&&i.hasActiveIndex()?c:null,v=f?o:p,m=te(te({},l),{},{stroke:u?l.fill:l.stroke,tabIndex:-1});return P.createElement(Y,$t({ref:function(d){d&&!i.sectorRefs.includes(d)&&i.sectorRefs.push(d)},tabIndex:-1,className:"recharts-pie-sector"},vt(i.props,l,s),{key:"sector-".concat(l==null?void 0:l.startAngle,"-").concat(l==null?void 0:l.endAngle,"-").concat(l.midAngle,"-").concat(s)}),P.createElement(rs,$t({option:v,isActive:f,shapeType:"sector"},m)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,o=i.isAnimationActive,u=i.animationBegin,c=i.animationDuration,l=i.animationEasing,s=i.animationId,f=this.state,p=f.prevSectors,v=f.prevIsAnimationActive;return P.createElement(ze,{begin:u,duration:c,isActive:o,easing:l,from:{t:0},to:{t:1},key:"pie-".concat(s,"-").concat(v),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(m){var y=m.t,d=[],O=a&&a[0],b=O.startAngle;return a.forEach(function(x,w){var h=p&&p[w],g=w>0?Se(x,"paddingAngle",0):0;if(h){var A=xe(h.endAngle-h.startAngle,x.endAngle-x.startAngle),S=te(te({},x),{},{startAngle:b+g,endAngle:b+A(y)+g});d.push(S),b=S.endAngle}else{var j=x.endAngle,_=x.startAngle,E=xe(0,j-_),$=E(y),k=te(te({},x),{},{startAngle:b+g,endAngle:b+$+g});d.push(k),b=k.endAngle}}),P.createElement(Y,null,n.renderSectorsStatically(d))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var u=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[u].focus(),i.setState({sectorToFocus:u});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!Dt(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,u=i.className,c=i.label,l=i.cx,s=i.cy,f=i.innerRadius,p=i.outerRadius,v=i.isAnimationActive,m=this.state.isAnimationFinished;if(a||!o||!o.length||!D(l)||!D(s)||!D(f)||!D(p))return null;var y=U("recharts-pie",u);return P.createElement(Y,{tabIndex:this.props.rootTabIndex,className:y,ref:function(O){n.pieRef=O}},this.renderSectors(),c&&this.renderLabels(o),ve.renderCallByParent(this.props,null,!1),(!v||m)&&qe.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,a){if(P.isValidElement(n))return P.cloneElement(n,i);if(G(n))return n(i);var o=U("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return P.createElement(Mt,$t({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(P.isValidElement(n))return P.cloneElement(n,i);var o=a;if(G(n)&&(o=n(i),P.isValidElement(o)))return o;var u=U("recharts-pie-label-text",typeof n!="boolean"&&!G(n)?n.className:"");return P.createElement(ht,$t({},i,{alignmentBaseline:"middle",className:u}),o)}}])}(B.PureComponent);gn=et;$e(et,"displayName","Pie");$e(et,"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:!Be.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});$e(et,"parseDeltaAngle",function(t,e){var r=be(e-t),n=Math.min(Math.abs(e-t),360);return r*n});$e(et,"getRealPieData",function(t){var e=t.data,r=t.children,n=F(t,!1),i=_e(r,Ja);return e&&e.length?e.map(function(a,o){return te(te(te({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return te(te({},n),a.props)}):[]});$e(et,"parseCoordinateOfPie",function(t,e){var r=e.top,n=e.left,i=e.width,a=e.height,o=Ll(i,a),u=n+Oe(t.cx,i,i/2),c=r+Oe(t.cy,a,a/2),l=Oe(t.innerRadius,o,0),s=Oe(t.outerRadius,o,o*.8),f=t.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:u,cy:c,innerRadius:l,outerRadius:s,maxRadius:f}});$e(et,"getComposedData",function(t){var e=t.item,r=t.offset,n=e.type.defaultProps!==void 0?te(te({},e.type.defaultProps),e.props):e.props,i=gn.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,u=n.endAngle,c=n.paddingAngle,l=n.dataKey,s=n.nameKey,f=n.valueKey,p=n.tooltipType,v=Math.abs(n.minAngle),m=gn.parseCoordinateOfPie(n,r),y=gn.parseDeltaAngle(o,u),d=Math.abs(y),O=l;H(l)&&H(f)?(Me(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),O="value"):H(l)&&(Me(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),O=f);var b=i.filter(function(S){return se(S,O,0)!==0}).length,x=(d>=360?b:b-1)*c,w=d-b*v-x,h=i.reduce(function(S,j){var _=se(j,O,0);return S+(D(_)?_:0)},0),g;if(h>0){var A;g=i.map(function(S,j){var _=se(S,O,0),E=se(S,s,j),$=(D(_)?_:0)/h,k;j?k=A.endAngle+be(y)*c*(_!==0?1:0):k=o;var C=k+be(y)*((_!==0?v:0)+$*w),I=(k+C)/2,M=(m.innerRadius+m.outerRadius)/2,N=[{name:E,value:_,payload:S,dataKey:O,type:p}],R=re(m.cx,m.cy,M,I);return A=te(te(te({percent:$,cornerRadius:a,name:E,tooltipPayload:N,midAngle:I,middleRadius:M,tooltipPosition:R},S),m),{},{value:se(S,O),startAngle:k,endAngle:C,payload:S,paddingAngle:be(y)*c}),A})}return te(te({},m),{},{sectors:g,data:i})});function Zr(t){"@babel/helpers - typeof";return Zr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zr(t)}function dc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function vc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?dc(Object(r),!0).forEach(function(n){as(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function as(t,e,r){return e=fb(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fb(t){var e=pb(t,"string");return Zr(e)=="symbol"?e:e+""}function pb(t,e){if(Zr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Zr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var db=["Webkit","Moz","O","ms"],vb=function(e,r){var n=e.replace(/(\w)/,function(a){return a.toUpperCase()}),i=db.reduce(function(a,o){return vc(vc({},a),{},as({},o+n,r))},{});return i[e]=r,i};function Gt(t){"@babel/helpers - typeof";return Gt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gt(t)}function Fn(){return Fn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Fn.apply(this,arguments)}function hc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ii(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?hc(Object(r),!0).forEach(function(n){we(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):hc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function hb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yc(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,us(n.key),n)}}function yb(t,e,r){return e&&yc(t.prototype,e),r&&yc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function mb(t,e,r){return e=Kn(e),gb(t,os()?Reflect.construct(e,r||[],Kn(t).constructor):e.apply(t,r))}function gb(t,e){if(e&&(Gt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bb(t)}function bb(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function os(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(os=function(){return!!t})()}function Kn(t){return Kn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Kn(t)}function Ob(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ja(t,e)}function ja(t,e){return ja=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ja(t,e)}function we(t,e,r){return e=us(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function us(t){var e=xb(t,"string");return Gt(e)=="symbol"?e:e+""}function xb(t,e){if(Gt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Gt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var wb=function(e){var r=e.data,n=e.startIndex,i=e.endIndex,a=e.x,o=e.width,u=e.travellerWidth;if(!r||!r.length)return{};var c=r.length,l=mn().domain(bn(0,c)).range([a,a+o-u]),s=l.domain().map(function(f){return l(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(n),endX:l(i),scale:l,scaleValues:s}},mc=function(e){return e.changedTouches&&!!e.changedTouches.length},Xt=function(t){function e(r){var n;return hb(this,e),n=mb(this,e,[r]),we(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),we(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),we(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o==null||o({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),we(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),we(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),we(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),we(n,"handleSlideDragStart",function(i){var a=mc(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return Ob(e,t),yb(e,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,u=this.props,c=u.gap,l=u.data,s=l.length-1,f=Math.min(i,a),p=Math.max(i,a),v=e.getIndexInRange(o,f),m=e.getIndexInRange(o,p);return{startIndex:v-v%c,endIndex:m===s?s:m-m%c}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,c=se(a[n],u,n);return G(o)?o(c,n):c}},{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(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,u=i.endX,c=this.props,l=c.x,s=c.width,f=c.travellerWidth,p=c.startIndex,v=c.endIndex,m=c.onChange,y=n.pageX-a;y>0?y=Math.min(y,l+s-f-u,l+s-f-o):y<0&&(y=Math.max(y,l-o,l-u));var d=this.getIndex({startX:o+y,endX:u+y});(d.startIndex!==p||d.endIndex!==v)&&m&&m(d),this.setState({startX:o+y,endX:u+y,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=mc(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,u=i.endX,c=i.startX,l=this.state[o],s=this.props,f=s.x,p=s.width,v=s.travellerWidth,m=s.onChange,y=s.gap,d=s.data,O={startX:this.state.startX,endX:this.state.endX},b=n.pageX-a;b>0?b=Math.min(b,f+p-v-l):b<0&&(b=Math.max(b,f-l)),O[o]=l+b;var x=this.getIndex(O),w=x.startIndex,h=x.endIndex,g=function(){var S=d.length-1;return o==="startX"&&(u>c?w%y===0:h%y===0)||u<c&&h===S||o==="endX"&&(u>c?h%y===0:w%y===0)||u>c&&h===S};this.setState(we(we({},o,l+b),"brushMoveStartX",n.pageX),function(){m&&g()&&m(x)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,c=o.startX,l=o.endX,s=this.state[i],f=u.indexOf(s);if(f!==-1){var p=f+n;if(!(p===-1||p>=u.length)){var v=u[p];i==="startX"&&v>=l||i==="endX"&&v<=c||this.setState(we({},i,v),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.fill,l=n.stroke;return P.createElement("rect",{stroke:l,fill:c,x:i,y:a,width:o,height:u})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.data,l=n.children,s=n.padding,f=B.Children.only(l);return f?P.cloneElement(f,{x:i,y:a,width:o,height:u,margin:s,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,c=this.props,l=c.y,s=c.travellerWidth,f=c.height,p=c.traveller,v=c.ariaLabel,m=c.data,y=c.startIndex,d=c.endIndex,O=Math.max(n,this.props.x),b=Ii(Ii({},F(this.props,!1)),{},{x:O,y:l,width:s,height:f}),x=v||"Min value: ".concat((a=m[y])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=m[d])===null||o===void 0?void 0:o.name);return P.createElement(Y,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(h){["ArrowLeft","ArrowRight"].includes(h.key)&&(h.preventDefault(),h.stopPropagation(),u.handleTravellerMoveKeyboard(h.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(p,b))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,c=a.stroke,l=a.travellerWidth,s=Math.min(n,i)+l,f=Math.max(Math.abs(i-n)-l,0);return P.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:s,y:o,width:f,height:u})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,u=n.height,c=n.travellerWidth,l=n.stroke,s=this.state,f=s.startX,p=s.endX,v=5,m={pointerEvents:"none",fill:l};return P.createElement(Y,{className:"recharts-brush-texts"},P.createElement(ht,Fn({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,p)-v,y:o+u/2},m),this.getTextOfTick(i)),P.createElement(ht,Fn({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,p)+c+v,y:o+u/2},m),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,u=n.x,c=n.y,l=n.width,s=n.height,f=n.alwaysShowText,p=this.state,v=p.startX,m=p.endX,y=p.isTextActive,d=p.isSlideMoving,O=p.isTravellerMoving,b=p.isTravellerFocused;if(!i||!i.length||!D(u)||!D(c)||!D(l)||!D(s)||l<=0||s<=0)return null;var x=U("recharts-brush",a),w=P.Children.count(o)===1,h=vb("userSelect","none");return P.createElement(Y,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:h},this.renderBackground(),w&&this.renderPanorama(),this.renderSlide(v,m),this.renderTravellerLayer(v,"startX"),this.renderTravellerLayer(m,"endX"),(y||d||O||b||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,c=n.stroke,l=Math.floor(a+u/2)-1;return P.createElement(P.Fragment,null,P.createElement("rect",{x:i,y:a,width:o,height:u,fill:c,stroke:"none"}),P.createElement("line",{x1:i+1,y1:l,x2:i+o-1,y2:l,fill:"none",stroke:"#fff"}),P.createElement("line",{x1:i+1,y1:l+2,x2:i+o-1,y2:l+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return P.isValidElement(n)?a=P.cloneElement(n,i):G(n)?a=n(i):a=e.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,u=n.x,c=n.travellerWidth,l=n.updateId,s=n.startIndex,f=n.endIndex;if(a!==i.prevData||l!==i.prevUpdateId)return Ii({prevData:a,prevTravellerWidth:c,prevUpdateId:l,prevX:u,prevWidth:o},a&&a.length?wb({data:a,width:o,x:u,travellerWidth:c,startIndex:s,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([u,u+o-c]);var p=i.scale.domain().map(function(v){return i.scale(v)});return{prevData:a,prevTravellerWidth:c,prevUpdateId:l,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:p}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,u=a-1;u-o>1;){var c=Math.floor((o+u)/2);n[c]>i?u=c:o=c}return i>=n[u]?u:o}}])}(B.PureComponent);we(Xt,"displayName","Brush");we(Xt,"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 Re=function(e,r){var n=e.alwaysShow,i=e.ifOverflow;return n&&(i="extendDomain"),i===r},Ab=["x","y"];function Jr(t){"@babel/helpers - typeof";return Jr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jr(t)}function Ea(){return Ea=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ea.apply(this,arguments)}function gc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Or(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?gc(Object(r),!0).forEach(function(n){Pb(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Pb(t,e,r){return e=Sb(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Sb(t){var e=jb(t,"string");return Jr(e)=="symbol"?e:e+""}function jb(t,e){if(Jr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Jr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Eb(t,e){if(t==null)return{};var r=$b(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function $b(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function _b(t,e){var r=t.x,n=t.y,i=Eb(t,Ab),a="".concat(r),o=parseInt(a,10),u="".concat(n),c=parseInt(u,10),l="".concat(e.height||i.height),s=parseInt(l,10),f="".concat(e.width||i.width),p=parseInt(f,10);return Or(Or(Or(Or(Or({},e),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:s,width:p,name:e.name,radius:e.radius})}function bc(t){return P.createElement(rs,Ea({shapeType:"rectangle",propTransformer:_b,activeClassName:"recharts-active-bar"},t))}var Tb=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof e=="number")return e;var a=typeof n=="number";return a?e(n,i):(a||mt(),r)}},Ib=["value","background"],cs;function qt(t){"@babel/helpers - typeof";return qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qt(t)}function kb(t,e){if(t==null)return{};var r=Cb(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Cb(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function Vn(){return Vn=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Vn.apply(this,arguments)}function Oc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ue(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Oc(Object(r),!0).forEach(function(n){Je(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Oc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Mb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xc(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ss(n.key),n)}}function Db(t,e,r){return e&&xc(t.prototype,e),r&&xc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Nb(t,e,r){return e=Gn(e),Bb(t,ls()?Reflect.construct(e,r||[],Gn(t).constructor):e.apply(t,r))}function Bb(t,e){if(e&&(qt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rb(t)}function Rb(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ls(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ls=function(){return!!t})()}function Gn(t){return Gn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gn(t)}function Lb(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$a(t,e)}function $a(t,e){return $a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$a(t,e)}function Je(t,e,r){return e=ss(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ss(t){var e=zb(t,"string");return qt(e)=="symbol"?e:e+""}function zb(t,e){if(qt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(qt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var lr=function(t){function e(){var r;Mb(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Nb(this,e,[].concat(i)),Je(r,"state",{isAnimationFinished:!1}),Je(r,"id",ar("recharts-bar-")),Je(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Je(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return Lb(e,t),Db(e,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,c=a.activeIndex,l=a.activeBar,s=F(this.props,!1);return n&&n.map(function(f,p){var v=p===c,m=v?l:o,y=ue(ue(ue({},s),f),{},{isActive:v,option:m,index:p,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return P.createElement(Y,Vn({className:"recharts-bar-rectangle"},vt(i.props,f,p),{key:"rectangle-".concat(f==null?void 0:f.x,"-").concat(f==null?void 0:f.y,"-").concat(f==null?void 0:f.value)}),P.createElement(bc,y))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,c=i.animationBegin,l=i.animationDuration,s=i.animationEasing,f=i.animationId,p=this.state.prevData;return P.createElement(ze,{begin:c,duration:l,isActive:u,easing:s,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(v){var m=v.t,y=a.map(function(d,O){var b=p&&p[O];if(b){var x=xe(b.x,d.x),w=xe(b.y,d.y),h=xe(b.width,d.width),g=xe(b.height,d.height);return ue(ue({},d),{},{x:x(m),y:w(m),width:h(m),height:g(m)})}if(o==="horizontal"){var A=xe(0,d.height),S=A(m);return ue(ue({},d),{},{y:d.y+d.height-S,height:S})}var j=xe(0,d.width),_=j(m);return ue(ue({},d),{},{width:_})});return P.createElement(Y,null,n.renderRectanglesStatically(y))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!Dt(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,u=i.activeIndex,c=F(this.props.background,!1);return a.map(function(l,s){l.value;var f=l.background,p=kb(l,Ib);if(!f)return null;var v=ue(ue(ue(ue(ue({},p),{},{fill:"#eee"},f),c),vt(n.props,l,s)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:s,className:"recharts-bar-background-rectangle"});return P.createElement(bc,Vn({key:"background-bar-".concat(s),option:n.props.background,isActive:s===u},v))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,u=a.xAxis,c=a.yAxis,l=a.layout,s=a.children,f=_e(s,oi);if(!f)return null;var p=l==="vertical"?o[0].height/2:o[0].width/2,v=function(d,O){var b=Array.isArray(d.value)?d.value[1]:d.value;return{x:d.x,y:d.y,value:b,errorVal:se(d,O)}},m={clipPath:n?"url(#clipPath-".concat(i,")"):null};return P.createElement(Y,m,f.map(function(y){return P.cloneElement(y,{key:"error-bar-".concat(i,"-").concat(y.props.dataKey),data:o,xAxis:u,yAxis:c,layout:l,offset:p,dataPointFormatter:v})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,c=n.yAxis,l=n.left,s=n.top,f=n.width,p=n.height,v=n.isAnimationActive,m=n.background,y=n.id;if(i||!a||!a.length)return null;var d=this.state.isAnimationFinished,O=U("recharts-bar",o),b=u&&u.allowDataOverflow,x=c&&c.allowDataOverflow,w=b||x,h=H(y)?this.id:y;return P.createElement(Y,{className:O},b||x?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(h)},P.createElement("rect",{x:b?l:l-f/2,y:x?s:s-p/2,width:b?f:f*2,height:x?p:p*2}))):null,P.createElement(Y,{className:"recharts-bar-rectangles",clipPath:w?"url(#clipPath-".concat(h,")"):null},m?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(w,h),(!v||d)&&qe.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])}(B.PureComponent);cs=lr;Je(lr,"displayName","Bar");Je(lr,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Be.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Je(lr,"getComposedData",function(t){var e=t.props,r=t.item,n=t.barPosition,i=t.bandSize,a=t.xAxis,o=t.yAxis,u=t.xAxisTicks,c=t.yAxisTicks,l=t.stackedData,s=t.dataStartIndex,f=t.displayedData,p=t.offset,v=uh(n,r);if(!v)return null;var m=e.layout,y=r.type.defaultProps,d=y!==void 0?ue(ue({},y),r.props):r.props,O=d.dataKey,b=d.children,x=d.minPointSize,w=m==="horizontal"?o:a,h=l?w.scale.domain():null,g=vh({numericAxis:w}),A=_e(b,Ja),S=f.map(function(j,_){var E,$,k,C,I,M;l?E=ch(l[s+_],h):(E=se(j,O),Array.isArray(E)||(E=[g,E]));var N=Tb(x,cs.defaultProps.minPointSize)(E[1],_);if(m==="horizontal"){var R,W=[o.scale(E[0]),o.scale(E[1])],K=W[0],X=W[1];$=pu({axis:a,ticks:u,bandSize:i,offset:v.offset,entry:j,index:_}),k=(R=X??K)!==null&&R!==void 0?R:void 0,C=v.size;var L=K-X;if(I=Number.isNaN(L)?0:L,M={x:$,y:o.y,width:C,height:o.height},Math.abs(N)>0&&Math.abs(I)<Math.abs(N)){var q=be(I||N)*(Math.abs(N)-Math.abs(I));k-=q,I+=q}}else{var ae=[a.scale(E[0]),a.scale(E[1])],pe=ae[0],Ie=ae[1];if($=pe,k=pu({axis:o,ticks:c,bandSize:i,offset:v.offset,entry:j,index:_}),C=Ie-pe,I=v.size,M={x:a.x,y:k,width:a.width,height:I},Math.abs(N)>0&&Math.abs(C)<Math.abs(N)){var fr=be(C||N)*(Math.abs(N)-Math.abs(C));C+=fr}}return ue(ue(ue({},j),{},{x:$,y:k,width:C,height:I,value:l?E:E[1],payload:j,background:M},A&&A[_]&&A[_].props),{},{tooltipPayload:[Bl(r,j)],tooltipPosition:{x:$+C/2,y:k+I/2}})});return ue({data:S,layout:m},p)});function Qr(t){"@babel/helpers - typeof";return Qr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qr(t)}function Wb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wc(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,fs(n.key),n)}}function Fb(t,e,r){return e&&wc(t.prototype,e),r&&wc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ac(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ce(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ac(Object(r),!0).forEach(function(n){vi(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ac(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function vi(t,e,r){return e=fs(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fs(t){var e=Kb(t,"string");return Qr(e)=="symbol"?e:e+""}function Kb(t,e){if(Qr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Qr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ps=function(e,r,n,i,a){var o=e.width,u=e.height,c=e.layout,l=e.children,s=Object.keys(r),f={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:u-n.bottom,bottomMirror:u-n.bottom},p=!!Ae(l,lr);return s.reduce(function(v,m){var y=r[m],d=y.orientation,O=y.domain,b=y.padding,x=b===void 0?{}:b,w=y.mirror,h=y.reversed,g="".concat(d).concat(w?"Mirror":""),A,S,j,_,E;if(y.type==="number"&&(y.padding==="gap"||y.padding==="no-gap")){var $=O[1]-O[0],k=1/0,C=y.categoricalDomain.sort();if(C.forEach(function(ae,pe){pe>0&&(k=Math.min((ae||0)-(C[pe-1]||0),k))}),Number.isFinite(k)){var I=k/$,M=y.layout==="vertical"?n.height:n.width;if(y.padding==="gap"&&(A=I*M/2),y.padding==="no-gap"){var N=Oe(e.barCategoryGap,I*M),R=I*M/2;A=R-N-(R-N)/M*N}}}i==="xAxis"?S=[n.left+(x.left||0)+(A||0),n.left+n.width-(x.right||0)-(A||0)]:i==="yAxis"?S=c==="horizontal"?[n.top+n.height-(x.bottom||0),n.top+(x.top||0)]:[n.top+(x.top||0)+(A||0),n.top+n.height-(x.bottom||0)-(A||0)]:S=y.range,h&&(S=[S[1],S[0]]);var W=Cl(y,a,p),K=W.scale,X=W.realScaleType;K.domain(O).range(S),Ml(K);var L=Dl(K,Ce(Ce({},y),{},{realScaleType:X}));i==="xAxis"?(E=d==="top"&&!w||d==="bottom"&&w,j=n.left,_=f[g]-E*y.height):i==="yAxis"&&(E=d==="left"&&!w||d==="right"&&w,j=f[g]-E*y.width,_=n.top);var q=Ce(Ce(Ce({},y),L),{},{realScaleType:X,x:j,y:_,scale:K,width:i==="xAxis"?n.width:y.width,height:i==="yAxis"?n.height:y.height});return q.bandSize=Tn(q,L),!y.hide&&i==="xAxis"?f[g]+=(E?-1:1)*q.height:y.hide||(f[g]+=(E?-1:1)*q.width),Ce(Ce({},v),{},vi({},m,q))},{})},ds=function(e,r){var n=e.x,i=e.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},Vb=function(e){var r=e.x1,n=e.y1,i=e.x2,a=e.y2;return ds({x:r,y:n},{x:i,y:a})},vs=function(){function t(e){Wb(this,t),this.scale=e}return Fb(t,[{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(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(r)+u}default:return this.scale(r)}if(i){var c=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+c}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new t(r)}}])}();vi(vs,"EPS",1e-4);var no=function(e){var r=Object.keys(e).reduce(function(n,i){return Ce(Ce({},n),{},vi({},i,vs.create(e[i])))},{});return Ce(Ce({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return nf(i,function(c,l){return r[l].apply(c,{bandAware:o,position:u})})},isInRange:function(i){return Uc(i,function(a,o){return r[o].isInRange(a)})}})};function Gb(t){return(t%180+180)%180}var Xb=function(e){var r=e.width,n=e.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=Gb(i),o=a*Math.PI/180,u=Math.atan(n/r),c=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(c)},qb=af(function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}},function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}),io=B.createContext(void 0),ao=B.createContext(void 0),hs=B.createContext(void 0),ys=B.createContext({}),ms=B.createContext(void 0),gs=B.createContext(0),bs=B.createContext(0),Pc=function(e){var r=e.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=e.clipPathId,u=e.children,c=e.width,l=e.height,s=qb(a);return P.createElement(io.Provider,{value:n},P.createElement(ao.Provider,{value:i},P.createElement(ys.Provider,{value:a},P.createElement(hs.Provider,{value:s},P.createElement(ms.Provider,{value:o},P.createElement(gs.Provider,{value:l},P.createElement(bs.Provider,{value:c},u)))))))},Hb=function(){return B.useContext(ms)},Os=function(e){var r=B.useContext(io);r==null&&mt();var n=r[e];return n==null&&mt(),n},Ub=function(){var e=B.useContext(io);return Ye(e)},Yb=function(){var e=B.useContext(ao),r=of(e,function(n){return Uc(n.domain,Number.isFinite)});return r||Ye(e)},xs=function(e){var r=B.useContext(ao);r==null&&mt();var n=r[e];return n==null&&mt(),n},Zb=function(){var e=B.useContext(hs);return e},Jb=function(){return B.useContext(ys)},oo=function(){return B.useContext(bs)},uo=function(){return B.useContext(gs)};function Ht(t){"@babel/helpers - typeof";return Ht=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ht(t)}function Qb(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function eO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,As(n.key),n)}}function tO(t,e,r){return e&&eO(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function rO(t,e,r){return e=Xn(e),nO(t,ws()?Reflect.construct(e,r||[],Xn(t).constructor):e.apply(t,r))}function nO(t,e){if(e&&(Ht(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iO(t)}function iO(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ws(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ws=function(){return!!t})()}function Xn(t){return Xn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xn(t)}function aO(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_a(t,e)}function _a(t,e){return _a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},_a(t,e)}function Sc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function jc(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Sc(Object(r),!0).forEach(function(n){co(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Sc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function co(t,e,r){return e=As(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function As(t){var e=oO(t,"string");return Ht(e)=="symbol"?e:e+""}function oO(t,e){if(Ht(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Ht(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function uO(t,e){return fO(t)||sO(t,e)||lO(t,e)||cO()}function cO(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lO(t,e){if(t){if(typeof t=="string")return Ec(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ec(t,e)}}function Ec(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function sO(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,l=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(s){l=!0,i=s}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function fO(t){if(Array.isArray(t))return t}function Ta(){return Ta=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ta.apply(this,arguments)}var pO=function(e,r){var n;return P.isValidElement(e)?n=P.cloneElement(e,r):G(e)?n=e(r):n=P.createElement("line",Ta({},r,{className:"recharts-reference-line-line"})),n},dO=function(e,r,n,i,a,o,u,c,l){var s=a.x,f=a.y,p=a.width,v=a.height;if(n){var m=l.y,y=e.y.apply(m,{position:o});if(Re(l,"discard")&&!e.y.isInRange(y))return null;var d=[{x:s+p,y},{x:s,y}];return c==="left"?d.reverse():d}if(r){var O=l.x,b=e.x.apply(O,{position:o});if(Re(l,"discard")&&!e.x.isInRange(b))return null;var x=[{x:b,y:f+v},{x:b,y:f}];return u==="top"?x.reverse():x}if(i){var w=l.segment,h=w.map(function(g){return e.apply(g,{position:o})});return Re(l,"discard")&&uf(h,function(g){return!e.isInRange(g)})?null:h}return null};function vO(t){var e=t.x,r=t.y,n=t.segment,i=t.xAxisId,a=t.yAxisId,o=t.shape,u=t.className,c=t.alwaysShow,l=Hb(),s=Os(i),f=xs(a),p=Zb();if(!l||!p)return null;Me(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var v=no({x:s.scale,y:f.scale}),m=fe(e),y=fe(r),d=n&&n.length===2,O=dO(v,m,y,d,p,t.position,s.orientation,f.orientation,t);if(!O)return null;var b=uO(O,2),x=b[0],w=x.x,h=x.y,g=b[1],A=g.x,S=g.y,j=Re(t,"hidden")?"url(#".concat(l,")"):void 0,_=jc(jc({clipPath:j},F(t,!0)),{},{x1:w,y1:h,x2:A,y2:S});return P.createElement(Y,{className:U("recharts-reference-line",u)},pO(o,_),ve.renderCallByParent(t,Vb({x1:w,y1:h,x2:A,y2:S})))}var lo=function(t){function e(){return Qb(this,e),rO(this,e,arguments)}return aO(e,t),tO(e,[{key:"render",value:function(){return P.createElement(vO,this.props)}}])}(P.Component);co(lo,"displayName","ReferenceLine");co(lo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Ia(){return Ia=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ia.apply(this,arguments)}function Ut(t){"@babel/helpers - typeof";return Ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ut(t)}function $c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function _c(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?$c(Object(r),!0).forEach(function(n){hi(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$c(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function hO(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ss(n.key),n)}}function mO(t,e,r){return e&&yO(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function gO(t,e,r){return e=qn(e),bO(t,Ps()?Reflect.construct(e,r||[],qn(t).constructor):e.apply(t,r))}function bO(t,e){if(e&&(Ut(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return OO(t)}function OO(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ps(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ps=function(){return!!t})()}function qn(t){return qn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qn(t)}function xO(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ka(t,e)}function ka(t,e){return ka=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ka(t,e)}function hi(t,e,r){return e=Ss(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ss(t){var e=wO(t,"string");return Ut(e)=="symbol"?e:e+""}function wO(t,e){if(Ut(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Ut(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var AO=function(e){var r=e.x,n=e.y,i=e.xAxis,a=e.yAxis,o=no({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return Re(e,"discard")&&!o.isInRange(u)?null:u},yi=function(t){function e(){return hO(this,e),gO(this,e,arguments)}return xO(e,t),mO(e,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,u=n.alwaysShow,c=n.clipPathId,l=fe(i),s=fe(a);if(Me(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!l||!s)return null;var f=AO(this.props);if(!f)return null;var p=f.x,v=f.y,m=this.props,y=m.shape,d=m.className,O=Re(this.props,"hidden")?"url(#".concat(c,")"):void 0,b=_c(_c({clipPath:O},F(this.props,!0)),{},{cx:p,cy:v});return P.createElement(Y,{className:U("recharts-reference-dot",d)},e.renderDot(y,b),ve.renderCallByParent(this.props,{x:p-o,y:v-o,width:2*o,height:2*o}))}}])}(P.Component);hi(yi,"displayName","ReferenceDot");hi(yi,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});hi(yi,"renderDot",function(t,e){var r;return P.isValidElement(t)?r=P.cloneElement(t,e):G(t)?r=t(e):r=P.createElement(ui,Ia({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"})),r});function Ca(){return Ca=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ca.apply(this,arguments)}function Yt(t){"@babel/helpers - typeof";return Yt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yt(t)}function Tc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ic(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Tc(Object(r),!0).forEach(function(n){mi(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Tc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function PO(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function SO(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Es(n.key),n)}}function jO(t,e,r){return e&&SO(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function EO(t,e,r){return e=Hn(e),$O(t,js()?Reflect.construct(e,r||[],Hn(t).constructor):e.apply(t,r))}function $O(t,e){if(e&&(Yt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _O(t)}function _O(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function js(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(js=function(){return!!t})()}function Hn(t){return Hn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hn(t)}function TO(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ma(t,e)}function Ma(t,e){return Ma=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ma(t,e)}function mi(t,e,r){return e=Es(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Es(t){var e=IO(t,"string");return Yt(e)=="symbol"?e:e+""}function IO(t,e){if(Yt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Yt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var kO=function(e,r,n,i,a){var o=a.x1,u=a.x2,c=a.y1,l=a.y2,s=a.xAxis,f=a.yAxis;if(!s||!f)return null;var p=no({x:s.scale,y:f.scale}),v={x:e?p.x.apply(o,{position:"start"}):p.x.rangeMin,y:n?p.y.apply(c,{position:"start"}):p.y.rangeMin},m={x:r?p.x.apply(u,{position:"end"}):p.x.rangeMax,y:i?p.y.apply(l,{position:"end"}):p.y.rangeMax};return Re(a,"discard")&&(!p.isInRange(v)||!p.isInRange(m))?null:ds(v,m)},gi=function(t){function e(){return PO(this,e),EO(this,e,arguments)}return TO(e,t),jO(e,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,u=n.y2,c=n.className,l=n.alwaysShow,s=n.clipPathId;Me(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=fe(i),p=fe(a),v=fe(o),m=fe(u),y=this.props.shape;if(!f&&!p&&!v&&!m&&!y)return null;var d=kO(f,p,v,m,this.props);if(!d&&!y)return null;var O=Re(this.props,"hidden")?"url(#".concat(s,")"):void 0;return P.createElement(Y,{className:U("recharts-reference-area",c)},e.renderRect(y,Ic(Ic({clipPath:O},F(this.props,!0)),d)),ve.renderCallByParent(this.props,d))}}])}(P.Component);mi(gi,"displayName","ReferenceArea");mi(gi,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});mi(gi,"renderRect",function(t,e){var r;return P.isValidElement(t)?r=P.cloneElement(t,e):G(t)?r=t(e):r=P.createElement(ro,Ca({},e,{className:"recharts-reference-area-rect"})),r});function $s(t,e,r){if(e<1)return[];if(e===1&&r===void 0)return t;for(var n=[],i=0;i<t.length;i+=e)n.push(t[i]);return n}function CO(t,e,r){var n={width:t.width+e.width,height:t.height+e.height};return Xb(n,r)}function MO(t,e,r){var n=r==="width",i=t.x,a=t.y,o=t.width,u=t.height;return e===1?{start:n?i:a,end:n?i+o:a+u}:{start:n?i+o:a+u,end:n?i:a}}function Un(t,e,r,n,i){if(t*e<t*n||t*e>t*i)return!1;var a=r();return t*(e-t*a/2-n)>=0&&t*(e+t*a/2-i)<=0}function DO(t,e){return $s(t,e+1)}function NO(t,e,r,n,i){for(var a=(n||[]).slice(),o=e.start,u=e.end,c=0,l=1,s=o,f=function(){var m=n==null?void 0:n[c];if(m===void 0)return{v:$s(n,l)};var y=c,d,O=function(){return d===void 0&&(d=r(m,y)),d},b=m.coordinate,x=c===0||Un(t,b,O,s,u);x||(c=0,s=o,l+=1),x&&(s=b+t*(O()/2+i),c+=l)},p;l<=a.length;)if(p=f(),p)return p.v;return[]}function en(t){"@babel/helpers - typeof";return en=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},en(t)}function kc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ye(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?kc(Object(r),!0).forEach(function(n){BO(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function BO(t,e,r){return e=RO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function RO(t){var e=LO(t,"string");return en(e)=="symbol"?e:e+""}function LO(t,e){if(en(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(en(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function zO(t,e,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=e.start,c=e.end,l=function(p){var v=a[p],m,y=function(){return m===void 0&&(m=r(v,p)),m};if(p===o-1){var d=t*(v.coordinate+t*y()/2-c);a[p]=v=ye(ye({},v),{},{tickCoord:d>0?v.coordinate-d*t:v.coordinate})}else a[p]=v=ye(ye({},v),{},{tickCoord:v.coordinate});var O=Un(t,v.tickCoord,y,u,c);O&&(c=v.tickCoord-t*(y()/2+i),a[p]=ye(ye({},v),{},{isShow:!0}))},s=o-1;s>=0;s--)l(s);return a}function WO(t,e,r,n,i,a){var o=(n||[]).slice(),u=o.length,c=e.start,l=e.end;if(a){var s=n[u-1],f=r(s,u-1),p=t*(s.coordinate+t*f/2-l);o[u-1]=s=ye(ye({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate});var v=Un(t,s.tickCoord,function(){return f},c,l);v&&(l=s.tickCoord-t*(f/2+i),o[u-1]=ye(ye({},s),{},{isShow:!0}))}for(var m=a?u-1:u,y=function(b){var x=o[b],w,h=function(){return w===void 0&&(w=r(x,b)),w};if(b===0){var g=t*(x.coordinate-t*h()/2-c);o[b]=x=ye(ye({},x),{},{tickCoord:g<0?x.coordinate-g*t:x.coordinate})}else o[b]=x=ye(ye({},x),{},{tickCoord:x.coordinate});var A=Un(t,x.tickCoord,h,c,l);A&&(c=x.tickCoord+t*(h()/2+i),o[b]=ye(ye({},x),{},{isShow:!0}))},d=0;d<m;d++)y(d);return o}function so(t,e,r){var n=t.tick,i=t.ticks,a=t.viewBox,o=t.minTickGap,u=t.orientation,c=t.interval,l=t.tickFormatter,s=t.unit,f=t.angle;if(!i||!i.length||!n)return[];if(D(c)||Be.isSsr)return DO(i,typeof c=="number"&&D(c)?c:0);var p=[],v=u==="top"||u==="bottom"?"width":"height",m=s&&v==="width"?wr(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},y=function(x,w){var h=G(l)?l(x.value,w):x.value;return v==="width"?CO(wr(h,{fontSize:e,letterSpacing:r}),m,f):wr(h,{fontSize:e,letterSpacing:r})[v]},d=i.length>=2?be(i[1].coordinate-i[0].coordinate):1,O=MO(a,d,v);return c==="equidistantPreserveStart"?NO(d,O,y,i,o):(c==="preserveStart"||c==="preserveStartEnd"?p=WO(d,O,y,i,o,c==="preserveStartEnd"):p=zO(d,O,y,i,o),p.filter(function(b){return b.isShow}))}var FO=["viewBox"],KO=["viewBox"],VO=["ticks"];function Zt(t){"@babel/helpers - typeof";return Zt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zt(t)}function _t(){return _t=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},_t.apply(this,arguments)}function Cc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function ge(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Cc(Object(r),!0).forEach(function(n){fo(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Cc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ki(t,e){if(t==null)return{};var r=GO(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function GO(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function XO(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Mc(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ts(n.key),n)}}function qO(t,e,r){return e&&Mc(t.prototype,e),r&&Mc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function HO(t,e,r){return e=Yn(e),UO(t,_s()?Reflect.construct(e,r||[],Yn(t).constructor):e.apply(t,r))}function UO(t,e){if(e&&(Zt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YO(t)}function YO(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_s=function(){return!!t})()}function Yn(t){return Yn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yn(t)}function ZO(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Da(t,e)}function Da(t,e){return Da=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Da(t,e)}function fo(t,e,r){return e=Ts(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ts(t){var e=JO(t,"string");return Zt(e)=="symbol"?e:e+""}function JO(t,e){if(Zt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Zt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var sr=function(t){function e(r){var n;return XO(this,e),n=HO(this,e,[r]),n.state={fontSize:"",letterSpacing:""},n}return ZO(e,t),qO(e,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=ki(n,FO),u=this.props,c=u.viewBox,l=ki(u,KO);return!It(a,c)||!It(o,l)||!It(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,u=i.width,c=i.height,l=i.orientation,s=i.tickSize,f=i.mirror,p=i.tickMargin,v,m,y,d,O,b,x=f?-1:1,w=n.tickSize||s,h=D(n.tickCoord)?n.tickCoord:n.coordinate;switch(l){case"top":v=m=n.coordinate,d=o+ +!f*c,y=d-x*w,b=y-x*p,O=h;break;case"left":y=d=n.coordinate,m=a+ +!f*u,v=m-x*w,O=v-x*p,b=h;break;case"right":y=d=n.coordinate,m=a+ +f*u,v=m+x*w,O=v+x*p,b=h;break;default:v=m=n.coordinate,d=o+ +f*c,y=d+x*w,b=y+x*p,O=h;break}return{line:{x1:v,y1:y,x2:m,y2:d},tick:{x:O,y:b}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,c=n.orientation,l=n.mirror,s=n.axisLine,f=ge(ge(ge({},F(this.props,!1)),F(s,!1)),{},{fill:"none"});if(c==="top"||c==="bottom"){var p=+(c==="top"&&!l||c==="bottom"&&l);f=ge(ge({},f),{},{x1:i,y1:a+p*u,x2:i+o,y2:a+p*u})}else{var v=+(c==="left"&&!l||c==="right"&&l);f=ge(ge({},f),{},{x1:i+v*o,y1:a,x2:i+v*o,y2:a+u})}return P.createElement("line",_t({},f,{className:U("recharts-cartesian-axis-line",Se(s,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,c=u.tickLine,l=u.stroke,s=u.tick,f=u.tickFormatter,p=u.unit,v=so(ge(ge({},this.props),{},{ticks:n}),i,a),m=this.getTickTextAnchor(),y=this.getTickVerticalAnchor(),d=F(this.props,!1),O=F(s,!1),b=ge(ge({},d),{},{fill:"none"},F(c,!1)),x=v.map(function(w,h){var g=o.getTickLineCoord(w),A=g.line,S=g.tick,j=ge(ge(ge(ge({textAnchor:m,verticalAnchor:y},d),{},{stroke:"none",fill:l},O),S),{},{index:h,payload:w,visibleTicksCount:v.length,tickFormatter:f});return P.createElement(Y,_t({className:"recharts-cartesian-axis-tick",key:"tick-".concat(w.value,"-").concat(w.coordinate,"-").concat(w.tickCoord)},vt(o.props,w,h)),c&&P.createElement("line",_t({},b,A,{className:U("recharts-cartesian-axis-tick-line",Se(c,"className"))})),s&&e.renderTickItem(s,j,"".concat(G(f)?f(w.value,h):w.value).concat(p||"")))});return P.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,u=i.height,c=i.ticksGenerator,l=i.className,s=i.hide;if(s)return null;var f=this.props,p=f.ticks,v=ki(f,VO),m=p;return G(c)&&(m=p&&p.length>0?c(this.props):c(v)),o<=0||u<=0||!m||!m.length?null:P.createElement(Y,{className:U("recharts-cartesian-axis",l),ref:function(d){n.layerReference=d}},a&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),ve.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return P.isValidElement(n)?o=P.cloneElement(n,i):G(n)?o=n(i):o=P.createElement(ht,_t({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(B.Component);fo(sr,"displayName","CartesianAxis");fo(sr,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var QO=["x1","y1","x2","y2","key"],e0=["offset"];function gt(t){"@babel/helpers - typeof";return gt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gt(t)}function Dc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function me(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Dc(Object(r),!0).forEach(function(n){t0(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Dc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function t0(t,e,r){return e=r0(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function r0(t){var e=n0(t,"string");return gt(e)=="symbol"?e:e+""}function n0(t,e){if(gt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(gt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ft(){return ft=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ft.apply(this,arguments)}function Nc(t,e){if(t==null)return{};var r=i0(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function i0(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}var a0=function(e){var r=e.fill;if(!r||r==="none")return null;var n=e.fillOpacity,i=e.x,a=e.y,o=e.width,u=e.height,c=e.ry;return P.createElement("rect",{x:i,y:a,ry:c,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function Is(t,e){var r;if(P.isValidElement(t))r=P.cloneElement(t,e);else if(G(t))r=t(e);else{var n=e.x1,i=e.y1,a=e.x2,o=e.y2,u=e.key,c=Nc(e,QO),l=F(c,!1);l.offset;var s=Nc(l,e0);r=P.createElement("line",ft({},s,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function o0(t){var e=t.x,r=t.width,n=t.horizontal,i=n===void 0?!0:n,a=t.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,c){var l=me(me({},t),{},{x1:e,y1:u,x2:e+r,y2:u,key:"line-".concat(c),index:c});return Is(i,l)});return P.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function u0(t){var e=t.y,r=t.height,n=t.vertical,i=n===void 0?!0:n,a=t.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,c){var l=me(me({},t),{},{x1:u,y1:e,x2:u,y2:e+r,key:"line-".concat(c),index:c});return Is(i,l)});return P.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function c0(t){var e=t.horizontalFill,r=t.fillOpacity,n=t.x,i=t.y,a=t.width,o=t.height,u=t.horizontalPoints,c=t.horizontal,l=c===void 0?!0:c;if(!l||!e||!e.length)return null;var s=u.map(function(p){return Math.round(p+i-i)}).sort(function(p,v){return p-v});i!==s[0]&&s.unshift(0);var f=s.map(function(p,v){var m=!s[v+1],y=m?i+o-p:s[v+1]-p;if(y<=0)return null;var d=v%e.length;return P.createElement("rect",{key:"react-".concat(v),y:p,x:n,height:y,width:a,stroke:"none",fill:e[d],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return P.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function l0(t){var e=t.vertical,r=e===void 0?!0:e,n=t.verticalFill,i=t.fillOpacity,a=t.x,o=t.y,u=t.width,c=t.height,l=t.verticalPoints;if(!r||!n||!n.length)return null;var s=l.map(function(p){return Math.round(p+a-a)}).sort(function(p,v){return p-v});a!==s[0]&&s.unshift(0);var f=s.map(function(p,v){var m=!s[v+1],y=m?a+u-p:s[v+1]-p;if(y<=0)return null;var d=v%n.length;return P.createElement("rect",{key:"react-".concat(v),x:p,y:o,width:y,height:c,stroke:"none",fill:n[d],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return P.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var s0=function(e,r){var n=e.xAxis,i=e.width,a=e.height,o=e.offset;return kl(so(me(me(me({},sr.defaultProps),n),{},{ticks:Ve(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},f0=function(e,r){var n=e.yAxis,i=e.width,a=e.height,o=e.offset;return kl(so(me(me(me({},sr.defaultProps),n),{},{ticks:Ve(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},St={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function p0(t){var e,r,n,i,a,o,u=oo(),c=uo(),l=Jb(),s=me(me({},t),{},{stroke:(e=t.stroke)!==null&&e!==void 0?e:St.stroke,fill:(r=t.fill)!==null&&r!==void 0?r:St.fill,horizontal:(n=t.horizontal)!==null&&n!==void 0?n:St.horizontal,horizontalFill:(i=t.horizontalFill)!==null&&i!==void 0?i:St.horizontalFill,vertical:(a=t.vertical)!==null&&a!==void 0?a:St.vertical,verticalFill:(o=t.verticalFill)!==null&&o!==void 0?o:St.verticalFill,x:D(t.x)?t.x:l.left,y:D(t.y)?t.y:l.top,width:D(t.width)?t.width:l.width,height:D(t.height)?t.height:l.height}),f=s.x,p=s.y,v=s.width,m=s.height,y=s.syncWithTicks,d=s.horizontalValues,O=s.verticalValues,b=Ub(),x=Yb();if(!D(v)||v<=0||!D(m)||m<=0||!D(f)||f!==+f||!D(p)||p!==+p)return null;var w=s.verticalCoordinatesGenerator||s0,h=s.horizontalCoordinatesGenerator||f0,g=s.horizontalPoints,A=s.verticalPoints;if((!g||!g.length)&&G(h)){var S=d&&d.length,j=h({yAxis:x?me(me({},x),{},{ticks:S?d:x.ticks}):void 0,width:u,height:c,offset:l},S?!0:y);Me(Array.isArray(j),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(gt(j),"]")),Array.isArray(j)&&(g=j)}if((!A||!A.length)&&G(w)){var _=O&&O.length,E=w({xAxis:b?me(me({},b),{},{ticks:_?O:b.ticks}):void 0,width:u,height:c,offset:l},_?!0:y);Me(Array.isArray(E),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(gt(E),"]")),Array.isArray(E)&&(A=E)}return P.createElement("g",{className:"recharts-cartesian-grid"},P.createElement(a0,{fill:s.fill,fillOpacity:s.fillOpacity,x:s.x,y:s.y,width:s.width,height:s.height,ry:s.ry}),P.createElement(o0,ft({},s,{offset:l,horizontalPoints:g,xAxis:b,yAxis:x})),P.createElement(u0,ft({},s,{offset:l,verticalPoints:A,xAxis:b,yAxis:x})),P.createElement(c0,ft({},s,{horizontalPoints:g})),P.createElement(l0,ft({},s,{verticalPoints:A})))}p0.displayName="CartesianGrid";var d0=["layout","type","stroke","connectNulls","isRange","ref"],v0=["key"],ks;function Jt(t){"@babel/helpers - typeof";return Jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jt(t)}function Cs(t,e){if(t==null)return{};var r=h0(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function h0(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function pt(){return pt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},pt.apply(this,arguments)}function Bc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function He(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Bc(Object(r),!0).forEach(function(n){Ne(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Bc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function y0(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rc(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ds(n.key),n)}}function m0(t,e,r){return e&&Rc(t.prototype,e),r&&Rc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function g0(t,e,r){return e=Zn(e),b0(t,Ms()?Reflect.construct(e,r||[],Zn(t).constructor):e.apply(t,r))}function b0(t,e){if(e&&(Jt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return O0(t)}function O0(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ms(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ms=function(){return!!t})()}function Zn(t){return Zn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zn(t)}function x0(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Na(t,e)}function Na(t,e){return Na=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Na(t,e)}function Ne(t,e,r){return e=Ds(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ds(t){var e=w0(t,"string");return Jt(e)=="symbol"?e:e+""}function w0(t,e){if(Jt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Jt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var bt=function(t){function e(){var r;y0(this,e);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=g0(this,e,[].concat(i)),Ne(r,"state",{isAnimationFinished:!0}),Ne(r,"id",ar("recharts-area-")),Ne(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),G(o)&&o()}),Ne(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),G(o)&&o()}),r}return x0(e,t),m0(e,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,u=this.state.isAnimationFinished;if(o&&!u)return null;var c=this.props,l=c.dot,s=c.points,f=c.dataKey,p=F(this.props,!1),v=F(l,!0),m=s.map(function(d,O){var b=He(He(He({key:"dot-".concat(O),r:3},p),v),{},{index:O,cx:d.x,cy:d.y,dataKey:f,value:d.value,payload:d.payload,points:s});return e.renderDotItem(l,b)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return P.createElement(Y,pt({className:"recharts-area-dots"},y),m)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,c=o[0].x,l=o[o.length-1].x,s=n*Math.abs(c-l),f=Ze(o.map(function(p){return p.y||0}));return D(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(Ze(a.map(function(p){return p.y||0})),f)),D(f)?P.createElement("rect",{x:c<l?c:c-s,y:0,width:s,height:Math.floor(f+(u?parseInt("".concat(u),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,c=o[0].y,l=o[o.length-1].y,s=n*Math.abs(c-l),f=Ze(o.map(function(p){return p.x||0}));return D(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(Ze(a.map(function(p){return p.x||0})),f)),D(f)?P.createElement("rect",{x:0,y:c<l?c:c-s,width:f+(u?parseInt("".concat(u),10):1),height:Math.floor(s)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var u=this.props,c=u.layout,l=u.type,s=u.stroke,f=u.connectNulls,p=u.isRange;u.ref;var v=Cs(u,d0);return P.createElement(Y,{clipPath:a?"url(#clipPath-".concat(o,")"):null},P.createElement(Mt,pt({},F(v,!0),{points:n,connectNulls:f,type:l,baseLine:i,layout:c,stroke:"none",className:"recharts-area-area"})),s!=="none"&&P.createElement(Mt,pt({},F(this.props,!1),{className:"recharts-area-curve",layout:c,type:l,connectNulls:f,fill:"none",points:n})),s!=="none"&&p&&P.createElement(Mt,pt({},F(this.props,!1),{className:"recharts-area-curve",layout:c,type:l,connectNulls:f,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,c=o.baseLine,l=o.isAnimationActive,s=o.animationBegin,f=o.animationDuration,p=o.animationEasing,v=o.animationId,m=this.state,y=m.prevPoints,d=m.prevBaseLine;return P.createElement(ze,{begin:s,duration:f,isActive:l,easing:p,from:{t:0},to:{t:1},key:"area-".concat(v),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var b=O.t;if(y){var x=y.length/u.length,w=u.map(function(S,j){var _=Math.floor(j*x);if(y[_]){var E=y[_],$=xe(E.x,S.x),k=xe(E.y,S.y);return He(He({},S),{},{x:$(b),y:k(b)})}return S}),h;if(D(c)&&typeof c=="number"){var g=xe(d,c);h=g(b)}else if(H(c)||nr(c)){var A=xe(d,0);h=A(b)}else h=c.map(function(S,j){var _=Math.floor(j*x);if(d[_]){var E=d[_],$=xe(E.x,S.x),k=xe(E.y,S.y);return He(He({},S),{},{x:$(b),y:k(b)})}return S});return a.renderAreaStatically(w,h,n,i)}return P.createElement(Y,null,P.createElement("defs",null,P.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(b))),P.createElement(Y,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(u,c,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,u=a.baseLine,c=a.isAnimationActive,l=this.state,s=l.prevPoints,f=l.prevBaseLine,p=l.totalLength;return c&&o&&o.length&&(!s&&p>0||!Dt(s,o)||!Dt(f,u))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,u,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,c=i.className,l=i.top,s=i.left,f=i.xAxis,p=i.yAxis,v=i.width,m=i.height,y=i.isAnimationActive,d=i.id;if(a||!u||!u.length)return null;var O=this.state.isAnimationFinished,b=u.length===1,x=U("recharts-area",c),w=f&&f.allowDataOverflow,h=p&&p.allowDataOverflow,g=w||h,A=H(d)?this.id:d,S=(n=F(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},j=S.r,_=j===void 0?3:j,E=S.strokeWidth,$=E===void 0?2:E,k=qf(o)?o:{},C=k.clipDot,I=C===void 0?!0:C,M=_*2+$;return P.createElement(Y,{className:x},w||h?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(A)},P.createElement("rect",{x:w?s:s-v/2,y:h?l:l-m/2,width:w?v:v*2,height:h?m:m*2})),!I&&P.createElement("clipPath",{id:"clipPath-dots-".concat(A)},P.createElement("rect",{x:s-M/2,y:l-M/2,width:v+M,height:m+M}))):null,b?null:this.renderArea(g,A),(o||b)&&this.renderDots(g,I,A),(!y||O)&&qe.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])}(B.PureComponent);ks=bt;Ne(bt,"displayName","Area");Ne(bt,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Be.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Ne(bt,"getBaseValue",function(t,e,r,n){var i=t.layout,a=t.baseValue,o=e.props.baseValue,u=o??a;if(D(u)&&typeof u=="number")return u;var c=i==="horizontal"?n:r,l=c.scale.domain();if(c.type==="number"){var s=Math.max(l[0],l[1]),f=Math.min(l[0],l[1]);return u==="dataMin"?f:u==="dataMax"||s<0?s:Math.max(Math.min(l[0],l[1]),0)}return u==="dataMin"?l[0]:u==="dataMax"?l[1]:l[0]});Ne(bt,"getComposedData",function(t){var e=t.props,r=t.item,n=t.xAxis,i=t.yAxis,a=t.xAxisTicks,o=t.yAxisTicks,u=t.bandSize,c=t.dataKey,l=t.stackedData,s=t.dataStartIndex,f=t.displayedData,p=t.offset,v=e.layout,m=l&&l.length,y=ks.getBaseValue(e,r,n,i),d=v==="horizontal",O=!1,b=f.map(function(w,h){var g;m?g=l[s+h]:(g=se(w,c),Array.isArray(g)?O=!0:g=[y,g]);var A=g[1]==null||m&&se(w,c)==null;return d?{x:fu({axis:n,ticks:a,bandSize:u,entry:w,index:h}),y:A?null:i.scale(g[1]),value:g,payload:w}:{x:A?null:n.scale(g[1]),y:fu({axis:i,ticks:o,bandSize:u,entry:w,index:h}),value:g,payload:w}}),x;return m||O?x=b.map(function(w){var h=Array.isArray(w.value)?w.value[0]:null;return d?{x:w.x,y:h!=null&&w.y!=null?i.scale(h):null}:{x:h!=null?n.scale(h):null,y:w.y}}):x=d?i.scale(y):n.scale(y),He({points:b,baseLine:x,layout:v,isRange:O},p)});Ne(bt,"renderDotItem",function(t,e){var r;if(P.isValidElement(t))r=P.cloneElement(t,e);else if(G(t))r=t(e);else{var n=U("recharts-area-dot",typeof t!="boolean"?t.className:""),i=e.key,a=Cs(e,v0);r=P.createElement(ui,pt({},a,{key:i,className:n}))}return r});function Qt(t){"@babel/helpers - typeof";return Qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Qt(t)}function A0(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function P0(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Rs(n.key),n)}}function S0(t,e,r){return e&&P0(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function j0(t,e,r){return e=Jn(e),E0(t,Ns()?Reflect.construct(e,r||[],Jn(t).constructor):e.apply(t,r))}function E0(t,e){if(e&&(Qt(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $0(t)}function $0(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ns(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ns=function(){return!!t})()}function Jn(t){return Jn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Jn(t)}function _0(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ba(t,e)}function Ba(t,e){return Ba=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ba(t,e)}function Bs(t,e,r){return e=Rs(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Rs(t){var e=T0(t,"string");return Qt(e)=="symbol"?e:e+""}function T0(t,e){if(Qt(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Qt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ra(){return Ra=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ra.apply(this,arguments)}function I0(t){var e=t.xAxisId,r=oo(),n=uo(),i=Os(e);return i==null?null:P.createElement(sr,Ra({},i,{className:U("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Ve(o,!0)}}))}var bi=function(t){function e(){return A0(this,e),j0(this,e,arguments)}return _0(e,t),S0(e,[{key:"render",value:function(){return P.createElement(I0,this.props)}}])}(P.Component);Bs(bi,"displayName","XAxis");Bs(bi,"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});function er(t){"@babel/helpers - typeof";return er=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},er(t)}function k0(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function C0(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ws(n.key),n)}}function M0(t,e,r){return e&&C0(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function D0(t,e,r){return e=Qn(e),N0(t,Ls()?Reflect.construct(e,r||[],Qn(t).constructor):e.apply(t,r))}function N0(t,e){if(e&&(er(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return B0(t)}function B0(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ls(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ls=function(){return!!t})()}function Qn(t){return Qn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qn(t)}function R0(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&La(t,e)}function La(t,e){return La=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},La(t,e)}function zs(t,e,r){return e=Ws(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ws(t){var e=L0(t,"string");return er(e)=="symbol"?e:e+""}function L0(t,e){if(er(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(er(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function za(){return za=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},za.apply(this,arguments)}var z0=function(e){var r=e.yAxisId,n=oo(),i=uo(),a=xs(r);return a==null?null:P.createElement(sr,za({},a,{className:U("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return Ve(u,!0)}}))},Oi=function(t){function e(){return k0(this,e),D0(this,e,arguments)}return R0(e,t),M0(e,[{key:"render",value:function(){return P.createElement(z0,this.props)}}])}(P.Component);zs(Oi,"displayName","YAxis");zs(Oi,"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});function Lc(t){return V0(t)||K0(t)||F0(t)||W0()}function W0(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function F0(t,e){if(t){if(typeof t=="string")return Wa(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wa(t,e)}}function K0(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function V0(t){if(Array.isArray(t))return Wa(t)}function Wa(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Fa=function(e,r,n,i,a){var o=_e(e,lo),u=_e(e,yi),c=[].concat(Lc(o),Lc(u)),l=_e(e,gi),s="".concat(i,"Id"),f=i[0],p=r;if(c.length&&(p=c.reduce(function(y,d){if(d.props[s]===n&&Re(d.props,"extendDomain")&&D(d.props[f])){var O=d.props[f];return[Math.min(y[0],O),Math.max(y[1],O)]}return y},p)),l.length){var v="".concat(f,"1"),m="".concat(f,"2");p=l.reduce(function(y,d){if(d.props[s]===n&&Re(d.props,"extendDomain")&&D(d.props[v])&&D(d.props[m])){var O=d.props[v],b=d.props[m];return[Math.min(y[0],O,b),Math.max(y[1],O,b)]}return y},p)}return a&&a.length&&(p=a.reduce(function(y,d){return D(d)?[Math.min(y[0],d),Math.max(y[1],d)]:y},p)),p},Ci={exports:{}},zc;function G0(){return zc||(zc=1,function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(c,l,s){this.fn=c,this.context=l,this.once=s||!1}function a(c,l,s,f,p){if(typeof s!="function")throw new TypeError("The listener must be a function");var v=new i(s,f||c,p),m=r?r+l:l;return c._events[m]?c._events[m].fn?c._events[m]=[c._events[m],v]:c._events[m].push(v):(c._events[m]=v,c._eventsCount++),c}function o(c,l){--c._eventsCount===0?c._events=new n:delete c._events[l]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var l=[],s,f;if(this._eventsCount===0)return l;for(f in s=this._events)e.call(s,f)&&l.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(s)):l},u.prototype.listeners=function(l){var s=r?r+l:l,f=this._events[s];if(!f)return[];if(f.fn)return[f.fn];for(var p=0,v=f.length,m=new Array(v);p<v;p++)m[p]=f[p].fn;return m},u.prototype.listenerCount=function(l){var s=r?r+l:l,f=this._events[s];return f?f.fn?1:f.length:0},u.prototype.emit=function(l,s,f,p,v,m){var y=r?r+l:l;if(!this._events[y])return!1;var d=this._events[y],O=arguments.length,b,x;if(d.fn){switch(d.once&&this.removeListener(l,d.fn,void 0,!0),O){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,s),!0;case 3:return d.fn.call(d.context,s,f),!0;case 4:return d.fn.call(d.context,s,f,p),!0;case 5:return d.fn.call(d.context,s,f,p,v),!0;case 6:return d.fn.call(d.context,s,f,p,v,m),!0}for(x=1,b=new Array(O-1);x<O;x++)b[x-1]=arguments[x];d.fn.apply(d.context,b)}else{var w=d.length,h;for(x=0;x<w;x++)switch(d[x].once&&this.removeListener(l,d[x].fn,void 0,!0),O){case 1:d[x].fn.call(d[x].context);break;case 2:d[x].fn.call(d[x].context,s);break;case 3:d[x].fn.call(d[x].context,s,f);break;case 4:d[x].fn.call(d[x].context,s,f,p);break;default:if(!b)for(h=1,b=new Array(O-1);h<O;h++)b[h-1]=arguments[h];d[x].fn.apply(d[x].context,b)}}return!0},u.prototype.on=function(l,s,f){return a(this,l,s,f,!1)},u.prototype.once=function(l,s,f){return a(this,l,s,f,!0)},u.prototype.removeListener=function(l,s,f,p){var v=r?r+l:l;if(!this._events[v])return this;if(!s)return o(this,v),this;var m=this._events[v];if(m.fn)m.fn===s&&(!p||m.once)&&(!f||m.context===f)&&o(this,v);else{for(var y=0,d=[],O=m.length;y<O;y++)(m[y].fn!==s||p&&!m[y].once||f&&m[y].context!==f)&&d.push(m[y]);d.length?this._events[v]=d.length===1?d[0]:d:o(this,v)}return this},u.prototype.removeAllListeners=function(l){var s;return l?(s=r?r+l:l,this._events[s]&&o(this,s)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,t.exports=u}(Ci)),Ci.exports}var X0=G0();const q0=Us(X0);var Mi=new q0,Di="recharts.syncMouseEvents";function tn(t){"@babel/helpers - typeof";return tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tn(t)}function H0(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function U0(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Fs(n.key),n)}}function Y0(t,e,r){return e&&U0(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ni(t,e,r){return e=Fs(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Fs(t){var e=Z0(t,"string");return tn(e)=="symbol"?e:e+""}function Z0(t,e){if(tn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(tn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var J0=function(){function t(){H0(this,t),Ni(this,"activeIndex",0),Ni(this,"coordinateList",[]),Ni(this,"layout","horizontal")}return Y0(t,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,u=o===void 0?null:o,c=r.layout,l=c===void 0?null:c,s=r.offset,f=s===void 0?null:s,p=r.mouseHandlerCallback,v=p===void 0?null:p;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=u??this.container,this.layout=l??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=v??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(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,u=i.height,c=this.coordinateList[this.activeIndex].coordinate,l=((r=window)===null||r===void 0?void 0:r.scrollX)||0,s=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=a+c+l,p=o+this.offset.top+u/2+s;this.mouseHandlerCallback({pageX:f,pageY:p})}}}])}();function Q0(t,e,r){if(r==="number"&&e===!0&&Array.isArray(t)){var n=t==null?void 0:t[0],i=t==null?void 0:t[1];if(n&&i&&D(n)&&D(i))return!0}return!1}function ex(t,e,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:t==="horizontal"?e.x-i:r.left+.5,y:t==="horizontal"?r.top+.5:e.y-i,width:t==="horizontal"?n:r.width-1,height:t==="horizontal"?r.height-1:n}}function Ks(t){var e=t.cx,r=t.cy,n=t.radius,i=t.startAngle,a=t.endAngle,o=re(e,r,n,i),u=re(e,r,n,a);return{points:[o,u],cx:e,cy:r,radius:n,startAngle:i,endAngle:a}}function tx(t,e,r){var n,i,a,o;if(t==="horizontal")n=e.x,a=n,i=r.top,o=r.top+r.height;else if(t==="vertical")i=e.y,o=i,n=r.left,a=r.left+r.width;else if(e.cx!=null&&e.cy!=null)if(t==="centric"){var u=e.cx,c=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.angle,p=re(u,c,l,f),v=re(u,c,s,f);n=p.x,i=p.y,a=v.x,o=v.y}else return Ks(e);return[{x:n,y:i},{x:a,y:o}]}function rn(t){"@babel/helpers - typeof";return rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rn(t)}function Wc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function hn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Wc(Object(r),!0).forEach(function(n){rx(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Wc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function rx(t,e,r){return e=nx(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nx(t){var e=ix(t,"string");return rn(e)=="symbol"?e:e+""}function ix(t,e){if(rn(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(rn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ax(t){var e,r,n=t.element,i=t.tooltipEventType,a=t.isActive,o=t.activeCoordinate,u=t.activePayload,c=t.offset,l=t.activeTooltipIndex,s=t.tooltipAxisBandSize,f=t.layout,p=t.chartName,v=(e=n.props.cursor)!==null&&e!==void 0?e:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!v||!a||!o||p!=="ScatterChart"&&i!=="axis")return null;var m,y=Mt;if(p==="ScatterChart")m=o,y=dg;else if(p==="BarChart")m=ex(f,o,c,s),y=ro;else if(f==="radial"){var d=Ks(o),O=d.cx,b=d.cy,x=d.radius,w=d.startAngle,h=d.endAngle;m={cx:O,cy:b,startAngle:w,endAngle:h,innerRadius:x,outerRadius:x},y=Kl}else m={points:tx(f,o,c)},y=Mt;var g=hn(hn(hn(hn({stroke:"#ccc",pointerEvents:"none"},c),m),F(v,!1)),{},{payload:u,payloadIndex:l,className:U("recharts-tooltip-cursor",v.className)});return B.isValidElement(v)?B.cloneElement(v,g):B.createElement(y,g)}var ox=["item"],ux=["children","className","width","height","style","compact","title","desc"];function tr(t){"@babel/helpers - typeof";return tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tr(t)}function Tt(){return Tt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Tt.apply(this,arguments)}function Fc(t,e){return sx(t)||lx(t,e)||Gs(t,e)||cx()}function cx(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lx(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,i,a,o,u=[],c=!0,l=!1;try{if(a=(r=r.call(t)).next,e!==0)for(;!(c=(n=a.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(s){l=!0,i=s}finally{try{if(!c&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function sx(t){if(Array.isArray(t))return t}function Kc(t,e){if(t==null)return{};var r=fx(t,e),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function fx(t,e){if(t==null)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}function px(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dx(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Xs(n.key),n)}}function vx(t,e,r){return e&&dx(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function hx(t,e,r){return e=ei(e),yx(t,Vs()?Reflect.construct(e,r||[],ei(t).constructor):e.apply(t,r))}function yx(t,e){if(e&&(tr(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mx(t)}function mx(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Vs(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Vs=function(){return!!t})()}function ei(t){return ei=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ei(t)}function gx(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ka(t,e)}function Ka(t,e){return Ka=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ka(t,e)}function rr(t){return xx(t)||Ox(t)||Gs(t)||bx()}function bx(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gs(t,e){if(t){if(typeof t=="string")return Va(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Va(t,e)}}function Ox(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function xx(t){if(Array.isArray(t))return Va(t)}function Va(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Vc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function T(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Vc(Object(r),!0).forEach(function(n){V(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Vc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function V(t,e,r){return e=Xs(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Xs(t){var e=wx(t,"string");return tr(e)=="symbol"?e:e+""}function wx(t,e){if(tr(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(tr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ax={xAxis:["bottom","top"],yAxis:["left","right"]},Px={width:"100%",height:"100%"},qs={x:0,y:0};function yn(t){return t}var Sx=function(e,r){return r==="horizontal"?e.x:r==="vertical"?e.y:r==="centric"?e.angle:e.radius},jx=function(e,r,n,i){var a=r.find(function(s){return s&&s.index===n});if(a){if(e==="horizontal")return{x:a.coordinate,y:i.y};if(e==="vertical")return{x:i.x,y:a.coordinate};if(e==="centric"){var o=a.coordinate,u=i.radius;return T(T(T({},i),re(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var c=a.coordinate,l=i.angle;return T(T(T({},i),re(i.cx,i.cy,c,l)),{},{angle:l,radius:c})}return qs},xi=function(e,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(u,c){var l=c.props.data;return l&&l.length?[].concat(rr(u),rr(l)):u},[]);return o.length>0?o:e&&e.length&&D(i)&&D(a)?e.slice(i,a+1):[]};function Hs(t){return t==="number"?[0,"auto"]:void 0}var Ga=function(e,r,n,i){var a=e.graphicalItems,o=e.tooltipAxis,u=xi(r,e);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(c,l){var s,f=(s=l.props.data)!==null&&s!==void 0?s:r;f&&e.dataStartIndex+e.dataEndIndex!==0&&e.dataEndIndex-e.dataStartIndex>=n&&(f=f.slice(e.dataStartIndex,e.dataEndIndex+1));var p;if(o.dataKey&&!o.allowDuplicatedCategory){var v=f===void 0?u:f;p=On(v,o.dataKey,i)}else p=f&&f[n]||u[n];return p?[].concat(rr(c),[Bl(l,p)]):c},[])},Gc=function(e,r,n,i){var a=i||{x:e.chartX,y:e.chartY},o=Sx(a,n),u=e.orderedTooltipTicks,c=e.tooltipAxis,l=e.tooltipTicks,s=th(o,u,l,c);if(s>=0&&l){var f=l[s]&&l[s].value,p=Ga(e,r,s,f),v=jx(n,u,s,a);return{activeTooltipIndex:s,activeLabel:f,activePayload:p,activeCoordinate:v}}return null},Ex=function(e,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,l=r.dataEndIndex,s=e.layout,f=e.children,p=e.stackOffset,v=Il(s,a);return n.reduce(function(m,y){var d,O=y.type.defaultProps!==void 0?T(T({},y.type.defaultProps),y.props):y.props,b=O.type,x=O.dataKey,w=O.allowDataOverflow,h=O.allowDuplicatedCategory,g=O.scale,A=O.ticks,S=O.includeHidden,j=O[o];if(m[j])return m;var _=xi(e.data,{graphicalItems:i.filter(function(L){var q,ae=o in L.props?L.props[o]:(q=L.type.defaultProps)===null||q===void 0?void 0:q[o];return ae===j}),dataStartIndex:c,dataEndIndex:l}),E=_.length,$,k,C;Q0(O.domain,w,b)&&($=oa(O.domain,null,w),v&&(b==="number"||g!=="auto")&&(C=Ar(_,x,"category")));var I=Hs(b);if(!$||$.length===0){var M,N=(M=O.domain)!==null&&M!==void 0?M:I;if(x){if($=Ar(_,x,b),b==="category"&&v){var R=Rf($);h&&R?(k=$,$=bn(0,E)):h||($=hu(N,$,y).reduce(function(L,q){return L.indexOf(q)>=0?L:[].concat(rr(L),[q])},[]))}else if(b==="category")h?$=$.filter(function(L){return L!==""&&!H(L)}):$=hu(N,$,y).reduce(function(L,q){return L.indexOf(q)>=0||q===""||H(q)?L:[].concat(rr(L),[q])},[]);else if(b==="number"){var W=oh(_,i.filter(function(L){var q,ae,pe=o in L.props?L.props[o]:(q=L.type.defaultProps)===null||q===void 0?void 0:q[o],Ie="hide"in L.props?L.props.hide:(ae=L.type.defaultProps)===null||ae===void 0?void 0:ae.hide;return pe===j&&(S||!Ie)}),x,a,s);W&&($=W)}v&&(b==="number"||g!=="auto")&&(C=Ar(_,x,"category"))}else v?$=bn(0,E):u&&u[j]&&u[j].hasStack&&b==="number"?$=p==="expand"?[0,1]:Nl(u[j].stackGroups,c,l):$=Tl(_,i.filter(function(L){var q=o in L.props?L.props[o]:L.type.defaultProps[o],ae="hide"in L.props?L.props.hide:L.type.defaultProps.hide;return q===j&&(S||!ae)}),b,s,!0);if(b==="number")$=Fa(f,$,j,a,A),N&&($=oa(N,$,w));else if(b==="category"&&N){var K=N,X=$.every(function(L){return K.indexOf(L)>=0});X&&($=K)}}return T(T({},m),{},V({},j,T(T({},O),{},{axisType:a,domain:$,categoricalDomain:C,duplicateDomain:k,originalDomain:(d=O.domain)!==null&&d!==void 0?d:I,isCategorical:v,layout:s})))},{})},$x=function(e,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,c=r.dataStartIndex,l=r.dataEndIndex,s=e.layout,f=e.children,p=xi(e.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:l}),v=p.length,m=Il(s,a),y=-1;return n.reduce(function(d,O){var b=O.type.defaultProps!==void 0?T(T({},O.type.defaultProps),O.props):O.props,x=b[o],w=Hs("number");if(!d[x]){y++;var h;return m?h=bn(0,v):u&&u[x]&&u[x].hasStack?(h=Nl(u[x].stackGroups,c,l),h=Fa(f,h,x,a)):(h=oa(w,Tl(p,n.filter(function(g){var A,S,j=o in g.props?g.props[o]:(A=g.type.defaultProps)===null||A===void 0?void 0:A[o],_="hide"in g.props?g.props.hide:(S=g.type.defaultProps)===null||S===void 0?void 0:S.hide;return j===x&&!_}),"number",s),i.defaultProps.allowDataOverflow),h=Fa(f,h,x,a)),T(T({},d),{},V({},x,T(T({axisType:a},i.defaultProps),{},{hide:!0,orientation:Se(Ax,"".concat(a,".").concat(y%2),null),domain:h,originalDomain:w,isCategorical:m,layout:s})))}return d},{})},_x=function(e,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,c=r.dataStartIndex,l=r.dataEndIndex,s=e.children,f="".concat(i,"Id"),p=_e(s,a),v={};return p&&p.length?v=Ex(e,{axes:p,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:u,dataStartIndex:c,dataEndIndex:l}):o&&o.length&&(v=$x(e,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:u,dataStartIndex:c,dataEndIndex:l})),v},Tx=function(e){var r=Ye(e),n=Ve(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Xa(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Tn(r,n)}},Xc=function(e){var r=e.children,n=e.defaultShowTooltip,i=Ae(r,Xt),a=0,o=0;return e.data&&e.data.length!==0&&(o=e.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},Ix=function(e){return!e||!e.length?!1:e.some(function(r){var n=Ge(r&&r.type);return n&&n.indexOf("Bar")>=0})},qc=function(e){return e==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:e==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:e==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},kx=function(e,r){var n=e.props,i=e.graphicalItems,a=e.xAxisMap,o=a===void 0?{}:a,u=e.yAxisMap,c=u===void 0?{}:u,l=n.width,s=n.height,f=n.children,p=n.margin||{},v=Ae(f,Xt),m=Ae(f,kt),y=Object.keys(c).reduce(function(h,g){var A=c[g],S=A.orientation;return!A.mirror&&!A.hide?T(T({},h),{},V({},S,h[S]+A.width)):h},{left:p.left||0,right:p.right||0}),d=Object.keys(o).reduce(function(h,g){var A=o[g],S=A.orientation;return!A.mirror&&!A.hide?T(T({},h),{},V({},S,Se(h,"".concat(S))+A.height)):h},{top:p.top||0,bottom:p.bottom||0}),O=T(T({},d),y),b=O.bottom;v&&(O.bottom+=v.props.height||Xt.defaultProps.height),m&&r&&(O=ih(O,i,n,r));var x=l-O.left-O.right,w=s-O.top-O.bottom;return T(T({brushBottom:b},O),{},{width:Math.max(x,0),height:Math.max(w,0)})},Cx=function(e,r){if(r==="xAxis")return e[r].width;if(r==="yAxis")return e[r].height},po=function(e){var r=e.chartName,n=e.GraphicalChild,i=e.defaultTooltipEventType,a=i===void 0?"axis":i,o=e.validateTooltipEventTypes,u=o===void 0?["axis"]:o,c=e.axisComponents,l=e.legendContent,s=e.formatAxisMap,f=e.defaultProps,p=function(O,b){var x=b.graphicalItems,w=b.stackGroups,h=b.offset,g=b.updateId,A=b.dataStartIndex,S=b.dataEndIndex,j=O.barSize,_=O.layout,E=O.barGap,$=O.barCategoryGap,k=O.maxBarSize,C=qc(_),I=C.numericAxisName,M=C.cateAxisName,N=Ix(x),R=[];return x.forEach(function(W,K){var X=xi(O.data,{graphicalItems:[W],dataStartIndex:A,dataEndIndex:S}),L=W.type.defaultProps!==void 0?T(T({},W.type.defaultProps),W.props):W.props,q=L.dataKey,ae=L.maxBarSize,pe=L["".concat(I,"Id")],Ie=L["".concat(M,"Id")],fr={},je=c.reduce(function(nt,it){var wi=b["".concat(it.axisType,"Map")],vo=L["".concat(it.axisType,"Id")];wi&&wi[vo]||it.axisType==="zAxis"||mt();var ho=wi[vo];return T(T({},nt),{},V(V({},it.axisType,ho),"".concat(it.axisType,"Ticks"),Ve(ho)))},fr),tt=je[M],an=je["".concat(M,"Ticks")],Ot=w&&w[pe]&&w[pe].hasStack&&hh(W,w[pe].stackGroups),pr=Ge(W.type).indexOf("Bar")>=0,rt=Tn(tt,an),xt=[],dr=N&&rh({barSize:j,stackGroups:w,totalSize:Cx(je,M)});if(pr){var vr,wt,hr=H(ae)?k:ae,At=(vr=(wt=Tn(tt,an,!0))!==null&&wt!==void 0?wt:hr)!==null&&vr!==void 0?vr:0;xt=nh({barGap:E,barCategoryGap:$,bandSize:At!==rt?At:rt,sizeList:dr[Ie],maxBarSize:hr}),At!==rt&&(xt=xt.map(function(nt){return T(T({},nt),{},{position:T(T({},nt.position),{},{offset:nt.position.offset-At/2})})}))}var on=W&&W.type&&W.type.getComposedData;on&&R.push({props:T(T({},on(T(T({},je),{},{displayedData:X,props:O,dataKey:q,item:W,bandSize:rt,barPosition:xt,offset:h,stackedData:Ot,layout:_,dataStartIndex:A,dataEndIndex:S}))),{},V(V(V({key:W.key||"item-".concat(K)},I,je[I]),M,je[M]),"animationId",g)),childIndex:Yf(W,O.children),item:W})}),R},v=function(O,b){var x=O.props,w=O.dataStartIndex,h=O.dataEndIndex,g=O.updateId;if(!jo({props:x}))return null;var A=x.children,S=x.layout,j=x.stackOffset,_=x.data,E=x.reverseStackOrder,$=qc(S),k=$.numericAxisName,C=$.cateAxisName,I=_e(A,n),M=dh(_,I,"".concat(k,"Id"),"".concat(C,"Id"),j,E),N=c.reduce(function(L,q){var ae="".concat(q.axisType,"Map");return T(T({},L),{},V({},ae,_x(x,T(T({},q),{},{graphicalItems:I,stackGroups:q.axisType===k&&M,dataStartIndex:w,dataEndIndex:h}))))},{}),R=kx(T(T({},N),{},{props:x,graphicalItems:I}),b==null?void 0:b.legendBBox);Object.keys(N).forEach(function(L){N[L]=s(x,N[L],R,L.replace("Map",""),r)});var W=N["".concat(C,"Map")],K=Tx(W),X=p(x,T(T({},N),{},{dataStartIndex:w,dataEndIndex:h,updateId:g,graphicalItems:I,stackGroups:M,offset:R}));return T(T({formattedGraphicalItems:X,graphicalItems:I,offset:R,stackGroups:M},K),N)},m=function(d){function O(b){var x,w,h;return px(this,O),h=hx(this,O,[b]),V(h,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),V(h,"accessibilityManager",new J0),V(h,"handleLegendBBoxUpdate",function(g){if(g){var A=h.state,S=A.dataStartIndex,j=A.dataEndIndex,_=A.updateId;h.setState(T({legendBBox:g},v({props:h.props,dataStartIndex:S,dataEndIndex:j,updateId:_},T(T({},h.state),{},{legendBBox:g}))))}}),V(h,"handleReceiveSyncEvent",function(g,A,S){if(h.props.syncId===g){if(S===h.eventEmitterSymbol&&typeof h.props.syncMethod!="function")return;h.applySyncEvent(A)}}),V(h,"handleBrushChange",function(g){var A=g.startIndex,S=g.endIndex;if(A!==h.state.dataStartIndex||S!==h.state.dataEndIndex){var j=h.state.updateId;h.setState(function(){return T({dataStartIndex:A,dataEndIndex:S},v({props:h.props,dataStartIndex:A,dataEndIndex:S,updateId:j},h.state))}),h.triggerSyncEvent({dataStartIndex:A,dataEndIndex:S})}}),V(h,"handleMouseEnter",function(g){var A=h.getMouseInfo(g);if(A){var S=T(T({},A),{},{isTooltipActive:!0});h.setState(S),h.triggerSyncEvent(S);var j=h.props.onMouseEnter;G(j)&&j(S,g)}}),V(h,"triggeredAfterMouseMove",function(g){var A=h.getMouseInfo(g),S=A?T(T({},A),{},{isTooltipActive:!0}):{isTooltipActive:!1};h.setState(S),h.triggerSyncEvent(S);var j=h.props.onMouseMove;G(j)&&j(S,g)}),V(h,"handleItemMouseEnter",function(g){h.setState(function(){return{isTooltipActive:!0,activeItem:g,activePayload:g.tooltipPayload,activeCoordinate:g.tooltipPosition||{x:g.cx,y:g.cy}}})}),V(h,"handleItemMouseLeave",function(){h.setState(function(){return{isTooltipActive:!1}})}),V(h,"handleMouseMove",function(g){g.persist(),h.throttleTriggeredAfterMouseMove(g)}),V(h,"handleMouseLeave",function(g){h.throttleTriggeredAfterMouseMove.cancel();var A={isTooltipActive:!1};h.setState(A),h.triggerSyncEvent(A);var S=h.props.onMouseLeave;G(S)&&S(A,g)}),V(h,"handleOuterEvent",function(g){var A=Uf(g),S=Se(h.props,"".concat(A));if(A&&G(S)){var j,_;/.*touch.*/i.test(A)?_=h.getMouseInfo(g.changedTouches[0]):_=h.getMouseInfo(g),S((j=_)!==null&&j!==void 0?j:{},g)}}),V(h,"handleClick",function(g){var A=h.getMouseInfo(g);if(A){var S=T(T({},A),{},{isTooltipActive:!0});h.setState(S),h.triggerSyncEvent(S);var j=h.props.onClick;G(j)&&j(S,g)}}),V(h,"handleMouseDown",function(g){var A=h.props.onMouseDown;if(G(A)){var S=h.getMouseInfo(g);A(S,g)}}),V(h,"handleMouseUp",function(g){var A=h.props.onMouseUp;if(G(A)){var S=h.getMouseInfo(g);A(S,g)}}),V(h,"handleTouchMove",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&h.throttleTriggeredAfterMouseMove(g.changedTouches[0])}),V(h,"handleTouchStart",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&h.handleMouseDown(g.changedTouches[0])}),V(h,"handleTouchEnd",function(g){g.changedTouches!=null&&g.changedTouches.length>0&&h.handleMouseUp(g.changedTouches[0])}),V(h,"handleDoubleClick",function(g){var A=h.props.onDoubleClick;if(G(A)){var S=h.getMouseInfo(g);A(S,g)}}),V(h,"handleContextMenu",function(g){var A=h.props.onContextMenu;if(G(A)){var S=h.getMouseInfo(g);A(S,g)}}),V(h,"triggerSyncEvent",function(g){h.props.syncId!==void 0&&Mi.emit(Di,h.props.syncId,g,h.eventEmitterSymbol)}),V(h,"applySyncEvent",function(g){var A=h.props,S=A.layout,j=A.syncMethod,_=h.state.updateId,E=g.dataStartIndex,$=g.dataEndIndex;if(g.dataStartIndex!==void 0||g.dataEndIndex!==void 0)h.setState(T({dataStartIndex:E,dataEndIndex:$},v({props:h.props,dataStartIndex:E,dataEndIndex:$,updateId:_},h.state)));else if(g.activeTooltipIndex!==void 0){var k=g.chartX,C=g.chartY,I=g.activeTooltipIndex,M=h.state,N=M.offset,R=M.tooltipTicks;if(!N)return;if(typeof j=="function")I=j(R,g);else if(j==="value"){I=-1;for(var W=0;W<R.length;W++)if(R[W].value===g.activeLabel){I=W;break}}var K=T(T({},N),{},{x:N.left,y:N.top}),X=Math.min(k,K.x+K.width),L=Math.min(C,K.y+K.height),q=R[I]&&R[I].value,ae=Ga(h.state,h.props.data,I),pe=R[I]?{x:S==="horizontal"?R[I].coordinate:X,y:S==="horizontal"?L:R[I].coordinate}:qs;h.setState(T(T({},g),{},{activeLabel:q,activeCoordinate:pe,activePayload:ae,activeTooltipIndex:I}))}else h.setState(g)}),V(h,"renderCursor",function(g){var A,S=h.state,j=S.isTooltipActive,_=S.activeCoordinate,E=S.activePayload,$=S.offset,k=S.activeTooltipIndex,C=S.tooltipAxisBandSize,I=h.getTooltipEventType(),M=(A=g.props.active)!==null&&A!==void 0?A:j,N=h.props.layout,R=g.key||"_recharts-cursor";return P.createElement(ax,{key:R,activeCoordinate:_,activePayload:E,activeTooltipIndex:k,chartName:r,element:g,isActive:M,layout:N,offset:$,tooltipAxisBandSize:C,tooltipEventType:I})}),V(h,"renderPolarAxis",function(g,A,S){var j=Se(g,"type.axisType"),_=Se(h.state,"".concat(j,"Map")),E=g.type.defaultProps,$=E!==void 0?T(T({},E),g.props):g.props,k=_&&_[$["".concat(j,"Id")]];return B.cloneElement(g,T(T({},k),{},{className:U(j,k.className),key:g.key||"".concat(A,"-").concat(S),ticks:Ve(k,!0)}))}),V(h,"renderPolarGrid",function(g){var A=g.props,S=A.radialLines,j=A.polarAngles,_=A.polarRadius,E=h.state,$=E.radiusAxisMap,k=E.angleAxisMap,C=Ye($),I=Ye(k),M=I.cx,N=I.cy,R=I.innerRadius,W=I.outerRadius;return B.cloneElement(g,{polarAngles:Array.isArray(j)?j:Ve(I,!0).map(function(K){return K.coordinate}),polarRadius:Array.isArray(_)?_:Ve(C,!0).map(function(K){return K.coordinate}),cx:M,cy:N,innerRadius:R,outerRadius:W,key:g.key||"polar-grid",radialLines:S})}),V(h,"renderLegend",function(){var g=h.state.formattedGraphicalItems,A=h.props,S=A.children,j=A.width,_=A.height,E=h.props.margin||{},$=j-(E.left||0)-(E.right||0),k=$l({children:S,formattedGraphicalItems:g,legendWidth:$,legendContent:l});if(!k)return null;var C=k.item,I=Kc(k,ox);return B.cloneElement(C,T(T({},I),{},{chartWidth:j,chartHeight:_,margin:E,onBBoxUpdate:h.handleLegendBBoxUpdate}))}),V(h,"renderTooltip",function(){var g,A=h.props,S=A.children,j=A.accessibilityLayer,_=Ae(S,Fe);if(!_)return null;var E=h.state,$=E.isTooltipActive,k=E.activeCoordinate,C=E.activePayload,I=E.activeLabel,M=E.offset,N=(g=_.props.active)!==null&&g!==void 0?g:$;return B.cloneElement(_,{viewBox:T(T({},M),{},{x:M.left,y:M.top}),active:N,label:I,payload:N?C:[],coordinate:k,accessibilityLayer:j})}),V(h,"renderBrush",function(g){var A=h.props,S=A.margin,j=A.data,_=h.state,E=_.offset,$=_.dataStartIndex,k=_.dataEndIndex,C=_.updateId;return B.cloneElement(g,{key:g.key||"_recharts-brush",onChange:fn(h.handleBrushChange,g.props.onChange),data:j,x:D(g.props.x)?g.props.x:E.left,y:D(g.props.y)?g.props.y:E.top+E.height+E.brushBottom-(S.bottom||0),width:D(g.props.width)?g.props.width:E.width,startIndex:$,endIndex:k,updateId:"brush-".concat(C)})}),V(h,"renderReferenceElement",function(g,A,S){if(!g)return null;var j=h,_=j.clipPathId,E=h.state,$=E.xAxisMap,k=E.yAxisMap,C=E.offset,I=g.type.defaultProps||{},M=g.props,N=M.xAxisId,R=N===void 0?I.xAxisId:N,W=M.yAxisId,K=W===void 0?I.yAxisId:W;return B.cloneElement(g,{key:g.key||"".concat(A,"-").concat(S),xAxis:$[R],yAxis:k[K],viewBox:{x:C.left,y:C.top,width:C.width,height:C.height},clipPathId:_})}),V(h,"renderActivePoints",function(g){var A=g.item,S=g.activePoint,j=g.basePoint,_=g.childIndex,E=g.isRange,$=[],k=A.props.key,C=A.item.type.defaultProps!==void 0?T(T({},A.item.type.defaultProps),A.item.props):A.item.props,I=C.activeDot,M=C.dataKey,N=T(T({index:_,dataKey:M,cx:S.x,cy:S.y,r:4,fill:to(A.item),strokeWidth:2,stroke:"#fff",payload:S.payload,value:S.value},F(I,!1)),xn(I));return $.push(O.renderActiveDot(I,N,"".concat(k,"-activePoint-").concat(_))),j?$.push(O.renderActiveDot(I,T(T({},N),{},{cx:j.x,cy:j.y}),"".concat(k,"-basePoint-").concat(_))):E&&$.push(null),$}),V(h,"renderGraphicChild",function(g,A,S){var j=h.filterFormatItem(g,A,S);if(!j)return null;var _=h.getTooltipEventType(),E=h.state,$=E.isTooltipActive,k=E.tooltipAxis,C=E.activeTooltipIndex,I=E.activeLabel,M=h.props.children,N=Ae(M,Fe),R=j.props,W=R.points,K=R.isRange,X=R.baseLine,L=j.item.type.defaultProps!==void 0?T(T({},j.item.type.defaultProps),j.item.props):j.item.props,q=L.activeDot,ae=L.hide,pe=L.activeBar,Ie=L.activeShape,fr=!!(!ae&&$&&N&&(q||pe||Ie)),je={};_!=="axis"&&N&&N.props.trigger==="click"?je={onClick:fn(h.handleItemMouseEnter,g.props.onClick)}:_!=="axis"&&(je={onMouseLeave:fn(h.handleItemMouseLeave,g.props.onMouseLeave),onMouseEnter:fn(h.handleItemMouseEnter,g.props.onMouseEnter)});var tt=B.cloneElement(g,T(T({},j.props),je));function an(it){return typeof k.dataKey=="function"?k.dataKey(it.payload):null}if(fr)if(C>=0){var Ot,pr;if(k.dataKey&&!k.allowDuplicatedCategory){var rt=typeof k.dataKey=="function"?an:"payload.".concat(k.dataKey.toString());Ot=On(W,rt,I),pr=K&&X&&On(X,rt,I)}else Ot=W==null?void 0:W[C],pr=K&&X&&X[C];if(Ie||pe){var xt=g.props.activeIndex!==void 0?g.props.activeIndex:C;return[B.cloneElement(g,T(T(T({},j.props),je),{},{activeIndex:xt})),null,null]}if(!H(Ot))return[tt].concat(rr(h.renderActivePoints({item:j,activePoint:Ot,basePoint:pr,childIndex:C,isRange:K})))}else{var dr,vr=(dr=h.getItemByXY(h.state.activeCoordinate))!==null&&dr!==void 0?dr:{graphicalItem:tt},wt=vr.graphicalItem,hr=wt.item,At=hr===void 0?g:hr,on=wt.childIndex,nt=T(T(T({},j.props),je),{},{activeIndex:on});return[B.cloneElement(At,nt),null,null]}return K?[tt,null,null]:[tt,null]}),V(h,"renderCustomized",function(g,A,S){return B.cloneElement(g,T(T({key:"recharts-customized-".concat(S)},h.props),h.state))}),V(h,"renderMap",{CartesianGrid:{handler:yn,once:!0},ReferenceArea:{handler:h.renderReferenceElement},ReferenceLine:{handler:yn},ReferenceDot:{handler:h.renderReferenceElement},XAxis:{handler:yn},YAxis:{handler:yn},Brush:{handler:h.renderBrush,once:!0},Bar:{handler:h.renderGraphicChild},Line:{handler:h.renderGraphicChild},Area:{handler:h.renderGraphicChild},Radar:{handler:h.renderGraphicChild},RadialBar:{handler:h.renderGraphicChild},Scatter:{handler:h.renderGraphicChild},Pie:{handler:h.renderGraphicChild},Funnel:{handler:h.renderGraphicChild},Tooltip:{handler:h.renderCursor,once:!0},PolarGrid:{handler:h.renderPolarGrid,once:!0},PolarAngleAxis:{handler:h.renderPolarAxis},PolarRadiusAxis:{handler:h.renderPolarAxis},Customized:{handler:h.renderCustomized}}),h.clipPathId="".concat((x=b.id)!==null&&x!==void 0?x:ar("recharts"),"-clip"),h.throttleTriggeredAfterMouseMove=Hc(h.triggeredAfterMouseMove,(w=b.throttleDelay)!==null&&w!==void 0?w:1e3/60),h.state={},h}return gx(O,d),vx(O,[{key:"componentDidMount",value:function(){var x,w;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,w=x.children,h=x.data,g=x.height,A=x.layout,S=Ae(w,Fe);if(S){var j=S.props.defaultIndex;if(!(typeof j!="number"||j<0||j>this.state.tooltipTicks.length-1)){var _=this.state.tooltipTicks[j]&&this.state.tooltipTicks[j].value,E=Ga(this.state,h,j,_),$=this.state.tooltipTicks[j].coordinate,k=(this.state.offset.top+g)/2,C=A==="horizontal",I=C?{x:$,y:k}:{y:$,x:k},M=this.state.formattedGraphicalItems.find(function(R){var W=R.item;return W.type.name==="Scatter"});M&&(I=T(T({},I),M.props.points[j].tooltipPosition),E=M.props.points[j].tooltipPayload);var N={activeTooltipIndex:j,isTooltipActive:!0,activeLabel:_,activePayload:E,activeCoordinate:I};this.setState(N),this.renderCursor(S),this.accessibilityManager.setIndex(j)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,w){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==w.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var h,g;this.accessibilityManager.setDetails({offset:{left:(h=this.props.margin.left)!==null&&h!==void 0?h:0,top:(g=this.props.margin.top)!==null&&g!==void 0?g:0}})}return null}},{key:"componentDidUpdate",value:function(x){Li([Ae(x.children,Fe)],[Ae(this.props.children,Fe)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=Ae(this.props.children,Fe);if(x&&typeof x.props.shared=="boolean"){var w=x.props.shared?"axis":"item";return u.indexOf(w)>=0?w:a}return a}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var w=this.container,h=w.getBoundingClientRect(),g=Td(h),A={chartX:Math.round(x.pageX-g.left),chartY:Math.round(x.pageY-g.top)},S=h.width/w.offsetWidth||1,j=this.inRange(A.chartX,A.chartY,S);if(!j)return null;var _=this.state,E=_.xAxisMap,$=_.yAxisMap,k=this.getTooltipEventType();if(k!=="axis"&&E&&$){var C=Ye(E).scale,I=Ye($).scale,M=C&&C.invert?C.invert(A.chartX):null,N=I&&I.invert?I.invert(A.chartY):null;return T(T({},A),{},{xValue:M,yValue:N})}var R=Gc(this.state,this.props.data,this.props.layout,j);return R?T(T({},A),R):null}},{key:"inRange",value:function(x,w){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,g=this.props.layout,A=x/h,S=w/h;if(g==="horizontal"||g==="vertical"){var j=this.state.offset,_=A>=j.left&&A<=j.left+j.width&&S>=j.top&&S<=j.top+j.height;return _?{x:A,y:S}:null}var E=this.state,$=E.angleAxisMap,k=E.radiusAxisMap;if($&&k){var C=Ye($);return gu({x:A,y:S},C)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,w=this.getTooltipEventType(),h=Ae(x,Fe),g={};h&&w==="axis"&&(h.props.trigger==="click"?g={onClick:this.handleClick}:g={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var A=xn(this.props,this.handleOuterEvent);return T(T({},A),g)}},{key:"addListener",value:function(){Mi.on(Di,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Mi.removeListener(Di,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,w,h){for(var g=this.state.formattedGraphicalItems,A=0,S=g.length;A<S;A++){var j=g[A];if(j.item===x||j.props.key===x.key||w===Ge(j.item.type)&&h===j.childIndex)return j}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,w=this.state.offset,h=w.left,g=w.top,A=w.height,S=w.width;return P.createElement("defs",null,P.createElement("clipPath",{id:x},P.createElement("rect",{x:h,y:g,height:A,width:S})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(w,h){var g=Fc(h,2),A=g[0],S=g[1];return T(T({},w),{},V({},A,S.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(w,h){var g=Fc(h,2),A=g[0],S=g[1];return T(T({},w),{},V({},A,S.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var w;return(w=this.state.xAxisMap)===null||w===void 0||(w=w[x])===null||w===void 0?void 0:w.scale}},{key:"getYScaleByAxisId",value:function(x){var w;return(w=this.state.yAxisMap)===null||w===void 0||(w=w[x])===null||w===void 0?void 0:w.scale}},{key:"getItemByXY",value:function(x){var w=this.state,h=w.formattedGraphicalItems,g=w.activeItem;if(h&&h.length)for(var A=0,S=h.length;A<S;A++){var j=h[A],_=j.props,E=j.item,$=E.type.defaultProps!==void 0?T(T({},E.type.defaultProps),E.props):E.props,k=Ge(E.type);if(k==="Bar"){var C=(_.data||[]).find(function(R){return qm(x,R)});if(C)return{graphicalItem:j,payload:C}}else if(k==="RadialBar"){var I=(_.data||[]).find(function(R){return gu(x,R)});if(I)return{graphicalItem:j,payload:I}}else if(pi(j,g)||di(j,g)||Yr(j,g)){var M=nb({graphicalItem:j,activeTooltipItem:g,itemData:$.data}),N=$.activeIndex===void 0?M:$.activeIndex;return{graphicalItem:T(T({},j),{},{childIndex:N}),payload:Yr(j,g)?$.data[M]:j.props.data[M]}}}return null}},{key:"render",value:function(){var x=this;if(!jo(this))return null;var w=this.props,h=w.children,g=w.className,A=w.width,S=w.height,j=w.style,_=w.compact,E=w.title,$=w.desc,k=Kc(w,ux),C=F(k,!1);if(_)return P.createElement(Pc,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},P.createElement(Wi,Tt({},C,{width:A,height:S,title:E,desc:$}),this.renderClipPath(),$o(h,this.renderMap)));if(this.props.accessibilityLayer){var I,M;C.tabIndex=(I=this.props.tabIndex)!==null&&I!==void 0?I:0,C.role=(M=this.props.role)!==null&&M!==void 0?M:"application",C.onKeyDown=function(R){x.accessibilityManager.keyboardEvent(R)},C.onFocus=function(){x.accessibilityManager.focus()}}var N=this.parseEventsOfWrapper();return P.createElement(Pc,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},P.createElement("div",Tt({className:U("recharts-wrapper",g),style:T({position:"relative",cursor:"default",width:A,height:S},j)},N,{ref:function(W){x.container=W}}),P.createElement(Wi,Tt({},C,{width:A,height:S,title:E,desc:$,style:Px}),this.renderClipPath(),$o(h,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(B.Component);V(m,"displayName",r),V(m,"defaultProps",T({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),V(m,"getDerivedStateFromProps",function(d,O){var b=d.dataKey,x=d.data,w=d.children,h=d.width,g=d.height,A=d.layout,S=d.stackOffset,j=d.margin,_=O.dataStartIndex,E=O.dataEndIndex;if(O.updateId===void 0){var $=Xc(d);return T(T(T({},$),{},{updateId:0},v(T(T({props:d},$),{},{updateId:0}),O)),{},{prevDataKey:b,prevData:x,prevWidth:h,prevHeight:g,prevLayout:A,prevStackOffset:S,prevMargin:j,prevChildren:w})}if(b!==O.prevDataKey||x!==O.prevData||h!==O.prevWidth||g!==O.prevHeight||A!==O.prevLayout||S!==O.prevStackOffset||!It(j,O.prevMargin)){var k=Xc(d),C={chartX:O.chartX,chartY:O.chartY,isTooltipActive:O.isTooltipActive},I=T(T({},Gc(O,x,A)),{},{updateId:O.updateId+1}),M=T(T(T({},k),C),I);return T(T(T({},M),v(T({props:d},M),O)),{},{prevDataKey:b,prevData:x,prevWidth:h,prevHeight:g,prevLayout:A,prevStackOffset:S,prevMargin:j,prevChildren:w})}if(!Li(w,O.prevChildren)){var N,R,W,K,X=Ae(w,Xt),L=X&&(N=(R=X.props)===null||R===void 0?void 0:R.startIndex)!==null&&N!==void 0?N:_,q=X&&(W=(K=X.props)===null||K===void 0?void 0:K.endIndex)!==null&&W!==void 0?W:E,ae=L!==_||q!==E,pe=!H(x),Ie=pe&&!ae?O.updateId:O.updateId+1;return T(T({updateId:Ie},v(T(T({props:d},O),{},{updateId:Ie,dataStartIndex:L,dataEndIndex:q}),O)),{},{prevChildren:w,dataStartIndex:L,dataEndIndex:q})}return null}),V(m,"renderActiveDot",function(d,O,b){var x;return B.isValidElement(d)?x=B.cloneElement(d,O):G(d)?x=d(O):x=P.createElement(ui,O),P.createElement(Y,{className:"recharts-active-dot",key:b},x)});var y=B.forwardRef(function(O,b){return P.createElement(m,Tt({},O,{ref:b}))});return y.displayName=m.displayName,y},Lx=po({chartName:"BarChart",GraphicalChild:lr,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:bi},{axisType:"yAxis",AxisComp:Oi}],formatAxisMap:ps}),zx=po({chartName:"PieChart",GraphicalChild:et,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:fi},{axisType:"radiusAxis",AxisComp:li}],formatAxisMap:Sh,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),Wx=po({chartName:"AreaChart",GraphicalChild:bt,axisComponents:[{axisType:"xAxis",AxisComp:bi},{axisType:"yAxis",AxisComp:Oi}],formatAxisMap:ps});export{Wx as A,Lx as B,p0 as C,zx as P,Rx as R,Kl as S,Fe as T,bi as X,Oi as Y,bt as a,lo as b,lr as c,et as d,Ja as e};
//# sourceMappingURL=recharts-FOpSiSS8.js.map
