@1interface/widgets 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{jsx as e,jsxs as t}from"react/jsx-runtime";import{g as r,u as n,a as i,s as o,h as a,r as l}from"./index-CuqDLhq-.js";import*as c from"react";import u,{isValidElement as s,forwardRef as f,useContext as d,createContext as p,useMemo as h,useState as y,useCallback as v,useRef as m,useImperativeHandle as g,useEffect as b,useLayoutEffect as w,cloneElement as x,createElement as O,Children as E,memo as S,Component as P,PureComponent as j}from"react";import{createPortal as A}from"react-dom";function _(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=_(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function k(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=_(e))&&(n&&(n+=" "),n+=t);return n}var M=["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"];function I(e){return"string"==typeof e&&M.includes(e)}var T=new Set(["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"]);function D(e){return"string"==typeof e&&T.has(e)}function N(e){return"string"==typeof e&&e.startsWith("data-")}function C(e){if("object"!=typeof e||null===e)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(D(r)||N(r))&&(t[r]=e[r]);return t}function z(e){return null==e?null:s(e)&&"object"==typeof e.props&&null!==e.props?C(e.props):"object"!=typeof e||Array.isArray(e)?null:C(e)}function L(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(D(r)||N(r)||I(r))&&(t[r]=e[r]);return t}var R=["children","width","height","viewBox","className","style","title","desc"];function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},B.apply(null,arguments)}var $=f((e,t)=>{var{children:r,width:n,height:i,viewBox:o,className:a,style:l,title:u,desc:s}=e,f=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,R),d=o||{width:n,height:i,x:0,y:0},p=k("recharts-surface",a);return c.createElement("svg",B({},L(f),{className:p,width:n,height:i,style:l,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height),ref:t}),c.createElement("title",null,u),c.createElement("desc",null,s),r)}),V=["children","className"];function K(){return K=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},K.apply(null,arguments)}var F=c.forwardRef((e,t)=>{var{children:r,className:n}=e,i=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,V),o=k("recharts-layer",n);return c.createElement("g",K({className:o},L(i),{ref:t}),r)}),U=p(null);function W(e){return function(){return e}}const H=Math.cos,q=Math.sin,Y=Math.sqrt,G=Math.PI,X=2*G,Z=Math.PI,Q=2*Z,J=1e-6,ee=Q-J;function te(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}class re{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?te:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return te;const r=10**t;return function(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=Math.round(arguments[t]*r)/r+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,r,n){this._append`Q${+e},${+t},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(e,t,r,n,i,o){this._append`C${+e},${+t},${+r},${+n},${this._x1=+i},${this._y1=+o}`}arcTo(e,t,r,n,i){if(e=+e,t=+t,r=+r,n=+n,(i=+i)<0)throw new Error(`negative radius: ${i}`);let o=this._x1,a=this._y1,l=r-e,c=n-t,u=o-e,s=a-t,f=u*u+s*s;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(f>J)if(Math.abs(s*l-c*u)>J&&i){let d=r-o,p=n-a,h=l*l+c*c,y=d*d+p*p,v=Math.sqrt(h),m=Math.sqrt(f),g=i*Math.tan((Z-Math.acos((h+f-y)/(2*v*m)))/2),b=g/m,w=g/v;Math.abs(b-1)>J&&this._append`L${e+b*u},${t+b*s}`,this._append`A${i},${i},0,0,${+(s*d>u*p)},${this._x1=e+w*l},${this._y1=t+w*c}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,r,n,i,o){if(e=+e,t=+t,o=!!o,(r=+r)<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(n),l=r*Math.sin(n),c=e+a,u=t+l,s=1^o,f=o?n-i:i-n;null===this._x1?this._append`M${c},${u}`:(Math.abs(this._x1-c)>J||Math.abs(this._y1-u)>J)&&this._append`L${c},${u}`,r&&(f<0&&(f=f%Q+Q),f>ee?this._append`A${r},${r},0,1,${s},${e-a},${t-l}A${r},${r},0,1,${s},${this._x1=c},${this._y1=u}`:f>J&&this._append`A${r},${r},0,${+(f>=Z)},${s},${this._x1=e+r*Math.cos(i)},${this._y1=t+r*Math.sin(i)}`)}rect(e,t,r,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function ne(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(null==r)t=null;else{const e=Math.floor(r);if(!(e>=0))throw new RangeError(`invalid digits: ${r}`);t=e}return e},()=>new re(t)}function ie(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function oe(e){this._context=e}function ae(e){return new oe(e)}function le(e){return e[0]}function ce(e){return e[1]}function ue(e,t){var r=W(!0),n=null,i=ae,o=null,a=ne(l);function l(l){var c,u,s,f=(l=ie(l)).length,d=!1;for(null==n&&(o=i(s=a())),c=0;c<=f;++c)!(c<f&&r(u=l[c],c,l))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+e(u,c,l),+t(u,c,l));if(s)return o=null,s+""||null}return e="function"==typeof e?e:void 0===e?le:W(e),t="function"==typeof t?t:void 0===t?ce:W(t),l.x=function(t){return arguments.length?(e="function"==typeof t?t:W(+t),l):e},l.y=function(e){return arguments.length?(t="function"==typeof e?e:W(+e),l):t},l.defined=function(e){return arguments.length?(r="function"==typeof e?e:W(!!e),l):r},l.curve=function(e){return arguments.length?(i=e,null!=n&&(o=i(n)),l):i},l.context=function(e){return arguments.length?(null==e?n=o=null:o=i(n=e),l):n},l}function se(e,t,r){var n=null,i=W(!0),o=null,a=ae,l=null,c=ne(u);function u(u){var s,f,d,p,h,y=(u=ie(u)).length,v=!1,m=new Array(y),g=new Array(y);for(null==o&&(l=a(h=c())),s=0;s<=y;++s){if(!(s<y&&i(p=u[s],s,u))===v)if(v=!v)f=s,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),d=s-1;d>=f;--d)l.point(m[d],g[d]);l.lineEnd(),l.areaEnd()}v&&(m[s]=+e(p,s,u),g[s]=+t(p,s,u),l.point(n?+n(p,s,u):m[s],r?+r(p,s,u):g[s]))}if(h)return l=null,h+""||null}function s(){return ue().defined(i).curve(a).context(o)}return e="function"==typeof e?e:void 0===e?le:W(+e),t="function"==typeof t?t:W(void 0===t?0:+t),r="function"==typeof r?r:void 0===r?ce:W(+r),u.x=function(t){return arguments.length?(e="function"==typeof t?t:W(+t),n=null,u):e},u.x0=function(t){return arguments.length?(e="function"==typeof t?t:W(+t),u):e},u.x1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:W(+e),u):n},u.y=function(e){return arguments.length?(t="function"==typeof e?e:W(+e),r=null,u):t},u.y0=function(e){return arguments.length?(t="function"==typeof e?e:W(+e),u):t},u.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:W(+e),u):r},u.lineX0=u.lineY0=function(){return s().x(e).y(t)},u.lineY1=function(){return s().x(e).y(r)},u.lineX1=function(){return s().x(n).y(t)},u.defined=function(e){return arguments.length?(i="function"==typeof e?e:W(!!e),u):i},u.curve=function(e){return arguments.length?(a=e,null!=o&&(l=a(o)),u):a},u.context=function(e){return arguments.length?(null==e?o=l=null:l=a(o=e),u):o},u}oe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};class fe{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}const de={draw(e,t){const r=Y(t/G);e.moveTo(r,0),e.arc(0,0,r,0,X)}},pe={draw(e,t){const r=Y(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},he=Y(1/3),ye=2*he,ve={draw(e,t){const r=Y(t/ye),n=r*he;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},me={draw(e,t){const r=Y(t),n=-r/2;e.rect(n,n,r,r)}},ge=q(G/10)/q(7*G/10),be=q(X/10)*ge,we=-H(X/10)*ge,xe={draw(e,t){const r=Y(.8908130915292852*t),n=be*r,i=we*r;e.moveTo(0,-r),e.lineTo(n,i);for(let t=1;t<5;++t){const o=X*t/5,a=H(o),l=q(o);e.lineTo(l*r,-a*r),e.lineTo(a*n-l*i,l*n+a*i)}e.closePath()}},Oe=Y(3),Ee={draw(e,t){const r=-Y(t/(3*Oe));e.moveTo(0,2*r),e.lineTo(-Oe*r,-r),e.lineTo(Oe*r,-r),e.closePath()}},Se=-.5,Pe=Y(3)/2,je=1/Y(12),Ae=3*(je/2+1),_e={draw(e,t){const r=Y(t/Ae),n=r/2,i=r*je,o=n,a=r*je+r,l=-o,c=a;e.moveTo(n,i),e.lineTo(o,a),e.lineTo(l,c),e.lineTo(Se*n-Pe*i,Pe*n+Se*i),e.lineTo(Se*o-Pe*a,Pe*o+Se*a),e.lineTo(Se*l-Pe*c,Pe*l+Se*c),e.lineTo(Se*n+Pe*i,Se*i-Pe*n),e.lineTo(Se*o+Pe*a,Se*a-Pe*o),e.lineTo(Se*l+Pe*c,Se*c-Pe*l),e.closePath()}};function ke(){}function Me(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Ie(e){this._context=e}function Te(e){this._context=e}function De(e){this._context=e}function Ne(e){this._context=e}function Ce(e){return e<0?-1:1}function ze(e,t,r){var n=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(n||i<0&&-0),a=(r-e._y1)/(i||n<0&&-0),l=(o*i+a*n)/(n+i);return(Ce(o)+Ce(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(l))||0}function Le(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Re(e,t,r){var n=e._x0,i=e._x1,o=e._y1,a=(i-n)/3;e._context.bezierCurveTo(n+a,e._y0+a*t,i-a,o-a*r,i,o)}function Be(e){this._context=e}function $e(e){this._context=new Ve(e)}function Ve(e){this._context=e}function Ke(e){this._context=e}function Fe(e){var t,r,n=e.length-1,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)o[t]-=r=i[t]/o[t-1],a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function Ue(e,t){this._context=e,this._t=t}function We(e,t){if((i=e.length)>1)for(var r,n,i,o=1,a=e[t[0]],l=a.length;o<i;++o)for(n=a,a=e[t[o]],r=0;r<l;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function He(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function qe(e,t){return e[t]}function Ye(e){const t=[];return t.key=e,t}Ie.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Me(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Me(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Te.prototype={areaStart:ke,areaEnd:ke,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Me(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},De.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Me(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Ne.prototype={areaStart:ke,areaEnd:ke,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},Be.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Re(this,this._t0,Le(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Re(this,Le(this,r=ze(this,e,t)),r);break;default:Re(this,this._t0,r=ze(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}},($e.prototype=Object.create(Be.prototype)).point=function(e,t){Be.prototype.point.call(this,t,e)},Ve.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,o){this._context.bezierCurveTo(t,e,n,r,o,i)}},Ke.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===r)this._context.lineTo(e[1],t[1]);else for(var n=Fe(e),i=Fe(t),o=0,a=1;a<r;++o,++a)this._context.bezierCurveTo(n[0][o],i[0][o],n[1][o],i[1][o],e[a],t[a]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},Ue.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}}this._x=e,this._y=t}};var Ge,Xe={},Ze={};function Qe(){return Ge||(Ge=1,e=Ze,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isUnsafeProperty=function(e){return"__proto__"===e}),Ze;var e}var Je,et={};function tt(){return Je||(Je=1,e=et,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isDeepKey=function(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}),et;var e}var rt,nt={};function it(){return rt||(rt=1,e=nt,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.toKey=function(e){return"string"==typeof e||"symbol"==typeof e?e:Object.is(e?.valueOf?.(),-0)?"-0":String(e)}),nt;var e}var ot,at,lt,ct,ut,st={},ft={};function dt(){return ot||(ot=1,e=ft,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.toString=function e(t){if(null==t)return"";if("string"==typeof t)return t;if(Array.isArray(t))return t.map(e).join(",");const r=String(t);return"0"===r&&Object.is(Number(t),-0)?"-0":r}),ft;var e}function pt(){return at||(at=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dt(),r=it();e.toPath=function(e){if(Array.isArray(e))return e.map(r.toKey);if("symbol"==typeof e)return[e];const n=[],i=(e=t.toString(e)).length;if(0===i)return n;let o=0,a="",l="",c=!1;for(46===e.charCodeAt(0)&&(n.push(""),o++);o<i;){const t=e[o];l?"\\"===t&&o+1<i?(o++,a+=e[o]):t===l?l="":a+=t:c?'"'===t||"'"===t?l=t:"]"===t?(c=!1,n.push(a),a=""):a+=t:"["===t?(c=!0,a&&(n.push(a),a="")):"."===t?a&&(n.push(a),a=""):a+=t,o++}return a&&n.push(a),n}}(st)),st}function ht(){return lt||(lt=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Qe(),r=tt(),n=it(),i=pt();e.get=function e(o,a,l){if(null==o)return l;switch(typeof a){case"string":{if(t.isUnsafeProperty(a))return l;const n=o[a];return void 0===n?r.isDeepKey(a)?e(o,i.toPath(a),l):l:n}case"number":case"symbol":{"number"==typeof a&&(a=n.toKey(a));const e=o[a];return void 0===e?l:e}default:{if(Array.isArray(a))return function(e,r,n){if(0===r.length)return n;let i=e;for(let e=0;e<r.length;e++){if(null==i)return n;if(t.isUnsafeProperty(r[e]))return n;i=i[r[e]]}return void 0===i?n:i}(o,a,l);if(a=Object.is(a?.valueOf(),-0)?"-0":String(a),t.isUnsafeProperty(a))return l;const e=o[a];return void 0===e?l:e}}}}(Xe)),Xe}function yt(){return ut?ct:(ut=1,ct=ht().get)}const vt=r(yt());function mt(e){var t=10**(arguments.length>1&&void 0!==arguments[1]?arguments[1]:4),r=Math.round(e*t)/t;return Object.is(r,-0)?0:r}function gt(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.reduce((e,t,n)=>{var i=r[n-1];return"string"==typeof i?e+i+t:void 0!==i?e+mt(i)+t:e+t},"")}var bt=e=>0===e?0:e>0?1:-1,wt=e=>"number"==typeof e&&e!=+e,xt=e=>"string"==typeof e&&e.indexOf("%")===e.length-1,Ot=e=>("number"==typeof e||e instanceof Number)&&!wt(e),Et=e=>Ot(e)||"string"==typeof e,St=0,Pt=e=>{var t=++St;return"".concat(e||"").concat(t)},jt=function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!Ot(e)&&"string"!=typeof e)return n;if(xt(e)){if(null==t)return n;var o=e.indexOf("%");r=t*parseFloat(e.slice(0,o))/100}else r=+e;return wt(r)&&(r=n),i&&null!=t&&r>t&&(r=t),r},At=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++){if(r[String(e[n])])return!0;r[String(e[n])]=!0}return!1};function _t(e,t,r){return Ot(e)&&Ot(t)?mt(e+r*(t-e)):t}function kt(e,t,r){if(e&&e.length)return e.find(e=>e&&("function"==typeof t?t(e):vt(e,t))===r)}var Mt=e=>null==e,It=e=>Mt(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function Tt(e){return null!=e}function Dt(){}var Nt=["type","size","sizeType"];function Ct(){return Ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ct.apply(null,arguments)}function zt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Lt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zt(Object(r),!0).forEach(function(t){Rt(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Rt(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Bt={symbolCircle:de,symbolCross:pe,symbolDiamond:ve,symbolSquare:me,symbolStar:xe,symbolTriangle:Ee,symbolWye:_e},$t=Math.PI/180,Vt=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,i=Lt(Lt({},function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,Nt)),{},{type:t,size:r,sizeType:n}),o="circle";"string"==typeof t&&(o=t);var{className:a,cx:l,cy:u}=i,s=L(i);return Ot(l)&&Ot(u)&&Ot(r)?c.createElement("path",Ct({},s,{className:k("recharts-symbols",a),transform:"translate(".concat(l,", ").concat(u,")"),d:(()=>{var e=(e=>{var t="symbol".concat(It(e));return Bt[t]||de})(o),t=function(e,t){let r=null,n=ne(i);function i(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return e="function"==typeof e?e:W(e||de),t="function"==typeof t?t:W(void 0===t?64:+t),i.type=function(t){return arguments.length?(e="function"==typeof t?t:W(t),i):e},i.size=function(e){return arguments.length?(t="function"==typeof e?e:W(+e),i):t},i.context=function(e){return arguments.length?(r=null==e?null:e,i):r},i}().type(e).size(((e,t,r)=>{if("area"===t)return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var n=18*$t;return 1.25*e*e*(Math.tan(n)-Math.tan(2*n)*Math.tan(n)**2);case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}})(r,n,o)),i=t();if(null!==i)return i})()})):null};Vt.registerSymbol=(e,t)=>{Bt["symbol".concat(It(e))]=t};var Kt=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,Ft=(e,t)=>{if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if(s(e)&&(r=e.props),"object"!=typeof r&&"function"!=typeof r)return null;var n={};return Object.keys(r).forEach(e=>{I(e)&&"function"==typeof r[e]&&(n[e]=t=>r[e](r,t))}),n},Ut=(e,t,r)=>{if(null===e||"object"!=typeof e&&"function"!=typeof e)return null;var n=null;return Object.keys(e).forEach(i=>{var o=e[i];I(i)&&"function"==typeof o&&(n||(n={}),n[i]=((e,t,r)=>n=>(e(t,r,n),null))(o,t,r))}),n};function Wt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ht(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qt(e,t){var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wt(Object(r),!0).forEach(function(t){Ht(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},e),n=t;return Object.keys(t).reduce((e,t)=>(void 0===e[t]&&void 0!==n[t]&&(e[t]=n[t]),e),r)}function Yt(){return Yt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yt.apply(null,arguments)}function Gt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Xt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gt(Object(r),!0).forEach(function(t){Zt(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Zt(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Qt=32,Jt={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle",labelStyle:{}};function er(e){if("object"==typeof e&&null!==e&&"strokeDasharray"in e)return String(e.strokeDasharray)}function tr(e){var{data:t,iconType:r,inactiveColor:n}=e,i=16,o=Qt/6,a=Qt/3,l=t.inactive?n:t.color,u=null!=r?r:t.type;if("none"===u)return null;if("plainline"===u)return c.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:er(t.payload),x1:0,y1:i,x2:Qt,y2:i,className:"recharts-legend-icon"});if("line"===u)return c.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(i,"h").concat(a,"\n A").concat(o,",").concat(o,",0,1,1,").concat(2*a,",").concat(i,"\n H").concat(Qt,"M").concat(2*a,",").concat(i,"\n A").concat(o,",").concat(o,",0,1,1,").concat(a,",").concat(i),className:"recharts-legend-icon"});if("rect"===u)return c.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(4,"h").concat(Qt,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(c.isValidElement(t.legendIcon)){var s=Xt({},t);return delete s.legendIcon,c.cloneElement(t.legendIcon,s)}return c.createElement(Vt,{fill:l,cx:i,cy:i,size:Qt,sizeType:"diameter",type:u})}function rr(e){var{payload:t,iconSize:r,layout:n,formatter:i,inactiveColor:o,iconType:a,labelStyle:l}=e,u={x:0,y:0,width:Qt,height:Qt},s={display:"horizontal"===n?"inline-block":"block",marginRight:10},f={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((t,n)=>{var d=t.formatter||i,p=k({"recharts-legend-item":!0,["legend-item-".concat(n)]:!0,inactive:t.inactive});if("none"===t.type)return null;var h="object"==typeof l?Xt({},l):{};h.color=t.inactive?o:h.color||t.color;var y=d?d(t.value,t,n):t.value;return c.createElement("li",Yt({className:p,style:s,key:"legend-item-".concat(n)},Ut(e,t,n)),c.createElement($,{width:r,height:r,viewBox:u,style:f,"aria-label":"".concat(t.value," legend icon")},c.createElement(tr,{data:t,iconType:a,inactiveColor:o})),c.createElement("span",{className:"recharts-legend-item-text",style:h},y))})}var nr,ir=e=>{var t=qt(e,Jt),{payload:r,layout:n,align:i}=t;return r&&r.length?c.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===n?i:"left"}},c.createElement(rr,Yt({},t,{payload:r}))):null},or={},ar={};function lr(){return nr||(nr=1,e=ar,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.uniqBy=function(e,t){const r=new Map;for(let n=0;n<e.length;n++){const i=e[n],o=t(i);r.has(o)||r.set(o,i)}return Array.from(r.values())}),ar;var e}var cr,ur={};function sr(){return cr||(cr=1,e=ur,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.identity=function(e){return e}),ur;var e}var fr,dr,pr={},hr={},yr={};function vr(){return fr||(fr=1,e=yr,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isLength=function(e){return Number.isSafeInteger(e)&&e>=0}),yr;var e}function mr(){return dr||(dr=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vr();e.isArrayLike=function(e){return null!=e&&"function"!=typeof e&&t.isLength(e.length)}}(hr)),hr}var gr,br,wr={};function xr(){return gr||(gr=1,e=wr,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isObjectLike=function(e){return"object"==typeof e&&null!==e}),wr;var e}function Or(){return br||(br=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=mr(),r=xr();e.isArrayLikeObject=function(e){return r.isObjectLike(e)&&t.isArrayLike(e)}}(pr)),pr}var Er,Sr={},Pr={};function jr(){return Er||(Er=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ht();e.property=function(e){return function(r){return t.get(r,e)}}}(Pr)),Pr}var Ar,_r={},kr={},Mr={},Ir={};function Tr(){return Ar||(Ar=1,e=Ir,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isObject=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}),Ir;var e}var Dr,Nr={};function Cr(){return Dr||(Dr=1,e=Nr,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isPrimitive=function(e){return null==e||"object"!=typeof e&&"function"!=typeof e}),Nr;var e}var zr,Lr,Rr,Br={};function $r(){return zr||(zr=1,e=Br,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.eq=function(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}),Br;var e}function Vr(){return Lr||(Lr=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Tr(),r=Cr(),n=$r();function i(e,l,c,u){if(l===e)return!0;switch(typeof l){case"object":return function(e,t,n,i){if(null==t)return!0;if(Array.isArray(t))return o(e,t,n,i);if(t instanceof Map)return function(e,t,r,n){if(0===t.size)return!0;if(!(e instanceof Map))return!1;for(const[i,o]of t.entries())if(!1===r(e.get(i),o,i,e,t,n))return!1;return!0}(e,t,n,i);if(t instanceof Set)return a(e,t,n,i);const l=Object.keys(t);if(null==e||r.isPrimitive(e))return 0===l.length;if(0===l.length)return!0;if(i?.has(t))return i.get(t)===e;i?.set(t,e);try{for(let o=0;o<l.length;o++){const a=l[o];if(!r.isPrimitive(e)&&!(a in e))return!1;if(void 0===t[a]&&void 0!==e[a])return!1;if(null===t[a]&&null!==e[a])return!1;if(!n(e[a],t[a],a,e,t,i))return!1}return!0}finally{i?.delete(t)}}(e,l,c,u);case"function":return Object.keys(l).length>0?i(e,{...l},c,u):n.eq(e,l);default:return t.isObject(e)?"string"!=typeof l||""===l:n.eq(e,l)}}function o(e,t,r,n){if(0===t.length)return!0;if(!Array.isArray(e))return!1;const i=new Set;for(let o=0;o<t.length;o++){const a=t[o];let l=!1;for(let c=0;c<e.length;c++){if(i.has(c))continue;let u=!1;if(r(e[c],a,o,e,t,n)&&(u=!0),u){i.add(c),l=!0;break}}if(!l)return!1}return!0}function a(e,t,r,n){return 0===t.size||e instanceof Set&&o([...e],[...t],r,n)}e.isMatchWith=function e(t,r,n){return"function"!=typeof n?e(t,r,()=>{}):i(t,r,function e(t,r,o,a,l,c){const u=n(t,r,o,a,l,c);return void 0!==u?Boolean(u):i(t,r,e,c)},new Map)},e.isSetMatch=a}(Mr)),Mr}function Kr(){return Rr||(Rr=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Vr();e.isMatch=function(e,r){return t.isMatchWith(e,r,()=>{})}}(kr)),kr}var Fr,Ur={},Wr={},Hr={};function qr(){return Fr||(Fr=1,e=Hr,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.getSymbols=function(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}),Hr;var e}var Yr,Gr={};function Xr(){return Yr||(Yr=1,e=Gr,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.getTag=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}),Gr;var e}var Zr,Qr={};function Jr(){return Zr||(Zr=1,e=Qr,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.argumentsTag="[object Arguments]",e.arrayBufferTag="[object ArrayBuffer]",e.arrayTag="[object Array]",e.bigInt64ArrayTag="[object BigInt64Array]",e.bigUint64ArrayTag="[object BigUint64Array]",e.booleanTag="[object Boolean]",e.dataViewTag="[object DataView]",e.dateTag="[object Date]",e.errorTag="[object Error]",e.float32ArrayTag="[object Float32Array]",e.float64ArrayTag="[object Float64Array]",e.functionTag="[object Function]",e.int16ArrayTag="[object Int16Array]",e.int32ArrayTag="[object Int32Array]",e.int8ArrayTag="[object Int8Array]",e.mapTag="[object Map]",e.numberTag="[object Number]",e.objectTag="[object Object]",e.regexpTag="[object RegExp]",e.setTag="[object Set]",e.stringTag="[object String]",e.symbolTag="[object Symbol]",e.uint16ArrayTag="[object Uint16Array]",e.uint32ArrayTag="[object Uint32Array]",e.uint8ArrayTag="[object Uint8Array]",e.uint8ClampedArrayTag="[object Uint8ClampedArray]"),Qr;var e}var en,tn,rn,nn,on={};function an(){return en||(en=1,e=on,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isTypedArray=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}),on;var e}function ln(){return tn||(tn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=qr(),r=Xr(),n=Jr(),i=Cr(),o=an();function a(e,t,c,u=new Map,s=void 0){const f=s?.(e,t,c,u);if(void 0!==f)return f;if(i.isPrimitive(e))return e;if(u.has(e))return u.get(e);if(Array.isArray(e)){const t=new Array(e.length);u.set(e,t);for(let r=0;r<e.length;r++)t[r]=a(e[r],r,c,u,s);return Object.hasOwn(e,"index")&&(t.index=e.index),Object.hasOwn(e,"input")&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){const t=new Map;u.set(e,t);for(const[r,n]of e)t.set(r,a(n,r,c,u,s));return t}if(e instanceof Set){const t=new Set;u.set(e,t);for(const r of e)t.add(a(r,void 0,c,u,s));return t}if("undefined"!=typeof Buffer&&Buffer.isBuffer(e))return e.subarray();if(o.isTypedArray(e)){const t=new(Object.getPrototypeOf(e).constructor)(e.length);u.set(e,t);for(let r=0;r<e.length;r++)t[r]=a(e[r],r,c,u,s);return t}if(e instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return u.set(e,t),l(t,e,c,u,s),t}if("undefined"!=typeof File&&e instanceof File){const t=new File([e],e.name,{type:e.type});return u.set(e,t),l(t,e,c,u,s),t}if("undefined"!=typeof Blob&&e instanceof Blob){const t=new Blob([e],{type:e.type});return u.set(e,t),l(t,e,c,u,s),t}if(e instanceof Error){const t=new e.constructor;return u.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,l(t,e,c,u,s),t}if(e instanceof Boolean){const t=new Boolean(e.valueOf());return u.set(e,t),l(t,e,c,u,s),t}if(e instanceof Number){const t=new Number(e.valueOf());return u.set(e,t),l(t,e,c,u,s),t}if(e instanceof String){const t=new String(e.valueOf());return u.set(e,t),l(t,e,c,u,s),t}if("object"==typeof e&&function(e){switch(r.getTag(e)){case n.argumentsTag:case n.arrayTag:case n.arrayBufferTag:case n.dataViewTag:case n.booleanTag:case n.dateTag:case n.float32ArrayTag:case n.float64ArrayTag:case n.int8ArrayTag:case n.int16ArrayTag:case n.int32ArrayTag:case n.mapTag:case n.numberTag:case n.objectTag:case n.regexpTag:case n.setTag:case n.stringTag:case n.symbolTag:case n.uint8ArrayTag:case n.uint8ClampedArrayTag:case n.uint16ArrayTag:case n.uint32ArrayTag:return!0;default:return!1}}(e)){const t=Object.create(Object.getPrototypeOf(e));return u.set(e,t),l(t,e,c,u,s),t}return e}function l(e,r,n=e,i,o){const l=[...Object.keys(r),...t.getSymbols(r)];for(let t=0;t<l.length;t++){const c=l[t],u=Object.getOwnPropertyDescriptor(e,c);(null==u||u.writable)&&(e[c]=a(r[c],c,n,i,o))}}e.cloneDeepWith=function(e,t){return a(e,void 0,e,new Map,t)},e.cloneDeepWithImpl=a,e.copyProperties=l}(Wr)),Wr}function cn(){return rn||(rn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ln();e.cloneDeep=function(e){return t.cloneDeepWithImpl(e,void 0,e,new Map,void 0)}}(Ur)),Ur}function un(){return nn||(nn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Kr(),r=cn();e.matches=function(e){return e=r.cloneDeep(e),r=>t.isMatch(r,e)}}(_r)),_r}var sn,fn,dn={},pn={},hn={};function yn(){return sn||(sn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ln(),r=Jr();e.cloneDeepWith=function(e,n){return t.cloneDeepWith(e,(i,o,a,l)=>{const c=n?.(i,o,a,l);if(void 0!==c)return c;if("object"==typeof e)switch(Object.prototype.toString.call(e)){case r.numberTag:case r.stringTag:case r.booleanTag:{const r=new e.constructor(e?.valueOf());return t.copyProperties(r,e),r}case r.argumentsTag:{const r={};return t.copyProperties(r,e),r.length=e.length,r[Symbol.iterator]=e[Symbol.iterator],r}default:return}})}}(hn)),hn}function vn(){return fn||(fn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=yn();e.cloneDeep=function(e){return t.cloneDeepWith(e)}}(pn)),pn}var mn,gn={},bn={};function wn(){return mn||(mn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;e.isIndex=function(e,r=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<r;case"symbol":return!1;case"string":return t.test(e)}}}(bn)),bn}var xn,On,En,Sn,Pn,jn,An,_n={};function kn(){return xn||(xn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Xr();e.isArguments=function(e){return null!==e&&"object"==typeof e&&"[object Arguments]"===t.getTag(e)}}(_n)),_n}function Mn(){return On||(On=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=tt(),r=wn(),n=kn(),i=pt();e.has=function(e,o){let a;if(a=Array.isArray(o)?o:"string"==typeof o&&t.isDeepKey(o)&&null==e?.[o]?i.toPath(o):[o],0===a.length)return!1;let l=e;for(let e=0;e<a.length;e++){const t=a[e];if(!(null!=l&&Object.hasOwn(l,t)||(Array.isArray(l)||n.isArguments(l))&&r.isIndex(t)&&t<l.length))return!1;l=l[t]}return!0}}(gn)),gn}function In(){return En||(En=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Kr(),r=it(),n=vn(),i=ht(),o=Mn();e.matchesProperty=function(e,a){switch(typeof e){case"object":Object.is(e?.valueOf(),-0)&&(e="-0");break;case"number":e=r.toKey(e)}return a=n.cloneDeep(a),function(r){const n=i.get(r,e);return void 0===n?o.has(r,e):void 0===a?void 0===n:t.isMatch(n,a)}}}(dn)),dn}function Tn(){return Sn||(Sn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=sr(),r=jr(),n=un(),i=In();e.iteratee=function(e){if(null==e)return t.identity;switch(typeof e){case"function":return e;case"object":return Array.isArray(e)&&2===e.length?i.matchesProperty(e[0],e[1]):n.matches(e);case"string":case"symbol":case"number":return r.property(e)}}}(Sr)),Sr}function Dn(){return An?jn:(An=1,jn=(Pn||(Pn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=lr(),r=sr(),n=Or(),i=Tn();e.uniqBy=function(e,o=r.identity){return n.isArrayLikeObject(e)?t.uniqBy(Array.from(e),i.iteratee(o)):[]}}(or)),or).uniqBy)}const Nn=r(Dn());function Cn(e,t,r){return!0===t?Nn(e,r):"function"==typeof t?Nn(e,t):e}var zn,Ln,Rn,Bn,$n={exports:{}},Vn={},Kn={exports:{}},Fn={},Un={};function Wn(){return Rn||(Rn=1,Kn.exports="production"===process.env.NODE_ENV?function(){if(zn)return Fn;zn=1;var e="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},t=u.useState,r=u.useEffect,n=u.useLayoutEffect,i=u.useDebugValue;function o(t){var r=t.getSnapshot;t=t.value;try{var n=r();return!e(t,n)}catch(e){return!0}}var a="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,a){var l=a(),c=t({inst:{value:l,getSnapshot:a}}),u=c[0].inst,s=c[1];return n(function(){u.value=l,u.getSnapshot=a,o(u)&&s({inst:u})},[e,l,a]),r(function(){return o(u)&&s({inst:u}),e(function(){o(u)&&s({inst:u})})},[e]),i(l),l};return Fn.useSyncExternalStore=void 0!==u.useSyncExternalStore?u.useSyncExternalStore:a,Fn}():(Ln||(Ln=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=u,r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=t.useState,i=t.useEffect,o=t.useLayoutEffect,a=t.useDebugValue,l=!1,c=!1,s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(u,s){l||void 0===t.startTransition||(l=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var f=s();if(!c){var d=s();r(f,d)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var p=(d=n({inst:{value:f,getSnapshot:s}}))[0].inst,h=d[1];return o(function(){p.value=f,p.getSnapshot=s,e(p)&&h({inst:p})},[u,f,s]),i(function(){return e(p)&&h({inst:p}),u(function(){e(p)&&h({inst:p})})},[u]),a(f),f};Un.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:s,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Un)),Kn.exports}var Hn,qn,Yn={},Gn=(qn||(qn=1,$n.exports="production"===process.env.NODE_ENV?function(){if(Bn)return Vn;Bn=1;var e=u,t=Wn(),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=t.useSyncExternalStore,i=e.useRef,o=e.useEffect,a=e.useMemo,l=e.useDebugValue;return Vn.useSyncExternalStoreWithSelector=function(e,t,c,u,s){var f=i(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=a(function(){function e(e){if(!o){if(o=!0,n=e,e=u(e),void 0!==s&&d.hasValue){var t=d.value;if(s(t,e))return i=t}return i=e}if(t=i,r(n,e))return t;var a=u(e);return void 0!==s&&s(t,a)?(n=e,t):(n=e,i=a)}var n,i,o=!1,a=void 0===c?null:c;return[function(){return e(t())},null===a?void 0:function(){return e(a())}]},[t,c,u,s]);var p=n(e,f[0],f[1]);return o(function(){d.hasValue=!0,d.value=p},[p]),l(p),p},Vn}():(Hn||(Hn=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var e=u,t=Wn(),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=t.useSyncExternalStore,i=e.useRef,o=e.useEffect,a=e.useMemo,l=e.useDebugValue;Yn.useSyncExternalStoreWithSelector=function(e,t,c,u,s){var f=i(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=a(function(){function e(e){if(!o){if(o=!0,n=e,e=u(e),void 0!==s&&d.hasValue){var t=d.value;if(s(t,e))return i=t}return i=e}if(t=i,r(n,e))return t;var a=u(e);return void 0!==s&&s(t,a)?(n=e,t):(n=e,i=a)}var n,i,o=!1,a=void 0===c?null:c;return[function(){return e(t())},null===a?void 0:function(){return e(a())}]},[t,c,u,s]);var p=n(e,f[0],f[1]);return o(function(){d.hasValue=!0,d.value=p},[p]),l(p),p},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Yn)),$n.exports),Xn=p(null),Zn=e=>e,Qn=()=>{var e=d(Xn);return e?e.store.dispatch:Zn},Jn=()=>{},ei=()=>Jn,ti=(e,t)=>e===t;function ri(e){var t=d(Xn),r=h(()=>t?t=>{if(null!=t)return e(t)}:Jn,[t,e]);return Gn.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:ei,t?t.store.getState:Jn,t?t.store.getState:Jn,r,ti)}var ni=(e,t,r)=>{if(1===t.length&&t[0]===r){let t=!1;try{const r={};e(r)===r&&(t=!0)}catch{}if(t){let e;try{throw new Error}catch(t){({stack:e}=t)}console.warn("The result function returned its own inputs without modification. e.g\n`createSelector([state => state.todos], todos => todos)`\nThis could lead to inefficient memoization and unnecessary re-renders.\nEnsure transformation logic is in the result function, and extraction logic is in the input selectors.",{stack:e})}}},ii=(e,t,r)=>{const{memoize:n,memoizeOptions:i}=t,{inputSelectorResults:o,inputSelectorResultsCopy:a}=e,l=n(()=>({}),...i);if(l.apply(null,o)!==l.apply(null,a)){let e;try{throw new Error}catch(t){({stack:e}=t)}console.warn("An input selector returned a different result when passed same arguments.\nThis means your output selector will likely run more frequently than intended.\nAvoid returning a new reference inside your input selector, e.g.\n`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)`",{arguments:r,firstInputs:o,secondInputs:a,stack:e})}},oi={inputStabilityCheck:"once",identityFunctionCheck:"once"},ai=e=>Array.isArray(e)?e:[e];function li(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var ci="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function ui(){return{s:0,v:void 0,o:null,p:null}}function si(e,t={}){let r={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:n}=t;let i,o=0;function a(){let t=r;const{length:a}=arguments;for(let e=0,r=a;e<r;e++){const r=arguments[e];if("function"==typeof r||"object"==typeof r&&null!==r){let e=t.o;null===e&&(t.o=e=new WeakMap);const n=e.get(r);void 0===n?(t=ui(),e.set(r,t)):t=n}else{let e=t.p;null===e&&(t.p=e=new Map);const n=e.get(r);void 0===n?(t=ui(),e.set(r,t)):t=n}}const l=t;let c;if(1===t.s)c=t.v;else if(c=e.apply(null,arguments),o++,n){const e=i?.deref?.()??i;null!=e&&n(e,c)&&(c=e,0!==o&&o--),i="object"==typeof c&&null!==c||"function"==typeof c?new ci(c):c}return l.s=1,l.v=c,c}return a.clearCache=()=>{r={s:0,v:void 0,o:null,p:null},a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function fi(e,...t){const r="function"==typeof e?{memoize:e,memoizeOptions:t}:e,n=(...e)=>{let t,n=0,i=0,o={},a=e.pop();"object"==typeof a&&(o=a,a=e.pop()),function(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const l={...r,...o},{memoize:c,memoizeOptions:u=[],argsMemoize:s=si,argsMemoizeOptions:f=[],devModeChecks:d={}}=l,p=ai(u),h=ai(f),y=function(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){const r=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw new TypeError(`${t}[${r}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}(e),v=c(function(){return n++,a.apply(null,arguments)},...p);let m=!0;const g=s(function(){i++;const e=li(y,arguments);if(t=v.apply(null,e),"production"!==process.env.NODE_ENV){const{identityFunctionCheck:r,inputStabilityCheck:n}=((e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...oi,...t};return{identityFunctionCheck:{shouldRun:"always"===r||"once"===r&&e,run:ni},inputStabilityCheck:{shouldRun:"always"===n||"once"===n&&e,run:ii}}})(m,d);if(r.shouldRun&&r.run(a,e,t),n.shouldRun){const t=li(y,arguments);n.run({inputSelectorResults:e,inputSelectorResultsCopy:t},{memoize:c,memoizeOptions:p},arguments)}m&&(m=!1)}return t},...h);return Object.assign(g,{resultFunc:a,memoizedResultFunc:v,dependencies:y,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>t,recomputations:()=>n,resetRecomputations:()=>{n=0},memoize:c,argsMemoize:s})};return Object.assign(n,{withTypes:()=>n}),n}var di,pi=fi(si),hi=Object.assign((e,t=pi)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const r=Object.keys(e);return t(r.map(t=>e[t]),(...e)=>e.reduce((e,t,n)=>(e[r[n]]=t,e),{}))},{withTypes:()=>hi}),yi={},vi={},mi={};function gi(){return di||(di=1,function(e){function t(e){return"symbol"==typeof e?1:null===e?2:void 0===e?3:e!=e?4:0}Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.compareValues=(e,r,n)=>{if(e!==r){const i=t(e),o=t(r);if(i===o&&0===i){if(e<r)return"desc"===n?1:-1;if(e>r)return"desc"===n?-1:1}return"desc"===n?o-i:i-o}return 0}}(mi)),mi}var bi,wi,xi,Oi={},Ei={};function Si(){return bi||(bi=1,e=Ei,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isSymbol=function(e){return"symbol"==typeof e||e instanceof Symbol}),Ei;var e}function Pi(){return wi||(wi=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Si(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;e.isKey=function(e,i){return!Array.isArray(e)&&(!("number"!=typeof e&&"boolean"!=typeof e&&null!=e&&!t.isSymbol(e))||"string"==typeof e&&(n.test(e)||!r.test(e))||null!=i&&Object.hasOwn(i,e))}}(Oi)),Oi}function ji(){return xi||(xi=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gi(),r=Pi(),n=pt();e.orderBy=function(e,i,o,a){if(null==e)return[];o=a?void 0:o,Array.isArray(e)||(e=Object.values(e)),Array.isArray(i)||(i=null==i?[null]:[i]),0===i.length&&(i=[null]),Array.isArray(o)||(o=null==o?[]:[o]),o=o.map(e=>String(e));const l=(e,t)=>{let r=e;for(let e=0;e<t.length&&null!=r;++e)r=r[t[e]];return r},c=i.map(e=>(Array.isArray(e)&&1===e.length&&(e=e[0]),null==e||"function"==typeof e||Array.isArray(e)||r.isKey(e)?e:{key:e,path:n.toPath(e)}));return e.map(e=>({original:e,criteria:c.map(t=>((e,t)=>null==t||null==e?t:"object"==typeof e&&"key"in e?Object.hasOwn(t,e.key)?t[e.key]:l(t,e.path):"function"==typeof e?e(t):Array.isArray(e)?l(t,e):"object"==typeof t?t[e]:t)(t,e))})).slice().sort((e,r)=>{for(let n=0;n<c.length;n++){const i=t.compareValues(e.criteria[n],r.criteria[n],o[n]);if(0!==i)return i}return 0}).map(e=>e.original)}}(vi)),vi}var Ai,_i={};function ki(){return Ai||(Ai=1,e=_i,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.flatten=function(e,t=1){const r=[],n=Math.floor(t),i=(e,t)=>{for(let o=0;o<e.length;o++){const a=e[o];Array.isArray(a)&&t<n?i(a,t+1):r.push(a)}};return i(e,0),r}),_i;var e}var Mi,Ii,Ti,Di,Ni={};function Ci(){return Mi||(Mi=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=wn(),r=mr(),n=Tr(),i=$r();e.isIterateeCall=function(e,o,a){return!!n.isObject(a)&&!!("number"==typeof o&&r.isArrayLike(a)&&t.isIndex(o)&&o<a.length||"string"==typeof o&&o in a)&&i.eq(a[o],e)}}(Ni)),Ni}function zi(){return Di?Ti:(Di=1,Ti=(Ii||(Ii=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ji(),r=ki(),n=Ci();e.sortBy=function(e,...i){const o=i.length;return o>1&&n.isIterateeCall(e,i[0],i[1])?i=[]:o>2&&n.isIterateeCall(i[0],i[1],i[2])&&(i=[i[0]]),t.orderBy(e,r.flatten(i),["asc"])}}(yi)),yi).sortBy)}const Li=r(zi());var Ri=e=>e.legend.settings,Bi=pi([e=>e.legend.payload,Ri],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?Li(n,r):n});function $i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,r]=y({height:0,left:0,top:0,width:0}),n=v(e=>{if(null!=e){var n=e.getBoundingClientRect(),i={height:n.height,left:n.left,top:n.top,width:n.width};(Math.abs(i.height-t.height)>1||Math.abs(i.left-t.left)>1||Math.abs(i.top-t.top)>1||Math.abs(i.width-t.width)>1)&&r({height:i.height,left:i.left,top:i.top,width:i.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}function Vi(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Ki=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),Fi=()=>Math.random().toString(36).substring(7).split("").join("."),Ui={INIT:`@@redux/INIT${Fi()}`,REPLACE:`@@redux/REPLACE${Fi()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Fi()}`};function Wi(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function Hi(e){let t=typeof e;return"production"!==process.env.NODE_ENV&&(t=function(e){if(void 0===e)return"undefined";if(null===e)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";const r=function(e){return"function"==typeof e.constructor?e.constructor.name:null}(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}(e)),t}function qi(e,t,r){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?Vi(2):`Expected the root reducer to be a function. Instead, received: '${Hi(e)}'`);if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error("production"===process.env.NODE_ENV?Vi(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error("production"===process.env.NODE_ENV?Vi(1):`Expected the enhancer to be a function. Instead, received: '${Hi(r)}'`);return r(qi)(e,t)}let n=e,i=t,o=new Map,a=o,l=0,c=!1;function u(){a===o&&(a=new Map,o.forEach((e,t)=>{a.set(t,e)}))}function s(){if(c)throw new Error("production"===process.env.NODE_ENV?Vi(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function f(e){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?Vi(4):`Expected the listener to be a function. Instead, received: '${Hi(e)}'`);if(c)throw new Error("production"===process.env.NODE_ENV?Vi(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let t=!0;u();const r=l++;return a.set(r,e),function(){if(t){if(c)throw new Error("production"===process.env.NODE_ENV?Vi(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");t=!1,u(),a.delete(r),o=null}}}function d(e){if(!Wi(e))throw new Error("production"===process.env.NODE_ENV?Vi(7):`Actions must be plain objects. Instead, the actual type was: '${Hi(e)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(void 0===e.type)throw new Error("production"===process.env.NODE_ENV?Vi(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if("string"!=typeof e.type)throw new Error("production"===process.env.NODE_ENV?Vi(17):`Action "type" property must be a string. Instead, the actual type was: '${Hi(e.type)}'. Value was: '${e.type}' (stringified)`);if(c)throw new Error("production"===process.env.NODE_ENV?Vi(9):"Reducers may not dispatch actions.");try{c=!0,i=n(i,e)}finally{c=!1}return(o=a).forEach(e=>{e()}),e}return d({type:Ui.INIT}),{dispatch:d,subscribe:f,getState:s,replaceReducer:function(e){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?Vi(10):`Expected the nextReducer to be a function. Instead, received: '${Hi(e)}`);n=e,d({type:Ui.REPLACE})},[Ki]:function(){const e=f;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error("production"===process.env.NODE_ENV?Vi(11):`Expected the observer to be an object. Instead, received: '${Hi(t)}'`);function r(){t.next&&t.next(s())}return r(),{unsubscribe:e(r)}},[Ki](){return this}}}}}function Yi(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}function Gi(e){const t=Object.keys(e),r={};for(let n=0;n<t.length;n++){const i=t[n];"production"!==process.env.NODE_ENV&&void 0===e[i]&&Yi(`No reducer provided for key "${i}"`),"function"==typeof e[i]&&(r[i]=e[i])}const n=Object.keys(r);let i,o;"production"!==process.env.NODE_ENV&&(i={});try{!function(e){Object.keys(e).forEach(t=>{const r=e[t];if(void 0===r(void 0,{type:Ui.INIT}))throw new Error("production"===process.env.NODE_ENV?Vi(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(void 0===r(void 0,{type:Ui.PROBE_UNKNOWN_ACTION()}))throw new Error("production"===process.env.NODE_ENV?Vi(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${Ui.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}(r)}catch(e){o=e}return function(e={},t){if(o)throw o;if("production"!==process.env.NODE_ENV){const n=function(e,t,r,n){const i=Object.keys(t),o=r&&r.type===Ui.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(0===i.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Wi(e))return`The ${o} has unexpected type of "${Hi(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const a=Object.keys(e).filter(e=>!t.hasOwnProperty(e)&&!n[e]);return a.forEach(e=>{n[e]=!0}),r&&r.type===Ui.REPLACE?void 0:a.length>0?`Unexpected ${a.length>1?"keys":"key"} "${a.join('", "')}" found in ${o}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`:void 0}(e,r,t,i);n&&Yi(n)}let a=!1;const l={};for(let i=0;i<n.length;i++){const o=n[i],c=e[o],u=(0,r[o])(c,t);if(void 0===u){const e=t&&t.type;throw new Error("production"===process.env.NODE_ENV?Vi(14):`When called with an action of type ${e?`"${String(e)}"`:"(unknown type)"}, the slice reducer for key "${o}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}l[o]=u,a=a||u!==c}return a=a||n.length!==Object.keys(e).length,a?l:e}}function Xi(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}function Zi(e){return Wi(e)&&"type"in e&&"string"==typeof e.type}var Qi=Symbol.for("immer-nothing"),Ji=Symbol.for("immer-draftable"),eo=Symbol.for("immer-state"),to="production"!==process.env.NODE_ENV?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function ro(e,...t){if("production"!==process.env.NODE_ENV){const r=to[e],n=jo(r)?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var no=Object,io=no.getPrototypeOf,oo="constructor",ao="prototype",lo="configurable",co="enumerable",uo="writable",so="value",fo=e=>!!e&&!!e[eo];function po(e){return!!e&&(vo(e)||Oo(e)||!!e[Ji]||!!e[oo]?.[Ji]||Eo(e)||So(e))}var ho=no[ao][oo].toString(),yo=new WeakMap;function vo(e){if(!e||!Po(e))return!1;const t=io(e);if(null===t||t===no[ao])return!0;const r=no.hasOwnProperty.call(t,oo)&&t[oo];if(r===Object)return!0;if(!jo(r))return!1;let n=yo.get(r);return void 0===n&&(n=Function.toString.call(r),yo.set(r,n)),n===ho}function mo(e,t,r=!0){0===go(e)?(r?Reflect.ownKeys(e):no.keys(e)).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function go(e){const t=e[eo];return t?t.type_:Oo(e)?1:Eo(e)?2:So(e)?3:0}var bo=(e,t,r=go(e))=>2===r?e.has(t):no[ao].hasOwnProperty.call(e,t),wo=(e,t,r=go(e))=>2===r?e.get(t):e[t],xo=(e,t,r,n=go(e))=>{2===n?e.set(t,r):3===n?e.add(r):e[t]=r},Oo=Array.isArray,Eo=e=>e instanceof Map,So=e=>e instanceof Set,Po=e=>"object"==typeof e,jo=e=>"function"==typeof e,Ao=e=>"boolean"==typeof e,_o=e=>e.copy_||e.base_,ko=e=>e.modified_?e.copy_:e.base_;function Mo(e,t){if(Eo(e))return new Map(e);if(So(e))return new Set(e);if(Oo(e))return Array[ao].slice.call(e);const r=vo(e);if(!0===t||"class_only"===t&&!r){const t=no.getOwnPropertyDescriptors(e);delete t[eo];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){const i=r[n],o=t[i];!1===o[uo]&&(o[uo]=!0,o[lo]=!0),(o.get||o.set)&&(t[i]={[lo]:!0,[uo]:!0,[co]:o[co],[so]:e[i]})}return no.create(io(e),t)}{const t=io(e);if(null!==t&&r)return{...e};const n=no.create(t);return no.assign(n,e)}}function Io(e,t=!1){return Do(e)||fo(e)||!po(e)||(go(e)>1&&no.defineProperties(e,{set:To,add:To,clear:To,delete:To}),no.freeze(e),t&&mo(e,(e,t)=>{Io(t,!0)},!1)),e}var To={[so]:function(){ro(2)}};function Do(e){return null===e||!Po(e)||no.isFrozen(e)}var No="MapSet",Co="Patches",zo="ArrayMethods",Lo={};function Ro(e){const t=Lo[e];return t||ro(0,e),t}var Bo,$o=e=>!!Lo[e],Vo=()=>Bo;function Ko(e,t){t&&(e.patchPlugin_=Ro(Co),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Fo(e){Uo(e),e.drafts_.forEach(Ho),e.drafts_=null}function Uo(e){e===Bo&&(Bo=e.parent_)}var Wo=e=>Bo={drafts_:[],parent_:Bo,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:$o(No)?Ro(No):void 0,arrayMethodsPlugin_:$o(zo)?Ro(zo):void 0};function Ho(e){const t=e[eo];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function qo(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(void 0!==e&&e!==r){r[eo].modified_&&(Fo(t),ro(4)),po(e)&&(e=Yo(t,e));const{patchPlugin_:n}=t;n&&n.generateReplacementPatches_(r[eo].base_,e,t)}else e=Yo(t,r);return function(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Io(t,r)}(t,e,!0),Fo(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Qi?e:void 0}function Yo(e,t){if(Do(t))return t;const r=t[eo];if(!r)return ea(t,e.handledSet_,e);if(!Xo(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:t}=r;if(t)for(;t.length>0;)t.pop()(e);Jo(r,e)}return r.copy_}function Go(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Xo=(e,t)=>e.scope_===t,Zo=[];function Qo(e,t,r,n){const i=_o(e),o=e.type_;if(void 0!==n&&wo(i,n,o)===t)return void xo(i,n,r,o);if(!e.draftLocations_){const t=e.draftLocations_=new Map;mo(i,(e,r)=>{if(fo(r)){const n=t.get(r)||[];n.push(e),t.set(r,n)}})}const a=e.draftLocations_.get(t)??Zo;for(const e of a)xo(i,e,r,o)}function Jo(e,t){if(e.modified_&&!e.finalized_&&(3===e.type_||1===e.type_&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:r}=t;if(r){const n=r.getPath(e);n&&r.generatePatches_(e,n,t)}Go(e)}}function ea(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||fo(e)||t.has(e)||!po(e)||Do(e)||(t.add(e),mo(e,(n,i)=>{if(fo(i)){const t=i[eo];if(Xo(t,r)){const r=ko(t);xo(e,n,r,e.type_),Go(t)}}else po(i)&&ea(i,t,r)})),e}var ta={get(e,t){if(t===eo)return e;let r=e.scope_.arrayMethodsPlugin_;const n=1===e.type_&&"string"==typeof t;if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);const i=_o(e);if(!bo(i,t,e.type_))return function(e,t,r){const n=ia(t,r);return n?so in n?n[so]:n.get?.call(e.draft_):void 0}(e,i,t);const o=i[t];if(e.finalized_||!po(o))return o;if(n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&function(e){const t=+e;return Number.isInteger(t)&&String(t)===e}(t))return o;if(o===na(e.base_,t)){aa(e);const r=1===e.type_?+t:t,n=la(0,o,e,r);return e.copy_[r]=n}return o},has:(e,t)=>t in _o(e),ownKeys:e=>Reflect.ownKeys(_o(e)),set(e,t,r){const n=ia(_o(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const n=na(_o(e),t),a=n?.[eo];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(((i=r)===(o=n)?0!==i||1/i==1/o:i!=i&&o!=o)&&(void 0!==r||bo(e.base_,t,e.type_)))return!0;aa(e),oa(e)}var i,o;return e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),function(e,t,r){const{scope_:n}=e;if(fo(r)){const i=r[eo];Xo(i,n)&&i.callbacks_.push(function(){aa(e);const n=ko(i);Qo(e,r,n,t)})}else po(r)&&e.callbacks_.push(function(){const i=_o(e);3===e.type_?i.has(r)&&ea(r,n.handledSet_,n):wo(i,t,e.type_)===r&&n.drafts_.length>1&&!0===(e.assigned_.get(t)??!1)&&e.copy_&&ea(wo(e.copy_,t,e.type_),n.handledSet_,n)})}(e,t,r)),!0},deleteProperty:(e,t)=>(aa(e),void 0!==na(e.base_,t)||t in e.base_?(e.assigned_.set(t,!1),oa(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const r=_o(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{[uo]:!0,[lo]:1!==e.type_||"length"!==t,[co]:n[co],[so]:r[t]}:n},defineProperty(){ro(11)},getPrototypeOf:e=>io(e.base_),setPrototypeOf(){ro(12)}},ra={};for(let e in ta){let t=ta[e];ra[e]=function(){const e=arguments;return e[0]=e[0][0],t.apply(this,e)}}function na(e,t){const r=e[eo];return(r?_o(r):e)[t]}function ia(e,t){if(!(t in e))return;let r=io(e);for(;r;){const e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=io(r)}}function oa(e){e.modified_||(e.modified_=!0,e.parent_&&oa(e.parent_))}function aa(e){e.copy_||(e.assigned_=new Map,e.copy_=Mo(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function la(e,t,r,n){const[i,o]=Eo(t)?Ro(No).proxyMap_(t,r):So(t)?Ro(No).proxySet_(t,r):function(e,t){const r=Oo(e),n={type_:r?1:0,scope_:t?t.scope_:Vo(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=n,o=ta;r&&(i=[n],o=ra);const{revoke:a,proxy:l}=Proxy.revocable(i,o);return n.draft_=l,n.revoke_=a,[l,n]}(t,r);return(r?.scope_??Vo()).drafts_.push(i),o.callbacks_=r?.callbacks_??[],o.key_=n,r&&void 0!==n?function(e,t,r){e.callbacks_.push(function(n){const i=t;if(!i||!Xo(i,n))return;n.mapSetPlugin_?.fixSetContents(i);const o=ko(i);Qo(e,i.draft_??i,o,r),Jo(i,n)})}(r,o,n):o.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(o);const{patchPlugin_:t}=e;o.modified_&&t&&t.generatePatches_(o,[],e)}),i}function ca(e){return fo(e)||ro(10,e),ua(e)}function ua(e){if(!po(e)||Do(e))return e;const t=e[eo];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Mo(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Mo(e,!0);return mo(r,(e,t)=>{xo(r,e,ua(t))},n),t&&(t.finalized_=!1),r}ra.deleteProperty=function(e,t){return"production"!==process.env.NODE_ENV&&isNaN(parseInt(t))&&ro(13),ra.set.call(this,e,t,void 0)},ra.set=function(e,t,r){return"production"!==process.env.NODE_ENV&&"length"!==t&&isNaN(parseInt(t))&&ro(14),ta.set.call(this,e[0],t,r,e[0])};var sa=(new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,r)=>{if(jo(e)&&!jo(t)){const r=t;t=e;const n=this;return function(e=r,...i){return n.produce(e,e=>t.call(this,e,...i))}}let n;if(jo(t)||ro(6),void 0===r||jo(r)||ro(7),po(e)){const i=Wo(this),o=la(0,e,void 0);let a=!0;try{n=t(o),a=!1}finally{a?Fo(i):Uo(i)}return Ko(i,r),qo(n,i)}if(!e||!Po(e)){if(n=t(e),void 0===n&&(n=e),n===Qi&&(n=void 0),this.autoFreeze_&&Io(n,!0),r){const t=[],i=[];Ro(Co).generateReplacementPatches_(e,n,{patches_:t,inversePatches_:i}),r(t,i)}return n}ro(1,e)},this.produceWithPatches=(e,t)=>{if(jo(e))return(t,...r)=>this.produceWithPatches(t,t=>e(t,...r));let r,n;return[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},Ao(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Ao(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Ao(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){po(e)||ro(8),fo(e)&&(e=ca(e));const t=Wo(this),r=la(0,e,void 0);return r[eo].isManual_=!0,Uo(t),r}finishDraft(e,t){const r=e&&e[eo];r&&r.isManual_||ro(9);const{scope_:n}=r;return Ko(n,t),qo(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));const n=Ro(Co).applyPatches_;return fo(e)?n(e,t):this.produce(e,e=>n(e,t))}}).produce;function fa(e){return({dispatch:t,getState:r})=>n=>i=>"function"==typeof i?i(t,r,e):n(i)}var da=fa(),pa=fa,ha="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Xi:Xi.apply(null,arguments)};function ya(e,t){function r(...r){if(t){let n=t(...r);if(!n)throw new Error("production"===process.env.NODE_ENV?ml(0):"prepareAction did not return an object");return{type:e,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:e,payload:r[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=t=>Zi(t)&&t.type===e,r}function va(e){return"function"==typeof e&&"type"in e&&(t=e)&&"function"==typeof t.match;var t}function ma(e,t){let r=0;return{measureTime(e){const t=Date.now();try{return e()}finally{const e=Date.now();r+=e-t}},warnIfExceeded(){r>e&&console.warn(`${t} took ${r}ms, which is more than the warning threshold of ${e}ms. \nIf your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.\nIt is disabled in production builds, so you don't need to worry about that.`)}}}var ga=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function ba(e){return po(e)?sa(e,()=>{}):e}function wa(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function xa(e){return"object"!=typeof e||null==e||Object.isFrozen(e)}function Oa(e,t,r){const n=Ea(e,t,r);return{detectMutations:()=>Sa(e,t,n,r)}}function Ea(e,t=[],r,n="",i=new Set){const o={value:r};if(!e(r)&&!i.has(r)){i.add(r),o.children={};const a=t.length>0;for(const i in r){const l=n?n+"."+i:i;a&&t.some(e=>e instanceof RegExp?e.test(l):l===e)||(o.children[i]=Ea(e,t,r[i],l))}}return o}function Sa(e,t=[],r,n,i=!1,o=""){const a=r?r.value:void 0,l=a===n;if(i&&!l&&!Number.isNaN(n))return{wasMutated:!0,path:o};if(e(a)||e(n))return{wasMutated:!1};const c={};for(let e in r.children)c[e]=!0;for(let e in n)c[e]=!0;const u=t.length>0;for(let i in c){const a=o?o+"."+i:i;if(u&&t.some(e=>e instanceof RegExp?e.test(a):a===e))continue;const c=Sa(e,t,r.children[i],n[i],l,a);if(c.wasMutated)return c}return{wasMutated:!1}}function Pa(e){const t=typeof e;return null==e||"string"===t||"boolean"===t||"number"===t||Array.isArray(e)||Wi(e)}function ja(e,t="",r=Pa,n,i=[],o){let a;if(!r(e))return{keyPath:t||"<root>",value:e};if("object"!=typeof e||null===e)return!1;if(o?.has(e))return!1;const l=null!=n?n(e):Object.entries(e),c=i.length>0;for(const[e,u]of l){const l=t?t+"."+e:e;if(!c||!i.some(e=>e instanceof RegExp?e.test(l):l===e)){if(!r(u))return{keyPath:l,value:u};if("object"==typeof u&&(a=ja(u,l,r,n,i,o),a))return a}}return o&&Aa(e)&&o.add(e),!1}function Aa(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if("object"==typeof t&&null!==t&&!Aa(t))return!1;return!0}function _a(e){return"boolean"==typeof e}var ka=()=>function(e){const{thunk:t=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:i=!0}=e??{};let o=new ga;if(t&&(_a(t)?o.push(da):o.push(pa(t.extraArgument))),"production"!==process.env.NODE_ENV){if(r){let e={};_a(r)||(e=r),o.unshift(function(e={}){if("production"===process.env.NODE_ENV)return()=>e=>t=>e(t);{let t=function(e,t,n,i){return JSON.stringify(e,r(t,i),n)},r=function(e,t){let r=[],n=[];return t||(t=function(e,t){return r[0]===t?"[Circular ~]":"[Circular ~."+n.slice(0,r.indexOf(t)).join(".")+"]"}),function(i,o){if(r.length>0){var a=r.indexOf(this);~a?r.splice(a+1):r.push(this),~a?n.splice(a,1/0,i):n.push(i),~r.indexOf(o)&&(o=t.call(this,i,o))}else r.push(o);return null==e?o:e.call(this,i,o)}},{isImmutable:n=xa,ignoredPaths:i,warnAfter:o=32}=e;const a=Oa.bind(null,n,i);return({getState:e})=>{let r,n=e(),i=a(n);return l=>c=>{const u=ma(o,"ImmutableStateInvariantMiddleware");u.measureTime(()=>{if(n=e(),r=i.detectMutations(),i=a(n),r.wasMutated)throw new Error("production"===process.env.NODE_ENV?ml(19):`A state mutation was detected between dispatches, in the path '${r.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const s=l(c);return u.measureTime(()=>{if(n=e(),r=i.detectMutations(),i=a(n),r.wasMutated)throw new Error("production"===process.env.NODE_ENV?ml(20):`A state mutation was detected inside a dispatch, in the path: ${r.path||""}. Take a look at the reducer(s) handling the action ${t(c)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),u.warnIfExceeded(),s}}}}(e))}if(n){let e={};_a(n)||(e=n),o.push(function(e={}){if("production"===process.env.NODE_ENV)return()=>e=>t=>e(t);{const{isSerializable:t=Pa,getEntries:r,ignoredActions:n=[],ignoredActionPaths:i=["meta.arg","meta.baseQueryMeta"],ignoredPaths:o=[],warnAfter:a=32,ignoreState:l=!1,ignoreActions:c=!1,disableCache:u=!1}=e,s=!u&&WeakSet?new WeakSet:void 0;return e=>u=>f=>{if(!Zi(f))return u(f);const d=u(f),p=ma(a,"SerializableStateInvariantMiddleware");return c||n.length&&-1!==n.indexOf(f.type)||p.measureTime(()=>{const e=ja(f,"",t,r,i,s);if(e){const{keyPath:t,value:r}=e;console.error(`A non-serializable value was detected in an action, in the path: \`${t}\`. Value:`,r,"\nTake a look at the logic that dispatched this action: ",f,"\n(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)","\n(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)")}}),l||(p.measureTime(()=>{const n=ja(e.getState(),"",t,r,o,s);if(n){const{keyPath:e,value:t}=n;console.error(`A non-serializable value was detected in the state, in the path: \`${e}\`. Value:`,t,`\nTake a look at the reducer(s) handling this action type: ${f.type}.\n(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),p.warnIfExceeded()),d}}}(e))}if(i){let e={};_a(i)||(e=i),o.unshift(function(e={}){if("production"===process.env.NODE_ENV)return()=>e=>t=>e(t);const{isActionCreator:t=va}=e;return()=>e=>r=>(t(r)&&console.warn(function(e){const t=e?`${e}`.split("/"):[],r=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.\nMake sure you're calling the action creator before dispatching, i.e. \`dispatch(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`}(r.type)),e(r))}(e))}}return o},Ma="RTK_autoBatch",Ia=()=>e=>({payload:e,meta:{[Ma]:!0}}),Ta=e=>t=>{setTimeout(t,e)},Da=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,o=!1,a=!1;const l=new Set,c="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!=typeof window&&window.requestAnimationFrame?(u=window.requestAnimationFrame,e=>{let t=!1;const r=()=>{t||(t=!0,cancelAnimationFrame(n),clearTimeout(i),e())},n=u(r),i=setTimeout(r,100)}):Ta(10):"callback"===e.type?e.queueNotification:Ta(e.timeout);var u;const s=()=>{a=!1,o&&(o=!1,l.forEach(e=>e()))};return Object.assign({},n,{subscribe(e){const t=n.subscribe(()=>i&&e());return l.add(e),()=>{t(),l.delete(e)}},dispatch(e){try{return i=!e?.meta?.[Ma],o=!i,o&&(a||(a=!0,c(s))),n.dispatch(e)}finally{i=!0}}})};function Na(e){const t={},r=[];let n;const i={addCase(e,o){if("production"!==process.env.NODE_ENV){if(r.length>0)throw new Error("production"===process.env.NODE_ENV?ml(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error("production"===process.env.NODE_ENV?ml(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const a="string"==typeof e?e:e.type;if(!a)throw new Error("production"===process.env.NODE_ENV?ml(28):"`builder.addCase` cannot be called with an empty action type");if(a in t)throw new Error("production"===process.env.NODE_ENV?ml(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${a}'`);return t[a]=o,i},addAsyncThunk(e,o){if("production"!==process.env.NODE_ENV&&n)throw new Error("production"===process.env.NODE_ENV?ml(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return o.pending&&(t[e.pending.type]=o.pending),o.rejected&&(t[e.rejected.type]=o.rejected),o.fulfilled&&(t[e.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:e.settled,reducer:o.settled}),i},addMatcher(e,t){if("production"!==process.env.NODE_ENV&&n)throw new Error("production"===process.env.NODE_ENV?ml(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:e,reducer:t}),i},addDefaultCase(e){if("production"!==process.env.NODE_ENV&&n)throw new Error("production"===process.env.NODE_ENV?ml(31):"`builder.addDefaultCase` can only be called once");return n=e,i}};return e(i),[t,r,n]}var Ca=(e=21)=>{let t="",r=e;for(;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},za=Symbol.for("rtk-slice-createasyncthunk");function La(e,t){return`${e}/${t}`}function Ra({creators:e}={}){const t=e?.asyncThunk?.[za];return function(e){const{name:r,reducerPath:n=r}=e;if(!r)throw new Error("production"===process.env.NODE_ENV?ml(11):"`name` is a required option for createSlice");"undefined"!=typeof process&&"development"===process.env.NODE_ENV&&void 0===e.initialState&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const i=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},o=Object.keys(i),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(e,t){const r="string"==typeof e?e:e.type;if(!r)throw new Error("production"===process.env.NODE_ENV?ml(12):"`context.addCase` cannot be called with an empty action type");if(r in a.sliceCaseReducersByType)throw new Error("production"===process.env.NODE_ENV?ml(13):"`context.addCase` cannot be called with two reducers for the same action type: "+r);return a.sliceCaseReducersByType[r]=t,l},addMatcher:(e,t)=>(a.sliceMatchers.push({matcher:e,reducer:t}),l),exposeAction:(e,t)=>(a.actionCreators[e]=t,l),exposeCaseReducer:(e,t)=>(a.sliceCaseReducersByName[e]=t,l)};function c(){if("production"!==process.env.NODE_ENV&&"object"==typeof e.extraReducers)throw new Error("production"===process.env.NODE_ENV?ml(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[t={},r=[],n]="function"==typeof e.extraReducers?Na(e.extraReducers):[e.extraReducers],i={...t,...a.sliceCaseReducersByType};return function(e){process;let t,[o,l,c]=Na(e=>{for(let t in i)e.addCase(t,i[t]);for(let t of a.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of r)e.addMatcher(t.matcher,t.reducer);n&&e.addDefaultCase(n)});if("function"==typeof e)t=()=>ba(e());else{const r=ba(e);t=()=>r}function u(e=t(),r){let n=[o[r.type],...l.filter(({matcher:e})=>e(r)).map(({reducer:e})=>e)];return 0===n.filter(e=>!!e).length&&(n=[c]),n.reduce((e,t)=>{if(t){if(fo(e)){const n=t(e,r);return void 0===n?e:n}if(po(e))return sa(e,e=>t(e,r));{const n=t(e,r);if(void 0===n){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}}return e},e)}return u.getInitialState=t,u}(e.initialState)}o.forEach(n=>{const o=i[n],a={reducerName:n,type:La(r,n),createNotation:"function"==typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(o)?function({type:e,reducerName:t,createNotation:r},n,i){let o,a;if("reducer"in n){if(r&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(n))throw new Error("production"===process.env.NODE_ENV?ml(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");o=n.reducer,a=n.prepare}else o=n;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?ya(e,a):ya(e))}(a,o,l):function({type:e,reducerName:t},r,n,i){if(!i)throw new Error("production"===process.env.NODE_ENV?ml(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:o,fulfilled:a,pending:l,rejected:c,settled:u,options:s}=r,f=i(e,o,s);n.exposeAction(t,f),a&&n.addCase(f.fulfilled,a),l&&n.addCase(f.pending,l),c&&n.addCase(f.rejected,c),u&&n.addMatcher(f.settled,u),n.exposeCaseReducer(t,{fulfilled:a||Va,pending:l||Va,rejected:c||Va,settled:u||Va})}(a,o,l,t)});const u=e=>e,s=new Map,f=new WeakMap;let d;function p(e,t){return d||(d=c()),d(e,t)}function h(){return d||(d=c()),d.getInitialState()}function y(t,r=!1){function n(e){let i=e[t];if(void 0===i)if(r)i=wa(f,n,h);else if("production"!==process.env.NODE_ENV)throw new Error("production"===process.env.NODE_ENV?ml(15):"selectSlice returned undefined for an uninjected slice reducer");return i}function i(t=u){const n=wa(s,r,()=>new WeakMap);return wa(n,t,()=>{const n={};for(const[i,o]of Object.entries(e.selectors??{}))n[i]=Ba(o,t,()=>wa(f,t,h),r);return n})}return{reducerPath:t,getSelectors:i,get selectors(){return i(n)},selectSlice:n}}const v={name:r,reducer:p,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:h,...y(n),injectInto(e,{reducerPath:t,...r}={}){const i=t??n;return e.inject({reducerPath:i,reducer:p},r),{...v,...y(i,!0)}}};return v}}function Ba(e,t,r,n){function i(i,...o){let a=t(i);if(void 0===a)if(n)a=r();else if("production"!==process.env.NODE_ENV)throw new Error("production"===process.env.NODE_ENV?ml(16):"selectState returned undefined for an uninjected slice reducer");return e(a,...o)}return i.unwrapped=e,i}var $a=Ra();function Va(){}var Ka="listener",Fa="completed",Ua="cancelled",Wa=`task-${Ua}`,Ha=`task-${Fa}`,qa=`${Ka}-${Ua}`,Ya=`${Ka}-${Fa}`,Ga=class{constructor(e){this.code=e,this.message=`task ${Ua} (reason: ${e})`}code;name="TaskAbortError";message},Xa=(e,t)=>{if("function"!=typeof e)throw new TypeError("production"===process.env.NODE_ENV?ml(32):`${t} is not a function`)},Za=()=>{},Qa=(e,t=Za)=>(e.catch(t),e),Ja=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),el=e=>{if(e.aborted)throw new Ga(e.reason)};function tl(e,t){let r=Za;return new Promise((n,i)=>{const o=()=>i(new Ga(e.reason));e.aborted?o():(r=Ja(e,o),t.finally(()=>r()).then(n,i))}).finally(()=>{r=Za})}var rl=e=>t=>Qa(tl(e,t).then(t=>(el(e),t))),nl=e=>{const t=rl(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:il}=Object,ol={},al="listenerMiddleware",ll=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:o}=e;if(t)i=ya(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error("production"===process.env.NODE_ENV?ml(21):"Creating or removing a listener requires one of the known fields for matching an action");return Xa(o,"options.listener"),{predicate:i,type:t,effect:o}},cl=il(e=>{const{type:t,predicate:r,effect:n}=ll(e);return{id:Ca(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error("production"===process.env.NODE_ENV?ml(22):"Unsubscribe not initialized")}}},{withTypes:()=>cl}),ul=(e,t)=>{const{type:r,effect:n,predicate:i}=ll(t);return Array.from(e.values()).find(e=>("string"==typeof r?e.type===r:e.predicate===i)&&e.effect===n)},sl=e=>{e.pending.forEach(e=>{e.abort(qa)})},fl=(e,t,r)=>{try{e(t,r)}catch(e){setTimeout(()=>{throw e},0)}},dl=il(ya(`${al}/add`),{withTypes:()=>dl}),pl=ya(`${al}/removeAll`),hl=il(ya(`${al}/remove`),{withTypes:()=>hl}),yl=(...e)=>{console.error(`${al}/error`,...e)},vl=(e={})=>{const t=new Map,r=new Map,{extra:n,onError:i=yl}=e;Xa(i,"onError");const o=e=>{return(r=ul(t,e)??cl(e)).unsubscribe=()=>t.delete(r.id),t.set(r.id,r),e=>{r.unsubscribe(),e?.cancelActive&&sl(r)};var r};il(o,{withTypes:()=>o});const a=e=>{const r=ul(t,e);return r&&(r.unsubscribe(),e.cancelActive&&sl(r)),!!r};il(a,{withTypes:()=>a});const l=async(e,a,l,c)=>{const u=new AbortController,s=((e,t)=>(r,n)=>Qa((async(r,n)=>{el(t);let i=()=>{};const o=[new Promise((t,n)=>{let o=e({predicate:r,effect:(e,r)=>{r.unsubscribe(),t([e,r.getState(),r.getOriginalState()])}});i=()=>{o(),n()}})];null!=n&&o.push(new Promise(e=>setTimeout(e,n,null)));try{const e=await tl(t,Promise.race(o));return el(t),e}finally{i()}})(r,n)))(o,u.signal),f=[];try{e.pending.add(u),(e=>{const t=r.get(e)??0;r.set(e,t+1)})(e),await Promise.resolve(e.effect(a,il({},l,{getOriginalState:c,condition:(e,t)=>s(e,t).then(Boolean),take:s,delay:nl(u.signal),pause:rl(u.signal),extra:n,signal:u.signal,fork:(d=u.signal,p=f,(e,t)=>{Xa(e,"taskExecutor");const r=new AbortController;var n;n=r,Ja(d,()=>n.abort(d.reason));const i=(async()=>{try{return await Promise.resolve(),{status:"ok",value:await(async()=>{el(d),el(r.signal);const t=await e({pause:rl(r.signal),delay:nl(r.signal),signal:r.signal});return el(r.signal),t})()}}catch(e){return{status:e instanceof Ga?"cancelled":"rejected",error:e}}finally{r.abort(Ha)}})();return t?.autoJoin&&p.push(i.catch(Za)),{result:rl(d)(i),cancel(){r.abort(Wa)}}}),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,r)=>{e!==u&&(e.abort(qa),r.delete(e))})},cancel:()=>{u.abort(qa),e.pending.delete(u)},throwIfCancelled:()=>{el(u.signal)}})))}catch(e){e instanceof Ga||fl(i,e,{raisedBy:"effect"})}finally{await Promise.all(f),u.abort(Ya),(e=>{const t=r.get(e)??1;1===t?r.delete(e):r.set(e,t-1)})(e),e.pending.delete(u)}var d,p},c=((e,t)=>()=>{for(const e of t.keys())sl(e);e.clear()})(t,r);return{middleware:e=>r=>n=>{if(!Zi(n))return r(n);if(dl.match(n))return o(n.payload);if(pl.match(n))return void c();if(hl.match(n))return a(n.payload);let u=e.getState();const s=()=>{if(u===ol)throw new Error("production"===process.env.NODE_ENV?ml(23):`${al}: getOriginalState can only be called synchronously`);return u};let f;try{if(f=r(n),t.size>0){const r=e.getState(),o=Array.from(t.values());for(const t of o){let o=!1;try{o=t.predicate(n,r,u)}catch(e){o=!1,fl(i,e,{raisedBy:"predicate"})}o&&l(t,n,e,s)}}}finally{u=ol}return f},startListening:o,stopListening:a,clearListeners:c}};function ml(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var gl=$a({name:"chartLayout",initialState:{layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,i,o;e.margin.top=null!==(r=t.payload.top)&&void 0!==r?r:0,e.margin.right=null!==(n=t.payload.right)&&void 0!==n?n:0,e.margin.bottom=null!==(i=t.payload.bottom)&&void 0!==i?i:0,e.margin.left=null!==(o=t.payload.left)&&void 0!==o?o:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:bl,setLayout:wl,setChartSize:xl,setScale:Ol}=gl.actions,El=gl.reducer;function Sl(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function Pl(e){return Number.isFinite(e)}function jl(e){return"number"==typeof e&&e>0&&Number.isFinite(e)}function Al(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Al(Object(r),!0).forEach(function(t){kl(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Al(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function kl(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ml(e,t,r){return Mt(e)||Mt(t)?r:Et(t)?vt(e,t,r):"function"==typeof t?t(e):r}var Il=(e,t)=>"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t,Tl=(e,t,r,n)=>{if(n)return e.map(e=>e.coordinate);var i,o,a=e.map(e=>(e.coordinate===t&&(i=!0),e.coordinate===r&&(o=!0),e.coordinate));return i||a.push(t),o||a.push(r),a},Dl=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:i,range:o,scale:a,realScaleType:l,isCategorical:c,categoricalDomain:u,tickCount:s,ticks:f,niceTicks:d,axisType:p}=e;if(!a)return null;var h="scaleBand"===l&&a.bandwidth?a.bandwidth()/2:2,y="category"===i&&a.bandwidth?a.bandwidth()/h:0;return y="angleAxis"===p&&o&&o.length>=2?2*bt(o[0]-o[1])*y:y,f||d?(f||d||[]).map((e,t)=>{var r=n?n.indexOf(e):e,i=a.map(r);return Pl(i)?{coordinate:i+y,value:e,offset:y,index:t}:null}).filter(Tt):c&&u?u.map((e,t)=>{var r=a.map(e);return Pl(r)?{coordinate:r+y,value:e,index:t,offset:y}:null}).filter(Tt):a.ticks&&null!=s?a.ticks(s).map((e,t)=>{var r=a.map(e);return Pl(r)?{coordinate:r+y,value:e,index:t,offset:y}:null}).filter(Tt):a.domain().map((e,t)=>{var r=a.map(e);return Pl(r)?{coordinate:r+y,value:n?n[e]:e,index:t,offset:y}:null}).filter(Tt)},Nl={sign:e=>{var t,r=e.length;if(!(r<=0)){var n=null===(t=e[0])||void 0===t?void 0:t.length;if(!(null==n||n<=0))for(var i=0;i<n;++i)for(var o=0,a=0,l=0;l<r;++l){var c=e[l],u=null==c?void 0:c[i];if(null!=u){var s=u[1],f=u[0],d=wt(s)?f:s;d>=0?(u[0]=o,u[1]=o+=d):(u[0]=a,u[1]=a+=d)}}}},expand:function(e,t){if((n=e.length)>0){for(var r,n,i,o=0,a=e[0].length;o<a;++o){for(i=r=0;r<n;++r)i+=e[r][o][1]||0;if(i)for(r=0;r<n;++r)e[r][o][1]/=i}We(e,t)}},none:We,silhouette:function(e,t){if((r=e.length)>0){for(var r,n=0,i=e[t[0]],o=i.length;n<o;++n){for(var a=0,l=0;a<r;++a)l+=e[a][n][1]||0;i[n][1]+=i[n][0]=-l/2}We(e,t)}},wiggle:function(e,t){if((i=e.length)>0&&(n=(r=e[t[0]]).length)>0){for(var r,n,i,o=0,a=1;a<n;++a){for(var l=0,c=0,u=0;l<i;++l){for(var s=e[t[l]],f=s[a][1]||0,d=(f-(s[a-1][1]||0))/2,p=0;p<l;++p){var h=e[t[p]];d+=(h[a][1]||0)-(h[a-1][1]||0)}c+=f,u+=d*f}r[a-1][1]+=r[a-1][0]=o,c&&(o-=u/c)}r[a-1][1]+=r[a-1][0]=o,We(e,t)}},positive:e=>{var t,r=e.length;if(!(r<=0)){var n=null===(t=e[0])||void 0===t?void 0:t.length;if(!(null==n||n<=0))for(var i=0;i<n;++i)for(var o=0,a=0;a<r;++a){var l=e[a],c=null==l?void 0:l[i];if(null!=c){var u=wt(c[1])?c[0]:c[1];u>=0?(c[0]=o,c[1]=o+=u):(c[0]=0,c[1]=0)}}}}},Cl=(e,t,r)=>{var n,i=null!==(n=Nl[r])&&void 0!==n?n:We,o=function(){var e=W([]),t=He,r=We,n=qe;function i(i){var o,a,l=Array.from(e.apply(this,arguments),Ye),c=l.length,u=-1;for(const e of i)for(o=0,++u;o<c;++o)(l[o][u]=[0,+n(e,l[o].key,u,i)]).data=e;for(o=0,a=ie(t(l));o<c;++o)l[a[o]].index=o;return r(l,a),l}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:W(Array.from(t)),i):e},i.value=function(e){return arguments.length?(n="function"==typeof e?e:W(+e),i):n},i.order=function(e){return arguments.length?(t=null==e?He:"function"==typeof e?e:W(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(r=null==e?We:e,i):r},i}().keys(t).value((e,t)=>Number(Ml(e,t,0))).order(He).offset(i),a=o(e);return a.forEach((r,n)=>{r.forEach((r,i)=>{var o=Ml(e[i],t[n],0);Array.isArray(o)&&2===o.length&&Ot(o[0])&&Ot(o[1])&&(r[0]=o[0],r[1]=o[1])})}),a};function zl(e){return null==e?void 0:String(e)}function Ll(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:o,dataKey:a}=e;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!Mt(i[t.dataKey])){var l=kt(r,"value",i[t.dataKey]);if(l)return l.coordinate+n/2}return null!=r&&r[o]?r[o].coordinate+n/2:null}var c=Ml(i,Mt(a)?t.dataKey:a),u=t.scale.map(c);return Ot(u)?u:null}var Rl=e=>{var{axis:t,ticks:r,offset:n,bandSize:i,entry:o,index:a}=e;if("category"===t.type)return r[a]?r[a].coordinate+n:null;var l=Ml(o,t.dataKey,t.scale.domain()[a]);if(Mt(l))return null;var c=t.scale.map(l);return Ot(c)?c-i/2+n:null},Bl=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,$l=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Vl=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var i=Li(t,e=>e.coordinate),o=1/0,a=1,l=i.length;a<l;a++){var c=i[a],u=i[a-1];o=Math.min(((null==c?void 0:c.coordinate)||0)-((null==u?void 0:u.coordinate)||0),o)}return o===1/0?0:o}return r?void 0:0};function Kl(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:o}=e;return _l(_l({},t),{},{dataKey:r,payload:n,value:i,name:o})}function Fl(e,t){return e?String(e):"string"==typeof t?t:void 0}var Ul=e=>e.layout.width,Wl=e=>e.layout.height,Hl=e=>e.layout.scale,ql=e=>e.layout.margin,Yl=pi(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Gl=pi(e=>e.cartesianAxis.yAxis,e=>Object.values(e));function Xl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Zl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xl(Object(r),!0).forEach(function(t){Ql(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xl(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ql(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Jl,ec,tc,rc,nc,ic=pi([Ul,Wl,ql,e=>e.brush.height,function(e){return Gl(e).reduce((e,t)=>"left"!==t.orientation||t.mirror||t.hide?e:e+("number"==typeof t.width?t.width:60),0)},function(e){return Gl(e).reduce((e,t)=>"right"!==t.orientation||t.mirror||t.hide?e:e+("number"==typeof t.width?t.width:60),0)},function(e){return Yl(e).reduce((e,t)=>"top"!==t.orientation||t.mirror||t.hide?e:e+t.height,0)},function(e){return Yl(e).reduce((e,t)=>"bottom"!==t.orientation||t.mirror||t.hide?e:e+t.height,0)},Ri,e=>e.legend.size],(e,t,r,n,i,o,a,l,c,u)=>{var s={left:(r.left||0)+i,right:(r.right||0)+o},f=Zl(Zl({},{top:(r.top||0)+a,bottom:(r.bottom||0)+l}),s),d=f.bottom;f.bottom+=n,f=((e,t,r)=>{if(t&&r){var{width:n,height:i}=r,{align:o,verticalAlign:a,layout:l}=t;if(("vertical"===l||"horizontal"===l&&"middle"===a)&&"center"!==o&&Ot(e[o]))return _l(_l({},e),{},{[o]:e[o]+(n||0)});if(("horizontal"===l||"vertical"===l&&"center"===o)&&"middle"!==a&&Ot(e[a]))return _l(_l({},e),{},{[a]:e[a]+(i||0)})}return e})(f,c,u);var p=e-f.left-f.right,h=t-f.top-f.bottom;return Zl(Zl({brushBottom:d},f),{},{width:Math.max(p,0),height:Math.max(h,0)})}),oc=pi(ic,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),ac=pi(Ul,Wl,(e,t)=>({x:0,y:0,width:e,height:t})),lc=p(null),cc=()=>null!=d(lc),uc=e=>e.brush,sc=pi([uc,ic,ql],(e,t,r)=>({height:e.height,x:Ot(e.x)?e.x:t.left,y:Ot(e.y)?e.y:t.top+t.height+t.brushBottom-((null==r?void 0:r.bottom)||0),width:Ot(e.width)?e.width:t.width})),fc={},dc={},pc={};function hc(){return Jl||(Jl=1,e=pc,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.debounce=function(e,t,{signal:r,edges:n}={}){let i,o=null;const a=null!=n&&n.includes("leading"),l=null==n||n.includes("trailing"),c=()=>{null!==o&&(e.apply(i,o),i=void 0,o=null)};let u=null;const s=()=>{null!=u&&clearTimeout(u),u=setTimeout(()=>{u=null,l&&c(),f()},t)},f=()=>{null!==u&&(clearTimeout(u),u=null),i=void 0,o=null},d=function(...e){if(r?.aborted)return;i=this,o=e;const t=null==u;s(),a&&t&&c()};return d.schedule=s,d.cancel=f,d.flush=()=>{c()},r?.addEventListener("abort",f,{once:!0}),d}),pc;var e}function yc(){return ec||(ec=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=hc();e.debounce=function(e,r=0,n={}){"object"!=typeof n&&(n={});const{leading:i=!1,trailing:o=!0,maxWait:a}=n,l=Array(2);let c;i&&(l[0]="leading"),o&&(l[1]="trailing");let u=null;const s=t.debounce(function(...t){c=e.apply(this,t),u=null},r,{edges:l}),f=function(...t){return null!=a&&(null===u&&(u=Date.now()),Date.now()-u>=a)?(c=e.apply(this,t),u=Date.now(),s.cancel(),s.schedule(),c):(s.apply(this,t),c)};return f.cancel=s.cancel,f.flush=()=>(s.flush(),c),f}}(dc)),dc}function vc(){return nc?rc:(nc=1,rc=(tc||(tc=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=yc();e.throttle=function(e,r=0,n={}){const{leading:i=!0,trailing:o=!0}=n;return t.debounce(e,r,{leading:i,maxWait:r,trailing:o})}}(fc)),fc).throttle)}const mc=r(vc());var gc=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];if("undefined"!=typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(t.replace(/%s/g,()=>n[o++]))}},bc={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},wc=(e,t,r)=>{var{width:n=bc.width,height:i=bc.height,aspect:o,maxHeight:a}=r,l=xt(n)?e:Number(n),c=xt(i)?t:Number(i);return o&&o>0&&(l?c=l/o:c&&(l=c*o),a&&null!=c&&c>a&&(c=a)),{calculatedWidth:l,calculatedHeight:c}},xc={width:0,height:0,overflow:"visible"},Oc={width:0,overflowX:"visible"},Ec={height:0,overflowY:"visible"},Sc={},Pc=e=>{var{width:t,height:r}=e,n=xt(t),i=xt(r);return n&&i?xc:n?Oc:i?Ec:Sc};function jc(){return jc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jc.apply(null,arguments)}function Ac(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ac(Object(r),!0).forEach(function(t){kc(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ac(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function kc(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Mc=p(bc.initialDimension);function Ic(e){var{children:t,width:r,height:n}=e,i=h(()=>({width:r,height:n}),[r,n]);return function(e){return jl(e.width)&&jl(e.height)}(i)?c.createElement(Mc.Provider,{value:i},t):null}var Tc=()=>d(Mc),Dc=f((e,t)=>{var{aspect:r,initialDimension:n=bc.initialDimension,width:i,height:o,minWidth:a=bc.minWidth,minHeight:l,maxHeight:u,children:s,debounce:f=bc.debounce,id:d,className:p,onResize:h,style:w={}}=e,x=m(null),O=m();O.current=h,g(t,()=>x.current);var[E,S]=y({containerWidth:n.width,containerHeight:n.height}),P=v((e,t)=>{S(r=>{var n=Math.round(e),i=Math.round(t);return r.containerWidth===n&&r.containerHeight===i?r:{containerWidth:n,containerHeight:i}})},[]);b(()=>{if(null==x.current||"undefined"==typeof ResizeObserver)return Dt;var e=e=>{var t,r=e[0];if(null!=r){var{width:n,height:i}=r.contentRect;P(n,i),null===(t=O.current)||void 0===t||t.call(O,n,i)}};f>0&&(e=mc(e,f,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),{width:r,height:n}=x.current.getBoundingClientRect();return P(r,n),t.observe(x.current),()=>{t.disconnect()}},[P,f]);var{containerWidth:j,containerHeight:A}=E;gc(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:_,calculatedHeight:M}=wc(j,A,{width:i,height:o,aspect:r,maxHeight:u});return gc(null!=_&&_>0||null!=M&&M>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",_,M,i,o,a,l,r),c.createElement("div",{id:d?"".concat(d):void 0,className:k("recharts-responsive-container",p),style:_c(_c({},w),{},{width:i,height:o,minWidth:a,minHeight:l,maxHeight:u}),ref:x},c.createElement("div",{style:Pc({width:i,height:o})},c.createElement(Ic,{width:_,height:M},s)))}),Nc=f((e,t)=>{var r=Tc();if(jl(r.width)&&jl(r.height))return e.children;var{width:n,height:i}=function(e){var{width:t,height:r,aspect:n}=e,i=t,o=r;return void 0===i&&void 0===o?(i=bc.width,o=bc.height):void 0===i?i=n&&n>0?void 0:bc.width:void 0===o&&(o=n&&n>0?void 0:bc.height),{width:i,height:o}}({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:o,calculatedHeight:a}=wc(void 0,void 0,{width:n,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return Ot(o)&&Ot(a)?c.createElement(Ic,{width:o,height:a},e.children):c.createElement(Dc,jc({},e,{width:n,height:i,ref:t}))});function Cc(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var zc=()=>{var e,t=cc(),r=ri(oc),n=ri(sc),i=null===(e=ri(uc))||void 0===e?void 0:e.padding;return t&&n&&i?{width:n.width-i.left-i.right,height:n.height-i.top-i.bottom,x:i.left,y:i.top}:r},Lc={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},Rc=()=>{var e;return null!==(e=ri(ic))&&void 0!==e?e:Lc},Bc=()=>ri(Ul),$c=()=>ri(Wl),Vc=e=>e.layout.layoutType,Kc=()=>ri(Vc),Fc=()=>{var e=Kc();if("horizontal"===e||"vertical"===e)return e},Uc=e=>{var t=e.layout.layoutType;if("centric"===t||"radial"===t)return t},Wc=e=>{var t=Qn(),r=cc(),{width:n,height:i}=e,o=Tc(),a=n,l=i;return o&&(a=o.width>0?o.width:n,l=o.height>0?o.height:i),b(()=>{!r&&jl(a)&&jl(l)&&t(xl({width:a,height:l}))},[t,r,a,l]),null},Hc=Symbol.for("immer-nothing"),qc=Symbol.for("immer-draftable"),Yc=Symbol.for("immer-state"),Gc="production"!==process.env.NODE_ENV?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function Xc(e,...t){if("production"!==process.env.NODE_ENV){const r=Gc[e],n="function"==typeof r?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Zc=Object.getPrototypeOf;function Qc(e){return!!e&&!!e[Yc]}function Jc(e){return!!e&&(ru(e)||Array.isArray(e)||!!e[qc]||!!e.constructor?.[qc]||lu(e)||cu(e))}var eu=Object.prototype.constructor.toString(),tu=new WeakMap;function ru(e){if(!e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);if(null===t||t===Object.prototype)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if("function"!=typeof r)return!1;let n=tu.get(r);return void 0===n&&(n=Function.toString.call(r),tu.set(r,n)),n===eu}function nu(e,t,r=!0){0===iu(e)?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function iu(e){const t=e[Yc];return t?t.type_:Array.isArray(e)?1:lu(e)?2:cu(e)?3:0}function ou(e,t){return 2===iu(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function au(e,t,r){const n=iu(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function lu(e){return e instanceof Map}function cu(e){return e instanceof Set}function uu(e){return e.copy_||e.base_}function su(e,t){if(lu(e))return new Map(e);if(cu(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=ru(e);if(!0===t||"class_only"===t&&!r){const t=Object.getOwnPropertyDescriptors(e);delete t[Yc];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){const i=r[n],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Zc(e),t)}{const t=Zc(e);if(null!==t&&r)return{...e};const n=Object.create(t);return Object.assign(n,e)}}function fu(e,t=!1){return pu(e)||Qc(e)||!Jc(e)||(iu(e)>1&&Object.defineProperties(e,{set:du,add:du,clear:du,delete:du}),Object.freeze(e),t&&Object.values(e).forEach(e=>fu(e,!0))),e}var du={value:function(){Xc(2)}};function pu(e){return null===e||"object"!=typeof e||Object.isFrozen(e)}var hu,yu={};function vu(e){const t=yu[e];return t||Xc(0,e),t}function mu(){return hu}function gu(e,t){t&&(vu("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function bu(e){wu(e),e.drafts_.forEach(Ou),e.drafts_=null}function wu(e){e===hu&&(hu=e.parent_)}function xu(e){return hu={drafts_:[],parent_:hu,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Ou(e){const t=e[Yc];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function Eu(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return void 0!==e&&e!==r?(r[Yc].modified_&&(bu(t),Xc(4)),Jc(e)&&(e=Su(t,e),t.parent_||ju(t,e)),t.patches_&&vu("Patches").generateReplacementPatches_(r[Yc].base_,e,t.patches_,t.inversePatches_)):e=Su(t,r,[]),bu(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Hc?e:void 0}function Su(e,t,r){if(pu(t))return t;const n=e.immer_.shouldUseStrictIteration(),i=t[Yc];if(!i)return nu(t,(n,o)=>Pu(e,i,t,n,o,r),n),t;if(i.scope_!==e)return t;if(!i.modified_)return ju(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const t=i.copy_;let o=t,a=!1;3===i.type_&&(o=new Set(t),t.clear(),a=!0),nu(o,(n,o)=>Pu(e,i,t,n,o,r,a),n),ju(e,t,!1),r&&e.patches_&&vu("Patches").generatePatches_(i,r,e.patches_,e.inversePatches_)}return i.copy_}function Pu(e,t,r,n,i,o,a){if(null==i)return;if("object"!=typeof i&&!a)return;const l=pu(i);if(!l||a){if("production"!==process.env.NODE_ENV&&i===r&&Xc(5),Qc(i)){const a=Su(e,i,o&&t&&3!==t.type_&&!ou(t.assigned_,n)?o.concat(n):void 0);if(au(r,n,a),!Qc(a))return;e.canAutoFreeze_=!1}else a&&r.add(i);if(Jc(i)&&!l){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;if(t&&t.base_&&t.base_[n]===i&&l)return;Su(e,i),t&&t.scope_.parent_||"symbol"==typeof n||!(lu(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))||ju(e,i)}}}function ju(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&fu(t,r)}var Au={get(e,t){if(t===Yc)return e;const r=uu(e);if(!ou(r,t))return function(e,t,r){const n=Mu(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}(e,r,t);const n=r[t];return e.finalized_||!Jc(n)?n:n===ku(e.base_,t)?(Tu(e),e.copy_[t]=Du(n,e)):n},has:(e,t)=>t in uu(e),ownKeys:e=>Reflect.ownKeys(uu(e)),set(e,t,r){const n=Mu(uu(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const n=ku(uu(e),t),a=n?.[Yc];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(((i=r)===(o=n)?0!==i||1/i==1/o:i!=i&&o!=o)&&(void 0!==r||ou(e.base_,t)))return!0;Tu(e),Iu(e)}var i,o;return e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==ku(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Tu(e),Iu(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const r=uu(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){Xc(11)},getPrototypeOf:e=>Zc(e.base_),setPrototypeOf(){Xc(12)}},_u={};function ku(e,t){const r=e[Yc];return(r?uu(r):e)[t]}function Mu(e,t){if(!(t in e))return;let r=Zc(e);for(;r;){const e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Zc(r)}}function Iu(e){e.modified_||(e.modified_=!0,e.parent_&&Iu(e.parent_))}function Tu(e){e.copy_||(e.copy_=su(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function Du(e,t){const r=lu(e)?vu("MapSet").proxyMap_(e,t):cu(e)?vu("MapSet").proxySet_(e,t):function(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:mu(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,o=Au;r&&(i=[n],o=_u);const{revoke:a,proxy:l}=Proxy.revocable(i,o);return n.draft_=l,n.revoke_=a,l}(e,t);return(t?t.scope_:mu()).drafts_.push(r),r}function Nu(e){if(!Jc(e)||pu(e))return e;const t=e[Yc];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=su(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=su(e,!0);return nu(r,(e,t)=>{au(r,e,Nu(t))},n),t&&(t.finalized_=!1),r}nu(Au,(e,t)=>{_u[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),_u.deleteProperty=function(e,t){return"production"!==process.env.NODE_ENV&&isNaN(parseInt(t))&&Xc(13),_u.set.call(this,e,t,void 0)},_u.set=function(e,t,r){return"production"!==process.env.NODE_ENV&&"length"!==t&&isNaN(parseInt(t))&&Xc(14),Au.set.call(this,e[0],t,r,e[0])},new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(e,t,r)=>{if("function"==typeof e&&"function"!=typeof t){const r=t;t=e;const n=this;return function(e=r,...i){return n.produce(e,e=>t.call(this,e,...i))}}let n;if("function"!=typeof t&&Xc(6),void 0!==r&&"function"!=typeof r&&Xc(7),Jc(e)){const i=xu(this),o=Du(e,void 0);let a=!0;try{n=t(o),a=!1}finally{a?bu(i):wu(i)}return gu(i,r),Eu(n,i)}if(!e||"object"!=typeof e){if(n=t(e),void 0===n&&(n=e),n===Hc&&(n=void 0),this.autoFreeze_&&fu(n,!0),r){const t=[],i=[];vu("Patches").generateReplacementPatches_(e,n,t,i),r(t,i)}return n}Xc(1,e)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...r)=>this.produceWithPatches(t,t=>e(t,...r));let r,n;return[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),"boolean"==typeof e?.useStrictIteration&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){var t;Jc(e)||Xc(8),Qc(e)&&(Qc(t=e)||Xc(10,t),e=Nu(t));const r=xu(this),n=Du(e,void 0);return n[Yc].isManual_=!0,wu(r),n}finishDraft(e,t){const r=e&&e[Yc];r&&r.isManual_||Xc(9);const{scope_:n}=r;return gu(n,t),Eu(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));const n=vu("Patches").applyPatches_;return Qc(e)?n(e,t):this.produce(e,e=>n(e,t))}};var Cu,zu,Lu,Ru=$a({name:"legend",initialState:{settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:Ia()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,i=ca(e).payload.indexOf(r);i>-1&&(e.payload[i]=n)},prepare:Ia()},removeLegendPayload:{reducer(e,t){var r=ca(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:Ia()}}}),{setLegendSize:Bu,setLegendSettings:$u,addLegendPayload:Vu,replaceLegendPayload:Ku,removeLegendPayload:Fu}=Ru.actions,Uu=Ru.reducer,Wu={},Hu={};Lu||(Lu=1,"production"===process.env.NODE_ENV?function(){if(Cu)return Wu;Cu=1;var e="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},t=u.useSyncExternalStore,r=u.useRef,n=u.useEffect,i=u.useMemo,o=u.useDebugValue;Wu.useSyncExternalStoreWithSelector=function(a,l,c,u,s){var f=r(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=i(function(){function t(t){if(!i){if(i=!0,r=t,t=u(t),void 0!==s&&d.hasValue){var o=d.value;if(s(o,t))return n=o}return n=t}if(o=n,e(r,t))return o;var a=u(t);return void 0!==s&&s(o,a)?(r=t,o):(r=t,n=a)}var r,n,i=!1,o=void 0===c?null:c;return[function(){return t(l())},null===o?void 0:function(){return t(o())}]},[l,c,u,s]);var p=t(a,f[0],f[1]);return n(function(){d.hasValue=!0,d.value=p},[p]),o(p),p}}():zu||(zu=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var e="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},t=u.useSyncExternalStore,r=u.useRef,n=u.useEffect,i=u.useMemo,o=u.useDebugValue;Hu.useSyncExternalStoreWithSelector=function(a,l,c,u,s){var f=r(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=i(function(){function t(t){if(!i){if(i=!0,r=t,t=u(t),void 0!==s&&d.hasValue){var o=d.value;if(s(o,t))return n=o}return n=t}if(o=n,e(r,t))return o;var a=u(t);return void 0!==s&&s(o,a)?(r=t,o):(r=t,n=a)}var r,n,i=!1,o=void 0===c?null:c;return[function(){return t(l())},null===o?void 0:function(){return t(o())}]},[l,c,u,s]);var p=t(a,f[0],f[1]);return n(function(){d.hasValue=!0,d.value=p},[p]),o(p),p},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()));var qu={notify(){},get:()=>[]},Yu=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),Gu=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),Xu=(()=>Yu||Gu?c.useLayoutEffect:c.useEffect)();function Zu(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Qu(e,t){if(Zu(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!Zu(e[r[n]],t[r[n]]))return!1;return!0}var Ju=Symbol.for("react-redux-context"),es="undefined"!=typeof globalThis?globalThis:{};function ts(){if(!c.createContext)return{};const e=es[Ju]??=new Map;let t=e.get(c.createContext);return t||(t=c.createContext(null),"production"!==process.env.NODE_ENV&&(t.displayName="ReactRedux"),e.set(c.createContext,t)),t}var rs=ts(),ns=function(e){const{children:t,context:r,serverState:n,store:i}=e,o=c.useMemo(()=>{const t=function(e){let t,r=qu,n=0,i=!1;function o(){c.onStateChange&&c.onStateChange()}function a(){n++,t||(t=e.subscribe(o),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){(()=>{let t=e;for(;t;)t.callback(),t=t.next})()},get(){const t=[];let r=e;for(;r;)t.push(r),r=r.next;return t},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){n&&null!==e&&(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}())}function l(){n--,t&&0===n&&(t(),t=void 0,r.clear(),r=qu)}const c={addNestedSub:function(e){a();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,a())},tryUnsubscribe:function(){i&&(i=!1,l())},getListeners:()=>r};return c}(i),r={store:i,subscription:t,getServerState:n?()=>n:void 0};if("production"===process.env.NODE_ENV)return r;{const{identityFunctionCheck:t="once",stabilityCheck:n="once"}=e;return Object.assign(r,{stabilityCheck:n,identityFunctionCheck:t})}},[i,n]),a=c.useMemo(()=>i.getState(),[i]);return Xu(()=>{const{subscription:e}=o;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[o,a]),c.createElement((r||rs).Provider,{value:o},t)},is=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function os(e,t){return null==e&&null==t||("number"==typeof e&&"number"==typeof t?e===t||e!=e&&t!=t:e===t)}function as(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(is.has(n)){if(null==e[n]&&null==t[n])continue;if(!Qu(e[n],t[n]))return!1}else if(!os(e[n],t[n]))return!1;return!0}var ls=["contextPayload"];function cs(){return cs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cs.apply(null,arguments)}function us(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ss(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?us(Object(r),!0).forEach(function(t){fs(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):us(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function fs(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ds(e){return e.value}function ps(e){var{contextPayload:t}=e,r=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,ls),n=Cn(t,e.payloadUniqBy,ds),i=ss(ss({},r),{},{payload:n});return c.isValidElement(e.content)?c.cloneElement(e.content,i):c.createElement("function"==typeof e.content?e.content:ir,i)}function hs(e){var t=Qn();return b(()=>{t($u(e))},[t,e]),null}function ys(e){var t=Qn();return b(()=>(t(Bu(e)),()=>{t(Bu({width:0,height:0}))}),[t,e]),null}var vs={align:"center",iconSize:14,inactiveColor:"#ccc",itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"};function ms(e){var t=qt(e,vs),r=ri(Bi),n=d(U),i=ri(e=>e.layout.margin),{width:o,height:a,wrapperStyle:l,portal:u}=t,[s,f]=$i([r]),p=Bc(),h=$c();if(null==p||null==h)return null;var y,v,m=(v=a,"vertical"===(y=t.layout)&&null!=v?{height:v}:"horizontal"===y?{width:o||p-((null==i?void 0:i.left)||0)-((null==i?void 0:i.right)||0)}:null),g=u?l:ss(ss({position:"absolute",width:(null==m?void 0:m.width)||o||"auto",height:(null==m?void 0:m.height)||a||"auto"},function(e,t,r,n,i,o){var a,l,{layout:c,align:u,verticalAlign:s}=t;return(!e||null==e.left&&null==e.right)&&(a="center"===u&&"vertical"===c?{left:((n||0)-o.width)/2}:"right"===u?{right:r&&r.right||0}:{left:r&&r.left||0}),(!e||null==e.top&&null==e.bottom)&&(l="middle"===s?{top:((i||0)-o.height)/2}:"bottom"===s?{bottom:r&&r.bottom||0}:{top:r&&r.top||0}),ss(ss({},a),l)}(l,t,i,p,h,s)),l),b=null!=u?u:n;if(null==b||null==r)return null;var w=c.createElement("div",{className:"recharts-legend-wrapper",style:g,ref:f},c.createElement(hs,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!u&&c.createElement(ys,{width:s.width,height:s.height}),c.createElement(ps,cs({},t,m,{margin:i,chartWidth:p,chartHeight:h,contextPayload:r})));return A(w,b)}var gs=c.memo(ms,as);function bs(){return bs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bs.apply(null,arguments)}function ws(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function xs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ws(Object(r),!0).forEach(function(t){Os(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ws(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Os(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Es(e){return Array.isArray(e)&&Et(e[0])&&Et(e[1])?e.join(" ~ "):e}gs.displayName="Legend";var Ss={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1},Ps=e=>{var{separator:t=Ss.separator,contentStyle:r,itemStyle:n,labelStyle:i=Ss.labelStyle,payload:o,formatter:a,itemSorter:l,wrapperClassName:u,labelClassName:s,label:f,labelFormatter:d,accessibilityLayer:p=Ss.accessibilityLayer}=e,h=xs(xs({},Ss.contentStyle),r),y=xs({margin:0},i),v=!Mt(f),m=v?f:"",g=k("recharts-default-tooltip",u),b=k("recharts-tooltip-label",s);return v&&d&&null!=o&&(m=d(f,o)),c.createElement("div",bs({className:g,style:h},p?{role:"status","aria-live":"assertive"}:{}),c.createElement("p",{className:b,style:y},c.isValidElement(m)?m:"".concat(m)),(()=>{if(o&&o.length){var e=function(e,t){return null==t?e:Li(e,t)}(o,l),r=e.map((e,r)=>{if(!e||"none"===e.type)return null;var i=e.formatter||a||Es,{value:l,name:u}=e,s=l,f=u;if(i){var d=i(l,u,e,r,o);if(Array.isArray(d))[s,f]=d;else{if(null==d)return null;s=d}}var p=xs(xs({},Ss.itemStyle),{},{color:e.color||Ss.itemStyle.color},n);return c.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(r),style:p},Et(f)?c.createElement("span",{className:"recharts-tooltip-item-name"},f):null,Et(f)?c.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,c.createElement("span",{className:"recharts-tooltip-item-value"},s),c.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))});return c.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},r)}return null})())},js="recharts-tooltip-wrapper",As={visibility:"hidden"};function _s(e){var{coordinate:t,translateX:r,translateY:n}=e;return k(js,{["".concat(js,"-right")]:Ot(r)&&t&&Ot(t.x)&&r>=t.x,["".concat(js,"-left")]:Ot(r)&&t&&Ot(t.x)&&r<t.x,["".concat(js,"-bottom")]:Ot(n)&&t&&Ot(t.y)&&n>=t.y,["".concat(js,"-top")]:Ot(n)&&t&&Ot(t.y)&&n<t.y})}function ks(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offset:i,position:o,reverseDirection:a,tooltipDimension:l,viewBox:c,viewBoxDimension:u}=e;if(o&&Ot(o[n]))return o[n];var s=r[n]-l-(i>0?i:0),f=r[n]+i;if(t[n])return a[n]?s:f;var d=c[n];return null==d?0:a[n]?s<d?Math.max(f,d):Math.max(s,d):null==u?0:f+l>d+u?Math.max(s,d):Math.max(f,d)}var Ms=!("undefined"!=typeof window&&window.document&&Boolean(window.document.createElement)&&window.setTimeout);function Is(){var[e,t]=y(()=>!Ms&&!!window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches);return b(()=>{if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion: reduce)"),r=()=>{t(e.matches)};return e.addEventListener("change",r),()=>{e.removeEventListener("change",r)}}},[]),e}function Ts(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ds(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ts(Object(r),!0).forEach(function(t){Ns(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ts(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ns(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cs(e){if(!e.prefersReducedMotion||"auto"!==e.isAnimationActive)return e.isAnimationActive&&e.active?"transform ".concat(e.animationDuration,"ms ").concat(e.animationEasing):void 0}function zs(e){var t,r,n,i,o,a,l=Is(),[u,s]=c.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));c.useEffect(()=>{var t=t=>{var r,n,i,o;"Escape"===t.key&&s({dismissed:!0,dismissedAtCoordinate:{x:null!==(r=null===(n=e.coordinate)||void 0===n?void 0:n.x)&&void 0!==r?r:0,y:null!==(i=null===(o=e.coordinate)||void 0===o?void 0:o.y)&&void 0!==i?i:0}})};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[null===(t=e.coordinate)||void 0===t?void 0:t.x,null===(r=e.coordinate)||void 0===r?void 0:r.y]),!u.dismissed||(null!==(n=null===(i=e.coordinate)||void 0===i?void 0:i.x)&&void 0!==n?n:0)===u.dismissedAtCoordinate.x&&(null!==(o=null===(a=e.coordinate)||void 0===a?void 0:a.y)&&void 0!==o?o:0)===u.dismissedAtCoordinate.y||s(Ds(Ds({},u),{},{dismissed:!1}));var{cssClasses:f,cssProperties:d}=function(e){var t,r,n,{allowEscapeViewBox:i,coordinate:o,offsetTop:a,offsetLeft:l,position:c,reverseDirection:u,tooltipBox:s,useTranslate3d:f,viewBox:d}=e;return t=s.height>0&&s.width>0&&o?function(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}({translateX:r=ks({allowEscapeViewBox:i,coordinate:o,key:"x",offset:l,position:c,reverseDirection:u,tooltipDimension:s.width,viewBox:d,viewBoxDimension:d.width}),translateY:n=ks({allowEscapeViewBox:i,coordinate:o,key:"y",offset:a,position:c,reverseDirection:u,tooltipDimension:s.height,viewBox:d,viewBoxDimension:d.height}),useTranslate3d:f}):As,{cssProperties:t,cssClasses:_s({translateX:r,translateY:n,coordinate:o})}}({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:"number"==typeof e.offset?e.offset:e.offset.x,offsetTop:"number"==typeof e.offset?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:{height:e.lastBoundingBox.height,width:e.lastBoundingBox.width},useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),p=e.hasPortalFromProps?{}:Ds(Ds({transition:Cs({prefersReducedMotion:l,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},d),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),h=Ds(Ds({},p),{},{visibility:!u.dismissed&&e.active&&e.hasPayload?"visible":"hidden"},e.wrapperStyle);return c.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:f,style:h,ref:e.innerRef},e.children)}var Ls=c.memo(zs),Rs=()=>{var e;return null===(e=ri(e=>e.rootProps.accessibilityLayer))||void 0===e||e};function Bs(){return Bs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bs.apply(null,arguments)}function $s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Vs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$s(Object(r),!0).forEach(function(t){Ks(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ks(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Fs={curveBasisClosed:function(e){return new Te(e)},curveBasisOpen:function(e){return new De(e)},curveBasis:function(e){return new Ie(e)},curveBumpX:function(e){return new fe(e,!0)},curveBumpY:function(e){return new fe(e,!1)},curveLinearClosed:function(e){return new Ne(e)},curveLinear:ae,curveMonotoneX:function(e){return new Be(e)},curveMonotoneY:function(e){return new $e(e)},curveNatural:function(e){return new Ke(e)},curveStep:function(e){return new Ue(e,.5)},curveStepAfter:function(e){return new Ue(e,1)},curveStepBefore:function(e){return new Ue(e,0)}},Us=e=>Pl(e.x)&&Pl(e.y),Ws=e=>null!=e.base&&Us(e.base)&&Us(e),Hs=e=>e.x,qs=e=>e.y,Ys={connectNulls:!1,type:"linear"},Gs=e=>{var{className:t,points:r,path:n,pathRef:i}=e,o=Kc();if(!(r&&r.length||n))return null;var a=r&&r.length?(e=>{var{type:t=Ys.type,points:r=[],baseLine:n,layout:i,connectNulls:o=Ys.connectNulls}=e,a=((e,t)=>{if("function"==typeof e)return e;var r="curve".concat(It(e));if(("curveMonotone"===r||"curveBump"===r)&&t){var n=Fs["".concat(r).concat("vertical"===t?"Y":"X")];if(n)return n}return Fs[r]||ae})(t,i),l=o?r.filter(Us):r;if(Array.isArray(n)){var c=r.map((e,t)=>Vs(Vs({},e),{},{base:n[t]}));return("vertical"===i?se().y(qs).x1(Hs).x0(e=>e.base.x):se().x(Hs).y1(qs).y0(e=>e.base.y)).defined(Ws).curve(a)(o?c.filter(Ws):c)}return("vertical"===i&&Ot(n)?se().y(qs).x1(Hs).x0(n):Ot(n)?se().x(Hs).y1(qs).y0(n):ue().x(Hs).y(qs)).defined(Us).curve(a)(l)})({type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||o,connectNulls:e.connectNulls}):n;return c.createElement("path",Bs({},C(e),Ft(e),{className:k("recharts-curve",t),d:null===a?void 0:a,ref:i}))},Xs=["x","y","top","left","width","height","className"];function Zs(){return Zs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zs.apply(null,arguments)}function Qs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Js(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ef=(e,t,r,n,i,o)=>"M".concat(e,",").concat(i,"v").concat(n,"M").concat(o,",").concat(t,"h").concat(r),tf=e=>{var{x:t=0,y:r=0,top:n=0,left:i=0,width:o=0,height:a=0,className:l}=e,u=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qs(Object(r),!0).forEach(function(t){Js(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qs(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({x:t,y:r,top:n,left:i,width:o,height:a},function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,Xs));return Ot(t)&&Ot(r)&&Ot(o)&&Ot(a)&&Ot(n)&&Ot(i)?c.createElement("path",Zs({},L(u),{className:k("recharts-cross",l),d:ef(t,r,o,a,n,i)})):null};function rf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function nf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rf(Object(r),!0).forEach(function(t){of(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rf(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function of(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var af=(e,t,r)=>e.map(e=>{return"".concat((n=e,n.replace(/([A-Z])/g,e=>"-".concat(e.toLowerCase())))," ").concat(t,"ms ").concat(r);var n}).join(","),lf=(e,t)=>Object.keys(t).reduce((r,n)=>nf(nf({},r),{},{[n]:e(n,t[n])}),{});function cf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function uf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cf(Object(r),!0).forEach(function(t){sf(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cf(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function sf(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ff=(e,t,r)=>e+(t-e)*r,df=e=>{var{from:t,to:r}=e;return t!==r},pf=(e,t,r)=>{var n=lf((t,r)=>{if(df(r)){var[n,i]=e(r.from,r.to,r.velocity);return uf(uf({},r),{},{from:n,velocity:i})}return r},t);return r<1?lf((e,t)=>df(t)&&null!=n[e]?uf(uf({},t),{},{velocity:ff(t.velocity,n[e].velocity,r),from:ff(t.from,n[e].from,r)}):t,t):pf(e,n,r-1)};var hf=1e-4,yf=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],vf=(e,t)=>e.map((e,r)=>e*t**r).reduce((e,t)=>e+t),mf=(e,t)=>r=>{var n=yf(e,t);return vf(n,r)},gf=function(){return((e,t,r,n)=>{var i,o,a=mf(e,r),l=mf(t,n),c=(i=e,o=r,e=>{var t=[...yf(i,o).map((e,t)=>e*t).slice(1),0];return vf(t,e)}),u=e=>e>1?1:e<0?0:e,s=e=>{for(var t=e>1?1:e,r=t,n=0;n<8;++n){var i=a(r)-t,o=c(r);if(Math.abs(i-t)<hf||o<hf)return l(r);r=u(r-i/o)}return l(r)};return s.isStepper=!1,s})(...function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length)switch(t[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:var n=(e=>{var t,r=e.split("(");if(2!==r.length||"cubic-bezier"!==r[0])return null;var n=null===(t=r[1])||void 0===t||null===(t=t.split(")")[0])||void 0===t?void 0:t.split(",");if(null==n||4!==n.length)return null;var i=n.map(e=>parseFloat(e));return[i[0],i[1],i[2],i[3]]})(t[0]);if(n)return n}return 4===t.length?t:[0,0,1,1]}(...arguments))};class bf{setTimeout(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=performance.now(),n=null,i=o=>{o-r>=t?e(o):"function"==typeof requestAnimationFrame&&(n=requestAnimationFrame(i))};return n=requestAnimationFrame(i),()=>{null!=n&&cancelAnimationFrame(n)}}}function wf(){return e=new bf,t=()=>null,r=!1,n=null,i=o=>{if(!r){if(Array.isArray(o)){if(!o.length)return;var a=o,[l,...c]=a;return"number"==typeof l?void(n=e.setTimeout(i.bind(null,c),l)):(i(l),void(n=e.setTimeout(i.bind(null,c))))}"string"==typeof o&&t(o),"object"==typeof o&&t(o),"function"==typeof o&&o()}},{stop:()=>{r=!0},start:e=>{r=!1,n&&(n(),n=null),i(e)},subscribe:e=>(t=e,()=>{t=()=>null}),getTimeoutController:()=>e};var e,t,r,n,i}var xf=p(wf),Of={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},Ef={t:0},Sf={t:1};function Pf(e){var t,r,n,i=qt(e,Of),{isActive:o,canBegin:a,duration:l,easing:c,begin:u,onAnimationEnd:s,onAnimationStart:f,children:p}=i,v=Is(),g="auto"===o?!Ms&&!v:o,w=(t=i.animationId,r=i.animationManager,n=d(xf),h(()=>null!=r?r:n(t),[t,r,n])),[x,O]=y(g?Ef:Sf),E=m(null);return b(()=>{g||O(Sf)},[g]),b(()=>{if(!g||!a)return Dt;var e=((e,t,r,n,i,o)=>{var a,l=(a=t,[Object.keys(e),Object.keys(a)].reduce((e,t)=>e.filter(e=>t.includes(e))));return null==r?()=>(i(uf(uf({},e),t)),()=>{}):!0===r.isStepper?function(e,t,r,n,i,o){var a,l=n.reduce((r,n)=>uf(uf({},r),{},{[n]:{from:e[n],velocity:0,to:t[n]}}),{}),c=null,u=n=>{a||(a=n),l=pf(r,l,(n-a)/r.dt),i(uf(uf(uf({},e),t),lf((e,t)=>t.from,l))),a=n,Object.values(l).filter(df).length&&(c=o.setTimeout(u))};return()=>(c=o.setTimeout(u),()=>{var e;null===(e=c)||void 0===e||e()})}(e,t,r,l,i,o):function(e,t,r,n,i,o,a){var l,c=null,u=i.reduce((r,n)=>{var i=e[n],o=t[n];return null==i||null==o?r:uf(uf({},r),{},{[n]:[i,o]})},{}),s=i=>{l||(l=i);var f=(i-l)/n,d=lf((e,t)=>ff(...t,r(f)),u);if(o(uf(uf(uf({},e),t),d)),f<1)c=a.setTimeout(s);else{var p=lf((e,t)=>ff(...t,r(1)),u);o(uf(uf(uf({},e),t),p))}};return()=>(c=a.setTimeout(s),()=>{var e;null===(e=c)||void 0===e||e()})}(e,t,r,n,l,i,o)})(Ef,Sf,(e=>{if("string"==typeof e)switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return gf(e);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{stiff:t=100,damping:r=8,dt:n=17}=e,i=(e,i,o)=>{var a=o+(-(e-i)*t-o*r)*n/1e3,l=o*n/1e3+e;return Math.abs(l-i)<hf&&Math.abs(a)<hf?[i,0]:[l,a]};return i.isStepper=!0,i.dt=n,i}();default:if("cubic-bezier"===e.split("(")[0])return gf(e)}return"function"==typeof e?e:null})(c),l,O,w.getTimeoutController());return w.start([f,u,()=>{E.current=e()},l,s]),()=>{w.stop(),E.current&&E.current(),s()}},[g,a,l,c,u,f,s,w]),p(x.t)}function jf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"animation-",r=m(Pt(t)),n=m(e);return n.current!==e&&(r.current=Pt(t),n.current=e),r.current}var Af,_f,kf,Mf,If,Tf,Df,Nf,Cf,zf,Lf=["radius"],Rf=["radius"];function Bf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function $f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bf(Object(r),!0).forEach(function(t){Vf(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bf(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Vf(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kf(){return Kf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kf.apply(null,arguments)}function Ff(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Uf(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Wf=(e,t,r,n,i)=>{var o,a=mt(r),l=mt(n),c=Math.min(Math.abs(a)/2,Math.abs(l)/2),u=l>=0?1:-1,s=a>=0?1:-1,f=l>=0&&a>=0||l<0&&a<0?1:0;if(c>0&&Array.isArray(i)){for(var d=[0,0,0,0],p=0;p<4;p++){var h,y=null!==(h=i[p])&&void 0!==h?h:0;d[p]=y>c?c:y}o=gt(Af||(Af=Uf(["M",",",""])),e,t+u*d[0]),d[0]>0&&(o+=gt(_f||(_f=Uf(["A ",",",",0,0,",",",",",""])),d[0],d[0],f,e+s*d[0],t)),o+=gt(kf||(kf=Uf(["L ",",",""])),e+r-s*d[1],t),d[1]>0&&(o+=gt(Mf||(Mf=Uf(["A ",",",",0,0,",",\n ",",",""])),d[1],d[1],f,e+r,t+u*d[1])),o+=gt(If||(If=Uf(["L ",",",""])),e+r,t+n-u*d[2]),d[2]>0&&(o+=gt(Tf||(Tf=Uf(["A ",",",",0,0,",",\n ",",",""])),d[2],d[2],f,e+r-s*d[2],t+n)),o+=gt(Df||(Df=Uf(["L ",",",""])),e+s*d[3],t+n),d[3]>0&&(o+=gt(Nf||(Nf=Uf(["A ",",",",0,0,",",\n ",",",""])),d[3],d[3],f,e,t+n-u*d[3])),o+="Z"}else if(c>0&&i===+i&&i>0){var v=Math.min(c,i);o=gt(Cf||(Cf=Uf(["M ",",","\n A ",",",",0,0,",",",",","\n L ",",","\n A ",",",",0,0,",",",",","\n L ",",","\n A ",",",",0,0,",",",",","\n L ",",","\n A ",",",",0,0,",",",","," Z"])),e,t+u*v,v,v,f,e+s*v,t,e+r-s*v,t,v,v,f,e+r,t+u*v,e+r,t+n-u*v,v,v,f,e+r-s*v,t+n,e+s*v,t+n,v,v,f,e,t+n-u*v)}else o=gt(zf||(zf=Uf(["M ",","," h "," v "," h "," Z"])),e,t,r,n,-r);return o},Hf={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},qf=e=>{var t=qt(e,Hf),r=m(null),[n,i]=y(-1);b(()=>{if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&i(e)}catch(e){}},[]);var{x:o,y:a,width:l,height:u,radius:s,className:f}=t,{animationEasing:d,animationDuration:p,animationBegin:v,isAnimationActive:g,isUpdateAnimationActive:w}=t,x=m(l),O=m(u),E=m(o),S=m(a),P=jf(h(()=>({x:o,y:a,width:l,height:u,radius:s}),[o,a,l,u,s]),"rectangle-");if(o!==+o||a!==+a||l!==+l||u!==+u||0===l||0===u)return null;var j=k("recharts-rectangle",f);if(!w){var A=Ff(L(t),Lf);return c.createElement("path",Kf({},A,{x:mt(o),y:mt(a),width:mt(l),height:mt(u),radius:"number"==typeof s?s:void 0,className:j,d:Wf(o,a,l,u,s)}))}var _=x.current,M=O.current,I=E.current,T=S.current,D="0px ".concat(-1===n?1:n,"px"),N="".concat(n,"px ").concat(n,"px"),C=af(["strokeDasharray"],p,"string"==typeof d?d:Hf.animationEasing);return c.createElement(Pf,{animationId:P,key:P,canBegin:n>0,duration:p,easing:d,isActive:w,begin:v},e=>{var n,i=_t(_,l,e),f=_t(M,u,e),d=_t(I,o,e),p=_t(T,a,e);r.current&&(x.current=i,O.current=f,E.current=d,S.current=p),n=g?e>0?{transition:C,strokeDasharray:N}:{strokeDasharray:D}:{strokeDasharray:N};var h=Ff(L(t),Rf);return c.createElement("path",Kf({},h,{radius:"number"==typeof s?s:void 0,className:j,d:Wf(d,p,i,f,s),ref:r,style:$f($f({},n),t.style)}))})};function Yf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Gf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yf(Object(r),!0).forEach(function(t){Xf(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yf(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Xf(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Zf,Qf,Jf,ed,td,rd,nd,id=Math.PI/180,od=e=>180*e/Math.PI,ad=(e,t,r,n)=>({x:e+Math.cos(-id*n)*r,y:t+Math.sin(-id*n)*r}),ld=(e,t)=>{var{startAngle:r,endAngle:n}=t,i=Math.floor(r/360),o=Math.floor(n/360);return e+360*Math.min(i,o)};function cd(e){var{cx:t,cy:r,radius:n,startAngle:i,endAngle:o}=e;return{points:[ad(t,r,n,i),ad(t,r,n,o)],cx:t,cy:r,radius:n,startAngle:i,endAngle:o}}function ud(){return ud=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ud.apply(null,arguments)}function sd(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var fd=e=>{var{cx:t,cy:r,radius:n,angle:i,sign:o,isExternal:a,cornerRadius:l,cornerIsExternal:c}=e,u=l*(a?1:-1)+n,s=Math.asin(l/u)/id,f=c?i:i+o*s,d=c?i-o*s:i;return{center:ad(t,r,u,f),circleTangency:ad(t,r,n,f),lineTangency:ad(t,r,u*Math.cos(s*id),d),theta:s}},dd=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:o,endAngle:a}=e,l=((e,t)=>bt(t-e)*Math.min(Math.abs(t-e),359.999))(o,a),c=o+l,u=ad(t,r,i,o),s=ad(t,r,i,c),f=gt(Zf||(Zf=sd(["M ",",","\n A ",",",",0,\n ",",",",\n ",",","\n "])),u.x,u.y,i,i,+(Math.abs(l)>180),+(o>c),s.x,s.y);if(n>0){var d=ad(t,r,n,o),p=ad(t,r,n,c);f+=gt(Qf||(Qf=sd(["L ",",","\n A ",",",",0,\n ",",",",\n ",","," Z"])),p.x,p.y,n,n,+(Math.abs(l)>180),+(o<=c),d.x,d.y)}else f+=gt(Jf||(Jf=sd(["L ",","," Z"])),t,r);return f},pd={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},hd=e=>{var t=qt(e,pd),{cx:r,cy:n,innerRadius:i,outerRadius:o,cornerRadius:a,forceCornerRadius:l,cornerIsExternal:u,startAngle:s,endAngle:f,className:d}=t;if(o<i||s===f)return null;var p,h=k("recharts-sector",d),y=o-i,v=jt(a,y,0,!0);return p=v>0&&Math.abs(s-f)<360?(e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,cornerRadius:o,forceCornerRadius:a,cornerIsExternal:l,startAngle:c,endAngle:u}=e,s=bt(u-c),{circleTangency:f,lineTangency:d,theta:p}=fd({cx:t,cy:r,radius:i,angle:c,sign:s,cornerRadius:o,cornerIsExternal:l}),{circleTangency:h,lineTangency:y,theta:v}=fd({cx:t,cy:r,radius:i,angle:u,sign:-s,cornerRadius:o,cornerIsExternal:l}),m=l?Math.abs(c-u):Math.abs(c-u)-p-v;if(m<0)return a?gt(ed||(ed=sd(["M ",",","\n a",",",",0,0,1,",",0\n a",",",",0,0,1,",",0\n "])),d.x,d.y,o,o,2*o,o,o,2*-o):dd({cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:c,endAngle:u});var g=gt(td||(td=sd(["M ",",","\n A",",",",0,0,",",",",","\n A",",",",0,",",",",",",","\n A",",",",0,0,",",",",","\n "])),d.x,d.y,o,o,+(s<0),f.x,f.y,i,i,+(m>180),+(s<0),h.x,h.y,o,o,+(s<0),y.x,y.y);if(n>0){var{circleTangency:b,lineTangency:w,theta:x}=fd({cx:t,cy:r,radius:n,angle:c,sign:s,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),{circleTangency:O,lineTangency:E,theta:S}=fd({cx:t,cy:r,radius:n,angle:u,sign:-s,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),P=l?Math.abs(c-u):Math.abs(c-u)-x-S;if(P<0&&0===o)return"".concat(g,"L").concat(t,",").concat(r,"Z");g+=gt(rd||(rd=sd(["L",",","\n A",",",",0,0,",",",",","\n A",",",",0,",",",",",",","\n A",",",",0,0,",",",",","Z"])),E.x,E.y,o,o,+(s<0),O.x,O.y,n,n,+(P>180),+(s>0),b.x,b.y,o,o,+(s<0),w.x,w.y)}else g+=gt(nd||(nd=sd(["L",",","Z"])),t,r);return g})({cx:r,cy:n,innerRadius:i,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:s,endAngle:f}):dd({cx:r,cy:n,innerRadius:i,outerRadius:o,startAngle:s,endAngle:f}),c.createElement("path",ud({},L(t),{className:h,d:p}))};function yd(e,t,r){if("horizontal"===e)return[{x:t.x,y:r.top},{x:t.x,y:r.top+r.height}];if("vertical"===e)return[{x:r.left,y:t.y},{x:r.left+r.width,y:t.y}];if(Kt(t)){if("centric"===e){var{cx:n,cy:i,innerRadius:o,outerRadius:a,angle:l}=t,c=ad(n,i,o,l),u=ad(n,i,a,l);return[{x:c.x,y:c.y},{x:u.x,y:u.y}]}return cd(t)}}var vd,md,gd,bd,wd,xd={},Od={},Ed={};function Sd(){return vd||(vd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Si();e.toNumber=function(e){return t.isSymbol(e)?NaN:Number(e)}}(Ed)),Ed}function Pd(){return md||(md=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Sd();e.toFinite=function(e){return e?(e=t.toNumber(e))===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e==e?e:0:0===e?e:0}}(Od)),Od}function jd(){return wd?bd:(wd=1,bd=(gd||(gd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ci(),r=Pd();e.range=function(e,n,i){i&&"number"!=typeof i&&t.isIterateeCall(e,n,i)&&(n=i=void 0),e=r.toFinite(e),void 0===n?(n=e,e=0):n=r.toFinite(n),i=void 0===i?e<n?1:-1:r.toFinite(i);const o=Math.max(Math.ceil((n-e)/(i||1)),0),a=new Array(o);for(let t=0;t<o;t++)a[t]=e,e+=i;return a}}(xd)),xd).range)}const Ad=r(jd());var _d=e=>e.chartData,kd=pi([_d],e=>({chartData:e.chartData,computedData:e.computedData,dataEndIndex:null!=e.chartData?e.chartData.length-1:0,dataStartIndex:0})),Md=(e,t,r,n)=>n?kd(e):_d(e),Id=(e,t,r)=>r?kd(e):_d(e),Td=pi([Md],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return null!=t?t.slice(r,n+1):[]});pi([kd],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return null!=t?t.slice(r,n+1):[]});var Dd=pi([_d],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return null!=t?t.slice(r,n+1):[]});function Nd(e){if(Array.isArray(e)&&2===e.length){var[t,r]=e;if(Pl(t)&&Pl(r))return!0}return!1}function Cd(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function zd(e,t){if(t&&"function"!=typeof e&&Array.isArray(e)&&2===e.length){var r,n,[i,o]=e;if(Pl(i))r=i;else if("function"==typeof i)return;if(Pl(o))n=o;else if("function"==typeof o)return;var a=[r,n];if(Nd(a))return a}}var Ld,Rd=1e9,Bd=!0,$d="[DecimalError] ",Vd=$d+"Invalid argument: ",Kd=$d+"Exponent out of range: ",Fd=Math.floor,Ud=Math.pow,Wd=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Hd=1e7,qd=Fd(1286742750677284.5),Yd={};function Gd(e,t){var r,n,i,o,a,l,c,u,s=e.constructor,f=s.precision;if(!e.s||!t.s)return t.s||(t=new s(e)),Bd?op(t,f):t;if(u=t.d,a=e.e,i=t.e,c=(c=e.d).slice(),o=a-i){for(o<0?(n=c,o=-o,l=u.length):(n=u,i=a,l=c.length),o>(l=(a=Math.ceil(f/7))>l?a+1:l+1)&&(o=l,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for((l=c.length)-(o=u.length)<0&&(o=l,n=u,u=c,c=n),r=0;o;)r=(c[--o]=c[o]+u[o]+r)/Hd|0,c[o]%=Hd;for(r&&(c.unshift(r),++i),l=c.length;0==c[--l];)c.pop();return t.d=c,t.e=i,Bd?op(t,f):t}function Xd(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Vd+e)}function Zd(e){var t,r,n,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)(r=7-(n=e[t]+"").length)&&(o+=rp(r)),o+=n;(r=7-(n=(a=e[t])+"").length)&&(o+=rp(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}Yd.absoluteValue=Yd.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},Yd.comparedTo=Yd.cmp=function(e){var t,r,n,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(t=0,r=(n=o.d.length)<(i=e.d.length)?n:i;t<r;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1},Yd.decimalPlaces=Yd.dp=function(){var e=this,t=e.d.length-1,r=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)r--;return r<0?0:r},Yd.dividedBy=Yd.div=function(e){return Qd(this,new this.constructor(e))},Yd.dividedToIntegerBy=Yd.idiv=function(e){var t=this.constructor;return op(Qd(this,new t(e),0,1),t.precision)},Yd.equals=Yd.eq=function(e){return!this.cmp(e)},Yd.exponent=function(){return ep(this)},Yd.greaterThan=Yd.gt=function(e){return this.cmp(e)>0},Yd.greaterThanOrEqualTo=Yd.gte=function(e){return this.cmp(e)>=0},Yd.isInteger=Yd.isint=function(){return this.e>this.d.length-2},Yd.isNegative=Yd.isneg=function(){return this.s<0},Yd.isPositive=Yd.ispos=function(){return this.s>0},Yd.isZero=function(){return 0===this.s},Yd.lessThan=Yd.lt=function(e){return this.cmp(e)<0},Yd.lessThanOrEqualTo=Yd.lte=function(e){return this.cmp(e)<1},Yd.logarithm=Yd.log=function(e){var t,r=this,n=r.constructor,i=n.precision,o=i+5;if(void 0===e)e=new n(10);else if((e=new n(e)).s<1||e.eq(Ld))throw Error($d+"NaN");if(r.s<1)throw Error($d+(r.s?"NaN":"-Infinity"));return r.eq(Ld)?new n(0):(Bd=!1,t=Qd(np(r,o),np(e,o),o),Bd=!0,op(t,i))},Yd.minus=Yd.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?ap(t,e):Gd(t,(e.s=-e.s,e))},Yd.modulo=Yd.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(!(e=new n(e)).s)throw Error($d+"NaN");return r.s?(Bd=!1,t=Qd(r,e,0,1).times(e),Bd=!0,r.minus(t)):op(new n(r),i)},Yd.naturalExponential=Yd.exp=function(){return Jd(this)},Yd.naturalLogarithm=Yd.ln=function(){return np(this)},Yd.negated=Yd.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},Yd.plus=Yd.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Gd(t,e):ap(t,(e.s=-e.s,e))},Yd.precision=Yd.sd=function(e){var t,r,n,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(Vd+e);if(t=ep(i)+1,r=7*(n=i.d.length-1)+1,n=i.d[n]){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r},Yd.squareRoot=Yd.sqrt=function(){var e,t,r,n,i,o,a,l=this,c=l.constructor;if(l.s<1){if(!l.s)return new c(0);throw Error($d+"NaN")}for(e=ep(l),Bd=!1,0==(i=Math.sqrt(+l))||i==1/0?(((t=Zd(l.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Fd((e+1)/2)-(e<0||e%2),n=new c(t=i==1/0?"5e"+e:(t=i.toExponential()).slice(0,t.indexOf("e")+1)+e)):n=new c(i.toString()),i=a=(r=c.precision)+3;;)if(n=(o=n).plus(Qd(l,o,a+2)).times(.5),Zd(o.d).slice(0,a)===(t=Zd(n.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&"4999"==t){if(op(o,r+1,0),o.times(o).eq(l)){n=o;break}}else if("9999"!=t)break;a+=4}return Bd=!0,op(n,r)},Yd.times=Yd.mul=function(e){var t,r,n,i,o,a,l,c,u,s=this,f=s.constructor,d=s.d,p=(e=new f(e)).d;if(!s.s||!e.s)return new f(0);for(e.s*=s.s,r=s.e+e.e,(c=d.length)<(u=p.length)&&(o=d,d=p,p=o,a=c,c=u,u=a),o=[],n=a=c+u;n--;)o.push(0);for(n=u;--n>=0;){for(t=0,i=c+n;i>n;)l=o[i]+p[n]*d[i-n-1]+t,o[i--]=l%Hd|0,t=l/Hd|0;o[i]=(o[i]+t)%Hd|0}for(;!o[--a];)o.pop();return t?++r:o.shift(),e.d=o,e.e=r,Bd?op(e,f.precision):e},Yd.toDecimalPlaces=Yd.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),void 0===e?r:(Xd(e,0,Rd),void 0===t?t=n.rounding:Xd(t,0,8),op(r,e+ep(r)+1,t))},Yd.toExponential=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=lp(n,!0):(Xd(e,0,Rd),void 0===t?t=i.rounding:Xd(t,0,8),r=lp(n=op(new i(n),e+1,t),!0,e+1)),r},Yd.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return void 0===e?lp(i):(Xd(e,0,Rd),void 0===t?t=o.rounding:Xd(t,0,8),r=lp((n=op(new o(i),e+ep(i)+1,t)).abs(),!1,e+ep(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)},Yd.toInteger=Yd.toint=function(){var e=this,t=e.constructor;return op(new t(e),ep(e)+1,t.rounding)},Yd.toNumber=function(){return+this},Yd.toPower=Yd.pow=function(e){var t,r,n,i,o,a=this,l=a.constructor,c=+(e=new l(e));if(!e.s)return new l(Ld);if(!(a=new l(a)).s){if(e.s<1)throw Error($d+"Infinity");return a}if(a.eq(Ld))return a;if(n=l.precision,e.eq(Ld))return op(a,n);if(o=a.s,(t=e.e)>=(r=e.d.length-1)){if((r=c<0?-c:c)<=9007199254740991){for(i=new l(Ld),t=Math.ceil(n/7+4),Bd=!1;r%2&&cp((i=i.times(a)).d,t),0!==(r=Fd(r/2));)cp((a=a.times(a)).d,t);return Bd=!0,e.s<0?new l(Ld).div(i):op(i,n)}}else if(o<0)throw Error($d+"NaN");return o=o<0&&1&e.d[Math.max(t,r)]?-1:1,a.s=1,Bd=!1,i=e.times(np(a,n+12)),Bd=!0,(i=Jd(i)).s=o,i},Yd.toPrecision=function(e,t){var r,n,i=this,o=i.constructor;return void 0===e?n=lp(i,(r=ep(i))<=o.toExpNeg||r>=o.toExpPos):(Xd(e,1,Rd),void 0===t?t=o.rounding:Xd(t,0,8),n=lp(i=op(new o(i),e,t),e<=(r=ep(i))||r<=o.toExpNeg,e)),n},Yd.toSignificantDigits=Yd.tosd=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(Xd(e,1,Rd),void 0===t?t=r.rounding:Xd(t,0,8)),op(new r(this),e,t)},Yd.toString=Yd.valueOf=Yd.val=Yd.toJSON=Yd[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ep(e),r=e.constructor;return lp(e,t<=r.toExpNeg||t>=r.toExpPos)};var Qd=function(){function e(e,t){var r,n=0,i=e.length;for(e=e.slice();i--;)e[i]=(r=e[i]*t+n)%Hd|0,n=r/Hd|0;return n&&e.unshift(n),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r){for(var n=0;r--;)e[r]-=n,e[r]=(n=e[r]<t[r]?1:0)*Hd+e[r]-t[r];for(;!e[0]&&e.length>1;)e.shift()}return function(n,i,o,a){var l,c,u,s,f,d,p,h,y,v,m,g,b,w,x,O,E,S,P=n.constructor,j=n.s==i.s?1:-1,A=n.d,_=i.d;if(!n.s)return new P(n);if(!i.s)throw Error($d+"Division by zero");for(c=n.e-i.e,E=_.length,x=A.length,h=(p=new P(j)).d=[],u=0;_[u]==(A[u]||0);)++u;if(_[u]>(A[u]||0)&&--c,(g=null==o?o=P.precision:a?o+(ep(n)-ep(i))+1:o)<0)return new P(0);if(g=g/7+2|0,u=0,1==E)for(s=0,_=_[0],g++;(u<x||s)&&g--;u++)h[u]=(b=s*Hd+(A[u]||0))/_|0,s=b%_|0;else{for((s=Hd/(_[0]+1)|0)>1&&(_=e(_,s),A=e(A,s),E=_.length,x=A.length),w=E,v=(y=A.slice(0,E)).length;v<E;)y[v++]=0;(S=_.slice()).unshift(0),O=_[0],_[1]>=Hd/2&&++O;do{s=0,(l=t(_,y,E,v))<0?(m=y[0],E!=v&&(m=m*Hd+(y[1]||0)),(s=m/O|0)>1?(s>=Hd&&(s=Hd-1),1==(l=t(f=e(_,s),y,d=f.length,v=y.length))&&(s--,r(f,E<d?S:_,d))):(0==s&&(l=s=1),f=_.slice()),(d=f.length)<v&&f.unshift(0),r(y,f,v),-1==l&&(l=t(_,y,E,v=y.length))<1&&(s++,r(y,E<v?S:_,v)),v=y.length):0===l&&(s++,y=[0]),h[u++]=s,l&&y[0]?y[v++]=A[w]||0:(y=[A[w]],v=1)}while((w++<x||void 0!==y[0])&&g--)}return h[0]||h.shift(),p.e=c,op(p,a?o+ep(p)+1:o)}}();function Jd(e,t){var r,n,i,o,a,l=0,c=0,u=e.constructor,s=u.precision;if(ep(e)>16)throw Error(Kd+ep(e));if(!e.s)return new u(Ld);for(Bd=!1,a=s,o=new u(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(a+=Math.log(Ud(2,c))/Math.LN10*2+5|0,r=n=i=new u(Ld),u.precision=a;;){if(n=op(n.times(e),a),r=r.times(++l),Zd((o=i.plus(Qd(n,r,a))).d).slice(0,a)===Zd(i.d).slice(0,a)){for(;c--;)i=op(i.times(i),a);return u.precision=s,null==t?(Bd=!0,op(i,s)):i}i=o}}function ep(e){for(var t=7*e.e,r=e.d[0];r>=10;r/=10)t++;return t}function tp(e,t,r){if(t>e.LN10.sd())throw Bd=!0,r&&(e.precision=r),Error($d+"LN10 precision limit exceeded");return op(new e(e.LN10),t)}function rp(e){for(var t="";e--;)t+="0";return t}function np(e,t){var r,n,i,o,a,l,c,u,s,f=1,d=e,p=d.d,h=d.constructor,y=h.precision;if(d.s<1)throw Error($d+(d.s?"NaN":"-Infinity"));if(d.eq(Ld))return new h(0);if(null==t?(Bd=!1,u=y):u=t,d.eq(10))return null==t&&(Bd=!0),tp(h,u);if(h.precision=u+=10,n=(r=Zd(p)).charAt(0),o=ep(d),!(Math.abs(o)<15e14))return c=tp(h,u+2,y).times(o+""),d=np(new h(n+"."+r.slice(1)),u-10).plus(c),h.precision=y,null==t?(Bd=!0,op(d,y)):d;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=Zd((d=d.times(e)).d)).charAt(0),f++;for(o=ep(d),n>1?(d=new h("0."+r),o++):d=new h(n+"."+r.slice(1)),l=a=d=Qd(d.minus(Ld),d.plus(Ld),u),s=op(d.times(d),u),i=3;;){if(a=op(a.times(s),u),Zd((c=l.plus(Qd(a,new h(i),u))).d).slice(0,u)===Zd(l.d).slice(0,u))return l=l.times(2),0!==o&&(l=l.plus(tp(h,u+2,y).times(o+""))),l=Qd(l,new h(f),u),h.precision=y,null==t?(Bd=!0,op(l,y)):l;l=c,i+=2}}function ip(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);)++n;for(i=t.length;48===t.charCodeAt(i-1);)--i;if(t=t.slice(n,i)){if(i-=n,e.e=Fd((r=r-n-1)/7),e.d=[],n=(r+1)%7,r<0&&(n+=7),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=7;n<i;)e.d.push(+t.slice(n,n+=7));n=7-(t=t.slice(n)).length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),Bd&&(e.e>qd||e.e<-qd))throw Error(Kd+r)}else e.s=0,e.e=0,e.d=[0];return e}function op(e,t,r){var n,i,o,a,l,c,u,s,f=e.d;for(a=1,o=f[0];o>=10;o/=10)a++;if((n=t-a)<0)n+=7,i=t,u=f[s=0];else{if((s=Math.ceil((n+1)/7))>=(o=f.length))return e;for(u=o=f[s],a=1;o>=10;o/=10)a++;i=(n%=7)-7+a}if(void 0!==r&&(l=u/(o=Ud(10,a-i-1))%10|0,c=t<0||void 0!==f[s+1]||u%o,c=r<4?(l||c)&&(0==r||r==(e.s<0?3:2)):l>5||5==l&&(4==r||c||6==r&&(n>0?i>0?u/Ud(10,a-i):0:f[s-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return c?(o=ep(e),f.length=1,f[0]=Ud(10,(7-(t=t-o-1)%7)%7),e.e=Fd(-t/7)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(0==n?(f.length=s,o=1,s--):(f.length=s+1,o=Ud(10,7-n),f[s]=i>0?(u/Ud(10,a-i)%Ud(10,i)|0)*o:0),c)for(;;){if(0==s){(f[0]+=o)==Hd&&(f[0]=1,++e.e);break}if(f[s]+=o,f[s]!=Hd)break;f[s--]=0,o=1}for(n=f.length;0===f[--n];)f.pop();if(Bd&&(e.e>qd||e.e<-qd))throw Error(Kd+ep(e));return e}function ap(e,t){var r,n,i,o,a,l,c,u,s,f,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Bd?op(t,p):t;if(f=t.d,n=t.e,u=e.e,c=(c=e.d).slice(),a=u-n){for((s=a<0)?(r=c,a=-a,l=f.length):(r=f,n=u,l=c.length),a>(i=Math.max(Math.ceil(p/7),l)+2)&&(a=i,r.length=1),r.reverse(),i=a;i--;)r.push(0);r.reverse()}else{for((s=(i=c.length)<(l=f.length))&&(l=i),i=0;i<l;i++)if(c[i]!=f[i]){s=c[i]<f[i];break}a=0}for(s&&(r=c,c=f,f=r,t.s=-t.s),i=f.length-(l=c.length);i>0;--i)c[l++]=0;for(i=f.length;i>a;){if(c[--i]<f[i]){for(o=i;o&&0===c[--o];)c[o]=Hd-1;--c[o],c[i]+=Hd}c[i]-=f[i]}for(;0===c[--l];)c.pop();for(;0===c[0];c.shift())--n;return c[0]?(t.d=c,t.e=n,Bd?op(t,p):t):new d(0)}function lp(e,t,r){var n,i=ep(e),o=Zd(e.d),a=o.length;return t?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+rp(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+rp(-i-1)+o,r&&(n=r-a)>0&&(o+=rp(n))):i>=a?(o+=rp(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+rp(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=rp(n))),e.s<0?"-"+o:o}function cp(e,t){if(e.length>t)return e.length=t,!0}function up(e){if(!e||"object"!=typeof e)throw Error($d+"Object expected");var t,r,n,i=["precision",1,Rd,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if(void 0!==(n=e[r=i[t]])){if(!(Fd(n)===n&&n>=i[t+1]&&n<=i[t+2]))throw Error(Vd+r+": "+n);this[r]=n}if(void 0!==(n=e[r="LN10"])){if(n!=Math.LN10)throw Error(Vd+r+": "+n);this[r]=new this(n)}return this}var sp=function e(t){var r,n,i;function o(e){var t=this;if(!(t instanceof o))return new o(e);if(t.constructor=o,e instanceof o)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(Vd+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):ip(t,e.toString())}if("string"!=typeof e)throw Error(Vd+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!Wd.test(e))throw Error(Vd+e);ip(t,e)}if(o.prototype=Yd,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=e,o.config=o.set=up,void 0===t&&(t={}),t)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<i.length;)t.hasOwnProperty(n=i[r++])||(t[n]=this[n]);return o.config(t),o}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});Ld=new sp(1);const fp=sp;function dp(e){return 0===e?1:Math.floor(new fp(e).abs().log(10).toNumber())+1}function pp(e,t,r){for(var n=new fp(e),i=0,o=[];n.lt(t)&&i<1e5;)o.push(n.toNumber()),n=n.add(r),i++;return o}var hp=e=>{var[t,r]=e,[n,i]=[t,r];return t>r&&([n,i]=[r,t]),[n,i]},yp=(e,t,r)=>{if(e.lte(0))return new fp(0);var n=dp(e.toNumber()),i=new fp(10).pow(n),o=e.div(i),a=1!==n?.05:.1,l=new fp(Math.ceil(o.div(a).toNumber())).add(r).mul(a).mul(i);return new fp(t?l.toNumber():Math.ceil(l.toNumber()))},vp=(e,t,r)=>{var n;if(e.lte(0))return new fp(0);var i=[1,2,2.5,5],o=e.toNumber(),a=Math.floor(new fp(o).abs().log(10).toNumber()),l=new fp(10).pow(a),c=e.div(l).toNumber(),u=i.findIndex(e=>e>=c-1e-10);if(-1===u&&(l=l.mul(10),u=0),(u+=r)>=i.length){var s=Math.floor(u/i.length);u%=i.length,l=l.mul(new fp(10).pow(s))}var f=null!==(n=i[u])&&void 0!==n?n:1,d=new fp(f).mul(l);return t?d:new fp(Math.ceil(d.toNumber()))},mp=function(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:yp;if(!Number.isFinite((t-e)/(r-1)))return{step:new fp(0),tickMin:new fp(0),tickMax:new fp(0)};var a,l=o(new fp(t).sub(e).div(r-1),n,i);a=e<=0&&t>=0?new fp(0):(a=new fp(e).add(t).div(2)).sub(new fp(a).mod(l));var c=Math.ceil(a.sub(e).div(l).toNumber()),u=Math.ceil(new fp(t).sub(a).div(l).toNumber()),s=c+u+1;return s>r?mp(e,t,r,n,i+1,o):(s<r&&(u=t>0?u+(r-s):u,c=t>0?c:c+(r-s)),{step:l,tickMin:a.sub(new fp(c).mul(l)),tickMax:a.add(new fp(u).mul(l))})},gp=function(e){var[t,r]=e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"auto",a=Math.max(n,2),[l,c]=hp([t,r]);if(l===-1/0||c===1/0){var u=c===1/0?[l,...Array(n-1).fill(1/0)]:[...Array(n-1).fill(-1/0),c];return t>r?u.reverse():u}if(l===c)return((e,t,r)=>{var n=new fp(1),i=new fp(e);if(!i.isint()&&r){var o=Math.abs(e);o<1?(n=new fp(10).pow(dp(e)-1),i=new fp(Math.floor(i.div(n).toNumber())).mul(n)):o>1&&(i=new fp(Math.floor(e)))}else 0===e?i=new fp(Math.floor((t-1)/2)):r||(i=new fp(Math.floor(e)));for(var a=Math.floor((t-1)/2),l=[],c=0;c<t;c++)l.push(i.add(new fp(c-a).mul(n)).toNumber());return l})(l,n,i);var s="snap125"===o?vp:yp,{step:f,tickMin:d,tickMax:p}=mp(l,c,a,i,0,s),h=pp(d,p.add(new fp(.1).mul(f)),f);return t>r?h.reverse():h},bp=function(e,t){var[r,n]=e,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"auto",[a,l]=hp([r,n]);if(a===-1/0||l===1/0)return[r,n];if(a===l)return[a];var c="snap125"===o?vp:yp,u=Math.max(t,2),s=c(new fp(l).sub(a).div(u-1),i,0),f=[...pp(new fp(a),new fp(l),s),l];return!1===i&&(f=f.map(e=>Math.round(e))),r>n?f.reverse():f},wp=e=>e.rootProps.maxBarSize,xp=e=>e.rootProps.barCategoryGap,Op=e=>e.rootProps.stackOffset,Ep=e=>e.rootProps.reverseStackOrder,Sp=e=>e.options.chartName,Pp=e=>e.rootProps.syncId,jp=e=>e.rootProps.syncMethod,Ap=e=>e.options.eventEmitter,_p={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},kp=(e,t)=>{if(e&&t)return null!=e&&e.reversed?[t[1],t[0]]:t};function Mp(e,t,r){return"auto"!==r?r:null!=e?Il(e,t)?"category":"number":void 0}function Ip(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Tp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ip(Object(r),!0).forEach(function(t){Dp(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ip(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Dp(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Np={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:0,includeHidden:!1,name:void 0,reversed:!1,scale:"auto",tick:!0,tickCount:void 0,ticks:void 0,type:"auto",unit:void 0,niceTicks:"auto"},Cp={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,dataKey:void 0,domain:void 0,id:0,includeHidden:!1,name:void 0,reversed:!1,scale:"auto",tick:!0,tickCount:5,ticks:void 0,type:"auto",unit:void 0,niceTicks:"auto"},zp=pi([(e,t)=>{if(null!=t)return e.polarAxis.angleAxis[t]},Uc],(e,t)=>{var r;if(null!=e)return e;var n=null!==(r=Mp(t,"angleAxis",Np.type))&&void 0!==r?r:"category";return Tp(Tp({},Np),{},{type:n})}),Lp=pi([(e,t)=>e.polarAxis.radiusAxis[t],Uc],(e,t)=>{var r;if(null!=e)return e;var n=null!==(r=Mp(t,"radiusAxis",Cp.type))&&void 0!==r?r:"category";return Tp(Tp({},Cp),{},{type:n})}),Rp=e=>e.polarOptions,Bp=pi([Ul,Wl,ic],function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(r.left||0)-(r.right||0)),Math.abs(t-(r.top||0)-(r.bottom||0)))/2}),$p=pi([Rp,Bp],(e,t)=>{if(null!=e)return jt(e.innerRadius,t,0)}),Vp=pi([Rp,Bp],(e,t)=>{if(null!=e)return jt(e.outerRadius,t,.8*t)}),Kp=pi([Rp],e=>{if(null==e)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]});pi([zp,Kp],kp);var Fp=pi([Bp,$p,Vp],(e,t,r)=>{if(null!=e&&null!=t&&null!=r)return[t,r]});pi([Lp,Fp],kp);var Up=pi([Vc,Rp,$p,Vp,Ul,Wl],(e,t,r,n,i,o)=>{if(("centric"===e||"radial"===e)&&null!=t&&null!=r&&null!=n){var{cx:a,cy:l,startAngle:c,endAngle:u}=t;return{cx:jt(a,i,i/2),cy:jt(l,o,o/2),innerRadius:r,outerRadius:n,startAngle:c,endAngle:u,clockWise:!1}}}),Wp=(e,t)=>t,Hp=(e,t,r)=>r;function qp(e){return null==e?void 0:e.id}function Yp(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:i,dataKey:o}=r,a=new Map;return e.forEach(e=>{var t,r=null!==(t=e.data)&&void 0!==t?t:n;if(null!=r&&0!==r.length){var l=qp(e);r.forEach((t,r)=>{var n,c=null==o||i?r:String(Ml(t,o,null)),u=Ml(t,e.dataKey,0);n=a.has(c)?a.get(c):{},Object.assign(n,{[l]:u}),a.set(c,n)})}}),Array.from(a.values())}function Gp(e){return"stackId"in e&&null!=e.stackId&&null!=e.dataKey}var Xp=(e,t)=>e===t||null!=e&&null!=t&&e[0]===t[0]&&e[1]===t[1];function Zp(e,t){return!(!Array.isArray(e)||!Array.isArray(t)||0!==e.length||0!==t.length)||e===t}var Qp=e=>{var t=Vc(e);return"horizontal"===t?"xAxis":"vertical"===t?"yAxis":"centric"===t?"angleAxis":"radiusAxis"},Jp=e=>e.tooltip.settings.axisId;function eh(e){if(null!=e){var t=e.ticks,r=e.bandwidth,n=e.range(),i=[Math.min(...n),Math.max(...n)];return{domain:()=>e.domain(),range:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(()=>i),rangeMin:()=>i[0],rangeMax:()=>i[1],isInRange(e){var t=i[0],r=i[1];return t<=r?e>=t&&e<=r:e>=r&&e<=t},bandwidth:r?()=>r.call(e):void 0,ticks:t?r=>t.call(e,r):void 0,map:(t,r)=>{var n=e(t);if(null!=n){if(e.bandwidth&&null!=r&&r.position){var i=e.bandwidth();switch(r.position){case"middle":n+=i/2;break;case"end":n+=i}}return n}}}}}function th(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function rh(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function nh(e){let t,r,n;function i(e,n,i=0,o=e.length){if(i<o){if(0!==t(n,n))return o;do{const t=i+o>>>1;r(e[t],n)<0?i=t+1:o=t}while(i<o)}return i}return 2!==e.length?(t=th,r=(t,r)=>th(e(t),r),n=(t,r)=>e(t)-r):(t=e===th||e===rh?e:ih,r=e,n=e),{left:i,center:function(e,t,r=0,o=e.length){const a=i(e,t,r,o-1);return a>r&&n(e[a-1],t)>-n(e[a],t)?a-1:a},right:function(e,n,i=0,o=e.length){if(i<o){if(0!==t(n,n))return o;do{const t=i+o>>>1;r(e[t],n)<=0?i=t+1:o=t}while(i<o)}return i}}}function ih(){return 0}function oh(e){return null===e?NaN:+e}const ah=nh(th).right;nh(oh);class lh extends Map{constructor(e,t=uh){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,r]of e)this.set(t,r)}get(e){return super.get(ch(this,e))}has(e){return super.has(ch(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}(this,e))}}function ch({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function uh(e){return null!==e&&"object"==typeof e?e.valueOf():e}function sh(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const fh=Math.sqrt(50),dh=Math.sqrt(10),ph=Math.sqrt(2);function hh(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),o=n/Math.pow(10,i),a=o>=fh?10:o>=dh?5:o>=ph?2:1;let l,c,u;return i<0?(u=Math.pow(10,-i)/a,l=Math.round(e*u),c=Math.round(t*u),l/u<e&&++l,c/u>t&&--c,u=-u):(u=Math.pow(10,i)*a,l=Math.round(e/u),c=Math.round(t/u),l*u<e&&++l,c*u>t&&--c),c<l&&.5<=r&&r<2?hh(e,t,2*r):[l,c,u]}function yh(e,t,r){if(!((r=+r)>0))return[];if((e=+e)===(t=+t))return[e];const n=t<e,[i,o,a]=n?hh(t,e,r):hh(e,t,r);if(!(o>=i))return[];const l=o-i+1,c=new Array(l);if(n)if(a<0)for(let e=0;e<l;++e)c[e]=(o-e)/-a;else for(let e=0;e<l;++e)c[e]=(o-e)*a;else if(a<0)for(let e=0;e<l;++e)c[e]=(i+e)/-a;else for(let e=0;e<l;++e)c[e]=(i+e)*a;return c}function vh(e,t,r){return hh(e=+e,t=+t,r=+r)[2]}function mh(e,t,r){r=+r;const n=(t=+t)<(e=+e),i=n?vh(t,e,r):vh(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function gh(e,t){let r;for(const t of e)null!=t&&(r<t||void 0===r&&t>=t)&&(r=t);return r}function bh(e,t){let r;for(const t of e)null!=t&&(r>t||void 0===r&&t>=t)&&(r=t);return r}function wh(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=void 0===i?sh:function(e=th){if(e===th)return sh;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||0===n?n:(0===e(r,r))-(0===e(t,t))}}(i);n>r;){if(n-r>600){const o=n-r+1,a=t-r+1,l=Math.log(o),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(o-c)/o)*(a-o/2<0?-1:1);wh(e,t,Math.max(r,Math.floor(t-a*c/o+u)),Math.min(n,Math.floor(t+(o-a)*c/o+u)),i)}const o=e[t];let a=r,l=n;for(xh(e,r,t),i(e[n],o)>0&&xh(e,r,n);a<l;){for(xh(e,a,l),++a,--l;i(e[a],o)<0;)++a;for(;i(e[l],o)>0;)--l}0===i(e[r],o)?xh(e,r,l):(++l,xh(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function xh(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function Oh(e,t,r=oh){if((n=e.length)&&!isNaN(t=+t)){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,o=Math.floor(i),a=+r(e[o],o,e);return a+(+r(e[o+1],o+1,e)-a)*(i-o)}}function Eh(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function Sh(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}const Ph=Symbol("implicit");function jh(){var e=new lh,t=[],r=[],n=Ph;function i(i){let o=e.get(i);if(void 0===o){if(n!==Ph)return n;e.set(i,o=t.push(i)-1)}return r[o%r.length]}return i.domain=function(r){if(!arguments.length)return t.slice();t=[],e=new lh;for(const n of r)e.has(n)||e.set(n,t.push(n)-1);return i},i.range=function(e){return arguments.length?(r=Array.from(e),i):r.slice()},i.unknown=function(e){return arguments.length?(n=e,i):n},i.copy=function(){return jh(t,r).unknown(n)},Eh.apply(i,arguments),i}function Ah(){var e,t,r=jh().unknown(void 0),n=r.domain,i=r.range,o=0,a=1,l=!1,c=0,u=0,s=.5;function f(){var r=n().length,f=a<o,d=f?a:o,p=f?o:a;e=(p-d)/Math.max(1,r-c+2*u),l&&(e=Math.floor(e)),d+=(p-d-e*(r-c))*s,t=e*(1-c),l&&(d=Math.round(d),t=Math.round(t));var h=function(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((t-e)/r)),o=new Array(i);++n<i;)o[n]=e+n*r;return o}(r).map(function(t){return d+e*t});return i(f?h.reverse():h)}return delete r.unknown,r.domain=function(e){return arguments.length?(n(e),f()):n()},r.range=function(e){return arguments.length?([o,a]=e,o=+o,a=+a,f()):[o,a]},r.rangeRound=function(e){return[o,a]=e,o=+o,a=+a,l=!0,f()},r.bandwidth=function(){return t},r.step=function(){return e},r.round=function(e){return arguments.length?(l=!!e,f()):l},r.padding=function(e){return arguments.length?(c=Math.min(1,u=+e),f()):c},r.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),f()):c},r.paddingOuter=function(e){return arguments.length?(u=+e,f()):u},r.align=function(e){return arguments.length?(s=Math.max(0,Math.min(1,e)),f()):s},r.copy=function(){return Ah(n(),[o,a]).round(l).paddingInner(c).paddingOuter(u).align(s)},Eh.apply(f(),arguments)}function _h(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return _h(t())},e}function kh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Mh(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Ih(){}var Th=.7,Dh=1/Th,Nh="\\s*([+-]?\\d+)\\s*",Ch="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",zh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Lh=/^#([0-9a-f]{3,8})$/,Rh=new RegExp(`^rgb\\(${Nh},${Nh},${Nh}\\)$`),Bh=new RegExp(`^rgb\\(${zh},${zh},${zh}\\)$`),$h=new RegExp(`^rgba\\(${Nh},${Nh},${Nh},${Ch}\\)$`),Vh=new RegExp(`^rgba\\(${zh},${zh},${zh},${Ch}\\)$`),Kh=new RegExp(`^hsl\\(${Ch},${zh},${zh}\\)$`),Fh=new RegExp(`^hsla\\(${Ch},${zh},${zh},${Ch}\\)$`),Uh={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Wh(){return this.rgb().formatHex()}function Hh(){return this.rgb().formatRgb()}function qh(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Lh.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Yh(t):3===r?new Zh(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Gh(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Gh(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Rh.exec(e))?new Zh(t[1],t[2],t[3],1):(t=Bh.exec(e))?new Zh(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=$h.exec(e))?Gh(t[1],t[2],t[3],t[4]):(t=Vh.exec(e))?Gh(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Kh.exec(e))?ny(t[1],t[2]/100,t[3]/100,1):(t=Fh.exec(e))?ny(t[1],t[2]/100,t[3]/100,t[4]):Uh.hasOwnProperty(e)?Yh(Uh[e]):"transparent"===e?new Zh(NaN,NaN,NaN,0):null}function Yh(e){return new Zh(e>>16&255,e>>8&255,255&e,1)}function Gh(e,t,r,n){return n<=0&&(e=t=r=NaN),new Zh(e,t,r,n)}function Xh(e,t,r,n){return 1===arguments.length?((i=e)instanceof Ih||(i=qh(i)),i?new Zh((i=i.rgb()).r,i.g,i.b,i.opacity):new Zh):new Zh(e,t,r,null==n?1:n);var i}function Zh(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Qh(){return`#${ry(this.r)}${ry(this.g)}${ry(this.b)}`}function Jh(){const e=ey(this.opacity);return`${1===e?"rgb(":"rgba("}${ty(this.r)}, ${ty(this.g)}, ${ty(this.b)}${1===e?")":`, ${e})`}`}function ey(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ty(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ry(e){return((e=ty(e))<16?"0":"")+e.toString(16)}function ny(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new oy(e,t,r,n)}function iy(e){if(e instanceof oy)return new oy(e.h,e.s,e.l,e.opacity);if(e instanceof Ih||(e=qh(e)),!e)return new oy;if(e instanceof oy)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=NaN,l=o-i,c=(o+i)/2;return l?(a=t===o?(r-n)/l+6*(r<n):r===o?(n-t)/l+2:(t-r)/l+4,l/=c<.5?o+i:2-o-i,a*=60):l=c>0&&c<1?0:a,new oy(a,l,c,e.opacity)}function oy(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function ay(e){return(e=(e||0)%360)<0?e+360:e}function ly(e){return Math.max(0,Math.min(1,e||0))}function cy(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}kh(Ih,qh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Wh,formatHex:Wh,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return iy(this).formatHsl()},formatRgb:Hh,toString:Hh}),kh(Zh,Xh,Mh(Ih,{brighter(e){return e=null==e?Dh:Math.pow(Dh,e),new Zh(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Th:Math.pow(Th,e),new Zh(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Zh(ty(this.r),ty(this.g),ty(this.b),ey(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Qh,formatHex:Qh,formatHex8:function(){return`#${ry(this.r)}${ry(this.g)}${ry(this.b)}${ry(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Jh,toString:Jh})),kh(oy,function(e,t,r,n){return 1===arguments.length?iy(e):new oy(e,t,r,null==n?1:n)},Mh(Ih,{brighter(e){return e=null==e?Dh:Math.pow(Dh,e),new oy(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Th:Math.pow(Th,e),new oy(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Zh(cy(e>=240?e-240:e+120,i,n),cy(e,i,n),cy(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new oy(ay(this.h),ly(this.s),ly(this.l),ey(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ey(this.opacity);return`${1===e?"hsl(":"hsla("}${ay(this.h)}, ${100*ly(this.s)}%, ${100*ly(this.l)}%${1===e?")":`, ${e})`}`}}));const uy=e=>()=>e;function sy(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):uy(isNaN(e)?t:e)}const fy=function e(t){var r=function(e){return 1===(e=+e)?sy:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):uy(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Xh(e)).r,(t=Xh(t)).r),i=r(e.g,t.g),o=r(e.b,t.b),a=sy(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);function dy(e,t){t||(t=[]);var r,n=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(r=0;r<n;++r)i[r]=e[r]*(1-o)+t[r]*o;return i}}function py(e,t){var r,n=t?t.length:0,i=e?Math.min(n,e.length):0,o=new Array(i),a=new Array(n);for(r=0;r<i;++r)o[r]=wy(e[r],t[r]);for(;r<n;++r)a[r]=t[r];return function(e){for(r=0;r<i;++r)a[r]=o[r](e);return a}}function hy(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function yy(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function vy(e,t){var r,n={},i={};for(r in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)r in e?n[r]=wy(e[r],t[r]):i[r]=t[r];return function(e){for(r in n)i[r]=n[r](e);return i}}var my=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,gy=new RegExp(my.source,"g");function by(e,t){var r,n,i,o=my.lastIndex=gy.lastIndex=0,a=-1,l=[],c=[];for(e+="",t+="";(r=my.exec(e))&&(n=gy.exec(t));)(i=n.index)>o&&(i=t.slice(o,i),l[a]?l[a]+=i:l[++a]=i),(r=r[0])===(n=n[0])?l[a]?l[a]+=n:l[++a]=n:(l[++a]=null,c.push({i:a,x:yy(r,n)})),o=gy.lastIndex;return o<t.length&&(i=t.slice(o),l[a]?l[a]+=i:l[++a]=i),l.length<2?c[0]?function(e){return function(t){return e(t)+""}}(c[0].x):function(e){return function(){return e}}(t):(t=c.length,function(e){for(var r,n=0;n<t;++n)l[(r=c[n]).i]=r.x(e);return l.join("")})}function wy(e,t){var r,n,i=typeof t;return null==t||"boolean"===i?uy(t):("number"===i?yy:"string"===i?(r=qh(t))?(t=r,fy):by:t instanceof qh?fy:t instanceof Date?hy:(n=t,!ArrayBuffer.isView(n)||n instanceof DataView?Array.isArray(t)?py:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?vy:yy:dy))(e,t)}function xy(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function Oy(e){return+e}var Ey=[0,1];function Sy(e){return e}function Py(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:(r=isNaN(t)?NaN:.5,function(){return r});var r}function jy(e,t,r){var n=e[0],i=e[1],o=t[0],a=t[1];return i<n?(n=Py(i,n),o=r(a,o)):(n=Py(n,i),o=r(o,a)),function(e){return o(n(e))}}function Ay(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),o=new Array(n),a=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<n;)i[a]=Py(e[a],e[a+1]),o[a]=r(t[a],t[a+1]);return function(t){var r=ah(e,t,1,n)-1;return o[r](i[r](t))}}function _y(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ky(){var e,t,r,n,i,o,a=Ey,l=Ey,c=wy,u=Sy;function s(){var e,t,r,c=Math.min(a.length,l.length);return u!==Sy&&((e=a[0])>(t=a[c-1])&&(r=e,e=t,t=r),u=function(r){return Math.max(e,Math.min(t,r))}),n=c>2?Ay:jy,i=o=null,f}function f(t){return null==t||isNaN(t=+t)?r:(i||(i=n(a.map(e),l,c)))(e(u(t)))}return f.invert=function(r){return u(t((o||(o=n(l,a.map(e),yy)))(r)))},f.domain=function(e){return arguments.length?(a=Array.from(e,Oy),s()):a.slice()},f.range=function(e){return arguments.length?(l=Array.from(e),s()):l.slice()},f.rangeRound=function(e){return l=Array.from(e),c=xy,s()},f.clamp=function(e){return arguments.length?(u=!!e||Sy,s()):u!==Sy},f.interpolate=function(e){return arguments.length?(c=e,s()):c},f.unknown=function(e){return arguments.length?(r=e,f):r},function(r,n){return e=r,t=n,s()}}function My(){return ky()(Sy,Sy)}function Iy(e,t){if(!isFinite(e)||0===e)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Ty(e){return(e=Iy(Math.abs(e)))?e[1]:NaN}var Dy,Ny=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Cy(e){if(!(t=Ny.exec(e)))throw new Error("invalid format: "+e);var t;return new zy({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function zy(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function Ly(e,t){var r=Iy(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}Cy.prototype=zy.prototype,zy.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Ry={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Ly(100*e,t),r:Ly,s:function(e,t){var r=Iy(e,t);if(!r)return Dy=void 0,e.toPrecision(t);var n=r[0],i=r[1],o=i-(Dy=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=n.length;return o===a?n:o>a?n+new Array(o-a+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+Iy(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function By(e){return e}var $y,Vy,Ky,Fy=Array.prototype.map,Uy=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Wy(e,t,r,n){var i,o=mh(e,t,r);switch((n=Cy(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=n.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ty(t)/3)))-Ty(Math.abs(e)))}(o,a))||(n.precision=i),Ky(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ty(t)-Ty(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=function(e){return Math.max(0,-Ty(Math.abs(e)))}(o))||(n.precision=i-2*("%"===n.type))}return Vy(n)}function Hy(e){var t=e.domain;return e.ticks=function(e){var r=t();return yh(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,r){var n=t();return Wy(n[0],n[n.length-1],null==e?10:e,r)},e.nice=function(r){null==r&&(r=10);var n,i,o=t(),a=0,l=o.length-1,c=o[a],u=o[l],s=10;for(u<c&&(i=c,c=u,u=i,i=a,a=l,l=i);s-- >0;){if((i=vh(c,u,r))===n)return o[a]=c,o[l]=u,t(o);if(i>0)c=Math.floor(c/i)*i,u=Math.ceil(u/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,u=Math.floor(u*i)/i}n=i}return e},e}function qy(e,t){var r,n=0,i=(e=e.slice()).length-1,o=e[n],a=e[i];return a<o&&(r=n,n=i,i=r,r=o,o=a,a=r),e[n]=t.floor(o),e[i]=t.ceil(a),e}function Yy(e){return Math.log(e)}function Gy(e){return Math.exp(e)}function Xy(e){return-Math.log(-e)}function Zy(e){return-Math.exp(-e)}function Qy(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Jy(e){return(t,r)=>-e(-t,r)}function ev(e){const t=e(Yy,Gy),r=t.domain;let n,i,o=10;function a(){return n=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(o),i=function(e){return 10===e?Qy:e===Math.E?Math.exp:t=>Math.pow(e,t)}(o),r()[0]<0?(n=Jy(n),i=Jy(i),e(Xy,Zy)):e(Yy,Gy),t}return t.base=function(e){return arguments.length?(o=+e,a()):o},t.domain=function(e){return arguments.length?(r(e),a()):r()},t.ticks=e=>{const t=r();let a=t[0],l=t[t.length-1];const c=l<a;c&&([a,l]=[l,a]);let u,s,f=n(a),d=n(l);const p=null==e?10:+e;let h=[];if(!(o%1)&&d-f<p){if(f=Math.floor(f),d=Math.ceil(d),a>0){for(;f<=d;++f)for(u=1;u<o;++u)if(s=f<0?u/i(-f):u*i(f),!(s<a)){if(s>l)break;h.push(s)}}else for(;f<=d;++f)for(u=o-1;u>=1;--u)if(s=f>0?u/i(-f):u*i(f),!(s<a)){if(s>l)break;h.push(s)}2*h.length<p&&(h=yh(a,l,p))}else h=yh(f,d,Math.min(d-f,p)).map(i);return c?h.reverse():h},t.tickFormat=(e,r)=>{if(null==e&&(e=10),null==r&&(r=10===o?"s":","),"function"!=typeof r&&(o%1||null!=(r=Cy(r)).precision||(r.trim=!0),r=Vy(r)),e===1/0)return r;const a=Math.max(1,o*e/t.ticks().length);return e=>{let t=e/i(Math.round(n(e)));return t*o<o-.5&&(t*=o),t<=a?r(e):""}},t.nice=()=>r(qy(r(),{floor:e=>i(Math.floor(n(e))),ceil:e=>i(Math.ceil(n(e)))})),t}function tv(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function rv(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function nv(e){var t=1,r=e(tv(t),rv(t));return r.constant=function(r){return arguments.length?e(tv(t=+r),rv(t)):t},Hy(r)}function iv(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function ov(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function av(e){return e<0?-e*e:e*e}function lv(e){var t=e(Sy,Sy),r=1;return t.exponent=function(t){return arguments.length?1===(r=+t)?e(Sy,Sy):.5===r?e(ov,av):e(iv(r),iv(1/r)):r},Hy(t)}function cv(){var e=lv(ky());return e.copy=function(){return _y(e,cv()).exponent(e.exponent())},Eh.apply(e,arguments),e}function uv(e){return Math.sign(e)*e*e}$y=function(e){var t,r,n=void 0===e.grouping||void 0===e.thousands?By:(t=Fy.call(e.grouping,Number),r=e.thousands+"",function(e,n){for(var i=e.length,o=[],a=0,l=t[0],c=0;i>0&&l>0&&(c+l+1>n&&(l=Math.max(1,n-c)),o.push(e.substring(i-=l,i+l)),!((c+=l+1)>n));)l=t[a=(a+1)%t.length];return o.reverse().join(r)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?By:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(Fy.call(e.numerals,String)),c=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",s=void 0===e.nan?"NaN":e.nan+"";function f(e,t){var r=(e=Cy(e)).fill,f=e.align,d=e.sign,p=e.symbol,h=e.zero,y=e.width,v=e.comma,m=e.precision,g=e.trim,b=e.type;"n"===b?(v=!0,b="g"):Ry[b]||(void 0===m&&(m=12),g=!0,b="g"),(h||"0"===r&&"="===f)&&(h=!0,r="0",f="=");var w=(t&&void 0!==t.prefix?t.prefix:"")+("$"===p?i:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():""),x=("$"===p?o:/[%p]/.test(b)?c:"")+(t&&void 0!==t.suffix?t.suffix:""),O=Ry[b],E=/[defgprs%]/.test(b);function S(e){var t,i,o,c=w,p=x;if("c"===b)p=O(e)+p,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?s:O(Math.abs(e),m),g&&(e=function(e){e:for(var t,r=e.length,n=1,i=-1;n<r;++n)switch(e[n]){case".":i=t=n;break;case"0":0===i&&(i=n),t=n;break;default:if(!+e[n])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),S&&0===+e&&"+"!==d&&(S=!1),c=(S?"("===d?d:u:"-"===d||"("===d?"":d)+c,p=("s"!==b||isNaN(e)||void 0===Dy?"":Uy[8+Dy/3])+p+(S&&"("===d?")":""),E)for(t=-1,i=e.length;++t<i;)if(48>(o=e.charCodeAt(t))||o>57){p=(46===o?a+e.slice(t+1):e.slice(t))+p,e=e.slice(0,t);break}}v&&!h&&(e=n(e,1/0));var P=c.length+e.length+p.length,j=P<y?new Array(y-P+1).join(r):"";switch(v&&h&&(e=n(j+e,j.length?y-p.length:1/0),j=""),f){case"<":e=c+e+p+j;break;case"=":e=c+j+e+p;break;case"^":e=j.slice(0,P=j.length>>1)+c+e+p+j.slice(P);break;default:e=j+c+e+p}return l(e)}return m=void 0===m?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),S.toString=function(){return e+""},S}return{format:f,formatPrefix:function(e,t){var r=3*Math.max(-8,Math.min(8,Math.floor(Ty(t)/3))),n=Math.pow(10,-r),i=f(((e=Cy(e)).type="f",e),{suffix:Uy[8+r/3]});return function(e){return i(n*e)}}}}({thousands:",",grouping:[3],currency:["$",""]}),Vy=$y.format,Ky=$y.formatPrefix;const sv=new Date,fv=new Date;function dv(e,t,r,n){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=r=>(e(r=new Date(r-1)),t(r,1),e(r),r),i.round=e=>{const t=i(e),r=i.ceil(e);return e-t<r-e?t:r},i.offset=(e,r)=>(t(e=new Date(+e),null==r?1:Math.floor(r)),e),i.range=(r,n,o)=>{const a=[];if(r=i.ceil(r),o=null==o?1:Math.floor(o),!(r<n&&o>0))return a;let l;do{a.push(l=new Date(+r)),t(r,o),e(r)}while(l<r&&r<n);return a},i.filter=r=>dv(t=>{if(t>=t)for(;e(t),!r(t);)t.setTime(t-1)},(e,n)=>{if(e>=e)if(n<0)for(;++n<=0;)for(;t(e,-1),!r(e););else for(;--n>=0;)for(;t(e,1),!r(e););}),r&&(i.count=(t,n)=>(sv.setTime(+t),fv.setTime(+n),e(sv),e(fv),Math.floor(r(sv,fv))),i.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(n?t=>n(t)%e===0:t=>i.count(0,t)%e===0):i:null)),i}const pv=dv(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);pv.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?dv(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):pv:null);const hv=1e3,yv=6e4,vv=36e5,mv=864e5,gv=6048e5,bv=31536e6,wv=dv(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*hv)},(e,t)=>(t-e)/hv,e=>e.getUTCSeconds()),xv=dv(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*hv)},(e,t)=>{e.setTime(+e+t*yv)},(e,t)=>(t-e)/yv,e=>e.getMinutes()),Ov=dv(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*yv)},(e,t)=>(t-e)/yv,e=>e.getUTCMinutes()),Ev=dv(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*hv-e.getMinutes()*yv)},(e,t)=>{e.setTime(+e+t*vv)},(e,t)=>(t-e)/vv,e=>e.getHours()),Sv=dv(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*vv)},(e,t)=>(t-e)/vv,e=>e.getUTCHours()),Pv=dv(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*yv)/mv,e=>e.getDate()-1),jv=dv(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mv,e=>e.getUTCDate()-1),Av=dv(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mv,e=>Math.floor(e/mv));function _v(e){return dv(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*yv)/gv)}const kv=_v(0),Mv=_v(1),Iv=(_v(2),_v(3),_v(4));function Tv(e){return dv(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/gv)}_v(5),_v(6);const Dv=Tv(0),Nv=Tv(1),Cv=(Tv(2),Tv(3),Tv(4)),zv=(Tv(5),Tv(6),dv(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear()),e=>e.getMonth())),Lv=dv(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear()),e=>e.getUTCMonth()),Rv=dv(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Rv.every=e=>isFinite(e=Math.floor(e))&&e>0?dv(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)}):null;const Bv=dv(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());function $v(e,t,r,n,i,o){const a=[[wv,1,hv],[wv,5,5e3],[wv,15,15e3],[wv,30,3e4],[o,1,yv],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,vv],[i,3,108e5],[i,6,216e5],[i,12,432e5],[n,1,mv],[n,2,1728e5],[r,1,gv],[t,1,2592e6],[t,3,7776e6],[e,1,bv]];function l(t,r,n){const i=Math.abs(r-t)/n,o=nh(([,,e])=>e).right(a,i);if(o===a.length)return e.every(mh(t/bv,r/bv,n));if(0===o)return pv.every(Math.max(mh(t,r,n),1));const[l,c]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return l.every(c)}return[function(e,t,r){const n=t<e;n&&([e,t]=[t,e]);const i=r&&"function"==typeof r.range?r:l(e,t,r),o=i?i.range(e,+t+1):[];return n?o.reverse():o},l]}Bv.every=e=>isFinite(e=Math.floor(e))&&e>0?dv(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)}):null;const[Vv,Kv]=$v(Bv,Lv,Dv,Av,Sv,Ov),[Fv,Uv]=$v(Rv,zv,kv,Pv,Ev,xv);function Wv(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Hv(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function qv(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}var Yv,Gv,Xv,Zv={"-":"",_:" ",0:"0"},Qv=/^\s*\d+/,Jv=/^%/,em=/[\\^$*+?|[\]().{}]/g;function tm(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",o=i.length;return n+(o<r?new Array(r-o+1).join(t)+i:i)}function rm(e){return e.replace(em,"\\$&")}function nm(e){return new RegExp("^(?:"+e.map(rm).join("|")+")","i")}function im(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function om(e,t,r){var n=Qv.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function am(e,t,r){var n=Qv.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function lm(e,t,r){var n=Qv.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function cm(e,t,r){var n=Qv.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function um(e,t,r){var n=Qv.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function sm(e,t,r){var n=Qv.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function fm(e,t,r){var n=Qv.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function dm(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function pm(e,t,r){var n=Qv.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function hm(e,t,r){var n=Qv.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function ym(e,t,r){var n=Qv.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function vm(e,t,r){var n=Qv.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function mm(e,t,r){var n=Qv.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function gm(e,t,r){var n=Qv.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function bm(e,t,r){var n=Qv.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function wm(e,t,r){var n=Qv.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function xm(e,t,r){var n=Qv.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Om(e,t,r){var n=Jv.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Em(e,t,r){var n=Qv.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function Sm(e,t,r){var n=Qv.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Pm(e,t){return tm(e.getDate(),t,2)}function jm(e,t){return tm(e.getHours(),t,2)}function Am(e,t){return tm(e.getHours()%12||12,t,2)}function _m(e,t){return tm(1+Pv.count(Rv(e),e),t,3)}function km(e,t){return tm(e.getMilliseconds(),t,3)}function Mm(e,t){return km(e,t)+"000"}function Im(e,t){return tm(e.getMonth()+1,t,2)}function Tm(e,t){return tm(e.getMinutes(),t,2)}function Dm(e,t){return tm(e.getSeconds(),t,2)}function Nm(e){var t=e.getDay();return 0===t?7:t}function Cm(e,t){return tm(kv.count(Rv(e)-1,e),t,2)}function zm(e){var t=e.getDay();return t>=4||0===t?Iv(e):Iv.ceil(e)}function Lm(e,t){return e=zm(e),tm(Iv.count(Rv(e),e)+(4===Rv(e).getDay()),t,2)}function Rm(e){return e.getDay()}function Bm(e,t){return tm(Mv.count(Rv(e)-1,e),t,2)}function $m(e,t){return tm(e.getFullYear()%100,t,2)}function Vm(e,t){return tm((e=zm(e)).getFullYear()%100,t,2)}function Km(e,t){return tm(e.getFullYear()%1e4,t,4)}function Fm(e,t){var r=e.getDay();return tm((e=r>=4||0===r?Iv(e):Iv.ceil(e)).getFullYear()%1e4,t,4)}function Um(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+tm(t/60|0,"0",2)+tm(t%60,"0",2)}function Wm(e,t){return tm(e.getUTCDate(),t,2)}function Hm(e,t){return tm(e.getUTCHours(),t,2)}function qm(e,t){return tm(e.getUTCHours()%12||12,t,2)}function Ym(e,t){return tm(1+jv.count(Bv(e),e),t,3)}function Gm(e,t){return tm(e.getUTCMilliseconds(),t,3)}function Xm(e,t){return Gm(e,t)+"000"}function Zm(e,t){return tm(e.getUTCMonth()+1,t,2)}function Qm(e,t){return tm(e.getUTCMinutes(),t,2)}function Jm(e,t){return tm(e.getUTCSeconds(),t,2)}function eg(e){var t=e.getUTCDay();return 0===t?7:t}function tg(e,t){return tm(Dv.count(Bv(e)-1,e),t,2)}function rg(e){var t=e.getUTCDay();return t>=4||0===t?Cv(e):Cv.ceil(e)}function ng(e,t){return e=rg(e),tm(Cv.count(Bv(e),e)+(4===Bv(e).getUTCDay()),t,2)}function ig(e){return e.getUTCDay()}function og(e,t){return tm(Nv.count(Bv(e)-1,e),t,2)}function ag(e,t){return tm(e.getUTCFullYear()%100,t,2)}function lg(e,t){return tm((e=rg(e)).getUTCFullYear()%100,t,2)}function cg(e,t){return tm(e.getUTCFullYear()%1e4,t,4)}function ug(e,t){var r=e.getUTCDay();return tm((e=r>=4||0===r?Cv(e):Cv.ceil(e)).getUTCFullYear()%1e4,t,4)}function sg(){return"+0000"}function fg(){return"%"}function dg(e){return+e}function pg(e){return Math.floor(+e/1e3)}function hg(e){return new Date(e)}function yg(e){return e instanceof Date?+e:+new Date(+e)}function vg(e,t,r,n,i,o,a,l,c,u){var s=My(),f=s.invert,d=s.domain,p=u(".%L"),h=u(":%S"),y=u("%I:%M"),v=u("%I %p"),m=u("%a %d"),g=u("%b %d"),b=u("%B"),w=u("%Y");function x(e){return(c(e)<e?p:l(e)<e?h:a(e)<e?y:o(e)<e?v:n(e)<e?i(e)<e?m:g:r(e)<e?b:w)(e)}return s.invert=function(e){return new Date(f(e))},s.domain=function(e){return arguments.length?d(Array.from(e,yg)):d().map(hg)},s.ticks=function(t){var r=d();return e(r[0],r[r.length-1],null==t?10:t)},s.tickFormat=function(e,t){return null==t?x:u(t)},s.nice=function(e){var r=d();return e&&"function"==typeof e.range||(e=t(r[0],r[r.length-1],null==e?10:e)),e?d(qy(r,e)):s},s.copy=function(){return _y(s,vg(e,t,r,n,i,o,a,l,c,u))},s}function mg(){var e,t,r,n,i,o=0,a=1,l=Sy,c=!1;function u(t){return null==t||isNaN(t=+t)?i:l(0===r?.5:(t=(n(t)-e)*r,c?Math.max(0,Math.min(1,t)):t))}function s(e){return function(t){var r,n;return arguments.length?([r,n]=t,l=e(r,n),u):[l(0),l(1)]}}return u.domain=function(i){return arguments.length?([o,a]=i,e=n(o=+o),t=n(a=+a),r=e===t?0:1/(t-e),u):[o,a]},u.clamp=function(e){return arguments.length?(c=!!e,u):c},u.interpolator=function(e){return arguments.length?(l=e,u):l},u.range=s(wy),u.rangeRound=s(xy),u.unknown=function(e){return arguments.length?(i=e,u):i},function(i){return n=i,e=i(o),t=i(a),r=e===t?0:1/(t-e),u}}function gg(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function bg(){var e=lv(mg());return e.copy=function(){return gg(e,bg()).exponent(e.exponent())},Sh.apply(e,arguments)}function wg(){var e,t,r,n,i,o,a,l=0,c=.5,u=1,s=1,f=Sy,d=!1;function p(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(s*e<s*t?n:i),f(d?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var r,n,i;return arguments.length?([r,n,i]=t,f=function(e,t){void 0===t&&(t=e,e=wy);for(var r=0,n=t.length-1,i=t[0],o=new Array(n<0?0:n);r<n;)o[r]=e(i,i=t[++r]);return function(e){var t=Math.max(0,Math.min(n-1,Math.floor(e*=n)));return o[t](e-t)}}(e,[r,n,i]),p):[f(0),f(.5),f(1)]}}return p.domain=function(a){return arguments.length?([l,c,u]=a,e=o(l=+l),t=o(c=+c),r=o(u=+u),n=e===t?0:.5/(t-e),i=t===r?0:.5/(r-t),s=t<e?-1:1,p):[l,c,u]},p.clamp=function(e){return arguments.length?(d=!!e,p):d},p.interpolator=function(e){return arguments.length?(f=e,p):f},p.range=h(wy),p.rangeRound=h(xy),p.unknown=function(e){return arguments.length?(a=e,p):a},function(a){return o=a,e=a(l),t=a(c),r=a(u),n=e===t?0:.5/(t-e),i=t===r?0:.5/(r-t),s=t<e?-1:1,p}}function xg(){var e=lv(wg());return e.copy=function(){return gg(e,xg()).exponent(e.exponent())},Sh.apply(e,arguments)}Yv=function(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,o=e.days,a=e.shortDays,l=e.months,c=e.shortMonths,u=nm(i),s=im(i),f=nm(o),d=im(o),p=nm(a),h=im(a),y=nm(l),v=im(l),m=nm(c),g=im(c),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:Pm,e:Pm,f:Mm,g:Vm,G:Fm,H:jm,I:Am,j:_m,L:km,m:Im,M:Tm,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:dg,s:pg,S:Dm,u:Nm,U:Cm,V:Lm,w:Rm,W:Bm,x:null,X:null,y:$m,Y:Km,Z:Um,"%":fg},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:Wm,e:Wm,f:Xm,g:lg,G:ug,H:Hm,I:qm,j:Ym,L:Gm,m:Zm,M:Qm,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:dg,s:pg,S:Jm,u:eg,U:tg,V:ng,w:ig,W:og,x:null,X:null,y:ag,Y:cg,Z:sg,"%":fg},x={a:function(e,t,r){var n=p.exec(t.slice(r));return n?(e.w=h.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(e,t,r){var n=f.exec(t.slice(r));return n?(e.w=d.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(e,t,r){var n=m.exec(t.slice(r));return n?(e.m=g.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(e,t,r){var n=y.exec(t.slice(r));return n?(e.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(e,r,n){return S(e,t,r,n)},d:ym,e:ym,f:xm,g:fm,G:sm,H:mm,I:mm,j:vm,L:wm,m:hm,M:gm,p:function(e,t,r){var n=u.exec(t.slice(r));return n?(e.p=s.get(n[0].toLowerCase()),r+n[0].length):-1},q:pm,Q:Em,s:Sm,S:bm,u:am,U:lm,V:cm,w:om,W:um,x:function(e,t,n){return S(e,r,t,n)},X:function(e,t,r){return S(e,n,t,r)},y:fm,Y:sm,Z:dm,"%":Om};function O(e,t){return function(r){var n,i,o,a=[],l=-1,c=0,u=e.length;for(r instanceof Date||(r=new Date(+r));++l<u;)37===e.charCodeAt(l)&&(a.push(e.slice(c,l)),null!=(i=Zv[n=e.charAt(++l)])?n=e.charAt(++l):i="e"===n?" ":"0",(o=t[n])&&(n=o(r,i)),a.push(n),c=l+1);return a.push(e.slice(c,l)),a.join("")}}function E(e,t){return function(r){var n,i,o=qv(1900,void 0,1);if(S(o,e,r+="",0)!=r.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(n=Hv(qv(o.y,0,1))).getUTCDay(),n=i>4||0===i?Nv.ceil(n):Nv(n),n=jv.offset(n,7*(o.V-1)),o.y=n.getUTCFullYear(),o.m=n.getUTCMonth(),o.d=n.getUTCDate()+(o.w+6)%7):(i=(n=Wv(qv(o.y,0,1))).getDay(),n=i>4||0===i?Mv.ceil(n):Mv(n),n=Pv.offset(n,7*(o.V-1)),o.y=n.getFullYear(),o.m=n.getMonth(),o.d=n.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Hv(qv(o.y,0,1)).getUTCDay():Wv(qv(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Hv(o)):Wv(o)}}function S(e,t,r,n){for(var i,o,a=0,l=t.length,c=r.length;a<l;){if(n>=c)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=x[i in Zv?t.charAt(a++):i])||(n=o(e,r,n))<0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}return b.x=O(r,b),b.X=O(n,b),b.c=O(t,b),w.x=O(r,w),w.X=O(n,w),w.c=O(t,w),{format:function(e){var t=O(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=E(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=O(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=E(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Gv=Yv.format,Xv=Yv.utcFormat;const Og=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Ah,scaleDiverging:function e(){var t=Hy(wg()(Sy));return t.copy=function(){return gg(t,e())},Sh.apply(t,arguments)},scaleDivergingLog:function e(){var t=ev(wg()).domain([.1,1,10]);return t.copy=function(){return gg(t,e()).base(t.base())},Sh.apply(t,arguments)},scaleDivergingPow:xg,scaleDivergingSqrt:function(){return xg.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=nv(wg());return t.copy=function(){return gg(t,e()).constant(t.constant())},Sh.apply(t,arguments)},scaleIdentity:function e(t){var r;function n(e){return null==e||isNaN(e=+e)?r:e}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,Oy),n):t.slice()},n.unknown=function(e){return arguments.length?(r=e,n):r},n.copy=function(){return e(t).unknown(r)},t=arguments.length?Array.from(t,Oy):[0,1],Hy(n)},scaleImplicit:Ph,scaleLinear:function e(){var t=My();return t.copy=function(){return _y(t,e())},Eh.apply(t,arguments),Hy(t)},scaleLog:function e(){const t=ev(ky()).domain([1,10]);return t.copy=()=>_y(t,e()).base(t.base()),Eh.apply(t,arguments),t},scaleOrdinal:jh,scalePoint:function(){return _h(Ah.apply(null,arguments).paddingInner(1))},scalePow:cv,scaleQuantile:function e(){var t,r=[],n=[],i=[];function o(){var e=0,t=Math.max(1,n.length);for(i=new Array(t-1);++e<t;)i[e-1]=Oh(r,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:n[ah(i,e)]}return a.invertExtent=function(e){var t=n.indexOf(e);return t<0?[NaN,NaN]:[t>0?i[t-1]:r[0],t<i.length?i[t]:r[r.length-1]]},a.domain=function(e){if(!arguments.length)return r.slice();r=[];for(let t of e)null==t||isNaN(t=+t)||r.push(t);return r.sort(th),o()},a.range=function(e){return arguments.length?(n=Array.from(e),o()):n.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return i.slice()},a.copy=function(){return e().domain(r).range(n).unknown(t)},Eh.apply(a,arguments)},scaleQuantize:function e(){var t,r=0,n=1,i=1,o=[.5],a=[0,1];function l(e){return null!=e&&e<=e?a[ah(o,e,0,i)]:t}function c(){var e=-1;for(o=new Array(i);++e<i;)o[e]=((e+1)*n-(e-i)*r)/(i+1);return l}return l.domain=function(e){return arguments.length?([r,n]=e,r=+r,n=+n,c()):[r,n]},l.range=function(e){return arguments.length?(i=(a=Array.from(e)).length-1,c()):a.slice()},l.invertExtent=function(e){var t=a.indexOf(e);return t<0?[NaN,NaN]:t<1?[r,o[0]]:t>=i?[o[i-1],n]:[o[t-1],o[t]]},l.unknown=function(e){return arguments.length?(t=e,l):l},l.thresholds=function(){return o.slice()},l.copy=function(){return e().domain([r,n]).range(a).unknown(t)},Eh.apply(Hy(l),arguments)},scaleRadial:function e(){var t,r=My(),n=[0,1],i=!1;function o(e){var n=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(r(e));return isNaN(n)?t:i?Math.round(n):n}return o.invert=function(e){return r.invert(uv(e))},o.domain=function(e){return arguments.length?(r.domain(e),o):r.domain()},o.range=function(e){return arguments.length?(r.range((n=Array.from(e,Oy)).map(uv)),o):n.slice()},o.rangeRound=function(e){return o.range(e).round(!0)},o.round=function(e){return arguments.length?(i=!!e,o):i},o.clamp=function(e){return arguments.length?(r.clamp(e),o):r.clamp()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return e(r.domain(),n).round(i).clamp(r.clamp()).unknown(t)},Eh.apply(o,arguments),Hy(o)},scaleSequential:function e(){var t=Hy(mg()(Sy));return t.copy=function(){return gg(t,e())},Sh.apply(t,arguments)},scaleSequentialLog:function e(){var t=ev(mg()).domain([1,10]);return t.copy=function(){return gg(t,e()).base(t.base())},Sh.apply(t,arguments)},scaleSequentialPow:bg,scaleSequentialQuantile:function e(){var t=[],r=Sy;function n(e){if(null!=e&&!isNaN(e=+e))return r((ah(t,e,1)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let r of e)null==r||isNaN(r=+r)||t.push(r);return t.sort(th),n},n.interpolator=function(e){return arguments.length?(r=e,n):r},n.range=function(){return t.map((e,n)=>r(n/(t.length-1)))},n.quantiles=function(e){return Array.from({length:e+1},(r,n)=>function(e,t){if((r=(e=Float64Array.from(function*(e){for(let t of e)null!=t&&(t=+t)>=t&&(yield t)}(e))).length)&&!isNaN(t=+t)){if(t<=0||r<2)return bh(e);if(t>=1)return gh(e);var r,n=(r-1)*t,i=Math.floor(n),o=gh(wh(e,i).subarray(0,i+1));return o+(bh(e.subarray(i+1))-o)*(n-i)}}(t,n/e))},n.copy=function(){return e(r).domain(t)},Sh.apply(n,arguments)},scaleSequentialSqrt:function(){return bg.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=nv(mg());return t.copy=function(){return gg(t,e()).constant(t.constant())},Sh.apply(t,arguments)},scaleSqrt:function(){return cv.apply(null,arguments).exponent(.5)},scaleSymlog:function e(){var t=nv(ky());return t.copy=function(){return _y(t,e()).constant(t.constant())},Eh.apply(t,arguments)},scaleThreshold:function e(){var t,r=[.5],n=[0,1],i=1;function o(e){return null!=e&&e<=e?n[ah(r,e,0,i)]:t}return o.domain=function(e){return arguments.length?(r=Array.from(e),i=Math.min(r.length,n.length-1),o):r.slice()},o.range=function(e){return arguments.length?(n=Array.from(e),i=Math.min(r.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var t=n.indexOf(e);return[r[t-1],r[t]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return e().domain(r).range(n).unknown(t)},Eh.apply(o,arguments)},scaleTime:function(){return Eh.apply(vg(Fv,Uv,Rv,zv,kv,Pv,Ev,xv,wv,Gv).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return Eh.apply(vg(Vv,Kv,Bv,Lv,Dv,jv,Sv,Ov,wv,Xv).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:Wy},Symbol.toStringTag,{value:"Module"}));function Eg(e,t,r,n){if(null!=r&&null!=n)return function(e,t,r){if("function"==typeof e)return e.copy().domain(t).range(r);if(null!=e){var n=function(e){var t=Og;if(e in t&&"function"==typeof t[e])return t[e]();var r="scale".concat(It(e));return r in t&&"function"==typeof t[r]?t[r]():void 0}(e);if(null!=n)return n.domain(t).range(r),n}}("function"==typeof e.scale?e.scale:t,r,n)}var Sg=(e,t,r)=>{if(null!=e){var{scale:n,type:i}=e;return"auto"===n?"category"===i&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!t)?"point":"category"===i?"band":"linear":"string"==typeof n?"scale".concat(It(n))in Og?n:"point":void 0}};function Pg(e,t){if(e){var r=null!=t?t:e.domain(),n=r.map(t=>{var r;return null!==(r=e(t))&&void 0!==r?r:0}),i=e.range();if(!(0===r.length||i.length<2))return e=>{var t,i,o=function(e,t){for(var r=0,n=e.length,i=e[0]<e[e.length-1];r<n;){var o=Math.floor((r+n)/2);(i?e[o]<t:e[o]>t)?r=o+1:n=o}return r}(n,e);if(o<=0)return r[0];if(o>=r.length)return r[r.length-1];var a=null!==(t=n[o-1])&&void 0!==t?t:0,l=null!==(i=n[o])&&void 0!==i?i:0;return Math.abs(e-a)<=Math.abs(e-l)?r[o-1]:r[o]}}}function jg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ag(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jg(Object(r),!0).forEach(function(t){_g(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jg(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _g(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var kg=[0,"auto"],Mg={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0,niceTicks:"auto"},Ig=(e,t)=>e.cartesianAxis.xAxis[t],Tg=(e,t)=>{var r=Ig(e,t);return null==r?Mg:r},Dg={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:kg,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,niceTicks:"auto",width:60},Ng=(e,t)=>e.cartesianAxis.yAxis[t],Cg=(e,t)=>{var r=Ng(e,t);return null==r?Dg:r},zg={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},Lg=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return null==r?zg:r},Rg=(e,t,r)=>{switch(t){case"xAxis":return Tg(e,r);case"yAxis":return Cg(e,r);case"zAxis":return Lg(e,r);case"angleAxis":return zp(e,r);case"radiusAxis":return Lp(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Bg=(e,t,r)=>{switch(t){case"xAxis":return Tg(e,r);case"yAxis":return Cg(e,r);case"angleAxis":return zp(e,r);case"radiusAxis":return Lp(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},$g=e=>e.graphicalItems.cartesianItems.some(e=>"bar"===e.type)||e.graphicalItems.polarItems.some(e=>"radialBar"===e.type);function Vg(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var Kg=e=>e.graphicalItems.cartesianItems,Fg=pi([Wp,Hp],Vg),Ug=(e,t,r)=>e.filter(r).filter(e=>!0===(null==t?void 0:t.includeHidden)||!e.hide),Wg=pi([Kg,Rg,Fg],Ug,{memoizeOptions:{resultEqualityCheck:Zp}}),Hg=pi([Wg],e=>e.filter(e=>"area"===e.type||"bar"===e.type).filter(Gp)),qg=e=>e.filter(e=>!("stackId"in e)||void 0===e.stackId),Yg=pi([Wg],qg),Gg=e=>e.map(e=>e.data).filter(Boolean).flat(1),Xg=pi([Wg],e=>e.some(e=>!e.data)),Zg=pi([Wg],Gg,{memoizeOptions:{resultEqualityCheck:Zp}}),Qg=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:i}=t;return e.length>0?e:r.slice(n,i+1)},Jg=pi([Zg,Md],Qg),eb=(e,t,r,n,i,o)=>{var{chartData:a=[],dataStartIndex:l,dataEndIndex:c}=n,u=((e,t,r)=>null!=(null==t?void 0:t.dataKey)?e.map(e=>({value:Ml(e,t.dataKey)})):r.length>0?r.map(e=>e.dataKey).flatMap(t=>e.map(e=>({value:Ml(e,t)}))):e.map(e=>({value:e})))(e,t,r);return i&&null!=(null==t?void 0:t.dataKey)&&o.length>0?[...a.slice(l,c+1).map(e=>({value:Ml(e,t.dataKey)})).filter(e=>null!=e.value),...u]:u},tb=pi([Jg,Rg,Wg,Md,Xg,Zg],eb);function rb(e){if(Et(e)||e instanceof Date){var t=Number(e);if(Pl(t))return t}}function nb(e){if(Array.isArray(e)){var t=[rb(e[0]),rb(e[1])];return Nd(t)?t:void 0}var r=rb(e);if(null!=r)return[r,r]}function ib(e){return e.map(rb).filter(Tt)}function ob(e,t){var r=rb(e),n=rb(t);return null==r&&null==n?0:null==r?-1:null==n?1:r-n}var ab=pi([tb],e=>null==e?void 0:e.map(e=>e.value).sort(ob));function lb(e,t){switch(e){case"xAxis":return"x"===t.direction;case"yAxis":return"y"===t.direction;default:return!1}}var cb=e=>{var t=Qp(e),r=Jp(e);return Bg(e,t,r)},ub=pi([cb],e=>null==e?void 0:e.dataKey),sb=pi([Hg,Md,cb],Yp),fb=(e,t,r,n)=>{var i=t.reduce((e,t)=>{if(null==t.stackId)return e;var r=e[t.stackId];return null==r&&(r=[]),r.push(t),e[t.stackId]=r,e},{});return Object.fromEntries(Object.entries(i).map(t=>{var[i,o]=t,a=n?[...o].reverse():o,l=a.map(qp);return[i,{stackedData:Cl(e,l,r),graphicalItems:a}]}))},db=pi([sb,Hg,Op,Ep],fb),pb=(e,t,r,n)=>{var{dataStartIndex:i,dataEndIndex:o}=t;if(null==n&&"zAxis"!==r){var a=((e,t,r)=>{var n;if(null!=e)return[(n=Object.keys(e).reduce((n,i)=>{var o=e[i];if(!o)return n;var{stackedData:a}=o,l=a.reduce((e,n)=>{var i,o=(i=Sl(n,t,r).flat(2).filter(Ot),[Math.min(...i),Math.max(...i)]);return Pl(o[0])&&Pl(o[1])?[Math.min(e[0],o[0]),Math.max(e[1],o[1])]:e},[1/0,-1/0]);return[Math.min(l[0],n[0]),Math.max(l[1],n[1])]},[1/0,-1/0]))[0]===1/0?0:n[0],n[1]===-1/0?0:n[1]]})(e,i,o);if(null==a||0!==a[0]||0!==a[1])return a}},hb=pi([Rg],e=>e.allowDataOverflow),yb=e=>{var t;if(null==e||!("domain"in e))return kg;if(null!=e.domain)return e.domain;if("ticks"in e&&null!=e.ticks){if("number"===e.type){var r=ib(e.ticks);return[Math.min(...r),Math.max(...r)]}if("category"===e.type)return e.ticks.map(String)}return null!==(t=null==e?void 0:e.domain)&&void 0!==t?t:kg},vb=pi([Rg],yb),mb=pi([vb,hb],zd),gb=pi([db,_d,Wp,mb],pb,{memoizeOptions:{resultEqualityCheck:Xp}}),bb=e=>e.errorBars,wb=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.filter(Boolean);if(0!==n.length){var i=n.flat();return[Math.min(...i),Math.max(...i)]}},xb=function(e,t,r,n,i){var o,a,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];if(r.length>0&&r.forEach(e=>{var r,c=null!=e.data?[...e.data]:l,u=null===(r=n[e.id])||void 0===r?void 0:r.filter(e=>lb(i,e));c.forEach(r=>{var n,i=Ml(r,null!==(n=t.dataKey)&&void 0!==n?n:e.dataKey),l=function(e,t,r){if(!r)return[];if(!r.length)return[];var n;if("number"!=typeof t||wt(t)){if(Array.isArray(t)){var i=ib(t);i.length>0&&(n=Math.max(...i))}}else n=t;return null==n?[]:ib(r.flatMap(t=>{var r,i,o=Ml(e,t.dataKey);if(Array.isArray(o)?[r,i]=o:r=i=o,Pl(r)&&Pl(i))return[n-r,n+i]}))}(r,i,u);if(l.length>=2){var c=Math.min(...l),s=Math.max(...l);(null==o||c<o)&&(o=c),(null==a||s>a)&&(a=s)}var f=nb(i);null!=f&&(o=null==o?f[0]:Math.min(o,f[0]),a=null==a?f[1]:Math.max(a,f[1]))})}),null!=(null==t?void 0:t.dataKey)&&0===r.length&&e.forEach(e=>{var r=nb(Ml(e,t.dataKey));null!=r&&(o=null==o?r[0]:Math.min(o,r[0]),a=null==a?r[1]:Math.max(a,r[1]))}),Pl(o)&&Pl(a))return[o,a]},Ob=pi([Jg,Rg,Yg,bb,Wp,Td],xb,{memoizeOptions:{resultEqualityCheck:Xp}});function Eb(e){var{value:t}=e;if(Et(t)||t instanceof Date)return t}var Sb=e=>e.referenceElements.dots,Pb=(e,t,r)=>e.filter(e=>"extendDomain"===e.ifOverflow).filter(e=>"xAxis"===t?e.xAxisId===r:e.yAxisId===r),jb=pi([Sb,Wp,Hp],Pb),Ab=e=>e.referenceElements.areas,_b=pi([Ab,Wp,Hp],Pb),kb=e=>e.referenceElements.lines,Mb=pi([kb,Wp,Hp],Pb),Ib=(e,t)=>{if(null!=e){var r=ib(e.map(e=>"xAxis"===t?e.x:e.y));if(0!==r.length)return[Math.min(...r),Math.max(...r)]}},Tb=pi(jb,Wp,Ib),Db=(e,t)=>{if(null!=e){var r=ib(e.flatMap(e=>["xAxis"===t?e.x1:e.y1,"xAxis"===t?e.x2:e.y2]));if(0!==r.length)return[Math.min(...r),Math.max(...r)]}},Nb=pi([_b,Wp],Db),Cb=(e,t)=>{if(null!=e){var r=e.flatMap(e=>"xAxis"===t?function(e){var t;if(null!=e.x)return ib([e.x]);var r=null===(t=e.segment)||void 0===t?void 0:t.map(e=>e.x);return null==r||0===r.length?[]:ib(r)}(e):function(e){var t;if(null!=e.y)return ib([e.y]);var r=null===(t=e.segment)||void 0===t?void 0:t.map(e=>e.y);return null==r||0===r.length?[]:ib(r)}(e));if(0!==r.length)return[Math.min(...r),Math.max(...r)]}},zb=pi([Mb,Wp],Cb),Lb=pi(Tb,zb,Nb,(e,t,r)=>wb(e,r,t)),Rb=(e,t,r,n,i,o,a,l)=>null!=r?r:function(e,t,r){if(r||null!=t){if("function"==typeof e&&null!=t)try{var n=e(t,r);if(Nd(n))return Cd(n,t,r)}catch(e){}if(Array.isArray(e)&&2===e.length){var i,o,[a,l]=e;if("auto"===a)null!=t&&(i=Math.min(...t));else if(Ot(a))i=a;else if("function"==typeof a)try{null!=t&&(i=a(null==t?void 0:t[0]))}catch(e){}else if("string"==typeof a&&Bl.test(a)){var c=Bl.exec(a);i=null==c||null==c[1]||null==t?void 0:t[0]-+c[1]}else i=null==t?void 0:t[0];if("auto"===l)null!=t&&(o=Math.max(...t));else if(Ot(l))o=l;else if("function"==typeof l)try{null!=t&&(o=l(null==t?void 0:t[1]))}catch(e){}else if("string"==typeof l&&$l.test(l)){var u=$l.exec(l);o=null==u||null==u[1]||null==t?void 0:t[1]+ +u[1]}else o=null==t?void 0:t[1];var s=[i,o];if(Nd(s))return null==t?s:Cd(s,t,r)}}}(t,"vertical"===a&&"xAxis"===l||"horizontal"===a&&"yAxis"===l?wb(n,o,i):wb(o,i),e.allowDataOverflow),Bb=pi([Rg,vb,mb,gb,Ob,Lb,Vc,Wp],Rb,{memoizeOptions:{resultEqualityCheck:Xp}}),$b=[0,1],Vb=(e,t,r,n,i,o,a)=>{if(null!=e&&null!=r&&0!==r.length||void 0!==a){var l,{dataKey:c,type:u}=e,s=Il(t,o);return s&&null==c?Ad(0,null!==(l=null==r?void 0:r.length)&&void 0!==l?l:0):"category"===u?((e,t,r)=>{var n=e.map(Eb).filter(e=>null!=e);return r&&(null==t.dataKey||t.allowDuplicatedCategory&&At(n))?Ad(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))})(n,e,s):"expand"!==i||s?a:$b}},Kb=pi([Rg,Vc,Jg,tb,Op,Wp,Bb],Vb),Fb=pi([Rg,$g,Sp],Sg),Ub=(e,t,r)=>{var{niceTicks:n}=t;if("none"!==n){var i=yb(t),o=Array.isArray(i)&&("auto"===i[0]||"auto"===i[1]);if(("snap125"===n||"adaptive"===n)&&null!=t&&t.tickCount&&Nd(e)){if(o)return gp(e,t.tickCount,t.allowDecimals,n);if("number"===t.type)return bp(e,t.tickCount,t.allowDecimals,n)}if("auto"===n&&"linear"===r&&null!=t&&t.tickCount){if(o&&Nd(e))return gp(e,t.tickCount,t.allowDecimals,"adaptive");if("number"===t.type&&Nd(e))return bp(e,t.tickCount,t.allowDecimals,"adaptive")}}},Wb=pi([Kb,Bg,Fb],Ub),Hb=(e,t,r,n)=>{if("angleAxis"!==n&&"number"===(null==e?void 0:e.type)&&Nd(t)&&Array.isArray(r)&&r.length>0){var i,o,a=null!==(i=r[0])&&void 0!==i?i:0,l=t[1],c=null!==(o=r[r.length-1])&&void 0!==o?o:0;return[Math.min(t[0],a),Math.max(l,c)]}return t},qb=pi([Rg,Kb,Wb,Wp],Hb),Yb=pi(tb,Rg,(e,t)=>{if(t&&"number"===t.type){var r=1/0,n=Array.from(ib(e.map(e=>e.value))).sort((e,t)=>e-t),i=n[0],o=n[n.length-1];if(null==i||null==o)return 1/0;var a=o-i;if(0===a)return 1/0;for(var l=0;l<n.length-1;l++){var c=n[l],u=n[l+1];null!=c&&null!=u&&(r=Math.min(r,u-c))}return r/a}}),Gb=pi(Yb,Vc,xp,ic,(e,t,r,n,i)=>i,(e,t,r,n,i)=>{if(!Pl(e))return 0;var o="vertical"===t?n.height:n.width;if("gap"===i)return e*o/2;if("no-gap"===i){var a=jt(r,e*o),l=e*o/2;return l-a-(l-a)/o*a}return 0}),Xb=pi(Tg,(e,t,r)=>{var n=Tg(e,t);return null==n||"string"!=typeof n.padding?0:Gb(e,"xAxis",t,r,n.padding)},(e,t)=>{var r,n;if(null==e)return{left:0,right:0};var{padding:i}=e;return"string"==typeof i?{left:t,right:t}:{left:(null!==(r=i.left)&&void 0!==r?r:0)+t,right:(null!==(n=i.right)&&void 0!==n?n:0)+t}}),Zb=pi(Cg,(e,t,r)=>{var n=Cg(e,t);return null==n||"string"!=typeof n.padding?0:Gb(e,"yAxis",t,r,n.padding)},(e,t)=>{var r,n;if(null==e)return{top:0,bottom:0};var{padding:i}=e;return"string"==typeof i?{top:t,bottom:t}:{top:(null!==(r=i.top)&&void 0!==r?r:0)+t,bottom:(null!==(n=i.bottom)&&void 0!==n?n:0)+t}}),Qb=pi([ic,Xb,sc,uc,(e,t,r)=>r],(e,t,r,n,i)=>{var{padding:o}=n;return i?[o.left,r.width-o.right]:[e.left+t.left,e.left+e.width-t.right]}),Jb=pi([ic,Vc,Zb,sc,uc,(e,t,r)=>r],(e,t,r,n,i,o)=>{var{padding:a}=i;return o?[n.height-a.bottom,a.top]:"horizontal"===t?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),ew=(e,t,r,n)=>{var i;switch(t){case"xAxis":return Qb(e,r,n);case"yAxis":return Jb(e,r,n);case"zAxis":return null===(i=Lg(e,r))||void 0===i?void 0:i.range;case"angleAxis":return Kp(e);case"radiusAxis":return Fp(e,r);default:return}},tw=pi([Rg,ew],kp),rw=pi([Fb,qb],(e,t)=>{if(null!=t){if("linear"===e){if(!Nd(t)){for(var r,n,i=0;i<t.length;i++){var o=t[i];Pl(o)&&((void 0===r||o<r)&&(r=o),(void 0===n||o>n)&&(n=o))}return void 0!==r&&void 0!==n?[r,n]:void 0}return t}return t}}),nw=pi([Rg,Fb,rw,tw],Eg),iw=(e,t,r,n)=>{if(null!=r&&null!=r.dataKey){var{type:i,scale:o}=r;return!Il(e,n)||"number"!==i&&"auto"===o?void 0:t.map(e=>e.value)}},ow=pi([Vc,tb,Bg,Wp],iw),aw=pi([nw],eh);function lw(e,t){return e.id<t.id?-1:e.id>t.id?1:0}pi([nw],function(e){if(null!=e)return"invert"in e&&"function"==typeof e.invert?e.invert.bind(e):Pg(e,void 0)}),pi([nw,ab],Pg),pi([Wg,bb,Wp],(e,t,r)=>e.flatMap(e=>t[e.id]).filter(Boolean).filter(e=>lb(r,e)));var cw=(e,t)=>t,uw=(e,t,r)=>r,sw=pi(Yl,cw,uw,(e,t,r)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===r).sort(lw)),fw=pi(Gl,cw,uw,(e,t,r)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===r).sort(lw)),dw=(e,t)=>({width:e.width,height:t.height}),pw=pi(ic,Tg,dw),hw=pi(Wl,ic,sw,cw,uw,(e,t,r,n,i)=>{var o,a={};return r.forEach(r=>{var l=dw(t,r);null==o&&(o=((e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}})(t,n,e));var c="top"===n&&!i||"bottom"===n&&i;a[r.id]=o-Number(c)*l.height,o+=(c?-1:1)*l.height}),a}),yw=pi(Ul,ic,fw,cw,uw,(e,t,r,n,i)=>{var o,a={};return r.forEach(r=>{var l=((e,t)=>({width:"number"==typeof t.width?t.width:60,height:e.height}))(t,r);null==o&&(o=((e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}})(t,n,e));var c="left"===n&&!i||"right"===n&&i;a[r.id]=o-Number(c)*l.width,o+=(c?-1:1)*l.width}),a}),vw=pi([ic,Tg,(e,t)=>{var r=Tg(e,t);if(null!=r)return hw(e,r.orientation,r.mirror)},(e,t)=>t],(e,t,r,n)=>{if(null!=t){var i=null==r?void 0:r[n];return null==i?{x:e.left,y:0}:{x:e.left,y:i}}}),mw=pi([ic,Cg,(e,t)=>{var r=Cg(e,t);if(null!=r)return yw(e,r.orientation,r.mirror)},(e,t)=>t],(e,t,r,n)=>{if(null!=t){var i=null==r?void 0:r[n];return null==i?{x:0,y:e.top}:{x:i,y:e.top}}}),gw=pi(ic,Cg,(e,t)=>({width:"number"==typeof t.width?t.width:60,height:e.height})),bw=(e,t,r)=>{switch(t){case"xAxis":return pw(e,r).width;case"yAxis":return gw(e,r).height;default:return}},ww=(e,t,r,n)=>{if(null!=r){var{allowDuplicatedCategory:i,type:o,dataKey:a}=r,l=Il(e,n),c=t.map(e=>e.value),u=c.filter(e=>null!=e);return a&&l&&"category"===o&&i&&At(u)?c:void 0}},xw=pi([Vc,tb,Rg,Wp],ww),Ow=pi([Vc,(e,t,r)=>{switch(t){case"xAxis":return Tg(e,r);case"yAxis":return Cg(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Fb,aw,xw,ow,ew,Wb,Wp],(e,t,r,n,i,o,a,l,c)=>{if(null!=t){var u=Il(e,c);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:c,categoricalDomain:o,duplicateDomain:i,isCategorical:u,niceTicks:l,range:a,realScaleType:r,scale:n}}}),Ew=pi([Vc,Bg,Fb,aw,Wb,ew,xw,ow,Wp],(e,t,r,n,i,o,a,l,c)=>{if(null!=t&&null!=n){var u=Il(e,c),{type:s,ticks:f,tickCount:d}=t,p="scaleBand"===r&&"function"==typeof n.bandwidth?n.bandwidth()/2:2,h="category"===s&&n.bandwidth?n.bandwidth()/p:0;h="angleAxis"===c&&null!=o&&o.length>=2?2*bt(o[0]-o[1])*h:h;var y=f||i;return y?y.map((e,t)=>{var r=a?a.indexOf(e):e,i=n.map(r);return Pl(i)?{index:t,coordinate:i+h,value:e,offset:h}:null}).filter(Tt):u&&l?l.map((e,t)=>{var r=n.map(e);return Pl(r)?{coordinate:r+h,value:e,index:t,offset:h}:null}).filter(Tt):n.ticks?n.ticks(d).map((e,t)=>{var r=n.map(e);return Pl(r)?{coordinate:r+h,value:e,index:t,offset:h}:null}).filter(Tt):n.domain().map((e,t)=>{var r=n.map(e);return Pl(r)?{coordinate:r+h,value:a?a[e]:e,index:t,offset:h}:null}).filter(Tt)}}),Sw=pi([Vc,Bg,aw,ew,xw,ow,Wp],(e,t,r,n,i,o,a)=>{if(null!=t&&null!=r&&null!=n&&n[0]!==n[1]){var l=Il(e,a),{tickCount:c}=t,u=0;return u="angleAxis"===a&&(null==n?void 0:n.length)>=2?2*bt(n[0]-n[1])*u:u,l&&o?o.map((e,t)=>{var n=r.map(e);return Pl(n)?{coordinate:n+u,value:e,index:t,offset:u}:null}).filter(Tt):r.ticks?r.ticks(c).map((e,t)=>{var n=r.map(e);return Pl(n)?{coordinate:n+u,value:e,index:t,offset:u}:null}).filter(Tt):r.domain().map((e,t)=>{var n=r.map(e);return Pl(n)?{coordinate:n+u,value:i?i[e]:e,index:t,offset:u}:null}).filter(Tt)}}),Pw=pi(Rg,aw,(e,t)=>{if(null!=e&&null!=t)return Ag(Ag({},e),{},{scale:t})}),jw=pi([Rg,Fb,Kb,tw],Eg),Aw=pi([jw],eh);pi((e,t,r)=>Lg(e,r),Aw,(e,t)=>{if(null!=e&&null!=t)return Ag(Ag({},e),{},{scale:t})});var _w=pi([Vc,Yl,Gl],(e,t,r)=>{switch(e){case"horizontal":return t.some(e=>e.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(e=>e.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}});pi([(e,t,r)=>{var n;return null===(n=e.renderedTicks[t])||void 0===n?void 0:n[r]}],e=>{if(e&&0!==e.length)return t=>{var r,n=1/0,i=e[0];for(var o of e){var a=Math.abs(o.coordinate-t);a<n&&(n=a,i=o)}return null===(r=i)||void 0===r?void 0:r.value}});var kw=e=>e.options.defaultTooltipEventType,Mw=e=>e.options.validateTooltipEventTypes;function Iw(e,t,r){if(null==e)return t;var n=e?"axis":"item";return null==r?t:r.includes(n)?n:t}function Tw(e,t){return Iw(t,kw(e),Mw(e))}var Dw=(e,t)=>{var r,n=Number(t);if(!wt(n)&&null!=t)return n>=0?null==e||null===(r=e[n])||void 0===r?void 0:r.value:void 0},Nw={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},Cw=$a({name:"tooltip",initialState:{itemInteraction:{click:Nw,hover:Nw},axisInteraction:{click:Nw,hover:Nw},keyboardInteraction:Nw,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:Ia()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,i=ca(e).tooltipItemPayloads.indexOf(r);i>-1&&(e.tooltipItemPayloads[i]=n)},prepare:Ia()},removeTooltipEntrySettings:{reducer(e,t){var r=ca(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:Ia()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:zw,replaceTooltipEntrySettings:Lw,removeTooltipEntrySettings:Rw,setTooltipSettingsState:Bw,setActiveMouseOverItemIndex:$w,mouseLeaveItem:Vw,mouseLeaveChart:Kw,setActiveClickItemIndex:Fw,setMouseOverAxisIndex:Uw,setMouseClickAxisIndex:Ww,setSyncInteraction:Hw,setKeyboardInteraction:qw}=Cw.actions,Yw=Cw.reducer;function Gw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Xw(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gw(Object(r),!0).forEach(function(t){Zw(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gw(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Zw(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Qw=(e,t,r,n)=>{if(null==t)return Nw;var i=function(e,t,r){return"axis"===t?"click"===r?e.axisInteraction.click:e.axisInteraction.hover:"click"===r?e.itemInteraction.click:e.itemInteraction.hover}(e,t,r);if(null==i)return Nw;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&null!=e.syncInteraction.index)return e.syncInteraction;if(null!=i.index){if(!0===e.settings.active)return Xw(Xw({},i),{},{active:!0})}else if(null!=n)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return Xw(Xw({},Nw),{},{coordinate:i.coordinate})},Jw=(e,t,r,n)=>{var i=null==e?void 0:e.index;if(null==i)return null;var o=Number(i);if(!Pl(o))return i;var a=1/0;t.length>0&&(a=t.length-1);var l=Math.max(0,Math.min(o,a)),c=t[l];return null==c||function(e,t,r){if(null==r||null==t)return!0;var n=Ml(e,t);return null==n||!Nd(r)||function(e,t){var r=function(e){if("number"==typeof e)return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var r=Number(e);return Number.isFinite(r)?r:void 0}(e),n=t[0],i=t[1];if(void 0===r)return!1;var o=Math.min(n,i),a=Math.max(n,i);return r>=o&&r<=a}(n,r)}(c,r,n)?String(l):null},ex=(e,t,r,n,i,o,a)=>{if(null!=o){var l=a[0],c=null==l?void 0:l.getPosition(o);if(null!=c)return c;var u=null==i?void 0:i[Number(o)];if(u)return"horizontal"===r?{x:u.coordinate,y:(n.top+t)/2}:{x:(n.left+e)/2,y:u.coordinate}}},tx=(e,t,r,n)=>{if("axis"===t)return e.tooltipItemPayloads;if(0===e.tooltipItemPayloads.length)return[];var i;if(i="hover"===r?e.itemInteraction.hover.graphicalItemId:e.itemInteraction.click.graphicalItemId,e.syncInteraction.active&&null==i)return e.tooltipItemPayloads;if(null==i&&(null!=n||e.keyboardInteraction.active)){var o=e.tooltipItemPayloads[0];return null!=o?[o]:[]}return e.tooltipItemPayloads.filter(e=>{var t;return(null===(t=e.settings)||void 0===t?void 0:t.graphicalItemId)===i})},rx=e=>e.options.tooltipPayloadSearcher,nx=e=>e.tooltip;function ix(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ox(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ix(Object(r),!0).forEach(function(t){ax(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ix(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ax(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lx(e){if("string"==typeof e)return e}var cx=(e,t,r,n,i,o,a)=>{if(null!=t&&null!=o){var{chartData:l,computedData:c,dataStartIndex:u,dataEndIndex:s}=r;return e.reduce((e,r)=>{var f,d,p,{dataDefinedOnItem:h,settings:y}=r,v=function(e,t){return null!=e?e:t}(h,l),m=Array.isArray(v)?Sl(v,u,s):v,g=null!==(f=null==y?void 0:y.dataKey)&&void 0!==f?f:n,b=null==y?void 0:y.nameKey;return d=n&&Array.isArray(m)&&!Array.isArray(m[0])&&"axis"===a?kt(m,n,i):o(m,t,c,b),Array.isArray(d)?d.forEach(t=>{var r,n,i=function(e){if(null!=e&&"object"==typeof e){var t,r="name"in e?function(e){if("string"==typeof e||"number"==typeof e)return e}(e.name):void 0,n="unit"in e?function(e){if("string"==typeof e||"number"==typeof e||"boolean"==typeof e)return e}(e.unit):void 0;return{name:r,unit:n,dataKey:"dataKey"in e?"string"==typeof(t=e.dataKey)||"number"==typeof t?t:"function"==typeof t?e=>t(e):void 0:void 0,payload:"payload"in e?e.payload:void 0,color:"color"in e?lx(e.color):void 0,fill:"fill"in e?lx(e.fill):void 0}}}(t),o=null==i?void 0:i.name,a=null==i?void 0:i.dataKey,l=null==i?void 0:i.payload,c=ox(ox({},y),{},{name:o,unit:null==i?void 0:i.unit,color:null!==(r=null==i?void 0:i.color)&&void 0!==r?r:null==y?void 0:y.color,fill:null!==(n=null==i?void 0:i.fill)&&void 0!==n?n:null==y?void 0:y.fill});e.push(Kl({tooltipEntrySettings:c,dataKey:a,payload:l,value:Ml(l,a),name:null==o?void 0:String(o)}))}):e.push(Kl({tooltipEntrySettings:y,dataKey:g,payload:d,value:Ml(d,g),name:null!==(p=Ml(d,b))&&void 0!==p?p:null==y?void 0:y.name})),e},[])}},ux=pi([cb,$g,Sp],Sg),sx=pi([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),fx=pi([Qp,Jp],Vg),dx=pi([sx,cb,fx],Ug,{memoizeOptions:{resultEqualityCheck:Zp}}),px=pi([dx],e=>e.filter(Gp)),hx=pi([dx],Gg,{memoizeOptions:{resultEqualityCheck:Zp}}),yx=pi([dx],e=>e.some(e=>!e.data)),vx=pi([hx,_d],Qg),mx=pi([px,_d,cb],Yp),gx=pi([vx,cb,dx,_d,yx,hx],eb),bx=pi([cb],yb),wx=pi([cb],e=>e.allowDataOverflow),xx=pi([bx,wx],zd),Ox=pi([dx],e=>e.filter(Gp)),Ex=pi([mx,Ox,Op,Ep],fb),Sx=pi([Ex,_d,Qp,xx],pb),Px=pi([dx],qg),jx=pi([vx,cb,Px,bb,Qp,Dd],xb,{memoizeOptions:{resultEqualityCheck:Xp}}),Ax=pi([Sb,Qp,Jp],Pb),_x=pi([Ax,Qp],Ib),kx=pi([Ab,Qp,Jp],Pb),Mx=pi([kx,Qp],Db),Ix=pi([kb,Qp,Jp],Pb),Tx=pi([Ix,Qp],Cb),Dx=pi([_x,Tx,Mx],wb),Nx=pi([cb,bx,xx,Sx,jx,Dx,Vc,Qp],Rb),Cx=pi([cb,Vc,vx,gx,Op,Qp,Nx],Vb),zx=pi([Cx,cb,ux],Ub),Lx=pi([cb,Cx,zx,Qp],Hb),Rx=e=>{var t=Qp(e),r=Jp(e);return ew(e,t,r,!1)},Bx=pi([cb,Rx],kp),$x=pi([cb,ux,Lx,Bx],Eg),Vx=pi([$x],eh),Kx=pi([Vc,gx,cb,Qp],ww),Fx=pi([Vc,gx,cb,Qp],iw),Ux=pi([Vc,cb,ux,Vx,Rx,Kx,Fx,Qp],(e,t,r,n,i,o,a,l)=>{if(t){var{type:c}=t,u=Il(e,l);if(n){var s="scaleBand"===r&&n.bandwidth?n.bandwidth()/2:2,f="category"===c&&n.bandwidth?n.bandwidth()/s:0;return f="angleAxis"===l&&null!=i&&(null==i?void 0:i.length)>=2?2*bt(i[0]-i[1])*f:f,u&&a?a.map((e,t)=>{var r=n.map(e);return Pl(r)?{coordinate:r+f,value:e,index:t,offset:f}:null}).filter(Tt):n.domain().map((e,t)=>{var r=n.map(e);return Pl(r)?{coordinate:r+f,value:o?o[e]:e,index:t,offset:f}:null}).filter(Tt)}}}),Wx=pi([kw,Mw,e=>e.tooltip.settings],(e,t,r)=>Iw(r.shared,e,t)),Hx=e=>e.tooltip.settings.trigger,qx=e=>e.tooltip.settings.defaultIndex,Yx=pi([nx,Wx,Hx,qx],Qw),Gx=pi([Yx,vx,ub,Cx],Jw),Xx=pi([Ux,Gx],Dw),Zx=pi([Yx],e=>{if(e)return e.dataKey}),Qx=pi([Yx],e=>{if(e)return e.graphicalItemId}),Jx=pi([nx,Wx,Hx,qx],tx),eO=pi([Ul,Wl,Vc,ic,Ux,qx,Jx],ex),tO=pi([Yx,eO],(e,t)=>null!=e&&e.coordinate?e.coordinate:t),rO=pi([Yx],e=>{var t;return null!==(t=null==e?void 0:e.active)&&void 0!==t&&t}),nO=pi([Jx,Gx,_d,ub,Xx,rx,Wx],cx),iO=pi([nO],e=>{if(null!=e){var t=e.map(e=>e.payload).filter(e=>null!=e);return Array.from(new Set(t))}});function oO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function aO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oO(Object(r),!0).forEach(function(t){lO(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oO(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function lO(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function uO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cO(Object(r),!0).forEach(function(t){sO(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cO(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function sO(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var fO=(e,t,r,n,i)=>{var o,a=null!==(o=null==t?void 0:t.length)&&void 0!==o?o:0;if(a<=1||null==e)return 0;if("angleAxis"===n&&null!=i&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var l=0;l<a;l++){var c,u,s,f,d,p=l>0?null===(c=r[l-1])||void 0===c?void 0:c.coordinate:null===(u=r[a-1])||void 0===u?void 0:u.coordinate,h=null===(s=r[l])||void 0===s?void 0:s.coordinate,y=l>=a-1?null===(f=r[0])||void 0===f?void 0:f.coordinate:null===(d=r[l+1])||void 0===d?void 0:d.coordinate,v=void 0;if(null!=p&&null!=h&&null!=y)if(bt(h-p)!==bt(y-h)){var m=[];if(bt(y-h)===bt(i[1]-i[0])){v=y;var g=h+i[1]-i[0];m[0]=Math.min(g,(g+p)/2),m[1]=Math.max(g,(g+p)/2)}else{v=p;var b=y+i[1]-i[0];m[0]=Math.min(h,(b+h)/2),m[1]=Math.max(h,(b+h)/2)}var w,x=[Math.min(h,(v+h)/2),Math.max(h,(v+h)/2)];if(e>x[0]&&e<=x[1]||e>=m[0]&&e<=m[1])return null===(w=r[l])||void 0===w?void 0:w.index}else{var O,E=Math.min(p,y),S=Math.max(p,y);if(e>(E+h)/2&&e<=(S+h)/2)return null===(O=r[l])||void 0===O?void 0:O.index}}else if(t)for(var P=0;P<a;P++){var j=t[P];if(null!=j){var A=t[P+1],_=t[P-1];if(0===P&&null!=A&&e<=(j.coordinate+A.coordinate)/2)return j.index;if(P===a-1&&null!=_&&e>(j.coordinate+_.coordinate)/2)return j.index;if(P>0&&P<a-1&&null!=_&&null!=A&&e>(j.coordinate+_.coordinate)/2&&e<=(j.coordinate+A.coordinate)/2)return j.index}}return-1},dO=()=>ri(Sp),pO=(e,t)=>t,hO=(e,t,r)=>r,yO=(e,t,r,n)=>n,vO=pi(Ux,e=>Li(e,e=>e.coordinate)),mO=pi([nx,pO,hO,yO],Qw),gO=pi([mO,vx,ub,Cx],Jw),bO=pi([nx,pO,hO,yO],tx),wO=pi([Ul,Wl,Vc,ic,Ux,yO,bO],ex),xO=pi([mO,wO],(e,t)=>{var r;return null!==(r=e.coordinate)&&void 0!==r?r:t}),OO=pi([Ux,gO],Dw),EO=pi([bO,gO,_d,ub,OO,rx,pO],cx),SO=pi([mO,gO],(e,t)=>({isActive:e.active&&null!=t,activeIndex:t})),PO=pi(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(null!=t){var n=e[t];if(null!=n)return r?n.panoramaElement:n.element}}),jO=pi(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(e=>parseInt(e,10)).concat(Object.values(_p));return Array.from(new Set(t)).sort((e,t)=>e-t)},{memoizeOptions:{resultEqualityCheck:function(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return!1}}});function AO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?AO(Object(r),!0).forEach(function(t){kO(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AO(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function kO(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var MO={zIndexMap:Object.values(_p).reduce((e,t)=>_O(_O({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),{})},IO=new Set(Object.values(_p)),TO=$a({name:"zIndex",initialState:MO,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:Ia()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!function(e){return IO.has(e)}(r)&&delete e.zIndexMap[r])},prepare:Ia()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r,element:n,isPanorama:i}=t.payload;e.zIndexMap[r]?i?e.zIndexMap[r].panoramaElement=n:e.zIndexMap[r].element=n:e.zIndexMap[r]={consumers:0,element:i?void 0:n,panoramaElement:i?n:void 0}},prepare:Ia()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElement=void 0:e.zIndexMap[r].element=void 0)},prepare:Ia()}}}),{registerZIndexPortal:DO,unregisterZIndexPortal:NO,registerZIndexPortalElement:CO,unregisterZIndexPortalElement:zO}=TO.actions,LO=TO.reducer;function RO(e){var{zIndex:t,children:r}=e,n=void 0!==Kc()&&void 0!==t&&0!==t,i=cc(),o=m(void 0),a=m(new Set),l=Qn(),c=ri(e=>PO(e,t,i));if(w(()=>{if(!n){var e=a.current;return e.forEach(e=>{l(NO({zIndex:e}))}),e.clear(),void(o.current=void 0)}if(a.current.has(t)||(l(DO({zIndex:t})),a.current.add(t)),c){o.current=c;var r=a.current;r.forEach(e=>{e!==t&&(l(NO({zIndex:e})),r.delete(e))})}},[l,t,n,c]),w(()=>{var e=a.current;return()=>{e.forEach(e=>{l(NO({zIndex:e}))}),e.clear()}},[l]),!n)return r;var u=null!=c?c:o.current;return u?A(r,u):null}function BO(){return BO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},BO.apply(null,arguments)}function $O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function VO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$O(Object(r),!0).forEach(function(t){KO(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$O(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function KO(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FO(e){var{cursor:t,cursorComp:r,cursorProps:n}=e;return s(t)?x(t,n):O(r,n)}function UO(e){var t,r,n,i,{coordinate:o,payload:a,index:l,offset:u,tooltipAxisBandSize:s,layout:f,cursor:d,tooltipEventType:p,chartName:h}=e,y=o,v=a,m=l;if(!d||!y||"ScatterChart"!==h&&"axis"!==p)return null;if("ScatterChart"===h)r=y,n=tf,i=_p.cursorLine;else if("BarChart"===h)r=function(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-i:r.left+.5,y:"horizontal"===e?r.top+.5:t.y-i,width:"horizontal"===e?n:r.width-1,height:"horizontal"===e?r.height-1:n}}(f,y,u,s),n=qf,i=_p.cursorRectangle;else if("radial"===f&&Kt(y)){var{cx:g,cy:b,radius:w,startAngle:x,endAngle:O}=cd(y);r={cx:g,cy:b,startAngle:x,endAngle:O,innerRadius:w,outerRadius:w},n=hd,i=_p.cursorLine}else r={points:yd(f,y,u)},n=Gs,i=_p.cursorLine;var E="object"==typeof d&&"className"in d?d.className:void 0,S=VO(VO(VO(VO({stroke:"#ccc",pointerEvents:"none"},u),r),z(d)),{},{payload:v,payloadIndex:m,className:k("recharts-tooltip-cursor",E)});return c.createElement(RO,{zIndex:null!==(t=e.zIndex)&&void 0!==t?t:i},c.createElement(FO,{cursor:d,cursorComp:n,cursorProps:S}))}function WO(e){var t,r,n,i=(t=ri(cb),r=ri(Ux),n=ri(Vx),Vl(t&&n?aO(aO({},t),{},{scale:n}):void 0,r)),o=Rc(),a=Kc(),l=dO();return null==i||null==o||null==a||null==l?null:c.createElement(UO,BO({},e,{offset:o,layout:a,tooltipAxisBandSize:i,chartName:l}))}var HO,qO=p(null),YO={exports:{}},GO=new(r((HO||(HO=1,function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function o(e,t,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var l=new i(n,o||e,a),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],l]:e._events[c].push(l):(e._events[c]=l,e._eventsCount++),e}function a(e,t){0===--e._eventsCount?e._events=new n:delete e._events[t]}function l(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),l.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},l.prototype.listeners=function(e){var t=this._events[r?r+e:e];if(!t)return[];if(t.fn)return[t.fn];for(var n=0,i=t.length,o=new Array(i);n<i;n++)o[n]=t[n].fn;return o},l.prototype.listenerCount=function(e){var t=this._events[r?r+e:e];return t?t.fn?1:t.length:0},l.prototype.emit=function(e,t,n,i,o,a){var l=r?r+e:e;if(!this._events[l])return!1;var c,u,s=this._events[l],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(e,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,t),!0;case 3:return s.fn.call(s.context,t,n),!0;case 4:return s.fn.call(s.context,t,n,i),!0;case 5:return s.fn.call(s.context,t,n,i,o),!0;case 6:return s.fn.call(s.context,t,n,i,o,a),!0}for(u=1,c=new Array(f-1);u<f;u++)c[u-1]=arguments[u];s.fn.apply(s.context,c)}else{var d,p=s.length;for(u=0;u<p;u++)switch(s[u].once&&this.removeListener(e,s[u].fn,void 0,!0),f){case 1:s[u].fn.call(s[u].context);break;case 2:s[u].fn.call(s[u].context,t);break;case 3:s[u].fn.call(s[u].context,t,n);break;case 4:s[u].fn.call(s[u].context,t,n,i);break;default:if(!c)for(d=1,c=new Array(f-1);d<f;d++)c[d-1]=arguments[d];s[u].fn.apply(s[u].context,c)}}return!0},l.prototype.on=function(e,t,r){return o(this,e,t,r,!1)},l.prototype.once=function(e,t,r){return o(this,e,t,r,!0)},l.prototype.removeListener=function(e,t,n,i){var o=r?r+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var l=this._events[o];if(l.fn)l.fn!==t||i&&!l.once||n&&l.context!==n||a(this,o);else{for(var c=0,u=[],s=l.length;c<s;c++)(l[c].fn!==t||i&&!l[c].once||n&&l[c].context!==n)&&u.push(l[c]);u.length?this._events[o]=1===u.length?u[0]:u:a(this,o)}return this},l.prototype.removeAllListeners=function(e){var t;return e?this._events[t=r?r+e:e]&&a(this,t):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,e.exports=l}(YO)),YO.exports))),XO="recharts.syncEvent.tooltip",ZO="recharts.syncEvent.brush",QO=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!wt(r))return e[r]}},JO=$a({name:"options",initialState:{chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},reducers:{createEventEmitter:e=>{null==e.eventEmitter&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),eE=JO.reducer,{createEventEmitter:tE}=JO.actions;function rE(e){return e.tooltip.syncInteraction}var nE=$a({name:"chartData",initialState:{chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},reducers:{setChartData(e,t){if(e.chartData=t.payload,null==t.payload)return e.dataStartIndex=0,void(e.dataEndIndex=0);t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:n}=t.payload;null!=r&&(e.dataStartIndex=r),null!=n&&(e.dataEndIndex=n)}}}),{setChartData:iE,setDataStartEndIndexes:oE}=nE.actions,aE=nE.reducer,lE=["x","y"];function cE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function uE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cE(Object(r),!0).forEach(function(t){sE(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cE(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function sE(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function dE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fE(Object(r),!0).forEach(function(t){pE(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fE(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function pE(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hE(e){return e.dataKey}var yE=[],vE={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function mE(e){var t,r,n=qt(e,vE),{active:i,allowEscapeViewBox:o,animationDuration:a,animationEasing:l,content:u,filterNull:s,isAnimationActive:f,offset:p,payloadUniqBy:h,position:y,reverseDirection:v,useTranslate3d:m,wrapperStyle:g,cursor:w,shared:x,trigger:O,defaultIndex:E,portal:S,axisId:P}=n,j=Qn(),_="number"==typeof E?String(E):E;b(()=>{j(Bw({shared:x,trigger:O,axisId:P,active:i,defaultIndex:_}))},[j,x,O,P,i,_]);var k=zc(),M=Rs(),I=function(e){return ri(t=>Tw(t,e))}(x),{activeIndex:T,isActive:D}=null!==(t=ri(e=>SO(e,I,O,_)))&&void 0!==t?t:{},N=ri(e=>EO(e,I,O,_)),C=ri(e=>OO(e,I,O,_)),z=ri(e=>xO(e,I,O,_)),L=N,R=d(qO),B=null!==(r=null!=i?i:D)&&void 0!==r&&r,[$,V]=$i([L,B]),K="axis"===I?C:void 0;!function(e,t,r,n,i,o){var a=ri(r=>((e,t,r)=>{if(null!=t){var n=nx(e);return"axis"===t?"hover"===r?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:"hover"===r?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}})(r,e,t)),l=ri(Qx),c=ri(Ap),u=ri(Pp),s=ri(jp),f=ri(rE),d=null!=(null==f?void 0:f.sourceViewBox),p=zc();b(()=>{if(!d&&null!=u&&null!=c){var e=Hw({active:o,coordinate:r,dataKey:a,index:i,label:"number"==typeof n?String(n):n,sourceViewBox:p,graphicalItemId:l});GO.emit(XO,u,e,c)}},[d,r,a,l,i,n,c,u,s,o,p])}(I,O,z,K,T,B);var F=null!=S?S:R;if(null==F||null==k||null==I)return null;var U=null!=L?L:yE;B||(U=yE),s&&U.length&&(U=Cn(U.filter(e=>null!=e.value&&(!0!==e.hide||n.includeHidden)),h,hE));var W=U.length>0,H=dE(dE({},n),{},{payload:U,label:K,active:B,activeIndex:T,coordinate:z,accessibilityLayer:M}),q=c.createElement(Ls,{allowEscapeViewBox:o,animationDuration:a,animationEasing:l,isAnimationActive:f,active:B,coordinate:z,hasPayload:W,offset:p,position:y,reverseDirection:v,useTranslate3d:m,viewBox:k,wrapperStyle:g,lastBoundingBox:$,innerRef:V,hasPortalFromProps:Boolean(S)},function(e,t){return c.isValidElement(e)?c.cloneElement(e,t):c.createElement("function"==typeof e?e:Ps,t)}(u,H));return c.createElement(c.Fragment,null,A(q,F),B&&c.createElement(WO,{cursor:w,tooltipEventType:I,coordinate:z,payload:U,index:T}))}var gE=e=>null;function bE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function wE(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}gE.displayName="Cell";var xE,OE,EE,SE,PE=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bE(Object(r),!0).forEach(function(t){wE(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bE(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},{cacheSize:2e3,enableCache:!0}),jE=new class{constructor(e){(function(e,t,r){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})(this,"cache",new Map),this.maxSize=e}get(e){var t=this.cache.get(e);return void 0!==t&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){var r=this.cache.keys().next().value;null!=r&&this.cache.delete(r)}this.cache.set(e,t)}clear(){this.cache.clear()}size(){return this.cache.size}}(PE.cacheSize),AE={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},_E="recharts_measurement_span",kE=(e,t)=>{try{var r=document.getElementById(_E);r||((r=document.createElement("span")).setAttribute("id",_E),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,AE,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch(e){return{width:0,height:0}}},ME=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||Ms)return{width:0,height:0};if(!PE.enableCache)return kE(e,t);var r=function(e,t){var r=t.fontSize||"",n=t.fontFamily||"",i=t.fontWeight||"",o=t.fontStyle||"",a=t.letterSpacing||"",l=t.textTransform||"";return"".concat(e,"|").concat(r,"|").concat(n,"|").concat(i,"|").concat(o,"|").concat(a,"|").concat(l)}(e,t),n=jE.get(r);if(n)return n;var i=kE(e,t);return jE.set(r,i),i},IE=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,TE=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,DE=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,NE=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,CE={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},zE=["cm","mm","pt","pc","in","Q","px"],LE="NaN";class RE{static parse(e){var t,[,r,n]=null!==(t=NE.exec(e))&&void 0!==t?t:[];return null==r?RE.NaN:new RE(parseFloat(r),null!=n?n:"")}constructor(e,t){this.num=e,this.unit=t,this.num=e,this.unit=t,wt(e)&&(this.unit=""),""===t||DE.test(t)||(this.num=NaN,this.unit=""),function(e){return zE.includes(e)}(t)&&(this.num=function(e,t){return e*CE[t]}(e,t),this.unit="px")}add(e){return this.unit!==e.unit?new RE(NaN,""):new RE(this.num+e.num,this.unit)}subtract(e){return this.unit!==e.unit?new RE(NaN,""):new RE(this.num-e.num,this.unit)}multiply(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new RE(NaN,""):new RE(this.num*e.num,this.unit||e.unit)}divide(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new RE(NaN,""):new RE(this.num/e.num,this.unit||e.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return wt(this.num)}}function BE(e){if(null==e||e.includes(LE))return LE;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,i,o]=null!==(r=IE.exec(t))&&void 0!==r?r:[],a=RE.parse(null!=n?n:""),l=RE.parse(null!=o?o:""),c="*"===i?a.multiply(l):a.divide(l);if(c.isNaN())return LE;t=t.replace(IE,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var u,[,s,f,d]=null!==(u=TE.exec(t))&&void 0!==u?u:[],p=RE.parse(null!=s?s:""),h=RE.parse(null!=d?d:""),y="+"===f?p.add(h):p.subtract(h);if(y.isNaN())return LE;t=t.replace(TE,y.toString())}return t}xE=RE,OE="NaN",EE=new RE(NaN,""),SE=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(OE),(OE="symbol"==typeof SE?SE:SE+"")in xE?Object.defineProperty(xE,OE,{value:EE,enumerable:!0,configurable:!0,writable:!0}):xE[OE]=EE;var $E=/\(([^()]*)\)/;function VE(e){var t=function(e){try{return function(e){var t=e.replace(/\s+/g,"");return t=function(e){for(var t,r=e;null!=(t=$E.exec(r));){var[,n]=t;r=r.replace($E,BE(n))}return r}(t),BE(t)}(e)}catch(e){return LE}}(e.slice(5,-1));return t===LE?"":t}var KE=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],FE=["dx","dy","angle","className","breakAll"];function UE(){return UE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},UE.apply(null,arguments)}function WE(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var HE=/[ \f\n\r\t\v\u2028\u2029]+/,qE=e=>{var{children:t,breakAll:r,style:n}=e;try{var i=[];return Mt(t)||(i=r?t.toString().split(""):t.toString().split(HE)),{wordsWithComputedWidth:i.map(e=>({word:e,width:ME(e,n).width})),spaceWidth:r?0:ME(" ",n).width}}catch(e){return null}};function YE(e){return"start"===e||"middle"===e||"end"===e||"inherit"===e}var GE=(e,t,r,n)=>e.reduce((e,i)=>{var{word:o,width:a}=i,l=e[e.length-1];return l&&null!=a&&(null==t||n||l.width+a+r<Number(t))?(l.words.push(o),l.width+=a+r):e.push({words:[o],width:a}),e},[]),XE=e=>e.reduce((e,t)=>e.width>t.width?e:t),ZE=(e,t,r,n,i,o,a,l)=>{var c=e.slice(0,t),u=qE({breakAll:r,style:n,children:c+"…"});if(!u)return[!1,[]];var s=GE(u.wordsWithComputedWidth,o,a,l);return[s.length>i||XE(s).width>Number(o),s]},QE=e=>[{words:Mt(e)?[]:e.toString().split(HE),width:void 0}],JE="#808080",eS={angle:0,breakAll:!1,capHeight:"0.71em",fill:JE,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},tS=f((e,t)=>{var r=qt(e,eS),{x:n,y:i,lineHeight:o,capHeight:a,fill:l,scaleToFit:u,textAnchor:s,verticalAnchor:f}=r,d=WE(r,KE),p=h(()=>(e=>{var{width:t,scaleToFit:r,children:n,style:i,breakAll:o,maxLines:a}=e;if((t||r)&&!Ms){var l=qE({breakAll:o,children:n,style:i});if(!l)return QE(n);var{wordsWithComputedWidth:c,spaceWidth:u}=l;return((e,t,r,n,i)=>{var{maxLines:o,children:a,style:l,breakAll:c}=e,u=Ot(o),s=String(a),f=GE(t,n,r,i);if(!u||i)return f;if(!(f.length>o||XE(f).width>Number(n)))return f;for(var d,p=0,h=s.length-1,y=0;p<=h&&y<=s.length-1;){var v=Math.floor((p+h)/2),m=v-1,[g,b]=ZE(s,m,c,l,o,n,r,i),[w]=ZE(s,v,c,l,o,n,r,i);if(g||w||(p=v+1),g&&w&&(h=v-1),!g&&w){d=b;break}y++}return d||f})({breakAll:o,children:n,maxLines:a,style:i},c,u,t,Boolean(r))}return QE(n)})({breakAll:d.breakAll,children:d.children,maxLines:d.maxLines,scaleToFit:u,style:d.style,width:d.width}),[d.breakAll,d.children,d.maxLines,u,d.style,d.width]),{dx:y,dy:v,angle:m,className:g,breakAll:b}=d,w=WE(d,FE);if(!Et(n)||!Et(i)||0===p.length)return null;var x,O=Number(n)+(Ot(y)?y:0),E=Number(i)+(Ot(v)?v:0);if(!Pl(O)||!Pl(E))return null;switch(f){case"start":x=VE("calc(".concat(a,")"));break;case"middle":x=VE("calc(".concat((p.length-1)/2," * -").concat(o," + (").concat(a," / 2))"));break;default:x=VE("calc(".concat(p.length-1," * -").concat(o,")"))}var S=[],P=p[0];if(u&&null!=P){var j=P.width,{width:A}=d;S.push("scale(".concat(Ot(A)&&Ot(j)?A/j:1,")"))}return m&&S.push("rotate(".concat(m,", ").concat(O,", ").concat(E,")")),S.length&&(w.transform=S.join(" ")),c.createElement("text",UE({},L(w),{ref:t,x:O,y:E,className:k("recharts-text",g),textAnchor:s,fill:l.includes("url")?JE:l}),p.map((e,t)=>{var r=e.words.join(b?"":" ");return c.createElement("tspan",{x:O,dy:0===t?x:o,key:"".concat(r,"-").concat(t)},r)}))});function rS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function nS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rS(Object(r),!0).forEach(function(t){iS(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rS(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function iS(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}tS.displayName="Text";var oS=["labelRef"],aS=["content"];function lS(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function cS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function uS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cS(Object(r),!0).forEach(function(t){sS(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cS(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function sS(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fS(){return fS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fS.apply(null,arguments)}var dS=p(null),pS=e=>{var{x:t,y:r,upperWidth:n,lowerWidth:i,width:o,height:a,children:l}=e,u=h(()=>({x:t,y:r,upperWidth:n,lowerWidth:i,width:o,height:a}),[t,r,n,i,o,a]);return c.createElement(dS.Provider,{value:u},l)},hS=()=>{var e=d(dS),t=zc();return e||(t?Cc(t):void 0)},yS=p(null),vS=e=>null!=e&&"function"==typeof e,mS=e=>null!=e&&"cx"in e&&Ot(e.cx),gS={angle:0,offset:5,zIndex:_p.label,position:"middle",textBreakAll:!1};function bS(e){var t,r,n,i,o,a=qt(e,gS),{viewBox:l,parentViewBox:u,position:f,value:p,children:h,content:y,className:v="",textBreakAll:m,labelRef:g}=a,b=(t=d(yS),r=ri(Up),t||r),w=hS(),E=function(e){if(!mS(e))return e;var{cx:t,cy:r,outerRadius:n}=e,i=2*n;return{x:t-n,y:r-n,width:i,upperWidth:i,lowerWidth:i,height:i}}(n=null==l?"center"===f?w:null!=b?b:w:mS(l)?l:Cc(l));if(!n||Mt(p)&&Mt(h)&&!s(y)&&"function"!=typeof y)return null;var S=uS(uS({},a),{},{viewBox:n});if(s(y)){var P=lS(S,oS);return x(y,P)}if("function"==typeof y){var j=lS(S,aS);if(s(i=O(y,j)))return i}else i=(e=>{var{value:t,formatter:r}=e,n=Mt(e.children)?t:e.children;return"function"==typeof r?r(n):n})(a);var A=L(a);if(mS(n)){if("insideStart"===f||"insideEnd"===f||"end"===f)return((e,t,r,n,i)=>{var o,a,{offset:l,className:u}=e,{cx:s,cy:f,innerRadius:d,outerRadius:p,startAngle:h,endAngle:y,clockWise:v}=i,m=(d+p)/2,g=((e,t)=>bt(t-e)*Math.min(Math.abs(t-e),360))(h,y),b=g>=0?1:-1;switch(t){case"insideStart":o=h+b*l,a=v;break;case"insideEnd":o=y-b*l,a=!v;break;case"end":o=y+b*l,a=v;break;default:throw new Error("Unsupported position ".concat(t))}a=g<=0?a:!a;var w=ad(s,f,m,o),x=ad(s,f,m,o+359*(a?1:-1)),O="M".concat(w.x,",").concat(w.y,"\n A").concat(m,",").concat(m,",0,1,").concat(a?0:1,",\n ").concat(x.x,",").concat(x.y),E=Mt(e.id)?Pt("recharts-radial-line-"):e.id;return c.createElement("text",fS({},n,{dominantBaseline:"central",className:k("recharts-radial-bar-label",u)}),c.createElement("defs",null,c.createElement("path",{id:E,d:O})),c.createElement("textPath",{xlinkHref:"#".concat(E)},r))})(a,f,i,A,n);o=((e,t,r)=>{var{cx:n,cy:i,innerRadius:o,outerRadius:a,startAngle:l,endAngle:c}=e,u=(l+c)/2;if("outside"===r){var{x:s,y:f}=ad(n,i,a+t,u);return{x:s,y:f,textAnchor:s>=n?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:n,y:i,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:n,y:i,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:n,y:i,textAnchor:"middle",verticalAnchor:"end"};var d=(o+a)/2,{x:p,y:h}=ad(n,i,d,u);return{x:p,y:h,textAnchor:"middle",verticalAnchor:"middle"}})(n,a.offset,a.position)}else{if(!E)return null;var _=(e=>{var{viewBox:t,position:r,offset:n=0,parentViewBox:i}=e,{x:o,y:a,height:l,upperWidth:c,lowerWidth:u}=Cc(t),s=o,f=o+(c-u)/2,d=(s+f)/2,p=(c+u)/2,h=s+c/2,y=l>=0?1:-1,v=y*n,m=y>0?"end":"start",g=y>0?"start":"end",b=c>=0?1:-1,w=b*n,x=b>0?"end":"start",O=b>0?"start":"end",E=i;if("top"===r){var S={x:s+c/2,y:a-v,horizontalAnchor:"middle",verticalAnchor:m};return E&&(S.height=Math.max(a-E.y,0),S.width=c),S}if("bottom"===r){var P={x:f+u/2,y:a+l+v,horizontalAnchor:"middle",verticalAnchor:g};return E&&(P.height=Math.max(E.y+E.height-(a+l),0),P.width=u),P}if("left"===r){var j={x:d-w,y:a+l/2,horizontalAnchor:x,verticalAnchor:"middle"};return E&&(j.width=Math.max(j.x-E.x,0),j.height=l),j}if("right"===r){var A={x:d+p+w,y:a+l/2,horizontalAnchor:O,verticalAnchor:"middle"};return E&&(A.width=Math.max(E.x+E.width-A.x,0),A.height=l),A}var _=E?{width:p,height:l}:{};return"insideLeft"===r?nS({x:d+w,y:a+l/2,horizontalAnchor:O,verticalAnchor:"middle"},_):"insideRight"===r?nS({x:d+p-w,y:a+l/2,horizontalAnchor:x,verticalAnchor:"middle"},_):"insideTop"===r?nS({x:s+c/2,y:a+v,horizontalAnchor:"middle",verticalAnchor:g},_):"insideBottom"===r?nS({x:f+u/2,y:a+l-v,horizontalAnchor:"middle",verticalAnchor:m},_):"insideTopLeft"===r?nS({x:s+w,y:a+v,horizontalAnchor:O,verticalAnchor:g},_):"insideTopRight"===r?nS({x:s+c-w,y:a+v,horizontalAnchor:x,verticalAnchor:g},_):"insideBottomLeft"===r?nS({x:f+w,y:a+l-v,horizontalAnchor:O,verticalAnchor:m},_):"insideBottomRight"===r?nS({x:f+u-w,y:a+l-v,horizontalAnchor:x,verticalAnchor:m},_):r&&"object"==typeof r&&(Ot(r.x)||xt(r.x))&&(Ot(r.y)||xt(r.y))?nS({x:o+jt(r.x,p),y:a+jt(r.y,l),horizontalAnchor:"end",verticalAnchor:"end"},_):nS({x:h,y:a+l/2,horizontalAnchor:"middle",verticalAnchor:"middle"},_)})({viewBox:E,position:f,offset:a.offset,parentViewBox:mS(u)?void 0:u});o=uS(uS({x:_.x,y:_.y,textAnchor:_.horizontalAnchor,verticalAnchor:_.verticalAnchor},void 0!==_.width?{width:_.width}:{}),void 0!==_.height?{height:_.height}:{})}return c.createElement(RO,{zIndex:a.zIndex},c.createElement(tS,fS({ref:g,className:k("recharts-label",v)},A,o,{textAnchor:YE(A.textAnchor)?A.textAnchor:o.textAnchor,breakAll:m}),i))}function wS(e){var{label:t,labelRef:r}=e;return((e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return!0===e?c.createElement(bS,fS({key:"label-implicit"},n)):Et(e)?c.createElement(bS,fS({key:"label-implicit",value:e},n)):s(e)?e.type===bS?x(e,uS({key:"label-implicit"},n)):c.createElement(bS,fS({key:"label-implicit",content:e},n)):vS(e)?c.createElement(bS,fS({key:"label-implicit",content:e},n)):e&&"object"==typeof e?c.createElement(bS,fS({},e,{key:"label-implicit"},n)):null})(t,hS(),r)||null}bS.displayName="Label";var xS=["valueAccessor"],OS=["dataKey","clockWise","id","textBreakAll","zIndex"];function ES(){return ES=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ES.apply(null,arguments)}function SS(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var PS=e=>{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(function(e){return Mt(e)||"string"==typeof e||"number"==typeof e||"boolean"==typeof e}(t))return t},jS=p(void 0),AS=jS.Provider,_S=p(void 0);function kS(e){var{valueAccessor:t=PS}=e,r=SS(e,xS),{dataKey:n,id:i,textBreakAll:o,zIndex:a}=r,l=SS(r,OS),u=d(jS),s=d(_S),f=u||s;return f&&f.length?c.createElement(RO,{zIndex:null!=a?a:_p.label},c.createElement(F,{className:"recharts-label-list"},f.map((e,a)=>{var u,s=Mt(n)?t(e,a):Ml(e.payload,n),f=Mt(i)?{}:{id:"".concat(i,"-").concat(a)};return c.createElement(bS,ES({key:"label-".concat(a)},L(e),l,f,{fill:null!==(u=r.fill)&&void 0!==u?u:e.fill,parentViewBox:e.parentViewBox,value:s,textBreakAll:o,viewBox:e.viewBox,index:a,zIndex:0}))}))):null}function MS(e){var{label:t}=e;return t?!0===t?c.createElement(kS,{key:"labelList-implicit"}):c.isValidElement(t)||vS(t)?c.createElement(kS,{key:"labelList-implicit",content:t}):"object"==typeof t?c.createElement(kS,ES({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function IS(){return IS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},IS.apply(null,arguments)}kS.displayName="LabelList";var TS,DS=e=>{var{cx:t,cy:r,r:n,className:i}=e,o=k("recharts-dot",i);return Ot(t)&&Ot(r)&&Ot(n)?c.createElement("circle",IS({},C(e),Ft(e),{className:o,cx:t,cy:r,r:n})):null},NS=$a({name:"polarAxis",initialState:{radiusAxis:{},angleAxis:{}},reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}).reducer,CS={exports:{}},zS={};function LS(){if(TS)return zS;TS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),s=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),d=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function h(p){if("object"==typeof p&&null!==p){var h=p.$$typeof;switch(h){case e:switch(p=p.type){case r:case i:case n:case c:case u:case d:return p;default:switch(p=p&&p.$$typeof){case a:case l:case f:case s:case o:return p;default:return h}}case t:return h}}}return zS.ContextConsumer=o,zS.ContextProvider=a,zS.Element=e,zS.ForwardRef=l,zS.Fragment=r,zS.Lazy=f,zS.Memo=s,zS.Portal=t,zS.Profiler=i,zS.StrictMode=n,zS.Suspense=c,zS.SuspenseList=u,zS.isContextConsumer=function(e){return h(e)===o},zS.isContextProvider=function(e){return h(e)===a},zS.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},zS.isForwardRef=function(e){return h(e)===l},zS.isFragment=function(e){return h(e)===r},zS.isLazy=function(e){return h(e)===f},zS.isMemo=function(e){return h(e)===s},zS.isPortal=function(e){return h(e)===t},zS.isProfiler=function(e){return h(e)===i},zS.isStrictMode=function(e){return h(e)===n},zS.isSuspense=function(e){return h(e)===c},zS.isSuspenseList=function(e){return h(e)===u},zS.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===i||e===n||e===c||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===s||e.$$typeof===a||e.$$typeof===o||e.$$typeof===l||e.$$typeof===p||void 0!==e.getModuleId)},zS.typeOf=h,zS}var RS,BS,$S={};function VS(){return RS||(RS=1,"production"!==process.env.NODE_ENV&&function(){function e(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case n:case o:case i:case u:case s:case p:return e;default:switch(e=e&&e.$$typeof){case l:case c:case d:case f:case a:return e;default:return h}}case r:return h}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),s=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");$S.ContextConsumer=a,$S.ContextProvider=l,$S.Element=t,$S.ForwardRef=c,$S.Fragment=n,$S.Lazy=d,$S.Memo=f,$S.Portal=r,$S.Profiler=o,$S.StrictMode=i,$S.Suspense=u,$S.SuspenseList=s,$S.isContextConsumer=function(t){return e(t)===a},$S.isContextProvider=function(t){return e(t)===l},$S.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},$S.isForwardRef=function(t){return e(t)===c},$S.isFragment=function(t){return e(t)===n},$S.isLazy=function(t){return e(t)===d},$S.isMemo=function(t){return e(t)===f},$S.isPortal=function(t){return e(t)===r},$S.isProfiler=function(t){return e(t)===o},$S.isStrictMode=function(t){return e(t)===i},$S.isSuspense=function(t){return e(t)===u},$S.isSuspenseList=function(t){return e(t)===s},$S.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===i||e===u||e===s||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===f||e.$$typeof===l||e.$$typeof===a||e.$$typeof===c||e.$$typeof===h||void 0!==e.getModuleId)},$S.typeOf=e}()),$S}function KS(){return BS||(BS=1,CS.exports="production"===process.env.NODE_ENV?LS():VS()),CS.exports}var FS,US,WS,HS=KS(),qS=e=>"string"==typeof e?e:e?e.displayName||e.name||"Component":"",YS=null,GS=null,XS=e=>{if(e===YS&&Array.isArray(GS))return GS;var t=[];return E.forEach(e,e=>{Mt(e)||(HS.isFragment(e)?t=t.concat(XS(e.props.children)):t.push(e))}),GS=t,YS=e,t},ZS=e=>!e||"object"!=typeof e||!("clipDot"in e)||Boolean(e.clipDot),QS={};function JS(){return WS?US:(WS=1,US=(FS||(FS=1,e=QS,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isPlainObject=function(e){if("object"!=typeof e)return!1;if(null==e)return!1;if(null===Object.getPrototypeOf(e))return!0;if("[object Object]"!==Object.prototype.toString.call(e)){const t=e[Symbol.toStringTag];return null!=t&&!!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable&&e.toString()===`[object ${t}]`}let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}),QS).isPlainObject);var e}const eP=r(JS());var tP,rP,nP,iP,oP;function aP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function lP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?aP(Object(r),!0).forEach(function(t){cP(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aP(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function cP(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uP(){return uP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},uP.apply(null,arguments)}function sP(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var fP=(e,t,r,n,i)=>{var o,a=r-n;return o=gt(tP||(tP=sP(["M ",",",""])),e,t),o+=gt(rP||(rP=sP(["L ",",",""])),e+r,t),o+=gt(nP||(nP=sP(["L ",",",""])),e+r-a/2,t+i),(o+=gt(iP||(iP=sP(["L ",",",""])),e+r-a/2-n,t+i))+gt(oP||(oP=sP(["L ",","," Z"])),e,t)},dP={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},pP=e=>{var t=qt(e,dP),{x:r,y:n,upperWidth:i,lowerWidth:o,height:a,className:l}=t,{animationEasing:u,animationDuration:s,animationBegin:f,isUpdateAnimationActive:d}=t,p=m(null),[h,v]=y(-1),g=m(i),w=m(o),x=m(a),O=m(r),E=m(n),S=jf(e,"trapezoid-");if(b(()=>{if(p.current&&p.current.getTotalLength)try{var e=p.current.getTotalLength();e&&v(e)}catch(e){}},[]),r!==+r||n!==+n||i!==+i||o!==+o||a!==+a||0===i&&0===o||0===a)return null;var P=k("recharts-trapezoid",l);if(!d)return c.createElement("g",null,c.createElement("path",uP({},L(t),{className:P,d:fP(r,n,i,o,a)})));var j=g.current,A=w.current,_=x.current,M=O.current,I=E.current,T="0px ".concat(-1===h?1:h,"px"),D="".concat(h,"px ").concat(h,"px"),N=af(["strokeDasharray"],s,u);return c.createElement(Pf,{animationId:S,key:S,canBegin:h>0,duration:s,easing:u,isActive:d,begin:f},e=>{var l=_t(j,i,e),u=_t(A,o,e),s=_t(_,a,e),f=_t(M,r,e),d=_t(I,n,e);p.current&&(g.current=l,w.current=u,x.current=s,O.current=f,E.current=d);var h=e>0?{transition:N,strokeDasharray:D}:{strokeDasharray:T};return c.createElement("path",uP({},L(t),{className:P,d:fP(f,d,l,u,s),ref:p,style:lP(lP({},h),t.style)}))})},hP=["option","shapeType","activeClassName","inActiveClassName"];function yP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function vP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yP(Object(r),!0).forEach(function(t){mP(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yP(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function mP(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gP(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return c.createElement(qf,r);case"trapezoid":return c.createElement(pP,r);case"sector":return c.createElement(hd,r);case"symbols":if(function(e){return"symbols"===e}(t))return c.createElement(Vt,r);break;case"curve":return c.createElement(Gs,r);default:return null}}function bP(e){var t,{option:r,shapeType:n,activeClassName:i="recharts-active-shape",inActiveClassName:o="recharts-shape"}=e,a=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,hP);if(s(r))t=x(r,vP(vP({},a),function(e){return s(e)?e.props:e}(r)));else if("function"==typeof r)t=r(a,a.index);else if(eP(r)&&"boolean"!=typeof r){var l=function(e,t){return vP(vP({},t),e)}(r,a);t=c.createElement(gP,{shapeType:n,elementProps:l})}else t=c.createElement(gP,{shapeType:n,elementProps:a});return c.createElement(F,a.isActive?{className:i}:{className:o},t)}var wP,xP=(e,t,r)=>{var n=Qn();return(i,o)=>a=>{null==e||e(i,o,a),n($w({activeIndex:String(o),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}},OP=e=>{var t=Qn();return(r,n)=>i=>{null==e||e(r,n,i),t(Vw())}},EP=(e,t,r)=>{var n=Qn();return(i,o)=>a=>{null==e||e(i,o,a),n(Fw({activeIndex:String(o),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}};function SP(e){var{tooltipEntrySettings:t}=e,r=Qn(),n=cc(),i=m(null);return w(()=>{n||(null===i.current?r(zw(t)):i.current!==t&&r(Lw({prev:i.current,next:t})),i.current=t)},[t,r,n]),w(()=>()=>{i.current&&(r(Rw(i.current)),i.current=null)},[r]),null}function PP(e){var{legendPayload:t}=e,r=Qn(),n=cc(),i=m(null);return w(()=>{n||(null===i.current?r(Vu(t)):i.current!==t&&r(Ku({prev:i.current,next:t})),i.current=t)},[r,n,t]),w(()=>()=>{i.current&&(r(Fu(i.current)),i.current=null)},[r]),null}var jP=null!==(wP=c["useId".toString()])&&void 0!==wP?wP:()=>{var[e]=c.useState(()=>Pt("uid-"));return e},AP=p(void 0),_P=e=>{var t,r,n,{id:i,type:o,children:a}=e,l=(t="recharts-".concat(o),r=i,n=jP(),r||(t?"".concat(t,"-").concat(n):n));return c.createElement(AP.Provider,{value:l},a(l))},kP=$a({name:"graphicalItems",initialState:{cartesianItems:[],polarItems:[]},reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:Ia()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,i=ca(e).cartesianItems.indexOf(r);i>-1&&(e.cartesianItems[i]=n)},prepare:Ia()},removeCartesianGraphicalItem:{reducer(e,t){var r=ca(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:Ia()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:Ia()},removePolarGraphicalItem:{reducer(e,t){var r=ca(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:Ia()},replacePolarGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,i=ca(e).polarItems.indexOf(r);i>-1&&(e.polarItems[i]=n)},prepare:Ia()}}}),{addCartesianGraphicalItem:MP,replaceCartesianGraphicalItem:IP,removeCartesianGraphicalItem:TP}=kP.actions,DP=kP.reducer,NP=S(e=>{var t=Qn(),r=m(null);return w(()=>{null===r.current?t(MP(e)):r.current!==e&&t(IP({prev:r.current,next:e})),r.current=e},[t,e]),w(()=>()=>{r.current&&(t(TP(r.current)),r.current=null)},[t]),null}),CP=["points"];function zP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function LP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zP(Object(r),!0).forEach(function(t){RP(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zP(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function RP(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BP(){return BP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},BP.apply(null,arguments)}function $P(e){var{option:t,dotProps:r,className:n}=e;if(s(t))return x(t,r);if("function"==typeof t)return t(r);var i=k(n,"boolean"!=typeof t?t.className:""),o=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(null!=r?r:{},CP);return c.createElement(DS,BP({},o,{className:i}))}function VP(e){var{points:t,dot:r,className:n,dotClassName:i,dataKey:o,baseProps:a,needClip:l,clipPathId:u,zIndex:f=_p.scatter}=e;if(!function(e,t){return null!=e&&(!!t||1===e.length)}(t,r))return null;var d,p=ZS(r),h=null==(d=r)?null:s(d)?L(d.props):"object"!=typeof d||Array.isArray(d)?null:L(d),y=t.map((e,n)=>{var l,u,s=LP(LP(LP({r:3},a),h),{},{index:n,cx:null!==(l=e.x)&&void 0!==l?l:void 0,cy:null!==(u=e.y)&&void 0!==u?u:void 0,dataKey:o,value:e.value,payload:e.payload,points:t});return c.createElement($P,{key:"dot-".concat(n),option:r,dotProps:s,className:i})}),v={};return l&&null!=u&&(v.clipPath="url(#clipPath-".concat(p?"":"dots-").concat(u,")")),c.createElement(RO,{zIndex:f},c.createElement(F,BP({className:n},v),y))}function KP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function FP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?KP(Object(r),!0).forEach(function(t){UP(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KP(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function UP(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var WP=$a({name:"cartesianAxis",initialState:{xAxis:{},yAxis:{},zAxis:{}},reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:Ia()},replaceXAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;void 0!==e.xAxis[r.id]&&(r.id!==n.id&&delete e.xAxis[r.id],e.xAxis[n.id]=n)},prepare:Ia()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:Ia()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:Ia()},replaceYAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;void 0!==e.yAxis[r.id]&&(r.id!==n.id&&delete e.yAxis[r.id],e.yAxis[n.id]=n)},prepare:Ia()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:Ia()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:Ia()},replaceZAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;void 0!==e.zAxis[r.id]&&(r.id!==n.id&&delete e.zAxis[r.id],e.zAxis[n.id]=n)},prepare:Ia()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:Ia()},updateYAxisWidth(e,t){var{id:r,width:n}=t.payload,i=e.yAxis[r];if(i){var o,a=i.widthHistory||[];if(3===a.length&&a[0]===a[2]&&n===a[1]&&n!==i.width&&Math.abs(n-(null!==(o=a[0])&&void 0!==o?o:0))<=1)return;var l=[...a,n].slice(-3);e.yAxis[r]=FP(FP({},i),{},{width:n,widthHistory:l})}}}}),{addXAxis:HP,replaceXAxis:qP,removeXAxis:YP,addYAxis:GP,replaceYAxis:XP,removeYAxis:ZP,updateYAxisWidth:QP}=WP.actions,JP=WP.reducer,ej=pi([ic],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),tj=pi([ej,Ul,Wl],(e,t,r)=>{if(e&&null!=t&&null!=r)return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}}),rj=()=>ri(tj);function nj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ij(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nj(Object(r),!0).forEach(function(t){oj(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nj(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function oj(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var aj=e=>{var{point:t,childIndex:r,mainColor:n,activeDot:i,dataKey:o,clipPath:a}=e;if(!1===i||null==t.x||null==t.y)return null;var l,u=ij(ij(ij({},{index:r,dataKey:o,cx:t.x,cy:t.y,r:4,fill:null!=n?n:"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value}),z(i)),Ft(i));return l=s(i)?x(i,u):"function"==typeof i?i(u):c.createElement(DS,u),c.createElement(F,{className:"recharts-active-dot",clipPath:a},l)};function lj(e){var{points:t,mainColor:r,activeDot:n,itemDataKey:i,clipPath:o,zIndex:a=_p.activeDot}=e,l=ri(Gx),u=ri(iO);if(null==t||null==u)return null;var s=t.find(e=>u.includes(e.payload));return Mt(s)?null:c.createElement(RO,{zIndex:a},c.createElement(aj,{point:s,childIndex:Number(l),mainColor:r,dataKey:i,activeDot:n,clipPath:o}))}var cj=(e,t,r)=>{var n=null!=r?r:e;if(!Mt(n))return jt(n,t,0)};function uj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function sj(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?uj(Object(r),!0).forEach(function(t){fj(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uj(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function fj(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var dj=e=>{var{chartData:t}=e,r=Qn(),n=cc();return b(()=>n?()=>{}:(r(iE(t)),()=>{r(iE(void 0))}),[t,r,n]),null},pj={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},hj=$a({name:"brush",initialState:pj,reducers:{setBrushSettings:(e,t)=>null==t.payload?pj:t.payload}}).reducer,yj=$a({name:"referenceElements",initialState:{dots:[],areas:[],lines:[]},reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=ca(e).dots.findIndex(e=>e===t.payload);-1!==r&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=ca(e).areas.findIndex(e=>e===t.payload);-1!==r&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=ca(e).lines.findIndex(e=>e===t.payload);-1!==r&&e.lines.splice(r,1)}}}).reducer,vj=p(void 0),mj=e=>{var{children:t}=e,[r]=y("".concat(Pt("recharts"),"-clip")),n=rj();if(null==n)return null;var{x:i,y:o,width:a,height:l}=n;return c.createElement(vj.Provider,{value:r},c.createElement("defs",null,c.createElement("clipPath",{id:r},c.createElement("rect",{x:i,y:o,height:l,width:a}))),t)};function gj(e,t){if(t<1)return[];if(1===t)return e;for(var r=[],n=0;n<e.length;n+=t){var i=e[n];void 0!==i&&r.push(i)}return r}function bj(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var o=r();return e*(t-e*o/2-n)>=0&&e*(t+e*o/2-i)<=0}function wj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function xj(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wj(Object(r),!0).forEach(function(t){Oj(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wj(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Oj(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ej(e,t,r){var n,{tick:i,ticks:o,viewBox:a,minTickGap:l,orientation:c,interval:u,tickFormatter:s,unit:f,angle:d}=e;if(!o||!o.length||!i)return[];if(Ot(u)||Ms)return null!==(n=function(e,t){return gj(e,t+1)}(o,Ot(u)?u:0))&&void 0!==n?n:[];var p=[],h="top"===c||"bottom"===c?"width":"height",y=f&&"width"===h?ME(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=(e,n)=>{var i="function"==typeof s?s(e.value,n):e.value;return"width"===h?function(e,t,r){return function(e){var{width:t,height:r}=e,n=function(e){return(e%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),i=n*Math.PI/180,o=Math.atan(r/t),a=i>o&&i<Math.PI-o?r/Math.sin(i):t/Math.cos(i);return Math.abs(a)}({width:e.width+t.width,height:e.height+t.height},r)}(ME(i,{fontSize:t,letterSpacing:r}),y,d):ME(i,{fontSize:t,letterSpacing:r})[h]},m=o[0],g=o[1],b=o.length>=2&&null!=m&&null!=g?bt(g.coordinate-m.coordinate):1,w=function(e,t,r){var n="width"===r,{x:i,y:o,width:a,height:l}=e;return 1===t?{start:n?i:o,end:n?i+a:o+l}:{start:n?i+a:o+l,end:n?i:o}}(a,b,h);return"equidistantPreserveStart"===u?function(e,t,r,n,i){for(var o,a=(n||[]).slice(),{start:l,end:c}=t,u=0,s=1,f=l,d=function(){var t=null==n?void 0:n[u];if(void 0===t)return{v:gj(n,s)};var o,a=u,d=()=>(void 0===o&&(o=r(t,a)),o),p=t.coordinate,h=0===u||bj(e,p,d,f,c);h||(u=0,f=l,s+=1),h&&(f=p+e*(d()/2+i),u+=s)};s<=a.length;)if(o=d())return o.v;return[]}(b,w,v,o,l):"equidistantPreserveEnd"===u?function(e,t,r,n,i){var o=(n||[]).slice().length;if(0===o)return[];for(var{start:a,end:l}=t,c=1;c<=o;c++){for(var u,s=(o-1)%c,f=a,d=!0,p=function(){var t=n[h];if(null==t)return 0;var o,a=h,c=()=>(void 0===o&&(o=r(t,a)),o),u=t.coordinate,p=h===s||bj(e,u,c,f,l);if(!p)return d=!1,1;p&&(f=u+e*(c()/2+i))},h=s;h<o&&(0===(u=p())||1!==u);h+=c);if(d){for(var y=[],v=s;v<o;v+=c){var m=n[v];null!=m&&y.push(m)}return y}}return[]}(b,w,v,o,l):(p="preserveStart"===u||"preserveStartEnd"===u?function(e,t,r,n,i,o){var a=(n||[]).slice(),l=a.length,{start:c,end:u}=t;if(o){var s=n[l-1];if(null!=s){var f=r(s,l-1),d=e*(s.coordinate+e*f/2-u);a[l-1]=s=xj(xj({},s),{},{tickCoord:d>0?s.coordinate-d*e:s.coordinate}),null!=s.tickCoord&&bj(e,s.tickCoord,()=>f,c,u)&&(u=s.tickCoord-e*(f/2+i),a[l-1]=xj(xj({},s),{},{isShow:!0}))}}for(var p=o?l-1:l,h=function(t){var n=a[t];if(null==n)return 1;var o,l=n,s=()=>(void 0===o&&(o=r(n,t)),o);if(0===t){var f=e*(l.coordinate-e*s()/2-c);a[t]=l=xj(xj({},l),{},{tickCoord:f<0?l.coordinate-f*e:l.coordinate})}else a[t]=l=xj(xj({},l),{},{tickCoord:l.coordinate});null!=l.tickCoord&&bj(e,l.tickCoord,s,c,u)&&(c=l.tickCoord+e*(s()/2+i),a[t]=xj(xj({},l),{},{isShow:!0}))},y=0;y<p;y++)h(y);return a}(b,w,v,o,l,"preserveStartEnd"===u):function(e,t,r,n,i){for(var o=(n||[]).slice(),a=o.length,{start:l}=t,{end:c}=t,u=function(t){var n=o[t];if(null==n)return 1;var u,s=n,f=()=>(void 0===u&&(u=r(n,t)),u);if(t===a-1){var d=e*(s.coordinate+e*f()/2-c);o[t]=s=xj(xj({},s),{},{tickCoord:d>0?s.coordinate-d*e:s.coordinate})}else o[t]=s=xj(xj({},s),{},{tickCoord:s.coordinate});null!=s.tickCoord&&bj(e,s.tickCoord,f,l,c)&&(c=s.tickCoord-e*(f()/2+i),o[t]=xj(xj({},s),{},{isShow:!0}))},s=a-1;s>=0;s--)u(s);return o}(b,w,v,o,l),p.filter(e=>e.isShow))}var Sj=$a({name:"renderedTicks",initialState:{xAxis:{},yAxis:{}},reducers:{setRenderedTicks:(e,t)=>{var{axisType:r,axisId:n,ticks:i}=t.payload;e[r][n]=i},removeRenderedTicks:(e,t)=>{var{axisType:r,axisId:n}=t.payload;delete e[r][n]}}}),{setRenderedTicks:Pj,removeRenderedTicks:jj}=Sj.actions,Aj=Sj.reducer,_j=["axisLine","width","height","className","hide","ticks","axisType","axisId"];function kj(){return kj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kj.apply(null,arguments)}function Mj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ij(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mj(Object(r),!0).forEach(function(t){Tj(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mj(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Tj(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Dj={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",zIndex:_p.axis};function Nj(e){var{x:t,y:r,width:n,height:i,orientation:o,mirror:a,axisLine:l,otherSvgProps:u}=e;if(!l)return null;var s=Ij(Ij(Ij({},u),C(l)),{},{fill:"none"});if("top"===o||"bottom"===o){var f=+("top"===o&&!a||"bottom"===o&&a);s=Ij(Ij({},s),{},{x1:t,y1:r+f*i,x2:t+n,y2:r+f*i})}else{var d=+("left"===o&&!a||"right"===o&&a);s=Ij(Ij({},s),{},{x1:t+d*n,y1:r,x2:t+d*n,y2:r+i})}return c.createElement("line",kj({},s,{className:k("recharts-cartesian-axis-line",vt(l,"className"))}))}function Cj(e){var t,r,{option:n,tickProps:i,value:o}=e,a=k(i.className,"recharts-cartesian-axis-tick-value");if(c.isValidElement(n))t=c.cloneElement(n,Ij(Ij({},i),{},{className:a}));else if("function"==typeof n)t=n(Ij(Ij({},i),{},{className:a}));else{var l="recharts-cartesian-axis-tick-value";"boolean"!=typeof n&&(l=k(l,(r=n)&&"object"==typeof r&&"className"in r&&"string"==typeof r.className?r.className:"")),t=c.createElement(tS,kj({},i,{className:l}),o)}return t}function zj(e){var{ticks:t,axisType:r,axisId:n}=e,i=Qn();return b(()=>{if(null==n||null==r)return Dt;var e=t.map(e=>({value:e.value,coordinate:e.coordinate,offset:e.offset,index:e.index}));return i(Pj({ticks:e,axisId:n,axisType:r})),()=>{i(jj({axisId:n,axisType:r}))}},[i,t,n,r]),null}var Lj=f((e,t)=>{var{ticks:r=[],tick:n,tickLine:i,stroke:o,tickFormatter:a,unit:l,padding:u,tickTextProps:s,orientation:f,mirror:d,x:p,y:h,width:y,height:v,tickSize:m,tickMargin:g,fontSize:b,letterSpacing:w,getTicksConfig:x,events:O,axisType:E,axisId:S}=e,P=Ej(Ij(Ij({},x),{},{ticks:r}),b,w),j=C(x),A=z(n),_=YE(j.textAnchor)?j.textAnchor:function(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}(f,d),M=function(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}(f,d),I={};"object"==typeof i&&(I=i);var T=Ij(Ij({},j),{},{fill:"none"},I),D=P.map(e=>Ij({entry:e},function(e,t,r,n,i,o,a,l,c){var u,s,f,d,p,h,y=l?-1:1,v=e.tickSize||a,m=Ot(e.tickCoord)?e.tickCoord:e.coordinate;switch(o){case"top":u=s=e.coordinate,h=(f=(d=r+ +!l*i)-y*v)-y*c,p=m;break;case"left":f=d=e.coordinate,p=(u=(s=t+ +!l*n)-y*v)-y*c,h=m;break;case"right":f=d=e.coordinate,p=(u=(s=t+ +l*n)+y*v)+y*c,h=m;break;default:u=s=e.coordinate,h=(f=(d=r+ +l*i)+y*v)+y*c,p=m}return{line:{x1:u,y1:f,x2:s,y2:d},tick:{x:p,y:h}}}(e,p,h,y,v,f,m,d,g))),N=D.map(e=>{var{entry:t,line:r}=e;return c.createElement(F,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},i&&c.createElement("line",kj({},T,r,{className:k("recharts-cartesian-axis-tick-line",vt(i,"className"))})))}),L=D.map((e,t)=>{var r,i,{entry:f,tick:d}=e,p=Ij(Ij(Ij(Ij({verticalAnchor:M},j),{},{textAnchor:_,stroke:"none",fill:o},d),{},{index:t,payload:f,visibleTicksCount:P.length,tickFormatter:a,padding:u},s),{},{angle:null!==(r=null!==(i=null==s?void 0:s.angle)&&void 0!==i?i:j.angle)&&void 0!==r?r:0}),h=Ij(Ij({},p),A);return c.createElement(F,kj({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(f.value,"-").concat(f.coordinate,"-").concat(f.tickCoord)},Ut(O,f,t)),n&&c.createElement(Cj,{option:n,tickProps:h,value:"".concat("function"==typeof a?a(f.value,t):f.value).concat(l||"")}))});return c.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(E,"-ticks")},c.createElement(zj,{ticks:P,axisId:S,axisType:E}),L.length>0&&c.createElement(RO,{zIndex:_p.label},c.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(E,"-tick-labels"),ref:t},L)),N.length>0&&c.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(E,"-tick-lines")},N))}),Rj=f((e,t)=>{var{axisLine:r,width:n,height:i,className:o,hide:a,ticks:l,axisType:u,axisId:s}=e,f=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,_j),[d,p]=y(""),[h,b]=y(""),w=m(null);g(t,()=>({getCalculatedWidth:()=>{var t;return(e=>{var{ticks:t,label:r,labelGapWithTick:n=5,tickSize:i=0,tickMargin:o=0}=e,a=0;if(t){Array.from(t).forEach(e=>{if(e){var t=e.getBoundingClientRect();t.width>a&&(a=t.width)}});var l=r?r.getBoundingClientRect().width:0;return Math.round(a+(i+o)+l+(r?n:0))}return 0})({ticks:w.current,label:null===(t=e.labelRef)||void 0===t?void 0:t.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var x=v(e=>{if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value");w.current=t;var r=t[0];if(r){var n=window.getComputedStyle(r),i=n.fontSize,o=n.letterSpacing;i===d&&o===h||(p(i),b(o))}}},[d,h]);return a||null!=n&&n<=0||null!=i&&i<=0?null:c.createElement(RO,{zIndex:e.zIndex},c.createElement(F,{className:k("recharts-cartesian-axis",o)},c.createElement(Nj,{x:e.x,y:e.y,width:n,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:C(e)}),c.createElement(Lj,{ref:x,axisType:u,events:f,fontSize:d,getTicksConfig:e,height:e.height,letterSpacing:h,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:l,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:s}),c.createElement(pS,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},c.createElement(wS,{label:e.label,labelRef:e.labelRef}),e.children)))}),Bj=c.forwardRef((e,t)=>{var r=qt(e,Dj);return c.createElement(Rj,kj({},r,{ref:t}))});Bj.displayName="CartesianAxis";var $j=["x1","y1","x2","y2","key"],Vj=["offset"],Kj=["xAxisId","yAxisId"],Fj=["xAxisId","yAxisId"];function Uj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Wj(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Uj(Object(r),!0).forEach(function(t){Hj(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uj(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Hj(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qj(){return qj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qj.apply(null,arguments)}function Yj(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var Gj=e=>{var{fill:t}=e;if(!t||"none"===t)return null;var{fillOpacity:r,x:n,y:i,width:o,height:a,ry:l}=e;return c.createElement("rect",{x:n,y:i,ry:l,width:o,height:a,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function Xj(e){var t,{option:r,lineItemProps:n}=e;if(c.isValidElement(r))t=c.cloneElement(r,n);else if("function"==typeof r)t=r(n);else{var i,{x1:o,y1:a,x2:l,y2:u,key:s}=n,f=null!==(i=C(Yj(n,$j)))&&void 0!==i?i:{},d=Yj(f,Vj);t=c.createElement("line",qj({},d,{x1:o,y1:a,x2:l,y2:u,fill:"none",key:s}))}return t}function Zj(e){var{x:t,width:r,horizontal:n=!0,horizontalPoints:i}=e;if(!n||!i||!i.length)return null;var o=Yj(e,Kj),a=i.map((e,i)=>{var a=Wj(Wj({},o),{},{x1:t,y1:e,x2:t+r,y2:e,key:"line-".concat(i),index:i});return c.createElement(Xj,{key:"line-".concat(i),option:n,lineItemProps:a})});return c.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function Qj(e){var{y:t,height:r,vertical:n=!0,verticalPoints:i}=e;if(!n||!i||!i.length)return null;var o=Yj(e,Fj),a=i.map((e,i)=>{var a=Wj(Wj({},o),{},{x1:e,y1:t,x2:e,y2:t+r,key:"line-".concat(i),index:i});return c.createElement(Xj,{option:n,lineItemProps:a,key:"line-".concat(i)})});return c.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function Jj(e){var{horizontalFill:t,fillOpacity:r,x:n,y:i,width:o,height:a,horizontalPoints:l,horizontal:u=!0}=e;if(!u||!t||!t.length||null==l)return null;var s=l.map(e=>Math.round(e+i-i)).sort((e,t)=>e-t);i!==s[0]&&s.unshift(0);var f=s.map((e,l)=>{var u=s[l+1],f=null==u?i+a-e:u-e;if(f<=0)return null;var d=l%t.length;return c.createElement("rect",{key:"react-".concat(l),y:e,x:n,height:f,width:o,stroke:"none",fill:t[d],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return c.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function eA(e){var{vertical:t=!0,verticalFill:r,fillOpacity:n,x:i,y:o,width:a,height:l,verticalPoints:u}=e;if(!t||!r||!r.length)return null;var s=u.map(e=>Math.round(e+i-i)).sort((e,t)=>e-t);i!==s[0]&&s.unshift(0);var f=s.map((e,t)=>{var u=s[t+1],f=null==u?i+a-e:u-e;if(f<=0)return null;var d=t%r.length;return c.createElement("rect",{key:"react-".concat(t),x:e,y:o,width:f,height:l,stroke:"none",fill:r[d],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return c.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var tA=(e,t)=>{var{xAxis:r,width:n,height:i,offset:o}=e;return Tl(Ej(Wj(Wj(Wj({},Dj),r),{},{ticks:Dl(r),viewBox:{x:0,y:0,width:n,height:i}})),o.left,o.left+o.width,t)},rA=(e,t)=>{var{yAxis:r,width:n,height:i,offset:o}=e;return Tl(Ej(Wj(Wj(Wj({},Dj),r),{},{ticks:Dl(r),viewBox:{x:0,y:0,width:n,height:i}})),o.top,o.top+o.height,t)},nA={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:_p.grid};function iA(e){var t=Bc(),r=$c(),n=Rc(),i=Wj(Wj({},qt(e,nA)),{},{x:Ot(e.x)?e.x:n.left,y:Ot(e.y)?e.y:n.top,width:Ot(e.width)?e.width:n.width,height:Ot(e.height)?e.height:n.height}),{xAxisId:o,yAxisId:a,x:l,y:u,width:s,height:f,syncWithTicks:d,horizontalValues:p,verticalValues:h}=i,y=cc(),v=ri(e=>Ow(e,"xAxis",o,y)),m=ri(e=>Ow(e,"yAxis",a,y));if(!(jl(s)&&jl(f)&&Ot(l)&&Ot(u)))return null;var g=i.verticalCoordinatesGenerator||tA,b=i.horizontalCoordinatesGenerator||rA,{horizontalPoints:w,verticalPoints:x}=i;if(!(w&&w.length||"function"!=typeof b)){var O=p&&p.length,E=b({yAxis:m?Wj(Wj({},m),{},{ticks:O?p:m.ticks}):void 0,width:null!=t?t:s,height:null!=r?r:f,offset:n},!!O||d);gc(Array.isArray(E),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof E,"]")),Array.isArray(E)&&(w=E)}if(!(x&&x.length||"function"!=typeof g)){var S=h&&h.length,P=g({xAxis:v?Wj(Wj({},v),{},{ticks:S?h:v.ticks}):void 0,width:null!=t?t:s,height:null!=r?r:f,offset:n},!!S||d);gc(Array.isArray(P),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof P,"]")),Array.isArray(P)&&(x=P)}return c.createElement(RO,{zIndex:i.zIndex},c.createElement("g",{className:"recharts-cartesian-grid"},c.createElement(Gj,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),c.createElement(Jj,qj({},i,{horizontalPoints:w})),c.createElement(eA,qj({},i,{verticalPoints:x})),c.createElement(Zj,qj({},i,{offset:n,horizontalPoints:w,xAxis:v,yAxis:m})),c.createElement(Qj,qj({},i,{offset:n,verticalPoints:x,xAxis:v,yAxis:m}))))}iA.displayName="CartesianGrid";var oA=$a({name:"errorBars",initialState:{},reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]||(e[r]=[]),e[r].push(n)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:n,next:i}=t.payload;e[r]&&(e[r]=e[r].map(e=>e.dataKey===n.dataKey&&e.direction===n.direction?i:e))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(e=>e.dataKey!==n.dataKey||e.direction!==n.direction))}}}),aA=oA.reducer,lA=["children"],cA=p({data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0});function uA(e){var{children:t}=e,r=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,lA);return c.createElement(cA.Provider,{value:r},t)}function sA(e,t){var r,n,i=ri(t=>Tg(t,e)),o=ri(e=>Cg(e,t)),a=null!==(r=null==i?void 0:i.allowDataOverflow)&&void 0!==r?r:Mg.allowDataOverflow,l=null!==(n=null==o?void 0:o.allowDataOverflow)&&void 0!==n?n:Dg.allowDataOverflow;return{needClip:a||l,needClipX:a,needClipY:l}}function fA(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,i=rj(),{needClipX:o,needClipY:a,needClip:l}=sA(t,r);if(!l||!i)return null;var{x:u,y:s,width:f,height:d}=i;return c.createElement("clipPath",{id:"clipPath-".concat(n)},c.createElement("rect",{x:o?u:u-f/2,y:a?s:s-d/2,width:o?f:2*f,height:a?d:2*d}))}var dA=(e,t,r,n)=>Pw(e,"xAxis",t,n),pA=(e,t,r,n)=>Sw(e,"xAxis",t,n),hA=(e,t,r,n)=>Pw(e,"yAxis",r,n),yA=(e,t,r,n)=>Sw(e,"yAxis",r,n),vA=pi([Vc,dA,hA,pA,yA],(e,t,r,n,i)=>Il(e,"xAxis")?Vl(t,n,!1):Vl(r,i,!1));function mA(e){return"line"===e.type}var gA=pi([Kg,(e,t,r,n,i)=>i],(e,t)=>e.filter(mA).find(e=>e.id===t)),bA=pi([Vc,dA,hA,pA,yA,gA,vA,Md],(e,t,r,n,i,o,a,l)=>{var{chartData:c,dataStartIndex:u,dataEndIndex:s}=l;if(null!=o&&null!=t&&null!=r&&null!=n&&null!=i&&0!==n.length&&0!==i.length&&null!=a&&("horizontal"===e||"vertical"===e)){var f,{dataKey:d,data:p}=o;if(null!=(f=null!=p&&p.length>0?p:null==c?void 0:c.slice(u,s+1)))return function(e){var{layout:t,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:o,dataKey:a,bandSize:l,displayedData:c}=e;return c.map((e,c)=>{var u=Ml(e,a);if("horizontal"===t){var s=Ll({axis:r,ticks:i,bandSize:l,entry:e,index:c}),f=Mt(u)?null:n.scale.map(u);return{x:s,y:null!=f?f:null,value:u,payload:e}}var d=Mt(u)?null:r.scale.map(u),p=Ll({axis:n,ticks:o,bandSize:l,entry:e,index:c});return null==d||null==p?null:{x:d,y:p,value:u,payload:e}}).filter(Boolean)}({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataKey:d,bandSize:a,displayedData:f})}});function wA(e){var t=z(e);if(null!=t){var{r,strokeWidth:n}=t,i=Number(r),o=Number(n);return(Number.isNaN(i)||i<0)&&(i=3),(Number.isNaN(o)||o<0)&&(o=2),{r:i,strokeWidth:o}}return{r:3,strokeWidth:2}}var xA=["id"],OA=["type","layout","connectNulls","needClip","shape"],EA=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function SA(){return SA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},SA.apply(null,arguments)}function PA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function jA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?PA(Object(r),!0).forEach(function(t){AA(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PA(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function AA(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _A(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var kA=e=>{var{dataKey:t,name:r,stroke:n,legendType:i,hide:o}=e;return[{inactive:o,dataKey:t,type:i,color:n,value:Fl(r,t),payload:e}]},MA=c.memo(e=>{var{dataKey:t,data:r,stroke:n,strokeWidth:i,fill:o,name:a,hide:l,unit:u,tooltipType:s,id:f}=e,d={dataDefinedOnItem:r,getPosition:Dt,settings:{stroke:n,strokeWidth:i,fill:o,dataKey:t,nameKey:void 0,name:Fl(a,t),hide:l,type:s,color:n,unit:u,graphicalItemId:f}};return c.createElement(SP,{tooltipEntrySettings:d})}),IA=(e,t)=>"".concat(t,"px ").concat(e,"px");function TA(e,t){for(var r=e.length%2!=0?[...e,0]:e,n=[],i=0;i<t;++i)n.push(...r);return n}function DA(e){var{clipPathId:t,points:r,props:n}=e,{dot:i,dataKey:o,needClip:a}=n,l=C(_A(n,xA));return c.createElement(VP,{points:r,dot:i,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:o,baseProps:l,needClip:a,clipPathId:t})}function NA(e){var{showLabels:t,children:r,points:n}=e,i=h(()=>null==n?void 0:n.map(e=>{var t,r,n={x:null!==(t=e.x)&&void 0!==t?t:0,y:null!==(r=e.y)&&void 0!==r?r:0,width:0,lowerWidth:0,upperWidth:0,height:0};return jA(jA({},n),{},{value:e.value,payload:e.payload,viewBox:n,parentViewBox:void 0,fill:void 0})}),[n]);return c.createElement(AS,{value:t?i:void 0},r)}function CA(e){var{clipPathId:t,pathRef:r,points:n,strokeDasharray:i,props:o}=e,{type:a,layout:l,connectNulls:u,needClip:s,shape:f}=o,d=jA(jA({},L(_A(o,OA))),{},{fill:"none",className:"recharts-line-curve",clipPath:s?"url(#clipPath-".concat(t,")"):void 0,points:n,type:a,layout:l,connectNulls:u,strokeDasharray:null!=i?i:o.strokeDasharray});return c.createElement(c.Fragment,null,(null==n?void 0:n.length)>1&&c.createElement(bP,SA({shapeType:"curve",option:f},d,{pathRef:r})),c.createElement(DA,{points:n,clipPathId:t,props:o}))}function zA(e){var{clipPathId:t,props:r,pathRef:n,previousPointsRef:i,longestAnimatedLengthRef:o}=e,{points:a,strokeDasharray:l,isAnimationActive:u,animationBegin:s,animationDuration:f,animationEasing:d,animateNewValues:p,width:h,height:g,onAnimationEnd:b,onAnimationStart:w}=r,x=i.current,O=jf(a,"recharts-line-"),E=m(O),[S,P]=y(!1),j=!S,A=v(()=>{"function"==typeof b&&b(),P(!1)},[b]),_=v(()=>{"function"==typeof w&&w(),P(!0)},[w]),k=function(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}(n.current),M=m(0);E.current!==O&&(M.current=o.current,E.current=O);var I=M.current;return c.createElement(NA,{points:a,showLabels:j},r.children,c.createElement(Pf,{animationId:O,begin:s,duration:f,isActive:u,easing:d,onAnimationEnd:A,onAnimationStart:_,key:O},e=>{var s,f=_t(I,k+I,e),d=Math.min(f,k);if(u)if(l){var y="".concat(l).split(/[,\s]+/gim).map(e=>parseFloat(e));s=((e,t,r)=>{var n=r.reduce((e,t)=>e+t,0);if(!n)return IA(t,e);for(var i=Math.floor(e/n),o=e%n,a=[],l=0,c=0;l<r.length;c+=null!==(u=r[l])&&void 0!==u?u:0,++l){var u,s=r[l];if(null!=s&&c+s>o){a=[...r.slice(0,l),o-c];break}}var f=a.length%2==0?[0,t]:[t];return[...TA(r,i),...a,...f].map(e=>"".concat(e,"px")).join(", ")})(d,k,y)}else s=IA(k,d);else s=null==l?void 0:String(l);if(e>0&&k>0&&(i.current=a,o.current=Math.max(o.current,d)),x){var v=x.length/a.length,m=1===e?a:a.map((t,r)=>{var n=Math.floor(r*v);if(x[n]){var i=x[n];return jA(jA({},t),{},{x:_t(i.x,t.x,e),y:_t(i.y,t.y,e)})}return jA(jA({},t),{},p?{x:_t(2*h,t.x,e),y:_t(g/2,t.y,e)}:{x:t.x,y:t.y})});return i.current=m,c.createElement(CA,{props:r,points:m,clipPathId:t,pathRef:n,strokeDasharray:s})}return c.createElement(CA,{props:r,points:a,clipPathId:t,pathRef:n,strokeDasharray:s})}),c.createElement(MS,{label:r.label}))}function LA(e){var{clipPathId:t,props:r}=e,n=m(null),i=m(0),o=m(null);return c.createElement(zA,{props:r,clipPathId:t,previousPointsRef:n,longestAnimatedLengthRef:i,pathRef:o})}var RA=(e,t)=>{var r,n;return{x:null!==(r=e.x)&&void 0!==r?r:void 0,y:null!==(n=e.y)&&void 0!==n?n:void 0,value:e.value,errorVal:Ml(e.payload,t)}};class BA extends P{render(){var{hide:e,dot:t,points:r,className:n,xAxisId:i,yAxisId:o,top:a,left:l,width:u,height:s,id:f,needClip:d,zIndex:p}=this.props;if(e)return null;var h=k("recharts-line",n),y=f,{r:v,strokeWidth:m}=wA(t),g=ZS(t),b=2*v+m,w=d?"url(#clipPath-".concat(g?"":"dots-").concat(y,")"):void 0;return c.createElement(RO,{zIndex:p},c.createElement(F,{className:h},d&&c.createElement("defs",null,c.createElement(fA,{clipPathId:y,xAxisId:i,yAxisId:o}),!g&&c.createElement("clipPath",{id:"clipPath-dots-".concat(y)},c.createElement("rect",{x:l-b/2,y:a-b/2,width:u+b,height:s+b}))),c.createElement(uA,{xAxisId:i,yAxisId:o,data:r,dataPointFormatter:RA,errorBarOffset:0},c.createElement(LA,{props:this.props,clipPathId:y}))),c.createElement(lj,{activeDot:this.props.activeDot,points:r,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:w}))}}var $A={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:_p.line,type:"linear"};function VA(e){var t=qt(e,$A),{activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:o,animationEasing:a,connectNulls:l,dot:u,hide:s,isAnimationActive:f,label:d,legendType:p,xAxisId:h,yAxisId:y,id:v}=t,m=_A(t,EA),{needClip:g}=sA(h,y),b=rj(),w=Kc(),x=cc(),O=ri(e=>bA(e,h,y,x,v));if("horizontal"!==w&&"vertical"!==w||null==O||null==b)return null;var{height:E,width:S,x:P,y:j}=b;return c.createElement(BA,SA({},m,{id:v,connectNulls:l,dot:u,activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:o,animationEasing:a,isAnimationActive:f,hide:s,label:d,legendType:p,xAxisId:h,yAxisId:y,points:O,layout:w,height:E,width:S,left:P,top:j,needClip:g}))}function KA(e){var t=qt(e,$A),r=cc();return c.createElement(_P,{id:t.id,type:"line"},e=>c.createElement(c.Fragment,null,c.createElement(PP,{legendPayload:kA(t)}),c.createElement(MA,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),c.createElement(NP,{type:"line",id:e,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:r}),c.createElement(VA,SA({},t,{id:e}))))}var FA=c.memo(KA,as);function UA(e,t){var r,n;return null!==(r=null===(n=e.graphicalItems.cartesianItems.find(e=>e.id===t))||void 0===n?void 0:n.xAxisId)&&void 0!==r?r:0}function WA(e,t){var r,n;return null!==(r=null===(n=e.graphicalItems.cartesianItems.find(e=>e.id===t))||void 0===n?void 0:n.yAxisId)&&void 0!==r?r:0}FA.displayName="Line";var HA=(e,t,r)=>Pw(e,"xAxis",UA(e,t),r),qA=(e,t,r)=>Sw(e,"xAxis",UA(e,t),r),YA=(e,t,r)=>Pw(e,"yAxis",WA(e,t),r),GA=(e,t,r)=>Sw(e,"yAxis",WA(e,t),r),XA=pi([Vc,HA,YA,qA,GA],(e,t,r,n,i)=>Il(e,"xAxis")?Vl(t,n,!1):Vl(r,i,!1)),ZA=pi([Kg,(e,t)=>t],(e,t)=>e.filter(e=>"area"===e.type).find(e=>e.id===t)),QA=e=>{var t=Vc(e);return Il(t,"xAxis")?"yAxis":"xAxis"},JA=pi([ZA,(e,t,r)=>db(e,QA(e),((e,t)=>"yAxis"===QA(e)?WA(e,t):UA(e,t))(e,t),r)],(e,t)=>{var r;if(null!=e&&null!=t){var{stackId:n}=e,i=qp(e);if(null!=n&&null!=i){var o=null===(r=t[n])||void 0===r?void 0:r.stackedData,a=null==o?void 0:o.find(e=>e.key===i);if(null!=a)return a.map(e=>[e[0],e[1]])}}}),e_=pi([Vc,HA,YA,qA,GA,JA,Id,XA,ZA,e=>e.rootProps.baseValue],(e,t,r,n,i,o,a,l,c,u)=>{var{chartData:s,dataStartIndex:f,dataEndIndex:d}=a;if(null!=c&&("horizontal"===e||"vertical"===e)&&null!=t&&null!=r&&null!=n&&null!=i&&0!==n.length&&0!==i.length&&null!=l){var p,{data:h}=c;if(null!=(p=h&&h.length>0?h:null==s?void 0:s.slice(f,d+1)))return function(e){var t,{areaSettings:{connectNulls:r,baseValue:n,dataKey:i},stackedData:o,layout:a,chartBaseValue:l,xAxis:c,yAxis:u,displayedData:s,dataStartIndex:f,xAxisTicks:d,yAxisTicks:p,bandSize:h}=e,y=o&&o.length,v=O_(a,l,n,c,u),m="horizontal"===a,g=!1,b=s.map((e,t)=>{var n,a,l,s;if(y)s=o[f+t];else{var b=Ml(e,i);Array.isArray(b)?(s=b,g=!0):s=[v,b]}var w,x=null!==(n=null===(a=s)||void 0===a?void 0:a[1])&&void 0!==n?n:null,O=null==x||y&&!r&&null==Ml(e,i);return m?{x:Ll({axis:c,ticks:d,bandSize:h,entry:e,index:t}),y:O?null:null!==(w=u.scale.map(x))&&void 0!==w?w:null,value:s,payload:e}:{x:O?null:null!==(l=c.scale.map(x))&&void 0!==l?l:null,y:Ll({axis:u,ticks:p,bandSize:h,entry:e,index:t}),value:s,payload:e}});return t=y||g?b.map(e=>{var t,r,n=Array.isArray(e.value)?e.value[0]:null;return m?{x:e.x,y:null!=n&&null!=e.y&&null!==(r=u.scale.map(n))&&void 0!==r?r:null,payload:e.payload}:{x:null!=n&&null!==(t=c.scale.map(n))&&void 0!==t?t:null,y:e.y,payload:e.payload}}):m?u.scale.map(v):c.scale.map(v),{points:b,baseLine:null!=t?t:0,isRange:g}}({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataStartIndex:f,areaSettings:c,stackedData:o,displayedData:p,chartBaseValue:u,bandSize:l})}}),t_=["id"],r_=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function n_(){return n_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n_.apply(null,arguments)}function i_(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function o_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o_(Object(r),!0).forEach(function(t){l_(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l_(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c_(e,t){return e&&"none"!==e?e:t}var u_=e=>{var{dataKey:t,name:r,stroke:n,fill:i,legendType:o,hide:a}=e;return[{inactive:a,dataKey:t,type:o,color:c_(n,i),value:Fl(r,t),payload:e}]},s_=c.memo(e=>{var{dataKey:t,data:r,stroke:n,strokeWidth:i,fill:o,name:a,hide:l,unit:u,tooltipType:s,id:f}=e,d={dataDefinedOnItem:r,getPosition:Dt,settings:{stroke:n,strokeWidth:i,fill:o,dataKey:t,nameKey:void 0,name:Fl(a,t),hide:l,type:s,color:c_(n,o),unit:u,graphicalItemId:f}};return c.createElement(SP,{tooltipEntrySettings:d})});function f_(e){var{clipPathId:t,points:r,props:n}=e,{needClip:i,dot:o,dataKey:a}=n,l=C(n);return c.createElement(VP,{points:r,dot:o,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:a,baseProps:l,needClip:i,clipPathId:t})}function d_(e){var{showLabels:t,children:r,points:n}=e,i=n.map(e=>{var t,r,n={x:null!==(t=e.x)&&void 0!==t?t:0,y:null!==(r=e.y)&&void 0!==r?r:0,width:0,lowerWidth:0,upperWidth:0,height:0};return a_(a_({},n),{},{value:e.value,payload:e.payload,parentViewBox:void 0,viewBox:n,fill:void 0})});return c.createElement(AS,{value:t?i:void 0},r)}function p_(e){var{points:t,baseLine:r,needClip:n,clipPathId:i,props:o}=e,{layout:a,type:l,stroke:u,connectNulls:s,isRange:f}=o,{id:d}=o,p=i_(o,t_),h=C(p),y=L(p);return c.createElement(c.Fragment,null,(null==t?void 0:t.length)>1&&c.createElement(F,{clipPath:n?"url(#clipPath-".concat(i,")"):void 0},c.createElement(Gs,n_({},y,{id:d,points:t,connectNulls:s,type:l,baseLine:r,layout:a,stroke:"none",className:"recharts-area-area"})),"none"!==u&&c.createElement(Gs,n_({},h,{className:"recharts-area-curve",layout:a,type:l,connectNulls:s,fill:"none",points:t})),"none"!==u&&f&&Array.isArray(r)&&c.createElement(Gs,n_({},h,{className:"recharts-area-curve",layout:a,type:l,connectNulls:s,fill:"none",points:r}))),c.createElement(f_,{points:t,props:p,clipPathId:i}))}function h_(e){var t,r,{alpha:n,baseLine:i,points:o,strokeWidth:a}=e,l=null===(t=o[0])||void 0===t?void 0:t.y,u=null===(r=o[o.length-1])||void 0===r?void 0:r.y;if(!Pl(l)||!Pl(u))return null;var s=n*Math.abs(l-u),f=Math.max(...o.map(e=>e.x||0));return Ot(i)?f=Math.max(i,f):i&&Array.isArray(i)&&i.length&&(f=Math.max(...i.map(e=>e.x||0),f)),Ot(f)?c.createElement("rect",{x:0,y:l<u?l:l-s,width:f+(a?parseInt("".concat(a),10):1),height:Math.floor(s)}):null}function y_(e){var t,r,{alpha:n,baseLine:i,points:o,strokeWidth:a}=e,l=null===(t=o[0])||void 0===t?void 0:t.x,u=null===(r=o[o.length-1])||void 0===r?void 0:r.x;if(!Pl(l)||!Pl(u))return null;var s=n*Math.abs(l-u),f=Math.max(...o.map(e=>e.y||0));return Ot(i)?f=Math.max(i,f):i&&Array.isArray(i)&&i.length&&(f=Math.max(...i.map(e=>e.y||0),f)),Ot(f)?c.createElement("rect",{x:l<u?l:l-s,y:0,width:s,height:Math.floor(f+(a?parseInt("".concat(a),10):1))}):null}function v_(e){var{alpha:t,layout:r,points:n,baseLine:i,strokeWidth:o}=e;return c.createElement("vertical"===r?h_:y_,{alpha:t,points:n,baseLine:i,strokeWidth:o})}function m_(e){var{needClip:t,clipPathId:r,props:n,previousPointsRef:i,previousBaselineRef:o}=e,{points:a,baseLine:l,isAnimationActive:u,animationBegin:s,animationDuration:f,animationEasing:d,onAnimationStart:p,onAnimationEnd:m}=n,g=jf(h(()=>({points:a,baseLine:l}),[a,l]),"recharts-area-"),b=Fc(),[w,x]=y(!1),O=!w,E=v(()=>{"function"==typeof m&&m(),x(!1)},[m]),S=v(()=>{"function"==typeof p&&p(),x(!0)},[p]);if(null==b)return null;var P=i.current,j=o.current;return c.createElement(d_,{showLabels:O,points:a},n.children,c.createElement(Pf,{animationId:g,begin:s,duration:f,isActive:u,easing:d,onAnimationEnd:E,onAnimationStart:S,key:g},e=>{if(P){var s,f=P.length/a.length,d=1===e?a:a.map((t,r)=>{var n=Math.floor(r*f);if(P[n]){var i=P[n];return a_(a_({},t),{},{x:_t(i.x,t.x,e),y:_t(i.y,t.y,e)})}return t});return s=Ot(l)?_t(j,l,e):Mt(l)||wt(l)?_t(j,0,e):l.map((t,r)=>{var n=Math.floor(r*f);if(Array.isArray(j)&&j[n]){var i=j[n];return a_(a_({},t),{},{x:_t(i.x,t.x,e),y:_t(i.y,t.y,e)})}return t}),e>0&&(i.current=d,o.current=s),c.createElement(p_,{points:d,baseLine:s,needClip:t,clipPathId:r,props:n})}return e>0&&(i.current=a,o.current=l),c.createElement(F,null,u&&c.createElement("defs",null,c.createElement("clipPath",{id:"animationClipPath-".concat(r)},c.createElement(v_,{alpha:e,points:a,baseLine:l,layout:b,strokeWidth:n.strokeWidth}))),c.createElement(F,{clipPath:"url(#animationClipPath-".concat(r,")")},c.createElement(p_,{points:a,baseLine:l,needClip:t,clipPathId:r,props:n})))}),c.createElement(MS,{label:n.label}))}function g_(e){var{needClip:t,clipPathId:r,props:n}=e,i=m(null),o=m();return c.createElement(m_,{needClip:t,clipPathId:r,props:n,previousPointsRef:i,previousBaselineRef:o})}class b_ extends j{render(){var{hide:e,dot:t,points:r,className:n,top:i,left:o,needClip:a,xAxisId:l,yAxisId:u,width:s,height:f,id:d,baseLine:p,zIndex:h}=this.props;if(e)return null;var y=k("recharts-area",n),v=d,{r:m,strokeWidth:g}=wA(t),b=ZS(t),w=2*m+g,x=a?"url(#clipPath-".concat(b?"":"dots-").concat(v,")"):void 0;return c.createElement(RO,{zIndex:h},c.createElement(F,{className:y},a&&c.createElement("defs",null,c.createElement(fA,{clipPathId:v,xAxisId:l,yAxisId:u}),!b&&c.createElement("clipPath",{id:"clipPath-dots-".concat(v)},c.createElement("rect",{x:o-w/2,y:i-w/2,width:s+w,height:f+w}))),c.createElement(g_,{needClip:a,clipPathId:v,props:this.props})),c.createElement(lj,{points:r,mainColor:c_(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:x}),this.props.isRange&&Array.isArray(p)&&c.createElement(lj,{points:p,mainColor:c_(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:x}))}}var w_={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:"auto",legendType:"line",stroke:"#3182bd",strokeWidth:1,type:"linear",label:!1,xAxisId:0,yAxisId:0,zIndex:_p.area};function x_(e){var t,{activeDot:r,animationBegin:n,animationDuration:i,animationEasing:o,connectNulls:a,dot:l,fill:u,fillOpacity:s,hide:f,isAnimationActive:d,legendType:p,stroke:h,xAxisId:y,yAxisId:v}=e,m=i_(e,r_),g=Kc(),b=dO(),{needClip:w}=sA(y,v),x=cc(),{points:O,isRange:E,baseLine:S}=null!==(t=ri(t=>e_(t,e.id,x)))&&void 0!==t?t:{},P=rj();if("horizontal"!==g&&"vertical"!==g||null==P)return null;if("AreaChart"!==b&&"ComposedChart"!==b)return null;var{height:j,width:A,x:_,y:k}=P;return O&&O.length?c.createElement(b_,n_({},m,{activeDot:r,animationBegin:n,animationDuration:i,animationEasing:o,baseLine:S,connectNulls:a,dot:l,fill:u,fillOpacity:s,height:j,hide:f,layout:g,isAnimationActive:d,isRange:E,legendType:p,needClip:w,points:O,stroke:h,width:A,left:_,top:k,xAxisId:y,yAxisId:v})):null}var O_=(e,t,r,n,i)=>{var o=null!=r?r:t;if(Ot(o))return o;var a="horizontal"===e?i:n,l=a.scale.domain();if("number"===a.type){var c=Math.max(l[0],l[1]),u=Math.min(l[0],l[1]);return"dataMin"===o?u:"dataMax"===o||c<0?c:Math.max(Math.min(l[0],l[1]),0)}return"dataMin"===o?l[0]:"dataMax"===o?l[1]:l[0]};function E_(e){var t=qt(e,w_),r=cc();return c.createElement(_P,{id:t.id,type:"area"},e=>c.createElement(c.Fragment,null,c.createElement(PP,{legendPayload:u_(t)}),c.createElement(s_,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),c.createElement(NP,{type:"area",id:e,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:zl(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:r,connectNulls:t.connectNulls}),c.createElement(x_,n_({},t,{id:e}))))}var S_=c.memo(E_,as);S_.displayName="Area";var P_="production"===process.env.NODE_ENV,j_="Invariant failed";function A_(){return A_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},A_.apply(null,arguments)}function __(e){return c.createElement(bP,A_({shapeType:"rectangle",activeClassName:"recharts-active-bar",inActiveClassName:"recharts-inactive-bar"},e))}var k_=pi([Kg,(e,t)=>t],(e,t)=>e.filter(e=>"bar"===e.type).find(e=>e.id===t)),M_=pi([k_],e=>null==e?void 0:e.maxBarSize),I_=pi([Vc,Kg,UA,WA,(e,t,r)=>r],(e,t,r,n,i)=>t.filter(t=>"horizontal"===e?t.xAxisId===r:t.yAxisId===n).filter(e=>e.isPanorama===i).filter(e=>!1===e.hide).filter(e=>"bar"===e.type)),T_=pi([I_,e=>e.rootProps.barSize,(e,t)=>{var r=Vc(e),n=UA(e,t),i=WA(e,t);if(null!=n&&null!=i)return"horizontal"===r?bw(e,"xAxis",n):bw(e,"yAxis",i)}],(e,t,r)=>{var n=e.filter(Gp),i=e.filter(e=>null==e.stackId),o=n.reduce((e,t)=>{var r=e[t.stackId];return null==r&&(r=[]),r.push(t),e[t.stackId]=r,e},{});return[...Object.entries(o).map(e=>{var n,[i,o]=e;return{stackId:i,dataKeys:o.map(e=>e.dataKey),barSize:cj(t,r,null===(n=o[0])||void 0===n?void 0:n.barSize)}}),...i.map(e=>({stackId:void 0,dataKeys:[e.dataKey].filter(e=>null!=e),barSize:cj(t,r,e.barSize)}))]}),D_=(e,t,r)=>{var n,i,o=Vc(e),a=UA(e,t),l=WA(e,t);if(null!=a&&null!=l)return"horizontal"===o?(n=Pw(e,"xAxis",a,r),i=Sw(e,"xAxis",a,r)):(n=Pw(e,"yAxis",l,r),i=Sw(e,"yAxis",l,r)),Vl(n,i)},N_=pi([T_,wp,e=>e.rootProps.barGap,xp,(e,t,r)=>{var n,i,o=k_(e,t);if(null==o)return 0;var a=UA(e,t),l=WA(e,t);if(null==a||null==l)return 0;var c,u,s=Vc(e),f=wp(e),{maxBarSize:d}=o,p=Mt(d)?f:d;return"horizontal"===s?(c=Pw(e,"xAxis",a,r),u=Sw(e,"xAxis",a,r)):(c=Pw(e,"yAxis",l,r),u=Sw(e,"yAxis",l,r)),null!==(n=null!==(i=Vl(c,u,!0))&&void 0!==i?i:p)&&void 0!==n?n:0},D_,M_],(e,t,r,n,i,o,a)=>{var l=Mt(a)?t:a,c=function(e,t,r,n,i){var o,a=n.length;if(!(a<1)){var l,c=jt(e,r,0,!0),u=[];if(Pl(null===(o=n[0])||void 0===o?void 0:o.barSize)){var s=!1,f=r/a,d=n.reduce((e,t)=>e+(t.barSize||0),0);(d+=(a-1)*c)>=r&&(d-=(a-1)*c,c=0),d>=r&&f>0&&(s=!0,d=a*(f*=.9));var p={offset:((r-d)/2|0)-c,size:0};l=n.reduce((e,t)=>{var r,n={stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:p.offset+p.size+c,size:s?f:null!==(r=t.barSize)&&void 0!==r?r:0}},i=[...e,n];return p=n.position,i},u)}else{var h=jt(t,r,0,!0);r-2*h-(a-1)*c<=0&&(c=0);var y=(r-2*h-(a-1)*c)/a;y>1&&(y>>=0);var v=Pl(i)?Math.min(y,i):y;l=n.reduce((e,t,r)=>[...e,{stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:h+(y+c)*r+(y-v)/2,size:v}}],u)}return l}}(r,n,i!==o?i:o,e,l);return i!==o&&null!=c&&(c=c.map(e=>sj(sj({},e),{},{position:sj(sj({},e.position),{},{offset:e.position.offset-i/2})}))),c}),C_=pi([N_,k_],(e,t)=>{if(null!=e&&null!=t){var r=e.find(e=>e.stackId===t.stackId&&null!=t.dataKey&&e.dataKeys.includes(t.dataKey));if(null!=r)return r.position}}),z_=pi([(e,t,r)=>{var n=Vc(e),i=UA(e,t),o=WA(e,t);if(null!=i&&null!=o)return"horizontal"===n?db(e,"yAxis",o,r):db(e,"xAxis",i,r)},k_],(e,t)=>{var r=qp(t);if(e&&null!=r&&null!=t){var{stackId:n}=t;if(null!=n){var i=e[n];if(i){var{stackedData:o}=i;if(o)return o.find(e=>e.key===r)}}}}),L_=pi([ic,ac,(e,t,r)=>{var n=UA(e,t);if(null!=n)return Pw(e,"xAxis",n,r)},(e,t,r)=>{var n=WA(e,t);if(null!=n)return Pw(e,"yAxis",n,r)},(e,t,r)=>{var n=UA(e,t);if(null!=n)return Sw(e,"xAxis",n,r)},(e,t,r)=>{var n=WA(e,t);if(null!=n)return Sw(e,"yAxis",n,r)},C_,Vc,Id,D_,z_,k_,(e,t,r,n)=>n],(e,t,r,n,i,o,a,l,c,u,s,f,d)=>{var{chartData:p,dataStartIndex:h,dataEndIndex:y}=c;if(null!=f&&null!=a&&null!=t&&("horizontal"===l||"vertical"===l)&&null!=r&&null!=n&&null!=i&&null!=o&&null!=u){var v,{data:m}=f;if(null!=(v=null!=m&&m.length>0?m:null==p?void 0:p.slice(h,y+1)))return function(e){var{layout:t,barSettings:{dataKey:r,minPointSize:n,hasCustomShape:i},pos:o,bandSize:a,xAxis:l,yAxis:c,xAxisTicks:u,yAxisTicks:s,stackedData:f,displayedData:d,offset:p,cells:h,parentViewBox:y,dataStartIndex:v}=e,m="horizontal"===t?c:l,g=f?m.scale.domain():null,b=(e=>{var{numericAxis:t}=e,r=t.scale.domain();if("number"===t.type){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]})({numericAxis:m}),w=m.scale.map(b);return d.map((e,d)=>{var m,x,O,E,S,P;if(f){var j=f[d+v];if(null==j)return null;m=((e,t)=>{if(!t||2!==t.length||!Ot(t[0])||!Ot(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!Ot(e[0])||e[0]<r)&&(i[0]=r),(!Ot(e[1])||e[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i})(j,g)}else m=Ml(e,r),Array.isArray(m)||(m=[b,m]);var A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(r,n)=>{if(Ot(e))return e;var i=Ot(r)||Mt(r);return i?e(r,n):(i||function(e,t){if(P_)throw new Error(j_);var r="function"==typeof t?t():t,n=r?"".concat(j_,": ").concat(r):j_;throw new Error(n)}(0,"minPointSize callback function received a value with type of ".concat(typeof r,". Currently only numbers or null/undefined are supported.")),t)}}(n,ak)(m[1],d);if("horizontal"===t){var _,k=c.scale.map(m[0]),M=c.scale.map(m[1]);if(null==k||null==M)return null;x=Rl({axis:l,ticks:u,bandSize:a,offset:o.offset,entry:e,index:d}),O=null!==(_=null!=M?M:k)&&void 0!==_?_:void 0,E=o.size;var I=k-M;if(S=wt(I)?0:I,P={x,y:p.top,width:E,height:p.height},Math.abs(A)>0&&Math.abs(S)<Math.abs(A)){var T=bt(S||A)*(Math.abs(A)-Math.abs(S));O-=T,S+=T}}else{var D=l.scale.map(m[0]),N=l.scale.map(m[1]);if(null==D||null==N)return null;x=D,O=Rl({axis:c,ticks:s,bandSize:a,offset:o.offset,entry:e,index:d}),E=N-D,P={x:p.left,y:O,width:p.width,height:S=o.size},Math.abs(A)>0&&Math.abs(E)<Math.abs(A)&&(E+=bt(E||A)*(Math.abs(A)-Math.abs(E)))}return null!=x&&null!=O&&null!=E&&null!=S&&(i||0!==E&&0!==S)?Y_(Y_({},e),{},{stackedBarStart:w,x,y:O,width:E,height:S,value:f?m:m[1],payload:e,background:P,tooltipPosition:{x:x+E/2,y:O+S/2},parentViewBox:y,originalDataIndex:d},h&&h[d]&&h[d].props):null}).filter(Boolean)}({layout:l,barSettings:f,pos:a,parentViewBox:t,bandSize:u,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:o,stackedData:s,displayedData:v,offset:e,cells:d,dataStartIndex:h})}}),R_=["index"];function B_(){return B_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},B_.apply(null,arguments)}var $_=p(void 0),V_=e=>{var{index:t}=e,r=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,R_),n=(e=>{var t=d($_);if(null!=t){var{stackId:r}=t;return"url(#".concat(((e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t))(r,e),")")}})(t);return c.createElement(F,B_({className:"recharts-bar-stack-layer",clipPath:n},r))},K_=["onMouseEnter","onMouseLeave","onClick"],F_=["value","background","tooltipPosition"],U_=["id"],W_=["onMouseEnter","onClick","onMouseLeave"];function H_(){return H_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},H_.apply(null,arguments)}function q_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Y_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?q_(Object(r),!0).forEach(function(t){G_(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function G_(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X_(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var Z_=e=>{var{dataKey:t,name:r,fill:n,legendType:i,hide:o}=e;return[{inactive:o,dataKey:t,type:i,color:n,value:Fl(r,t),payload:e}]},Q_=c.memo(e=>{var{dataKey:t,stroke:r,strokeWidth:n,fill:i,name:o,hide:a,unit:l,tooltipType:u,id:s}=e,f={dataDefinedOnItem:void 0,getPosition:Dt,settings:{stroke:r,strokeWidth:n,fill:i,dataKey:t,nameKey:void 0,name:Fl(o,t),hide:a,type:u,color:i,unit:l,graphicalItemId:s}};return c.createElement(SP,{tooltipEntrySettings:f})});function J_(e){var t=ri(Gx),{data:r,dataKey:n,background:i,allOtherBarProps:o}=e,{onMouseEnter:a,onMouseLeave:l,onClick:u}=o,s=X_(o,K_),f=xP(a,n,o.id),d=OP(l),p=EP(u,n,o.id);if(!i||null==r)return null;var h,y,v=z(i);return c.createElement(RO,{zIndex:(h=i,y=_p.barBackground,h&&"object"==typeof h&&"zIndex"in h&&"number"==typeof h.zIndex&&Pl(h.zIndex)?h.zIndex:y)},r.map((e,r)=>{var{background:o}=e,a=X_(e,F_);if(!o)return null;var l=f(e,r),u=d(e,r),h=p(e,r),y=Y_(Y_(Y_(Y_(Y_({option:i,isActive:String(r)===t},a),{},{fill:"#eee"},o),v),Ut(s,e,r)),{},{onMouseEnter:l,onMouseLeave:u,onClick:h,dataKey:n,index:r,className:"recharts-bar-background-rectangle"});return c.createElement(__,H_({key:"background-bar-".concat(r)},y))}))}function ek(e){var{showLabels:t,children:r,rects:n}=e,i=null==n?void 0:n.map(e=>{var t={x:e.x,y:e.y,width:e.width,lowerWidth:e.width,upperWidth:e.width,height:e.height};return Y_(Y_({},t),{},{value:e.value,payload:e.payload,parentViewBox:e.parentViewBox,viewBox:t,fill:e.fill})});return c.createElement(AS,{value:t?i:void 0},r)}function tk(e){var{shape:t,activeBar:r,baseProps:n,entry:i,index:o,dataKey:a}=e,l=ri(Gx),u=ri(Zx),s=r&&String(i.originalDataIndex)===l&&(null==u||a===u),[f,d]=y(!1),[p,h]=y(!1);b(()=>{var e;return s?(d(!0),e=requestAnimationFrame(()=>{h(!0)})):h(!1),()=>{cancelAnimationFrame(e)}},[s]);var m,g=v(()=>{s||d(!1)},[s]),w=s&&p,x=s||f;m=s?!0===r?t:r:t;var O=c.createElement(__,H_({},n,{name:String(n.name)},i,{isActive:w,option:m,index:o,dataKey:a,onTransitionEnd:g}));return x?c.createElement(RO,{zIndex:_p.activeBar},c.createElement(V_,{index:i.originalDataIndex},O)):O}function rk(e){var{shape:t,baseProps:r,entry:n,index:i,dataKey:o}=e;return c.createElement(__,H_({},r,{name:String(r.name)},n,{isActive:!1,option:t,index:i,dataKey:o}))}function nk(e){var t,{data:r,props:n}=e,i=null!==(t=C(n))&&void 0!==t?t:{},{id:o}=i,a=X_(i,U_),{shape:l,dataKey:u,activeBar:s}=n,{onMouseEnter:f,onClick:d,onMouseLeave:p}=n,h=X_(n,W_),y=xP(f,u,o),v=OP(p),m=EP(d,u,o);return r?c.createElement(c.Fragment,null,r.map((e,t)=>c.createElement(V_,H_({index:e.originalDataIndex,key:"rectangle-".concat(null==e?void 0:e.x,"-").concat(null==e?void 0:e.y,"-").concat(null==e?void 0:e.value,"-").concat(t),className:"recharts-bar-rectangle"},Ut(h,e,t),{onMouseEnter:y(e,t),onMouseLeave:v(e,t),onClick:m(e,t)}),s?c.createElement(tk,{shape:l,activeBar:s,baseProps:a,entry:e,index:t,dataKey:u}):c.createElement(rk,{shape:l,baseProps:a,entry:e,index:t,dataKey:u})))):null}function ik(e){var{props:t,previousRectanglesRef:r}=e,{data:n,layout:i,isAnimationActive:o,animationBegin:a,animationDuration:l,animationEasing:u,onAnimationEnd:s,onAnimationStart:f}=t,d=r.current,p=jf(t,"recharts-bar-"),[h,m]=y(!1),g=!h,b=v(()=>{"function"==typeof s&&s(),m(!1)},[s]),w=v(()=>{"function"==typeof f&&f(),m(!0)},[f]);return c.createElement(ek,{showLabels:g,rects:n},c.createElement(Pf,{animationId:p,begin:a,duration:l,isActive:o,easing:u,onAnimationEnd:b,onAnimationStart:w,key:p},e=>{var o=1===e?n:null==n?void 0:n.map((t,r)=>{var n=d&&d[r];if(n)return Y_(Y_({},t),{},{x:_t(n.x,t.x,e),y:_t(n.y,t.y,e),width:_t(n.width,t.width,e),height:_t(n.height,t.height,e)});if("horizontal"===i){var o=_t(0,t.height,e),a=_t(t.stackedBarStart,t.y,e);return Y_(Y_({},t),{},{y:a,height:o})}var l=_t(0,t.width,e),c=_t(t.stackedBarStart,t.x,e);return Y_(Y_({},t),{},{width:l,x:c})});return e>0&&(r.current=null!=o?o:null),null==o?null:c.createElement(F,null,c.createElement(nk,{props:t,data:o}))}),c.createElement(MS,{label:t.label}),t.children)}function ok(e){var t=m(null);return c.createElement(ik,{previousRectanglesRef:t,props:e})}var ak=0,lk=(e,t)=>{var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:Ml(e,t)}};class ck extends j{render(){var{hide:e,data:t,dataKey:r,className:n,xAxisId:i,yAxisId:o,needClip:a,background:l,id:u}=this.props;if(e||null==t)return null;var s=k("recharts-bar",n),f=u;return c.createElement(F,{className:s,id:u},a&&c.createElement("defs",null,c.createElement(fA,{clipPathId:f,xAxisId:i,yAxisId:o})),c.createElement(F,{className:"recharts-bar-rectangles",clipPath:a?"url(#clipPath-".concat(f,")"):void 0},c.createElement(J_,{data:t,dataKey:r,background:l,allOtherBarProps:this.props}),c.createElement(ok,this.props)))}}var uk={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:ak,xAxisId:0,yAxisId:0,zIndex:_p.bar};function sk(e){var t,r,n,i,{xAxisId:o,yAxisId:a,hide:l,legendType:u,minPointSize:s,activeBar:f,animationBegin:d,animationDuration:p,animationEasing:h,isAnimationActive:y}=e,{needClip:v}=sA(o,a),m=Kc(),g=cc(),b=(t=e.children,r=gE,n=[],i=[],i=Array.isArray(r)?r.map(e=>qS(e)):[qS(r)],XS(t).forEach(e=>{var t=vt(e,"type.displayName")||vt(e,"type.name");t&&-1!==i.indexOf(t)&&n.push(e)}),n),w=ri(t=>L_(t,e.id,g,b));if("vertical"!==m&&"horizontal"!==m)return null;var x=null==w?void 0:w[0];return c.createElement(uA,{xAxisId:o,yAxisId:a,data:w,dataPointFormatter:lk,errorBarOffset:null==x||null==x.height||null==x.width?0:"vertical"===m?x.height/2:x.width/2},c.createElement(ck,H_({},e,{layout:m,needClip:v,data:w,xAxisId:o,yAxisId:a,hide:l,legendType:u,minPointSize:s,activeBar:f,animationBegin:d,animationDuration:p,animationEasing:h,isAnimationActive:y})))}function fk(e){var t,r,n=qt(e,uk),i=(t=n.stackId,null!=(r=d($_))?r.stackId:null!=t?zl(t):void 0),o=cc();return c.createElement(_P,{id:n.id,type:"bar"},e=>c.createElement(c.Fragment,null,c.createElement(PP,{legendPayload:Z_(n)}),c.createElement(Q_,{dataKey:n.dataKey,stroke:n.stroke,strokeWidth:n.strokeWidth,fill:n.fill,name:n.name,hide:n.hide,unit:n.unit,tooltipType:n.tooltipType,id:e}),c.createElement(NP,{type:"bar",id:e,data:void 0,xAxisId:n.xAxisId,yAxisId:n.yAxisId,zAxisId:0,dataKey:n.dataKey,stackId:i,hide:n.hide,barSize:n.barSize,minPointSize:n.minPointSize,maxBarSize:n.maxBarSize,isPanorama:o,hasCustomShape:null!=n.shape}),c.createElement(RO,{zIndex:n.zIndex},c.createElement(sk,H_({},n,{id:e})))))}var dk=c.memo(fk,as);dk.displayName="Bar";var pk=["domain","range"],hk=["domain","range"];function yk(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function vk(e,t){return e===t||!(!Array.isArray(e)||2!==e.length||!Array.isArray(t)||2!==t.length)&&e[0]===t[0]&&e[1]===t[1]}function mk(e,t){if(e===t)return!0;var{domain:r,range:n}=e,i=yk(e,pk),{domain:o,range:a}=t,l=yk(t,hk);return!!vk(r,o)&&!!vk(n,a)&&as(i,l)}var gk=["type"],bk=["dangerouslySetInnerHTML","ticks","scale"],wk=["id","scale"];function xk(){return xk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xk.apply(null,arguments)}function Ok(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ek(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ok(Object(r),!0).forEach(function(t){Sk(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ok(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Sk(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pk(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function jk(e){var t=Qn(),r=m(null),n=Fc(),{type:i}=e,o=Pk(e,gk),a=Mp(n,"xAxis",i),l=h(()=>{if(null!=a)return Ek(Ek({},o),{},{type:a})},[o,a]);return w(()=>{null!=l&&(null===r.current?t(HP(l)):r.current!==l&&t(qP({prev:r.current,next:l})),r.current=l)},[l,t]),w(()=>()=>{r.current&&(t(YP(r.current)),r.current=null)},[t]),null}var Ak=e=>{var{xAxisId:t,className:r}=e,n=ri(ac),i=cc(),o="xAxis",a=ri(e=>Ew(e,o,t,i)),l=ri(e=>pw(e,t)),u=ri(e=>vw(e,t)),s=ri(e=>Ig(e,t));if(null==l||null==u||null==s)return null;var f=Pk(e,bk),d=Pk(s,wk);return c.createElement(Bj,xk({},f,d,{x:u.x,y:u.y,width:l.width,height:l.height,className:k("recharts-".concat(o," ").concat(o),r),viewBox:n,ticks:a,axisType:o,axisId:t}))},_k={allowDataOverflow:Mg.allowDataOverflow,allowDecimals:Mg.allowDecimals,allowDuplicatedCategory:Mg.allowDuplicatedCategory,angle:Mg.angle,axisLine:Dj.axisLine,height:Mg.height,hide:!1,includeHidden:Mg.includeHidden,interval:Mg.interval,label:!1,minTickGap:Mg.minTickGap,mirror:Mg.mirror,orientation:Mg.orientation,padding:Mg.padding,reversed:Mg.reversed,scale:Mg.scale,tick:Mg.tick,tickCount:Mg.tickCount,tickLine:Dj.tickLine,tickSize:Dj.tickSize,type:Mg.type,niceTicks:Mg.niceTicks,xAxisId:0},kk=c.memo(e=>{var t=qt(e,_k);return c.createElement(c.Fragment,null,c.createElement(jk,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,niceTicks:t.niceTicks}),c.createElement(Ak,t))},mk);kk.displayName="XAxis";var Mk=["type"],Ik=["dangerouslySetInnerHTML","ticks","scale"],Tk=["id","scale"];function Dk(){return Dk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dk.apply(null,arguments)}function Nk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ck(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Nk(Object(r),!0).forEach(function(t){zk(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nk(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function zk(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lk(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Rk(e){var t=Qn(),r=m(null),n=Fc(),{type:i}=e,o=Lk(e,Mk),a=Mp(n,"yAxis",i),l=h(()=>{if(null!=a)return Ck(Ck({},o),{},{type:a})},[a,o]);return w(()=>{null!=l&&(null===r.current?t(GP(l)):r.current!==l&&t(XP({prev:r.current,next:l})),r.current=l)},[l,t]),w(()=>()=>{r.current&&(t(ZP(r.current)),r.current=null)},[t]),null}function Bk(e){var{yAxisId:t,className:r,width:n,label:i}=e,o=m(null),a=m(null),l=ri(ac),u=cc(),f=Qn(),d="yAxis",p=ri(e=>gw(e,t)),h=ri(e=>mw(e,t)),y=ri(e=>Ew(e,d,t,u)),v=ri(e=>Ng(e,t));if(w(()=>{if("auto"===n&&p&&!vS(i)&&!s(i)&&null!=v){var e=o.current;if(e){var r=e.getCalculatedWidth();Math.round(p.width)!==Math.round(r)&&f(QP({id:t,width:r}))}}},[y,p,f,i,t,n,v]),null==p||null==h||null==v)return null;var g=Lk(e,Ik),b=Lk(v,Tk);return c.createElement(Bj,Dk({},g,b,{ref:o,labelRef:a,x:h.x,y:h.y,tickTextProps:"auto"===n?{width:void 0}:{width:n},width:p.width,height:p.height,className:k("recharts-".concat(d," ").concat(d),r),viewBox:l,ticks:y,axisType:d,axisId:t}))}var $k={allowDataOverflow:Dg.allowDataOverflow,allowDecimals:Dg.allowDecimals,allowDuplicatedCategory:Dg.allowDuplicatedCategory,angle:Dg.angle,axisLine:Dj.axisLine,hide:!1,includeHidden:Dg.includeHidden,interval:Dg.interval,label:!1,minTickGap:Dg.minTickGap,mirror:Dg.mirror,orientation:Dg.orientation,padding:Dg.padding,reversed:Dg.reversed,scale:Dg.scale,tick:Dg.tick,tickCount:Dg.tickCount,tickLine:Dj.tickLine,tickSize:Dj.tickSize,type:Dg.type,niceTicks:Dg.niceTicks,width:Dg.width,yAxisId:0},Vk=c.memo(e=>{var t=qt(e,$k);return c.createElement(c.Fragment,null,c.createElement(Rk,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter,niceTicks:t.niceTicks}),c.createElement(Bk,t))},mk);Vk.displayName="YAxis";var Kk=pi([(e,t)=>t,Vc,Up,Qp,Bx,Ux,vO,ic],(e,t,r,n,i,o,a,l)=>{if(e&&t&&n&&i&&o)return"horizontal"===t||"vertical"===t?((e,t,r,n,i,o,a)=>{if(e&&r&&n&&i&&function(e,t){var{relativeX:r,relativeY:n}=e;return r>=t.left&&r<=t.left+t.width&&n>=t.top&&n<=t.top+t.height}(e,a)){var l=((e,t)=>"horizontal"===t?e.relativeX:"vertical"===t?e.relativeY:void 0)(e,t),c=fO(l,o,i,r,n),u=((e,t,r,n)=>{var i=t.find(e=>e&&e.index===r);if(i){if("horizontal"===e)return{x:i.coordinate,y:n.relativeY};if("vertical"===e)return{x:n.relativeX,y:i.coordinate}}return{x:0,y:0}})(t,i,c,e);return{activeIndex:String(c),activeCoordinate:u}}})(e,t,n,i,o,a,l):((e,t,r,n,i,o,a)=>{if(e&&n&&i&&o&&r){var l=((e,t)=>{var{relativeX:r,relativeY:n}=e,{radius:i,angle:o}=((e,t)=>{var{x:r,y:n}=e,{cx:i,cy:o}=t,a=((e,t)=>{var{x:r,y:n}=e,{x:i,y:o}=t;return Math.sqrt((r-i)**2+(n-o)**2)})({x:r,y:n},{x:i,y:o});if(a<=0)return{radius:a,angle:0};var l=Math.acos((r-i)/a);return n>o&&(l=2*Math.PI-l),{radius:a,angle:od(l),angleInRadian:l}})({x:r,y:n},t),{innerRadius:a,outerRadius:l}=t;if(i<a||i>l)return null;if(0===i)return null;var c,{startAngle:u,endAngle:s}=(e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),i=Math.floor(r/360),o=Math.min(n,i);return{startAngle:t-360*o,endAngle:r-360*o}})(t),f=o;if(u<=s){for(;f>s;)f-=360;for(;f<u;)f+=360;c=f>=u&&f<=s}else{for(;f>u;)f-=360;for(;f<s;)f+=360;c=f>=s&&f<=u}return c?Gf(Gf({},t),{},{radius:i,angle:ld(f,t)}):null})(e,r);if(l){var c=((e,t)=>"centric"===t?e.angle:e.radius)(l,t),u=fO(c,a,o,n,i),s=((e,t,r,n)=>{var i=t.find(e=>e&&e.index===r);if(i){if("centric"===e){var o=i.coordinate,{radius:a}=n;return uO(uO(uO({},n),ad(n.cx,n.cy,a,o)),{},{angle:o,radius:a})}var l=i.coordinate,{angle:c}=n;return uO(uO(uO({},n),ad(n.cx,n.cy,l,c)),{},{angle:c,radius:l})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}})(t,o,u,l);return{activeIndex:String(u),activeCoordinate:s}}}})(e,t,r,n,i,o,a)});function Fk(e){var t,r,n,i=e.currentTarget.getBoundingClientRect();if("getBBox"in(n=e).currentTarget&&"function"==typeof n.currentTarget.getBBox){var o=e.currentTarget.getBBox();t=o.width>0?i.width/o.width:1,r=o.height>0?i.height/o.height:1}else{var a=e.currentTarget;t=a.offsetWidth>0?i.width/a.offsetWidth:1,r=a.offsetHeight>0?i.height/a.offsetHeight:1}var l=(e,n)=>({relativeX:Math.round((e-i.left)/t),relativeY:Math.round((n-i.top)/r)});return"touches"in e?Array.from(e.touches).map(e=>l(e.clientX,e.clientY)):l(e.clientX,e.clientY)}var Uk=ya("mouseClick"),Wk=vl();Wk.startListening({actionCreator:Uk,effect:(e,t)=>{var r=e.payload,n=Kk(t.getState(),Fk(r));null!=(null==n?void 0:n.activeIndex)&&t.dispatch(Ww({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var Hk=ya("mouseMove"),qk=vl(),Yk=null,Gk=null,Xk=null;function Zk(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":"children"===e&&"object"==typeof t&&null!==t?"<<CHILDREN>>":t}qk.startListening({actionCreator:Hk,effect:(e,t)=>{var r=e.payload,n=t.getState(),{throttleDelay:i,throttledEvents:o}=n.eventSettings,a="all"===o||(null==o?void 0:o.includes("mousemove"));null!==Yk&&(cancelAnimationFrame(Yk),Yk=null),null===Gk||"number"==typeof i&&a||(clearTimeout(Gk),Gk=null),Xk=Fk(r);var l=()=>{var e=t.getState(),r=Tw(e,e.tooltip.settings.shared);if(!Xk)return Yk=null,void(Gk=null);if("axis"===r){var n=Kk(e,Xk);t.dispatch(null!=(null==n?void 0:n.activeIndex)?Uw({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}):Kw())}Yk=null,Gk=null};a?"raf"===i?Yk=requestAnimationFrame(l):"number"==typeof i&&null===Gk&&(Gk=setTimeout(l,i)):l()}});var Qk={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},Jk=$a({name:"rootProps",initialState:Qk,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=null!==(r=t.payload.barGap)&&void 0!==r?r:Qk.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),eM=Jk.reducer,{updateOptions:tM}=Jk.actions,rM=$a({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>null===e?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)}}).reducer,nM=ya("keyDown"),iM=ya("focus"),oM=ya("blur"),aM=vl(),lM=null,cM=null,uM=null;function sM(e){e.persist();var{currentTarget:t}=e;return new Proxy(e,{get:(e,r)=>{if("currentTarget"===r)return t;var n=Reflect.get(e,r);return"function"==typeof n?n.bind(e):n}})}aM.startListening({actionCreator:nM,effect:(e,t)=>{uM=e.payload,null!==lM&&(cancelAnimationFrame(lM),lM=null);var r=t.getState(),{throttleDelay:n,throttledEvents:i}=r.eventSettings,o="all"===i||i.includes("keydown");null===cM||"number"==typeof n&&o||(clearTimeout(cM),cM=null);var a=()=>{try{var e=t.getState();if(!1===e.rootProps.accessibilityLayer)return;var{keyboardInteraction:r}=e.tooltip,n=uM;if("ArrowRight"!==n&&"ArrowLeft"!==n&&"Enter"!==n)return;var i=Jw(r,vx(e),ub(e),Cx(e)),o=null==i?-1:Number(i),a=!Number.isFinite(o)||o<0,l=Ux(e),c=vx(e),u=Tw(e,e.tooltip.settings.shared);if("Enter"===n){if(a)return;var s=wO(e,u,"hover",String(r.index));return void t.dispatch(qw({active:!r.active,activeIndex:r.index,activeCoordinate:s}))}var f,d="left-to-right"===_w(e)?1:-1,p="ArrowRight"===n?1:-1;if(a){var h=ub(e),y=Cx(e),v=e=>({active:!1,index:String(e),dataKey:void 0,graphicalItemId:void 0,coordinate:void 0});if(f=-1,p*d>0){for(var m=0;m<c.length;m++)if(null!=Jw(v(m),c,h,y)){f=m;break}}else for(var g=c.length-1;g>=0;g--)if(null!=Jw(v(g),c,h,y)){f=g;break}if(f<0)return}else{f=o+p*d;var b=(null==l?void 0:l.length)||c.length;if(0===b||f>=b||f<0)return}var w=wO(e,u,"hover",String(f));t.dispatch(qw({active:!0,activeIndex:f.toString(),activeCoordinate:w}))}finally{lM=null,cM=null}};o?"raf"===n?lM=requestAnimationFrame(a):"number"==typeof n&&null===cM&&(a(),uM=null,cM=setTimeout(()=>{uM?a():(cM=null,lM=null)},n)):a()}}),aM.startListening({actionCreator:iM,effect:(e,t)=>{var r=t.getState();if(!1!==r.rootProps.accessibilityLayer){var{keyboardInteraction:n}=r.tooltip;if(!n.active&&null==n.index){var i=Tw(r,r.tooltip.settings.shared),o=wO(r,i,"hover",String("0"));t.dispatch(qw({active:!0,activeIndex:"0",activeCoordinate:o}))}}}}),aM.startListening({actionCreator:oM,effect:(e,t)=>{var r=t.getState();if(!1!==r.rootProps.accessibilityLayer){var{keyboardInteraction:n}=r.tooltip;n.active&&t.dispatch(qw({active:!1,activeIndex:n.index,activeCoordinate:n.coordinate}))}}});var fM=ya("externalEvent"),dM=vl(),pM=new Map,hM=new Map,yM=new Map;dM.startListening({actionCreator:fM,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(null!=r){var i=n.type,o=sM(n);yM.set(i,{handler:r,reactEvent:o});var a=pM.get(i);void 0!==a&&(cancelAnimationFrame(a),pM.delete(i));var l=t.getState(),{throttleDelay:c,throttledEvents:u}=l.eventSettings,s="all"===u||(null==u?void 0:u.includes(i)),f=hM.get(i);void 0===f||"number"==typeof c&&s||(clearTimeout(f),hM.delete(i));var d=()=>{var e=yM.get(i);try{if(!e)return;var{handler:r,reactEvent:n}=e,o=t.getState(),a={activeCoordinate:tO(o),activeDataKey:Zx(o),activeIndex:Gx(o),activeLabel:Xx(o),activeTooltipIndex:Gx(o),isTooltipActive:rO(o)};r&&r(a,n)}finally{pM.delete(i),hM.delete(i),yM.delete(i)}};if(s)if("raf"===c){var p=requestAnimationFrame(d);pM.set(i,p)}else if("number"==typeof c){if(!hM.has(i)){d();var h=setTimeout(d,c);hM.set(i,h)}}else d();else d()}}});var vM=pi([nx],e=>e.tooltipItemPayloads),mM=pi([vM,(e,t)=>t,(e,t,r)=>r],(e,t,r)=>{if(null!=t){var n=e.find(e=>e.settings.graphicalItemId===r);if(null!=n){var{getPosition:i}=n;if(null!=i)return i(t)}}}),gM=ya("touchMove"),bM=vl(),wM=null,xM=null,OM=null,EM=null;bM.startListening({actionCreator:gM,effect:(e,t)=>{var r=e.payload;if(null!=r.touches&&0!==r.touches.length){EM=sM(r);var n=t.getState(),{throttleDelay:i,throttledEvents:o}=n.eventSettings,a="all"===o||o.includes("touchmove");null!==wM&&(cancelAnimationFrame(wM),wM=null),null===xM||"number"==typeof i&&a||(clearTimeout(xM),xM=null),OM=Array.from(r.touches).map(e=>Fk({clientX:e.clientX,clientY:e.clientY,currentTarget:r.currentTarget}));var l=()=>{if(null!=EM){var e=t.getState(),r=Tw(e,e.tooltip.settings.shared);if("axis"===r){var n,i=null===(n=OM)||void 0===n?void 0:n[0];if(null==i)return wM=null,void(xM=null);var o=Kk(e,i);null!=(null==o?void 0:o.activeIndex)&&t.dispatch(Uw({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate}))}else if("item"===r){var a,l=EM.touches[0];if(null==document.elementFromPoint||null==l)return;var c=document.elementFromPoint(l.clientX,l.clientY);if(!c||!c.getAttribute)return;var u=c.getAttribute("data-recharts-item-index"),s=null!==(a=c.getAttribute("data-recharts-item-id"))&&void 0!==a?a:void 0,f=dx(e).find(e=>e.id===s);if(null==u||null==f||null==s)return;var{dataKey:d}=f,p=mM(e,u,s);t.dispatch($w({activeDataKey:d,activeIndex:u,activeCoordinate:p,activeGraphicalItemId:s}))}wM=null,xM=null}};a?"raf"===i?wM=requestAnimationFrame(l):"number"==typeof i&&null===xM&&(l(),EM=null,xM=setTimeout(()=>{EM?l():(xM=null,wM=null)},i)):l()}}});var SM={throttleDelay:"raf",throttledEvents:["mousemove","touchmove","pointermove","scroll","wheel"]},PM=$a({name:"eventSettings",initialState:SM,reducers:{setEventSettings:(e,t)=>{null!=t.payload.throttleDelay&&(e.throttleDelay=t.payload.throttleDelay),null!=t.payload.throttledEvents&&(e.throttledEvents=t.payload.throttledEvents)}}}),{setEventSettings:jM}=PM.actions,AM=Gi({brush:hj,cartesianAxis:JP,chartData:aE,errorBars:aA,eventSettings:PM.reducer,graphicalItems:DP,layout:El,legend:Uu,options:eE,polarAxis:NS,polarOptions:rM,referenceElements:yj,renderedTicks:Aj,rootProps:eM,tooltip:Yw,zIndex:LO});function _M(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,i=cc(),o=m(null);return i?r:(null==o.current&&(o.current=function(e){return function(e){const t=ka(),{reducer:r,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:o=!0,preloadedState:a,enhancers:l}=e||{};let c,u;if("function"==typeof r)c=r;else{if(!Wi(r))throw new Error("production"===process.env.NODE_ENV?ml(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");c=Gi(r)}if("production"!==process.env.NODE_ENV&&n&&"function"!=typeof n)throw new Error("production"===process.env.NODE_ENV?ml(2):"`middleware` field must be a callback");if("function"==typeof n){if(u=n(t),"production"!==process.env.NODE_ENV&&!Array.isArray(u))throw new Error("production"===process.env.NODE_ENV?ml(3):"when using a middleware builder function, an array of middleware must be returned")}else u=t();if("production"!==process.env.NODE_ENV&&u.some(e=>"function"!=typeof e))throw new Error("production"===process.env.NODE_ENV?ml(4):"each middleware provided to configureStore must be a function");if("production"!==process.env.NODE_ENV&&o){let e=new Set;u.forEach(t=>{if(e.has(t))throw new Error("production"===process.env.NODE_ENV?ml(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");e.add(t)})}let s=Xi;i&&(s=ha({trace:"production"!==process.env.NODE_ENV,..."object"==typeof i&&i}));const f=function(...e){return t=>(r,n)=>{const i=t(r,n);let o=()=>{throw new Error("production"===process.env.NODE_ENV?Vi(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const a={getState:i.getState,dispatch:(e,...t)=>o(e,...t)},l=e.map(e=>e(a));return o=Xi(...l)(i.dispatch),{...i,dispatch:o}}}(...u),d=(e=>function(t){const{autoBatch:r=!0}=t??{};let n=new ga(e);return r&&n.push(Da("object"==typeof r?r:void 0)),n})(f);if("production"!==process.env.NODE_ENV&&l&&"function"!=typeof l)throw new Error("production"===process.env.NODE_ENV?ml(5):"`enhancers` field must be a callback");let p="function"==typeof l?l(d):d();if("production"!==process.env.NODE_ENV&&!Array.isArray(p))throw new Error("production"===process.env.NODE_ENV?ml(6):"`enhancers` callback must return an array");if("production"!==process.env.NODE_ENV&&p.some(e=>"function"!=typeof e))throw new Error("production"===process.env.NODE_ENV?ml(7):"each enhancer provided to configureStore must be a function");return"production"!==process.env.NODE_ENV&&u.length&&!p.includes(f)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`"),qi(c,a,s(...p))}({reducer:AM,preloadedState:e,middleware:e=>e({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes("es6")}).concat([Wk.middleware,qk.middleware,aM.middleware,dM.middleware,bM.middleware]),enhancers:e=>{var t=e;return"function"==typeof e&&(t=e()),t.concat(Da({type:"raf"}))},devTools:{serialize:{replacer:Zk},name:"recharts-".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Chart")}})}(t,n)),c.createElement(ns,{context:Xn,store:o.current},r))}function kM(e){var{layout:t,margin:r}=e,n=Qn(),i=cc();return b(()=>{i||(n(wl(t)),n(bl(r)))},[n,i,t,r]),null}var MM=S(kM,as);function IM(e){var t=Qn();return b(()=>{t(tM(e))},[t,e]),null}var TM=S(e=>{var t=Qn();return b(()=>{t(jM(e))},[t,e]),null},as);function DM(e){var{zIndex:t,isPanorama:r}=e,n=m(null),i=Qn();return w(()=>(n.current&&i(CO({zIndex:t,element:n.current,isPanorama:r})),()=>{i(zO({zIndex:t,isPanorama:r}))}),[i,t,r]),c.createElement("g",{tabIndex:-1,ref:n,className:"recharts-zIndex-layer_".concat(t)})}function NM(e){var{children:t,isPanorama:r}=e,n=ri(jO);if(!n||0===n.length)return t;var i=n.filter(e=>e<0),o=n.filter(e=>e>0);return c.createElement(c.Fragment,null,i.map(e=>c.createElement(DM,{key:e,zIndex:e,isPanorama:r})),t,o.map(e=>c.createElement(DM,{key:e,zIndex:e,isPanorama:r})))}var CM=["children"];function zM(){return zM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zM.apply(null,arguments)}var LM={width:"100%",height:"100%",display:"block"},RM=f((e,t)=>{var r=Bc(),n=$c(),i=Rs();if(!jl(r)||!jl(n))return null;var o,a,{children:l,otherAttributes:u,title:s,desc:f}=e;return null!=u&&(o="number"==typeof u.tabIndex?u.tabIndex:i?0:void 0,a="string"==typeof u.role?u.role:i?"application":void 0),c.createElement($,zM({},u,{title:s,desc:f,role:a,tabIndex:o,width:r,height:n,style:LM,ref:t}),l)}),BM=e=>{var{children:t}=e,r=ri(sc);if(!r)return null;var{width:n,height:i,y:o,x:a}=r;return c.createElement($,{width:n,height:i,x:a,y:o},t)},$M=f((e,t)=>{var{children:r}=e,n=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,CM);return cc()?c.createElement(BM,null,c.createElement(NM,{isPanorama:!0},r)):c.createElement(RM,zM({ref:t},n),c.createElement(NM,{isPanorama:!1},r))});function VM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function KM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?VM(Object(r),!0).forEach(function(t){FM(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VM(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function FM(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UM(){return UM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},UM.apply(null,arguments)}var WM=()=>{return e=Qn(),b(()=>{e(tE())},[e]),function(){var e=ri(Pp),t=ri(Ap),r=Qn(),n=ri(jp),i=ri(Ux),o=Kc(),a=zc(),l=ri(e=>e.rootProps.className);b(()=>{if(null==e)return Dt;var l=(l,c,u)=>{var s;if(t!==u&&e===l)if(!1!==c.payload.active)if("index"!==n){if(null!=i){var f;if("function"==typeof n){var d={activeTooltipIndex:null==c.payload.index?void 0:Number(c.payload.index),isTooltipActive:c.payload.active,activeIndex:null==c.payload.index?void 0:Number(c.payload.index),activeLabel:c.payload.label,activeDataKey:c.payload.dataKey,activeCoordinate:c.payload.coordinate},p=n(i,d);f=i[p]}else"value"===n&&(f=i.find(e=>String(e.value)===c.payload.label));var{coordinate:h}=c.payload;if(null!=h&&null!=a)if(null!=f){var{x:y,y:v}=h,m=Math.min(y,a.x+a.width),g=Math.min(v,a.y+a.height),b=Hw({active:c.payload.active,coordinate:{x:"horizontal"===o?f.coordinate:m,y:"horizontal"===o?g:f.coordinate},dataKey:c.payload.dataKey,index:String(f.index),label:c.payload.label,sourceViewBox:c.payload.sourceViewBox,graphicalItemId:c.payload.graphicalItemId});r(b)}else r(Hw({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:c.payload.sourceViewBox,graphicalItemId:void 0}));else r(Hw({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}))}}else if(a&&null!=c&&null!==(s=c.payload)&&void 0!==s&&s.coordinate&&c.payload.sourceViewBox){var w=c.payload.coordinate,{x,y:O}=w,E=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(w,lE),{x:S,y:P,width:j,height:A}=c.payload.sourceViewBox,_=uE(uE({},E),{},{x:a.x+(j?(x-S)/j:0)*a.width,y:a.y+(A?(O-P)/A:0)*a.height});r(uE(uE({},c),{},{payload:uE(uE({},c.payload),{},{coordinate:_})}))}else r(c);else r(Hw({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}))};return GO.on(XO,l),()=>{GO.off(XO,l)}},[l,r,t,e,n,i,o,a])}(),function(){var e=ri(Pp),t=ri(Ap),r=Qn();b(()=>{if(null==e)return Dt;var n=(n,i,o)=>{t!==o&&e===n&&r(oE(i))};return GO.on(ZO,n),()=>{GO.off(ZO,n)}},[r,t,e])}(),null;var e};function HM(e){if("number"==typeof e)return e;if("string"==typeof e){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var qM=f((e,t)=>{var r,n,i=m(null),[o,a]=y({containerWidth:HM(null===(r=e.style)||void 0===r?void 0:r.width),containerHeight:HM(null===(n=e.style)||void 0===n?void 0:n.height)}),l=v((e,t)=>{a(r=>{var n=Math.round(e),i=Math.round(t);return r.containerWidth===n&&r.containerHeight===i?r:{containerWidth:n,containerHeight:i}})},[]),u=v(e=>{if("function"==typeof t&&t(e),null!=i.current&&(i.current.disconnect(),i.current=null),null!=e&&"undefined"!=typeof ResizeObserver){var{width:r,height:n}=e.getBoundingClientRect();l(r,n);var o=new ResizeObserver(e=>{var t=e[0];if(null!=t){var{width:r,height:n}=t.contentRect;l(r,n)}});o.observe(e),i.current=o}},[t,l]);return b(()=>()=>{var e=i.current;null!=e&&e.disconnect()},[l]),c.createElement(c.Fragment,null,c.createElement(Wc,{width:o.containerWidth,height:o.containerHeight}),c.createElement("div",UM({ref:u},e)))}),YM=f((e,t)=>{var{width:r,height:n}=e,[i,o]=y({containerWidth:HM(r),containerHeight:HM(n)}),a=v((e,t)=>{o(r=>{var n=Math.round(e),i=Math.round(t);return r.containerWidth===n&&r.containerHeight===i?r:{containerWidth:n,containerHeight:i}})},[]),l=v(e=>{if("function"==typeof t&&t(e),null!=e){var{width:r,height:n}=e.getBoundingClientRect();a(r,n)}},[t,a]);return c.createElement(c.Fragment,null,c.createElement(Wc,{width:i.containerWidth,height:i.containerHeight}),c.createElement("div",UM({ref:l},e)))}),GM=f((e,t)=>{var{width:r,height:n}=e;return c.createElement(c.Fragment,null,c.createElement(Wc,{width:r,height:n}),c.createElement("div",UM({ref:t},e)))}),XM=f((e,t)=>{var{width:r,height:n}=e;return"string"==typeof r||"string"==typeof n?c.createElement(YM,UM({},e,{ref:t})):"number"==typeof r&&"number"==typeof n?c.createElement(GM,UM({},e,{width:r,height:n,ref:t})):c.createElement(c.Fragment,null,c.createElement(Wc,{width:r,height:n}),c.createElement("div",UM({ref:t},e)))}),ZM=f((e,t)=>{var{children:r,className:n,height:i,onClick:o,onContextMenu:a,onDoubleClick:l,onMouseDown:u,onMouseEnter:s,onMouseLeave:f,onMouseMove:d,onMouseUp:p,onTouchEnd:h,onTouchMove:g,onTouchStart:w,style:x,width:O,responsive:E,dispatchTouchEvents:S=!0}=e,P=m(null),j=Qn(),[A,_]=y(null),[M,I]=y(null),T=function(){var e=Qn(),[t,r]=y(null),n=ri(Hl);return b(()=>{if(null!=t){var r=t.getBoundingClientRect().width/t.offsetWidth;Pl(r)&&r!==n&&e(Ol(r))}},[t,e,n]),r}(),D=Tc(),N=(null==D?void 0:D.width)>0?D.width:O,C=(null==D?void 0:D.height)>0?D.height:i,z=v(e=>{T(e),"function"==typeof t&&t(e),_(e),I(e),null!=e&&(P.current=e)},[T,t,_,I]),L=v(e=>{j(Uk(e)),j(fM({handler:o,reactEvent:e}))},[j,o]),R=v(e=>{j(Hk(e)),j(fM({handler:s,reactEvent:e}))},[j,s]),B=v(e=>{j(Kw()),j(fM({handler:f,reactEvent:e}))},[j,f]),$=v(e=>{j(Hk(e)),j(fM({handler:d,reactEvent:e}))},[j,d]),V=v(()=>{j(iM())},[j]),K=v(()=>{j(oM())},[j]),F=v(e=>{j(nM(e.key))},[j]),W=v(e=>{j(fM({handler:a,reactEvent:e}))},[j,a]),H=v(e=>{j(fM({handler:l,reactEvent:e}))},[j,l]),q=v(e=>{j(fM({handler:u,reactEvent:e}))},[j,u]),Y=v(e=>{j(fM({handler:p,reactEvent:e}))},[j,p]),G=v(e=>{j(fM({handler:w,reactEvent:e}))},[j,w]),X=v(e=>{S&&j(gM(e)),j(fM({handler:g,reactEvent:e}))},[j,S,g]),Z=v(e=>{j(fM({handler:h,reactEvent:e}))},[j,h]),Q=function(e){return e?qM:XM}(E);return c.createElement(qO.Provider,{value:A},c.createElement(U.Provider,{value:M},c.createElement(Q,{width:null!=N?N:null==x?void 0:x.width,height:null!=C?C:null==x?void 0:x.height,className:k("recharts-wrapper",n),style:KM({position:"relative",cursor:"default",width:N,height:C},x),onClick:L,onContextMenu:W,onDoubleClick:H,onFocus:V,onBlur:K,onKeyDown:F,onMouseDown:q,onMouseEnter:R,onMouseLeave:B,onMouseMove:$,onMouseUp:Y,onTouchEnd:Z,onTouchMove:X,onTouchStart:G,ref:z},c.createElement(WM,null),r)))}),QM=["width","height","responsive","children","className","style","compact","title","desc"],JM=f((e,t)=>{var{width:r,height:n,responsive:i,children:o,className:a,style:l,compact:u,title:s,desc:f}=e,d=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,QM),p=C(d);return u?c.createElement(c.Fragment,null,c.createElement(Wc,{width:r,height:n}),c.createElement($M,{otherAttributes:p,title:s,desc:f},o)):c.createElement(ZM,{className:a,style:l,width:r,height:n,responsive:null!=i&&i,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},c.createElement($M,{otherAttributes:p,title:s,desc:f,ref:t},c.createElement(mj,null,o)))});function eI(){return eI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},eI.apply(null,arguments)}function tI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rI(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var nI=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tI(Object(r),!0).forEach(function(t){rI(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tI(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:{top:5,right:5,bottom:5,left:5},responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},SM),iI=f(function(e,t){var r,n=qt(e.categoricalChartProps,nI),{chartName:i,defaultTooltipEventType:o,validateTooltipEventTypes:a,tooltipPayloadSearcher:l,categoricalChartProps:u}=e;return c.createElement(_M,{preloadedState:{options:{chartName:i,defaultTooltipEventType:o,validateTooltipEventTypes:a,tooltipPayloadSearcher:l,eventEmitter:void 0}},reduxStoreName:null!==(r=u.id)&&void 0!==r?r:i},c.createElement(dj,{chartData:u.data}),c.createElement(MM,{layout:n.layout,margin:n.margin}),c.createElement(TM,{throttleDelay:n.throttleDelay,throttledEvents:n.throttledEvents}),c.createElement(IM,{baseValue:n.baseValue,accessibilityLayer:n.accessibilityLayer,barCategoryGap:n.barCategoryGap,maxBarSize:n.maxBarSize,stackOffset:n.stackOffset,barGap:n.barGap,barSize:n.barSize,syncId:n.syncId,syncMethod:n.syncMethod,className:n.className,reverseStackOrder:n.reverseStackOrder}),c.createElement(JM,eI({},n,{ref:t})))}),oI=["axis"],aI=f((e,t)=>c.createElement(iI,{chartName:"ComposedChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:oI,tooltipPayloadSearcher:QO,categoricalChartProps:e,ref:t}));const lI=["#3b82f6","#a855f7","#f97316","#22c55e","#ef4444","#eab308","#ec4899"];function cI(r){const{id:c,data:u,series:s,xAxis:f,showYAxis:d=!1,showLegend:p=!0,barGap:h,barCategoryGap:y,flex:v,height:m=240,width:g,size:b,minSize:w,maxSize:x,maxHeight:O,maxWidth:E,minHeight:S,minWidth:P,aspectRatio:j}=r,A=n(),{mode:_}=i(),k="string"==typeof f?f:f.dataKey,M="object"==typeof f&&f.hide,I="object"==typeof f?f.labels:void 0,T={display:"flex",flex:v,height:o(b||m),width:o(b||g),minHeight:o(w||S),minWidth:o(w||P),maxHeight:o(x||O),maxWidth:o(x||E),aspectRatio:"number"==typeof j?String(j):j},D=a(A.color.text,.1)??"rgba(0,0,0,0.1)",N=A.color.textMuted,C=A.color.surface,z=a(A.color.text,.1)??"rgba(0,0,0,0.1)";return e("div",{id:c,style:T,children:e(Nc,{width:"100%",height:"100%",children:t(aI,{data:u,barGap:h,barCategoryGap:y,children:[e(iA,{strokeDasharray:"3 3",stroke:D}),e(kk,{dataKey:k,hide:M,tickFormatter:e=>I&&e in I?I[e]:e,stroke:N,style:{fontSize:A.font.size.text.xs}}),d&&e(Vk,{stroke:N,style:{fontSize:A.font.size.text.xs}}),e(mE,{contentStyle:{backgroundColor:C,border:`1px solid ${z}`,borderRadius:A.radius.sm,fontSize:A.font.size.text.sm}}),p&&e(gs,{wrapperStyle:{fontSize:A.font.size.text.sm}}),s.map((t,r)=>{const n=((e,t)=>e&&l(e,A,_)||lI[t%lI.length])(t.color,r),i=t.label||t.dataKey;return"bar"===t.type?e(dk,{dataKey:t.dataKey,fill:n,name:i,stackId:t.stack},r):"line"===t.type?e(FA,{dataKey:t.dataKey,stroke:n,name:i,type:t.curveType||"natural",strokeWidth:2},r):"area"===t.type?e(S_,{dataKey:t.dataKey,fill:n,stroke:n,name:i,type:t.curveType||"natural",stackId:t.stack},r):null})]})})})}export{cI as Chart};
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{g as r,u as n,a as i,s as o,h as a,r as l}from"./index-CYbTnXm0.js";import*as c from"react";import u,{isValidElement as s,forwardRef as f,useContext as d,createContext as p,useMemo as h,useState as y,useCallback as v,useRef as m,useImperativeHandle as g,useEffect as b,useLayoutEffect as w,cloneElement as x,createElement as O,Children as E,memo as S,Component as P,PureComponent as j}from"react";import{createPortal as A}from"react-dom";function _(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=_(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function k(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=_(e))&&(n&&(n+=" "),n+=t);return n}var M=["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"];function I(e){return"string"==typeof e&&M.includes(e)}var T=new Set(["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"]);function D(e){return"string"==typeof e&&T.has(e)}function N(e){return"string"==typeof e&&e.startsWith("data-")}function C(e){if("object"!=typeof e||null===e)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(D(r)||N(r))&&(t[r]=e[r]);return t}function z(e){return null==e?null:s(e)&&"object"==typeof e.props&&null!==e.props?C(e.props):"object"!=typeof e||Array.isArray(e)?null:C(e)}function L(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(D(r)||N(r)||I(r))&&(t[r]=e[r]);return t}var R=["children","width","height","viewBox","className","style","title","desc"];function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},B.apply(null,arguments)}var $=f((e,t)=>{var{children:r,width:n,height:i,viewBox:o,className:a,style:l,title:u,desc:s}=e,f=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,R),d=o||{width:n,height:i,x:0,y:0},p=k("recharts-surface",a);return c.createElement("svg",B({},L(f),{className:p,width:n,height:i,style:l,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height),ref:t}),c.createElement("title",null,u),c.createElement("desc",null,s),r)}),V=["children","className"];function K(){return K=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},K.apply(null,arguments)}var F=c.forwardRef((e,t)=>{var{children:r,className:n}=e,i=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,V),o=k("recharts-layer",n);return c.createElement("g",K({className:o},L(i),{ref:t}),r)}),U=p(null);function W(e){return function(){return e}}const H=Math.cos,q=Math.sin,Y=Math.sqrt,G=Math.PI,X=2*G,Z=Math.PI,Q=2*Z,J=1e-6,ee=Q-J;function te(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}class re{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?te:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return te;const r=10**t;return function(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=Math.round(arguments[t]*r)/r+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,r,n){this._append`Q${+e},${+t},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(e,t,r,n,i,o){this._append`C${+e},${+t},${+r},${+n},${this._x1=+i},${this._y1=+o}`}arcTo(e,t,r,n,i){if(e=+e,t=+t,r=+r,n=+n,(i=+i)<0)throw new Error(`negative radius: ${i}`);let o=this._x1,a=this._y1,l=r-e,c=n-t,u=o-e,s=a-t,f=u*u+s*s;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(f>J)if(Math.abs(s*l-c*u)>J&&i){let d=r-o,p=n-a,h=l*l+c*c,y=d*d+p*p,v=Math.sqrt(h),m=Math.sqrt(f),g=i*Math.tan((Z-Math.acos((h+f-y)/(2*v*m)))/2),b=g/m,w=g/v;Math.abs(b-1)>J&&this._append`L${e+b*u},${t+b*s}`,this._append`A${i},${i},0,0,${+(s*d>u*p)},${this._x1=e+w*l},${this._y1=t+w*c}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,r,n,i,o){if(e=+e,t=+t,o=!!o,(r=+r)<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(n),l=r*Math.sin(n),c=e+a,u=t+l,s=1^o,f=o?n-i:i-n;null===this._x1?this._append`M${c},${u}`:(Math.abs(this._x1-c)>J||Math.abs(this._y1-u)>J)&&this._append`L${c},${u}`,r&&(f<0&&(f=f%Q+Q),f>ee?this._append`A${r},${r},0,1,${s},${e-a},${t-l}A${r},${r},0,1,${s},${this._x1=c},${this._y1=u}`:f>J&&this._append`A${r},${r},0,${+(f>=Z)},${s},${this._x1=e+r*Math.cos(i)},${this._y1=t+r*Math.sin(i)}`)}rect(e,t,r,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function ne(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(null==r)t=null;else{const e=Math.floor(r);if(!(e>=0))throw new RangeError(`invalid digits: ${r}`);t=e}return e},()=>new re(t)}function ie(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function oe(e){this._context=e}function ae(e){return new oe(e)}function le(e){return e[0]}function ce(e){return e[1]}function ue(e,t){var r=W(!0),n=null,i=ae,o=null,a=ne(l);function l(l){var c,u,s,f=(l=ie(l)).length,d=!1;for(null==n&&(o=i(s=a())),c=0;c<=f;++c)!(c<f&&r(u=l[c],c,l))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+e(u,c,l),+t(u,c,l));if(s)return o=null,s+""||null}return e="function"==typeof e?e:void 0===e?le:W(e),t="function"==typeof t?t:void 0===t?ce:W(t),l.x=function(t){return arguments.length?(e="function"==typeof t?t:W(+t),l):e},l.y=function(e){return arguments.length?(t="function"==typeof e?e:W(+e),l):t},l.defined=function(e){return arguments.length?(r="function"==typeof e?e:W(!!e),l):r},l.curve=function(e){return arguments.length?(i=e,null!=n&&(o=i(n)),l):i},l.context=function(e){return arguments.length?(null==e?n=o=null:o=i(n=e),l):n},l}function se(e,t,r){var n=null,i=W(!0),o=null,a=ae,l=null,c=ne(u);function u(u){var s,f,d,p,h,y=(u=ie(u)).length,v=!1,m=new Array(y),g=new Array(y);for(null==o&&(l=a(h=c())),s=0;s<=y;++s){if(!(s<y&&i(p=u[s],s,u))===v)if(v=!v)f=s,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),d=s-1;d>=f;--d)l.point(m[d],g[d]);l.lineEnd(),l.areaEnd()}v&&(m[s]=+e(p,s,u),g[s]=+t(p,s,u),l.point(n?+n(p,s,u):m[s],r?+r(p,s,u):g[s]))}if(h)return l=null,h+""||null}function s(){return ue().defined(i).curve(a).context(o)}return e="function"==typeof e?e:void 0===e?le:W(+e),t="function"==typeof t?t:W(void 0===t?0:+t),r="function"==typeof r?r:void 0===r?ce:W(+r),u.x=function(t){return arguments.length?(e="function"==typeof t?t:W(+t),n=null,u):e},u.x0=function(t){return arguments.length?(e="function"==typeof t?t:W(+t),u):e},u.x1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:W(+e),u):n},u.y=function(e){return arguments.length?(t="function"==typeof e?e:W(+e),r=null,u):t},u.y0=function(e){return arguments.length?(t="function"==typeof e?e:W(+e),u):t},u.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:W(+e),u):r},u.lineX0=u.lineY0=function(){return s().x(e).y(t)},u.lineY1=function(){return s().x(e).y(r)},u.lineX1=function(){return s().x(n).y(t)},u.defined=function(e){return arguments.length?(i="function"==typeof e?e:W(!!e),u):i},u.curve=function(e){return arguments.length?(a=e,null!=o&&(l=a(o)),u):a},u.context=function(e){return arguments.length?(null==e?o=l=null:l=a(o=e),u):o},u}oe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};class fe{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}const de={draw(e,t){const r=Y(t/G);e.moveTo(r,0),e.arc(0,0,r,0,X)}},pe={draw(e,t){const r=Y(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},he=Y(1/3),ye=2*he,ve={draw(e,t){const r=Y(t/ye),n=r*he;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},me={draw(e,t){const r=Y(t),n=-r/2;e.rect(n,n,r,r)}},ge=q(G/10)/q(7*G/10),be=q(X/10)*ge,we=-H(X/10)*ge,xe={draw(e,t){const r=Y(.8908130915292852*t),n=be*r,i=we*r;e.moveTo(0,-r),e.lineTo(n,i);for(let t=1;t<5;++t){const o=X*t/5,a=H(o),l=q(o);e.lineTo(l*r,-a*r),e.lineTo(a*n-l*i,l*n+a*i)}e.closePath()}},Oe=Y(3),Ee={draw(e,t){const r=-Y(t/(3*Oe));e.moveTo(0,2*r),e.lineTo(-Oe*r,-r),e.lineTo(Oe*r,-r),e.closePath()}},Se=-.5,Pe=Y(3)/2,je=1/Y(12),Ae=3*(je/2+1),_e={draw(e,t){const r=Y(t/Ae),n=r/2,i=r*je,o=n,a=r*je+r,l=-o,c=a;e.moveTo(n,i),e.lineTo(o,a),e.lineTo(l,c),e.lineTo(Se*n-Pe*i,Pe*n+Se*i),e.lineTo(Se*o-Pe*a,Pe*o+Se*a),e.lineTo(Se*l-Pe*c,Pe*l+Se*c),e.lineTo(Se*n+Pe*i,Se*i-Pe*n),e.lineTo(Se*o+Pe*a,Se*a-Pe*o),e.lineTo(Se*l+Pe*c,Se*c-Pe*l),e.closePath()}};function ke(){}function Me(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Ie(e){this._context=e}function Te(e){this._context=e}function De(e){this._context=e}function Ne(e){this._context=e}function Ce(e){return e<0?-1:1}function ze(e,t,r){var n=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(n||i<0&&-0),a=(r-e._y1)/(i||n<0&&-0),l=(o*i+a*n)/(n+i);return(Ce(o)+Ce(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(l))||0}function Le(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Re(e,t,r){var n=e._x0,i=e._x1,o=e._y1,a=(i-n)/3;e._context.bezierCurveTo(n+a,e._y0+a*t,i-a,o-a*r,i,o)}function Be(e){this._context=e}function $e(e){this._context=new Ve(e)}function Ve(e){this._context=e}function Ke(e){this._context=e}function Fe(e){var t,r,n=e.length-1,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)o[t]-=r=i[t]/o[t-1],a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function Ue(e,t){this._context=e,this._t=t}function We(e,t){if((i=e.length)>1)for(var r,n,i,o=1,a=e[t[0]],l=a.length;o<i;++o)for(n=a,a=e[t[o]],r=0;r<l;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function He(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function qe(e,t){return e[t]}function Ye(e){const t=[];return t.key=e,t}Ie.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Me(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Me(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Te.prototype={areaStart:ke,areaEnd:ke,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Me(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},De.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Me(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Ne.prototype={areaStart:ke,areaEnd:ke,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},Be.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Re(this,this._t0,Le(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Re(this,Le(this,r=ze(this,e,t)),r);break;default:Re(this,this._t0,r=ze(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}},($e.prototype=Object.create(Be.prototype)).point=function(e,t){Be.prototype.point.call(this,t,e)},Ve.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,o){this._context.bezierCurveTo(t,e,n,r,o,i)}},Ke.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===r)this._context.lineTo(e[1],t[1]);else for(var n=Fe(e),i=Fe(t),o=0,a=1;a<r;++o,++a)this._context.bezierCurveTo(n[0][o],i[0][o],n[1][o],i[1][o],e[a],t[a]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},Ue.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}}this._x=e,this._y=t}};var Ge,Xe={},Ze={};function Qe(){return Ge||(Ge=1,e=Ze,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isUnsafeProperty=function(e){return"__proto__"===e}),Ze;var e}var Je,et={};function tt(){return Je||(Je=1,e=et,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isDeepKey=function(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}),et;var e}var rt,nt={};function it(){return rt||(rt=1,e=nt,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.toKey=function(e){return"string"==typeof e||"symbol"==typeof e?e:Object.is(e?.valueOf?.(),-0)?"-0":String(e)}),nt;var e}var ot,at,lt,ct,ut,st={},ft={};function dt(){return ot||(ot=1,e=ft,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.toString=function e(t){if(null==t)return"";if("string"==typeof t)return t;if(Array.isArray(t))return t.map(e).join(",");const r=String(t);return"0"===r&&Object.is(Number(t),-0)?"-0":r}),ft;var e}function pt(){return at||(at=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dt(),r=it();e.toPath=function(e){if(Array.isArray(e))return e.map(r.toKey);if("symbol"==typeof e)return[e];const n=[],i=(e=t.toString(e)).length;if(0===i)return n;let o=0,a="",l="",c=!1;for(46===e.charCodeAt(0)&&(n.push(""),o++);o<i;){const t=e[o];l?"\\"===t&&o+1<i?(o++,a+=e[o]):t===l?l="":a+=t:c?'"'===t||"'"===t?l=t:"]"===t?(c=!1,n.push(a),a=""):a+=t:"["===t?(c=!0,a&&(n.push(a),a="")):"."===t?a&&(n.push(a),a=""):a+=t,o++}return a&&n.push(a),n}}(st)),st}function ht(){return lt||(lt=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Qe(),r=tt(),n=it(),i=pt();e.get=function e(o,a,l){if(null==o)return l;switch(typeof a){case"string":{if(t.isUnsafeProperty(a))return l;const n=o[a];return void 0===n?r.isDeepKey(a)?e(o,i.toPath(a),l):l:n}case"number":case"symbol":{"number"==typeof a&&(a=n.toKey(a));const e=o[a];return void 0===e?l:e}default:{if(Array.isArray(a))return function(e,r,n){if(0===r.length)return n;let i=e;for(let e=0;e<r.length;e++){if(null==i)return n;if(t.isUnsafeProperty(r[e]))return n;i=i[r[e]]}return void 0===i?n:i}(o,a,l);if(a=Object.is(a?.valueOf(),-0)?"-0":String(a),t.isUnsafeProperty(a))return l;const e=o[a];return void 0===e?l:e}}}}(Xe)),Xe}function yt(){return ut?ct:(ut=1,ct=ht().get)}const vt=r(yt());function mt(e){var t=10**(arguments.length>1&&void 0!==arguments[1]?arguments[1]:4),r=Math.round(e*t)/t;return Object.is(r,-0)?0:r}function gt(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.reduce((e,t,n)=>{var i=r[n-1];return"string"==typeof i?e+i+t:void 0!==i?e+mt(i)+t:e+t},"")}var bt=e=>0===e?0:e>0?1:-1,wt=e=>"number"==typeof e&&e!=+e,xt=e=>"string"==typeof e&&e.indexOf("%")===e.length-1,Ot=e=>("number"==typeof e||e instanceof Number)&&!wt(e),Et=e=>Ot(e)||"string"==typeof e,St=0,Pt=e=>{var t=++St;return"".concat(e||"").concat(t)},jt=function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!Ot(e)&&"string"!=typeof e)return n;if(xt(e)){if(null==t)return n;var o=e.indexOf("%");r=t*parseFloat(e.slice(0,o))/100}else r=+e;return wt(r)&&(r=n),i&&null!=t&&r>t&&(r=t),r},At=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++){if(r[String(e[n])])return!0;r[String(e[n])]=!0}return!1};function _t(e,t,r){return Ot(e)&&Ot(t)?mt(e+r*(t-e)):t}function kt(e,t,r){if(e&&e.length)return e.find(e=>e&&("function"==typeof t?t(e):vt(e,t))===r)}var Mt=e=>null==e,It=e=>Mt(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function Tt(e){return null!=e}function Dt(){}var Nt=["type","size","sizeType"];function Ct(){return Ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ct.apply(null,arguments)}function zt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Lt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zt(Object(r),!0).forEach(function(t){Rt(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Rt(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Bt={symbolCircle:de,symbolCross:pe,symbolDiamond:ve,symbolSquare:me,symbolStar:xe,symbolTriangle:Ee,symbolWye:_e},$t=Math.PI/180,Vt=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,i=Lt(Lt({},function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,Nt)),{},{type:t,size:r,sizeType:n}),o="circle";"string"==typeof t&&(o=t);var{className:a,cx:l,cy:u}=i,s=L(i);return Ot(l)&&Ot(u)&&Ot(r)?c.createElement("path",Ct({},s,{className:k("recharts-symbols",a),transform:"translate(".concat(l,", ").concat(u,")"),d:(()=>{var e=(e=>{var t="symbol".concat(It(e));return Bt[t]||de})(o),t=function(e,t){let r=null,n=ne(i);function i(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return e="function"==typeof e?e:W(e||de),t="function"==typeof t?t:W(void 0===t?64:+t),i.type=function(t){return arguments.length?(e="function"==typeof t?t:W(t),i):e},i.size=function(e){return arguments.length?(t="function"==typeof e?e:W(+e),i):t},i.context=function(e){return arguments.length?(r=null==e?null:e,i):r},i}().type(e).size(((e,t,r)=>{if("area"===t)return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var n=18*$t;return 1.25*e*e*(Math.tan(n)-Math.tan(2*n)*Math.tan(n)**2);case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}})(r,n,o)),i=t();if(null!==i)return i})()})):null};Vt.registerSymbol=(e,t)=>{Bt["symbol".concat(It(e))]=t};var Kt=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,Ft=(e,t)=>{if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if(s(e)&&(r=e.props),"object"!=typeof r&&"function"!=typeof r)return null;var n={};return Object.keys(r).forEach(e=>{I(e)&&"function"==typeof r[e]&&(n[e]=t=>r[e](r,t))}),n},Ut=(e,t,r)=>{if(null===e||"object"!=typeof e&&"function"!=typeof e)return null;var n=null;return Object.keys(e).forEach(i=>{var o=e[i];I(i)&&"function"==typeof o&&(n||(n={}),n[i]=((e,t,r)=>n=>(e(t,r,n),null))(o,t,r))}),n};function Wt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ht(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qt(e,t){var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wt(Object(r),!0).forEach(function(t){Ht(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},e),n=t;return Object.keys(t).reduce((e,t)=>(void 0===e[t]&&void 0!==n[t]&&(e[t]=n[t]),e),r)}function Yt(){return Yt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yt.apply(null,arguments)}function Gt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Xt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gt(Object(r),!0).forEach(function(t){Zt(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Zt(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Qt=32,Jt={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle",labelStyle:{}};function er(e){if("object"==typeof e&&null!==e&&"strokeDasharray"in e)return String(e.strokeDasharray)}function tr(e){var{data:t,iconType:r,inactiveColor:n}=e,i=16,o=Qt/6,a=Qt/3,l=t.inactive?n:t.color,u=null!=r?r:t.type;if("none"===u)return null;if("plainline"===u)return c.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:er(t.payload),x1:0,y1:i,x2:Qt,y2:i,className:"recharts-legend-icon"});if("line"===u)return c.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(i,"h").concat(a,"\n A").concat(o,",").concat(o,",0,1,1,").concat(2*a,",").concat(i,"\n H").concat(Qt,"M").concat(2*a,",").concat(i,"\n A").concat(o,",").concat(o,",0,1,1,").concat(a,",").concat(i),className:"recharts-legend-icon"});if("rect"===u)return c.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(4,"h").concat(Qt,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(c.isValidElement(t.legendIcon)){var s=Xt({},t);return delete s.legendIcon,c.cloneElement(t.legendIcon,s)}return c.createElement(Vt,{fill:l,cx:i,cy:i,size:Qt,sizeType:"diameter",type:u})}function rr(e){var{payload:t,iconSize:r,layout:n,formatter:i,inactiveColor:o,iconType:a,labelStyle:l}=e,u={x:0,y:0,width:Qt,height:Qt},s={display:"horizontal"===n?"inline-block":"block",marginRight:10},f={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((t,n)=>{var d=t.formatter||i,p=k({"recharts-legend-item":!0,["legend-item-".concat(n)]:!0,inactive:t.inactive});if("none"===t.type)return null;var h="object"==typeof l?Xt({},l):{};h.color=t.inactive?o:h.color||t.color;var y=d?d(t.value,t,n):t.value;return c.createElement("li",Yt({className:p,style:s,key:"legend-item-".concat(n)},Ut(e,t,n)),c.createElement($,{width:r,height:r,viewBox:u,style:f,"aria-label":"".concat(t.value," legend icon")},c.createElement(tr,{data:t,iconType:a,inactiveColor:o})),c.createElement("span",{className:"recharts-legend-item-text",style:h},y))})}var nr,ir=e=>{var t=qt(e,Jt),{payload:r,layout:n,align:i}=t;return r&&r.length?c.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===n?i:"left"}},c.createElement(rr,Yt({},t,{payload:r}))):null},or={},ar={};function lr(){return nr||(nr=1,e=ar,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.uniqBy=function(e,t){const r=new Map;for(let n=0;n<e.length;n++){const i=e[n],o=t(i);r.has(o)||r.set(o,i)}return Array.from(r.values())}),ar;var e}var cr,ur={};function sr(){return cr||(cr=1,e=ur,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.identity=function(e){return e}),ur;var e}var fr,dr,pr={},hr={},yr={};function vr(){return fr||(fr=1,e=yr,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isLength=function(e){return Number.isSafeInteger(e)&&e>=0}),yr;var e}function mr(){return dr||(dr=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vr();e.isArrayLike=function(e){return null!=e&&"function"!=typeof e&&t.isLength(e.length)}}(hr)),hr}var gr,br,wr={};function xr(){return gr||(gr=1,e=wr,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isObjectLike=function(e){return"object"==typeof e&&null!==e}),wr;var e}function Or(){return br||(br=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=mr(),r=xr();e.isArrayLikeObject=function(e){return r.isObjectLike(e)&&t.isArrayLike(e)}}(pr)),pr}var Er,Sr={},Pr={};function jr(){return Er||(Er=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ht();e.property=function(e){return function(r){return t.get(r,e)}}}(Pr)),Pr}var Ar,_r={},kr={},Mr={},Ir={};function Tr(){return Ar||(Ar=1,e=Ir,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isObject=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}),Ir;var e}var Dr,Nr={};function Cr(){return Dr||(Dr=1,e=Nr,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isPrimitive=function(e){return null==e||"object"!=typeof e&&"function"!=typeof e}),Nr;var e}var zr,Lr,Rr,Br={};function $r(){return zr||(zr=1,e=Br,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.eq=function(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}),Br;var e}function Vr(){return Lr||(Lr=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Tr(),r=Cr(),n=$r();function i(e,l,c,u){if(l===e)return!0;switch(typeof l){case"object":return function(e,t,n,i){if(null==t)return!0;if(Array.isArray(t))return o(e,t,n,i);if(t instanceof Map)return function(e,t,r,n){if(0===t.size)return!0;if(!(e instanceof Map))return!1;for(const[i,o]of t.entries())if(!1===r(e.get(i),o,i,e,t,n))return!1;return!0}(e,t,n,i);if(t instanceof Set)return a(e,t,n,i);const l=Object.keys(t);if(null==e||r.isPrimitive(e))return 0===l.length;if(0===l.length)return!0;if(i?.has(t))return i.get(t)===e;i?.set(t,e);try{for(let o=0;o<l.length;o++){const a=l[o];if(!r.isPrimitive(e)&&!(a in e))return!1;if(void 0===t[a]&&void 0!==e[a])return!1;if(null===t[a]&&null!==e[a])return!1;if(!n(e[a],t[a],a,e,t,i))return!1}return!0}finally{i?.delete(t)}}(e,l,c,u);case"function":return Object.keys(l).length>0?i(e,{...l},c,u):n.eq(e,l);default:return t.isObject(e)?"string"!=typeof l||""===l:n.eq(e,l)}}function o(e,t,r,n){if(0===t.length)return!0;if(!Array.isArray(e))return!1;const i=new Set;for(let o=0;o<t.length;o++){const a=t[o];let l=!1;for(let c=0;c<e.length;c++){if(i.has(c))continue;let u=!1;if(r(e[c],a,o,e,t,n)&&(u=!0),u){i.add(c),l=!0;break}}if(!l)return!1}return!0}function a(e,t,r,n){return 0===t.size||e instanceof Set&&o([...e],[...t],r,n)}e.isMatchWith=function e(t,r,n){return"function"!=typeof n?e(t,r,()=>{}):i(t,r,function e(t,r,o,a,l,c){const u=n(t,r,o,a,l,c);return void 0!==u?Boolean(u):i(t,r,e,c)},new Map)},e.isSetMatch=a}(Mr)),Mr}function Kr(){return Rr||(Rr=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Vr();e.isMatch=function(e,r){return t.isMatchWith(e,r,()=>{})}}(kr)),kr}var Fr,Ur={},Wr={},Hr={};function qr(){return Fr||(Fr=1,e=Hr,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.getSymbols=function(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}),Hr;var e}var Yr,Gr={};function Xr(){return Yr||(Yr=1,e=Gr,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.getTag=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}),Gr;var e}var Zr,Qr={};function Jr(){return Zr||(Zr=1,e=Qr,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.argumentsTag="[object Arguments]",e.arrayBufferTag="[object ArrayBuffer]",e.arrayTag="[object Array]",e.bigInt64ArrayTag="[object BigInt64Array]",e.bigUint64ArrayTag="[object BigUint64Array]",e.booleanTag="[object Boolean]",e.dataViewTag="[object DataView]",e.dateTag="[object Date]",e.errorTag="[object Error]",e.float32ArrayTag="[object Float32Array]",e.float64ArrayTag="[object Float64Array]",e.functionTag="[object Function]",e.int16ArrayTag="[object Int16Array]",e.int32ArrayTag="[object Int32Array]",e.int8ArrayTag="[object Int8Array]",e.mapTag="[object Map]",e.numberTag="[object Number]",e.objectTag="[object Object]",e.regexpTag="[object RegExp]",e.setTag="[object Set]",e.stringTag="[object String]",e.symbolTag="[object Symbol]",e.uint16ArrayTag="[object Uint16Array]",e.uint32ArrayTag="[object Uint32Array]",e.uint8ArrayTag="[object Uint8Array]",e.uint8ClampedArrayTag="[object Uint8ClampedArray]"),Qr;var e}var en,tn,rn,nn,on={};function an(){return en||(en=1,e=on,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isTypedArray=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}),on;var e}function ln(){return tn||(tn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=qr(),r=Xr(),n=Jr(),i=Cr(),o=an();function a(e,t,c,u=new Map,s=void 0){const f=s?.(e,t,c,u);if(void 0!==f)return f;if(i.isPrimitive(e))return e;if(u.has(e))return u.get(e);if(Array.isArray(e)){const t=new Array(e.length);u.set(e,t);for(let r=0;r<e.length;r++)t[r]=a(e[r],r,c,u,s);return Object.hasOwn(e,"index")&&(t.index=e.index),Object.hasOwn(e,"input")&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){const t=new Map;u.set(e,t);for(const[r,n]of e)t.set(r,a(n,r,c,u,s));return t}if(e instanceof Set){const t=new Set;u.set(e,t);for(const r of e)t.add(a(r,void 0,c,u,s));return t}if("undefined"!=typeof Buffer&&Buffer.isBuffer(e))return e.subarray();if(o.isTypedArray(e)){const t=new(Object.getPrototypeOf(e).constructor)(e.length);u.set(e,t);for(let r=0;r<e.length;r++)t[r]=a(e[r],r,c,u,s);return t}if(e instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return u.set(e,t),l(t,e,c,u,s),t}if("undefined"!=typeof File&&e instanceof File){const t=new File([e],e.name,{type:e.type});return u.set(e,t),l(t,e,c,u,s),t}if("undefined"!=typeof Blob&&e instanceof Blob){const t=new Blob([e],{type:e.type});return u.set(e,t),l(t,e,c,u,s),t}if(e instanceof Error){const t=new e.constructor;return u.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,l(t,e,c,u,s),t}if(e instanceof Boolean){const t=new Boolean(e.valueOf());return u.set(e,t),l(t,e,c,u,s),t}if(e instanceof Number){const t=new Number(e.valueOf());return u.set(e,t),l(t,e,c,u,s),t}if(e instanceof String){const t=new String(e.valueOf());return u.set(e,t),l(t,e,c,u,s),t}if("object"==typeof e&&function(e){switch(r.getTag(e)){case n.argumentsTag:case n.arrayTag:case n.arrayBufferTag:case n.dataViewTag:case n.booleanTag:case n.dateTag:case n.float32ArrayTag:case n.float64ArrayTag:case n.int8ArrayTag:case n.int16ArrayTag:case n.int32ArrayTag:case n.mapTag:case n.numberTag:case n.objectTag:case n.regexpTag:case n.setTag:case n.stringTag:case n.symbolTag:case n.uint8ArrayTag:case n.uint8ClampedArrayTag:case n.uint16ArrayTag:case n.uint32ArrayTag:return!0;default:return!1}}(e)){const t=Object.create(Object.getPrototypeOf(e));return u.set(e,t),l(t,e,c,u,s),t}return e}function l(e,r,n=e,i,o){const l=[...Object.keys(r),...t.getSymbols(r)];for(let t=0;t<l.length;t++){const c=l[t],u=Object.getOwnPropertyDescriptor(e,c);(null==u||u.writable)&&(e[c]=a(r[c],c,n,i,o))}}e.cloneDeepWith=function(e,t){return a(e,void 0,e,new Map,t)},e.cloneDeepWithImpl=a,e.copyProperties=l}(Wr)),Wr}function cn(){return rn||(rn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ln();e.cloneDeep=function(e){return t.cloneDeepWithImpl(e,void 0,e,new Map,void 0)}}(Ur)),Ur}function un(){return nn||(nn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Kr(),r=cn();e.matches=function(e){return e=r.cloneDeep(e),r=>t.isMatch(r,e)}}(_r)),_r}var sn,fn,dn={},pn={},hn={};function yn(){return sn||(sn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ln(),r=Jr();e.cloneDeepWith=function(e,n){return t.cloneDeepWith(e,(i,o,a,l)=>{const c=n?.(i,o,a,l);if(void 0!==c)return c;if("object"==typeof e)switch(Object.prototype.toString.call(e)){case r.numberTag:case r.stringTag:case r.booleanTag:{const r=new e.constructor(e?.valueOf());return t.copyProperties(r,e),r}case r.argumentsTag:{const r={};return t.copyProperties(r,e),r.length=e.length,r[Symbol.iterator]=e[Symbol.iterator],r}default:return}})}}(hn)),hn}function vn(){return fn||(fn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=yn();e.cloneDeep=function(e){return t.cloneDeepWith(e)}}(pn)),pn}var mn,gn={},bn={};function wn(){return mn||(mn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;e.isIndex=function(e,r=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<r;case"symbol":return!1;case"string":return t.test(e)}}}(bn)),bn}var xn,On,En,Sn,Pn,jn,An,_n={};function kn(){return xn||(xn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Xr();e.isArguments=function(e){return null!==e&&"object"==typeof e&&"[object Arguments]"===t.getTag(e)}}(_n)),_n}function Mn(){return On||(On=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=tt(),r=wn(),n=kn(),i=pt();e.has=function(e,o){let a;if(a=Array.isArray(o)?o:"string"==typeof o&&t.isDeepKey(o)&&null==e?.[o]?i.toPath(o):[o],0===a.length)return!1;let l=e;for(let e=0;e<a.length;e++){const t=a[e];if(!(null!=l&&Object.hasOwn(l,t)||(Array.isArray(l)||n.isArguments(l))&&r.isIndex(t)&&t<l.length))return!1;l=l[t]}return!0}}(gn)),gn}function In(){return En||(En=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Kr(),r=it(),n=vn(),i=ht(),o=Mn();e.matchesProperty=function(e,a){switch(typeof e){case"object":Object.is(e?.valueOf(),-0)&&(e="-0");break;case"number":e=r.toKey(e)}return a=n.cloneDeep(a),function(r){const n=i.get(r,e);return void 0===n?o.has(r,e):void 0===a?void 0===n:t.isMatch(n,a)}}}(dn)),dn}function Tn(){return Sn||(Sn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=sr(),r=jr(),n=un(),i=In();e.iteratee=function(e){if(null==e)return t.identity;switch(typeof e){case"function":return e;case"object":return Array.isArray(e)&&2===e.length?i.matchesProperty(e[0],e[1]):n.matches(e);case"string":case"symbol":case"number":return r.property(e)}}}(Sr)),Sr}function Dn(){return An?jn:(An=1,jn=(Pn||(Pn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=lr(),r=sr(),n=Or(),i=Tn();e.uniqBy=function(e,o=r.identity){return n.isArrayLikeObject(e)?t.uniqBy(Array.from(e),i.iteratee(o)):[]}}(or)),or).uniqBy)}const Nn=r(Dn());function Cn(e,t,r){return!0===t?Nn(e,r):"function"==typeof t?Nn(e,t):e}var zn,Ln,Rn,Bn,$n={exports:{}},Vn={},Kn={exports:{}},Fn={},Un={};function Wn(){return Rn||(Rn=1,Kn.exports="production"===process.env.NODE_ENV?function(){if(zn)return Fn;zn=1;var e="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},t=u.useState,r=u.useEffect,n=u.useLayoutEffect,i=u.useDebugValue;function o(t){var r=t.getSnapshot;t=t.value;try{var n=r();return!e(t,n)}catch(e){return!0}}var a="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,a){var l=a(),c=t({inst:{value:l,getSnapshot:a}}),u=c[0].inst,s=c[1];return n(function(){u.value=l,u.getSnapshot=a,o(u)&&s({inst:u})},[e,l,a]),r(function(){return o(u)&&s({inst:u}),e(function(){o(u)&&s({inst:u})})},[e]),i(l),l};return Fn.useSyncExternalStore=void 0!==u.useSyncExternalStore?u.useSyncExternalStore:a,Fn}():(Ln||(Ln=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=u,r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=t.useState,i=t.useEffect,o=t.useLayoutEffect,a=t.useDebugValue,l=!1,c=!1,s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(u,s){l||void 0===t.startTransition||(l=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var f=s();if(!c){var d=s();r(f,d)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var p=(d=n({inst:{value:f,getSnapshot:s}}))[0].inst,h=d[1];return o(function(){p.value=f,p.getSnapshot=s,e(p)&&h({inst:p})},[u,f,s]),i(function(){return e(p)&&h({inst:p}),u(function(){e(p)&&h({inst:p})})},[u]),a(f),f};Un.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:s,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Un)),Kn.exports}var Hn,qn,Yn={},Gn=(qn||(qn=1,$n.exports="production"===process.env.NODE_ENV?function(){if(Bn)return Vn;Bn=1;var e=u,t=Wn(),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=t.useSyncExternalStore,i=e.useRef,o=e.useEffect,a=e.useMemo,l=e.useDebugValue;return Vn.useSyncExternalStoreWithSelector=function(e,t,c,u,s){var f=i(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=a(function(){function e(e){if(!o){if(o=!0,n=e,e=u(e),void 0!==s&&d.hasValue){var t=d.value;if(s(t,e))return i=t}return i=e}if(t=i,r(n,e))return t;var a=u(e);return void 0!==s&&s(t,a)?(n=e,t):(n=e,i=a)}var n,i,o=!1,a=void 0===c?null:c;return[function(){return e(t())},null===a?void 0:function(){return e(a())}]},[t,c,u,s]);var p=n(e,f[0],f[1]);return o(function(){d.hasValue=!0,d.value=p},[p]),l(p),p},Vn}():(Hn||(Hn=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var e=u,t=Wn(),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=t.useSyncExternalStore,i=e.useRef,o=e.useEffect,a=e.useMemo,l=e.useDebugValue;Yn.useSyncExternalStoreWithSelector=function(e,t,c,u,s){var f=i(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=a(function(){function e(e){if(!o){if(o=!0,n=e,e=u(e),void 0!==s&&d.hasValue){var t=d.value;if(s(t,e))return i=t}return i=e}if(t=i,r(n,e))return t;var a=u(e);return void 0!==s&&s(t,a)?(n=e,t):(n=e,i=a)}var n,i,o=!1,a=void 0===c?null:c;return[function(){return e(t())},null===a?void 0:function(){return e(a())}]},[t,c,u,s]);var p=n(e,f[0],f[1]);return o(function(){d.hasValue=!0,d.value=p},[p]),l(p),p},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Yn)),$n.exports),Xn=p(null),Zn=e=>e,Qn=()=>{var e=d(Xn);return e?e.store.dispatch:Zn},Jn=()=>{},ei=()=>Jn,ti=(e,t)=>e===t;function ri(e){var t=d(Xn),r=h(()=>t?t=>{if(null!=t)return e(t)}:Jn,[t,e]);return Gn.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:ei,t?t.store.getState:Jn,t?t.store.getState:Jn,r,ti)}var ni=(e,t,r)=>{if(1===t.length&&t[0]===r){let t=!1;try{const r={};e(r)===r&&(t=!0)}catch{}if(t){let e;try{throw new Error}catch(t){({stack:e}=t)}console.warn("The result function returned its own inputs without modification. e.g\n`createSelector([state => state.todos], todos => todos)`\nThis could lead to inefficient memoization and unnecessary re-renders.\nEnsure transformation logic is in the result function, and extraction logic is in the input selectors.",{stack:e})}}},ii=(e,t,r)=>{const{memoize:n,memoizeOptions:i}=t,{inputSelectorResults:o,inputSelectorResultsCopy:a}=e,l=n(()=>({}),...i);if(l.apply(null,o)!==l.apply(null,a)){let e;try{throw new Error}catch(t){({stack:e}=t)}console.warn("An input selector returned a different result when passed same arguments.\nThis means your output selector will likely run more frequently than intended.\nAvoid returning a new reference inside your input selector, e.g.\n`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)`",{arguments:r,firstInputs:o,secondInputs:a,stack:e})}},oi={inputStabilityCheck:"once",identityFunctionCheck:"once"},ai=e=>Array.isArray(e)?e:[e];function li(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var ci="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function ui(){return{s:0,v:void 0,o:null,p:null}}function si(e,t={}){let r={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:n}=t;let i,o=0;function a(){let t=r;const{length:a}=arguments;for(let e=0,r=a;e<r;e++){const r=arguments[e];if("function"==typeof r||"object"==typeof r&&null!==r){let e=t.o;null===e&&(t.o=e=new WeakMap);const n=e.get(r);void 0===n?(t=ui(),e.set(r,t)):t=n}else{let e=t.p;null===e&&(t.p=e=new Map);const n=e.get(r);void 0===n?(t=ui(),e.set(r,t)):t=n}}const l=t;let c;if(1===t.s)c=t.v;else if(c=e.apply(null,arguments),o++,n){const e=i?.deref?.()??i;null!=e&&n(e,c)&&(c=e,0!==o&&o--),i="object"==typeof c&&null!==c||"function"==typeof c?new ci(c):c}return l.s=1,l.v=c,c}return a.clearCache=()=>{r={s:0,v:void 0,o:null,p:null},a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function fi(e,...t){const r="function"==typeof e?{memoize:e,memoizeOptions:t}:e,n=(...e)=>{let t,n=0,i=0,o={},a=e.pop();"object"==typeof a&&(o=a,a=e.pop()),function(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}(a,`createSelector expects an output function after the inputs, but received: [${typeof a}]`);const l={...r,...o},{memoize:c,memoizeOptions:u=[],argsMemoize:s=si,argsMemoizeOptions:f=[],devModeChecks:d={}}=l,p=ai(u),h=ai(f),y=function(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){const r=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw new TypeError(`${t}[${r}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}(e),v=c(function(){return n++,a.apply(null,arguments)},...p);let m=!0;const g=s(function(){i++;const e=li(y,arguments);if(t=v.apply(null,e),"production"!==process.env.NODE_ENV){const{identityFunctionCheck:r,inputStabilityCheck:n}=((e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...oi,...t};return{identityFunctionCheck:{shouldRun:"always"===r||"once"===r&&e,run:ni},inputStabilityCheck:{shouldRun:"always"===n||"once"===n&&e,run:ii}}})(m,d);if(r.shouldRun&&r.run(a,e,t),n.shouldRun){const t=li(y,arguments);n.run({inputSelectorResults:e,inputSelectorResultsCopy:t},{memoize:c,memoizeOptions:p},arguments)}m&&(m=!1)}return t},...h);return Object.assign(g,{resultFunc:a,memoizedResultFunc:v,dependencies:y,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>t,recomputations:()=>n,resetRecomputations:()=>{n=0},memoize:c,argsMemoize:s})};return Object.assign(n,{withTypes:()=>n}),n}var di,pi=fi(si),hi=Object.assign((e,t=pi)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const r=Object.keys(e);return t(r.map(t=>e[t]),(...e)=>e.reduce((e,t,n)=>(e[r[n]]=t,e),{}))},{withTypes:()=>hi}),yi={},vi={},mi={};function gi(){return di||(di=1,function(e){function t(e){return"symbol"==typeof e?1:null===e?2:void 0===e?3:e!=e?4:0}Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.compareValues=(e,r,n)=>{if(e!==r){const i=t(e),o=t(r);if(i===o&&0===i){if(e<r)return"desc"===n?1:-1;if(e>r)return"desc"===n?-1:1}return"desc"===n?o-i:i-o}return 0}}(mi)),mi}var bi,wi,xi,Oi={},Ei={};function Si(){return bi||(bi=1,e=Ei,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isSymbol=function(e){return"symbol"==typeof e||e instanceof Symbol}),Ei;var e}function Pi(){return wi||(wi=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Si(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;e.isKey=function(e,i){return!Array.isArray(e)&&(!("number"!=typeof e&&"boolean"!=typeof e&&null!=e&&!t.isSymbol(e))||"string"==typeof e&&(n.test(e)||!r.test(e))||null!=i&&Object.hasOwn(i,e))}}(Oi)),Oi}function ji(){return xi||(xi=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gi(),r=Pi(),n=pt();e.orderBy=function(e,i,o,a){if(null==e)return[];o=a?void 0:o,Array.isArray(e)||(e=Object.values(e)),Array.isArray(i)||(i=null==i?[null]:[i]),0===i.length&&(i=[null]),Array.isArray(o)||(o=null==o?[]:[o]),o=o.map(e=>String(e));const l=(e,t)=>{let r=e;for(let e=0;e<t.length&&null!=r;++e)r=r[t[e]];return r},c=i.map(e=>(Array.isArray(e)&&1===e.length&&(e=e[0]),null==e||"function"==typeof e||Array.isArray(e)||r.isKey(e)?e:{key:e,path:n.toPath(e)}));return e.map(e=>({original:e,criteria:c.map(t=>((e,t)=>null==t||null==e?t:"object"==typeof e&&"key"in e?Object.hasOwn(t,e.key)?t[e.key]:l(t,e.path):"function"==typeof e?e(t):Array.isArray(e)?l(t,e):"object"==typeof t?t[e]:t)(t,e))})).slice().sort((e,r)=>{for(let n=0;n<c.length;n++){const i=t.compareValues(e.criteria[n],r.criteria[n],o[n]);if(0!==i)return i}return 0}).map(e=>e.original)}}(vi)),vi}var Ai,_i={};function ki(){return Ai||(Ai=1,e=_i,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.flatten=function(e,t=1){const r=[],n=Math.floor(t),i=(e,t)=>{for(let o=0;o<e.length;o++){const a=e[o];Array.isArray(a)&&t<n?i(a,t+1):r.push(a)}};return i(e,0),r}),_i;var e}var Mi,Ii,Ti,Di,Ni={};function Ci(){return Mi||(Mi=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=wn(),r=mr(),n=Tr(),i=$r();e.isIterateeCall=function(e,o,a){return!!n.isObject(a)&&!!("number"==typeof o&&r.isArrayLike(a)&&t.isIndex(o)&&o<a.length||"string"==typeof o&&o in a)&&i.eq(a[o],e)}}(Ni)),Ni}function zi(){return Di?Ti:(Di=1,Ti=(Ii||(Ii=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ji(),r=ki(),n=Ci();e.sortBy=function(e,...i){const o=i.length;return o>1&&n.isIterateeCall(e,i[0],i[1])?i=[]:o>2&&n.isIterateeCall(i[0],i[1],i[2])&&(i=[i[0]]),t.orderBy(e,r.flatten(i),["asc"])}}(yi)),yi).sortBy)}const Li=r(zi());var Ri=e=>e.legend.settings,Bi=pi([e=>e.legend.payload,Ri],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?Li(n,r):n});function $i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,r]=y({height:0,left:0,top:0,width:0}),n=v(e=>{if(null!=e){var n=e.getBoundingClientRect(),i={height:n.height,left:n.left,top:n.top,width:n.width};(Math.abs(i.height-t.height)>1||Math.abs(i.left-t.left)>1||Math.abs(i.top-t.top)>1||Math.abs(i.width-t.width)>1)&&r({height:i.height,left:i.left,top:i.top,width:i.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}function Vi(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Ki=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),Fi=()=>Math.random().toString(36).substring(7).split("").join("."),Ui={INIT:`@@redux/INIT${Fi()}`,REPLACE:`@@redux/REPLACE${Fi()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Fi()}`};function Wi(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function Hi(e){let t=typeof e;return"production"!==process.env.NODE_ENV&&(t=function(e){if(void 0===e)return"undefined";if(null===e)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";const r=function(e){return"function"==typeof e.constructor?e.constructor.name:null}(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}(e)),t}function qi(e,t,r){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?Vi(2):`Expected the root reducer to be a function. Instead, received: '${Hi(e)}'`);if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error("production"===process.env.NODE_ENV?Vi(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error("production"===process.env.NODE_ENV?Vi(1):`Expected the enhancer to be a function. Instead, received: '${Hi(r)}'`);return r(qi)(e,t)}let n=e,i=t,o=new Map,a=o,l=0,c=!1;function u(){a===o&&(a=new Map,o.forEach((e,t)=>{a.set(t,e)}))}function s(){if(c)throw new Error("production"===process.env.NODE_ENV?Vi(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function f(e){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?Vi(4):`Expected the listener to be a function. Instead, received: '${Hi(e)}'`);if(c)throw new Error("production"===process.env.NODE_ENV?Vi(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let t=!0;u();const r=l++;return a.set(r,e),function(){if(t){if(c)throw new Error("production"===process.env.NODE_ENV?Vi(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");t=!1,u(),a.delete(r),o=null}}}function d(e){if(!Wi(e))throw new Error("production"===process.env.NODE_ENV?Vi(7):`Actions must be plain objects. Instead, the actual type was: '${Hi(e)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(void 0===e.type)throw new Error("production"===process.env.NODE_ENV?Vi(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if("string"!=typeof e.type)throw new Error("production"===process.env.NODE_ENV?Vi(17):`Action "type" property must be a string. Instead, the actual type was: '${Hi(e.type)}'. Value was: '${e.type}' (stringified)`);if(c)throw new Error("production"===process.env.NODE_ENV?Vi(9):"Reducers may not dispatch actions.");try{c=!0,i=n(i,e)}finally{c=!1}return(o=a).forEach(e=>{e()}),e}return d({type:Ui.INIT}),{dispatch:d,subscribe:f,getState:s,replaceReducer:function(e){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?Vi(10):`Expected the nextReducer to be a function. Instead, received: '${Hi(e)}`);n=e,d({type:Ui.REPLACE})},[Ki]:function(){const e=f;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error("production"===process.env.NODE_ENV?Vi(11):`Expected the observer to be an object. Instead, received: '${Hi(t)}'`);function r(){t.next&&t.next(s())}return r(),{unsubscribe:e(r)}},[Ki](){return this}}}}}function Yi(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}function Gi(e){const t=Object.keys(e),r={};for(let n=0;n<t.length;n++){const i=t[n];"production"!==process.env.NODE_ENV&&void 0===e[i]&&Yi(`No reducer provided for key "${i}"`),"function"==typeof e[i]&&(r[i]=e[i])}const n=Object.keys(r);let i,o;"production"!==process.env.NODE_ENV&&(i={});try{!function(e){Object.keys(e).forEach(t=>{const r=e[t];if(void 0===r(void 0,{type:Ui.INIT}))throw new Error("production"===process.env.NODE_ENV?Vi(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(void 0===r(void 0,{type:Ui.PROBE_UNKNOWN_ACTION()}))throw new Error("production"===process.env.NODE_ENV?Vi(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${Ui.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}(r)}catch(e){o=e}return function(e={},t){if(o)throw o;if("production"!==process.env.NODE_ENV){const n=function(e,t,r,n){const i=Object.keys(t),o=r&&r.type===Ui.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(0===i.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Wi(e))return`The ${o} has unexpected type of "${Hi(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const a=Object.keys(e).filter(e=>!t.hasOwnProperty(e)&&!n[e]);return a.forEach(e=>{n[e]=!0}),r&&r.type===Ui.REPLACE?void 0:a.length>0?`Unexpected ${a.length>1?"keys":"key"} "${a.join('", "')}" found in ${o}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`:void 0}(e,r,t,i);n&&Yi(n)}let a=!1;const l={};for(let i=0;i<n.length;i++){const o=n[i],c=e[o],u=(0,r[o])(c,t);if(void 0===u){const e=t&&t.type;throw new Error("production"===process.env.NODE_ENV?Vi(14):`When called with an action of type ${e?`"${String(e)}"`:"(unknown type)"}, the slice reducer for key "${o}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}l[o]=u,a=a||u!==c}return a=a||n.length!==Object.keys(e).length,a?l:e}}function Xi(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}function Zi(e){return Wi(e)&&"type"in e&&"string"==typeof e.type}var Qi=Symbol.for("immer-nothing"),Ji=Symbol.for("immer-draftable"),eo=Symbol.for("immer-state"),to="production"!==process.env.NODE_ENV?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function ro(e,...t){if("production"!==process.env.NODE_ENV){const r=to[e],n=jo(r)?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var no=Object,io=no.getPrototypeOf,oo="constructor",ao="prototype",lo="configurable",co="enumerable",uo="writable",so="value",fo=e=>!!e&&!!e[eo];function po(e){return!!e&&(vo(e)||Oo(e)||!!e[Ji]||!!e[oo]?.[Ji]||Eo(e)||So(e))}var ho=no[ao][oo].toString(),yo=new WeakMap;function vo(e){if(!e||!Po(e))return!1;const t=io(e);if(null===t||t===no[ao])return!0;const r=no.hasOwnProperty.call(t,oo)&&t[oo];if(r===Object)return!0;if(!jo(r))return!1;let n=yo.get(r);return void 0===n&&(n=Function.toString.call(r),yo.set(r,n)),n===ho}function mo(e,t,r=!0){0===go(e)?(r?Reflect.ownKeys(e):no.keys(e)).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function go(e){const t=e[eo];return t?t.type_:Oo(e)?1:Eo(e)?2:So(e)?3:0}var bo=(e,t,r=go(e))=>2===r?e.has(t):no[ao].hasOwnProperty.call(e,t),wo=(e,t,r=go(e))=>2===r?e.get(t):e[t],xo=(e,t,r,n=go(e))=>{2===n?e.set(t,r):3===n?e.add(r):e[t]=r},Oo=Array.isArray,Eo=e=>e instanceof Map,So=e=>e instanceof Set,Po=e=>"object"==typeof e,jo=e=>"function"==typeof e,Ao=e=>"boolean"==typeof e,_o=e=>e.copy_||e.base_,ko=e=>e.modified_?e.copy_:e.base_;function Mo(e,t){if(Eo(e))return new Map(e);if(So(e))return new Set(e);if(Oo(e))return Array[ao].slice.call(e);const r=vo(e);if(!0===t||"class_only"===t&&!r){const t=no.getOwnPropertyDescriptors(e);delete t[eo];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){const i=r[n],o=t[i];!1===o[uo]&&(o[uo]=!0,o[lo]=!0),(o.get||o.set)&&(t[i]={[lo]:!0,[uo]:!0,[co]:o[co],[so]:e[i]})}return no.create(io(e),t)}{const t=io(e);if(null!==t&&r)return{...e};const n=no.create(t);return no.assign(n,e)}}function Io(e,t=!1){return Do(e)||fo(e)||!po(e)||(go(e)>1&&no.defineProperties(e,{set:To,add:To,clear:To,delete:To}),no.freeze(e),t&&mo(e,(e,t)=>{Io(t,!0)},!1)),e}var To={[so]:function(){ro(2)}};function Do(e){return null===e||!Po(e)||no.isFrozen(e)}var No="MapSet",Co="Patches",zo="ArrayMethods",Lo={};function Ro(e){const t=Lo[e];return t||ro(0,e),t}var Bo,$o=e=>!!Lo[e],Vo=()=>Bo;function Ko(e,t){t&&(e.patchPlugin_=Ro(Co),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Fo(e){Uo(e),e.drafts_.forEach(Ho),e.drafts_=null}function Uo(e){e===Bo&&(Bo=e.parent_)}var Wo=e=>Bo={drafts_:[],parent_:Bo,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:$o(No)?Ro(No):void 0,arrayMethodsPlugin_:$o(zo)?Ro(zo):void 0};function Ho(e){const t=e[eo];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function qo(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(void 0!==e&&e!==r){r[eo].modified_&&(Fo(t),ro(4)),po(e)&&(e=Yo(t,e));const{patchPlugin_:n}=t;n&&n.generateReplacementPatches_(r[eo].base_,e,t)}else e=Yo(t,r);return function(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Io(t,r)}(t,e,!0),Fo(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Qi?e:void 0}function Yo(e,t){if(Do(t))return t;const r=t[eo];if(!r)return ea(t,e.handledSet_,e);if(!Xo(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:t}=r;if(t)for(;t.length>0;)t.pop()(e);Jo(r,e)}return r.copy_}function Go(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Xo=(e,t)=>e.scope_===t,Zo=[];function Qo(e,t,r,n){const i=_o(e),o=e.type_;if(void 0!==n&&wo(i,n,o)===t)return void xo(i,n,r,o);if(!e.draftLocations_){const t=e.draftLocations_=new Map;mo(i,(e,r)=>{if(fo(r)){const n=t.get(r)||[];n.push(e),t.set(r,n)}})}const a=e.draftLocations_.get(t)??Zo;for(const e of a)xo(i,e,r,o)}function Jo(e,t){if(e.modified_&&!e.finalized_&&(3===e.type_||1===e.type_&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:r}=t;if(r){const n=r.getPath(e);n&&r.generatePatches_(e,n,t)}Go(e)}}function ea(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||fo(e)||t.has(e)||!po(e)||Do(e)||(t.add(e),mo(e,(n,i)=>{if(fo(i)){const t=i[eo];if(Xo(t,r)){const r=ko(t);xo(e,n,r,e.type_),Go(t)}}else po(i)&&ea(i,t,r)})),e}var ta={get(e,t){if(t===eo)return e;let r=e.scope_.arrayMethodsPlugin_;const n=1===e.type_&&"string"==typeof t;if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);const i=_o(e);if(!bo(i,t,e.type_))return function(e,t,r){const n=ia(t,r);return n?so in n?n[so]:n.get?.call(e.draft_):void 0}(e,i,t);const o=i[t];if(e.finalized_||!po(o))return o;if(n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&function(e){const t=+e;return Number.isInteger(t)&&String(t)===e}(t))return o;if(o===na(e.base_,t)){aa(e);const r=1===e.type_?+t:t,n=la(0,o,e,r);return e.copy_[r]=n}return o},has:(e,t)=>t in _o(e),ownKeys:e=>Reflect.ownKeys(_o(e)),set(e,t,r){const n=ia(_o(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const n=na(_o(e),t),a=n?.[eo];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(((i=r)===(o=n)?0!==i||1/i==1/o:i!=i&&o!=o)&&(void 0!==r||bo(e.base_,t,e.type_)))return!0;aa(e),oa(e)}var i,o;return e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),function(e,t,r){const{scope_:n}=e;if(fo(r)){const i=r[eo];Xo(i,n)&&i.callbacks_.push(function(){aa(e);const n=ko(i);Qo(e,r,n,t)})}else po(r)&&e.callbacks_.push(function(){const i=_o(e);3===e.type_?i.has(r)&&ea(r,n.handledSet_,n):wo(i,t,e.type_)===r&&n.drafts_.length>1&&!0===(e.assigned_.get(t)??!1)&&e.copy_&&ea(wo(e.copy_,t,e.type_),n.handledSet_,n)})}(e,t,r)),!0},deleteProperty:(e,t)=>(aa(e),void 0!==na(e.base_,t)||t in e.base_?(e.assigned_.set(t,!1),oa(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const r=_o(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{[uo]:!0,[lo]:1!==e.type_||"length"!==t,[co]:n[co],[so]:r[t]}:n},defineProperty(){ro(11)},getPrototypeOf:e=>io(e.base_),setPrototypeOf(){ro(12)}},ra={};for(let e in ta){let t=ta[e];ra[e]=function(){const e=arguments;return e[0]=e[0][0],t.apply(this,e)}}function na(e,t){const r=e[eo];return(r?_o(r):e)[t]}function ia(e,t){if(!(t in e))return;let r=io(e);for(;r;){const e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=io(r)}}function oa(e){e.modified_||(e.modified_=!0,e.parent_&&oa(e.parent_))}function aa(e){e.copy_||(e.assigned_=new Map,e.copy_=Mo(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function la(e,t,r,n){const[i,o]=Eo(t)?Ro(No).proxyMap_(t,r):So(t)?Ro(No).proxySet_(t,r):function(e,t){const r=Oo(e),n={type_:r?1:0,scope_:t?t.scope_:Vo(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=n,o=ta;r&&(i=[n],o=ra);const{revoke:a,proxy:l}=Proxy.revocable(i,o);return n.draft_=l,n.revoke_=a,[l,n]}(t,r);return(r?.scope_??Vo()).drafts_.push(i),o.callbacks_=r?.callbacks_??[],o.key_=n,r&&void 0!==n?function(e,t,r){e.callbacks_.push(function(n){const i=t;if(!i||!Xo(i,n))return;n.mapSetPlugin_?.fixSetContents(i);const o=ko(i);Qo(e,i.draft_??i,o,r),Jo(i,n)})}(r,o,n):o.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(o);const{patchPlugin_:t}=e;o.modified_&&t&&t.generatePatches_(o,[],e)}),i}function ca(e){return fo(e)||ro(10,e),ua(e)}function ua(e){if(!po(e)||Do(e))return e;const t=e[eo];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Mo(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Mo(e,!0);return mo(r,(e,t)=>{xo(r,e,ua(t))},n),t&&(t.finalized_=!1),r}ra.deleteProperty=function(e,t){return"production"!==process.env.NODE_ENV&&isNaN(parseInt(t))&&ro(13),ra.set.call(this,e,t,void 0)},ra.set=function(e,t,r){return"production"!==process.env.NODE_ENV&&"length"!==t&&isNaN(parseInt(t))&&ro(14),ta.set.call(this,e[0],t,r,e[0])};var sa=(new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,r)=>{if(jo(e)&&!jo(t)){const r=t;t=e;const n=this;return function(e=r,...i){return n.produce(e,e=>t.call(this,e,...i))}}let n;if(jo(t)||ro(6),void 0===r||jo(r)||ro(7),po(e)){const i=Wo(this),o=la(0,e,void 0);let a=!0;try{n=t(o),a=!1}finally{a?Fo(i):Uo(i)}return Ko(i,r),qo(n,i)}if(!e||!Po(e)){if(n=t(e),void 0===n&&(n=e),n===Qi&&(n=void 0),this.autoFreeze_&&Io(n,!0),r){const t=[],i=[];Ro(Co).generateReplacementPatches_(e,n,{patches_:t,inversePatches_:i}),r(t,i)}return n}ro(1,e)},this.produceWithPatches=(e,t)=>{if(jo(e))return(t,...r)=>this.produceWithPatches(t,t=>e(t,...r));let r,n;return[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},Ao(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Ao(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Ao(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){po(e)||ro(8),fo(e)&&(e=ca(e));const t=Wo(this),r=la(0,e,void 0);return r[eo].isManual_=!0,Uo(t),r}finishDraft(e,t){const r=e&&e[eo];r&&r.isManual_||ro(9);const{scope_:n}=r;return Ko(n,t),qo(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));const n=Ro(Co).applyPatches_;return fo(e)?n(e,t):this.produce(e,e=>n(e,t))}}).produce;function fa(e){return({dispatch:t,getState:r})=>n=>i=>"function"==typeof i?i(t,r,e):n(i)}var da=fa(),pa=fa,ha="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Xi:Xi.apply(null,arguments)};function ya(e,t){function r(...r){if(t){let n=t(...r);if(!n)throw new Error("production"===process.env.NODE_ENV?ml(0):"prepareAction did not return an object");return{type:e,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:e,payload:r[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=t=>Zi(t)&&t.type===e,r}function va(e){return"function"==typeof e&&"type"in e&&(t=e)&&"function"==typeof t.match;var t}function ma(e,t){let r=0;return{measureTime(e){const t=Date.now();try{return e()}finally{const e=Date.now();r+=e-t}},warnIfExceeded(){r>e&&console.warn(`${t} took ${r}ms, which is more than the warning threshold of ${e}ms. \nIf your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.\nIt is disabled in production builds, so you don't need to worry about that.`)}}}var ga=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function ba(e){return po(e)?sa(e,()=>{}):e}function wa(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function xa(e){return"object"!=typeof e||null==e||Object.isFrozen(e)}function Oa(e,t,r){const n=Ea(e,t,r);return{detectMutations:()=>Sa(e,t,n,r)}}function Ea(e,t=[],r,n="",i=new Set){const o={value:r};if(!e(r)&&!i.has(r)){i.add(r),o.children={};const a=t.length>0;for(const i in r){const l=n?n+"."+i:i;a&&t.some(e=>e instanceof RegExp?e.test(l):l===e)||(o.children[i]=Ea(e,t,r[i],l))}}return o}function Sa(e,t=[],r,n,i=!1,o=""){const a=r?r.value:void 0,l=a===n;if(i&&!l&&!Number.isNaN(n))return{wasMutated:!0,path:o};if(e(a)||e(n))return{wasMutated:!1};const c={};for(let e in r.children)c[e]=!0;for(let e in n)c[e]=!0;const u=t.length>0;for(let i in c){const a=o?o+"."+i:i;if(u&&t.some(e=>e instanceof RegExp?e.test(a):a===e))continue;const c=Sa(e,t,r.children[i],n[i],l,a);if(c.wasMutated)return c}return{wasMutated:!1}}function Pa(e){const t=typeof e;return null==e||"string"===t||"boolean"===t||"number"===t||Array.isArray(e)||Wi(e)}function ja(e,t="",r=Pa,n,i=[],o){let a;if(!r(e))return{keyPath:t||"<root>",value:e};if("object"!=typeof e||null===e)return!1;if(o?.has(e))return!1;const l=null!=n?n(e):Object.entries(e),c=i.length>0;for(const[e,u]of l){const l=t?t+"."+e:e;if(!c||!i.some(e=>e instanceof RegExp?e.test(l):l===e)){if(!r(u))return{keyPath:l,value:u};if("object"==typeof u&&(a=ja(u,l,r,n,i,o),a))return a}}return o&&Aa(e)&&o.add(e),!1}function Aa(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if("object"==typeof t&&null!==t&&!Aa(t))return!1;return!0}function _a(e){return"boolean"==typeof e}var ka=()=>function(e){const{thunk:t=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:i=!0}=e??{};let o=new ga;if(t&&(_a(t)?o.push(da):o.push(pa(t.extraArgument))),"production"!==process.env.NODE_ENV){if(r){let e={};_a(r)||(e=r),o.unshift(function(e={}){if("production"===process.env.NODE_ENV)return()=>e=>t=>e(t);{let t=function(e,t,n,i){return JSON.stringify(e,r(t,i),n)},r=function(e,t){let r=[],n=[];return t||(t=function(e,t){return r[0]===t?"[Circular ~]":"[Circular ~."+n.slice(0,r.indexOf(t)).join(".")+"]"}),function(i,o){if(r.length>0){var a=r.indexOf(this);~a?r.splice(a+1):r.push(this),~a?n.splice(a,1/0,i):n.push(i),~r.indexOf(o)&&(o=t.call(this,i,o))}else r.push(o);return null==e?o:e.call(this,i,o)}},{isImmutable:n=xa,ignoredPaths:i,warnAfter:o=32}=e;const a=Oa.bind(null,n,i);return({getState:e})=>{let r,n=e(),i=a(n);return l=>c=>{const u=ma(o,"ImmutableStateInvariantMiddleware");u.measureTime(()=>{if(n=e(),r=i.detectMutations(),i=a(n),r.wasMutated)throw new Error("production"===process.env.NODE_ENV?ml(19):`A state mutation was detected between dispatches, in the path '${r.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const s=l(c);return u.measureTime(()=>{if(n=e(),r=i.detectMutations(),i=a(n),r.wasMutated)throw new Error("production"===process.env.NODE_ENV?ml(20):`A state mutation was detected inside a dispatch, in the path: ${r.path||""}. Take a look at the reducer(s) handling the action ${t(c)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),u.warnIfExceeded(),s}}}}(e))}if(n){let e={};_a(n)||(e=n),o.push(function(e={}){if("production"===process.env.NODE_ENV)return()=>e=>t=>e(t);{const{isSerializable:t=Pa,getEntries:r,ignoredActions:n=[],ignoredActionPaths:i=["meta.arg","meta.baseQueryMeta"],ignoredPaths:o=[],warnAfter:a=32,ignoreState:l=!1,ignoreActions:c=!1,disableCache:u=!1}=e,s=!u&&WeakSet?new WeakSet:void 0;return e=>u=>f=>{if(!Zi(f))return u(f);const d=u(f),p=ma(a,"SerializableStateInvariantMiddleware");return c||n.length&&-1!==n.indexOf(f.type)||p.measureTime(()=>{const e=ja(f,"",t,r,i,s);if(e){const{keyPath:t,value:r}=e;console.error(`A non-serializable value was detected in an action, in the path: \`${t}\`. Value:`,r,"\nTake a look at the logic that dispatched this action: ",f,"\n(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)","\n(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)")}}),l||(p.measureTime(()=>{const n=ja(e.getState(),"",t,r,o,s);if(n){const{keyPath:e,value:t}=n;console.error(`A non-serializable value was detected in the state, in the path: \`${e}\`. Value:`,t,`\nTake a look at the reducer(s) handling this action type: ${f.type}.\n(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),p.warnIfExceeded()),d}}}(e))}if(i){let e={};_a(i)||(e=i),o.unshift(function(e={}){if("production"===process.env.NODE_ENV)return()=>e=>t=>e(t);const{isActionCreator:t=va}=e;return()=>e=>r=>(t(r)&&console.warn(function(e){const t=e?`${e}`.split("/"):[],r=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched.\nMake sure you're calling the action creator before dispatching, i.e. \`dispatch(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`}(r.type)),e(r))}(e))}}return o},Ma="RTK_autoBatch",Ia=()=>e=>({payload:e,meta:{[Ma]:!0}}),Ta=e=>t=>{setTimeout(t,e)},Da=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,o=!1,a=!1;const l=new Set,c="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!=typeof window&&window.requestAnimationFrame?(u=window.requestAnimationFrame,e=>{let t=!1;const r=()=>{t||(t=!0,cancelAnimationFrame(n),clearTimeout(i),e())},n=u(r),i=setTimeout(r,100)}):Ta(10):"callback"===e.type?e.queueNotification:Ta(e.timeout);var u;const s=()=>{a=!1,o&&(o=!1,l.forEach(e=>e()))};return Object.assign({},n,{subscribe(e){const t=n.subscribe(()=>i&&e());return l.add(e),()=>{t(),l.delete(e)}},dispatch(e){try{return i=!e?.meta?.[Ma],o=!i,o&&(a||(a=!0,c(s))),n.dispatch(e)}finally{i=!0}}})};function Na(e){const t={},r=[];let n;const i={addCase(e,o){if("production"!==process.env.NODE_ENV){if(r.length>0)throw new Error("production"===process.env.NODE_ENV?ml(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error("production"===process.env.NODE_ENV?ml(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const a="string"==typeof e?e:e.type;if(!a)throw new Error("production"===process.env.NODE_ENV?ml(28):"`builder.addCase` cannot be called with an empty action type");if(a in t)throw new Error("production"===process.env.NODE_ENV?ml(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${a}'`);return t[a]=o,i},addAsyncThunk(e,o){if("production"!==process.env.NODE_ENV&&n)throw new Error("production"===process.env.NODE_ENV?ml(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return o.pending&&(t[e.pending.type]=o.pending),o.rejected&&(t[e.rejected.type]=o.rejected),o.fulfilled&&(t[e.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:e.settled,reducer:o.settled}),i},addMatcher(e,t){if("production"!==process.env.NODE_ENV&&n)throw new Error("production"===process.env.NODE_ENV?ml(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:e,reducer:t}),i},addDefaultCase(e){if("production"!==process.env.NODE_ENV&&n)throw new Error("production"===process.env.NODE_ENV?ml(31):"`builder.addDefaultCase` can only be called once");return n=e,i}};return e(i),[t,r,n]}var Ca=(e=21)=>{let t="",r=e;for(;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},za=Symbol.for("rtk-slice-createasyncthunk");function La(e,t){return`${e}/${t}`}function Ra({creators:e}={}){const t=e?.asyncThunk?.[za];return function(e){const{name:r,reducerPath:n=r}=e;if(!r)throw new Error("production"===process.env.NODE_ENV?ml(11):"`name` is a required option for createSlice");"undefined"!=typeof process&&"development"===process.env.NODE_ENV&&void 0===e.initialState&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const i=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},o=Object.keys(i),a={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(e,t){const r="string"==typeof e?e:e.type;if(!r)throw new Error("production"===process.env.NODE_ENV?ml(12):"`context.addCase` cannot be called with an empty action type");if(r in a.sliceCaseReducersByType)throw new Error("production"===process.env.NODE_ENV?ml(13):"`context.addCase` cannot be called with two reducers for the same action type: "+r);return a.sliceCaseReducersByType[r]=t,l},addMatcher:(e,t)=>(a.sliceMatchers.push({matcher:e,reducer:t}),l),exposeAction:(e,t)=>(a.actionCreators[e]=t,l),exposeCaseReducer:(e,t)=>(a.sliceCaseReducersByName[e]=t,l)};function c(){if("production"!==process.env.NODE_ENV&&"object"==typeof e.extraReducers)throw new Error("production"===process.env.NODE_ENV?ml(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[t={},r=[],n]="function"==typeof e.extraReducers?Na(e.extraReducers):[e.extraReducers],i={...t,...a.sliceCaseReducersByType};return function(e){process;let t,[o,l,c]=Na(e=>{for(let t in i)e.addCase(t,i[t]);for(let t of a.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of r)e.addMatcher(t.matcher,t.reducer);n&&e.addDefaultCase(n)});if("function"==typeof e)t=()=>ba(e());else{const r=ba(e);t=()=>r}function u(e=t(),r){let n=[o[r.type],...l.filter(({matcher:e})=>e(r)).map(({reducer:e})=>e)];return 0===n.filter(e=>!!e).length&&(n=[c]),n.reduce((e,t)=>{if(t){if(fo(e)){const n=t(e,r);return void 0===n?e:n}if(po(e))return sa(e,e=>t(e,r));{const n=t(e,r);if(void 0===n){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}}return e},e)}return u.getInitialState=t,u}(e.initialState)}o.forEach(n=>{const o=i[n],a={reducerName:n,type:La(r,n),createNotation:"function"==typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(o)?function({type:e,reducerName:t,createNotation:r},n,i){let o,a;if("reducer"in n){if(r&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(n))throw new Error("production"===process.env.NODE_ENV?ml(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");o=n.reducer,a=n.prepare}else o=n;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?ya(e,a):ya(e))}(a,o,l):function({type:e,reducerName:t},r,n,i){if(!i)throw new Error("production"===process.env.NODE_ENV?ml(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:o,fulfilled:a,pending:l,rejected:c,settled:u,options:s}=r,f=i(e,o,s);n.exposeAction(t,f),a&&n.addCase(f.fulfilled,a),l&&n.addCase(f.pending,l),c&&n.addCase(f.rejected,c),u&&n.addMatcher(f.settled,u),n.exposeCaseReducer(t,{fulfilled:a||Va,pending:l||Va,rejected:c||Va,settled:u||Va})}(a,o,l,t)});const u=e=>e,s=new Map,f=new WeakMap;let d;function p(e,t){return d||(d=c()),d(e,t)}function h(){return d||(d=c()),d.getInitialState()}function y(t,r=!1){function n(e){let i=e[t];if(void 0===i)if(r)i=wa(f,n,h);else if("production"!==process.env.NODE_ENV)throw new Error("production"===process.env.NODE_ENV?ml(15):"selectSlice returned undefined for an uninjected slice reducer");return i}function i(t=u){const n=wa(s,r,()=>new WeakMap);return wa(n,t,()=>{const n={};for(const[i,o]of Object.entries(e.selectors??{}))n[i]=Ba(o,t,()=>wa(f,t,h),r);return n})}return{reducerPath:t,getSelectors:i,get selectors(){return i(n)},selectSlice:n}}const v={name:r,reducer:p,actions:a.actionCreators,caseReducers:a.sliceCaseReducersByName,getInitialState:h,...y(n),injectInto(e,{reducerPath:t,...r}={}){const i=t??n;return e.inject({reducerPath:i,reducer:p},r),{...v,...y(i,!0)}}};return v}}function Ba(e,t,r,n){function i(i,...o){let a=t(i);if(void 0===a)if(n)a=r();else if("production"!==process.env.NODE_ENV)throw new Error("production"===process.env.NODE_ENV?ml(16):"selectState returned undefined for an uninjected slice reducer");return e(a,...o)}return i.unwrapped=e,i}var $a=Ra();function Va(){}var Ka="listener",Fa="completed",Ua="cancelled",Wa=`task-${Ua}`,Ha=`task-${Fa}`,qa=`${Ka}-${Ua}`,Ya=`${Ka}-${Fa}`,Ga=class{constructor(e){this.code=e,this.message=`task ${Ua} (reason: ${e})`}code;name="TaskAbortError";message},Xa=(e,t)=>{if("function"!=typeof e)throw new TypeError("production"===process.env.NODE_ENV?ml(32):`${t} is not a function`)},Za=()=>{},Qa=(e,t=Za)=>(e.catch(t),e),Ja=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),el=e=>{if(e.aborted)throw new Ga(e.reason)};function tl(e,t){let r=Za;return new Promise((n,i)=>{const o=()=>i(new Ga(e.reason));e.aborted?o():(r=Ja(e,o),t.finally(()=>r()).then(n,i))}).finally(()=>{r=Za})}var rl=e=>t=>Qa(tl(e,t).then(t=>(el(e),t))),nl=e=>{const t=rl(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:il}=Object,ol={},al="listenerMiddleware",ll=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:o}=e;if(t)i=ya(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error("production"===process.env.NODE_ENV?ml(21):"Creating or removing a listener requires one of the known fields for matching an action");return Xa(o,"options.listener"),{predicate:i,type:t,effect:o}},cl=il(e=>{const{type:t,predicate:r,effect:n}=ll(e);return{id:Ca(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error("production"===process.env.NODE_ENV?ml(22):"Unsubscribe not initialized")}}},{withTypes:()=>cl}),ul=(e,t)=>{const{type:r,effect:n,predicate:i}=ll(t);return Array.from(e.values()).find(e=>("string"==typeof r?e.type===r:e.predicate===i)&&e.effect===n)},sl=e=>{e.pending.forEach(e=>{e.abort(qa)})},fl=(e,t,r)=>{try{e(t,r)}catch(e){setTimeout(()=>{throw e},0)}},dl=il(ya(`${al}/add`),{withTypes:()=>dl}),pl=ya(`${al}/removeAll`),hl=il(ya(`${al}/remove`),{withTypes:()=>hl}),yl=(...e)=>{console.error(`${al}/error`,...e)},vl=(e={})=>{const t=new Map,r=new Map,{extra:n,onError:i=yl}=e;Xa(i,"onError");const o=e=>{return(r=ul(t,e)??cl(e)).unsubscribe=()=>t.delete(r.id),t.set(r.id,r),e=>{r.unsubscribe(),e?.cancelActive&&sl(r)};var r};il(o,{withTypes:()=>o});const a=e=>{const r=ul(t,e);return r&&(r.unsubscribe(),e.cancelActive&&sl(r)),!!r};il(a,{withTypes:()=>a});const l=async(e,a,l,c)=>{const u=new AbortController,s=((e,t)=>(r,n)=>Qa((async(r,n)=>{el(t);let i=()=>{};const o=[new Promise((t,n)=>{let o=e({predicate:r,effect:(e,r)=>{r.unsubscribe(),t([e,r.getState(),r.getOriginalState()])}});i=()=>{o(),n()}})];null!=n&&o.push(new Promise(e=>setTimeout(e,n,null)));try{const e=await tl(t,Promise.race(o));return el(t),e}finally{i()}})(r,n)))(o,u.signal),f=[];try{e.pending.add(u),(e=>{const t=r.get(e)??0;r.set(e,t+1)})(e),await Promise.resolve(e.effect(a,il({},l,{getOriginalState:c,condition:(e,t)=>s(e,t).then(Boolean),take:s,delay:nl(u.signal),pause:rl(u.signal),extra:n,signal:u.signal,fork:(d=u.signal,p=f,(e,t)=>{Xa(e,"taskExecutor");const r=new AbortController;var n;n=r,Ja(d,()=>n.abort(d.reason));const i=(async()=>{try{return await Promise.resolve(),{status:"ok",value:await(async()=>{el(d),el(r.signal);const t=await e({pause:rl(r.signal),delay:nl(r.signal),signal:r.signal});return el(r.signal),t})()}}catch(e){return{status:e instanceof Ga?"cancelled":"rejected",error:e}}finally{r.abort(Ha)}})();return t?.autoJoin&&p.push(i.catch(Za)),{result:rl(d)(i),cancel(){r.abort(Wa)}}}),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,r)=>{e!==u&&(e.abort(qa),r.delete(e))})},cancel:()=>{u.abort(qa),e.pending.delete(u)},throwIfCancelled:()=>{el(u.signal)}})))}catch(e){e instanceof Ga||fl(i,e,{raisedBy:"effect"})}finally{await Promise.all(f),u.abort(Ya),(e=>{const t=r.get(e)??1;1===t?r.delete(e):r.set(e,t-1)})(e),e.pending.delete(u)}var d,p},c=((e,t)=>()=>{for(const e of t.keys())sl(e);e.clear()})(t,r);return{middleware:e=>r=>n=>{if(!Zi(n))return r(n);if(dl.match(n))return o(n.payload);if(pl.match(n))return void c();if(hl.match(n))return a(n.payload);let u=e.getState();const s=()=>{if(u===ol)throw new Error("production"===process.env.NODE_ENV?ml(23):`${al}: getOriginalState can only be called synchronously`);return u};let f;try{if(f=r(n),t.size>0){const r=e.getState(),o=Array.from(t.values());for(const t of o){let o=!1;try{o=t.predicate(n,r,u)}catch(e){o=!1,fl(i,e,{raisedBy:"predicate"})}o&&l(t,n,e,s)}}}finally{u=ol}return f},startListening:o,stopListening:a,clearListeners:c}};function ml(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var gl=$a({name:"chartLayout",initialState:{layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,i,o;e.margin.top=null!==(r=t.payload.top)&&void 0!==r?r:0,e.margin.right=null!==(n=t.payload.right)&&void 0!==n?n:0,e.margin.bottom=null!==(i=t.payload.bottom)&&void 0!==i?i:0,e.margin.left=null!==(o=t.payload.left)&&void 0!==o?o:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:bl,setLayout:wl,setChartSize:xl,setScale:Ol}=gl.actions,El=gl.reducer;function Sl(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function Pl(e){return Number.isFinite(e)}function jl(e){return"number"==typeof e&&e>0&&Number.isFinite(e)}function Al(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Al(Object(r),!0).forEach(function(t){kl(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Al(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function kl(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ml(e,t,r){return Mt(e)||Mt(t)?r:Et(t)?vt(e,t,r):"function"==typeof t?t(e):r}var Il=(e,t)=>"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t,Tl=(e,t,r,n)=>{if(n)return e.map(e=>e.coordinate);var i,o,a=e.map(e=>(e.coordinate===t&&(i=!0),e.coordinate===r&&(o=!0),e.coordinate));return i||a.push(t),o||a.push(r),a},Dl=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:i,range:o,scale:a,realScaleType:l,isCategorical:c,categoricalDomain:u,tickCount:s,ticks:f,niceTicks:d,axisType:p}=e;if(!a)return null;var h="scaleBand"===l&&a.bandwidth?a.bandwidth()/2:2,y="category"===i&&a.bandwidth?a.bandwidth()/h:0;return y="angleAxis"===p&&o&&o.length>=2?2*bt(o[0]-o[1])*y:y,f||d?(f||d||[]).map((e,t)=>{var r=n?n.indexOf(e):e,i=a.map(r);return Pl(i)?{coordinate:i+y,value:e,offset:y,index:t}:null}).filter(Tt):c&&u?u.map((e,t)=>{var r=a.map(e);return Pl(r)?{coordinate:r+y,value:e,index:t,offset:y}:null}).filter(Tt):a.ticks&&null!=s?a.ticks(s).map((e,t)=>{var r=a.map(e);return Pl(r)?{coordinate:r+y,value:e,index:t,offset:y}:null}).filter(Tt):a.domain().map((e,t)=>{var r=a.map(e);return Pl(r)?{coordinate:r+y,value:n?n[e]:e,index:t,offset:y}:null}).filter(Tt)},Nl={sign:e=>{var t,r=e.length;if(!(r<=0)){var n=null===(t=e[0])||void 0===t?void 0:t.length;if(!(null==n||n<=0))for(var i=0;i<n;++i)for(var o=0,a=0,l=0;l<r;++l){var c=e[l],u=null==c?void 0:c[i];if(null!=u){var s=u[1],f=u[0],d=wt(s)?f:s;d>=0?(u[0]=o,u[1]=o+=d):(u[0]=a,u[1]=a+=d)}}}},expand:function(e,t){if((n=e.length)>0){for(var r,n,i,o=0,a=e[0].length;o<a;++o){for(i=r=0;r<n;++r)i+=e[r][o][1]||0;if(i)for(r=0;r<n;++r)e[r][o][1]/=i}We(e,t)}},none:We,silhouette:function(e,t){if((r=e.length)>0){for(var r,n=0,i=e[t[0]],o=i.length;n<o;++n){for(var a=0,l=0;a<r;++a)l+=e[a][n][1]||0;i[n][1]+=i[n][0]=-l/2}We(e,t)}},wiggle:function(e,t){if((i=e.length)>0&&(n=(r=e[t[0]]).length)>0){for(var r,n,i,o=0,a=1;a<n;++a){for(var l=0,c=0,u=0;l<i;++l){for(var s=e[t[l]],f=s[a][1]||0,d=(f-(s[a-1][1]||0))/2,p=0;p<l;++p){var h=e[t[p]];d+=(h[a][1]||0)-(h[a-1][1]||0)}c+=f,u+=d*f}r[a-1][1]+=r[a-1][0]=o,c&&(o-=u/c)}r[a-1][1]+=r[a-1][0]=o,We(e,t)}},positive:e=>{var t,r=e.length;if(!(r<=0)){var n=null===(t=e[0])||void 0===t?void 0:t.length;if(!(null==n||n<=0))for(var i=0;i<n;++i)for(var o=0,a=0;a<r;++a){var l=e[a],c=null==l?void 0:l[i];if(null!=c){var u=wt(c[1])?c[0]:c[1];u>=0?(c[0]=o,c[1]=o+=u):(c[0]=0,c[1]=0)}}}}},Cl=(e,t,r)=>{var n,i=null!==(n=Nl[r])&&void 0!==n?n:We,o=function(){var e=W([]),t=He,r=We,n=qe;function i(i){var o,a,l=Array.from(e.apply(this,arguments),Ye),c=l.length,u=-1;for(const e of i)for(o=0,++u;o<c;++o)(l[o][u]=[0,+n(e,l[o].key,u,i)]).data=e;for(o=0,a=ie(t(l));o<c;++o)l[a[o]].index=o;return r(l,a),l}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:W(Array.from(t)),i):e},i.value=function(e){return arguments.length?(n="function"==typeof e?e:W(+e),i):n},i.order=function(e){return arguments.length?(t=null==e?He:"function"==typeof e?e:W(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(r=null==e?We:e,i):r},i}().keys(t).value((e,t)=>Number(Ml(e,t,0))).order(He).offset(i),a=o(e);return a.forEach((r,n)=>{r.forEach((r,i)=>{var o=Ml(e[i],t[n],0);Array.isArray(o)&&2===o.length&&Ot(o[0])&&Ot(o[1])&&(r[0]=o[0],r[1]=o[1])})}),a};function zl(e){return null==e?void 0:String(e)}function Ll(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:o,dataKey:a}=e;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!Mt(i[t.dataKey])){var l=kt(r,"value",i[t.dataKey]);if(l)return l.coordinate+n/2}return null!=r&&r[o]?r[o].coordinate+n/2:null}var c=Ml(i,Mt(a)?t.dataKey:a),u=t.scale.map(c);return Ot(u)?u:null}var Rl=e=>{var{axis:t,ticks:r,offset:n,bandSize:i,entry:o,index:a}=e;if("category"===t.type)return r[a]?r[a].coordinate+n:null;var l=Ml(o,t.dataKey,t.scale.domain()[a]);if(Mt(l))return null;var c=t.scale.map(l);return Ot(c)?c-i/2+n:null},Bl=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,$l=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Vl=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var i=Li(t,e=>e.coordinate),o=1/0,a=1,l=i.length;a<l;a++){var c=i[a],u=i[a-1];o=Math.min(((null==c?void 0:c.coordinate)||0)-((null==u?void 0:u.coordinate)||0),o)}return o===1/0?0:o}return r?void 0:0};function Kl(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:o}=e;return _l(_l({},t),{},{dataKey:r,payload:n,value:i,name:o})}function Fl(e,t){return e?String(e):"string"==typeof t?t:void 0}var Ul=e=>e.layout.width,Wl=e=>e.layout.height,Hl=e=>e.layout.scale,ql=e=>e.layout.margin,Yl=pi(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Gl=pi(e=>e.cartesianAxis.yAxis,e=>Object.values(e));function Xl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Zl(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xl(Object(r),!0).forEach(function(t){Ql(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xl(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ql(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Jl,ec,tc,rc,nc,ic=pi([Ul,Wl,ql,e=>e.brush.height,function(e){return Gl(e).reduce((e,t)=>"left"!==t.orientation||t.mirror||t.hide?e:e+("number"==typeof t.width?t.width:60),0)},function(e){return Gl(e).reduce((e,t)=>"right"!==t.orientation||t.mirror||t.hide?e:e+("number"==typeof t.width?t.width:60),0)},function(e){return Yl(e).reduce((e,t)=>"top"!==t.orientation||t.mirror||t.hide?e:e+t.height,0)},function(e){return Yl(e).reduce((e,t)=>"bottom"!==t.orientation||t.mirror||t.hide?e:e+t.height,0)},Ri,e=>e.legend.size],(e,t,r,n,i,o,a,l,c,u)=>{var s={left:(r.left||0)+i,right:(r.right||0)+o},f=Zl(Zl({},{top:(r.top||0)+a,bottom:(r.bottom||0)+l}),s),d=f.bottom;f.bottom+=n,f=((e,t,r)=>{if(t&&r){var{width:n,height:i}=r,{align:o,verticalAlign:a,layout:l}=t;if(("vertical"===l||"horizontal"===l&&"middle"===a)&&"center"!==o&&Ot(e[o]))return _l(_l({},e),{},{[o]:e[o]+(n||0)});if(("horizontal"===l||"vertical"===l&&"center"===o)&&"middle"!==a&&Ot(e[a]))return _l(_l({},e),{},{[a]:e[a]+(i||0)})}return e})(f,c,u);var p=e-f.left-f.right,h=t-f.top-f.bottom;return Zl(Zl({brushBottom:d},f),{},{width:Math.max(p,0),height:Math.max(h,0)})}),oc=pi(ic,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),ac=pi(Ul,Wl,(e,t)=>({x:0,y:0,width:e,height:t})),lc=p(null),cc=()=>null!=d(lc),uc=e=>e.brush,sc=pi([uc,ic,ql],(e,t,r)=>({height:e.height,x:Ot(e.x)?e.x:t.left,y:Ot(e.y)?e.y:t.top+t.height+t.brushBottom-((null==r?void 0:r.bottom)||0),width:Ot(e.width)?e.width:t.width})),fc={},dc={},pc={};function hc(){return Jl||(Jl=1,e=pc,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.debounce=function(e,t,{signal:r,edges:n}={}){let i,o=null;const a=null!=n&&n.includes("leading"),l=null==n||n.includes("trailing"),c=()=>{null!==o&&(e.apply(i,o),i=void 0,o=null)};let u=null;const s=()=>{null!=u&&clearTimeout(u),u=setTimeout(()=>{u=null,l&&c(),f()},t)},f=()=>{null!==u&&(clearTimeout(u),u=null),i=void 0,o=null},d=function(...e){if(r?.aborted)return;i=this,o=e;const t=null==u;s(),a&&t&&c()};return d.schedule=s,d.cancel=f,d.flush=()=>{c()},r?.addEventListener("abort",f,{once:!0}),d}),pc;var e}function yc(){return ec||(ec=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=hc();e.debounce=function(e,r=0,n={}){"object"!=typeof n&&(n={});const{leading:i=!1,trailing:o=!0,maxWait:a}=n,l=Array(2);let c;i&&(l[0]="leading"),o&&(l[1]="trailing");let u=null;const s=t.debounce(function(...t){c=e.apply(this,t),u=null},r,{edges:l}),f=function(...t){return null!=a&&(null===u&&(u=Date.now()),Date.now()-u>=a)?(c=e.apply(this,t),u=Date.now(),s.cancel(),s.schedule(),c):(s.apply(this,t),c)};return f.cancel=s.cancel,f.flush=()=>(s.flush(),c),f}}(dc)),dc}function vc(){return nc?rc:(nc=1,rc=(tc||(tc=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=yc();e.throttle=function(e,r=0,n={}){const{leading:i=!0,trailing:o=!0}=n;return t.debounce(e,r,{leading:i,maxWait:r,trailing:o})}}(fc)),fc).throttle)}const mc=r(vc());var gc=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];if("undefined"!=typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(t.replace(/%s/g,()=>n[o++]))}},bc={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},wc=(e,t,r)=>{var{width:n=bc.width,height:i=bc.height,aspect:o,maxHeight:a}=r,l=xt(n)?e:Number(n),c=xt(i)?t:Number(i);return o&&o>0&&(l?c=l/o:c&&(l=c*o),a&&null!=c&&c>a&&(c=a)),{calculatedWidth:l,calculatedHeight:c}},xc={width:0,height:0,overflow:"visible"},Oc={width:0,overflowX:"visible"},Ec={height:0,overflowY:"visible"},Sc={},Pc=e=>{var{width:t,height:r}=e,n=xt(t),i=xt(r);return n&&i?xc:n?Oc:i?Ec:Sc};function jc(){return jc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jc.apply(null,arguments)}function Ac(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ac(Object(r),!0).forEach(function(t){kc(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ac(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function kc(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Mc=p(bc.initialDimension);function Ic(e){var{children:t,width:r,height:n}=e,i=h(()=>({width:r,height:n}),[r,n]);return function(e){return jl(e.width)&&jl(e.height)}(i)?c.createElement(Mc.Provider,{value:i},t):null}var Tc=()=>d(Mc),Dc=f((e,t)=>{var{aspect:r,initialDimension:n=bc.initialDimension,width:i,height:o,minWidth:a=bc.minWidth,minHeight:l,maxHeight:u,children:s,debounce:f=bc.debounce,id:d,className:p,onResize:h,style:w={}}=e,x=m(null),O=m();O.current=h,g(t,()=>x.current);var[E,S]=y({containerWidth:n.width,containerHeight:n.height}),P=v((e,t)=>{S(r=>{var n=Math.round(e),i=Math.round(t);return r.containerWidth===n&&r.containerHeight===i?r:{containerWidth:n,containerHeight:i}})},[]);b(()=>{if(null==x.current||"undefined"==typeof ResizeObserver)return Dt;var e=e=>{var t,r=e[0];if(null!=r){var{width:n,height:i}=r.contentRect;P(n,i),null===(t=O.current)||void 0===t||t.call(O,n,i)}};f>0&&(e=mc(e,f,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),{width:r,height:n}=x.current.getBoundingClientRect();return P(r,n),t.observe(x.current),()=>{t.disconnect()}},[P,f]);var{containerWidth:j,containerHeight:A}=E;gc(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:_,calculatedHeight:M}=wc(j,A,{width:i,height:o,aspect:r,maxHeight:u});return gc(null!=_&&_>0||null!=M&&M>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",_,M,i,o,a,l,r),c.createElement("div",{id:d?"".concat(d):void 0,className:k("recharts-responsive-container",p),style:_c(_c({},w),{},{width:i,height:o,minWidth:a,minHeight:l,maxHeight:u}),ref:x},c.createElement("div",{style:Pc({width:i,height:o})},c.createElement(Ic,{width:_,height:M},s)))}),Nc=f((e,t)=>{var r=Tc();if(jl(r.width)&&jl(r.height))return e.children;var{width:n,height:i}=function(e){var{width:t,height:r,aspect:n}=e,i=t,o=r;return void 0===i&&void 0===o?(i=bc.width,o=bc.height):void 0===i?i=n&&n>0?void 0:bc.width:void 0===o&&(o=n&&n>0?void 0:bc.height),{width:i,height:o}}({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:o,calculatedHeight:a}=wc(void 0,void 0,{width:n,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return Ot(o)&&Ot(a)?c.createElement(Ic,{width:o,height:a},e.children):c.createElement(Dc,jc({},e,{width:n,height:i,ref:t}))});function Cc(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var zc=()=>{var e,t=cc(),r=ri(oc),n=ri(sc),i=null===(e=ri(uc))||void 0===e?void 0:e.padding;return t&&n&&i?{width:n.width-i.left-i.right,height:n.height-i.top-i.bottom,x:i.left,y:i.top}:r},Lc={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},Rc=()=>{var e;return null!==(e=ri(ic))&&void 0!==e?e:Lc},Bc=()=>ri(Ul),$c=()=>ri(Wl),Vc=e=>e.layout.layoutType,Kc=()=>ri(Vc),Fc=()=>{var e=Kc();if("horizontal"===e||"vertical"===e)return e},Uc=e=>{var t=e.layout.layoutType;if("centric"===t||"radial"===t)return t},Wc=e=>{var t=Qn(),r=cc(),{width:n,height:i}=e,o=Tc(),a=n,l=i;return o&&(a=o.width>0?o.width:n,l=o.height>0?o.height:i),b(()=>{!r&&jl(a)&&jl(l)&&t(xl({width:a,height:l}))},[t,r,a,l]),null},Hc=Symbol.for("immer-nothing"),qc=Symbol.for("immer-draftable"),Yc=Symbol.for("immer-state"),Gc="production"!==process.env.NODE_ENV?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function Xc(e,...t){if("production"!==process.env.NODE_ENV){const r=Gc[e],n="function"==typeof r?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Zc=Object.getPrototypeOf;function Qc(e){return!!e&&!!e[Yc]}function Jc(e){return!!e&&(ru(e)||Array.isArray(e)||!!e[qc]||!!e.constructor?.[qc]||lu(e)||cu(e))}var eu=Object.prototype.constructor.toString(),tu=new WeakMap;function ru(e){if(!e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);if(null===t||t===Object.prototype)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if("function"!=typeof r)return!1;let n=tu.get(r);return void 0===n&&(n=Function.toString.call(r),tu.set(r,n)),n===eu}function nu(e,t,r=!0){0===iu(e)?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function iu(e){const t=e[Yc];return t?t.type_:Array.isArray(e)?1:lu(e)?2:cu(e)?3:0}function ou(e,t){return 2===iu(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function au(e,t,r){const n=iu(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function lu(e){return e instanceof Map}function cu(e){return e instanceof Set}function uu(e){return e.copy_||e.base_}function su(e,t){if(lu(e))return new Map(e);if(cu(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=ru(e);if(!0===t||"class_only"===t&&!r){const t=Object.getOwnPropertyDescriptors(e);delete t[Yc];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){const i=r[n],o=t[i];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[i]})}return Object.create(Zc(e),t)}{const t=Zc(e);if(null!==t&&r)return{...e};const n=Object.create(t);return Object.assign(n,e)}}function fu(e,t=!1){return pu(e)||Qc(e)||!Jc(e)||(iu(e)>1&&Object.defineProperties(e,{set:du,add:du,clear:du,delete:du}),Object.freeze(e),t&&Object.values(e).forEach(e=>fu(e,!0))),e}var du={value:function(){Xc(2)}};function pu(e){return null===e||"object"!=typeof e||Object.isFrozen(e)}var hu,yu={};function vu(e){const t=yu[e];return t||Xc(0,e),t}function mu(){return hu}function gu(e,t){t&&(vu("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function bu(e){wu(e),e.drafts_.forEach(Ou),e.drafts_=null}function wu(e){e===hu&&(hu=e.parent_)}function xu(e){return hu={drafts_:[],parent_:hu,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Ou(e){const t=e[Yc];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function Eu(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return void 0!==e&&e!==r?(r[Yc].modified_&&(bu(t),Xc(4)),Jc(e)&&(e=Su(t,e),t.parent_||ju(t,e)),t.patches_&&vu("Patches").generateReplacementPatches_(r[Yc].base_,e,t.patches_,t.inversePatches_)):e=Su(t,r,[]),bu(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Hc?e:void 0}function Su(e,t,r){if(pu(t))return t;const n=e.immer_.shouldUseStrictIteration(),i=t[Yc];if(!i)return nu(t,(n,o)=>Pu(e,i,t,n,o,r),n),t;if(i.scope_!==e)return t;if(!i.modified_)return ju(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const t=i.copy_;let o=t,a=!1;3===i.type_&&(o=new Set(t),t.clear(),a=!0),nu(o,(n,o)=>Pu(e,i,t,n,o,r,a),n),ju(e,t,!1),r&&e.patches_&&vu("Patches").generatePatches_(i,r,e.patches_,e.inversePatches_)}return i.copy_}function Pu(e,t,r,n,i,o,a){if(null==i)return;if("object"!=typeof i&&!a)return;const l=pu(i);if(!l||a){if("production"!==process.env.NODE_ENV&&i===r&&Xc(5),Qc(i)){const a=Su(e,i,o&&t&&3!==t.type_&&!ou(t.assigned_,n)?o.concat(n):void 0);if(au(r,n,a),!Qc(a))return;e.canAutoFreeze_=!1}else a&&r.add(i);if(Jc(i)&&!l){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;if(t&&t.base_&&t.base_[n]===i&&l)return;Su(e,i),t&&t.scope_.parent_||"symbol"==typeof n||!(lu(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))||ju(e,i)}}}function ju(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&fu(t,r)}var Au={get(e,t){if(t===Yc)return e;const r=uu(e);if(!ou(r,t))return function(e,t,r){const n=Mu(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}(e,r,t);const n=r[t];return e.finalized_||!Jc(n)?n:n===ku(e.base_,t)?(Tu(e),e.copy_[t]=Du(n,e)):n},has:(e,t)=>t in uu(e),ownKeys:e=>Reflect.ownKeys(uu(e)),set(e,t,r){const n=Mu(uu(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const n=ku(uu(e),t),a=n?.[Yc];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(((i=r)===(o=n)?0!==i||1/i==1/o:i!=i&&o!=o)&&(void 0!==r||ou(e.base_,t)))return!0;Tu(e),Iu(e)}var i,o;return e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==ku(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Tu(e),Iu(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const r=uu(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){Xc(11)},getPrototypeOf:e=>Zc(e.base_),setPrototypeOf(){Xc(12)}},_u={};function ku(e,t){const r=e[Yc];return(r?uu(r):e)[t]}function Mu(e,t){if(!(t in e))return;let r=Zc(e);for(;r;){const e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Zc(r)}}function Iu(e){e.modified_||(e.modified_=!0,e.parent_&&Iu(e.parent_))}function Tu(e){e.copy_||(e.copy_=su(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function Du(e,t){const r=lu(e)?vu("MapSet").proxyMap_(e,t):cu(e)?vu("MapSet").proxySet_(e,t):function(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:mu(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,o=Au;r&&(i=[n],o=_u);const{revoke:a,proxy:l}=Proxy.revocable(i,o);return n.draft_=l,n.revoke_=a,l}(e,t);return(t?t.scope_:mu()).drafts_.push(r),r}function Nu(e){if(!Jc(e)||pu(e))return e;const t=e[Yc];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=su(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=su(e,!0);return nu(r,(e,t)=>{au(r,e,Nu(t))},n),t&&(t.finalized_=!1),r}nu(Au,(e,t)=>{_u[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),_u.deleteProperty=function(e,t){return"production"!==process.env.NODE_ENV&&isNaN(parseInt(t))&&Xc(13),_u.set.call(this,e,t,void 0)},_u.set=function(e,t,r){return"production"!==process.env.NODE_ENV&&"length"!==t&&isNaN(parseInt(t))&&Xc(14),Au.set.call(this,e[0],t,r,e[0])},new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(e,t,r)=>{if("function"==typeof e&&"function"!=typeof t){const r=t;t=e;const n=this;return function(e=r,...i){return n.produce(e,e=>t.call(this,e,...i))}}let n;if("function"!=typeof t&&Xc(6),void 0!==r&&"function"!=typeof r&&Xc(7),Jc(e)){const i=xu(this),o=Du(e,void 0);let a=!0;try{n=t(o),a=!1}finally{a?bu(i):wu(i)}return gu(i,r),Eu(n,i)}if(!e||"object"!=typeof e){if(n=t(e),void 0===n&&(n=e),n===Hc&&(n=void 0),this.autoFreeze_&&fu(n,!0),r){const t=[],i=[];vu("Patches").generateReplacementPatches_(e,n,t,i),r(t,i)}return n}Xc(1,e)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...r)=>this.produceWithPatches(t,t=>e(t,...r));let r,n;return[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),"boolean"==typeof e?.useStrictIteration&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){var t;Jc(e)||Xc(8),Qc(e)&&(Qc(t=e)||Xc(10,t),e=Nu(t));const r=xu(this),n=Du(e,void 0);return n[Yc].isManual_=!0,wu(r),n}finishDraft(e,t){const r=e&&e[Yc];r&&r.isManual_||Xc(9);const{scope_:n}=r;return gu(n,t),Eu(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));const n=vu("Patches").applyPatches_;return Qc(e)?n(e,t):this.produce(e,e=>n(e,t))}};var Cu,zu,Lu,Ru=$a({name:"legend",initialState:{settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:Ia()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,i=ca(e).payload.indexOf(r);i>-1&&(e.payload[i]=n)},prepare:Ia()},removeLegendPayload:{reducer(e,t){var r=ca(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:Ia()}}}),{setLegendSize:Bu,setLegendSettings:$u,addLegendPayload:Vu,replaceLegendPayload:Ku,removeLegendPayload:Fu}=Ru.actions,Uu=Ru.reducer,Wu={},Hu={};Lu||(Lu=1,"production"===process.env.NODE_ENV?function(){if(Cu)return Wu;Cu=1;var e="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},t=u.useSyncExternalStore,r=u.useRef,n=u.useEffect,i=u.useMemo,o=u.useDebugValue;Wu.useSyncExternalStoreWithSelector=function(a,l,c,u,s){var f=r(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=i(function(){function t(t){if(!i){if(i=!0,r=t,t=u(t),void 0!==s&&d.hasValue){var o=d.value;if(s(o,t))return n=o}return n=t}if(o=n,e(r,t))return o;var a=u(t);return void 0!==s&&s(o,a)?(r=t,o):(r=t,n=a)}var r,n,i=!1,o=void 0===c?null:c;return[function(){return t(l())},null===o?void 0:function(){return t(o())}]},[l,c,u,s]);var p=t(a,f[0],f[1]);return n(function(){d.hasValue=!0,d.value=p},[p]),o(p),p}}():zu||(zu=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var e="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},t=u.useSyncExternalStore,r=u.useRef,n=u.useEffect,i=u.useMemo,o=u.useDebugValue;Hu.useSyncExternalStoreWithSelector=function(a,l,c,u,s){var f=r(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=i(function(){function t(t){if(!i){if(i=!0,r=t,t=u(t),void 0!==s&&d.hasValue){var o=d.value;if(s(o,t))return n=o}return n=t}if(o=n,e(r,t))return o;var a=u(t);return void 0!==s&&s(o,a)?(r=t,o):(r=t,n=a)}var r,n,i=!1,o=void 0===c?null:c;return[function(){return t(l())},null===o?void 0:function(){return t(o())}]},[l,c,u,s]);var p=t(a,f[0],f[1]);return n(function(){d.hasValue=!0,d.value=p},[p]),o(p),p},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()));var qu={notify(){},get:()=>[]},Yu=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),Gu=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),Xu=(()=>Yu||Gu?c.useLayoutEffect:c.useEffect)();function Zu(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Qu(e,t){if(Zu(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!Zu(e[r[n]],t[r[n]]))return!1;return!0}var Ju=Symbol.for("react-redux-context"),es="undefined"!=typeof globalThis?globalThis:{};function ts(){if(!c.createContext)return{};const e=es[Ju]??=new Map;let t=e.get(c.createContext);return t||(t=c.createContext(null),"production"!==process.env.NODE_ENV&&(t.displayName="ReactRedux"),e.set(c.createContext,t)),t}var rs=ts(),ns=function(e){const{children:t,context:r,serverState:n,store:i}=e,o=c.useMemo(()=>{const t=function(e){let t,r=qu,n=0,i=!1;function o(){c.onStateChange&&c.onStateChange()}function a(){n++,t||(t=e.subscribe(o),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){(()=>{let t=e;for(;t;)t.callback(),t=t.next})()},get(){const t=[];let r=e;for(;r;)t.push(r),r=r.next;return t},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){n&&null!==e&&(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}())}function l(){n--,t&&0===n&&(t(),t=void 0,r.clear(),r=qu)}const c={addNestedSub:function(e){a();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,a())},tryUnsubscribe:function(){i&&(i=!1,l())},getListeners:()=>r};return c}(i),r={store:i,subscription:t,getServerState:n?()=>n:void 0};if("production"===process.env.NODE_ENV)return r;{const{identityFunctionCheck:t="once",stabilityCheck:n="once"}=e;return Object.assign(r,{stabilityCheck:n,identityFunctionCheck:t})}},[i,n]),a=c.useMemo(()=>i.getState(),[i]);return Xu(()=>{const{subscription:e}=o;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),a!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[o,a]),c.createElement((r||rs).Provider,{value:o},t)},is=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function os(e,t){return null==e&&null==t||("number"==typeof e&&"number"==typeof t?e===t||e!=e&&t!=t:e===t)}function as(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(is.has(n)){if(null==e[n]&&null==t[n])continue;if(!Qu(e[n],t[n]))return!1}else if(!os(e[n],t[n]))return!1;return!0}var ls=["contextPayload"];function cs(){return cs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cs.apply(null,arguments)}function us(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ss(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?us(Object(r),!0).forEach(function(t){fs(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):us(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function fs(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ds(e){return e.value}function ps(e){var{contextPayload:t}=e,r=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,ls),n=Cn(t,e.payloadUniqBy,ds),i=ss(ss({},r),{},{payload:n});return c.isValidElement(e.content)?c.cloneElement(e.content,i):c.createElement("function"==typeof e.content?e.content:ir,i)}function hs(e){var t=Qn();return b(()=>{t($u(e))},[t,e]),null}function ys(e){var t=Qn();return b(()=>(t(Bu(e)),()=>{t(Bu({width:0,height:0}))}),[t,e]),null}var vs={align:"center",iconSize:14,inactiveColor:"#ccc",itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"};function ms(e){var t=qt(e,vs),r=ri(Bi),n=d(U),i=ri(e=>e.layout.margin),{width:o,height:a,wrapperStyle:l,portal:u}=t,[s,f]=$i([r]),p=Bc(),h=$c();if(null==p||null==h)return null;var y,v,m=(v=a,"vertical"===(y=t.layout)&&null!=v?{height:v}:"horizontal"===y?{width:o||p-((null==i?void 0:i.left)||0)-((null==i?void 0:i.right)||0)}:null),g=u?l:ss(ss({position:"absolute",width:(null==m?void 0:m.width)||o||"auto",height:(null==m?void 0:m.height)||a||"auto"},function(e,t,r,n,i,o){var a,l,{layout:c,align:u,verticalAlign:s}=t;return(!e||null==e.left&&null==e.right)&&(a="center"===u&&"vertical"===c?{left:((n||0)-o.width)/2}:"right"===u?{right:r&&r.right||0}:{left:r&&r.left||0}),(!e||null==e.top&&null==e.bottom)&&(l="middle"===s?{top:((i||0)-o.height)/2}:"bottom"===s?{bottom:r&&r.bottom||0}:{top:r&&r.top||0}),ss(ss({},a),l)}(l,t,i,p,h,s)),l),b=null!=u?u:n;if(null==b||null==r)return null;var w=c.createElement("div",{className:"recharts-legend-wrapper",style:g,ref:f},c.createElement(hs,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!u&&c.createElement(ys,{width:s.width,height:s.height}),c.createElement(ps,cs({},t,m,{margin:i,chartWidth:p,chartHeight:h,contextPayload:r})));return A(w,b)}var gs=c.memo(ms,as);function bs(){return bs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bs.apply(null,arguments)}function ws(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function xs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ws(Object(r),!0).forEach(function(t){Os(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ws(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Os(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Es(e){return Array.isArray(e)&&Et(e[0])&&Et(e[1])?e.join(" ~ "):e}gs.displayName="Legend";var Ss={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1},Ps=e=>{var{separator:t=Ss.separator,contentStyle:r,itemStyle:n,labelStyle:i=Ss.labelStyle,payload:o,formatter:a,itemSorter:l,wrapperClassName:u,labelClassName:s,label:f,labelFormatter:d,accessibilityLayer:p=Ss.accessibilityLayer}=e,h=xs(xs({},Ss.contentStyle),r),y=xs({margin:0},i),v=!Mt(f),m=v?f:"",g=k("recharts-default-tooltip",u),b=k("recharts-tooltip-label",s);return v&&d&&null!=o&&(m=d(f,o)),c.createElement("div",bs({className:g,style:h},p?{role:"status","aria-live":"assertive"}:{}),c.createElement("p",{className:b,style:y},c.isValidElement(m)?m:"".concat(m)),(()=>{if(o&&o.length){var e=function(e,t){return null==t?e:Li(e,t)}(o,l),r=e.map((e,r)=>{if(!e||"none"===e.type)return null;var i=e.formatter||a||Es,{value:l,name:u}=e,s=l,f=u;if(i){var d=i(l,u,e,r,o);if(Array.isArray(d))[s,f]=d;else{if(null==d)return null;s=d}}var p=xs(xs({},Ss.itemStyle),{},{color:e.color||Ss.itemStyle.color},n);return c.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(r),style:p},Et(f)?c.createElement("span",{className:"recharts-tooltip-item-name"},f):null,Et(f)?c.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,c.createElement("span",{className:"recharts-tooltip-item-value"},s),c.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))});return c.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},r)}return null})())},js="recharts-tooltip-wrapper",As={visibility:"hidden"};function _s(e){var{coordinate:t,translateX:r,translateY:n}=e;return k(js,{["".concat(js,"-right")]:Ot(r)&&t&&Ot(t.x)&&r>=t.x,["".concat(js,"-left")]:Ot(r)&&t&&Ot(t.x)&&r<t.x,["".concat(js,"-bottom")]:Ot(n)&&t&&Ot(t.y)&&n>=t.y,["".concat(js,"-top")]:Ot(n)&&t&&Ot(t.y)&&n<t.y})}function ks(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offset:i,position:o,reverseDirection:a,tooltipDimension:l,viewBox:c,viewBoxDimension:u}=e;if(o&&Ot(o[n]))return o[n];var s=r[n]-l-(i>0?i:0),f=r[n]+i;if(t[n])return a[n]?s:f;var d=c[n];return null==d?0:a[n]?s<d?Math.max(f,d):Math.max(s,d):null==u?0:f+l>d+u?Math.max(s,d):Math.max(f,d)}var Ms=!("undefined"!=typeof window&&window.document&&Boolean(window.document.createElement)&&window.setTimeout);function Is(){var[e,t]=y(()=>!Ms&&!!window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches);return b(()=>{if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion: reduce)"),r=()=>{t(e.matches)};return e.addEventListener("change",r),()=>{e.removeEventListener("change",r)}}},[]),e}function Ts(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ds(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ts(Object(r),!0).forEach(function(t){Ns(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ts(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ns(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cs(e){if(!e.prefersReducedMotion||"auto"!==e.isAnimationActive)return e.isAnimationActive&&e.active?"transform ".concat(e.animationDuration,"ms ").concat(e.animationEasing):void 0}function zs(e){var t,r,n,i,o,a,l=Is(),[u,s]=c.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));c.useEffect(()=>{var t=t=>{var r,n,i,o;"Escape"===t.key&&s({dismissed:!0,dismissedAtCoordinate:{x:null!==(r=null===(n=e.coordinate)||void 0===n?void 0:n.x)&&void 0!==r?r:0,y:null!==(i=null===(o=e.coordinate)||void 0===o?void 0:o.y)&&void 0!==i?i:0}})};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[null===(t=e.coordinate)||void 0===t?void 0:t.x,null===(r=e.coordinate)||void 0===r?void 0:r.y]),!u.dismissed||(null!==(n=null===(i=e.coordinate)||void 0===i?void 0:i.x)&&void 0!==n?n:0)===u.dismissedAtCoordinate.x&&(null!==(o=null===(a=e.coordinate)||void 0===a?void 0:a.y)&&void 0!==o?o:0)===u.dismissedAtCoordinate.y||s(Ds(Ds({},u),{},{dismissed:!1}));var{cssClasses:f,cssProperties:d}=function(e){var t,r,n,{allowEscapeViewBox:i,coordinate:o,offsetTop:a,offsetLeft:l,position:c,reverseDirection:u,tooltipBox:s,useTranslate3d:f,viewBox:d}=e;return t=s.height>0&&s.width>0&&o?function(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}({translateX:r=ks({allowEscapeViewBox:i,coordinate:o,key:"x",offset:l,position:c,reverseDirection:u,tooltipDimension:s.width,viewBox:d,viewBoxDimension:d.width}),translateY:n=ks({allowEscapeViewBox:i,coordinate:o,key:"y",offset:a,position:c,reverseDirection:u,tooltipDimension:s.height,viewBox:d,viewBoxDimension:d.height}),useTranslate3d:f}):As,{cssProperties:t,cssClasses:_s({translateX:r,translateY:n,coordinate:o})}}({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:"number"==typeof e.offset?e.offset:e.offset.x,offsetTop:"number"==typeof e.offset?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:{height:e.lastBoundingBox.height,width:e.lastBoundingBox.width},useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),p=e.hasPortalFromProps?{}:Ds(Ds({transition:Cs({prefersReducedMotion:l,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},d),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),h=Ds(Ds({},p),{},{visibility:!u.dismissed&&e.active&&e.hasPayload?"visible":"hidden"},e.wrapperStyle);return c.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:f,style:h,ref:e.innerRef},e.children)}var Ls=c.memo(zs),Rs=()=>{var e;return null===(e=ri(e=>e.rootProps.accessibilityLayer))||void 0===e||e};function Bs(){return Bs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bs.apply(null,arguments)}function $s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Vs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$s(Object(r),!0).forEach(function(t){Ks(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$s(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ks(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Fs={curveBasisClosed:function(e){return new Te(e)},curveBasisOpen:function(e){return new De(e)},curveBasis:function(e){return new Ie(e)},curveBumpX:function(e){return new fe(e,!0)},curveBumpY:function(e){return new fe(e,!1)},curveLinearClosed:function(e){return new Ne(e)},curveLinear:ae,curveMonotoneX:function(e){return new Be(e)},curveMonotoneY:function(e){return new $e(e)},curveNatural:function(e){return new Ke(e)},curveStep:function(e){return new Ue(e,.5)},curveStepAfter:function(e){return new Ue(e,1)},curveStepBefore:function(e){return new Ue(e,0)}},Us=e=>Pl(e.x)&&Pl(e.y),Ws=e=>null!=e.base&&Us(e.base)&&Us(e),Hs=e=>e.x,qs=e=>e.y,Ys={connectNulls:!1,type:"linear"},Gs=e=>{var{className:t,points:r,path:n,pathRef:i}=e,o=Kc();if(!(r&&r.length||n))return null;var a=r&&r.length?(e=>{var{type:t=Ys.type,points:r=[],baseLine:n,layout:i,connectNulls:o=Ys.connectNulls}=e,a=((e,t)=>{if("function"==typeof e)return e;var r="curve".concat(It(e));if(("curveMonotone"===r||"curveBump"===r)&&t){var n=Fs["".concat(r).concat("vertical"===t?"Y":"X")];if(n)return n}return Fs[r]||ae})(t,i),l=o?r.filter(Us):r;if(Array.isArray(n)){var c=r.map((e,t)=>Vs(Vs({},e),{},{base:n[t]}));return("vertical"===i?se().y(qs).x1(Hs).x0(e=>e.base.x):se().x(Hs).y1(qs).y0(e=>e.base.y)).defined(Ws).curve(a)(o?c.filter(Ws):c)}return("vertical"===i&&Ot(n)?se().y(qs).x1(Hs).x0(n):Ot(n)?se().x(Hs).y1(qs).y0(n):ue().x(Hs).y(qs)).defined(Us).curve(a)(l)})({type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||o,connectNulls:e.connectNulls}):n;return c.createElement("path",Bs({},C(e),Ft(e),{className:k("recharts-curve",t),d:null===a?void 0:a,ref:i}))},Xs=["x","y","top","left","width","height","className"];function Zs(){return Zs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zs.apply(null,arguments)}function Qs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Js(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ef=(e,t,r,n,i,o)=>"M".concat(e,",").concat(i,"v").concat(n,"M").concat(o,",").concat(t,"h").concat(r),tf=e=>{var{x:t=0,y:r=0,top:n=0,left:i=0,width:o=0,height:a=0,className:l}=e,u=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qs(Object(r),!0).forEach(function(t){Js(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qs(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({x:t,y:r,top:n,left:i,width:o,height:a},function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,Xs));return Ot(t)&&Ot(r)&&Ot(o)&&Ot(a)&&Ot(n)&&Ot(i)?c.createElement("path",Zs({},L(u),{className:k("recharts-cross",l),d:ef(t,r,o,a,n,i)})):null};function rf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function nf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rf(Object(r),!0).forEach(function(t){of(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rf(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function of(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var af=(e,t,r)=>e.map(e=>{return"".concat((n=e,n.replace(/([A-Z])/g,e=>"-".concat(e.toLowerCase())))," ").concat(t,"ms ").concat(r);var n}).join(","),lf=(e,t)=>Object.keys(t).reduce((r,n)=>nf(nf({},r),{},{[n]:e(n,t[n])}),{});function cf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function uf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cf(Object(r),!0).forEach(function(t){sf(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cf(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function sf(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ff=(e,t,r)=>e+(t-e)*r,df=e=>{var{from:t,to:r}=e;return t!==r},pf=(e,t,r)=>{var n=lf((t,r)=>{if(df(r)){var[n,i]=e(r.from,r.to,r.velocity);return uf(uf({},r),{},{from:n,velocity:i})}return r},t);return r<1?lf((e,t)=>df(t)&&null!=n[e]?uf(uf({},t),{},{velocity:ff(t.velocity,n[e].velocity,r),from:ff(t.from,n[e].from,r)}):t,t):pf(e,n,r-1)};var hf=1e-4,yf=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],vf=(e,t)=>e.map((e,r)=>e*t**r).reduce((e,t)=>e+t),mf=(e,t)=>r=>{var n=yf(e,t);return vf(n,r)},gf=function(){return((e,t,r,n)=>{var i,o,a=mf(e,r),l=mf(t,n),c=(i=e,o=r,e=>{var t=[...yf(i,o).map((e,t)=>e*t).slice(1),0];return vf(t,e)}),u=e=>e>1?1:e<0?0:e,s=e=>{for(var t=e>1?1:e,r=t,n=0;n<8;++n){var i=a(r)-t,o=c(r);if(Math.abs(i-t)<hf||o<hf)return l(r);r=u(r-i/o)}return l(r)};return s.isStepper=!1,s})(...function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length)switch(t[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:var n=(e=>{var t,r=e.split("(");if(2!==r.length||"cubic-bezier"!==r[0])return null;var n=null===(t=r[1])||void 0===t||null===(t=t.split(")")[0])||void 0===t?void 0:t.split(",");if(null==n||4!==n.length)return null;var i=n.map(e=>parseFloat(e));return[i[0],i[1],i[2],i[3]]})(t[0]);if(n)return n}return 4===t.length?t:[0,0,1,1]}(...arguments))};class bf{setTimeout(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=performance.now(),n=null,i=o=>{o-r>=t?e(o):"function"==typeof requestAnimationFrame&&(n=requestAnimationFrame(i))};return n=requestAnimationFrame(i),()=>{null!=n&&cancelAnimationFrame(n)}}}function wf(){return e=new bf,t=()=>null,r=!1,n=null,i=o=>{if(!r){if(Array.isArray(o)){if(!o.length)return;var a=o,[l,...c]=a;return"number"==typeof l?void(n=e.setTimeout(i.bind(null,c),l)):(i(l),void(n=e.setTimeout(i.bind(null,c))))}"string"==typeof o&&t(o),"object"==typeof o&&t(o),"function"==typeof o&&o()}},{stop:()=>{r=!0},start:e=>{r=!1,n&&(n(),n=null),i(e)},subscribe:e=>(t=e,()=>{t=()=>null}),getTimeoutController:()=>e};var e,t,r,n,i}var xf=p(wf),Of={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},Ef={t:0},Sf={t:1};function Pf(e){var t,r,n,i=qt(e,Of),{isActive:o,canBegin:a,duration:l,easing:c,begin:u,onAnimationEnd:s,onAnimationStart:f,children:p}=i,v=Is(),g="auto"===o?!Ms&&!v:o,w=(t=i.animationId,r=i.animationManager,n=d(xf),h(()=>null!=r?r:n(t),[t,r,n])),[x,O]=y(g?Ef:Sf),E=m(null);return b(()=>{g||O(Sf)},[g]),b(()=>{if(!g||!a)return Dt;var e=((e,t,r,n,i,o)=>{var a,l=(a=t,[Object.keys(e),Object.keys(a)].reduce((e,t)=>e.filter(e=>t.includes(e))));return null==r?()=>(i(uf(uf({},e),t)),()=>{}):!0===r.isStepper?function(e,t,r,n,i,o){var a,l=n.reduce((r,n)=>uf(uf({},r),{},{[n]:{from:e[n],velocity:0,to:t[n]}}),{}),c=null,u=n=>{a||(a=n),l=pf(r,l,(n-a)/r.dt),i(uf(uf(uf({},e),t),lf((e,t)=>t.from,l))),a=n,Object.values(l).filter(df).length&&(c=o.setTimeout(u))};return()=>(c=o.setTimeout(u),()=>{var e;null===(e=c)||void 0===e||e()})}(e,t,r,l,i,o):function(e,t,r,n,i,o,a){var l,c=null,u=i.reduce((r,n)=>{var i=e[n],o=t[n];return null==i||null==o?r:uf(uf({},r),{},{[n]:[i,o]})},{}),s=i=>{l||(l=i);var f=(i-l)/n,d=lf((e,t)=>ff(...t,r(f)),u);if(o(uf(uf(uf({},e),t),d)),f<1)c=a.setTimeout(s);else{var p=lf((e,t)=>ff(...t,r(1)),u);o(uf(uf(uf({},e),t),p))}};return()=>(c=a.setTimeout(s),()=>{var e;null===(e=c)||void 0===e||e()})}(e,t,r,n,l,i,o)})(Ef,Sf,(e=>{if("string"==typeof e)switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return gf(e);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{stiff:t=100,damping:r=8,dt:n=17}=e,i=(e,i,o)=>{var a=o+(-(e-i)*t-o*r)*n/1e3,l=o*n/1e3+e;return Math.abs(l-i)<hf&&Math.abs(a)<hf?[i,0]:[l,a]};return i.isStepper=!0,i.dt=n,i}();default:if("cubic-bezier"===e.split("(")[0])return gf(e)}return"function"==typeof e?e:null})(c),l,O,w.getTimeoutController());return w.start([f,u,()=>{E.current=e()},l,s]),()=>{w.stop(),E.current&&E.current(),s()}},[g,a,l,c,u,f,s,w]),p(x.t)}function jf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"animation-",r=m(Pt(t)),n=m(e);return n.current!==e&&(r.current=Pt(t),n.current=e),r.current}var Af,_f,kf,Mf,If,Tf,Df,Nf,Cf,zf,Lf=["radius"],Rf=["radius"];function Bf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function $f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bf(Object(r),!0).forEach(function(t){Vf(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bf(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Vf(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kf(){return Kf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kf.apply(null,arguments)}function Ff(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Uf(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Wf=(e,t,r,n,i)=>{var o,a=mt(r),l=mt(n),c=Math.min(Math.abs(a)/2,Math.abs(l)/2),u=l>=0?1:-1,s=a>=0?1:-1,f=l>=0&&a>=0||l<0&&a<0?1:0;if(c>0&&Array.isArray(i)){for(var d=[0,0,0,0],p=0;p<4;p++){var h,y=null!==(h=i[p])&&void 0!==h?h:0;d[p]=y>c?c:y}o=gt(Af||(Af=Uf(["M",",",""])),e,t+u*d[0]),d[0]>0&&(o+=gt(_f||(_f=Uf(["A ",",",",0,0,",",",",",""])),d[0],d[0],f,e+s*d[0],t)),o+=gt(kf||(kf=Uf(["L ",",",""])),e+r-s*d[1],t),d[1]>0&&(o+=gt(Mf||(Mf=Uf(["A ",",",",0,0,",",\n ",",",""])),d[1],d[1],f,e+r,t+u*d[1])),o+=gt(If||(If=Uf(["L ",",",""])),e+r,t+n-u*d[2]),d[2]>0&&(o+=gt(Tf||(Tf=Uf(["A ",",",",0,0,",",\n ",",",""])),d[2],d[2],f,e+r-s*d[2],t+n)),o+=gt(Df||(Df=Uf(["L ",",",""])),e+s*d[3],t+n),d[3]>0&&(o+=gt(Nf||(Nf=Uf(["A ",",",",0,0,",",\n ",",",""])),d[3],d[3],f,e,t+n-u*d[3])),o+="Z"}else if(c>0&&i===+i&&i>0){var v=Math.min(c,i);o=gt(Cf||(Cf=Uf(["M ",",","\n A ",",",",0,0,",",",",","\n L ",",","\n A ",",",",0,0,",",",",","\n L ",",","\n A ",",",",0,0,",",",",","\n L ",",","\n A ",",",",0,0,",",",","," Z"])),e,t+u*v,v,v,f,e+s*v,t,e+r-s*v,t,v,v,f,e+r,t+u*v,e+r,t+n-u*v,v,v,f,e+r-s*v,t+n,e+s*v,t+n,v,v,f,e,t+n-u*v)}else o=gt(zf||(zf=Uf(["M ",","," h "," v "," h "," Z"])),e,t,r,n,-r);return o},Hf={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},qf=e=>{var t=qt(e,Hf),r=m(null),[n,i]=y(-1);b(()=>{if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&i(e)}catch(e){}},[]);var{x:o,y:a,width:l,height:u,radius:s,className:f}=t,{animationEasing:d,animationDuration:p,animationBegin:v,isAnimationActive:g,isUpdateAnimationActive:w}=t,x=m(l),O=m(u),E=m(o),S=m(a),P=jf(h(()=>({x:o,y:a,width:l,height:u,radius:s}),[o,a,l,u,s]),"rectangle-");if(o!==+o||a!==+a||l!==+l||u!==+u||0===l||0===u)return null;var j=k("recharts-rectangle",f);if(!w){var A=Ff(L(t),Lf);return c.createElement("path",Kf({},A,{x:mt(o),y:mt(a),width:mt(l),height:mt(u),radius:"number"==typeof s?s:void 0,className:j,d:Wf(o,a,l,u,s)}))}var _=x.current,M=O.current,I=E.current,T=S.current,D="0px ".concat(-1===n?1:n,"px"),N="".concat(n,"px ").concat(n,"px"),C=af(["strokeDasharray"],p,"string"==typeof d?d:Hf.animationEasing);return c.createElement(Pf,{animationId:P,key:P,canBegin:n>0,duration:p,easing:d,isActive:w,begin:v},e=>{var n,i=_t(_,l,e),f=_t(M,u,e),d=_t(I,o,e),p=_t(T,a,e);r.current&&(x.current=i,O.current=f,E.current=d,S.current=p),n=g?e>0?{transition:C,strokeDasharray:N}:{strokeDasharray:D}:{strokeDasharray:N};var h=Ff(L(t),Rf);return c.createElement("path",Kf({},h,{radius:"number"==typeof s?s:void 0,className:j,d:Wf(d,p,i,f,s),ref:r,style:$f($f({},n),t.style)}))})};function Yf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Gf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yf(Object(r),!0).forEach(function(t){Xf(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yf(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Xf(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Zf,Qf,Jf,ed,td,rd,nd,id=Math.PI/180,od=e=>180*e/Math.PI,ad=(e,t,r,n)=>({x:e+Math.cos(-id*n)*r,y:t+Math.sin(-id*n)*r}),ld=(e,t)=>{var{startAngle:r,endAngle:n}=t,i=Math.floor(r/360),o=Math.floor(n/360);return e+360*Math.min(i,o)};function cd(e){var{cx:t,cy:r,radius:n,startAngle:i,endAngle:o}=e;return{points:[ad(t,r,n,i),ad(t,r,n,o)],cx:t,cy:r,radius:n,startAngle:i,endAngle:o}}function ud(){return ud=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ud.apply(null,arguments)}function sd(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var fd=e=>{var{cx:t,cy:r,radius:n,angle:i,sign:o,isExternal:a,cornerRadius:l,cornerIsExternal:c}=e,u=l*(a?1:-1)+n,s=Math.asin(l/u)/id,f=c?i:i+o*s,d=c?i-o*s:i;return{center:ad(t,r,u,f),circleTangency:ad(t,r,n,f),lineTangency:ad(t,r,u*Math.cos(s*id),d),theta:s}},dd=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:o,endAngle:a}=e,l=((e,t)=>bt(t-e)*Math.min(Math.abs(t-e),359.999))(o,a),c=o+l,u=ad(t,r,i,o),s=ad(t,r,i,c),f=gt(Zf||(Zf=sd(["M ",",","\n A ",",",",0,\n ",",",",\n ",",","\n "])),u.x,u.y,i,i,+(Math.abs(l)>180),+(o>c),s.x,s.y);if(n>0){var d=ad(t,r,n,o),p=ad(t,r,n,c);f+=gt(Qf||(Qf=sd(["L ",",","\n A ",",",",0,\n ",",",",\n ",","," Z"])),p.x,p.y,n,n,+(Math.abs(l)>180),+(o<=c),d.x,d.y)}else f+=gt(Jf||(Jf=sd(["L ",","," Z"])),t,r);return f},pd={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},hd=e=>{var t=qt(e,pd),{cx:r,cy:n,innerRadius:i,outerRadius:o,cornerRadius:a,forceCornerRadius:l,cornerIsExternal:u,startAngle:s,endAngle:f,className:d}=t;if(o<i||s===f)return null;var p,h=k("recharts-sector",d),y=o-i,v=jt(a,y,0,!0);return p=v>0&&Math.abs(s-f)<360?(e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,cornerRadius:o,forceCornerRadius:a,cornerIsExternal:l,startAngle:c,endAngle:u}=e,s=bt(u-c),{circleTangency:f,lineTangency:d,theta:p}=fd({cx:t,cy:r,radius:i,angle:c,sign:s,cornerRadius:o,cornerIsExternal:l}),{circleTangency:h,lineTangency:y,theta:v}=fd({cx:t,cy:r,radius:i,angle:u,sign:-s,cornerRadius:o,cornerIsExternal:l}),m=l?Math.abs(c-u):Math.abs(c-u)-p-v;if(m<0)return a?gt(ed||(ed=sd(["M ",",","\n a",",",",0,0,1,",",0\n a",",",",0,0,1,",",0\n "])),d.x,d.y,o,o,2*o,o,o,2*-o):dd({cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:c,endAngle:u});var g=gt(td||(td=sd(["M ",",","\n A",",",",0,0,",",",",","\n A",",",",0,",",",",",",","\n A",",",",0,0,",",",",","\n "])),d.x,d.y,o,o,+(s<0),f.x,f.y,i,i,+(m>180),+(s<0),h.x,h.y,o,o,+(s<0),y.x,y.y);if(n>0){var{circleTangency:b,lineTangency:w,theta:x}=fd({cx:t,cy:r,radius:n,angle:c,sign:s,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),{circleTangency:O,lineTangency:E,theta:S}=fd({cx:t,cy:r,radius:n,angle:u,sign:-s,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),P=l?Math.abs(c-u):Math.abs(c-u)-x-S;if(P<0&&0===o)return"".concat(g,"L").concat(t,",").concat(r,"Z");g+=gt(rd||(rd=sd(["L",",","\n A",",",",0,0,",",",",","\n A",",",",0,",",",",",",","\n A",",",",0,0,",",",",","Z"])),E.x,E.y,o,o,+(s<0),O.x,O.y,n,n,+(P>180),+(s>0),b.x,b.y,o,o,+(s<0),w.x,w.y)}else g+=gt(nd||(nd=sd(["L",",","Z"])),t,r);return g})({cx:r,cy:n,innerRadius:i,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:s,endAngle:f}):dd({cx:r,cy:n,innerRadius:i,outerRadius:o,startAngle:s,endAngle:f}),c.createElement("path",ud({},L(t),{className:h,d:p}))};function yd(e,t,r){if("horizontal"===e)return[{x:t.x,y:r.top},{x:t.x,y:r.top+r.height}];if("vertical"===e)return[{x:r.left,y:t.y},{x:r.left+r.width,y:t.y}];if(Kt(t)){if("centric"===e){var{cx:n,cy:i,innerRadius:o,outerRadius:a,angle:l}=t,c=ad(n,i,o,l),u=ad(n,i,a,l);return[{x:c.x,y:c.y},{x:u.x,y:u.y}]}return cd(t)}}var vd,md,gd,bd,wd,xd={},Od={},Ed={};function Sd(){return vd||(vd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Si();e.toNumber=function(e){return t.isSymbol(e)?NaN:Number(e)}}(Ed)),Ed}function Pd(){return md||(md=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Sd();e.toFinite=function(e){return e?(e=t.toNumber(e))===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e==e?e:0:0===e?e:0}}(Od)),Od}function jd(){return wd?bd:(wd=1,bd=(gd||(gd=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ci(),r=Pd();e.range=function(e,n,i){i&&"number"!=typeof i&&t.isIterateeCall(e,n,i)&&(n=i=void 0),e=r.toFinite(e),void 0===n?(n=e,e=0):n=r.toFinite(n),i=void 0===i?e<n?1:-1:r.toFinite(i);const o=Math.max(Math.ceil((n-e)/(i||1)),0),a=new Array(o);for(let t=0;t<o;t++)a[t]=e,e+=i;return a}}(xd)),xd).range)}const Ad=r(jd());var _d=e=>e.chartData,kd=pi([_d],e=>({chartData:e.chartData,computedData:e.computedData,dataEndIndex:null!=e.chartData?e.chartData.length-1:0,dataStartIndex:0})),Md=(e,t,r,n)=>n?kd(e):_d(e),Id=(e,t,r)=>r?kd(e):_d(e),Td=pi([Md],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return null!=t?t.slice(r,n+1):[]});pi([kd],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return null!=t?t.slice(r,n+1):[]});var Dd=pi([_d],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return null!=t?t.slice(r,n+1):[]});function Nd(e){if(Array.isArray(e)&&2===e.length){var[t,r]=e;if(Pl(t)&&Pl(r))return!0}return!1}function Cd(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function zd(e,t){if(t&&"function"!=typeof e&&Array.isArray(e)&&2===e.length){var r,n,[i,o]=e;if(Pl(i))r=i;else if("function"==typeof i)return;if(Pl(o))n=o;else if("function"==typeof o)return;var a=[r,n];if(Nd(a))return a}}var Ld,Rd=1e9,Bd=!0,$d="[DecimalError] ",Vd=$d+"Invalid argument: ",Kd=$d+"Exponent out of range: ",Fd=Math.floor,Ud=Math.pow,Wd=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Hd=1e7,qd=Fd(1286742750677284.5),Yd={};function Gd(e,t){var r,n,i,o,a,l,c,u,s=e.constructor,f=s.precision;if(!e.s||!t.s)return t.s||(t=new s(e)),Bd?op(t,f):t;if(u=t.d,a=e.e,i=t.e,c=(c=e.d).slice(),o=a-i){for(o<0?(n=c,o=-o,l=u.length):(n=u,i=a,l=c.length),o>(l=(a=Math.ceil(f/7))>l?a+1:l+1)&&(o=l,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for((l=c.length)-(o=u.length)<0&&(o=l,n=u,u=c,c=n),r=0;o;)r=(c[--o]=c[o]+u[o]+r)/Hd|0,c[o]%=Hd;for(r&&(c.unshift(r),++i),l=c.length;0==c[--l];)c.pop();return t.d=c,t.e=i,Bd?op(t,f):t}function Xd(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Vd+e)}function Zd(e){var t,r,n,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)(r=7-(n=e[t]+"").length)&&(o+=rp(r)),o+=n;(r=7-(n=(a=e[t])+"").length)&&(o+=rp(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}Yd.absoluteValue=Yd.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},Yd.comparedTo=Yd.cmp=function(e){var t,r,n,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(t=0,r=(n=o.d.length)<(i=e.d.length)?n:i;t<r;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1},Yd.decimalPlaces=Yd.dp=function(){var e=this,t=e.d.length-1,r=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)r--;return r<0?0:r},Yd.dividedBy=Yd.div=function(e){return Qd(this,new this.constructor(e))},Yd.dividedToIntegerBy=Yd.idiv=function(e){var t=this.constructor;return op(Qd(this,new t(e),0,1),t.precision)},Yd.equals=Yd.eq=function(e){return!this.cmp(e)},Yd.exponent=function(){return ep(this)},Yd.greaterThan=Yd.gt=function(e){return this.cmp(e)>0},Yd.greaterThanOrEqualTo=Yd.gte=function(e){return this.cmp(e)>=0},Yd.isInteger=Yd.isint=function(){return this.e>this.d.length-2},Yd.isNegative=Yd.isneg=function(){return this.s<0},Yd.isPositive=Yd.ispos=function(){return this.s>0},Yd.isZero=function(){return 0===this.s},Yd.lessThan=Yd.lt=function(e){return this.cmp(e)<0},Yd.lessThanOrEqualTo=Yd.lte=function(e){return this.cmp(e)<1},Yd.logarithm=Yd.log=function(e){var t,r=this,n=r.constructor,i=n.precision,o=i+5;if(void 0===e)e=new n(10);else if((e=new n(e)).s<1||e.eq(Ld))throw Error($d+"NaN");if(r.s<1)throw Error($d+(r.s?"NaN":"-Infinity"));return r.eq(Ld)?new n(0):(Bd=!1,t=Qd(np(r,o),np(e,o),o),Bd=!0,op(t,i))},Yd.minus=Yd.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?ap(t,e):Gd(t,(e.s=-e.s,e))},Yd.modulo=Yd.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(!(e=new n(e)).s)throw Error($d+"NaN");return r.s?(Bd=!1,t=Qd(r,e,0,1).times(e),Bd=!0,r.minus(t)):op(new n(r),i)},Yd.naturalExponential=Yd.exp=function(){return Jd(this)},Yd.naturalLogarithm=Yd.ln=function(){return np(this)},Yd.negated=Yd.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},Yd.plus=Yd.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Gd(t,e):ap(t,(e.s=-e.s,e))},Yd.precision=Yd.sd=function(e){var t,r,n,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(Vd+e);if(t=ep(i)+1,r=7*(n=i.d.length-1)+1,n=i.d[n]){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r},Yd.squareRoot=Yd.sqrt=function(){var e,t,r,n,i,o,a,l=this,c=l.constructor;if(l.s<1){if(!l.s)return new c(0);throw Error($d+"NaN")}for(e=ep(l),Bd=!1,0==(i=Math.sqrt(+l))||i==1/0?(((t=Zd(l.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Fd((e+1)/2)-(e<0||e%2),n=new c(t=i==1/0?"5e"+e:(t=i.toExponential()).slice(0,t.indexOf("e")+1)+e)):n=new c(i.toString()),i=a=(r=c.precision)+3;;)if(n=(o=n).plus(Qd(l,o,a+2)).times(.5),Zd(o.d).slice(0,a)===(t=Zd(n.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&"4999"==t){if(op(o,r+1,0),o.times(o).eq(l)){n=o;break}}else if("9999"!=t)break;a+=4}return Bd=!0,op(n,r)},Yd.times=Yd.mul=function(e){var t,r,n,i,o,a,l,c,u,s=this,f=s.constructor,d=s.d,p=(e=new f(e)).d;if(!s.s||!e.s)return new f(0);for(e.s*=s.s,r=s.e+e.e,(c=d.length)<(u=p.length)&&(o=d,d=p,p=o,a=c,c=u,u=a),o=[],n=a=c+u;n--;)o.push(0);for(n=u;--n>=0;){for(t=0,i=c+n;i>n;)l=o[i]+p[n]*d[i-n-1]+t,o[i--]=l%Hd|0,t=l/Hd|0;o[i]=(o[i]+t)%Hd|0}for(;!o[--a];)o.pop();return t?++r:o.shift(),e.d=o,e.e=r,Bd?op(e,f.precision):e},Yd.toDecimalPlaces=Yd.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),void 0===e?r:(Xd(e,0,Rd),void 0===t?t=n.rounding:Xd(t,0,8),op(r,e+ep(r)+1,t))},Yd.toExponential=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=lp(n,!0):(Xd(e,0,Rd),void 0===t?t=i.rounding:Xd(t,0,8),r=lp(n=op(new i(n),e+1,t),!0,e+1)),r},Yd.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return void 0===e?lp(i):(Xd(e,0,Rd),void 0===t?t=o.rounding:Xd(t,0,8),r=lp((n=op(new o(i),e+ep(i)+1,t)).abs(),!1,e+ep(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)},Yd.toInteger=Yd.toint=function(){var e=this,t=e.constructor;return op(new t(e),ep(e)+1,t.rounding)},Yd.toNumber=function(){return+this},Yd.toPower=Yd.pow=function(e){var t,r,n,i,o,a=this,l=a.constructor,c=+(e=new l(e));if(!e.s)return new l(Ld);if(!(a=new l(a)).s){if(e.s<1)throw Error($d+"Infinity");return a}if(a.eq(Ld))return a;if(n=l.precision,e.eq(Ld))return op(a,n);if(o=a.s,(t=e.e)>=(r=e.d.length-1)){if((r=c<0?-c:c)<=9007199254740991){for(i=new l(Ld),t=Math.ceil(n/7+4),Bd=!1;r%2&&cp((i=i.times(a)).d,t),0!==(r=Fd(r/2));)cp((a=a.times(a)).d,t);return Bd=!0,e.s<0?new l(Ld).div(i):op(i,n)}}else if(o<0)throw Error($d+"NaN");return o=o<0&&1&e.d[Math.max(t,r)]?-1:1,a.s=1,Bd=!1,i=e.times(np(a,n+12)),Bd=!0,(i=Jd(i)).s=o,i},Yd.toPrecision=function(e,t){var r,n,i=this,o=i.constructor;return void 0===e?n=lp(i,(r=ep(i))<=o.toExpNeg||r>=o.toExpPos):(Xd(e,1,Rd),void 0===t?t=o.rounding:Xd(t,0,8),n=lp(i=op(new o(i),e,t),e<=(r=ep(i))||r<=o.toExpNeg,e)),n},Yd.toSignificantDigits=Yd.tosd=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(Xd(e,1,Rd),void 0===t?t=r.rounding:Xd(t,0,8)),op(new r(this),e,t)},Yd.toString=Yd.valueOf=Yd.val=Yd.toJSON=Yd[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ep(e),r=e.constructor;return lp(e,t<=r.toExpNeg||t>=r.toExpPos)};var Qd=function(){function e(e,t){var r,n=0,i=e.length;for(e=e.slice();i--;)e[i]=(r=e[i]*t+n)%Hd|0,n=r/Hd|0;return n&&e.unshift(n),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r){for(var n=0;r--;)e[r]-=n,e[r]=(n=e[r]<t[r]?1:0)*Hd+e[r]-t[r];for(;!e[0]&&e.length>1;)e.shift()}return function(n,i,o,a){var l,c,u,s,f,d,p,h,y,v,m,g,b,w,x,O,E,S,P=n.constructor,j=n.s==i.s?1:-1,A=n.d,_=i.d;if(!n.s)return new P(n);if(!i.s)throw Error($d+"Division by zero");for(c=n.e-i.e,E=_.length,x=A.length,h=(p=new P(j)).d=[],u=0;_[u]==(A[u]||0);)++u;if(_[u]>(A[u]||0)&&--c,(g=null==o?o=P.precision:a?o+(ep(n)-ep(i))+1:o)<0)return new P(0);if(g=g/7+2|0,u=0,1==E)for(s=0,_=_[0],g++;(u<x||s)&&g--;u++)h[u]=(b=s*Hd+(A[u]||0))/_|0,s=b%_|0;else{for((s=Hd/(_[0]+1)|0)>1&&(_=e(_,s),A=e(A,s),E=_.length,x=A.length),w=E,v=(y=A.slice(0,E)).length;v<E;)y[v++]=0;(S=_.slice()).unshift(0),O=_[0],_[1]>=Hd/2&&++O;do{s=0,(l=t(_,y,E,v))<0?(m=y[0],E!=v&&(m=m*Hd+(y[1]||0)),(s=m/O|0)>1?(s>=Hd&&(s=Hd-1),1==(l=t(f=e(_,s),y,d=f.length,v=y.length))&&(s--,r(f,E<d?S:_,d))):(0==s&&(l=s=1),f=_.slice()),(d=f.length)<v&&f.unshift(0),r(y,f,v),-1==l&&(l=t(_,y,E,v=y.length))<1&&(s++,r(y,E<v?S:_,v)),v=y.length):0===l&&(s++,y=[0]),h[u++]=s,l&&y[0]?y[v++]=A[w]||0:(y=[A[w]],v=1)}while((w++<x||void 0!==y[0])&&g--)}return h[0]||h.shift(),p.e=c,op(p,a?o+ep(p)+1:o)}}();function Jd(e,t){var r,n,i,o,a,l=0,c=0,u=e.constructor,s=u.precision;if(ep(e)>16)throw Error(Kd+ep(e));if(!e.s)return new u(Ld);for(Bd=!1,a=s,o=new u(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(a+=Math.log(Ud(2,c))/Math.LN10*2+5|0,r=n=i=new u(Ld),u.precision=a;;){if(n=op(n.times(e),a),r=r.times(++l),Zd((o=i.plus(Qd(n,r,a))).d).slice(0,a)===Zd(i.d).slice(0,a)){for(;c--;)i=op(i.times(i),a);return u.precision=s,null==t?(Bd=!0,op(i,s)):i}i=o}}function ep(e){for(var t=7*e.e,r=e.d[0];r>=10;r/=10)t++;return t}function tp(e,t,r){if(t>e.LN10.sd())throw Bd=!0,r&&(e.precision=r),Error($d+"LN10 precision limit exceeded");return op(new e(e.LN10),t)}function rp(e){for(var t="";e--;)t+="0";return t}function np(e,t){var r,n,i,o,a,l,c,u,s,f=1,d=e,p=d.d,h=d.constructor,y=h.precision;if(d.s<1)throw Error($d+(d.s?"NaN":"-Infinity"));if(d.eq(Ld))return new h(0);if(null==t?(Bd=!1,u=y):u=t,d.eq(10))return null==t&&(Bd=!0),tp(h,u);if(h.precision=u+=10,n=(r=Zd(p)).charAt(0),o=ep(d),!(Math.abs(o)<15e14))return c=tp(h,u+2,y).times(o+""),d=np(new h(n+"."+r.slice(1)),u-10).plus(c),h.precision=y,null==t?(Bd=!0,op(d,y)):d;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=Zd((d=d.times(e)).d)).charAt(0),f++;for(o=ep(d),n>1?(d=new h("0."+r),o++):d=new h(n+"."+r.slice(1)),l=a=d=Qd(d.minus(Ld),d.plus(Ld),u),s=op(d.times(d),u),i=3;;){if(a=op(a.times(s),u),Zd((c=l.plus(Qd(a,new h(i),u))).d).slice(0,u)===Zd(l.d).slice(0,u))return l=l.times(2),0!==o&&(l=l.plus(tp(h,u+2,y).times(o+""))),l=Qd(l,new h(f),u),h.precision=y,null==t?(Bd=!0,op(l,y)):l;l=c,i+=2}}function ip(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);)++n;for(i=t.length;48===t.charCodeAt(i-1);)--i;if(t=t.slice(n,i)){if(i-=n,e.e=Fd((r=r-n-1)/7),e.d=[],n=(r+1)%7,r<0&&(n+=7),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=7;n<i;)e.d.push(+t.slice(n,n+=7));n=7-(t=t.slice(n)).length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),Bd&&(e.e>qd||e.e<-qd))throw Error(Kd+r)}else e.s=0,e.e=0,e.d=[0];return e}function op(e,t,r){var n,i,o,a,l,c,u,s,f=e.d;for(a=1,o=f[0];o>=10;o/=10)a++;if((n=t-a)<0)n+=7,i=t,u=f[s=0];else{if((s=Math.ceil((n+1)/7))>=(o=f.length))return e;for(u=o=f[s],a=1;o>=10;o/=10)a++;i=(n%=7)-7+a}if(void 0!==r&&(l=u/(o=Ud(10,a-i-1))%10|0,c=t<0||void 0!==f[s+1]||u%o,c=r<4?(l||c)&&(0==r||r==(e.s<0?3:2)):l>5||5==l&&(4==r||c||6==r&&(n>0?i>0?u/Ud(10,a-i):0:f[s-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return c?(o=ep(e),f.length=1,f[0]=Ud(10,(7-(t=t-o-1)%7)%7),e.e=Fd(-t/7)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(0==n?(f.length=s,o=1,s--):(f.length=s+1,o=Ud(10,7-n),f[s]=i>0?(u/Ud(10,a-i)%Ud(10,i)|0)*o:0),c)for(;;){if(0==s){(f[0]+=o)==Hd&&(f[0]=1,++e.e);break}if(f[s]+=o,f[s]!=Hd)break;f[s--]=0,o=1}for(n=f.length;0===f[--n];)f.pop();if(Bd&&(e.e>qd||e.e<-qd))throw Error(Kd+ep(e));return e}function ap(e,t){var r,n,i,o,a,l,c,u,s,f,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Bd?op(t,p):t;if(f=t.d,n=t.e,u=e.e,c=(c=e.d).slice(),a=u-n){for((s=a<0)?(r=c,a=-a,l=f.length):(r=f,n=u,l=c.length),a>(i=Math.max(Math.ceil(p/7),l)+2)&&(a=i,r.length=1),r.reverse(),i=a;i--;)r.push(0);r.reverse()}else{for((s=(i=c.length)<(l=f.length))&&(l=i),i=0;i<l;i++)if(c[i]!=f[i]){s=c[i]<f[i];break}a=0}for(s&&(r=c,c=f,f=r,t.s=-t.s),i=f.length-(l=c.length);i>0;--i)c[l++]=0;for(i=f.length;i>a;){if(c[--i]<f[i]){for(o=i;o&&0===c[--o];)c[o]=Hd-1;--c[o],c[i]+=Hd}c[i]-=f[i]}for(;0===c[--l];)c.pop();for(;0===c[0];c.shift())--n;return c[0]?(t.d=c,t.e=n,Bd?op(t,p):t):new d(0)}function lp(e,t,r){var n,i=ep(e),o=Zd(e.d),a=o.length;return t?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+rp(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+rp(-i-1)+o,r&&(n=r-a)>0&&(o+=rp(n))):i>=a?(o+=rp(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+rp(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=rp(n))),e.s<0?"-"+o:o}function cp(e,t){if(e.length>t)return e.length=t,!0}function up(e){if(!e||"object"!=typeof e)throw Error($d+"Object expected");var t,r,n,i=["precision",1,Rd,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if(void 0!==(n=e[r=i[t]])){if(!(Fd(n)===n&&n>=i[t+1]&&n<=i[t+2]))throw Error(Vd+r+": "+n);this[r]=n}if(void 0!==(n=e[r="LN10"])){if(n!=Math.LN10)throw Error(Vd+r+": "+n);this[r]=new this(n)}return this}var sp=function e(t){var r,n,i;function o(e){var t=this;if(!(t instanceof o))return new o(e);if(t.constructor=o,e instanceof o)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(Vd+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):ip(t,e.toString())}if("string"!=typeof e)throw Error(Vd+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!Wd.test(e))throw Error(Vd+e);ip(t,e)}if(o.prototype=Yd,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=e,o.config=o.set=up,void 0===t&&(t={}),t)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<i.length;)t.hasOwnProperty(n=i[r++])||(t[n]=this[n]);return o.config(t),o}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});Ld=new sp(1);const fp=sp;function dp(e){return 0===e?1:Math.floor(new fp(e).abs().log(10).toNumber())+1}function pp(e,t,r){for(var n=new fp(e),i=0,o=[];n.lt(t)&&i<1e5;)o.push(n.toNumber()),n=n.add(r),i++;return o}var hp=e=>{var[t,r]=e,[n,i]=[t,r];return t>r&&([n,i]=[r,t]),[n,i]},yp=(e,t,r)=>{if(e.lte(0))return new fp(0);var n=dp(e.toNumber()),i=new fp(10).pow(n),o=e.div(i),a=1!==n?.05:.1,l=new fp(Math.ceil(o.div(a).toNumber())).add(r).mul(a).mul(i);return new fp(t?l.toNumber():Math.ceil(l.toNumber()))},vp=(e,t,r)=>{var n;if(e.lte(0))return new fp(0);var i=[1,2,2.5,5],o=e.toNumber(),a=Math.floor(new fp(o).abs().log(10).toNumber()),l=new fp(10).pow(a),c=e.div(l).toNumber(),u=i.findIndex(e=>e>=c-1e-10);if(-1===u&&(l=l.mul(10),u=0),(u+=r)>=i.length){var s=Math.floor(u/i.length);u%=i.length,l=l.mul(new fp(10).pow(s))}var f=null!==(n=i[u])&&void 0!==n?n:1,d=new fp(f).mul(l);return t?d:new fp(Math.ceil(d.toNumber()))},mp=function(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:yp;if(!Number.isFinite((t-e)/(r-1)))return{step:new fp(0),tickMin:new fp(0),tickMax:new fp(0)};var a,l=o(new fp(t).sub(e).div(r-1),n,i);a=e<=0&&t>=0?new fp(0):(a=new fp(e).add(t).div(2)).sub(new fp(a).mod(l));var c=Math.ceil(a.sub(e).div(l).toNumber()),u=Math.ceil(new fp(t).sub(a).div(l).toNumber()),s=c+u+1;return s>r?mp(e,t,r,n,i+1,o):(s<r&&(u=t>0?u+(r-s):u,c=t>0?c:c+(r-s)),{step:l,tickMin:a.sub(new fp(c).mul(l)),tickMax:a.add(new fp(u).mul(l))})},gp=function(e){var[t,r]=e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"auto",a=Math.max(n,2),[l,c]=hp([t,r]);if(l===-1/0||c===1/0){var u=c===1/0?[l,...Array(n-1).fill(1/0)]:[...Array(n-1).fill(-1/0),c];return t>r?u.reverse():u}if(l===c)return((e,t,r)=>{var n=new fp(1),i=new fp(e);if(!i.isint()&&r){var o=Math.abs(e);o<1?(n=new fp(10).pow(dp(e)-1),i=new fp(Math.floor(i.div(n).toNumber())).mul(n)):o>1&&(i=new fp(Math.floor(e)))}else 0===e?i=new fp(Math.floor((t-1)/2)):r||(i=new fp(Math.floor(e)));for(var a=Math.floor((t-1)/2),l=[],c=0;c<t;c++)l.push(i.add(new fp(c-a).mul(n)).toNumber());return l})(l,n,i);var s="snap125"===o?vp:yp,{step:f,tickMin:d,tickMax:p}=mp(l,c,a,i,0,s),h=pp(d,p.add(new fp(.1).mul(f)),f);return t>r?h.reverse():h},bp=function(e,t){var[r,n]=e,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"auto",[a,l]=hp([r,n]);if(a===-1/0||l===1/0)return[r,n];if(a===l)return[a];var c="snap125"===o?vp:yp,u=Math.max(t,2),s=c(new fp(l).sub(a).div(u-1),i,0),f=[...pp(new fp(a),new fp(l),s),l];return!1===i&&(f=f.map(e=>Math.round(e))),r>n?f.reverse():f},wp=e=>e.rootProps.maxBarSize,xp=e=>e.rootProps.barCategoryGap,Op=e=>e.rootProps.stackOffset,Ep=e=>e.rootProps.reverseStackOrder,Sp=e=>e.options.chartName,Pp=e=>e.rootProps.syncId,jp=e=>e.rootProps.syncMethod,Ap=e=>e.options.eventEmitter,_p={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},kp=(e,t)=>{if(e&&t)return null!=e&&e.reversed?[t[1],t[0]]:t};function Mp(e,t,r){return"auto"!==r?r:null!=e?Il(e,t)?"category":"number":void 0}function Ip(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Tp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ip(Object(r),!0).forEach(function(t){Dp(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ip(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Dp(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Np={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:0,includeHidden:!1,name:void 0,reversed:!1,scale:"auto",tick:!0,tickCount:void 0,ticks:void 0,type:"auto",unit:void 0,niceTicks:"auto"},Cp={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,dataKey:void 0,domain:void 0,id:0,includeHidden:!1,name:void 0,reversed:!1,scale:"auto",tick:!0,tickCount:5,ticks:void 0,type:"auto",unit:void 0,niceTicks:"auto"},zp=pi([(e,t)=>{if(null!=t)return e.polarAxis.angleAxis[t]},Uc],(e,t)=>{var r;if(null!=e)return e;var n=null!==(r=Mp(t,"angleAxis",Np.type))&&void 0!==r?r:"category";return Tp(Tp({},Np),{},{type:n})}),Lp=pi([(e,t)=>e.polarAxis.radiusAxis[t],Uc],(e,t)=>{var r;if(null!=e)return e;var n=null!==(r=Mp(t,"radiusAxis",Cp.type))&&void 0!==r?r:"category";return Tp(Tp({},Cp),{},{type:n})}),Rp=e=>e.polarOptions,Bp=pi([Ul,Wl,ic],function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(r.left||0)-(r.right||0)),Math.abs(t-(r.top||0)-(r.bottom||0)))/2}),$p=pi([Rp,Bp],(e,t)=>{if(null!=e)return jt(e.innerRadius,t,0)}),Vp=pi([Rp,Bp],(e,t)=>{if(null!=e)return jt(e.outerRadius,t,.8*t)}),Kp=pi([Rp],e=>{if(null==e)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]});pi([zp,Kp],kp);var Fp=pi([Bp,$p,Vp],(e,t,r)=>{if(null!=e&&null!=t&&null!=r)return[t,r]});pi([Lp,Fp],kp);var Up=pi([Vc,Rp,$p,Vp,Ul,Wl],(e,t,r,n,i,o)=>{if(("centric"===e||"radial"===e)&&null!=t&&null!=r&&null!=n){var{cx:a,cy:l,startAngle:c,endAngle:u}=t;return{cx:jt(a,i,i/2),cy:jt(l,o,o/2),innerRadius:r,outerRadius:n,startAngle:c,endAngle:u,clockWise:!1}}}),Wp=(e,t)=>t,Hp=(e,t,r)=>r;function qp(e){return null==e?void 0:e.id}function Yp(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:i,dataKey:o}=r,a=new Map;return e.forEach(e=>{var t,r=null!==(t=e.data)&&void 0!==t?t:n;if(null!=r&&0!==r.length){var l=qp(e);r.forEach((t,r)=>{var n,c=null==o||i?r:String(Ml(t,o,null)),u=Ml(t,e.dataKey,0);n=a.has(c)?a.get(c):{},Object.assign(n,{[l]:u}),a.set(c,n)})}}),Array.from(a.values())}function Gp(e){return"stackId"in e&&null!=e.stackId&&null!=e.dataKey}var Xp=(e,t)=>e===t||null!=e&&null!=t&&e[0]===t[0]&&e[1]===t[1];function Zp(e,t){return!(!Array.isArray(e)||!Array.isArray(t)||0!==e.length||0!==t.length)||e===t}var Qp=e=>{var t=Vc(e);return"horizontal"===t?"xAxis":"vertical"===t?"yAxis":"centric"===t?"angleAxis":"radiusAxis"},Jp=e=>e.tooltip.settings.axisId;function eh(e){if(null!=e){var t=e.ticks,r=e.bandwidth,n=e.range(),i=[Math.min(...n),Math.max(...n)];return{domain:()=>e.domain(),range:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(()=>i),rangeMin:()=>i[0],rangeMax:()=>i[1],isInRange(e){var t=i[0],r=i[1];return t<=r?e>=t&&e<=r:e>=r&&e<=t},bandwidth:r?()=>r.call(e):void 0,ticks:t?r=>t.call(e,r):void 0,map:(t,r)=>{var n=e(t);if(null!=n){if(e.bandwidth&&null!=r&&r.position){var i=e.bandwidth();switch(r.position){case"middle":n+=i/2;break;case"end":n+=i}}return n}}}}}function th(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function rh(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function nh(e){let t,r,n;function i(e,n,i=0,o=e.length){if(i<o){if(0!==t(n,n))return o;do{const t=i+o>>>1;r(e[t],n)<0?i=t+1:o=t}while(i<o)}return i}return 2!==e.length?(t=th,r=(t,r)=>th(e(t),r),n=(t,r)=>e(t)-r):(t=e===th||e===rh?e:ih,r=e,n=e),{left:i,center:function(e,t,r=0,o=e.length){const a=i(e,t,r,o-1);return a>r&&n(e[a-1],t)>-n(e[a],t)?a-1:a},right:function(e,n,i=0,o=e.length){if(i<o){if(0!==t(n,n))return o;do{const t=i+o>>>1;r(e[t],n)<=0?i=t+1:o=t}while(i<o)}return i}}}function ih(){return 0}function oh(e){return null===e?NaN:+e}const ah=nh(th).right;nh(oh);class lh extends Map{constructor(e,t=uh){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,r]of e)this.set(t,r)}get(e){return super.get(ch(this,e))}has(e){return super.has(ch(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}(this,e))}}function ch({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function uh(e){return null!==e&&"object"==typeof e?e.valueOf():e}function sh(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const fh=Math.sqrt(50),dh=Math.sqrt(10),ph=Math.sqrt(2);function hh(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),o=n/Math.pow(10,i),a=o>=fh?10:o>=dh?5:o>=ph?2:1;let l,c,u;return i<0?(u=Math.pow(10,-i)/a,l=Math.round(e*u),c=Math.round(t*u),l/u<e&&++l,c/u>t&&--c,u=-u):(u=Math.pow(10,i)*a,l=Math.round(e/u),c=Math.round(t/u),l*u<e&&++l,c*u>t&&--c),c<l&&.5<=r&&r<2?hh(e,t,2*r):[l,c,u]}function yh(e,t,r){if(!((r=+r)>0))return[];if((e=+e)===(t=+t))return[e];const n=t<e,[i,o,a]=n?hh(t,e,r):hh(e,t,r);if(!(o>=i))return[];const l=o-i+1,c=new Array(l);if(n)if(a<0)for(let e=0;e<l;++e)c[e]=(o-e)/-a;else for(let e=0;e<l;++e)c[e]=(o-e)*a;else if(a<0)for(let e=0;e<l;++e)c[e]=(i+e)/-a;else for(let e=0;e<l;++e)c[e]=(i+e)*a;return c}function vh(e,t,r){return hh(e=+e,t=+t,r=+r)[2]}function mh(e,t,r){r=+r;const n=(t=+t)<(e=+e),i=n?vh(t,e,r):vh(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function gh(e,t){let r;for(const t of e)null!=t&&(r<t||void 0===r&&t>=t)&&(r=t);return r}function bh(e,t){let r;for(const t of e)null!=t&&(r>t||void 0===r&&t>=t)&&(r=t);return r}function wh(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=void 0===i?sh:function(e=th){if(e===th)return sh;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||0===n?n:(0===e(r,r))-(0===e(t,t))}}(i);n>r;){if(n-r>600){const o=n-r+1,a=t-r+1,l=Math.log(o),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(o-c)/o)*(a-o/2<0?-1:1);wh(e,t,Math.max(r,Math.floor(t-a*c/o+u)),Math.min(n,Math.floor(t+(o-a)*c/o+u)),i)}const o=e[t];let a=r,l=n;for(xh(e,r,t),i(e[n],o)>0&&xh(e,r,n);a<l;){for(xh(e,a,l),++a,--l;i(e[a],o)<0;)++a;for(;i(e[l],o)>0;)--l}0===i(e[r],o)?xh(e,r,l):(++l,xh(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function xh(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function Oh(e,t,r=oh){if((n=e.length)&&!isNaN(t=+t)){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,o=Math.floor(i),a=+r(e[o],o,e);return a+(+r(e[o+1],o+1,e)-a)*(i-o)}}function Eh(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function Sh(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}const Ph=Symbol("implicit");function jh(){var e=new lh,t=[],r=[],n=Ph;function i(i){let o=e.get(i);if(void 0===o){if(n!==Ph)return n;e.set(i,o=t.push(i)-1)}return r[o%r.length]}return i.domain=function(r){if(!arguments.length)return t.slice();t=[],e=new lh;for(const n of r)e.has(n)||e.set(n,t.push(n)-1);return i},i.range=function(e){return arguments.length?(r=Array.from(e),i):r.slice()},i.unknown=function(e){return arguments.length?(n=e,i):n},i.copy=function(){return jh(t,r).unknown(n)},Eh.apply(i,arguments),i}function Ah(){var e,t,r=jh().unknown(void 0),n=r.domain,i=r.range,o=0,a=1,l=!1,c=0,u=0,s=.5;function f(){var r=n().length,f=a<o,d=f?a:o,p=f?o:a;e=(p-d)/Math.max(1,r-c+2*u),l&&(e=Math.floor(e)),d+=(p-d-e*(r-c))*s,t=e*(1-c),l&&(d=Math.round(d),t=Math.round(t));var h=function(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((t-e)/r)),o=new Array(i);++n<i;)o[n]=e+n*r;return o}(r).map(function(t){return d+e*t});return i(f?h.reverse():h)}return delete r.unknown,r.domain=function(e){return arguments.length?(n(e),f()):n()},r.range=function(e){return arguments.length?([o,a]=e,o=+o,a=+a,f()):[o,a]},r.rangeRound=function(e){return[o,a]=e,o=+o,a=+a,l=!0,f()},r.bandwidth=function(){return t},r.step=function(){return e},r.round=function(e){return arguments.length?(l=!!e,f()):l},r.padding=function(e){return arguments.length?(c=Math.min(1,u=+e),f()):c},r.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),f()):c},r.paddingOuter=function(e){return arguments.length?(u=+e,f()):u},r.align=function(e){return arguments.length?(s=Math.max(0,Math.min(1,e)),f()):s},r.copy=function(){return Ah(n(),[o,a]).round(l).paddingInner(c).paddingOuter(u).align(s)},Eh.apply(f(),arguments)}function _h(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return _h(t())},e}function kh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Mh(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Ih(){}var Th=.7,Dh=1/Th,Nh="\\s*([+-]?\\d+)\\s*",Ch="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",zh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Lh=/^#([0-9a-f]{3,8})$/,Rh=new RegExp(`^rgb\\(${Nh},${Nh},${Nh}\\)$`),Bh=new RegExp(`^rgb\\(${zh},${zh},${zh}\\)$`),$h=new RegExp(`^rgba\\(${Nh},${Nh},${Nh},${Ch}\\)$`),Vh=new RegExp(`^rgba\\(${zh},${zh},${zh},${Ch}\\)$`),Kh=new RegExp(`^hsl\\(${Ch},${zh},${zh}\\)$`),Fh=new RegExp(`^hsla\\(${Ch},${zh},${zh},${Ch}\\)$`),Uh={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Wh(){return this.rgb().formatHex()}function Hh(){return this.rgb().formatRgb()}function qh(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Lh.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Yh(t):3===r?new Zh(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Gh(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Gh(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Rh.exec(e))?new Zh(t[1],t[2],t[3],1):(t=Bh.exec(e))?new Zh(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=$h.exec(e))?Gh(t[1],t[2],t[3],t[4]):(t=Vh.exec(e))?Gh(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Kh.exec(e))?ny(t[1],t[2]/100,t[3]/100,1):(t=Fh.exec(e))?ny(t[1],t[2]/100,t[3]/100,t[4]):Uh.hasOwnProperty(e)?Yh(Uh[e]):"transparent"===e?new Zh(NaN,NaN,NaN,0):null}function Yh(e){return new Zh(e>>16&255,e>>8&255,255&e,1)}function Gh(e,t,r,n){return n<=0&&(e=t=r=NaN),new Zh(e,t,r,n)}function Xh(e,t,r,n){return 1===arguments.length?((i=e)instanceof Ih||(i=qh(i)),i?new Zh((i=i.rgb()).r,i.g,i.b,i.opacity):new Zh):new Zh(e,t,r,null==n?1:n);var i}function Zh(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Qh(){return`#${ry(this.r)}${ry(this.g)}${ry(this.b)}`}function Jh(){const e=ey(this.opacity);return`${1===e?"rgb(":"rgba("}${ty(this.r)}, ${ty(this.g)}, ${ty(this.b)}${1===e?")":`, ${e})`}`}function ey(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ty(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ry(e){return((e=ty(e))<16?"0":"")+e.toString(16)}function ny(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new oy(e,t,r,n)}function iy(e){if(e instanceof oy)return new oy(e.h,e.s,e.l,e.opacity);if(e instanceof Ih||(e=qh(e)),!e)return new oy;if(e instanceof oy)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=NaN,l=o-i,c=(o+i)/2;return l?(a=t===o?(r-n)/l+6*(r<n):r===o?(n-t)/l+2:(t-r)/l+4,l/=c<.5?o+i:2-o-i,a*=60):l=c>0&&c<1?0:a,new oy(a,l,c,e.opacity)}function oy(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function ay(e){return(e=(e||0)%360)<0?e+360:e}function ly(e){return Math.max(0,Math.min(1,e||0))}function cy(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}kh(Ih,qh,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Wh,formatHex:Wh,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return iy(this).formatHsl()},formatRgb:Hh,toString:Hh}),kh(Zh,Xh,Mh(Ih,{brighter(e){return e=null==e?Dh:Math.pow(Dh,e),new Zh(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Th:Math.pow(Th,e),new Zh(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Zh(ty(this.r),ty(this.g),ty(this.b),ey(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Qh,formatHex:Qh,formatHex8:function(){return`#${ry(this.r)}${ry(this.g)}${ry(this.b)}${ry(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Jh,toString:Jh})),kh(oy,function(e,t,r,n){return 1===arguments.length?iy(e):new oy(e,t,r,null==n?1:n)},Mh(Ih,{brighter(e){return e=null==e?Dh:Math.pow(Dh,e),new oy(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Th:Math.pow(Th,e),new oy(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Zh(cy(e>=240?e-240:e+120,i,n),cy(e,i,n),cy(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new oy(ay(this.h),ly(this.s),ly(this.l),ey(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ey(this.opacity);return`${1===e?"hsl(":"hsla("}${ay(this.h)}, ${100*ly(this.s)}%, ${100*ly(this.l)}%${1===e?")":`, ${e})`}`}}));const uy=e=>()=>e;function sy(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):uy(isNaN(e)?t:e)}const fy=function e(t){var r=function(e){return 1===(e=+e)?sy:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):uy(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=Xh(e)).r,(t=Xh(t)).r),i=r(e.g,t.g),o=r(e.b,t.b),a=sy(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);function dy(e,t){t||(t=[]);var r,n=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(r=0;r<n;++r)i[r]=e[r]*(1-o)+t[r]*o;return i}}function py(e,t){var r,n=t?t.length:0,i=e?Math.min(n,e.length):0,o=new Array(i),a=new Array(n);for(r=0;r<i;++r)o[r]=wy(e[r],t[r]);for(;r<n;++r)a[r]=t[r];return function(e){for(r=0;r<i;++r)a[r]=o[r](e);return a}}function hy(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function yy(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function vy(e,t){var r,n={},i={};for(r in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)r in e?n[r]=wy(e[r],t[r]):i[r]=t[r];return function(e){for(r in n)i[r]=n[r](e);return i}}var my=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,gy=new RegExp(my.source,"g");function by(e,t){var r,n,i,o=my.lastIndex=gy.lastIndex=0,a=-1,l=[],c=[];for(e+="",t+="";(r=my.exec(e))&&(n=gy.exec(t));)(i=n.index)>o&&(i=t.slice(o,i),l[a]?l[a]+=i:l[++a]=i),(r=r[0])===(n=n[0])?l[a]?l[a]+=n:l[++a]=n:(l[++a]=null,c.push({i:a,x:yy(r,n)})),o=gy.lastIndex;return o<t.length&&(i=t.slice(o),l[a]?l[a]+=i:l[++a]=i),l.length<2?c[0]?function(e){return function(t){return e(t)+""}}(c[0].x):function(e){return function(){return e}}(t):(t=c.length,function(e){for(var r,n=0;n<t;++n)l[(r=c[n]).i]=r.x(e);return l.join("")})}function wy(e,t){var r,n,i=typeof t;return null==t||"boolean"===i?uy(t):("number"===i?yy:"string"===i?(r=qh(t))?(t=r,fy):by:t instanceof qh?fy:t instanceof Date?hy:(n=t,!ArrayBuffer.isView(n)||n instanceof DataView?Array.isArray(t)?py:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?vy:yy:dy))(e,t)}function xy(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function Oy(e){return+e}var Ey=[0,1];function Sy(e){return e}function Py(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:(r=isNaN(t)?NaN:.5,function(){return r});var r}function jy(e,t,r){var n=e[0],i=e[1],o=t[0],a=t[1];return i<n?(n=Py(i,n),o=r(a,o)):(n=Py(n,i),o=r(o,a)),function(e){return o(n(e))}}function Ay(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),o=new Array(n),a=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<n;)i[a]=Py(e[a],e[a+1]),o[a]=r(t[a],t[a+1]);return function(t){var r=ah(e,t,1,n)-1;return o[r](i[r](t))}}function _y(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ky(){var e,t,r,n,i,o,a=Ey,l=Ey,c=wy,u=Sy;function s(){var e,t,r,c=Math.min(a.length,l.length);return u!==Sy&&((e=a[0])>(t=a[c-1])&&(r=e,e=t,t=r),u=function(r){return Math.max(e,Math.min(t,r))}),n=c>2?Ay:jy,i=o=null,f}function f(t){return null==t||isNaN(t=+t)?r:(i||(i=n(a.map(e),l,c)))(e(u(t)))}return f.invert=function(r){return u(t((o||(o=n(l,a.map(e),yy)))(r)))},f.domain=function(e){return arguments.length?(a=Array.from(e,Oy),s()):a.slice()},f.range=function(e){return arguments.length?(l=Array.from(e),s()):l.slice()},f.rangeRound=function(e){return l=Array.from(e),c=xy,s()},f.clamp=function(e){return arguments.length?(u=!!e||Sy,s()):u!==Sy},f.interpolate=function(e){return arguments.length?(c=e,s()):c},f.unknown=function(e){return arguments.length?(r=e,f):r},function(r,n){return e=r,t=n,s()}}function My(){return ky()(Sy,Sy)}function Iy(e,t){if(!isFinite(e)||0===e)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Ty(e){return(e=Iy(Math.abs(e)))?e[1]:NaN}var Dy,Ny=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Cy(e){if(!(t=Ny.exec(e)))throw new Error("invalid format: "+e);var t;return new zy({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function zy(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function Ly(e,t){var r=Iy(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}Cy.prototype=zy.prototype,zy.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Ry={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Ly(100*e,t),r:Ly,s:function(e,t){var r=Iy(e,t);if(!r)return Dy=void 0,e.toPrecision(t);var n=r[0],i=r[1],o=i-(Dy=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=n.length;return o===a?n:o>a?n+new Array(o-a+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+Iy(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function By(e){return e}var $y,Vy,Ky,Fy=Array.prototype.map,Uy=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Wy(e,t,r,n){var i,o=mh(e,t,r);switch((n=Cy(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=n.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ty(t)/3)))-Ty(Math.abs(e)))}(o,a))||(n.precision=i),Ky(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ty(t)-Ty(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=function(e){return Math.max(0,-Ty(Math.abs(e)))}(o))||(n.precision=i-2*("%"===n.type))}return Vy(n)}function Hy(e){var t=e.domain;return e.ticks=function(e){var r=t();return yh(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,r){var n=t();return Wy(n[0],n[n.length-1],null==e?10:e,r)},e.nice=function(r){null==r&&(r=10);var n,i,o=t(),a=0,l=o.length-1,c=o[a],u=o[l],s=10;for(u<c&&(i=c,c=u,u=i,i=a,a=l,l=i);s-- >0;){if((i=vh(c,u,r))===n)return o[a]=c,o[l]=u,t(o);if(i>0)c=Math.floor(c/i)*i,u=Math.ceil(u/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,u=Math.floor(u*i)/i}n=i}return e},e}function qy(e,t){var r,n=0,i=(e=e.slice()).length-1,o=e[n],a=e[i];return a<o&&(r=n,n=i,i=r,r=o,o=a,a=r),e[n]=t.floor(o),e[i]=t.ceil(a),e}function Yy(e){return Math.log(e)}function Gy(e){return Math.exp(e)}function Xy(e){return-Math.log(-e)}function Zy(e){return-Math.exp(-e)}function Qy(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Jy(e){return(t,r)=>-e(-t,r)}function ev(e){const t=e(Yy,Gy),r=t.domain;let n,i,o=10;function a(){return n=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(o),i=function(e){return 10===e?Qy:e===Math.E?Math.exp:t=>Math.pow(e,t)}(o),r()[0]<0?(n=Jy(n),i=Jy(i),e(Xy,Zy)):e(Yy,Gy),t}return t.base=function(e){return arguments.length?(o=+e,a()):o},t.domain=function(e){return arguments.length?(r(e),a()):r()},t.ticks=e=>{const t=r();let a=t[0],l=t[t.length-1];const c=l<a;c&&([a,l]=[l,a]);let u,s,f=n(a),d=n(l);const p=null==e?10:+e;let h=[];if(!(o%1)&&d-f<p){if(f=Math.floor(f),d=Math.ceil(d),a>0){for(;f<=d;++f)for(u=1;u<o;++u)if(s=f<0?u/i(-f):u*i(f),!(s<a)){if(s>l)break;h.push(s)}}else for(;f<=d;++f)for(u=o-1;u>=1;--u)if(s=f>0?u/i(-f):u*i(f),!(s<a)){if(s>l)break;h.push(s)}2*h.length<p&&(h=yh(a,l,p))}else h=yh(f,d,Math.min(d-f,p)).map(i);return c?h.reverse():h},t.tickFormat=(e,r)=>{if(null==e&&(e=10),null==r&&(r=10===o?"s":","),"function"!=typeof r&&(o%1||null!=(r=Cy(r)).precision||(r.trim=!0),r=Vy(r)),e===1/0)return r;const a=Math.max(1,o*e/t.ticks().length);return e=>{let t=e/i(Math.round(n(e)));return t*o<o-.5&&(t*=o),t<=a?r(e):""}},t.nice=()=>r(qy(r(),{floor:e=>i(Math.floor(n(e))),ceil:e=>i(Math.ceil(n(e)))})),t}function tv(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function rv(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function nv(e){var t=1,r=e(tv(t),rv(t));return r.constant=function(r){return arguments.length?e(tv(t=+r),rv(t)):t},Hy(r)}function iv(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function ov(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function av(e){return e<0?-e*e:e*e}function lv(e){var t=e(Sy,Sy),r=1;return t.exponent=function(t){return arguments.length?1===(r=+t)?e(Sy,Sy):.5===r?e(ov,av):e(iv(r),iv(1/r)):r},Hy(t)}function cv(){var e=lv(ky());return e.copy=function(){return _y(e,cv()).exponent(e.exponent())},Eh.apply(e,arguments),e}function uv(e){return Math.sign(e)*e*e}$y=function(e){var t,r,n=void 0===e.grouping||void 0===e.thousands?By:(t=Fy.call(e.grouping,Number),r=e.thousands+"",function(e,n){for(var i=e.length,o=[],a=0,l=t[0],c=0;i>0&&l>0&&(c+l+1>n&&(l=Math.max(1,n-c)),o.push(e.substring(i-=l,i+l)),!((c+=l+1)>n));)l=t[a=(a+1)%t.length];return o.reverse().join(r)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?By:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(Fy.call(e.numerals,String)),c=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",s=void 0===e.nan?"NaN":e.nan+"";function f(e,t){var r=(e=Cy(e)).fill,f=e.align,d=e.sign,p=e.symbol,h=e.zero,y=e.width,v=e.comma,m=e.precision,g=e.trim,b=e.type;"n"===b?(v=!0,b="g"):Ry[b]||(void 0===m&&(m=12),g=!0,b="g"),(h||"0"===r&&"="===f)&&(h=!0,r="0",f="=");var w=(t&&void 0!==t.prefix?t.prefix:"")+("$"===p?i:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():""),x=("$"===p?o:/[%p]/.test(b)?c:"")+(t&&void 0!==t.suffix?t.suffix:""),O=Ry[b],E=/[defgprs%]/.test(b);function S(e){var t,i,o,c=w,p=x;if("c"===b)p=O(e)+p,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?s:O(Math.abs(e),m),g&&(e=function(e){e:for(var t,r=e.length,n=1,i=-1;n<r;++n)switch(e[n]){case".":i=t=n;break;case"0":0===i&&(i=n),t=n;break;default:if(!+e[n])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),S&&0===+e&&"+"!==d&&(S=!1),c=(S?"("===d?d:u:"-"===d||"("===d?"":d)+c,p=("s"!==b||isNaN(e)||void 0===Dy?"":Uy[8+Dy/3])+p+(S&&"("===d?")":""),E)for(t=-1,i=e.length;++t<i;)if(48>(o=e.charCodeAt(t))||o>57){p=(46===o?a+e.slice(t+1):e.slice(t))+p,e=e.slice(0,t);break}}v&&!h&&(e=n(e,1/0));var P=c.length+e.length+p.length,j=P<y?new Array(y-P+1).join(r):"";switch(v&&h&&(e=n(j+e,j.length?y-p.length:1/0),j=""),f){case"<":e=c+e+p+j;break;case"=":e=c+j+e+p;break;case"^":e=j.slice(0,P=j.length>>1)+c+e+p+j.slice(P);break;default:e=j+c+e+p}return l(e)}return m=void 0===m?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),S.toString=function(){return e+""},S}return{format:f,formatPrefix:function(e,t){var r=3*Math.max(-8,Math.min(8,Math.floor(Ty(t)/3))),n=Math.pow(10,-r),i=f(((e=Cy(e)).type="f",e),{suffix:Uy[8+r/3]});return function(e){return i(n*e)}}}}({thousands:",",grouping:[3],currency:["$",""]}),Vy=$y.format,Ky=$y.formatPrefix;const sv=new Date,fv=new Date;function dv(e,t,r,n){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=r=>(e(r=new Date(r-1)),t(r,1),e(r),r),i.round=e=>{const t=i(e),r=i.ceil(e);return e-t<r-e?t:r},i.offset=(e,r)=>(t(e=new Date(+e),null==r?1:Math.floor(r)),e),i.range=(r,n,o)=>{const a=[];if(r=i.ceil(r),o=null==o?1:Math.floor(o),!(r<n&&o>0))return a;let l;do{a.push(l=new Date(+r)),t(r,o),e(r)}while(l<r&&r<n);return a},i.filter=r=>dv(t=>{if(t>=t)for(;e(t),!r(t);)t.setTime(t-1)},(e,n)=>{if(e>=e)if(n<0)for(;++n<=0;)for(;t(e,-1),!r(e););else for(;--n>=0;)for(;t(e,1),!r(e););}),r&&(i.count=(t,n)=>(sv.setTime(+t),fv.setTime(+n),e(sv),e(fv),Math.floor(r(sv,fv))),i.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(n?t=>n(t)%e===0:t=>i.count(0,t)%e===0):i:null)),i}const pv=dv(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);pv.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?dv(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):pv:null);const hv=1e3,yv=6e4,vv=36e5,mv=864e5,gv=6048e5,bv=31536e6,wv=dv(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*hv)},(e,t)=>(t-e)/hv,e=>e.getUTCSeconds()),xv=dv(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*hv)},(e,t)=>{e.setTime(+e+t*yv)},(e,t)=>(t-e)/yv,e=>e.getMinutes()),Ov=dv(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*yv)},(e,t)=>(t-e)/yv,e=>e.getUTCMinutes()),Ev=dv(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*hv-e.getMinutes()*yv)},(e,t)=>{e.setTime(+e+t*vv)},(e,t)=>(t-e)/vv,e=>e.getHours()),Sv=dv(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*vv)},(e,t)=>(t-e)/vv,e=>e.getUTCHours()),Pv=dv(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*yv)/mv,e=>e.getDate()-1),jv=dv(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mv,e=>e.getUTCDate()-1),Av=dv(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mv,e=>Math.floor(e/mv));function _v(e){return dv(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*yv)/gv)}const kv=_v(0),Mv=_v(1),Iv=(_v(2),_v(3),_v(4));function Tv(e){return dv(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/gv)}_v(5),_v(6);const Dv=Tv(0),Nv=Tv(1),Cv=(Tv(2),Tv(3),Tv(4)),zv=(Tv(5),Tv(6),dv(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear()),e=>e.getMonth())),Lv=dv(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear()),e=>e.getUTCMonth()),Rv=dv(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Rv.every=e=>isFinite(e=Math.floor(e))&&e>0?dv(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)}):null;const Bv=dv(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());function $v(e,t,r,n,i,o){const a=[[wv,1,hv],[wv,5,5e3],[wv,15,15e3],[wv,30,3e4],[o,1,yv],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,vv],[i,3,108e5],[i,6,216e5],[i,12,432e5],[n,1,mv],[n,2,1728e5],[r,1,gv],[t,1,2592e6],[t,3,7776e6],[e,1,bv]];function l(t,r,n){const i=Math.abs(r-t)/n,o=nh(([,,e])=>e).right(a,i);if(o===a.length)return e.every(mh(t/bv,r/bv,n));if(0===o)return pv.every(Math.max(mh(t,r,n),1));const[l,c]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return l.every(c)}return[function(e,t,r){const n=t<e;n&&([e,t]=[t,e]);const i=r&&"function"==typeof r.range?r:l(e,t,r),o=i?i.range(e,+t+1):[];return n?o.reverse():o},l]}Bv.every=e=>isFinite(e=Math.floor(e))&&e>0?dv(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)}):null;const[Vv,Kv]=$v(Bv,Lv,Dv,Av,Sv,Ov),[Fv,Uv]=$v(Rv,zv,kv,Pv,Ev,xv);function Wv(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Hv(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function qv(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}var Yv,Gv,Xv,Zv={"-":"",_:" ",0:"0"},Qv=/^\s*\d+/,Jv=/^%/,em=/[\\^$*+?|[\]().{}]/g;function tm(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",o=i.length;return n+(o<r?new Array(r-o+1).join(t)+i:i)}function rm(e){return e.replace(em,"\\$&")}function nm(e){return new RegExp("^(?:"+e.map(rm).join("|")+")","i")}function im(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function om(e,t,r){var n=Qv.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function am(e,t,r){var n=Qv.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function lm(e,t,r){var n=Qv.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function cm(e,t,r){var n=Qv.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function um(e,t,r){var n=Qv.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function sm(e,t,r){var n=Qv.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function fm(e,t,r){var n=Qv.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function dm(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function pm(e,t,r){var n=Qv.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function hm(e,t,r){var n=Qv.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function ym(e,t,r){var n=Qv.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function vm(e,t,r){var n=Qv.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function mm(e,t,r){var n=Qv.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function gm(e,t,r){var n=Qv.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function bm(e,t,r){var n=Qv.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function wm(e,t,r){var n=Qv.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function xm(e,t,r){var n=Qv.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Om(e,t,r){var n=Jv.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Em(e,t,r){var n=Qv.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function Sm(e,t,r){var n=Qv.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Pm(e,t){return tm(e.getDate(),t,2)}function jm(e,t){return tm(e.getHours(),t,2)}function Am(e,t){return tm(e.getHours()%12||12,t,2)}function _m(e,t){return tm(1+Pv.count(Rv(e),e),t,3)}function km(e,t){return tm(e.getMilliseconds(),t,3)}function Mm(e,t){return km(e,t)+"000"}function Im(e,t){return tm(e.getMonth()+1,t,2)}function Tm(e,t){return tm(e.getMinutes(),t,2)}function Dm(e,t){return tm(e.getSeconds(),t,2)}function Nm(e){var t=e.getDay();return 0===t?7:t}function Cm(e,t){return tm(kv.count(Rv(e)-1,e),t,2)}function zm(e){var t=e.getDay();return t>=4||0===t?Iv(e):Iv.ceil(e)}function Lm(e,t){return e=zm(e),tm(Iv.count(Rv(e),e)+(4===Rv(e).getDay()),t,2)}function Rm(e){return e.getDay()}function Bm(e,t){return tm(Mv.count(Rv(e)-1,e),t,2)}function $m(e,t){return tm(e.getFullYear()%100,t,2)}function Vm(e,t){return tm((e=zm(e)).getFullYear()%100,t,2)}function Km(e,t){return tm(e.getFullYear()%1e4,t,4)}function Fm(e,t){var r=e.getDay();return tm((e=r>=4||0===r?Iv(e):Iv.ceil(e)).getFullYear()%1e4,t,4)}function Um(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+tm(t/60|0,"0",2)+tm(t%60,"0",2)}function Wm(e,t){return tm(e.getUTCDate(),t,2)}function Hm(e,t){return tm(e.getUTCHours(),t,2)}function qm(e,t){return tm(e.getUTCHours()%12||12,t,2)}function Ym(e,t){return tm(1+jv.count(Bv(e),e),t,3)}function Gm(e,t){return tm(e.getUTCMilliseconds(),t,3)}function Xm(e,t){return Gm(e,t)+"000"}function Zm(e,t){return tm(e.getUTCMonth()+1,t,2)}function Qm(e,t){return tm(e.getUTCMinutes(),t,2)}function Jm(e,t){return tm(e.getUTCSeconds(),t,2)}function eg(e){var t=e.getUTCDay();return 0===t?7:t}function tg(e,t){return tm(Dv.count(Bv(e)-1,e),t,2)}function rg(e){var t=e.getUTCDay();return t>=4||0===t?Cv(e):Cv.ceil(e)}function ng(e,t){return e=rg(e),tm(Cv.count(Bv(e),e)+(4===Bv(e).getUTCDay()),t,2)}function ig(e){return e.getUTCDay()}function og(e,t){return tm(Nv.count(Bv(e)-1,e),t,2)}function ag(e,t){return tm(e.getUTCFullYear()%100,t,2)}function lg(e,t){return tm((e=rg(e)).getUTCFullYear()%100,t,2)}function cg(e,t){return tm(e.getUTCFullYear()%1e4,t,4)}function ug(e,t){var r=e.getUTCDay();return tm((e=r>=4||0===r?Cv(e):Cv.ceil(e)).getUTCFullYear()%1e4,t,4)}function sg(){return"+0000"}function fg(){return"%"}function dg(e){return+e}function pg(e){return Math.floor(+e/1e3)}function hg(e){return new Date(e)}function yg(e){return e instanceof Date?+e:+new Date(+e)}function vg(e,t,r,n,i,o,a,l,c,u){var s=My(),f=s.invert,d=s.domain,p=u(".%L"),h=u(":%S"),y=u("%I:%M"),v=u("%I %p"),m=u("%a %d"),g=u("%b %d"),b=u("%B"),w=u("%Y");function x(e){return(c(e)<e?p:l(e)<e?h:a(e)<e?y:o(e)<e?v:n(e)<e?i(e)<e?m:g:r(e)<e?b:w)(e)}return s.invert=function(e){return new Date(f(e))},s.domain=function(e){return arguments.length?d(Array.from(e,yg)):d().map(hg)},s.ticks=function(t){var r=d();return e(r[0],r[r.length-1],null==t?10:t)},s.tickFormat=function(e,t){return null==t?x:u(t)},s.nice=function(e){var r=d();return e&&"function"==typeof e.range||(e=t(r[0],r[r.length-1],null==e?10:e)),e?d(qy(r,e)):s},s.copy=function(){return _y(s,vg(e,t,r,n,i,o,a,l,c,u))},s}function mg(){var e,t,r,n,i,o=0,a=1,l=Sy,c=!1;function u(t){return null==t||isNaN(t=+t)?i:l(0===r?.5:(t=(n(t)-e)*r,c?Math.max(0,Math.min(1,t)):t))}function s(e){return function(t){var r,n;return arguments.length?([r,n]=t,l=e(r,n),u):[l(0),l(1)]}}return u.domain=function(i){return arguments.length?([o,a]=i,e=n(o=+o),t=n(a=+a),r=e===t?0:1/(t-e),u):[o,a]},u.clamp=function(e){return arguments.length?(c=!!e,u):c},u.interpolator=function(e){return arguments.length?(l=e,u):l},u.range=s(wy),u.rangeRound=s(xy),u.unknown=function(e){return arguments.length?(i=e,u):i},function(i){return n=i,e=i(o),t=i(a),r=e===t?0:1/(t-e),u}}function gg(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function bg(){var e=lv(mg());return e.copy=function(){return gg(e,bg()).exponent(e.exponent())},Sh.apply(e,arguments)}function wg(){var e,t,r,n,i,o,a,l=0,c=.5,u=1,s=1,f=Sy,d=!1;function p(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(s*e<s*t?n:i),f(d?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var r,n,i;return arguments.length?([r,n,i]=t,f=function(e,t){void 0===t&&(t=e,e=wy);for(var r=0,n=t.length-1,i=t[0],o=new Array(n<0?0:n);r<n;)o[r]=e(i,i=t[++r]);return function(e){var t=Math.max(0,Math.min(n-1,Math.floor(e*=n)));return o[t](e-t)}}(e,[r,n,i]),p):[f(0),f(.5),f(1)]}}return p.domain=function(a){return arguments.length?([l,c,u]=a,e=o(l=+l),t=o(c=+c),r=o(u=+u),n=e===t?0:.5/(t-e),i=t===r?0:.5/(r-t),s=t<e?-1:1,p):[l,c,u]},p.clamp=function(e){return arguments.length?(d=!!e,p):d},p.interpolator=function(e){return arguments.length?(f=e,p):f},p.range=h(wy),p.rangeRound=h(xy),p.unknown=function(e){return arguments.length?(a=e,p):a},function(a){return o=a,e=a(l),t=a(c),r=a(u),n=e===t?0:.5/(t-e),i=t===r?0:.5/(r-t),s=t<e?-1:1,p}}function xg(){var e=lv(wg());return e.copy=function(){return gg(e,xg()).exponent(e.exponent())},Sh.apply(e,arguments)}Yv=function(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,o=e.days,a=e.shortDays,l=e.months,c=e.shortMonths,u=nm(i),s=im(i),f=nm(o),d=im(o),p=nm(a),h=im(a),y=nm(l),v=im(l),m=nm(c),g=im(c),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:Pm,e:Pm,f:Mm,g:Vm,G:Fm,H:jm,I:Am,j:_m,L:km,m:Im,M:Tm,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:dg,s:pg,S:Dm,u:Nm,U:Cm,V:Lm,w:Rm,W:Bm,x:null,X:null,y:$m,Y:Km,Z:Um,"%":fg},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:Wm,e:Wm,f:Xm,g:lg,G:ug,H:Hm,I:qm,j:Ym,L:Gm,m:Zm,M:Qm,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:dg,s:pg,S:Jm,u:eg,U:tg,V:ng,w:ig,W:og,x:null,X:null,y:ag,Y:cg,Z:sg,"%":fg},x={a:function(e,t,r){var n=p.exec(t.slice(r));return n?(e.w=h.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(e,t,r){var n=f.exec(t.slice(r));return n?(e.w=d.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(e,t,r){var n=m.exec(t.slice(r));return n?(e.m=g.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(e,t,r){var n=y.exec(t.slice(r));return n?(e.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(e,r,n){return S(e,t,r,n)},d:ym,e:ym,f:xm,g:fm,G:sm,H:mm,I:mm,j:vm,L:wm,m:hm,M:gm,p:function(e,t,r){var n=u.exec(t.slice(r));return n?(e.p=s.get(n[0].toLowerCase()),r+n[0].length):-1},q:pm,Q:Em,s:Sm,S:bm,u:am,U:lm,V:cm,w:om,W:um,x:function(e,t,n){return S(e,r,t,n)},X:function(e,t,r){return S(e,n,t,r)},y:fm,Y:sm,Z:dm,"%":Om};function O(e,t){return function(r){var n,i,o,a=[],l=-1,c=0,u=e.length;for(r instanceof Date||(r=new Date(+r));++l<u;)37===e.charCodeAt(l)&&(a.push(e.slice(c,l)),null!=(i=Zv[n=e.charAt(++l)])?n=e.charAt(++l):i="e"===n?" ":"0",(o=t[n])&&(n=o(r,i)),a.push(n),c=l+1);return a.push(e.slice(c,l)),a.join("")}}function E(e,t){return function(r){var n,i,o=qv(1900,void 0,1);if(S(o,e,r+="",0)!=r.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(n=Hv(qv(o.y,0,1))).getUTCDay(),n=i>4||0===i?Nv.ceil(n):Nv(n),n=jv.offset(n,7*(o.V-1)),o.y=n.getUTCFullYear(),o.m=n.getUTCMonth(),o.d=n.getUTCDate()+(o.w+6)%7):(i=(n=Wv(qv(o.y,0,1))).getDay(),n=i>4||0===i?Mv.ceil(n):Mv(n),n=Pv.offset(n,7*(o.V-1)),o.y=n.getFullYear(),o.m=n.getMonth(),o.d=n.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Hv(qv(o.y,0,1)).getUTCDay():Wv(qv(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Hv(o)):Wv(o)}}function S(e,t,r,n){for(var i,o,a=0,l=t.length,c=r.length;a<l;){if(n>=c)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=x[i in Zv?t.charAt(a++):i])||(n=o(e,r,n))<0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}return b.x=O(r,b),b.X=O(n,b),b.c=O(t,b),w.x=O(r,w),w.X=O(n,w),w.c=O(t,w),{format:function(e){var t=O(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=E(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=O(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=E(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),Gv=Yv.format,Xv=Yv.utcFormat;const Og=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Ah,scaleDiverging:function e(){var t=Hy(wg()(Sy));return t.copy=function(){return gg(t,e())},Sh.apply(t,arguments)},scaleDivergingLog:function e(){var t=ev(wg()).domain([.1,1,10]);return t.copy=function(){return gg(t,e()).base(t.base())},Sh.apply(t,arguments)},scaleDivergingPow:xg,scaleDivergingSqrt:function(){return xg.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=nv(wg());return t.copy=function(){return gg(t,e()).constant(t.constant())},Sh.apply(t,arguments)},scaleIdentity:function e(t){var r;function n(e){return null==e||isNaN(e=+e)?r:e}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,Oy),n):t.slice()},n.unknown=function(e){return arguments.length?(r=e,n):r},n.copy=function(){return e(t).unknown(r)},t=arguments.length?Array.from(t,Oy):[0,1],Hy(n)},scaleImplicit:Ph,scaleLinear:function e(){var t=My();return t.copy=function(){return _y(t,e())},Eh.apply(t,arguments),Hy(t)},scaleLog:function e(){const t=ev(ky()).domain([1,10]);return t.copy=()=>_y(t,e()).base(t.base()),Eh.apply(t,arguments),t},scaleOrdinal:jh,scalePoint:function(){return _h(Ah.apply(null,arguments).paddingInner(1))},scalePow:cv,scaleQuantile:function e(){var t,r=[],n=[],i=[];function o(){var e=0,t=Math.max(1,n.length);for(i=new Array(t-1);++e<t;)i[e-1]=Oh(r,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:n[ah(i,e)]}return a.invertExtent=function(e){var t=n.indexOf(e);return t<0?[NaN,NaN]:[t>0?i[t-1]:r[0],t<i.length?i[t]:r[r.length-1]]},a.domain=function(e){if(!arguments.length)return r.slice();r=[];for(let t of e)null==t||isNaN(t=+t)||r.push(t);return r.sort(th),o()},a.range=function(e){return arguments.length?(n=Array.from(e),o()):n.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return i.slice()},a.copy=function(){return e().domain(r).range(n).unknown(t)},Eh.apply(a,arguments)},scaleQuantize:function e(){var t,r=0,n=1,i=1,o=[.5],a=[0,1];function l(e){return null!=e&&e<=e?a[ah(o,e,0,i)]:t}function c(){var e=-1;for(o=new Array(i);++e<i;)o[e]=((e+1)*n-(e-i)*r)/(i+1);return l}return l.domain=function(e){return arguments.length?([r,n]=e,r=+r,n=+n,c()):[r,n]},l.range=function(e){return arguments.length?(i=(a=Array.from(e)).length-1,c()):a.slice()},l.invertExtent=function(e){var t=a.indexOf(e);return t<0?[NaN,NaN]:t<1?[r,o[0]]:t>=i?[o[i-1],n]:[o[t-1],o[t]]},l.unknown=function(e){return arguments.length?(t=e,l):l},l.thresholds=function(){return o.slice()},l.copy=function(){return e().domain([r,n]).range(a).unknown(t)},Eh.apply(Hy(l),arguments)},scaleRadial:function e(){var t,r=My(),n=[0,1],i=!1;function o(e){var n=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(r(e));return isNaN(n)?t:i?Math.round(n):n}return o.invert=function(e){return r.invert(uv(e))},o.domain=function(e){return arguments.length?(r.domain(e),o):r.domain()},o.range=function(e){return arguments.length?(r.range((n=Array.from(e,Oy)).map(uv)),o):n.slice()},o.rangeRound=function(e){return o.range(e).round(!0)},o.round=function(e){return arguments.length?(i=!!e,o):i},o.clamp=function(e){return arguments.length?(r.clamp(e),o):r.clamp()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return e(r.domain(),n).round(i).clamp(r.clamp()).unknown(t)},Eh.apply(o,arguments),Hy(o)},scaleSequential:function e(){var t=Hy(mg()(Sy));return t.copy=function(){return gg(t,e())},Sh.apply(t,arguments)},scaleSequentialLog:function e(){var t=ev(mg()).domain([1,10]);return t.copy=function(){return gg(t,e()).base(t.base())},Sh.apply(t,arguments)},scaleSequentialPow:bg,scaleSequentialQuantile:function e(){var t=[],r=Sy;function n(e){if(null!=e&&!isNaN(e=+e))return r((ah(t,e,1)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let r of e)null==r||isNaN(r=+r)||t.push(r);return t.sort(th),n},n.interpolator=function(e){return arguments.length?(r=e,n):r},n.range=function(){return t.map((e,n)=>r(n/(t.length-1)))},n.quantiles=function(e){return Array.from({length:e+1},(r,n)=>function(e,t){if((r=(e=Float64Array.from(function*(e){for(let t of e)null!=t&&(t=+t)>=t&&(yield t)}(e))).length)&&!isNaN(t=+t)){if(t<=0||r<2)return bh(e);if(t>=1)return gh(e);var r,n=(r-1)*t,i=Math.floor(n),o=gh(wh(e,i).subarray(0,i+1));return o+(bh(e.subarray(i+1))-o)*(n-i)}}(t,n/e))},n.copy=function(){return e(r).domain(t)},Sh.apply(n,arguments)},scaleSequentialSqrt:function(){return bg.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=nv(mg());return t.copy=function(){return gg(t,e()).constant(t.constant())},Sh.apply(t,arguments)},scaleSqrt:function(){return cv.apply(null,arguments).exponent(.5)},scaleSymlog:function e(){var t=nv(ky());return t.copy=function(){return _y(t,e()).constant(t.constant())},Eh.apply(t,arguments)},scaleThreshold:function e(){var t,r=[.5],n=[0,1],i=1;function o(e){return null!=e&&e<=e?n[ah(r,e,0,i)]:t}return o.domain=function(e){return arguments.length?(r=Array.from(e),i=Math.min(r.length,n.length-1),o):r.slice()},o.range=function(e){return arguments.length?(n=Array.from(e),i=Math.min(r.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var t=n.indexOf(e);return[r[t-1],r[t]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return e().domain(r).range(n).unknown(t)},Eh.apply(o,arguments)},scaleTime:function(){return Eh.apply(vg(Fv,Uv,Rv,zv,kv,Pv,Ev,xv,wv,Gv).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return Eh.apply(vg(Vv,Kv,Bv,Lv,Dv,jv,Sv,Ov,wv,Xv).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:Wy},Symbol.toStringTag,{value:"Module"}));function Eg(e,t,r,n){if(null!=r&&null!=n)return function(e,t,r){if("function"==typeof e)return e.copy().domain(t).range(r);if(null!=e){var n=function(e){var t=Og;if(e in t&&"function"==typeof t[e])return t[e]();var r="scale".concat(It(e));return r in t&&"function"==typeof t[r]?t[r]():void 0}(e);if(null!=n)return n.domain(t).range(r),n}}("function"==typeof e.scale?e.scale:t,r,n)}var Sg=(e,t,r)=>{if(null!=e){var{scale:n,type:i}=e;return"auto"===n?"category"===i&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!t)?"point":"category"===i?"band":"linear":"string"==typeof n?"scale".concat(It(n))in Og?n:"point":void 0}};function Pg(e,t){if(e){var r=null!=t?t:e.domain(),n=r.map(t=>{var r;return null!==(r=e(t))&&void 0!==r?r:0}),i=e.range();if(!(0===r.length||i.length<2))return e=>{var t,i,o=function(e,t){for(var r=0,n=e.length,i=e[0]<e[e.length-1];r<n;){var o=Math.floor((r+n)/2);(i?e[o]<t:e[o]>t)?r=o+1:n=o}return r}(n,e);if(o<=0)return r[0];if(o>=r.length)return r[r.length-1];var a=null!==(t=n[o-1])&&void 0!==t?t:0,l=null!==(i=n[o])&&void 0!==i?i:0;return Math.abs(e-a)<=Math.abs(e-l)?r[o-1]:r[o]}}}function jg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ag(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jg(Object(r),!0).forEach(function(t){_g(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jg(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _g(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var kg=[0,"auto"],Mg={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0,niceTicks:"auto"},Ig=(e,t)=>e.cartesianAxis.xAxis[t],Tg=(e,t)=>{var r=Ig(e,t);return null==r?Mg:r},Dg={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:kg,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,niceTicks:"auto",width:60},Ng=(e,t)=>e.cartesianAxis.yAxis[t],Cg=(e,t)=>{var r=Ng(e,t);return null==r?Dg:r},zg={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},Lg=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return null==r?zg:r},Rg=(e,t,r)=>{switch(t){case"xAxis":return Tg(e,r);case"yAxis":return Cg(e,r);case"zAxis":return Lg(e,r);case"angleAxis":return zp(e,r);case"radiusAxis":return Lp(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Bg=(e,t,r)=>{switch(t){case"xAxis":return Tg(e,r);case"yAxis":return Cg(e,r);case"angleAxis":return zp(e,r);case"radiusAxis":return Lp(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},$g=e=>e.graphicalItems.cartesianItems.some(e=>"bar"===e.type)||e.graphicalItems.polarItems.some(e=>"radialBar"===e.type);function Vg(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var Kg=e=>e.graphicalItems.cartesianItems,Fg=pi([Wp,Hp],Vg),Ug=(e,t,r)=>e.filter(r).filter(e=>!0===(null==t?void 0:t.includeHidden)||!e.hide),Wg=pi([Kg,Rg,Fg],Ug,{memoizeOptions:{resultEqualityCheck:Zp}}),Hg=pi([Wg],e=>e.filter(e=>"area"===e.type||"bar"===e.type).filter(Gp)),qg=e=>e.filter(e=>!("stackId"in e)||void 0===e.stackId),Yg=pi([Wg],qg),Gg=e=>e.map(e=>e.data).filter(Boolean).flat(1),Xg=pi([Wg],e=>e.some(e=>!e.data)),Zg=pi([Wg],Gg,{memoizeOptions:{resultEqualityCheck:Zp}}),Qg=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:i}=t;return e.length>0?e:r.slice(n,i+1)},Jg=pi([Zg,Md],Qg),eb=(e,t,r,n,i,o)=>{var{chartData:a=[],dataStartIndex:l,dataEndIndex:c}=n,u=((e,t,r)=>null!=(null==t?void 0:t.dataKey)?e.map(e=>({value:Ml(e,t.dataKey)})):r.length>0?r.map(e=>e.dataKey).flatMap(t=>e.map(e=>({value:Ml(e,t)}))):e.map(e=>({value:e})))(e,t,r);return i&&null!=(null==t?void 0:t.dataKey)&&o.length>0?[...a.slice(l,c+1).map(e=>({value:Ml(e,t.dataKey)})).filter(e=>null!=e.value),...u]:u},tb=pi([Jg,Rg,Wg,Md,Xg,Zg],eb);function rb(e){if(Et(e)||e instanceof Date){var t=Number(e);if(Pl(t))return t}}function nb(e){if(Array.isArray(e)){var t=[rb(e[0]),rb(e[1])];return Nd(t)?t:void 0}var r=rb(e);if(null!=r)return[r,r]}function ib(e){return e.map(rb).filter(Tt)}function ob(e,t){var r=rb(e),n=rb(t);return null==r&&null==n?0:null==r?-1:null==n?1:r-n}var ab=pi([tb],e=>null==e?void 0:e.map(e=>e.value).sort(ob));function lb(e,t){switch(e){case"xAxis":return"x"===t.direction;case"yAxis":return"y"===t.direction;default:return!1}}var cb=e=>{var t=Qp(e),r=Jp(e);return Bg(e,t,r)},ub=pi([cb],e=>null==e?void 0:e.dataKey),sb=pi([Hg,Md,cb],Yp),fb=(e,t,r,n)=>{var i=t.reduce((e,t)=>{if(null==t.stackId)return e;var r=e[t.stackId];return null==r&&(r=[]),r.push(t),e[t.stackId]=r,e},{});return Object.fromEntries(Object.entries(i).map(t=>{var[i,o]=t,a=n?[...o].reverse():o,l=a.map(qp);return[i,{stackedData:Cl(e,l,r),graphicalItems:a}]}))},db=pi([sb,Hg,Op,Ep],fb),pb=(e,t,r,n)=>{var{dataStartIndex:i,dataEndIndex:o}=t;if(null==n&&"zAxis"!==r){var a=((e,t,r)=>{var n;if(null!=e)return[(n=Object.keys(e).reduce((n,i)=>{var o=e[i];if(!o)return n;var{stackedData:a}=o,l=a.reduce((e,n)=>{var i,o=(i=Sl(n,t,r).flat(2).filter(Ot),[Math.min(...i),Math.max(...i)]);return Pl(o[0])&&Pl(o[1])?[Math.min(e[0],o[0]),Math.max(e[1],o[1])]:e},[1/0,-1/0]);return[Math.min(l[0],n[0]),Math.max(l[1],n[1])]},[1/0,-1/0]))[0]===1/0?0:n[0],n[1]===-1/0?0:n[1]]})(e,i,o);if(null==a||0!==a[0]||0!==a[1])return a}},hb=pi([Rg],e=>e.allowDataOverflow),yb=e=>{var t;if(null==e||!("domain"in e))return kg;if(null!=e.domain)return e.domain;if("ticks"in e&&null!=e.ticks){if("number"===e.type){var r=ib(e.ticks);return[Math.min(...r),Math.max(...r)]}if("category"===e.type)return e.ticks.map(String)}return null!==(t=null==e?void 0:e.domain)&&void 0!==t?t:kg},vb=pi([Rg],yb),mb=pi([vb,hb],zd),gb=pi([db,_d,Wp,mb],pb,{memoizeOptions:{resultEqualityCheck:Xp}}),bb=e=>e.errorBars,wb=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.filter(Boolean);if(0!==n.length){var i=n.flat();return[Math.min(...i),Math.max(...i)]}},xb=function(e,t,r,n,i){var o,a,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];if(r.length>0&&r.forEach(e=>{var r,c=null!=e.data?[...e.data]:l,u=null===(r=n[e.id])||void 0===r?void 0:r.filter(e=>lb(i,e));c.forEach(r=>{var n,i=Ml(r,null!==(n=t.dataKey)&&void 0!==n?n:e.dataKey),l=function(e,t,r){if(!r)return[];if(!r.length)return[];var n;if("number"!=typeof t||wt(t)){if(Array.isArray(t)){var i=ib(t);i.length>0&&(n=Math.max(...i))}}else n=t;return null==n?[]:ib(r.flatMap(t=>{var r,i,o=Ml(e,t.dataKey);if(Array.isArray(o)?[r,i]=o:r=i=o,Pl(r)&&Pl(i))return[n-r,n+i]}))}(r,i,u);if(l.length>=2){var c=Math.min(...l),s=Math.max(...l);(null==o||c<o)&&(o=c),(null==a||s>a)&&(a=s)}var f=nb(i);null!=f&&(o=null==o?f[0]:Math.min(o,f[0]),a=null==a?f[1]:Math.max(a,f[1]))})}),null!=(null==t?void 0:t.dataKey)&&0===r.length&&e.forEach(e=>{var r=nb(Ml(e,t.dataKey));null!=r&&(o=null==o?r[0]:Math.min(o,r[0]),a=null==a?r[1]:Math.max(a,r[1]))}),Pl(o)&&Pl(a))return[o,a]},Ob=pi([Jg,Rg,Yg,bb,Wp,Td],xb,{memoizeOptions:{resultEqualityCheck:Xp}});function Eb(e){var{value:t}=e;if(Et(t)||t instanceof Date)return t}var Sb=e=>e.referenceElements.dots,Pb=(e,t,r)=>e.filter(e=>"extendDomain"===e.ifOverflow).filter(e=>"xAxis"===t?e.xAxisId===r:e.yAxisId===r),jb=pi([Sb,Wp,Hp],Pb),Ab=e=>e.referenceElements.areas,_b=pi([Ab,Wp,Hp],Pb),kb=e=>e.referenceElements.lines,Mb=pi([kb,Wp,Hp],Pb),Ib=(e,t)=>{if(null!=e){var r=ib(e.map(e=>"xAxis"===t?e.x:e.y));if(0!==r.length)return[Math.min(...r),Math.max(...r)]}},Tb=pi(jb,Wp,Ib),Db=(e,t)=>{if(null!=e){var r=ib(e.flatMap(e=>["xAxis"===t?e.x1:e.y1,"xAxis"===t?e.x2:e.y2]));if(0!==r.length)return[Math.min(...r),Math.max(...r)]}},Nb=pi([_b,Wp],Db),Cb=(e,t)=>{if(null!=e){var r=e.flatMap(e=>"xAxis"===t?function(e){var t;if(null!=e.x)return ib([e.x]);var r=null===(t=e.segment)||void 0===t?void 0:t.map(e=>e.x);return null==r||0===r.length?[]:ib(r)}(e):function(e){var t;if(null!=e.y)return ib([e.y]);var r=null===(t=e.segment)||void 0===t?void 0:t.map(e=>e.y);return null==r||0===r.length?[]:ib(r)}(e));if(0!==r.length)return[Math.min(...r),Math.max(...r)]}},zb=pi([Mb,Wp],Cb),Lb=pi(Tb,zb,Nb,(e,t,r)=>wb(e,r,t)),Rb=(e,t,r,n,i,o,a,l)=>null!=r?r:function(e,t,r){if(r||null!=t){if("function"==typeof e&&null!=t)try{var n=e(t,r);if(Nd(n))return Cd(n,t,r)}catch(e){}if(Array.isArray(e)&&2===e.length){var i,o,[a,l]=e;if("auto"===a)null!=t&&(i=Math.min(...t));else if(Ot(a))i=a;else if("function"==typeof a)try{null!=t&&(i=a(null==t?void 0:t[0]))}catch(e){}else if("string"==typeof a&&Bl.test(a)){var c=Bl.exec(a);i=null==c||null==c[1]||null==t?void 0:t[0]-+c[1]}else i=null==t?void 0:t[0];if("auto"===l)null!=t&&(o=Math.max(...t));else if(Ot(l))o=l;else if("function"==typeof l)try{null!=t&&(o=l(null==t?void 0:t[1]))}catch(e){}else if("string"==typeof l&&$l.test(l)){var u=$l.exec(l);o=null==u||null==u[1]||null==t?void 0:t[1]+ +u[1]}else o=null==t?void 0:t[1];var s=[i,o];if(Nd(s))return null==t?s:Cd(s,t,r)}}}(t,"vertical"===a&&"xAxis"===l||"horizontal"===a&&"yAxis"===l?wb(n,o,i):wb(o,i),e.allowDataOverflow),Bb=pi([Rg,vb,mb,gb,Ob,Lb,Vc,Wp],Rb,{memoizeOptions:{resultEqualityCheck:Xp}}),$b=[0,1],Vb=(e,t,r,n,i,o,a)=>{if(null!=e&&null!=r&&0!==r.length||void 0!==a){var l,{dataKey:c,type:u}=e,s=Il(t,o);return s&&null==c?Ad(0,null!==(l=null==r?void 0:r.length)&&void 0!==l?l:0):"category"===u?((e,t,r)=>{var n=e.map(Eb).filter(e=>null!=e);return r&&(null==t.dataKey||t.allowDuplicatedCategory&&At(n))?Ad(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))})(n,e,s):"expand"!==i||s?a:$b}},Kb=pi([Rg,Vc,Jg,tb,Op,Wp,Bb],Vb),Fb=pi([Rg,$g,Sp],Sg),Ub=(e,t,r)=>{var{niceTicks:n}=t;if("none"!==n){var i=yb(t),o=Array.isArray(i)&&("auto"===i[0]||"auto"===i[1]);if(("snap125"===n||"adaptive"===n)&&null!=t&&t.tickCount&&Nd(e)){if(o)return gp(e,t.tickCount,t.allowDecimals,n);if("number"===t.type)return bp(e,t.tickCount,t.allowDecimals,n)}if("auto"===n&&"linear"===r&&null!=t&&t.tickCount){if(o&&Nd(e))return gp(e,t.tickCount,t.allowDecimals,"adaptive");if("number"===t.type&&Nd(e))return bp(e,t.tickCount,t.allowDecimals,"adaptive")}}},Wb=pi([Kb,Bg,Fb],Ub),Hb=(e,t,r,n)=>{if("angleAxis"!==n&&"number"===(null==e?void 0:e.type)&&Nd(t)&&Array.isArray(r)&&r.length>0){var i,o,a=null!==(i=r[0])&&void 0!==i?i:0,l=t[1],c=null!==(o=r[r.length-1])&&void 0!==o?o:0;return[Math.min(t[0],a),Math.max(l,c)]}return t},qb=pi([Rg,Kb,Wb,Wp],Hb),Yb=pi(tb,Rg,(e,t)=>{if(t&&"number"===t.type){var r=1/0,n=Array.from(ib(e.map(e=>e.value))).sort((e,t)=>e-t),i=n[0],o=n[n.length-1];if(null==i||null==o)return 1/0;var a=o-i;if(0===a)return 1/0;for(var l=0;l<n.length-1;l++){var c=n[l],u=n[l+1];null!=c&&null!=u&&(r=Math.min(r,u-c))}return r/a}}),Gb=pi(Yb,Vc,xp,ic,(e,t,r,n,i)=>i,(e,t,r,n,i)=>{if(!Pl(e))return 0;var o="vertical"===t?n.height:n.width;if("gap"===i)return e*o/2;if("no-gap"===i){var a=jt(r,e*o),l=e*o/2;return l-a-(l-a)/o*a}return 0}),Xb=pi(Tg,(e,t,r)=>{var n=Tg(e,t);return null==n||"string"!=typeof n.padding?0:Gb(e,"xAxis",t,r,n.padding)},(e,t)=>{var r,n;if(null==e)return{left:0,right:0};var{padding:i}=e;return"string"==typeof i?{left:t,right:t}:{left:(null!==(r=i.left)&&void 0!==r?r:0)+t,right:(null!==(n=i.right)&&void 0!==n?n:0)+t}}),Zb=pi(Cg,(e,t,r)=>{var n=Cg(e,t);return null==n||"string"!=typeof n.padding?0:Gb(e,"yAxis",t,r,n.padding)},(e,t)=>{var r,n;if(null==e)return{top:0,bottom:0};var{padding:i}=e;return"string"==typeof i?{top:t,bottom:t}:{top:(null!==(r=i.top)&&void 0!==r?r:0)+t,bottom:(null!==(n=i.bottom)&&void 0!==n?n:0)+t}}),Qb=pi([ic,Xb,sc,uc,(e,t,r)=>r],(e,t,r,n,i)=>{var{padding:o}=n;return i?[o.left,r.width-o.right]:[e.left+t.left,e.left+e.width-t.right]}),Jb=pi([ic,Vc,Zb,sc,uc,(e,t,r)=>r],(e,t,r,n,i,o)=>{var{padding:a}=i;return o?[n.height-a.bottom,a.top]:"horizontal"===t?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),ew=(e,t,r,n)=>{var i;switch(t){case"xAxis":return Qb(e,r,n);case"yAxis":return Jb(e,r,n);case"zAxis":return null===(i=Lg(e,r))||void 0===i?void 0:i.range;case"angleAxis":return Kp(e);case"radiusAxis":return Fp(e,r);default:return}},tw=pi([Rg,ew],kp),rw=pi([Fb,qb],(e,t)=>{if(null!=t){if("linear"===e){if(!Nd(t)){for(var r,n,i=0;i<t.length;i++){var o=t[i];Pl(o)&&((void 0===r||o<r)&&(r=o),(void 0===n||o>n)&&(n=o))}return void 0!==r&&void 0!==n?[r,n]:void 0}return t}return t}}),nw=pi([Rg,Fb,rw,tw],Eg),iw=(e,t,r,n)=>{if(null!=r&&null!=r.dataKey){var{type:i,scale:o}=r;return!Il(e,n)||"number"!==i&&"auto"===o?void 0:t.map(e=>e.value)}},ow=pi([Vc,tb,Bg,Wp],iw),aw=pi([nw],eh);function lw(e,t){return e.id<t.id?-1:e.id>t.id?1:0}pi([nw],function(e){if(null!=e)return"invert"in e&&"function"==typeof e.invert?e.invert.bind(e):Pg(e,void 0)}),pi([nw,ab],Pg),pi([Wg,bb,Wp],(e,t,r)=>e.flatMap(e=>t[e.id]).filter(Boolean).filter(e=>lb(r,e)));var cw=(e,t)=>t,uw=(e,t,r)=>r,sw=pi(Yl,cw,uw,(e,t,r)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===r).sort(lw)),fw=pi(Gl,cw,uw,(e,t,r)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===r).sort(lw)),dw=(e,t)=>({width:e.width,height:t.height}),pw=pi(ic,Tg,dw),hw=pi(Wl,ic,sw,cw,uw,(e,t,r,n,i)=>{var o,a={};return r.forEach(r=>{var l=dw(t,r);null==o&&(o=((e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}})(t,n,e));var c="top"===n&&!i||"bottom"===n&&i;a[r.id]=o-Number(c)*l.height,o+=(c?-1:1)*l.height}),a}),yw=pi(Ul,ic,fw,cw,uw,(e,t,r,n,i)=>{var o,a={};return r.forEach(r=>{var l=((e,t)=>({width:"number"==typeof t.width?t.width:60,height:e.height}))(t,r);null==o&&(o=((e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}})(t,n,e));var c="left"===n&&!i||"right"===n&&i;a[r.id]=o-Number(c)*l.width,o+=(c?-1:1)*l.width}),a}),vw=pi([ic,Tg,(e,t)=>{var r=Tg(e,t);if(null!=r)return hw(e,r.orientation,r.mirror)},(e,t)=>t],(e,t,r,n)=>{if(null!=t){var i=null==r?void 0:r[n];return null==i?{x:e.left,y:0}:{x:e.left,y:i}}}),mw=pi([ic,Cg,(e,t)=>{var r=Cg(e,t);if(null!=r)return yw(e,r.orientation,r.mirror)},(e,t)=>t],(e,t,r,n)=>{if(null!=t){var i=null==r?void 0:r[n];return null==i?{x:0,y:e.top}:{x:i,y:e.top}}}),gw=pi(ic,Cg,(e,t)=>({width:"number"==typeof t.width?t.width:60,height:e.height})),bw=(e,t,r)=>{switch(t){case"xAxis":return pw(e,r).width;case"yAxis":return gw(e,r).height;default:return}},ww=(e,t,r,n)=>{if(null!=r){var{allowDuplicatedCategory:i,type:o,dataKey:a}=r,l=Il(e,n),c=t.map(e=>e.value),u=c.filter(e=>null!=e);return a&&l&&"category"===o&&i&&At(u)?c:void 0}},xw=pi([Vc,tb,Rg,Wp],ww),Ow=pi([Vc,(e,t,r)=>{switch(t){case"xAxis":return Tg(e,r);case"yAxis":return Cg(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Fb,aw,xw,ow,ew,Wb,Wp],(e,t,r,n,i,o,a,l,c)=>{if(null!=t){var u=Il(e,c);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:c,categoricalDomain:o,duplicateDomain:i,isCategorical:u,niceTicks:l,range:a,realScaleType:r,scale:n}}}),Ew=pi([Vc,Bg,Fb,aw,Wb,ew,xw,ow,Wp],(e,t,r,n,i,o,a,l,c)=>{if(null!=t&&null!=n){var u=Il(e,c),{type:s,ticks:f,tickCount:d}=t,p="scaleBand"===r&&"function"==typeof n.bandwidth?n.bandwidth()/2:2,h="category"===s&&n.bandwidth?n.bandwidth()/p:0;h="angleAxis"===c&&null!=o&&o.length>=2?2*bt(o[0]-o[1])*h:h;var y=f||i;return y?y.map((e,t)=>{var r=a?a.indexOf(e):e,i=n.map(r);return Pl(i)?{index:t,coordinate:i+h,value:e,offset:h}:null}).filter(Tt):u&&l?l.map((e,t)=>{var r=n.map(e);return Pl(r)?{coordinate:r+h,value:e,index:t,offset:h}:null}).filter(Tt):n.ticks?n.ticks(d).map((e,t)=>{var r=n.map(e);return Pl(r)?{coordinate:r+h,value:e,index:t,offset:h}:null}).filter(Tt):n.domain().map((e,t)=>{var r=n.map(e);return Pl(r)?{coordinate:r+h,value:a?a[e]:e,index:t,offset:h}:null}).filter(Tt)}}),Sw=pi([Vc,Bg,aw,ew,xw,ow,Wp],(e,t,r,n,i,o,a)=>{if(null!=t&&null!=r&&null!=n&&n[0]!==n[1]){var l=Il(e,a),{tickCount:c}=t,u=0;return u="angleAxis"===a&&(null==n?void 0:n.length)>=2?2*bt(n[0]-n[1])*u:u,l&&o?o.map((e,t)=>{var n=r.map(e);return Pl(n)?{coordinate:n+u,value:e,index:t,offset:u}:null}).filter(Tt):r.ticks?r.ticks(c).map((e,t)=>{var n=r.map(e);return Pl(n)?{coordinate:n+u,value:e,index:t,offset:u}:null}).filter(Tt):r.domain().map((e,t)=>{var n=r.map(e);return Pl(n)?{coordinate:n+u,value:i?i[e]:e,index:t,offset:u}:null}).filter(Tt)}}),Pw=pi(Rg,aw,(e,t)=>{if(null!=e&&null!=t)return Ag(Ag({},e),{},{scale:t})}),jw=pi([Rg,Fb,Kb,tw],Eg),Aw=pi([jw],eh);pi((e,t,r)=>Lg(e,r),Aw,(e,t)=>{if(null!=e&&null!=t)return Ag(Ag({},e),{},{scale:t})});var _w=pi([Vc,Yl,Gl],(e,t,r)=>{switch(e){case"horizontal":return t.some(e=>e.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(e=>e.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}});pi([(e,t,r)=>{var n;return null===(n=e.renderedTicks[t])||void 0===n?void 0:n[r]}],e=>{if(e&&0!==e.length)return t=>{var r,n=1/0,i=e[0];for(var o of e){var a=Math.abs(o.coordinate-t);a<n&&(n=a,i=o)}return null===(r=i)||void 0===r?void 0:r.value}});var kw=e=>e.options.defaultTooltipEventType,Mw=e=>e.options.validateTooltipEventTypes;function Iw(e,t,r){if(null==e)return t;var n=e?"axis":"item";return null==r?t:r.includes(n)?n:t}function Tw(e,t){return Iw(t,kw(e),Mw(e))}var Dw=(e,t)=>{var r,n=Number(t);if(!wt(n)&&null!=t)return n>=0?null==e||null===(r=e[n])||void 0===r?void 0:r.value:void 0},Nw={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},Cw=$a({name:"tooltip",initialState:{itemInteraction:{click:Nw,hover:Nw},axisInteraction:{click:Nw,hover:Nw},keyboardInteraction:Nw,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:Ia()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,i=ca(e).tooltipItemPayloads.indexOf(r);i>-1&&(e.tooltipItemPayloads[i]=n)},prepare:Ia()},removeTooltipEntrySettings:{reducer(e,t){var r=ca(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:Ia()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:zw,replaceTooltipEntrySettings:Lw,removeTooltipEntrySettings:Rw,setTooltipSettingsState:Bw,setActiveMouseOverItemIndex:$w,mouseLeaveItem:Vw,mouseLeaveChart:Kw,setActiveClickItemIndex:Fw,setMouseOverAxisIndex:Uw,setMouseClickAxisIndex:Ww,setSyncInteraction:Hw,setKeyboardInteraction:qw}=Cw.actions,Yw=Cw.reducer;function Gw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Xw(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gw(Object(r),!0).forEach(function(t){Zw(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gw(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Zw(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Qw=(e,t,r,n)=>{if(null==t)return Nw;var i=function(e,t,r){return"axis"===t?"click"===r?e.axisInteraction.click:e.axisInteraction.hover:"click"===r?e.itemInteraction.click:e.itemInteraction.hover}(e,t,r);if(null==i)return Nw;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&null!=e.syncInteraction.index)return e.syncInteraction;if(null!=i.index){if(!0===e.settings.active)return Xw(Xw({},i),{},{active:!0})}else if(null!=n)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return Xw(Xw({},Nw),{},{coordinate:i.coordinate})},Jw=(e,t,r,n)=>{var i=null==e?void 0:e.index;if(null==i)return null;var o=Number(i);if(!Pl(o))return i;var a=1/0;t.length>0&&(a=t.length-1);var l=Math.max(0,Math.min(o,a)),c=t[l];return null==c||function(e,t,r){if(null==r||null==t)return!0;var n=Ml(e,t);return null==n||!Nd(r)||function(e,t){var r=function(e){if("number"==typeof e)return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var r=Number(e);return Number.isFinite(r)?r:void 0}(e),n=t[0],i=t[1];if(void 0===r)return!1;var o=Math.min(n,i),a=Math.max(n,i);return r>=o&&r<=a}(n,r)}(c,r,n)?String(l):null},ex=(e,t,r,n,i,o,a)=>{if(null!=o){var l=a[0],c=null==l?void 0:l.getPosition(o);if(null!=c)return c;var u=null==i?void 0:i[Number(o)];if(u)return"horizontal"===r?{x:u.coordinate,y:(n.top+t)/2}:{x:(n.left+e)/2,y:u.coordinate}}},tx=(e,t,r,n)=>{if("axis"===t)return e.tooltipItemPayloads;if(0===e.tooltipItemPayloads.length)return[];var i;if(i="hover"===r?e.itemInteraction.hover.graphicalItemId:e.itemInteraction.click.graphicalItemId,e.syncInteraction.active&&null==i)return e.tooltipItemPayloads;if(null==i&&(null!=n||e.keyboardInteraction.active)){var o=e.tooltipItemPayloads[0];return null!=o?[o]:[]}return e.tooltipItemPayloads.filter(e=>{var t;return(null===(t=e.settings)||void 0===t?void 0:t.graphicalItemId)===i})},rx=e=>e.options.tooltipPayloadSearcher,nx=e=>e.tooltip;function ix(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ox(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ix(Object(r),!0).forEach(function(t){ax(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ix(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ax(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lx(e){if("string"==typeof e)return e}var cx=(e,t,r,n,i,o,a)=>{if(null!=t&&null!=o){var{chartData:l,computedData:c,dataStartIndex:u,dataEndIndex:s}=r;return e.reduce((e,r)=>{var f,d,p,{dataDefinedOnItem:h,settings:y}=r,v=function(e,t){return null!=e?e:t}(h,l),m=Array.isArray(v)?Sl(v,u,s):v,g=null!==(f=null==y?void 0:y.dataKey)&&void 0!==f?f:n,b=null==y?void 0:y.nameKey;return d=n&&Array.isArray(m)&&!Array.isArray(m[0])&&"axis"===a?kt(m,n,i):o(m,t,c,b),Array.isArray(d)?d.forEach(t=>{var r,n,i=function(e){if(null!=e&&"object"==typeof e){var t,r="name"in e?function(e){if("string"==typeof e||"number"==typeof e)return e}(e.name):void 0,n="unit"in e?function(e){if("string"==typeof e||"number"==typeof e||"boolean"==typeof e)return e}(e.unit):void 0;return{name:r,unit:n,dataKey:"dataKey"in e?"string"==typeof(t=e.dataKey)||"number"==typeof t?t:"function"==typeof t?e=>t(e):void 0:void 0,payload:"payload"in e?e.payload:void 0,color:"color"in e?lx(e.color):void 0,fill:"fill"in e?lx(e.fill):void 0}}}(t),o=null==i?void 0:i.name,a=null==i?void 0:i.dataKey,l=null==i?void 0:i.payload,c=ox(ox({},y),{},{name:o,unit:null==i?void 0:i.unit,color:null!==(r=null==i?void 0:i.color)&&void 0!==r?r:null==y?void 0:y.color,fill:null!==(n=null==i?void 0:i.fill)&&void 0!==n?n:null==y?void 0:y.fill});e.push(Kl({tooltipEntrySettings:c,dataKey:a,payload:l,value:Ml(l,a),name:null==o?void 0:String(o)}))}):e.push(Kl({tooltipEntrySettings:y,dataKey:g,payload:d,value:Ml(d,g),name:null!==(p=Ml(d,b))&&void 0!==p?p:null==y?void 0:y.name})),e},[])}},ux=pi([cb,$g,Sp],Sg),sx=pi([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),fx=pi([Qp,Jp],Vg),dx=pi([sx,cb,fx],Ug,{memoizeOptions:{resultEqualityCheck:Zp}}),px=pi([dx],e=>e.filter(Gp)),hx=pi([dx],Gg,{memoizeOptions:{resultEqualityCheck:Zp}}),yx=pi([dx],e=>e.some(e=>!e.data)),vx=pi([hx,_d],Qg),mx=pi([px,_d,cb],Yp),gx=pi([vx,cb,dx,_d,yx,hx],eb),bx=pi([cb],yb),wx=pi([cb],e=>e.allowDataOverflow),xx=pi([bx,wx],zd),Ox=pi([dx],e=>e.filter(Gp)),Ex=pi([mx,Ox,Op,Ep],fb),Sx=pi([Ex,_d,Qp,xx],pb),Px=pi([dx],qg),jx=pi([vx,cb,Px,bb,Qp,Dd],xb,{memoizeOptions:{resultEqualityCheck:Xp}}),Ax=pi([Sb,Qp,Jp],Pb),_x=pi([Ax,Qp],Ib),kx=pi([Ab,Qp,Jp],Pb),Mx=pi([kx,Qp],Db),Ix=pi([kb,Qp,Jp],Pb),Tx=pi([Ix,Qp],Cb),Dx=pi([_x,Tx,Mx],wb),Nx=pi([cb,bx,xx,Sx,jx,Dx,Vc,Qp],Rb),Cx=pi([cb,Vc,vx,gx,Op,Qp,Nx],Vb),zx=pi([Cx,cb,ux],Ub),Lx=pi([cb,Cx,zx,Qp],Hb),Rx=e=>{var t=Qp(e),r=Jp(e);return ew(e,t,r,!1)},Bx=pi([cb,Rx],kp),$x=pi([cb,ux,Lx,Bx],Eg),Vx=pi([$x],eh),Kx=pi([Vc,gx,cb,Qp],ww),Fx=pi([Vc,gx,cb,Qp],iw),Ux=pi([Vc,cb,ux,Vx,Rx,Kx,Fx,Qp],(e,t,r,n,i,o,a,l)=>{if(t){var{type:c}=t,u=Il(e,l);if(n){var s="scaleBand"===r&&n.bandwidth?n.bandwidth()/2:2,f="category"===c&&n.bandwidth?n.bandwidth()/s:0;return f="angleAxis"===l&&null!=i&&(null==i?void 0:i.length)>=2?2*bt(i[0]-i[1])*f:f,u&&a?a.map((e,t)=>{var r=n.map(e);return Pl(r)?{coordinate:r+f,value:e,index:t,offset:f}:null}).filter(Tt):n.domain().map((e,t)=>{var r=n.map(e);return Pl(r)?{coordinate:r+f,value:o?o[e]:e,index:t,offset:f}:null}).filter(Tt)}}}),Wx=pi([kw,Mw,e=>e.tooltip.settings],(e,t,r)=>Iw(r.shared,e,t)),Hx=e=>e.tooltip.settings.trigger,qx=e=>e.tooltip.settings.defaultIndex,Yx=pi([nx,Wx,Hx,qx],Qw),Gx=pi([Yx,vx,ub,Cx],Jw),Xx=pi([Ux,Gx],Dw),Zx=pi([Yx],e=>{if(e)return e.dataKey}),Qx=pi([Yx],e=>{if(e)return e.graphicalItemId}),Jx=pi([nx,Wx,Hx,qx],tx),eO=pi([Ul,Wl,Vc,ic,Ux,qx,Jx],ex),tO=pi([Yx,eO],(e,t)=>null!=e&&e.coordinate?e.coordinate:t),rO=pi([Yx],e=>{var t;return null!==(t=null==e?void 0:e.active)&&void 0!==t&&t}),nO=pi([Jx,Gx,_d,ub,Xx,rx,Wx],cx),iO=pi([nO],e=>{if(null!=e){var t=e.map(e=>e.payload).filter(e=>null!=e);return Array.from(new Set(t))}});function oO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function aO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oO(Object(r),!0).forEach(function(t){lO(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oO(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function lO(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function uO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cO(Object(r),!0).forEach(function(t){sO(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cO(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function sO(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var fO=(e,t,r,n,i)=>{var o,a=null!==(o=null==t?void 0:t.length)&&void 0!==o?o:0;if(a<=1||null==e)return 0;if("angleAxis"===n&&null!=i&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var l=0;l<a;l++){var c,u,s,f,d,p=l>0?null===(c=r[l-1])||void 0===c?void 0:c.coordinate:null===(u=r[a-1])||void 0===u?void 0:u.coordinate,h=null===(s=r[l])||void 0===s?void 0:s.coordinate,y=l>=a-1?null===(f=r[0])||void 0===f?void 0:f.coordinate:null===(d=r[l+1])||void 0===d?void 0:d.coordinate,v=void 0;if(null!=p&&null!=h&&null!=y)if(bt(h-p)!==bt(y-h)){var m=[];if(bt(y-h)===bt(i[1]-i[0])){v=y;var g=h+i[1]-i[0];m[0]=Math.min(g,(g+p)/2),m[1]=Math.max(g,(g+p)/2)}else{v=p;var b=y+i[1]-i[0];m[0]=Math.min(h,(b+h)/2),m[1]=Math.max(h,(b+h)/2)}var w,x=[Math.min(h,(v+h)/2),Math.max(h,(v+h)/2)];if(e>x[0]&&e<=x[1]||e>=m[0]&&e<=m[1])return null===(w=r[l])||void 0===w?void 0:w.index}else{var O,E=Math.min(p,y),S=Math.max(p,y);if(e>(E+h)/2&&e<=(S+h)/2)return null===(O=r[l])||void 0===O?void 0:O.index}}else if(t)for(var P=0;P<a;P++){var j=t[P];if(null!=j){var A=t[P+1],_=t[P-1];if(0===P&&null!=A&&e<=(j.coordinate+A.coordinate)/2)return j.index;if(P===a-1&&null!=_&&e>(j.coordinate+_.coordinate)/2)return j.index;if(P>0&&P<a-1&&null!=_&&null!=A&&e>(j.coordinate+_.coordinate)/2&&e<=(j.coordinate+A.coordinate)/2)return j.index}}return-1},dO=()=>ri(Sp),pO=(e,t)=>t,hO=(e,t,r)=>r,yO=(e,t,r,n)=>n,vO=pi(Ux,e=>Li(e,e=>e.coordinate)),mO=pi([nx,pO,hO,yO],Qw),gO=pi([mO,vx,ub,Cx],Jw),bO=pi([nx,pO,hO,yO],tx),wO=pi([Ul,Wl,Vc,ic,Ux,yO,bO],ex),xO=pi([mO,wO],(e,t)=>{var r;return null!==(r=e.coordinate)&&void 0!==r?r:t}),OO=pi([Ux,gO],Dw),EO=pi([bO,gO,_d,ub,OO,rx,pO],cx),SO=pi([mO,gO],(e,t)=>({isActive:e.active&&null!=t,activeIndex:t})),PO=pi(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(null!=t){var n=e[t];if(null!=n)return r?n.panoramaElement:n.element}}),jO=pi(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(e=>parseInt(e,10)).concat(Object.values(_p));return Array.from(new Set(t)).sort((e,t)=>e-t)},{memoizeOptions:{resultEqualityCheck:function(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return!1}}});function AO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?AO(Object(r),!0).forEach(function(t){kO(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AO(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function kO(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var MO={zIndexMap:Object.values(_p).reduce((e,t)=>_O(_O({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),{})},IO=new Set(Object.values(_p)),TO=$a({name:"zIndex",initialState:MO,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:Ia()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!function(e){return IO.has(e)}(r)&&delete e.zIndexMap[r])},prepare:Ia()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r,element:n,isPanorama:i}=t.payload;e.zIndexMap[r]?i?e.zIndexMap[r].panoramaElement=n:e.zIndexMap[r].element=n:e.zIndexMap[r]={consumers:0,element:i?void 0:n,panoramaElement:i?n:void 0}},prepare:Ia()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElement=void 0:e.zIndexMap[r].element=void 0)},prepare:Ia()}}}),{registerZIndexPortal:DO,unregisterZIndexPortal:NO,registerZIndexPortalElement:CO,unregisterZIndexPortalElement:zO}=TO.actions,LO=TO.reducer;function RO(e){var{zIndex:t,children:r}=e,n=void 0!==Kc()&&void 0!==t&&0!==t,i=cc(),o=m(void 0),a=m(new Set),l=Qn(),c=ri(e=>PO(e,t,i));if(w(()=>{if(!n){var e=a.current;return e.forEach(e=>{l(NO({zIndex:e}))}),e.clear(),void(o.current=void 0)}if(a.current.has(t)||(l(DO({zIndex:t})),a.current.add(t)),c){o.current=c;var r=a.current;r.forEach(e=>{e!==t&&(l(NO({zIndex:e})),r.delete(e))})}},[l,t,n,c]),w(()=>{var e=a.current;return()=>{e.forEach(e=>{l(NO({zIndex:e}))}),e.clear()}},[l]),!n)return r;var u=null!=c?c:o.current;return u?A(r,u):null}function BO(){return BO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},BO.apply(null,arguments)}function $O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function VO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$O(Object(r),!0).forEach(function(t){KO(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$O(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function KO(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FO(e){var{cursor:t,cursorComp:r,cursorProps:n}=e;return s(t)?x(t,n):O(r,n)}function UO(e){var t,r,n,i,{coordinate:o,payload:a,index:l,offset:u,tooltipAxisBandSize:s,layout:f,cursor:d,tooltipEventType:p,chartName:h}=e,y=o,v=a,m=l;if(!d||!y||"ScatterChart"!==h&&"axis"!==p)return null;if("ScatterChart"===h)r=y,n=tf,i=_p.cursorLine;else if("BarChart"===h)r=function(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-i:r.left+.5,y:"horizontal"===e?r.top+.5:t.y-i,width:"horizontal"===e?n:r.width-1,height:"horizontal"===e?r.height-1:n}}(f,y,u,s),n=qf,i=_p.cursorRectangle;else if("radial"===f&&Kt(y)){var{cx:g,cy:b,radius:w,startAngle:x,endAngle:O}=cd(y);r={cx:g,cy:b,startAngle:x,endAngle:O,innerRadius:w,outerRadius:w},n=hd,i=_p.cursorLine}else r={points:yd(f,y,u)},n=Gs,i=_p.cursorLine;var E="object"==typeof d&&"className"in d?d.className:void 0,S=VO(VO(VO(VO({stroke:"#ccc",pointerEvents:"none"},u),r),z(d)),{},{payload:v,payloadIndex:m,className:k("recharts-tooltip-cursor",E)});return c.createElement(RO,{zIndex:null!==(t=e.zIndex)&&void 0!==t?t:i},c.createElement(FO,{cursor:d,cursorComp:n,cursorProps:S}))}function WO(e){var t,r,n,i=(t=ri(cb),r=ri(Ux),n=ri(Vx),Vl(t&&n?aO(aO({},t),{},{scale:n}):void 0,r)),o=Rc(),a=Kc(),l=dO();return null==i||null==o||null==a||null==l?null:c.createElement(UO,BO({},e,{offset:o,layout:a,tooltipAxisBandSize:i,chartName:l}))}var HO,qO=p(null),YO={exports:{}},GO=new(r((HO||(HO=1,function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function o(e,t,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var l=new i(n,o||e,a),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],l]:e._events[c].push(l):(e._events[c]=l,e._eventsCount++),e}function a(e,t){0===--e._eventsCount?e._events=new n:delete e._events[t]}function l(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),l.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},l.prototype.listeners=function(e){var t=this._events[r?r+e:e];if(!t)return[];if(t.fn)return[t.fn];for(var n=0,i=t.length,o=new Array(i);n<i;n++)o[n]=t[n].fn;return o},l.prototype.listenerCount=function(e){var t=this._events[r?r+e:e];return t?t.fn?1:t.length:0},l.prototype.emit=function(e,t,n,i,o,a){var l=r?r+e:e;if(!this._events[l])return!1;var c,u,s=this._events[l],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(e,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,t),!0;case 3:return s.fn.call(s.context,t,n),!0;case 4:return s.fn.call(s.context,t,n,i),!0;case 5:return s.fn.call(s.context,t,n,i,o),!0;case 6:return s.fn.call(s.context,t,n,i,o,a),!0}for(u=1,c=new Array(f-1);u<f;u++)c[u-1]=arguments[u];s.fn.apply(s.context,c)}else{var d,p=s.length;for(u=0;u<p;u++)switch(s[u].once&&this.removeListener(e,s[u].fn,void 0,!0),f){case 1:s[u].fn.call(s[u].context);break;case 2:s[u].fn.call(s[u].context,t);break;case 3:s[u].fn.call(s[u].context,t,n);break;case 4:s[u].fn.call(s[u].context,t,n,i);break;default:if(!c)for(d=1,c=new Array(f-1);d<f;d++)c[d-1]=arguments[d];s[u].fn.apply(s[u].context,c)}}return!0},l.prototype.on=function(e,t,r){return o(this,e,t,r,!1)},l.prototype.once=function(e,t,r){return o(this,e,t,r,!0)},l.prototype.removeListener=function(e,t,n,i){var o=r?r+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var l=this._events[o];if(l.fn)l.fn!==t||i&&!l.once||n&&l.context!==n||a(this,o);else{for(var c=0,u=[],s=l.length;c<s;c++)(l[c].fn!==t||i&&!l[c].once||n&&l[c].context!==n)&&u.push(l[c]);u.length?this._events[o]=1===u.length?u[0]:u:a(this,o)}return this},l.prototype.removeAllListeners=function(e){var t;return e?this._events[t=r?r+e:e]&&a(this,t):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,e.exports=l}(YO)),YO.exports))),XO="recharts.syncEvent.tooltip",ZO="recharts.syncEvent.brush",QO=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!wt(r))return e[r]}},JO=$a({name:"options",initialState:{chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},reducers:{createEventEmitter:e=>{null==e.eventEmitter&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),eE=JO.reducer,{createEventEmitter:tE}=JO.actions;function rE(e){return e.tooltip.syncInteraction}var nE=$a({name:"chartData",initialState:{chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},reducers:{setChartData(e,t){if(e.chartData=t.payload,null==t.payload)return e.dataStartIndex=0,void(e.dataEndIndex=0);t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:n}=t.payload;null!=r&&(e.dataStartIndex=r),null!=n&&(e.dataEndIndex=n)}}}),{setChartData:iE,setDataStartEndIndexes:oE}=nE.actions,aE=nE.reducer,lE=["x","y"];function cE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function uE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cE(Object(r),!0).forEach(function(t){sE(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cE(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function sE(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function dE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fE(Object(r),!0).forEach(function(t){pE(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fE(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function pE(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hE(e){return e.dataKey}var yE=[],vE={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function mE(e){var t,r,n=qt(e,vE),{active:i,allowEscapeViewBox:o,animationDuration:a,animationEasing:l,content:u,filterNull:s,isAnimationActive:f,offset:p,payloadUniqBy:h,position:y,reverseDirection:v,useTranslate3d:m,wrapperStyle:g,cursor:w,shared:x,trigger:O,defaultIndex:E,portal:S,axisId:P}=n,j=Qn(),_="number"==typeof E?String(E):E;b(()=>{j(Bw({shared:x,trigger:O,axisId:P,active:i,defaultIndex:_}))},[j,x,O,P,i,_]);var k=zc(),M=Rs(),I=function(e){return ri(t=>Tw(t,e))}(x),{activeIndex:T,isActive:D}=null!==(t=ri(e=>SO(e,I,O,_)))&&void 0!==t?t:{},N=ri(e=>EO(e,I,O,_)),C=ri(e=>OO(e,I,O,_)),z=ri(e=>xO(e,I,O,_)),L=N,R=d(qO),B=null!==(r=null!=i?i:D)&&void 0!==r&&r,[$,V]=$i([L,B]),K="axis"===I?C:void 0;!function(e,t,r,n,i,o){var a=ri(r=>((e,t,r)=>{if(null!=t){var n=nx(e);return"axis"===t?"hover"===r?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:"hover"===r?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}})(r,e,t)),l=ri(Qx),c=ri(Ap),u=ri(Pp),s=ri(jp),f=ri(rE),d=null!=(null==f?void 0:f.sourceViewBox),p=zc();b(()=>{if(!d&&null!=u&&null!=c){var e=Hw({active:o,coordinate:r,dataKey:a,index:i,label:"number"==typeof n?String(n):n,sourceViewBox:p,graphicalItemId:l});GO.emit(XO,u,e,c)}},[d,r,a,l,i,n,c,u,s,o,p])}(I,O,z,K,T,B);var F=null!=S?S:R;if(null==F||null==k||null==I)return null;var U=null!=L?L:yE;B||(U=yE),s&&U.length&&(U=Cn(U.filter(e=>null!=e.value&&(!0!==e.hide||n.includeHidden)),h,hE));var W=U.length>0,H=dE(dE({},n),{},{payload:U,label:K,active:B,activeIndex:T,coordinate:z,accessibilityLayer:M}),q=c.createElement(Ls,{allowEscapeViewBox:o,animationDuration:a,animationEasing:l,isAnimationActive:f,active:B,coordinate:z,hasPayload:W,offset:p,position:y,reverseDirection:v,useTranslate3d:m,viewBox:k,wrapperStyle:g,lastBoundingBox:$,innerRef:V,hasPortalFromProps:Boolean(S)},function(e,t){return c.isValidElement(e)?c.cloneElement(e,t):c.createElement("function"==typeof e?e:Ps,t)}(u,H));return c.createElement(c.Fragment,null,A(q,F),B&&c.createElement(WO,{cursor:w,tooltipEventType:I,coordinate:z,payload:U,index:T}))}var gE=e=>null;function bE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function wE(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}gE.displayName="Cell";var xE,OE,EE,SE,PE=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bE(Object(r),!0).forEach(function(t){wE(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bE(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},{cacheSize:2e3,enableCache:!0}),jE=new class{constructor(e){(function(e,t,r){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})(this,"cache",new Map),this.maxSize=e}get(e){var t=this.cache.get(e);return void 0!==t&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){var r=this.cache.keys().next().value;null!=r&&this.cache.delete(r)}this.cache.set(e,t)}clear(){this.cache.clear()}size(){return this.cache.size}}(PE.cacheSize),AE={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},_E="recharts_measurement_span",kE=(e,t)=>{try{var r=document.getElementById(_E);r||((r=document.createElement("span")).setAttribute("id",_E),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,AE,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch(e){return{width:0,height:0}}},ME=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||Ms)return{width:0,height:0};if(!PE.enableCache)return kE(e,t);var r=function(e,t){var r=t.fontSize||"",n=t.fontFamily||"",i=t.fontWeight||"",o=t.fontStyle||"",a=t.letterSpacing||"",l=t.textTransform||"";return"".concat(e,"|").concat(r,"|").concat(n,"|").concat(i,"|").concat(o,"|").concat(a,"|").concat(l)}(e,t),n=jE.get(r);if(n)return n;var i=kE(e,t);return jE.set(r,i),i},IE=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,TE=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,DE=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,NE=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,CE={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},zE=["cm","mm","pt","pc","in","Q","px"],LE="NaN";class RE{static parse(e){var t,[,r,n]=null!==(t=NE.exec(e))&&void 0!==t?t:[];return null==r?RE.NaN:new RE(parseFloat(r),null!=n?n:"")}constructor(e,t){this.num=e,this.unit=t,this.num=e,this.unit=t,wt(e)&&(this.unit=""),""===t||DE.test(t)||(this.num=NaN,this.unit=""),function(e){return zE.includes(e)}(t)&&(this.num=function(e,t){return e*CE[t]}(e,t),this.unit="px")}add(e){return this.unit!==e.unit?new RE(NaN,""):new RE(this.num+e.num,this.unit)}subtract(e){return this.unit!==e.unit?new RE(NaN,""):new RE(this.num-e.num,this.unit)}multiply(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new RE(NaN,""):new RE(this.num*e.num,this.unit||e.unit)}divide(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new RE(NaN,""):new RE(this.num/e.num,this.unit||e.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return wt(this.num)}}function BE(e){if(null==e||e.includes(LE))return LE;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,i,o]=null!==(r=IE.exec(t))&&void 0!==r?r:[],a=RE.parse(null!=n?n:""),l=RE.parse(null!=o?o:""),c="*"===i?a.multiply(l):a.divide(l);if(c.isNaN())return LE;t=t.replace(IE,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var u,[,s,f,d]=null!==(u=TE.exec(t))&&void 0!==u?u:[],p=RE.parse(null!=s?s:""),h=RE.parse(null!=d?d:""),y="+"===f?p.add(h):p.subtract(h);if(y.isNaN())return LE;t=t.replace(TE,y.toString())}return t}xE=RE,OE="NaN",EE=new RE(NaN,""),SE=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(OE),(OE="symbol"==typeof SE?SE:SE+"")in xE?Object.defineProperty(xE,OE,{value:EE,enumerable:!0,configurable:!0,writable:!0}):xE[OE]=EE;var $E=/\(([^()]*)\)/;function VE(e){var t=function(e){try{return function(e){var t=e.replace(/\s+/g,"");return t=function(e){for(var t,r=e;null!=(t=$E.exec(r));){var[,n]=t;r=r.replace($E,BE(n))}return r}(t),BE(t)}(e)}catch(e){return LE}}(e.slice(5,-1));return t===LE?"":t}var KE=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],FE=["dx","dy","angle","className","breakAll"];function UE(){return UE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},UE.apply(null,arguments)}function WE(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var HE=/[ \f\n\r\t\v\u2028\u2029]+/,qE=e=>{var{children:t,breakAll:r,style:n}=e;try{var i=[];return Mt(t)||(i=r?t.toString().split(""):t.toString().split(HE)),{wordsWithComputedWidth:i.map(e=>({word:e,width:ME(e,n).width})),spaceWidth:r?0:ME(" ",n).width}}catch(e){return null}};function YE(e){return"start"===e||"middle"===e||"end"===e||"inherit"===e}var GE=(e,t,r,n)=>e.reduce((e,i)=>{var{word:o,width:a}=i,l=e[e.length-1];return l&&null!=a&&(null==t||n||l.width+a+r<Number(t))?(l.words.push(o),l.width+=a+r):e.push({words:[o],width:a}),e},[]),XE=e=>e.reduce((e,t)=>e.width>t.width?e:t),ZE=(e,t,r,n,i,o,a,l)=>{var c=e.slice(0,t),u=qE({breakAll:r,style:n,children:c+"…"});if(!u)return[!1,[]];var s=GE(u.wordsWithComputedWidth,o,a,l);return[s.length>i||XE(s).width>Number(o),s]},QE=e=>[{words:Mt(e)?[]:e.toString().split(HE),width:void 0}],JE="#808080",eS={angle:0,breakAll:!1,capHeight:"0.71em",fill:JE,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},tS=f((e,t)=>{var r=qt(e,eS),{x:n,y:i,lineHeight:o,capHeight:a,fill:l,scaleToFit:u,textAnchor:s,verticalAnchor:f}=r,d=WE(r,KE),p=h(()=>(e=>{var{width:t,scaleToFit:r,children:n,style:i,breakAll:o,maxLines:a}=e;if((t||r)&&!Ms){var l=qE({breakAll:o,children:n,style:i});if(!l)return QE(n);var{wordsWithComputedWidth:c,spaceWidth:u}=l;return((e,t,r,n,i)=>{var{maxLines:o,children:a,style:l,breakAll:c}=e,u=Ot(o),s=String(a),f=GE(t,n,r,i);if(!u||i)return f;if(!(f.length>o||XE(f).width>Number(n)))return f;for(var d,p=0,h=s.length-1,y=0;p<=h&&y<=s.length-1;){var v=Math.floor((p+h)/2),m=v-1,[g,b]=ZE(s,m,c,l,o,n,r,i),[w]=ZE(s,v,c,l,o,n,r,i);if(g||w||(p=v+1),g&&w&&(h=v-1),!g&&w){d=b;break}y++}return d||f})({breakAll:o,children:n,maxLines:a,style:i},c,u,t,Boolean(r))}return QE(n)})({breakAll:d.breakAll,children:d.children,maxLines:d.maxLines,scaleToFit:u,style:d.style,width:d.width}),[d.breakAll,d.children,d.maxLines,u,d.style,d.width]),{dx:y,dy:v,angle:m,className:g,breakAll:b}=d,w=WE(d,FE);if(!Et(n)||!Et(i)||0===p.length)return null;var x,O=Number(n)+(Ot(y)?y:0),E=Number(i)+(Ot(v)?v:0);if(!Pl(O)||!Pl(E))return null;switch(f){case"start":x=VE("calc(".concat(a,")"));break;case"middle":x=VE("calc(".concat((p.length-1)/2," * -").concat(o," + (").concat(a," / 2))"));break;default:x=VE("calc(".concat(p.length-1," * -").concat(o,")"))}var S=[],P=p[0];if(u&&null!=P){var j=P.width,{width:A}=d;S.push("scale(".concat(Ot(A)&&Ot(j)?A/j:1,")"))}return m&&S.push("rotate(".concat(m,", ").concat(O,", ").concat(E,")")),S.length&&(w.transform=S.join(" ")),c.createElement("text",UE({},L(w),{ref:t,x:O,y:E,className:k("recharts-text",g),textAnchor:s,fill:l.includes("url")?JE:l}),p.map((e,t)=>{var r=e.words.join(b?"":" ");return c.createElement("tspan",{x:O,dy:0===t?x:o,key:"".concat(r,"-").concat(t)},r)}))});function rS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function nS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rS(Object(r),!0).forEach(function(t){iS(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rS(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function iS(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}tS.displayName="Text";var oS=["labelRef"],aS=["content"];function lS(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function cS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function uS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cS(Object(r),!0).forEach(function(t){sS(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cS(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function sS(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fS(){return fS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fS.apply(null,arguments)}var dS=p(null),pS=e=>{var{x:t,y:r,upperWidth:n,lowerWidth:i,width:o,height:a,children:l}=e,u=h(()=>({x:t,y:r,upperWidth:n,lowerWidth:i,width:o,height:a}),[t,r,n,i,o,a]);return c.createElement(dS.Provider,{value:u},l)},hS=()=>{var e=d(dS),t=zc();return e||(t?Cc(t):void 0)},yS=p(null),vS=e=>null!=e&&"function"==typeof e,mS=e=>null!=e&&"cx"in e&&Ot(e.cx),gS={angle:0,offset:5,zIndex:_p.label,position:"middle",textBreakAll:!1};function bS(e){var t,r,n,i,o,a=qt(e,gS),{viewBox:l,parentViewBox:u,position:f,value:p,children:h,content:y,className:v="",textBreakAll:m,labelRef:g}=a,b=(t=d(yS),r=ri(Up),t||r),w=hS(),E=function(e){if(!mS(e))return e;var{cx:t,cy:r,outerRadius:n}=e,i=2*n;return{x:t-n,y:r-n,width:i,upperWidth:i,lowerWidth:i,height:i}}(n=null==l?"center"===f?w:null!=b?b:w:mS(l)?l:Cc(l));if(!n||Mt(p)&&Mt(h)&&!s(y)&&"function"!=typeof y)return null;var S=uS(uS({},a),{},{viewBox:n});if(s(y)){var P=lS(S,oS);return x(y,P)}if("function"==typeof y){var j=lS(S,aS);if(s(i=O(y,j)))return i}else i=(e=>{var{value:t,formatter:r}=e,n=Mt(e.children)?t:e.children;return"function"==typeof r?r(n):n})(a);var A=L(a);if(mS(n)){if("insideStart"===f||"insideEnd"===f||"end"===f)return((e,t,r,n,i)=>{var o,a,{offset:l,className:u}=e,{cx:s,cy:f,innerRadius:d,outerRadius:p,startAngle:h,endAngle:y,clockWise:v}=i,m=(d+p)/2,g=((e,t)=>bt(t-e)*Math.min(Math.abs(t-e),360))(h,y),b=g>=0?1:-1;switch(t){case"insideStart":o=h+b*l,a=v;break;case"insideEnd":o=y-b*l,a=!v;break;case"end":o=y+b*l,a=v;break;default:throw new Error("Unsupported position ".concat(t))}a=g<=0?a:!a;var w=ad(s,f,m,o),x=ad(s,f,m,o+359*(a?1:-1)),O="M".concat(w.x,",").concat(w.y,"\n A").concat(m,",").concat(m,",0,1,").concat(a?0:1,",\n ").concat(x.x,",").concat(x.y),E=Mt(e.id)?Pt("recharts-radial-line-"):e.id;return c.createElement("text",fS({},n,{dominantBaseline:"central",className:k("recharts-radial-bar-label",u)}),c.createElement("defs",null,c.createElement("path",{id:E,d:O})),c.createElement("textPath",{xlinkHref:"#".concat(E)},r))})(a,f,i,A,n);o=((e,t,r)=>{var{cx:n,cy:i,innerRadius:o,outerRadius:a,startAngle:l,endAngle:c}=e,u=(l+c)/2;if("outside"===r){var{x:s,y:f}=ad(n,i,a+t,u);return{x:s,y:f,textAnchor:s>=n?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:n,y:i,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:n,y:i,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:n,y:i,textAnchor:"middle",verticalAnchor:"end"};var d=(o+a)/2,{x:p,y:h}=ad(n,i,d,u);return{x:p,y:h,textAnchor:"middle",verticalAnchor:"middle"}})(n,a.offset,a.position)}else{if(!E)return null;var _=(e=>{var{viewBox:t,position:r,offset:n=0,parentViewBox:i}=e,{x:o,y:a,height:l,upperWidth:c,lowerWidth:u}=Cc(t),s=o,f=o+(c-u)/2,d=(s+f)/2,p=(c+u)/2,h=s+c/2,y=l>=0?1:-1,v=y*n,m=y>0?"end":"start",g=y>0?"start":"end",b=c>=0?1:-1,w=b*n,x=b>0?"end":"start",O=b>0?"start":"end",E=i;if("top"===r){var S={x:s+c/2,y:a-v,horizontalAnchor:"middle",verticalAnchor:m};return E&&(S.height=Math.max(a-E.y,0),S.width=c),S}if("bottom"===r){var P={x:f+u/2,y:a+l+v,horizontalAnchor:"middle",verticalAnchor:g};return E&&(P.height=Math.max(E.y+E.height-(a+l),0),P.width=u),P}if("left"===r){var j={x:d-w,y:a+l/2,horizontalAnchor:x,verticalAnchor:"middle"};return E&&(j.width=Math.max(j.x-E.x,0),j.height=l),j}if("right"===r){var A={x:d+p+w,y:a+l/2,horizontalAnchor:O,verticalAnchor:"middle"};return E&&(A.width=Math.max(E.x+E.width-A.x,0),A.height=l),A}var _=E?{width:p,height:l}:{};return"insideLeft"===r?nS({x:d+w,y:a+l/2,horizontalAnchor:O,verticalAnchor:"middle"},_):"insideRight"===r?nS({x:d+p-w,y:a+l/2,horizontalAnchor:x,verticalAnchor:"middle"},_):"insideTop"===r?nS({x:s+c/2,y:a+v,horizontalAnchor:"middle",verticalAnchor:g},_):"insideBottom"===r?nS({x:f+u/2,y:a+l-v,horizontalAnchor:"middle",verticalAnchor:m},_):"insideTopLeft"===r?nS({x:s+w,y:a+v,horizontalAnchor:O,verticalAnchor:g},_):"insideTopRight"===r?nS({x:s+c-w,y:a+v,horizontalAnchor:x,verticalAnchor:g},_):"insideBottomLeft"===r?nS({x:f+w,y:a+l-v,horizontalAnchor:O,verticalAnchor:m},_):"insideBottomRight"===r?nS({x:f+u-w,y:a+l-v,horizontalAnchor:x,verticalAnchor:m},_):r&&"object"==typeof r&&(Ot(r.x)||xt(r.x))&&(Ot(r.y)||xt(r.y))?nS({x:o+jt(r.x,p),y:a+jt(r.y,l),horizontalAnchor:"end",verticalAnchor:"end"},_):nS({x:h,y:a+l/2,horizontalAnchor:"middle",verticalAnchor:"middle"},_)})({viewBox:E,position:f,offset:a.offset,parentViewBox:mS(u)?void 0:u});o=uS(uS({x:_.x,y:_.y,textAnchor:_.horizontalAnchor,verticalAnchor:_.verticalAnchor},void 0!==_.width?{width:_.width}:{}),void 0!==_.height?{height:_.height}:{})}return c.createElement(RO,{zIndex:a.zIndex},c.createElement(tS,fS({ref:g,className:k("recharts-label",v)},A,o,{textAnchor:YE(A.textAnchor)?A.textAnchor:o.textAnchor,breakAll:m}),i))}function wS(e){var{label:t,labelRef:r}=e;return((e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return!0===e?c.createElement(bS,fS({key:"label-implicit"},n)):Et(e)?c.createElement(bS,fS({key:"label-implicit",value:e},n)):s(e)?e.type===bS?x(e,uS({key:"label-implicit"},n)):c.createElement(bS,fS({key:"label-implicit",content:e},n)):vS(e)?c.createElement(bS,fS({key:"label-implicit",content:e},n)):e&&"object"==typeof e?c.createElement(bS,fS({},e,{key:"label-implicit"},n)):null})(t,hS(),r)||null}bS.displayName="Label";var xS=["valueAccessor"],OS=["dataKey","clockWise","id","textBreakAll","zIndex"];function ES(){return ES=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ES.apply(null,arguments)}function SS(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var PS=e=>{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(function(e){return Mt(e)||"string"==typeof e||"number"==typeof e||"boolean"==typeof e}(t))return t},jS=p(void 0),AS=jS.Provider,_S=p(void 0);function kS(e){var{valueAccessor:t=PS}=e,r=SS(e,xS),{dataKey:n,id:i,textBreakAll:o,zIndex:a}=r,l=SS(r,OS),u=d(jS),s=d(_S),f=u||s;return f&&f.length?c.createElement(RO,{zIndex:null!=a?a:_p.label},c.createElement(F,{className:"recharts-label-list"},f.map((e,a)=>{var u,s=Mt(n)?t(e,a):Ml(e.payload,n),f=Mt(i)?{}:{id:"".concat(i,"-").concat(a)};return c.createElement(bS,ES({key:"label-".concat(a)},L(e),l,f,{fill:null!==(u=r.fill)&&void 0!==u?u:e.fill,parentViewBox:e.parentViewBox,value:s,textBreakAll:o,viewBox:e.viewBox,index:a,zIndex:0}))}))):null}function MS(e){var{label:t}=e;return t?!0===t?c.createElement(kS,{key:"labelList-implicit"}):c.isValidElement(t)||vS(t)?c.createElement(kS,{key:"labelList-implicit",content:t}):"object"==typeof t?c.createElement(kS,ES({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function IS(){return IS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},IS.apply(null,arguments)}kS.displayName="LabelList";var TS,DS=e=>{var{cx:t,cy:r,r:n,className:i}=e,o=k("recharts-dot",i);return Ot(t)&&Ot(r)&&Ot(n)?c.createElement("circle",IS({},C(e),Ft(e),{className:o,cx:t,cy:r,r:n})):null},NS=$a({name:"polarAxis",initialState:{radiusAxis:{},angleAxis:{}},reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}).reducer,CS={exports:{}},zS={};function LS(){if(TS)return zS;TS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),s=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),d=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function h(p){if("object"==typeof p&&null!==p){var h=p.$$typeof;switch(h){case e:switch(p=p.type){case r:case i:case n:case c:case u:case d:return p;default:switch(p=p&&p.$$typeof){case a:case l:case f:case s:case o:return p;default:return h}}case t:return h}}}return zS.ContextConsumer=o,zS.ContextProvider=a,zS.Element=e,zS.ForwardRef=l,zS.Fragment=r,zS.Lazy=f,zS.Memo=s,zS.Portal=t,zS.Profiler=i,zS.StrictMode=n,zS.Suspense=c,zS.SuspenseList=u,zS.isContextConsumer=function(e){return h(e)===o},zS.isContextProvider=function(e){return h(e)===a},zS.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},zS.isForwardRef=function(e){return h(e)===l},zS.isFragment=function(e){return h(e)===r},zS.isLazy=function(e){return h(e)===f},zS.isMemo=function(e){return h(e)===s},zS.isPortal=function(e){return h(e)===t},zS.isProfiler=function(e){return h(e)===i},zS.isStrictMode=function(e){return h(e)===n},zS.isSuspense=function(e){return h(e)===c},zS.isSuspenseList=function(e){return h(e)===u},zS.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===i||e===n||e===c||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===s||e.$$typeof===a||e.$$typeof===o||e.$$typeof===l||e.$$typeof===p||void 0!==e.getModuleId)},zS.typeOf=h,zS}var RS,BS,$S={};function VS(){return RS||(RS=1,"production"!==process.env.NODE_ENV&&function(){function e(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case n:case o:case i:case u:case s:case p:return e;default:switch(e=e&&e.$$typeof){case l:case c:case d:case f:case a:return e;default:return h}}case r:return h}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),s=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");$S.ContextConsumer=a,$S.ContextProvider=l,$S.Element=t,$S.ForwardRef=c,$S.Fragment=n,$S.Lazy=d,$S.Memo=f,$S.Portal=r,$S.Profiler=o,$S.StrictMode=i,$S.Suspense=u,$S.SuspenseList=s,$S.isContextConsumer=function(t){return e(t)===a},$S.isContextProvider=function(t){return e(t)===l},$S.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},$S.isForwardRef=function(t){return e(t)===c},$S.isFragment=function(t){return e(t)===n},$S.isLazy=function(t){return e(t)===d},$S.isMemo=function(t){return e(t)===f},$S.isPortal=function(t){return e(t)===r},$S.isProfiler=function(t){return e(t)===o},$S.isStrictMode=function(t){return e(t)===i},$S.isSuspense=function(t){return e(t)===u},$S.isSuspenseList=function(t){return e(t)===s},$S.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===o||e===i||e===u||e===s||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===f||e.$$typeof===l||e.$$typeof===a||e.$$typeof===c||e.$$typeof===h||void 0!==e.getModuleId)},$S.typeOf=e}()),$S}function KS(){return BS||(BS=1,CS.exports="production"===process.env.NODE_ENV?LS():VS()),CS.exports}var FS,US,WS,HS=KS(),qS=e=>"string"==typeof e?e:e?e.displayName||e.name||"Component":"",YS=null,GS=null,XS=e=>{if(e===YS&&Array.isArray(GS))return GS;var t=[];return E.forEach(e,e=>{Mt(e)||(HS.isFragment(e)?t=t.concat(XS(e.props.children)):t.push(e))}),GS=t,YS=e,t},ZS=e=>!e||"object"!=typeof e||!("clipDot"in e)||Boolean(e.clipDot),QS={};function JS(){return WS?US:(WS=1,US=(FS||(FS=1,e=QS,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isPlainObject=function(e){if("object"!=typeof e)return!1;if(null==e)return!1;if(null===Object.getPrototypeOf(e))return!0;if("[object Object]"!==Object.prototype.toString.call(e)){const t=e[Symbol.toStringTag];return null!=t&&!!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable&&e.toString()===`[object ${t}]`}let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}),QS).isPlainObject);var e}const eP=r(JS());var tP,rP,nP,iP,oP;function aP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function lP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?aP(Object(r),!0).forEach(function(t){cP(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aP(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function cP(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uP(){return uP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},uP.apply(null,arguments)}function sP(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var fP=(e,t,r,n,i)=>{var o,a=r-n;return o=gt(tP||(tP=sP(["M ",",",""])),e,t),o+=gt(rP||(rP=sP(["L ",",",""])),e+r,t),o+=gt(nP||(nP=sP(["L ",",",""])),e+r-a/2,t+i),(o+=gt(iP||(iP=sP(["L ",",",""])),e+r-a/2-n,t+i))+gt(oP||(oP=sP(["L ",","," Z"])),e,t)},dP={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},pP=e=>{var t=qt(e,dP),{x:r,y:n,upperWidth:i,lowerWidth:o,height:a,className:l}=t,{animationEasing:u,animationDuration:s,animationBegin:f,isUpdateAnimationActive:d}=t,p=m(null),[h,v]=y(-1),g=m(i),w=m(o),x=m(a),O=m(r),E=m(n),S=jf(e,"trapezoid-");if(b(()=>{if(p.current&&p.current.getTotalLength)try{var e=p.current.getTotalLength();e&&v(e)}catch(e){}},[]),r!==+r||n!==+n||i!==+i||o!==+o||a!==+a||0===i&&0===o||0===a)return null;var P=k("recharts-trapezoid",l);if(!d)return c.createElement("g",null,c.createElement("path",uP({},L(t),{className:P,d:fP(r,n,i,o,a)})));var j=g.current,A=w.current,_=x.current,M=O.current,I=E.current,T="0px ".concat(-1===h?1:h,"px"),D="".concat(h,"px ").concat(h,"px"),N=af(["strokeDasharray"],s,u);return c.createElement(Pf,{animationId:S,key:S,canBegin:h>0,duration:s,easing:u,isActive:d,begin:f},e=>{var l=_t(j,i,e),u=_t(A,o,e),s=_t(_,a,e),f=_t(M,r,e),d=_t(I,n,e);p.current&&(g.current=l,w.current=u,x.current=s,O.current=f,E.current=d);var h=e>0?{transition:N,strokeDasharray:D}:{strokeDasharray:T};return c.createElement("path",uP({},L(t),{className:P,d:fP(f,d,l,u,s),ref:p,style:lP(lP({},h),t.style)}))})},hP=["option","shapeType","activeClassName","inActiveClassName"];function yP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function vP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yP(Object(r),!0).forEach(function(t){mP(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yP(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function mP(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gP(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return c.createElement(qf,r);case"trapezoid":return c.createElement(pP,r);case"sector":return c.createElement(hd,r);case"symbols":if(function(e){return"symbols"===e}(t))return c.createElement(Vt,r);break;case"curve":return c.createElement(Gs,r);default:return null}}function bP(e){var t,{option:r,shapeType:n,activeClassName:i="recharts-active-shape",inActiveClassName:o="recharts-shape"}=e,a=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,hP);if(s(r))t=x(r,vP(vP({},a),function(e){return s(e)?e.props:e}(r)));else if("function"==typeof r)t=r(a,a.index);else if(eP(r)&&"boolean"!=typeof r){var l=function(e,t){return vP(vP({},t),e)}(r,a);t=c.createElement(gP,{shapeType:n,elementProps:l})}else t=c.createElement(gP,{shapeType:n,elementProps:a});return c.createElement(F,a.isActive?{className:i}:{className:o},t)}var wP,xP=(e,t,r)=>{var n=Qn();return(i,o)=>a=>{null==e||e(i,o,a),n($w({activeIndex:String(o),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}},OP=e=>{var t=Qn();return(r,n)=>i=>{null==e||e(r,n,i),t(Vw())}},EP=(e,t,r)=>{var n=Qn();return(i,o)=>a=>{null==e||e(i,o,a),n(Fw({activeIndex:String(o),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}};function SP(e){var{tooltipEntrySettings:t}=e,r=Qn(),n=cc(),i=m(null);return w(()=>{n||(null===i.current?r(zw(t)):i.current!==t&&r(Lw({prev:i.current,next:t})),i.current=t)},[t,r,n]),w(()=>()=>{i.current&&(r(Rw(i.current)),i.current=null)},[r]),null}function PP(e){var{legendPayload:t}=e,r=Qn(),n=cc(),i=m(null);return w(()=>{n||(null===i.current?r(Vu(t)):i.current!==t&&r(Ku({prev:i.current,next:t})),i.current=t)},[r,n,t]),w(()=>()=>{i.current&&(r(Fu(i.current)),i.current=null)},[r]),null}var jP=null!==(wP=c["useId".toString()])&&void 0!==wP?wP:()=>{var[e]=c.useState(()=>Pt("uid-"));return e},AP=p(void 0),_P=e=>{var t,r,n,{id:i,type:o,children:a}=e,l=(t="recharts-".concat(o),r=i,n=jP(),r||(t?"".concat(t,"-").concat(n):n));return c.createElement(AP.Provider,{value:l},a(l))},kP=$a({name:"graphicalItems",initialState:{cartesianItems:[],polarItems:[]},reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:Ia()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,i=ca(e).cartesianItems.indexOf(r);i>-1&&(e.cartesianItems[i]=n)},prepare:Ia()},removeCartesianGraphicalItem:{reducer(e,t){var r=ca(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:Ia()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:Ia()},removePolarGraphicalItem:{reducer(e,t){var r=ca(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:Ia()},replacePolarGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,i=ca(e).polarItems.indexOf(r);i>-1&&(e.polarItems[i]=n)},prepare:Ia()}}}),{addCartesianGraphicalItem:MP,replaceCartesianGraphicalItem:IP,removeCartesianGraphicalItem:TP}=kP.actions,DP=kP.reducer,NP=S(e=>{var t=Qn(),r=m(null);return w(()=>{null===r.current?t(MP(e)):r.current!==e&&t(IP({prev:r.current,next:e})),r.current=e},[t,e]),w(()=>()=>{r.current&&(t(TP(r.current)),r.current=null)},[t]),null}),CP=["points"];function zP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function LP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zP(Object(r),!0).forEach(function(t){RP(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zP(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function RP(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BP(){return BP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},BP.apply(null,arguments)}function $P(e){var{option:t,dotProps:r,className:n}=e;if(s(t))return x(t,r);if("function"==typeof t)return t(r);var i=k(n,"boolean"!=typeof t?t.className:""),o=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(null!=r?r:{},CP);return c.createElement(DS,BP({},o,{className:i}))}function VP(e){var{points:t,dot:r,className:n,dotClassName:i,dataKey:o,baseProps:a,needClip:l,clipPathId:u,zIndex:f=_p.scatter}=e;if(!function(e,t){return null!=e&&(!!t||1===e.length)}(t,r))return null;var d,p=ZS(r),h=null==(d=r)?null:s(d)?L(d.props):"object"!=typeof d||Array.isArray(d)?null:L(d),y=t.map((e,n)=>{var l,u,s=LP(LP(LP({r:3},a),h),{},{index:n,cx:null!==(l=e.x)&&void 0!==l?l:void 0,cy:null!==(u=e.y)&&void 0!==u?u:void 0,dataKey:o,value:e.value,payload:e.payload,points:t});return c.createElement($P,{key:"dot-".concat(n),option:r,dotProps:s,className:i})}),v={};return l&&null!=u&&(v.clipPath="url(#clipPath-".concat(p?"":"dots-").concat(u,")")),c.createElement(RO,{zIndex:f},c.createElement(F,BP({className:n},v),y))}function KP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function FP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?KP(Object(r),!0).forEach(function(t){UP(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KP(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function UP(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var WP=$a({name:"cartesianAxis",initialState:{xAxis:{},yAxis:{},zAxis:{}},reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:Ia()},replaceXAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;void 0!==e.xAxis[r.id]&&(r.id!==n.id&&delete e.xAxis[r.id],e.xAxis[n.id]=n)},prepare:Ia()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:Ia()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:Ia()},replaceYAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;void 0!==e.yAxis[r.id]&&(r.id!==n.id&&delete e.yAxis[r.id],e.yAxis[n.id]=n)},prepare:Ia()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:Ia()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:Ia()},replaceZAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;void 0!==e.zAxis[r.id]&&(r.id!==n.id&&delete e.zAxis[r.id],e.zAxis[n.id]=n)},prepare:Ia()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:Ia()},updateYAxisWidth(e,t){var{id:r,width:n}=t.payload,i=e.yAxis[r];if(i){var o,a=i.widthHistory||[];if(3===a.length&&a[0]===a[2]&&n===a[1]&&n!==i.width&&Math.abs(n-(null!==(o=a[0])&&void 0!==o?o:0))<=1)return;var l=[...a,n].slice(-3);e.yAxis[r]=FP(FP({},i),{},{width:n,widthHistory:l})}}}}),{addXAxis:HP,replaceXAxis:qP,removeXAxis:YP,addYAxis:GP,replaceYAxis:XP,removeYAxis:ZP,updateYAxisWidth:QP}=WP.actions,JP=WP.reducer,ej=pi([ic],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),tj=pi([ej,Ul,Wl],(e,t,r)=>{if(e&&null!=t&&null!=r)return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}}),rj=()=>ri(tj);function nj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ij(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nj(Object(r),!0).forEach(function(t){oj(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nj(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function oj(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var aj=e=>{var{point:t,childIndex:r,mainColor:n,activeDot:i,dataKey:o,clipPath:a}=e;if(!1===i||null==t.x||null==t.y)return null;var l,u=ij(ij(ij({},{index:r,dataKey:o,cx:t.x,cy:t.y,r:4,fill:null!=n?n:"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value}),z(i)),Ft(i));return l=s(i)?x(i,u):"function"==typeof i?i(u):c.createElement(DS,u),c.createElement(F,{className:"recharts-active-dot",clipPath:a},l)};function lj(e){var{points:t,mainColor:r,activeDot:n,itemDataKey:i,clipPath:o,zIndex:a=_p.activeDot}=e,l=ri(Gx),u=ri(iO);if(null==t||null==u)return null;var s=t.find(e=>u.includes(e.payload));return Mt(s)?null:c.createElement(RO,{zIndex:a},c.createElement(aj,{point:s,childIndex:Number(l),mainColor:r,dataKey:i,activeDot:n,clipPath:o}))}var cj=(e,t,r)=>{var n=null!=r?r:e;if(!Mt(n))return jt(n,t,0)};function uj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function sj(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?uj(Object(r),!0).forEach(function(t){fj(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uj(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function fj(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var dj=e=>{var{chartData:t}=e,r=Qn(),n=cc();return b(()=>n?()=>{}:(r(iE(t)),()=>{r(iE(void 0))}),[t,r,n]),null},pj={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},hj=$a({name:"brush",initialState:pj,reducers:{setBrushSettings:(e,t)=>null==t.payload?pj:t.payload}}).reducer,yj=$a({name:"referenceElements",initialState:{dots:[],areas:[],lines:[]},reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=ca(e).dots.findIndex(e=>e===t.payload);-1!==r&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=ca(e).areas.findIndex(e=>e===t.payload);-1!==r&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=ca(e).lines.findIndex(e=>e===t.payload);-1!==r&&e.lines.splice(r,1)}}}).reducer,vj=p(void 0),mj=e=>{var{children:t}=e,[r]=y("".concat(Pt("recharts"),"-clip")),n=rj();if(null==n)return null;var{x:i,y:o,width:a,height:l}=n;return c.createElement(vj.Provider,{value:r},c.createElement("defs",null,c.createElement("clipPath",{id:r},c.createElement("rect",{x:i,y:o,height:l,width:a}))),t)};function gj(e,t){if(t<1)return[];if(1===t)return e;for(var r=[],n=0;n<e.length;n+=t){var i=e[n];void 0!==i&&r.push(i)}return r}function bj(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var o=r();return e*(t-e*o/2-n)>=0&&e*(t+e*o/2-i)<=0}function wj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function xj(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wj(Object(r),!0).forEach(function(t){Oj(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wj(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Oj(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ej(e,t,r){var n,{tick:i,ticks:o,viewBox:a,minTickGap:l,orientation:c,interval:u,tickFormatter:s,unit:f,angle:d}=e;if(!o||!o.length||!i)return[];if(Ot(u)||Ms)return null!==(n=function(e,t){return gj(e,t+1)}(o,Ot(u)?u:0))&&void 0!==n?n:[];var p=[],h="top"===c||"bottom"===c?"width":"height",y=f&&"width"===h?ME(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=(e,n)=>{var i="function"==typeof s?s(e.value,n):e.value;return"width"===h?function(e,t,r){return function(e){var{width:t,height:r}=e,n=function(e){return(e%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),i=n*Math.PI/180,o=Math.atan(r/t),a=i>o&&i<Math.PI-o?r/Math.sin(i):t/Math.cos(i);return Math.abs(a)}({width:e.width+t.width,height:e.height+t.height},r)}(ME(i,{fontSize:t,letterSpacing:r}),y,d):ME(i,{fontSize:t,letterSpacing:r})[h]},m=o[0],g=o[1],b=o.length>=2&&null!=m&&null!=g?bt(g.coordinate-m.coordinate):1,w=function(e,t,r){var n="width"===r,{x:i,y:o,width:a,height:l}=e;return 1===t?{start:n?i:o,end:n?i+a:o+l}:{start:n?i+a:o+l,end:n?i:o}}(a,b,h);return"equidistantPreserveStart"===u?function(e,t,r,n,i){for(var o,a=(n||[]).slice(),{start:l,end:c}=t,u=0,s=1,f=l,d=function(){var t=null==n?void 0:n[u];if(void 0===t)return{v:gj(n,s)};var o,a=u,d=()=>(void 0===o&&(o=r(t,a)),o),p=t.coordinate,h=0===u||bj(e,p,d,f,c);h||(u=0,f=l,s+=1),h&&(f=p+e*(d()/2+i),u+=s)};s<=a.length;)if(o=d())return o.v;return[]}(b,w,v,o,l):"equidistantPreserveEnd"===u?function(e,t,r,n,i){var o=(n||[]).slice().length;if(0===o)return[];for(var{start:a,end:l}=t,c=1;c<=o;c++){for(var u,s=(o-1)%c,f=a,d=!0,p=function(){var t=n[h];if(null==t)return 0;var o,a=h,c=()=>(void 0===o&&(o=r(t,a)),o),u=t.coordinate,p=h===s||bj(e,u,c,f,l);if(!p)return d=!1,1;p&&(f=u+e*(c()/2+i))},h=s;h<o&&(0===(u=p())||1!==u);h+=c);if(d){for(var y=[],v=s;v<o;v+=c){var m=n[v];null!=m&&y.push(m)}return y}}return[]}(b,w,v,o,l):(p="preserveStart"===u||"preserveStartEnd"===u?function(e,t,r,n,i,o){var a=(n||[]).slice(),l=a.length,{start:c,end:u}=t;if(o){var s=n[l-1];if(null!=s){var f=r(s,l-1),d=e*(s.coordinate+e*f/2-u);a[l-1]=s=xj(xj({},s),{},{tickCoord:d>0?s.coordinate-d*e:s.coordinate}),null!=s.tickCoord&&bj(e,s.tickCoord,()=>f,c,u)&&(u=s.tickCoord-e*(f/2+i),a[l-1]=xj(xj({},s),{},{isShow:!0}))}}for(var p=o?l-1:l,h=function(t){var n=a[t];if(null==n)return 1;var o,l=n,s=()=>(void 0===o&&(o=r(n,t)),o);if(0===t){var f=e*(l.coordinate-e*s()/2-c);a[t]=l=xj(xj({},l),{},{tickCoord:f<0?l.coordinate-f*e:l.coordinate})}else a[t]=l=xj(xj({},l),{},{tickCoord:l.coordinate});null!=l.tickCoord&&bj(e,l.tickCoord,s,c,u)&&(c=l.tickCoord+e*(s()/2+i),a[t]=xj(xj({},l),{},{isShow:!0}))},y=0;y<p;y++)h(y);return a}(b,w,v,o,l,"preserveStartEnd"===u):function(e,t,r,n,i){for(var o=(n||[]).slice(),a=o.length,{start:l}=t,{end:c}=t,u=function(t){var n=o[t];if(null==n)return 1;var u,s=n,f=()=>(void 0===u&&(u=r(n,t)),u);if(t===a-1){var d=e*(s.coordinate+e*f()/2-c);o[t]=s=xj(xj({},s),{},{tickCoord:d>0?s.coordinate-d*e:s.coordinate})}else o[t]=s=xj(xj({},s),{},{tickCoord:s.coordinate});null!=s.tickCoord&&bj(e,s.tickCoord,f,l,c)&&(c=s.tickCoord-e*(f()/2+i),o[t]=xj(xj({},s),{},{isShow:!0}))},s=a-1;s>=0;s--)u(s);return o}(b,w,v,o,l),p.filter(e=>e.isShow))}var Sj=$a({name:"renderedTicks",initialState:{xAxis:{},yAxis:{}},reducers:{setRenderedTicks:(e,t)=>{var{axisType:r,axisId:n,ticks:i}=t.payload;e[r][n]=i},removeRenderedTicks:(e,t)=>{var{axisType:r,axisId:n}=t.payload;delete e[r][n]}}}),{setRenderedTicks:Pj,removeRenderedTicks:jj}=Sj.actions,Aj=Sj.reducer,_j=["axisLine","width","height","className","hide","ticks","axisType","axisId"];function kj(){return kj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kj.apply(null,arguments)}function Mj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ij(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mj(Object(r),!0).forEach(function(t){Tj(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mj(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Tj(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Dj={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",zIndex:_p.axis};function Nj(e){var{x:t,y:r,width:n,height:i,orientation:o,mirror:a,axisLine:l,otherSvgProps:u}=e;if(!l)return null;var s=Ij(Ij(Ij({},u),C(l)),{},{fill:"none"});if("top"===o||"bottom"===o){var f=+("top"===o&&!a||"bottom"===o&&a);s=Ij(Ij({},s),{},{x1:t,y1:r+f*i,x2:t+n,y2:r+f*i})}else{var d=+("left"===o&&!a||"right"===o&&a);s=Ij(Ij({},s),{},{x1:t+d*n,y1:r,x2:t+d*n,y2:r+i})}return c.createElement("line",kj({},s,{className:k("recharts-cartesian-axis-line",vt(l,"className"))}))}function Cj(e){var t,r,{option:n,tickProps:i,value:o}=e,a=k(i.className,"recharts-cartesian-axis-tick-value");if(c.isValidElement(n))t=c.cloneElement(n,Ij(Ij({},i),{},{className:a}));else if("function"==typeof n)t=n(Ij(Ij({},i),{},{className:a}));else{var l="recharts-cartesian-axis-tick-value";"boolean"!=typeof n&&(l=k(l,(r=n)&&"object"==typeof r&&"className"in r&&"string"==typeof r.className?r.className:"")),t=c.createElement(tS,kj({},i,{className:l}),o)}return t}function zj(e){var{ticks:t,axisType:r,axisId:n}=e,i=Qn();return b(()=>{if(null==n||null==r)return Dt;var e=t.map(e=>({value:e.value,coordinate:e.coordinate,offset:e.offset,index:e.index}));return i(Pj({ticks:e,axisId:n,axisType:r})),()=>{i(jj({axisId:n,axisType:r}))}},[i,t,n,r]),null}var Lj=f((e,t)=>{var{ticks:r=[],tick:n,tickLine:i,stroke:o,tickFormatter:a,unit:l,padding:u,tickTextProps:s,orientation:f,mirror:d,x:p,y:h,width:y,height:v,tickSize:m,tickMargin:g,fontSize:b,letterSpacing:w,getTicksConfig:x,events:O,axisType:E,axisId:S}=e,P=Ej(Ij(Ij({},x),{},{ticks:r}),b,w),j=C(x),A=z(n),_=YE(j.textAnchor)?j.textAnchor:function(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}(f,d),M=function(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}(f,d),I={};"object"==typeof i&&(I=i);var T=Ij(Ij({},j),{},{fill:"none"},I),D=P.map(e=>Ij({entry:e},function(e,t,r,n,i,o,a,l,c){var u,s,f,d,p,h,y=l?-1:1,v=e.tickSize||a,m=Ot(e.tickCoord)?e.tickCoord:e.coordinate;switch(o){case"top":u=s=e.coordinate,h=(f=(d=r+ +!l*i)-y*v)-y*c,p=m;break;case"left":f=d=e.coordinate,p=(u=(s=t+ +!l*n)-y*v)-y*c,h=m;break;case"right":f=d=e.coordinate,p=(u=(s=t+ +l*n)+y*v)+y*c,h=m;break;default:u=s=e.coordinate,h=(f=(d=r+ +l*i)+y*v)+y*c,p=m}return{line:{x1:u,y1:f,x2:s,y2:d},tick:{x:p,y:h}}}(e,p,h,y,v,f,m,d,g))),N=D.map(e=>{var{entry:t,line:r}=e;return c.createElement(F,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},i&&c.createElement("line",kj({},T,r,{className:k("recharts-cartesian-axis-tick-line",vt(i,"className"))})))}),L=D.map((e,t)=>{var r,i,{entry:f,tick:d}=e,p=Ij(Ij(Ij(Ij({verticalAnchor:M},j),{},{textAnchor:_,stroke:"none",fill:o},d),{},{index:t,payload:f,visibleTicksCount:P.length,tickFormatter:a,padding:u},s),{},{angle:null!==(r=null!==(i=null==s?void 0:s.angle)&&void 0!==i?i:j.angle)&&void 0!==r?r:0}),h=Ij(Ij({},p),A);return c.createElement(F,kj({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(f.value,"-").concat(f.coordinate,"-").concat(f.tickCoord)},Ut(O,f,t)),n&&c.createElement(Cj,{option:n,tickProps:h,value:"".concat("function"==typeof a?a(f.value,t):f.value).concat(l||"")}))});return c.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(E,"-ticks")},c.createElement(zj,{ticks:P,axisId:S,axisType:E}),L.length>0&&c.createElement(RO,{zIndex:_p.label},c.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(E,"-tick-labels"),ref:t},L)),N.length>0&&c.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(E,"-tick-lines")},N))}),Rj=f((e,t)=>{var{axisLine:r,width:n,height:i,className:o,hide:a,ticks:l,axisType:u,axisId:s}=e,f=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,_j),[d,p]=y(""),[h,b]=y(""),w=m(null);g(t,()=>({getCalculatedWidth:()=>{var t;return(e=>{var{ticks:t,label:r,labelGapWithTick:n=5,tickSize:i=0,tickMargin:o=0}=e,a=0;if(t){Array.from(t).forEach(e=>{if(e){var t=e.getBoundingClientRect();t.width>a&&(a=t.width)}});var l=r?r.getBoundingClientRect().width:0;return Math.round(a+(i+o)+l+(r?n:0))}return 0})({ticks:w.current,label:null===(t=e.labelRef)||void 0===t?void 0:t.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var x=v(e=>{if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value");w.current=t;var r=t[0];if(r){var n=window.getComputedStyle(r),i=n.fontSize,o=n.letterSpacing;i===d&&o===h||(p(i),b(o))}}},[d,h]);return a||null!=n&&n<=0||null!=i&&i<=0?null:c.createElement(RO,{zIndex:e.zIndex},c.createElement(F,{className:k("recharts-cartesian-axis",o)},c.createElement(Nj,{x:e.x,y:e.y,width:n,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:C(e)}),c.createElement(Lj,{ref:x,axisType:u,events:f,fontSize:d,getTicksConfig:e,height:e.height,letterSpacing:h,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:l,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:s}),c.createElement(pS,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},c.createElement(wS,{label:e.label,labelRef:e.labelRef}),e.children)))}),Bj=c.forwardRef((e,t)=>{var r=qt(e,Dj);return c.createElement(Rj,kj({},r,{ref:t}))});Bj.displayName="CartesianAxis";var $j=["x1","y1","x2","y2","key"],Vj=["offset"],Kj=["xAxisId","yAxisId"],Fj=["xAxisId","yAxisId"];function Uj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Wj(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Uj(Object(r),!0).forEach(function(t){Hj(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uj(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Hj(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qj(){return qj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qj.apply(null,arguments)}function Yj(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var Gj=e=>{var{fill:t}=e;if(!t||"none"===t)return null;var{fillOpacity:r,x:n,y:i,width:o,height:a,ry:l}=e;return c.createElement("rect",{x:n,y:i,ry:l,width:o,height:a,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function Xj(e){var t,{option:r,lineItemProps:n}=e;if(c.isValidElement(r))t=c.cloneElement(r,n);else if("function"==typeof r)t=r(n);else{var i,{x1:o,y1:a,x2:l,y2:u,key:s}=n,f=null!==(i=C(Yj(n,$j)))&&void 0!==i?i:{},d=Yj(f,Vj);t=c.createElement("line",qj({},d,{x1:o,y1:a,x2:l,y2:u,fill:"none",key:s}))}return t}function Zj(e){var{x:t,width:r,horizontal:n=!0,horizontalPoints:i}=e;if(!n||!i||!i.length)return null;var o=Yj(e,Kj),a=i.map((e,i)=>{var a=Wj(Wj({},o),{},{x1:t,y1:e,x2:t+r,y2:e,key:"line-".concat(i),index:i});return c.createElement(Xj,{key:"line-".concat(i),option:n,lineItemProps:a})});return c.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function Qj(e){var{y:t,height:r,vertical:n=!0,verticalPoints:i}=e;if(!n||!i||!i.length)return null;var o=Yj(e,Fj),a=i.map((e,i)=>{var a=Wj(Wj({},o),{},{x1:e,y1:t,x2:e,y2:t+r,key:"line-".concat(i),index:i});return c.createElement(Xj,{option:n,lineItemProps:a,key:"line-".concat(i)})});return c.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function Jj(e){var{horizontalFill:t,fillOpacity:r,x:n,y:i,width:o,height:a,horizontalPoints:l,horizontal:u=!0}=e;if(!u||!t||!t.length||null==l)return null;var s=l.map(e=>Math.round(e+i-i)).sort((e,t)=>e-t);i!==s[0]&&s.unshift(0);var f=s.map((e,l)=>{var u=s[l+1],f=null==u?i+a-e:u-e;if(f<=0)return null;var d=l%t.length;return c.createElement("rect",{key:"react-".concat(l),y:e,x:n,height:f,width:o,stroke:"none",fill:t[d],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return c.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function eA(e){var{vertical:t=!0,verticalFill:r,fillOpacity:n,x:i,y:o,width:a,height:l,verticalPoints:u}=e;if(!t||!r||!r.length)return null;var s=u.map(e=>Math.round(e+i-i)).sort((e,t)=>e-t);i!==s[0]&&s.unshift(0);var f=s.map((e,t)=>{var u=s[t+1],f=null==u?i+a-e:u-e;if(f<=0)return null;var d=t%r.length;return c.createElement("rect",{key:"react-".concat(t),x:e,y:o,width:f,height:l,stroke:"none",fill:r[d],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return c.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var tA=(e,t)=>{var{xAxis:r,width:n,height:i,offset:o}=e;return Tl(Ej(Wj(Wj(Wj({},Dj),r),{},{ticks:Dl(r),viewBox:{x:0,y:0,width:n,height:i}})),o.left,o.left+o.width,t)},rA=(e,t)=>{var{yAxis:r,width:n,height:i,offset:o}=e;return Tl(Ej(Wj(Wj(Wj({},Dj),r),{},{ticks:Dl(r),viewBox:{x:0,y:0,width:n,height:i}})),o.top,o.top+o.height,t)},nA={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:_p.grid};function iA(e){var t=Bc(),r=$c(),n=Rc(),i=Wj(Wj({},qt(e,nA)),{},{x:Ot(e.x)?e.x:n.left,y:Ot(e.y)?e.y:n.top,width:Ot(e.width)?e.width:n.width,height:Ot(e.height)?e.height:n.height}),{xAxisId:o,yAxisId:a,x:l,y:u,width:s,height:f,syncWithTicks:d,horizontalValues:p,verticalValues:h}=i,y=cc(),v=ri(e=>Ow(e,"xAxis",o,y)),m=ri(e=>Ow(e,"yAxis",a,y));if(!(jl(s)&&jl(f)&&Ot(l)&&Ot(u)))return null;var g=i.verticalCoordinatesGenerator||tA,b=i.horizontalCoordinatesGenerator||rA,{horizontalPoints:w,verticalPoints:x}=i;if(!(w&&w.length||"function"!=typeof b)){var O=p&&p.length,E=b({yAxis:m?Wj(Wj({},m),{},{ticks:O?p:m.ticks}):void 0,width:null!=t?t:s,height:null!=r?r:f,offset:n},!!O||d);gc(Array.isArray(E),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof E,"]")),Array.isArray(E)&&(w=E)}if(!(x&&x.length||"function"!=typeof g)){var S=h&&h.length,P=g({xAxis:v?Wj(Wj({},v),{},{ticks:S?h:v.ticks}):void 0,width:null!=t?t:s,height:null!=r?r:f,offset:n},!!S||d);gc(Array.isArray(P),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof P,"]")),Array.isArray(P)&&(x=P)}return c.createElement(RO,{zIndex:i.zIndex},c.createElement("g",{className:"recharts-cartesian-grid"},c.createElement(Gj,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),c.createElement(Jj,qj({},i,{horizontalPoints:w})),c.createElement(eA,qj({},i,{verticalPoints:x})),c.createElement(Zj,qj({},i,{offset:n,horizontalPoints:w,xAxis:v,yAxis:m})),c.createElement(Qj,qj({},i,{offset:n,verticalPoints:x,xAxis:v,yAxis:m}))))}iA.displayName="CartesianGrid";var oA=$a({name:"errorBars",initialState:{},reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]||(e[r]=[]),e[r].push(n)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:n,next:i}=t.payload;e[r]&&(e[r]=e[r].map(e=>e.dataKey===n.dataKey&&e.direction===n.direction?i:e))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(e=>e.dataKey!==n.dataKey||e.direction!==n.direction))}}}),aA=oA.reducer,lA=["children"],cA=p({data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0});function uA(e){var{children:t}=e,r=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,lA);return c.createElement(cA.Provider,{value:r},t)}function sA(e,t){var r,n,i=ri(t=>Tg(t,e)),o=ri(e=>Cg(e,t)),a=null!==(r=null==i?void 0:i.allowDataOverflow)&&void 0!==r?r:Mg.allowDataOverflow,l=null!==(n=null==o?void 0:o.allowDataOverflow)&&void 0!==n?n:Dg.allowDataOverflow;return{needClip:a||l,needClipX:a,needClipY:l}}function fA(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,i=rj(),{needClipX:o,needClipY:a,needClip:l}=sA(t,r);if(!l||!i)return null;var{x:u,y:s,width:f,height:d}=i;return c.createElement("clipPath",{id:"clipPath-".concat(n)},c.createElement("rect",{x:o?u:u-f/2,y:a?s:s-d/2,width:o?f:2*f,height:a?d:2*d}))}var dA=(e,t,r,n)=>Pw(e,"xAxis",t,n),pA=(e,t,r,n)=>Sw(e,"xAxis",t,n),hA=(e,t,r,n)=>Pw(e,"yAxis",r,n),yA=(e,t,r,n)=>Sw(e,"yAxis",r,n),vA=pi([Vc,dA,hA,pA,yA],(e,t,r,n,i)=>Il(e,"xAxis")?Vl(t,n,!1):Vl(r,i,!1));function mA(e){return"line"===e.type}var gA=pi([Kg,(e,t,r,n,i)=>i],(e,t)=>e.filter(mA).find(e=>e.id===t)),bA=pi([Vc,dA,hA,pA,yA,gA,vA,Md],(e,t,r,n,i,o,a,l)=>{var{chartData:c,dataStartIndex:u,dataEndIndex:s}=l;if(null!=o&&null!=t&&null!=r&&null!=n&&null!=i&&0!==n.length&&0!==i.length&&null!=a&&("horizontal"===e||"vertical"===e)){var f,{dataKey:d,data:p}=o;if(null!=(f=null!=p&&p.length>0?p:null==c?void 0:c.slice(u,s+1)))return function(e){var{layout:t,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:o,dataKey:a,bandSize:l,displayedData:c}=e;return c.map((e,c)=>{var u=Ml(e,a);if("horizontal"===t){var s=Ll({axis:r,ticks:i,bandSize:l,entry:e,index:c}),f=Mt(u)?null:n.scale.map(u);return{x:s,y:null!=f?f:null,value:u,payload:e}}var d=Mt(u)?null:r.scale.map(u),p=Ll({axis:n,ticks:o,bandSize:l,entry:e,index:c});return null==d||null==p?null:{x:d,y:p,value:u,payload:e}}).filter(Boolean)}({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataKey:d,bandSize:a,displayedData:f})}});function wA(e){var t=z(e);if(null!=t){var{r,strokeWidth:n}=t,i=Number(r),o=Number(n);return(Number.isNaN(i)||i<0)&&(i=3),(Number.isNaN(o)||o<0)&&(o=2),{r:i,strokeWidth:o}}return{r:3,strokeWidth:2}}var xA=["id"],OA=["type","layout","connectNulls","needClip","shape"],EA=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function SA(){return SA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},SA.apply(null,arguments)}function PA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function jA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?PA(Object(r),!0).forEach(function(t){AA(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PA(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function AA(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _A(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var kA=e=>{var{dataKey:t,name:r,stroke:n,legendType:i,hide:o}=e;return[{inactive:o,dataKey:t,type:i,color:n,value:Fl(r,t),payload:e}]},MA=c.memo(e=>{var{dataKey:t,data:r,stroke:n,strokeWidth:i,fill:o,name:a,hide:l,unit:u,tooltipType:s,id:f}=e,d={dataDefinedOnItem:r,getPosition:Dt,settings:{stroke:n,strokeWidth:i,fill:o,dataKey:t,nameKey:void 0,name:Fl(a,t),hide:l,type:s,color:n,unit:u,graphicalItemId:f}};return c.createElement(SP,{tooltipEntrySettings:d})}),IA=(e,t)=>"".concat(t,"px ").concat(e,"px");function TA(e,t){for(var r=e.length%2!=0?[...e,0]:e,n=[],i=0;i<t;++i)n.push(...r);return n}function DA(e){var{clipPathId:t,points:r,props:n}=e,{dot:i,dataKey:o,needClip:a}=n,l=C(_A(n,xA));return c.createElement(VP,{points:r,dot:i,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:o,baseProps:l,needClip:a,clipPathId:t})}function NA(e){var{showLabels:t,children:r,points:n}=e,i=h(()=>null==n?void 0:n.map(e=>{var t,r,n={x:null!==(t=e.x)&&void 0!==t?t:0,y:null!==(r=e.y)&&void 0!==r?r:0,width:0,lowerWidth:0,upperWidth:0,height:0};return jA(jA({},n),{},{value:e.value,payload:e.payload,viewBox:n,parentViewBox:void 0,fill:void 0})}),[n]);return c.createElement(AS,{value:t?i:void 0},r)}function CA(e){var{clipPathId:t,pathRef:r,points:n,strokeDasharray:i,props:o}=e,{type:a,layout:l,connectNulls:u,needClip:s,shape:f}=o,d=jA(jA({},L(_A(o,OA))),{},{fill:"none",className:"recharts-line-curve",clipPath:s?"url(#clipPath-".concat(t,")"):void 0,points:n,type:a,layout:l,connectNulls:u,strokeDasharray:null!=i?i:o.strokeDasharray});return c.createElement(c.Fragment,null,(null==n?void 0:n.length)>1&&c.createElement(bP,SA({shapeType:"curve",option:f},d,{pathRef:r})),c.createElement(DA,{points:n,clipPathId:t,props:o}))}function zA(e){var{clipPathId:t,props:r,pathRef:n,previousPointsRef:i,longestAnimatedLengthRef:o}=e,{points:a,strokeDasharray:l,isAnimationActive:u,animationBegin:s,animationDuration:f,animationEasing:d,animateNewValues:p,width:h,height:g,onAnimationEnd:b,onAnimationStart:w}=r,x=i.current,O=jf(a,"recharts-line-"),E=m(O),[S,P]=y(!1),j=!S,A=v(()=>{"function"==typeof b&&b(),P(!1)},[b]),_=v(()=>{"function"==typeof w&&w(),P(!0)},[w]),k=function(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}(n.current),M=m(0);E.current!==O&&(M.current=o.current,E.current=O);var I=M.current;return c.createElement(NA,{points:a,showLabels:j},r.children,c.createElement(Pf,{animationId:O,begin:s,duration:f,isActive:u,easing:d,onAnimationEnd:A,onAnimationStart:_,key:O},e=>{var s,f=_t(I,k+I,e),d=Math.min(f,k);if(u)if(l){var y="".concat(l).split(/[,\s]+/gim).map(e=>parseFloat(e));s=((e,t,r)=>{var n=r.reduce((e,t)=>e+t,0);if(!n)return IA(t,e);for(var i=Math.floor(e/n),o=e%n,a=[],l=0,c=0;l<r.length;c+=null!==(u=r[l])&&void 0!==u?u:0,++l){var u,s=r[l];if(null!=s&&c+s>o){a=[...r.slice(0,l),o-c];break}}var f=a.length%2==0?[0,t]:[t];return[...TA(r,i),...a,...f].map(e=>"".concat(e,"px")).join(", ")})(d,k,y)}else s=IA(k,d);else s=null==l?void 0:String(l);if(e>0&&k>0&&(i.current=a,o.current=Math.max(o.current,d)),x){var v=x.length/a.length,m=1===e?a:a.map((t,r)=>{var n=Math.floor(r*v);if(x[n]){var i=x[n];return jA(jA({},t),{},{x:_t(i.x,t.x,e),y:_t(i.y,t.y,e)})}return jA(jA({},t),{},p?{x:_t(2*h,t.x,e),y:_t(g/2,t.y,e)}:{x:t.x,y:t.y})});return i.current=m,c.createElement(CA,{props:r,points:m,clipPathId:t,pathRef:n,strokeDasharray:s})}return c.createElement(CA,{props:r,points:a,clipPathId:t,pathRef:n,strokeDasharray:s})}),c.createElement(MS,{label:r.label}))}function LA(e){var{clipPathId:t,props:r}=e,n=m(null),i=m(0),o=m(null);return c.createElement(zA,{props:r,clipPathId:t,previousPointsRef:n,longestAnimatedLengthRef:i,pathRef:o})}var RA=(e,t)=>{var r,n;return{x:null!==(r=e.x)&&void 0!==r?r:void 0,y:null!==(n=e.y)&&void 0!==n?n:void 0,value:e.value,errorVal:Ml(e.payload,t)}};class BA extends P{render(){var{hide:e,dot:t,points:r,className:n,xAxisId:i,yAxisId:o,top:a,left:l,width:u,height:s,id:f,needClip:d,zIndex:p}=this.props;if(e)return null;var h=k("recharts-line",n),y=f,{r:v,strokeWidth:m}=wA(t),g=ZS(t),b=2*v+m,w=d?"url(#clipPath-".concat(g?"":"dots-").concat(y,")"):void 0;return c.createElement(RO,{zIndex:p},c.createElement(F,{className:h},d&&c.createElement("defs",null,c.createElement(fA,{clipPathId:y,xAxisId:i,yAxisId:o}),!g&&c.createElement("clipPath",{id:"clipPath-dots-".concat(y)},c.createElement("rect",{x:l-b/2,y:a-b/2,width:u+b,height:s+b}))),c.createElement(uA,{xAxisId:i,yAxisId:o,data:r,dataPointFormatter:RA,errorBarOffset:0},c.createElement(LA,{props:this.props,clipPathId:y}))),c.createElement(lj,{activeDot:this.props.activeDot,points:r,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:w}))}}var $A={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:_p.line,type:"linear"};function VA(e){var t=qt(e,$A),{activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:o,animationEasing:a,connectNulls:l,dot:u,hide:s,isAnimationActive:f,label:d,legendType:p,xAxisId:h,yAxisId:y,id:v}=t,m=_A(t,EA),{needClip:g}=sA(h,y),b=rj(),w=Kc(),x=cc(),O=ri(e=>bA(e,h,y,x,v));if("horizontal"!==w&&"vertical"!==w||null==O||null==b)return null;var{height:E,width:S,x:P,y:j}=b;return c.createElement(BA,SA({},m,{id:v,connectNulls:l,dot:u,activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:o,animationEasing:a,isAnimationActive:f,hide:s,label:d,legendType:p,xAxisId:h,yAxisId:y,points:O,layout:w,height:E,width:S,left:P,top:j,needClip:g}))}function KA(e){var t=qt(e,$A),r=cc();return c.createElement(_P,{id:t.id,type:"line"},e=>c.createElement(c.Fragment,null,c.createElement(PP,{legendPayload:kA(t)}),c.createElement(MA,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),c.createElement(NP,{type:"line",id:e,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:r}),c.createElement(VA,SA({},t,{id:e}))))}var FA=c.memo(KA,as);function UA(e,t){var r,n;return null!==(r=null===(n=e.graphicalItems.cartesianItems.find(e=>e.id===t))||void 0===n?void 0:n.xAxisId)&&void 0!==r?r:0}function WA(e,t){var r,n;return null!==(r=null===(n=e.graphicalItems.cartesianItems.find(e=>e.id===t))||void 0===n?void 0:n.yAxisId)&&void 0!==r?r:0}FA.displayName="Line";var HA=(e,t,r)=>Pw(e,"xAxis",UA(e,t),r),qA=(e,t,r)=>Sw(e,"xAxis",UA(e,t),r),YA=(e,t,r)=>Pw(e,"yAxis",WA(e,t),r),GA=(e,t,r)=>Sw(e,"yAxis",WA(e,t),r),XA=pi([Vc,HA,YA,qA,GA],(e,t,r,n,i)=>Il(e,"xAxis")?Vl(t,n,!1):Vl(r,i,!1)),ZA=pi([Kg,(e,t)=>t],(e,t)=>e.filter(e=>"area"===e.type).find(e=>e.id===t)),QA=e=>{var t=Vc(e);return Il(t,"xAxis")?"yAxis":"xAxis"},JA=pi([ZA,(e,t,r)=>db(e,QA(e),((e,t)=>"yAxis"===QA(e)?WA(e,t):UA(e,t))(e,t),r)],(e,t)=>{var r;if(null!=e&&null!=t){var{stackId:n}=e,i=qp(e);if(null!=n&&null!=i){var o=null===(r=t[n])||void 0===r?void 0:r.stackedData,a=null==o?void 0:o.find(e=>e.key===i);if(null!=a)return a.map(e=>[e[0],e[1]])}}}),e_=pi([Vc,HA,YA,qA,GA,JA,Id,XA,ZA,e=>e.rootProps.baseValue],(e,t,r,n,i,o,a,l,c,u)=>{var{chartData:s,dataStartIndex:f,dataEndIndex:d}=a;if(null!=c&&("horizontal"===e||"vertical"===e)&&null!=t&&null!=r&&null!=n&&null!=i&&0!==n.length&&0!==i.length&&null!=l){var p,{data:h}=c;if(null!=(p=h&&h.length>0?h:null==s?void 0:s.slice(f,d+1)))return function(e){var t,{areaSettings:{connectNulls:r,baseValue:n,dataKey:i},stackedData:o,layout:a,chartBaseValue:l,xAxis:c,yAxis:u,displayedData:s,dataStartIndex:f,xAxisTicks:d,yAxisTicks:p,bandSize:h}=e,y=o&&o.length,v=O_(a,l,n,c,u),m="horizontal"===a,g=!1,b=s.map((e,t)=>{var n,a,l,s;if(y)s=o[f+t];else{var b=Ml(e,i);Array.isArray(b)?(s=b,g=!0):s=[v,b]}var w,x=null!==(n=null===(a=s)||void 0===a?void 0:a[1])&&void 0!==n?n:null,O=null==x||y&&!r&&null==Ml(e,i);return m?{x:Ll({axis:c,ticks:d,bandSize:h,entry:e,index:t}),y:O?null:null!==(w=u.scale.map(x))&&void 0!==w?w:null,value:s,payload:e}:{x:O?null:null!==(l=c.scale.map(x))&&void 0!==l?l:null,y:Ll({axis:u,ticks:p,bandSize:h,entry:e,index:t}),value:s,payload:e}});return t=y||g?b.map(e=>{var t,r,n=Array.isArray(e.value)?e.value[0]:null;return m?{x:e.x,y:null!=n&&null!=e.y&&null!==(r=u.scale.map(n))&&void 0!==r?r:null,payload:e.payload}:{x:null!=n&&null!==(t=c.scale.map(n))&&void 0!==t?t:null,y:e.y,payload:e.payload}}):m?u.scale.map(v):c.scale.map(v),{points:b,baseLine:null!=t?t:0,isRange:g}}({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataStartIndex:f,areaSettings:c,stackedData:o,displayedData:p,chartBaseValue:u,bandSize:l})}}),t_=["id"],r_=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function n_(){return n_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n_.apply(null,arguments)}function i_(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function o_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o_(Object(r),!0).forEach(function(t){l_(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function l_(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c_(e,t){return e&&"none"!==e?e:t}var u_=e=>{var{dataKey:t,name:r,stroke:n,fill:i,legendType:o,hide:a}=e;return[{inactive:a,dataKey:t,type:o,color:c_(n,i),value:Fl(r,t),payload:e}]},s_=c.memo(e=>{var{dataKey:t,data:r,stroke:n,strokeWidth:i,fill:o,name:a,hide:l,unit:u,tooltipType:s,id:f}=e,d={dataDefinedOnItem:r,getPosition:Dt,settings:{stroke:n,strokeWidth:i,fill:o,dataKey:t,nameKey:void 0,name:Fl(a,t),hide:l,type:s,color:c_(n,o),unit:u,graphicalItemId:f}};return c.createElement(SP,{tooltipEntrySettings:d})});function f_(e){var{clipPathId:t,points:r,props:n}=e,{needClip:i,dot:o,dataKey:a}=n,l=C(n);return c.createElement(VP,{points:r,dot:o,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:a,baseProps:l,needClip:i,clipPathId:t})}function d_(e){var{showLabels:t,children:r,points:n}=e,i=n.map(e=>{var t,r,n={x:null!==(t=e.x)&&void 0!==t?t:0,y:null!==(r=e.y)&&void 0!==r?r:0,width:0,lowerWidth:0,upperWidth:0,height:0};return a_(a_({},n),{},{value:e.value,payload:e.payload,parentViewBox:void 0,viewBox:n,fill:void 0})});return c.createElement(AS,{value:t?i:void 0},r)}function p_(e){var{points:t,baseLine:r,needClip:n,clipPathId:i,props:o}=e,{layout:a,type:l,stroke:u,connectNulls:s,isRange:f}=o,{id:d}=o,p=i_(o,t_),h=C(p),y=L(p);return c.createElement(c.Fragment,null,(null==t?void 0:t.length)>1&&c.createElement(F,{clipPath:n?"url(#clipPath-".concat(i,")"):void 0},c.createElement(Gs,n_({},y,{id:d,points:t,connectNulls:s,type:l,baseLine:r,layout:a,stroke:"none",className:"recharts-area-area"})),"none"!==u&&c.createElement(Gs,n_({},h,{className:"recharts-area-curve",layout:a,type:l,connectNulls:s,fill:"none",points:t})),"none"!==u&&f&&Array.isArray(r)&&c.createElement(Gs,n_({},h,{className:"recharts-area-curve",layout:a,type:l,connectNulls:s,fill:"none",points:r}))),c.createElement(f_,{points:t,props:p,clipPathId:i}))}function h_(e){var t,r,{alpha:n,baseLine:i,points:o,strokeWidth:a}=e,l=null===(t=o[0])||void 0===t?void 0:t.y,u=null===(r=o[o.length-1])||void 0===r?void 0:r.y;if(!Pl(l)||!Pl(u))return null;var s=n*Math.abs(l-u),f=Math.max(...o.map(e=>e.x||0));return Ot(i)?f=Math.max(i,f):i&&Array.isArray(i)&&i.length&&(f=Math.max(...i.map(e=>e.x||0),f)),Ot(f)?c.createElement("rect",{x:0,y:l<u?l:l-s,width:f+(a?parseInt("".concat(a),10):1),height:Math.floor(s)}):null}function y_(e){var t,r,{alpha:n,baseLine:i,points:o,strokeWidth:a}=e,l=null===(t=o[0])||void 0===t?void 0:t.x,u=null===(r=o[o.length-1])||void 0===r?void 0:r.x;if(!Pl(l)||!Pl(u))return null;var s=n*Math.abs(l-u),f=Math.max(...o.map(e=>e.y||0));return Ot(i)?f=Math.max(i,f):i&&Array.isArray(i)&&i.length&&(f=Math.max(...i.map(e=>e.y||0),f)),Ot(f)?c.createElement("rect",{x:l<u?l:l-s,y:0,width:s,height:Math.floor(f+(a?parseInt("".concat(a),10):1))}):null}function v_(e){var{alpha:t,layout:r,points:n,baseLine:i,strokeWidth:o}=e;return c.createElement("vertical"===r?h_:y_,{alpha:t,points:n,baseLine:i,strokeWidth:o})}function m_(e){var{needClip:t,clipPathId:r,props:n,previousPointsRef:i,previousBaselineRef:o}=e,{points:a,baseLine:l,isAnimationActive:u,animationBegin:s,animationDuration:f,animationEasing:d,onAnimationStart:p,onAnimationEnd:m}=n,g=jf(h(()=>({points:a,baseLine:l}),[a,l]),"recharts-area-"),b=Fc(),[w,x]=y(!1),O=!w,E=v(()=>{"function"==typeof m&&m(),x(!1)},[m]),S=v(()=>{"function"==typeof p&&p(),x(!0)},[p]);if(null==b)return null;var P=i.current,j=o.current;return c.createElement(d_,{showLabels:O,points:a},n.children,c.createElement(Pf,{animationId:g,begin:s,duration:f,isActive:u,easing:d,onAnimationEnd:E,onAnimationStart:S,key:g},e=>{if(P){var s,f=P.length/a.length,d=1===e?a:a.map((t,r)=>{var n=Math.floor(r*f);if(P[n]){var i=P[n];return a_(a_({},t),{},{x:_t(i.x,t.x,e),y:_t(i.y,t.y,e)})}return t});return s=Ot(l)?_t(j,l,e):Mt(l)||wt(l)?_t(j,0,e):l.map((t,r)=>{var n=Math.floor(r*f);if(Array.isArray(j)&&j[n]){var i=j[n];return a_(a_({},t),{},{x:_t(i.x,t.x,e),y:_t(i.y,t.y,e)})}return t}),e>0&&(i.current=d,o.current=s),c.createElement(p_,{points:d,baseLine:s,needClip:t,clipPathId:r,props:n})}return e>0&&(i.current=a,o.current=l),c.createElement(F,null,u&&c.createElement("defs",null,c.createElement("clipPath",{id:"animationClipPath-".concat(r)},c.createElement(v_,{alpha:e,points:a,baseLine:l,layout:b,strokeWidth:n.strokeWidth}))),c.createElement(F,{clipPath:"url(#animationClipPath-".concat(r,")")},c.createElement(p_,{points:a,baseLine:l,needClip:t,clipPathId:r,props:n})))}),c.createElement(MS,{label:n.label}))}function g_(e){var{needClip:t,clipPathId:r,props:n}=e,i=m(null),o=m();return c.createElement(m_,{needClip:t,clipPathId:r,props:n,previousPointsRef:i,previousBaselineRef:o})}class b_ extends j{render(){var{hide:e,dot:t,points:r,className:n,top:i,left:o,needClip:a,xAxisId:l,yAxisId:u,width:s,height:f,id:d,baseLine:p,zIndex:h}=this.props;if(e)return null;var y=k("recharts-area",n),v=d,{r:m,strokeWidth:g}=wA(t),b=ZS(t),w=2*m+g,x=a?"url(#clipPath-".concat(b?"":"dots-").concat(v,")"):void 0;return c.createElement(RO,{zIndex:h},c.createElement(F,{className:y},a&&c.createElement("defs",null,c.createElement(fA,{clipPathId:v,xAxisId:l,yAxisId:u}),!b&&c.createElement("clipPath",{id:"clipPath-dots-".concat(v)},c.createElement("rect",{x:o-w/2,y:i-w/2,width:s+w,height:f+w}))),c.createElement(g_,{needClip:a,clipPathId:v,props:this.props})),c.createElement(lj,{points:r,mainColor:c_(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:x}),this.props.isRange&&Array.isArray(p)&&c.createElement(lj,{points:p,mainColor:c_(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:x}))}}var w_={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:"auto",legendType:"line",stroke:"#3182bd",strokeWidth:1,type:"linear",label:!1,xAxisId:0,yAxisId:0,zIndex:_p.area};function x_(e){var t,{activeDot:r,animationBegin:n,animationDuration:i,animationEasing:o,connectNulls:a,dot:l,fill:u,fillOpacity:s,hide:f,isAnimationActive:d,legendType:p,stroke:h,xAxisId:y,yAxisId:v}=e,m=i_(e,r_),g=Kc(),b=dO(),{needClip:w}=sA(y,v),x=cc(),{points:O,isRange:E,baseLine:S}=null!==(t=ri(t=>e_(t,e.id,x)))&&void 0!==t?t:{},P=rj();if("horizontal"!==g&&"vertical"!==g||null==P)return null;if("AreaChart"!==b&&"ComposedChart"!==b)return null;var{height:j,width:A,x:_,y:k}=P;return O&&O.length?c.createElement(b_,n_({},m,{activeDot:r,animationBegin:n,animationDuration:i,animationEasing:o,baseLine:S,connectNulls:a,dot:l,fill:u,fillOpacity:s,height:j,hide:f,layout:g,isAnimationActive:d,isRange:E,legendType:p,needClip:w,points:O,stroke:h,width:A,left:_,top:k,xAxisId:y,yAxisId:v})):null}var O_=(e,t,r,n,i)=>{var o=null!=r?r:t;if(Ot(o))return o;var a="horizontal"===e?i:n,l=a.scale.domain();if("number"===a.type){var c=Math.max(l[0],l[1]),u=Math.min(l[0],l[1]);return"dataMin"===o?u:"dataMax"===o||c<0?c:Math.max(Math.min(l[0],l[1]),0)}return"dataMin"===o?l[0]:"dataMax"===o?l[1]:l[0]};function E_(e){var t=qt(e,w_),r=cc();return c.createElement(_P,{id:t.id,type:"area"},e=>c.createElement(c.Fragment,null,c.createElement(PP,{legendPayload:u_(t)}),c.createElement(s_,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),c.createElement(NP,{type:"area",id:e,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:zl(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:r,connectNulls:t.connectNulls}),c.createElement(x_,n_({},t,{id:e}))))}var S_=c.memo(E_,as);S_.displayName="Area";var P_="production"===process.env.NODE_ENV,j_="Invariant failed";function A_(){return A_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},A_.apply(null,arguments)}function __(e){return c.createElement(bP,A_({shapeType:"rectangle",activeClassName:"recharts-active-bar",inActiveClassName:"recharts-inactive-bar"},e))}var k_=pi([Kg,(e,t)=>t],(e,t)=>e.filter(e=>"bar"===e.type).find(e=>e.id===t)),M_=pi([k_],e=>null==e?void 0:e.maxBarSize),I_=pi([Vc,Kg,UA,WA,(e,t,r)=>r],(e,t,r,n,i)=>t.filter(t=>"horizontal"===e?t.xAxisId===r:t.yAxisId===n).filter(e=>e.isPanorama===i).filter(e=>!1===e.hide).filter(e=>"bar"===e.type)),T_=pi([I_,e=>e.rootProps.barSize,(e,t)=>{var r=Vc(e),n=UA(e,t),i=WA(e,t);if(null!=n&&null!=i)return"horizontal"===r?bw(e,"xAxis",n):bw(e,"yAxis",i)}],(e,t,r)=>{var n=e.filter(Gp),i=e.filter(e=>null==e.stackId),o=n.reduce((e,t)=>{var r=e[t.stackId];return null==r&&(r=[]),r.push(t),e[t.stackId]=r,e},{});return[...Object.entries(o).map(e=>{var n,[i,o]=e;return{stackId:i,dataKeys:o.map(e=>e.dataKey),barSize:cj(t,r,null===(n=o[0])||void 0===n?void 0:n.barSize)}}),...i.map(e=>({stackId:void 0,dataKeys:[e.dataKey].filter(e=>null!=e),barSize:cj(t,r,e.barSize)}))]}),D_=(e,t,r)=>{var n,i,o=Vc(e),a=UA(e,t),l=WA(e,t);if(null!=a&&null!=l)return"horizontal"===o?(n=Pw(e,"xAxis",a,r),i=Sw(e,"xAxis",a,r)):(n=Pw(e,"yAxis",l,r),i=Sw(e,"yAxis",l,r)),Vl(n,i)},N_=pi([T_,wp,e=>e.rootProps.barGap,xp,(e,t,r)=>{var n,i,o=k_(e,t);if(null==o)return 0;var a=UA(e,t),l=WA(e,t);if(null==a||null==l)return 0;var c,u,s=Vc(e),f=wp(e),{maxBarSize:d}=o,p=Mt(d)?f:d;return"horizontal"===s?(c=Pw(e,"xAxis",a,r),u=Sw(e,"xAxis",a,r)):(c=Pw(e,"yAxis",l,r),u=Sw(e,"yAxis",l,r)),null!==(n=null!==(i=Vl(c,u,!0))&&void 0!==i?i:p)&&void 0!==n?n:0},D_,M_],(e,t,r,n,i,o,a)=>{var l=Mt(a)?t:a,c=function(e,t,r,n,i){var o,a=n.length;if(!(a<1)){var l,c=jt(e,r,0,!0),u=[];if(Pl(null===(o=n[0])||void 0===o?void 0:o.barSize)){var s=!1,f=r/a,d=n.reduce((e,t)=>e+(t.barSize||0),0);(d+=(a-1)*c)>=r&&(d-=(a-1)*c,c=0),d>=r&&f>0&&(s=!0,d=a*(f*=.9));var p={offset:((r-d)/2|0)-c,size:0};l=n.reduce((e,t)=>{var r,n={stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:p.offset+p.size+c,size:s?f:null!==(r=t.barSize)&&void 0!==r?r:0}},i=[...e,n];return p=n.position,i},u)}else{var h=jt(t,r,0,!0);r-2*h-(a-1)*c<=0&&(c=0);var y=(r-2*h-(a-1)*c)/a;y>1&&(y>>=0);var v=Pl(i)?Math.min(y,i):y;l=n.reduce((e,t,r)=>[...e,{stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:h+(y+c)*r+(y-v)/2,size:v}}],u)}return l}}(r,n,i!==o?i:o,e,l);return i!==o&&null!=c&&(c=c.map(e=>sj(sj({},e),{},{position:sj(sj({},e.position),{},{offset:e.position.offset-i/2})}))),c}),C_=pi([N_,k_],(e,t)=>{if(null!=e&&null!=t){var r=e.find(e=>e.stackId===t.stackId&&null!=t.dataKey&&e.dataKeys.includes(t.dataKey));if(null!=r)return r.position}}),z_=pi([(e,t,r)=>{var n=Vc(e),i=UA(e,t),o=WA(e,t);if(null!=i&&null!=o)return"horizontal"===n?db(e,"yAxis",o,r):db(e,"xAxis",i,r)},k_],(e,t)=>{var r=qp(t);if(e&&null!=r&&null!=t){var{stackId:n}=t;if(null!=n){var i=e[n];if(i){var{stackedData:o}=i;if(o)return o.find(e=>e.key===r)}}}}),L_=pi([ic,ac,(e,t,r)=>{var n=UA(e,t);if(null!=n)return Pw(e,"xAxis",n,r)},(e,t,r)=>{var n=WA(e,t);if(null!=n)return Pw(e,"yAxis",n,r)},(e,t,r)=>{var n=UA(e,t);if(null!=n)return Sw(e,"xAxis",n,r)},(e,t,r)=>{var n=WA(e,t);if(null!=n)return Sw(e,"yAxis",n,r)},C_,Vc,Id,D_,z_,k_,(e,t,r,n)=>n],(e,t,r,n,i,o,a,l,c,u,s,f,d)=>{var{chartData:p,dataStartIndex:h,dataEndIndex:y}=c;if(null!=f&&null!=a&&null!=t&&("horizontal"===l||"vertical"===l)&&null!=r&&null!=n&&null!=i&&null!=o&&null!=u){var v,{data:m}=f;if(null!=(v=null!=m&&m.length>0?m:null==p?void 0:p.slice(h,y+1)))return function(e){var{layout:t,barSettings:{dataKey:r,minPointSize:n,hasCustomShape:i},pos:o,bandSize:a,xAxis:l,yAxis:c,xAxisTicks:u,yAxisTicks:s,stackedData:f,displayedData:d,offset:p,cells:h,parentViewBox:y,dataStartIndex:v}=e,m="horizontal"===t?c:l,g=f?m.scale.domain():null,b=(e=>{var{numericAxis:t}=e,r=t.scale.domain();if("number"===t.type){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]})({numericAxis:m}),w=m.scale.map(b);return d.map((e,d)=>{var m,x,O,E,S,P;if(f){var j=f[d+v];if(null==j)return null;m=((e,t)=>{if(!t||2!==t.length||!Ot(t[0])||!Ot(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!Ot(e[0])||e[0]<r)&&(i[0]=r),(!Ot(e[1])||e[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i})(j,g)}else m=Ml(e,r),Array.isArray(m)||(m=[b,m]);var A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(r,n)=>{if(Ot(e))return e;var i=Ot(r)||Mt(r);return i?e(r,n):(i||function(e,t){if(P_)throw new Error(j_);var r="function"==typeof t?t():t,n=r?"".concat(j_,": ").concat(r):j_;throw new Error(n)}(0,"minPointSize callback function received a value with type of ".concat(typeof r,". Currently only numbers or null/undefined are supported.")),t)}}(n,ak)(m[1],d);if("horizontal"===t){var _,k=c.scale.map(m[0]),M=c.scale.map(m[1]);if(null==k||null==M)return null;x=Rl({axis:l,ticks:u,bandSize:a,offset:o.offset,entry:e,index:d}),O=null!==(_=null!=M?M:k)&&void 0!==_?_:void 0,E=o.size;var I=k-M;if(S=wt(I)?0:I,P={x,y:p.top,width:E,height:p.height},Math.abs(A)>0&&Math.abs(S)<Math.abs(A)){var T=bt(S||A)*(Math.abs(A)-Math.abs(S));O-=T,S+=T}}else{var D=l.scale.map(m[0]),N=l.scale.map(m[1]);if(null==D||null==N)return null;x=D,O=Rl({axis:c,ticks:s,bandSize:a,offset:o.offset,entry:e,index:d}),E=N-D,P={x:p.left,y:O,width:p.width,height:S=o.size},Math.abs(A)>0&&Math.abs(E)<Math.abs(A)&&(E+=bt(E||A)*(Math.abs(A)-Math.abs(E)))}return null!=x&&null!=O&&null!=E&&null!=S&&(i||0!==E&&0!==S)?Y_(Y_({},e),{},{stackedBarStart:w,x,y:O,width:E,height:S,value:f?m:m[1],payload:e,background:P,tooltipPosition:{x:x+E/2,y:O+S/2},parentViewBox:y,originalDataIndex:d},h&&h[d]&&h[d].props):null}).filter(Boolean)}({layout:l,barSettings:f,pos:a,parentViewBox:t,bandSize:u,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:o,stackedData:s,displayedData:v,offset:e,cells:d,dataStartIndex:h})}}),R_=["index"];function B_(){return B_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},B_.apply(null,arguments)}var $_=p(void 0),V_=e=>{var{index:t}=e,r=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,R_),n=(e=>{var t=d($_);if(null!=t){var{stackId:r}=t;return"url(#".concat(((e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t))(r,e),")")}})(t);return c.createElement(F,B_({className:"recharts-bar-stack-layer",clipPath:n},r))},K_=["onMouseEnter","onMouseLeave","onClick"],F_=["value","background","tooltipPosition"],U_=["id"],W_=["onMouseEnter","onClick","onMouseLeave"];function H_(){return H_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},H_.apply(null,arguments)}function q_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Y_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?q_(Object(r),!0).forEach(function(t){G_(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function G_(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X_(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var Z_=e=>{var{dataKey:t,name:r,fill:n,legendType:i,hide:o}=e;return[{inactive:o,dataKey:t,type:i,color:n,value:Fl(r,t),payload:e}]},Q_=c.memo(e=>{var{dataKey:t,stroke:r,strokeWidth:n,fill:i,name:o,hide:a,unit:l,tooltipType:u,id:s}=e,f={dataDefinedOnItem:void 0,getPosition:Dt,settings:{stroke:r,strokeWidth:n,fill:i,dataKey:t,nameKey:void 0,name:Fl(o,t),hide:a,type:u,color:i,unit:l,graphicalItemId:s}};return c.createElement(SP,{tooltipEntrySettings:f})});function J_(e){var t=ri(Gx),{data:r,dataKey:n,background:i,allOtherBarProps:o}=e,{onMouseEnter:a,onMouseLeave:l,onClick:u}=o,s=X_(o,K_),f=xP(a,n,o.id),d=OP(l),p=EP(u,n,o.id);if(!i||null==r)return null;var h,y,v=z(i);return c.createElement(RO,{zIndex:(h=i,y=_p.barBackground,h&&"object"==typeof h&&"zIndex"in h&&"number"==typeof h.zIndex&&Pl(h.zIndex)?h.zIndex:y)},r.map((e,r)=>{var{background:o}=e,a=X_(e,F_);if(!o)return null;var l=f(e,r),u=d(e,r),h=p(e,r),y=Y_(Y_(Y_(Y_(Y_({option:i,isActive:String(r)===t},a),{},{fill:"#eee"},o),v),Ut(s,e,r)),{},{onMouseEnter:l,onMouseLeave:u,onClick:h,dataKey:n,index:r,className:"recharts-bar-background-rectangle"});return c.createElement(__,H_({key:"background-bar-".concat(r)},y))}))}function ek(e){var{showLabels:t,children:r,rects:n}=e,i=null==n?void 0:n.map(e=>{var t={x:e.x,y:e.y,width:e.width,lowerWidth:e.width,upperWidth:e.width,height:e.height};return Y_(Y_({},t),{},{value:e.value,payload:e.payload,parentViewBox:e.parentViewBox,viewBox:t,fill:e.fill})});return c.createElement(AS,{value:t?i:void 0},r)}function tk(e){var{shape:t,activeBar:r,baseProps:n,entry:i,index:o,dataKey:a}=e,l=ri(Gx),u=ri(Zx),s=r&&String(i.originalDataIndex)===l&&(null==u||a===u),[f,d]=y(!1),[p,h]=y(!1);b(()=>{var e;return s?(d(!0),e=requestAnimationFrame(()=>{h(!0)})):h(!1),()=>{cancelAnimationFrame(e)}},[s]);var m,g=v(()=>{s||d(!1)},[s]),w=s&&p,x=s||f;m=s?!0===r?t:r:t;var O=c.createElement(__,H_({},n,{name:String(n.name)},i,{isActive:w,option:m,index:o,dataKey:a,onTransitionEnd:g}));return x?c.createElement(RO,{zIndex:_p.activeBar},c.createElement(V_,{index:i.originalDataIndex},O)):O}function rk(e){var{shape:t,baseProps:r,entry:n,index:i,dataKey:o}=e;return c.createElement(__,H_({},r,{name:String(r.name)},n,{isActive:!1,option:t,index:i,dataKey:o}))}function nk(e){var t,{data:r,props:n}=e,i=null!==(t=C(n))&&void 0!==t?t:{},{id:o}=i,a=X_(i,U_),{shape:l,dataKey:u,activeBar:s}=n,{onMouseEnter:f,onClick:d,onMouseLeave:p}=n,h=X_(n,W_),y=xP(f,u,o),v=OP(p),m=EP(d,u,o);return r?c.createElement(c.Fragment,null,r.map((e,t)=>c.createElement(V_,H_({index:e.originalDataIndex,key:"rectangle-".concat(null==e?void 0:e.x,"-").concat(null==e?void 0:e.y,"-").concat(null==e?void 0:e.value,"-").concat(t),className:"recharts-bar-rectangle"},Ut(h,e,t),{onMouseEnter:y(e,t),onMouseLeave:v(e,t),onClick:m(e,t)}),s?c.createElement(tk,{shape:l,activeBar:s,baseProps:a,entry:e,index:t,dataKey:u}):c.createElement(rk,{shape:l,baseProps:a,entry:e,index:t,dataKey:u})))):null}function ik(e){var{props:t,previousRectanglesRef:r}=e,{data:n,layout:i,isAnimationActive:o,animationBegin:a,animationDuration:l,animationEasing:u,onAnimationEnd:s,onAnimationStart:f}=t,d=r.current,p=jf(t,"recharts-bar-"),[h,m]=y(!1),g=!h,b=v(()=>{"function"==typeof s&&s(),m(!1)},[s]),w=v(()=>{"function"==typeof f&&f(),m(!0)},[f]);return c.createElement(ek,{showLabels:g,rects:n},c.createElement(Pf,{animationId:p,begin:a,duration:l,isActive:o,easing:u,onAnimationEnd:b,onAnimationStart:w,key:p},e=>{var o=1===e?n:null==n?void 0:n.map((t,r)=>{var n=d&&d[r];if(n)return Y_(Y_({},t),{},{x:_t(n.x,t.x,e),y:_t(n.y,t.y,e),width:_t(n.width,t.width,e),height:_t(n.height,t.height,e)});if("horizontal"===i){var o=_t(0,t.height,e),a=_t(t.stackedBarStart,t.y,e);return Y_(Y_({},t),{},{y:a,height:o})}var l=_t(0,t.width,e),c=_t(t.stackedBarStart,t.x,e);return Y_(Y_({},t),{},{width:l,x:c})});return e>0&&(r.current=null!=o?o:null),null==o?null:c.createElement(F,null,c.createElement(nk,{props:t,data:o}))}),c.createElement(MS,{label:t.label}),t.children)}function ok(e){var t=m(null);return c.createElement(ik,{previousRectanglesRef:t,props:e})}var ak=0,lk=(e,t)=>{var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:Ml(e,t)}};class ck extends j{render(){var{hide:e,data:t,dataKey:r,className:n,xAxisId:i,yAxisId:o,needClip:a,background:l,id:u}=this.props;if(e||null==t)return null;var s=k("recharts-bar",n),f=u;return c.createElement(F,{className:s,id:u},a&&c.createElement("defs",null,c.createElement(fA,{clipPathId:f,xAxisId:i,yAxisId:o})),c.createElement(F,{className:"recharts-bar-rectangles",clipPath:a?"url(#clipPath-".concat(f,")"):void 0},c.createElement(J_,{data:t,dataKey:r,background:l,allOtherBarProps:this.props}),c.createElement(ok,this.props)))}}var uk={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:ak,xAxisId:0,yAxisId:0,zIndex:_p.bar};function sk(e){var t,r,n,i,{xAxisId:o,yAxisId:a,hide:l,legendType:u,minPointSize:s,activeBar:f,animationBegin:d,animationDuration:p,animationEasing:h,isAnimationActive:y}=e,{needClip:v}=sA(o,a),m=Kc(),g=cc(),b=(t=e.children,r=gE,n=[],i=[],i=Array.isArray(r)?r.map(e=>qS(e)):[qS(r)],XS(t).forEach(e=>{var t=vt(e,"type.displayName")||vt(e,"type.name");t&&-1!==i.indexOf(t)&&n.push(e)}),n),w=ri(t=>L_(t,e.id,g,b));if("vertical"!==m&&"horizontal"!==m)return null;var x=null==w?void 0:w[0];return c.createElement(uA,{xAxisId:o,yAxisId:a,data:w,dataPointFormatter:lk,errorBarOffset:null==x||null==x.height||null==x.width?0:"vertical"===m?x.height/2:x.width/2},c.createElement(ck,H_({},e,{layout:m,needClip:v,data:w,xAxisId:o,yAxisId:a,hide:l,legendType:u,minPointSize:s,activeBar:f,animationBegin:d,animationDuration:p,animationEasing:h,isAnimationActive:y})))}function fk(e){var t,r,n=qt(e,uk),i=(t=n.stackId,null!=(r=d($_))?r.stackId:null!=t?zl(t):void 0),o=cc();return c.createElement(_P,{id:n.id,type:"bar"},e=>c.createElement(c.Fragment,null,c.createElement(PP,{legendPayload:Z_(n)}),c.createElement(Q_,{dataKey:n.dataKey,stroke:n.stroke,strokeWidth:n.strokeWidth,fill:n.fill,name:n.name,hide:n.hide,unit:n.unit,tooltipType:n.tooltipType,id:e}),c.createElement(NP,{type:"bar",id:e,data:void 0,xAxisId:n.xAxisId,yAxisId:n.yAxisId,zAxisId:0,dataKey:n.dataKey,stackId:i,hide:n.hide,barSize:n.barSize,minPointSize:n.minPointSize,maxBarSize:n.maxBarSize,isPanorama:o,hasCustomShape:null!=n.shape}),c.createElement(RO,{zIndex:n.zIndex},c.createElement(sk,H_({},n,{id:e})))))}var dk=c.memo(fk,as);dk.displayName="Bar";var pk=["domain","range"],hk=["domain","range"];function yk(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function vk(e,t){return e===t||!(!Array.isArray(e)||2!==e.length||!Array.isArray(t)||2!==t.length)&&e[0]===t[0]&&e[1]===t[1]}function mk(e,t){if(e===t)return!0;var{domain:r,range:n}=e,i=yk(e,pk),{domain:o,range:a}=t,l=yk(t,hk);return!!vk(r,o)&&!!vk(n,a)&&as(i,l)}var gk=["type"],bk=["dangerouslySetInnerHTML","ticks","scale"],wk=["id","scale"];function xk(){return xk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xk.apply(null,arguments)}function Ok(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ek(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ok(Object(r),!0).forEach(function(t){Sk(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ok(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Sk(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pk(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function jk(e){var t=Qn(),r=m(null),n=Fc(),{type:i}=e,o=Pk(e,gk),a=Mp(n,"xAxis",i),l=h(()=>{if(null!=a)return Ek(Ek({},o),{},{type:a})},[o,a]);return w(()=>{null!=l&&(null===r.current?t(HP(l)):r.current!==l&&t(qP({prev:r.current,next:l})),r.current=l)},[l,t]),w(()=>()=>{r.current&&(t(YP(r.current)),r.current=null)},[t]),null}var Ak=e=>{var{xAxisId:t,className:r}=e,n=ri(ac),i=cc(),o="xAxis",a=ri(e=>Ew(e,o,t,i)),l=ri(e=>pw(e,t)),u=ri(e=>vw(e,t)),s=ri(e=>Ig(e,t));if(null==l||null==u||null==s)return null;var f=Pk(e,bk),d=Pk(s,wk);return c.createElement(Bj,xk({},f,d,{x:u.x,y:u.y,width:l.width,height:l.height,className:k("recharts-".concat(o," ").concat(o),r),viewBox:n,ticks:a,axisType:o,axisId:t}))},_k={allowDataOverflow:Mg.allowDataOverflow,allowDecimals:Mg.allowDecimals,allowDuplicatedCategory:Mg.allowDuplicatedCategory,angle:Mg.angle,axisLine:Dj.axisLine,height:Mg.height,hide:!1,includeHidden:Mg.includeHidden,interval:Mg.interval,label:!1,minTickGap:Mg.minTickGap,mirror:Mg.mirror,orientation:Mg.orientation,padding:Mg.padding,reversed:Mg.reversed,scale:Mg.scale,tick:Mg.tick,tickCount:Mg.tickCount,tickLine:Dj.tickLine,tickSize:Dj.tickSize,type:Mg.type,niceTicks:Mg.niceTicks,xAxisId:0},kk=c.memo(e=>{var t=qt(e,_k);return c.createElement(c.Fragment,null,c.createElement(jk,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,niceTicks:t.niceTicks}),c.createElement(Ak,t))},mk);kk.displayName="XAxis";var Mk=["type"],Ik=["dangerouslySetInnerHTML","ticks","scale"],Tk=["id","scale"];function Dk(){return Dk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dk.apply(null,arguments)}function Nk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ck(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Nk(Object(r),!0).forEach(function(t){zk(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nk(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function zk(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lk(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Rk(e){var t=Qn(),r=m(null),n=Fc(),{type:i}=e,o=Lk(e,Mk),a=Mp(n,"yAxis",i),l=h(()=>{if(null!=a)return Ck(Ck({},o),{},{type:a})},[a,o]);return w(()=>{null!=l&&(null===r.current?t(GP(l)):r.current!==l&&t(XP({prev:r.current,next:l})),r.current=l)},[l,t]),w(()=>()=>{r.current&&(t(ZP(r.current)),r.current=null)},[t]),null}function Bk(e){var{yAxisId:t,className:r,width:n,label:i}=e,o=m(null),a=m(null),l=ri(ac),u=cc(),f=Qn(),d="yAxis",p=ri(e=>gw(e,t)),h=ri(e=>mw(e,t)),y=ri(e=>Ew(e,d,t,u)),v=ri(e=>Ng(e,t));if(w(()=>{if("auto"===n&&p&&!vS(i)&&!s(i)&&null!=v){var e=o.current;if(e){var r=e.getCalculatedWidth();Math.round(p.width)!==Math.round(r)&&f(QP({id:t,width:r}))}}},[y,p,f,i,t,n,v]),null==p||null==h||null==v)return null;var g=Lk(e,Ik),b=Lk(v,Tk);return c.createElement(Bj,Dk({},g,b,{ref:o,labelRef:a,x:h.x,y:h.y,tickTextProps:"auto"===n?{width:void 0}:{width:n},width:p.width,height:p.height,className:k("recharts-".concat(d," ").concat(d),r),viewBox:l,ticks:y,axisType:d,axisId:t}))}var $k={allowDataOverflow:Dg.allowDataOverflow,allowDecimals:Dg.allowDecimals,allowDuplicatedCategory:Dg.allowDuplicatedCategory,angle:Dg.angle,axisLine:Dj.axisLine,hide:!1,includeHidden:Dg.includeHidden,interval:Dg.interval,label:!1,minTickGap:Dg.minTickGap,mirror:Dg.mirror,orientation:Dg.orientation,padding:Dg.padding,reversed:Dg.reversed,scale:Dg.scale,tick:Dg.tick,tickCount:Dg.tickCount,tickLine:Dj.tickLine,tickSize:Dj.tickSize,type:Dg.type,niceTicks:Dg.niceTicks,width:Dg.width,yAxisId:0},Vk=c.memo(e=>{var t=qt(e,$k);return c.createElement(c.Fragment,null,c.createElement(Rk,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter,niceTicks:t.niceTicks}),c.createElement(Bk,t))},mk);Vk.displayName="YAxis";var Kk=pi([(e,t)=>t,Vc,Up,Qp,Bx,Ux,vO,ic],(e,t,r,n,i,o,a,l)=>{if(e&&t&&n&&i&&o)return"horizontal"===t||"vertical"===t?((e,t,r,n,i,o,a)=>{if(e&&r&&n&&i&&function(e,t){var{relativeX:r,relativeY:n}=e;return r>=t.left&&r<=t.left+t.width&&n>=t.top&&n<=t.top+t.height}(e,a)){var l=((e,t)=>"horizontal"===t?e.relativeX:"vertical"===t?e.relativeY:void 0)(e,t),c=fO(l,o,i,r,n),u=((e,t,r,n)=>{var i=t.find(e=>e&&e.index===r);if(i){if("horizontal"===e)return{x:i.coordinate,y:n.relativeY};if("vertical"===e)return{x:n.relativeX,y:i.coordinate}}return{x:0,y:0}})(t,i,c,e);return{activeIndex:String(c),activeCoordinate:u}}})(e,t,n,i,o,a,l):((e,t,r,n,i,o,a)=>{if(e&&n&&i&&o&&r){var l=((e,t)=>{var{relativeX:r,relativeY:n}=e,{radius:i,angle:o}=((e,t)=>{var{x:r,y:n}=e,{cx:i,cy:o}=t,a=((e,t)=>{var{x:r,y:n}=e,{x:i,y:o}=t;return Math.sqrt((r-i)**2+(n-o)**2)})({x:r,y:n},{x:i,y:o});if(a<=0)return{radius:a,angle:0};var l=Math.acos((r-i)/a);return n>o&&(l=2*Math.PI-l),{radius:a,angle:od(l),angleInRadian:l}})({x:r,y:n},t),{innerRadius:a,outerRadius:l}=t;if(i<a||i>l)return null;if(0===i)return null;var c,{startAngle:u,endAngle:s}=(e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),i=Math.floor(r/360),o=Math.min(n,i);return{startAngle:t-360*o,endAngle:r-360*o}})(t),f=o;if(u<=s){for(;f>s;)f-=360;for(;f<u;)f+=360;c=f>=u&&f<=s}else{for(;f>u;)f-=360;for(;f<s;)f+=360;c=f>=s&&f<=u}return c?Gf(Gf({},t),{},{radius:i,angle:ld(f,t)}):null})(e,r);if(l){var c=((e,t)=>"centric"===t?e.angle:e.radius)(l,t),u=fO(c,a,o,n,i),s=((e,t,r,n)=>{var i=t.find(e=>e&&e.index===r);if(i){if("centric"===e){var o=i.coordinate,{radius:a}=n;return uO(uO(uO({},n),ad(n.cx,n.cy,a,o)),{},{angle:o,radius:a})}var l=i.coordinate,{angle:c}=n;return uO(uO(uO({},n),ad(n.cx,n.cy,l,c)),{},{angle:c,radius:l})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}})(t,o,u,l);return{activeIndex:String(u),activeCoordinate:s}}}})(e,t,r,n,i,o,a)});function Fk(e){var t,r,n,i=e.currentTarget.getBoundingClientRect();if("getBBox"in(n=e).currentTarget&&"function"==typeof n.currentTarget.getBBox){var o=e.currentTarget.getBBox();t=o.width>0?i.width/o.width:1,r=o.height>0?i.height/o.height:1}else{var a=e.currentTarget;t=a.offsetWidth>0?i.width/a.offsetWidth:1,r=a.offsetHeight>0?i.height/a.offsetHeight:1}var l=(e,n)=>({relativeX:Math.round((e-i.left)/t),relativeY:Math.round((n-i.top)/r)});return"touches"in e?Array.from(e.touches).map(e=>l(e.clientX,e.clientY)):l(e.clientX,e.clientY)}var Uk=ya("mouseClick"),Wk=vl();Wk.startListening({actionCreator:Uk,effect:(e,t)=>{var r=e.payload,n=Kk(t.getState(),Fk(r));null!=(null==n?void 0:n.activeIndex)&&t.dispatch(Ww({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var Hk=ya("mouseMove"),qk=vl(),Yk=null,Gk=null,Xk=null;function Zk(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":"children"===e&&"object"==typeof t&&null!==t?"<<CHILDREN>>":t}qk.startListening({actionCreator:Hk,effect:(e,t)=>{var r=e.payload,n=t.getState(),{throttleDelay:i,throttledEvents:o}=n.eventSettings,a="all"===o||(null==o?void 0:o.includes("mousemove"));null!==Yk&&(cancelAnimationFrame(Yk),Yk=null),null===Gk||"number"==typeof i&&a||(clearTimeout(Gk),Gk=null),Xk=Fk(r);var l=()=>{var e=t.getState(),r=Tw(e,e.tooltip.settings.shared);if(!Xk)return Yk=null,void(Gk=null);if("axis"===r){var n=Kk(e,Xk);t.dispatch(null!=(null==n?void 0:n.activeIndex)?Uw({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}):Kw())}Yk=null,Gk=null};a?"raf"===i?Yk=requestAnimationFrame(l):"number"==typeof i&&null===Gk&&(Gk=setTimeout(l,i)):l()}});var Qk={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},Jk=$a({name:"rootProps",initialState:Qk,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=null!==(r=t.payload.barGap)&&void 0!==r?r:Qk.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),eM=Jk.reducer,{updateOptions:tM}=Jk.actions,rM=$a({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>null===e?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)}}).reducer,nM=ya("keyDown"),iM=ya("focus"),oM=ya("blur"),aM=vl(),lM=null,cM=null,uM=null;function sM(e){e.persist();var{currentTarget:t}=e;return new Proxy(e,{get:(e,r)=>{if("currentTarget"===r)return t;var n=Reflect.get(e,r);return"function"==typeof n?n.bind(e):n}})}aM.startListening({actionCreator:nM,effect:(e,t)=>{uM=e.payload,null!==lM&&(cancelAnimationFrame(lM),lM=null);var r=t.getState(),{throttleDelay:n,throttledEvents:i}=r.eventSettings,o="all"===i||i.includes("keydown");null===cM||"number"==typeof n&&o||(clearTimeout(cM),cM=null);var a=()=>{try{var e=t.getState();if(!1===e.rootProps.accessibilityLayer)return;var{keyboardInteraction:r}=e.tooltip,n=uM;if("ArrowRight"!==n&&"ArrowLeft"!==n&&"Enter"!==n)return;var i=Jw(r,vx(e),ub(e),Cx(e)),o=null==i?-1:Number(i),a=!Number.isFinite(o)||o<0,l=Ux(e),c=vx(e),u=Tw(e,e.tooltip.settings.shared);if("Enter"===n){if(a)return;var s=wO(e,u,"hover",String(r.index));return void t.dispatch(qw({active:!r.active,activeIndex:r.index,activeCoordinate:s}))}var f,d="left-to-right"===_w(e)?1:-1,p="ArrowRight"===n?1:-1;if(a){var h=ub(e),y=Cx(e),v=e=>({active:!1,index:String(e),dataKey:void 0,graphicalItemId:void 0,coordinate:void 0});if(f=-1,p*d>0){for(var m=0;m<c.length;m++)if(null!=Jw(v(m),c,h,y)){f=m;break}}else for(var g=c.length-1;g>=0;g--)if(null!=Jw(v(g),c,h,y)){f=g;break}if(f<0)return}else{f=o+p*d;var b=(null==l?void 0:l.length)||c.length;if(0===b||f>=b||f<0)return}var w=wO(e,u,"hover",String(f));t.dispatch(qw({active:!0,activeIndex:f.toString(),activeCoordinate:w}))}finally{lM=null,cM=null}};o?"raf"===n?lM=requestAnimationFrame(a):"number"==typeof n&&null===cM&&(a(),uM=null,cM=setTimeout(()=>{uM?a():(cM=null,lM=null)},n)):a()}}),aM.startListening({actionCreator:iM,effect:(e,t)=>{var r=t.getState();if(!1!==r.rootProps.accessibilityLayer){var{keyboardInteraction:n}=r.tooltip;if(!n.active&&null==n.index){var i=Tw(r,r.tooltip.settings.shared),o=wO(r,i,"hover",String("0"));t.dispatch(qw({active:!0,activeIndex:"0",activeCoordinate:o}))}}}}),aM.startListening({actionCreator:oM,effect:(e,t)=>{var r=t.getState();if(!1!==r.rootProps.accessibilityLayer){var{keyboardInteraction:n}=r.tooltip;n.active&&t.dispatch(qw({active:!1,activeIndex:n.index,activeCoordinate:n.coordinate}))}}});var fM=ya("externalEvent"),dM=vl(),pM=new Map,hM=new Map,yM=new Map;dM.startListening({actionCreator:fM,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(null!=r){var i=n.type,o=sM(n);yM.set(i,{handler:r,reactEvent:o});var a=pM.get(i);void 0!==a&&(cancelAnimationFrame(a),pM.delete(i));var l=t.getState(),{throttleDelay:c,throttledEvents:u}=l.eventSettings,s="all"===u||(null==u?void 0:u.includes(i)),f=hM.get(i);void 0===f||"number"==typeof c&&s||(clearTimeout(f),hM.delete(i));var d=()=>{var e=yM.get(i);try{if(!e)return;var{handler:r,reactEvent:n}=e,o=t.getState(),a={activeCoordinate:tO(o),activeDataKey:Zx(o),activeIndex:Gx(o),activeLabel:Xx(o),activeTooltipIndex:Gx(o),isTooltipActive:rO(o)};r&&r(a,n)}finally{pM.delete(i),hM.delete(i),yM.delete(i)}};if(s)if("raf"===c){var p=requestAnimationFrame(d);pM.set(i,p)}else if("number"==typeof c){if(!hM.has(i)){d();var h=setTimeout(d,c);hM.set(i,h)}}else d();else d()}}});var vM=pi([nx],e=>e.tooltipItemPayloads),mM=pi([vM,(e,t)=>t,(e,t,r)=>r],(e,t,r)=>{if(null!=t){var n=e.find(e=>e.settings.graphicalItemId===r);if(null!=n){var{getPosition:i}=n;if(null!=i)return i(t)}}}),gM=ya("touchMove"),bM=vl(),wM=null,xM=null,OM=null,EM=null;bM.startListening({actionCreator:gM,effect:(e,t)=>{var r=e.payload;if(null!=r.touches&&0!==r.touches.length){EM=sM(r);var n=t.getState(),{throttleDelay:i,throttledEvents:o}=n.eventSettings,a="all"===o||o.includes("touchmove");null!==wM&&(cancelAnimationFrame(wM),wM=null),null===xM||"number"==typeof i&&a||(clearTimeout(xM),xM=null),OM=Array.from(r.touches).map(e=>Fk({clientX:e.clientX,clientY:e.clientY,currentTarget:r.currentTarget}));var l=()=>{if(null!=EM){var e=t.getState(),r=Tw(e,e.tooltip.settings.shared);if("axis"===r){var n,i=null===(n=OM)||void 0===n?void 0:n[0];if(null==i)return wM=null,void(xM=null);var o=Kk(e,i);null!=(null==o?void 0:o.activeIndex)&&t.dispatch(Uw({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate}))}else if("item"===r){var a,l=EM.touches[0];if(null==document.elementFromPoint||null==l)return;var c=document.elementFromPoint(l.clientX,l.clientY);if(!c||!c.getAttribute)return;var u=c.getAttribute("data-recharts-item-index"),s=null!==(a=c.getAttribute("data-recharts-item-id"))&&void 0!==a?a:void 0,f=dx(e).find(e=>e.id===s);if(null==u||null==f||null==s)return;var{dataKey:d}=f,p=mM(e,u,s);t.dispatch($w({activeDataKey:d,activeIndex:u,activeCoordinate:p,activeGraphicalItemId:s}))}wM=null,xM=null}};a?"raf"===i?wM=requestAnimationFrame(l):"number"==typeof i&&null===xM&&(l(),EM=null,xM=setTimeout(()=>{EM?l():(xM=null,wM=null)},i)):l()}}});var SM={throttleDelay:"raf",throttledEvents:["mousemove","touchmove","pointermove","scroll","wheel"]},PM=$a({name:"eventSettings",initialState:SM,reducers:{setEventSettings:(e,t)=>{null!=t.payload.throttleDelay&&(e.throttleDelay=t.payload.throttleDelay),null!=t.payload.throttledEvents&&(e.throttledEvents=t.payload.throttledEvents)}}}),{setEventSettings:jM}=PM.actions,AM=Gi({brush:hj,cartesianAxis:JP,chartData:aE,errorBars:aA,eventSettings:PM.reducer,graphicalItems:DP,layout:El,legend:Uu,options:eE,polarAxis:NS,polarOptions:rM,referenceElements:yj,renderedTicks:Aj,rootProps:eM,tooltip:Yw,zIndex:LO});function _M(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,i=cc(),o=m(null);return i?r:(null==o.current&&(o.current=function(e){return function(e){const t=ka(),{reducer:r,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:o=!0,preloadedState:a,enhancers:l}=e||{};let c,u;if("function"==typeof r)c=r;else{if(!Wi(r))throw new Error("production"===process.env.NODE_ENV?ml(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");c=Gi(r)}if("production"!==process.env.NODE_ENV&&n&&"function"!=typeof n)throw new Error("production"===process.env.NODE_ENV?ml(2):"`middleware` field must be a callback");if("function"==typeof n){if(u=n(t),"production"!==process.env.NODE_ENV&&!Array.isArray(u))throw new Error("production"===process.env.NODE_ENV?ml(3):"when using a middleware builder function, an array of middleware must be returned")}else u=t();if("production"!==process.env.NODE_ENV&&u.some(e=>"function"!=typeof e))throw new Error("production"===process.env.NODE_ENV?ml(4):"each middleware provided to configureStore must be a function");if("production"!==process.env.NODE_ENV&&o){let e=new Set;u.forEach(t=>{if(e.has(t))throw new Error("production"===process.env.NODE_ENV?ml(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");e.add(t)})}let s=Xi;i&&(s=ha({trace:"production"!==process.env.NODE_ENV,..."object"==typeof i&&i}));const f=function(...e){return t=>(r,n)=>{const i=t(r,n);let o=()=>{throw new Error("production"===process.env.NODE_ENV?Vi(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const a={getState:i.getState,dispatch:(e,...t)=>o(e,...t)},l=e.map(e=>e(a));return o=Xi(...l)(i.dispatch),{...i,dispatch:o}}}(...u),d=(e=>function(t){const{autoBatch:r=!0}=t??{};let n=new ga(e);return r&&n.push(Da("object"==typeof r?r:void 0)),n})(f);if("production"!==process.env.NODE_ENV&&l&&"function"!=typeof l)throw new Error("production"===process.env.NODE_ENV?ml(5):"`enhancers` field must be a callback");let p="function"==typeof l?l(d):d();if("production"!==process.env.NODE_ENV&&!Array.isArray(p))throw new Error("production"===process.env.NODE_ENV?ml(6):"`enhancers` callback must return an array");if("production"!==process.env.NODE_ENV&&p.some(e=>"function"!=typeof e))throw new Error("production"===process.env.NODE_ENV?ml(7):"each enhancer provided to configureStore must be a function");return"production"!==process.env.NODE_ENV&&u.length&&!p.includes(f)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`"),qi(c,a,s(...p))}({reducer:AM,preloadedState:e,middleware:e=>e({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes("es6")}).concat([Wk.middleware,qk.middleware,aM.middleware,dM.middleware,bM.middleware]),enhancers:e=>{var t=e;return"function"==typeof e&&(t=e()),t.concat(Da({type:"raf"}))},devTools:{serialize:{replacer:Zk},name:"recharts-".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Chart")}})}(t,n)),c.createElement(ns,{context:Xn,store:o.current},r))}function kM(e){var{layout:t,margin:r}=e,n=Qn(),i=cc();return b(()=>{i||(n(wl(t)),n(bl(r)))},[n,i,t,r]),null}var MM=S(kM,as);function IM(e){var t=Qn();return b(()=>{t(tM(e))},[t,e]),null}var TM=S(e=>{var t=Qn();return b(()=>{t(jM(e))},[t,e]),null},as);function DM(e){var{zIndex:t,isPanorama:r}=e,n=m(null),i=Qn();return w(()=>(n.current&&i(CO({zIndex:t,element:n.current,isPanorama:r})),()=>{i(zO({zIndex:t,isPanorama:r}))}),[i,t,r]),c.createElement("g",{tabIndex:-1,ref:n,className:"recharts-zIndex-layer_".concat(t)})}function NM(e){var{children:t,isPanorama:r}=e,n=ri(jO);if(!n||0===n.length)return t;var i=n.filter(e=>e<0),o=n.filter(e=>e>0);return c.createElement(c.Fragment,null,i.map(e=>c.createElement(DM,{key:e,zIndex:e,isPanorama:r})),t,o.map(e=>c.createElement(DM,{key:e,zIndex:e,isPanorama:r})))}var CM=["children"];function zM(){return zM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zM.apply(null,arguments)}var LM={width:"100%",height:"100%",display:"block"},RM=f((e,t)=>{var r=Bc(),n=$c(),i=Rs();if(!jl(r)||!jl(n))return null;var o,a,{children:l,otherAttributes:u,title:s,desc:f}=e;return null!=u&&(o="number"==typeof u.tabIndex?u.tabIndex:i?0:void 0,a="string"==typeof u.role?u.role:i?"application":void 0),c.createElement($,zM({},u,{title:s,desc:f,role:a,tabIndex:o,width:r,height:n,style:LM,ref:t}),l)}),BM=e=>{var{children:t}=e,r=ri(sc);if(!r)return null;var{width:n,height:i,y:o,x:a}=r;return c.createElement($,{width:n,height:i,x:a,y:o},t)},$M=f((e,t)=>{var{children:r}=e,n=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,CM);return cc()?c.createElement(BM,null,c.createElement(NM,{isPanorama:!0},r)):c.createElement(RM,zM({ref:t},n),c.createElement(NM,{isPanorama:!1},r))});function VM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function KM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?VM(Object(r),!0).forEach(function(t){FM(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VM(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function FM(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UM(){return UM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},UM.apply(null,arguments)}var WM=()=>{return e=Qn(),b(()=>{e(tE())},[e]),function(){var e=ri(Pp),t=ri(Ap),r=Qn(),n=ri(jp),i=ri(Ux),o=Kc(),a=zc(),l=ri(e=>e.rootProps.className);b(()=>{if(null==e)return Dt;var l=(l,c,u)=>{var s;if(t!==u&&e===l)if(!1!==c.payload.active)if("index"!==n){if(null!=i){var f;if("function"==typeof n){var d={activeTooltipIndex:null==c.payload.index?void 0:Number(c.payload.index),isTooltipActive:c.payload.active,activeIndex:null==c.payload.index?void 0:Number(c.payload.index),activeLabel:c.payload.label,activeDataKey:c.payload.dataKey,activeCoordinate:c.payload.coordinate},p=n(i,d);f=i[p]}else"value"===n&&(f=i.find(e=>String(e.value)===c.payload.label));var{coordinate:h}=c.payload;if(null!=h&&null!=a)if(null!=f){var{x:y,y:v}=h,m=Math.min(y,a.x+a.width),g=Math.min(v,a.y+a.height),b=Hw({active:c.payload.active,coordinate:{x:"horizontal"===o?f.coordinate:m,y:"horizontal"===o?g:f.coordinate},dataKey:c.payload.dataKey,index:String(f.index),label:c.payload.label,sourceViewBox:c.payload.sourceViewBox,graphicalItemId:c.payload.graphicalItemId});r(b)}else r(Hw({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:c.payload.sourceViewBox,graphicalItemId:void 0}));else r(Hw({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}))}}else if(a&&null!=c&&null!==(s=c.payload)&&void 0!==s&&s.coordinate&&c.payload.sourceViewBox){var w=c.payload.coordinate,{x,y:O}=w,E=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(w,lE),{x:S,y:P,width:j,height:A}=c.payload.sourceViewBox,_=uE(uE({},E),{},{x:a.x+(j?(x-S)/j:0)*a.width,y:a.y+(A?(O-P)/A:0)*a.height});r(uE(uE({},c),{},{payload:uE(uE({},c.payload),{},{coordinate:_})}))}else r(c);else r(Hw({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}))};return GO.on(XO,l),()=>{GO.off(XO,l)}},[l,r,t,e,n,i,o,a])}(),function(){var e=ri(Pp),t=ri(Ap),r=Qn();b(()=>{if(null==e)return Dt;var n=(n,i,o)=>{t!==o&&e===n&&r(oE(i))};return GO.on(ZO,n),()=>{GO.off(ZO,n)}},[r,t,e])}(),null;var e};function HM(e){if("number"==typeof e)return e;if("string"==typeof e){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var qM=f((e,t)=>{var r,n,i=m(null),[o,a]=y({containerWidth:HM(null===(r=e.style)||void 0===r?void 0:r.width),containerHeight:HM(null===(n=e.style)||void 0===n?void 0:n.height)}),l=v((e,t)=>{a(r=>{var n=Math.round(e),i=Math.round(t);return r.containerWidth===n&&r.containerHeight===i?r:{containerWidth:n,containerHeight:i}})},[]),u=v(e=>{if("function"==typeof t&&t(e),null!=i.current&&(i.current.disconnect(),i.current=null),null!=e&&"undefined"!=typeof ResizeObserver){var{width:r,height:n}=e.getBoundingClientRect();l(r,n);var o=new ResizeObserver(e=>{var t=e[0];if(null!=t){var{width:r,height:n}=t.contentRect;l(r,n)}});o.observe(e),i.current=o}},[t,l]);return b(()=>()=>{var e=i.current;null!=e&&e.disconnect()},[l]),c.createElement(c.Fragment,null,c.createElement(Wc,{width:o.containerWidth,height:o.containerHeight}),c.createElement("div",UM({ref:u},e)))}),YM=f((e,t)=>{var{width:r,height:n}=e,[i,o]=y({containerWidth:HM(r),containerHeight:HM(n)}),a=v((e,t)=>{o(r=>{var n=Math.round(e),i=Math.round(t);return r.containerWidth===n&&r.containerHeight===i?r:{containerWidth:n,containerHeight:i}})},[]),l=v(e=>{if("function"==typeof t&&t(e),null!=e){var{width:r,height:n}=e.getBoundingClientRect();a(r,n)}},[t,a]);return c.createElement(c.Fragment,null,c.createElement(Wc,{width:i.containerWidth,height:i.containerHeight}),c.createElement("div",UM({ref:l},e)))}),GM=f((e,t)=>{var{width:r,height:n}=e;return c.createElement(c.Fragment,null,c.createElement(Wc,{width:r,height:n}),c.createElement("div",UM({ref:t},e)))}),XM=f((e,t)=>{var{width:r,height:n}=e;return"string"==typeof r||"string"==typeof n?c.createElement(YM,UM({},e,{ref:t})):"number"==typeof r&&"number"==typeof n?c.createElement(GM,UM({},e,{width:r,height:n,ref:t})):c.createElement(c.Fragment,null,c.createElement(Wc,{width:r,height:n}),c.createElement("div",UM({ref:t},e)))}),ZM=f((e,t)=>{var{children:r,className:n,height:i,onClick:o,onContextMenu:a,onDoubleClick:l,onMouseDown:u,onMouseEnter:s,onMouseLeave:f,onMouseMove:d,onMouseUp:p,onTouchEnd:h,onTouchMove:g,onTouchStart:w,style:x,width:O,responsive:E,dispatchTouchEvents:S=!0}=e,P=m(null),j=Qn(),[A,_]=y(null),[M,I]=y(null),T=function(){var e=Qn(),[t,r]=y(null),n=ri(Hl);return b(()=>{if(null!=t){var r=t.getBoundingClientRect().width/t.offsetWidth;Pl(r)&&r!==n&&e(Ol(r))}},[t,e,n]),r}(),D=Tc(),N=(null==D?void 0:D.width)>0?D.width:O,C=(null==D?void 0:D.height)>0?D.height:i,z=v(e=>{T(e),"function"==typeof t&&t(e),_(e),I(e),null!=e&&(P.current=e)},[T,t,_,I]),L=v(e=>{j(Uk(e)),j(fM({handler:o,reactEvent:e}))},[j,o]),R=v(e=>{j(Hk(e)),j(fM({handler:s,reactEvent:e}))},[j,s]),B=v(e=>{j(Kw()),j(fM({handler:f,reactEvent:e}))},[j,f]),$=v(e=>{j(Hk(e)),j(fM({handler:d,reactEvent:e}))},[j,d]),V=v(()=>{j(iM())},[j]),K=v(()=>{j(oM())},[j]),F=v(e=>{j(nM(e.key))},[j]),W=v(e=>{j(fM({handler:a,reactEvent:e}))},[j,a]),H=v(e=>{j(fM({handler:l,reactEvent:e}))},[j,l]),q=v(e=>{j(fM({handler:u,reactEvent:e}))},[j,u]),Y=v(e=>{j(fM({handler:p,reactEvent:e}))},[j,p]),G=v(e=>{j(fM({handler:w,reactEvent:e}))},[j,w]),X=v(e=>{S&&j(gM(e)),j(fM({handler:g,reactEvent:e}))},[j,S,g]),Z=v(e=>{j(fM({handler:h,reactEvent:e}))},[j,h]),Q=function(e){return e?qM:XM}(E);return c.createElement(qO.Provider,{value:A},c.createElement(U.Provider,{value:M},c.createElement(Q,{width:null!=N?N:null==x?void 0:x.width,height:null!=C?C:null==x?void 0:x.height,className:k("recharts-wrapper",n),style:KM({position:"relative",cursor:"default",width:N,height:C},x),onClick:L,onContextMenu:W,onDoubleClick:H,onFocus:V,onBlur:K,onKeyDown:F,onMouseDown:q,onMouseEnter:R,onMouseLeave:B,onMouseMove:$,onMouseUp:Y,onTouchEnd:Z,onTouchMove:X,onTouchStart:G,ref:z},c.createElement(WM,null),r)))}),QM=["width","height","responsive","children","className","style","compact","title","desc"],JM=f((e,t)=>{var{width:r,height:n,responsive:i,children:o,className:a,style:l,compact:u,title:s,desc:f}=e,d=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)-1===t.indexOf(r=o[n])&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,QM),p=C(d);return u?c.createElement(c.Fragment,null,c.createElement(Wc,{width:r,height:n}),c.createElement($M,{otherAttributes:p,title:s,desc:f},o)):c.createElement(ZM,{className:a,style:l,width:r,height:n,responsive:null!=i&&i,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},c.createElement($M,{otherAttributes:p,title:s,desc:f,ref:t},c.createElement(mj,null,o)))});function eI(){return eI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},eI.apply(null,arguments)}function tI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rI(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var nI=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tI(Object(r),!0).forEach(function(t){rI(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tI(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:{top:5,right:5,bottom:5,left:5},responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},SM),iI=f(function(e,t){var r,n=qt(e.categoricalChartProps,nI),{chartName:i,defaultTooltipEventType:o,validateTooltipEventTypes:a,tooltipPayloadSearcher:l,categoricalChartProps:u}=e;return c.createElement(_M,{preloadedState:{options:{chartName:i,defaultTooltipEventType:o,validateTooltipEventTypes:a,tooltipPayloadSearcher:l,eventEmitter:void 0}},reduxStoreName:null!==(r=u.id)&&void 0!==r?r:i},c.createElement(dj,{chartData:u.data}),c.createElement(MM,{layout:n.layout,margin:n.margin}),c.createElement(TM,{throttleDelay:n.throttleDelay,throttledEvents:n.throttledEvents}),c.createElement(IM,{baseValue:n.baseValue,accessibilityLayer:n.accessibilityLayer,barCategoryGap:n.barCategoryGap,maxBarSize:n.maxBarSize,stackOffset:n.stackOffset,barGap:n.barGap,barSize:n.barSize,syncId:n.syncId,syncMethod:n.syncMethod,className:n.className,reverseStackOrder:n.reverseStackOrder}),c.createElement(JM,eI({},n,{ref:t})))}),oI=["axis"],aI=f((e,t)=>c.createElement(iI,{chartName:"ComposedChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:oI,tooltipPayloadSearcher:QO,categoricalChartProps:e,ref:t}));const lI=["#3b82f6","#a855f7","#f97316","#22c55e","#ef4444","#eab308","#ec4899"];function cI(r){const{id:c,data:u,series:s,xAxis:f,showYAxis:d=!1,showLegend:p=!0,barGap:h,barCategoryGap:y,flex:v,height:m=240,width:g,size:b,minSize:w,maxSize:x,maxHeight:O,maxWidth:E,minHeight:S,minWidth:P,aspectRatio:j}=r,A=n(),{mode:_}=i(),k="string"==typeof f?f:f.dataKey,M="object"==typeof f&&f.hide,I="object"==typeof f?f.labels:void 0,T={display:"flex",flex:v,height:o(b||m),width:o(b||g),minHeight:o(w||S),minWidth:o(w||P),maxHeight:o(x||O),maxWidth:o(x||E),aspectRatio:"number"==typeof j?String(j):j},D=a(A.color.text,.1)??"rgba(0,0,0,0.1)",N=A.color.textMuted,C=A.color.surface,z=a(A.color.text,.1)??"rgba(0,0,0,0.1)";return e("div",{id:c,style:T,children:e(Nc,{width:"100%",height:"100%",children:t(aI,{data:u,barGap:h,barCategoryGap:y,children:[e(iA,{strokeDasharray:"3 3",stroke:D}),e(kk,{dataKey:k,hide:M,tickFormatter:e=>I&&e in I?I[e]:e,stroke:N,style:{fontSize:A.font.size.text.xs}}),d&&e(Vk,{stroke:N,style:{fontSize:A.font.size.text.xs}}),e(mE,{contentStyle:{backgroundColor:C,border:`1px solid ${z}`,borderRadius:A.radius.sm,fontSize:A.font.size.text.sm}}),p&&e(gs,{wrapperStyle:{fontSize:A.font.size.text.sm}}),s.map((t,r)=>{const n=((e,t)=>e&&l(e,A,_)||lI[t%lI.length])(t.color,r),i=t.label||t.dataKey;return"bar"===t.type?e(dk,{dataKey:t.dataKey,fill:n,name:i,stackId:t.stack},r):"line"===t.type?e(FA,{dataKey:t.dataKey,stroke:n,name:i,type:t.curveType||"natural",strokeWidth:2},r):"area"===t.type?e(S_,{dataKey:t.dataKey,fill:n,stroke:n,name:i,type:t.curveType||"natural",stackId:t.stack},r):null})]})})})}export{cI as Chart};