1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,992552,(t,e,r)=>{e.exports=function(t){return null==t}},940898,(t,e,r)=>{var n=t.r(615772);e.exports=function(){return n.Date.now()}},686133,(t,e,r)=>{var n=t.r(647453),i=t.r(940898),o=t.r(285639),a=Math.max,u=Math.min;e.exports=function(t,e,r){var l,c,s,f,p,d,h=0,y=!1,v=!1,m=!0;if("function"!=typeof t)throw TypeError("Expected a function");function g(e){var r=l,n=c;return l=c=void 0,h=e,f=t.apply(n,r)}function b(t){var r=t-d,n=t-h;return void 0===d||r>=e||r<0||v&&n>=s}function x(){var t,r,n,o=i();if(b(o))return O(o);p=setTimeout(x,(t=o-d,r=o-h,n=e-t,v?u(n,s-r):n))}function O(t){return(p=void 0,m&&l)?g(t):(l=c=void 0,f)}function w(){var t,r=i(),n=b(r);if(l=arguments,c=this,d=r,n){if(void 0===p)return h=t=d,p=setTimeout(x,e),y?g(t):f;if(v)return clearTimeout(p),p=setTimeout(x,e),g(d)}return void 0===p&&(p=setTimeout(x,e)),f}return e=o(e)||0,n(r)&&(y=!!r.leading,s=(v="maxWait"in r)?a(o(r.maxWait)||0,e):s,m="trailing"in r?!!r.trailing:m),w.cancel=function(){void 0!==p&&clearTimeout(p),h=0,l=d=c=p=void 0},w.flush=function(){return void 0===p?f:O(i())},w}},178218,(t,e,r)=>{var n=t.r(686133),i=t.r(647453);e.exports=function(t,e,r){var o=!0,a=!0;if("function"!=typeof t)throw TypeError("Expected a function");return i(r)&&(o="leading"in r?!!r.leading:o,a="trailing"in r?!!r.trailing:a),n(t,e,{leading:o,maxWait:e,trailing:a})}},45770,(t,e,r)=>{var n=t.r(29841),i=t.r(379909),o=t.r(546871);e.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==n(t)}},544992,(t,e,r)=>{"use strict";var n,i=Symbol.for("react.element"),o=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),s=Symbol.for("react.context"),f=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function g(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case i:switch(t=t.type){case a:case l:case u:case d:case h:return t;default:switch(t=t&&t.$$typeof){case f:case s:case p:case v:case y:case c:return t;default:return e}}case o:return e}}}n=Symbol.for("react.module.reference"),r.ContextConsumer=s,r.ContextProvider=c,r.Element=i,r.ForwardRef=p,r.Fragment=a,r.Lazy=v,r.Memo=y,r.Portal=o,r.Profiler=l,r.StrictMode=u,r.Suspense=d,r.SuspenseList=h,r.isAsyncMode=function(){return!1},r.isConcurrentMode=function(){return!1},r.isContextConsumer=function(t){return g(t)===s},r.isContextProvider=function(t){return g(t)===c},r.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===i},r.isForwardRef=function(t){return g(t)===p},r.isFragment=function(t){return g(t)===a},r.isLazy=function(t){return g(t)===v},r.isMemo=function(t){return g(t)===y},r.isPortal=function(t){return g(t)===o},r.isProfiler=function(t){return g(t)===l},r.isStrictMode=function(t){return g(t)===u},r.isSuspense=function(t){return g(t)===d},r.isSuspenseList=function(t){return g(t)===h},r.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===a||t===l||t===u||t===d||t===h||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===v||t.$$typeof===y||t.$$typeof===c||t.$$typeof===s||t.$$typeof===p||t.$$typeof===n||void 0!==t.getModuleId)||!1},r.typeOf=g},193343,(t,e,r)=>{"use strict";e.exports=t.r(544992)},589160,(t,e,r)=>{var n=t.r(29841),i=t.r(546871);e.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==n(t)}},317801,(t,e,r)=>{var n=t.r(589160);e.exports=function(t){return n(t)&&t!=+t}},45280,t=>{"use strict";var e=t.i(45770),r=t.i(317801),n=t.i(15233),i=t.i(589160),o=t.i(992552),a=function(t){return 0===t?0:t>0?1:-1},u=function(t){return(0,e.default)(t)&&t.indexOf("%")===t.length-1},l=function(t){return(0,i.default)(t)&&!(0,r.default)(t)},c=function(t){return(0,o.default)(t)},s=function(t){return l(t)||(0,e.default)(t)},f=0,p=function(t){var e=++f;return"".concat(t||"").concat(e)},d=function(t,n){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!l(t)&&!(0,e.default)(t))return o;if(u(t)){var c=t.indexOf("%");i=n*parseFloat(t.slice(0,c))/100}else i=+t;return(0,r.default)(i)&&(i=o),a&&i>n&&(i=n),i},h=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},y=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,r={},n=0;n<e;n++)if(r[t[n]])return!0;else r[t[n]]=!0;return!1},v=function(t,e){return l(t)&&l(e)?function(r){return t+r*(e-t)}:function(){return e}};function m(t,e,r){return t&&t.length?t.find(function(t){return t&&("function"==typeof e?e(t):(0,n.default)(t,e))===r}):null}var g=function(t){if(!t||!t.length)return null;for(var e=t.length,r=0,n=0,i=0,o=0,a=1/0,u=-1/0,l=0,c=0,s=0;s<e;s++)l=t[s].cx||0,c=t[s].cy||0,r+=l,n+=c,i+=l*c,o+=l*l,a=Math.min(a,l),u=Math.max(u,l);var f=e*o!=r*r?(e*i-r*n)/(e*o-r*r):0;return{xmin:a,xmax:u,a:f,b:(n-f*r)/e}},b=function(t,r){return l(t)&&l(r)?t-r:(0,e.default)(t)&&(0,e.default)(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};t.s(["compareValues",()=>b,"findEntryInArray",()=>m,"getAnyElementOfObject",()=>h,"getLinearRegression",()=>g,"getPercentValue",()=>d,"hasDuplicate",()=>y,"interpolateNumber",()=>v,"isNullish",()=>c,"isNumOrStr",()=>s,"isNumber",()=>l,"isPercent",()=>u,"mathSign",()=>a,"uniqueId",()=>p])},339244,t=>{"use strict";function e(t,e){for(var r in t)if(({}).hasOwnProperty.call(t,r)&&(!({}).hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if(({}).hasOwnProperty.call(e,n)&&!({}).hasOwnProperty.call(t,n))return!1;return!0}t.s(["shallowEqual",()=>e])},333187,t=>{"use strict";var e=t.i(906936),r=t.i(647453);function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRen
1dering","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"],o=["points","pathLength"],a={svg:["viewBox","children"],polygon:o,polyline:o},u=["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","onDrag
1Capture","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"],l=function(t,n){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var i=t;if((0,e.isValidElement)(t)&&(i=t.props),!(0,r.default)(i))return null;var o={};
1return Object.keys(i).forEach(function(t){u.includes(t)&&(o[t]=n||function(e){return i[t](i,e)})}),o},c=function(t,e,i){if(!(0,r.default)(t)||"object"!==n(t))return null;var o=null;return Object.keys(t).forEach(function(r){var n=t[r];u.includes(r)&&"function"==typeof n&&(o||(o={}),o[r]=function(t){return n(e,i,t),null})}),o};t.s(["EventKeys",()=>u,"FilteredElementKeyMap",()=>a,"SVGElementPropKeys",()=>i,"adaptEventHandlers",()=>l,"adaptEventsOfChild",()=>c])},9498,t=>{"use strict";var e=t.i(15233),r=t.i(992552),n=t.i(45770),i=t.i(239660),o=t.i(647453),a=t.i(906936),u=t.i(193343),l=t.i(45280),c=t.i(339244),s=t.i(333187),f=["children"],p=["children"];function d(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var y={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},v=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},m=null,g=null,b=function t(e){if(e===m&&Array.isArray(g))return g;var n=[];return a.Children.forEach(e,function(e){(0,r.default)(e)||((0,u.isFragment)(e)?n=n.concat(t(e.props.children)):n.push(e))}),g=n,m=e,n};function x(t,r){var n=[],i=[];return i=Array.isArray(r)?r.map(function(t){return v(t)}):[v(r)],b(t).forEach(function(t){var r=(0,e.default)(t,"type.displayName")||(0,e.default)(t,"type.name");-1!==i.indexOf(r)&&n.push(t)}),n}function O(t,e){var r=x(t,e);return r&&r[0]}var w=function(t){if(!t||!t.props)return!1;var e=t.props,r=e.width,n=e.height;return!!(0,l.isNumber)(r)&&!(r<=0)&&!!(0,l.isNumber)(n)&&!(n<=0)},S=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],j=function(t){return t&&"object"===h(t)&&"clipDot"in t},P=function(t,e,r,n){var o,a=null!=(o=null===s.FilteredElementKeyMap||void 0===s.FilteredElementKeyMap?void 0:s.FilteredElementKeyMap[n])?o:[];return e.startsWith("data-")||!(0,i.default)(t)&&(n&&a.includes(e)||s.SVGElementPropKeys.includes(e))||r&&s.EventKeys.includes(e)},E=function(t,e,r){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if((0,a.isValidElement)(t)&&(n=t.props),!(0,o.default)(n))return null;var i={};return Object.keys(n).forEach(function(t){var o;P(null==(o=n)?void 0:o[t],t,e,r)&&(i[t]=n[t])}),i},A=function t(e,r){if(e===r)return!0;var n=a.Children.count(e);if(n!==a.Children.count(r))return!1;if(0===n)return!0;if(1===n)return M(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var o=e[i],u=r[i];if(Array.isArray(o)||Array.isArray(u)){if(!t(o,u))return!1}else if(!M(o,u))return!1}return!0},M=function(t,e){if((0,r.default)(t)&&(0,r.default)(e))return!0;
1if(!(0,r.default)(t)&&!(0,r.default)(e)){var n=t.props||{},i=n.children,o=d(n,f),a=e.props||{},u=a.children,l=d(a,p);if(i&&u)return(0,c.shallowEqual)(o,l)&&A(i,u);if(!i&&!u)return(0,c.shallowEqual)(o,l)}return!1},T=function(t,e){var r=[],i={};return b(t).forEach(function(t,o){if(t&&t.type&&(0,n.default)(t.type)&&S.indexOf(t.type)>=0)r.push(t);else if(t){var a=v(t.type),u=e[a]||{},l=u.handler,c=u.once;if(l&&(!c||!i[a])){var s=l(t,a,o);r.push(s),i[a]=!0}}}),r},k=function(t){var e=t&&t.type;return e&&y[e]?y[e]:null},C=function(t,e){return b(e).indexOf(t)};t.s(["filterProps",()=>E,"findAllByType",()=>x,"findChildByType",()=>O,"getDisplayName",()=>v,"getReactEventByType",()=>k,"hasClipDot",()=>j,"isChildrenEqual",()=>A,"parseChildIndex",()=>C,"renderByOrder",()=>T,"validateWidthHeight",()=>w])},606206,t=>{"use strict";var e=t.i(906936),r=t.i(305829),n=t.i(9498),i=["children","width","height","viewBox","className","style","title","desc"];function o(){return(o=Object.assign.bind()).apply(this,arguments)}function a(t){var a=t.children,u=t.width,l=t.height,c=t.viewBox,s=t.className,f=t.style,p=t.title,d=t.desc,h=function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,i),y=c||{width:u,height:l,x:0,y:0},v=(0,r.default)("recharts-surface",s);return e.default.createElement("svg",o({},(0,n.filterProps)(h,!0,"svg"),{className:v,width:u,height:l,style:f,viewBox:"".concat(y.x," ").concat(y.y," ").concat(y.width," ").concat(y.height)}),e.default.createElement("title",null,p),e.default.createElement("desc",null,d),a)}t.s(["Surface",()=>a])},645511,t=>{"use strict";var e=t.i(906936),r=t.i(305829),n=t.i(9498),i=["children","className"];function o(){return(o=Object.assign.bind()).apply(this,arguments)}var a=e.default.forwardRef(function(t,a){var u=t.children,l=t.className,c=function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,i),s=(0,r.default)("recharts-layer",l);return e.default.createElement("g",o({className:s},(0,n.filterProps)(c,!0),{ref:a}),u)});t.s(["Layer",()=>a])},92928,577943,t=>{"use strict";var e=t.i(906936),r=t.i(276026),n=t.i(992552),i=t.i(305829),o=t.i(45280);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(){return(u=Object.assign.bind()).apply(this,arguments)}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],(i=function(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function f(t){return Array.isArray(t)&&(0,o.isNumOrStr)(t[0])&&(0,o.isNumOrStr)(t[1])?t.join(" ~ "):t}var p=function(t){var a=t.separator,c=void 0===a?" : ":a,p=t.contentStyle,d=t.itemStyle,h=void 0===d?{}:d,y=t.labelStyle,v=t.payload,m=t.formatter,g=t.itemSorter,b=t.wrapperClassName,x=t.labelClassName,O=t.label,w=t.labelFormatter,S=t.accessibilityLayer,j=s({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},void 0===p?{}:p),P=s({margin:0},void 0===y?{}:y),E=!(0,n.default)(O),A=E?O:"",M=(0,i.default)("recharts-default-tooltip",b),T=(0,i.default)("recharts-tooltip-label",x);return E&&w&&null!=v&&(A=w(O,v)),e.default.createElement("div",u({className:M,style:j},void 0!==S&&S?{role:"status","aria-live":"assertive"}:{}),e.default.createElement("p",{className:T,style:P},e.default.isValidElement(A)?A:"".concat(A)),function(){if(v&&v.length){var t=(g?(0,r.default)(v,g):v).map(function(t,r){if("none"===t.type)return null;var n=s({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},h),i=t.formatter||m||f,a=t.value,u=t.name,p=a,d=u;if(i&&null!=p&&null!=d){var y=i(a,u,t,r,v);if(Array.isArray(y)){var g=function(t){if(Array.isArray(t))return t}(y)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,u=[],l=!0,c=!1;try{o=(r=r.call(t)).next,!1;for(;
1!(l=(n=o.call(r)).done)&&(u.push(n.value),2!==u.length);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(y,2)||function(t,e){if(t){if("string"==typeof t)return l(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(t,2)}}(y,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();p=g[0],d=g[1]}else p=y}return e.default.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(r),style:n},(0,o.isNumOrStr)(d)?e.default.createElement("span",{className:"recharts-tooltip-item-name"},d):null,(0,o.isNumOrStr)(d)?e.default.createElement("span",{className:"recharts-tooltip-item-separator"},c):null,e.default.createElement("span",{className:"recharts-tooltip-item-value"},p),e.default.createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))});return e.default.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())};function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e,r){var n;return(n=function(t,e){if("object"!=d(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=d(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==d(n)?n:n+"")in t)?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}t.s(["DefaultTooltipContent",()=>p],92928);var y="recharts-tooltip-wrapper",v={visibility:"hidden"};function m(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,i=t.offsetTopLeft,a=t.position,u=t.reverseDirection,l=t.tooltipDimension,c=t.viewBox,s=t.viewBoxDimension;if(a&&(0,o.isNumber)(a[n]))return a[n];var f=r[n]-l-i,p=r[n]+i;return e[n]?u[n]?f:p:u[n]?f<c[n]?Math.max(p,c[n]):Math.max(f,c[n]):p+l>c[n]+s?Math.max(f,c[n]):Math.max(p,c[n])}function g(t){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function x(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?b(Object(r),!0).forEach(function(e){j(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function O(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(O=function(){return!!t})()}function w(t){return(w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function S(t,e){return(S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function j(t,e,r){return(e=P(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function P(t){var e=function(t,e){if("object"!=g(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=g(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==g(e)?e:e+""}var E=function(t){var r;function n(){var t,e,r;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return e=n,r=[].concat(o),e=w(e),j(t=function(t,e){if(e&&("object"===g(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,O()?Reflect.construct(e,r||[],w(this).constructor):e.apply(this,r)),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),j(t,"handleKeyDown",function(e){if("Escape"===e.key){var r,n,i,o;t.setState({dismissed:!0,dismissedAtCoordinate:{x:null!=(r=null==(n=t.props.coordinate)?void 0:n.x)?r:0,y:null!=(i=null==(o=t.props.coordinate)?void 0:o.y)?i:0}})}}),t}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),t&&S(n,t),r=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();(Math.abs(t.width-this.state.lastBoundingBox.width)>1||Math.abs(t.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:t.width,height:t.height}})}else(-1!==this.state.lastBoundingBox.width||-1!==this.state.lastBoundingBox.height)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null==(t=this.props.coordinate)?void 0:t.x)!==this.state.dismissedAtCoordinate.x||(null==(e=this.props.coordinate)?void 0:e.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var t,r,n,a,u,l,c,s,f,p,d,g,b,O,w,S,j,P,E,A=this,M=this.props,T=M.active,k=M.allowEscapeViewBox,C=M.animationDuration,N=M.animationEasing,_=M.children,D=M.coordinate,I=M.hasPayload,B=M.isAnimationActive,L=M.offset,R=M.position,U=M.reverseDirection,z=M.useTranslate3d,$=M.viewB
1ox,F=M.wrapperStyle,W=(g=(t={allowEscapeViewBox:k,coordinate:D,offsetTopLeft:L,position:R,reverseDirection:U,tooltipBox:this.state.lastBoundingBox,useTranslate3d:z,viewBox:$}).allowEscapeViewBox,b=t.coordinate,O=t.offsetTopLeft,w=t.position,S=t.reverseDirection,j=t.tooltipBox,P=t.useTranslate3d,E=t.viewBox,j.height>0&&j.width>0&&b?(n=(r={translateX:p=m({allowEscapeViewBox:g,coordinate:b,key:"x",offsetTopLeft:O,position:w,reverseDirection:S,tooltipDimension:j.width,viewBox:E,viewBoxDimension:E.width}),translateY:d=m({allowEscapeViewBox:g,coordinate:b,key:"y",offsetTopLeft:O,position:w,reverseDirection:S,tooltipDimension:j.height,viewBox:E,viewBoxDimension:E.height}),useTranslate3d:P}).translateX,a=r.translateY,f={transform:r.useTranslate3d?"translate3d(".concat(n,"px, ").concat(a,"px, 0)"):"translate(".concat(n,"px, ").concat(a,"px)")}):f=v,{cssProperties:f,cssClasses:(l=(u={translateX:p,translateY:d,coordinate:b}).coordinate,c=u.translateX,s=u.translateY,(0,i.default)(y,h(h(h(h({},"".concat(y,"-right"),(0,o.isNumber)(c)&&l&&(0,o.isNumber)(l.x)&&c>=l.x),"".concat(y,"-left"),(0,o.isNumber)(c)&&l&&(0,o.isNumber)(l.x)&&c<l.x),"".concat(y,"-bottom"),(0,o.isNumber)(s)&&l&&(0,o.isNumber)(l.y)&&s>=l.y),"".concat(y,"-top"),(0,o.isNumber)(s)&&l&&(0,o.isNumber)(l.y)&&s<l.y)))}),V=W.cssClasses,H=W.cssProperties,X=x(x({transition:B&&T?"transform ".concat(C,"ms ").concat(N):void 0},H),{},{pointerEvents:"none",visibility:!this.state.dismissed&&T&&I?"visible":"hidden",position:"absolute",top:0,left:0},F);return e.default.createElement("div",{tabIndex:-1,className:V,style:X,ref:function(t){A.wrapperNode=t}},_)}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,P(n.key),n)}}(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n}(e.PureComponent);t.s(["TooltipBoundingBox",()=>E],577943)},189628,t=>{"use strict";var e={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return e[t]},set:function(t,r){if("string"==typeof t)e[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(r){e[r]=t[r]})}}};t.s(["Global",()=>e])},259390,(t,e,r)=>{var n=t.r(345770),i=t.r(418210);e.exports=function(t,e){return t&&t.length?i(t,n(e,2)):[]}},780512,t=>{"use strict";var e=t.i(259390),r=t.i(239660);function n(t,n,i){return!0===n?(0,e.default)(t,i):(0,r.default)(n)?(0,e.default)(t,n):t}t.s(["getUniqPayload",()=>n])},96222,t=>{"use strict";var e=t.i(906936),r=t.i(92928),n=t.i(577943),i=t.i(189628),o=t.i(780512);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach(function(e){p(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function p(t,e,r){return(e=d(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==a(e)?e:e+""}function h(t){return t.dataKey}var y=function(t){var i;function u(){var t,e;if(!(this instanceof u))throw TypeError("Cannot call a class as a function");return t=u,e=arguments,t=s(t),function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,c()?Reflect.construct(t,e||[],s(this).constructor):t.apply(this,e))}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return u.prototype=Object.create(t&&t.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),t&&f(u,t),i=[{key:"render",value:function(){var t,i=this,a=this.props,u=a.active,c=a.allowEscapeViewBox,s=a.animationDuration,f=a.animationEasing,p=a.content,d=a.coordinate,y=a.filterNull,v=a.isAnimationActive,m=a.offset,g=a.payload,b=a.payloadUniqBy,x=a.position,O=a.reverseDirection,w=a.useTranslate3d,S=a.viewBox,j=a.wrapperStyle,P=null!=g?g:[];y&&P.length&&(P=(0,o.getUniqPayload)(g.filter(function(t){return null!=t.value&&(!0!==t.hide||i.props.includeHidden)}),b,h));var E=P.length>0;return e.default.createElement(n.TooltipBoundingBox,{allowEscapeViewBox:c,animationDuration:s,animationEasing:f,isAnimationActive:v,active:u,coordinate:d,hasPayload:E,offset:m,position:x,reverseDirection:O,useTranslate3d:w,viewBox:S,wrapperStyle:j},(t=l(l({},this.props),{},{payload:P}),e.default.isValidElement(p)?e.default.cloneElement(p,t):"function"==typeof p?e.default.createElement(p,t):e.default.createElement(r.DefaultTooltipContent,t)))}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,d(n.key),n)}}(u.prototype,i),Object.defineProperty(u,"prototype",{writable:!1}),u}(e.PureComponent);p(y,"displayName","Tooltip"),p(y,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!i.Global.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}}),t.s(["Tooltip",()=>y])},49341,t=>{"use strict";var e=function(t,e){for(var r=arguments.length,n=Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i]};t.s(["warn",()=>e])},965161,(t,e,r)=>{var n=t.r(59210);e.exports=function(t,e,r){var i=t.length;return r=void 0===r?i:r,!e&&r>=i?t:n(t,e,r)}},893114,(t,e,r)=>{var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(t){return n.test(t)}},320161,(t,e,r)=>{e.exports=function(t){return t.split("")}},362496,(t,e,r)=>{var n="\\ud800-\\udfff",i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",a="[^"+n+"]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+i+"|"+o+")?",s="[\\ufe0e\\ufe0f]?",f="(?:\\u200d(?:"+[a,u,l].join("|")+")"+s+c+")*",p=RegExp(o+"(?="+o+")|"+("(?:"+[a+i+"?",i,u,l,"["+n+"]"].join("|"))+")"+(s+c+f),"g");e.exports=function(t){return t.match(p)||[]}},115439,(t,e,r)=>{var n=t.r(320161),i=t.r(893114),o=t.r(362496);e.exports=function(t){return i(t)?o(t):n(t)}},368699,(t,e,r)=>{var n=t.r(965161),i=t.r(893114),o=t.r(115439),a=t.r(493947);e.exports=function(t){return function(e){var r=i(e=a(e))?o(e):void 0,u=r?r[0]:e.charAt(0),l=r?n(r,1).join(""):e.slice(1);return u[t]()+l}}},838299,(t,e,r)=>{e.exports=t.r(368699)("toUpperCase")},830952,t=>{"use strict";t.s([])},59953,t=>{"use strict";t.s(["default",0,function(t){return function(){return t}}])},464390,t=>{"use strict";let e=Math.PI,r=2*e,n=r-1e-6;function i(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class o{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?i:function(t){let e=Math.floor(t);if(!(e>=0))throw Error(`invalid digits: ${t}`);if(e>15)return i;let r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=Math.round(arguments[e]*r)/r+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,r,n){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(t,e,r,n,i,o){this._append`C${+t},${+e},${+r},${+n}
1,${this._x1=+i},${this._y1=+o}`}arcTo(t,r,n,i,o){if(t*=1,r*=1,n*=1,i*=1,(o*=1)<0)throw Error(`negative radius: ${o}`);let a=this._x1,u=this._y1,l=n-t,c=i-r,s=a-t,f=u-r,p=s*s+f*f;if(null===this._x1)this._append`M${this._x1=t},${this._y1=r}`;else if(p>1e-6)if(Math.abs(f*l-c*s)>1e-6&&o){let d=n-a,h=i-u,y=l*l+c*c,v=Math.sqrt(y),m=Math.sqrt(p),g=o*Math.tan((e-Math.acos((y+p-(d*d+h*h))/(2*v*m)))/2),b=g/m,x=g/v;Math.abs(b-1)>1e-6&&this._append`L${t+b*s},${r+b*f}`,this._append`A${o},${o},0,0,${+(f*d>s*h)},${this._x1=t+x*l},${this._y1=r+x*c}`}else this._append`L${this._x1=t},${this._y1=r}`}arc(t,i,o,a,u,l){if(t*=1,i*=1,o*=1,l=!!l,o<0)throw Error(`negative radius: ${o}`);let c=o*Math.cos(a),s=o*Math.sin(a),f=t+c,p=i+s,d=1^l,h=l?a-u:u-a;null===this._x1?this._append`M${f},${p}`:(Math.abs(this._x1-f)>1e-6||Math.abs(this._y1-p)>1e-6)&&this._append`L${f},${p}`,o&&(h<0&&(h=h%r+r),h>n?this._append`A${o},${o},0,1,${d},${t-c},${i-s}A${o},${o},0,1,${d},${this._x1=f},${this._y1=p}`:h>1e-6&&this._append`A${o},${o},0,${+(h>=e)},${d},${this._x1=t+o*Math.cos(u)},${this._y1=i+o*Math.sin(u)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r*=1}v${+n}h${-r}Z`}toString(){return this._}}function a(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{let t=Math.floor(r);if(!(t>=0))throw RangeError(`invalid digits: ${r}`);e=t}return t},()=>new o(e)}o.prototype,t.s(["withPath",()=>a],464390)},989898,613795,t=>{"use strict";var e=t.i(906936),r=t.i(239660),n=t.i(305829),i=t.i(49341),o=t.i(606206),a=t.i(838299);t.i(830952);var u=t.i(59953),l=t.i(464390);let c=Math.cos,s=Math.sin,f=Math.sqrt,p=Math.PI,d=2*p;f(3);let h={draw(t,e){let r=f(e/p);t.moveTo(r,0),t.arc(0,0,r,0,d)}},y=f(1/3),v=2*y,m=s(p/10)/s(7*p/10),g=s(d/10)*m,b=-c(d/10)*m,x=f(3);f(3);let O=f(3)/2,w=1/f(12),S=(w/2+1)*3;var j=t.i(9498);function P(t){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var E=["type","size","sizeType"];function A(){return(A=Object.assign.bind()).apply(this,arguments)}function M(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function T(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?M(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],(i=function(t){var e=function(t,e){if("object"!=P(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=P(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==P(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var k={symbolCircle:h,symbolCross:{draw(t,e){let r=f(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},symbolDiamond:{draw(t,e){let r=f(e/v),n=r*y;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},symbolSquare:{draw(t,e){let r=f(e),n=-r/2;t.rect(n,n,r,r)}},symbolStar:{draw(t,e){let r=f(.8908130915292852*e),n=g*r,i=b*r;t.moveTo(0,-r),t.lineTo(n,i);for(let e=1;e<5;++e){let o=d*e/5,a=c(o),u=s(o);t.lineTo(u*r,-a*r),t.lineTo(a*n-u*i,u*n+a*i)}t.closePath()}},symbolTriangle:{draw(t,e){let r=-f(e/(3*x));t.moveTo(0,2*r),t.lineTo(-x*r,-r),t.lineTo(x*r,-r),t.closePath()}},symbolWye:{draw(t,e){let r=f(e/S),n=r/2,i=r*w,o=r*w+r,a=-n;t.moveTo(n,i),t.lineTo(n,o),t.lineTo(a,o),t.lineTo(-.5*n-O*i,O*n+-.5*i),t.lineTo(-.5*n-O*o,O*n+-.5*o),t.lineTo(-.5*a-O*o,O*a+-.5*o),t.lineTo(-.5*n+O*i,-.5*i-O*n),t.lineTo(-.5*n+O*o,-.5*o-O*n),t.lineTo(-.5*a+O*o,-.5*o-O*a),t.closePath()}}},C=Math.PI/180,N=function(t,e,r){if("area"===e)return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":var n=18*C;return 1.25*t*t*(Math.tan(n)-Math.tan(2*n)*Math.pow(Math.tan(n),2));case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},_=function(t){var r,i=t.type,o=void 0===i?"circle":i,c=t.size,s=void 0===c?64:c,f=t.sizeType,p=void 0===f?"area":f,d=T(T({},function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,E)),{},{type:o,size:s,sizeType:p}),y=d.className,v=d.cx,m=d.cy,g=(0,j.filterProps)(d,!0);return v===+v&&m===+m&&s===+s?e.default.createElement("path",A({}
1,g,{className:(0,n.default)("recharts-symbols",y),transform:"translate(".concat(v,", ").concat(m,")"),d:(r=k["symbol".concat((0,a.default)(o))]||h,(function(t,e){let r=null,n=(0,l.withPath)(i);function i(){let i;if(r||(r=i=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),i)return r=null,i+""||null}return t="function"==typeof t?t:(0,u.default)(t||h),e="function"==typeof e?e:(0,u.default)(void 0===e?64:+e),i.type=function(e){return arguments.length?(t="function"==typeof e?e:(0,u.default)(e),i):t},i.size=function(t){return arguments.length?(e="function"==typeof t?t:(0,u.default)(+t),i):e},i.context=function(t){return arguments.length?(r=null==t?null:t,i):r},i})().type(r).size(N(s,p,o))())})):null};_.registerSymbol=function(t,e){k["symbol".concat((0,a.default)(t))]=e},t.s(["Symbols",()=>_],613795);var D=t.i(333187);function I(t){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function B(){return(B=Object.assign.bind()).apply(this,arguments)}function L(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function R(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(R=function(){return!!t})()}function U(t){return(U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function z(t,e){return(z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function $(t,e,r){return(e=F(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function F(t){var e=function(t,e){if("object"!=I(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=I(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==I(e)?e:e+""}var W=function(t){var a;function u(){var t,e;if(!(this instanceof u))throw TypeError("Cannot call a class as a function");return t=u,e=arguments,t=U(t),function(t,e){if(e&&("object"===I(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,R()?Reflect.construct(t,e||[],U(this).constructor):t.apply(this,e))}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return u.prototype=Object.create(t&&t.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),Object.defineProperty(u,"prototype",{writable:!1}),t&&z(u,t),a=[{key:"renderIcon",value:function(t){var r=this.props.inactiveColor,n=32/6,i=32/3,o=t.inactive?r:t.color;if("plainline"===t.type)return e.default.createElement("line",{strokeWidth:4,fill:"none",stroke:o,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:16,x2:32,y2:16,className:"recharts-legend-icon"});if("line"===t.type)return e.default.createElement("path",{strokeWidth:4,fill:"none",stroke:o,d:"M0,".concat(16,"h").concat(i,"\n A").concat(n,",").concat(n,",0,1,1,").concat(2*i,",").concat(16,"\n H").concat(32,"M").concat(2*i,",").concat(16,"\n A").concat(n,",").concat(n,",0,1,1,").concat(i,",").concat(16),className:"recharts-legend-icon"});if("rect"===t.type)return e.default.createElement("path",{stroke:"none",fill:o,d:"M0,".concat(4,"h").concat(32,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(e.default.isValidElement(t.legendIcon)){var a=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?L(Object(r),!0).forEach(function(e){$(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):L(Object(r)).forEac
1h(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({},t);return delete a.legendIcon,e.default.cloneElement(t.legendIcon,a)}return e.default.createElement(_,{fill:o,cx:16,cy:16,size:32,sizeType:"diameter",type:t.type})}},{key:"renderItems",value:function(){var t=this,a=this.props,u=a.payload,l=a.iconSize,c=a.layout,s=a.formatter,f=a.inactiveColor,p={x:0,y:0,width:32,height:32},d={display:"horizontal"===c?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return u.map(function(a,u){var c=a.formatter||s,y=(0,n.default)($($({"recharts-legend-item":!0},"legend-item-".concat(u),!0),"inactive",a.inactive));if("none"===a.type)return null;var v=(0,r.default)(a.value)?null:a.value;(0,i.warn)(!(0,r.default)(a.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var m=a.inactive?f:a.color;return e.default.createElement("li",B({className:y,style:d,key:"legend-item-".concat(u)},(0,D.adaptEventsOfChild)(t.props,a,u)),e.default.createElement(o.Surface,{width:l,height:l,viewBox:p,style:h},t.renderIcon(a)),e.default.createElement("span",{className:"recharts-legend-item-text",style:{color:m}},c?c(v,a,u):v))})}},{key:"render",value:function(){var t=this.props,r=t.payload,n=t.layout,i=t.align;return r&&r.length?e.default.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===n?i:"left"}},this.renderItems()):null}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,F(n.key),n)}}(u.prototype,a),Object.defineProperty(u,"prototype",{writable:!1}),u}(e.PureComponent);$(W,"displayName","Legend"),$(W,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"}),t.s(["DefaultLegendContent",()=>W],989898)},236814,t=>{"use strict";var e=t.i(906936),r=t.i(989898),n=t.i(45280),i=t.i(780512);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var a=["ref"];function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach(function(e){d(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,h(n.key),n)}}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,e){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function d(t,e,r){return(e=h(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function h(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=o(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}function y(t){return t.value}var v=function(t){var u,h;function v(){var t,e,r;if(!(this instanceof v))throw TypeError("Cannot call a class as a function");for(var n=arguments.length,i=Array(n),a=0;a<n;a++)i[a]=arguments[a];return e=v,r=[].concat(i),e=f(e),d(t=function(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,s()?Reflect.construct(e,r||[],f(this).constructor):e.apply(this,r)),"lastBoundingBox",{width:-1,height:-1}),t}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return v.prototype=Object.create(t&&t.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),t&&p(v,t),u=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();return t.height=this.wrapperNode.offsetHeight,t.width=this.wrapperNode.offsetWidth,t}return null}},{key:"updateBBox",value:function(){var t=this.props.onBBoxUpdate,e=this.getBBox();e?(Math.abs(e.width-this.lastBoundingBox.width)>1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e)):(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}}
1,{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?l({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,r,n=this.props,i=n.layout,o=n.align,a=n.verticalAlign,u=n.margin,c=n.chartWidth,s=n.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===o&&"vertical"===i?{left:((c||0)-this.getBBoxSnapshot().width)/2}:"right"===o?{right:u&&u.right||0}:{left:u&&u.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(r="middle"===a?{top:((s||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:u&&u.bottom||0}:{top:u&&u.top||0}),l(l({},e),r)}},{key:"render",value:function(){var t=this,n=this.props,o=n.content,u=n.width,c=n.height,s=n.wrapperStyle,f=n.payloadUniqBy,p=n.payload,d=l(l({position:"absolute",width:u||"auto",height:c||"auto"},this.getDefaultPosition(s)),s);return e.default.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(e){t.wrapperNode=e}},function(t,n){if(e.default.isValidElement(t))return e.default.cloneElement(t,n);if("function"==typeof t)return e.default.createElement(t,n);n.ref;var i=function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(n,a);return e.default.createElement(r.DefaultLegendContent,i)}(o,l(l({},this.props),{},{payload:(0,i.getUniqPayload)(p,f,y)})))}}],h=[{key:"getWithHeight",value:function(t,e){var r=l(l({},this.defaultProps),t.props).layout;return"vertical"===r&&(0,n.isNumber)(t.props.height)?{height:t.props.height}:"horizontal"===r?{width:t.props.width||e}:null}}],u&&c(v.prototype,u),h&&c(v,h),Object.defineProperty(v,"prototype",{writable:!1}),v}(e.PureComponent);d(v,"displayName","Legend"),d(v,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"}),t.s(["Legend",()=>v])},170441,t=>{"use strict";var e=t.i(906936),r=t.i(305829),n=t.i(333187),i=t.i(9498);function o(){return(o=Object.assign.bind()).apply(this,arguments)}var a=function(t){var a=t.cx,u=t.cy,l=t.r,c=t.className,s=(0,r.default)("recharts-dot",c);return a===+a&&u===+u&&l===+l?e.createElement("circle",o({},(0,i.filterProps)(t,!1),(0,n.adaptEventHandlers)(t),{className:s,cx:a,cy:u,r:l})):null};t.s(["Dot",()=>a])},431138,t=>{"use strict";var e=t.i(906936),r=t.i(584120),n=t.i(553418);function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame(function n(i){if(r<0&&(r=i),i-r>e)t(i),r=-1;else{var o;o=n,"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(o)}})}function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach(function(e){s(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function s(t,e,r){var n;return(n=function(t,e){if("object"!==u(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==u(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"===u(n)?n:String(n))in t)?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}t.i(994068);var f=function(t){return t},p=function(t,e){return Object.keys(e).reduce(function(r,n){return c(c({},r),{},s({},n,t(n,e[n])))},{})},d=function(t,e,r){return t.map(function(t){return"".concat(t.replace(/([A-Z])/g,function(t){return"-".concat(t.toLowerCase())})," ").concat(e,"ms ").concat(r)}).join(",")},h=function(t,e,r,n,i,o,a,u){};function y(t,e){if(t){if("string"==typeof t)return v(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(t,e)}}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var m=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},g=function(t,e){return t.map(function(t,r){return t*Math.pow(e,r)}).reduce(function(t,e){return t+e})},b=function(t,e){return function(r){return g(m(t,e),r)}},x=function(){for(var t,e,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];var o=n[0],a=n[1],u=n[2],l=n[3];if(1===n.length)switch(n[0]){case"linear":o=0,a=0,u=1,l=1;break;case"ease":o=.25,a=.1,u=.25,l=1;break;case"ease-in":o=.42,a=0,u=1,l=1;break;case"ease-out":o=.42,a=0,u=.58,l=1;break;case"ease-in-out":o=0,a=0,u=.58,l=1;break;default:var c=n[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var s,f=function(t){if(Array.isArray(t))return t}(s=c[1].split(")")[0].split(",").map(function(t){return parseFloat(t)}))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,u=[],l=!0,c=!1;try{o=(r=r.call(t)).next,!1;for(;
1!(l=(n=o.call(r)).done)&&(u.push(n.value),4!==u.length);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(s,4)||y(s,4)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();o=f[0],a=f[1],u=f[2],l=f[3]}else h(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",n)}h([o,u,a,l].every(function(t){return"number"==typeof t&&t>=0&&t<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",n);var p=b(o,u),d=b(a,l),x=(t=o,e=u,function(r){var n;return g([].concat(function(t){if(Array.isArray(t))return v(t)}(n=m(t,e).map(function(t,e){return t*e}).slice(1))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||y(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[0]),r)}),O=function(t){for(var e=t>1?1:t,r=e,n=0;n<8;++n){var i,o=p(r)-e,a=x(r);if(1e-4>Math.abs(o-e)||a<1e-4)break;r=(i=r-o/a)>1?1:i<0?0:i}return d(r)};return O.isStepper=!1,O},O=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,r=void 0===e?100:e,n=t.damping,i=void 0===n?8:n,o=t.dt,a=void 0===o?17:o,u=function(t,e,n){var o=n+(-(t-e)*r-n*i)*a/1e3,u=n*a/1e3+t;return 1e-4>Math.abs(u-e)&&1e-4>Math.abs(o)?[e,0]:[u,o]};return u.isStepper=!0,u.dt=a,u},w=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0];if("string"==typeof n)switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return x(n);case"spring":return O();default:if("cubic-bezier"===n.split("(")[0])return x(n);h(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",e)}return"function"==typeof n?n:(h(!1,"[configEasing]: first argument type should be function or string, instead received %s",e),null)};function S(t){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(t){return function(t){if(Array.isArray(t))return T(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||M(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function E(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?P(Object(r),!0).forEach(function(e){A(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function A(t,e,r){var n;return(n=function(t,e){if("object"!==S(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==S(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"===S(n)?n:String(n))in t)?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function M(t,e){if(t){if("string"==typeof t)return T(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return T(t,e)}}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var k=function(t,e,r){return t+(e-t)*r},C=function(t){return t.from!==t.to},N=function t(e,r,n){var i=p(function(t,r){if(C(r)){var n,i=function(t){if(Array.isArray(t))return t}(n=e(r.from,r.to,r.velocity))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,u=[],l=!0,c=!1;try{o=(r=r.call(t)).next,!1;for(;
1!(l=(n=o.call(r)).done)&&(u.push(n.value),2!==u.length);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(n,2)||M(n,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i[0],a=i[1];return E(E({},r),{},{from:o,velocity:a})}return r},r);return n<1?p(function(t,e){return C(e)?E(E({},e),{},{velocity:k(e.velocity,i[t].velocity,n),from:k(e.from,i[t].from,n)}):e},r):t(e,i,n-1)};let _=function(t,e,r,n,i){var o,a,u=[Object.keys(t),Object.keys(e)].reduce(function(t,e){return t.filter(function(t){return e.includes(t)})}),l=u.reduce(function(r,n){return E(E({},r),{},A({},n,[t[n],e[n]]))},{}),c=u.reduce(function(r,n){return E(E({},r),{},A({},n,{from:t[n],velocity:0,to:e[n]}))},{}),s=-1,f=function(){return null};return f=r.isStepper?function(n){o||(o=n);var a=(n-o)/r.dt;c=N(r,c,a),i(E(E(E({},t),e),p(function(t,e){return e.from},c))),o=n,Object.values(c).filter(C).length&&(s=requestAnimationFrame(f))}:function(o){a||(a=o);var u=(o-a)/n,c=p(function(t,e){return k.apply(void 0,j(e).concat([r(u)]))},l);if(i(E(E(E({},t),e),c)),u<1)s=requestAnimationFrame(f);else{var d=p(function(t,e){return k.apply(void 0,j(e).concat([r(1)]))},l);i(E(E(E({},t),e),d))}},function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(s)}}};function D(t){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var I=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function B(t){return function(t){if(Array.isArray(t))return L(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return L(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return L(t,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function R(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function U(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?R(Object(r),!0).forEach(function(e){z(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function z(t,e,r){return(e=$(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function $(t){var e=function(t,e){if("object"!==D(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==D(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===D(e)?e:String(e)}function F(t,e){return(F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function W(t,e){if(e&&("object"===D(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return V(t)}function V(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function H(t){return(H=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var X=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),Object.defineProperty(c,"prototype",{writable:!1}),t&&F(c,t);var r,u,l=(r=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=H(c);return t=r?Reflect.construct(e,arguments,H(this).constructor):e.apply(this,arguments),W(this,t)});function c(t,e){if(!(this instanceof c))throw TypeError("Cannot call a class as a function");var r=l.call(this,t,e),n=r.props,i=n.isActive,o=n.attributeName,a=n.from,u=n.to,s=n.steps,f=n.children,p=n.duration;if(r.handleStyleChange=r.handleStyleChange.bind(V(r)),r.changeStyle=r.changeStyle.bind(V(r)),!i||p<=0)return r.state={style:{}},"function"==typeof f&&(r.state={style:u}),W(r);if(s&&s.length)r.state={style:s[0].style};else if(a){if("function"==typeof f)return r.state={style:a},W(r);r.state={style:o?z({},o,a):a}}else r.state={style:{}};return r}return u=[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,r=t.canBegin;this.mounted=!0,e&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.isActive,i=e.canBegin,o=e.attributeName,a=e.shouldReAnimate,u=e.to,l=e.from,c=this.state.style;if(i){if(!r){var s={style:o?z({},o,u):u};this.state&&c&&(o&&c[o]!==u||!o&&c!==u)&&this.setState(s);return}if(!(0,n.deepEqual)(t.to,u)||!t.canBegin||!t.isActive){var f=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var p=f||a?l:t.to;if(this.state&&c){var d={style:o?z({},o,p):p};(o&&c[o]!==p||!o&&c!==p)&&this.setState(d)}this.runAnimation(U(U({},this.props),{},{from:p,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var t=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"runJSAnimation",value:function(t){var e=this,r=t.from,n=t.to,i=t.duration,o=t.easing,a=t.begin,u=t.onAnimationEnd,l=t.onAnimationStart,c=_(r,n,w(o),i,this.changeStyle);this.manager.start([l,a,function(){e.stopJSAnimation=c()},i,u])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,i=t.onAnimationStart,o=r[0],a=o.style,u=o.duration;return this.manager.start([i].concat(B(r.reduce(function(t,n,i){if(0===i)return t;var o=n.duration,a=n.easing,u=void 0===a?"ease":a,l=n.style,c=n.properties,s=n.onAnimationEnd,p=i>0?r[i-1]:n,h=c||Object.keys(l);if("function"==typeof u||"spring"===u)return[].concat(B(t),[e.runJSAnimation.bind(e,{from:p.style,to:l,duration:o,easing:u}),o]);var y=d(h,o,u),v=U(U(U({},p.style),l),{},{transition:y});return[].concat(B(t),[v,o,s]).filter(f)},[a,Math.max(void 0===u?0:u,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=(e=function(){return null},r=!1,n=function t(n){if(!r){if(Array.isArray(n)){if(!n.length)return;var u=function(t){if(Array.isArray(t))return t}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return a(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(t,void 0)}}
1(n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),l=u[0],c=u.slice(1);return"number"==typeof l?void i(t.bind(null,c),l):(t(l),void i(t.bind(null,c)))}"object"===o(n)&&e(n),"function"==typeof n&&n()}},{stop:function(){r=!0},start:function(t){r=!1,n(t)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}));var e,r,n,u=t.begin,l=t.duration,c=t.attributeName,s=t.to,f=t.easing,p=t.onAnimationStart,h=t.onAnimationEnd,y=t.steps,v=t.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),"function"==typeof f||"function"==typeof v||"spring"===f)return void this.runJSAnimation(t);if(y.length>1)return void this.runStepAnimation(t);var g=c?z({},c,s):s,b=d(Object.keys(g),l,f);m.start([p,u,U(U({},g),{},{transition:b}),l,h])}},{key:"render",value:function(){var t=this.props,r=t.children,n=(t.begin,t.duration),i=(t.attributeName,t.easing,t.isActive),o=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,I)),a=e.Children.count(r),u=this.state.style;if("function"==typeof r)return r(u);if(!i||0===a||n<=0)return r;var l=function(t){var r=t.props,n=r.style,i=r.className;return(0,e.cloneElement)(t,U(U({},o),{},{style:U(U({},void 0===n?{}:n),u),className:i}))};return 1===a?l(e.Children.only(r)):e.default.createElement("div",null,e.Children.map(r,function(t){return l(t)}))}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,$(n.key),n)}}(c.prototype,u),Object.defineProperty(c,"prototype",{writable:!1}),c}(e.PureComponent);X.displayName="Animate",X.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},X.propTypes={from:r.default.oneOfType([r.default.object,r.default.string]),to:r.default.oneOfType([r.default.object,r.default.string]),attributeName:r.default.string,duration:r.default.number,begin:r.default.number,easing:r.default.oneOfType([r.default.string,r.default.func]),steps:r.default.arrayOf(r.default.shape({duration:r.default.number.isRequired,style:r.default.object.isRequired,easing:r.default.oneOfType([r.default.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),r.default.func]),properties:r.default.arrayOf("string"),onAnimationEnd:r.default.func})),children:r.default.oneOfType([r.default.node,r.default.func]),isActive:r.default.bool,canBegin:r.default.bool,onAnimationEnd:r.default.func,shouldReAnimate:r.default.bool,onAnimationStart:r.default.func,onAnimationReStart:r.default.func};var q=t.i(735490),G=t.i(145501),K=t.i(19494),Y=t.i(510768);let Z=e.default.createContext(null);function J(t,r){var n=Object.create(null);return t&&e.Children.map(t,function(t){return t}).forEach(function(t){n[t.key]=r&&(0,e.isValidElement)(t)?r(t):t}),n}function Q(t,e,r){return null!=r[e]?r[e]:t.props[e]}var tt=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},te=function(t){function r(e,r){var n=t.call(this,e,r)||this,i=n.handleExited.bind((0,K.default)(n));return n.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},n}(0,Y.default)(r,t);var n=r.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(t,r){var n,i,o=r.children,a=r.handleExited;return{children:r.firstRender?J(t.children,function(r){return(0,e.cloneElement)(r,{onExited:a.bind(null,r),in:!0,appear:Q(r,"appear",t),enter:Q(r,"enter",t),exit:Q(r,"exit",t)})}):(Object.keys(i=function(t,e){function r(r){return r in e?e[r]:t[r]}t=t||{},e=e||{};var n,i=Object.create(null),o=[];for(var a in t)a in e?o.length&&(i[a]=o,o=[]):o.push(a);var u={};for(var l in e){if(i[l])for(n=0;n<i[l].length;n++){var c=i[l][n];u[i[l][n]]=r(c)}u[l]=r(l)}for(n=0;n<o.length;n++)u[o[n]]=r(o[n]);return u}
1(o,n=J(t.children))).forEach(function(r){var u=i[r];if((0,e.isValidElement)(u)){var l=r in o,c=r in n,s=o[r],f=(0,e.isValidElement)(s)&&!s.props.in;c&&(!l||f)?i[r]=(0,e.cloneElement)(u,{onExited:a.bind(null,u),in:!0,exit:Q(u,"exit",t),enter:Q(u,"enter",t)}):c||!l||f?c&&l&&(0,e.isValidElement)(s)&&(i[r]=(0,e.cloneElement)(u,{onExited:a.bind(null,u),in:s.props.in,exit:Q(u,"exit",t),enter:Q(u,"enter",t)})):i[r]=(0,e.cloneElement)(u,{in:!1})}}),i),firstRender:!1}},n.handleExited=function(t,e){var r=J(this.props.children);t.key in r||(t.props.onExited&&t.props.onExited(e),this.mounted&&this.setState(function(e){var r=(0,G.default)({},e.children);return delete r[t.key],{children:r}}))},n.render=function(){var t=this.props,r=t.component,n=t.childFactory,i=(0,q.default)(t,["component","childFactory"]),o=this.state.contextValue,a=tt(this.state.children).map(n);return(delete i.appear,delete i.enter,delete i.exit,null===r)?e.default.createElement(Z.Provider,{value:o},a):e.default.createElement(Z.Provider,{value:o},e.default.createElement(r,i,a))},r}(e.default.Component);te.propTypes={},te.defaultProps={component:"div",childFactory:function(t){return t}};var tr=t.i(165361),tn="unmounted",ti="exited",to="entering",ta="entered",tu="exiting",tl=function(t){function r(e,r){var n,i=t.call(this,e,r)||this,o=r&&!r.isMounting?e.enter:e.appear;return i.appearStatus=null,e.in?o?(n=ti,i.appearStatus=to):n=ta:n=e.unmountOnExit||e.mountOnEnter?tn:ti,i.state={status:n},i.nextCallback=null,i}(0,Y.default)(r,t),r.getDerivedStateFromProps=function(t,e){return t.in&&e.status===tn?{status:ti}:null};var n=r.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(t){var e=null;if(t!==this.props){var r=this.state.status;this.props.in?r!==to&&r!==ta&&(e=to):(r===to||r===ta)&&(e=tu)}this.updateStatus(!1,e)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var t,e,r,n=this.props.timeout;return t=e=r=n,null!=n&&"number"!=typeof n&&(t=n.exit,e=n.enter,r=void 0!==n.appear?n.appear:e),{exit:t,enter:e,appear:r}},n.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e)if(this.cancelNextCallback(),e===to){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:tr.default.findDOMNode(this);r&&r.scrollTop}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ti&&this.setState({status:tn})},n.performEnter=function(t){var e=this,r=this.props.enter,n=this.context?this.context.isMounting:t,i=this.props.nodeRef?[n]:[tr.default.findDOMNode(this),n],o=i[0],a=i[1],u=this.getTimeouts(),l=n?u.appear:u.enter;(t||r)&&1?(this.props.onEnter(o,a),this.safeSetState({status:to},function(){e.props.onEntering(o,a),e.onTransitionEnd(l,function(){e.safeSetState({status:ta},function(){e.props.onEntered(o,a)})})})):this.safeSetState({status:ta},function(){e.props.onEntered(o)})},n.performExit=function(){var t=this,e=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:tr.default.findDOMNode(this);e?(this.props.onExit(n),this.safeSetState({status:tu},function(){t.props.onExiting(n),t.onTransitionEnd(r.exit,function(){t.safeSetState({status:ti},function(){t.props.onExited(n)})})})):this.safeSetState({status:ti},function(){t.props.onExited(n)})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},n.setNextCallback=function(t){var e=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,e.nextCallback=null,t(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},n.onTransitionEnd=function(t,e){this.setNextCallback(e);var r=this.props.nodeRef?this.props.nodeRef.current:tr.default.findDOMNode(this),n=null==t&&!this.props.addEndListener;if(!r||n)return void setTimeout(this.nextCallback,0);if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=t&&setTimeout(this.nextCallback,t)},n.render=function(){var t=this.state.status;if(t===tn)return null;var r=this.props,n=r.children,i=(r.in,r.mountOnEnter,r.unmountOnExit,r.appear,r.enter,r.exit,r.timeout,r.addEndListener,r.onEnter,r.onEntering,r.onEntered,r.onExit,r.onExiting,r.onExited,r.nodeRef,(0,q.default)(r,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return e.default.createElement(Z.Provider,{value:null},"function"==typeof n?n(t,i):e.default.cloneElement(e.default.Children.only(n),i))},r}(e.default.Component);function tc(){}tl.contextType=Z,tl.propTypes={},tl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter
1:!0,exit:!0,onEnter:tc,onEntering:tc,onEntered:tc,onExit:tc,onExiting:tc,onExited:tc},tl.UNMOUNTED=tn,tl.EXITED=ti,tl.ENTERING=to,tl.ENTERED=ta,tl.EXITING=tu;var ts=["children","appearOptions","enterOptions","leaveOptions"];function tf(t){return(tf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tp(){return(tp=Object.assign.bind()).apply(this,arguments)}function td(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function th(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?td(Object(r),!0).forEach(function(e){tg(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):td(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function ty(t,e){return(ty=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function tv(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tm(t){return(tm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function tg(t,e,r){return(e=tb(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function tb(t){var e=function(t,e){if("object"!==tf(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==tf(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===tf(e)?e:String(e)}var tx=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.steps,r=t.duration;return e&&e.length?e.reduce(function(t,e){return t+(Number.isFinite(e.duration)&&e.duration>0?e.duration:0)},0):Number.isFinite(r)?r:0},tO=function(t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");o.prototype=Object.create(t&&t.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),t&&ty(o,t);var r,n,i=(r=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,e=tm(o);return t=r?Reflect.construct(e,arguments,tm(this).constructor):e.apply(this,arguments),function(t,e){if(e&&("object"===tf(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return tv(t)}(this,t)});function o(){var t;if(!(this instanceof o))throw TypeError("Cannot call a class as a function");return tg(tv(t=i.call(this)),"handleEnter",function(e,r){var n=t.props,i=n.appearOptions,o=n.enterOptions;t.handleStyleActive(r?i:o)}),tg(tv(t),"handleExit",function(){var e=t.props.leaveOptions;t.handleStyleActive(e)}),t.state={isActive:!1},t}return n=[{key:"handleStyleActive",value:function(t){if(t){var e=t.onAnimationEnd?function(){t.onAnimationEnd()}:null;this.setState(th(th({},t),{},{onAnimationEnd:e,isActive:!0}))}}},{key:"parseTimeout",value:function(){var t=this.props,e=t.appearOptions,r=t.enterOptions,n=t.leaveOptions;return tx(e)+tx(r)+tx(n)}},{key:"render",value:function(){var t=this,r=this.props,n=r.children,i=(r.appearOptions,r.enterOptions,r.leaveOptions,function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(r,ts));return e.default.createElement(tl,tp({},i,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),function(){return e.default.createElement(X,t.state,e.Children.only(n))})}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,tb(n.key),n)}}(o.prototype,n),Object.defineProperty(o,"prototype",{writable:!1}),o}(e.Component);function tw(t){var r=t.component,n=t.children,i=t.appear,o=t.enter,a=t.leave;return e.default.createElement(te,{component:r},e.Children.map(n,function(t,r){return e.default.createElement(tO,{appearOptions:i,enterOptions:o,leaveOptions:a,key:"child-".concat(r)},t)}
1))}tO.propTypes={appearOptions:r.default.object,enterOptions:r.default.object,leaveOptions:r.default.object,children:r.default.element},tw.propTypes={appear:r.default.object,enter:r.default.object,leave:r.default.object,children:r.default.oneOfType([r.default.array,r.default.element]),component:r.default.any},tw.defaultProps={component:"span"},t.s(["default",0,X],431138)},609749,t=>{"use strict";var e=t.i(906936),r=t.i(305829),n=t.i(431138),i=t.i(9498);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(){return(a=Object.assign.bind()).apply(this,arguments)}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach(function(e){var n,i,a;n=t,i=e,a=r[e],(i=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=o(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var s=function(t,e,r,n,i){var o,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),u=n>=0?1:-1,l=r>=0?1:-1,c=+(n>=0&&r>=0||n<0&&r<0);if(a>0&&i instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=i[f]>a?a:i[f];o="M".concat(t,",").concat(e+u*s[0]),s[0]>0&&(o+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(c,",").concat(t+l*s[0],",").concat(e)),o+="L ".concat(t+r-l*s[1],",").concat(e),s[1]>0&&(o+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(c,",\n ").concat(t+r,",").concat(e+u*s[1])),o+="L ".concat(t+r,",").concat(e+n-u*s[2]),s[2]>0&&(o+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(c,",\n ").concat(t+r-l*s[2],",").concat(e+n)),o+="L ".concat(t+l*s[3],",").concat(e+n),s[3]>0&&(o+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(c,",\n ").concat(t,",").concat(e+n-u*s[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);o="M ".concat(t,",").concat(e+u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(t+l*p,",").concat(e,"\n L ").concat(t+r-l*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(t+r,",").concat(e+u*p,"\n L ").concat(t+r,",").concat(e+n-u*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(t+r-l*p,",").concat(e+n,"\n L ").concat(t+l*p,",").concat(e+n,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(t,",").concat(e+n-u*p," Z")}else o="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return o},f=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,i=e.x,o=e.y,a=e.width,u=e.height;if(Math.abs(a)>0&&Math.abs(u)>0){var l=Math.min(i,i+a),c=Math.max(i,i+a),s=Math.min(o,o+u),f=Math.max(o,o+u);return r>=l&&r<=c&&n>=s&&n<=f}return!1},p={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},d=function(t){var o,l=c(c({},p),t),f=(0,e.useRef)(),d=function(t){if(Array.isArray(t))return t}(o=(0,e.useState)(-1))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,u=[],l=!0,c=!1;try{o=(r=r.call(t)).next,!1;for(;!(l=(n=o.call(r)).done)&&(u.push(n.value),2!==u.length);l=!0);}catch(t){c=!0,i=t}
1finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(o,2)||function(t,e){if(t){if("string"==typeof t)return u(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(t,2)}}(o,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),h=d[0],y=d[1];(0,e.useEffect)(function(){if(f.current&&f.current.getTotalLength)try{var t=f.current.getTotalLength();t&&y(t)}catch(t){}},[]);var v=l.x,m=l.y,g=l.width,b=l.height,x=l.radius,O=l.className,w=l.animationEasing,S=l.animationDuration,j=l.animationBegin,P=l.isAnimationActive,E=l.isUpdateAnimationActive;if(v!==+v||m!==+m||g!==+g||b!==+b||0===g||0===b)return null;var A=(0,r.default)("recharts-rectangle",O);return E?e.default.createElement(n.default,{canBegin:h>0,from:{width:g,height:b,x:v,y:m},to:{width:g,height:b,x:v,y:m},duration:S,animationEasing:w,isActive:E},function(t){var r=t.width,o=t.height,u=t.x,c=t.y;return e.default.createElement(n.default,{canBegin:h>0,from:"0px ".concat(-1===h?1:h,"px"),to:"".concat(h,"px 0px"),attributeName:"strokeDasharray",begin:j,duration:S,isActive:P,easing:w},e.default.createElement("path",a({},(0,i.filterProps)(l,!0),{className:A,d:s(u,c,r,o,x),ref:f})))}):e.default.createElement("path",a({},(0,i.filterProps)(l,!0),{className:A,d:s(v,m,g,b,x)}))};t.s(["Rectangle",()=>d,"isInRectangle",()=>f])},630991,t=>{"use strict";t.s([])},955292,246135,165275,t=>{"use strict";function e(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function r(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}t.s(["initInterpolator",()=>r,"initRange",()=>e],246135);class n extends Map{constructor(t,e=o){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,r]of t)this.set(e,r)}get(t){return super.get(i(this,t))}has(t){return super.has(i(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},r){let n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},r){let n=e(r);return t.has(n)&&(r=t.get(n),t.delete(n)),r}(this,t))}}function i({_intern:t,_key:e},r){let n=e(r);return t.has(n)?t.get(n):r}function o(t){return null!==t&&"object"==typeof t?t.valueOf():t}let a=Symbol("implicit");function u(){var t=new n,r=[],i=[],o=a;function l(e){let n=t.get(e);if(void 0===n){if(o!==a)return o;t.set(e,n=r.push(e)-1)}return i[n%i.length]}return l.domain=function(e){if(!arguments.length)return r.slice();for(let i of(r=[],t=new n,e))t.has(i)||t.set(i,r.push(i)-1);return l},l.range=function(t){return arguments.length?(i=Array.from(t),l):i.slice()},l.unknown=function(t){return arguments.length?(o=t,l):o},l.copy=function(){return u(r,i).unknown(o)},e.apply(l,arguments),l}function l(){var t,r,n=u().unknown(void 0),i=n.domain,o=n.range,a=0,c=1,s=!1,f=0,p=0,d=.5;function h(){var e=i().length,n=c<a,u=n?c:a,l=n?a:c;t=(l-u)/Math.max(1,e-f+2*p),s&&(t=Math.floor(t)),u+=(l-u-t*(e-f))*d,r=t*(1-f),s&&(u=Math.round(u),r=Math.round(r));var h=(function(t,e,r){t*=1,e*=1,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((e-t)/r)),o=Array(i);++n<i;)o[n]=t+n*r;return o})(e).map(function(e){return u+t*e});return o(n?h.reverse():h)}return delete n.unknown,n.domain=function(t){return arguments.length?(i(t),h()):i()},n.range=function(t){return arguments.length?([a,c]=t,a*=1,c*=1,h()):[a,c]},n.rangeRound=function(t){return[a,c]=t,a*=1,c*=1,s=!0,h()},n.bandwidth=function(){return r},n.step=function(){return t},n.round=function(t){return arguments.length?(s=!!t,h()):s},n.padding=function(t){return arguments.length?(f=Math.min(1,p=+t),h()):f},n.paddingInner=function(t){return arguments.length?(f=Math.min(1,t),h()):f},n.paddingOuter=function(t){return arguments.length?(p=+t,h()):p},n.align=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),h()):d},n.copy=function(){return l(i(),[a,c]).round(s).paddingInner(f).paddingOuter(p).align(d)},e.apply(h(),arguments)}function c(){return function t(e){var r=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return t(r())},e}(l.apply(null,arguments).paddingInner(1))}t.s(["default",()=>u,"implicit",0,a],165275),t.s(["default",()=>l,"point",()=>c],955292)},811601,t=>{"use strict";var e=t.i(955292);t.s(["scalePoint",()=>e.point])},795497,t=>{"use strict";var e=t.i(189628);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};
1e%2?n(Object(i),!0).forEach(function(e){var n,o,a;n=t,o=e,a=i[e],(o=function(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}(o))in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var o={widthCache:{},cacheCount:0},a={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},u="recharts_measurement_span",l=function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||e.Global.isSsr)return{width:0,height:0};var l=(Object.keys(r=i({},n)).forEach(function(t){r[t]||delete r[t]}),r),c=JSON.stringify({text:t,copyStyle:l});if(o.widthCache[c])return o.widthCache[c];try{var s=document.getElementById(u);s||((s=document.createElement("span")).setAttribute("id",u),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));var f=i(i({},a),l);Object.assign(s.style,f),s.textContent="".concat(t);var p=s.getBoundingClientRect(),d={width:p.width,height:p.height};return o.widthCache[c]=d,++o.cacheCount>2e3&&(o.cacheCount=0,o.widthCache={}),d}catch(t){return{width:0,height:0}}},c=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};t.s(["getOffset",()=>c,"getStringSize",()=>l])},406702,t=>{"use strict";var e=t.i(906936),r=t.i(992552),n=t.i(305829),i=t.i(45280),o=t.i(189628),a=t.i(9498),u=t.i(795497);function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,u=[],l=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(u.push(n.value),u.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return s(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,function(t){var e=function(t,e){if("object"!=l(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=l(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==l(e)?e:e+""}(n.key),n)}}var p=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,d=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,h=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,y=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,v={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},m=Object.keys(v),g=function(){var t,e;function r(t,e){if(!(this instanceof r))throw TypeError("Cannot call a class as a function");this.num=t,this.unit=e,this.num=t,this.unit=e,Number.isNaN(t)&&(this.unit=""),""===e||h.test(e)||(this.num=NaN,this.unit=""),m.includes(e)&&(this.num=t*v[e],this.unit="px")}return t=[{key:"add",value:function(t){return this.unit!==t.unit?new r(NaN,""):new r(this.num+t.num,this.unit)}},{key:"subtract",value:function(t){return this.unit!==t.unit?new r(NaN,""):new r(this.num-t.num,this.unit)}},{key:"multiply",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new r(NaN,""):new r(this.num*t.num,this.unit||t.unit)}},{key:"divide",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new r(NaN,""):new r(this.num/t.num,this.unit||t.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],e=[{key:"parse",value:function(t){var e,n=c(null!=(e=y.exec(t))?e:[],3),i=n[1],o=n[2];return new r(parseFloat(i),null!=o?o:"")}}],t&&f(r.prototype,t),e&&f(r,e),Object.defineProperty(r,"prototype",{writable:!1}),r}();function b(t){if(t.includes("NaN"))return"NaN";for(var e=t;e.includes("*")||e.includes("/");){var r,n=c(null!=(r=p.exec(e))?r:[],4),i=n[1],o=n[2],a=n[3],u=g.parse(null!=i?i:""),l=g.parse(null!=a?a:""),s="*"===o?u.multiply(l):u.divide(l);if(s.isNaN())return"NaN";e=e.replace(p,s.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var f,h=c(null!=(f=d.exec(e))?f:[],4),y=h[1],v=h[2],m=h[3],b=g.parse(null!=y?y:""),x=g.parse(null!=m?m:""),O="+"===v?b.add(x):b.subtract(x);if(O.isNaN())return"NaN";e=e.replace(d,O.toString())}return e}var x=/\(([^()]*)\)/;function O(t){var e=function(t){try{var e;return e=t.replace(/\s+/g,""),e=function(t){for(var e=t;e.includes("(");){var r=c(x.exec(e),2)[1];e=e.replace(x,b(r))}return e}(e),e=b(e)}catch(t){return"NaN"}}(t.slice(5,-1));return"NaN"===e?"":e}var w=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],S=["dx","dy","angle","className","breakAll"];function j(){return(j=Object.assign.bind()).apply(this,arguments)}function P(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function E(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,u=[],l=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;
1!(l=(n=o.call(r)).done)&&(u.push(n.value),u.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return A(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return A(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var M=/[ \f\n\r\t\v\u2028\u2029]+/,T=function(t){var e=t.children,n=t.breakAll,i=t.style;try{var o=[];(0,r.default)(e)||(o=n?e.toString().split(""):e.toString().split(M));var a=o.map(function(t){return{word:t,width:(0,u.getStringSize)(t,i).width}}),l=n?0:(0,u.getStringSize)(" ",i).width;return{wordsWithComputedWidth:a,spaceWidth:l}}catch(t){return null}},k=function(t,e,r,n,o){var a,u=t.maxLines,l=t.children,c=t.style,s=t.breakAll,f=(0,i.isNumber)(u),p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.reduce(function(t,e){var i=e.word,a=e.width,u=t[t.length-1];return u&&(null==n||o||u.width+a+r<Number(n))?(u.words.push(i),u.width+=a+r):t.push({words:[i],width:a}),t},[])},d=p(e);if(!f)return d;for(var h=function(t){var e=p(T({breakAll:s,style:c,children:l.slice(0,t)+"…"}).wordsWithComputedWidth);return[e.length>u||e.reduce(function(t,e){return t.width>e.width?t:e}).width>Number(n),e]},y=0,v=l.length-1,m=0;y<=v&&m<=l.length-1;){var g=Math.floor((y+v)/2),b=E(h(g-1),2),x=b[0],O=b[1],w=E(h(g),1)[0];if(x||w||(y=g+1),x&&w&&(v=g-1),!x&&w){a=O;break}m++}return a||d},C=function(t){return[{words:(0,r.default)(t)?[]:t.toString().split(M)}]},N=function(t){var e=t.width,r=t.scaleToFit,n=t.children,i=t.style,a=t.breakAll,u=t.maxLines;if((e||r)&&!o.Global.isSsr){var l=T({breakAll:a,children:n,style:i});if(!l)return C(n);var c=l.wordsWithComputedWidth,s=l.spaceWidth;return k({breakAll:a,children:n,maxLines:u,style:i},c,s,e,r)}return C(n)},_="#808080",D=function(t){var r,o=t.x,u=void 0===o?0:o,l=t.y,c=void 0===l?0:l,s=t.lineHeight,f=void 0===s?"1em":s,p=t.capHeight,d=void 0===p?"0.71em":p,h=t.scaleToFit,y=void 0!==h&&h,v=t.textAnchor,m=t.verticalAnchor,g=t.fill,b=void 0===g?_:g,x=P(t,w),E=(0,e.useMemo)(function(){return N({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:y,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,y,x.style,x.width]),A=x.dx,M=x.dy,T=x.angle,k=x.className,C=x.breakAll,D=P(x,S);if(!(0,i.isNumOrStr)(u)||!(0,i.isNumOrStr)(c))return null;var I=u+((0,i.isNumber)(A)?A:0),B=c+((0,i.isNumber)(M)?M:0);switch(void 0===m?"end":m){case"start":r=O("calc(".concat(d,")"));break;case"middle":r=O("calc(".concat((E.length-1)/2," * -").concat(f," + (").concat(d," / 2))"));break;default:r=O("calc(".concat(E.length-1," * -").concat(f,")"))}var L=[];if(y){var R=E[0].width,U=x.width;L.push("scale(".concat(((0,i.isNumber)(U)?U/R:1)/R,")"))}return T&&L.push("rotate(".concat(T,", ").concat(I,", ").concat(B,")")),L.length&&(D.transform=L.join(" ")),e.default.createElement("text",j({},(0,a.filterProps)(D,!0),{x:I,y:B,className:(0,n.default)("recharts-text",k),textAnchor:void 0===v?"start":v,fill:b.includes("url")?_:b}),E.map(function(t,n){var i=t.words.join(C?"":" ");return e.default.createElement("tspan",{x:I,dy:0===n?r:f,key:"".concat(i,"-").concat(n)},i)}))};t.s(["Text",()=>D],406702)},855463,t=>{"use strict";t.s([])},165961,t=>{"use strict";t.i(630991),t.i(855463);var e,r,n,i,o,a,u,l=t.i(955292);let c=Math.sqrt(50),s=Math.sqrt(10),f=Math.sqrt(2);function p(t,e,r){let n,i,o,a=(e-t)/Math.max(0,r),u=Math.floor(Math.log10(a)),l=a/Math.pow(10,u),d=l>=c?10:l>=s?5:l>=f?2:1;return(u<0?(n=Math.round(t*(o=Math.pow(10,-u)/d)),i=Math.round(e*o),n/o<t&&++n,i/o>e&&--i,o=-o):(n=Math.round(t/(o=Math.pow(10,u)*d)),i=Math.round(e/o),n*o<t&&++n,i*o>e&&--i),i<n&&.5<=r&&r<2)?p(t,e,2*r):[n,i,o]}function d(t,e,r){if(e*=1,t*=1,!((r*=1)>0))return[];if(t===e)return[t];let n=e<t,[i,o,a]=n?p(e,t,r):p(t,e,r);
1if(!(o>=i))return[];let u=o-i+1,l=Array(u);if(n)if(a<0)for(let t=0;t<u;++t)l[t]=-((o-t)/a);else for(let t=0;t<u;++t)l[t]=(o-t)*a;else if(a<0)for(let t=0;t<u;++t)l[t]=-((i+t)/a);else for(let t=0;t<u;++t)l[t]=(i+t)*a;return l}function h(t,e,r){return p(t*=1,e*=1,r*=1)[2]}function y(t,e,r){e*=1,t*=1,r*=1;let n=e<t,i=n?h(e,t,r):h(t,e,r);return(n?-1:1)*(i<0?-(1/i):i)}function v(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function m(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function g(t){let e,r,n;function i(t,n,o=0,a=t.length){if(o<a){if(0!==e(n,n))return a;do{let e=o+a>>>1;0>r(t[e],n)?o=e+1:a=e}while(o<a)}return o}return 2!==t.length?(e=v,r=(e,r)=>v(t(e),r),n=(e,r)=>t(e)-r):(e=t===v||t===m?t:b,r=t,n=t),{left:i,center:function(t,e,r=0,o=t.length){let a=i(t,e,r,o-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,i=0,o=t.length){if(i<o){if(0!==e(n,n))return o;do{let e=i+o>>>1;0>=r(t[e],n)?i=e+1:o=e}while(i<o)}return i}}}function b(){return 0}function x(t){return null===t?NaN:+t}let O=g(v),w=O.right;function S(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function j(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function P(){}O.left,g(x).center;var E="\\s*([+-]?\\d+)\\s*",A="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",M="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",T=/^#([0-9a-f]{3,8})$/,k=RegExp(`^rgb\\(${E},${E},${E}\\)$`),C=RegExp(`^rgb\\(${M},${M},${M}\\)$`),N=RegExp(`^rgba\\(${E},${E},${E},${A}\\)$`),_=RegExp(`^rgba\\(${M},${M},${M},${A}\\)$`),D=RegExp(`^hsl\\(${A},${M},${M}\\)$`),I=RegExp(`^hsla\\(${A},${M},${M},${A}\\)$`),B={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function L(){return this.rgb().formatHex()}function R(){return this.rgb().formatRgb()}function U(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=T.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?z(e):3===r?new W(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?$(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?$(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=k.exec(t))?new W(e[1],e[2],e[3],1):(e=C.exec(t))?new W(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=N.exec(t))?$(e[1],e[2],e[3],e[4]):(e=_.exec(t))?$(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=D.exec(t))?K(e[1],e[2]/100,e[3]/100,1):(e=I.exec(t))?K(e[1],e[2]/100,e[3]/100,e[4]):B.hasOwnProperty(t)?z(B[t]):"transparent"===t?new W(NaN,NaN,NaN,0):null}function z(t){return new W(t>>16&255,t>>8&255,255&t,1)}function $(t,e,r,n){return n<=0&&(t=e=r=NaN),new W(t,e,r,n)}function F(t,e,r,n){var i;return 1==arguments.length?((i=t)instanceof P||(i=U(i)),i)?new W((i=i.rgb()).r,i.g,i.b,i.opacity):new W:new W(t,e,r,null==n?1:n)}function W(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function V(){return`#${G(this.r)}${G(this.g)}${G(this.b)}`}function H(){let t=X(this.opacity);return`${1===t?"rgb(":"rgba("}${q(this.r)}, ${q(this.g)}, ${q(this.b)}${1===t?")":`, ${t})`}`}function X(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function q(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function G(t){return((t=q(t))<16?"0":"")+t.toString(16)}function K(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Z(t,e,r,n)}function Y(t){if(t instanceof Z)return new Z(t.h,t.s,t.l,t.opacity);if(t instanceof P||(t=U(t)),!t)return new Z;if(t instanceof Z)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),o=Math.max(e,r,n),a=NaN,u=o-i,l=(o+i)/2;return u?(a=e===o?(r-n)/u+(r<n)*6:r===o?(n-e)/u+2:(e-r)/u+4,u/=l<.5?o+i:2-o-i,a*=60):u=l>0&&l<1?0:a,new Z(a,u,l,t.opacity)}function Z(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function J(t){return(t=(t||0)%360)<0?t+360:t}
1function Q(t){return Math.max(0,Math.min(1,t||0))}function tt(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}function te(t,e,r,n,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*r+(1+3*t+3*o-3*a)*n+a*i)/6}S(P,U,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:L,formatHex:L,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Y(this).formatHsl()},formatRgb:R,toString:R}),S(W,F,j(P,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new W(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new W(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new W(q(this.r),q(this.g),q(this.b),X(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:V,formatHex:V,formatHex8:function(){return`#${G(this.r)}${G(this.g)}${G(this.b)}${G((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:H,toString:H})),S(Z,function(t,e,r,n){return 1==arguments.length?Y(t):new Z(t,e,r,null==n?1:n)},j(P,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new Z(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new Z(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new W(tt(t>=240?t-240:t+120,i,n),tt(t,i,n),tt(t<120?t+240:t-120,i,n),this.opacity)},clamp(){return new Z(J(this.h),Q(this.s),Q(this.l),X(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=X(this.opacity);return`${1===t?"hsl(":"hsla("}${J(this.h)}, ${100*Q(this.s)}%, ${100*Q(this.l)}%${1===t?")":`, ${t})`}`}}));let tr=t=>()=>t;function tn(t,e){var r=e-t;return r?function(e){return t+e*r}:tr(isNaN(t)?e:t)}let ti=function t(e){var r,n=1==(r=+e)?tn:function(t,e){var n,i,o;return e-t?(n=t,i=e,n=Math.pow(n,o=r),i=Math.pow(i,o)-n,o=1/o,function(t){return Math.pow(n+t*i,o)}):tr(isNaN(t)?e:t)};function i(t,e){var r=n((t=F(t)).r,(e=F(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=tn(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return i.gamma=t,i}(1);function to(t){return function(e){var r,n,i=e.length,o=Array(i),a=Array(i),u=Array(i);for(r=0;r<i;++r)n=F(e[r]),o[r]=n.r||0,a[r]=n.g||0,u[r]=n.b||0;return o=t(o),a=t(a),u=t(u),n.opacity=1,function(t){return n.r=o(t),n.g=a(t),n.b=u(t),n+""}}}function ta(t,e){return t*=1,e*=1,function(r){return t*(1-r)+e*r}}to(function(t){var e=t.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),i=t[n],o=t[n+1],a=n>0?t[n-1]:2*i-o,u=n<e-1?t[n+2]:2*o-i;return te((r-n/e)*e,a,i,o,u)}}),to(function(t){var e=t.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*e),i=t[(n+e-1)%e],o=t[n%e],a=t[(n+1)%e],u=t[(n+2)%e];return te((r-n/e)*e,i,o,a,u)}});var tu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,tl=RegExp(tu.source,"g");function tc(t,e){var r,n,i=typeof e;return null==e||"boolean"===i?tr(e):("number"===i?ta:"string"===i?(n=U(e))?(e=n,ti):function(t,e){var r,n,i,o,a,u=tu.lastIndex=tl.lastIndex=0,l=-1,c=[],s=[];for(t+="",e+="";(i=tu.exec(t))&&(o=tl.exec(e));)(a=o.index)>u&&(a=e.slice(u,a),c[l]?c[l]+=a:c[++l]=a),(i=i[0])===(o=o[0])?c[l]?c[l]+=o:c[++l]=o:(c[++l]=null,s.push({i:l,x:ta(i,o)})),u=tl.lastIndex;return u<e.length&&(a=e.slice(u),c[l]?c[l]+=a:c[++l]=a),c.length<2?s[0]?(r=s[0].x,function(t){return r(t)+""}):(n=e,function(){return n}):(e=s.length,function(t){for(var r,n=0;n<e;++n)c[(r=s[n]).i]=r.x(t);return c.join("")})}:e instanceof U?ti:e instanceof Date?function(t,e){var r=new Date;return t*=1,e*=1,function(n){return r.setTime(t*(1-n)+e*n),r}}:!ArrayBuffer.isView(r=e)||r instanceof DataView?Array.isArray(e)?function(t,e){var r,n=e?e.length:0,i=t?Math.min(n,t.length):0,o=Array(i),a=Array(n);for(r=0;r<i;++r)o[r]=tc(t[r],e[r]);for(;r<n;++r)a[r]=e[r];return function(t){for(r=0;r<i;++r)a[r]=o[r](t);return a}}:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?function(t,e){var r,n={},i={};for(r in(null===t||"object"!=typeof t)&&(t={}),(null===e||"object"!=typeof e)&&(e={}),e)r in t?n[r]=tc(t[r],e[r]):i[r]=e[r];return function(t){for(r in n)i[r]=n[r](t);return i}}:ta:function(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(r=0;r<n;++r)i[r]=t[r]*(1-o)+e[r]*o;return i}})(t,e)}function ts(t,e){return t*=1,e*=1,function(r){return Math.round(t*(1-r)+e*r)}}function tf(t){return+t}var tp=[0,1];function td(t){return t}function th(t,e){var r;return(e-=t*=1)?function(r){return(r-t)/e}:(r=isNaN(e)?NaN:.5,function(){return r})}function ty(t,e,r){var n=t[0],i=t[1],o=e[0],a=e[1];return i<n?(n=th(i,n),o=r(a,o)):(n=th(n,i),o=r(o,a)),function(t){return o(n(t))}}function tv(t,e,r){var n=Math.min(t.length,e.length)-1,i=Array(n),o=Array(n),a=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<n;)i[a]=th(t[a],t[a+1]),o[a]=r(e[a],e[a+1]);return function(e){var r=w(t,e,1,n)-1;return o[r](i[r](e))}}function tm(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function tg(){var t,e,r,n,i,o,a=tp,u=tp,l=tc,c=td;function s(){var t,e,r,l=Math.min(a.length,u.length);return c!==td&&(t=a[0],e=a[l-1],t>e&&(r=t,t=e,e=r),c=function(r){return Math.max(t,Math.min(e,r))}),n=l>2?tv:ty,i=o=null,f}function f(e){return null==e||isNaN(e*=1)?r:(i||(i=n(a.map(t),u,l)))(t(c(e)))}return f.invert=function(r){return c(e((o||(o=n(u,a.map(t),ta)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,tf),s()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),s()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),l=ts,s()},f.clamp=function(t){return arguments.length?(c=!!t||td,s()):c!==td},f.interpolate=function(t){return arguments.length?(l=t,s()):l},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,s()}}function tb(){return tg()(td,td)}var tx=t.i(246135);function tO(t,e){if(!isFinite(t)||0===t)return null;var r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function tw(t){return(t=tO(Math.abs(t)))?t[1]:NaN}var tS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function tj(t){var e;if(!(e=tS.exec(t)))throw Error("invalid format: "+t);return new tP({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function tP(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.
1width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function tE(t,e){var r=tO(t,e);if(!r)return t+"";var n=r[0],i=r[1];return i<0?"0."+Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+Array(i-n.length+2).join("0")}tj.prototype=tP.prototype,tP.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};let tA={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>tE(100*t,e),r:tE,s:function(t,r){var n=tO(t,r);if(!n)return e=void 0,t.toPrecision(r);var i=n[0],o=n[1],a=o-(e=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,u=i.length;return a===u?i:a>u?i+Array(a-u+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+Array(1-a).join("0")+tO(t,Math.max(0,r+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function tM(t){return t}var tT=Array.prototype.map,tk=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function tC(t,e,r,o){var a,u,l=y(t,e,r);switch((o=tj(null==o?",f":o)).type){case"s":var c=Math.max(Math.abs(t),Math.abs(e));return null!=o.precision||isNaN(u=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(tw(c)/3)))-tw(Math.abs(l))))||(o.precision=u),i(o,c);case"":case"e":case"g":case"p":case"r":null!=o.precision||isNaN(u=Math.max(0,tw(Math.abs(Math.max(Math.abs(t),Math.abs(e)))-(a=Math.abs(a=l)))-tw(a))+1)||(o.precision=u-("e"===o.type));break;case"f":case"%":null!=o.precision||isNaN(u=Math.max(0,-tw(Math.abs(l))))||(o.precision=u-("%"===o.type)*2)}return n(o)}function tN(t){var e=t.domain;return t.ticks=function(t){var r=e();return d(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return tC(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,i,o=e(),a=0,u=o.length-1,l=o[a],c=o[u],s=10;for(c<l&&(i=l,l=c,c=i,i=a,a=u,u=i);s-- >0;){if((i=h(l,c,r))===n)return o[a]=l,o[u]=c,e(o);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else if(i<0)l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i;else break;n=i}return t},t}function t_(){var t=tb();return t.copy=function(){return tm(t,t_())},tx.initRange.apply(t,arguments),tN(t)}function tD(t){var e;function r(t){return null==t||isNaN(t*=1)?e:t}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,tf),r):t.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return tD(t).unknown(e)},t=arguments.length?Array.from(t,tf):[0,1],tN(r)}function tI(t,e){t=t.slice();var r,n=0,i=t.length-1,o=t[n],a=t[i];return a<o&&(r=n,n=i,i=r,r=o,o=a,a=r),t[n]=e.floor(o),t[i]=e.ceil(a),t}function tB(t){return Math.log(t)}function tL(t){return Math.exp(t)}function tR(t){return-Math.log(-t)}function tU(t){return-Math.exp(-t)}function tz(t){return isFinite(t)?+("1e"+t):t<0?0:t}function t$(t){return(e,r)=>-t(-e,r)}function tF(t){let e,r,i=t(tB,tL),o=i.domain,a=10;function u(){var n,u;return e=(n=a)===Math.E?Math.log:10===n&&Math.log10||2===n&&Math.log2||(n=Math.log(n),t=>Math.log(t)/n),r=10===(u=a)?tz:u===Math.E?Math.exp:t=>Math.pow(u,t),o()[0]<0?(e=t$(e),r=t$(r),t(tR,tU)):t(tB,tL),i}return i.base=function(t){return arguments.length?(a=+t,u()):a},i.domain=function(t){return arguments.length?(o(t),u()):o()},i.ticks=t=>{let n,i,u=o(),l=u[0],c=u[u.length-1],s=c<l;s&&([l,c]=[c,l]);let f=e(l),p=e(c),h=null==t?10:+t,y=[];if(!(a%1)&&p-f<h){if(f=Math.floor(f),p=Math.ceil(p),l>0){for(;f<=p;++f)for(n=1;n<a;++n)if(!((i=f<0?n/r(-f):n*r(f))<l)){if(i>c)break;y.push(i)}}else for(;f<=p;++f)for(n=a-1;n>=1;--n)if(!((i=f>0?n/r(-f):n*r(f))<l)){if(i>c)break;y.push(i)}2*y.length<h&&(y=d(l,c,h))}else y=d(f,p,Math.min(p-f,h)).map(r);return s?y.reverse():y}
1,i.tickFormat=(t,o)=>{if(null==t&&(t=10),null==o&&(o=10===a?"s":","),"function"!=typeof o&&(a%1||null!=(o=tj(o)).precision||(o.trim=!0),o=n(o)),t===1/0)return o;let u=Math.max(1,a*t/i.ticks().length);return t=>{let n=t/r(Math.round(e(t)));return n*a<a-.5&&(n*=a),n<=u?o(t):""}},i.nice=()=>o(tI(o(),{floor:t=>r(Math.floor(e(t))),ceil:t=>r(Math.ceil(e(t)))})),i}function tW(){let t=tF(tg()).domain([1,10]);return t.copy=()=>tm(t,tW()).base(t.base()),tx.initRange.apply(t,arguments),t}function tV(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function tH(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function tX(t){var e=1,r=t(tV(1),tH(e));return r.constant=function(r){return arguments.length?t(tV(e=+r),tH(e)):e},tN(r)}function tq(){var t=tX(tg());return t.copy=function(){return tm(t,tq()).constant(t.constant())},tx.initRange.apply(t,arguments)}n=(r=function(t){var r,n,i,o=void 0===t.grouping||void 0===t.thousands?tM:(r=tT.call(t.grouping,Number),n=t.thousands+"",function(t,e){for(var i=t.length,o=[],a=0,u=r[0],l=0;i>0&&u>0&&(l+u+1>e&&(u=Math.max(1,e-l)),o.push(t.substring(i-=u,i+u)),!((l+=u+1)>e));)u=r[a=(a+1)%r.length];return o.reverse().join(n)}),a=void 0===t.currency?"":t.currency[0]+"",u=void 0===t.currency?"":t.currency[1]+"",l=void 0===t.decimal?".":t.decimal+"",c=void 0===t.numerals?tM:(i=tT.call(t.numerals,String),function(t){return t.replace(/[0-9]/g,function(t){return i[+t]})}),s=void 0===t.percent?"%":t.percent+"",f=void 0===t.minus?"−":t.minus+"",p=void 0===t.nan?"NaN":t.nan+"";function d(t,r){var n=(t=tj(t)).fill,i=t.align,d=t.sign,h=t.symbol,y=t.zero,v=t.width,m=t.comma,g=t.precision,b=t.trim,x=t.type;"n"===x?(m=!0,x="g"):tA[x]||(void 0===g&&(g=12),b=!0,x="g"),(y||"0"===n&&"="===i)&&(y=!0,n="0",i="=");var O=(r&&void 0!==r.prefix?r.prefix:"")+("$"===h?a:"#"===h&&/[boxX]/.test(x)?"0"+x.toLowerCase():""),w=("$"===h?u:/[%p]/.test(x)?s:"")+(r&&void 0!==r.suffix?r.suffix:""),S=tA[x],j=/[defgprs%]/.test(x);function P(t){var r,a,u,s=O,h=w;if("c"===x)h=S(t)+h,t="";else{var P=(t*=1)<0||1/t<0;if(t=isNaN(t)?p:S(Math.abs(t),g),b&&(t=function(t){t:for(var e,r=t.length,n=1,i=-1;n<r;++n)switch(t[n]){case".":i=e=n;break;case"0":0===i&&(i=n),e=n;break;default:if(!+t[n])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),P&&0==+t&&"+"!==d&&(P=!1),s=(P?"("===d?d:f:"-"===d||"("===d?"":d)+s,h=("s"!==x||isNaN(t)||void 0===e?"":tk[8+e/3])+h+(P&&"("===d?")":""),j){for(r=-1,a=t.length;++r<a;)if(48>(u=t.charCodeAt(r))||u>57){h=(46===u?l+t.slice(r+1):t.slice(r))+h,t=t.slice(0,r);break}}}m&&!y&&(t=o(t,1/0));var E=s.length+t.length+h.length,A=E<v?Array(v-E+1).join(n):"";switch(m&&y&&(t=o(A+t,A.length?v-h.length:1/0),A=""),i){case"<":t=s+t+h+A;break;case"=":t=s+A+t+h;break;case"^":t=A.slice(0,E=A.length>>1)+s+t+h+A.slice(E);break;default:t=A+s+t+h}return c(t)}return g=void 0===g?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),P.toString=function(){return t+""},P}return{format:d,formatPrefix:function(t,e){var r=3*Math.max(-8,Math.min(8,Math.floor(tw(e)/3))),n=Math.pow(10,-r),i=d(((t=tj(t)).type="f",t),{suffix:tk[8+r/3]});return function(t){return i(n*t)}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,i=r.formatPrefix;var tG=t.i(165275);function tK(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function tY(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function tZ(t){return t<0?-t*t:t*t}function tJ(t){var e=t(td,td),r=1;return e.exponent=function(e){return arguments.length?1==(r=+e)?t(td,td):.5===r?t(tY,tZ):t(tK(r),tK(1/r)):r},tN(e)}function tQ(){var t=tJ(tg());return t.copy=function(){return tm(t,tQ()).exponent(t.exponent())},tx.initRange.apply(t,arguments),t}function t0(){return tQ.apply(null,arguments).exponent(.5)}function t1(t){return Math.sign(t)*t*t}function t2(){var t,e=tb(),r=[0,1],n=!1;function i(r){var i,o=Math.sign(i=e(r))*Math.sqrt(Math.abs(i));return isNaN(o)?t:n?Math.round(o):o}return i.invert=function(t){return e.invert(t1(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain()},i.range=function(t){return arguments.length?(e.range((r=Array.from(t,tf)).map(t1)),i):r.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(n=!!t,i):n},i.clamp=function(t){return arguments.length?(e.clamp(t),i):e.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t}
1,i.copy=function(){return t2(e.domain(),r).round(n).clamp(e.clamp()).unknown(t)},tx.initRange.apply(i,arguments),tN(i)}function t3(t,e){let r;if(void 0===e)for(let e of t)null!=e&&(r<e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(r<i||void 0===r&&i>=i)&&(r=i)}return r}function t5(t,e){let r;if(void 0===e)for(let e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(r>i||void 0===r&&i>=i)&&(r=i)}return r}function t9(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:+(t>e))}function t6(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}function t4(){var t,e=[],r=[],n=[];function i(){var t=0,i=Math.max(1,r.length);for(n=Array(i-1);++t<i;)n[t-1]=function(t,e,r=x){if(!(!(n=t.length)||isNaN(e*=1))){if(e<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,i=(n-1)*e,o=Math.floor(i),a=+r(t[o],o,t);return a+(r(t[o+1],o+1,t)-a)*(i-o)}}(e,t/i);return o}function o(e){return null==e||isNaN(e*=1)?t:r[w(n,e)]}return o.invertExtent=function(t){var i=r.indexOf(t);return i<0?[NaN,NaN]:[i>0?n[i-1]:e[0],i<n.length?n[i]:e[e.length-1]]},o.domain=function(t){if(!arguments.length)return e.slice();for(let r of(e=[],t))null==r||isNaN(r*=1)||e.push(r);return e.sort(v),i()},o.range=function(t){return arguments.length?(r=Array.from(t),i()):r.slice()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.quantiles=function(){return n.slice()},o.copy=function(){return t4().domain(e).range(r).unknown(t)},tx.initRange.apply(o,arguments)}function t8(){var t,e=0,r=1,n=1,i=[.5],o=[0,1];function a(e){return null!=e&&e<=e?o[w(i,e,0,n)]:t}function u(){var t=-1;for(i=Array(n);++t<n;)i[t]=((t+1)*r-(t-n)*e)/(n+1);return a}return a.domain=function(t){return arguments.length?([e,r]=t,e*=1,r*=1,u()):[e,r]},a.range=function(t){return arguments.length?(n=(o=Array.from(t)).length-1,u()):o.slice()},a.invertExtent=function(t){var a=o.indexOf(t);return a<0?[NaN,NaN]:a<1?[e,i[0]]:a>=n?[i[n-1],r]:[i[a-1],i[a]]},a.unknown=function(e){return arguments.length&&(t=e),a},a.thresholds=function(){return i.slice()},a.copy=function(){return t8().domain([e,r]).range(o).unknown(t)},tx.initRange.apply(tN(a),arguments)}function t7(){var t,e=[.5],r=[0,1],n=1;function i(i){return null!=i&&i<=i?r[w(e,i,0,n)]:t}return i.domain=function(t){return arguments.length?(n=Math.min((e=Array.from(t)).length,r.length-1),i):e.slice()},i.range=function(t){return arguments.length?(r=Array.from(t),n=Math.min(e.length,r.length-1),i):r.slice()},i.invertExtent=function(t){var n=r.indexOf(t);return[e[n-1],e[n]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return t7().domain(e).range(r).unknown(t)},tx.initRange.apply(i,arguments)}let et=new Date,ee=new Date;function er(t,e,r,n){function i(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),i.round=t=>{let e=i(t),r=i.ceil(t);return t-e<r-t?e:r},i.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),i.range=(r,n,o)=>{let a,u=[];if(r=i.ceil(r),o=null==o?1:Math.floor(o),!(r<n)||!(o>0))return u;do u.push(a=new Date(+r)),e(r,o),t(r);while(a<r&&r<n)return u},i.filter=r=>er(e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)},(t,n)=>{if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););}),r&&(i.count=(e,n)=>(et.setTime(+e),ee.setTime(+n),t(et),t(ee),Math.floor(r(et,ee))),i.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?i.filter(n?e=>n(e)%t==0:e=>i.count(0,e)%t==0):i:null),i}let en=er(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());en.every=t=>isFinite(t=Math.floor(t))&&t>0?er(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)}):null,en.range;let ei=er(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());ei.every=t=>isFinite(t=Math.floor(t))&&t>0?er(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)}):null,ei.range;let eo=er(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());eo.range;let ea=er(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());ea.range;function eu(t){return er(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}let el=eu(0),ec=eu(1),es=eu(2),ef=eu(3),ep=eu(4),ed=eu(5),eh=eu(6);function ey(t){return er(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/6048e5)}el.range,ec.range,es.range,ef.range,ep.range,ed.range,eh.range;
1let ev=ey(0),em=ey(1),eg=ey(2),eb=ey(3),ex=ey(4),eO=ey(5),ew=ey(6);ev.range,em.range,eg.range,eb.range,ex.range,eO.range,ew.range;let eS=er(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1);eS.range;let ej=er(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1);ej.range;let eP=er(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5));eP.range;let eE=er(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getHours());eE.range;let eA=er(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours());eA.range;let eM=er(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getMinutes());eM.range;let eT=er(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes());eT.range;let ek=er(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+1e3*e)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds());ek.range;let eC=er(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);function eN(t,e,r,n,i,o){let a=[[ek,1,1e3],[ek,5,5e3],[ek,15,15e3],[ek,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[n,1,864e5],[n,2,1728e5],[r,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function u(e,r,n){let i=Math.abs(r-e)/n,o=g(([,,t])=>t).right(a,i);if(o===a.length)return t.every(y(e/31536e6,r/31536e6,n));if(0===o)return eC.every(Math.max(y(e,r,n),1));let[u,l]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return u.every(l)}return[function(t,e,r){let n=e<t;n&&([t,e]=[e,t]);let i=r&&"function"==typeof r.range?r:u(t,e,r),o=i?i.range(t,+e+1):[];return n?o.reverse():o},u]}eC.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?er(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):eC:null,eC.range;let[e_,eD]=eN(ei,ea,ev,eP,eA,eT),[eI,eB]=eN(en,eo,el,eS,eE,eM);function eL(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function eR(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function eU(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var ez={"-":"",_:" ",0:"0"},e$=/^\s*\d+/,eF=/^%/,eW=/[\\^$*+?|[\]().{}]/g;function eV(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",o=i.length;return n+(o<r?Array(r-o+1).join(e)+i:i)}function eH(t){return t.replace(eW,"\\$&")}function eX(t){return RegExp("^(?:"+t.map(eH).join("|")+")","i")}function eq(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function eG(t,e,r){var n=e$.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function eK(t,e,r){var n=e$.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function eY(t,e,r){var n=e$.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function eZ(t,e,r){var n=e$.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function eJ(t,e,r){var n=e$.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function eQ(t,e,r){var n=e$.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function e0(t,e,r){var n=e$.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function e1(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function e2(t,e,r){var n=e$.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function e3(t,e,r){var n=e$.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function e5(t,e,r){var n=e$.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function e9(t,e,r){var n=e$.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function e6(t,e,r){var n=e$.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function e4(t,e,r){var n=e$.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function e8(t,e,r){var n=e$.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function e7(t,e,r){var n=e$.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function rt(t,e,r){var n=e$.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function re(t,e,r){var n=eF.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function rr(t,e,r){var n=e$.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function rn(t,e,r){var n=e$.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function ri(t,e){return eV(t.getDate(),e,2)}function ro(t,e){return eV(t.getHours(),e,2)}function ra(t,e){return eV(t.getHours()%12||12,e,2)}function ru(t,e){return eV(1+eS.count(en(t),t),e,3)}function rl(t,e){return eV(t.getMilliseconds(),e,3)}function rc(t,e){return rl(t,e)+"000"}function rs(t,e){return eV(t.getMonth()+1,e,2)}function rf(t,e){return eV(t.getMinutes(),e,2)}function rp(t,e){return eV(t.getSeconds(),e,2)}function rd(t){var e=t.getDay();return 0===e?7:e}function rh(t,e){return eV(el.count(en(t)-1,t),e,2)}function ry(t){var e=t.getDay();return e>=4||0===e?ep(t):ep.ceil(t)}function rv(t,e){return t=ry(t),eV(ep.count(en(t),t)+(4===en(t).getDay()),e,2)}function rm(t){return t.getDay()}function rg(t,e){return eV(ec.count(en(t)-1,t),e,2)}function rb(t,e){return eV(t.getFullYear()%100,e,2)}function rx(t,e){return eV((t=ry(t)).getFullYear()%100,e,2)}function rO(t,e){return eV(t.getFullYear()%1e4,e,4)}function rw(t,e){var r=t.getDay();return eV((t=r>=4||0===r?ep(t):ep.ceil(t)).getFullYear()%1e4,e,4)}function rS(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+eV(e/60|0,"0",2)+eV(e%60,"0",2)}function rj(t,e){return eV(t.getUTCDate(),e,2)}function rP(t,e){return eV(t.getUTCHours(),e,2)}function rE(t,e){return eV(t.getUTCHours()%12||12,e,2)}function rA(t,e){return eV(1+ej.count(ei(t),t),e,3)}function rM(t,e){return eV(t.getUTCMilliseconds(),e,3)}function rT(t,e){return rM(t,e)+"000"}function rk(t,e){return eV(t.getUTCMonth()+1,e,2)}function rC(t,e){return eV(t.getUTCMinutes(),e,2)}function rN(t,e){return eV(t.getUTCSeconds(),e,2)}function r_(t){var e=t.getUTCDay();return 0===e?7:e}function rD(t,e){return eV(ev.count(ei(t)-1,t),e,2)}function rI(t){var e=t.getUTCDay();return e>=4||0===e?ex(t):ex.ceil(t)}function rB(t,e){return t=rI(t),eV(ex.count(ei(t),t)+(4===ei(t).getUTCDay()),e,2)}function rL(t){return t.getUTCDay()}function rR(t,e){return eV(em.count(ei(t)-1,t),e,2)}function rU(t,e){return eV(t.getUTCFullYear()%100,e,2)}function rz(t,e){return eV((t=rI(t)).getUTCFullYear()%100,e,2)}function r$(t,e){return eV(t.getUTCFullYear()%1e4,e,4)}function rF(t,e){var r=t.getUTCDay();return eV((t=r>=4||0===r?ex(t):ex.ceil(t)).getUTCFullYear()%1e4,e,4)}function rW(){return"+0000"}function rV(){return"%"}function rH(t){return+t}function rX(t){return Math.floor(t/1e3)}function rq(t){return new Date(t)}function rG(t){return t instanceof Date?+t:+new Date(+t)}function rK(t,e,r,n,i,o,a,u,l,c){var s=tb(),f=s.invert,p=s.domain,d=c(".%L"),h=c(":%S"),y=c("%I:%M"),v=c("%I %p"),m=c("%a %d"),g=c("%b %d"),b=c("%B"),x=c("%Y");function O(t){return(l(t)<t?d:u(t)<t?h:a(t)<t?y:o(t)<t?v:n(t)<t?i(t)<t?m:g:r(t)<t?b:x)(t)}return s.invert=function(t){return new Date(f(t))},s.domain=function(t){return arguments.length?p(Array.from(t,rG)):p().map(rq)},s.ticks=function(e){var r=p();return t(r[0],r[r.length-1],null==e?10:e)}
1,s.tickFormat=function(t,e){return null==e?O:c(e)},s.nice=function(t){var r=p();return t&&"function"==typeof t.range||(t=e(r[0],r[r.length-1],null==t?10:t)),t?p(tI(r,t)):s},s.copy=function(){return tm(s,rK(t,e,r,n,i,o,a,u,l,c))},s}function rY(){return tx.initRange.apply(rK(eI,eB,en,eo,el,eS,eE,eM,ek,a).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function rZ(){return tx.initRange.apply(rK(e_,eD,ei,ea,ev,ej,eA,eT,ek,u).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function rJ(){var t,e,r,n,i,o=0,a=1,u=td,l=!1;function c(e){return null==e||isNaN(e*=1)?i:u(0===r?.5:(e=(n(e)-t)*r,l?Math.max(0,Math.min(1,e)):e))}function s(t){return function(e){var r,n;return arguments.length?([r,n]=e,u=t(r,n),c):[u(0),u(1)]}}return c.domain=function(i){return arguments.length?([o,a]=i,t=n(o*=1),e=n(a*=1),r=t===e?0:1/(e-t),c):[o,a]},c.clamp=function(t){return arguments.length?(l=!!t,c):l},c.interpolator=function(t){return arguments.length?(u=t,c):u},c.range=s(tc),c.rangeRound=s(ts),c.unknown=function(t){return arguments.length?(i=t,c):i},function(i){return n=i,t=i(o),e=i(a),r=t===e?0:1/(e-t),c}}function rQ(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function r0(){var t=tN(rJ()(td));return t.copy=function(){return rQ(t,r0())},tx.initInterpolator.apply(t,arguments)}function r1(){var t=tF(rJ()).domain([1,10]);return t.copy=function(){return rQ(t,r1()).base(t.base())},tx.initInterpolator.apply(t,arguments)}function r2(){var t=tX(rJ());return t.copy=function(){return rQ(t,r2()).constant(t.constant())},tx.initInterpolator.apply(t,arguments)}function r3(){var t=tJ(rJ());return t.copy=function(){return rQ(t,r3()).exponent(t.exponent())},tx.initInterpolator.apply(t,arguments)}function r5(){return r3.apply(null,arguments).exponent(.5)}function r9(){var t=[],e=td;function r(r){if(null!=r&&!isNaN(r*=1))return e((w(t,r,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();for(let r of(t=[],e))null==r||isNaN(r*=1)||t.push(r);return t.sort(v),r},r.interpolator=function(t){return arguments.length?(e=t,r):e},r.range=function(){return t.map((r,n)=>e(n/(t.length-1)))},r.quantiles=function(e){return Array.from({length:e+1},(r,n)=>(function(t,e,r){if(!(!(n=(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e*=1)>=e&&(yield e);else{let r=-1;for(let n of t)null!=(n=e(n,++r,t))&&(n*=1)>=n&&(yield n)}}(t,void 0))).length)||isNaN(e*=1))){if(e<=0||n<2)return t5(t);if(e>=1)return t3(t);var n,i=(n-1)*e,o=Math.floor(i),a=t3((function t(e,r,n=0,i=1/0,o){if(r=Math.floor(r),n=Math.floor(Math.max(0,n)),i=Math.floor(Math.min(e.length-1,i)),!(n<=r&&r<=i))return e;for(o=void 0===o?t9:function(t=v){if(t===v)return t9;if("function"!=typeof t)throw TypeError("compare is not a function");return(e,r)=>{let n=t(e,r);return n||0===n?n:(0===t(r,r))-(0===t(e,e))}}(o);i>n;){if(i-n>600){let a=i-n+1,u=r-n+1,l=Math.log(a),c=.5*Math.exp(2*l/3),s=.5*Math.sqrt(l*c*(a-c)/a)*(u-a/2<0?-1:1),f=Math.max(n,Math.floor(r-u*c/a+s)),p=Math.min(i,Math.floor(r+(a-u)*c/a+s));t(e,r,f,p,o)}let a=e[r],u=n,l=i;for(t6(e,n,r),o(e[i],a)>0&&t6(e,n,i);u<l;){for(t6(e,u,l),++u,--l;0>o(e[u],a);)++u;for(;o(e[l],a)>0;)--l}0===o(e[n],a)?t6(e,n,l):t6(e,++l,i),l<=r&&(n=l+1),r<=l&&(i=l-1)}return e})(t,o).subarray(0,o+1));return a+(t5(t.subarray(o+1))-a)*(i-o)}})(t,n/e))},r.copy=function(){return r9(e).domain(t)},tx.initInterpolator.apply(r,arguments)}function r6(){var t,e,r,n,i,o,a,u=0,l=.5,c=1,s=1,f=td,p=!1;function d(t){return isNaN(t*=1)?a:(t=.5+((t=+o(t))-e)*(s*t<s*e?n:i),f(p?Math.max(0,Math.min(1,t)):t))}function h(t){return function(e){var r,n,i;return arguments.length?([r,n,i]=e,f=function(t,e){void 0===e&&(e=t,t=tc);for(var r=0,n=e.length-1,i=e[0],o=Array(n<0?0:n);r<n;)o[r]=t(i,i=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return o[e](t-e)}}(t,[r,n,i]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([u,l,c]=a,t=o(u*=1),e=o(l*=1),r=o(c*=1),n=t===e?0:.5/(e-t),i=e===r?0:.5/(r-e),s=e<t?-1:1,d):[u,l,c]},d.clamp=function(t){return arguments.length?(p=!!t,d):p},d.interpolator=function(t){return arguments.length?(f=t,d):f},d.range=h(tc),d.rangeRound=h(ts),d.unknown=function(t){return arguments.length?(a=t,d):a},function(a){return o=a,t=a(u),e=a(l),r=a(c),n=t===e?0:.5/(e-t),i=e===r?0:.5/(r-e),s=e<t?-1:1,d}}function r4(){var t=tN(r6()(td));return t.copy=function(){return rQ(t,r4())},tx.initInterpolator.apply(t,arguments)}function r8(){var t=tF(r6()).domain([.1,1,10]);return t.copy=function(){return rQ(t,r8()).base(t.base())},tx.initInterpolator.apply(t,arguments)}function r7(){var t=tX(r6());return t.copy=function(){return rQ(t,r7()).constant(t.constant())},tx.initInterpolator.apply(t,arguments)}function nt(){var t=tJ(r6());return t.copy=function(){return rQ(t,nt()).exponent(t.exponent())},tx.initInterpolator.apply(t,arguments)}function ne(){return nt.apply(null,arguments).exponent(.5)}a=(o=function(t){var e=t.dateTime,r=t.date,n=t.time,i=t.periods,o=t.days,a=t.shortDays,u=t.months,l=t.shortMonths,c=eX(i),s=eq(i),f=eX(o),p=eq(o),d=eX(a),h=eq(a),y=eX(u),v=eq(u),m=eX(l),g=eq(l),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:ri,e:ri,f:rc,g:rx,G:rw,H:ro,I:ra,j:ru,L:rl,m:rs,M:rf,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:rH,s:rX,S:rp,u:rd,U:rh,V:rv,w:rm,W:rg,x:null,X:null,y:rb,Y:rO,Z:rS,"%":rV},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:rj,e:rj,f:rT,g:rz,G:rF,H:rP,I:rE,j:rA,L:rM,m:rk,M:rC,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:rH,s:rX,S:rN,u:r_,U:rD,V:rB,w:rL,W:rR,x:null,X:null,y:rU,Y:r$,Z:rW,"%":rV},O={a:function(t,e,r){var n=d.exec(e.slice(r));return n?(t.w=h.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){var n=f.exec(e.slice(r));return n?(t.w=p.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){var n=m.exec(e.slice(r));return n?(t.m=g.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=y.exec(e.slice(r));return n?(t.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,r,n){return j(t,e,r,n)},d:e5,e:e5,f:rt,g:e0,G:eQ,H:e6,I:e6,j:e9,L:e7,m:e3,M:e4,p:function(t,e,r){var n=c.exec(e.slice(r));return n?(t.p=s.get(n[0].toLowerCase()),r+n[0].length):-1},q:e2,Q:rr,s:rn,S:e8,u:eK,U:eY,V:eZ,w:eG,W:eJ,x:function(t,e,n){return j(t,r,e,n)},X:function(t,e,r){return j(t,n,e,r)},y:e0,Y:eQ,Z:e1,"%":re};function w(t,e){return function(r){var n,i,o,a=[],u=-1,l=0,c=t.length;for(r instanceof Date||(r=new Date(+r));++u<c;)37===t.charCodeAt(u)&&(a.push(t.slice(l,u)),null!=(i=ez[n=t.charAt(++u)])?n=t.charAt(++u):i="e"===n?" ":"0",(o=e[n])&&(n=o(r,
1i)),a.push(n),l=u+1);return a.push(t.slice(l,u)),a.join("")}}function S(t,e){return function(r){var n,i,o=eU(1900,void 0,1);if(j(o,t,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(!e||"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?(n=(i=(n=eR(eU(o.y,0,1))).getUTCDay())>4||0===i?em.ceil(n):em(n),n=ej.offset(n,(o.V-1)*7),o.y=n.getUTCFullYear(),o.m=n.getUTCMonth(),o.d=n.getUTCDate()+(o.w+6)%7):(n=(i=(n=eL(eU(o.y,0,1))).getDay())>4||0===i?ec.ceil(n):ec(n),n=eS.offset(n,(o.V-1)*7),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)),i="Z"in o?eR(eU(o.y,0,1)).getUTCDay():eL(eU(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,eR(o)):eL(o)}}function j(t,e,r,n){for(var i,o,a=0,u=e.length,l=r.length;a<u;){if(n>=l)return -1;if(37===(i=e.charCodeAt(a++))){if(!(o=O[(i=e.charAt(a++))in ez?e.charAt(a++):i])||(n=o(t,r,n))<0)return -1}else if(i!=r.charCodeAt(n++))return -1}return n}return b.x=w(r,b),b.X=w(n,b),b.c=w(e,b),x.x=w(r,x),x.X=w(n,x),x.c=w(e,x),{format:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=S(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=S(t+="",!0);return e.toString=function(){return t},e}}}({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"]})).format,o.parse,u=o.utcFormat,o.utcParse,t.s(["scaleBand",()=>l.default,"scaleDiverging",()=>r4,"scaleDivergingLog",()=>r8,"scaleDivergingPow",()=>nt,"scaleDivergingSqrt",()=>ne,"scaleDivergingSymlog",()=>r7,"scaleIdentity",()=>tD,"scaleImplicit",()=>tG.implicit,"scaleLinear",()=>t_,"scaleLog",()=>tW,"scaleOrdinal",()=>tG.default,"scalePoint",()=>l.point,"scalePow",()=>tQ,"scaleQuantile",()=>t4,"scaleQuantize",()=>t8,"scaleRadial",()=>t2,"scaleSequential",()=>r0,"scaleSequentialLog",()=>r1,"scaleSequentialPow",()=>r3,"scaleSequentialQuantile",()=>r9,"scaleSequentialSqrt",()=>r5,"scaleSequentialSymlog",()=>r2,"scaleSqrt",()=>t0,"scaleSymlog",()=>tq,"scaleThreshold",()=>t7,"scaleTime",()=>rY,"scaleUtc",()=>rZ,"tickFormat",()=>tC],90455),t.i(90455),t.s(["scaleBand",()=>l.default,"scaleDiverging",()=>r4,"scaleDivergingLog",()=>r8,"scaleDivergingPow",()=>nt,"scaleDivergingSqrt",()=>ne,"scaleDivergingSymlog",()=>r7,"scaleIdentity",()=>tD,"scaleImplicit",()=>tG.implicit,"scaleLinear",()=>t_,"scaleLog",()=>tW,"scaleOrdinal",()=>tG.default,"scalePoint",()=>l.point,"scalePow",()=>tQ,"scaleQuantile",()=>t4,"scaleQuantize",()=>t8,"scaleRadial",()=>t2,"scaleSequential",()=>r0,"scaleSequentialLog",()=>r1,"scaleSequentialPow",()=>r3,"scaleSequentialQuantile",()=>r9,"scaleSequentialSqrt",()=>r5,"scaleSequentialSymlog",()=>r2,"scaleSqrt",()=>t0,"scaleSymlog",()=>tq,"scaleThreshold",()=>t7,"scaleTime",()=>rY,"scaleUtc",()=>rZ,"tickFormat",()=>tC],165961)},87808,t=>{"use strict";Array.prototype.slice,t.s(["default",0,function(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}])},13055,(t,e,r)=>{var n=t.r(308780);e.exports=function(t,e,r){for(var i=-1,o=t.length;++i<o;){var a=t[i],u=e(a);if(null!=u&&(void 0===l?u==u&&!n(u):r(u,l)))var l=u,c=a}return c}},725520,(t,e,r)=>{e.exports=function(t,e){return t>e}},414836,(t,e,r)=>{var n=t.r(13055),i=t.r(725520),o=t.r(994564);e.exports=function(t){return t&&t.length?n(t,o,i):void 0}},974187,(t,e,r)=>{e.exports=function(t,e){return t<e}},114511,(t,e,r)=>{var n=t.r(13055),i=t.r(974187),o=t.r(994564);e.exports=function(t){return t&&t.length?n(t,o,i):void 0}},342952,(t,e,r)=>{var n=t.r(142371),i=t.r(345770),o=t.r(805417),a=t.r(379909);e.exports=function(t,e){return(a(t)?n:o)(t,i(e,3))}},439986,(t,e,r)=>{var n=t.r(736778),i=t.r(342952);e.exports=function(t,e){return n(i(t,e),1)}},39396,(t,e,r)=>{!function(r){"use strict";
1var n,i={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},o=!0,a="[DecimalError] ",u=a+"Invalid argument: ",l=a+"Exponent out of range: ",c=Math.floor,s=Math.pow,f=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,p=c(1286742750677284.5),d={};function h(t,e){var r,n,i,a,u,l,c,s,f=t.constructor,p=f.precision;if(!t.s||!e.s)return e.s||(e=new f(t)),o?j(e,p):e;if(c=t.d,s=e.d,u=t.e,i=e.e,c=c.slice(),a=u-i){for(a<0?(n=c,a=-a,l=s.length):(n=s,i=u,l=c.length),a>(l=(u=Math.ceil(p/7))>l?u+1:l+1)&&(a=l,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for((l=c.length)-(a=s.length)<0&&(a=l,n=s,s=c,c=n),r=0;a;)r=(c[--a]=c[a]+s[a]+r)/1e7|0,c[a]%=1e7;for(r&&(c.unshift(r),++i),l=c.length;0==c[--l];)c.pop();return e.d=c,e.e=i,o?j(e,p):e}function y(t,e,r){if(t!==~~t||t<e||t>r)throw Error(u+t)}function v(t){var e,r,n,i=t.length-1,o="",a=t[0];if(i>0){for(o+=a,e=1;e<i;e++)(r=7-(n=t[e]+"").length)&&(o+=O(r)),o+=n;(r=7-(n=(a=t[e])+"").length)&&(o+=O(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}d.absoluteValue=d.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},d.comparedTo=d.cmp=function(t){var e,r,n,i;if(t=new this.constructor(t),this.s!==t.s)return this.s||-t.s;if(this.e!==t.e)return this.e>t.e^this.s<0?1:-1;for(e=0,r=(n=this.d.length)<(i=t.d.length)?n:i;e<r;++e)if(this.d[e]!==t.d[e])return this.d[e]>t.d[e]^this.s<0?1:-1;return n===i?0:n>i^this.s<0?1:-1},d.decimalPlaces=d.dp=function(){var t=this.d.length-1,e=(t-this.e)*7;if(t=this.d[t])for(;t%10==0;t/=10)e--;return e<0?0:e},d.dividedBy=d.div=function(t){return m(this,new this.constructor(t))},d.dividedToIntegerBy=d.idiv=function(t){var e=this.constructor;return j(m(this,new e(t),0,1),e.precision)},d.equals=d.eq=function(t){return!this.cmp(t)},d.exponent=function(){return b(this)},d.greaterThan=d.gt=function(t){return this.cmp(t)>0},d.greaterThanOrEqualTo=d.gte=function(t){return this.cmp(t)>=0},d.isInteger=d.isint=function(){return this.e>this.d.length-2},d.isNegative=d.isneg=function(){return this.s<0},d.isPositive=d.ispos=function(){return this.s>0},d.isZero=function(){return 0===this.s},d.lessThan=d.lt=function(t){return 0>this.cmp(t)},d.lessThanOrEqualTo=d.lte=function(t){return 1>this.cmp(t)},d.logarithm=d.log=function(t){var e,r=this.constructor,i=r.precision,u=i+5;if(void 0===t)t=new r(10);else if((t=new r(t)).s<1||t.eq(n))throw Error(a+"NaN");if(this.s<1)throw Error(a+(this.s?"NaN":"-Infinity"));return this.eq(n)?new r(0):(o=!1,e=m(w(this,u),w(t,u),u),o=!0,j(e,i))},d.minus=d.sub=function(t){return t=new this.constructor(t),this.s==t.s?P(this,t):h(this,(t.s=-t.s,t))},d.modulo=d.mod=function(t){var e,r=this.constructor,n=r.precision;if(!(t=new r(t)).s)throw Error(a+"NaN");return this.s?(o=!1,e=m(this,t,0,1).times(t),o=!0,this.minus(e)):j(new r(this),n)},d.naturalExponential=d.exp=function(){return g(this)},d.naturalLogarithm=d.ln=function(){return w(this)},d.negated=d.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},d.plus=d.add=function(t){return t=new this.constructor(t),this.s==t.s?h(this,t):P(this,(t.s=-t.s,t))},d.precision=d.sd=function(t){var e,r,n;if(void 0!==t&&!!t!==t&&1!==t&&0!==t)throw Error(u+t);if(e=b(this)+1,r=7*(n=this.d.length-1)+1,n=this.d[n]){for(;n%10==0;n/=10)r--;for(n=this.d[0];n>=10;n/=10)r++}return t&&e>r?e:r},d.squareRoot=d.sqrt=function(){var t,e,r,n,i,u,l,s=this.constructor;if(this.s<1){if(!this.s)return new s(0);throw Error(a+"NaN")}for(t=b(this),o=!1,0==(i=Math.sqrt(+this))||i==1/0?(((e=v(this.d)).length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=c((t+1)/2)-(t<0||t%2),n=new s(e=i==1/0?"5e"+t:(e=i.toExponential()).slice(0,e.indexOf("e")+1)+t)):n=new s(i.toString()),i=l=(r=s.precision)+3;;)if(n=(u=n).plus(m(this,u,l+2)).times(.5),v(u.d).slice(0,l)===(e=v(n.d)).slice(0,l)){if(e=e.slice(l-3,l+1),i==l&&"4999"==e){if(j(u,r+1,0),u.times(u).eq(this)){n=u;break}}else if("9999"!=e)break;l+=4}return o=!0,j(n,r)},d.times=d.mul=function(t){var e,r,n,i,a,u,l,c,s,f=this.constructor,p=this.d,d=(t=new f(t)).d;if(!this.s||!t.s)return new f(0);for(t.s*=this.s,r=this.e+t.e,(c=p.length)<(s=d.length)&&(a=p,p=d,d=a,u=c,c=s,s=u),a=[],n=u=c+s;n--;)a.push(0);for(n=s;--n>=0;){for(e=0,i=c+n;i>n;)l=a[i]+d[n]*p[i-n-1]+e,a[i--]=l%1e7|0,e=l/1e7|0;a[i]=(a[i]+e)%1e7|0}for(;!a[--u];)a.pop();return e?++r:a.shift(),t.d=a,t.e=r,o?j(t,f.precision):t},d.toDecimalPlaces=d.todp=function(t,e){var r=this,n=r.constructor;
1return(r=new n(r),void 0===t)?r:(y(t,0,1e9),void 0===e?e=n.rounding:y(e,0,8),j(r,t+b(r)+1,e))},d.toExponential=function(t,e){var r,n=this,i=n.constructor;return void 0===t?r=E(n,!0):(y(t,0,1e9),void 0===e?e=i.rounding:y(e,0,8),r=E(n=j(new i(n),t+1,e),!0,t+1)),r},d.toFixed=function(t,e){var r,n,i=this.constructor;return void 0===t?E(this):(y(t,0,1e9),void 0===e?e=i.rounding:y(e,0,8),r=E((n=j(new i(this),t+b(this)+1,e)).abs(),!1,t+b(n)+1),this.isneg()&&!this.isZero()?"-"+r:r)},d.toInteger=d.toint=function(){var t=this.constructor;return j(new t(this),b(this)+1,t.rounding)},d.toNumber=function(){return+this},d.toPower=d.pow=function(t){var e,r,i,u,l,s,f=this,p=f.constructor,d=+(t=new p(t));if(!t.s)return new p(n);if(!(f=new p(f)).s){if(t.s<1)throw Error(a+"Infinity");return f}if(f.eq(n))return f;if(i=p.precision,t.eq(n))return j(f,i);if(s=(e=t.e)>=(r=t.d.length-1),l=f.s,s){if((r=d<0?-d:d)<=0x1fffffffffffff){for(u=new p(n),e=Math.ceil(i/7+4),o=!1;r%2&&A((u=u.times(f)).d,e),0!==(r=c(r/2));)A((f=f.times(f)).d,e);return o=!0,t.s<0?new p(n).div(u):j(u,i)}}else if(l<0)throw Error(a+"NaN");return l=l<0&&1&t.d[Math.max(e,r)]?-1:1,f.s=1,o=!1,u=t.times(w(f,i+12)),o=!0,(u=g(u)).s=l,u},d.toPrecision=function(t,e){var r,n,i=this,o=i.constructor;return void 0===t?(r=b(i),n=E(i,r<=o.toExpNeg||r>=o.toExpPos)):(y(t,1,1e9),void 0===e?e=o.rounding:y(e,0,8),r=b(i=j(new o(i),t,e)),n=E(i,t<=r||r<=o.toExpNeg,t)),n},d.toSignificantDigits=d.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(y(t,1,1e9),void 0===e?e=r.rounding:y(e,0,8)),j(new r(this),t,e)},d.toString=d.valueOf=d.val=d.toJSON=function(){var t=b(this),e=this.constructor;return E(this,t<=e.toExpNeg||t>=e.toExpPos)};var m=function(){function t(t,e){var r,n=0,i=t.length;for(t=t.slice();i--;)r=t[i]*e+n,t[i]=r%1e7|0,n=r/1e7|0;return n&&t.unshift(n),t}function e(t,e,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function r(t,e,r){for(var n=0;r--;)t[r]-=n,n=+(t[r]<e[r]),t[r]=1e7*n+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,i,o,u){var l,c,s,f,p,d,h,y,v,m,g,x,O,w,S,P,E,A,M=n.constructor,T=n.s==i.s?1:-1,k=n.d,C=i.d;if(!n.s)return new M(n);if(!i.s)throw Error(a+"Division by zero");for(s=0,c=n.e-i.e,E=C.length,S=k.length,y=(h=new M(T)).d=[];C[s]==(k[s]||0);)++s;if(C[s]>(k[s]||0)&&--c,(x=null==o?o=M.precision:u?o+(b(n)-b(i))+1:o)<0)return new M(0);if(x=x/7+2|0,s=0,1==E)for(f=0,C=C[0],x++;(s<S||f)&&x--;s++)O=1e7*f+(k[s]||0),y[s]=O/C|0,f=O%C|0;else{for((f=1e7/(C[0]+1)|0)>1&&(C=t(C,f),k=t(k,f),E=C.length,S=k.length),w=E,m=(v=k.slice(0,E)).length;m<E;)v[m++]=0;(A=C.slice()).unshift(0),P=C[0],C[1]>=1e7/2&&++P;do f=0,(l=e(C,v,E,m))<0?(g=v[0],E!=m&&(g=1e7*g+(v[1]||0)),(f=g/P|0)>1?(f>=1e7&&(f=1e7-1),d=(p=t(C,f)).length,m=v.length,1==(l=e(p,v,d,m))&&(f--,r(p,E<d?A:C,d))):(0==f&&(l=f=1),p=C.slice()),(d=p.length)<m&&p.unshift(0),r(v,p,m),-1==l&&(m=v.length,(l=e(C,v,E,m))<1&&(f++,r(v,E<m?A:C,m))),m=v.length):0===l&&(f++,v=[0]),y[s++]=f,l&&v[0]?v[m++]=k[w]||0:(v=[k[w]],m=1);while((w++<S||void 0!==v[0])&&x--)}return y[0]||y.shift(),h.e=c,j(h,u?o+b(h)+1:o)}}();function g(t,e){var r,i,a,u,c,f=0,p=0,d=t.constructor,h=d.precision;if(b(t)>16)throw Error(l+b(t));if(!t.s)return new d(n);for(null==e?(o=!1,c=h):c=e,u=new d(.03125);t.abs().gte(.1);)t=t.times(u),p+=5;for(c+=Math.log(s(2,p))/Math.LN10*2+5|0,r=i=a=new d(n),d.precision=c;;){if(i=j(i.times(t),c),r=r.times(++f),v((u=a.plus(m(i,r,c))).d).slice(0,c)===v(a.d).slice(0,c)){for(;p--;)a=j(a.times(a),c);return d.precision=h,null==e?(o=!0,j(a,h)):a}a=u}}function b(t){for(var e=7*t.e,r=t.d[0];r>=10;r/=10)e++;return e}function x(t,e,r){if(e>t.LN10.sd())throw o=!0,r&&(t.precision=r),Error(a+"LN10 precision limit exceeded");return j(new t(t.LN10),e)}function O(t){for(var e="";t--;)e+="0";return e}function w(t,e){var r,i,u,l,c,s,f,p,d,h=1,y=t,g=y.d,O=y.constructor,S=O.precision;if(y.s<1)throw Error(a+(y.s?"NaN":"-Infinity"));if(y.eq(n))return new O(0);if(null==e?(o=!1,p=S):p=e,y.eq(10))return null==e&&(o=!0),x(O,p);if(O.precision=p+=10,i=(r=v(g)).charAt(0),!(15e14>
1Math.abs(l=b(y))))return f=x(O,p+2,S).times(l+""),y=w(new O(i+"."+r.slice(1)),p-10).plus(f),O.precision=S,null==e?(o=!0,j(y,S)):y;for(;i<7&&1!=i||1==i&&r.charAt(1)>3;)i=(r=v((y=y.times(t)).d)).charAt(0),h++;for(l=b(y),i>1?(y=new O("0."+r),l++):y=new O(i+"."+r.slice(1)),s=c=y=m(y.minus(n),y.plus(n),p),d=j(y.times(y),p),u=3;;){if(c=j(c.times(d),p),v((f=s.plus(m(c,new O(u),p))).d).slice(0,p)===v(s.d).slice(0,p))return s=s.times(2),0!==l&&(s=s.plus(x(O,p+2,S).times(l+""))),s=m(s,new O(h),p),O.precision=S,null==e?(o=!0,j(s,S)):s;s=f,u+=2}}function S(t,e){var r,n,i;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);)++n;for(i=e.length;48===e.charCodeAt(i-1);)--i;if(e=e.slice(n,i)){if(i-=n,t.e=c((r=r-n-1)/7),t.d=[],n=(r+1)%7,r<0&&(n+=7),n<i){for(n&&t.d.push(+e.slice(0,n)),i-=7;n<i;)t.d.push(+e.slice(n,n+=7));n=7-(e=e.slice(n)).length}else n-=i;for(;n--;)e+="0";if(t.d.push(+e),o&&(t.e>p||t.e<-p))throw Error(l+r)}else t.s=0,t.e=0,t.d=[0];return t}function j(t,e,r){var n,i,a,u,f,d,h,y,v=t.d;for(u=1,a=v[0];a>=10;a/=10)u++;if((n=e-u)<0)n+=7,i=e,h=v[y=0];else{if((y=Math.ceil((n+1)/7))>=(a=v.length))return t;for(u=1,h=a=v[y];a>=10;a/=10)u++;n%=7,i=n-7+u}if(void 0!==r&&(f=h/(a=s(10,u-i-1))%10|0,d=e<0||void 0!==v[y+1]||h%a,d=r<4?(f||d)&&(0==r||r==(t.s<0?3:2)):f>5||5==f&&(4==r||d||6==r&&(n>0?i>0?h/s(10,u-i):0:v[y-1])%10&1||r==(t.s<0?8:7))),e<1||!v[0])return d?(a=b(t),v.length=1,e=e-a-1,v[0]=s(10,(7-e%7)%7),t.e=c(-e/7)||0):(v.length=1,v[0]=t.e=t.s=0),t;if(0==n?(v.length=y,a=1,y--):(v.length=y+1,a=s(10,7-n),v[y]=i>0?(h/s(10,u-i)%s(10,i)|0)*a:0),d)for(;;)if(0==y){1e7==(v[0]+=a)&&(v[0]=1,++t.e);break}else{if(v[y]+=a,1e7!=v[y])break;v[y--]=0,a=1}for(n=v.length;0===v[--n];)v.pop();if(o&&(t.e>p||t.e<-p))throw Error(l+b(t));return t}function P(t,e){var r,n,i,a,u,l,c,s,f,p,d=t.constructor,h=d.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new d(t),o?j(e,h):e;if(c=t.d,p=e.d,n=e.e,s=t.e,c=c.slice(),u=s-n){for((f=u<0)?(r=c,u=-u,l=p.length):(r=p,n=s,l=c.length),u>(i=Math.max(Math.ceil(h/7),l)+2)&&(u=i,r.length=1),r.reverse(),i=u;i--;)r.push(0);r.reverse()}else{for((f=(i=c.length)<(l=p.length))&&(l=i),i=0;i<l;i++)if(c[i]!=p[i]){f=c[i]<p[i];break}u=0}for(f&&(r=c,c=p,p=r,e.s=-e.s),l=c.length,i=p.length-l;i>0;--i)c[l++]=0;for(i=p.length;i>u;){if(c[--i]<p[i]){for(a=i;a&&0===c[--a];)c[a]=1e7-1;--c[a],c[i]+=1e7}c[i]-=p[i]}for(;0===c[--l];)c.pop();for(;0===c[0];c.shift())--n;return c[0]?(e.d=c,e.e=n,o?j(e,h):e):new d(0)}function E(t,e,r){var n,i=b(t),o=v(t.d),a=o.length;return e?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+O(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+O(-i-1)+o,r&&(n=r-a)>0&&(o+=O(n))):i>=a?(o+=O(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+O(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=O(n))),t.s<0?"-"+o:o}function A(t,e){if(t.length>e)return t.length=e,!0}function M(t){if(!t||"object"!=typeof t)throw Error(a+"Object expected");var e,r,n,i=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<i.length;e+=3)if(void 0!==(n=t[r=i[e]]))if(c(n)===n&&n>=i[e+1]&&n<=i[e+2])this[r]=n;else throw Error(u+r+": "+n);if(void 0!==(n=t[r="LN10"]))if(n==Math.LN10)this[r]=new this(n);else throw Error(u+r+": "+n);return this}if((i=function t(e){var r,n,i;function o(t){if(!(this instanceof o))return new o(t);if(this.constructor=o,t instanceof o){this.s=t.s,this.e=t.e,this.d=(t=t.d)?t.slice():t;return}if("number"==typeof t){if(0*t!=0)throw Error(u+t);if(t>0)this.s=1;else if(t<0)t=-t,this.s=-1;else{this.s=0,this.e=0,this.d=[0];return}if(t===~~t&&t<1e7){this.e=0,this.d=[t];return}return S(this,t.toString())}if("string"!=typeof t)throw Error(u+t);if(45===t.charCodeAt(0)?(t=t.slice(1),this.s=-1):this.s=1,f.test(t))S(this,t);else throw Error(u+t)}if(o.prototype=d,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=t,o.config=o.set=M,void 0===e&&(e={}),e)for(r=0,i=["precision","rounding","toExpNeg","toExpPos","LN10"];r<i.length;)e.hasOwnProperty(n=i[r++])||(e[n]=this[n]);return o.config(e),o}(i)).default=i.Decimal=i,n=new i(1),"function"==typeof define&&define.amd){let e;t.r,void 0!==(e=i)&&t.v(e)}else e.exports?e.exports=i:(r||(r="undefined"!=typeof self&&self&&self.self==self?self:Function("return this")()),r.Decimal=i)}(t.e)},697609,934771,116978,827953,953828,643044,782158,788677,t=>{"use strict";var e=t.i(87808),r=t.i(59953);function n(t,e){if((i=t.length)>1)for(var r,n,i,o=1,a=t[e[0]],u=a.length;o<i;++o)for(n=a,a=t[e[o]],r=0;r<u;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function i(t){for(var e=t.length,r=Array(e);--e>=0;)r[e]=e;return r}function o(t,e){return t[e]}function a(t){let e=[];return e.key=t,e}t.s(["stack",0,function(){var t=(0,r.default)([]),u=i,l=n,c=o;function s(r){var n,i,o=Array.from(t.apply(this,arguments),a),s=o.length,f=-1;for(let t of r)for(n=0,++f;n<s;++n)(o[n][f]=[0,+c(t,o[n].key,f,r)]).data=t;for(n=0,i=(0,e.default)(u(o));n<s;++n)o[i[n]].index=n;return l(o,i),o}return s.keys=function(e){return arguments.length?(t="function"==typeof e?e:(0,r.default)(Array.from(e)),s):t},s.value=function(t){return arguments.length?(c="function"==typeof t?t:(0,r.default)(+t),s):c},s.order=function(t){return arguments.length?(u=null==t?i:"function"==typeof t?t:(0,r.default)(Array.from(t)),s):u},s.offset=function(t){return arguments.length?(l=null==t?n:t,s):l},s}],697609),t.s(["stackOffsetExpand",0,function(t,e){if((i=t.length)>0){for(var r,i,o,a=0,u=t[0].length;a<u;++a){for(o=r=0;r<i;++r)o+=t[r][a][1]||0;if(o)for(r=0;r<i;++r)t[r][a][1]/=o}n(t,e)}}],934771),t.s(["stackOffsetNone",0,n],116978),t.s(["stackOffsetSilhouette",0,function(t,e){if((r=t.length)>0){for(var r,i=0,o=t[e[0]],a=o.length;i<a;++i){for(var u=0,l=0;u<r;++u)l+=t[u][i][1]||0;o[i][1]+=o[i][0]=-l/2}n(t,e)}}],827953),t.s(["stackOffsetWiggle",0,function(t,e){if((o=t.length)>0&&(i=(r=t[e[0]]).length)>0){for(var r,i,o,a=0,u=1;u<i;++u){for(var l=0,c=0,s=0;l<o;++l){for(var f=t[e[l]],p=f[u][1]||0,d=(p-(f[u-1][1]||0))/2,h=0;h<l;++h){var y=t[e[h]];d+=(y[u][1]||0)-(y[u-1][1]||0)}c+=p,s+=d*p}r[u-1][1]+=r[u-1][0]=a,c&&(a-=s/c)}r[u-1][1]+=r[u-1][0]=a,n(t,e)}}],953828),t.s(["stackOrderNone",0,i],643044);var u=t.i(39396);function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var c=function(t){return t},s={},f=function(t){return t===s},p=function(t){return function e(){return 0==arguments.length||1==arguments.length&&f(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},d=function(t){return function t(e,r){return 1===e?r:p(function(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=i.filter(function(t){return t!==s}).length;return a>=e?r.apply(void 0,i):t(e-a,p(function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=i.map(function(t){return f(t)?e.shift():t});return r.apply(void 0,((function(t){if(Array.isArray(t))return l(t)})(o)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(o)||function(t,e){if(t){if("string"==typeof t)return l(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(t,void 0)}}(o)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat(e))}))})}(t.length,t)},h=function(t,e){for(var r=[],n=t;n<e;++n)r[n-t]=n;return r},y=d(function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map(function(t){return e[t]}).map(t)}),v=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];if(!e.length)return c;var n=e.reverse(),i=n[0],o=n.slice(1);return function(){return o.reduce(function(t,e){return e(t)},i.apply(void 0,arguments))}},m=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},g=function(t){var e=null,r=null;return function(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return e&&i.every(function(t,r){return t===e[r]})?r:(e=i,r=t.apply(void 0,i))}};d(function(t,e,r){var n=+t;return n+r*(e-n)}),d(function(t,e,r){var n=e-t;return(r-t)/(n=n||1/0)}),d(function(t,e,r){var n=e-t;return Math.max(0,Math.min(1,(r-t)/(n=n||1/0)))});let b=function(t,e,r){for(var n=new u.default(t),i=0,o=[];n.lt(e)&&i<1e5;)o.push(n.toNumber()),n=n.add(r),i++;return o},x=function(t){return 0===t?1:Math.floor(new u.default(t).abs().log(10).toNumber())+1};function O(t){return function(t){if(Array.isArray(t))return j(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||S(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var r=[],n=!0,i=!1,o=void 0;try{for(var a,u=t[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==u.return||u.return()}finally{if(i)throw o}}return r}}(t,e)||S(t,e)||function(){throw TypeError("Invalid attempt to de
1structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(t,e){if(t){if("string"==typeof t)return j(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return j(t,e)}}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function P(t){var e=w(t,2),r=e[0],n=e[1],i=r,o=n;return r>n&&(i=n,o=r),[i,o]}function E(t,e,r){if(t.lte(0))return new u.default(0);var n=x(t.toNumber()),i=new u.default(10).pow(n),o=t.div(i),a=1!==n?.05:.1,l=new u.default(Math.ceil(o.div(a).toNumber())).add(r).mul(a).mul(i);return e?l:new u.default(Math.ceil(l))}function A(t,e,r){var n=1,i=new u.default(t);if(!i.isint()&&r){var o=Math.abs(t);o<1?(n=new u.default(10).pow(x(t)-1),i=new u.default(Math.floor(i.div(n).toNumber())).mul(n)):o>1&&(i=new u.default(Math.floor(t)))}else 0===t?i=new u.default(Math.floor((e-1)/2)):r||(i=new u.default(Math.floor(t)));var a=Math.floor((e-1)/2);return v(y(function(t){return i.add(new u.default(t-a).mul(n)).toNumber()}),h)(0,e)}var M=g(function(t){var e=w(t,2),r=e[0],n=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(i,2),l=w(P([r,n]),2),c=l[0],s=l[1];if(c===-1/0||s===1/0){var f=s===1/0?[c].concat(O(h(0,i-1).map(function(){return 1/0}))):[].concat(O(h(0,i-1).map(function(){return-1/0})),[s]);return r>n?m(f):f}if(c===s)return A(c,i,o);var p=function t(e,r,n,i){var o,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((r-e)/(n-1)))return{step:new u.default(0),tickMin:new u.default(0),tickMax:new u.default(0)};var l=E(new u.default(r).sub(e).div(n-1),i,a),c=Math.ceil((o=e<=0&&r>=0?new u.default(0):(o=new u.default(e).add(r).div(2)).sub(new u.default(o).mod(l))).sub(e).div(l).toNumber()),s=Math.ceil(new u.default(r).sub(o).div(l).toNumber()),f=c+s+1;return f>n?t(e,r,n,i,a+1):(f<n&&(s=r>0?s+(n-f):s,c=r>0?c:c+(n-f)),{step:l,tickMin:o.sub(new u.default(c).mul(l)),tickMax:o.add(new u.default(s).mul(l))})}(c,s,a,o),d=p.step,y=b(p.tickMin,p.tickMax.add(new u.default(.1).mul(d)),d);return r>n?m(y):y});g(function(t){var e=w(t,2),r=e[0],n=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(i,2),l=w(P([r,n]),2),c=l[0],s=l[1];if(c===-1/0||s===1/0)return[r,n];if(c===s)return A(c,i,o);var f=E(new u.default(s).sub(c).div(a-1),o,0),p=v(y(function(t){return new u.default(c).add(new u.default(t).mul(f)).toNumber()}),h)(0,a).filter(function(t){return t>=c&&t<=s});return r>n?m(p):p});var T=g(function(t,e){var r=w(t,2),n=r[0],i=r[1],o=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=w(P([n,i]),2),l=a[0],c=a[1];if(l===-1/0||c===1/0)return[n,i];if(l===c)return[l];var s=Math.max(e,2),f=E(new u.default(c).sub(l).div(s-1),o,0),p=[].concat(O(b(new u.default(l),new u.default(c).sub(new u.default(.99).mul(f)),f)),[c]);return n>i?m(p):p});t.s(["getNiceTickValues",()=>M,"getTickValuesFixedDomain",()=>T],782158),t.s([],788677)},418585,t=>{"use strict";var e=t.i(906936),r=t.i(340666),n=t.i(645511),i=t.i(9498),o=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(){return(u=Object.assign.bind()).apply(this,arguments)}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function p(t,e,r){return(e=d(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==a(e)?e:e+""}var h=function(t){var p;function h(){var t,e;if(!(this instanceof h))throw TypeError("Cannot call a class as a function");return t=h,e=arguments,t=s(t),function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,c()?Reflect.construct(t,e||[],s(this).constructor):t.apply(this,e))}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return h.prototype=Object.create(t&&t.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),Object.defineProperty(h,"prototype",{writable:!1}),t&&f(h,t),p=[{key:"render",value:function(){var t=this.props,a=t.offset,c=t.layout,s=t.width,f=t.dataKey,p=t.data,d=t.dataPointFormatter,h=t.xAxis,y=t.yAxis,v=function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,o),m=(0,i.filterProps)(v,!1);"x"===this.props.direction&&"number"!==h.type&&(0,r.default)(!1);var g=p.map(function(t){var r,i,o=d(t,f),p=o.x,v=o.y,g=o.value,b=o.errorVal;if(!b)return null;var x=[];if(Array.isArray(b)){var O=function(t){if(Array.isArray(t))return t}(b)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,u=[],l=!0,c=!1;try{o=(r=r.call(t)).next,!1;for(;!(l=(n=o.call(r)).done)&&(u.push(n.value),2!==u.length);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(b,2)||function(t,e){if(t){if("string"==typeof t)return l(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(t,2)}}(b,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();r=O[0],i=O[1]}else r=i=b;if("vertical"===c){var w=h.scale,S=v+a,j=S+s,P=S-s,E=w(g-r),A=w(g+i);x.push({x1:A,y1:j,x2:A,y2:P}),x.push({x1:E,y1:S,x2:A,y2:S}),x.push({x1:E,y1:j,x2:E,y2:P})}else if("horizontal"===c){var M=y.scale,T=p+a,k=T-s,C=T+s,N=M(g-r),_=M(g+i);x.push({x1:k,y1:_,x2:C,y2:_}),x.push({x1:T,y1:N,x2:T,y2:_}),x.push({x1:k,y1:N,x2:C,y2:N})}return e.default.createElement(n.Layer,u({className:"recharts-errorBar",key:"bar-".concat(x.map(function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))},m),x.map(function(t){return e.default.createElement("line",u({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))}))});return e.default.createElement(n.Layer,{className:"recharts-errorBars"},g)}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,d(n.key),n)}}(h.prototype,p),Object.defineProperty(h,"prototype",{writable:!1}),h}(e.default.Component);p(h,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"}),p(h,"displayName","ErrorBar"),t.s(["ErrorBar",()=>h])},190992,442504,t=>{"use strict";t.s(["appendOffsetOfLegend",()=>z,"calculateActiveTickIndex",()=>B,"checkDomainOfScale",()=>Y,"combineEventHandlers",()=>G,"findPositionOfBar",()=>Z,"getBandSizeOfAxis",()=>tf,"getBarPosition",()=>U,"getBarSizeList",()=>R,"getBaseValueOfBar",()=>to,"getCateCoordinateOfBar",()=>ti,"getCateCoordinateOfLine",()=>tn,"getCoordinatesOfGrid",()=>H,"getDomainOfDataByKey",()=>I,"getDomainOfItemsWithSameAxis",()=>W,"getDomainOfStackGroups",()=>tu,"getMainColorOfGraphicItem",()=>L,"getStackGroupsByAxisId",()=>te,"getStackedDataOfItem",()=>ta,"getTicksOfAxis",()=>X,"getTicksOfScale",()=>tr,"getTooltipItem",()=>td,"getValueByDataKey",()=>D,"isCategoricalAxis",()=>V,"parseDomainOfCategoryAxis",()=>tp,"parseErrorBarsOfAxis",()=>F,"parseScale",()=>K,"parseSpecifiedDomain",()=>ts,"truncateByDomain",()=>J],190992),t.i(630991);var e=t.i(165961);t.i(830952);var r=t.i(697609),n=t.i(934771),i=t.i(116978),o=t.i(827953),a=t.i(953828),u=t.i(643044),l=t.i(414836),c=t.i(114511),s=t.i(992552),f=t.i(239660),p=t.i(45770),d=t.i(15233),h=t.i(439986),y=t.i(317801),v=t.i(838299),m=t.i(24096),g=t.i(276026);t.i(788677);var b=t.i(782158),x=t.i(418585),O=t.i(45280),w=t.i(9498);t.s(["getLegendProps",()=>A],442504);var S=t.i(236814);function j(t){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function P(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function E(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?P(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],(i=function(t){var e=function(t,e){if("object"!=j(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=j(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==j(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var A=function(t){var e,r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=(0,w.findChildByType)(r,S.Legend);if(!a)return null;var u=S.Legend.defaultProps,l=void 0!==u?E(E({},u),a.props):{};return e=a.props&&a.props.payload?a.props&&a.props.payload:"children"===o?(n||[]).reduce(function(t,e){var r=e.item,n=e.props,i=n.sectors||n.data||[];return t.concat(i.map(function(t){return{type:a.props.iconType||r.props.legendType,value:t.name,color:t.fill,payload:t}}))},[]):(n||[]).map(function(t){var e=t.item,r=e.type.defaultProps,n=void 0!==r?E(E({},r),e.props):{},i=n.dataKey,o=n.name,a=n.legendType;return{inactive:n.hide,dataKey:i,type:l.iconType||a||"square",color:L(e),value:o||i,payload:n}}),E(E(E({},l),S.Legend.getWithHeight(a,i)),{},{payload:e,item:a})};function M(t){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function T(t){return function(t){if(Array.isArray(t))return k(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return k(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return k(t,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function C(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function N(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?C(Object(r),!0).forEach(function(e){_(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function _(t,e,r){var n;return(n=function(t,e){if("object"!=M(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=M(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==M(n)?n:n+"")in t)?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function D(t,e,r){return(0,s.default)(t)||(0,s.default)(e)?r:(0,O.isNumOrStr)(e)?(0,d.default)(t,e,r):(0,f.default)(e)?e(t):r}function I(t,e,r,n){var i=(0,h.default)(t,function(t){return D(t,e)});if("number"===r){var o=i.filter(function(t){return(0,O.isNumber)(t)||parseFloat(t)});return o.length?[(0,c.default)(o),(0,l.default)(o)]:[1/0,-1/0]}return(n?i.filter(function(t){return!(0,s.default)(t)}):i).map(function(t){return(0,O.isNumOrStr)(t)||t instanceof Date?t:""})}var B=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!=(e=null==r?void 0:r.length)?e:0;
1if(a<=1)return 0;if(i&&"angleAxis"===i.axisType&&1e-6>=Math.abs(Math.abs(i.range[1]-i.range[0])-360))for(var u=i.range,l=0;l<a;l++){var c=l>0?n[l-1].coordinate:n[a-1].coordinate,s=n[l].coordinate,f=l>=a-1?n[0].coordinate:n[l+1].coordinate,p=void 0;if((0,O.mathSign)(s-c)!==(0,O.mathSign)(f-s)){var d=[];if((0,O.mathSign)(f-s)===(0,O.mathSign)(u[1]-u[0])){p=f;var h=s+u[1]-u[0];d[0]=Math.min(h,(h+c)/2),d[1]=Math.max(h,(h+c)/2)}else{p=c;var y=f+u[1]-u[0];d[0]=Math.min(s,(y+s)/2),d[1]=Math.max(s,(y+s)/2)}var v=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>v[0]&&t<=v[1]||t>=d[0]&&t<=d[1]){o=n[l].index;break}}else{var m=Math.min(c,f),g=Math.max(c,f);if(t>(m+s)/2&&t<=(g+s)/2){o=n[l].index;break}}}else for(var b=0;b<a;b++)if(0===b&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b>0&&b<a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b===a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2){o=r[b].index;break}return o},L=function(t){var e,r,n=t.type.displayName,i=null!=(e=t.type)&&e.defaultProps?N(N({},t.type.defaultProps),t.props):t.props,o=i.stroke,a=i.fill;switch(n){case"Line":r=o;break;case"Area":case"Radar":r=o&&"none"!==o?o:a;break;default:r=a}return r},R=function(t){var e=t.barSize,r=t.totalSize,n=t.stackGroups,i=void 0===n?{}:n;if(!i)return{};for(var o={},a=Object.keys(i),u=0,l=a.length;u<l;u++)for(var c=i[a[u]].stackGroups,f=Object.keys(c),p=0,d=f.length;p<d;p++){var h=c[f[p]],y=h.items,v=h.cateAxisId,m=y.filter(function(t){return(0,w.getDisplayName)(t.type).indexOf("Bar")>=0});if(m&&m.length){var g=m[0].type.defaultProps,b=void 0!==g?N(N({},g),m[0].props):m[0].props,x=b.barSize,S=b[v];o[S]||(o[S]=[]);var j=(0,s.default)(x)?e:x;o[S].push({item:m[0],stackList:m.slice(1),barSize:(0,s.default)(j)?void 0:(0,O.getPercentValue)(j,r,0)})}}return o},U=function(t){var e,r=t.barGap,n=t.barCategoryGap,i=t.bandSize,o=t.sizeList,a=void 0===o?[]:o,u=t.maxBarSize,l=a.length;if(l<1)return null;var c=(0,O.getPercentValue)(r,i,0,!0),s=[];if(a[0].barSize===+a[0].barSize){var f=!1,p=i/l,d=a.reduce(function(t,e){return t+e.barSize||0},0);(d+=(l-1)*c)>=i&&(d-=(l-1)*c,c=0),d>=i&&p>0&&(f=!0,p*=.9,d=l*p);var h={offset:((i-d)/2|0)-c,size:0};e=a.reduce(function(t,e){var r={item:e.item,position:{offset:h.offset+h.size+c,size:f?p:e.barSize}},n=[].concat(T(t),[r]);return h=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){n.push({item:t,position:h})}),n},s)}else{var y=(0,O.getPercentValue)(n,i,0,!0);i-2*y-(l-1)*c<=0&&(c=0);var v=(i-2*y-(l-1)*c)/l;v>1&&(v>>=0);var m=u===+u?Math.min(v,u):v;e=a.reduce(function(t,e,r){var n=[].concat(T(t),[{item:e.item,position:{offset:y+(v+c)*r+(v-m)/2,size:m}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){n.push({item:t,position:n[n.length-1].position})}),n},s)}return e},z=function(t,e,r,n){var i=r.children,o=r.width,a=r.margin,u=A({children:i,legendWidth:o-(a.left||0)-(a.right||0)});if(u){var l=n||{},c=l.width,s=l.height,f=u.align,p=u.verticalAlign,d=u.layout;if(("vertical"===d||"horizontal"===d&&"middle"===p)&&"center"!==f&&(0,O.isNumber)(t[f]))return N(N({},t),{},_({},f,t[f]+(c||0)));if(("horizontal"===d||"vertical"===d&&"center"===f)&&"middle"!==p&&(0,O.isNumber)(t[p]))return N(N({},t),{},_({},p,t[p]+(s||0)))}return t},$=function(t,e,r,n,i){var o=e.props.children,a=(0,w.findAllByType)(o,x.ErrorBar).filter(function(t){var e;return e=t.props.direction,!!(0,s.default)(i)||("horizontal"===n?"yAxis"===i:"vertical"===n||"x"===e?"xAxis"===i:"y"!==e||"yAxis"===i)});if(a&&a.length){var u=a.map(function(t){return t.props.dataKey});return t.reduce(function(t,e){var n=D(e,r);if((0,s.default)(n))return t;var i=Array.isArray(n)?[(0,c.default)(n),(0,l.default)(n)]:[n,n],o=u.reduce(function(t,r){var n=D(e,r,0),o=i[0]-Math.abs(Array.isArray(n)?n[0]:n),a=i[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(o,t[0]),Math.max(a,t[1])]},[1/0,-1/0]);return[Math.min(o[0],t[0]),Math.max(o[1],t[1])]},[1/0,-1/0])}return null},F=function(t,e,r,n,i){var o=e.map(function(e){return $(t,e,r,i,n)}).filter(function(t){return!(0,s.default)(t)});return o&&o.length?o.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]):null},W=function(t,e,r,n,i){var o=e.map(function(e){var o=e.props.dataKey;return"number"===r&&o&&$(t,e,o,n)||I(t,o,r,i)});if("number"===r)return o.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]);var a={};return o.reduce(function(t,e){for(var r=0,n=e.length;r<n;r++)a[e[r]]||(a[e[r]]=!0,t.push(e[r]));return t},[])},V=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},H=function(t,e,r,n){if(n)return t.map(function(t){return t.coordinate});var i,o,a=t.map(function(t){return t.coordinate===e&&(i=!0),t.coordinate===r&&(o=!0),t.coordinate});return i||a.push(e),o||a.push(r),a},X=function(t,e,r){if(!t)return null;var n=t.scale,i=t.duplicateDomain,o=t.type,a=t.range,u="scaleBand"===t.realScaleType?n.bandwidth()/2:2,l=(e||r)&&"category"===o&&n.bandwidth?n.bandwidth()/u:0;return(l="angleAxis"===t.axisType&&(null==a?void 0:a.length)>=2?2*(0,O.mathSign)(a[0]-a[1])*l:l,e&&(t.ticks||t.niceTicks))?(t.ticks||t.niceTicks).map(function(t){return{coordinate:n(i?i.indexOf(t):t)+l,value:t,offset:l}}).filter(function(t){return!(0,y.default)(t.coordinate)}):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(t,e){return{coordinate:n(t)+l,value:t,index:e,offset:l}}
1):n.ticks&&!r?n.ticks(t.tickCount).map(function(t){return{coordinate:n(t)+l,value:t,offset:l}}):n.domain().map(function(t,e){return{coordinate:n(t)+l,value:i?i[t]:t,index:e,offset:l}})},q=new WeakMap,G=function(t,e){if("function"!=typeof e)return t;q.has(t)||q.set(t,new WeakMap);var r=q.get(t);if(r.has(e))return r.get(e);var n=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return r.set(e,n),n},K=function(t,r,n){var i=t.scale,o=t.type,a=t.layout,u=t.axisType;if("auto"===i)return"radial"===a&&"radiusAxis"===u?{scale:e.scaleBand(),realScaleType:"band"}:"radial"===a&&"angleAxis"===u?{scale:e.scaleLinear(),realScaleType:"linear"}:"category"===o&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:e.scalePoint(),realScaleType:"point"}:"category"===o?{scale:e.scaleBand(),realScaleType:"band"}:{scale:e.scaleLinear(),realScaleType:"linear"};if((0,p.default)(i)){var l="scale".concat((0,v.default)(i));return{scale:(e[l]||e.scalePoint)(),realScaleType:e[l]?l:"point"}}return(0,f.default)(i)?{scale:i}:{scale:e.scalePoint(),realScaleType:"point"}},Y=function(t){var e=t.domain();if(e&&!(e.length<=2)){var r=e.length,n=t.range(),i=Math.min(n[0],n[1])-1e-4,o=Math.max(n[0],n[1])+1e-4,a=t(e[0]),u=t(e[r-1]);(a<i||a>o||u<i||u>o)&&t.domain([e[0],e[r-1]])}},Z=function(t,e){if(!t)return null;for(var r=0,n=t.length;r<n;r++)if(t[r].item===e)return t[r].position;return null},J=function(t,e){if(!e||2!==e.length||!(0,O.isNumber)(e[0])||!(0,O.isNumber)(e[1]))return t;var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]),i=[t[0],t[1]];return(!(0,O.isNumber)(t[0])||t[0]<r)&&(i[0]=r),(!(0,O.isNumber)(t[1])||t[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i},Q={sign:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var i=0,o=0,a=0;a<e;++a){var u=(0,y.default)(t[a][r][1])?t[a][r][0]:t[a][r][1];u>=0?(t[a][r][0]=i,t[a][r][1]=i+u,i=t[a][r][1]):(t[a][r][0]=o,t[a][r][1]=o+u,o=t[a][r][1])}},expand:n.stackOffsetExpand,none:i.stackOffsetNone,silhouette:o.stackOffsetSilhouette,wiggle:a.stackOffsetWiggle,positive:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var i=0,o=0;o<e;++o){var a=(0,y.default)(t[o][r][1])?t[o][r][0]:t[o][r][1];a>=0?(t[o][r][0]=i,t[o][r][1]=i+a,i=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}}},tt=function(t,e,n){var i=e.map(function(t){return t.props.dataKey}),o=Q[n];return(0,r.stack)().keys(i).value(function(t,e){return+D(t,e,0)}).order(u.stackOrderNone).offset(o)(t)},te=function(t,e,r,n,i,o){if(!t)return null;var a=(o?e.reverse():e).reduce(function(t,e){var i,o=null!=(i=e.type)&&i.defaultProps?N(N({},e.type.defaultProps),e.props):e.props,a=o.stackId;if(o.hide)return t;var u=o[r],l=t[u]||{hasStack:!1,stackGroups:{}};if((0,O.isNumOrStr)(a)){var c=l.stackGroups[a]||{numericAxisId:r,cateAxisId:n,items:[]};c.items.push(e),l.hasStack=!0,l.stackGroups[a]=c}else l.stackGroups[(0,O.uniqueId)("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return N(N({},t),{},_({},u,l))},{});return Object.keys(a).reduce(function(e,o){var u=a[o];return u.hasStack&&(u.stackGroups=Object.keys(u.stackGroups).reduce(function(e,o){var a=u.stackGroups[o];return N(N({},e),{},_({},o,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:tt(t,a.items,i)}))},{})),N(N({},e),{},_({},o,u))},{})},tr=function(t,e){var r=e.realScaleType,n=e.type,i=e.tickCount,o=e.originalDomain,a=e.allowDecimals,u=r||e.scale;if("auto"!==u&&"linear"!==u)return null;if(i&&"number"===n&&o&&("auto"===o[0]||"auto"===o[1])){var s=t.domain();if(!s.length)return null;var f=(0,b.getNiceTickValues)(s,i,a);return t.domain([(0,c.default)(f),(0,l.default)(f)]),{niceTicks:f}}if(i&&"number"===n){var p=t.domain();return{niceTicks:(0,b.getTickValuesFixedDomain)(p,i,a)}}return null};function tn(t){var e=t.axis,r=t.ticks,n=t.bandSize,i=t.entry,o=t.index,a=t.dataKey;if("category"===e.type){if(!e.allowDuplicatedCategory&&e.dataKey&&!(0,s.default)(i[e.dataKey])){var u=(0,O.findEntryInArray)(r,"value",i[e.dataKey]);if(u)return u.coordinate+n/2}return r[o]?r[o].coordinate+n/2:null}var l=D(i,(0,s.default)(a)?e.dataKey:a);return(0,s.default)(l)?null:e.scale(l)}var ti=function(t){var e=t.axis,r=t.ticks,n=t.offset,i=t.bandSize,o=t.entry,a=t.index;if("category"===e.type)return r[a]?r[a].coordinate+n:null;var u=D(o,e.dataKey,e.domain[a]);return(0,s.default)(u)?null:e.scale(u)-i/2+n},to=function(t){var e=t.numericAxis,r=e.scale.domain();if("number"===e.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]},ta=function(t,e){var r,n=(null!=(r=t.type)&&r.defaultProps?N(N({},t.type.defaultProps),t.props):t.props).stackId;if((0,O.isNumOrStr)(n)){var i=e[n];if(i){var o=i.items.indexOf(t);return o>=0?i.stackedData[o]:null}}return null},tu=function(t,e,r){return Object.keys(t).reduce(function(n,i){var o=t[i].stackedData.reduce(function(t,n){var i=n.slice(e,r+1).reduce(function(t,e){return[(0,c.default)(e.concat([t[0]]).filter(O.isNumber)),(0,l.default)(e.concat([t[1]]).filter(O.isNumber))]},[1/0,-1/0]);return[Math.min(t[0],i[0]),Math.max(t[1],i[1])]},[1/0,-1/0]);return[Math.min(o[0],n[0]),Math.max(o[1],n[1])]},[1/0,-1/0]).map(function(t){return t===1/0||t===-1/0?0:t})},tl=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,tc=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ts=function(t,e,r){if((0,f.default)(t))return t(e,r);if(!Array.isArray(t))return e;var n=[];if((0,O.isNumber)(t[0]))n[0]=r?t[0]:Math.min(t[0],e[0]);else if(tl.test(t[0])){var i=+tl.exec(t[0])[1];n[0]=e[0]-i}else(0,f.default)(t[0])?n[0]=t[0](e[0]):n[0]=e[0];if((0,O.isNumber)(t[1]))n[1]=r?t[1]:Math.max(t[1],e[1]);
1else if(tc.test(t[1])){var o=+tc.exec(t[1])[1];n[1]=e[1]+o}else(0,f.default)(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},tf=function(t,e,r){if(t&&t.scale&&t.scale.bandwidth){var n=t.scale.bandwidth();if(!r||n>0)return n}if(t&&e&&e.length>=2){for(var i=(0,g.default)(e,function(t){return t.coordinate}),o=1/0,a=1,u=i.length;a<u;a++){var l=i[a],c=i[a-1];o=Math.min((l.coordinate||0)-(c.coordinate||0),o)}return o===1/0?0:o}return r?void 0:0},tp=function(t,e,r){return!t||!t.length||(0,m.default)(t,(0,d.default)(r,"type.defaultProps.domain"))?e:t},td=function(t,e){var r=t.type.defaultProps?N(N({},t.type.defaultProps),t.props):t.props,n=r.dataKey,i=r.name,o=r.unit,a=r.formatter,u=r.tooltipType,l=r.chartType,c=r.hide;return N(N({},(0,w.filterProps)(t,!1)),{},{dataKey:n,unit:o,formatter:a,name:i||n,color:L(t),value:D(e,n),type:u,payload:e,chartType:l,hide:c})}},277486,t=>{"use strict";var e=t.i(906936),r=t.i(305829);t.i(630991);var n=t.i(811601),i=t.i(239660),o=t.i(557457),a=t.i(645511),u=t.i(406702),l=t.i(190992),c=t.i(45280);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach(function(e){d(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function d(t,e,r){var n;return(n=function(t,e){if("object"!=s(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=s(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==s(n)?n:n+"")in t)?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var h=["Webkit","Moz","O","ms"],y=function(t,e){if(!t)return null;var r=t.replace(/(\w)/,function(t){return t.toUpperCase()}),n=h.reduce(function(t,n){return p(p({},t),{},d({},n+r,e))},{});return n[t]=e,n},v=t.i(9498);function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(){return(g=Object.assign.bind()).apply(this,arguments)}function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function x(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?b(Object(r),!0).forEach(function(e){P(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function O(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,E(n.key),n)}}function w(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(w=function(){return!!t})()}function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function j(t,e){return(j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function P(t,e,r){return(e=E(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function E(t){var e=function(t,e){if("object"!=m(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=m(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==m(e)?e:e+""}var A=function(t){var e=t.data,r=t.startIndex,i=t.endIndex,a=t.x,u=t.width,l=t.travellerWidth;if(!e||!e.length)return{};var c=e.length,s=(0,n.scalePoint)().domain((0,o.default)(0,c)).range([a,a+u-l]),f=s.domain().map(function(t){return s(t)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:s(r),endX:s(i),scale:s,scaleValues:f}},M=function(t){return t.changedTouches&&!!t.changedTouches.length},T=function(t){var n,o;function s(t){var e,r,n;if(!(this instanceof s))throw TypeError("Cannot call a class as a function");return r=s,n=[t],r=S(r),P(e=function(t,e){if(e&&("object"===m(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,w()?Reflect.construct(r,n||[],S(this).constructor):r.apply(this,n)),"handleDrag",function(t){e.leaveTimer&&(clearTimeout(e.leaveTimer),e.leaveTimer=null),e.state.isTravellerMoving?e.handleTravellerMove(t):e.state.isSlideMoving&&e.handleSlideDrag(t)}),P(e,"handleTouchMove",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleDrag(t.changedTouches[0])}),P(e,"handleDragEnd",function(){e.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var t=e.props,r=t.endIndex,n=t.onDragEnd,i=t.startIndex;null==n||n({endIndex:r,startIndex:i})}),e.detachDragEndListener()}),P(e,"handleLeaveWrapper",function(){(e.state.isTravellerMoving||e.state.isSlideMoving)&&(e.leaveTimer=window.setTimeout(e.handleDragEnd,e.props.leaveTimeOut))}),P(e,"handleEnterSlideOrTraveller",function(){e.setState({isTextActive:!0})}),P(e,"handleLeaveSlideOrTraveller",function(){e.setState({isTextActive:!1})}),P(e,"handleSlideDragStart",function(t){var r=M(t)?t.changedTouches[0]:t;e.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:r.pageX}),e.attachDragEndListener()}),e.travellerDragStartHandlers={startX:e.handleTravellerDragStart.bind(e,"startX"),endX:e.handleTravellerDragStart.bind(e,"endX")},e.state={},e}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return s.prototype=Object.create(t&&t.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),Object.defineProperty(s,"prototype",{writable:!1}),t&&j(s,t),n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var e=t.startX,r=t.endX,n=this.state.scaleValues,i=this.props,o=i.gap,a=i.data.length-1,u=Math.min(e,r),l=Math.max(e,r),c=s.getIndexInRange(n,u),f=s.getIndexInRange(n,l);return{startIndex:c-c%o,endIndex:f===a?a:f-f%o}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,o=e.dataKey,a=(0,l.getValueByDataKey)(r[t],o,t);return(0,i.default)(n)?n(a,t):a}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,r=e.slideMoveStartX,n=e.startX,i=e.endX,o=this.props,a=o.x,u=o.width,l=o.travellerWidth,c=o.startIndex,s=o.endIndex,f=o.onChange,p=t.pageX-r;p>0?p=Math.min(p,a+u-l-i,a+u-l-n):p<0&&(p=Math.max(p,a-n,a-i));var d=this.getIndex({startX:n+p,endX:i+p});(d.startIndex!==c||d.endIndex!==s)&&f&&f(d),this.setState({startX:n+p,endX:i+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=M(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e=this.state,r=e.brushMoveStartX,n=e.movingTravellerId,i=e.endX,o=e.startX,a=this.state[n],u=this.props,l=u.x,c=u.width,s=u.travellerWidth,f=u.onChange,p=u.gap,d=u.data,h={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,l+c-s-a):y<0&&(y=Math.max(y,l-a)),h[n]=a+y;var v=this.getIndex(h),m=v.startIndex,g=v.endIndex,b=function(){var t=d.length-1;return"startX"===n&&(i>o?m%p==0:g%p==0)||!!(i<o)&&g===t||"endX"===n&&(i>o?g%p==0:m%p==0)||!!(i>o)&&g===t};this.setState(P(P({},n,a+y),"brushMoveStartX",t.pageX),function(){f&&b()&&f(v)})}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,i=n.scaleValues,o=n.startX,a=n.endX,u=this.state[e],l=i.indexOf(u);if(-1!==l){var c=l+t;if(-1!==c&&!(c>=i.length)){var s=i[c];"startX"===e&&s>=a||"endX"===e&&s<=o||this.setState(P({},e,s),function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.
1state.endX}))})}}}},{key:"renderBackground",value:function(){var t=this.props,r=t.x,n=t.y,i=t.width,o=t.height,a=t.fill,u=t.stroke;return e.default.createElement("rect",{stroke:u,fill:a,x:r,y:n,width:i,height:o})}},{key:"renderPanorama",value:function(){var t=this.props,r=t.x,n=t.y,i=t.width,o=t.height,a=t.data,u=t.children,l=t.padding,c=e.Children.only(u);return c?e.default.cloneElement(c,{x:r,y:n,width:i,height:o,margin:l,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(t,r){var n,i,o=this,u=this.props,l=u.y,c=u.travellerWidth,f=u.height,p=u.traveller,d=u.ariaLabel,h=u.data,y=u.startIndex,m=u.endIndex,g=Math.max(t,this.props.x),b=x(x({},(0,v.filterProps)(this.props,!1)),{},{x:g,y:l,width:c,height:f}),O=d||"Min value: ".concat(null==(n=h[y])?void 0:n.name,", Max value: ").concat(null==(i=h[m])?void 0:i.name);return e.default.createElement(a.Layer,{tabIndex:0,role:"slider","aria-label":O,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),o.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,r))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},s.renderTraveller(p,b))}},{key:"renderSlide",value:function(t,r){var n=this.props,i=n.y,o=n.height,a=n.stroke,u=n.travellerWidth,l=Math.min(t,r)+u,c=Math.max(Math.abs(r-t)-u,0);return e.default.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:l,y:i,width:c,height:o})}},{key:"renderText",value:function(){var t=this.props,r=t.startIndex,n=t.endIndex,i=t.y,o=t.height,l=t.travellerWidth,c=t.stroke,s=this.state,f=s.startX,p=s.endX,d={pointerEvents:"none",fill:c};return e.default.createElement(a.Layer,{className:"recharts-brush-texts"},e.default.createElement(u.Text,g({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,p)-5,y:i+o/2},d),this.getTextOfTick(r)),e.default.createElement(u.Text,g({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,p)+l+5,y:i+o/2},d),this.getTextOfTick(n)))}},{key:"render",value:function(){var t=this.props,n=t.data,i=t.className,o=t.children,u=t.x,l=t.y,s=t.width,f=t.height,p=t.alwaysShowText,d=this.state,h=d.startX,v=d.endX,m=d.isTextActive,g=d.isSlideMoving,b=d.isTravellerMoving,x=d.isTravellerFocused;if(!n||!n.length||!(0,c.isNumber)(u)||!(0,c.isNumber)(l)||!(0,c.isNumber)(s)||!(0,c.isNumber)(f)||s<=0||f<=0)return null;var O=(0,r.default)("recharts-brush",i),w=1===e.default.Children.count(o),S=y("userSelect","none");return e.default.createElement(a.Layer,{className:O,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:S},this.renderBackground(),w&&this.renderPanorama(),this.renderSlide(h,v),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(v,"endX"),(m||g||b||x||p)&&this.renderText())}}],o=[{key:"renderDefaultTraveller",value:function(t){var r=t.x,n=t.y,i=t.width,o=t.height,a=t.stroke,u=Math.floor(n+o/2)-1;return e.default.createElement(e.default.Fragment,null,e.default.createElement("rect",{x:r,y:n,width:i,height:o,fill:a,stroke:"none"}),e.default.createElement("line",{x1:r+1,y1:u,x2:r+i-1,y2:u,fill:"none",stroke:"#fff"}),e.default.createElement("line",{x1:r+1,y1:u+2,x2:r+i-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,r){return e.default.isValidElement(t)?e.default.cloneElement(t,r):(0,i.default)(t)?t(r):s.renderDefaultTraveller(r)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,i=t.x,o=t.travellerWidth,a=t.updateId,u=t.startIndex,l=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return x({prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n},r&&r.length?A({data:r,width:n,x:i,travellerWidth:o,startIndex:u,endIndex:l}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||i!==e.prevX||o!==e.prevTravellerWidth)){e.scale.range([i,i+n-o]);var c=e.scale.domain().map(function(t){return e.scale(t)});return{prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:c}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=t.length,n=0,i=r-1;i-n>1;){var o=Math.floor((n+i)/2);t[o]>e?i=o:n=o}return e>=t[i]?i:n}}],n&&O(s.prototype,n),o&&O(s,o),Object.defineProperty(s,"prototype",{writable:!1}),s}(e.PureComponent);P(T,"displayName","Brush"),P(T,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1}),t.s(["Brush",()=>T],277486)},134494,t=>{"use strict";var e=t.i(992552),r=t.i(906936),n=t.i(239660),i=t.i(45280),o=t.i(190992);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function l(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?u(Object(r),!0).forEach(function(e){c(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function c(t,e,r){var n;return(n=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=a(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==a(n)?n:n+"")in t)?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var f=Math.PI/180,p=function(t,e,r,n){return{x:t+Math.cos(-f*n)*r,y:e+Math.sin(-f*n)*r}},d=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(e-(r.top||0)-(r.bottom||0)))/2},h=function(t,r,n,a,u){var f=t.width,p=t.height,h=t.startAngle,y=t.endAngle,v=(0,i.getPercentValue)(t.cx,f,f/2),m=(0,i.getPercentValue)(t.cy,p,p/2),g=d(f,p,n),b=(0,i.getPercentValue)(t.innerRadius,g,0),x=(0,i.getPercentValue)(t.outerRadius,g,.8*g);return Object.keys(r).reduce(function(t,n){var i,f=r[n],p=f.domain,d=f.reversed;if((0,e.default)(f.range))"angleAxis"===a?i=[h,y]:"radiusAxis"===a&&(i=[b,x]),d&&(i=[i[1],i[0]]);else{var g,O=function(t){if(Array.isArray(t))return t}(g=i=f.range)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,u=[],l=!0,c=!1;try{o=(r=r.call(t)).next,!1;for(;!(l=(n=o.call(r)).done)&&(u.push(n.value),2!==u.length);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(g,2)||function(t,e){if(t){if("string"==typeof t)return s(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(t,2)}}(g,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();h=O[0],y=O[1]}var w=(0,o.parseScale)(f,u),S=w.realScaleType,j=w.scale;j.domain(p).range(i),(0,o.checkDomainOfScale)(j);var P=(0,o.getTicksOfScale)(j,l(l({},f),{},{realScaleType:S})),E=l(l(l({},f),P),{},{range:i,radius:x,realScaleType:S,scale:j,cx:v,cy:m,innerRadius:b,outerRadius:x,startAngle:h,endAngle:y});return l(l({},t),{},c({},n,E))},{})},y=function(t,e){var r=t.x,n=t.y;
1return Math.sqrt(Math.pow(r-e.x,2)+Math.pow(n-e.y,2))},v=function(t,e){var r=t.x,n=t.y,i=e.cx,o=e.cy,a=y({x:r,y:n},{x:i,y:o});if(a<=0)return{radius:a};var u=Math.acos((r-i)/a);return n>o&&(u=2*Math.PI-u),{radius:a,angle:180*u/Math.PI,angleInRadian:u}},m=function(t){var e=t.startAngle,r=t.endAngle,n=Math.min(Math.floor(e/360),Math.floor(r/360));return{startAngle:e-360*n,endAngle:r-360*n}},g=function(t,e){var r,n=v({x:t.x,y:t.y},e),i=n.radius,o=n.angle,a=e.innerRadius,u=e.outerRadius;if(i<a||i>u)return!1;if(0===i)return!0;var c=m(e),s=c.startAngle,f=c.endAngle,p=o;if(s<=f){for(;p>f;)p-=360;for(;p<s;)p+=360;r=p>=s&&p<=f}else{for(;p>s;)p-=360;for(;p<f;)p+=360;r=p>=f&&p<=s}return r?l(l({},e),{},{radius:i,angle:p+360*Math.min(Math.floor(e.startAngle/360),Math.floor(e.endAngle/360))}):null},b=function(t){return(0,r.isValidElement)(t)||(0,n.default)(t)||"boolean"==typeof t?"":t.className};t.s(["RADIAN",()=>f,"formatAxisMap",()=>h,"getMaxRadius",()=>d,"getTickClassName",()=>b,"inRangeOfSector",()=>g,"polarToCartesian",()=>p])},772679,t=>{"use strict";var e=t.i(906936),r=t.i(992552),n=t.i(239660),i=t.i(647453),o=t.i(305829),a=t.i(406702),u=t.i(9498),l=t.i(45280),c=t.i(134494);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var f=["offset"];function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function d(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],(i=function(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=s(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function y(){return(y=Object.assign.bind()).apply(this,arguments)}var v=function(t){var e=t.value,i=t.formatter,o=(0,r.default)(t.children)?e:t.children;return(0,n.default)(i)?i(o):o},m=function(t,n,i){var a,u,s=t.position,f=t.viewBox,p=t.offset,d=t.className,h=f.cx,v=f.cy,m=f.innerRadius,g=f.outerRadius,b=f.startAngle,x=f.endAngle,O=f.clockWise,w=(m+g)/2,S=(0,l.mathSign)(x-b)*Math.min(Math.abs(x-b),360),j=S>=0?1:-1;"insideStart"===s?(a=b+j*p,u=O):"insideEnd"===s?(a=x-j*p,u=!O):"end"===s&&(a=x+j*p,u=O),u=S<=0?u:!u;var P=(0,c.polarToCartesian)(h,v,w,a),E=(0,c.polarToCartesian)(h,v,w,a+(u?1:-1)*359),A="M".concat(P.x,",").concat(P.y,"\n A").concat(w,",").concat(w,",0,1,").concat(+!u,",\n ").concat(E.x,",").concat(E.y),M=(0,r.default)(t.id)?(0,l.uniqueId)("recharts-radial-line-"):t.id;return e.default.createElement("text",y({},i,{dominantBaseline:"central",className:(0,o.default)("recharts-radial-bar-label",d)}),e.default.createElement("defs",null,e.default.createElement("path",{id:M,d:A})),e.default.createElement("textPath",{xlinkHref:"#".concat(M)},n))},g=function(t){var e=t.viewBox,r=t.offset,n=t.position,i=e.cx,o=e.cy,a=e.innerRadius,u=e.outerRadius,l=(e.startAngle+e.endAngle)/2;if("outside"===n){var s=(0,c.polarToCartesian)(i,o,u+r,l),f=s.x;return{x:f,y:s.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"end"};var p=(0,c.polarToCartesian)(i,o,(a+u)/2,l);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},b=function(t){var e=t.viewBox,r=t.parentViewBox,n=t.offset,o=t.position,a=e.x,u=e.y,c=e.width,s=e.he
1ight,f=s>=0?1:-1,p=f*n,d=f>0?"end":"start",y=f>0?"start":"end",v=c>=0?1:-1,m=v*n,g=v>0?"end":"start",b=v>0?"start":"end";if("top"===o)return h(h({},{x:a+c/2,y:u-f*n,textAnchor:"middle",verticalAnchor:d}),r?{height:Math.max(u-r.y,0),width:c}:{});if("bottom"===o)return h(h({},{x:a+c/2,y:u+s+p,textAnchor:"middle",verticalAnchor:y}),r?{height:Math.max(r.y+r.height-(u+s),0),width:c}:{});if("left"===o){var x={x:a-m,y:u+s/2,textAnchor:g,verticalAnchor:"middle"};return h(h({},x),r?{width:Math.max(x.x-r.x,0),height:s}:{})}if("right"===o){var O={x:a+c+m,y:u+s/2,textAnchor:b,verticalAnchor:"middle"};return h(h({},O),r?{width:Math.max(r.x+r.width-O.x,0),height:s}:{})}var w=r?{width:c,height:s}:{};return"insideLeft"===o?h({x:a+m,y:u+s/2,textAnchor:b,verticalAnchor:"middle"},w):"insideRight"===o?h({x:a+c-m,y:u+s/2,textAnchor:g,verticalAnchor:"middle"},w):"insideTop"===o?h({x:a+c/2,y:u+p,textAnchor:"middle",verticalAnchor:y},w):"insideBottom"===o?h({x:a+c/2,y:u+s-p,textAnchor:"middle",verticalAnchor:d},w):"insideTopLeft"===o?h({x:a+m,y:u+p,textAnchor:b,verticalAnchor:y},w):"insideTopRight"===o?h({x:a+c-m,y:u+p,textAnchor:g,verticalAnchor:y},w):"insideBottomLeft"===o?h({x:a+m,y:u+s-p,textAnchor:b,verticalAnchor:d},w):"insideBottomRight"===o?h({x:a+c-m,y:u+s-p,textAnchor:g,verticalAnchor:d},w):(0,i.default)(o)&&((0,l.isNumber)(o.x)||(0,l.isPercent)(o.x))&&((0,l.isNumber)(o.y)||(0,l.isPercent)(o.y))?h({x:a+(0,l.getPercentValue)(o.x,c),y:u+(0,l.getPercentValue)(o.y,s),textAnchor:"end",verticalAnchor:"end"},w):h({x:a+c/2,y:u+s/2,textAnchor:"middle",verticalAnchor:"middle"},w)};function x(t){var i,c=t.offset,s=h({offset:void 0===c?5:c},function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,f)),p=s.viewBox,d=s.position,x=s.value,O=s.children,w=s.content,S=s.className,j=s.textBreakAll;if(!p||(0,r.default)(x)&&(0,r.default)(O)&&!(0,e.isValidElement)(w)&&!(0,n.default)(w))return null;if((0,e.isValidElement)(w))return(0,e.cloneElement)(w,s);if((0,n.default)(w)){if(i=(0,e.createElement)(w,s),(0,e.isValidElement)(i))return i}else i=v(s);var P="cx"in p&&(0,l.isNumber)(p.cx),E=(0,u.filterProps)(s,!0);if(P&&("insideStart"===d||"insideEnd"===d||"end"===d))return m(s,i,E);var A=P?g(s):b(s);return e.default.createElement(a.Text,y({className:(0,o.default)("recharts-label",void 0===S?"":S)},E,A,{breakAll:j}),i)}x.displayName="Label";var O=function(t){var e=t.cx,r=t.cy,n=t.angle,i=t.startAngle,o=t.endAngle,a=t.r,u=t.radius,c=t.innerRadius,s=t.outerRadius,f=t.x,p=t.y,d=t.top,h=t.left,y=t.width,v=t.height,m=t.clockWise,g=t.labelViewBox;if(g)return g;if((0,l.isNumber)(y)&&(0,l.isNumber)(v)){if((0,l.isNumber)(f)&&(0,l.isNumber)(p))return{x:f,y:p,width:y,height:v};if((0,l.isNumber)(d)&&(0,l.isNumber)(h))return{x:d,y:h,width:y,height:v}}return(0,l.isNumber)(f)&&(0,l.isNumber)(p)?{x:f,y:p,width:0,height:0}:(0,l.isNumber)(e)&&(0,l.isNumber)(r)?{cx:e,cy:r,startAngle:i||n||0,endAngle:o||n||0,innerRadius:c||0,outerRadius:s||u||a||0,clockWise:m}:t.viewBox?t.viewBox:{}};x.parseViewBox=O,x.renderCallByParent=function(t,r){var o,a,c=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!t||!t.children&&c&&!t.label)return null;var s=t.children,f=O(t),d=(0,u.findAllByType)(s,x).map(function(t,n){return(0,e.cloneElement)(t,{viewBox:r||f,key:"label-".concat(n)})});if(!c)return d;return[(o=t.label,a=r||f,!o?null:!0===o?e.default.createElement(x,{key:"label-implicit",viewBox:a}):(0,l.isNumOrStr)(o)?e.default.createElement(x,{key:"label-implicit",viewBox:a,value:o}):(0,e.isValidElement)(o)?o.type===x?(0,e.cloneElement)(o,{key:"label-implicit",viewBox:a}):e.default.createElement(x,{key:"label-implicit",content:o,viewBox:a}):(0,n.default)(o)?e.default.createElement(x,{key:"label-implicit",content:o,viewBox:a}):(0,i.default)(o)?e.default.createElement(x,y({viewBox:a},o,{key:"label-implicit"})):null)].concat(function(t){if(Array.isArray(t))return p(t)}(d)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(d)||function(t,e){if(t){if("string"==typeof t)return p(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(t,void 0)}}(d)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())},t.s(["Label",()=>x])},906252,t=>{"use strict";var e=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e};t.s(["ifOverflowMatches",()=>e])},163470,(t,e,r)=>{e.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0}},558720,(t,e,r)=>{var n=t.r(407084);e.exports=function(t,e){var r=!0;return n(t,function(t,n,i){return r=!!e(t,n,i)}),r}},364861,(t,e,r)=>{var n=t.r(163470),i=t.r(558720),o=t.r(345770),a=t.r(379909),u=t.r(183906);e.exports=function(t,e,r){var l=a(t)?n:i;return r&&u(t,e,r)&&(e=void 0),l(t,o(e,3))}},869422,t=>{"use strict";var e=function(t){return null};e.displayName="Cell",t.s(["Cell",()=>e])},467180,t=>{"use strict";var e=t.i(906936),r=t.i(992552),n=t.i(647453),i=t.i(239660),o=t.i(481076),a=t.i(772679),u=t.i(645511),l=t.i(9498),c=t.i(190992);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var f=["valueAccessor"],p=["data","dataKey","clockWise","id","textBreakAll"];function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}
1function h(){return(h=Object.assign.bind()).apply(this,arguments)}function y(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?y(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],(i=function(t){var e=function(t,e){if("object"!=s(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=s(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==s(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function m(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var g=function(t){return Array.isArray(t.value)?(0,o.default)(t.value):t.value};function b(t){var n=t.valueAccessor,i=void 0===n?g:n,o=m(t,f),s=o.data,d=o.dataKey,y=o.clockWise,b=o.id,x=o.textBreakAll,O=m(o,p);return s&&s.length?e.default.createElement(u.Layer,{className:"recharts-label-list"},s.map(function(t,n){var o=(0,r.default)(d)?i(t,n):(0,c.getValueByDataKey)(t&&t.payload,d),u=(0,r.default)(b)?{}:{id:"".concat(b,"-").concat(n)};return e.default.createElement(a.Label,h({},(0,l.filterProps)(t,!0),O,u,{parentViewBox:t.parentViewBox,value:o,textBreakAll:x,viewBox:a.Label.parseViewBox((0,r.default)(y)?t:v(v({},t),{},{clockWise:y})),key:"label-".concat(n),index:n}))})):null}b.displayName="LabelList",b.renderCallByParent=function(t,r){var o,a=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!t||!t.children&&a&&!t.label)return null;var u=t.children,c=(0,l.findAllByType)(u,b).map(function(t,n){return(0,e.cloneElement)(t,{data:r,key:"labelList-".concat(n)})});return a?[(o=t.label,!o?null:!0===o?e.default.createElement(b,{key:"labelList-implicit",data:r}):e.default.isValidElement(o)||(0,i.default)(o)?e.default.createElement(b,{key:"labelList-implicit",data:r,content:o}):(0,n.default)(o)?e.default.createElement(b,h({data:r},o,{key:"labelList-implicit"})):null)].concat(function(t){if(Array.isArray(t))return d(t)}(c)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(c)||function(t,e){if(t){if("string"==typeof t)return d(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(t,void 0)}}(c)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):c},t.s(["LabelList",()=>b])},203779,(t,e,r)=>{var n=t.r(29841),i=t.r(546871);e.exports=function(t){return!0===t||!1===t||i(t)&&"[object Boolean]"==n(t)}},105694,t=>{"use strict";var e=t.i(906936),r=t.i(305829),n=t.i(431138),i=t.i(9498);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(){return(a=Object.assign.bind()).apply(this,arguments)}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?l(Object(r),!0).forEach(function(e){var n,i,a;n=t,i=e,a=r[e],(i=function(t){var e=function(t,e){if("object"!=o(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=o(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==o(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var s=function(t,e,r,n,i){var o=r-n;return"M ".concat(t,",").concat(e)+"L ".concat(t+r,",").concat(e)+"L ".concat(t+r-o/2,",").concat(e+i)+"L ".concat(t+r-o/2-n,",").concat(e+i)+"L ".concat(t,",").concat(e," Z")},f={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},p=function(t){var o,l=c(c({},f),t),p=(0,e.useRef)(),d=function(t){if(Array.isArray(t))return t}(o=(0,e.useState)(-1))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,u=[],l=!0,c=!1;try{o=(r=r.call(t)).next,!1;for(;!(l=(n=o.call(r)).done)&&(u.push(n.value),2!==u.length);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(o,2)||function(t,e){if(t){if("string"==typeof t)return u(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(t,2)}}(o,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),h=d[0],y=d[1];(0,e.useEffect)(function(){if(p.current&&p.current.getTotalLength)try{var t=p.current.getTotalLength();t&&y(t)}catch(t){}},[]);var v=l.x,m=l.y,g=l.upperWidth,b=l.lowerWidth,x=l.height,O=l.className,w=l.animationEasing,S=l.animationDuration,j=l.animationBegin,P=l.isUpdateAnimationActive;if(v!==+v||m!==+m||g!==+g||b!==+b||x!==+x||0===g&&0===b||0===x)return null;var E=(0,r.default)("recharts-trapezoid",O);return P?e.default.createElement(n.default,{canBegin:h>0,from:{upperWidth:0,lowerWidth:0,height:x,x:v,y:m},to:{upperWidth:g,lowerWidth:b,height:x,x:v,y:m},duration:S,animationEasing:w,isActive:P},function(t){var r=t.upperWidth,o=t.lowerWidth,u=t.height,c=t.x,f=t.y;return e.default.createElement(n.default,{canBegin:h>0,from:"0px ".concat(-1===h?1:h,"px"),to:"".concat(h,"px 0px"),attributeName:"strokeDasharray",begin:j,duration:S,easing:w},e.default.createElement("path",a({},(0,i.filterProps)(l,!0),{className:E,d:s(c,f,r,o,u),ref:p})))}):e.default.createElement("g",null,e.default.createElement("path",a({},(0,i.filterProps)(l,!0),{className:E,d:s(v,m,g,b,x)})))};t.s(["Trapezoid",()=>p])},931732,733055,t=>{"use strict";var e=t.i(906936),r=t.i(239660),n=t.i(911153),i=t.i(203779),o=t.i(24096),a=t.i(609749),u=t.i(105694),l=t.i(305829),c=t.i(9498),s=t.i(134494),f=t.i(45280);function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(){return(d=Object.assign.bind()).apply(this,arguments)}function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function y(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],(i=function(t){var e=function(t,e){if("object"!=p(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=p(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==p(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var v=function(t){var e=t.cx,r=t.cy,n=t.radius,i=t.angle,o=t.sign,a=t.isExternal,u=t.cornerRadius,l=t.cornerIsExternal,c=u*(a?1:-1)+n,f=Math.asin(u/c)/s.RADIAN,p=l?i:i+o*f;return{center:(0,s.polarToCartesian)(e,r,c,p),circleTangency:(0,s.polarToCartesian)(e,r,n,p),lineTangency:(0,s.polarToCartesian)(e,r,c*Math.cos(f*s.RADIAN),l?i-o*f:i),theta:f}},m=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,i=t.outerRadius,o=t.startAngle,a=t.endAngle,u=(0,f.mathSign)(a-o)*Math.min(Math.abs(a-o),359.999),l=o+u,c=(0,s.polarToCartesian)(e,r,i,o),p=(0,s.polarToCartesian)(e,r,i,l),d="M ".concat(c.x,",").concat(c.y,"\n A ").concat(i,",").concat(i,",0,\n ").concat(+(Math.abs(u)>180),",").concat(+(o>l),",\n ").concat(p.x,",").concat(p.y,"\n ");if(n>0){var h=(0,s.polarToCartesian)(e,r,n,o),y=(0,s.polarToCartesian)(e,r,n,l);d+="L ".concat(y.x,",").concat(y.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(u)>180),",").concat(+(o<=l),",\n ").concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(e,",").concat(r," Z");return d},g=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.forceCornerRadius,u=t.cornerIsExternal,l=t.startAngle,c=t.endAngle,s=(0,f.mathSign)(c-l),p=v({cx:e,cy:r,radius:i,angle:l,sign:s,cornerRadius:o,cornerIsExternal:u}),d=p.circleTangency,h=p.lineTangency,y=p.theta,g=v({cx:e,cy:r,radius:i,angle:c,sign:-s,cornerRadius:o,cornerIsExternal:u}),b=g.circleTangency,x=g.lineTangency,O=g.theta,w=u?Math.abs(l-c):Math.abs(l-c)-y-O;if(w<0)return a?"M ".concat(h.x,",").concat(h.y,"\n a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(-(2*o),",0\n "):m({cx:e,cy:r,innerRadius:n,outerRadius:i,startAngle:l,endAngle:c});var S="M ".concat(h.x,",").concat(h.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(d.x,",").concat(d.y,"\n A").concat(i,",").concat(i,",0,").concat(+(w>180),",").concat(+(s<0),",").concat(b.x,",").concat(b.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(x.x,",").concat(x.y,"\n ");if(n>0){var j=v({cx:e,cy:r,radius:n,angle:l,sign:s,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),P=j.circleTangency,E=j.lineTangency,A=j.theta,M=v({cx:e,cy:r,radius:n,angle:c,sign:-s,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),T=M.circleTangency,k=M.lineTangency,C=M.theta,N=u?Math.abs(l-c):Math.abs(l-c)-A-C;if(N<0&&0===o)return"".concat(S,"L").concat(e,",").concat(r,"Z");S+="L".concat(k.x,",").concat(k.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(T.x,",").concat(T.y,"\n A").concat(n,",").concat(n,",0,").concat(+(N>180),",").concat(+(s>0),",").concat(P.x,",").concat(P.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(E.x,",").concat(E.y,"Z")}else S+="L".concat(e,",").concat(r,"Z");return S},b={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},x=function(t){var r,n=y(y({},b),t),i=n.cx,o=n.cy,a=n.innerRadius,u=n.outerRadius,s=n.cornerRadius,p=n.forceCornerRadius,h=n.cornerIsExternal,v=n.startAngle,x=n.endAngle,O=n.className;if(u<a||v===x)return null;var w=(0,l.default)("recharts-sector",O),S=u-a,j=(0,f.getPercentValue)(s,S,0,!0);return r=j>0&&360>Math.abs(v-x)?g({cx:i,cy:o,innerRadius:a,outerRadius:u,cornerRadius:Math.min(j,S/2),forceCornerRadius:p,cornerIsExternal:h,startAngle:v,endAngle:x}):m({cx:i,cy:o,innerRadius:a,outerRadius:u,startAngle:v,endAngle:x}),e.default.createElement("path",d({},(0,c.filterProps)(n,!0),{className:w,d:r,role:"img"}))};t.s(["Sector",()=>x],733055);var O=t.i(645511),w=t.i(613795),S=["option","shapeType","propTransformer","activeClassName","isActive"];function j(t){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function P(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function E(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?P(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],(i=function(t){var e=function(t,e){if("object"!=j(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=j(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==j(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function A(t){var r=t.shapeType,n=t.elementProps;switch(r){case"rectangle":return e.default.createElement(a.Rectangle,n);case"trapezoid":return e.default.createElement(u.Trapezoid,n);case"sector":return e.default.createElement(x,n);case"symbols":if("symbols"===r)return e.default.createElement(w.Symbols,n);break;default:return null}}function M(t){var o,a=t.option,u=t.shapeType,l=t.propTransformer,c=t.activeClassName,s=t.isActive,f=function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,S);if((0,e.isValidElement)(a))o=(0,e.cloneElement)(a,E(E({},f),(0,e.isValidElement)(a)?a.props:a));else if((0,r.default)(a))o=a(f);else if((0,n.default)(a)&&!(0,i.default)(a)){var p=(void 0===l?function(t,e){return E(E({},e),t)}:l)(a,f);o=e.default.createElement(A,{shapeType:u,elementProps:p})}else o=e.default.createElement(A,{shapeType:u,elementProps:f});return s?e.default.createElement(O.Layer,{className:void 0===c?"recharts-active-shape":c},o):o}function T(t,e){return null!=e&&"trapezoids"in t.props}function k(t,e){return null!=e&&"sectors"in t.props}function C(t,e){return null!=e&&"points"in t.props}function N(t,e){var r,n,i=t.x===(null==e||null==(r=e.labelViewBox)?void 0:r.x)||t.x===e.x,o=t.y===(null==e||null==(n=e.labelViewBox)?void 0:n.y)||t.y===e.y;return i&&o}function _(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function D(t,e){var r=t.x===e.x,n=t.y===e.y,i=t.z===e.z;return r&&n&&i}function I(t){var e,r,n,i=t.activeTooltipItem,a=t.graphicalItem,u=t.itemData,l=(T(a,i)?e="trapezoids":k(a,i)?e="sectors":C(a,i)&&(e="points"),e),c=T(a,i)?null==(r=i.tooltipPayload)||null==(r=r[0])||null==(r=r.payload)?void 0:r.payload:k(a,i)?null==(n=i.tooltipPayload)||null==(n=n[0])||null==(n=n.payload)?void 0:n.payload:C(a,i)?i.payload:{},s=u.filter(function(t,e){var r=(0,o.default)(c,t),n=a.props[l].filter(function(t){var e;return(T(a,i)?e=N:k(a,i)?e=_:C(a,i)&&(e=D),e)(t,i)}),u=a.props[l].indexOf(n[n.length-1]);return r&&e===u});return u.indexOf(s[s.length-1])}t.s(["Shape",()=>M,"getActiveShapeIndexForTooltip",()=>I,"isFunnel",()=>T,"isPie",()=>k,"isScatter",()=>C],931732)},568807,t=>{"use strict";var e=t.i(906936),r=t.i(305829),n=t.i(431138),i=t.i(24096),o=t.i(992552),a=t.i(645511),u=t.i(418585),l=t.i(869422),c=t.i(467180),s=t.i(45280),f=t.i(9498),p=t.i(189628),d=t.i(190992),h=t.i(333187);t.i(994068);var y=t.i(340666),v=t.i(931732),m=["x","y"];function g(t){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(){return(b=Object.assign.bind()).apply(this,arguments)}function x(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function O(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?x(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],(i=function(t){var e=function(t,e){if("object"!=g(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=g(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}
1(t,"string");return"symbol"==g(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function w(t,e){var r=t.x,n=t.y,i=function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,m),o=parseInt("".concat(r),10),a=parseInt("".concat(n),10),u=parseInt("".concat(e.height||i.height),10),l=parseInt("".concat(e.width||i.width),10);return O(O(O(O(O({},e),i),o?{x:o}:{}),a?{y:a}:{}),{},{height:u,width:l,name:e.name,radius:e.radius})}function S(t){return e.default.createElement(v.Shape,b({shapeType:"rectangle",propTransformer:w,activeClassName:"recharts-active-bar"},t))}var j=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof t)return t;var i=(0,s.isNumber)(r)||(0,s.isNullish)(r);return i?t(r,n):(i||(0,y.default)(!1),e)}},P=["value","background"];function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function A(){return(A=Object.assign.bind()).apply(this,arguments)}function M(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function T(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?M(Object(r),!0).forEach(function(e){D(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):M(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function k(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,I(n.key),n)}}function C(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(C=function(){return!!t})()}function N(t){return(N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function _(t,e){return(_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function D(t,e,r){return(e=I(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function I(t){var e=function(t,e){if("object"!=E(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=E(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==E(e)?e:e+""}var B=function(t){var l,p;function y(){var t,e,r;if(!(this instanceof y))throw TypeError("Cannot call a class as a function");for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return e=y,r=[].concat(i),e=N(e),D(t=function(t,e){if(e&&("object"===E(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,C()?Reflect.construct(e,r||[],N(this).constructor):e.apply(this,r)),"state",{isAnimationFinished:!1}),D(t,"id",(0,s.uniqueId)("recharts-bar-")),D(t,"handleAnimationEnd",function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()}),D(t,"handleAnimationStart",function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()}),t}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return y.prototype=Object.create(t&&t.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),t&&_(y,t),l=[{key:"renderRectanglesStatically",value:function(t){var r=this,n=this.props,i=n.shape,o=n.dataKey,u=n.activeIndex,l=n.activeBar,c=(0,f.filterProps)(this.props,!1);return t&&t.map(function(t,n){var s=n===u,f=T(T(T({},c),t),{},{isActive:s,option:s?l:i,index:n,dataKey:o,onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd});return e.default.createElement(a.Layer,A({className:"recharts-bar-rectangle"},(0,h.adaptEventsOfChild)(r.props,t,n),{key:"rectangle-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.value,"-").concat(n)}),e.default.createElement(S,f))})}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,r=this.props,i=r.data,o=r.layout,u=r.isAnimationActive,l=r.animationBegin,c=r.animationDuration,f=r.animationEasing,p=r.animationId,d=this.state.prevData;return e.default.createElement(n.default,{begin:l,duration:c,isActive:u,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(r){var n=r.t,u=i.map(function(t,e){var r=d&&d[e];if(r){var i=(0,s.interpolateNumber)(r.x,t.x),a=(0,s.interpolateNumber)(r.y,t.y),u=(0,s.interpolateNumber)(r.width,t.width),l=(0,s.interpolateNumber)(r.height,t.height);return T(T({},t),{},{x:i(n),y:a(n),width:u(n),height:l(n)})}if("horizontal"===o){var c=(0,s.interpolateNumber)(0,t.height)(n);return T(T({},t),{},{y:t.y+t.height-c,height:c})}var f=(0,s.interpolateNumber)(0,t.width)(n);return T(T({},t),{},{width:f})});return e.default.createElement(a.Layer,null,t.renderRectanglesStatically(u))})}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return r&&e&&e.length&&(!n||!(0,i.default)(n,e))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(e)}}
1,{key:"renderBackground",value:function(){var t=this,r=this.props,n=r.data,i=r.dataKey,o=r.activeIndex,a=(0,f.filterProps)(this.props.background,!1);return n.map(function(r,n){r.value;var u=r.background,l=function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(r,P);if(!u)return null;var c=T(T(T(T(T({},l),{},{fill:"#eee"},u),a),(0,h.adaptEventsOfChild)(t.props,r,n)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:i,index:n,className:"recharts-bar-background-rectangle"});return e.default.createElement(S,A({key:"background-bar-".concat(n),option:t.props.background,isActive:n===o},c))})}},{key:"renderErrorBar",value:function(t,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,i=n.data,o=n.xAxis,l=n.yAxis,c=n.layout,s=n.children,p=(0,f.findAllByType)(s,u.ErrorBar);if(!p)return null;var h="vertical"===c?i[0].height/2:i[0].width/2,y=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:(0,d.getValueByDataKey)(t,e)}};return e.default.createElement(a.Layer,{clipPath:t?"url(#clipPath-".concat(r,")"):null},p.map(function(t){return e.default.cloneElement(t,{key:"error-bar-".concat(r,"-").concat(t.props.dataKey),data:i,xAxis:o,yAxis:l,layout:c,offset:h,dataPointFormatter:y})}))}},{key:"render",value:function(){var t=this.props,n=t.hide,i=t.data,u=t.className,l=t.xAxis,s=t.yAxis,f=t.left,p=t.top,d=t.width,h=t.height,y=t.isAnimationActive,v=t.background,m=t.id;if(n||!i||!i.length)return null;var g=this.state.isAnimationFinished,b=(0,r.default)("recharts-bar",u),x=l&&l.allowDataOverflow,O=s&&s.allowDataOverflow,w=x||O,S=(0,o.default)(m)?this.id:m;return e.default.createElement(a.Layer,{className:b},x||O?e.default.createElement("defs",null,e.default.createElement("clipPath",{id:"clipPath-".concat(S)},e.default.createElement("rect",{x:x?f:f-d/2,y:O?p:p-h/2,width:x?d:2*d,height:O?h:2*h}))):null,e.default.createElement(a.Layer,{className:"recharts-bar-rectangles",clipPath:w?"url(#clipPath-".concat(S,")"):null},v?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(w,S),(!y||g)&&c.LabelList.renderCallByParent(this.props,i))}}],p=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],l&&k(y.prototype,l),p&&k(y,p),Object.defineProperty(y,"prototype",{writable:!1}),y}(e.PureComponent);D(B,"displayName","Bar"),D(B,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!p.Global.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),D(B,"getComposedData",function(t){var e=t.props,r=t.item,n=t.barPosition,i=t.bandSize,o=t.xAxis,a=t.yAxis,u=t.xAxisTicks,c=t.yAxisTicks,p=t.stackedData,h=t.dataStartIndex,y=t.displayedData,v=t.offset,m=(0,d.findPositionOfBar)(n,r);if(!m)return null;var g=e.layout,b=r.type.defaultProps,x=void 0!==b?T(T({},b),r.props):r.props,O=x.dataKey,w=x.children,S=x.minPointSize,P="horizontal"===g?a:o,E=p?P.scale.domain():null,A=(0,d.getBaseValueOfBar)({numericAxis:P}),M=(0,f.findAllByType)(w,l.Cell),k=y.map(function(t,e){p?l=(0,d.truncateByDomain)(p[h+e],E):Array.isArray(l=(0,d.getValueByDataKey)(t,O))||(l=[A,l]);var n=j(S,B.defaultProps.minPointSize)(l[1],e);if("horizontal"===g){var l,f,y,v,b,x,w,P=[a.scale(l[0]),a.scale(l[1])],k=P[0],C=P[1];f=(0,d.getCateCoordinateOfBar)({axis:o,ticks:u,bandSize:i,offset:m.offset,entry:t,index:e}),y=null!=(w=null!=C?C:k)?w:void 0,v=m.size;var N=k-C;if(b=Number.isNaN(N)?0:N,x={x:f,y:a.y,width:v,height:a.height},Math.abs(n)>0&&Math.abs(b)<Math.abs(n)){var _=(0,s.mathSign)(b||n)*(Math.abs(n)-Math.abs(b));y-=_,b+=_}}else{var D=[o.scale(l[0]),o.scale(l[1])],I=D[0],L=D[1];if(f=I,y=(0,d.getCateCoordinateOfBar)({axis:a,ticks:c,bandSize:i,offset:m.offset,entry:t,index:e}),v=L-I,b=m.size,x={x:o.x,y:y,width:o.width,height:b},Math.abs(n)>0&&Math.abs(v)<Math.abs(n)){var R=(0,s.mathSign)(v||n)*(Math.abs(n)-Math.abs(v));v+=R}}return T(T(T({},t),{},{x:f,y:y,width:v,height:b,value:p?l:l[1],payload:t,background:x},M&&M[e]&&M[e].props),{},{tooltipPayload:[(0,d.getTooltipItem)(r,t)],tooltipPosition:{x:f+v/2,y:y+b/2}}
1)});return T({data:k,layout:g},v)}),t.s(["Bar",()=>B],568807)},351196,t=>{"use strict";var e=t.i(299742),r=t.i(364861),n=t.i(190992),i=t.i(9498),o=t.i(45280),a=t.i(568807);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,p(n.key),n)}}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach(function(e){f(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function f(t,e,r){return(e=p(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function p(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}var d=function(t,e,r,u,l){var c=t.width,p=t.height,d=t.layout,h=t.children,y=Object.keys(e),v={left:r.left,leftMirror:r.left,right:c-r.right,rightMirror:c-r.right,top:r.top,topMirror:r.top,bottom:p-r.bottom,bottomMirror:p-r.bottom},m=!!(0,i.findChildByType)(h,a.Bar);return y.reduce(function(i,a){var c,p,h,y,g,b=e[a],x=b.orientation,O=b.domain,w=b.padding,S=void 0===w?{}:w,j=b.mirror,P=b.reversed,E="".concat(x).concat(j?"Mirror":"");if("number"===b.type&&("gap"===b.padding||"no-gap"===b.padding)){var A=O[1]-O[0],M=1/0,T=b.categoricalDomain.sort(o.compareValues);if(T.forEach(function(t,e){e>0&&(M=Math.min((t||0)-(T[e-1]||0),M))}),Number.isFinite(M)){var k=M/A,C="vertical"===b.layout?r.height:r.width;if("gap"===b.padding&&(c=k*C/2),"no-gap"===b.padding){var N=(0,o.getPercentValue)(t.barCategoryGap,k*C),_=k*C/2;c=_-N-(_-N)/C*N}}}p="xAxis"===u?[r.left+(S.left||0)+(c||0),r.left+r.width-(S.right||0)-(c||0)]:"yAxis"===u?"horizontal"===d?[r.top+r.height-(S.bottom||0),r.top+(S.top||0)]:[r.top+(S.top||0)+(c||0),r.top+r.height-(S.bottom||0)-(c||0)]:b.range,P&&(p=[p[1],p[0]]);var D=(0,n.parseScale)(b,l,m),I=D.scale,B=D.realScaleType;I.domain(O).range(p),(0,n.checkDomainOfScale)(I);var L=(0,n.getTicksOfScale)(I,s(s({},b),{},{realScaleType:B}));"xAxis"===u?(g="top"===x&&!j||"bottom"===x&&j,h=r.left,y=v[E]-g*b.height):"yAxis"===u&&(g="left"===x&&!j||"right"===x&&j,h=v[E]-g*b.width,y=r.top);var R=s(s(s({},b),L),{},{realScaleType:B,x:h,y:y,scale:I,width:"xAxis"===u?r.width:b.width,height:"yAxis"===u?r.height:b.height});return R.bandSize=(0,n.getBandSizeOfAxis)(R,L),b.hide||"xAxis"!==u?b.hide||(v[E]+=(g?-1:1)*R.width):v[E]+=(g?-1:1)*R.height,s(s({},i),{},f({},a,R))},{})},h=function(t,e){var r=t.x,n=t.y,i=e.x,o=e.y;return{x:Math.min(r,i),y:Math.min(n,o),width:Math.abs(i-r),height:Math.abs(o-n)}},y=function(t){return h({x:t.x1,y:t.y1},{x:t.x2,y:t.y2})},v=function(){var t,e;function r(t){if(!(this instanceof r))throw TypeError("Cannot call a class as a function");this.scale=t}return t=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.bandAware,n=e.position;if(void 0!==t){if(n)switch(n){case"start":default:return this.scale(t);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],e=[{key:"create",value:function(t){return new r(t)}}],t&&l(r.prototype,t),e&&l(r,e),Object.defineProperty(r,"prototype",{writable:!1}),r}();f(v,"EPS",1e-4);var m=function(t){var n=Object.keys(t).reduce(function(e,r){return s(s({},e),{},f({},r,v.create(t[r])))},{});return s(s({},n),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.bandAware,o=r.position;return(0,e.default)(t,function(t,e){return n[e].apply(t,{bandAware:i,position:o})})},isInRange:function(t){return(0,r.default)(t,function(t,e){return n[e].isInRange(t)}
1)}})},g=function(t){var e=t.width,r=t.height,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(n%180+180)%180*Math.PI/180,o=Math.atan(r/e);return Math.abs(i>o&&i<Math.PI-o?r/Math.sin(i):e/Math.cos(i))};t.s(["createLabeledScales",()=>m,"formatAxisMap",()=>d,"getAngledRectangleWidth",()=>g,"rectWithCoords",()=>y,"rectWithPoints",()=>h])},985227,t=>{"use strict";var e=t.i(906936),r=t.i(239660),n=t.i(305829),i=t.i(645511),o=t.i(170441),a=t.i(772679),u=t.i(45280),l=t.i(906252),c=t.i(351196),s=t.i(49341),f=t.i(9498);function p(){return(p=Object.assign.bind()).apply(this,arguments)}function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function y(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?h(Object(r),!0).forEach(function(e){b(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(v=function(){return!!t})()}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function g(t,e){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function b(t,e,r){return(e=x(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function x(t){var e=function(t,e){if("object"!=d(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=d(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==d(e)?e:e+""}var O=function(t){var e=t.x,r=t.y,n=t.xAxis,i=t.yAxis,o=(0,c.createLabeledScales)({x:n.scale,y:i.scale}),a=o.apply({x:e,y:r},{bandAware:!0});return(0,l.ifOverflowMatches)(t,"discard")&&!o.isInRange(a)?null:a},w=function(t){var r;function o(){var t,e;if(!(this instanceof o))throw TypeError("Cannot call a class as a function");return t=o,e=arguments,t=m(t),function(t,e){if(e&&("object"===d(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,v()?Reflect.construct(t,e||[],m(this).constructor):t.apply(this,e))}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return o.prototype=Object.create(t&&t.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),t&&g(o,t),r=[{key:"render",value:function(){var t=this.props,r=t.x,c=t.y,p=t.r,d=t.alwaysShow,h=t.clipPathId,v=(0,u.isNumOrStr)(r),m=(0,u.isNumOrStr)(c);if((0,s.warn)(void 0===d,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!v||!m)return null;var g=O(this.props);if(!g)return null;var b=g.x,x=g.y,w=this.props,S=w.shape,j=w.className,P=y(y({clipPath:(0,l.ifOverflowMatches)(this.props,"hidden")?"url(#".concat(h,")"):void 0},(0,f.filterProps)(this.props,!0)),{},{cx:b,cy:x});return e.default.createElement(i.Layer,{className:(0,n.default)("recharts-reference-dot",j)},o.renderDot(S,P),a.Label.renderCallByParent(this.props,{x:b-p,y:x-p,width:2*p,height:2*p}))}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,x(n.key),n)}}(o.prototype,r),Object.defineProperty(o,"prototype",{writable:!1}),o}(e.default.Component);b(w,"displayName","ReferenceDot"),b(w,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),b(w,"renderDot",function(t,n){return e.default.isValidElement(t)?e.default.cloneElement(t,n):(0,r.default)(t)?t(n):e.default.createElement(o.Dot,p({},n,{cx:n.cx,cy:n.cy,className:"recharts-reference-dot-dot"}))}),t.s(["ReferenceDot",()=>w])},343864,(t,e,r)=>{var n=t.r(407084);e.exports=function(t,e){var r;return n(t,function(t,n,i){return!(r=e(t,n,i))}),!!r}}
1,583621,(t,e,r)=>{var n=t.r(444823),i=t.r(345770),o=t.r(343864),a=t.r(379909),u=t.r(183906);e.exports=function(t,e,r){var l=a(t)?n:o;return r&&u(t,e,r)&&(e=void 0),l(t,i(e,3))}},971826,(t,e,r)=>{var n=t.r(345770),i=t.r(479989),o=t.r(635290);e.exports=function(t){return function(e,r,a){var u=Object(e);if(!i(e)){var l=n(r,3);e=o(e),r=function(t){return l(u[t],t,u)}}var c=t(e,r,a);return c>-1?u[l?e[c]:c]:void 0}}},232360,(t,e,r)=>{e.exports=t.r(971826)(t.r(332441))},431420,t=>{"use strict";t.i(994068);var e=t.i(906936),r=t.i(340666),n=t.i(232360),i=t.i(364861),o=(0,t.i(524567).default)(function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}},function(t){return"l"+t.left+"t"+t.top+"w"+t.width+"h"+t.height}),a=t.i(45280),u=(0,e.createContext)(void 0),l=(0,e.createContext)(void 0),c=(0,e.createContext)(void 0),s=(0,e.createContext)({}),f=(0,e.createContext)(void 0),p=(0,e.createContext)(0),d=(0,e.createContext)(0),h=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,h=t.clipPathId,y=t.children,v=t.width,m=t.height,g=o(a);return e.default.createElement(u.Provider,{value:n},e.default.createElement(l.Provider,{value:i},e.default.createElement(s.Provider,{value:a},e.default.createElement(c.Provider,{value:g},e.default.createElement(f.Provider,{value:h},e.default.createElement(p.Provider,{value:m},e.default.createElement(d.Provider,{value:v},y)))))))},y=function(){return(0,e.useContext)(f)},v=function(t){var n=(0,e.useContext)(u);null==n&&(0,r.default)(!1);var i=n[t];return null==i&&(0,r.default)(!1),i},m=function(){var t=(0,e.useContext)(u);return(0,a.getAnyElementOfObject)(t)},g=function(){var t=(0,e.useContext)(l);return(0,n.default)(t,function(t){return(0,i.default)(t.domain,Number.isFinite)})||(0,a.getAnyElementOfObject)(t)},b=function(t){var n=(0,e.useContext)(l);null==n&&(0,r.default)(!1);var i=n[t];return null==i&&(0,r.default)(!1),i},x=function(){return(0,e.useContext)(c)},O=function(){return(0,e.useContext)(s)},w=function(){return(0,e.useContext)(d)},S=function(){return(0,e.useContext)(p)};t.s(["ChartLayoutContextProvider",()=>h,"useArbitraryXAxis",()=>m,"useChartHeight",()=>S,"useChartWidth",()=>w,"useClipPathId",()=>y,"useOffset",()=>O,"useViewBox",()=>x,"useXAxisOrThrow",()=>v,"useYAxisOrThrow",()=>b,"useYAxisWithFiniteDomainOrRandom",()=>g],431420)},7875,(t,e,r)=>{"use strict";var n=Object.prototype.hasOwnProperty,i="~";function o(){}function a(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function u(t,e,r,n,o){if("function"!=typeof r)throw TypeError("The listener must be a function");var u=new a(r,n||t,o),l=i?i+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],u]:t._events[l].push(u):(t._events[l]=u,t._eventsCount++),t}function l(t,e){0==--t._eventsCount?t._events=new o:delete t._events[e]}function c(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),new o().__proto__||(i=!1)),c.prototype.eventNames=function(){var t,e,r=[];if(0===this._eventsCount)return r;for(e in t=this._events)n.call(t,e)&&r.push(i?e.slice(1):e);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(t)):r},c.prototype.listeners=function(t){var e=i?i+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,o=r.length,a=Array(o);n<o;n++)a[n]=r[n].fn;return a},c.prototype.listenerCount=function(t){var e=i?i+t:t,r=this._events[e];return r?r.fn?1:r.length:0},c.prototype.emit=function(t,e,r,n,o,a){var u=i?i+t:t;if(!this._events[u])return!1;var l,c,s=this._events[u],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(t,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,e),!0;case 3:return s.fn.call(s.context,e,r),!0;case 4:return s.fn.call(s.context,e,r,n),!0;case 5:return s.fn.call(s.context,e,r,n,o),!0;case 6:return s.fn.call(s.context,e,r,n,o,a),!0}for(c=1,l=Array(f-1);c<f;c++)l[c-1]=arguments[c];s.fn.apply(s.context,l)}else{var p,d=s.length;for(c=0;c<d;c++)switch(s[c].once&&this.removeListener(t,s[c].fn,void 0,!0),f){case 1:s[c].fn.call(s[c].context);break;case 2:s[c].fn.call(s[c].context,e);break;case 3:s[c].fn.call(s[c].context,e,r);break;case 4:s[c].fn.call(s[c].context,e,r,n);break;default:if(!l)for(p=1,l=Array(f-1);p<f;p++)l[p-1]=arguments[p];s[c].fn.apply(s[c].context,l)}}return!0},c.prototype.on=function(t,e,r){return u(this,t,e,r,!1)},c.prototype.once=function(t,e,r){return u(this,t,e,r,!0)},c.prototype.removeListener=function(t,e,r,n){var o=i?i+t:t;if(!this._events[o])return this;if(!e)return l(this,o),this;var a=this._events[o];if(a.fn)a.fn!==e||n&&!a.once||r&&a.context!==r||l(this,o);else{for(var u=0,c=[],s=a.length;u<s;u++)(a[u].fn!==e||n&&!a[u].once||r&&a[u].context!==r)&&c.push(a[u]);c.length?this._events[o]=1===c.length?c[0]:c:l(this,o)}return this},c.prototype.removeAllListeners=function(t){var e;return t?(e=i?i+t:t,this._events[e]&&l(this,e)):(this._events=new o,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=i,c.EventEmitter=c,e.exports=c},599241,816681,352322,950285,t=>{"use strict";var e,r,n=t.i(985227),i=t.i(906936),o=t.i(239660),a=t.i(583621),u=t.i(305829),l=t.i(645511),c=t.i(772679),s=t.i(906252),f=t.i(45280),p=t.i(351196),d=t.i(49341),h=t.i(9498),y=t.i(431420);function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(m=function(){return!!t})()}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function b(t,e){return(b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function x(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function O(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?x(Object(r),!0).forEach(function(e){w(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function w(t,e,r){return(e=S(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function S(t){var e=function(t,e){if("object"!=v(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=v(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==v(e)?e:e+""}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function P(){return(P=Object.assign.bind()).apply(this,arguments)}var E=function(t,e){return i.default.isValidElement(t)?i.default.cloneElement(t,e):(0,o.default)(t)?t(e):i.default.createElement("line",P({},e,{className:"recharts-reference-line-line"}))},A=function(t,e,r,n,i,o,u,l,c){var f=i.x,p=i.y,d=i.width,h=i.height;if(r){var y=c.y,v=t.y.apply(y,{position:o});if((0,s.ifOverflowMatches)(c,"discard")&&!t.y.isInRange(v))return null;var m=[{x:f+d,y:v},{x:f,y:v}];return"left"===l?m.reverse():m}if(e){var g=c.x,b=t.x.apply(g,{position:o});if((0,s.ifOverflowMatches)(c,"discard")&&!t.x.isInRange(b))return null;var x=[{x:b,y:p+h},{x:b,y:p}];return"top"===u?x.reverse():x}if(n){var O=c.segment.map(function(e){return t.apply(e,{position:o})});return(0,s.ifOverflowMatches)(c,"discard")&&(0,a.default)(O,function(e){return!t.isInRange(e)})?null:O}return null};function M(t){var e=t.x,r=t.y,n=t.segment,o=t.xAxisId,a=t.yAxisId,v=t.shape,m=t.className,g=t.alwaysShow,b=(0,y.useClipPathId)(),x=(0,y.useXAxisOrThrow)(o),w=(0,y.useYAxisOrThrow)(a),S=(0,y.useViewBox)();if(!b||!S)return null;(0,d.warn)(void 0===g,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var P=A((0,p.createLabeledScales)({x:x.scale,y:w.scale}),(0,f.isNumOrStr)(e),(0,f.isNumOrStr)(r),n&&2===n.length,S,t.position,x.orientation,w.orientation,t);if(!P)return null;var M=function(t){if(Array.isArray(t))return t}(P)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,u=[],l=!0,c=!1;try{o=(r=r.call(t)).next,!1;for(;!(l=(n=o.call(r)).done)&&(u.push(n.value),2!==u.length);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(P,2)||function(t,e){if(t){if("string"==typeof t)return j(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return j(t,2)}}(P,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),T=M[0],k=T.x,C=T.y,N=M[1],_=N.x,D=N.y,I=O(O({clipPath:(0,s.ifOverflowMatches)(t,"hidden")?"url(#".concat(b,")"):void 0},(0,h.filterProps)(t,!0)),{},{x1:k,y1:C,x2:_,y2:D});return i.default.createElement(l.Layer,{className:(0,u.default)("recharts-reference-line",m)},E(v,I),c.Label.renderCallByParent(t,(0,p.rectWithCoords)({x1:k,y1:C,x2:_,y2:D})))}var T=function(t){var e;function r(){var t,e;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,e=arguments,t=g(t),function(t,e){if(e&&("object"===v(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,m()?Reflect.construct(t,e||[],g(this).constructor):t.apply(this,e))}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&b(r,t),e=[{key:"render",value:function(){return i.default.createElement(M,this.props)}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,S(n.key),n)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}(i.default.Component);w(T,"displayName","ReferenceLine"),w(T,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var k=t.i(609749);function C(){return(C=Object.assign.bind()).apply(this,arguments)}function N(t){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function D(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?_(Object(r),!0).forEach(function(e){R(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function I(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(I=function(){return!!t})()}function B(t){return(B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function L(t,e){return(L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function R(t,e,r){return(e=U(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function U(t){var e=function(t,e){if("object"!=N(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=N(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==N(e)?e:e+""}var z=function(t,e,r,n,i){var o=i.x1,a=i.x2,u=i.y1,l=i.y2,c=i.xAxis,f=i.yAxis;if(!c||!f)return null;var d=(0,p.createLabeledScales)({x:c.scale,y:f.scale}),h={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:r?d.y.apply(u,{position:"start"}):d.y.rangeMin},y={x:e?d.x.apply(a,{position:"end"}):d.x.rangeMax,y:n?d.y.apply(l,{position:"end"}):d.y.rangeMax};return!(0,s.ifOverflowMatches)(i,"discard")||d.isInRange(h)&&d.isInRange(y)?(0,p.rectWithPoints)(h,y):null},$=function(t){var e;function r(){var t,e;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,e=arguments,t=B(t),function(t,e){if(e&&("object"===N(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,I()?Reflect.construct(t,e||[],B(this).constructor):t.apply(this,e))}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&L(r,t),e=[{key:"render",value:function(){var t=this.props,e=t.x1,n=t.x2,o=t.y1,a=t.y2,p=t.className,y=t.alwaysShow,v=t.clipPathId;(0,d.warn)(void 0===y,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var m=(0,f.isNumOrStr)(e),g=(0,f.isNumOrStr)(n),b=(0,f.isNumOrStr)(o),x=(0,f.isNumOrStr)(a),O=this.props.shape;if(!m&&!g&&!b&&!x&&!O)return null;var w=z(m,g,b,x,this.props);if(!w&&!O)return null;var S=(0,s.ifOverflowMatches)(this.props,"hidden")?"url(#".concat(v,")"):void 0;return i.default.createElement(l.Layer,{className:(0,u.default)("recharts-reference-area",p)},r.renderRect(O,D(D({clipPath:S},(0,h.filterProps)(this.props,!0)),w)),c.Label.renderCallByParent(this.props,w))}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,U(n.key),n)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}(i.default.Component);function F(t){return function(t){if(Array.isArray(t))return W(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return W(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return W(t,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}R($,"displayName","ReferenceArea"),R($,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),R($,"renderRect",function(t,e){return i.default.isValidElement(t)?i.default.cloneElement(t,e):(0,o.default)(t)?t(e):i.default.createElement(k.Rectangle,C({},e,{className:"recharts-reference-area-rect"}))});var V=function(t,e,r,i,o){var a=(0,h.findAllByType)(t,T),u=(0,h.findAllByType)(t,n.ReferenceDot),l=[].concat(F(a),F(u)),c=(0,h.findAllByType)(t,$),p="".concat(i,"Id"),d=i[0],y=e;if(l.length&&(y=l.reduce(function(t,e){if(e.props[p]===r&&(0,s.ifOverflowMatches)(e.props,"extendDomain")&&(0,f.isNumber)(e.props[d])){var n=e.props[d];return[Math.min(t[0],n),Math.max(t[1],n)]}return t}
1,y)),c.length){var v="".concat(d,"1"),m="".concat(d,"2");y=c.reduce(function(t,e){if(e.props[p]===r&&(0,s.ifOverflowMatches)(e.props,"extendDomain")&&(0,f.isNumber)(e.props[v])&&(0,f.isNumber)(e.props[m])){var n=e.props[v],i=e.props[m];return[Math.min(t[0],n,i),Math.max(t[1],n,i)]}return t},y)}return o&&o.length&&(y=o.reduce(function(t,e){return(0,f.isNumber)(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t},y)),y};t.s(["detectReferenceElementsDomain",()=>V],599241);var H=new(t.i(7875)).default;function X(t){return(X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.s(["SYNC_EVENT",()=>"recharts.syncMouseEvents","eventCenter",()=>H],816681);function q(t,e,r){return(e=G(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function G(t){var e=function(t,e){if("object"!=X(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=X(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==X(e)?e:e+""}var K=(e=function t(){if(!(this instanceof t))throw TypeError("Cannot call a class as a function");q(this,"activeIndex",0),q(this,"coordinateList",[]),q(this,"layout","horizontal")},r=[{key:"setDetails",value:function(t){var e,r=t.coordinateList,n=void 0===r?null:r,i=t.container,o=void 0===i?null:i,a=t.layout,u=void 0===a?null:a,l=t.offset,c=void 0===l?null:l,s=t.mouseHandlerCallback,f=void 0===s?null:s;this.coordinateList=null!=(e=null!=n?n:this.coordinateList)?e:[],this.container=null!=o?o:this.container,this.layout=null!=u?u:this.layout,this.offset=null!=c?c:this.offset,this.mouseHandlerCallback=null!=f?f:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(t){if(0!==this.coordinateList.length)switch(t.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(t){this.activeIndex=t}},{key:"spoofMouse",value:function(){if("horizontal"===this.layout&&0!==this.coordinateList.length){var t,e,r=this.container.getBoundingClientRect(),n=r.x,i=r.y,o=r.height,a=this.coordinateList[this.activeIndex].coordinate,u=(null==(t=window)?void 0:t.scrollX)||0,l=(null==(e=window)?void 0:e.scrollY)||0,c=i+this.offset.top+o/2+l;this.mouseHandlerCallback({pageX:n+a+u,pageY:c})}}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,G(n.key),n)}}(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e);function Y(t,e,r){if("number"===r&&!0===e&&Array.isArray(t)){var n=null==t?void 0:t[0],i=null==t?void 0:t[1];if(n&&i&&(0,f.isNumber)(n)&&(0,f.isNumber)(i))return!0}return!1}t.s(["AccessibilityManager",()=>K],352322),t.s(["isDomainSpecifiedByUser",()=>Y],950285)},929458,t=>{"use strict";function e(t){this._context=t}e.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(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},t.s(["default",0,function(t){return new e(t)}])},477546,117111,423641,888278,816905,653156,388643,775086,619539,5639,953309,391293,744595,722625,573694,t=>{"use strict";var e=t.i(87808),r=t.i(59953),n=t.i(929458),i=t.i(464390);function o(t){return t[0]}function a(t){return t[1]}
1function u(t,u){var l=(0,r.default)(!0),c=null,s=n.default,f=null,p=(0,i.withPath)(d);function d(r){var n,i,o,a=(r=(0,e.default)(r)).length,d=!1;for(null==c&&(f=s(o=p())),n=0;n<=a;++n)!(n<a&&l(i=r[n],n,r))===d&&((d=!d)?f.lineStart():f.lineEnd()),d&&f.point(+t(i,n,r),+u(i,n,r));if(o)return f=null,o+""||null}return t="function"==typeof t?t:void 0===t?o:(0,r.default)(t),u="function"==typeof u?u:void 0===u?a:(0,r.default)(u),d.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,r.default)(+e),d):t},d.y=function(t){return arguments.length?(u="function"==typeof t?t:(0,r.default)(+t),d):u},d.defined=function(t){return arguments.length?(l="function"==typeof t?t:(0,r.default)(!!t),d):l},d.curve=function(t){return arguments.length?(s=t,null!=c&&(f=s(c)),d):s},d.context=function(t){return arguments.length?(null==t?c=f=null:f=s(c=t),d):c},d}function l(){}function c(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function s(t){this._context=t}function f(t){this._context=t}function p(t){this._context=t}t.s(["line",0,u],477546),t.s(["area",0,function(t,l,c){var s=null,f=(0,r.default)(!0),p=null,d=n.default,h=null,y=(0,i.withPath)(v);function v(r){var n,i,o,a,u,v=(r=(0,e.default)(r)).length,m=!1,g=Array(v),b=Array(v);for(null==p&&(h=d(u=y())),n=0;n<=v;++n){if(!(n<v&&f(a=r[n],n,r))===m)if(m=!m)i=n,h.areaStart(),h.lineStart();else{for(h.lineEnd(),h.lineStart(),o=n-1;o>=i;--o)h.point(g[o],b[o]);h.lineEnd(),h.areaEnd()}m&&(g[n]=+t(a,n,r),b[n]=+l(a,n,r),h.point(s?+s(a,n,r):g[n],c?+c(a,n,r):b[n]))}if(u)return h=null,u+""||null}function m(){return u().defined(f).curve(d).context(p)}return t="function"==typeof t?t:void 0===t?o:(0,r.default)(+t),l="function"==typeof l?l:void 0===l?(0,r.default)(0):(0,r.default)(+l),c="function"==typeof c?c:void 0===c?a:(0,r.default)(+c),v.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,r.default)(+e),s=null,v):t},v.x0=function(e){return arguments.length?(t="function"==typeof e?e:(0,r.default)(+e),v):t},v.x1=function(t){return arguments.length?(s=null==t?null:"function"==typeof t?t:(0,r.default)(+t),v):s},v.y=function(t){return arguments.length?(l="function"==typeof t?t:(0,r.default)(+t),c=null,v):l},v.y0=function(t){return arguments.length?(l="function"==typeof t?t:(0,r.default)(+t),v):l},v.y1=function(t){return arguments.length?(c=null==t?null:"function"==typeof t?t:(0,r.default)(+t),v):c},v.lineX0=v.lineY0=function(){return m().x(t).y(l)},v.lineY1=function(){return m().x(t).y(c)},v.lineX1=function(){return m().x(s).y(l)},v.defined=function(t){return arguments.length?(f="function"==typeof t?t:(0,r.default)(!!t),v):f},v.curve=function(t){return arguments.length?(d=t,null!=p&&(h=d(p)),v):d},v.context=function(t){return arguments.length?(null==t?p=h=null:h=d(p=t),v):p},v}],117111),s.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:c(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(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:c(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},f.prototype={areaStart:l,areaEnd:l,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(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:c(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},t.s(["curveBasisClosed",0,function(t){return new f(t)}
1],423641),p.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(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:c(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},t.s(["curveBasisOpen",0,function(t){return new p(t)}],888278),t.s(["curveBasis",0,function(t){return new s(t)}],816905);class d{constructor(t,e){this._context=t,this._x=e}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(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function h(t){return new d(t,!0)}function y(t){return new d(t,!1)}function v(t){this._context=t}t.s(["curveBumpX",()=>h],653156),t.s(["curveBumpY",()=>y],388643),v.prototype={areaStart:l,areaEnd:l,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t*=1,e*=1,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},t.s(["curveLinearClosed",0,function(t){return new v(t)}
1],775086);function m(t,e,r){var n=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(n||i<0&&-0),a=(r-t._y1)/(i||n<0&&-0);return((o<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs((o*i+a*n)/(n+i)))||0}function g(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function b(t,e,r){var n=t._x0,i=t._y0,o=t._x1,a=t._y1,u=(o-n)/3;t._context.bezierCurveTo(n+u,i+u*e,o-u,a-u*r,o,a)}function x(t){this._context=t}function O(t){this._context=new w(t)}function w(t){this._context=t}function S(t){return new x(t)}function j(t){return new O(t)}function P(t){this._context=t}function E(t){var e,r,n=t.length-1,i=Array(n),o=Array(n),a=Array(n);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<n-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=i[e]/o[e-1],o[e]-=r,a[e]-=r*a[e-1];for(i[n-1]=a[n-1]/o[n-1],e=n-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(e=0,o[n-1]=(t[n]+i[n-1])/2;e<n-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function A(t,e){this._context=t,this._t=e}function M(t){return new A(t,0)}function T(t){return new A(t,1)}t.s(["curveLinear",()=>n.default],619539),x.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:b(this,this._t0,g(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e*=1,(t*=1)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,b(this,g(this,r=m(this,t,e)),r);break;default:b(this,this._t0,r=m(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(O.prototype=Object.create(x.prototype)).point=function(t,e){x.prototype.point.call(this,e,t)},w.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,i,o){this._context.bezierCurveTo(e,t,n,r,o,i)}},t.s(["curveMonotoneX",()=>S],5639),t.s(["curveMonotoneY",()=>j],953309),P.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=E(t),i=E(e),o=0,a=1;a<r;++o,++a)this._context.bezierCurveTo(n[0][o],i[0][o],n[1][o],i[1][o],t[a],e[a]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},t.s(["curveNatural",0,function(t){return new P(t)}],391293),A.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(t,e){switch(t*=1,e*=1,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}},t.s(["curveStep",0,function(t){return new A(t,.5)}],744595),t.s(["curveStepAfter",()=>T],722625),t.s(["curveStepBefore",()=>M],573694)},406554,t=>{"use strict";var e=t.i(906936);t.i(830952);var r=t.i(477546),n=t.i(117111),i=t.i(423641),o=t.i(888278),a=t.i(816905),u=t.i(653156),l=t.i(388643),c=t.i(775086),s=t.i(619539),f=t.i(5639),p=t.i(953309),d=t.i(391293),h=t.i(744595),y=t.i(722625),v=t.i(573694),m=t.i(838299),g=t.i(239660),b=t.i(305829),x=t.i(333187),O=t.i(9498),w=t.i(45280);function S(t){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(){return(j=Object.assign.bind()).apply(this,arguments)}function P(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function E(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?P(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],(i=function(t){var e=function(t,e){if("object"!=S(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=S(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==S(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var A={curveBasisClosed:i.curveBasisClosed,curveBasisOpen:o.curveBasisOpen,curveBasis:a.curveBasis,curveBumpX:u.curveBumpX,curveBumpY:l.curveBumpY,curveLinearClosed:c.curveLinearClosed,curveLinear:s.curveLinear,curveMonotoneX:f.curveMonotoneX,curveMonotoneY:p.curveMonotoneY,curveNatural:d.curveNatural,curveStep:h.curveStep,curveStepAfter:y.curveStepAfter,curveStepBefore:v.curveStepBefore},M=function(t){return t.x===+t.x&&t.y===+t.y},T=function(t){return t.x},k=function(t){return t.y},C=function(t,e){if((0,g.default)(t))return t;var r="curve".concat((0,m.default)(t));return("curveMonotone"===r||"curveBump"===r)&&e?A["".concat(r).concat("vertical"===e?"Y":"X")]:A[r]||s.curveLinear},N=function(t){var e,i=t.type,o=t.points,a=void 0===o?[]:o,u=t.baseLine,l=t.layout,c=t.connectNulls,s=void 0!==c&&c,f=C(void 0===i?"linear":i,l),p=s?a.filter(function(t){return M(t)}):a;if(Array.isArray(u)){var d=s?u.filter(function(t){return M(t)}):u,h=p.map(function(t,e){return E(E({},t),{},{base:d[e]})});return(e="vertical"===l?(0,n.area)().y(k).x1(T).x0(function(t){return t.base.x}):(0,n.area)().x(T).y1(k).y0(function(t){return t.base.y})).defined(M).curve(f),e(h)}return(e="vertical"===l&&(0,w.isNumber)(u)?(0,n.area)().y(k).x1(T).x0(u):(0,w.isNumber)(u)?(0,n.area)().x(T).y1(k).y0(u):(0,r.line)().x(T).y(k)).defined(M).curve(f),e(p)},_=function(t){var r=t.className,n=t.points,i=t.path,o=t.pathRef;if((!n||!n.length)&&!i)return null;var a=n&&n.length?N(t):i;return e.createElement("path",j({},(0,O.filterProps)(t,!1),(0,x.adaptEventHandlers)(t),{className:(0,b.default)("recharts-curve",r),d:a,ref:o}))};t.s(["Curve",()=>_])},488262,t=>{"use strict";t.i(994068);var e=t.i(906936),r=t.i(992552),n=t.i(239660),i=t.i(557457),o=t.i(15233),a=t.i(276026),u=t.i(178218),l=t.i(305829),c=t.i(340666),s=t.i(606206),f=t.i(645511),p=t.i(96222),d=t.i(236814),h=t.i(170441),y=t.i(609749),v=t.i(9498),m=t.i(277486),g=t.i(795497),b=t.i(45280),x=t.i(190992),O=t.i(442504),w=t.i(599241),S=t.i(134494),j=t.i(339244),P=t.i(816681),E=t.i(333187),A=t.i(352322),M=t.i(950285),T=t.i(931732),k=t.i(406554);function C(t){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var N=["x","y","top","left","width","height","className"];function _(){return(_=Object.assign.bind()).apply(this,arguments)}function D(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}var I=function(t){var r=t.x,n=void 0===r?0:r,i=t.y,o=void 0===i?0:i,a=t.top,u=void 0===a?0:a,c=t.left,s=void 0===c?0:c,f=t.width,p=void 0===f?0:f,d=t.height,h=void 0===d?0:d,y=t.className,m=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?D(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],(i=function(t){var e=function(t,e){if("object"!=C(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=C(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==C(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):D(Object(r)).forEac
1h(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({x:n,y:o,top:u,left:s,width:p,height:h},function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,N));return(0,b.isNumber)(n)&&(0,b.isNumber)(o)&&(0,b.isNumber)(p)&&(0,b.isNumber)(h)&&(0,b.isNumber)(u)&&(0,b.isNumber)(s)?e.default.createElement("path",_({},(0,v.filterProps)(m,!0),{className:(0,l.default)("recharts-cross",y),d:"M".concat(n,",").concat(u,"v").concat(h,"M").concat(s,",").concat(o,"h").concat(p)})):null};function B(t){var e=t.cx,r=t.cy,n=t.radius,i=t.startAngle,o=t.endAngle;return{points:[(0,S.polarToCartesian)(e,r,n,i),(0,S.polarToCartesian)(e,r,n,o)],cx:e,cy:r,radius:n,startAngle:i,endAngle:o}}var L=t.i(733055);function R(t){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function U(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function z(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?U(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],(i=function(t){var e=function(t,e){if("object"!=R(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=R(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==R(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):U(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function $(t){var r,n,i,o,a=t.element,u=t.tooltipEventType,c=t.isActive,s=t.activeCoordinate,f=t.activePayload,p=t.offset,d=t.activeTooltipIndex,h=t.tooltipAxisBandSize,m=t.layout,g=t.chartName,b=null!=(n=a.props.cursor)?n:null==(i=a.type.defaultProps)?void 0:i.cursor;if(!a||!b||!c||!s||"ScatterChart"!==g&&"axis"!==u)return null;var x=k.Curve;if("ScatterChart"===g)o=s,x=I;else if("BarChart"===g)r=h/2,o={stroke:"none",fill:"#ccc",x:"horizontal"===m?s.x-r:p.left+.5,y:"horizontal"===m?p.top+.5:s.y-r,width:"horizontal"===m?h:p.width-1,height:"horizontal"===m?p.height-1:h},x=y.Rectangle;else if("radial"===m){var O=B(s),w=O.cx,j=O.cy,P=O.radius;o={cx:w,cy:j,startAngle:O.startAngle,endAngle:O.endAngle,innerRadius:P,outerRadius:P},x=L.Sector}else o={points:function(t,e,r){var n,i,o,a;if("horizontal"===t)o=n=e.x,i=r.top,a=r.top+r.height;else if("vertical"===t)a=i=e.y,n=r.left,o=r.left+r.width;else if(null!=e.cx&&null!=e.cy)if("centric"!==t)return B(e);else{var u=e.cx,l=e.cy,c=e.innerRadius,s=e.outerRadius,f=e.angle,p=(0,S.polarToCartesian)(u,l,c,f),d=(0,S.polarToCartesian)(u,l,s,f);n=p.x,i=p.y,o=d.x,a=d.y}return[{x:n,y:i},{x:o,y:a}]}(m,s,p)},x=k.Curve;var E=z(z(z(z({stroke:"#ccc",pointerEvents:"none"},p),o),(0,v.filterProps)(b,!1)),{},{payload:f,payloadIndex:d,className:(0,l.default)("recharts-tooltip-cursor",b.className)});return(0,e.isValidElement)(b)?(0,e.cloneElement)(b,E):(0,e.createElement)(x,E)}var F=t.i(431420),W=["item"],V=["children","className","width","height","style","compact","title","desc"];function H(t){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function X(){return(X=Object.assign.bind()).apply(this,arguments)}function q(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,u=[],l=!0,c=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;
1!(l=(n=o.call(r)).done)&&(u.push(n.value),u.length!==e);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(t,e)||Q(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r={};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if(e.indexOf(n)>=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function K(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(K=function(){return!!t})()}function Y(t){return(Y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Z(t,e){return(Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function J(t){return function(t){if(Array.isArray(t))return tt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Q(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Q(t,e){if(t){if("string"==typeof t)return tt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tt(t,e)}}function tt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function te(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function tr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?te(Object(r),!0).forEach(function(e){tn(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):te(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function tn(t,e,r){return(e=ti(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ti(t){var e=function(t,e){if("object"!=H(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=H(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==H(e)?e:e+""}var to={xAxis:["bottom","top"],yAxis:["left","right"]},ta={width:"100%",height:"100%"},tu={x:0,y:0};function tl(t){return t}var tc=function(t,e,r,n){var i=e.find(function(t){return t&&t.index===r});if(i){if("horizontal"===t)return{x:i.coordinate,y:n.y};if("vertical"===t)return{x:n.x,y:i.coordinate};if("centric"===t){var o=i.coordinate,a=n.radius;return tr(tr(tr({},n),(0,S.polarToCartesian)(n.cx,n.cy,a,o)),{},{angle:o,radius:a})}var u=i.coordinate,l=n.angle;return tr(tr(tr({},n),(0,S.polarToCartesian)(n.cx,n.cy,u,l)),{},{angle:l,radius:u})}return tu},ts=function(t,e){var r=e.graphicalItems,n=e.dataStartIndex,i=e.dataEndIndex,o=(null!=r?r:[]).reduce(function(t,e){var r=e.props.data;return r&&r.length?[].concat(J(t),J(r)):t},[]);return o.length>0?o:t&&t.length&&(0,b.isNumber)(n)&&(0,b.isNumber)(i)?t.slice(n,i+1):[]};function tf(t){return"number"===t?[0,"auto"]:void 0}var tp=function(t,e,r,n){var i=t.graphicalItems,o=t.tooltipAxis,a=ts(e,t);return r<0||!i||!i.length||r>=a.length?null:i.reduce(function(i,u){var l,c,s=null!=(l=u.props.data)?l:e;if(s&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),o.dataKey&&!o.allowDuplicatedCategory){var f=void 0===s?a:s;c=(0,b.findEntryInArray)(f,o.dataKey,n)}else c=s&&s[r]||a[r];return c?[].concat(J(i),[(0,x.getTooltipItem)(u,c)]):i},[])},td=function(t,e,r,n){var i=n||{x:t.chartX,y:t.chartY},o="horizontal"===r?i.x:"vertical"===r?i.y:"centric"===r?i.angle:i.radius,a=t.orderedTooltipTicks,u=t.tooltipAxis,l=t.tooltipTicks,c=(0,x.calculateActiveTickIndex)(o,a,l,u);if(c>=0&&l){var s=l[c]&&l[c].value,f=tp(t,e,c,s),p=tc(r,a,c,i);return{activeTooltipIndex:c,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},th=function(t,e){var n=e.axes,o=e.graphicalItems,a=e.axisType,u=e.axisIdKey,l=e.stackGroups,c=e.dataStartIndex,s=e.dataEndIndex,f=t.layout,p=t.children,d=t.stackOffset,h=(0,x.isCategoricalAxis)(f,a);
1return n.reduce(function(e,n){var y=void 0!==n.type.defaultProps?tr(tr({},n.type.defaultProps),n.props):n.props,v=y.type,m=y.dataKey,g=y.allowDataOverflow,O=y.allowDuplicatedCategory,S=y.scale,j=y.ticks,P=y.includeHidden,E=y[u];if(e[E])return e;var A=ts(t.data,{graphicalItems:o.filter(function(t){var e;return(u in t.props?t.props[u]:null==(e=t.type.defaultProps)?void 0:e[u])===E}),dataStartIndex:c,dataEndIndex:s}),T=A.length;(0,M.isDomainSpecifiedByUser)(y.domain,g,v)&&(N=(0,x.parseSpecifiedDomain)(y.domain,null,g),h&&("number"===v||"auto"!==S)&&(D=(0,x.getDomainOfDataByKey)(A,m,"category")));var k=tf(v);if(!N||0===N.length){var C,N,_,D,I,B=null!=(I=y.domain)?I:k;if(m){if(N=(0,x.getDomainOfDataByKey)(A,m,v),"category"===v&&h){var L=(0,b.hasDuplicate)(N);O&&L?(_=N,N=(0,i.default)(0,T)):O||(N=(0,x.parseDomainOfCategoryAxis)(B,N,n).reduce(function(t,e){return t.indexOf(e)>=0?t:[].concat(J(t),[e])},[]))}else if("category"===v)N=O?N.filter(function(t){return""!==t&&!(0,r.default)(t)}):(0,x.parseDomainOfCategoryAxis)(B,N,n).reduce(function(t,e){return t.indexOf(e)>=0||""===e||(0,r.default)(e)?t:[].concat(J(t),[e])},[]);else if("number"===v){var R=(0,x.parseErrorBarsOfAxis)(A,o.filter(function(t){var e,r,n=u in t.props?t.props[u]:null==(e=t.type.defaultProps)?void 0:e[u],i="hide"in t.props?t.props.hide:null==(r=t.type.defaultProps)?void 0:r.hide;return n===E&&(P||!i)}),m,a,f);R&&(N=R)}h&&("number"===v||"auto"!==S)&&(D=(0,x.getDomainOfDataByKey)(A,m,"category"))}else N=h?(0,i.default)(0,T):l&&l[E]&&l[E].hasStack&&"number"===v?"expand"===d?[0,1]:(0,x.getDomainOfStackGroups)(l[E].stackGroups,c,s):(0,x.getDomainOfItemsWithSameAxis)(A,o.filter(function(t){var e=u in t.props?t.props[u]:t.type.defaultProps[u],r="hide"in t.props?t.props.hide:t.type.defaultProps.hide;return e===E&&(P||!r)}),v,f,!0);"number"===v?(N=(0,w.detectReferenceElementsDomain)(p,N,E,a,j),B&&(N=(0,x.parseSpecifiedDomain)(B,N,g))):"category"===v&&B&&N.every(function(t){return B.indexOf(t)>=0})&&(N=B)}return tr(tr({},e),{},tn({},E,tr(tr({},y),{},{axisType:a,domain:N,categoricalDomain:D,duplicateDomain:_,originalDomain:null!=(C=y.domain)?C:k,isCategorical:h,layout:f})))},{})},ty=function(t,e){var r=e.graphicalItems,n=e.Axis,a=e.axisType,u=e.axisIdKey,l=e.stackGroups,c=e.dataStartIndex,s=e.dataEndIndex,f=t.layout,p=t.children,d=ts(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:s}),h=d.length,y=(0,x.isCategoricalAxis)(f,a),v=-1;return r.reduce(function(t,e){var m,g=(void 0!==e.type.defaultProps?tr(tr({},e.type.defaultProps),e.props):e.props)[u],b=tf("number");return t[g]?t:(v++,y?m=(0,i.default)(0,h):(m=l&&l[g]&&l[g].hasStack?(0,x.getDomainOfStackGroups)(l[g].stackGroups,c,s):(0,x.parseSpecifiedDomain)(b,(0,x.getDomainOfItemsWithSameAxis)(d,r.filter(function(t){var e,r,n=u in t.props?t.props[u]:null==(e=t.type.defaultProps)?void 0:e[u],i="hide"in t.props?t.props.hide:null==(r=t.type.defaultProps)?void 0:r.hide;return n===g&&!i}),"number",f),n.defaultProps.allowDataOverflow),m=(0,w.detectReferenceElementsDomain)(p,m,g,a)),tr(tr({},t),{},tn({},g,tr(tr({axisType:a},n.defaultProps),{},{hide:!0,orientation:(0,o.default)(to,"".concat(a,".").concat(v%2),null),domain:m,originalDomain:b,isCategorical:y,layout:f}))))},{})},tv=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,i=e.AxisComp,o=e.graphicalItems,a=e.stackGroups,u=e.dataStartIndex,l=e.dataEndIndex,c=t.children,s="".concat(n,"Id"),f=(0,v.findAllByType)(c,i),p={};return f&&f.length?p=th(t,{axes:f,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:l}):o&&o.length&&(p=ty(t,{Axis:i,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:u,dataEndIndex:l})),p},tm=function(t){var e=(0,b.getAnyElementOfObject)(t),r=(0,x.getTicksOfAxis)(e,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:(0,a.default)(r,function(t){return t.coordinate}),tooltipAxis:e,tooltipAxisBandSize:(0,x.getBandSizeOfAxis)(e,r)}},tg=function(t){var e=t.children,r=t.defaultShowTooltip,n=(0,v.findChildByType)(e,m.Brush),i=0,o=0;return t.data&&0!==t.data.length&&(o=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(i=n.props.startIndex),n.props.endIndex>=0&&(o=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!r}},tb=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},tx=function(t,e){var r=t.props,n=t.graphicalItems,i=t.xAxisMap,a=void 0===i?{}:i,u=t.yAxisMap,l=void 0===u?{}:u,c=r.width,s=r.height,f=r.children,p=r.margin||{},h=(0,v.findChildByType)(f,m.Brush),y=(0,v.findChildByType)(f,d.Legend),g=Object.keys(l).reduce(function(t,e){var r=l[e],n=r.orientation;return r.mirror||r.hide?t:tr(tr({},t),{},tn({},n,t[n]+r.width))},{left:p.left||0,right:p.right||0}),b=Object.keys(a).reduce(function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:tr(tr({},t),{},tn({},n,(0,o.default)(t,"".concat(n))+r.height))},{top:p.top||0,bottom:p.bottom||0}),O=tr(tr({},b),g),w=O.bottom;h&&(O.bottom+=h.props.height||m.Brush.defaultProps.height),y&&e&&(O=(0,x.appendOffsetOfLegend)(O,n,r,e));var S=c-O.left-O.right,j=s-O.top-O.bottom;return tr(tr({brushBottom:w},O),{},{width:Math.max(S,0),height:Math.max(j,0)})}
1,tO=function(t){var i=t.chartName,a=t.GraphicalChild,d=t.defaultTooltipEventType,w=void 0===d?"axis":d,M=t.validateTooltipEventTypes,k=void 0===M?["axis"]:M,C=t.axisComponents,N=t.legendContent,_=t.formatAxisMap,D=t.defaultProps,I=function(t,e){var n=e.graphicalItems,i=e.stackGroups,o=e.offset,a=e.updateId,u=e.dataStartIndex,l=e.dataEndIndex,s=t.barSize,f=t.layout,p=t.barGap,d=t.barCategoryGap,h=t.maxBarSize,y=tb(f),m=y.numericAxisName,g=y.cateAxisName,b=!!n&&!!n.length&&n.some(function(t){var e=(0,v.getDisplayName)(t&&t.type);return e&&e.indexOf("Bar")>=0}),O=[];return n.forEach(function(n,y){var w=ts(t.data,{graphicalItems:[n],dataStartIndex:u,dataEndIndex:l}),S=void 0!==n.type.defaultProps?tr(tr({},n.type.defaultProps),n.props):n.props,j=S.dataKey,P=S.maxBarSize,E=S["".concat(m,"Id")],A=S["".concat(g,"Id")],M=C.reduce(function(t,r){var n=e["".concat(r.axisType,"Map")],i=S["".concat(r.axisType,"Id")];n&&n[i]||"zAxis"===r.axisType||(0,c.default)(!1);var o=n[i];return tr(tr({},t),{},tn(tn({},r.axisType,o),"".concat(r.axisType,"Ticks"),(0,x.getTicksOfAxis)(o)))},{}),T=M[g],k=M["".concat(g,"Ticks")],N=i&&i[E]&&i[E].hasStack&&(0,x.getStackedDataOfItem)(n,i[E].stackGroups),_=(0,v.getDisplayName)(n.type).indexOf("Bar")>=0,D=(0,x.getBandSizeOfAxis)(T,k),I=[],B=b&&(0,x.getBarSizeList)({barSize:s,stackGroups:i,totalSize:"xAxis"===g?M[g].width:"yAxis"===g?M[g].height:void 0});if(_){var L,R,U=(0,r.default)(P)?h:P,z=null!=(L=null!=(R=(0,x.getBandSizeOfAxis)(T,k,!0))?R:U)?L:0;I=(0,x.getBarPosition)({barGap:p,barCategoryGap:d,bandSize:z!==D?z:D,sizeList:B[A],maxBarSize:U}),z!==D&&(I=I.map(function(t){return tr(tr({},t),{},{position:tr(tr({},t.position),{},{offset:t.position.offset-z/2})})}))}var $=n&&n.type&&n.type.getComposedData;$&&O.push({props:tr(tr({},$(tr(tr({},M),{},{displayedData:w,props:t,dataKey:j,item:n,bandSize:D,barPosition:I,offset:o,stackedData:N,layout:f,dataStartIndex:u,dataEndIndex:l}))),{},tn(tn(tn({key:n.key||"item-".concat(y)},m,M[m]),g,M[g]),"animationId",a)),childIndex:(0,v.parseChildIndex)(n,t.children),item:n})}),O},B=function(t,e){var r=t.props,n=t.dataStartIndex,o=t.dataEndIndex,u=t.updateId;if(!(0,v.validateWidthHeight)({props:r}))return null;var l=r.children,c=r.layout,s=r.stackOffset,f=r.data,p=r.reverseStackOrder,d=tb(c),h=d.numericAxisName,y=d.cateAxisName,m=(0,v.findAllByType)(l,a),g=(0,x.getStackGroupsByAxisId)(f,m,"".concat(h,"Id"),"".concat(y,"Id"),s,p),b=C.reduce(function(t,e){var i="".concat(e.axisType,"Map");return tr(tr({},t),{},tn({},i,tv(r,tr(tr({},e),{},{graphicalItems:m,stackGroups:e.axisType===h&&g,dataStartIndex:n,dataEndIndex:o}))))},{}),O=tx(tr(tr({},b),{},{props:r,graphicalItems:m}),null==e?void 0:e.legendBBox);Object.keys(b).forEach(function(t){b[t]=_(r,b[t],O,t.replace("Map",""),i)});var w=tm(b["".concat(y,"Map")]),S=I(r,tr(tr({},b),{},{dataStartIndex:n,dataEndIndex:o,updateId:u,graphicalItems:m,stackGroups:g,offset:O}));return tr(tr({formattedGraphicalItems:S,graphicalItems:m,offset:O,stackGroups:g},w),b)},L=function(t){var a;function c(t){var a,s,f,d,h;if(!(this instanceof c))throw TypeError("Cannot call a class as a function");return d=c,h=[t],d=Y(d),tn(f=function(t,e){if(e&&("object"===H(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");var r=t;if(void 0===r)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(this,K()?Reflect.construct(d,h||[],Y(this).constructor):d.apply(this,h)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),tn(f,"accessibilityManager",new A.AccessibilityManager),tn(f,"handleLegendBBoxUpdate",function(t){if(t){var e=f.state,r=e.dataStartIndex,n=e.dataEndIndex,i=e.updateId;f.setState(tr({legendBBox:t},B({props:f.props,dataStartIndex:r,dataEndIndex:n,updateId:i},tr(tr({},f.state),{},{legendBBox:t}))))}}),tn(f,"handleReceiveSyncEvent",function(t,e,r){f.props.syncId===t&&(r!==f.eventEmitterSymbol||"function"==typeof f.props.syncMethod)&&f.applySyncEvent(e)}),tn(f,"handleBrushChange",function(t){var e=t.startIndex,r=t.endIndex;if(e!==f.state.dataStartIndex||r!==f.state.dataEndIndex){var n=f.state.updateId;f.setState(function(){return tr({dataStartIndex:e,dataEndIndex:r},B({props:f.props,dataStartIndex:e,dataEndIndex:r,updateId:n},f.state))}),f.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}}),tn(f,"handleMouseEnter",function(t){var e=f.getMouseInfo(t);if(e){var r=tr(tr({},e),{},{isTooltipActive:!0});f.setState(r),f.triggerSyncEvent(r);var i=f.props.onMouseEnter;(0,n.default)(i)&&i(r,t)}}),tn(f,"triggeredAfterMouseMove",function(t){var e=f.getMouseInfo(t),r=e?tr(tr({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};f.setState(r),f.triggerSyncEvent(r);var i=f.props.onMouseMove;(0,n.default)(i)&&i(r,t)}),tn(f,"handleItemMouseEnter",function(t){f.setState(function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}})}),tn(f,"handleItemMouseLeave",function(){f.setState(function(){return{isTooltipActive:!1}})}),tn(f,"handleMouseMove",function(t){t.persist(),f.throttleTriggeredAfterMouseMove(t)}),tn(f,"handleMouseLeave",function(t){f.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};f.setState(e),f.triggerSyncEvent(e);var r=f.props.onMouseLeave;(0,n.default)(r)&&r(e,t)}),tn(f,"handleOuterEvent",function(t){var e,r=(0,v.getReactEventByType)(t),i=(0,o.default)(f.props,"".concat(r));r&&(0,n.default)(i)&&i(null!=(e=/.*touch.*/i.test(r)?f.getMouseInfo(t.changedTouches[0]):f.getMouseInfo(t))?e:{},t)}),tn(f,"handleClick",function(t){var e=f.getMouseInfo(t);if(e){var r=tr(tr({},e),{},{isTooltipActive:!0});f.setState(r),f.triggerSyncEvent(r);var i=f.props.onClick;(0,n.default)(i)&&i(r,t)}}),tn(f,"handleMouseDown",function(t){var e=f.props.onMouseDown;(0,n.default)(e)&&e(f.getMouseInfo(t),t)}),tn(f,"handleMouseUp",function(t){var e=f.props.onMouseUp;(0,n.default)(e)&&e(f.getMouseInfo(t),t)}),tn(f,"handleTouchMove",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&f.throttleTriggeredAfterMouseMove(t.changedTouches[0])}),tn(f,"handleTouchStart",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&f.handleMouseDown(t.changedTouches[0])}),tn(f,"handleTouchEnd",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&f.handleMouseUp(t.changedTouches[0])}),tn(f,"handleDoubleClick",function(t){var e=f.props.onDoubleClick;(0,n.default)(e)&&e(f.getMouseInfo(t),t)}),tn(f,"handleContextMenu",function(t){var e=f.props.onContextMenu;(0,n.default)(e)&&e(f.getMouseInfo(t),t)}),tn(f,"triggerSyncEvent",function(t){void 0!==f.props.syncId&&P.eventCenter.emit(P.SYNC_EVENT,f.props.syncId,t,f.eventEmitterSymbol)}),tn(f,"applySyncEvent",function(t){var e=f.props,r=e.layout,n=e.syncMethod,i=f.state.updateId,o=t.dataStartIndex,a=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)f.setState(tr({dataStartIndex:o,dataEndIndex:a},B({props:f.props,dataStartIndex:o,dataEndIndex:a,updateId:i},f.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,l=t.chartY,c=t.activeTooltipIndex,s=f.state,p=s.offset,d=s.tooltipTicks;if(!p)return;if("function"==typeof n)c=n(d,t);else if("value"===n){c=-1;for(var h=0;h<d.length;h++)if(d[h].value===t.activeLabel){c=h;break}}var y=tr(tr({},p),{},{x:p.left,y:p.top}),v=Math.min(u,y.x+y.width),m=Math.min(l,y.y+y.height),g=d[c]&&d[c].value,b=tp(f.state,f.props.data,c),x=d[c]?{x:"horizontal"===r?d[c].coordinate:v,y:"horizontal"===r?m:d[c].coordinate}:tu;f.setState(tr(tr({},t),{},{activeLabel:g,activeCoordinate:x,activePayload:b,activeTooltipIndex:c}))}else f.setState(t)}),tn(f,"renderCursor",function(t){var r,n=f.state,o=n.isTooltipActive,a=n.activeCoordinate,u=n.activePayload,l=n.offset,c=n.activeTooltipIndex,s=n.tooltipAxisBandSize,p=f.getTooltipEventType(),d=null!=(r=t.props.active)?r:o,h=f.props.layout,y=t.key||"_recharts-cursor";return e.default.createElement($,{key:y,activeCoordinate:a,activePayload:u,activeTooltipIndex:c,chartName:i,element:t,isActive:d,layout:h,offset:l,tooltipAxisBandSize:s,tooltipEventType:p})}),tn(f,"renderPolarAxis",function(t,r,n){var i=(0,o.default)(t,"type.axisType"),a=(0,o.default)(f.state,"".concat(i,"Map")),u=t.type.defaultProps,c=void 0!==u?tr(tr({},u),t.props):t.props,s=a&&a[c["".concat(i,"Id")]];return(0,e.cloneElement)(t,tr(tr({},s),{},{className:(0,l.default)(i,s.className),key:t.key||"".concat(r,"-").concat(n),ticks:(0,x.getTicksOfAxis)(s,!0)}))}),tn(f,"renderPolarGrid",function(t){var r=t.props,n=r.radialLines,i=r.polarAngles,o=r.polarRadius,a=f.state,u=a.radiusAxisMap,l=a.angleAxisMap,c=(0,b.getAnyElementOfObject)(u),s=(0,b.getAnyElementOfObject)(l),p=s.cx,d=s.cy,h=s.innerRadius,y=s.outerRadius;return(0,e.cloneElement)(t,{polarAngles:Array.isArray(i)?i:(0,x.getTicksOfAxis)(s,!0).map(function(t){return t.coordinate}),polarRadius:Array.isArray(o)?o:(0,x.getTicksOfAxis)(c,!0).map(function(t){return t.coordinate}),cx:p,cy:d,innerRadius:h,outerRadius:y,key:t.key||"polar-grid",radialLines:n})}
1),tn(f,"renderLegend",function(){var t=f.state.formattedGraphicalItems,r=f.props,n=r.children,i=r.width,o=r.height,a=f.props.margin||{},u=i-(a.left||0)-(a.right||0),l=(0,O.getLegendProps)({children:n,formattedGraphicalItems:t,legendWidth:u,legendContent:N});if(!l)return null;var c=l.item,s=G(l,W);return(0,e.cloneElement)(c,tr(tr({},s),{},{chartWidth:i,chartHeight:o,margin:a,onBBoxUpdate:f.handleLegendBBoxUpdate}))}),tn(f,"renderTooltip",function(){var t,r=f.props,n=r.children,i=r.accessibilityLayer,o=(0,v.findChildByType)(n,p.Tooltip);if(!o)return null;var a=f.state,u=a.isTooltipActive,l=a.activeCoordinate,c=a.activePayload,s=a.activeLabel,d=a.offset,h=null!=(t=o.props.active)?t:u;return(0,e.cloneElement)(o,{viewBox:tr(tr({},d),{},{x:d.left,y:d.top}),active:h,label:s,payload:h?c:[],coordinate:l,accessibilityLayer:i})}),tn(f,"renderBrush",function(t){var r=f.props,n=r.margin,i=r.data,o=f.state,a=o.offset,u=o.dataStartIndex,l=o.dataEndIndex,c=o.updateId;return(0,e.cloneElement)(t,{key:t.key||"_recharts-brush",onChange:(0,x.combineEventHandlers)(f.handleBrushChange,t.props.onChange),data:i,x:(0,b.isNumber)(t.props.x)?t.props.x:a.left,y:(0,b.isNumber)(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(n.bottom||0),width:(0,b.isNumber)(t.props.width)?t.props.width:a.width,startIndex:u,endIndex:l,updateId:"brush-".concat(c)})}),tn(f,"renderReferenceElement",function(t,r,n){if(!t)return null;var i=f.clipPathId,o=f.state,a=o.xAxisMap,u=o.yAxisMap,l=o.offset,c=t.type.defaultProps||{},s=t.props,p=s.xAxisId,d=void 0===p?c.xAxisId:p,h=s.yAxisId,y=void 0===h?c.yAxisId:h;return(0,e.cloneElement)(t,{key:t.key||"".concat(r,"-").concat(n),xAxis:a[d],yAxis:u[y],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:i})}),tn(f,"renderActivePoints",function(t){var e=t.item,r=t.activePoint,n=t.basePoint,i=t.childIndex,o=t.isRange,a=[],u=e.props.key,l=void 0!==e.item.type.defaultProps?tr(tr({},e.item.type.defaultProps),e.item.props):e.item.props,s=l.activeDot,f=tr(tr({index:i,dataKey:l.dataKey,cx:r.x,cy:r.y,r:4,fill:(0,x.getMainColorOfGraphicItem)(e.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value},(0,v.filterProps)(s,!1)),(0,E.adaptEventHandlers)(s));return a.push(c.renderActiveDot(s,f,"".concat(u,"-activePoint-").concat(i))),n?a.push(c.renderActiveDot(s,tr(tr({},f),{},{cx:n.x,cy:n.y}),"".concat(u,"-basePoint-").concat(i))):o&&a.push(null),a}),tn(f,"renderGraphicChild",function(t,n,i){var o=f.filterFormatItem(t,n,i);if(!o)return null;var a=f.getTooltipEventType(),u=f.state,l=u.isTooltipActive,c=u.tooltipAxis,s=u.activeTooltipIndex,d=u.activeLabel,h=f.props.children,y=(0,v.findChildByType)(h,p.Tooltip),m=o.props,g=m.points,O=m.isRange,w=m.baseLine,S=void 0!==o.item.type.defaultProps?tr(tr({},o.item.type.defaultProps),o.item.props):o.item.props,j=S.activeDot,P=S.hide,E=S.activeBar,A=S.activeShape,M=!!(!P&&l&&y&&(j||E||A)),T={};"axis"!==a&&y&&"click"===y.props.trigger?T={onClick:(0,x.combineEventHandlers)(f.handleItemMouseEnter,t.props.onClick)}:"axis"!==a&&(T={onMouseLeave:(0,x.combineEventHandlers)(f.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:(0,x.combineEventHandlers)(f.handleItemMouseEnter,t.props.onMouseEnter)});var k=(0,e.cloneElement)(t,tr(tr({},o.props),T));if(M)if(s>=0){if(c.dataKey&&!c.allowDuplicatedCategory){var C="function"==typeof c.dataKey?function(t){return"function"==typeof c.dataKey?c.dataKey(t.payload):null}:"payload.".concat(c.dataKey.toString());_=(0,b.findEntryInArray)(g,C,d),D=O&&w&&(0,b.findEntryInArray)(w,C,d)}else _=null==g?void 0:g[s],D=O&&w&&w[s];if(A||E){var N=void 0!==t.props.activeIndex?t.props.activeIndex:s;return[(0,e.cloneElement)(t,tr(tr(tr({},o.props),T),{},{activeIndex:N})),null,null]}if(!(0,r.default)(_))return[k].concat(J(f.renderActivePoints({item:o,activePoint:_,basePoint:D,childIndex:s,isRange:O})))}else{var _,D,I,B=(null!=(I=f.getItemByXY(f.state.activeCoordinate))?I:{graphicalItem:k}).graphicalItem,L=B.item,R=void 0===L?t:L,U=B.childIndex,z=tr(tr(tr({},o.props),T),{},{activeIndex:U});return[(0,e.cloneElement)(R,z),null,null]}return O?[k,null,null]:[k,null]}),tn(f,"renderCustomized",function(t,r,n){return(0,e.cloneElement)(t,tr(tr({key:"recharts-customized-".concat(n)},f.props),f.state))}),tn(f,"renderMap",{CartesianGrid:{handler:tl,once:!0},ReferenceArea:{handler:f.renderReferenceElement},ReferenceLine:{handler:tl},ReferenceDot:{handler:f.renderReferenceElement},XAxis:{handler:tl},YAxis:{handler:tl},Brush:{handler:f.renderBrush,once:!0},Bar:{handler:f.renderGraphicChild},Line:{handler:f.renderGraphicChild},Area:{handler:f.renderGraphicChild},Radar:{handler:f.renderGraphicChild},RadialBar:{handler:f.renderGraphicChild},Scatter:{handler:f.renderGraphicChild},Pie:{handler:f.renderGraphicChild},Funnel:{handler:f.renderGraphicChild},Tooltip:{handler:f.renderCursor,once:!0},PolarGrid:{handler:f.renderPolarGrid,once:!0},PolarAngleAxis:{handler:f.renderPolarAxis},PolarRadiusAxis:{handler:f.renderPolarAxis},Customized:{handler:f.renderCustomized}}),f.clipPathId="".concat(null!=(a=t.id)?a:(0,b.uniqueId)("recharts"),"-clip"),f.throttleTriggeredAfterMouseMove=(0,u.default)(f.triggeredAfterMouseMove,null!=(s=t.throttleDelay)?s:1e3/60),f.state={},f}if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");return c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),Object.defineProperty(c,"prototype",{writable:!1}),t&&Z(c,t),a=[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!=(t=this.props.margin.left)?t:0,top:null!=(e=this.props.margin.top)?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,r=t.data,n=t.height,i=t.layout,o=(0,v.findChildByType)(e,p.Tooltip);if(o){var a=o.props.defaultIndex;if("number"==typeof a&&!(a<0)&&!(a>this.state.tooltipTicks.length-1)){var u=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,l=tp(this.state,r,a,u),c=this.state.tooltipTicks[a].coordinate,
1s=(this.state.offset.top+n)/2,f="horizontal"===i?{x:c,y:s}:{y:c,x:s},d=this.state.formattedGraphicalItems.find(function(t){return"Scatter"===t.item.type.name});d&&(f=tr(tr({},f),d.props.points[a].tooltipPosition),l=d.props.points[a].tooltipPayload);var h={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:u,activePayload:l,activeCoordinate:f};this.setState(h),this.renderCursor(o),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin){var r,n;this.accessibilityManager.setDetails({offset:{left:null!=(r=this.props.margin.left)?r:0,top:null!=(n=this.props.margin.top)?n:0}})}return null}},{key:"componentDidUpdate",value:function(t){(0,v.isChildrenEqual)([(0,v.findChildByType)(t.children,p.Tooltip)],[(0,v.findChildByType)(this.props.children,p.Tooltip)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=(0,v.findChildByType)(this.props.children,p.Tooltip);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return k.indexOf(e)>=0?e:w}return w}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e=this.container,r=e.getBoundingClientRect(),n=(0,g.getOffset)(r),i={chartX:Math.round(t.pageX-n.left),chartY:Math.round(t.pageY-n.top)},o=r.width/e.offsetWidth||1,a=this.inRange(i.chartX,i.chartY,o);if(!a)return null;var u=this.state,l=u.xAxisMap,c=u.yAxisMap,s=this.getTooltipEventType(),f=td(this.state,this.props.data,this.props.layout,a);if("axis"!==s&&l&&c){var p=(0,b.getAnyElementOfObject)(l).scale,d=(0,b.getAnyElementOfObject)(c).scale,h=p&&p.invert?p.invert(i.chartX):null,y=d&&d.invert?d.invert(i.chartY):null;return tr(tr({},i),{},{xValue:h,yValue:y},f)}return f?tr(tr({},i),f):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,i=t/r,o=e/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return i>=a.left&&i<=a.left+a.width&&o>=a.top&&o<=a.top+a.height?{x:i,y:o}:null}var u=this.state,l=u.angleAxisMap,c=u.radiusAxisMap;if(l&&c){var s=(0,b.getAnyElementOfObject)(l);return(0,S.inRangeOfSector)({x:i,y:o},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=(0,v.findChildByType)(t,p.Tooltip),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu}),tr(tr({},(0,E.adaptEventHandlers)(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){P.eventCenter.on(P.SYNC_EVENT,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){P.eventCenter.removeListener(P.SYNC_EVENT,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,i=0,o=n.length;i<o;i++){var a=n[i];if(a.item===t||a.props.key===t.key||e===(0,v.getDisplayName)(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var t=this.clipPathId,r=this.state.offset,n=r.left,i=r.top,o=r.height,a=r.width;return e.default.createElement("defs",null,e.default.createElement("clipPath",{id:t},e.default.createElement("rect",{x:n,y:i,height:o,width:a})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce(function(t,e){var r=q(e,2),n=r[0],i=r[1];return tr(tr({},t),{},tn({},n,i.scale))},{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce(function(t,e){var r=q(e,2),n=r[0],i=r[1];return tr(tr({},t),{},tn({},n,i.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(t){var e;return null==(e=this.state.xAxisMap)||null==(e=e[t])?void 0:e.scale}},{key:"getYScaleByAxisId",value:function(t){var e;return null==(e=this.state.yAxisMap)||null==(e=e[t])?void 0:e.scale}},{key:"getItemByXY",value:function(t){var e=this.state,r=e.formattedGraphicalItems,n=e.activeItem;if(r&&r.length)for(var i=0,o=r.length;i<o;i++){var a=r[i],u=a.props,l=a.item,c=void 0!==l.type.defaultProps?tr(tr({},l.type.defaultProps),l.props):l.props,s=(0,v.getDisplayName)(l.type);if("Bar"===s){var f=(u.data||[]).find(function(e){return(0,y.isInRectangle)(t,e)});if(f)return{graphicalItem:a,payload:f}}else if("RadialBar"===s){var p=(u.data||[]).find(function(e){return(0,S.inRangeOfSector)(t,e)});if(p)return{graphicalItem:a,payload:p}}else if((0,T.isFunnel)(a,n)||(0,T.isPie)(a,n)||(0,T.isScatter)(a,n)){var d=(0,T.getActiveShapeIndexForTooltip)({graphicalItem:a,activeTooltipItem:n,itemData:c.data}),h=void 0===c.activeIndex?d:c.activeIndex;return{graphicalItem:tr(tr({},a),{},{childIndex:h}),payload:(0,T.isScatter)(a,n)?c.data[d]:a.props.data[d]}}}return null}},{key:"render",value:function(){var t,r,n=this;if(!(0,v.validateWidthHeight)(this))return null;var i=this.props,o=i.children,a=i.className,u=i.width,c=i.height,f=i.style,p=i.compact,d=i.title,h=i.desc,y=G(i,V),m=(0,v.filterProps)(y,!1);if(p)return e.default.createElement(F.ChartLayoutContextProvider,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},e.default.createElement(s.Surface,X({},m,{width:u,height:c,title:d,desc:h}),this.renderClipPath(),(0,v.renderByOrder)(o,this.renderMap)));this.props.accessibilityLayer&&(m.tabIndex=null!=(t=this.props.tabIndex)?t:0,m.role=null!=(r=this.props.role)?r:"application",m.onKeyDown=function(t){n.accessibilityManager.keyboardEvent(t)},m.onFocus=function(){n.accessibilityManager.focus()});var g=this.parseEventsOfWrapper();return e.default.createElement(F.ChartLayoutContextProvider,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},e.default.createElement("div",X({className:(0,l.default)("recharts-wrapper",a),style:tr({position:"relative",curs
1or:"default",width:u,height:c},f)},g,{ref:function(t){n.container=t}}),e.default.createElement(s.Surface,X({},m,{width:u,height:c,title:d,desc:h,style:ta}),this.renderClipPath(),(0,v.renderByOrder)(o,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ti(n.key),n)}}(c.prototype,a),Object.defineProperty(c,"prototype",{writable:!1}),c}(e.Component);tn(L,"displayName",i),tn(L,"defaultProps",tr({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},D)),tn(L,"getDerivedStateFromProps",function(t,e){var n=t.dataKey,i=t.data,o=t.children,a=t.width,u=t.height,l=t.layout,c=t.stackOffset,s=t.margin,f=e.dataStartIndex,p=e.dataEndIndex;if(void 0===e.updateId){var d=tg(t);return tr(tr(tr({},d),{},{updateId:0},B(tr(tr({props:t},d),{},{updateId:0}),e)),{},{prevDataKey:n,prevData:i,prevWidth:a,prevHeight:u,prevLayout:l,prevStackOffset:c,prevMargin:s,prevChildren:o})}if(n!==e.prevDataKey||i!==e.prevData||a!==e.prevWidth||u!==e.prevHeight||l!==e.prevLayout||c!==e.prevStackOffset||!(0,j.shallowEqual)(s,e.prevMargin)){var h=tg(t),y={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},g=tr(tr({},td(e,i,l)),{},{updateId:e.updateId+1}),b=tr(tr(tr({},h),y),g);return tr(tr(tr({},b),B(tr({props:t},b),e)),{},{prevDataKey:n,prevData:i,prevWidth:a,prevHeight:u,prevLayout:l,prevStackOffset:c,prevMargin:s,prevChildren:o})}if(!(0,v.isChildrenEqual)(o,e.prevChildren)){var x,O,w,S,P=(0,v.findChildByType)(o,m.Brush),E=P&&null!=(x=null==(O=P.props)?void 0:O.startIndex)?x:f,A=P&&null!=(w=null==(S=P.props)?void 0:S.endIndex)?w:p,M=(0,r.default)(i)||E!==f||A!==p?e.updateId+1:e.updateId;return tr(tr({updateId:M},B(tr(tr({props:t},e),{},{updateId:M,dataStartIndex:E,dataEndIndex:A}),e)),{},{prevChildren:o,dataStartIndex:E,dataEndIndex:A})}return null}),tn(L,"renderActiveDot",function(t,r,i){var o;return o=(0,e.isValidElement)(t)?(0,e.cloneElement)(t,r):(0,n.default)(t)?t(r):e.default.createElement(h.Dot,r),e.default.createElement(f.Layer,{className:"recharts-active-dot",key:i},o)});var R=(0,e.forwardRef)(function(t,r){return e.default.createElement(L,X({},t,{ref:r}))});return R.displayName=L.displayName,R};t.s(["generateCategoricalChart",()=>tO],488262)},831035,t=>{"use strict";var e=t.i(305829),r=t.i(906936),n=t.i(178218),i=t.i(45280),o=t.i(49341),a=t.i(9498);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach(function(e){var n,i,o;n=t,i=e,o=r[e],(i=function(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u(e)?e:e+""}(i))in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var f=(0,r.forwardRef)(function(t,u){var l,f=t.aspect,p=t.initialDimension,d=void 0===p?{width:-1,height:-1}:p,h=t.width,y=void 0===h?"100%":h,v=t.height,m=void 0===v?"100%":v,g=t.minWidth,b=void 0===g?0:g,x=t.minHeight,O=t.maxHeight,w=t.children,S=t.debounce,j=void 0===S?0:S,P=t.id,E=t.className,A=t.onResize,M=t.style,T=(0,r.useRef)(null),k=(0,r.useRef)();k.current=A,(0,r.useImperativeHandle)(u,function(){return Object.defineProperty(T.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),T.current},configurable:!0})});var C=function(t){if(Array.isArray(t))return t}(l=(0,r.useState)({containerWidth:d.width,containerHeight:d.height}))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,u=[],l=!0,c=!1;try{o=(r=r.call(t)).next,!1;for(;
1!(l=(n=o.call(r)).done)&&(u.push(n.value),2!==u.length);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}(l,2)||function(t,e){if(t){if("string"==typeof t)return s(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(t,2)}}(l,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),N=C[0],_=C[1],D=(0,r.useCallback)(function(t,e){_(function(r){var n=Math.round(t),i=Math.round(e);return r.containerWidth===n&&r.containerHeight===i?r:{containerWidth:n,containerHeight:i}})},[]);(0,r.useEffect)(function(){var t=function(t){var e,r=t[0].contentRect,n=r.width,i=r.height;D(n,i),null==(e=k.current)||e.call(k,n,i)};j>0&&(t=(0,n.default)(t,j,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),r=T.current.getBoundingClientRect();return D(r.width,r.height),e.observe(T.current),function(){e.disconnect()}},[D,j]);var I=(0,r.useMemo)(function(){var t=N.containerWidth,e=N.containerHeight;if(t<0||e<0)return null;(0,o.warn)((0,i.isPercent)(y)||(0,i.isPercent)(m),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",y,m),(0,o.warn)(!f||f>0,"The aspect(%s) must be greater than zero.",f);var n=(0,i.isPercent)(y)?t:y,u=(0,i.isPercent)(m)?e:m;f&&f>0&&(n?u=n/f:u&&(n=u*f),O&&u>O&&(u=O)),(0,o.warn)(n>0||u>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.",n,u,y,m,b,x,f);var l=!Array.isArray(w)&&(0,a.getDisplayName)(w.type).endsWith("Chart");return r.default.Children.map(w,function(t){return r.default.isValidElement(t)?(0,r.cloneElement)(t,c({width:n,height:u},l?{style:c({height:"100%",width:"100%",maxHeight:u,maxWidth:n},t.props.style)}:{})):t})},[f,w,m,O,x,b,N,y]);return r.default.createElement("div",{id:P?"".concat(P):void 0,className:(0,e.default)("recharts-responsive-container",E),style:c(c({},void 0===M?{}:M),{},{width:y,height:m,minWidth:b,minHeight:x,maxHeight:O}),ref:T},I)});t.s(["ResponsiveContainer",()=>f])},819760,t=>{"use strict";var e=t.i(776477),r=t.i(906936),n=t.i(831035),i=t.i(96222),o=t.i(236814),a=t.i(63316);let u={light:"",dark:".dark"},l=r.createContext(null);function c(){let t=r.useContext(l);if(!t)throw Error("useChart must be used within a <ChartContainer />");return t}function s({id:t,className:i,children:o,config:u,...c}){let s=r.useId(),p=`chart-${t||s.replace(/:/g,"")}`;return(0,e.jsx)(l.Provider,{value:{config:u},children:(0,e.jsxs)("div",{"data-slot":"chart","data-chart":p,className:(0,a.cn)("[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border flex aspect-video justify-center text-xs [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-sector]:outline-hidden [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-surface]:outline-hidden",i),...c,children:[(0,e.jsx)(f,{id:p,config:u}),(0,e.jsx)(n.ResponsiveContainer,{children:o})]})})}let f=({id:t,config:r})=>{let n=Object.entries(r).filter(([,t])=>t.theme||t.color);return n.length?(0,e.jsx)("style",{dangerouslySetInnerHTML:{__html:Object.entries(u).map(([e,r])=>` 2${r} [data-chart=${t}] { 3${n.map(([t,r])=>{let n=r.theme?.[e]||r.color;return n?` --color-${t}: ${n};`:null}).join("\n")} 4} 5`).join("\n")}}):null},p=i.Tooltip;function d({active:t,payload:n,className:i,indicator:o="dot",hideLabel:u=!1,hideIndicator:l=!1,label:s,labelFormatter:f,labelClassName:p,formatter:d,color:h,nameKey:y,labelKey:m}){let{config:g}=c(),b=r.useMemo(()=>
5{if(u||!n?.length)return null;let[t]=n,r=`${m||t?.dataKey||t?.name||"value"}`,i=v(g,t,r),o=m||"string"!=typeof s?i?.label:g[s]?.label||s;return f?(0,e.jsx)("div",{className:(0,a.cn)("font-medium",p),children:f(o,n)}):o?(0,e.jsx)("div",{className:(0,a.cn)("font-medium",p),children:o}):null},[s,f,n,u,p,g,m]);if(!t||!n?.length)return null;let x=1===n.length&&"dot"!==o;return(0,e.jsxs)("div",{className:(0,a.cn)("border-border/50 bg-background gap-1.5 rounded-lg border px-2.5 py-1.5 text-xs shadow-xl grid min-w-[8rem] items-start",i),children:[x?null:b,(0,e.jsx)("div",{className:"grid gap-1.5",children:n.filter(t=>"none"!==t.type).map((t,r)=>{let n=`${y||t.name||t.dataKey||"value"}`,i=v(g,t,n),u=h||t.payload.fill||t.color;return(0,e.jsx)("div",{className:(0,a.cn)("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5","dot"===o&&"items-center"),children:d&&t?.value!==void 0&&t.name?d(t.value,t.name,t,r,t.payload):(0,e.jsxs)(e.Fragment,{children:[i?.icon?(0,e.jsx)(i.icon,{}):!l&&(0,e.jsx)("div",{className:(0,a.cn)("shrink-0 rounded-[2px] border-(--color-border) bg-(--color-bg)",{"h-2.5 w-2.5":"dot"===o,"w-1":"line"===o,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===o,"my-0.5":x&&"dashed"===o}),style:{"--color-bg":u,"--color-border":u}}),(0,e.jsxs)("div",{className:(0,a.cn)("flex flex-1 justify-between leading-none",x?"items-end":"items-center"),children:[(0,e.jsxs)("div",{className:"grid gap-1.5",children:[x?b:null,(0,e.jsx)("span",{className:"text-muted-foreground",children:i?.label||t.name})]}),t.value&&(0,e.jsx)("span",{className:"text-foreground font-mono font-medium tabular-nums",children:t.value.toLocaleString()})]})]})},t.dataKey)})})]})}let h=o.Legend;function y({className:t,hideIcon:r=!1,payload:n,verticalAlign:i="bottom",nameKey:o}){let{config:u}=c();return n?.length?(0,e.jsx)("div",{className:(0,a.cn)("flex items-center justify-center gap-4","top"===i?"pb-3":"pt-3",t),children:n.filter(t=>"none"!==t.type).map(t=>{let n=`${o||t.dataKey||"value"}`,i=v(u,t,n);return(0,e.jsxs)("div",{className:(0,a.cn)("[&>svg]:text-muted-foreground flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3"),children:[i?.icon&&!r?(0,e.jsx)(i.icon,{}):(0,e.jsx)("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:t.color}}),i?.label]},t.value)})}):null}function v(t,e,r){if("object"!=typeof e||null===e)return;let n="payload"in e&&"object"==typeof e.payload&&null!==e.payload?e.payload:void 0,i=r;return r in e&&"string"==typeof e[r]?i=e[r]:n&&r in n&&"string"==typeof n[r]&&(i=n[r]),i in t?t[i]:t[r]}t.s(["ChartContainer",()=>s,"ChartLegend",()=>h,"ChartLegendContent",()=>y,"ChartStyle",()=>f,"ChartTooltip",()=>p,"ChartTooltipContent",()=>d])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.