@adjedaini/clockwork-node 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +225 -0
- package/dist/globals.d.ts +27 -0
- package/dist/index.d.ts +61 -0
- package/dist/index.js +695 -0
- package/dist/public/assets/index-B2HEyS_P.css +1 -0
- package/dist/public/assets/index-B83PrqXa.css +1 -0
- package/dist/public/assets/index-CdsiP1dN.css +1 -0
- package/dist/public/assets/index-Df9idoqY.js +198 -0
- package/dist/public/assets/index-KmGT-iQM.js +198 -0
- package/dist/public/assets/index-znhjCgo1.js +198 -0
- package/dist/public/index.html +13 -0
- package/node_modules/@adjedaini/clockwork-core/dist/index.d.ts +53 -0
- package/node_modules/@adjedaini/clockwork-core/dist/index.js +192 -0
- package/node_modules/@adjedaini/clockwork-core/package.json +17 -0
- package/node_modules/@adjedaini/clockwork-core/src/index.ts +194 -0
- package/node_modules/@adjedaini/clockwork-core/src/ring-buffer.ts +47 -0
- package/node_modules/@adjedaini/clockwork-core/tsconfig.build.json +6 -0
- package/node_modules/@adjedaini/clockwork-core/tsconfig.json +10 -0
- package/node_modules/@adjedaini/clockwork-core/tsup.config.ts +13 -0
- package/node_modules/@adjedaini/clockwork-db-interceptor/dist/index.d.ts +33 -0
- package/node_modules/@adjedaini/clockwork-db-interceptor/dist/index.js +163 -0
- package/node_modules/@adjedaini/clockwork-db-interceptor/package.json +18 -0
- package/node_modules/@adjedaini/clockwork-db-interceptor/src/index.ts +28 -0
- package/node_modules/@adjedaini/clockwork-db-interceptor/src/mysql2.ts +84 -0
- package/node_modules/@adjedaini/clockwork-db-interceptor/src/pg.ts +56 -0
- package/node_modules/@adjedaini/clockwork-db-interceptor/tsconfig.build.json +6 -0
- package/node_modules/@adjedaini/clockwork-db-interceptor/tsconfig.json +10 -0
- package/node_modules/@adjedaini/clockwork-db-interceptor/tsup.config.ts +13 -0
- package/node_modules/@adjedaini/clockwork-log-interceptor/dist/index.d.ts +25 -0
- package/node_modules/@adjedaini/clockwork-log-interceptor/dist/index.js +153 -0
- package/node_modules/@adjedaini/clockwork-log-interceptor/package.json +16 -0
- package/node_modules/@adjedaini/clockwork-log-interceptor/src/index.ts +14 -0
- package/node_modules/@adjedaini/clockwork-log-interceptor/src/pino.ts +78 -0
- package/node_modules/@adjedaini/clockwork-log-interceptor/src/winston.ts +66 -0
- package/node_modules/@adjedaini/clockwork-log-interceptor/tsconfig.build.json +4 -0
- package/node_modules/@adjedaini/clockwork-log-interceptor/tsconfig.json +10 -0
- package/node_modules/@adjedaini/clockwork-log-interceptor/tsup.config.ts +13 -0
- package/node_modules/@adjedaini/clockwork-plugins/dist/index.d.ts +45 -0
- package/node_modules/@adjedaini/clockwork-plugins/dist/index.js +172 -0
- package/node_modules/@adjedaini/clockwork-plugins/package.json +19 -0
- package/node_modules/@adjedaini/clockwork-plugins/src/console.ts +70 -0
- package/node_modules/@adjedaini/clockwork-plugins/src/context.ts +30 -0
- package/node_modules/@adjedaini/clockwork-plugins/src/index.ts +50 -0
- package/node_modules/@adjedaini/clockwork-plugins/src/process-errors.ts +33 -0
- package/node_modules/@adjedaini/clockwork-plugins/tsconfig.build.json +1 -0
- package/node_modules/@adjedaini/clockwork-plugins/tsconfig.json +16 -0
- package/node_modules/@adjedaini/clockwork-plugins/tsup.config.ts +13 -0
- package/node_modules/@adjedaini/clockwork-shared/dist/index.d.ts +97 -0
- package/node_modules/@adjedaini/clockwork-shared/dist/index.js +18 -0
- package/node_modules/@adjedaini/clockwork-shared/package.json +14 -0
- package/node_modules/@adjedaini/clockwork-shared/src/index.ts +96 -0
- package/node_modules/@adjedaini/clockwork-shared/tsconfig.build.json +6 -0
- package/node_modules/@adjedaini/clockwork-shared/tsconfig.json +9 -0
- package/node_modules/@adjedaini/clockwork-shared/tsup.config.ts +13 -0
- package/node_modules/@adjedaini/clockwork-transport-http/dist/index.d.ts +75 -0
- package/node_modules/@adjedaini/clockwork-transport-http/dist/index.js +306 -0
- package/node_modules/@adjedaini/clockwork-transport-http/package.json +18 -0
- package/node_modules/@adjedaini/clockwork-transport-http/src/index.ts +277 -0
- package/node_modules/@adjedaini/clockwork-transport-http/src/sanitize.ts +92 -0
- package/node_modules/@adjedaini/clockwork-transport-http/src/types.ts +37 -0
- package/node_modules/@adjedaini/clockwork-transport-http/tsconfig.build.json +6 -0
- package/node_modules/@adjedaini/clockwork-transport-http/tsconfig.json +10 -0
- package/node_modules/@adjedaini/clockwork-transport-http/tsup.config.ts +13 -0
- package/package.json +69 -0
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var Ml=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ox={exports:{}},Qs={},_x={exports:{}},re={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var gl=Symbol.for("react.element"),gP=Symbol.for("react.portal"),bP=Symbol.for("react.fragment"),xP=Symbol.for("react.strict_mode"),wP=Symbol.for("react.profiler"),SP=Symbol.for("react.provider"),OP=Symbol.for("react.context"),_P=Symbol.for("react.forward_ref"),PP=Symbol.for("react.suspense"),AP=Symbol.for("react.memo"),EP=Symbol.for("react.lazy"),_y=Symbol.iterator;function $P(e){return e===null||typeof e!="object"?null:(e=_y&&e[_y]||e["@@iterator"],typeof e=="function"?e:null)}var Px={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ax=Object.assign,Ex={};function ga(e,t,r){this.props=e,this.context=t,this.refs=Ex,this.updater=r||Px}ga.prototype.isReactComponent={};ga.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ga.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function $x(){}$x.prototype=ga.prototype;function wh(e,t,r){this.props=e,this.context=t,this.refs=Ex,this.updater=r||Px}var Sh=wh.prototype=new $x;Sh.constructor=wh;Ax(Sh,ga.prototype);Sh.isPureReactComponent=!0;var Py=Array.isArray,jx=Object.prototype.hasOwnProperty,Oh={current:null},Tx={key:!0,ref:!0,__self:!0,__source:!0};function kx(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)jx.call(t,n)&&!Tx.hasOwnProperty(n)&&(i[n]=t[n]);var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){for(var u=Array(l),s=0;s<l;s++)u[s]=arguments[s+2];i.children=u}if(e&&e.defaultProps)for(n in l=e.defaultProps,l)i[n]===void 0&&(i[n]=l[n]);return{$$typeof:gl,type:e,key:a,ref:o,props:i,_owner:Oh.current}}function jP(e,t){return{$$typeof:gl,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function _h(e){return typeof e=="object"&&e!==null&&e.$$typeof===gl}function TP(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Ay=/\/+/g;function ef(e,t){return typeof e=="object"&&e!==null&&e.key!=null?TP(""+e.key):t.toString(36)}function du(e,t,r,n,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case gl:case gP:o=!0}}if(o)return o=e,i=i(o),e=n===""?"."+ef(o,0):n,Py(i)?(r="",e!=null&&(r=e.replace(Ay,"$&/")+"/"),du(i,t,r,"",function(s){return s})):i!=null&&(_h(i)&&(i=jP(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Ay,"$&/")+"/")+e)),t.push(i)),1;if(o=0,n=n===""?".":n+":",Py(e))for(var l=0;l<e.length;l++){a=e[l];var u=n+ef(a,l);o+=du(a,t,r,u,i)}else if(u=$P(e),typeof u=="function")for(e=u.call(e),l=0;!(a=e.next()).done;)a=a.value,u=n+ef(a,l++),o+=du(a,t,r,u,i);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function Nl(e,t,r){if(e==null)return e;var n=[],i=0;return du(e,n,"","",function(a){return t.call(r,a,i++)}),n}function kP(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ft={current:null},pu={transition:null},CP={ReactCurrentDispatcher:ft,ReactCurrentBatchConfig:pu,ReactCurrentOwner:Oh};function Cx(){throw Error("act(...) is not supported in production builds of React.")}re.Children={map:Nl,forEach:function(e,t,r){Nl(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Nl(e,function(){t++}),t},toArray:function(e){return Nl(e,function(t){return t})||[]},only:function(e){if(!_h(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};re.Component=ga;re.Fragment=bP;re.Profiler=wP;re.PureComponent=wh;re.StrictMode=xP;re.Suspense=PP;re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=CP;re.act=Cx;re.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=Ax({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=Oh.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)jx.call(t,u)&&!Tx.hasOwnProperty(u)&&(n[u]=t[u]===void 0&&l!==void 0?l[u]:t[u])}var u=arguments.length-2;if(u===1)n.children=r;else if(1<u){l=Array(u);for(var s=0;s<u;s++)l[s]=arguments[s+2];n.children=l}return{$$typeof:gl,type:e.type,key:i,ref:a,props:n,_owner:o}};re.createContext=function(e){return e={$$typeof:OP,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:SP,_context:e},e.Consumer=e};re.createElement=kx;re.createFactory=function(e){var t=kx.bind(null,e);return t.type=e,t};re.createRef=function(){return{current:null}};re.forwardRef=function(e){return{$$typeof:_P,render:e}};re.isValidElement=_h;re.lazy=function(e){return{$$typeof:EP,_payload:{_status:-1,_result:e},_init:kP}};re.memo=function(e,t){return{$$typeof:AP,type:e,compare:t===void 0?null:t}};re.startTransition=function(e){var t=pu.transition;pu.transition={};try{e()}finally{pu.transition=t}};re.unstable_act=Cx;re.useCallback=function(e,t){return ft.current.useCallback(e,t)};re.useContext=function(e){return ft.current.useContext(e)};re.useDebugValue=function(){};re.useDeferredValue=function(e){return ft.current.useDeferredValue(e)};re.useEffect=function(e,t){return ft.current.useEffect(e,t)};re.useId=function(){return ft.current.useId()};re.useImperativeHandle=function(e,t,r){return ft.current.useImperativeHandle(e,t,r)};re.useInsertionEffect=function(e,t){return ft.current.useInsertionEffect(e,t)};re.useLayoutEffect=function(e,t){return ft.current.useLayoutEffect(e,t)};re.useMemo=function(e,t){return ft.current.useMemo(e,t)};re.useReducer=function(e,t,r){return ft.current.useReducer(e,t,r)};re.useRef=function(e){return ft.current.useRef(e)};re.useState=function(e){return ft.current.useState(e)};re.useSyncExternalStore=function(e,t,r){return ft.current.useSyncExternalStore(e,t,r)};re.useTransition=function(){return ft.current.useTransition()};re.version="18.3.1";_x.exports=re;var R=_x.exports;const E=pe(R);/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var MP=R,NP=Symbol.for("react.element"),IP=Symbol.for("react.fragment"),DP=Object.prototype.hasOwnProperty,LP=MP.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,RP={key:!0,ref:!0,__self:!0,__source:!0};function Mx(e,t,r){var n,i={},a=null,o=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)DP.call(t,n)&&!RP.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:NP,type:e,key:a,ref:o,props:i,_owner:LP.current}}Qs.Fragment=IP;Qs.jsx=Mx;Qs.jsxs=Mx;Ox.exports=Qs;var P=Ox.exports,Nx={exports:{}},Tt={},Ix={exports:{}},Dx={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/(function(e){function t(k,L){var B=k.length;k.push(L);e:for(;0<B;){var V=B-1>>>1,W=k[V];if(0<i(W,L))k[V]=L,k[B]=W,B=V;else break e}}function r(k){return k.length===0?null:k[0]}function n(k){if(k.length===0)return null;var L=k[0],B=k.pop();if(B!==L){k[0]=B;e:for(var V=0,W=k.length,X=W>>>1;V<X;){var ie=2*(V+1)-1,we=k[ie],Te=ie+1,Ct=k[Te];if(0>i(we,B))Te<W&&0>i(Ct,we)?(k[V]=Ct,k[Te]=B,V=Te):(k[V]=we,k[ie]=B,V=ie);else if(Te<W&&0>i(Ct,B))k[V]=Ct,k[Te]=B,V=Te;else break e}}return L}function i(k,L){var B=k.sortIndex-L.sortIndex;return B!==0?B:k.id-L.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var u=[],s=[],f=1,c=null,d=3,p=!1,m=!1,v=!1,x=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,h=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(k){for(var L=r(s);L!==null;){if(L.callback===null)n(s);else if(L.startTime<=k)n(s),L.sortIndex=L.expirationTime,t(u,L);else break;L=r(s)}}function S(k){if(v=!1,g(k),!m)if(r(u)!==null)m=!0,D(b);else{var L=r(s);L!==null&&z(S,L.startTime-k)}}function b(k,L){m=!1,v&&(v=!1,y(_),_=-1),p=!0;var B=d;try{for(g(L),c=r(u);c!==null&&(!(c.expirationTime>L)||k&&!T());){var V=c.callback;if(typeof V=="function"){c.callback=null,d=c.priorityLevel;var W=V(c.expirationTime<=L);L=e.unstable_now(),typeof W=="function"?c.callback=W:c===r(u)&&n(u),g(L)}else n(u);c=r(u)}if(c!==null)var X=!0;else{var ie=r(s);ie!==null&&z(S,ie.startTime-L),X=!1}return X}finally{c=null,d=B,p=!1}}var w=!1,O=null,_=-1,A=5,j=-1;function T(){return!(e.unstable_now()-j<A)}function $(){if(O!==null){var k=e.unstable_now();j=k;var L=!0;try{L=O(!0,k)}finally{L?I():(w=!1,O=null)}}else w=!1}var I;if(typeof h=="function")I=function(){h($)};else if(typeof MessageChannel<"u"){var N=new MessageChannel,C=N.port2;N.port1.onmessage=$,I=function(){C.postMessage(null)}}else I=function(){x($,0)};function D(k){O=k,w||(w=!0,I())}function z(k,L){_=x(function(){k(e.unstable_now())},L)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(k){k.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,D(b))},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return r(u)},e.unstable_next=function(k){switch(d){case 1:case 2:case 3:var L=3;break;default:L=d}var B=d;d=L;try{return k()}finally{d=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,L){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var B=d;d=k;try{return L()}finally{d=B}},e.unstable_scheduleCallback=function(k,L,B){var V=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?V+B:V):B=V,k){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=B+W,k={id:f++,callback:L,priorityLevel:k,startTime:B,expirationTime:W,sortIndex:-1},B>V?(k.sortIndex=B,t(s,k),r(u)===null&&k===r(s)&&(v?(y(_),_=-1):v=!0,z(S,B-V))):(k.sortIndex=W,t(u,k),m||p||(m=!0,D(b))),k},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(k){var L=d;return function(){var B=d;d=L;try{return k.apply(this,arguments)}finally{d=B}}}})(Dx);Ix.exports=Dx;var BP=Ix.exports;/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var zP=R,jt=BP;function U(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Lx=new Set,bo={};function ei(e,t){Bi(e,t),Bi(e+"Capture",t)}function Bi(e,t){for(bo[e]=t,e=0;e<t.length;e++)Lx.add(t[e])}var Mr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rd=Object.prototype.hasOwnProperty,FP=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ey={},$y={};function UP(e){return rd.call($y,e)?!0:rd.call(Ey,e)?!1:FP.test(e)?$y[e]=!0:(Ey[e]=!0,!1)}function WP(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function HP(e,t,r,n){if(t===null||typeof t>"u"||WP(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function dt(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Ze={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ze[e]=new dt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ze[t]=new dt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ze[e]=new dt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ze[e]=new dt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ze[e]=new dt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ze[e]=new dt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ze[e]=new dt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ze[e]=new dt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ze[e]=new dt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ph=/[\-:]([a-z])/g;function Ah(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ph,Ah);Ze[t]=new dt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ph,Ah);Ze[t]=new dt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ph,Ah);Ze[t]=new dt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ze[e]=new dt(e,1,!1,e.toLowerCase(),null,!1,!1)});Ze.xlinkHref=new dt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ze[e]=new dt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Eh(e,t,r,n){var i=Ze.hasOwnProperty(t)?Ze[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(HP(t,r,i,n)&&(r=null),n||i===null?UP(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var zr=zP.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Il=Symbol.for("react.element"),pi=Symbol.for("react.portal"),hi=Symbol.for("react.fragment"),$h=Symbol.for("react.strict_mode"),nd=Symbol.for("react.profiler"),Rx=Symbol.for("react.provider"),Bx=Symbol.for("react.context"),jh=Symbol.for("react.forward_ref"),id=Symbol.for("react.suspense"),ad=Symbol.for("react.suspense_list"),Th=Symbol.for("react.memo"),Gr=Symbol.for("react.lazy"),zx=Symbol.for("react.offscreen"),jy=Symbol.iterator;function Ia(e){return e===null||typeof e!="object"?null:(e=jy&&e[jy]||e["@@iterator"],typeof e=="function"?e:null)}var Ae=Object.assign,tf;function Ja(e){if(tf===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);tf=t&&t[1]||""}return`
|
|
34
|
+
`+tf+e}var rf=!1;function nf(e,t){if(!e||rf)return"";rf=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(s){var n=s}Reflect.construct(e,[],t)}else{try{t.call()}catch(s){n=s}e.call(t.prototype)}else{try{throw Error()}catch(s){n=s}e()}}catch(s){if(s&&n&&typeof s.stack=="string"){for(var i=s.stack.split(`
|
|
35
|
+
`),a=n.stack.split(`
|
|
36
|
+
`),o=i.length-1,l=a.length-1;1<=o&&0<=l&&i[o]!==a[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==a[l]){if(o!==1||l!==1)do if(o--,l--,0>l||i[o]!==a[l]){var u=`
|
|
37
|
+
`+i[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=o&&0<=l);break}}}finally{rf=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Ja(e):""}function VP(e){switch(e.tag){case 5:return Ja(e.type);case 16:return Ja("Lazy");case 13:return Ja("Suspense");case 19:return Ja("SuspenseList");case 0:case 2:case 15:return e=nf(e.type,!1),e;case 11:return e=nf(e.type.render,!1),e;case 1:return e=nf(e.type,!0),e;default:return""}}function od(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case hi:return"Fragment";case pi:return"Portal";case nd:return"Profiler";case $h:return"StrictMode";case id:return"Suspense";case ad:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Bx:return(e.displayName||"Context")+".Consumer";case Rx:return(e._context.displayName||"Context")+".Provider";case jh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Th:return t=e.displayName||null,t!==null?t:od(e.type)||"Memo";case Gr:t=e._payload,e=e._init;try{return od(e(t))}catch{}}return null}function KP(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return od(t);case 8:return t===$h?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function pn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fx(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function GP(e){var t=Fx(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Dl(e){e._valueTracker||(e._valueTracker=GP(e))}function Ux(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Fx(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function _u(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ld(e,t){var r=t.checked;return Ae({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Ty(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=pn(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Wx(e,t){t=t.checked,t!=null&&Eh(e,"checked",t,!1)}function ud(e,t){Wx(e,t);var r=pn(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?sd(e,t.type,r):t.hasOwnProperty("defaultValue")&&sd(e,t.type,pn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ky(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function sd(e,t,r){(t!=="number"||_u(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var eo=Array.isArray;function $i(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+pn(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function cd(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(U(91));return Ae({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Cy(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(U(92));if(eo(r)){if(1<r.length)throw Error(U(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:pn(r)}}function Hx(e,t){var r=pn(t.value),n=pn(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function My(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Vx(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function fd(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Vx(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ll,Kx=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ll=Ll||document.createElement("div"),Ll.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ll.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function xo(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var io={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qP=["Webkit","ms","Moz","O"];Object.keys(io).forEach(function(e){qP.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),io[t]=io[e]})});function Gx(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||io.hasOwnProperty(e)&&io[e]?(""+t).trim():t+"px"}function qx(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=Gx(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var XP=Ae({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function dd(e,t){if(t){if(XP[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(U(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(U(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(U(61))}if(t.style!=null&&typeof t.style!="object")throw Error(U(62))}}function pd(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var hd=null;function kh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vd=null,ji=null,Ti=null;function Ny(e){if(e=wl(e)){if(typeof vd!="function")throw Error(U(280));var t=e.stateNode;t&&(t=rc(t),vd(e.stateNode,e.type,t))}}function Xx(e){ji?Ti?Ti.push(e):Ti=[e]:ji=e}function Yx(){if(ji){var e=ji,t=Ti;if(Ti=ji=null,Ny(e),t)for(e=0;e<t.length;e++)Ny(t[e])}}function Qx(e,t){return e(t)}function Zx(){}var af=!1;function Jx(e,t,r){if(af)return e(t,r);af=!0;try{return Qx(e,t,r)}finally{af=!1,(ji!==null||Ti!==null)&&(Zx(),Yx())}}function wo(e,t){var r=e.stateNode;if(r===null)return null;var n=rc(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(U(231,t,typeof r));return r}var yd=!1;if(Mr)try{var Da={};Object.defineProperty(Da,"passive",{get:function(){yd=!0}}),window.addEventListener("test",Da,Da),window.removeEventListener("test",Da,Da)}catch{yd=!1}function YP(e,t,r,n,i,a,o,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(r,s)}catch(f){this.onError(f)}}var ao=!1,Pu=null,Au=!1,md=null,QP={onError:function(e){ao=!0,Pu=e}};function ZP(e,t,r,n,i,a,o,l,u){ao=!1,Pu=null,YP.apply(QP,arguments)}function JP(e,t,r,n,i,a,o,l,u){if(ZP.apply(this,arguments),ao){if(ao){var s=Pu;ao=!1,Pu=null}else throw Error(U(198));Au||(Au=!0,md=s)}}function ti(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function e1(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Iy(e){if(ti(e)!==e)throw Error(U(188))}function eA(e){var t=e.alternate;if(!t){if(t=ti(e),t===null)throw Error(U(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var a=i.alternate;if(a===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return Iy(i),e;if(a===n)return Iy(i),t;a=a.sibling}throw Error(U(188))}if(r.return!==n.return)r=i,n=a;else{for(var o=!1,l=i.child;l;){if(l===r){o=!0,r=i,n=a;break}if(l===n){o=!0,n=i,r=a;break}l=l.sibling}if(!o){for(l=a.child;l;){if(l===r){o=!0,r=a,n=i;break}if(l===n){o=!0,n=a,r=i;break}l=l.sibling}if(!o)throw Error(U(189))}}if(r.alternate!==n)throw Error(U(190))}if(r.tag!==3)throw Error(U(188));return r.stateNode.current===r?e:t}function t1(e){return e=eA(e),e!==null?r1(e):null}function r1(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=r1(e);if(t!==null)return t;e=e.sibling}return null}var n1=jt.unstable_scheduleCallback,Dy=jt.unstable_cancelCallback,tA=jt.unstable_shouldYield,rA=jt.unstable_requestPaint,ke=jt.unstable_now,nA=jt.unstable_getCurrentPriorityLevel,Ch=jt.unstable_ImmediatePriority,i1=jt.unstable_UserBlockingPriority,Eu=jt.unstable_NormalPriority,iA=jt.unstable_LowPriority,a1=jt.unstable_IdlePriority,Zs=null,pr=null;function aA(e){if(pr&&typeof pr.onCommitFiberRoot=="function")try{pr.onCommitFiberRoot(Zs,e,void 0,(e.current.flags&128)===128)}catch{}}var ir=Math.clz32?Math.clz32:uA,oA=Math.log,lA=Math.LN2;function uA(e){return e>>>=0,e===0?32:31-(oA(e)/lA|0)|0}var Rl=64,Bl=4194304;function to(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function $u(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=r&268435455;if(o!==0){var l=o&~i;l!==0?n=to(l):(a&=o,a!==0&&(n=to(a)))}else o=r&~i,o!==0?n=to(o):a!==0&&(n=to(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-ir(t),i=1<<r,n|=e[r],t&=~i;return n}function sA(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function cA(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-ir(a),l=1<<o,u=i[o];u===-1?(!(l&r)||l&n)&&(i[o]=sA(l,t)):u<=t&&(e.expiredLanes|=l),a&=~l}}function gd(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function o1(){var e=Rl;return Rl<<=1,!(Rl&4194240)&&(Rl=64),e}function of(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function bl(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ir(t),e[t]=r}function fA(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-ir(r),a=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~a}}function Mh(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-ir(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var se=0;function l1(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var u1,Nh,s1,c1,f1,bd=!1,zl=[],nn=null,an=null,on=null,So=new Map,Oo=new Map,Yr=[],dA="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ly(e,t){switch(e){case"focusin":case"focusout":nn=null;break;case"dragenter":case"dragleave":an=null;break;case"mouseover":case"mouseout":on=null;break;case"pointerover":case"pointerout":So.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Oo.delete(t.pointerId)}}function La(e,t,r,n,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[i]},t!==null&&(t=wl(t),t!==null&&Nh(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function pA(e,t,r,n,i){switch(t){case"focusin":return nn=La(nn,e,t,r,n,i),!0;case"dragenter":return an=La(an,e,t,r,n,i),!0;case"mouseover":return on=La(on,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return So.set(a,La(So.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,Oo.set(a,La(Oo.get(a)||null,e,t,r,n,i)),!0}return!1}function d1(e){var t=Cn(e.target);if(t!==null){var r=ti(t);if(r!==null){if(t=r.tag,t===13){if(t=e1(r),t!==null){e.blockedOn=t,f1(e.priority,function(){s1(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function hu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=xd(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);hd=n,r.target.dispatchEvent(n),hd=null}else return t=wl(r),t!==null&&Nh(t),e.blockedOn=r,!1;t.shift()}return!0}function Ry(e,t,r){hu(e)&&r.delete(t)}function hA(){bd=!1,nn!==null&&hu(nn)&&(nn=null),an!==null&&hu(an)&&(an=null),on!==null&&hu(on)&&(on=null),So.forEach(Ry),Oo.forEach(Ry)}function Ra(e,t){e.blockedOn===t&&(e.blockedOn=null,bd||(bd=!0,jt.unstable_scheduleCallback(jt.unstable_NormalPriority,hA)))}function _o(e){function t(i){return Ra(i,e)}if(0<zl.length){Ra(zl[0],e);for(var r=1;r<zl.length;r++){var n=zl[r];n.blockedOn===e&&(n.blockedOn=null)}}for(nn!==null&&Ra(nn,e),an!==null&&Ra(an,e),on!==null&&Ra(on,e),So.forEach(t),Oo.forEach(t),r=0;r<Yr.length;r++)n=Yr[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Yr.length&&(r=Yr[0],r.blockedOn===null);)d1(r),r.blockedOn===null&&Yr.shift()}var ki=zr.ReactCurrentBatchConfig,ju=!0;function vA(e,t,r,n){var i=se,a=ki.transition;ki.transition=null;try{se=1,Ih(e,t,r,n)}finally{se=i,ki.transition=a}}function yA(e,t,r,n){var i=se,a=ki.transition;ki.transition=null;try{se=4,Ih(e,t,r,n)}finally{se=i,ki.transition=a}}function Ih(e,t,r,n){if(ju){var i=xd(e,t,r,n);if(i===null)yf(e,t,n,Tu,r),Ly(e,n);else if(pA(i,e,t,r,n))n.stopPropagation();else if(Ly(e,n),t&4&&-1<dA.indexOf(e)){for(;i!==null;){var a=wl(i);if(a!==null&&u1(a),a=xd(e,t,r,n),a===null&&yf(e,t,n,Tu,r),a===i)break;i=a}i!==null&&n.stopPropagation()}else yf(e,t,n,null,r)}}var Tu=null;function xd(e,t,r,n){if(Tu=null,e=kh(n),e=Cn(e),e!==null)if(t=ti(e),t===null)e=null;else if(r=t.tag,r===13){if(e=e1(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Tu=e,null}function p1(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(nA()){case Ch:return 1;case i1:return 4;case Eu:case iA:return 16;case a1:return 536870912;default:return 16}default:return 16}}var Jr=null,Dh=null,vu=null;function h1(){if(vu)return vu;var e,t=Dh,r=t.length,n,i="value"in Jr?Jr.value:Jr.textContent,a=i.length;for(e=0;e<r&&t[e]===i[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===i[a-n];n++);return vu=i.slice(e,1<n?1-n:void 0)}function yu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Fl(){return!0}function By(){return!1}function kt(e){function t(r,n,i,a,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(r=e[l],this[l]=r?r(a):a[l]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Fl:By,this.isPropagationStopped=By,this}return Ae(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Fl)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Fl)},persist:function(){},isPersistent:Fl}),t}var ba={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Lh=kt(ba),xl=Ae({},ba,{view:0,detail:0}),mA=kt(xl),lf,uf,Ba,Js=Ae({},xl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rh,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ba&&(Ba&&e.type==="mousemove"?(lf=e.screenX-Ba.screenX,uf=e.screenY-Ba.screenY):uf=lf=0,Ba=e),lf)},movementY:function(e){return"movementY"in e?e.movementY:uf}}),zy=kt(Js),gA=Ae({},Js,{dataTransfer:0}),bA=kt(gA),xA=Ae({},xl,{relatedTarget:0}),sf=kt(xA),wA=Ae({},ba,{animationName:0,elapsedTime:0,pseudoElement:0}),SA=kt(wA),OA=Ae({},ba,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),_A=kt(OA),PA=Ae({},ba,{data:0}),Fy=kt(PA),AA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},EA={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},$A={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jA(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=$A[e])?!!t[e]:!1}function Rh(){return jA}var TA=Ae({},xl,{key:function(e){if(e.key){var t=AA[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=yu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?EA[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rh,charCode:function(e){return e.type==="keypress"?yu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?yu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),kA=kt(TA),CA=Ae({},Js,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Uy=kt(CA),MA=Ae({},xl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rh}),NA=kt(MA),IA=Ae({},ba,{propertyName:0,elapsedTime:0,pseudoElement:0}),DA=kt(IA),LA=Ae({},Js,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),RA=kt(LA),BA=[9,13,27,32],Bh=Mr&&"CompositionEvent"in window,oo=null;Mr&&"documentMode"in document&&(oo=document.documentMode);var zA=Mr&&"TextEvent"in window&&!oo,v1=Mr&&(!Bh||oo&&8<oo&&11>=oo),Wy=" ",Hy=!1;function y1(e,t){switch(e){case"keyup":return BA.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function m1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vi=!1;function FA(e,t){switch(e){case"compositionend":return m1(t);case"keypress":return t.which!==32?null:(Hy=!0,Wy);case"textInput":return e=t.data,e===Wy&&Hy?null:e;default:return null}}function UA(e,t){if(vi)return e==="compositionend"||!Bh&&y1(e,t)?(e=h1(),vu=Dh=Jr=null,vi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return v1&&t.locale!=="ko"?null:t.data;default:return null}}var WA={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vy(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!WA[e.type]:t==="textarea"}function g1(e,t,r,n){Xx(n),t=ku(t,"onChange"),0<t.length&&(r=new Lh("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var lo=null,Po=null;function HA(e){j1(e,0)}function ec(e){var t=gi(e);if(Ux(t))return e}function VA(e,t){if(e==="change")return t}var b1=!1;if(Mr){var cf;if(Mr){var ff="oninput"in document;if(!ff){var Ky=document.createElement("div");Ky.setAttribute("oninput","return;"),ff=typeof Ky.oninput=="function"}cf=ff}else cf=!1;b1=cf&&(!document.documentMode||9<document.documentMode)}function Gy(){lo&&(lo.detachEvent("onpropertychange",x1),Po=lo=null)}function x1(e){if(e.propertyName==="value"&&ec(Po)){var t=[];g1(t,Po,e,kh(e)),Jx(HA,t)}}function KA(e,t,r){e==="focusin"?(Gy(),lo=t,Po=r,lo.attachEvent("onpropertychange",x1)):e==="focusout"&&Gy()}function GA(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ec(Po)}function qA(e,t){if(e==="click")return ec(t)}function XA(e,t){if(e==="input"||e==="change")return ec(t)}function YA(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var or=typeof Object.is=="function"?Object.is:YA;function Ao(e,t){if(or(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!rd.call(t,i)||!or(e[i],t[i]))return!1}return!0}function qy(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Xy(e,t){var r=qy(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=qy(r)}}function w1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?w1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function S1(){for(var e=window,t=_u();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=_u(e.document)}return t}function zh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function QA(e){var t=S1(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&w1(r.ownerDocument.documentElement,r)){if(n!==null&&zh(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=Xy(r,a);var o=Xy(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var ZA=Mr&&"documentMode"in document&&11>=document.documentMode,yi=null,wd=null,uo=null,Sd=!1;function Yy(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Sd||yi==null||yi!==_u(n)||(n=yi,"selectionStart"in n&&zh(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),uo&&Ao(uo,n)||(uo=n,n=ku(wd,"onSelect"),0<n.length&&(t=new Lh("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=yi)))}function Ul(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var mi={animationend:Ul("Animation","AnimationEnd"),animationiteration:Ul("Animation","AnimationIteration"),animationstart:Ul("Animation","AnimationStart"),transitionend:Ul("Transition","TransitionEnd")},df={},O1={};Mr&&(O1=document.createElement("div").style,"AnimationEvent"in window||(delete mi.animationend.animation,delete mi.animationiteration.animation,delete mi.animationstart.animation),"TransitionEvent"in window||delete mi.transitionend.transition);function tc(e){if(df[e])return df[e];if(!mi[e])return e;var t=mi[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in O1)return df[e]=t[r];return e}var _1=tc("animationend"),P1=tc("animationiteration"),A1=tc("animationstart"),E1=tc("transitionend"),$1=new Map,Qy="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function vn(e,t){$1.set(e,t),ei(t,[e])}for(var pf=0;pf<Qy.length;pf++){var hf=Qy[pf],JA=hf.toLowerCase(),eE=hf[0].toUpperCase()+hf.slice(1);vn(JA,"on"+eE)}vn(_1,"onAnimationEnd");vn(P1,"onAnimationIteration");vn(A1,"onAnimationStart");vn("dblclick","onDoubleClick");vn("focusin","onFocus");vn("focusout","onBlur");vn(E1,"onTransitionEnd");Bi("onMouseEnter",["mouseout","mouseover"]);Bi("onMouseLeave",["mouseout","mouseover"]);Bi("onPointerEnter",["pointerout","pointerover"]);Bi("onPointerLeave",["pointerout","pointerover"]);ei("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ei("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ei("onBeforeInput",["compositionend","keypress","textInput","paste"]);ei("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ei("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ei("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ro="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),tE=new Set("cancel close invalid load scroll toggle".split(" ").concat(ro));function Zy(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,JP(n,t,void 0,e),e.currentTarget=null}function j1(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var o=n.length-1;0<=o;o--){var l=n[o],u=l.instance,s=l.currentTarget;if(l=l.listener,u!==a&&i.isPropagationStopped())break e;Zy(i,l,s),a=u}else for(o=0;o<n.length;o++){if(l=n[o],u=l.instance,s=l.currentTarget,l=l.listener,u!==a&&i.isPropagationStopped())break e;Zy(i,l,s),a=u}}}if(Au)throw e=md,Au=!1,md=null,e}function me(e,t){var r=t[Ed];r===void 0&&(r=t[Ed]=new Set);var n=e+"__bubble";r.has(n)||(T1(t,e,2,!1),r.add(n))}function vf(e,t,r){var n=0;t&&(n|=4),T1(r,e,n,t)}var Wl="_reactListening"+Math.random().toString(36).slice(2);function Eo(e){if(!e[Wl]){e[Wl]=!0,Lx.forEach(function(r){r!=="selectionchange"&&(tE.has(r)||vf(r,!1,e),vf(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wl]||(t[Wl]=!0,vf("selectionchange",!1,t))}}function T1(e,t,r,n){switch(p1(t)){case 1:var i=vA;break;case 4:i=yA;break;default:i=Ih}r=i.bind(null,t,r,e),i=void 0,!yd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function yf(e,t,r,n,i){var a=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var l=n.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(o===4)for(o=n.return;o!==null;){var u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;o=o.return}for(;l!==null;){if(o=Cn(l),o===null)return;if(u=o.tag,u===5||u===6){n=a=o;continue e}l=l.parentNode}}n=n.return}Jx(function(){var s=a,f=kh(r),c=[];e:{var d=$1.get(e);if(d!==void 0){var p=Lh,m=e;switch(e){case"keypress":if(yu(r)===0)break e;case"keydown":case"keyup":p=kA;break;case"focusin":m="focus",p=sf;break;case"focusout":m="blur",p=sf;break;case"beforeblur":case"afterblur":p=sf;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=zy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=bA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=NA;break;case _1:case P1:case A1:p=SA;break;case E1:p=DA;break;case"scroll":p=mA;break;case"wheel":p=RA;break;case"copy":case"cut":case"paste":p=_A;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Uy}var v=(t&4)!==0,x=!v&&e==="scroll",y=v?d!==null?d+"Capture":null:d;v=[];for(var h=s,g;h!==null;){g=h;var S=g.stateNode;if(g.tag===5&&S!==null&&(g=S,y!==null&&(S=wo(h,y),S!=null&&v.push($o(h,S,g)))),x)break;h=h.return}0<v.length&&(d=new p(d,m,null,r,f),c.push({event:d,listeners:v}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",d&&r!==hd&&(m=r.relatedTarget||r.fromElement)&&(Cn(m)||m[Nr]))break e;if((p||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,p?(m=r.relatedTarget||r.toElement,p=s,m=m?Cn(m):null,m!==null&&(x=ti(m),m!==x||m.tag!==5&&m.tag!==6)&&(m=null)):(p=null,m=s),p!==m)){if(v=zy,S="onMouseLeave",y="onMouseEnter",h="mouse",(e==="pointerout"||e==="pointerover")&&(v=Uy,S="onPointerLeave",y="onPointerEnter",h="pointer"),x=p==null?d:gi(p),g=m==null?d:gi(m),d=new v(S,h+"leave",p,r,f),d.target=x,d.relatedTarget=g,S=null,Cn(f)===s&&(v=new v(y,h+"enter",m,r,f),v.target=g,v.relatedTarget=x,S=v),x=S,p&&m)t:{for(v=p,y=m,h=0,g=v;g;g=ui(g))h++;for(g=0,S=y;S;S=ui(S))g++;for(;0<h-g;)v=ui(v),h--;for(;0<g-h;)y=ui(y),g--;for(;h--;){if(v===y||y!==null&&v===y.alternate)break t;v=ui(v),y=ui(y)}v=null}else v=null;p!==null&&Jy(c,d,p,v,!1),m!==null&&x!==null&&Jy(c,x,m,v,!0)}}e:{if(d=s?gi(s):window,p=d.nodeName&&d.nodeName.toLowerCase(),p==="select"||p==="input"&&d.type==="file")var b=VA;else if(Vy(d))if(b1)b=XA;else{b=GA;var w=KA}else(p=d.nodeName)&&p.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(b=qA);if(b&&(b=b(e,s))){g1(c,b,r,f);break e}w&&w(e,d,s),e==="focusout"&&(w=d._wrapperState)&&w.controlled&&d.type==="number"&&sd(d,"number",d.value)}switch(w=s?gi(s):window,e){case"focusin":(Vy(w)||w.contentEditable==="true")&&(yi=w,wd=s,uo=null);break;case"focusout":uo=wd=yi=null;break;case"mousedown":Sd=!0;break;case"contextmenu":case"mouseup":case"dragend":Sd=!1,Yy(c,r,f);break;case"selectionchange":if(ZA)break;case"keydown":case"keyup":Yy(c,r,f)}var O;if(Bh)e:{switch(e){case"compositionstart":var _="onCompositionStart";break e;case"compositionend":_="onCompositionEnd";break e;case"compositionupdate":_="onCompositionUpdate";break e}_=void 0}else vi?y1(e,r)&&(_="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(_="onCompositionStart");_&&(v1&&r.locale!=="ko"&&(vi||_!=="onCompositionStart"?_==="onCompositionEnd"&&vi&&(O=h1()):(Jr=f,Dh="value"in Jr?Jr.value:Jr.textContent,vi=!0)),w=ku(s,_),0<w.length&&(_=new Fy(_,e,null,r,f),c.push({event:_,listeners:w}),O?_.data=O:(O=m1(r),O!==null&&(_.data=O)))),(O=zA?FA(e,r):UA(e,r))&&(s=ku(s,"onBeforeInput"),0<s.length&&(f=new Fy("onBeforeInput","beforeinput",null,r,f),c.push({event:f,listeners:s}),f.data=O))}j1(c,t)})}function $o(e,t,r){return{instance:e,listener:t,currentTarget:r}}function ku(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=wo(e,r),a!=null&&n.unshift($o(e,a,i)),a=wo(e,t),a!=null&&n.push($o(e,a,i))),e=e.return}return n}function ui(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Jy(e,t,r,n,i){for(var a=t._reactName,o=[];r!==null&&r!==n;){var l=r,u=l.alternate,s=l.stateNode;if(u!==null&&u===n)break;l.tag===5&&s!==null&&(l=s,i?(u=wo(r,a),u!=null&&o.unshift($o(r,u,l))):i||(u=wo(r,a),u!=null&&o.push($o(r,u,l)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var rE=/\r\n?/g,nE=/\u0000|\uFFFD/g;function em(e){return(typeof e=="string"?e:""+e).replace(rE,`
|
|
38
|
+
`).replace(nE,"")}function Hl(e,t,r){if(t=em(t),em(e)!==t&&r)throw Error(U(425))}function Cu(){}var Od=null,_d=null;function Pd(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ad=typeof setTimeout=="function"?setTimeout:void 0,iE=typeof clearTimeout=="function"?clearTimeout:void 0,tm=typeof Promise=="function"?Promise:void 0,aE=typeof queueMicrotask=="function"?queueMicrotask:typeof tm<"u"?function(e){return tm.resolve(null).then(e).catch(oE)}:Ad;function oE(e){setTimeout(function(){throw e})}function mf(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),_o(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);_o(t)}function ln(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function rm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var xa=Math.random().toString(36).slice(2),cr="__reactFiber$"+xa,jo="__reactProps$"+xa,Nr="__reactContainer$"+xa,Ed="__reactEvents$"+xa,lE="__reactListeners$"+xa,uE="__reactHandles$"+xa;function Cn(e){var t=e[cr];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Nr]||r[cr]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=rm(e);e!==null;){if(r=e[cr])return r;e=rm(e)}return t}e=r,r=e.parentNode}return null}function wl(e){return e=e[cr]||e[Nr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function gi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(U(33))}function rc(e){return e[jo]||null}var $d=[],bi=-1;function yn(e){return{current:e}}function xe(e){0>bi||(e.current=$d[bi],$d[bi]=null,bi--)}function ve(e,t){bi++,$d[bi]=e.current,e.current=t}var hn={},at=yn(hn),gt=yn(!1),Hn=hn;function zi(e,t){var r=e.type.contextTypes;if(!r)return hn;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function bt(e){return e=e.childContextTypes,e!=null}function Mu(){xe(gt),xe(at)}function nm(e,t,r){if(at.current!==hn)throw Error(U(168));ve(at,t),ve(gt,r)}function k1(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(U(108,KP(e)||"Unknown",i));return Ae({},r,n)}function Nu(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||hn,Hn=at.current,ve(at,e),ve(gt,gt.current),!0}function im(e,t,r){var n=e.stateNode;if(!n)throw Error(U(169));r?(e=k1(e,t,Hn),n.__reactInternalMemoizedMergedChildContext=e,xe(gt),xe(at),ve(at,e)):xe(gt),ve(gt,r)}var Sr=null,nc=!1,gf=!1;function C1(e){Sr===null?Sr=[e]:Sr.push(e)}function sE(e){nc=!0,C1(e)}function mn(){if(!gf&&Sr!==null){gf=!0;var e=0,t=se;try{var r=Sr;for(se=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Sr=null,nc=!1}catch(i){throw Sr!==null&&(Sr=Sr.slice(e+1)),n1(Ch,mn),i}finally{se=t,gf=!1}}return null}var xi=[],wi=0,Iu=null,Du=0,Dt=[],Lt=0,Vn=null,Or=1,_r="";function En(e,t){xi[wi++]=Du,xi[wi++]=Iu,Iu=e,Du=t}function M1(e,t,r){Dt[Lt++]=Or,Dt[Lt++]=_r,Dt[Lt++]=Vn,Vn=e;var n=Or;e=_r;var i=32-ir(n)-1;n&=~(1<<i),r+=1;var a=32-ir(t)+i;if(30<a){var o=i-i%5;a=(n&(1<<o)-1).toString(32),n>>=o,i-=o,Or=1<<32-ir(t)+i|r<<i|n,_r=a+e}else Or=1<<a|r<<i|n,_r=e}function Fh(e){e.return!==null&&(En(e,1),M1(e,1,0))}function Uh(e){for(;e===Iu;)Iu=xi[--wi],xi[wi]=null,Du=xi[--wi],xi[wi]=null;for(;e===Vn;)Vn=Dt[--Lt],Dt[Lt]=null,_r=Dt[--Lt],Dt[Lt]=null,Or=Dt[--Lt],Dt[Lt]=null}var $t=null,Et=null,Se=!1,tr=null;function N1(e,t){var r=Rt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function am(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,$t=e,Et=ln(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,$t=e,Et=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Vn!==null?{id:Or,overflow:_r}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Rt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,$t=e,Et=null,!0):!1;default:return!1}}function jd(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Td(e){if(Se){var t=Et;if(t){var r=t;if(!am(e,t)){if(jd(e))throw Error(U(418));t=ln(r.nextSibling);var n=$t;t&&am(e,t)?N1(n,r):(e.flags=e.flags&-4097|2,Se=!1,$t=e)}}else{if(jd(e))throw Error(U(418));e.flags=e.flags&-4097|2,Se=!1,$t=e}}}function om(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;$t=e}function Vl(e){if(e!==$t)return!1;if(!Se)return om(e),Se=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Pd(e.type,e.memoizedProps)),t&&(t=Et)){if(jd(e))throw I1(),Error(U(418));for(;t;)N1(e,t),t=ln(t.nextSibling)}if(om(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Et=ln(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Et=null}}else Et=$t?ln(e.stateNode.nextSibling):null;return!0}function I1(){for(var e=Et;e;)e=ln(e.nextSibling)}function Fi(){Et=$t=null,Se=!1}function Wh(e){tr===null?tr=[e]:tr.push(e)}var cE=zr.ReactCurrentBatchConfig;function za(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(U(309));var n=r.stateNode}if(!n)throw Error(U(147,e));var i=n,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(o){var l=i.refs;o===null?delete l[a]:l[a]=o},t._stringRef=a,t)}if(typeof e!="string")throw Error(U(284));if(!r._owner)throw Error(U(290,e))}return e}function Kl(e,t){throw e=Object.prototype.toString.call(t),Error(U(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function lm(e){var t=e._init;return t(e._payload)}function D1(e){function t(y,h){if(e){var g=y.deletions;g===null?(y.deletions=[h],y.flags|=16):g.push(h)}}function r(y,h){if(!e)return null;for(;h!==null;)t(y,h),h=h.sibling;return null}function n(y,h){for(y=new Map;h!==null;)h.key!==null?y.set(h.key,h):y.set(h.index,h),h=h.sibling;return y}function i(y,h){return y=fn(y,h),y.index=0,y.sibling=null,y}function a(y,h,g){return y.index=g,e?(g=y.alternate,g!==null?(g=g.index,g<h?(y.flags|=2,h):g):(y.flags|=2,h)):(y.flags|=1048576,h)}function o(y){return e&&y.alternate===null&&(y.flags|=2),y}function l(y,h,g,S){return h===null||h.tag!==6?(h=Pf(g,y.mode,S),h.return=y,h):(h=i(h,g),h.return=y,h)}function u(y,h,g,S){var b=g.type;return b===hi?f(y,h,g.props.children,S,g.key):h!==null&&(h.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Gr&&lm(b)===h.type)?(S=i(h,g.props),S.ref=za(y,h,g),S.return=y,S):(S=Ou(g.type,g.key,g.props,null,y.mode,S),S.ref=za(y,h,g),S.return=y,S)}function s(y,h,g,S){return h===null||h.tag!==4||h.stateNode.containerInfo!==g.containerInfo||h.stateNode.implementation!==g.implementation?(h=Af(g,y.mode,S),h.return=y,h):(h=i(h,g.children||[]),h.return=y,h)}function f(y,h,g,S,b){return h===null||h.tag!==7?(h=Fn(g,y.mode,S,b),h.return=y,h):(h=i(h,g),h.return=y,h)}function c(y,h,g){if(typeof h=="string"&&h!==""||typeof h=="number")return h=Pf(""+h,y.mode,g),h.return=y,h;if(typeof h=="object"&&h!==null){switch(h.$$typeof){case Il:return g=Ou(h.type,h.key,h.props,null,y.mode,g),g.ref=za(y,null,h),g.return=y,g;case pi:return h=Af(h,y.mode,g),h.return=y,h;case Gr:var S=h._init;return c(y,S(h._payload),g)}if(eo(h)||Ia(h))return h=Fn(h,y.mode,g,null),h.return=y,h;Kl(y,h)}return null}function d(y,h,g,S){var b=h!==null?h.key:null;if(typeof g=="string"&&g!==""||typeof g=="number")return b!==null?null:l(y,h,""+g,S);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Il:return g.key===b?u(y,h,g,S):null;case pi:return g.key===b?s(y,h,g,S):null;case Gr:return b=g._init,d(y,h,b(g._payload),S)}if(eo(g)||Ia(g))return b!==null?null:f(y,h,g,S,null);Kl(y,g)}return null}function p(y,h,g,S,b){if(typeof S=="string"&&S!==""||typeof S=="number")return y=y.get(g)||null,l(h,y,""+S,b);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Il:return y=y.get(S.key===null?g:S.key)||null,u(h,y,S,b);case pi:return y=y.get(S.key===null?g:S.key)||null,s(h,y,S,b);case Gr:var w=S._init;return p(y,h,g,w(S._payload),b)}if(eo(S)||Ia(S))return y=y.get(g)||null,f(h,y,S,b,null);Kl(h,S)}return null}function m(y,h,g,S){for(var b=null,w=null,O=h,_=h=0,A=null;O!==null&&_<g.length;_++){O.index>_?(A=O,O=null):A=O.sibling;var j=d(y,O,g[_],S);if(j===null){O===null&&(O=A);break}e&&O&&j.alternate===null&&t(y,O),h=a(j,h,_),w===null?b=j:w.sibling=j,w=j,O=A}if(_===g.length)return r(y,O),Se&&En(y,_),b;if(O===null){for(;_<g.length;_++)O=c(y,g[_],S),O!==null&&(h=a(O,h,_),w===null?b=O:w.sibling=O,w=O);return Se&&En(y,_),b}for(O=n(y,O);_<g.length;_++)A=p(O,y,_,g[_],S),A!==null&&(e&&A.alternate!==null&&O.delete(A.key===null?_:A.key),h=a(A,h,_),w===null?b=A:w.sibling=A,w=A);return e&&O.forEach(function(T){return t(y,T)}),Se&&En(y,_),b}function v(y,h,g,S){var b=Ia(g);if(typeof b!="function")throw Error(U(150));if(g=b.call(g),g==null)throw Error(U(151));for(var w=b=null,O=h,_=h=0,A=null,j=g.next();O!==null&&!j.done;_++,j=g.next()){O.index>_?(A=O,O=null):A=O.sibling;var T=d(y,O,j.value,S);if(T===null){O===null&&(O=A);break}e&&O&&T.alternate===null&&t(y,O),h=a(T,h,_),w===null?b=T:w.sibling=T,w=T,O=A}if(j.done)return r(y,O),Se&&En(y,_),b;if(O===null){for(;!j.done;_++,j=g.next())j=c(y,j.value,S),j!==null&&(h=a(j,h,_),w===null?b=j:w.sibling=j,w=j);return Se&&En(y,_),b}for(O=n(y,O);!j.done;_++,j=g.next())j=p(O,y,_,j.value,S),j!==null&&(e&&j.alternate!==null&&O.delete(j.key===null?_:j.key),h=a(j,h,_),w===null?b=j:w.sibling=j,w=j);return e&&O.forEach(function($){return t(y,$)}),Se&&En(y,_),b}function x(y,h,g,S){if(typeof g=="object"&&g!==null&&g.type===hi&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Il:e:{for(var b=g.key,w=h;w!==null;){if(w.key===b){if(b=g.type,b===hi){if(w.tag===7){r(y,w.sibling),h=i(w,g.props.children),h.return=y,y=h;break e}}else if(w.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Gr&&lm(b)===w.type){r(y,w.sibling),h=i(w,g.props),h.ref=za(y,w,g),h.return=y,y=h;break e}r(y,w);break}else t(y,w);w=w.sibling}g.type===hi?(h=Fn(g.props.children,y.mode,S,g.key),h.return=y,y=h):(S=Ou(g.type,g.key,g.props,null,y.mode,S),S.ref=za(y,h,g),S.return=y,y=S)}return o(y);case pi:e:{for(w=g.key;h!==null;){if(h.key===w)if(h.tag===4&&h.stateNode.containerInfo===g.containerInfo&&h.stateNode.implementation===g.implementation){r(y,h.sibling),h=i(h,g.children||[]),h.return=y,y=h;break e}else{r(y,h);break}else t(y,h);h=h.sibling}h=Af(g,y.mode,S),h.return=y,y=h}return o(y);case Gr:return w=g._init,x(y,h,w(g._payload),S)}if(eo(g))return m(y,h,g,S);if(Ia(g))return v(y,h,g,S);Kl(y,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,h!==null&&h.tag===6?(r(y,h.sibling),h=i(h,g),h.return=y,y=h):(r(y,h),h=Pf(g,y.mode,S),h.return=y,y=h),o(y)):r(y,h)}return x}var Ui=D1(!0),L1=D1(!1),Lu=yn(null),Ru=null,Si=null,Hh=null;function Vh(){Hh=Si=Ru=null}function Kh(e){var t=Lu.current;xe(Lu),e._currentValue=t}function kd(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Ci(e,t){Ru=e,Hh=Si=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(yt=!0),e.firstContext=null)}function Wt(e){var t=e._currentValue;if(Hh!==e)if(e={context:e,memoizedValue:t,next:null},Si===null){if(Ru===null)throw Error(U(308));Si=e,Ru.dependencies={lanes:0,firstContext:e}}else Si=Si.next=e;return t}var Mn=null;function Gh(e){Mn===null?Mn=[e]:Mn.push(e)}function R1(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,Gh(t)):(r.next=i.next,i.next=r),t.interleaved=r,Ir(e,n)}function Ir(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var qr=!1;function qh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function B1(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function $r(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function un(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,oe&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,Ir(e,r)}return i=n.interleaved,i===null?(t.next=t,Gh(n)):(t.next=i.next,i.next=t),n.interleaved=t,Ir(e,r)}function mu(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Mh(e,r)}}function um(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=o:a=a.next=o,r=r.next}while(r!==null);a===null?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Bu(e,t,r,n){var i=e.updateQueue;qr=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var u=l,s=u.next;u.next=null,o===null?a=s:o.next=s,o=u;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==o&&(l===null?f.firstBaseUpdate=s:l.next=s,f.lastBaseUpdate=u))}if(a!==null){var c=i.baseState;o=0,f=s=u=null,l=a;do{var d=l.lane,p=l.eventTime;if((n&d)===d){f!==null&&(f=f.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,v=l;switch(d=t,p=r,v.tag){case 1:if(m=v.payload,typeof m=="function"){c=m.call(p,c,d);break e}c=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=v.payload,d=typeof m=="function"?m.call(p,c,d):m,d==null)break e;c=Ae({},c,d);break e;case 2:qr=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[l]:d.push(l))}else p={eventTime:p,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(s=f=p,u=c):f=f.next=p,o|=d;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;d=l,l=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(f===null&&(u=c),i.baseState=u,i.firstBaseUpdate=s,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);Gn|=o,e.lanes=o,e.memoizedState=c}}function sm(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(U(191,i));i.call(n)}}}var Sl={},hr=yn(Sl),To=yn(Sl),ko=yn(Sl);function Nn(e){if(e===Sl)throw Error(U(174));return e}function Xh(e,t){switch(ve(ko,t),ve(To,e),ve(hr,Sl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=fd(t,e)}xe(hr),ve(hr,t)}function Wi(){xe(hr),xe(To),xe(ko)}function z1(e){Nn(ko.current);var t=Nn(hr.current),r=fd(t,e.type);t!==r&&(ve(To,e),ve(hr,r))}function Yh(e){To.current===e&&(xe(hr),xe(To))}var _e=yn(0);function zu(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var bf=[];function Qh(){for(var e=0;e<bf.length;e++)bf[e]._workInProgressVersionPrimary=null;bf.length=0}var gu=zr.ReactCurrentDispatcher,xf=zr.ReactCurrentBatchConfig,Kn=0,Pe=null,Be=null,He=null,Fu=!1,so=!1,Co=0,fE=0;function Je(){throw Error(U(321))}function Zh(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!or(e[r],t[r]))return!1;return!0}function Jh(e,t,r,n,i,a){if(Kn=a,Pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,gu.current=e===null||e.memoizedState===null?vE:yE,e=r(n,i),so){a=0;do{if(so=!1,Co=0,25<=a)throw Error(U(301));a+=1,He=Be=null,t.updateQueue=null,gu.current=mE,e=r(n,i)}while(so)}if(gu.current=Uu,t=Be!==null&&Be.next!==null,Kn=0,He=Be=Pe=null,Fu=!1,t)throw Error(U(300));return e}function ev(){var e=Co!==0;return Co=0,e}function sr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return He===null?Pe.memoizedState=He=e:He=He.next=e,He}function Ht(){if(Be===null){var e=Pe.alternate;e=e!==null?e.memoizedState:null}else e=Be.next;var t=He===null?Pe.memoizedState:He.next;if(t!==null)He=t,Be=e;else{if(e===null)throw Error(U(310));Be=e,e={memoizedState:Be.memoizedState,baseState:Be.baseState,baseQueue:Be.baseQueue,queue:Be.queue,next:null},He===null?Pe.memoizedState=He=e:He=He.next=e}return He}function Mo(e,t){return typeof t=="function"?t(e):t}function wf(e){var t=Ht(),r=t.queue;if(r===null)throw Error(U(311));r.lastRenderedReducer=e;var n=Be,i=n.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}n.baseQueue=i=a,r.pending=null}if(i!==null){a=i.next,n=n.baseState;var l=o=null,u=null,s=a;do{var f=s.lane;if((Kn&f)===f)u!==null&&(u=u.next={lane:0,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),n=s.hasEagerState?s.eagerState:e(n,s.action);else{var c={lane:f,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null};u===null?(l=u=c,o=n):u=u.next=c,Pe.lanes|=f,Gn|=f}s=s.next}while(s!==null&&s!==a);u===null?o=n:u.next=l,or(n,t.memoizedState)||(yt=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=u,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do a=i.lane,Pe.lanes|=a,Gn|=a,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Sf(e){var t=Ht(),r=t.queue;if(r===null)throw Error(U(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,a=t.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);or(a,t.memoizedState)||(yt=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function F1(){}function U1(e,t){var r=Pe,n=Ht(),i=t(),a=!or(n.memoizedState,i);if(a&&(n.memoizedState=i,yt=!0),n=n.queue,tv(V1.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||He!==null&&He.memoizedState.tag&1){if(r.flags|=2048,No(9,H1.bind(null,r,n,i,t),void 0,null),Ve===null)throw Error(U(349));Kn&30||W1(r,t,i)}return i}function W1(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Pe.updateQueue,t===null?(t={lastEffect:null,stores:null},Pe.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function H1(e,t,r,n){t.value=r,t.getSnapshot=n,K1(t)&&G1(e)}function V1(e,t,r){return r(function(){K1(t)&&G1(e)})}function K1(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!or(e,r)}catch{return!0}}function G1(e){var t=Ir(e,1);t!==null&&ar(t,e,1,-1)}function cm(e){var t=sr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:e},t.queue=e,e=e.dispatch=hE.bind(null,Pe,e),[t.memoizedState,e]}function No(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Pe.updateQueue,t===null?(t={lastEffect:null,stores:null},Pe.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function q1(){return Ht().memoizedState}function bu(e,t,r,n){var i=sr();Pe.flags|=e,i.memoizedState=No(1|t,r,void 0,n===void 0?null:n)}function ic(e,t,r,n){var i=Ht();n=n===void 0?null:n;var a=void 0;if(Be!==null){var o=Be.memoizedState;if(a=o.destroy,n!==null&&Zh(n,o.deps)){i.memoizedState=No(t,r,a,n);return}}Pe.flags|=e,i.memoizedState=No(1|t,r,a,n)}function fm(e,t){return bu(8390656,8,e,t)}function tv(e,t){return ic(2048,8,e,t)}function X1(e,t){return ic(4,2,e,t)}function Y1(e,t){return ic(4,4,e,t)}function Q1(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Z1(e,t,r){return r=r!=null?r.concat([e]):null,ic(4,4,Q1.bind(null,t,e),r)}function rv(){}function J1(e,t){var r=Ht();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Zh(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function ew(e,t){var r=Ht();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Zh(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function tw(e,t,r){return Kn&21?(or(r,t)||(r=o1(),Pe.lanes|=r,Gn|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,yt=!0),e.memoizedState=r)}function dE(e,t){var r=se;se=r!==0&&4>r?r:4,e(!0);var n=xf.transition;xf.transition={};try{e(!1),t()}finally{se=r,xf.transition=n}}function rw(){return Ht().memoizedState}function pE(e,t,r){var n=cn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},nw(e))iw(t,r);else if(r=R1(e,t,r,n),r!==null){var i=st();ar(r,e,n,i),aw(r,t,n)}}function hE(e,t,r){var n=cn(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(nw(e))iw(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,l=a(o,r);if(i.hasEagerState=!0,i.eagerState=l,or(l,o)){var u=t.interleaved;u===null?(i.next=i,Gh(t)):(i.next=u.next,u.next=i),t.interleaved=i;return}}catch{}finally{}r=R1(e,t,i,n),r!==null&&(i=st(),ar(r,e,n,i),aw(r,t,n))}}function nw(e){var t=e.alternate;return e===Pe||t!==null&&t===Pe}function iw(e,t){so=Fu=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function aw(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Mh(e,r)}}var Uu={readContext:Wt,useCallback:Je,useContext:Je,useEffect:Je,useImperativeHandle:Je,useInsertionEffect:Je,useLayoutEffect:Je,useMemo:Je,useReducer:Je,useRef:Je,useState:Je,useDebugValue:Je,useDeferredValue:Je,useTransition:Je,useMutableSource:Je,useSyncExternalStore:Je,useId:Je,unstable_isNewReconciler:!1},vE={readContext:Wt,useCallback:function(e,t){return sr().memoizedState=[e,t===void 0?null:t],e},useContext:Wt,useEffect:fm,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,bu(4194308,4,Q1.bind(null,t,e),r)},useLayoutEffect:function(e,t){return bu(4194308,4,e,t)},useInsertionEffect:function(e,t){return bu(4,2,e,t)},useMemo:function(e,t){var r=sr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=sr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=pE.bind(null,Pe,e),[n.memoizedState,e]},useRef:function(e){var t=sr();return e={current:e},t.memoizedState=e},useState:cm,useDebugValue:rv,useDeferredValue:function(e){return sr().memoizedState=e},useTransition:function(){var e=cm(!1),t=e[0];return e=dE.bind(null,e[1]),sr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=Pe,i=sr();if(Se){if(r===void 0)throw Error(U(407));r=r()}else{if(r=t(),Ve===null)throw Error(U(349));Kn&30||W1(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,fm(V1.bind(null,n,a,e),[e]),n.flags|=2048,No(9,H1.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=sr(),t=Ve.identifierPrefix;if(Se){var r=_r,n=Or;r=(n&~(1<<32-ir(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Co++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=fE++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},yE={readContext:Wt,useCallback:J1,useContext:Wt,useEffect:tv,useImperativeHandle:Z1,useInsertionEffect:X1,useLayoutEffect:Y1,useMemo:ew,useReducer:wf,useRef:q1,useState:function(){return wf(Mo)},useDebugValue:rv,useDeferredValue:function(e){var t=Ht();return tw(t,Be.memoizedState,e)},useTransition:function(){var e=wf(Mo)[0],t=Ht().memoizedState;return[e,t]},useMutableSource:F1,useSyncExternalStore:U1,useId:rw,unstable_isNewReconciler:!1},mE={readContext:Wt,useCallback:J1,useContext:Wt,useEffect:tv,useImperativeHandle:Z1,useInsertionEffect:X1,useLayoutEffect:Y1,useMemo:ew,useReducer:Sf,useRef:q1,useState:function(){return Sf(Mo)},useDebugValue:rv,useDeferredValue:function(e){var t=Ht();return Be===null?t.memoizedState=e:tw(t,Be.memoizedState,e)},useTransition:function(){var e=Sf(Mo)[0],t=Ht().memoizedState;return[e,t]},useMutableSource:F1,useSyncExternalStore:U1,useId:rw,unstable_isNewReconciler:!1};function Yt(e,t){if(e&&e.defaultProps){t=Ae({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Cd(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Ae({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var ac={isMounted:function(e){return(e=e._reactInternals)?ti(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=st(),i=cn(e),a=$r(n,i);a.payload=t,r!=null&&(a.callback=r),t=un(e,a,i),t!==null&&(ar(t,e,i,n),mu(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=st(),i=cn(e),a=$r(n,i);a.tag=1,a.payload=t,r!=null&&(a.callback=r),t=un(e,a,i),t!==null&&(ar(t,e,i,n),mu(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=st(),n=cn(e),i=$r(r,n);i.tag=2,t!=null&&(i.callback=t),t=un(e,i,n),t!==null&&(ar(t,e,n,r),mu(t,e,n))}};function dm(e,t,r,n,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,a,o):t.prototype&&t.prototype.isPureReactComponent?!Ao(r,n)||!Ao(i,a):!0}function ow(e,t,r){var n=!1,i=hn,a=t.contextType;return typeof a=="object"&&a!==null?a=Wt(a):(i=bt(t)?Hn:at.current,n=t.contextTypes,a=(n=n!=null)?zi(e,i):hn),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ac,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function pm(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&ac.enqueueReplaceState(t,t.state,null)}function Md(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},qh(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=Wt(a):(a=bt(t)?Hn:at.current,i.context=zi(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(Cd(e,t,a,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&ac.enqueueReplaceState(i,i.state,null),Bu(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Hi(e,t){try{var r="",n=t;do r+=VP(n),n=n.return;while(n);var i=r}catch(a){i=`
|
|
39
|
+
Error generating stack: `+a.message+`
|
|
40
|
+
`+a.stack}return{value:e,source:t,stack:i,digest:null}}function Of(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Nd(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var gE=typeof WeakMap=="function"?WeakMap:Map;function lw(e,t,r){r=$r(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Hu||(Hu=!0,Hd=n),Nd(e,t)},r}function uw(e,t,r){r=$r(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){Nd(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){Nd(e,t),typeof n!="function"&&(sn===null?sn=new Set([this]):sn.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function hm(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new gE;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=CE.bind(null,e,t,r),t.then(e,e))}function vm(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ym(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=$r(-1,1),t.tag=2,un(r,t,1))),r.lanes|=1),e)}var bE=zr.ReactCurrentOwner,yt=!1;function lt(e,t,r,n){t.child=e===null?L1(t,null,r,n):Ui(t,e.child,r,n)}function mm(e,t,r,n,i){r=r.render;var a=t.ref;return Ci(t,i),n=Jh(e,t,r,n,a,i),r=ev(),e!==null&&!yt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Dr(e,t,i)):(Se&&r&&Fh(t),t.flags|=1,lt(e,t,n,i),t.child)}function gm(e,t,r,n,i){if(e===null){var a=r.type;return typeof a=="function"&&!cv(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=a,sw(e,t,a,n,i)):(e=Ou(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(r=r.compare,r=r!==null?r:Ao,r(o,n)&&e.ref===t.ref)return Dr(e,t,i)}return t.flags|=1,e=fn(a,n),e.ref=t.ref,e.return=t,t.child=e}function sw(e,t,r,n,i){if(e!==null){var a=e.memoizedProps;if(Ao(a,n)&&e.ref===t.ref)if(yt=!1,t.pendingProps=n=a,(e.lanes&i)!==0)e.flags&131072&&(yt=!0);else return t.lanes=e.lanes,Dr(e,t,i)}return Id(e,t,r,n,i)}function cw(e,t,r){var n=t.pendingProps,i=n.children,a=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ve(_i,_t),_t|=r;else{if(!(r&1073741824))return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ve(_i,_t),_t|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=a!==null?a.baseLanes:r,ve(_i,_t),_t|=n}else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,ve(_i,_t),_t|=n;return lt(e,t,i,r),t.child}function fw(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Id(e,t,r,n,i){var a=bt(r)?Hn:at.current;return a=zi(t,a),Ci(t,i),r=Jh(e,t,r,n,a,i),n=ev(),e!==null&&!yt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Dr(e,t,i)):(Se&&n&&Fh(t),t.flags|=1,lt(e,t,r,i),t.child)}function bm(e,t,r,n,i){if(bt(r)){var a=!0;Nu(t)}else a=!1;if(Ci(t,i),t.stateNode===null)xu(e,t),ow(t,r,n),Md(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var u=o.context,s=r.contextType;typeof s=="object"&&s!==null?s=Wt(s):(s=bt(r)?Hn:at.current,s=zi(t,s));var f=r.getDerivedStateFromProps,c=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function";c||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==n||u!==s)&&pm(t,o,n,s),qr=!1;var d=t.memoizedState;o.state=d,Bu(t,n,o,i),u=t.memoizedState,l!==n||d!==u||gt.current||qr?(typeof f=="function"&&(Cd(t,r,f,n),u=t.memoizedState),(l=qr||dm(t,r,l,n,d,u,s))?(c||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),o.props=n,o.state=u,o.context=s,n=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,B1(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:Yt(t.type,l),o.props=s,c=t.pendingProps,d=o.context,u=r.contextType,typeof u=="object"&&u!==null?u=Wt(u):(u=bt(r)?Hn:at.current,u=zi(t,u));var p=r.getDerivedStateFromProps;(f=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==c||d!==u)&&pm(t,o,n,u),qr=!1,d=t.memoizedState,o.state=d,Bu(t,n,o,i);var m=t.memoizedState;l!==c||d!==m||gt.current||qr?(typeof p=="function"&&(Cd(t,r,p,n),m=t.memoizedState),(s=qr||dm(t,r,s,n,d,m,u)||!1)?(f||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,m,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,m,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=m),o.props=n,o.state=m,o.context=u,n=s):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),n=!1)}return Dd(e,t,r,n,a,i)}function Dd(e,t,r,n,i,a){fw(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return i&&im(t,r,!1),Dr(e,t,a);n=t.stateNode,bE.current=t;var l=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=Ui(t,e.child,null,a),t.child=Ui(t,null,l,a)):lt(e,t,l,a),t.memoizedState=n.state,i&&im(t,r,!0),t.child}function dw(e){var t=e.stateNode;t.pendingContext?nm(e,t.pendingContext,t.pendingContext!==t.context):t.context&&nm(e,t.context,!1),Xh(e,t.containerInfo)}function xm(e,t,r,n,i){return Fi(),Wh(i),t.flags|=256,lt(e,t,r,n),t.child}var Ld={dehydrated:null,treeContext:null,retryLane:0};function Rd(e){return{baseLanes:e,cachePool:null,transitions:null}}function pw(e,t,r){var n=t.pendingProps,i=_e.current,a=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ve(_e,i&1),e===null)return Td(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=n.children,e=n.fallback,a?(n=t.mode,a=t.child,o={mode:"hidden",children:o},!(n&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=uc(o,n,0,null),e=Fn(e,n,r,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Rd(r),t.memoizedState=Ld,e):nv(t,o));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return xE(e,t,o,n,l,i,r);if(a){a=n.fallback,o=t.mode,i=e.child,l=i.sibling;var u={mode:"hidden",children:n.children};return!(o&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=u,t.deletions=null):(n=fn(i,u),n.subtreeFlags=i.subtreeFlags&14680064),l!==null?a=fn(l,a):(a=Fn(a,o,r,null),a.flags|=2),a.return=t,n.return=t,n.sibling=a,t.child=n,n=a,a=t.child,o=e.child.memoizedState,o=o===null?Rd(r):{baseLanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~r,t.memoizedState=Ld,n}return a=e.child,e=a.sibling,n=fn(a,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function nv(e,t){return t=uc({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Gl(e,t,r,n){return n!==null&&Wh(n),Ui(t,e.child,null,r),e=nv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function xE(e,t,r,n,i,a,o){if(r)return t.flags&256?(t.flags&=-257,n=Of(Error(U(422))),Gl(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=n.fallback,i=t.mode,n=uc({mode:"visible",children:n.children},i,0,null),a=Fn(a,i,o,null),a.flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,t.mode&1&&Ui(t,e.child,null,o),t.child.memoizedState=Rd(o),t.memoizedState=Ld,a);if(!(t.mode&1))return Gl(e,t,o,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var l=n.dgst;return n=l,a=Error(U(419)),n=Of(a,n,void 0),Gl(e,t,o,n)}if(l=(o&e.childLanes)!==0,yt||l){if(n=Ve,n!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,Ir(e,i),ar(n,e,i,-1))}return sv(),n=Of(Error(U(421))),Gl(e,t,o,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=ME.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,Et=ln(i.nextSibling),$t=t,Se=!0,tr=null,e!==null&&(Dt[Lt++]=Or,Dt[Lt++]=_r,Dt[Lt++]=Vn,Or=e.id,_r=e.overflow,Vn=t),t=nv(t,n.children),t.flags|=4096,t)}function wm(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),kd(e.return,t,r)}function _f(e,t,r,n,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=i)}function hw(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(lt(e,t,n.children,r),n=_e.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wm(e,r,t);else if(e.tag===19)wm(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(ve(_e,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&zu(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),_f(t,!1,i,r,a);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&zu(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}_f(t,!0,r,null,a);break;case"together":_f(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function xu(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Dr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Gn|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(U(153));if(t.child!==null){for(e=t.child,r=fn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=fn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function wE(e,t,r){switch(t.tag){case 3:dw(t),Fi();break;case 5:z1(t);break;case 1:bt(t.type)&&Nu(t);break;case 4:Xh(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;ve(Lu,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(ve(_e,_e.current&1),t.flags|=128,null):r&t.child.childLanes?pw(e,t,r):(ve(_e,_e.current&1),e=Dr(e,t,r),e!==null?e.sibling:null);ve(_e,_e.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return hw(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ve(_e,_e.current),n)break;return null;case 22:case 23:return t.lanes=0,cw(e,t,r)}return Dr(e,t,r)}var vw,Bd,yw,mw;vw=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Bd=function(){};yw=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Nn(hr.current);var a=null;switch(r){case"input":i=ld(e,i),n=ld(e,n),a=[];break;case"select":i=Ae({},i,{value:void 0}),n=Ae({},n,{value:void 0}),a=[];break;case"textarea":i=cd(e,i),n=cd(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Cu)}dd(r,n);var o;r=null;for(s in i)if(!n.hasOwnProperty(s)&&i.hasOwnProperty(s)&&i[s]!=null)if(s==="style"){var l=i[s];for(o in l)l.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else s!=="dangerouslySetInnerHTML"&&s!=="children"&&s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(bo.hasOwnProperty(s)?a||(a=[]):(a=a||[]).push(s,null));for(s in n){var u=n[s];if(l=i!=null?i[s]:void 0,n.hasOwnProperty(s)&&u!==l&&(u!=null||l!=null))if(s==="style")if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(r||(r={}),r[o]=u[o])}else r||(a||(a=[]),a.push(s,r)),r=u;else s==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,l=l?l.__html:void 0,u!=null&&l!==u&&(a=a||[]).push(s,u)):s==="children"?typeof u!="string"&&typeof u!="number"||(a=a||[]).push(s,""+u):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&(bo.hasOwnProperty(s)?(u!=null&&s==="onScroll"&&me("scroll",e),a||l===u||(a=[])):(a=a||[]).push(s,u))}r&&(a=a||[]).push("style",r);var s=a;(t.updateQueue=s)&&(t.flags|=4)}};mw=function(e,t,r,n){r!==n&&(t.flags|=4)};function Fa(e,t){if(!Se)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function et(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function SE(e,t,r){var n=t.pendingProps;switch(Uh(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return bt(t.type)&&Mu(),et(t),null;case 3:return n=t.stateNode,Wi(),xe(gt),xe(at),Qh(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Vl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,tr!==null&&(Gd(tr),tr=null))),Bd(e,t),et(t),null;case 5:Yh(t);var i=Nn(ko.current);if(r=t.type,e!==null&&t.stateNode!=null)yw(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(U(166));return et(t),null}if(e=Nn(hr.current),Vl(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[cr]=t,n[jo]=a,e=(t.mode&1)!==0,r){case"dialog":me("cancel",n),me("close",n);break;case"iframe":case"object":case"embed":me("load",n);break;case"video":case"audio":for(i=0;i<ro.length;i++)me(ro[i],n);break;case"source":me("error",n);break;case"img":case"image":case"link":me("error",n),me("load",n);break;case"details":me("toggle",n);break;case"input":Ty(n,a),me("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},me("invalid",n);break;case"textarea":Cy(n,a),me("invalid",n)}dd(r,a),i=null;for(var o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="children"?typeof l=="string"?n.textContent!==l&&(a.suppressHydrationWarning!==!0&&Hl(n.textContent,l,e),i=["children",l]):typeof l=="number"&&n.textContent!==""+l&&(a.suppressHydrationWarning!==!0&&Hl(n.textContent,l,e),i=["children",""+l]):bo.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&me("scroll",n)}switch(r){case"input":Dl(n),ky(n,a,!0);break;case"textarea":Dl(n),My(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=Cu)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Vx(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[cr]=t,e[jo]=n,vw(e,t,!1,!1),t.stateNode=e;e:{switch(o=pd(r,n),r){case"dialog":me("cancel",e),me("close",e),i=n;break;case"iframe":case"object":case"embed":me("load",e),i=n;break;case"video":case"audio":for(i=0;i<ro.length;i++)me(ro[i],e);i=n;break;case"source":me("error",e),i=n;break;case"img":case"image":case"link":me("error",e),me("load",e),i=n;break;case"details":me("toggle",e),i=n;break;case"input":Ty(e,n),i=ld(e,n),me("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=Ae({},n,{value:void 0}),me("invalid",e);break;case"textarea":Cy(e,n),i=cd(e,n),me("invalid",e);break;default:i=n}dd(r,i),l=i;for(a in l)if(l.hasOwnProperty(a)){var u=l[a];a==="style"?qx(e,u):a==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Kx(e,u)):a==="children"?typeof u=="string"?(r!=="textarea"||u!=="")&&xo(e,u):typeof u=="number"&&xo(e,""+u):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(bo.hasOwnProperty(a)?u!=null&&a==="onScroll"&&me("scroll",e):u!=null&&Eh(e,a,u,o))}switch(r){case"input":Dl(e),ky(e,n,!1);break;case"textarea":Dl(e),My(e);break;case"option":n.value!=null&&e.setAttribute("value",""+pn(n.value));break;case"select":e.multiple=!!n.multiple,a=n.value,a!=null?$i(e,!!n.multiple,a,!1):n.defaultValue!=null&&$i(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Cu)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return et(t),null;case 6:if(e&&t.stateNode!=null)mw(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(U(166));if(r=Nn(ko.current),Nn(hr.current),Vl(t)){if(n=t.stateNode,r=t.memoizedProps,n[cr]=t,(a=n.nodeValue!==r)&&(e=$t,e!==null))switch(e.tag){case 3:Hl(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Hl(n.nodeValue,r,(e.mode&1)!==0)}a&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[cr]=t,t.stateNode=n}return et(t),null;case 13:if(xe(_e),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Se&&Et!==null&&t.mode&1&&!(t.flags&128))I1(),Fi(),t.flags|=98560,a=!1;else if(a=Vl(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(U(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(U(317));a[cr]=t}else Fi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;et(t),a=!1}else tr!==null&&(Gd(tr),tr=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||_e.current&1?ze===0&&(ze=3):sv())),t.updateQueue!==null&&(t.flags|=4),et(t),null);case 4:return Wi(),Bd(e,t),e===null&&Eo(t.stateNode.containerInfo),et(t),null;case 10:return Kh(t.type._context),et(t),null;case 17:return bt(t.type)&&Mu(),et(t),null;case 19:if(xe(_e),a=t.memoizedState,a===null)return et(t),null;if(n=(t.flags&128)!==0,o=a.rendering,o===null)if(n)Fa(a,!1);else{if(ze!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=zu(e),o!==null){for(t.flags|=128,Fa(a,!1),n=o.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)a=r,e=n,a.flags&=14680066,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return ve(_e,_e.current&1|2),t.child}e=e.sibling}a.tail!==null&&ke()>Vi&&(t.flags|=128,n=!0,Fa(a,!1),t.lanes=4194304)}else{if(!n)if(e=zu(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Fa(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Se)return et(t),null}else 2*ke()-a.renderingStartTime>Vi&&r!==1073741824&&(t.flags|=128,n=!0,Fa(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(r=a.last,r!==null?r.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ke(),t.sibling=null,r=_e.current,ve(_e,n?r&1|2:r&1),t):(et(t),null);case 22:case 23:return uv(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?_t&1073741824&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(U(156,t.tag))}function OE(e,t){switch(Uh(t),t.tag){case 1:return bt(t.type)&&Mu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wi(),xe(gt),xe(at),Qh(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Yh(t),null;case 13:if(xe(_e),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));Fi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xe(_e),null;case 4:return Wi(),null;case 10:return Kh(t.type._context),null;case 22:case 23:return uv(),null;case 24:return null;default:return null}}var ql=!1,rt=!1,_E=typeof WeakSet=="function"?WeakSet:Set,G=null;function Oi(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){$e(e,t,n)}else r.current=null}function zd(e,t,r){try{r()}catch(n){$e(e,t,n)}}var Sm=!1;function PE(e,t){if(Od=ju,e=S1(),zh(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,l=-1,u=-1,s=0,f=0,c=e,d=null;t:for(;;){for(var p;c!==r||i!==0&&c.nodeType!==3||(l=o+i),c!==a||n!==0&&c.nodeType!==3||(u=o+n),c.nodeType===3&&(o+=c.nodeValue.length),(p=c.firstChild)!==null;)d=c,c=p;for(;;){if(c===e)break t;if(d===r&&++s===i&&(l=o),d===a&&++f===n&&(u=o),(p=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=p}r=l===-1||u===-1?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(_d={focusedElem:e,selectionRange:r},ju=!1,G=t;G!==null;)if(t=G,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,G=e;else for(;G!==null;){t=G;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var v=m.memoizedProps,x=m.memoizedState,y=t.stateNode,h=y.getSnapshotBeforeUpdate(t.elementType===t.type?v:Yt(t.type,v),x);y.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(U(163))}}catch(S){$e(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,G=e;break}G=t.return}return m=Sm,Sm=!1,m}function co(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&zd(t,r,a)}i=i.next}while(i!==n)}}function oc(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Fd(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function gw(e){var t=e.alternate;t!==null&&(e.alternate=null,gw(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[cr],delete t[jo],delete t[Ed],delete t[lE],delete t[uE])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function bw(e){return e.tag===5||e.tag===3||e.tag===4}function Om(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bw(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ud(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Cu));else if(n!==4&&(e=e.child,e!==null))for(Ud(e,t,r),e=e.sibling;e!==null;)Ud(e,t,r),e=e.sibling}function Wd(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Wd(e,t,r),e=e.sibling;e!==null;)Wd(e,t,r),e=e.sibling}var qe=null,Qt=!1;function Vr(e,t,r){for(r=r.child;r!==null;)xw(e,t,r),r=r.sibling}function xw(e,t,r){if(pr&&typeof pr.onCommitFiberUnmount=="function")try{pr.onCommitFiberUnmount(Zs,r)}catch{}switch(r.tag){case 5:rt||Oi(r,t);case 6:var n=qe,i=Qt;qe=null,Vr(e,t,r),qe=n,Qt=i,qe!==null&&(Qt?(e=qe,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):qe.removeChild(r.stateNode));break;case 18:qe!==null&&(Qt?(e=qe,r=r.stateNode,e.nodeType===8?mf(e.parentNode,r):e.nodeType===1&&mf(e,r),_o(e)):mf(qe,r.stateNode));break;case 4:n=qe,i=Qt,qe=r.stateNode.containerInfo,Qt=!0,Vr(e,t,r),qe=n,Qt=i;break;case 0:case 11:case 14:case 15:if(!rt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&zd(r,t,o),i=i.next}while(i!==n)}Vr(e,t,r);break;case 1:if(!rt&&(Oi(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){$e(r,t,l)}Vr(e,t,r);break;case 21:Vr(e,t,r);break;case 22:r.mode&1?(rt=(n=rt)||r.memoizedState!==null,Vr(e,t,r),rt=n):Vr(e,t,r);break;default:Vr(e,t,r)}}function _m(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new _E),t.forEach(function(n){var i=NE.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function qt(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var a=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:qe=l.stateNode,Qt=!1;break e;case 3:qe=l.stateNode.containerInfo,Qt=!0;break e;case 4:qe=l.stateNode.containerInfo,Qt=!0;break e}l=l.return}if(qe===null)throw Error(U(160));xw(a,o,i),qe=null,Qt=!1;var u=i.alternate;u!==null&&(u.return=null),i.return=null}catch(s){$e(i,t,s)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)ww(t,e),t=t.sibling}function ww(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(qt(t,e),ur(e),n&4){try{co(3,e,e.return),oc(3,e)}catch(v){$e(e,e.return,v)}try{co(5,e,e.return)}catch(v){$e(e,e.return,v)}}break;case 1:qt(t,e),ur(e),n&512&&r!==null&&Oi(r,r.return);break;case 5:if(qt(t,e),ur(e),n&512&&r!==null&&Oi(r,r.return),e.flags&32){var i=e.stateNode;try{xo(i,"")}catch(v){$e(e,e.return,v)}}if(n&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,o=r!==null?r.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{l==="input"&&a.type==="radio"&&a.name!=null&&Wx(i,a),pd(l,o);var s=pd(l,a);for(o=0;o<u.length;o+=2){var f=u[o],c=u[o+1];f==="style"?qx(i,c):f==="dangerouslySetInnerHTML"?Kx(i,c):f==="children"?xo(i,c):Eh(i,f,c,s)}switch(l){case"input":ud(i,a);break;case"textarea":Hx(i,a);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;p!=null?$i(i,!!a.multiple,p,!1):d!==!!a.multiple&&(a.defaultValue!=null?$i(i,!!a.multiple,a.defaultValue,!0):$i(i,!!a.multiple,a.multiple?[]:"",!1))}i[jo]=a}catch(v){$e(e,e.return,v)}}break;case 6:if(qt(t,e),ur(e),n&4){if(e.stateNode===null)throw Error(U(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(v){$e(e,e.return,v)}}break;case 3:if(qt(t,e),ur(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{_o(t.containerInfo)}catch(v){$e(e,e.return,v)}break;case 4:qt(t,e),ur(e);break;case 13:qt(t,e),ur(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(ov=ke())),n&4&&_m(e);break;case 22:if(f=r!==null&&r.memoizedState!==null,e.mode&1?(rt=(s=rt)||f,qt(t,e),rt=s):qt(t,e),ur(e),n&8192){if(s=e.memoizedState!==null,(e.stateNode.isHidden=s)&&!f&&e.mode&1)for(G=e,f=e.child;f!==null;){for(c=G=f;G!==null;){switch(d=G,p=d.child,d.tag){case 0:case 11:case 14:case 15:co(4,d,d.return);break;case 1:Oi(d,d.return);var m=d.stateNode;if(typeof m.componentWillUnmount=="function"){n=d,r=d.return;try{t=n,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(v){$e(n,r,v)}}break;case 5:Oi(d,d.return);break;case 22:if(d.memoizedState!==null){Am(c);continue}}p!==null?(p.return=d,G=p):Am(c)}f=f.sibling}e:for(f=null,c=e;;){if(c.tag===5){if(f===null){f=c;try{i=c.stateNode,s?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(l=c.stateNode,u=c.memoizedProps.style,o=u!=null&&u.hasOwnProperty("display")?u.display:null,l.style.display=Gx("display",o))}catch(v){$e(e,e.return,v)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=s?"":c.memoizedProps}catch(v){$e(e,e.return,v)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;f===c&&(f=null),c=c.return}f===c&&(f=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:qt(t,e),ur(e),n&4&&_m(e);break;case 21:break;default:qt(t,e),ur(e)}}function ur(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(bw(r)){var n=r;break e}r=r.return}throw Error(U(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(xo(i,""),n.flags&=-33);var a=Om(e);Wd(e,a,i);break;case 3:case 4:var o=n.stateNode.containerInfo,l=Om(e);Ud(e,l,o);break;default:throw Error(U(161))}}catch(u){$e(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function AE(e,t,r){G=e,Sw(e)}function Sw(e,t,r){for(var n=(e.mode&1)!==0;G!==null;){var i=G,a=i.child;if(i.tag===22&&n){var o=i.memoizedState!==null||ql;if(!o){var l=i.alternate,u=l!==null&&l.memoizedState!==null||rt;l=ql;var s=rt;if(ql=o,(rt=u)&&!s)for(G=i;G!==null;)o=G,u=o.child,o.tag===22&&o.memoizedState!==null?Em(i):u!==null?(u.return=o,G=u):Em(i);for(;a!==null;)G=a,Sw(a),a=a.sibling;G=i,ql=l,rt=s}Pm(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,G=a):Pm(e)}}function Pm(e){for(;G!==null;){var t=G;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:rt||oc(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!rt)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Yt(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&sm(t,a,n);break;case 3:var o=t.updateQueue;if(o!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}sm(t,o,r)}break;case 5:var l=t.stateNode;if(r===null&&t.flags&4){r=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&r.focus();break;case"img":u.src&&(r.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var s=t.alternate;if(s!==null){var f=s.memoizedState;if(f!==null){var c=f.dehydrated;c!==null&&_o(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(U(163))}rt||t.flags&512&&Fd(t)}catch(d){$e(t,t.return,d)}}if(t===e){G=null;break}if(r=t.sibling,r!==null){r.return=t.return,G=r;break}G=t.return}}function Am(e){for(;G!==null;){var t=G;if(t===e){G=null;break}var r=t.sibling;if(r!==null){r.return=t.return,G=r;break}G=t.return}}function Em(e){for(;G!==null;){var t=G;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{oc(4,t)}catch(u){$e(t,r,u)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(u){$e(t,i,u)}}var a=t.return;try{Fd(t)}catch(u){$e(t,a,u)}break;case 5:var o=t.return;try{Fd(t)}catch(u){$e(t,o,u)}}}catch(u){$e(t,t.return,u)}if(t===e){G=null;break}var l=t.sibling;if(l!==null){l.return=t.return,G=l;break}G=t.return}}var EE=Math.ceil,Wu=zr.ReactCurrentDispatcher,iv=zr.ReactCurrentOwner,zt=zr.ReactCurrentBatchConfig,oe=0,Ve=null,Me=null,Qe=0,_t=0,_i=yn(0),ze=0,Io=null,Gn=0,lc=0,av=0,fo=null,vt=null,ov=0,Vi=1/0,wr=null,Hu=!1,Hd=null,sn=null,Xl=!1,en=null,Vu=0,po=0,Vd=null,wu=-1,Su=0;function st(){return oe&6?ke():wu!==-1?wu:wu=ke()}function cn(e){return e.mode&1?oe&2&&Qe!==0?Qe&-Qe:cE.transition!==null?(Su===0&&(Su=o1()),Su):(e=se,e!==0||(e=window.event,e=e===void 0?16:p1(e.type)),e):1}function ar(e,t,r,n){if(50<po)throw po=0,Vd=null,Error(U(185));bl(e,r,n),(!(oe&2)||e!==Ve)&&(e===Ve&&(!(oe&2)&&(lc|=r),ze===4&&Qr(e,Qe)),xt(e,n),r===1&&oe===0&&!(t.mode&1)&&(Vi=ke()+500,nc&&mn()))}function xt(e,t){var r=e.callbackNode;cA(e,t);var n=$u(e,e===Ve?Qe:0);if(n===0)r!==null&&Dy(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&Dy(r),t===1)e.tag===0?sE($m.bind(null,e)):C1($m.bind(null,e)),aE(function(){!(oe&6)&&mn()}),r=null;else{switch(l1(n)){case 1:r=Ch;break;case 4:r=i1;break;case 16:r=Eu;break;case 536870912:r=a1;break;default:r=Eu}r=Tw(r,Ow.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Ow(e,t){if(wu=-1,Su=0,oe&6)throw Error(U(327));var r=e.callbackNode;if(Mi()&&e.callbackNode!==r)return null;var n=$u(e,e===Ve?Qe:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=Ku(e,n);else{t=n;var i=oe;oe|=2;var a=Pw();(Ve!==e||Qe!==t)&&(wr=null,Vi=ke()+500,zn(e,t));do try{TE();break}catch(l){_w(e,l)}while(!0);Vh(),Wu.current=a,oe=i,Me!==null?t=0:(Ve=null,Qe=0,t=ze)}if(t!==0){if(t===2&&(i=gd(e),i!==0&&(n=i,t=Kd(e,i))),t===1)throw r=Io,zn(e,0),Qr(e,n),xt(e,ke()),r;if(t===6)Qr(e,n);else{if(i=e.current.alternate,!(n&30)&&!$E(i)&&(t=Ku(e,n),t===2&&(a=gd(e),a!==0&&(n=a,t=Kd(e,a))),t===1))throw r=Io,zn(e,0),Qr(e,n),xt(e,ke()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(U(345));case 2:$n(e,vt,wr);break;case 3:if(Qr(e,n),(n&130023424)===n&&(t=ov+500-ke(),10<t)){if($u(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){st(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Ad($n.bind(null,e,vt,wr),t);break}$n(e,vt,wr);break;case 4:if(Qr(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var o=31-ir(n);a=1<<o,o=t[o],o>i&&(i=o),n&=~a}if(n=i,n=ke()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*EE(n/1960))-n,10<n){e.timeoutHandle=Ad($n.bind(null,e,vt,wr),n);break}$n(e,vt,wr);break;case 5:$n(e,vt,wr);break;default:throw Error(U(329))}}}return xt(e,ke()),e.callbackNode===r?Ow.bind(null,e):null}function Kd(e,t){var r=fo;return e.current.memoizedState.isDehydrated&&(zn(e,t).flags|=256),e=Ku(e,t),e!==2&&(t=vt,vt=r,t!==null&&Gd(t)),e}function Gd(e){vt===null?vt=e:vt.push.apply(vt,e)}function $E(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],a=i.getSnapshot;i=i.value;try{if(!or(a(),i))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Qr(e,t){for(t&=~av,t&=~lc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-ir(t),n=1<<r;e[r]=-1,t&=~n}}function $m(e){if(oe&6)throw Error(U(327));Mi();var t=$u(e,0);if(!(t&1))return xt(e,ke()),null;var r=Ku(e,t);if(e.tag!==0&&r===2){var n=gd(e);n!==0&&(t=n,r=Kd(e,n))}if(r===1)throw r=Io,zn(e,0),Qr(e,t),xt(e,ke()),r;if(r===6)throw Error(U(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,$n(e,vt,wr),xt(e,ke()),null}function lv(e,t){var r=oe;oe|=1;try{return e(t)}finally{oe=r,oe===0&&(Vi=ke()+500,nc&&mn())}}function qn(e){en!==null&&en.tag===0&&!(oe&6)&&Mi();var t=oe;oe|=1;var r=zt.transition,n=se;try{if(zt.transition=null,se=1,e)return e()}finally{se=n,zt.transition=r,oe=t,!(oe&6)&&mn()}}function uv(){_t=_i.current,xe(_i)}function zn(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,iE(r)),Me!==null)for(r=Me.return;r!==null;){var n=r;switch(Uh(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Mu();break;case 3:Wi(),xe(gt),xe(at),Qh();break;case 5:Yh(n);break;case 4:Wi();break;case 13:xe(_e);break;case 19:xe(_e);break;case 10:Kh(n.type._context);break;case 22:case 23:uv()}r=r.return}if(Ve=e,Me=e=fn(e.current,null),Qe=_t=t,ze=0,Io=null,av=lc=Gn=0,vt=fo=null,Mn!==null){for(t=0;t<Mn.length;t++)if(r=Mn[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,a=r.pending;if(a!==null){var o=a.next;a.next=i,n.next=o}r.pending=n}Mn=null}return e}function _w(e,t){do{var r=Me;try{if(Vh(),gu.current=Uu,Fu){for(var n=Pe.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Fu=!1}if(Kn=0,He=Be=Pe=null,so=!1,Co=0,iv.current=null,r===null||r.return===null){ze=1,Io=t,Me=null;break}e:{var a=e,o=r.return,l=r,u=t;if(t=Qe,l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var s=u,f=l,c=f.tag;if(!(f.mode&1)&&(c===0||c===11||c===15)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var p=vm(o);if(p!==null){p.flags&=-257,ym(p,o,l,a,t),p.mode&1&&hm(a,s,t),t=p,u=s;var m=t.updateQueue;if(m===null){var v=new Set;v.add(u),t.updateQueue=v}else m.add(u);break e}else{if(!(t&1)){hm(a,s,t),sv();break e}u=Error(U(426))}}else if(Se&&l.mode&1){var x=vm(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),ym(x,o,l,a,t),Wh(Hi(u,l));break e}}a=u=Hi(u,l),ze!==4&&(ze=2),fo===null?fo=[a]:fo.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var y=lw(a,u,t);um(a,y);break e;case 1:l=u;var h=a.type,g=a.stateNode;if(!(a.flags&128)&&(typeof h.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(sn===null||!sn.has(g)))){a.flags|=65536,t&=-t,a.lanes|=t;var S=uw(a,l,t);um(a,S);break e}}a=a.return}while(a!==null)}Ew(r)}catch(b){t=b,Me===r&&r!==null&&(Me=r=r.return);continue}break}while(!0)}function Pw(){var e=Wu.current;return Wu.current=Uu,e===null?Uu:e}function sv(){(ze===0||ze===3||ze===2)&&(ze=4),Ve===null||!(Gn&268435455)&&!(lc&268435455)||Qr(Ve,Qe)}function Ku(e,t){var r=oe;oe|=2;var n=Pw();(Ve!==e||Qe!==t)&&(wr=null,zn(e,t));do try{jE();break}catch(i){_w(e,i)}while(!0);if(Vh(),oe=r,Wu.current=n,Me!==null)throw Error(U(261));return Ve=null,Qe=0,ze}function jE(){for(;Me!==null;)Aw(Me)}function TE(){for(;Me!==null&&!tA();)Aw(Me)}function Aw(e){var t=jw(e.alternate,e,_t);e.memoizedProps=e.pendingProps,t===null?Ew(e):Me=t,iv.current=null}function Ew(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=OE(r,t),r!==null){r.flags&=32767,Me=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ze=6,Me=null;return}}else if(r=SE(r,t,_t),r!==null){Me=r;return}if(t=t.sibling,t!==null){Me=t;return}Me=t=e}while(t!==null);ze===0&&(ze=5)}function $n(e,t,r){var n=se,i=zt.transition;try{zt.transition=null,se=1,kE(e,t,r,n)}finally{zt.transition=i,se=n}return null}function kE(e,t,r,n){do Mi();while(en!==null);if(oe&6)throw Error(U(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(U(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(fA(e,a),e===Ve&&(Me=Ve=null,Qe=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Xl||(Xl=!0,Tw(Eu,function(){return Mi(),null})),a=(r.flags&15990)!==0,r.subtreeFlags&15990||a){a=zt.transition,zt.transition=null;var o=se;se=1;var l=oe;oe|=4,iv.current=null,PE(e,r),ww(r,e),QA(_d),ju=!!Od,_d=Od=null,e.current=r,AE(r),rA(),oe=l,se=o,zt.transition=a}else e.current=r;if(Xl&&(Xl=!1,en=e,Vu=i),a=e.pendingLanes,a===0&&(sn=null),aA(r.stateNode),xt(e,ke()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(Hu)throw Hu=!1,e=Hd,Hd=null,e;return Vu&1&&e.tag!==0&&Mi(),a=e.pendingLanes,a&1?e===Vd?po++:(po=0,Vd=e):po=0,mn(),null}function Mi(){if(en!==null){var e=l1(Vu),t=zt.transition,r=se;try{if(zt.transition=null,se=16>e?16:e,en===null)var n=!1;else{if(e=en,en=null,Vu=0,oe&6)throw Error(U(331));var i=oe;for(oe|=4,G=e.current;G!==null;){var a=G,o=a.child;if(G.flags&16){var l=a.deletions;if(l!==null){for(var u=0;u<l.length;u++){var s=l[u];for(G=s;G!==null;){var f=G;switch(f.tag){case 0:case 11:case 15:co(8,f,a)}var c=f.child;if(c!==null)c.return=f,G=c;else for(;G!==null;){f=G;var d=f.sibling,p=f.return;if(gw(f),f===s){G=null;break}if(d!==null){d.return=p,G=d;break}G=p}}}var m=a.alternate;if(m!==null){var v=m.child;if(v!==null){m.child=null;do{var x=v.sibling;v.sibling=null,v=x}while(v!==null)}}G=a}}if(a.subtreeFlags&2064&&o!==null)o.return=a,G=o;else e:for(;G!==null;){if(a=G,a.flags&2048)switch(a.tag){case 0:case 11:case 15:co(9,a,a.return)}var y=a.sibling;if(y!==null){y.return=a.return,G=y;break e}G=a.return}}var h=e.current;for(G=h;G!==null;){o=G;var g=o.child;if(o.subtreeFlags&2064&&g!==null)g.return=o,G=g;else e:for(o=h;G!==null;){if(l=G,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:oc(9,l)}}catch(b){$e(l,l.return,b)}if(l===o){G=null;break e}var S=l.sibling;if(S!==null){S.return=l.return,G=S;break e}G=l.return}}if(oe=i,mn(),pr&&typeof pr.onPostCommitFiberRoot=="function")try{pr.onPostCommitFiberRoot(Zs,e)}catch{}n=!0}return n}finally{se=r,zt.transition=t}}return!1}function jm(e,t,r){t=Hi(r,t),t=lw(e,t,1),e=un(e,t,1),t=st(),e!==null&&(bl(e,1,t),xt(e,t))}function $e(e,t,r){if(e.tag===3)jm(e,e,r);else for(;t!==null;){if(t.tag===3){jm(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(sn===null||!sn.has(n))){e=Hi(r,e),e=uw(t,e,1),t=un(t,e,1),e=st(),t!==null&&(bl(t,1,e),xt(t,e));break}}t=t.return}}function CE(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=st(),e.pingedLanes|=e.suspendedLanes&r,Ve===e&&(Qe&r)===r&&(ze===4||ze===3&&(Qe&130023424)===Qe&&500>ke()-ov?zn(e,0):av|=r),xt(e,t)}function $w(e,t){t===0&&(e.mode&1?(t=Bl,Bl<<=1,!(Bl&130023424)&&(Bl=4194304)):t=1);var r=st();e=Ir(e,t),e!==null&&(bl(e,t,r),xt(e,r))}function ME(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),$w(e,r)}function NE(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(U(314))}n!==null&&n.delete(t),$w(e,r)}var jw;jw=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||gt.current)yt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return yt=!1,wE(e,t,r);yt=!!(e.flags&131072)}else yt=!1,Se&&t.flags&1048576&&M1(t,Du,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;xu(e,t),e=t.pendingProps;var i=zi(t,at.current);Ci(t,r),i=Jh(null,t,n,e,i,r);var a=ev();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,bt(n)?(a=!0,Nu(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,qh(t),i.updater=ac,t.stateNode=i,i._reactInternals=t,Md(t,n,e,r),t=Dd(null,t,n,!0,a,r)):(t.tag=0,Se&&a&&Fh(t),lt(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(xu(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=DE(n),e=Yt(n,e),i){case 0:t=Id(null,t,n,e,r);break e;case 1:t=bm(null,t,n,e,r);break e;case 11:t=mm(null,t,n,e,r);break e;case 14:t=gm(null,t,n,Yt(n.type,e),r);break e}throw Error(U(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Yt(n,i),Id(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Yt(n,i),bm(e,t,n,i,r);case 3:e:{if(dw(t),e===null)throw Error(U(387));n=t.pendingProps,a=t.memoizedState,i=a.element,B1(e,t),Bu(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Hi(Error(U(423)),t),t=xm(e,t,n,r,i);break e}else if(n!==i){i=Hi(Error(U(424)),t),t=xm(e,t,n,r,i);break e}else for(Et=ln(t.stateNode.containerInfo.firstChild),$t=t,Se=!0,tr=null,r=L1(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Fi(),n===i){t=Dr(e,t,r);break e}lt(e,t,n,r)}t=t.child}return t;case 5:return z1(t),e===null&&Td(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Pd(n,i)?o=null:a!==null&&Pd(n,a)&&(t.flags|=32),fw(e,t),lt(e,t,o,r),t.child;case 6:return e===null&&Td(t),null;case 13:return pw(e,t,r);case 4:return Xh(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ui(t,null,n,r):lt(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Yt(n,i),mm(e,t,n,i,r);case 7:return lt(e,t,t.pendingProps,r),t.child;case 8:return lt(e,t,t.pendingProps.children,r),t.child;case 12:return lt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,ve(Lu,n._currentValue),n._currentValue=o,a!==null)if(or(a.value,o)){if(a.children===i.children&&!gt.current){t=Dr(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var l=a.dependencies;if(l!==null){o=a.child;for(var u=l.firstContext;u!==null;){if(u.context===n){if(a.tag===1){u=$r(-1,r&-r),u.tag=2;var s=a.updateQueue;if(s!==null){s=s.shared;var f=s.pending;f===null?u.next=u:(u.next=f.next,f.next=u),s.pending=u}}a.lanes|=r,u=a.alternate,u!==null&&(u.lanes|=r),kd(a.return,r,t),l.lanes|=r;break}u=u.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(U(341));o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),kd(o,r,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}lt(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Ci(t,r),i=Wt(i),n=n(i),t.flags|=1,lt(e,t,n,r),t.child;case 14:return n=t.type,i=Yt(n,t.pendingProps),i=Yt(n.type,i),gm(e,t,n,i,r);case 15:return sw(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Yt(n,i),xu(e,t),t.tag=1,bt(n)?(e=!0,Nu(t)):e=!1,Ci(t,r),ow(t,n,i),Md(t,n,i,r),Dd(null,t,n,!0,e,r);case 19:return hw(e,t,r);case 22:return cw(e,t,r)}throw Error(U(156,t.tag))};function Tw(e,t){return n1(e,t)}function IE(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rt(e,t,r,n){return new IE(e,t,r,n)}function cv(e){return e=e.prototype,!(!e||!e.isReactComponent)}function DE(e){if(typeof e=="function")return cv(e)?1:0;if(e!=null){if(e=e.$$typeof,e===jh)return 11;if(e===Th)return 14}return 2}function fn(e,t){var r=e.alternate;return r===null?(r=Rt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ou(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")cv(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case hi:return Fn(r.children,i,a,t);case $h:o=8,i|=8;break;case nd:return e=Rt(12,r,t,i|2),e.elementType=nd,e.lanes=a,e;case id:return e=Rt(13,r,t,i),e.elementType=id,e.lanes=a,e;case ad:return e=Rt(19,r,t,i),e.elementType=ad,e.lanes=a,e;case zx:return uc(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Rx:o=10;break e;case Bx:o=9;break e;case jh:o=11;break e;case Th:o=14;break e;case Gr:o=16,n=null;break e}throw Error(U(130,e==null?e:typeof e,""))}return t=Rt(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function Fn(e,t,r,n){return e=Rt(7,e,n,t),e.lanes=r,e}function uc(e,t,r,n){return e=Rt(22,e,n,t),e.elementType=zx,e.lanes=r,e.stateNode={isHidden:!1},e}function Pf(e,t,r){return e=Rt(6,e,null,t),e.lanes=r,e}function Af(e,t,r){return t=Rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function LE(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=of(0),this.expirationTimes=of(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=of(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function fv(e,t,r,n,i,a,o,l,u){return e=new LE(e,t,r,l,u),t===1?(t=1,a===!0&&(t|=8)):t=0,a=Rt(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},qh(a),e}function RE(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:pi,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function kw(e){if(!e)return hn;e=e._reactInternals;e:{if(ti(e)!==e||e.tag!==1)throw Error(U(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(bt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(U(171))}if(e.tag===1){var r=e.type;if(bt(r))return k1(e,r,t)}return t}function Cw(e,t,r,n,i,a,o,l,u){return e=fv(r,n,!0,e,i,a,o,l,u),e.context=kw(null),r=e.current,n=st(),i=cn(r),a=$r(n,i),a.callback=t??null,un(r,a,i),e.current.lanes=i,bl(e,i,n),xt(e,n),e}function sc(e,t,r,n){var i=t.current,a=st(),o=cn(i);return r=kw(r),t.context===null?t.context=r:t.pendingContext=r,t=$r(a,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=un(i,t,o),e!==null&&(ar(e,i,o,a),mu(e,i,o)),o}function Gu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Tm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function dv(e,t){Tm(e,t),(e=e.alternate)&&Tm(e,t)}function BE(){return null}var Mw=typeof reportError=="function"?reportError:function(e){console.error(e)};function pv(e){this._internalRoot=e}cc.prototype.render=pv.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(U(409));sc(e,t,null,null)};cc.prototype.unmount=pv.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;qn(function(){sc(null,e,null,null)}),t[Nr]=null}};function cc(e){this._internalRoot=e}cc.prototype.unstable_scheduleHydration=function(e){if(e){var t=c1();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Yr.length&&t!==0&&t<Yr[r].priority;r++);Yr.splice(r,0,e),r===0&&d1(e)}};function hv(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function fc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function km(){}function zE(e,t,r,n,i){if(i){if(typeof n=="function"){var a=n;n=function(){var s=Gu(o);a.call(s)}}var o=Cw(t,n,e,0,null,!1,!1,"",km);return e._reactRootContainer=o,e[Nr]=o.current,Eo(e.nodeType===8?e.parentNode:e),qn(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var l=n;n=function(){var s=Gu(u);l.call(s)}}var u=fv(e,0,!1,null,null,!1,!1,"",km);return e._reactRootContainer=u,e[Nr]=u.current,Eo(e.nodeType===8?e.parentNode:e),qn(function(){sc(t,u,r,n)}),u}function dc(e,t,r,n,i){var a=r._reactRootContainer;if(a){var o=a;if(typeof i=="function"){var l=i;i=function(){var u=Gu(o);l.call(u)}}sc(t,o,e,i)}else o=zE(r,t,e,i,n);return Gu(o)}u1=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=to(t.pendingLanes);r!==0&&(Mh(t,r|1),xt(t,ke()),!(oe&6)&&(Vi=ke()+500,mn()))}break;case 13:qn(function(){var n=Ir(e,1);if(n!==null){var i=st();ar(n,e,1,i)}}),dv(e,1)}};Nh=function(e){if(e.tag===13){var t=Ir(e,134217728);if(t!==null){var r=st();ar(t,e,134217728,r)}dv(e,134217728)}};s1=function(e){if(e.tag===13){var t=cn(e),r=Ir(e,t);if(r!==null){var n=st();ar(r,e,t,n)}dv(e,t)}};c1=function(){return se};f1=function(e,t){var r=se;try{return se=e,t()}finally{se=r}};vd=function(e,t,r){switch(t){case"input":if(ud(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=rc(n);if(!i)throw Error(U(90));Ux(n),ud(n,i)}}}break;case"textarea":Hx(e,r);break;case"select":t=r.value,t!=null&&$i(e,!!r.multiple,t,!1)}};Qx=lv;Zx=qn;var FE={usingClientEntryPoint:!1,Events:[wl,gi,rc,Xx,Yx,lv]},Ua={findFiberByHostInstance:Cn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},UE={bundleType:Ua.bundleType,version:Ua.version,rendererPackageName:Ua.rendererPackageName,rendererConfig:Ua.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:zr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=t1(e),e===null?null:e.stateNode},findFiberByHostInstance:Ua.findFiberByHostInstance||BE,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Yl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yl.isDisabled&&Yl.supportsFiber)try{Zs=Yl.inject(UE),pr=Yl}catch{}}Tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=FE;Tt.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!hv(t))throw Error(U(200));return RE(e,t,null,r)};Tt.createRoot=function(e,t){if(!hv(e))throw Error(U(299));var r=!1,n="",i=Mw;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=fv(e,1,!1,null,null,r,!1,n,i),e[Nr]=t.current,Eo(e.nodeType===8?e.parentNode:e),new pv(t)};Tt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(U(188)):(e=Object.keys(e).join(","),Error(U(268,e)));return e=t1(t),e=e===null?null:e.stateNode,e};Tt.flushSync=function(e){return qn(e)};Tt.hydrate=function(e,t,r){if(!fc(t))throw Error(U(200));return dc(null,e,t,!0,r)};Tt.hydrateRoot=function(e,t,r){if(!hv(e))throw Error(U(405));var n=r!=null&&r.hydratedSources||null,i=!1,a="",o=Mw;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=Cw(t,null,e,1,r??null,i,!1,a,o),e[Nr]=t.current,Eo(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new cc(t)};Tt.render=function(e,t,r){if(!fc(t))throw Error(U(200));return dc(null,e,t,!1,r)};Tt.unmountComponentAtNode=function(e){if(!fc(e))throw Error(U(40));return e._reactRootContainer?(qn(function(){dc(null,null,e,!1,function(){e._reactRootContainer=null,e[Nr]=null})}),!0):!1};Tt.unstable_batchedUpdates=lv;Tt.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!fc(r))throw Error(U(200));if(e==null||e._reactInternals===void 0)throw Error(U(38));return dc(e,t,r,!1,n)};Tt.version="18.3.1-next-f1338f8080-20240426";function Nw(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Nw)}catch(e){console.error(e)}}Nw(),Nx.exports=Tt;var WE=Nx.exports,Iw,Cm=WE;Iw=Cm.createRoot,Cm.hydrateRoot;const Ql=typeof window<"u"?"/__clockwork":"",vv={async getRequests(){const e=await fetch(Ql);if(!e.ok)throw new Error("Failed to fetch requests");const t=await e.json();return Array.isArray(t)?t:t.requests??[]},async getRequest(e){const t=await fetch(`${Ql}/${e}`);if(!t.ok)throw new Error("Failed to fetch request");return t.json()},async getLatest(){const e=await fetch(`${Ql}/latest`);if(!e.ok)throw new Error("Failed to fetch latest request");return e.json()},async getMetrics(){const e=await fetch(`${Ql}/metrics`);if(!e.ok)throw new Error("Failed to fetch metrics");return e.json()}};/**
|
|
41
|
+
* @license lucide-react v0.344.0 - ISC
|
|
42
|
+
*
|
|
43
|
+
* This source code is licensed under the ISC license.
|
|
44
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
45
|
+
*/var HE={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
46
|
+
* @license lucide-react v0.344.0 - ISC
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the ISC license.
|
|
49
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
50
|
+
*/const VE=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),ot=(e,t)=>{const r=R.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:l="",children:u,...s},f)=>R.createElement("svg",{ref:f,...HE,width:i,height:i,stroke:n,strokeWidth:o?Number(a)*24/Number(i):a,className:["lucide",`lucide-${VE(e)}`,l].join(" "),...s},[...t.map(([c,d])=>R.createElement(c,d)),...Array.isArray(u)?u:[u]]));return r.displayName=`${e}`,r};/**
|
|
51
|
+
* @license lucide-react v0.344.0 - ISC
|
|
52
|
+
*
|
|
53
|
+
* This source code is licensed under the ISC license.
|
|
54
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
55
|
+
*/const Do=ot("Activity",[["path",{d:"M22 12h-4l-3 9L9 3l-3 9H2",key:"d5dnw9"}]]);/**
|
|
56
|
+
* @license lucide-react v0.344.0 - ISC
|
|
57
|
+
*
|
|
58
|
+
* This source code is licensed under the ISC license.
|
|
59
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
+
*/const KE=ot("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
|
|
61
|
+
* @license lucide-react v0.344.0 - ISC
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the ISC license.
|
|
64
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/const GE=ot("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
|
|
66
|
+
* @license lucide-react v0.344.0 - ISC
|
|
67
|
+
*
|
|
68
|
+
* This source code is licensed under the ISC license.
|
|
69
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
+
*/const Dw=ot("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
71
|
+
* @license lucide-react v0.344.0 - ISC
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the ISC license.
|
|
74
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
+
*/const qE=ot("Cpu",[["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"9",y:"9",width:"6",height:"6",key:"o3kz5p"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
|
|
76
|
+
* @license lucide-react v0.344.0 - ISC
|
|
77
|
+
*
|
|
78
|
+
* This source code is licensed under the ISC license.
|
|
79
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
+
*/const qd=ot("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
|
|
81
|
+
* @license lucide-react v0.344.0 - ISC
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the ISC license.
|
|
84
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/const Lw=ot("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
86
|
+
* @license lucide-react v0.344.0 - ISC
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the ISC license.
|
|
89
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/const XE=ot("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
|
91
|
+
* @license lucide-react v0.344.0 - ISC
|
|
92
|
+
*
|
|
93
|
+
* This source code is licensed under the ISC license.
|
|
94
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
+
*/const YE=ot("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]);/**
|
|
96
|
+
* @license lucide-react v0.344.0 - ISC
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the ISC license.
|
|
99
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
+
*/const QE=ot("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
101
|
+
* @license lucide-react v0.344.0 - ISC
|
|
102
|
+
*
|
|
103
|
+
* This source code is licensed under the ISC license.
|
|
104
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
+
*/const ZE=ot("List",[["line",{x1:"8",x2:"21",y1:"6",y2:"6",key:"7ey8pc"}],["line",{x1:"8",x2:"21",y1:"12",y2:"12",key:"rjfblc"}],["line",{x1:"8",x2:"21",y1:"18",y2:"18",key:"c3b1m8"}],["line",{x1:"3",x2:"3.01",y1:"6",y2:"6",key:"1g7gq3"}],["line",{x1:"3",x2:"3.01",y1:"12",y2:"12",key:"1pjlvk"}],["line",{x1:"3",x2:"3.01",y1:"18",y2:"18",key:"28t2mc"}]]);/**
|
|
106
|
+
* @license lucide-react v0.344.0 - ISC
|
|
107
|
+
*
|
|
108
|
+
* This source code is licensed under the ISC license.
|
|
109
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
+
*/const JE=ot("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
111
|
+
* @license lucide-react v0.344.0 - ISC
|
|
112
|
+
*
|
|
113
|
+
* This source code is licensed under the ISC license.
|
|
114
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
+
*/const e$=ot("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
116
|
+
* @license lucide-react v0.344.0 - ISC
|
|
117
|
+
*
|
|
118
|
+
* This source code is licensed under the ISC license.
|
|
119
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
+
*/const t$=ot("Timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]);/**
|
|
121
|
+
* @license lucide-react v0.344.0 - ISC
|
|
122
|
+
*
|
|
123
|
+
* This source code is licensed under the ISC license.
|
|
124
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
+
*/const r$=ot("XCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
126
|
+
* @license lucide-react v0.344.0 - ISC
|
|
127
|
+
*
|
|
128
|
+
* This source code is licensed under the ISC license.
|
|
129
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
+
*/const Rw=ot("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]);function n$({requests:e,selectedRequestId:t,onSelectRequest:r,loading:n,onRefresh:i}){const[a,o]=R.useState(""),[l,u]=R.useState("ALL"),s=e.filter(v=>{const x=v.uri.toLowerCase().includes(a.toLowerCase())||v.method.toLowerCase().includes(a.toLowerCase()),y=l==="ALL"||v.method===l;return x&&y}),f=v=>v>=200&&v<300?"bg-green-600":v>=300&&v<400?"bg-blue-600":v>=400&&v<500?"bg-yellow-600":"bg-red-600",c=v=>{switch(v){case"GET":return"bg-blue-600";case"POST":return"bg-green-600";case"PUT":return"bg-yellow-600";case"DELETE":return"bg-red-600";case"PATCH":return"bg-purple-600";default:return"bg-slate-600"}},d=v=>`${v.toFixed(0)}ms`,p=v=>new Date(v*1e3).toLocaleTimeString(),m=["ALL","GET","POST","PUT","DELETE","PATCH"];return P.jsxs("div",{className:"bg-slate-800 rounded-xl border border-slate-700 overflow-hidden flex flex-col h-[calc(100vh-10rem)]",children:[P.jsxs("div",{className:"p-4 border-b border-slate-700",children:[P.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[P.jsxs("div",{className:"flex-1 relative",children:[P.jsx(e$,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 w-4 h-4 text-slate-400"}),P.jsx("input",{type:"text",value:a,onChange:v=>o(v.target.value),placeholder:"Search requests...",className:"w-full pl-10 pr-4 py-2 bg-slate-900 border border-slate-700 rounded-lg text-white placeholder-slate-500 focus:outline-none focus:ring-2 focus:ring-orange-500 text-sm"})]}),P.jsx("button",{onClick:i,disabled:n,className:"p-2 bg-slate-700 hover:bg-slate-600 text-white rounded-lg transition-colors disabled:opacity-50",children:P.jsx(JE,{className:`w-4 h-4 ${n?"animate-spin":""}`})})]}),P.jsx("div",{className:"flex gap-2 flex-wrap",children:m.map(v=>P.jsx("button",{onClick:()=>u(v),className:`px-3 py-1 rounded-lg text-xs font-medium transition-colors ${l===v?"bg-orange-600 text-white":"bg-slate-700 text-slate-300 hover:bg-slate-600"}`,children:v},v))})]}),P.jsx("div",{className:"flex-1 overflow-y-auto",children:s.length===0?P.jsx("div",{className:"flex items-center justify-center h-full text-slate-400",children:n?"Loading...":"No requests found"}):P.jsx("div",{className:"divide-y divide-slate-700",children:s.map(v=>P.jsxs("button",{onClick:()=>r(v.id),className:`w-full px-4 py-3 hover:bg-slate-700/50 transition-colors text-left ${t===v.id?"bg-slate-700":""}`,children:[P.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[P.jsx("span",{className:`px-2 py-1 rounded text-xs font-bold text-white ${c(v.method)}`,children:v.method}),P.jsx("span",{className:`w-2 h-2 rounded-full ${f(v.responseStatus)}`}),P.jsx("span",{className:"text-xs text-slate-400",children:v.responseStatus}),P.jsx("span",{className:"text-xs text-slate-400 ml-auto",children:p(v.time)})]}),P.jsx("div",{className:"text-sm text-white font-medium mb-1 truncate",children:v.uri}),P.jsxs("div",{className:"flex items-center gap-3 text-xs text-slate-400",children:[P.jsx("span",{children:d(v.responseDuration)}),v.controller&&P.jsx("span",{className:"truncate",children:v.controller})]})]},v.id))})})]})}function i$({requestId:e}){var s,f,c;const[t,r]=R.useState(null),[n,i]=R.useState("overview"),[a,o]=R.useState(!0);R.useEffect(()=>{l()},[e]);const l=async()=>{o(!0);try{const d=await vv.getRequest(e);r(d)}catch(d){console.error("Error fetching request details:",d)}finally{o(!1)}};if(a)return P.jsx("div",{className:"bg-slate-800 rounded-xl border border-slate-700 p-8 flex items-center justify-center",children:P.jsx("div",{className:"text-slate-400",children:"Loading..."})});if(!t)return P.jsx("div",{className:"bg-slate-800 rounded-xl border border-slate-700 p-8 flex items-center justify-center",children:P.jsx("div",{className:"text-slate-400",children:"Request not found"})});const u=[{id:"overview",label:"Overview",icon:QE,count:null},{id:"queries",label:"Database",icon:qd,count:((s=t.databaseQueries)==null?void 0:s.length)||0},{id:"logs",label:"Log",icon:Lw,count:((f=t.log)==null?void 0:f.length)||0},{id:"timeline",label:"Timeline",icon:Rw,count:((c=t.timelineData)==null?void 0:c.length)||0}];return P.jsxs("div",{className:"bg-slate-800 rounded-xl border border-slate-700 overflow-hidden flex flex-col h-[calc(100vh-10rem)]",children:[P.jsx("div",{className:"border-b border-slate-700",children:P.jsx("div",{className:"flex gap-1 p-1",children:u.map(d=>{const p=d.icon;return P.jsxs("button",{onClick:()=>i(d.id),className:`flex-1 flex items-center justify-center gap-2 px-4 py-3 rounded-lg font-medium transition-colors ${n===d.id?"bg-slate-700 text-white":"text-slate-400 hover:text-white hover:bg-slate-700/50"}`,children:[P.jsx(p,{className:"w-4 h-4"}),P.jsx("span",{children:d.label}),d.count!==null&&d.count>0&&P.jsx("span",{className:"bg-slate-600 px-2 py-0.5 rounded-full text-xs",children:d.count})]},d.id)})})}),P.jsxs("div",{className:"flex-1 overflow-y-auto p-6",children:[n==="overview"&&P.jsx(a$,{request:t}),n==="queries"&&P.jsx(o$,{queries:t.databaseQueries||[]}),n==="logs"&&P.jsx(l$,{logs:t.log||[]}),n==="timeline"&&P.jsx(u$,{events:t.timelineData||[]})]})]})}function a$({request:e}){const t=n=>`${(n/1048576).toFixed(2)} MB`,r=({label:n,value:i})=>P.jsxs("div",{className:"py-3 border-b border-slate-700 last:border-0",children:[P.jsx("div",{className:"text-sm text-slate-400 mb-1",children:n}),P.jsx("div",{className:"text-white font-mono text-sm break-all",children:i??"N/A"})]});return P.jsxs("div",{className:"space-y-6",children:[P.jsxs("div",{className:"bg-slate-900 rounded-lg p-4",children:[P.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[P.jsx(Do,{className:"w-5 h-5 text-orange-400"}),P.jsx("h3",{className:"text-lg font-semibold text-white",children:"Request Details"})]}),P.jsxs("div",{children:[P.jsx(r,{label:"Method",value:e.method}),P.jsx(r,{label:"URI",value:e.uri}),P.jsx(r,{label:"Status Code",value:e.responseStatus}),P.jsx(r,{label:"Duration",value:`${e.responseDuration.toFixed(2)}ms`}),P.jsx(r,{label:"Memory Usage",value:t(e.memoryUsage)}),P.jsx(r,{label:"Controller",value:e.controller}),P.jsx(r,{label:"Time",value:new Date(e.time*1e3).toLocaleString()})]})]}),e.getData&&Object.keys(e.getData).length>0&&P.jsxs("div",{className:"bg-slate-900 rounded-lg p-4",children:[P.jsx("h3",{className:"text-lg font-semibold text-white mb-3",children:"Query Parameters"}),P.jsx("pre",{className:"bg-slate-950 p-3 rounded-lg text-sm text-slate-300 overflow-x-auto",children:JSON.stringify(e.getData,null,2)})]}),e.postData&&P.jsxs("div",{className:"bg-slate-900 rounded-lg p-4",children:[P.jsx("h3",{className:"text-lg font-semibold text-white mb-3",children:"Request Body"}),P.jsx("pre",{className:"bg-slate-950 p-3 rounded-lg text-sm text-slate-300 overflow-x-auto",children:JSON.stringify(e.postData,null,2)})]}),e.headers&&Object.keys(e.headers).length>0&&P.jsxs("div",{className:"bg-slate-900 rounded-lg p-4",children:[P.jsx("h3",{className:"text-lg font-semibold text-white mb-3",children:"Headers"}),P.jsx("pre",{className:"bg-slate-950 p-3 rounded-lg text-sm text-slate-300 overflow-x-auto",children:JSON.stringify(e.headers,null,2)})]})]})}function o$({queries:e}){if(e.length===0)return P.jsxs("div",{className:"text-center text-slate-400 py-12",children:[P.jsx(qd,{className:"w-12 h-12 mx-auto mb-3 opacity-50"}),P.jsx("p",{children:"No database queries recorded"})]});const t=e.reduce((r,n)=>r+(n.duration||0),0);return P.jsxs("div",{className:"space-y-4",children:[P.jsx("div",{className:"bg-slate-900 rounded-lg p-4",children:P.jsxs("div",{className:"flex items-center justify-between",children:[P.jsxs("div",{children:[P.jsx("div",{className:"text-sm text-slate-400",children:"Total Queries"}),P.jsx("div",{className:"text-2xl font-bold text-white",children:e.length})]}),P.jsxs("div",{children:[P.jsx("div",{className:"text-sm text-slate-400",children:"Total Duration"}),P.jsxs("div",{className:"text-2xl font-bold text-white",children:[t.toFixed(2),"ms"]})]})]})}),e.map((r,n)=>{var i;return P.jsxs("div",{className:"bg-slate-900 rounded-lg p-4",children:[P.jsxs("div",{className:"flex items-center justify-between mb-3",children:[P.jsxs("div",{className:"flex items-center gap-2",children:[P.jsx(qd,{className:"w-4 h-4 text-orange-400"}),P.jsxs("span",{className:"text-sm font-medium text-white",children:["Query #",n+1]})]}),P.jsxs("div",{className:"flex items-center gap-3 text-xs text-slate-400",children:[P.jsxs("span",{className:"flex items-center gap-1",children:[P.jsx(Dw,{className:"w-3 h-3"}),(i=r.duration)==null?void 0:i.toFixed(2),"ms"]}),P.jsx("span",{className:"bg-slate-700 px-2 py-1 rounded",children:r.connection||"default"})]})]}),P.jsx("pre",{className:"bg-slate-950 p-3 rounded-lg text-sm text-slate-300 overflow-x-auto mb-3",children:r.query}),r.bindings&&r.bindings.length>0&&P.jsxs("div",{children:[P.jsx("div",{className:"text-xs text-slate-400 mb-2",children:"Bindings:"}),P.jsx("pre",{className:"bg-slate-950 p-3 rounded-lg text-sm text-slate-300 overflow-x-auto",children:JSON.stringify(r.bindings,null,2)})]})]},n)})]})}function l$({logs:e}){if(e.length===0)return P.jsxs("div",{className:"text-center text-slate-400 py-12",children:[P.jsx(Lw,{className:"w-12 h-12 mx-auto mb-3 opacity-50"}),P.jsx("p",{children:"No logs recorded. Use console.log/info/warn/error or req.clockwork?.info() — both appear here."})]});const t=r=>{switch(r){case"debug":return"bg-slate-600 text-slate-200";case"info":return"bg-blue-600 text-white";case"warning":return"bg-yellow-600 text-white";case"error":return"bg-red-600 text-white";default:return"bg-slate-600 text-slate-200"}};return P.jsx("div",{className:"space-y-3",children:e.map((r,n)=>P.jsxs("div",{className:"bg-slate-900 rounded-lg p-4",children:[P.jsxs("div",{className:"flex items-center gap-2 mb-2 flex-wrap",children:[P.jsx("span",{className:`px-2 py-1 rounded text-xs font-bold uppercase ${t(r.level)}`,children:r.level}),r.source&&P.jsx("span",{className:`px-2 py-1 rounded text-xs ${r.source==="native"?"bg-cyan-600/30 text-cyan-200":"bg-violet-600/30 text-violet-200"}`,children:r.source==="native"?"Console":"Clockwork"}),P.jsxs("span",{className:"text-xs text-slate-400",children:[r.time.toFixed(3),"s"]})]}),P.jsx("p",{className:"text-white mb-2 whitespace-pre-wrap break-words",children:r.message}),r.context&&Object.keys(r.context).length>0&&P.jsx("pre",{className:"bg-slate-950 p-3 rounded-lg text-sm text-slate-300 overflow-x-auto",children:JSON.stringify(r.context,null,2)})]},n))})}function u$({events:e}){if(e.length===0)return P.jsxs("div",{className:"text-center text-slate-400 py-12",children:[P.jsx(Rw,{className:"w-12 h-12 mx-auto mb-3 opacity-50"}),P.jsx("p",{children:"No timeline events recorded"})]});const t=Math.max(...e.map(i=>i.end||0)),r=Math.min(...e.map(i=>i.start||0)),n=t-r||1;return P.jsx("div",{className:"space-y-4",children:P.jsxs("div",{className:"bg-slate-900 rounded-lg p-4",children:[P.jsxs("h3",{className:"text-lg font-semibold text-white mb-4 flex items-center gap-2",children:[P.jsx(Dw,{className:"w-5 h-5 text-orange-400"}),"Performance Timeline"]}),P.jsx("div",{className:"space-y-3",children:e.map((i,a)=>{var f;const o=(i.start||0)-r,l=i.duration||0,u=o/n*100,s=l/n*100;return P.jsxs("div",{children:[P.jsxs("div",{className:"flex items-center justify-between mb-1",children:[P.jsx("span",{className:"text-sm text-white",children:i.name}),P.jsxs("span",{className:"text-xs text-slate-400",children:[(f=i.duration)==null?void 0:f.toFixed(2),"ms"]})]}),i.description&&P.jsx("div",{className:"text-xs text-slate-400 mb-1",children:i.description}),P.jsx("div",{className:"h-8 bg-slate-950 rounded-lg relative overflow-hidden",children:P.jsx("div",{className:"absolute h-full rounded-lg flex items-center px-2",style:{left:`${u}%`,width:`${Math.max(s,1)}%`,minWidth:"2px",backgroundColor:i.color||"#f97316"},children:s>10&&P.jsx("span",{className:"text-xs text-white font-medium truncate",children:i.name})})}),i.data&&Object.keys(i.data).length>0&&P.jsx("pre",{className:"mt-2 bg-slate-950 p-2 rounded text-xs text-slate-300 overflow-x-auto",children:JSON.stringify(i.data,null,2)})]},a)})})]})})}function Bw(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Bw(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ne(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Bw(e))&&(n&&(n+=" "),n+=t);return n}var s$=Array.isArray,wt=s$,c$=typeof Ml=="object"&&Ml&&Ml.Object===Object&&Ml,zw=c$,f$=zw,d$=typeof self=="object"&&self&&self.Object===Object&&self,p$=f$||d$||Function("return this")(),br=p$,h$=br,v$=h$.Symbol,Ol=v$,Mm=Ol,Fw=Object.prototype,y$=Fw.hasOwnProperty,m$=Fw.toString,Wa=Mm?Mm.toStringTag:void 0;function g$(e){var t=y$.call(e,Wa),r=e[Wa];try{e[Wa]=void 0;var n=!0}catch{}var i=m$.call(e);return n&&(t?e[Wa]=r:delete e[Wa]),i}var b$=g$,x$=Object.prototype,w$=x$.toString;function S$(e){return w$.call(e)}var O$=S$,Nm=Ol,_$=b$,P$=O$,A$="[object Null]",E$="[object Undefined]",Im=Nm?Nm.toStringTag:void 0;function $$(e){return e==null?e===void 0?E$:A$:Im&&Im in Object(e)?_$(e):P$(e)}var Fr=$$;function j$(e){return e!=null&&typeof e=="object"}var Ur=j$,T$=Fr,k$=Ur,C$="[object Symbol]";function M$(e){return typeof e=="symbol"||k$(e)&&T$(e)==C$}var wa=M$,N$=wt,I$=wa,D$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,L$=/^\w*$/;function R$(e,t){if(N$(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||I$(e)?!0:L$.test(e)||!D$.test(e)||t!=null&&e in Object(t)}var yv=R$;function B$(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var gn=B$;const Sa=pe(gn);var z$=Fr,F$=gn,U$="[object AsyncFunction]",W$="[object Function]",H$="[object GeneratorFunction]",V$="[object Proxy]";function K$(e){if(!F$(e))return!1;var t=z$(e);return t==W$||t==H$||t==U$||t==V$}var mv=K$;const Q=pe(mv);var G$=br,q$=G$["__core-js_shared__"],X$=q$,Ef=X$,Dm=function(){var e=/[^.]+$/.exec(Ef&&Ef.keys&&Ef.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Y$(e){return!!Dm&&Dm in e}var Q$=Y$,Z$=Function.prototype,J$=Z$.toString;function ej(e){if(e!=null){try{return J$.call(e)}catch{}try{return e+""}catch{}}return""}var Uw=ej,tj=mv,rj=Q$,nj=gn,ij=Uw,aj=/[\\^$.*+?()[\]{}|]/g,oj=/^\[object .+?Constructor\]$/,lj=Function.prototype,uj=Object.prototype,sj=lj.toString,cj=uj.hasOwnProperty,fj=RegExp("^"+sj.call(cj).replace(aj,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function dj(e){if(!nj(e)||rj(e))return!1;var t=tj(e)?fj:oj;return t.test(ij(e))}var pj=dj;function hj(e,t){return e==null?void 0:e[t]}var vj=hj,yj=pj,mj=vj;function gj(e,t){var r=mj(e,t);return yj(r)?r:void 0}var ri=gj,bj=ri,xj=bj(Object,"create"),pc=xj,Lm=pc;function wj(){this.__data__=Lm?Lm(null):{},this.size=0}var Sj=wj;function Oj(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var _j=Oj,Pj=pc,Aj="__lodash_hash_undefined__",Ej=Object.prototype,$j=Ej.hasOwnProperty;function jj(e){var t=this.__data__;if(Pj){var r=t[e];return r===Aj?void 0:r}return $j.call(t,e)?t[e]:void 0}var Tj=jj,kj=pc,Cj=Object.prototype,Mj=Cj.hasOwnProperty;function Nj(e){var t=this.__data__;return kj?t[e]!==void 0:Mj.call(t,e)}var Ij=Nj,Dj=pc,Lj="__lodash_hash_undefined__";function Rj(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Dj&&t===void 0?Lj:t,this}var Bj=Rj,zj=Sj,Fj=_j,Uj=Tj,Wj=Ij,Hj=Bj;function Oa(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Oa.prototype.clear=zj;Oa.prototype.delete=Fj;Oa.prototype.get=Uj;Oa.prototype.has=Wj;Oa.prototype.set=Hj;var Vj=Oa;function Kj(){this.__data__=[],this.size=0}var Gj=Kj;function qj(e,t){return e===t||e!==e&&t!==t}var gv=qj,Xj=gv;function Yj(e,t){for(var r=e.length;r--;)if(Xj(e[r][0],t))return r;return-1}var hc=Yj,Qj=hc,Zj=Array.prototype,Jj=Zj.splice;function e2(e){var t=this.__data__,r=Qj(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Jj.call(t,r,1),--this.size,!0}var t2=e2,r2=hc;function n2(e){var t=this.__data__,r=r2(t,e);return r<0?void 0:t[r][1]}var i2=n2,a2=hc;function o2(e){return a2(this.__data__,e)>-1}var l2=o2,u2=hc;function s2(e,t){var r=this.__data__,n=u2(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var c2=s2,f2=Gj,d2=t2,p2=i2,h2=l2,v2=c2;function _a(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}_a.prototype.clear=f2;_a.prototype.delete=d2;_a.prototype.get=p2;_a.prototype.has=h2;_a.prototype.set=v2;var vc=_a,y2=ri,m2=br,g2=y2(m2,"Map"),bv=g2,Rm=Vj,b2=vc,x2=bv;function w2(){this.size=0,this.__data__={hash:new Rm,map:new(x2||b2),string:new Rm}}var S2=w2;function O2(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var _2=O2,P2=_2;function A2(e,t){var r=e.__data__;return P2(t)?r[typeof t=="string"?"string":"hash"]:r.map}var yc=A2,E2=yc;function $2(e){var t=E2(this,e).delete(e);return this.size-=t?1:0,t}var j2=$2,T2=yc;function k2(e){return T2(this,e).get(e)}var C2=k2,M2=yc;function N2(e){return M2(this,e).has(e)}var I2=N2,D2=yc;function L2(e,t){var r=D2(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var R2=L2,B2=S2,z2=j2,F2=C2,U2=I2,W2=R2;function Pa(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Pa.prototype.clear=B2;Pa.prototype.delete=z2;Pa.prototype.get=F2;Pa.prototype.has=U2;Pa.prototype.set=W2;var xv=Pa,Ww=xv,H2="Expected a function";function wv(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(H2);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(wv.Cache||Ww),r}wv.Cache=Ww;var Hw=wv;const V2=pe(Hw);var K2=Hw,G2=500;function q2(e){var t=K2(e,function(n){return r.size===G2&&r.clear(),n}),r=t.cache;return t}var X2=q2,Y2=X2,Q2=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z2=/\\(\\)?/g,J2=Y2(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Q2,function(r,n,i,a){t.push(i?a.replace(Z2,"$1"):n||r)}),t}),eT=J2;function tT(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Sv=tT,Bm=Ol,rT=Sv,nT=wt,iT=wa,zm=Bm?Bm.prototype:void 0,Fm=zm?zm.toString:void 0;function Vw(e){if(typeof e=="string")return e;if(nT(e))return rT(e,Vw)+"";if(iT(e))return Fm?Fm.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var aT=Vw,oT=aT;function lT(e){return e==null?"":oT(e)}var Kw=lT,uT=wt,sT=yv,cT=eT,fT=Kw;function dT(e,t){return uT(e)?e:sT(e,t)?[e]:cT(fT(e))}var Gw=dT,pT=wa;function hT(e){if(typeof e=="string"||pT(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var mc=hT,vT=Gw,yT=mc;function mT(e,t){t=vT(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[yT(t[r++])];return r&&r==n?e:void 0}var Ov=mT,gT=Ov;function bT(e,t,r){var n=e==null?void 0:gT(e,t);return n===void 0?r:n}var qw=bT;const Ft=pe(qw);function xT(e){return e==null}var wT=xT;const te=pe(wT);var ST=Fr,OT=wt,_T=Ur,PT="[object String]";function AT(e){return typeof e=="string"||!OT(e)&&_T(e)&&ST(e)==PT}var ET=AT;const Xn=pe(ET);var Xw={exports:{}},ce={};/**
|
|
131
|
+
* @license React
|
|
132
|
+
* react-is.production.min.js
|
|
133
|
+
*
|
|
134
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
135
|
+
*
|
|
136
|
+
* This source code is licensed under the MIT license found in the
|
|
137
|
+
* LICENSE file in the root directory of this source tree.
|
|
138
|
+
*/var _v=Symbol.for("react.element"),Pv=Symbol.for("react.portal"),gc=Symbol.for("react.fragment"),bc=Symbol.for("react.strict_mode"),xc=Symbol.for("react.profiler"),wc=Symbol.for("react.provider"),Sc=Symbol.for("react.context"),$T=Symbol.for("react.server_context"),Oc=Symbol.for("react.forward_ref"),_c=Symbol.for("react.suspense"),Pc=Symbol.for("react.suspense_list"),Ac=Symbol.for("react.memo"),Ec=Symbol.for("react.lazy"),jT=Symbol.for("react.offscreen"),Yw;Yw=Symbol.for("react.module.reference");function Kt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case _v:switch(e=e.type,e){case gc:case xc:case bc:case _c:case Pc:return e;default:switch(e=e&&e.$$typeof,e){case $T:case Sc:case Oc:case Ec:case Ac:case wc:return e;default:return t}}case Pv:return t}}}ce.ContextConsumer=Sc;ce.ContextProvider=wc;ce.Element=_v;ce.ForwardRef=Oc;ce.Fragment=gc;ce.Lazy=Ec;ce.Memo=Ac;ce.Portal=Pv;ce.Profiler=xc;ce.StrictMode=bc;ce.Suspense=_c;ce.SuspenseList=Pc;ce.isAsyncMode=function(){return!1};ce.isConcurrentMode=function(){return!1};ce.isContextConsumer=function(e){return Kt(e)===Sc};ce.isContextProvider=function(e){return Kt(e)===wc};ce.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===_v};ce.isForwardRef=function(e){return Kt(e)===Oc};ce.isFragment=function(e){return Kt(e)===gc};ce.isLazy=function(e){return Kt(e)===Ec};ce.isMemo=function(e){return Kt(e)===Ac};ce.isPortal=function(e){return Kt(e)===Pv};ce.isProfiler=function(e){return Kt(e)===xc};ce.isStrictMode=function(e){return Kt(e)===bc};ce.isSuspense=function(e){return Kt(e)===_c};ce.isSuspenseList=function(e){return Kt(e)===Pc};ce.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===gc||e===xc||e===bc||e===_c||e===Pc||e===jT||typeof e=="object"&&e!==null&&(e.$$typeof===Ec||e.$$typeof===Ac||e.$$typeof===wc||e.$$typeof===Sc||e.$$typeof===Oc||e.$$typeof===Yw||e.getModuleId!==void 0)};ce.typeOf=Kt;Xw.exports=ce;var TT=Xw.exports,kT=Fr,CT=Ur,MT="[object Number]";function NT(e){return typeof e=="number"||CT(e)&&kT(e)==MT}var Qw=NT;const IT=pe(Qw);var DT=Qw;function LT(e){return DT(e)&&e!=+e}var RT=LT;const Aa=pe(RT);var nr=function(t){return t===0?0:t>0?1:-1},In=function(t){return Xn(t)&&t.indexOf("%")===t.length-1},H=function(t){return IT(t)&&!Aa(t)},BT=function(t){return te(t)},Fe=function(t){return H(t)||Xn(t)},zT=0,Ea=function(t){var r=++zT;return"".concat(t||"").concat(r)},Yn=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!H(t)&&!Xn(t))return n;var a;if(In(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Aa(a)&&(a=n),i&&a>r&&(a=r),a},Zr=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},FT=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},Xe=function(t,r){return H(t)&&H(r)?function(n){return t+n*(r-t)}:function(){return r}};function qu(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Ft(n,t))===r})}var UT=function(t,r){return H(t)&&H(r)?t-r:Xn(t)&&Xn(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Ni(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function Xd(e){"@babel/helpers - typeof";return Xd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xd(e)}var WT=["viewBox","children"],HT=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Um=["points","pathLength"],$f={svg:WT,polygon:Um,polyline:Um},Av=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Xu=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(R.isValidElement(t)&&(n=t.props),!Sa(n))return null;var i={};return Object.keys(n).forEach(function(a){Av.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},VT=function(t,r,n){return function(i){return t(r,n,i),null}},Yu=function(t,r,n){if(!Sa(t)||Xd(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];Av.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=VT(o,r,n))}),i},KT=["children"],GT=["children"];function Wm(e,t){if(e==null)return{};var r=qT(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qT(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Yd(e){"@babel/helpers - typeof";return Yd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yd(e)}var Hm={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"},jr=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Vm=null,jf=null,Ev=function e(t){if(t===Vm&&Array.isArray(jf))return jf;var r=[];return R.Children.forEach(t,function(n){te(n)||(TT.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),jf=r,Vm=t,r};function Ut(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return jr(i)}):n=[jr(t)],Ev(e).forEach(function(i){var a=Ft(i,"type.displayName")||Ft(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Pt(e,t){var r=Ut(e,t);return r&&r[0]}var Km=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!H(n)||n<=0||!H(i)||i<=0)},XT=["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"],YT=function(t){return t&&t.type&&Xn(t.type)&&XT.indexOf(t.type)>=0},Zw=function(t){return t&&Yd(t)==="object"&&"clipDot"in t},QT=function(t,r,n,i){var a,o=(a=$f==null?void 0:$f[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!Q(t)&&(i&&o.includes(r)||HT.includes(r))||n&&Av.includes(r)},J=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(R.isValidElement(t)&&(i=t.props),!Sa(i))return null;var a={};return Object.keys(i).forEach(function(o){var l;QT((l=i)===null||l===void 0?void 0:l[o],o,r,n)&&(a[o]=i[o])}),a},Qd=function e(t,r){if(t===r)return!0;var n=R.Children.count(t);if(n!==R.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Gm(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!Gm(a,o))return!1}return!0},Gm=function(t,r){if(te(t)&&te(r))return!0;if(!te(t)&&!te(r)){var n=t.props||{},i=n.children,a=Wm(n,KT),o=r.props||{},l=o.children,u=Wm(o,GT);return i&&l?Ni(a,u)&&Qd(i,l):!i&&!l?Ni(a,u):!1}return!1},qm=function(t,r){var n=[],i={};return Ev(t).forEach(function(a,o){if(YT(a))n.push(a);else if(a){var l=jr(a.type),u=r[l]||{},s=u.handler,f=u.once;if(s&&(!f||!i[l])){var c=s(a,l,o);n.push(c),i[l]=!0}}}),n},ZT=function(t){var r=t&&t.type;return r&&Hm[r]?Hm[r]:null},JT=function(t,r){return Ev(r).indexOf(t)},ek=["children","width","height","viewBox","className","style","title","desc"];function Zd(){return Zd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zd.apply(this,arguments)}function tk(e,t){if(e==null)return{};var r=rk(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rk(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Jd(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,l=e.title,u=e.desc,s=tk(e,ek),f=i||{width:r,height:n,x:0,y:0},c=ne("recharts-surface",a);return E.createElement("svg",Zd({},J(s,!0,"svg"),{className:c,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),E.createElement("title",null,l),E.createElement("desc",null,u),t)}var nk=["children","className"];function ep(){return ep=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ep.apply(this,arguments)}function ik(e,t){if(e==null)return{};var r=ak(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ak(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var ye=E.forwardRef(function(e,t){var r=e.children,n=e.className,i=ik(e,nk),a=ne("recharts-layer",n);return E.createElement("g",ep({className:a},J(i,!0),{ref:t}),r)}),Tr=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]};function ok(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n<i;)a[n]=e[n+t];return a}var lk=ok,uk=lk;function sk(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:uk(e,t,r)}var ck=sk,fk="\\ud800-\\udfff",dk="\\u0300-\\u036f",pk="\\ufe20-\\ufe2f",hk="\\u20d0-\\u20ff",vk=dk+pk+hk,yk="\\ufe0e\\ufe0f",mk="\\u200d",gk=RegExp("["+mk+fk+vk+yk+"]");function bk(e){return gk.test(e)}var Jw=bk;function xk(e){return e.split("")}var wk=xk,eS="\\ud800-\\udfff",Sk="\\u0300-\\u036f",Ok="\\ufe20-\\ufe2f",_k="\\u20d0-\\u20ff",Pk=Sk+Ok+_k,Ak="\\ufe0e\\ufe0f",Ek="["+eS+"]",tp="["+Pk+"]",rp="\\ud83c[\\udffb-\\udfff]",$k="(?:"+tp+"|"+rp+")",tS="[^"+eS+"]",rS="(?:\\ud83c[\\udde6-\\uddff]){2}",nS="[\\ud800-\\udbff][\\udc00-\\udfff]",jk="\\u200d",iS=$k+"?",aS="["+Ak+"]?",Tk="(?:"+jk+"(?:"+[tS,rS,nS].join("|")+")"+aS+iS+")*",kk=aS+iS+Tk,Ck="(?:"+[tS+tp+"?",tp,rS,nS,Ek].join("|")+")",Mk=RegExp(rp+"(?="+rp+")|"+Ck+kk,"g");function Nk(e){return e.match(Mk)||[]}var Ik=Nk,Dk=wk,Lk=Jw,Rk=Ik;function Bk(e){return Lk(e)?Rk(e):Dk(e)}var zk=Bk,Fk=ck,Uk=Jw,Wk=zk,Hk=Kw;function Vk(e){return function(t){t=Hk(t);var r=Uk(t)?Wk(t):void 0,n=r?r[0]:t.charAt(0),i=r?Fk(r,1).join(""):t.slice(1);return n[e]()+i}}var Kk=Vk,Gk=Kk,qk=Gk("toUpperCase"),Xk=qk;const $c=pe(Xk);function he(e){return function(){return e}}const oS=Math.cos,Qu=Math.sin,lr=Math.sqrt,Zu=Math.PI,jc=2*Zu,np=Math.PI,ip=2*np,jn=1e-6,Yk=ip-jn;function lS(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function Qk(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return lS;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class Zk{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?lS:Qk(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,l=this._y1,u=n-t,s=i-r,f=o-t,c=l-r,d=f*f+c*c;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>jn)if(!(Math.abs(c*u-s*f)>jn)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,m=i-l,v=u*u+s*s,x=p*p+m*m,y=Math.sqrt(v),h=Math.sqrt(d),g=a*Math.tan((np-Math.acos((v+d-x)/(2*y*h)))/2),S=g/h,b=g/y;Math.abs(S-1)>jn&&this._append`L${t+S*f},${r+S*c}`,this._append`A${a},${a},0,0,${+(c*p>f*m)},${this._x1=t+b*u},${this._y1=r+b*s}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let l=n*Math.cos(i),u=n*Math.sin(i),s=t+l,f=r+u,c=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${s},${f}`:(Math.abs(this._x1-s)>jn||Math.abs(this._y1-f)>jn)&&this._append`L${s},${f}`,n&&(d<0&&(d=d%ip+ip),d>Yk?this._append`A${n},${n},0,1,${c},${t-l},${r-u}A${n},${n},0,1,${c},${this._x1=s},${this._y1=f}`:d>jn&&this._append`A${n},${n},0,${+(d>=np)},${c},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function $v(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new Zk(t)}function jv(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function uS(e){this._context=e}uS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Tc(e){return new uS(e)}function sS(e){return e[0]}function cS(e){return e[1]}function fS(e,t){var r=he(!0),n=null,i=Tc,a=null,o=$v(l);e=typeof e=="function"?e:e===void 0?sS:he(e),t=typeof t=="function"?t:t===void 0?cS:he(t);function l(u){var s,f=(u=jv(u)).length,c,d=!1,p;for(n==null&&(a=i(p=o())),s=0;s<=f;++s)!(s<f&&r(c=u[s],s,u))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(c,s,u),+t(c,s,u));if(p)return a=null,p+""||null}return l.x=function(u){return arguments.length?(e=typeof u=="function"?u:he(+u),l):e},l.y=function(u){return arguments.length?(t=typeof u=="function"?u:he(+u),l):t},l.defined=function(u){return arguments.length?(r=typeof u=="function"?u:he(!!u),l):r},l.curve=function(u){return arguments.length?(i=u,n!=null&&(a=i(n)),l):i},l.context=function(u){return arguments.length?(u==null?n=a=null:a=i(n=u),l):n},l}function Zl(e,t,r){var n=null,i=he(!0),a=null,o=Tc,l=null,u=$v(s);e=typeof e=="function"?e:e===void 0?sS:he(+e),t=typeof t=="function"?t:he(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?cS:he(+r);function s(c){var d,p,m,v=(c=jv(c)).length,x,y=!1,h,g=new Array(v),S=new Array(v);for(a==null&&(l=o(h=u())),d=0;d<=v;++d){if(!(d<v&&i(x=c[d],d,c))===y)if(y=!y)p=d,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),m=d-1;m>=p;--m)l.point(g[m],S[m]);l.lineEnd(),l.areaEnd()}y&&(g[d]=+e(x,d,c),S[d]=+t(x,d,c),l.point(n?+n(x,d,c):g[d],r?+r(x,d,c):S[d]))}if(h)return l=null,h+""||null}function f(){return fS().defined(i).curve(o).context(a)}return s.x=function(c){return arguments.length?(e=typeof c=="function"?c:he(+c),n=null,s):e},s.x0=function(c){return arguments.length?(e=typeof c=="function"?c:he(+c),s):e},s.x1=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:he(+c),s):n},s.y=function(c){return arguments.length?(t=typeof c=="function"?c:he(+c),r=null,s):t},s.y0=function(c){return arguments.length?(t=typeof c=="function"?c:he(+c),s):t},s.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:he(+c),s):r},s.lineX0=s.lineY0=function(){return f().x(e).y(t)},s.lineY1=function(){return f().x(e).y(r)},s.lineX1=function(){return f().x(n).y(t)},s.defined=function(c){return arguments.length?(i=typeof c=="function"?c:he(!!c),s):i},s.curve=function(c){return arguments.length?(o=c,a!=null&&(l=o(a)),s):o},s.context=function(c){return arguments.length?(c==null?a=l=null:l=o(a=c),s):a},s}class dS{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function Jk(e){return new dS(e,!0)}function eC(e){return new dS(e,!1)}const Tv={draw(e,t){const r=lr(t/Zu);e.moveTo(r,0),e.arc(0,0,r,0,jc)}},tC={draw(e,t){const r=lr(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},pS=lr(1/3),rC=pS*2,nC={draw(e,t){const r=lr(t/rC),n=r*pS;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},iC={draw(e,t){const r=lr(t),n=-r/2;e.rect(n,n,r,r)}},aC=.8908130915292852,hS=Qu(Zu/10)/Qu(7*Zu/10),oC=Qu(jc/10)*hS,lC=-oS(jc/10)*hS,uC={draw(e,t){const r=lr(t*aC),n=oC*r,i=lC*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=jc*a/5,l=oS(o),u=Qu(o);e.lineTo(u*r,-l*r),e.lineTo(l*n-u*i,u*n+l*i)}e.closePath()}},Tf=lr(3),sC={draw(e,t){const r=-lr(t/(Tf*3));e.moveTo(0,r*2),e.lineTo(-Tf*r,-r),e.lineTo(Tf*r,-r),e.closePath()}},Mt=-.5,Nt=lr(3)/2,ap=1/lr(12),cC=(ap/2+1)*3,fC={draw(e,t){const r=lr(t/cC),n=r/2,i=r*ap,a=n,o=r*ap+r,l=-a,u=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(l,u),e.lineTo(Mt*n-Nt*i,Nt*n+Mt*i),e.lineTo(Mt*a-Nt*o,Nt*a+Mt*o),e.lineTo(Mt*l-Nt*u,Nt*l+Mt*u),e.lineTo(Mt*n+Nt*i,Mt*i-Nt*n),e.lineTo(Mt*a+Nt*o,Mt*o-Nt*a),e.lineTo(Mt*l+Nt*u,Mt*u-Nt*l),e.closePath()}};function dC(e,t){let r=null,n=$v(i);e=typeof e=="function"?e:he(e||Tv),t=typeof t=="function"?t:he(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:he(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:he(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Ju(){}function es(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function vS(e){this._context=e}vS.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:es(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:es(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function pC(e){return new vS(e)}function yS(e){this._context=e}yS.prototype={areaStart:Ju,areaEnd:Ju,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);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:es(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function hC(e){return new yS(e)}function mS(e){this._context=e}mS.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:es(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function vC(e){return new mS(e)}function gS(e){this._context=e}gS.prototype={areaStart:Ju,areaEnd:Ju,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function yC(e){return new gS(e)}function Xm(e){return e<0?-1:1}function Ym(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),l=(a*i+o*n)/(n+i);return(Xm(a)+Xm(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function Qm(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function kf(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,l=(a-n)/3;e._context.bezierCurveTo(n+l,i+l*t,a-l,o-l*r,a,o)}function ts(e){this._context=e}ts.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:kf(this,this._t0,Qm(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,kf(this,Qm(this,r=Ym(this,e,t)),r);break;default:kf(this,this._t0,r=Ym(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function bS(e){this._context=new xS(e)}(bS.prototype=Object.create(ts.prototype)).point=function(e,t){ts.prototype.point.call(this,t,e)};function xS(e){this._context=e}xS.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function mC(e){return new ts(e)}function gC(e){return new bS(e)}function wS(e){this._context=e}wS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Zm(e),i=Zm(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Zm(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function bC(e){return new wS(e)}function kc(e,t){this._context=e,this._t=t}kc.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&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function xC(e){return new kc(e,.5)}function wC(e){return new kc(e,0)}function SC(e){return new kc(e,1)}function Ki(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,l=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<l;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function op(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function OC(e,t){return e[t]}function _C(e){const t=[];return t.key=e,t}function PC(){var e=he([]),t=op,r=Ki,n=OC;function i(a){var o=Array.from(e.apply(this,arguments),_C),l,u=o.length,s=-1,f;for(const c of a)for(l=0,++s;l<u;++l)(o[l][s]=[0,+n(c,o[l].key,s,a)]).data=c;for(l=0,f=jv(t(o));l<u;++l)o[f[l]].index=l;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:he(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:he(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?op:typeof a=="function"?a:he(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Ki,i):r},i}function AC(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Ki(e,t)}}function EC(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,l=0;o<i;++o)l+=e[o][r][1]||0;n[r][1]+=n[r][0]=-l/2}Ki(e,t)}}function $C(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var l=0,u=0,s=0;l<o;++l){for(var f=e[t[l]],c=f[n][1]||0,d=f[n-1][1]||0,p=(c-d)/2,m=0;m<l;++m){var v=e[t[m]],x=v[n][1]||0,y=v[n-1][1]||0;p+=x-y}u+=c,s+=p*c}i[n-1][1]+=i[n-1][0]=r,u&&(r-=s/u)}i[n-1][1]+=i[n-1][0]=r,Ki(e,t)}}function Lo(e){"@babel/helpers - typeof";return Lo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lo(e)}var jC=["type","size","sizeType"];function lp(){return lp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lp.apply(this,arguments)}function Jm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function eg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jm(Object(r),!0).forEach(function(n){TC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TC(e,t,r){return t=kC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kC(e){var t=CC(e,"string");return Lo(t)=="symbol"?t:t+""}function CC(e,t){if(Lo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Lo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function MC(e,t){if(e==null)return{};var r=NC(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function NC(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var SS={symbolCircle:Tv,symbolCross:tC,symbolDiamond:nC,symbolSquare:iC,symbolStar:uC,symbolTriangle:sC,symbolWye:fC},IC=Math.PI/180,DC=function(t){var r="symbol".concat($c(t));return SS[r]||Tv},LC=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*IC;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),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}},RC=function(t,r){SS["symbol".concat($c(t))]=r},kv=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,l=o===void 0?"area":o,u=MC(t,jC),s=eg(eg({},u),{},{type:n,size:a,sizeType:l}),f=function(){var x=DC(n),y=dC().type(x).size(LC(a,l,n));return y()},c=s.className,d=s.cx,p=s.cy,m=J(s,!0);return d===+d&&p===+p&&a===+a?E.createElement("path",lp({},m,{className:ne("recharts-symbols",c),transform:"translate(".concat(d,", ").concat(p,")"),d:f()})):null};kv.registerSymbol=RC;function Gi(e){"@babel/helpers - typeof";return Gi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gi(e)}function up(){return up=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},up.apply(this,arguments)}function tg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function BC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tg(Object(r),!0).forEach(function(n){Ro(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_S(n.key),n)}}function UC(e,t,r){return t&&FC(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function WC(e,t,r){return t=rs(t),HC(e,OS()?Reflect.construct(t,r||[],rs(e).constructor):t.apply(e,r))}function HC(e,t){if(t&&(Gi(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VC(e)}function VC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OS=function(){return!!e})()}function rs(e){return rs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},rs(e)}function KC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sp(e,t)}function sp(e,t){return sp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},sp(e,t)}function Ro(e,t,r){return t=_S(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _S(e){var t=GC(e,"string");return Gi(t)=="symbol"?t:t+""}function GC(e,t){if(Gi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var It=32,Cv=function(e){function t(){return zC(this,t),WC(this,t,arguments)}return KC(t,e),UC(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=It/2,o=It/6,l=It/3,u=n.inactive?i:n.color;if(n.type==="plainline")return E.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:It,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return E.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(a,"h").concat(l,`
|
|
139
|
+
A`).concat(o,",").concat(o,",0,1,1,").concat(2*l,",").concat(a,`
|
|
140
|
+
H`).concat(It,"M").concat(2*l,",").concat(a,`
|
|
141
|
+
A`).concat(o,",").concat(o,",0,1,1,").concat(l,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return E.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(It/8,"h").concat(It,"v").concat(It*3/4,"h").concat(-It,"z"),className:"recharts-legend-icon"});if(E.isValidElement(n.legendIcon)){var s=BC({},n);return delete s.legendIcon,E.cloneElement(n.legendIcon,s)}return E.createElement(kv,{fill:u,cx:a,cy:a,size:It,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,l=i.layout,u=i.formatter,s=i.inactiveColor,f={x:0,y:0,width:It,height:It},c={display:l==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,m){var v=p.formatter||u,x=ne(Ro(Ro({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",p.inactive));if(p.type==="none")return null;var y=Q(p.value)?null:p.value;Tr(!Q(p.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 h=p.inactive?s:p.color;return E.createElement("li",up({className:x,style:c,key:"legend-item-".concat(m)},Yu(n.props,p,m)),E.createElement(Jd,{width:o,height:o,viewBox:f,style:d},n.renderIcon(p)),E.createElement("span",{className:"recharts-legend-item-text",style:{color:h}},v?v(y,p,m):y))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return E.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(R.PureComponent);Ro(Cv,"displayName","Legend");Ro(Cv,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var qC=vc;function XC(){this.__data__=new qC,this.size=0}var YC=XC;function QC(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var ZC=QC;function JC(e){return this.__data__.get(e)}var eM=JC;function tM(e){return this.__data__.has(e)}var rM=tM,nM=vc,iM=bv,aM=xv,oM=200;function lM(e,t){var r=this.__data__;if(r instanceof nM){var n=r.__data__;if(!iM||n.length<oM-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new aM(n)}return r.set(e,t),this.size=r.size,this}var uM=lM,sM=vc,cM=YC,fM=ZC,dM=eM,pM=rM,hM=uM;function $a(e){var t=this.__data__=new sM(e);this.size=t.size}$a.prototype.clear=cM;$a.prototype.delete=fM;$a.prototype.get=dM;$a.prototype.has=pM;$a.prototype.set=hM;var PS=$a,vM="__lodash_hash_undefined__";function yM(e){return this.__data__.set(e,vM),this}var mM=yM;function gM(e){return this.__data__.has(e)}var bM=gM,xM=xv,wM=mM,SM=bM;function ns(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new xM;++t<r;)this.add(e[t])}ns.prototype.add=ns.prototype.push=wM;ns.prototype.has=SM;var AS=ns;function OM(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var ES=OM;function _M(e,t){return e.has(t)}var $S=_M,PM=AS,AM=ES,EM=$S,$M=1,jM=2;function TM(e,t,r,n,i,a){var o=r&$M,l=e.length,u=t.length;if(l!=u&&!(o&&u>l))return!1;var s=a.get(e),f=a.get(t);if(s&&f)return s==t&&f==e;var c=-1,d=!0,p=r&jM?new PM:void 0;for(a.set(e,t),a.set(t,e);++c<l;){var m=e[c],v=t[c];if(n)var x=o?n(v,m,c,t,e,a):n(m,v,c,e,t,a);if(x!==void 0){if(x)continue;d=!1;break}if(p){if(!AM(t,function(y,h){if(!EM(p,h)&&(m===y||i(m,y,r,n,a)))return p.push(h)})){d=!1;break}}else if(!(m===v||i(m,v,r,n,a))){d=!1;break}}return a.delete(e),a.delete(t),d}var jS=TM,kM=br,CM=kM.Uint8Array,MM=CM;function NM(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var IM=NM;function DM(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Mv=DM,rg=Ol,ng=MM,LM=gv,RM=jS,BM=IM,zM=Mv,FM=1,UM=2,WM="[object Boolean]",HM="[object Date]",VM="[object Error]",KM="[object Map]",GM="[object Number]",qM="[object RegExp]",XM="[object Set]",YM="[object String]",QM="[object Symbol]",ZM="[object ArrayBuffer]",JM="[object DataView]",ig=rg?rg.prototype:void 0,Cf=ig?ig.valueOf:void 0;function eN(e,t,r,n,i,a,o){switch(r){case JM:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ZM:return!(e.byteLength!=t.byteLength||!a(new ng(e),new ng(t)));case WM:case HM:case GM:return LM(+e,+t);case VM:return e.name==t.name&&e.message==t.message;case qM:case YM:return e==t+"";case KM:var l=BM;case XM:var u=n&FM;if(l||(l=zM),e.size!=t.size&&!u)return!1;var s=o.get(e);if(s)return s==t;n|=UM,o.set(e,t);var f=RM(l(e),l(t),n,i,a,o);return o.delete(e),f;case QM:if(Cf)return Cf.call(e)==Cf.call(t)}return!1}var tN=eN;function rN(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var TS=rN,nN=TS,iN=wt;function aN(e,t,r){var n=t(e);return iN(e)?n:nN(n,r(e))}var oN=aN;function lN(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}var uN=lN;function sN(){return[]}var cN=sN,fN=uN,dN=cN,pN=Object.prototype,hN=pN.propertyIsEnumerable,ag=Object.getOwnPropertySymbols,vN=ag?function(e){return e==null?[]:(e=Object(e),fN(ag(e),function(t){return hN.call(e,t)}))}:dN,yN=vN;function mN(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var gN=mN,bN=Fr,xN=Ur,wN="[object Arguments]";function SN(e){return xN(e)&&bN(e)==wN}var ON=SN,og=ON,_N=Ur,kS=Object.prototype,PN=kS.hasOwnProperty,AN=kS.propertyIsEnumerable,EN=og(function(){return arguments}())?og:function(e){return _N(e)&&PN.call(e,"callee")&&!AN.call(e,"callee")},Nv=EN,is={exports:{}};function $N(){return!1}var jN=$N;is.exports;(function(e,t){var r=br,n=jN,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,l=o?r.Buffer:void 0,u=l?l.isBuffer:void 0,s=u||n;e.exports=s})(is,is.exports);var CS=is.exports,TN=9007199254740991,kN=/^(?:0|[1-9]\d*)$/;function CN(e,t){var r=typeof e;return t=t??TN,!!t&&(r=="number"||r!="symbol"&&kN.test(e))&&e>-1&&e%1==0&&e<t}var Iv=CN,MN=9007199254740991;function NN(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=MN}var Dv=NN,IN=Fr,DN=Dv,LN=Ur,RN="[object Arguments]",BN="[object Array]",zN="[object Boolean]",FN="[object Date]",UN="[object Error]",WN="[object Function]",HN="[object Map]",VN="[object Number]",KN="[object Object]",GN="[object RegExp]",qN="[object Set]",XN="[object String]",YN="[object WeakMap]",QN="[object ArrayBuffer]",ZN="[object DataView]",JN="[object Float32Array]",eI="[object Float64Array]",tI="[object Int8Array]",rI="[object Int16Array]",nI="[object Int32Array]",iI="[object Uint8Array]",aI="[object Uint8ClampedArray]",oI="[object Uint16Array]",lI="[object Uint32Array]",ge={};ge[JN]=ge[eI]=ge[tI]=ge[rI]=ge[nI]=ge[iI]=ge[aI]=ge[oI]=ge[lI]=!0;ge[RN]=ge[BN]=ge[QN]=ge[zN]=ge[ZN]=ge[FN]=ge[UN]=ge[WN]=ge[HN]=ge[VN]=ge[KN]=ge[GN]=ge[qN]=ge[XN]=ge[YN]=!1;function uI(e){return LN(e)&&DN(e.length)&&!!ge[IN(e)]}var sI=uI;function cI(e){return function(t){return e(t)}}var MS=cI,as={exports:{}};as.exports;(function(e,t){var r=zw,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,l=function(){try{var u=i&&i.require&&i.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l})(as,as.exports);var fI=as.exports,dI=sI,pI=MS,lg=fI,ug=lg&&lg.isTypedArray,hI=ug?pI(ug):dI,NS=hI,vI=gN,yI=Nv,mI=wt,gI=CS,bI=Iv,xI=NS,wI=Object.prototype,SI=wI.hasOwnProperty;function OI(e,t){var r=mI(e),n=!r&&yI(e),i=!r&&!n&&gI(e),a=!r&&!n&&!i&&xI(e),o=r||n||i||a,l=o?vI(e.length,String):[],u=l.length;for(var s in e)(t||SI.call(e,s))&&!(o&&(s=="length"||i&&(s=="offset"||s=="parent")||a&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||bI(s,u)))&&l.push(s);return l}var _I=OI,PI=Object.prototype;function AI(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||PI;return e===r}var EI=AI;function $I(e,t){return function(r){return e(t(r))}}var IS=$I,jI=IS,TI=jI(Object.keys,Object),kI=TI,CI=EI,MI=kI,NI=Object.prototype,II=NI.hasOwnProperty;function DI(e){if(!CI(e))return MI(e);var t=[];for(var r in Object(e))II.call(e,r)&&r!="constructor"&&t.push(r);return t}var LI=DI,RI=mv,BI=Dv;function zI(e){return e!=null&&BI(e.length)&&!RI(e)}var _l=zI,FI=_I,UI=LI,WI=_l;function HI(e){return WI(e)?FI(e):UI(e)}var Cc=HI,VI=oN,KI=yN,GI=Cc;function qI(e){return VI(e,GI,KI)}var XI=qI,sg=XI,YI=1,QI=Object.prototype,ZI=QI.hasOwnProperty;function JI(e,t,r,n,i,a){var o=r&YI,l=sg(e),u=l.length,s=sg(t),f=s.length;if(u!=f&&!o)return!1;for(var c=u;c--;){var d=l[c];if(!(o?d in t:ZI.call(t,d)))return!1}var p=a.get(e),m=a.get(t);if(p&&m)return p==t&&m==e;var v=!0;a.set(e,t),a.set(t,e);for(var x=o;++c<u;){d=l[c];var y=e[d],h=t[d];if(n)var g=o?n(h,y,d,t,e,a):n(y,h,d,e,t,a);if(!(g===void 0?y===h||i(y,h,r,n,a):g)){v=!1;break}x||(x=d=="constructor")}if(v&&!x){var S=e.constructor,b=t.constructor;S!=b&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof b=="function"&&b instanceof b)&&(v=!1)}return a.delete(e),a.delete(t),v}var eD=JI,tD=ri,rD=br,nD=tD(rD,"DataView"),iD=nD,aD=ri,oD=br,lD=aD(oD,"Promise"),uD=lD,sD=ri,cD=br,fD=sD(cD,"Set"),DS=fD,dD=ri,pD=br,hD=dD(pD,"WeakMap"),vD=hD,cp=iD,fp=bv,dp=uD,pp=DS,hp=vD,LS=Fr,ja=Uw,cg="[object Map]",yD="[object Object]",fg="[object Promise]",dg="[object Set]",pg="[object WeakMap]",hg="[object DataView]",mD=ja(cp),gD=ja(fp),bD=ja(dp),xD=ja(pp),wD=ja(hp),Tn=LS;(cp&&Tn(new cp(new ArrayBuffer(1)))!=hg||fp&&Tn(new fp)!=cg||dp&&Tn(dp.resolve())!=fg||pp&&Tn(new pp)!=dg||hp&&Tn(new hp)!=pg)&&(Tn=function(e){var t=LS(e),r=t==yD?e.constructor:void 0,n=r?ja(r):"";if(n)switch(n){case mD:return hg;case gD:return cg;case bD:return fg;case xD:return dg;case wD:return pg}return t});var SD=Tn,Mf=PS,OD=jS,_D=tN,PD=eD,vg=SD,yg=wt,mg=CS,AD=NS,ED=1,gg="[object Arguments]",bg="[object Array]",Jl="[object Object]",$D=Object.prototype,xg=$D.hasOwnProperty;function jD(e,t,r,n,i,a){var o=yg(e),l=yg(t),u=o?bg:vg(e),s=l?bg:vg(t);u=u==gg?Jl:u,s=s==gg?Jl:s;var f=u==Jl,c=s==Jl,d=u==s;if(d&&mg(e)){if(!mg(t))return!1;o=!0,f=!1}if(d&&!f)return a||(a=new Mf),o||AD(e)?OD(e,t,r,n,i,a):_D(e,t,u,r,n,i,a);if(!(r&ED)){var p=f&&xg.call(e,"__wrapped__"),m=c&&xg.call(t,"__wrapped__");if(p||m){var v=p?e.value():e,x=m?t.value():t;return a||(a=new Mf),i(v,x,r,n,a)}}return d?(a||(a=new Mf),PD(e,t,r,n,i,a)):!1}var TD=jD,kD=TD,wg=Ur;function RS(e,t,r,n,i){return e===t?!0:e==null||t==null||!wg(e)&&!wg(t)?e!==e&&t!==t:kD(e,t,r,n,RS,i)}var Lv=RS,CD=PS,MD=Lv,ND=1,ID=2;function DD(e,t,r,n){var i=r.length,a=i,o=!n;if(e==null)return!a;for(e=Object(e);i--;){var l=r[i];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){l=r[i];var u=l[0],s=e[u],f=l[1];if(o&&l[2]){if(s===void 0&&!(u in e))return!1}else{var c=new CD;if(n)var d=n(s,f,u,e,t,c);if(!(d===void 0?MD(f,s,ND|ID,n,c):d))return!1}}return!0}var LD=DD,RD=gn;function BD(e){return e===e&&!RD(e)}var BS=BD,zD=BS,FD=Cc;function UD(e){for(var t=FD(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,zD(i)]}return t}var WD=UD;function HD(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var zS=HD,VD=LD,KD=WD,GD=zS;function qD(e){var t=KD(e);return t.length==1&&t[0][2]?GD(t[0][0],t[0][1]):function(r){return r===e||VD(r,e,t)}}var XD=qD;function YD(e,t){return e!=null&&t in Object(e)}var QD=YD,ZD=Gw,JD=Nv,e3=wt,t3=Iv,r3=Dv,n3=mc;function i3(e,t,r){t=ZD(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=n3(t[n]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&r3(i)&&t3(o,i)&&(e3(e)||JD(e)))}var a3=i3,o3=QD,l3=a3;function u3(e,t){return e!=null&&l3(e,t,o3)}var s3=u3,c3=Lv,f3=qw,d3=s3,p3=yv,h3=BS,v3=zS,y3=mc,m3=1,g3=2;function b3(e,t){return p3(e)&&h3(t)?v3(y3(e),t):function(r){var n=f3(r,e);return n===void 0&&n===t?d3(r,e):c3(t,n,m3|g3)}}var x3=b3;function w3(e){return e}var Ta=w3;function S3(e){return function(t){return t==null?void 0:t[e]}}var O3=S3,_3=Ov;function P3(e){return function(t){return _3(t,e)}}var A3=P3,E3=O3,$3=A3,j3=yv,T3=mc;function k3(e){return j3(e)?E3(T3(e)):$3(e)}var C3=k3,M3=XD,N3=x3,I3=Ta,D3=wt,L3=C3;function R3(e){return typeof e=="function"?e:e==null?I3:typeof e=="object"?D3(e)?N3(e[0],e[1]):M3(e):L3(e)}var bn=R3;function B3(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var FS=B3;function z3(e){return e!==e}var F3=z3;function U3(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var W3=U3,H3=FS,V3=F3,K3=W3;function G3(e,t,r){return t===t?K3(e,t,r):H3(e,V3,r)}var q3=G3,X3=q3;function Y3(e,t){var r=e==null?0:e.length;return!!r&&X3(e,t,0)>-1}var Q3=Y3;function Z3(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}var J3=Z3;function eL(){}var tL=eL,Nf=DS,rL=tL,nL=Mv,iL=1/0,aL=Nf&&1/nL(new Nf([,-0]))[1]==iL?function(e){return new Nf(e)}:rL,oL=aL,lL=AS,uL=Q3,sL=J3,cL=$S,fL=oL,dL=Mv,pL=200;function hL(e,t,r){var n=-1,i=uL,a=e.length,o=!0,l=[],u=l;if(r)o=!1,i=sL;else if(a>=pL){var s=t?null:fL(e);if(s)return dL(s);o=!1,i=cL,u=new lL}else u=t?[]:l;e:for(;++n<a;){var f=e[n],c=t?t(f):f;if(f=r||f!==0?f:0,o&&c===c){for(var d=u.length;d--;)if(u[d]===c)continue e;t&&u.push(c),l.push(f)}else i(u,c,r)||(u!==l&&u.push(c),l.push(f))}return l}var vL=hL,yL=bn,mL=vL;function gL(e,t){return e&&e.length?mL(e,yL(t)):[]}var bL=gL;const Sg=pe(bL);function US(e,t,r){return t===!0?Sg(e,r):Q(t)?Sg(e,t):e}function qi(e){"@babel/helpers - typeof";return qi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qi(e)}var xL=["ref"];function Og(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Og(Object(r),!0).forEach(function(n){Mc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Og(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _g(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,HS(n.key),n)}}function SL(e,t,r){return t&&_g(e.prototype,t),r&&_g(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function OL(e,t,r){return t=os(t),_L(e,WS()?Reflect.construct(t,r||[],os(e).constructor):t.apply(e,r))}function _L(e,t){if(t&&(qi(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PL(e)}function PL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WS=function(){return!!e})()}function os(e){return os=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},os(e)}function AL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vp(e,t)}function vp(e,t){return vp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},vp(e,t)}function Mc(e,t,r){return t=HS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HS(e){var t=EL(e,"string");return qi(t)=="symbol"?t:t+""}function EL(e,t){if(qi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function $L(e,t){if(e==null)return{};var r=jL(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jL(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function TL(e){return e.value}function kL(e,t){if(E.isValidElement(e))return E.cloneElement(e,t);if(typeof e=="function")return E.createElement(e,t);t.ref;var r=$L(t,xL);return E.createElement(Cv,r)}var Pg=1,Ii=function(e){function t(){var r;wL(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=OL(this,t,[].concat(i)),Mc(r,"lastBoundingBox",{width:-1,height:-1}),r}return AL(t,e),SL(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>Pg||Math.abs(i.height-this.lastBoundingBox.height)>Pg)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?xr({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,l=i.verticalAlign,u=i.margin,s=i.chartWidth,f=i.chartHeight,c,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();c={left:((s||0)-p.width)/2}}else c=o==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(l==="middle"){var m=this.getBBoxSnapshot();d={top:((f||0)-m.height)/2}}else d=l==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return xr(xr({},c),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,l=i.height,u=i.wrapperStyle,s=i.payloadUniqBy,f=i.payload,c=xr(xr({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(u)),u);return E.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(p){n.wrapperNode=p}},kL(a,xr(xr({},this.props),{},{payload:US(f,s,TL)})))}}],[{key:"getWithHeight",value:function(n,i){var a=xr(xr({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&H(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])}(R.PureComponent);Mc(Ii,"displayName","Legend");Mc(Ii,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Ag=Ol,CL=Nv,ML=wt,Eg=Ag?Ag.isConcatSpreadable:void 0;function NL(e){return ML(e)||CL(e)||!!(Eg&&e&&e[Eg])}var IL=NL,DL=TS,LL=IL;function VS(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=LL),i||(i=[]);++a<o;){var l=e[a];t>0&&r(l)?t>1?VS(l,t-1,r,n,i):DL(i,l):n||(i[i.length]=l)}return i}var KS=VS;function RL(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),l=o.length;l--;){var u=o[e?l:++i];if(r(a[u],u,a)===!1)break}return t}}var BL=RL,zL=BL,FL=zL(),UL=FL,WL=UL,HL=Cc;function VL(e,t){return e&&WL(e,t,HL)}var GS=VL,KL=_l;function GL(e,t){return function(r,n){if(r==null)return r;if(!KL(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++a<i)&&n(o[a],a,o)!==!1;);return r}}var qL=GL,XL=GS,YL=qL,QL=YL(XL),Rv=QL,ZL=Rv,JL=_l;function eR(e,t){var r=-1,n=JL(e)?Array(e.length):[];return ZL(e,function(i,a,o){n[++r]=t(i,a,o)}),n}var qS=eR;function tR(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var rR=tR,$g=wa;function nR(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,a=$g(e),o=t!==void 0,l=t===null,u=t===t,s=$g(t);if(!l&&!s&&!a&&e>t||a&&o&&u&&!l&&!s||n&&o&&u||!r&&u||!i)return 1;if(!n&&!a&&!s&&e<t||s&&r&&i&&!n&&!a||l&&r&&i||!o&&i||!u)return-1}return 0}var iR=nR,aR=iR;function oR(e,t,r){for(var n=-1,i=e.criteria,a=t.criteria,o=i.length,l=r.length;++n<o;){var u=aR(i[n],a[n]);if(u){if(n>=l)return u;var s=r[n];return u*(s=="desc"?-1:1)}}return e.index-t.index}var lR=oR,If=Sv,uR=Ov,sR=bn,cR=qS,fR=rR,dR=MS,pR=lR,hR=Ta,vR=wt;function yR(e,t,r){t.length?t=If(t,function(a){return vR(a)?function(o){return uR(o,a.length===1?a[0]:a)}:a}):t=[hR];var n=-1;t=If(t,dR(sR));var i=cR(e,function(a,o,l){var u=If(t,function(s){return s(a)});return{criteria:u,index:++n,value:a}});return fR(i,function(a,o){return pR(a,o,r)})}var mR=yR;function gR(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var bR=gR,xR=bR,jg=Math.max;function wR(e,t,r){return t=jg(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=jg(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=n[i];return l[t]=r(o),xR(e,this,l)}}var SR=wR;function OR(e){return function(){return e}}var _R=OR,PR=ri,AR=function(){try{var e=PR(Object,"defineProperty");return e({},"",{}),e}catch{}}(),XS=AR,ER=_R,Tg=XS,$R=Ta,jR=Tg?function(e,t){return Tg(e,"toString",{configurable:!0,enumerable:!1,value:ER(t),writable:!0})}:$R,TR=jR,kR=800,CR=16,MR=Date.now;function NR(e){var t=0,r=0;return function(){var n=MR(),i=CR-(n-r);if(r=n,i>0){if(++t>=kR)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var IR=NR,DR=TR,LR=IR,RR=LR(DR),BR=RR,zR=Ta,FR=SR,UR=BR;function WR(e,t){return UR(FR(e,t,zR),e+"")}var HR=WR,VR=gv,KR=_l,GR=Iv,qR=gn;function XR(e,t,r){if(!qR(r))return!1;var n=typeof t;return(n=="number"?KR(r)&&GR(t,r.length):n=="string"&&t in r)?VR(r[t],e):!1}var Nc=XR,YR=KS,QR=mR,ZR=HR,kg=Nc,JR=ZR(function(e,t){if(e==null)return[];var r=t.length;return r>1&&kg(e,t[0],t[1])?t=[]:r>2&&kg(t[0],t[1],t[2])&&(t=[t[0]]),QR(e,YR(t,1),[])}),e4=JR;const Bv=pe(e4);function Bo(e){"@babel/helpers - typeof";return Bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bo(e)}function yp(){return yp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yp.apply(this,arguments)}function t4(e,t){return a4(e)||i4(e,t)||n4(e,t)||r4()}function r4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
142
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n4(e,t){if(e){if(typeof e=="string")return Cg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cg(e,t)}}function Cg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i4(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(f){s=!0,i=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}function a4(e){if(Array.isArray(e))return e}function Mg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Df(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mg(Object(r),!0).forEach(function(n){o4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function o4(e,t,r){return t=l4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l4(e){var t=u4(e,"string");return Bo(t)=="symbol"?t:t+""}function u4(e,t){if(Bo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function s4(e){return Array.isArray(e)&&Fe(e[0])&&Fe(e[1])?e.join(" ~ "):e}var c4=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,l=o===void 0?{}:o,u=t.labelStyle,s=u===void 0?{}:u,f=t.payload,c=t.formatter,d=t.itemSorter,p=t.wrapperClassName,m=t.labelClassName,v=t.label,x=t.labelFormatter,y=t.accessibilityLayer,h=y===void 0?!1:y,g=function(){if(f&&f.length){var $={padding:0,margin:0},I=(d?Bv(f,d):f).map(function(N,C){if(N.type==="none")return null;var D=Df({display:"block",paddingTop:4,paddingBottom:4,color:N.color||"#000"},l),z=N.formatter||c||s4,k=N.value,L=N.name,B=k,V=L;if(z&&B!=null&&V!=null){var W=z(k,L,N,C,f);if(Array.isArray(W)){var X=t4(W,2);B=X[0],V=X[1]}else B=W}return E.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(C),style:D},Fe(V)?E.createElement("span",{className:"recharts-tooltip-item-name"},V):null,Fe(V)?E.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,E.createElement("span",{className:"recharts-tooltip-item-value"},B),E.createElement("span",{className:"recharts-tooltip-item-unit"},N.unit||""))});return E.createElement("ul",{className:"recharts-tooltip-item-list",style:$},I)}return null},S=Df({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),b=Df({margin:0},s),w=!te(v),O=w?v:"",_=ne("recharts-default-tooltip",p),A=ne("recharts-tooltip-label",m);w&&x&&f!==void 0&&f!==null&&(O=x(v,f));var j=h?{role:"status","aria-live":"assertive"}:{};return E.createElement("div",yp({className:_,style:S},j),E.createElement("p",{className:A,style:b},E.isValidElement(O)?O:"".concat(O)),g())};function zo(e){"@babel/helpers - typeof";return zo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zo(e)}function eu(e,t,r){return t=f4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f4(e){var t=d4(e,"string");return zo(t)=="symbol"?t:t+""}function d4(e,t){if(zo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ha="recharts-tooltip-wrapper",p4={visibility:"hidden"};function h4(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return ne(Ha,eu(eu(eu(eu({},"".concat(Ha,"-right"),H(r)&&t&&H(t.x)&&r>=t.x),"".concat(Ha,"-left"),H(r)&&t&&H(t.x)&&r<t.x),"".concat(Ha,"-bottom"),H(n)&&t&&H(t.y)&&n>=t.y),"".concat(Ha,"-top"),H(n)&&t&&H(t.y)&&n<t.y))}function Ng(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,l=e.tooltipDimension,u=e.viewBox,s=e.viewBoxDimension;if(a&&H(a[n]))return a[n];var f=r[n]-l-i,c=r[n]+i;if(t[n])return o[n]?f:c;if(o[n]){var d=f,p=u[n];return d<p?Math.max(c,u[n]):Math.max(f,u[n])}var m=c+l,v=u[n]+s;return m>v?Math.max(f,u[n]):Math.max(c,u[n])}function v4(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function y4(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,l=e.useTranslate3d,u=e.viewBox,s,f,c;return o.height>0&&o.width>0&&r?(f=Ng({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:u,viewBoxDimension:u.width}),c=Ng({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:u,viewBoxDimension:u.height}),s=v4({translateX:f,translateY:c,useTranslate3d:l})):s=p4,{cssProperties:s,cssClasses:h4({translateX:f,translateY:c,coordinate:r})}}function Xi(e){"@babel/helpers - typeof";return Xi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xi(e)}function Ig(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ig(Object(r),!0).forEach(function(n){gp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ig(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function m4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,QS(n.key),n)}}function b4(e,t,r){return t&&g4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function x4(e,t,r){return t=ls(t),w4(e,YS()?Reflect.construct(t,r||[],ls(e).constructor):t.apply(e,r))}function w4(e,t){if(t&&(Xi(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S4(e)}function S4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YS=function(){return!!e})()}function ls(e){return ls=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ls(e)}function O4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mp(e,t)}function mp(e,t){return mp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},mp(e,t)}function gp(e,t,r){return t=QS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QS(e){var t=_4(e,"string");return Xi(t)=="symbol"?t:t+""}function _4(e,t){if(Xi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Lg=1,P4=function(e){function t(){var r;m4(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=x4(this,t,[].concat(i)),gp(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),gp(r,"handleKeyDown",function(o){if(o.key==="Escape"){var l,u,s,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(u=r.props.coordinate)===null||u===void 0?void 0:u.x)!==null&&l!==void 0?l:0,y:(s=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&s!==void 0?s:0}})}}),r}return O4(t,e),b4(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Lg||Math.abs(n.height-this.state.lastBoundingBox.height)>Lg)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,l=i.animationDuration,u=i.animationEasing,s=i.children,f=i.coordinate,c=i.hasPayload,d=i.isAnimationActive,p=i.offset,m=i.position,v=i.reverseDirection,x=i.useTranslate3d,y=i.viewBox,h=i.wrapperStyle,g=y4({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:m,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:x,viewBox:y}),S=g.cssClasses,b=g.cssProperties,w=Dg(Dg({transition:d&&a?"transform ".concat(l,"ms ").concat(u):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&c?"visible":"hidden",position:"absolute",top:0,left:0},h);return E.createElement("div",{tabIndex:-1,className:S,style:w,ref:function(_){n.wrapperNode=_}},s)}}])}(R.PureComponent),A4=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ni={isSsr:A4()};function Yi(e){"@babel/helpers - typeof";return Yi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yi(e)}function Rg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rg(Object(r),!0).forEach(function(n){zv(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function E4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,JS(n.key),n)}}function j4(e,t,r){return t&&$4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function T4(e,t,r){return t=us(t),k4(e,ZS()?Reflect.construct(t,r||[],us(e).constructor):t.apply(e,r))}function k4(e,t){if(t&&(Yi(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return C4(e)}function C4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ZS=function(){return!!e})()}function us(e){return us=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},us(e)}function M4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bp(e,t)}function bp(e,t){return bp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},bp(e,t)}function zv(e,t,r){return t=JS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JS(e){var t=N4(e,"string");return Yi(t)=="symbol"?t:t+""}function N4(e,t){if(Yi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function I4(e){return e.dataKey}function D4(e,t){return E.isValidElement(e)?E.cloneElement(e,t):typeof e=="function"?E.createElement(e,t):E.createElement(c4,t)}var Zt=function(e){function t(){return E4(this,t),T4(this,t,arguments)}return M4(t,e),j4(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,l=i.animationDuration,u=i.animationEasing,s=i.content,f=i.coordinate,c=i.filterNull,d=i.isAnimationActive,p=i.offset,m=i.payload,v=i.payloadUniqBy,x=i.position,y=i.reverseDirection,h=i.useTranslate3d,g=i.viewBox,S=i.wrapperStyle,b=m??[];c&&b.length&&(b=US(m.filter(function(O){return O.value!=null&&(O.hide!==!0||n.props.includeHidden)}),v,I4));var w=b.length>0;return E.createElement(P4,{allowEscapeViewBox:o,animationDuration:l,animationEasing:u,isAnimationActive:d,active:a,coordinate:f,hasPayload:w,offset:p,position:x,reverseDirection:y,useTranslate3d:h,viewBox:g,wrapperStyle:S},D4(s,Bg(Bg({},this.props),{},{payload:b})))}}])}(R.PureComponent);zv(Zt,"displayName","Tooltip");zv(Zt,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ni.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:{}});var L4=br,R4=function(){return L4.Date.now()},B4=R4,z4=/\s/;function F4(e){for(var t=e.length;t--&&z4.test(e.charAt(t)););return t}var U4=F4,W4=U4,H4=/^\s+/;function V4(e){return e&&e.slice(0,W4(e)+1).replace(H4,"")}var K4=V4,G4=K4,zg=gn,q4=wa,Fg=NaN,X4=/^[-+]0x[0-9a-f]+$/i,Y4=/^0b[01]+$/i,Q4=/^0o[0-7]+$/i,Z4=parseInt;function J4(e){if(typeof e=="number")return e;if(q4(e))return Fg;if(zg(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=zg(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=G4(e);var r=Y4.test(e);return r||Q4.test(e)?Z4(e.slice(2),r?2:8):X4.test(e)?Fg:+e}var eO=J4,eB=gn,Lf=B4,Ug=eO,tB="Expected a function",rB=Math.max,nB=Math.min;function iB(e,t,r){var n,i,a,o,l,u,s=0,f=!1,c=!1,d=!0;if(typeof e!="function")throw new TypeError(tB);t=Ug(t)||0,eB(r)&&(f=!!r.leading,c="maxWait"in r,a=c?rB(Ug(r.maxWait)||0,t):a,d="trailing"in r?!!r.trailing:d);function p(w){var O=n,_=i;return n=i=void 0,s=w,o=e.apply(_,O),o}function m(w){return s=w,l=setTimeout(y,t),f?p(w):o}function v(w){var O=w-u,_=w-s,A=t-O;return c?nB(A,a-_):A}function x(w){var O=w-u,_=w-s;return u===void 0||O>=t||O<0||c&&_>=a}function y(){var w=Lf();if(x(w))return h(w);l=setTimeout(y,v(w))}function h(w){return l=void 0,d&&n?p(w):(n=i=void 0,o)}function g(){l!==void 0&&clearTimeout(l),s=0,n=u=i=l=void 0}function S(){return l===void 0?o:h(Lf())}function b(){var w=Lf(),O=x(w);if(n=arguments,i=this,u=w,O){if(l===void 0)return m(u);if(c)return clearTimeout(l),l=setTimeout(y,t),p(u)}return l===void 0&&(l=setTimeout(y,t)),o}return b.cancel=g,b.flush=S,b}var aB=iB,oB=aB,lB=gn,uB="Expected a function";function sB(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(uB);return lB(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),oB(e,t,{leading:n,maxWait:t,trailing:i})}var cB=sB;const tO=pe(cB);function Fo(e){"@babel/helpers - typeof";return Fo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fo(e)}function Wg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wg(Object(r),!0).forEach(function(n){fB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fB(e,t,r){return t=dB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dB(e){var t=pB(e,"string");return Fo(t)=="symbol"?t:t+""}function pB(e,t){if(Fo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hB(e,t){return gB(e)||mB(e,t)||yB(e,t)||vB()}function vB(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
143
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yB(e,t){if(e){if(typeof e=="string")return Hg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hg(e,t)}}function Hg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function mB(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(f){s=!0,i=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}function gB(e){if(Array.isArray(e))return e}var Vg=R.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,l=e.height,u=l===void 0?"100%":l,s=e.minWidth,f=s===void 0?0:s,c=e.minHeight,d=e.maxHeight,p=e.children,m=e.debounce,v=m===void 0?0:m,x=e.id,y=e.className,h=e.onResize,g=e.style,S=g===void 0?{}:g,b=R.useRef(null),w=R.useRef();w.current=h,R.useImperativeHandle(t,function(){return Object.defineProperty(b.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),b.current},configurable:!0})});var O=R.useState({containerWidth:i.width,containerHeight:i.height}),_=hB(O,2),A=_[0],j=_[1],T=R.useCallback(function(I,N){j(function(C){var D=Math.round(I),z=Math.round(N);return C.containerWidth===D&&C.containerHeight===z?C:{containerWidth:D,containerHeight:z}})},[]);R.useEffect(function(){var I=function(L){var B,V=L[0].contentRect,W=V.width,X=V.height;T(W,X),(B=w.current)===null||B===void 0||B.call(w,W,X)};v>0&&(I=tO(I,v,{trailing:!0,leading:!1}));var N=new ResizeObserver(I),C=b.current.getBoundingClientRect(),D=C.width,z=C.height;return T(D,z),N.observe(b.current),function(){N.disconnect()}},[T,v]);var $=R.useMemo(function(){var I=A.containerWidth,N=A.containerHeight;if(I<0||N<0)return null;Tr(In(o)||In(u),`The width(%s) and height(%s) are both fixed numbers,
|
|
144
|
+
maybe you don't need to use a ResponsiveContainer.`,o,u),Tr(!r||r>0,"The aspect(%s) must be greater than zero.",r);var C=In(o)?I:o,D=In(u)?N:u;r&&r>0&&(C?D=C/r:D&&(C=D*r),d&&D>d&&(D=d)),Tr(C>0||D>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
145
|
+
please check the style of container, or the props width(%s) and height(%s),
|
|
146
|
+
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
147
|
+
height and width.`,C,D,o,u,f,c,r);var z=!Array.isArray(p)&&jr(p.type).endsWith("Chart");return E.Children.map(p,function(k){return E.isValidElement(k)?R.cloneElement(k,tu({width:C,height:D},z?{style:tu({height:"100%",width:"100%",maxHeight:D,maxWidth:C},k.props.style)}:{})):k})},[r,p,u,d,c,f,A,o]);return E.createElement("div",{id:x?"".concat(x):void 0,className:ne("recharts-responsive-container",y),style:tu(tu({},S),{},{width:o,height:u,minWidth:f,minHeight:c,maxHeight:d}),ref:b},$)}),rO=function(t){return null};rO.displayName="Cell";function Uo(e){"@babel/helpers - typeof";return Uo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uo(e)}function Kg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kg(Object(r),!0).forEach(function(n){bB(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bB(e,t,r){return t=xB(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xB(e){var t=wB(e,"string");return Uo(t)=="symbol"?t:t+""}function wB(e,t){if(Uo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Uo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var si={widthCache:{},cacheCount:0},SB=2e3,OB={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Gg="recharts_measurement_span";function _B(e){var t=xp({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var ho=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ni.isSsr)return{width:0,height:0};var n=_B(r),i=JSON.stringify({text:t,copyStyle:n});if(si.widthCache[i])return si.widthCache[i];try{var a=document.getElementById(Gg);a||(a=document.createElement("span"),a.setAttribute("id",Gg),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=xp(xp({},OB),n);Object.assign(a.style,o),a.textContent="".concat(t);var l=a.getBoundingClientRect(),u={width:l.width,height:l.height};return si.widthCache[i]=u,++si.cacheCount>SB&&(si.cacheCount=0,si.widthCache={}),u}catch{return{width:0,height:0}}},PB=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Wo(e){"@babel/helpers - typeof";return Wo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wo(e)}function ss(e,t){return jB(e)||$B(e,t)||EB(e,t)||AB()}function AB(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
148
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EB(e,t){if(e){if(typeof e=="string")return qg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qg(e,t)}}function qg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $B(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,s=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(f){s=!0,i=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}function jB(e){if(Array.isArray(e))return e}function TB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xg(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,CB(n.key),n)}}function kB(e,t,r){return t&&Xg(e.prototype,t),r&&Xg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function CB(e){var t=MB(e,"string");return Wo(t)=="symbol"?t:t+""}function MB(e,t){if(Wo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Yg=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Qg=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,NB=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,IB=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,nO={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},DB=Object.keys(nO),Pi="NaN";function LB(e,t){return e*nO[t]}var ru=function(){function e(t,r){TB(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!NB.test(r)&&(this.num=NaN,this.unit=""),DB.includes(r)&&(this.num=LB(t,r),this.unit="px")}return kB(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=IB.exec(r))!==null&&n!==void 0?n:[],a=ss(i,3),o=a[1],l=a[2];return new e(parseFloat(o),l??"")}}])}();function iO(e){if(e.includes(Pi))return Pi;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=Yg.exec(t))!==null&&r!==void 0?r:[],i=ss(n,4),a=i[1],o=i[2],l=i[3],u=ru.parse(a??""),s=ru.parse(l??""),f=o==="*"?u.multiply(s):u.divide(s);if(f.isNaN())return Pi;t=t.replace(Yg,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,d=(c=Qg.exec(t))!==null&&c!==void 0?c:[],p=ss(d,4),m=p[1],v=p[2],x=p[3],y=ru.parse(m??""),h=ru.parse(x??""),g=v==="+"?y.add(h):y.subtract(h);if(g.isNaN())return Pi;t=t.replace(Qg,g.toString())}return t}var Zg=/\(([^()]*)\)/;function RB(e){for(var t=e;t.includes("(");){var r=Zg.exec(t),n=ss(r,2),i=n[1];t=t.replace(Zg,iO(i))}return t}function BB(e){var t=e.replace(/\s+/g,"");return t=RB(t),t=iO(t),t}function zB(e){try{return BB(e)}catch{return Pi}}function Rf(e){var t=zB(e.slice(5,-1));return t===Pi?"":t}var FB=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],UB=["dx","dy","angle","className","breakAll"];function wp(){return wp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wp.apply(this,arguments)}function Jg(e,t){if(e==null)return{};var r=WB(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function WB(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function e0(e,t){return GB(e)||KB(e,t)||VB(e,t)||HB()}function HB(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
149
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VB(e,t){if(e){if(typeof e=="string")return t0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t0(e,t)}}function t0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function KB(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,s=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(f){s=!0,i=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}function GB(e){if(Array.isArray(e))return e}var aO=/[ \f\n\r\t\v\u2028\u2029]+/,oO=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];te(r)||(n?a=r.toString().split(""):a=r.toString().split(aO));var o=a.map(function(u){return{word:u,width:ho(u,i).width}}),l=n?0:ho(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:l}}catch{return null}},qB=function(t,r,n,i,a){var o=t.maxLines,l=t.children,u=t.style,s=t.breakAll,f=H(o),c=l,d=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return C.reduce(function(D,z){var k=z.word,L=z.width,B=D[D.length-1];if(B&&(i==null||a||B.width+L+n<Number(i)))B.words.push(k),B.width+=L+n;else{var V={words:[k],width:L};D.push(V)}return D},[])},p=d(r),m=function(C){return C.reduce(function(D,z){return D.width>z.width?D:z})};if(!f)return p;for(var v="…",x=function(C){var D=c.slice(0,C),z=oO({breakAll:s,style:u,children:D+v}).wordsWithComputedWidth,k=d(z),L=k.length>o||m(k).width>Number(i);return[L,k]},y=0,h=c.length-1,g=0,S;y<=h&&g<=c.length-1;){var b=Math.floor((y+h)/2),w=b-1,O=x(w),_=e0(O,2),A=_[0],j=_[1],T=x(b),$=e0(T,1),I=$[0];if(!A&&!I&&(y=b+1),A&&I&&(h=b-1),!A&&I){S=j;break}g++}return S||p},r0=function(t){var r=te(t)?[]:t.toString().split(aO);return[{words:r}]},XB=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,l=t.maxLines;if((r||n)&&!ni.isSsr){var u,s,f=oO({breakAll:o,children:i,style:a});if(f){var c=f.wordsWithComputedWidth,d=f.spaceWidth;u=c,s=d}else return r0(i);return qB({breakAll:o,children:i,maxLines:l,style:a},u,s,r,n)}return r0(i)},n0="#808080",cs=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,l=o===void 0?"1em":o,u=t.capHeight,s=u===void 0?"0.71em":u,f=t.scaleToFit,c=f===void 0?!1:f,d=t.textAnchor,p=d===void 0?"start":d,m=t.verticalAnchor,v=m===void 0?"end":m,x=t.fill,y=x===void 0?n0:x,h=Jg(t,FB),g=R.useMemo(function(){return XB({breakAll:h.breakAll,children:h.children,maxLines:h.maxLines,scaleToFit:c,style:h.style,width:h.width})},[h.breakAll,h.children,h.maxLines,c,h.style,h.width]),S=h.dx,b=h.dy,w=h.angle,O=h.className,_=h.breakAll,A=Jg(h,UB);if(!Fe(n)||!Fe(a))return null;var j=n+(H(S)?S:0),T=a+(H(b)?b:0),$;switch(v){case"start":$=Rf("calc(".concat(s,")"));break;case"middle":$=Rf("calc(".concat((g.length-1)/2," * -").concat(l," + (").concat(s," / 2))"));break;default:$=Rf("calc(".concat(g.length-1," * -").concat(l,")"));break}var I=[];if(c){var N=g[0].width,C=h.width;I.push("scale(".concat((H(C)?C/N:1)/N,")"))}return w&&I.push("rotate(".concat(w,", ").concat(j,", ").concat(T,")")),I.length&&(A.transform=I.join(" ")),E.createElement("text",wp({},J(A,!0),{x:j,y:T,className:ne("recharts-text",O),textAnchor:p,fill:y.includes("url")?n0:y}),g.map(function(D,z){var k=D.words.join(_?"":" ");return E.createElement("tspan",{x:j,dy:z===0?$:l,key:"".concat(k,"-").concat(z)},k)}))};function dn(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function YB(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Fv(e){let t,r,n;e.length!==2?(t=dn,r=(l,u)=>dn(e(l),u),n=(l,u)=>e(l)-u):(t=e===dn||e===YB?e:QB,r=e,n=e);function i(l,u,s=0,f=l.length){if(s<f){if(t(u,u)!==0)return f;do{const c=s+f>>>1;r(l[c],u)<0?s=c+1:f=c}while(s<f)}return s}function a(l,u,s=0,f=l.length){if(s<f){if(t(u,u)!==0)return f;do{const c=s+f>>>1;r(l[c],u)<=0?s=c+1:f=c}while(s<f)}return s}function o(l,u,s=0,f=l.length){const c=i(l,u,s,f-1);return c>s&&n(l[c-1],u)>-n(l[c],u)?c-1:c}return{left:i,center:o,right:a}}function QB(){return 0}function lO(e){return e===null?NaN:+e}function*ZB(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const JB=Fv(dn),Pl=JB.right;Fv(lO).center;class i0 extends Map{constructor(t,r=rz){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(a0(this,t))}has(t){return super.has(a0(this,t))}set(t,r){return super.set(ez(this,t),r)}delete(t){return super.delete(tz(this,t))}}function a0({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function ez({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function tz({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function rz(e){return e!==null&&typeof e=="object"?e.valueOf():e}function nz(e=dn){if(e===dn)return uO;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function uO(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const iz=Math.sqrt(50),az=Math.sqrt(10),oz=Math.sqrt(2);function fs(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=iz?10:a>=az?5:a>=oz?2:1;let l,u,s;return i<0?(s=Math.pow(10,-i)/o,l=Math.round(e*s),u=Math.round(t*s),l/s<e&&++l,u/s>t&&--u,s=-s):(s=Math.pow(10,i)*o,l=Math.round(e/s),u=Math.round(t/s),l*s<e&&++l,u*s>t&&--u),u<l&&.5<=r&&r<2?fs(e,t,r*2):[l,u,s]}function Sp(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?fs(t,e,r):fs(e,t,r);if(!(a>=i))return[];const l=a-i+1,u=new Array(l);if(n)if(o<0)for(let s=0;s<l;++s)u[s]=(a-s)/-o;else for(let s=0;s<l;++s)u[s]=(a-s)*o;else if(o<0)for(let s=0;s<l;++s)u[s]=(i+s)/-o;else for(let s=0;s<l;++s)u[s]=(i+s)*o;return u}function Op(e,t,r){return t=+t,e=+e,r=+r,fs(e,t,r)[2]}function _p(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Op(t,e,r):Op(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function o0(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function l0(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function sO(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?uO:nz(i);n>r;){if(n-r>600){const u=n-r+1,s=t-r+1,f=Math.log(u),c=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*c*(u-c)/u)*(s-u/2<0?-1:1),p=Math.max(r,Math.floor(t-s*c/u+d)),m=Math.min(n,Math.floor(t+(u-s)*c/u+d));sO(e,t,p,m,i)}const a=e[t];let o=r,l=n;for(Va(e,r,t),i(e[n],a)>0&&Va(e,r,n);o<l;){for(Va(e,o,l),++o,--l;i(e[o],a)<0;)++o;for(;i(e[l],a)>0;)--l}i(e[r],a)===0?Va(e,r,l):(++l,Va(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function Va(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function lz(e,t,r){if(e=Float64Array.from(ZB(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return l0(e);if(t>=1)return o0(e);var n,i=(n-1)*t,a=Math.floor(i),o=o0(sO(e,a).subarray(0,a+1)),l=l0(e.subarray(a+1));return o+(l-o)*(i-a)}}function uz(e,t,r=lO){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),l=+r(e[a+1],a+1,e);return o+(l-o)*(i-a)}}function sz(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function Gt(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Wr(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Pp=Symbol("implicit");function Uv(){var e=new i0,t=[],r=[],n=Pp;function i(a){let o=e.get(a);if(o===void 0){if(n!==Pp)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new i0;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Uv(t,r).unknown(n)},Gt.apply(i,arguments),i}function Ho(){var e=Uv().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,l=!1,u=0,s=0,f=.5;delete e.unknown;function c(){var d=t().length,p=i<n,m=p?i:n,v=p?n:i;a=(v-m)/Math.max(1,d-u+s*2),l&&(a=Math.floor(a)),m+=(v-m-a*(d-u))*f,o=a*(1-u),l&&(m=Math.round(m),o=Math.round(o));var x=sz(d).map(function(y){return m+a*y});return r(p?x.reverse():x)}return e.domain=function(d){return arguments.length?(t(d),c()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,c()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,l=!0,c()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(l=!!d,c()):l},e.padding=function(d){return arguments.length?(u=Math.min(1,s=+d),c()):u},e.paddingInner=function(d){return arguments.length?(u=Math.min(1,d),c()):u},e.paddingOuter=function(d){return arguments.length?(s=+d,c()):s},e.align=function(d){return arguments.length?(f=Math.max(0,Math.min(1,d)),c()):f},e.copy=function(){return Ho(t(),[n,i]).round(l).paddingInner(u).paddingOuter(s).align(f)},Gt.apply(c(),arguments)}function cO(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return cO(t())},e}function vo(){return cO(Ho.apply(null,arguments).paddingInner(1))}function Wv(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function fO(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Al(){}var Vo=.7,ds=1/Vo,Di="\\s*([+-]?\\d+)\\s*",Ko="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",vr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",cz=/^#([0-9a-f]{3,8})$/,fz=new RegExp(`^rgb\\(${Di},${Di},${Di}\\)$`),dz=new RegExp(`^rgb\\(${vr},${vr},${vr}\\)$`),pz=new RegExp(`^rgba\\(${Di},${Di},${Di},${Ko}\\)$`),hz=new RegExp(`^rgba\\(${vr},${vr},${vr},${Ko}\\)$`),vz=new RegExp(`^hsl\\(${Ko},${vr},${vr}\\)$`),yz=new RegExp(`^hsla\\(${Ko},${vr},${vr},${Ko}\\)$`),u0={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Wv(Al,Go,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:s0,formatHex:s0,formatHex8:mz,formatHsl:gz,formatRgb:c0,toString:c0});function s0(){return this.rgb().formatHex()}function mz(){return this.rgb().formatHex8()}function gz(){return dO(this).formatHsl()}function c0(){return this.rgb().formatRgb()}function Go(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=cz.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?f0(t):r===3?new mt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?nu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?nu(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=fz.exec(e))?new mt(t[1],t[2],t[3],1):(t=dz.exec(e))?new mt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=pz.exec(e))?nu(t[1],t[2],t[3],t[4]):(t=hz.exec(e))?nu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=vz.exec(e))?h0(t[1],t[2]/100,t[3]/100,1):(t=yz.exec(e))?h0(t[1],t[2]/100,t[3]/100,t[4]):u0.hasOwnProperty(e)?f0(u0[e]):e==="transparent"?new mt(NaN,NaN,NaN,0):null}function f0(e){return new mt(e>>16&255,e>>8&255,e&255,1)}function nu(e,t,r,n){return n<=0&&(e=t=r=NaN),new mt(e,t,r,n)}function bz(e){return e instanceof Al||(e=Go(e)),e?(e=e.rgb(),new mt(e.r,e.g,e.b,e.opacity)):new mt}function Ap(e,t,r,n){return arguments.length===1?bz(e):new mt(e,t,r,n??1)}function mt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Wv(mt,Ap,fO(Al,{brighter(e){return e=e==null?ds:Math.pow(ds,e),new mt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Vo:Math.pow(Vo,e),new mt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new mt(Un(this.r),Un(this.g),Un(this.b),ps(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:d0,formatHex:d0,formatHex8:xz,formatRgb:p0,toString:p0}));function d0(){return`#${Dn(this.r)}${Dn(this.g)}${Dn(this.b)}`}function xz(){return`#${Dn(this.r)}${Dn(this.g)}${Dn(this.b)}${Dn((isNaN(this.opacity)?1:this.opacity)*255)}`}function p0(){const e=ps(this.opacity);return`${e===1?"rgb(":"rgba("}${Un(this.r)}, ${Un(this.g)}, ${Un(this.b)}${e===1?")":`, ${e})`}`}function ps(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Un(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Dn(e){return e=Un(e),(e<16?"0":"")+e.toString(16)}function h0(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new rr(e,t,r,n)}function dO(e){if(e instanceof rr)return new rr(e.h,e.s,e.l,e.opacity);if(e instanceof Al||(e=Go(e)),!e)return new rr;if(e instanceof rr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,l=a-i,u=(a+i)/2;return l?(t===a?o=(r-n)/l+(r<n)*6:r===a?o=(n-t)/l+2:o=(t-r)/l+4,l/=u<.5?a+i:2-a-i,o*=60):l=u>0&&u<1?0:o,new rr(o,l,u,e.opacity)}function wz(e,t,r,n){return arguments.length===1?dO(e):new rr(e,t,r,n??1)}function rr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Wv(rr,wz,fO(Al,{brighter(e){return e=e==null?ds:Math.pow(ds,e),new rr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Vo:Math.pow(Vo,e),new rr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new mt(Bf(e>=240?e-240:e+120,i,n),Bf(e,i,n),Bf(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new rr(v0(this.h),iu(this.s),iu(this.l),ps(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ps(this.opacity);return`${e===1?"hsl(":"hsla("}${v0(this.h)}, ${iu(this.s)*100}%, ${iu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function v0(e){return e=(e||0)%360,e<0?e+360:e}function iu(e){return Math.max(0,Math.min(1,e||0))}function Bf(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Hv=e=>()=>e;function Sz(e,t){return function(r){return e+r*t}}function Oz(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function _z(e){return(e=+e)==1?pO:function(t,r){return r-t?Oz(t,r,e):Hv(isNaN(t)?r:t)}}function pO(e,t){var r=t-e;return r?Sz(e,r):Hv(isNaN(e)?t:e)}const y0=function e(t){var r=_z(t);function n(i,a){var o=r((i=Ap(i)).r,(a=Ap(a)).r),l=r(i.g,a.g),u=r(i.b,a.b),s=pO(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=l(f),i.b=u(f),i.opacity=s(f),i+""}}return n.gamma=e,n}(1);function Pz(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function Az(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Ez(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=ka(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(l){for(o=0;o<n;++o)a[o]=i[o](l);return a}}function $z(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function hs(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function jz(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=ka(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Ep=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,zf=new RegExp(Ep.source,"g");function Tz(e){return function(){return e}}function kz(e){return function(t){return e(t)+""}}function Cz(e,t){var r=Ep.lastIndex=zf.lastIndex=0,n,i,a,o=-1,l=[],u=[];for(e=e+"",t=t+"";(n=Ep.exec(e))&&(i=zf.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),l[o]?l[o]+=a:l[++o]=a),(n=n[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,u.push({i:o,x:hs(n,i)})),r=zf.lastIndex;return r<t.length&&(a=t.slice(r),l[o]?l[o]+=a:l[++o]=a),l.length<2?u[0]?kz(u[0].x):Tz(t):(t=u.length,function(s){for(var f=0,c;f<t;++f)l[(c=u[f]).i]=c.x(s);return l.join("")})}function ka(e,t){var r=typeof t,n;return t==null||r==="boolean"?Hv(t):(r==="number"?hs:r==="string"?(n=Go(t))?(t=n,y0):Cz:t instanceof Go?y0:t instanceof Date?$z:Az(t)?Pz:Array.isArray(t)?Ez:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?jz:hs)(e,t)}function Vv(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function Mz(e,t){t===void 0&&(t=e,e=ka);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var l=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[l](o-l)}}function Nz(e){return function(){return e}}function vs(e){return+e}var m0=[0,1];function ut(e){return e}function $p(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:Nz(isNaN(t)?NaN:.5)}function Iz(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function Dz(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=$p(i,n),a=r(o,a)):(n=$p(n,i),a=r(a,o)),function(l){return a(n(l))}}function Lz(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=$p(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(l){var u=Pl(e,l,1,n)-1;return a[u](i[u](l))}}function El(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ic(){var e=m0,t=m0,r=ka,n,i,a,o=ut,l,u,s;function f(){var d=Math.min(e.length,t.length);return o!==ut&&(o=Iz(e[0],e[d-1])),l=d>2?Lz:Dz,u=s=null,c}function c(d){return d==null||isNaN(d=+d)?a:(u||(u=l(e.map(n),t,r)))(n(o(d)))}return c.invert=function(d){return o(i((s||(s=l(t,e.map(n),hs)))(d)))},c.domain=function(d){return arguments.length?(e=Array.from(d,vs),f()):e.slice()},c.range=function(d){return arguments.length?(t=Array.from(d),f()):t.slice()},c.rangeRound=function(d){return t=Array.from(d),r=Vv,f()},c.clamp=function(d){return arguments.length?(o=d?!0:ut,f()):o!==ut},c.interpolate=function(d){return arguments.length?(r=d,f()):r},c.unknown=function(d){return arguments.length?(a=d,c):a},function(d,p){return n=d,i=p,f()}}function Kv(){return Ic()(ut,ut)}function Rz(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ys(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Qi(e){return e=ys(Math.abs(e)),e?e[1]:NaN}function Bz(e,t){return function(r,n){for(var i=r.length,a=[],o=0,l=e[0],u=0;i>0&&l>0&&(u+l+1>n&&(l=Math.max(1,n-u)),a.push(r.substring(i-=l,i+l)),!((u+=l+1)>n));)l=e[o=(o+1)%e.length];return a.reverse().join(t)}}function zz(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var Fz=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function qo(e){if(!(t=Fz.exec(e)))throw new Error("invalid format: "+e);var t;return new Gv({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}qo.prototype=Gv.prototype;function Gv(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Gv.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Uz(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var ms;function Wz(e,t){var r=ys(e,t);if(!r)return ms=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(ms=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+ys(e,Math.max(0,t+a-1))[0]}function g0(e,t){var r=ys(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const b0={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Rz,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>g0(e*100,t),r:g0,s:Wz,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function x0(e){return e}var w0=Array.prototype.map,S0=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Hz(e){var t=e.grouping===void 0||e.thousands===void 0?x0:Bz(w0.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?x0:zz(w0.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function s(c,d){c=qo(c);var p=c.fill,m=c.align,v=c.sign,x=c.symbol,y=c.zero,h=c.width,g=c.comma,S=c.precision,b=c.trim,w=c.type;w==="n"?(g=!0,w="g"):b0[w]||(S===void 0&&(S=12),b=!0,w="g"),(y||p==="0"&&m==="=")&&(y=!0,p="0",m="=");var O=(d&&d.prefix!==void 0?d.prefix:"")+(x==="$"?r:x==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():""),_=(x==="$"?n:/[%p]/.test(w)?o:"")+(d&&d.suffix!==void 0?d.suffix:""),A=b0[w],j=/[defgprs%]/.test(w);S=S===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function T($){var I=O,N=_,C,D,z;if(w==="c")N=A($)+N,$="";else{$=+$;var k=$<0||1/$<0;if($=isNaN($)?u:A(Math.abs($),S),b&&($=Uz($)),k&&+$==0&&v!=="+"&&(k=!1),I=(k?v==="("?v:l:v==="-"||v==="("?"":v)+I,N=(w==="s"&&!isNaN($)&&ms!==void 0?S0[8+ms/3]:"")+N+(k&&v==="("?")":""),j){for(C=-1,D=$.length;++C<D;)if(z=$.charCodeAt(C),48>z||z>57){N=(z===46?i+$.slice(C+1):$.slice(C))+N,$=$.slice(0,C);break}}}g&&!y&&($=t($,1/0));var L=I.length+$.length+N.length,B=L<h?new Array(h-L+1).join(p):"";switch(g&&y&&($=t(B+$,B.length?h-N.length:1/0),B=""),m){case"<":$=I+$+N+B;break;case"=":$=I+B+$+N;break;case"^":$=B.slice(0,L=B.length>>1)+I+$+N+B.slice(L);break;default:$=B+I+$+N;break}return a($)}return T.toString=function(){return c+""},T}function f(c,d){var p=Math.max(-8,Math.min(8,Math.floor(Qi(d)/3)))*3,m=Math.pow(10,-p),v=s((c=qo(c),c.type="f",c),{suffix:S0[8+p/3]});return function(x){return v(m*x)}}return{format:s,formatPrefix:f}}var au,qv,hO;Vz({thousands:",",grouping:[3],currency:["$",""]});function Vz(e){return au=Hz(e),qv=au.format,hO=au.formatPrefix,au}function Kz(e){return Math.max(0,-Qi(Math.abs(e)))}function Gz(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Qi(t)/3)))*3-Qi(Math.abs(e)))}function qz(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Qi(t)-Qi(e))+1}function vO(e,t,r,n){var i=_p(e,t,r),a;switch(n=qo(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=Gz(i,o))&&(n.precision=a),hO(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=qz(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=Kz(i))&&(n.precision=a-(n.type==="%")*2);break}}return qv(n)}function xn(e){var t=e.domain;return e.ticks=function(r){var n=t();return Sp(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return vO(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],l=n[a],u,s,f=10;for(l<o&&(s=o,o=l,l=s,s=i,i=a,a=s);f-- >0;){if(s=Op(o,l,r),s===u)return n[i]=o,n[a]=l,t(n);if(s>0)o=Math.floor(o/s)*s,l=Math.ceil(l/s)*s;else if(s<0)o=Math.ceil(o*s)/s,l=Math.floor(l*s)/s;else break;u=s}return e},e}function gs(){var e=Kv();return e.copy=function(){return El(e,gs())},Gt.apply(e,arguments),xn(e)}function yO(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,vs),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return yO(e).unknown(t)},e=arguments.length?Array.from(e,vs):[0,1],xn(r)}function mO(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function O0(e){return Math.log(e)}function _0(e){return Math.exp(e)}function Xz(e){return-Math.log(-e)}function Yz(e){return-Math.exp(-e)}function Qz(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Zz(e){return e===10?Qz:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Jz(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function P0(e){return(t,r)=>-e(-t,r)}function Xv(e){const t=e(O0,_0),r=t.domain;let n=10,i,a;function o(){return i=Jz(n),a=Zz(n),r()[0]<0?(i=P0(i),a=P0(a),e(Xz,Yz)):e(O0,_0),t}return t.base=function(l){return arguments.length?(n=+l,o()):n},t.domain=function(l){return arguments.length?(r(l),o()):r()},t.ticks=l=>{const u=r();let s=u[0],f=u[u.length-1];const c=f<s;c&&([s,f]=[f,s]);let d=i(s),p=i(f),m,v;const x=l==null?10:+l;let y=[];if(!(n%1)&&p-d<x){if(d=Math.floor(d),p=Math.ceil(p),s>0){for(;d<=p;++d)for(m=1;m<n;++m)if(v=d<0?m/a(-d):m*a(d),!(v<s)){if(v>f)break;y.push(v)}}else for(;d<=p;++d)for(m=n-1;m>=1;--m)if(v=d>0?m/a(-d):m*a(d),!(v<s)){if(v>f)break;y.push(v)}y.length*2<x&&(y=Sp(s,f,x))}else y=Sp(d,p,Math.min(p-d,x)).map(a);return c?y.reverse():y},t.tickFormat=(l,u)=>{if(l==null&&(l=10),u==null&&(u=n===10?"s":","),typeof u!="function"&&(!(n%1)&&(u=qo(u)).precision==null&&(u.trim=!0),u=qv(u)),l===1/0)return u;const s=Math.max(1,n*l/t.ticks().length);return f=>{let c=f/a(Math.round(i(f)));return c*n<n-.5&&(c*=n),c<=s?u(f):""}},t.nice=()=>r(mO(r(),{floor:l=>a(Math.floor(i(l))),ceil:l=>a(Math.ceil(i(l)))})),t}function gO(){const e=Xv(Ic()).domain([1,10]);return e.copy=()=>El(e,gO()).base(e.base()),Gt.apply(e,arguments),e}function A0(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function E0(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Yv(e){var t=1,r=e(A0(t),E0(t));return r.constant=function(n){return arguments.length?e(A0(t=+n),E0(t)):t},xn(r)}function bO(){var e=Yv(Ic());return e.copy=function(){return El(e,bO()).constant(e.constant())},Gt.apply(e,arguments)}function $0(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function e8(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function t8(e){return e<0?-e*e:e*e}function Qv(e){var t=e(ut,ut),r=1;function n(){return r===1?e(ut,ut):r===.5?e(e8,t8):e($0(r),$0(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},xn(t)}function Zv(){var e=Qv(Ic());return e.copy=function(){return El(e,Zv()).exponent(e.exponent())},Gt.apply(e,arguments),e}function r8(){return Zv.apply(null,arguments).exponent(.5)}function j0(e){return Math.sign(e)*e*e}function n8(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function xO(){var e=Kv(),t=[0,1],r=!1,n;function i(a){var o=n8(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(j0(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,vs)).map(j0)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return xO(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Gt.apply(i,arguments),xn(i)}function wO(){var e=[],t=[],r=[],n;function i(){var o=0,l=Math.max(1,t.length);for(r=new Array(l-1);++o<l;)r[o-1]=uz(e,o/l);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Pl(r,o)]}return a.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?r[l-1]:e[0],l<r.length?r[l]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(dn),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return wO().domain(e).range(t).unknown(n)},Gt.apply(a,arguments)}function SO(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(u){return u!=null&&u<=u?i[Pl(n,u,0,r)]:a}function l(){var u=-1;for(n=new Array(r);++u<r;)n[u]=((u+1)*t-(u-r)*e)/(r+1);return o}return o.domain=function(u){return arguments.length?([e,t]=u,e=+e,t=+t,l()):[e,t]},o.range=function(u){return arguments.length?(r=(i=Array.from(u)).length-1,l()):i.slice()},o.invertExtent=function(u){var s=i.indexOf(u);return s<0?[NaN,NaN]:s<1?[e,n[0]]:s>=r?[n[r-1],t]:[n[s-1],n[s]]},o.unknown=function(u){return arguments.length&&(a=u),o},o.thresholds=function(){return n.slice()},o.copy=function(){return SO().domain([e,t]).range(i).unknown(a)},Gt.apply(xn(o),arguments)}function OO(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Pl(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return OO().domain(e).range(t).unknown(r)},Gt.apply(i,arguments)}const Ff=new Date,Uf=new Date;function Ue(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),l=i.ceil(a);return a-o<l-a?o:l},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,l)=>{const u=[];if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a<o)||!(l>0))return u;let s;do u.push(s=new Date(+a)),t(a,l),e(a);while(s<a&&a<o);return u},i.filter=a=>Ue(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!a(o););else for(;--l>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Ff.setTime(+a),Uf.setTime(+o),e(Ff),e(Uf),Math.floor(r(Ff,Uf))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const bs=Ue(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);bs.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ue(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):bs);bs.range;const Pr=1e3,Bt=Pr*60,Ar=Bt*60,Lr=Ar*24,Jv=Lr*7,T0=Lr*30,Wf=Lr*365,Ln=Ue(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Pr)},(e,t)=>(t-e)/Pr,e=>e.getUTCSeconds());Ln.range;const ey=Ue(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Pr)},(e,t)=>{e.setTime(+e+t*Bt)},(e,t)=>(t-e)/Bt,e=>e.getMinutes());ey.range;const ty=Ue(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Bt)},(e,t)=>(t-e)/Bt,e=>e.getUTCMinutes());ty.range;const ry=Ue(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Pr-e.getMinutes()*Bt)},(e,t)=>{e.setTime(+e+t*Ar)},(e,t)=>(t-e)/Ar,e=>e.getHours());ry.range;const ny=Ue(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ar)},(e,t)=>(t-e)/Ar,e=>e.getUTCHours());ny.range;const $l=Ue(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Bt)/Lr,e=>e.getDate()-1);$l.range;const Dc=Ue(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Lr,e=>e.getUTCDate()-1);Dc.range;const _O=Ue(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Lr,e=>Math.floor(e/Lr));_O.range;function ii(e){return Ue(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Bt)/Jv)}const Lc=ii(0),xs=ii(1),i8=ii(2),a8=ii(3),Zi=ii(4),o8=ii(5),l8=ii(6);Lc.range;xs.range;i8.range;a8.range;Zi.range;o8.range;l8.range;function ai(e){return Ue(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Jv)}const Rc=ai(0),ws=ai(1),u8=ai(2),s8=ai(3),Ji=ai(4),c8=ai(5),f8=ai(6);Rc.range;ws.range;u8.range;s8.range;Ji.range;c8.range;f8.range;const iy=Ue(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());iy.range;const ay=Ue(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());ay.range;const Rr=Ue(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Rr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ue(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Rr.range;const Br=Ue(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Br.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ue(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Br.range;function PO(e,t,r,n,i,a){const o=[[Ln,1,Pr],[Ln,5,5*Pr],[Ln,15,15*Pr],[Ln,30,30*Pr],[a,1,Bt],[a,5,5*Bt],[a,15,15*Bt],[a,30,30*Bt],[i,1,Ar],[i,3,3*Ar],[i,6,6*Ar],[i,12,12*Ar],[n,1,Lr],[n,2,2*Lr],[r,1,Jv],[t,1,T0],[t,3,3*T0],[e,1,Wf]];function l(s,f,c){const d=f<s;d&&([s,f]=[f,s]);const p=c&&typeof c.range=="function"?c:u(s,f,c),m=p?p.range(s,+f+1):[];return d?m.reverse():m}function u(s,f,c){const d=Math.abs(f-s)/c,p=Fv(([,,x])=>x).right(o,d);if(p===o.length)return e.every(_p(s/Wf,f/Wf,c));if(p===0)return bs.every(Math.max(_p(s,f,c),1));const[m,v]=o[d/o[p-1][2]<o[p][2]/d?p-1:p];return m.every(v)}return[l,u]}const[d8,p8]=PO(Br,ay,Rc,_O,ny,ty),[h8,v8]=PO(Rr,iy,Lc,$l,ry,ey);function Hf(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Vf(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ka(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function y8(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,l=e.months,u=e.shortMonths,s=Ga(i),f=qa(i),c=Ga(a),d=qa(a),p=Ga(o),m=qa(o),v=Ga(l),x=qa(l),y=Ga(u),h=qa(u),g={a:z,A:k,b:L,B,c:null,d:D0,e:D0,f:B8,g:X8,G:Q8,H:D8,I:L8,j:R8,L:AO,m:z8,M:F8,p:V,q:W,Q:B0,s:z0,S:U8,u:W8,U:H8,V:V8,w:K8,W:G8,x:null,X:null,y:q8,Y:Y8,Z:Z8,"%":R0},S={a:X,A:ie,b:we,B:Te,c:null,d:L0,e:L0,f:r6,g:d6,G:h6,H:J8,I:e6,j:t6,L:$O,m:n6,M:i6,p:Ct,q:pt,Q:B0,s:z0,S:a6,u:o6,U:l6,V:u6,w:s6,W:c6,x:null,X:null,y:f6,Y:p6,Z:v6,"%":R0},b={a:j,A:T,b:$,B:I,c:N,d:N0,e:N0,f:C8,g:M0,G:C0,H:I0,I:I0,j:$8,L:k8,m:E8,M:j8,p:A,q:A8,Q:N8,s:I8,S:T8,u:w8,U:S8,V:O8,w:x8,W:_8,x:C,X:D,y:M0,Y:C0,Z:P8,"%":M8};g.x=w(r,g),g.X=w(n,g),g.c=w(t,g),S.x=w(r,S),S.X=w(n,S),S.c=w(t,S);function w(K,Z){return function(ee){var F=[],Ee=-1,ae=0,Ie=K.length,De,ht,Hr;for(ee instanceof Date||(ee=new Date(+ee));++Ee<Ie;)K.charCodeAt(Ee)===37&&(F.push(K.slice(ae,Ee)),(ht=k0[De=K.charAt(++Ee)])!=null?De=K.charAt(++Ee):ht=De==="e"?" ":"0",(Hr=Z[De])&&(De=Hr(ee,ht)),F.push(De),ae=Ee+1);return F.push(K.slice(ae,Ee)),F.join("")}}function O(K,Z){return function(ee){var F=Ka(1900,void 0,1),Ee=_(F,K,ee+="",0),ae,Ie;if(Ee!=ee.length)return null;if("Q"in F)return new Date(F.Q);if("s"in F)return new Date(F.s*1e3+("L"in F?F.L:0));if(Z&&!("Z"in F)&&(F.Z=0),"p"in F&&(F.H=F.H%12+F.p*12),F.m===void 0&&(F.m="q"in F?F.q:0),"V"in F){if(F.V<1||F.V>53)return null;"w"in F||(F.w=1),"Z"in F?(ae=Vf(Ka(F.y,0,1)),Ie=ae.getUTCDay(),ae=Ie>4||Ie===0?ws.ceil(ae):ws(ae),ae=Dc.offset(ae,(F.V-1)*7),F.y=ae.getUTCFullYear(),F.m=ae.getUTCMonth(),F.d=ae.getUTCDate()+(F.w+6)%7):(ae=Hf(Ka(F.y,0,1)),Ie=ae.getDay(),ae=Ie>4||Ie===0?xs.ceil(ae):xs(ae),ae=$l.offset(ae,(F.V-1)*7),F.y=ae.getFullYear(),F.m=ae.getMonth(),F.d=ae.getDate()+(F.w+6)%7)}else("W"in F||"U"in F)&&("w"in F||(F.w="u"in F?F.u%7:"W"in F?1:0),Ie="Z"in F?Vf(Ka(F.y,0,1)).getUTCDay():Hf(Ka(F.y,0,1)).getDay(),F.m=0,F.d="W"in F?(F.w+6)%7+F.W*7-(Ie+5)%7:F.w+F.U*7-(Ie+6)%7);return"Z"in F?(F.H+=F.Z/100|0,F.M+=F.Z%100,Vf(F)):Hf(F)}}function _(K,Z,ee,F){for(var Ee=0,ae=Z.length,Ie=ee.length,De,ht;Ee<ae;){if(F>=Ie)return-1;if(De=Z.charCodeAt(Ee++),De===37){if(De=Z.charAt(Ee++),ht=b[De in k0?Z.charAt(Ee++):De],!ht||(F=ht(K,ee,F))<0)return-1}else if(De!=ee.charCodeAt(F++))return-1}return F}function A(K,Z,ee){var F=s.exec(Z.slice(ee));return F?(K.p=f.get(F[0].toLowerCase()),ee+F[0].length):-1}function j(K,Z,ee){var F=p.exec(Z.slice(ee));return F?(K.w=m.get(F[0].toLowerCase()),ee+F[0].length):-1}function T(K,Z,ee){var F=c.exec(Z.slice(ee));return F?(K.w=d.get(F[0].toLowerCase()),ee+F[0].length):-1}function $(K,Z,ee){var F=y.exec(Z.slice(ee));return F?(K.m=h.get(F[0].toLowerCase()),ee+F[0].length):-1}function I(K,Z,ee){var F=v.exec(Z.slice(ee));return F?(K.m=x.get(F[0].toLowerCase()),ee+F[0].length):-1}function N(K,Z,ee){return _(K,t,Z,ee)}function C(K,Z,ee){return _(K,r,Z,ee)}function D(K,Z,ee){return _(K,n,Z,ee)}function z(K){return o[K.getDay()]}function k(K){return a[K.getDay()]}function L(K){return u[K.getMonth()]}function B(K){return l[K.getMonth()]}function V(K){return i[+(K.getHours()>=12)]}function W(K){return 1+~~(K.getMonth()/3)}function X(K){return o[K.getUTCDay()]}function ie(K){return a[K.getUTCDay()]}function we(K){return u[K.getUTCMonth()]}function Te(K){return l[K.getUTCMonth()]}function Ct(K){return i[+(K.getUTCHours()>=12)]}function pt(K){return 1+~~(K.getUTCMonth()/3)}return{format:function(K){var Z=w(K+="",g);return Z.toString=function(){return K},Z},parse:function(K){var Z=O(K+="",!1);return Z.toString=function(){return K},Z},utcFormat:function(K){var Z=w(K+="",S);return Z.toString=function(){return K},Z},utcParse:function(K){var Z=O(K+="",!0);return Z.toString=function(){return K},Z}}}var k0={"-":"",_:" ",0:"0"},Ke=/^\s*\d+/,m8=/^%/,g8=/[\\^$*+?|[\]().{}]/g;function le(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function b8(e){return e.replace(g8,"\\$&")}function Ga(e){return new RegExp("^(?:"+e.map(b8).join("|")+")","i")}function qa(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function x8(e,t,r){var n=Ke.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function w8(e,t,r){var n=Ke.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function S8(e,t,r){var n=Ke.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function O8(e,t,r){var n=Ke.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function _8(e,t,r){var n=Ke.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function C0(e,t,r){var n=Ke.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function M0(e,t,r){var n=Ke.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function P8(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function A8(e,t,r){var n=Ke.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function E8(e,t,r){var n=Ke.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function N0(e,t,r){var n=Ke.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function $8(e,t,r){var n=Ke.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function I0(e,t,r){var n=Ke.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function j8(e,t,r){var n=Ke.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function T8(e,t,r){var n=Ke.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function k8(e,t,r){var n=Ke.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function C8(e,t,r){var n=Ke.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function M8(e,t,r){var n=m8.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function N8(e,t,r){var n=Ke.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function I8(e,t,r){var n=Ke.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function D0(e,t){return le(e.getDate(),t,2)}function D8(e,t){return le(e.getHours(),t,2)}function L8(e,t){return le(e.getHours()%12||12,t,2)}function R8(e,t){return le(1+$l.count(Rr(e),e),t,3)}function AO(e,t){return le(e.getMilliseconds(),t,3)}function B8(e,t){return AO(e,t)+"000"}function z8(e,t){return le(e.getMonth()+1,t,2)}function F8(e,t){return le(e.getMinutes(),t,2)}function U8(e,t){return le(e.getSeconds(),t,2)}function W8(e){var t=e.getDay();return t===0?7:t}function H8(e,t){return le(Lc.count(Rr(e)-1,e),t,2)}function EO(e){var t=e.getDay();return t>=4||t===0?Zi(e):Zi.ceil(e)}function V8(e,t){return e=EO(e),le(Zi.count(Rr(e),e)+(Rr(e).getDay()===4),t,2)}function K8(e){return e.getDay()}function G8(e,t){return le(xs.count(Rr(e)-1,e),t,2)}function q8(e,t){return le(e.getFullYear()%100,t,2)}function X8(e,t){return e=EO(e),le(e.getFullYear()%100,t,2)}function Y8(e,t){return le(e.getFullYear()%1e4,t,4)}function Q8(e,t){var r=e.getDay();return e=r>=4||r===0?Zi(e):Zi.ceil(e),le(e.getFullYear()%1e4,t,4)}function Z8(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+le(t/60|0,"0",2)+le(t%60,"0",2)}function L0(e,t){return le(e.getUTCDate(),t,2)}function J8(e,t){return le(e.getUTCHours(),t,2)}function e6(e,t){return le(e.getUTCHours()%12||12,t,2)}function t6(e,t){return le(1+Dc.count(Br(e),e),t,3)}function $O(e,t){return le(e.getUTCMilliseconds(),t,3)}function r6(e,t){return $O(e,t)+"000"}function n6(e,t){return le(e.getUTCMonth()+1,t,2)}function i6(e,t){return le(e.getUTCMinutes(),t,2)}function a6(e,t){return le(e.getUTCSeconds(),t,2)}function o6(e){var t=e.getUTCDay();return t===0?7:t}function l6(e,t){return le(Rc.count(Br(e)-1,e),t,2)}function jO(e){var t=e.getUTCDay();return t>=4||t===0?Ji(e):Ji.ceil(e)}function u6(e,t){return e=jO(e),le(Ji.count(Br(e),e)+(Br(e).getUTCDay()===4),t,2)}function s6(e){return e.getUTCDay()}function c6(e,t){return le(ws.count(Br(e)-1,e),t,2)}function f6(e,t){return le(e.getUTCFullYear()%100,t,2)}function d6(e,t){return e=jO(e),le(e.getUTCFullYear()%100,t,2)}function p6(e,t){return le(e.getUTCFullYear()%1e4,t,4)}function h6(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Ji(e):Ji.ceil(e),le(e.getUTCFullYear()%1e4,t,4)}function v6(){return"+0000"}function R0(){return"%"}function B0(e){return+e}function z0(e){return Math.floor(+e/1e3)}var ci,TO,kO;y6({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"]});function y6(e){return ci=y8(e),TO=ci.format,ci.parse,kO=ci.utcFormat,ci.utcParse,ci}function m6(e){return new Date(e)}function g6(e){return e instanceof Date?+e:+new Date(+e)}function oy(e,t,r,n,i,a,o,l,u,s){var f=Kv(),c=f.invert,d=f.domain,p=s(".%L"),m=s(":%S"),v=s("%I:%M"),x=s("%I %p"),y=s("%a %d"),h=s("%b %d"),g=s("%B"),S=s("%Y");function b(w){return(u(w)<w?p:l(w)<w?m:o(w)<w?v:a(w)<w?x:n(w)<w?i(w)<w?y:h:r(w)<w?g:S)(w)}return f.invert=function(w){return new Date(c(w))},f.domain=function(w){return arguments.length?d(Array.from(w,g6)):d().map(m6)},f.ticks=function(w){var O=d();return e(O[0],O[O.length-1],w??10)},f.tickFormat=function(w,O){return O==null?b:s(O)},f.nice=function(w){var O=d();return(!w||typeof w.range!="function")&&(w=t(O[0],O[O.length-1],w??10)),w?d(mO(O,w)):f},f.copy=function(){return El(f,oy(e,t,r,n,i,a,o,l,u,s))},f}function b6(){return Gt.apply(oy(h8,v8,Rr,iy,Lc,$l,ry,ey,Ln,TO).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function x6(){return Gt.apply(oy(d8,p8,Br,ay,Rc,Dc,ny,ty,Ln,kO).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Bc(){var e=0,t=1,r,n,i,a,o=ut,l=!1,u;function s(c){return c==null||isNaN(c=+c)?u:o(i===0?.5:(c=(a(c)-r)*i,l?Math.max(0,Math.min(1,c)):c))}s.domain=function(c){return arguments.length?([e,t]=c,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),s):[e,t]},s.clamp=function(c){return arguments.length?(l=!!c,s):l},s.interpolator=function(c){return arguments.length?(o=c,s):o};function f(c){return function(d){var p,m;return arguments.length?([p,m]=d,o=c(p,m),s):[o(0),o(1)]}}return s.range=f(ka),s.rangeRound=f(Vv),s.unknown=function(c){return arguments.length?(u=c,s):u},function(c){return a=c,r=c(e),n=c(t),i=r===n?0:1/(n-r),s}}function wn(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function CO(){var e=xn(Bc()(ut));return e.copy=function(){return wn(e,CO())},Wr.apply(e,arguments)}function MO(){var e=Xv(Bc()).domain([1,10]);return e.copy=function(){return wn(e,MO()).base(e.base())},Wr.apply(e,arguments)}function NO(){var e=Yv(Bc());return e.copy=function(){return wn(e,NO()).constant(e.constant())},Wr.apply(e,arguments)}function ly(){var e=Qv(Bc());return e.copy=function(){return wn(e,ly()).exponent(e.exponent())},Wr.apply(e,arguments)}function w6(){return ly.apply(null,arguments).exponent(.5)}function IO(){var e=[],t=ut;function r(n){if(n!=null&&!isNaN(n=+n))return t((Pl(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(dn),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>lz(e,a/n))},r.copy=function(){return IO(t).domain(e)},Wr.apply(r,arguments)}function zc(){var e=0,t=.5,r=1,n=1,i,a,o,l,u,s=ut,f,c=!1,d;function p(v){return isNaN(v=+v)?d:(v=.5+((v=+f(v))-a)*(n*v<n*a?l:u),s(c?Math.max(0,Math.min(1,v)):v))}p.domain=function(v){return arguments.length?([e,t,r]=v,i=f(e=+e),a=f(t=+t),o=f(r=+r),l=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),n=a<i?-1:1,p):[e,t,r]},p.clamp=function(v){return arguments.length?(c=!!v,p):c},p.interpolator=function(v){return arguments.length?(s=v,p):s};function m(v){return function(x){var y,h,g;return arguments.length?([y,h,g]=x,s=Mz(v,[y,h,g]),p):[s(0),s(.5),s(1)]}}return p.range=m(ka),p.rangeRound=m(Vv),p.unknown=function(v){return arguments.length?(d=v,p):d},function(v){return f=v,i=v(e),a=v(t),o=v(r),l=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function DO(){var e=xn(zc()(ut));return e.copy=function(){return wn(e,DO())},Wr.apply(e,arguments)}function LO(){var e=Xv(zc()).domain([.1,1,10]);return e.copy=function(){return wn(e,LO()).base(e.base())},Wr.apply(e,arguments)}function RO(){var e=Yv(zc());return e.copy=function(){return wn(e,RO()).constant(e.constant())},Wr.apply(e,arguments)}function uy(){var e=Qv(zc());return e.copy=function(){return wn(e,uy()).exponent(e.exponent())},Wr.apply(e,arguments)}function S6(){return uy.apply(null,arguments).exponent(.5)}const F0=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Ho,scaleDiverging:DO,scaleDivergingLog:LO,scaleDivergingPow:uy,scaleDivergingSqrt:S6,scaleDivergingSymlog:RO,scaleIdentity:yO,scaleImplicit:Pp,scaleLinear:gs,scaleLog:gO,scaleOrdinal:Uv,scalePoint:vo,scalePow:Zv,scaleQuantile:wO,scaleQuantize:SO,scaleRadial:xO,scaleSequential:CO,scaleSequentialLog:MO,scaleSequentialPow:ly,scaleSequentialQuantile:IO,scaleSequentialSqrt:w6,scaleSequentialSymlog:NO,scaleSqrt:r8,scaleSymlog:bO,scaleThreshold:OO,scaleTime:b6,scaleUtc:x6,tickFormat:vO},Symbol.toStringTag,{value:"Module"}));var O6=wa;function _6(e,t,r){for(var n=-1,i=e.length;++n<i;){var a=e[n],o=t(a);if(o!=null&&(l===void 0?o===o&&!O6(o):r(o,l)))var l=o,u=a}return u}var BO=_6;function P6(e,t){return e>t}var A6=P6,E6=BO,$6=A6,j6=Ta;function T6(e){return e&&e.length?E6(e,j6,$6):void 0}var k6=T6;const tn=pe(k6);function C6(e,t){return e<t}var M6=C6,N6=BO,I6=M6,D6=Ta;function L6(e){return e&&e.length?N6(e,D6,I6):void 0}var R6=L6;const Fc=pe(R6);var B6=Sv,z6=bn,F6=qS,U6=wt;function W6(e,t){var r=U6(e)?B6:F6;return r(e,z6(t))}var H6=W6,V6=KS,K6=H6;function G6(e,t){return V6(K6(e,t),1)}var q6=G6;const X6=pe(q6);var Y6=Lv;function Q6(e,t){return Y6(e,t)}var Z6=Q6;const ea=pe(Z6);var Ca=1e9,J6={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},cy,Oe=!0,Vt="[DecimalError] ",Wn=Vt+"Invalid argument: ",sy=Vt+"Exponent out of range: ",Ma=Math.floor,kn=Math.pow,e5=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,At,We=1e7,be=7,zO=9007199254740991,Ss=Ma(zO/be),q={};q.absoluteValue=q.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};q.comparedTo=q.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};q.decimalPlaces=q.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*be;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};q.dividedBy=q.div=function(e){return kr(this,new this.constructor(e))};q.dividedToIntegerBy=q.idiv=function(e){var t=this,r=t.constructor;return de(kr(t,new r(e),0,1),r.precision)};q.equals=q.eq=function(e){return!this.cmp(e)};q.exponent=function(){return Ne(this)};q.greaterThan=q.gt=function(e){return this.cmp(e)>0};q.greaterThanOrEqualTo=q.gte=function(e){return this.cmp(e)>=0};q.isInteger=q.isint=function(){return this.e>this.d.length-2};q.isNegative=q.isneg=function(){return this.s<0};q.isPositive=q.ispos=function(){return this.s>0};q.isZero=function(){return this.s===0};q.lessThan=q.lt=function(e){return this.cmp(e)<0};q.lessThanOrEqualTo=q.lte=function(e){return this.cmp(e)<1};q.logarithm=q.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(At))throw Error(Vt+"NaN");if(r.s<1)throw Error(Vt+(r.s?"NaN":"-Infinity"));return r.eq(At)?new n(0):(Oe=!1,t=kr(Xo(r,a),Xo(e,a),a),Oe=!0,de(t,i))};q.minus=q.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?WO(t,e):FO(t,(e.s=-e.s,e))};q.modulo=q.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Vt+"NaN");return r.s?(Oe=!1,t=kr(r,e,0,1).times(e),Oe=!0,r.minus(t)):de(new n(r),i)};q.naturalExponential=q.exp=function(){return UO(this)};q.naturalLogarithm=q.ln=function(){return Xo(this)};q.negated=q.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};q.plus=q.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?FO(t,e):WO(t,(e.s=-e.s,e))};q.precision=q.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Wn+e);if(t=Ne(i)+1,n=i.d.length-1,r=n*be+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};q.squareRoot=q.sqrt=function(){var e,t,r,n,i,a,o,l=this,u=l.constructor;if(l.s<1){if(!l.s)return new u(0);throw Error(Vt+"NaN")}for(e=Ne(l),Oe=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=fr(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Ma((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new u(t)):n=new u(i.toString()),r=u.precision,i=o=r+3;;)if(a=n,n=a.plus(kr(l,a,o+2)).times(.5),fr(a.d).slice(0,o)===(t=fr(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(de(a,r+1,0),a.times(a).eq(l)){n=a;break}}else if(t!="9999")break;o+=4}return Oe=!0,de(n,r)};q.times=q.mul=function(e){var t,r,n,i,a,o,l,u,s,f=this,c=f.constructor,d=f.d,p=(e=new c(e)).d;if(!f.s||!e.s)return new c(0);for(e.s*=f.s,r=f.e+e.e,u=d.length,s=p.length,u<s&&(a=d,d=p,p=a,o=u,u=s,s=o),a=[],o=u+s,n=o;n--;)a.push(0);for(n=s;--n>=0;){for(t=0,i=u+n;i>n;)l=a[i]+p[n]*d[i-n-1]+t,a[i--]=l%We|0,t=l/We|0;a[i]=(a[i]+t)%We|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Oe?de(e,c.precision):e};q.toDecimalPlaces=q.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(mr(e,0,Ca),t===void 0?t=n.rounding:mr(t,0,8),de(r,e+Ne(r)+1,t))};q.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Qn(n,!0):(mr(e,0,Ca),t===void 0?t=i.rounding:mr(t,0,8),n=de(new i(n),e+1,t),r=Qn(n,!0,e+1)),r};q.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Qn(i):(mr(e,0,Ca),t===void 0?t=a.rounding:mr(t,0,8),n=de(new a(i),e+Ne(i)+1,t),r=Qn(n.abs(),!1,e+Ne(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};q.toInteger=q.toint=function(){var e=this,t=e.constructor;return de(new t(e),Ne(e)+1,t.rounding)};q.toNumber=function(){return+this};q.toPower=q.pow=function(e){var t,r,n,i,a,o,l=this,u=l.constructor,s=12,f=+(e=new u(e));if(!e.s)return new u(At);if(l=new u(l),!l.s){if(e.s<1)throw Error(Vt+"Infinity");return l}if(l.eq(At))return l;if(n=u.precision,e.eq(At))return de(l,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=l.s,o){if((r=f<0?-f:f)<=zO){for(i=new u(At),t=Math.ceil(n/be+4),Oe=!1;r%2&&(i=i.times(l),W0(i.d,t)),r=Ma(r/2),r!==0;)l=l.times(l),W0(l.d,t);return Oe=!0,e.s<0?new u(At).div(i):de(i,n)}}else if(a<0)throw Error(Vt+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,l.s=1,Oe=!1,i=e.times(Xo(l,n+s)),Oe=!0,i=UO(i),i.s=a,i};q.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Ne(i),n=Qn(i,r<=a.toExpNeg||r>=a.toExpPos)):(mr(e,1,Ca),t===void 0?t=a.rounding:mr(t,0,8),i=de(new a(i),e,t),r=Ne(i),n=Qn(i,e<=r||r<=a.toExpNeg,e)),n};q.toSignificantDigits=q.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(mr(e,1,Ca),t===void 0?t=n.rounding:mr(t,0,8)),de(new n(r),e,t)};q.toString=q.valueOf=q.val=q.toJSON=q[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Ne(e),r=e.constructor;return Qn(e,t<=r.toExpNeg||t>=r.toExpPos)};function FO(e,t){var r,n,i,a,o,l,u,s,f=e.constructor,c=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),Oe?de(t,c):t;if(u=e.d,s=t.d,o=e.e,i=t.e,u=u.slice(),a=o-i,a){for(a<0?(n=u,a=-a,l=s.length):(n=s,i=o,l=u.length),o=Math.ceil(c/be),l=o>l?o+1:l+1,a>l&&(a=l,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(l=u.length,a=s.length,l-a<0&&(a=l,n=s,s=u,u=n),r=0;a;)r=(u[--a]=u[a]+s[a]+r)/We|0,u[a]%=We;for(r&&(u.unshift(r),++i),l=u.length;u[--l]==0;)u.pop();return t.d=u,t.e=i,Oe?de(t,c):t}function mr(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Wn+e)}function fr(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=be-n.length,r&&(a+=Xr(r)),a+=n;o=e[t],n=o+"",r=be-n.length,r&&(a+=Xr(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var kr=function(){function e(n,i){var a,o=0,l=n.length;for(n=n.slice();l--;)a=n[l]*i+o,n[l]=a%We|0,o=a/We|0;return o&&n.unshift(o),n}function t(n,i,a,o){var l,u;if(a!=o)u=a>o?1:-1;else for(l=u=0;l<a;l++)if(n[l]!=i[l]){u=n[l]>i[l]?1:-1;break}return u}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*We+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var l,u,s,f,c,d,p,m,v,x,y,h,g,S,b,w,O,_,A=n.constructor,j=n.s==i.s?1:-1,T=n.d,$=i.d;if(!n.s)return new A(n);if(!i.s)throw Error(Vt+"Division by zero");for(u=n.e-i.e,O=$.length,b=T.length,p=new A(j),m=p.d=[],s=0;$[s]==(T[s]||0);)++s;if($[s]>(T[s]||0)&&--u,a==null?h=a=A.precision:o?h=a+(Ne(n)-Ne(i))+1:h=a,h<0)return new A(0);if(h=h/be+2|0,s=0,O==1)for(f=0,$=$[0],h++;(s<b||f)&&h--;s++)g=f*We+(T[s]||0),m[s]=g/$|0,f=g%$|0;else{for(f=We/($[0]+1)|0,f>1&&($=e($,f),T=e(T,f),O=$.length,b=T.length),S=O,v=T.slice(0,O),x=v.length;x<O;)v[x++]=0;_=$.slice(),_.unshift(0),w=$[0],$[1]>=We/2&&++w;do f=0,l=t($,v,O,x),l<0?(y=v[0],O!=x&&(y=y*We+(v[1]||0)),f=y/w|0,f>1?(f>=We&&(f=We-1),c=e($,f),d=c.length,x=v.length,l=t(c,v,d,x),l==1&&(f--,r(c,O<d?_:$,d))):(f==0&&(l=f=1),c=$.slice()),d=c.length,d<x&&c.unshift(0),r(v,c,x),l==-1&&(x=v.length,l=t($,v,O,x),l<1&&(f++,r(v,O<x?_:$,x))),x=v.length):l===0&&(f++,v=[0]),m[s++]=f,l&&v[0]?v[x++]=T[S]||0:(v=[T[S]],x=1);while((S++<b||v[0]!==void 0)&&h--)}return m[0]||m.shift(),p.e=u,de(p,o?a+Ne(p)+1:a)}}();function UO(e,t){var r,n,i,a,o,l,u=0,s=0,f=e.constructor,c=f.precision;if(Ne(e)>16)throw Error(sy+Ne(e));if(!e.s)return new f(At);for(Oe=!1,l=c,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(n=Math.log(kn(2,s))/Math.LN10*2+5|0,l+=n,r=i=a=new f(At),f.precision=l;;){if(i=de(i.times(e),l),r=r.times(++u),o=a.plus(kr(i,r,l)),fr(o.d).slice(0,l)===fr(a.d).slice(0,l)){for(;s--;)a=de(a.times(a),l);return f.precision=c,t==null?(Oe=!0,de(a,c)):a}a=o}}function Ne(e){for(var t=e.e*be,r=e.d[0];r>=10;r/=10)t++;return t}function Kf(e,t,r){if(t>e.LN10.sd())throw Oe=!0,r&&(e.precision=r),Error(Vt+"LN10 precision limit exceeded");return de(new e(e.LN10),t)}function Xr(e){for(var t="";e--;)t+="0";return t}function Xo(e,t){var r,n,i,a,o,l,u,s,f,c=1,d=10,p=e,m=p.d,v=p.constructor,x=v.precision;if(p.s<1)throw Error(Vt+(p.s?"NaN":"-Infinity"));if(p.eq(At))return new v(0);if(t==null?(Oe=!1,s=x):s=t,p.eq(10))return t==null&&(Oe=!0),Kf(v,s);if(s+=d,v.precision=s,r=fr(m),n=r.charAt(0),a=Ne(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=fr(p.d),n=r.charAt(0),c++;a=Ne(p),n>1?(p=new v("0."+r),a++):p=new v(n+"."+r.slice(1))}else return u=Kf(v,s+2,x).times(a+""),p=Xo(new v(n+"."+r.slice(1)),s-d).plus(u),v.precision=x,t==null?(Oe=!0,de(p,x)):p;for(l=o=p=kr(p.minus(At),p.plus(At),s),f=de(p.times(p),s),i=3;;){if(o=de(o.times(f),s),u=l.plus(kr(o,new v(i),s)),fr(u.d).slice(0,s)===fr(l.d).slice(0,s))return l=l.times(2),a!==0&&(l=l.plus(Kf(v,s+2,x).times(a+""))),l=kr(l,new v(c),s),v.precision=x,t==null?(Oe=!0,de(l,x)):l;l=u,i+=2}}function U0(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Ma(r/be),e.d=[],n=(r+1)%be,r<0&&(n+=be),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=be;n<i;)e.d.push(+t.slice(n,n+=be));t=t.slice(n),n=be-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),Oe&&(e.e>Ss||e.e<-Ss))throw Error(sy+r)}else e.s=0,e.e=0,e.d=[0];return e}function de(e,t,r){var n,i,a,o,l,u,s,f,c=e.d;for(o=1,a=c[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=be,i=t,s=c[f=0];else{if(f=Math.ceil((n+1)/be),a=c.length,f>=a)return e;for(s=a=c[f],o=1;a>=10;a/=10)o++;n%=be,i=n-be+o}if(r!==void 0&&(a=kn(10,o-i-1),l=s/a%10|0,u=t<0||c[f+1]!==void 0||s%a,u=r<4?(l||u)&&(r==0||r==(e.s<0?3:2)):l>5||l==5&&(r==4||u||r==6&&(n>0?i>0?s/kn(10,o-i):0:c[f-1])%10&1||r==(e.s<0?8:7))),t<1||!c[0])return u?(a=Ne(e),c.length=1,t=t-a-1,c[0]=kn(10,(be-t%be)%be),e.e=Ma(-t/be)||0):(c.length=1,c[0]=e.e=e.s=0),e;if(n==0?(c.length=f,a=1,f--):(c.length=f+1,a=kn(10,be-n),c[f]=i>0?(s/kn(10,o-i)%kn(10,i)|0)*a:0),u)for(;;)if(f==0){(c[0]+=a)==We&&(c[0]=1,++e.e);break}else{if(c[f]+=a,c[f]!=We)break;c[f--]=0,a=1}for(n=c.length;c[--n]===0;)c.pop();if(Oe&&(e.e>Ss||e.e<-Ss))throw Error(sy+Ne(e));return e}function WO(e,t){var r,n,i,a,o,l,u,s,f,c,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Oe?de(t,p):t;if(u=e.d,c=t.d,n=t.e,s=e.e,u=u.slice(),o=s-n,o){for(f=o<0,f?(r=u,o=-o,l=c.length):(r=c,n=s,l=u.length),i=Math.max(Math.ceil(p/be),l)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=u.length,l=c.length,f=i<l,f&&(l=i),i=0;i<l;i++)if(u[i]!=c[i]){f=u[i]<c[i];break}o=0}for(f&&(r=u,u=c,c=r,t.s=-t.s),l=u.length,i=c.length-l;i>0;--i)u[l++]=0;for(i=c.length;i>o;){if(u[--i]<c[i]){for(a=i;a&&u[--a]===0;)u[a]=We-1;--u[a],u[i]+=We}u[i]-=c[i]}for(;u[--l]===0;)u.pop();for(;u[0]===0;u.shift())--n;return u[0]?(t.d=u,t.e=n,Oe?de(t,p):t):new d(0)}function Qn(e,t,r){var n,i=Ne(e),a=fr(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Xr(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Xr(-i-1)+a,r&&(n=r-o)>0&&(a+=Xr(n))):i>=o?(a+=Xr(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Xr(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Xr(n))),e.s<0?"-"+a:a}function W0(e,t){if(e.length>t)return e.length=t,!0}function HO(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Wn+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return U0(o,a.toString())}else if(typeof a!="string")throw Error(Wn+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,e5.test(a))U0(o,a);else throw Error(Wn+a)}if(i.prototype=q,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=HO,i.config=i.set=t5,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function t5(e){if(!e||typeof e!="object")throw Error(Vt+"Object expected");var t,r,n,i=["precision",1,Ca,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Ma(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Wn+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Wn+r+": "+n);return this}var cy=HO(J6);At=new cy(1);const fe=cy;function r5(e){return o5(e)||a5(e)||i5(e)||n5()}function n5(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
150
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i5(e,t){if(e){if(typeof e=="string")return jp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jp(e,t)}}function a5(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function o5(e){if(Array.isArray(e))return jp(e)}function jp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var l5=function(t){return t},VO={},KO=function(t){return t===VO},H0=function(t){return function r(){return arguments.length===0||arguments.length===1&&KO(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},u5=function e(t,r){return t===1?r:H0(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(l){return l!==VO}).length;return o>=t?r.apply(void 0,i):e(t-o,H0(function(){for(var l=arguments.length,u=new Array(l),s=0;s<l;s++)u[s]=arguments[s];var f=i.map(function(c){return KO(c)?u.shift():c});return r.apply(void 0,r5(f).concat(u))}))})},Uc=function(t){return u5(t.length,t)},Tp=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},s5=Uc(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),c5=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return l5;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(l,u){return u(l)},a.apply(void 0,arguments))}},kp=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},GO=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(l,u){return l===r[u]})||(r=a,n=t.apply(void 0,a)),n}};function f5(e){var t;return e===0?t=1:t=Math.floor(new fe(e).abs().log(10).toNumber())+1,t}function d5(e,t,r){for(var n=new fe(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var p5=Uc(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),h5=Uc(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),v5=Uc(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Wc={rangeStep:d5,getDigitCount:f5,interpolateNumber:p5,uninterpolateNumber:h5,uninterpolateTruncation:v5};function Cp(e){return g5(e)||m5(e)||qO(e)||y5()}function y5(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
151
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m5(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function g5(e){if(Array.isArray(e))return Mp(e)}function Yo(e,t){return w5(e)||x5(e,t)||qO(e,t)||b5()}function b5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
152
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qO(e,t){if(e){if(typeof e=="string")return Mp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mp(e,t)}}function Mp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function x5(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),l;!(n=(l=o.next()).done)&&(r.push(l.value),!(t&&r.length===t));n=!0);}catch(u){i=!0,a=u}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function w5(e){if(Array.isArray(e))return e}function XO(e){var t=Yo(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function YO(e,t,r){if(e.lte(0))return new fe(0);var n=Wc.getDigitCount(e.toNumber()),i=new fe(10).pow(n),a=e.div(i),o=n!==1?.05:.1,l=new fe(Math.ceil(a.div(o).toNumber())).add(r).mul(o),u=l.mul(i);return t?u:new fe(Math.ceil(u))}function S5(e,t,r){var n=1,i=new fe(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new fe(10).pow(Wc.getDigitCount(e)-1),i=new fe(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new fe(Math.floor(e)))}else e===0?i=new fe(Math.floor((t-1)/2)):r||(i=new fe(Math.floor(e)));var o=Math.floor((t-1)/2),l=c5(s5(function(u){return i.add(new fe(u-o).mul(n)).toNumber()}),Tp);return l(0,t)}function QO(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new fe(0),tickMin:new fe(0),tickMax:new fe(0)};var a=YO(new fe(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new fe(0):(o=new fe(e).add(t).div(2),o=o.sub(new fe(o).mod(a)));var l=Math.ceil(o.sub(e).div(a).toNumber()),u=Math.ceil(new fe(t).sub(o).div(a).toNumber()),s=l+u+1;return s>r?QO(e,t,r,n,i+1):(s<r&&(u=t>0?u+(r-s):u,l=t>0?l:l+(r-s)),{step:a,tickMin:o.sub(new fe(l).mul(a)),tickMax:o.add(new fe(u).mul(a))})}function O5(e){var t=Yo(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),l=XO([r,n]),u=Yo(l,2),s=u[0],f=u[1];if(s===-1/0||f===1/0){var c=f===1/0?[s].concat(Cp(Tp(0,i-1).map(function(){return 1/0}))):[].concat(Cp(Tp(0,i-1).map(function(){return-1/0})),[f]);return r>n?kp(c):c}if(s===f)return S5(s,i,a);var d=QO(s,f,o,a),p=d.step,m=d.tickMin,v=d.tickMax,x=Wc.rangeStep(m,v.add(new fe(.1).mul(p)),p);return r>n?kp(x):x}function _5(e,t){var r=Yo(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=XO([n,i]),l=Yo(o,2),u=l[0],s=l[1];if(u===-1/0||s===1/0)return[n,i];if(u===s)return[u];var f=Math.max(t,2),c=YO(new fe(s).sub(u).div(f-1),a,0),d=[].concat(Cp(Wc.rangeStep(new fe(u),new fe(s).sub(new fe(.99).mul(c)),c)),[s]);return n>i?kp(d):d}var P5=GO(O5),A5=GO(_5),E5="Invariant failed";function Zn(e,t){throw new Error(E5)}var $5=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function ta(e){"@babel/helpers - typeof";return ta=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ta(e)}function Os(){return Os=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Os.apply(this,arguments)}function j5(e,t){return M5(e)||C5(e,t)||k5(e,t)||T5()}function T5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
153
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k5(e,t){if(e){if(typeof e=="string")return V0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return V0(e,t)}}function V0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function C5(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(f){s=!0,i=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}function M5(e){if(Array.isArray(e))return e}function N5(e,t){if(e==null)return{};var r=I5(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function I5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function D5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L5(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,e_(n.key),n)}}function R5(e,t,r){return t&&L5(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function B5(e,t,r){return t=_s(t),z5(e,ZO()?Reflect.construct(t,r||[],_s(e).constructor):t.apply(e,r))}function z5(e,t){if(t&&(ta(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F5(e)}function F5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ZO=function(){return!!e})()}function _s(e){return _s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_s(e)}function U5(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Np(e,t)}function Np(e,t){return Np=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Np(e,t)}function JO(e,t,r){return t=e_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e_(e){var t=W5(e,"string");return ta(t)=="symbol"?t:t+""}function W5(e,t){if(ta(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ta(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var jl=function(e){function t(){return D5(this,t),B5(this,t,arguments)}return U5(t,e),R5(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,l=n.dataKey,u=n.data,s=n.dataPointFormatter,f=n.xAxis,c=n.yAxis,d=N5(n,$5),p=J(d,!1);this.props.direction==="x"&&f.type!=="number"&&Zn();var m=u.map(function(v){var x=s(v,l),y=x.x,h=x.y,g=x.value,S=x.errorVal;if(!S)return null;var b=[],w,O;if(Array.isArray(S)){var _=j5(S,2);w=_[0],O=_[1]}else w=O=S;if(a==="vertical"){var A=f.scale,j=h+i,T=j+o,$=j-o,I=A(g-w),N=A(g+O);b.push({x1:N,y1:T,x2:N,y2:$}),b.push({x1:I,y1:j,x2:N,y2:j}),b.push({x1:I,y1:T,x2:I,y2:$})}else if(a==="horizontal"){var C=c.scale,D=y+i,z=D-o,k=D+o,L=C(g-w),B=C(g+O);b.push({x1:z,y1:B,x2:k,y2:B}),b.push({x1:D,y1:L,x2:D,y2:B}),b.push({x1:z,y1:L,x2:k,y2:L})}return E.createElement(ye,Os({className:"recharts-errorBar",key:"bar-".concat(b.map(function(V){return"".concat(V.x1,"-").concat(V.x2,"-").concat(V.y1,"-").concat(V.y2)}))},p),b.map(function(V){return E.createElement("line",Os({},V,{key:"line-".concat(V.x1,"-").concat(V.x2,"-").concat(V.y1,"-").concat(V.y2)}))}))});return E.createElement(ye,{className:"recharts-errorBars"},m)}}])}(E.Component);JO(jl,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});JO(jl,"displayName","ErrorBar");function Qo(e){"@babel/helpers - typeof";return Qo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qo(e)}function K0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function An(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?K0(Object(r),!0).forEach(function(n){H5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):K0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function H5(e,t,r){return t=V5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V5(e){var t=K5(e,"string");return Qo(t)=="symbol"?t:t+""}function K5(e,t){if(Qo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var t_=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Pt(r,Ii);if(!o)return null;var l=Ii.defaultProps,u=l!==void 0?An(An({},l),o.props):{},s;return o.props&&o.props.payload?s=o.props&&o.props.payload:a==="children"?s=(n||[]).reduce(function(f,c){var d=c.item,p=c.props,m=p.sectors||p.data||[];return f.concat(m.map(function(v){return{type:o.props.iconType||d.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):s=(n||[]).map(function(f){var c=f.item,d=c.type.defaultProps,p=d!==void 0?An(An({},d),c.props):{},m=p.dataKey,v=p.name,x=p.legendType,y=p.hide;return{inactive:y,dataKey:m,type:u.iconType||x||"square",color:fy(c),value:v||m,payload:p}}),An(An(An({},u),Ii.getWithHeight(o,i)),{},{payload:s,item:o})};function Zo(e){"@babel/helpers - typeof";return Zo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zo(e)}function G0(e){return Y5(e)||X5(e)||q5(e)||G5()}function G5(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
154
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function q5(e,t){if(e){if(typeof e=="string")return Ip(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ip(e,t)}}function X5(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Y5(e){if(Array.isArray(e))return Ip(e)}function Ip(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function q0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?q0(Object(r),!0).forEach(function(n){Li(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):q0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Li(e,t,r){return t=Q5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q5(e){var t=Z5(e,"string");return Zo(t)=="symbol"?t:t+""}function Z5(e,t){if(Zo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ct(e,t,r){return te(e)||te(t)?r:Fe(t)?Ft(e,t,r):Q(t)?t(e):r}function yo(e,t,r,n){var i=X6(e,function(l){return ct(l,t)});if(r==="number"){var a=i.filter(function(l){return H(l)||parseFloat(l)});return a.length?[Fc(a),tn(a)]:[1/0,-1/0]}var o=n?i.filter(function(l){return!te(l)}):i;return o.map(function(l){return Fe(l)||l instanceof Date?l:""})}var J5=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,l=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(l<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var u=a.range,s=0;s<l;s++){var f=s>0?i[s-1].coordinate:i[l-1].coordinate,c=i[s].coordinate,d=s>=l-1?i[0].coordinate:i[s+1].coordinate,p=void 0;if(nr(c-f)!==nr(d-c)){var m=[];if(nr(d-c)===nr(u[1]-u[0])){p=d;var v=c+u[1]-u[0];m[0]=Math.min(v,(v+f)/2),m[1]=Math.max(v,(v+f)/2)}else{p=f;var x=d+u[1]-u[0];m[0]=Math.min(c,(x+c)/2),m[1]=Math.max(c,(x+c)/2)}var y=[Math.min(c,(p+c)/2),Math.max(c,(p+c)/2)];if(t>y[0]&&t<=y[1]||t>=m[0]&&t<=m[1]){o=i[s].index;break}}else{var h=Math.min(f,d),g=Math.max(f,d);if(t>(h+c)/2&&t<=(g+c)/2){o=i[s].index;break}}}else for(var S=0;S<l;S++)if(S===0&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S>0&&S<l-1&&t>(n[S].coordinate+n[S-1].coordinate)/2&&t<=(n[S].coordinate+n[S+1].coordinate)/2||S===l-1&&t>(n[S].coordinate+n[S-1].coordinate)/2){o=n[S].index;break}return o},fy=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?je(je({},t.type.defaultProps),t.props):t.props,o=a.stroke,l=a.fill,u;switch(i){case"Line":u=o;break;case"Area":case"Radar":u=o&&o!=="none"?o:l;break;default:u=l;break}return u},eF=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},l=Object.keys(a),u=0,s=l.length;u<s;u++)for(var f=a[l[u]].stackGroups,c=Object.keys(f),d=0,p=c.length;d<p;d++){var m=f[c[d]],v=m.items,x=m.cateAxisId,y=v.filter(function(O){return jr(O.type).indexOf("Bar")>=0});if(y&&y.length){var h=y[0].type.defaultProps,g=h!==void 0?je(je({},h),y[0].props):y[0].props,S=g.barSize,b=g[x];o[b]||(o[b]=[]);var w=te(S)?r:S;o[b].push({item:y[0],stackList:y.slice(1),barSize:te(w)?void 0:Yn(w,n,0)})}}return o},tF=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,l=t.maxBarSize,u=o.length;if(u<1)return null;var s=Yn(r,i,0,!0),f,c=[];if(o[0].barSize===+o[0].barSize){var d=!1,p=i/u,m=o.reduce(function(S,b){return S+b.barSize||0},0);m+=(u-1)*s,m>=i&&(m-=(u-1)*s,s=0),m>=i&&p>0&&(d=!0,p*=.9,m=u*p);var v=(i-m)/2>>0,x={offset:v-s,size:0};f=o.reduce(function(S,b){var w={item:b.item,position:{offset:x.offset+x.size+s,size:d?p:b.barSize}},O=[].concat(G0(S),[w]);return x=O[O.length-1].position,b.stackList&&b.stackList.length&&b.stackList.forEach(function(_){O.push({item:_,position:x})}),O},c)}else{var y=Yn(n,i,0,!0);i-2*y-(u-1)*s<=0&&(s=0);var h=(i-2*y-(u-1)*s)/u;h>1&&(h>>=0);var g=l===+l?Math.min(h,l):h;f=o.reduce(function(S,b,w){var O=[].concat(G0(S),[{item:b.item,position:{offset:y+(h+s)*w+(h-g)/2,size:g}}]);return b.stackList&&b.stackList.length&&b.stackList.forEach(function(_){O.push({item:_,position:O[O.length-1].position})}),O},c)}return f},rF=function(t,r,n,i){var a=n.children,o=n.width,l=n.margin,u=o-(l.left||0)-(l.right||0),s=t_({children:a,legendWidth:u});if(s){var f=i||{},c=f.width,d=f.height,p=s.align,m=s.verticalAlign,v=s.layout;if((v==="vertical"||v==="horizontal"&&m==="middle")&&p!=="center"&&H(t[p]))return je(je({},t),{},Li({},p,t[p]+(c||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&m!=="middle"&&H(t[m]))return je(je({},t),{},Li({},m,t[m]+(d||0)))}return t},nF=function(t,r,n){return te(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},r_=function(t,r,n,i,a){var o=r.props.children,l=Ut(o,jl).filter(function(s){return nF(i,a,s.props.direction)});if(l&&l.length){var u=l.map(function(s){return s.props.dataKey});return t.reduce(function(s,f){var c=ct(f,n);if(te(c))return s;var d=Array.isArray(c)?[Fc(c),tn(c)]:[c,c],p=u.reduce(function(m,v){var x=ct(f,v,0),y=d[0]-Math.abs(Array.isArray(x)?x[0]:x),h=d[1]+Math.abs(Array.isArray(x)?x[1]:x);return[Math.min(y,m[0]),Math.max(h,m[1])]},[1/0,-1/0]);return[Math.min(p[0],s[0]),Math.max(p[1],s[1])]},[1/0,-1/0])}return null},iF=function(t,r,n,i,a){var o=r.map(function(l){return r_(t,l,n,a,i)}).filter(function(l){return!te(l)});return o&&o.length?o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]):null},n_=function(t,r,n,i,a){var o=r.map(function(u){var s=u.props.dataKey;return n==="number"&&s&&r_(t,u,s,i)||yo(t,s,n,a)});if(n==="number")return o.reduce(function(u,s){return[Math.min(u[0],s[0]),Math.max(u[1],s[1])]},[1/0,-1/0]);var l={};return o.reduce(function(u,s){for(var f=0,c=s.length;f<c;f++)l[s[f]]||(l[s[f]]=!0,u.push(s[f]));return u},[])},i_=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},a_=function(t,r,n,i){if(i)return t.map(function(u){return u.coordinate});var a,o,l=t.map(function(u){return u.coordinate===r&&(a=!0),u.coordinate===n&&(o=!0),u.coordinate});return a||l.push(r),o||l.push(n),l},Er=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,l=t.range,u=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,s=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/u:0;if(s=t.axisType==="angleAxis"&&(l==null?void 0:l.length)>=2?nr(l[0]-l[1])*2*s:s,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(c){var d=a?a.indexOf(c):c;return{coordinate:i(d)+s,value:c,offset:s}});return f.filter(function(c){return!Aa(c.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(c,d){return{coordinate:i(c)+s,value:c,index:d,offset:s}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(c){return{coordinate:i(c)+s,value:c,offset:s}}):i.domain().map(function(c,d){return{coordinate:i(c)+s,value:a?a[c]:c,index:d,offset:s}})},Gf=new WeakMap,ou=function(t,r){if(typeof r!="function")return t;Gf.has(t)||Gf.set(t,new WeakMap);var n=Gf.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},aF=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,l=t.axisType;if(i==="auto")return o==="radial"&&l==="radiusAxis"?{scale:Ho(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:gs(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:vo(),realScaleType:"point"}:a==="category"?{scale:Ho(),realScaleType:"band"}:{scale:gs(),realScaleType:"linear"};if(Xn(i)){var u="scale".concat($c(i));return{scale:(F0[u]||vo)(),realScaleType:F0[u]?u:"point"}}return Q(i)?{scale:i}:{scale:vo(),realScaleType:"point"}},X0=1e-4,oF=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-X0,o=Math.max(i[0],i[1])+X0,l=t(r[0]),u=t(r[n-1]);(l<a||l>o||u<a||u>o)&&t.domain([r[0],r[n-1]])}},lF=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},uF=function(t,r){if(!r||r.length!==2||!H(r[0])||!H(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!H(t[0])||t[0]<n)&&(a[0]=n),(!H(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},sF=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,l=0;l<r;++l){var u=Aa(t[l][n][1])?t[l][n][0]:t[l][n][1];u>=0?(t[l][n][0]=a,t[l][n][1]=a+u,a=t[l][n][1]):(t[l][n][0]=o,t[l][n][1]=o+u,o=t[l][n][1])}},cF=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var l=Aa(t[o][n][1])?t[o][n][0]:t[o][n][1];l>=0?(t[o][n][0]=a,t[o][n][1]=a+l,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},fF={sign:sF,expand:AC,none:Ki,silhouette:EC,wiggle:$C,positive:cF},dF=function(t,r,n){var i=r.map(function(l){return l.props.dataKey}),a=fF[n],o=PC().keys(i).value(function(l,u){return+ct(l,u,0)}).order(op).offset(a);return o(t)},pF=function(t,r,n,i,a,o){if(!t)return null;var l=o?r.reverse():r,u={},s=l.reduce(function(c,d){var p,m=(p=d.type)!==null&&p!==void 0&&p.defaultProps?je(je({},d.type.defaultProps),d.props):d.props,v=m.stackId,x=m.hide;if(x)return c;var y=m[n],h=c[y]||{hasStack:!1,stackGroups:{}};if(Fe(v)){var g=h.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};g.items.push(d),h.hasStack=!0,h.stackGroups[v]=g}else h.stackGroups[Ea("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return je(je({},c),{},Li({},y,h))},u),f={};return Object.keys(s).reduce(function(c,d){var p=s[d];if(p.hasStack){var m={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(v,x){var y=p.stackGroups[x];return je(je({},v),{},Li({},x,{numericAxisId:n,cateAxisId:i,items:y.items,stackedData:dF(t,y.items,a)}))},m)}return je(je({},c),{},Li({},d,p))},f)},hF=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,l=r.allowDecimals,u=n||r.scale;if(u!=="auto"&&u!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var s=t.domain();if(!s.length)return null;var f=P5(s,a,l);return t.domain([Fc(f),tn(f)]),{niceTicks:f}}if(a&&i==="number"){var c=t.domain(),d=A5(c,a,l);return{niceTicks:d}}return null};function Ps(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!te(i[t.dataKey])){var l=qu(r,"value",i[t.dataKey]);if(l)return l.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var u=ct(i,te(o)?t.dataKey:o);return te(u)?null:t.scale(u)}var Y0=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,l=t.index;if(r.type==="category")return n[l]?n[l].coordinate+i:null;var u=ct(o,r.dataKey,r.domain[l]);return te(u)?null:r.scale(u)-a/2+i},vF=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},yF=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?je(je({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Fe(a)){var o=r[a];if(o){var l=o.items.indexOf(t);return l>=0?o.stackedData[l]:null}}return null},mF=function(t){return t.reduce(function(r,n){return[Fc(n.concat([r[0]]).filter(H)),tn(n.concat([r[1]]).filter(H))]},[1/0,-1/0])},o_=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],l=o.stackedData,u=l.reduce(function(s,f){var c=mF(f.slice(r,n+1));return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]);return[Math.min(u[0],i[0]),Math.max(u[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Q0=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Z0=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Dp=function(t,r,n){if(Q(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(H(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(Q0.test(t[0])){var a=+Q0.exec(t[0])[1];i[0]=r[0]-a}else Q(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(H(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(Z0.test(t[1])){var o=+Z0.exec(t[1])[1];i[1]=r[1]+o}else Q(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},As=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=Bv(r,function(c){return c.coordinate}),o=1/0,l=1,u=a.length;l<u;l++){var s=a[l],f=a[l-1];o=Math.min((s.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},J0=function(t,r,n){return!t||!t.length||ea(t,Ft(n,"type.defaultProps.domain"))?r:t},l_=function(t,r){var n=t.type.defaultProps?je(je({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,l=n.formatter,u=n.tooltipType,s=n.chartType,f=n.hide;return je(je({},J(t,!1)),{},{dataKey:i,unit:o,formatter:l,name:a||i,color:fy(t),value:ct(r,i),type:u,payload:r,chartType:s,hide:f})};function Jo(e){"@babel/helpers - typeof";return Jo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jo(e)}function eb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eb(Object(r),!0).forEach(function(n){gF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gF(e,t,r){return t=bF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bF(e){var t=xF(e,"string");return Jo(t)=="symbol"?t:t+""}function xF(e,t){if(Jo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Es=Math.PI/180,wF=function(t){return t*180/Math.PI},Ye=function(t,r,n,i){return{x:t+Math.cos(-Es*i)*n,y:r+Math.sin(-Es*i)*n}},SF=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},OF=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,l=SF({x:n,y:i},{x:a,y:o});if(l<=0)return{radius:l};var u=(n-a)/l,s=Math.acos(u);return i>o&&(s=2*Math.PI-s),{radius:l,angle:wF(s),angleInRadian:s}},_F=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},PF=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),l=Math.min(a,o);return t+l*360},rb=function(t,r){var n=t.x,i=t.y,a=OF({x:n,y:i},r),o=a.radius,l=a.angle,u=r.innerRadius,s=r.outerRadius;if(o<u||o>s)return!1;if(o===0)return!0;var f=_F(r),c=f.startAngle,d=f.endAngle,p=l,m;if(c<=d){for(;p>d;)p-=360;for(;p<c;)p+=360;m=p>=c&&p<=d}else{for(;p>c;)p-=360;for(;p<d;)p+=360;m=p>=d&&p<=c}return m?tb(tb({},r),{},{radius:o,angle:PF(p,r)}):null};function el(e){"@babel/helpers - typeof";return el=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},el(e)}var AF=["offset"];function EF(e){return kF(e)||TF(e)||jF(e)||$F()}function $F(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
155
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jF(e,t){if(e){if(typeof e=="string")return Lp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lp(e,t)}}function TF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function kF(e){if(Array.isArray(e))return Lp(e)}function Lp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function CF(e,t){if(e==null)return{};var r=MF(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function MF(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function nb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Re(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nb(Object(r),!0).forEach(function(n){NF(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function NF(e,t,r){return t=IF(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IF(e){var t=DF(e,"string");return el(t)=="symbol"?t:t+""}function DF(e,t){if(el(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(el(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tl(){return tl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tl.apply(this,arguments)}var LF=function(t){var r=t.value,n=t.formatter,i=te(t.children)?r:t.children;return Q(n)?n(i):i},RF=function(t,r){var n=nr(r-t),i=Math.min(Math.abs(r-t),360);return n*i},BF=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,l=t.className,u=a,s=u.cx,f=u.cy,c=u.innerRadius,d=u.outerRadius,p=u.startAngle,m=u.endAngle,v=u.clockWise,x=(c+d)/2,y=RF(p,m),h=y>=0?1:-1,g,S;i==="insideStart"?(g=p+h*o,S=v):i==="insideEnd"?(g=m-h*o,S=!v):i==="end"&&(g=m+h*o,S=v),S=y<=0?S:!S;var b=Ye(s,f,x,g),w=Ye(s,f,x,g+(S?1:-1)*359),O="M".concat(b.x,",").concat(b.y,`
|
|
156
|
+
A`).concat(x,",").concat(x,",0,1,").concat(S?0:1,`,
|
|
157
|
+
`).concat(w.x,",").concat(w.y),_=te(t.id)?Ea("recharts-radial-line-"):t.id;return E.createElement("text",tl({},n,{dominantBaseline:"central",className:ne("recharts-radial-bar-label",l)}),E.createElement("defs",null,E.createElement("path",{id:_,d:O})),E.createElement("textPath",{xlinkHref:"#".concat(_)},r))},zF=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,l=a.cy,u=a.innerRadius,s=a.outerRadius,f=a.startAngle,c=a.endAngle,d=(f+c)/2;if(i==="outside"){var p=Ye(o,l,s+n,d),m=p.x,v=p.y;return{x:m,y:v,textAnchor:m>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"end"};var x=(u+s)/2,y=Ye(o,l,x,d),h=y.x,g=y.y;return{x:h,y:g,textAnchor:"middle",verticalAnchor:"middle"}},FF=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,l=o.x,u=o.y,s=o.width,f=o.height,c=f>=0?1:-1,d=c*i,p=c>0?"end":"start",m=c>0?"start":"end",v=s>=0?1:-1,x=v*i,y=v>0?"end":"start",h=v>0?"start":"end";if(a==="top"){var g={x:l+s/2,y:u-c*i,textAnchor:"middle",verticalAnchor:p};return Re(Re({},g),n?{height:Math.max(u-n.y,0),width:s}:{})}if(a==="bottom"){var S={x:l+s/2,y:u+f+d,textAnchor:"middle",verticalAnchor:m};return Re(Re({},S),n?{height:Math.max(n.y+n.height-(u+f),0),width:s}:{})}if(a==="left"){var b={x:l-x,y:u+f/2,textAnchor:y,verticalAnchor:"middle"};return Re(Re({},b),n?{width:Math.max(b.x-n.x,0),height:f}:{})}if(a==="right"){var w={x:l+s+x,y:u+f/2,textAnchor:h,verticalAnchor:"middle"};return Re(Re({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:f}:{})}var O=n?{width:s,height:f}:{};return a==="insideLeft"?Re({x:l+x,y:u+f/2,textAnchor:h,verticalAnchor:"middle"},O):a==="insideRight"?Re({x:l+s-x,y:u+f/2,textAnchor:y,verticalAnchor:"middle"},O):a==="insideTop"?Re({x:l+s/2,y:u+d,textAnchor:"middle",verticalAnchor:m},O):a==="insideBottom"?Re({x:l+s/2,y:u+f-d,textAnchor:"middle",verticalAnchor:p},O):a==="insideTopLeft"?Re({x:l+x,y:u+d,textAnchor:h,verticalAnchor:m},O):a==="insideTopRight"?Re({x:l+s-x,y:u+d,textAnchor:y,verticalAnchor:m},O):a==="insideBottomLeft"?Re({x:l+x,y:u+f-d,textAnchor:h,verticalAnchor:p},O):a==="insideBottomRight"?Re({x:l+s-x,y:u+f-d,textAnchor:y,verticalAnchor:p},O):Sa(a)&&(H(a.x)||In(a.x))&&(H(a.y)||In(a.y))?Re({x:l+Yn(a.x,s),y:u+Yn(a.y,f),textAnchor:"end",verticalAnchor:"end"},O):Re({x:l+s/2,y:u+f/2,textAnchor:"middle",verticalAnchor:"middle"},O)},UF=function(t){return"cx"in t&&H(t.cx)};function nt(e){var t=e.offset,r=t===void 0?5:t,n=CF(e,AF),i=Re({offset:r},n),a=i.viewBox,o=i.position,l=i.value,u=i.children,s=i.content,f=i.className,c=f===void 0?"":f,d=i.textBreakAll;if(!a||te(l)&&te(u)&&!R.isValidElement(s)&&!Q(s))return null;if(R.isValidElement(s))return R.cloneElement(s,i);var p;if(Q(s)){if(p=R.createElement(s,i),R.isValidElement(p))return p}else p=LF(i);var m=UF(a),v=J(i,!0);if(m&&(o==="insideStart"||o==="insideEnd"||o==="end"))return BF(i,p,v);var x=m?zF(i):FF(i);return E.createElement(cs,tl({className:ne("recharts-label",c)},v,x,{breakAll:d}),p)}nt.displayName="Label";var u_=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,l=t.r,u=t.radius,s=t.innerRadius,f=t.outerRadius,c=t.x,d=t.y,p=t.top,m=t.left,v=t.width,x=t.height,y=t.clockWise,h=t.labelViewBox;if(h)return h;if(H(v)&&H(x)){if(H(c)&&H(d))return{x:c,y:d,width:v,height:x};if(H(p)&&H(m))return{x:p,y:m,width:v,height:x}}return H(c)&&H(d)?{x:c,y:d,width:0,height:0}:H(r)&&H(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:s||0,outerRadius:f||u||l||0,clockWise:y}:t.viewBox?t.viewBox:{}},WF=function(t,r){return t?t===!0?E.createElement(nt,{key:"label-implicit",viewBox:r}):Fe(t)?E.createElement(nt,{key:"label-implicit",viewBox:r,value:t}):R.isValidElement(t)?t.type===nt?R.cloneElement(t,{key:"label-implicit",viewBox:r}):E.createElement(nt,{key:"label-implicit",content:t,viewBox:r}):Q(t)?E.createElement(nt,{key:"label-implicit",content:t,viewBox:r}):Sa(t)?E.createElement(nt,tl({viewBox:r},t,{key:"label-implicit"})):null:null},HF=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=u_(t),o=Ut(i,nt).map(function(u,s){return R.cloneElement(u,{viewBox:r||a,key:"label-".concat(s)})});if(!n)return o;var l=WF(t.label,r||a);return[l].concat(EF(o))};nt.parseViewBox=u_;nt.renderCallByParent=HF;function VF(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var KF=VF;const GF=pe(KF);function rl(e){"@babel/helpers - typeof";return rl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rl(e)}var qF=["valueAccessor"],XF=["data","dataKey","clockWise","id","textBreakAll"];function YF(e){return eU(e)||JF(e)||ZF(e)||QF()}function QF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
158
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZF(e,t){if(e){if(typeof e=="string")return Rp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Rp(e,t)}}function JF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eU(e){if(Array.isArray(e))return Rp(e)}function Rp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $s(){return $s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$s.apply(this,arguments)}function ib(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ab(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ib(Object(r),!0).forEach(function(n){tU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ib(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tU(e,t,r){return t=rU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rU(e){var t=nU(e,"string");return rl(t)=="symbol"?t:t+""}function nU(e,t){if(rl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(rl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ob(e,t){if(e==null)return{};var r=iU(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function iU(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var aU=function(t){return Array.isArray(t.value)?GF(t.value):t.value};function Cr(e){var t=e.valueAccessor,r=t===void 0?aU:t,n=ob(e,qF),i=n.data,a=n.dataKey,o=n.clockWise,l=n.id,u=n.textBreakAll,s=ob(n,XF);return!i||!i.length?null:E.createElement(ye,{className:"recharts-label-list"},i.map(function(f,c){var d=te(a)?r(f,c):ct(f&&f.payload,a),p=te(l)?{}:{id:"".concat(l,"-").concat(c)};return E.createElement(nt,$s({},J(f,!0),s,p,{parentViewBox:f.parentViewBox,value:d,textBreakAll:u,viewBox:nt.parseViewBox(te(o)?f:ab(ab({},f),{},{clockWise:o})),key:"label-".concat(c),index:c}))}))}Cr.displayName="LabelList";function oU(e,t){return e?e===!0?E.createElement(Cr,{key:"labelList-implicit",data:t}):E.isValidElement(e)||Q(e)?E.createElement(Cr,{key:"labelList-implicit",data:t,content:e}):Sa(e)?E.createElement(Cr,$s({data:t},e,{key:"labelList-implicit"})):null:null}function lU(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Ut(n,Cr).map(function(o,l){return R.cloneElement(o,{data:t,key:"labelList-".concat(l)})});if(!r)return i;var a=oU(e.label,t);return[a].concat(YF(i))}Cr.renderCallByParent=lU;function nl(e){"@babel/helpers - typeof";return nl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nl(e)}function Bp(){return Bp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bp.apply(this,arguments)}function lb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ub(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lb(Object(r),!0).forEach(function(n){uU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uU(e,t,r){return t=sU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sU(e){var t=cU(e,"string");return nl(t)=="symbol"?t:t+""}function cU(e,t){if(nl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(nl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fU=function(t,r){var n=nr(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},lu=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,l=t.isExternal,u=t.cornerRadius,s=t.cornerIsExternal,f=u*(l?1:-1)+i,c=Math.asin(u/f)/Es,d=s?a:a+o*c,p=Ye(r,n,f,d),m=Ye(r,n,i,d),v=s?a-o*c:a,x=Ye(r,n,f*Math.cos(c*Es),v);return{center:p,circleTangency:m,lineTangency:x,theta:c}},s_=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,l=t.endAngle,u=fU(o,l),s=o+u,f=Ye(r,n,a,o),c=Ye(r,n,a,s),d="M ".concat(f.x,",").concat(f.y,`
|
|
159
|
+
A `).concat(a,",").concat(a,`,0,
|
|
160
|
+
`).concat(+(Math.abs(u)>180),",").concat(+(o>s),`,
|
|
161
|
+
`).concat(c.x,",").concat(c.y,`
|
|
162
|
+
`);if(i>0){var p=Ye(r,n,i,o),m=Ye(r,n,i,s);d+="L ".concat(m.x,",").concat(m.y,`
|
|
163
|
+
A `).concat(i,",").concat(i,`,0,
|
|
164
|
+
`).concat(+(Math.abs(u)>180),",").concat(+(o<=s),`,
|
|
165
|
+
`).concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},dU=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,l=t.forceCornerRadius,u=t.cornerIsExternal,s=t.startAngle,f=t.endAngle,c=nr(f-s),d=lu({cx:r,cy:n,radius:a,angle:s,sign:c,cornerRadius:o,cornerIsExternal:u}),p=d.circleTangency,m=d.lineTangency,v=d.theta,x=lu({cx:r,cy:n,radius:a,angle:f,sign:-c,cornerRadius:o,cornerIsExternal:u}),y=x.circleTangency,h=x.lineTangency,g=x.theta,S=u?Math.abs(s-f):Math.abs(s-f)-v-g;if(S<0)return l?"M ".concat(m.x,",").concat(m.y,`
|
|
166
|
+
a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
|
|
167
|
+
a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
|
|
168
|
+
`):s_({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:s,endAngle:f});var b="M ".concat(m.x,",").concat(m.y,`
|
|
169
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(p.x,",").concat(p.y,`
|
|
170
|
+
A`).concat(a,",").concat(a,",0,").concat(+(S>180),",").concat(+(c<0),",").concat(y.x,",").concat(y.y,`
|
|
171
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(h.x,",").concat(h.y,`
|
|
172
|
+
`);if(i>0){var w=lu({cx:r,cy:n,radius:i,angle:s,sign:c,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),O=w.circleTangency,_=w.lineTangency,A=w.theta,j=lu({cx:r,cy:n,radius:i,angle:f,sign:-c,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),T=j.circleTangency,$=j.lineTangency,I=j.theta,N=u?Math.abs(s-f):Math.abs(s-f)-A-I;if(N<0&&o===0)return"".concat(b,"L").concat(r,",").concat(n,"Z");b+="L".concat($.x,",").concat($.y,`
|
|
173
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(T.x,",").concat(T.y,`
|
|
174
|
+
A`).concat(i,",").concat(i,",0,").concat(+(N>180),",").concat(+(c>0),",").concat(O.x,",").concat(O.y,`
|
|
175
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(_.x,",").concat(_.y,"Z")}else b+="L".concat(r,",").concat(n,"Z");return b},pU={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},c_=function(t){var r=ub(ub({},pU),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,l=r.cornerRadius,u=r.forceCornerRadius,s=r.cornerIsExternal,f=r.startAngle,c=r.endAngle,d=r.className;if(o<a||f===c)return null;var p=ne("recharts-sector",d),m=o-a,v=Yn(l,m,0,!0),x;return v>0&&Math.abs(f-c)<360?x=dU({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,m/2),forceCornerRadius:u,cornerIsExternal:s,startAngle:f,endAngle:c}):x=s_({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:c}),E.createElement("path",Bp({},J(r,!0),{className:p,d:x,role:"img"}))};function il(e){"@babel/helpers - typeof";return il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},il(e)}function zp(){return zp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zp.apply(this,arguments)}function sb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sb(Object(r),!0).forEach(function(n){hU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hU(e,t,r){return t=vU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vU(e){var t=yU(e,"string");return il(t)=="symbol"?t:t+""}function yU(e,t){if(il(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(il(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fb={curveBasisClosed:hC,curveBasisOpen:vC,curveBasis:pC,curveBumpX:Jk,curveBumpY:eC,curveLinearClosed:yC,curveLinear:Tc,curveMonotoneX:mC,curveMonotoneY:gC,curveNatural:bC,curveStep:xC,curveStepAfter:SC,curveStepBefore:wC},uu=function(t){return t.x===+t.x&&t.y===+t.y},Xa=function(t){return t.x},Ya=function(t){return t.y},mU=function(t,r){if(Q(t))return t;var n="curve".concat($c(t));return(n==="curveMonotone"||n==="curveBump")&&r?fb["".concat(n).concat(r==="vertical"?"Y":"X")]:fb[n]||Tc},gU=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,l=t.layout,u=t.connectNulls,s=u===void 0?!1:u,f=mU(n,l),c=s?a.filter(function(v){return uu(v)}):a,d;if(Array.isArray(o)){var p=s?o.filter(function(v){return uu(v)}):o,m=c.map(function(v,x){return cb(cb({},v),{},{base:p[x]})});return l==="vertical"?d=Zl().y(Ya).x1(Xa).x0(function(v){return v.base.x}):d=Zl().x(Xa).y1(Ya).y0(function(v){return v.base.y}),d.defined(uu).curve(f),d(m)}return l==="vertical"&&H(o)?d=Zl().y(Ya).x1(Xa).x0(o):H(o)?d=Zl().x(Xa).y1(Ya).y0(o):d=fS().x(Xa).y(Ya),d.defined(uu).curve(f),d(c)},Ri=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?gU(t):i;return R.createElement("path",zp({},J(t,!1),Xu(t),{className:ne("recharts-curve",r),d:o,ref:a}))},f_={exports:{}},bU="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",xU=bU,wU=xU;function d_(){}function p_(){}p_.resetWarningCache=d_;var SU=function(){function e(n,i,a,o,l,u){if(u!==wU){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:p_,resetWarningCache:d_};return r.PropTypes=r,r};f_.exports=SU();var OU=f_.exports;const ue=pe(OU),{getOwnPropertyNames:_U,getOwnPropertySymbols:PU}=Object,{hasOwnProperty:AU}=Object.prototype;function qf(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function su(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:a}=i,o=a.get(r),l=a.get(n);if(o&&l)return o===n&&l===r;a.set(r,n),a.set(n,r);const u=e(r,n,i);return a.delete(r),a.delete(n),u}}function EU(e){return e!=null?e[Symbol.toStringTag]:void 0}function db(e){return _U(e).concat(PU(e))}const $U=Object.hasOwn||((e,t)=>AU.call(e,t));function oi(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const jU="__v",TU="__o",kU="_owner",{getOwnPropertyDescriptor:pb,keys:hb}=Object;function CU(e,t){return e.byteLength===t.byteLength&&js(new Uint8Array(e),new Uint8Array(t))}function MU(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function NU(e,t){return e.byteLength===t.byteLength&&js(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function IU(e,t){return oi(e.getTime(),t.getTime())}function DU(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function LU(e,t){return e===t}function vb(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,l,u=0;for(;(o=a.next())&&!o.done;){const s=t.entries();let f=!1,c=0;for(;(l=s.next())&&!l.done;){if(i[c]){c++;continue}const d=o.value,p=l.value;if(r.equals(d[0],p[0],u,c,e,t,r)&&r.equals(d[1],p[1],d[0],p[0],e,t,r)){f=i[c]=!0;break}c++}if(!f)return!1;u++}return!0}const RU=oi;function BU(e,t,r){const n=hb(e);let i=n.length;if(hb(t).length!==i)return!1;for(;i-- >0;)if(!h_(e,t,r,n[i]))return!1;return!0}function Qa(e,t,r){const n=db(e);let i=n.length;if(db(t).length!==i)return!1;let a,o,l;for(;i-- >0;)if(a=n[i],!h_(e,t,r,a)||(o=pb(e,a),l=pb(t,a),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function zU(e,t){return oi(e.valueOf(),t.valueOf())}function FU(e,t){return e.source===t.source&&e.flags===t.flags}function yb(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.values();let o,l;for(;(o=a.next())&&!o.done;){const u=t.values();let s=!1,f=0;for(;(l=u.next())&&!l.done;){if(!i[f]&&r.equals(o.value,l.value,o.value,l.value,e,t,r)){s=i[f]=!0;break}f++}if(!s)return!1}return!0}function js(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function UU(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function h_(e,t,r,n){return(n===kU||n===TU||n===jU)&&(e.$$typeof||t.$$typeof)?!0:$U(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const WU="[object ArrayBuffer]",HU="[object Arguments]",VU="[object Boolean]",KU="[object DataView]",GU="[object Date]",qU="[object Error]",XU="[object Map]",YU="[object Number]",QU="[object Object]",ZU="[object RegExp]",JU="[object Set]",eW="[object String]",tW={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},rW="[object URL]",nW=Object.prototype.toString;function iW({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:l,areObjectsEqual:u,arePrimitiveWrappersEqual:s,areRegExpsEqual:f,areSetsEqual:c,areTypedArraysEqual:d,areUrlsEqual:p,unknownTagComparators:m}){return function(x,y,h){if(x===y)return!0;if(x==null||y==null)return!1;const g=typeof x;if(g!==typeof y)return!1;if(g!=="object")return g==="number"?l(x,y,h):g==="function"?a(x,y,h):!1;const S=x.constructor;if(S!==y.constructor)return!1;if(S===Object)return u(x,y,h);if(Array.isArray(x))return t(x,y,h);if(S===Date)return n(x,y,h);if(S===RegExp)return f(x,y,h);if(S===Map)return o(x,y,h);if(S===Set)return c(x,y,h);const b=nW.call(x);if(b===GU)return n(x,y,h);if(b===ZU)return f(x,y,h);if(b===XU)return o(x,y,h);if(b===JU)return c(x,y,h);if(b===QU)return typeof x.then!="function"&&typeof y.then!="function"&&u(x,y,h);if(b===rW)return p(x,y,h);if(b===qU)return i(x,y,h);if(b===HU)return u(x,y,h);if(tW[b])return d(x,y,h);if(b===WU)return e(x,y,h);if(b===KU)return r(x,y,h);if(b===VU||b===YU||b===eW)return s(x,y,h);if(m){let w=m[b];if(!w){const O=EU(x);O&&(w=m[O])}if(w)return w(x,y,h)}return!1}}function aW({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:CU,areArraysEqual:r?Qa:MU,areDataViewsEqual:NU,areDatesEqual:IU,areErrorsEqual:DU,areFunctionsEqual:LU,areMapsEqual:r?qf(vb,Qa):vb,areNumbersEqual:RU,areObjectsEqual:r?Qa:BU,arePrimitiveWrappersEqual:zU,areRegExpsEqual:FU,areSetsEqual:r?qf(yb,Qa):yb,areTypedArraysEqual:r?qf(js,Qa):js,areUrlsEqual:UU,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=su(n.areArraysEqual),a=su(n.areMapsEqual),o=su(n.areObjectsEqual),l=su(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:l})}return n}function oW(e){return function(t,r,n,i,a,o,l){return e(t,r,l)}}function lW({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(l,u){const{cache:s=e?new WeakMap:void 0,meta:f}=r();return t(l,u,{cache:s,equals:n,meta:f,strict:i})};if(e)return function(l,u){return t(l,u,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(l,u){return t(l,u,a)}}const uW=Sn();Sn({strict:!0});Sn({circular:!0});Sn({circular:!0,strict:!0});Sn({createInternalComparator:()=>oi});Sn({strict:!0,createInternalComparator:()=>oi});Sn({circular:!0,createInternalComparator:()=>oi});Sn({circular:!0,createInternalComparator:()=>oi,strict:!0});function Sn(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=aW(e),o=iW(a),l=r?r(o):oW(o);return lW({circular:t,comparator:o,createState:n,equals:l,strict:i})}function sW(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function mb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):sW(i)};requestAnimationFrame(n)}function Fp(e){"@babel/helpers - typeof";return Fp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fp(e)}function cW(e){return hW(e)||pW(e)||dW(e)||fW()}function fW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
176
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dW(e,t){if(e){if(typeof e=="string")return gb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gb(e,t)}}function gb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function pW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hW(e){if(Array.isArray(e))return e}function vW(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,l=cW(o),u=l[0],s=l.slice(1);if(typeof u=="number"){mb(i.bind(null,s),u);return}i(u),mb(i.bind(null,s));return}Fp(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function al(e){"@babel/helpers - typeof";return al=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},al(e)}function bb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bb(Object(r),!0).forEach(function(n){v_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function v_(e,t,r){return t=yW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yW(e){var t=mW(e,"string");return al(t)==="symbol"?t:String(t)}function mW(e,t){if(al(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(al(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gW=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},bW=function(t){return t},xW=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},mo=function(t,r){return Object.keys(r).reduce(function(n,i){return xb(xb({},n),{},v_({},i,t(i,r[i])))},{})},wb=function(t,r,n){return t.map(function(i){return"".concat(xW(i)," ").concat(r,"ms ").concat(n)}).join(",")};function wW(e,t){return _W(e)||OW(e,t)||y_(e,t)||SW()}function SW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
177
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OW(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(f){s=!0,i=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}function _W(e){if(Array.isArray(e))return e}function PW(e){return $W(e)||EW(e)||y_(e)||AW()}function AW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
178
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y_(e,t){if(e){if(typeof e=="string")return Up(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Up(e,t)}}function EW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $W(e){if(Array.isArray(e))return Up(e)}function Up(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ts=1e-4,m_=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},g_=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},Sb=function(t,r){return function(n){var i=m_(t,r);return g_(i,n)}},jW=function(t,r){return function(n){var i=m_(t,r),a=[].concat(PW(i.map(function(o,l){return o*l}).slice(1)),[0]);return g_(a,n)}},Ob=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],l=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,l=1;break;case"ease":i=.25,a=.1,o=.25,l=1;break;case"ease-in":i=.42,a=0,o=1,l=1;break;case"ease-out":i=.42,a=0,o=.58,l=1;break;case"ease-in-out":i=0,a=0,o=.58,l=1;break;default:{var u=r[0].split("(");if(u[0]==="cubic-bezier"&&u[1].split(")")[0].split(",").length===4){var s=u[1].split(")")[0].split(",").map(function(x){return parseFloat(x)}),f=wW(s,4);i=f[0],a=f[1],o=f[2],l=f[3]}}}var c=Sb(i,o),d=Sb(a,l),p=jW(i,o),m=function(y){return y>1?1:y<0?0:y},v=function(y){for(var h=y>1?1:y,g=h,S=0;S<8;++S){var b=c(g)-h,w=p(g);if(Math.abs(b-h)<Ts||w<Ts)return d(g);g=m(g-b/w)}return d(g)};return v.isStepper=!1,v},TW=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,l=o===void 0?17:o,u=function(f,c,d){var p=-(f-c)*n,m=d*a,v=d+(p-m)*l/1e3,x=d*l/1e3+f;return Math.abs(x-c)<Ts&&Math.abs(v)<Ts?[c,0]:[x,v]};return u.isStepper=!0,u.dt=l,u},kW=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Ob(i);case"spring":return TW();default:if(i.split("(")[0]==="cubic-bezier")return Ob(i)}return typeof i=="function"?i:null};function ol(e){"@babel/helpers - typeof";return ol=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ol(e)}function _b(e){return NW(e)||MW(e)||b_(e)||CW()}function CW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
179
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function NW(e){if(Array.isArray(e))return Hp(e)}function Pb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pb(Object(r),!0).forEach(function(n){Wp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wp(e,t,r){return t=IW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IW(e){var t=DW(e,"string");return ol(t)==="symbol"?t:String(t)}function DW(e,t){if(ol(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ol(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LW(e,t){return zW(e)||BW(e,t)||b_(e,t)||RW()}function RW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
180
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b_(e,t){if(e){if(typeof e=="string")return Hp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hp(e,t)}}function Hp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function BW(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(f){s=!0,i=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}function zW(e){if(Array.isArray(e))return e}var ks=function(t,r,n){return t+(r-t)*n},Vp=function(t){var r=t.from,n=t.to;return r!==n},FW=function e(t,r,n){var i=mo(function(a,o){if(Vp(o)){var l=t(o.from,o.to,o.velocity),u=LW(l,2),s=u[0],f=u[1];return Ge(Ge({},o),{},{from:s,velocity:f})}return o},r);return n<1?mo(function(a,o){return Vp(o)?Ge(Ge({},o),{},{velocity:ks(o.velocity,i[a].velocity,n),from:ks(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const UW=function(e,t,r,n,i){var a=gW(e,t),o=a.reduce(function(x,y){return Ge(Ge({},x),{},Wp({},y,[e[y],t[y]]))},{}),l=a.reduce(function(x,y){return Ge(Ge({},x),{},Wp({},y,{from:e[y],velocity:0,to:t[y]}))},{}),u=-1,s,f,c=function(){return null},d=function(){return mo(function(y,h){return h.from},l)},p=function(){return!Object.values(l).filter(Vp).length},m=function(y){s||(s=y);var h=y-s,g=h/r.dt;l=FW(r,l,g),i(Ge(Ge(Ge({},e),t),d())),s=y,p()||(u=requestAnimationFrame(c))},v=function(y){f||(f=y);var h=(y-f)/n,g=mo(function(b,w){return ks.apply(void 0,_b(w).concat([r(h)]))},o);if(i(Ge(Ge(Ge({},e),t),g)),h<1)u=requestAnimationFrame(c);else{var S=mo(function(b,w){return ks.apply(void 0,_b(w).concat([r(1)]))},o);i(Ge(Ge(Ge({},e),t),S))}};return c=r.isStepper?m:v,function(){return requestAnimationFrame(c),function(){cancelAnimationFrame(u)}}};function ra(e){"@babel/helpers - typeof";return ra=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ra(e)}var WW=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function HW(e,t){if(e==null)return{};var r=VW(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function VW(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Xf(e){return XW(e)||qW(e)||GW(e)||KW()}function KW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
181
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GW(e,t){if(e){if(typeof e=="string")return Kp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Kp(e,t)}}function qW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function XW(e){if(Array.isArray(e))return Kp(e)}function Kp(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ab(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ab(Object(r),!0).forEach(function(n){no(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ab(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function no(e,t,r){return t=x_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QW(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,x_(n.key),n)}}function ZW(e,t,r){return t&&QW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function x_(e){var t=JW(e,"string");return ra(t)==="symbol"?t:String(t)}function JW(e,t){if(ra(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ra(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function e9(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gp(e,t)}function Gp(e,t){return Gp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gp(e,t)}function t9(e){var t=r9();return function(){var n=Cs(e),i;if(t){var a=Cs(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return qp(this,i)}}function qp(e,t){if(t&&(ra(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xp(e)}function Xp(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r9(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Cs(e){return Cs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Cs(e)}var gr=function(e){e9(r,e);var t=t9(r);function r(n,i){var a;YW(this,r),a=t.call(this,n,i);var o=a.props,l=o.isActive,u=o.attributeName,s=o.from,f=o.to,c=o.steps,d=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Xp(a)),a.changeStyle=a.changeStyle.bind(Xp(a)),!l||p<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:f}),qp(a);if(c&&c.length)a.state={style:c[0].style};else if(s){if(typeof d=="function")return a.state={style:s},qp(a);a.state={style:u?no({},u,s):s}}else a.state={style:{}};return a}return ZW(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,l=a.canBegin,u=a.attributeName,s=a.shouldReAnimate,f=a.to,c=a.from,d=this.state.style;if(l){if(!o){var p={style:u?no({},u,f):f};this.state&&d&&(u&&d[u]!==f||!u&&d!==f)&&this.setState(p);return}if(!(uW(i.to,f)&&i.canBegin&&i.isActive)){var m=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=m||s?c:i.to;if(this.state&&d){var x={style:u?no({},u,v):v};(u&&d[u]!==v||!u&&d!==v)&&this.setState(x)}this.runAnimation(Xt(Xt({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,l=i.to,u=i.duration,s=i.easing,f=i.begin,c=i.onAnimationEnd,d=i.onAnimationStart,p=UW(o,l,kW(s),u,this.changeStyle),m=function(){a.stopJSAnimation=p()};this.manager.start([d,f,m,u,c])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,l=i.begin,u=i.onAnimationStart,s=o[0],f=s.style,c=s.duration,d=c===void 0?0:c,p=function(v,x,y){if(y===0)return v;var h=x.duration,g=x.easing,S=g===void 0?"ease":g,b=x.style,w=x.properties,O=x.onAnimationEnd,_=y>0?o[y-1]:x,A=w||Object.keys(b);if(typeof S=="function"||S==="spring")return[].concat(Xf(v),[a.runJSAnimation.bind(a,{from:_.style,to:b,duration:h,easing:S}),h]);var j=wb(A,h,S),T=Xt(Xt(Xt({},_.style),b),{},{transition:j});return[].concat(Xf(v),[T,h,O]).filter(bW)};return this.manager.start([u].concat(Xf(o.reduce(p,[f,Math.max(d,l)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=vW());var a=i.begin,o=i.duration,l=i.attributeName,u=i.to,s=i.easing,f=i.onAnimationStart,c=i.onAnimationEnd,d=i.steps,p=i.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof s=="function"||typeof p=="function"||s==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var v=l?no({},l,u):u,x=wb(Object.keys(v),o,s);m.start([f,a,Xt(Xt({},v),{},{transition:x}),o,c])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var l=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var u=HW(i,WW),s=R.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!l||s===0||o<=0)return a;var c=function(p){var m=p.props,v=m.style,x=v===void 0?{}:v,y=m.className,h=R.cloneElement(p,Xt(Xt({},u),{},{style:Xt(Xt({},x),f),className:y}));return h};return s===1?c(R.Children.only(a)):E.createElement("div",null,R.Children.map(a,function(d){return c(d)}))}}]),r}(R.PureComponent);gr.displayName="Animate";gr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};gr.propTypes={from:ue.oneOfType([ue.object,ue.string]),to:ue.oneOfType([ue.object,ue.string]),attributeName:ue.string,duration:ue.number,begin:ue.number,easing:ue.oneOfType([ue.string,ue.func]),steps:ue.arrayOf(ue.shape({duration:ue.number.isRequired,style:ue.object.isRequired,easing:ue.oneOfType([ue.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ue.func]),properties:ue.arrayOf("string"),onAnimationEnd:ue.func})),children:ue.oneOfType([ue.node,ue.func]),isActive:ue.bool,canBegin:ue.bool,onAnimationEnd:ue.func,shouldReAnimate:ue.bool,onAnimationStart:ue.func,onAnimationReStart:ue.func};function ll(e){"@babel/helpers - typeof";return ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ll(e)}function Ms(){return Ms=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ms.apply(this,arguments)}function n9(e,t){return l9(e)||o9(e,t)||a9(e,t)||i9()}function i9(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
182
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a9(e,t){if(e){if(typeof e=="string")return Eb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Eb(e,t)}}function Eb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function o9(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(f){s=!0,i=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}function l9(e){if(Array.isArray(e))return e}function $b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$b(Object(r),!0).forEach(function(n){u9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$b(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function u9(e,t,r){return t=s9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s9(e){var t=c9(e,"string");return ll(t)=="symbol"?t:t+""}function c9(e,t){if(ll(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ll(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Tb=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),l=i>=0?1:-1,u=n>=0?1:-1,s=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var c=[0,0,0,0],d=0,p=4;d<p;d++)c[d]=a[d]>o?o:a[d];f="M".concat(t,",").concat(r+l*c[0]),c[0]>0&&(f+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(s,",").concat(t+u*c[0],",").concat(r)),f+="L ".concat(t+n-u*c[1],",").concat(r),c[1]>0&&(f+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(s,`,
|
|
183
|
+
`).concat(t+n,",").concat(r+l*c[1])),f+="L ".concat(t+n,",").concat(r+i-l*c[2]),c[2]>0&&(f+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(s,`,
|
|
184
|
+
`).concat(t+n-u*c[2],",").concat(r+i)),f+="L ".concat(t+u*c[3],",").concat(r+i),c[3]>0&&(f+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(s,`,
|
|
185
|
+
`).concat(t,",").concat(r+i-l*c[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var m=Math.min(o,a);f="M ".concat(t,",").concat(r+l*m,`
|
|
186
|
+
A `).concat(m,",").concat(m,",0,0,").concat(s,",").concat(t+u*m,",").concat(r,`
|
|
187
|
+
L `).concat(t+n-u*m,",").concat(r,`
|
|
188
|
+
A `).concat(m,",").concat(m,",0,0,").concat(s,",").concat(t+n,",").concat(r+l*m,`
|
|
189
|
+
L `).concat(t+n,",").concat(r+i-l*m,`
|
|
190
|
+
A `).concat(m,",").concat(m,",0,0,").concat(s,",").concat(t+n-u*m,",").concat(r+i,`
|
|
191
|
+
L `).concat(t+u*m,",").concat(r+i,`
|
|
192
|
+
A `).concat(m,",").concat(m,",0,0,").concat(s,",").concat(t,",").concat(r+i-l*m," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},f9=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,l=r.width,u=r.height;if(Math.abs(l)>0&&Math.abs(u)>0){var s=Math.min(a,a+l),f=Math.max(a,a+l),c=Math.min(o,o+u),d=Math.max(o,o+u);return n>=s&&n<=f&&i>=c&&i<=d}return!1},d9={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},dy=function(t){var r=jb(jb({},d9),t),n=R.useRef(),i=R.useState(-1),a=n9(i,2),o=a[0],l=a[1];R.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var S=n.current.getTotalLength();S&&l(S)}catch{}},[]);var u=r.x,s=r.y,f=r.width,c=r.height,d=r.radius,p=r.className,m=r.animationEasing,v=r.animationDuration,x=r.animationBegin,y=r.isAnimationActive,h=r.isUpdateAnimationActive;if(u!==+u||s!==+s||f!==+f||c!==+c||f===0||c===0)return null;var g=ne("recharts-rectangle",p);return h?E.createElement(gr,{canBegin:o>0,from:{width:f,height:c,x:u,y:s},to:{width:f,height:c,x:u,y:s},duration:v,animationEasing:m,isActive:h},function(S){var b=S.width,w=S.height,O=S.x,_=S.y;return E.createElement(gr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:v,isActive:y,easing:m},E.createElement("path",Ms({},J(r,!0),{className:g,d:Tb(O,_,b,w,d),ref:n})))}):E.createElement("path",Ms({},J(r,!0),{className:g,d:Tb(u,s,f,c,d)}))};function Yp(){return Yp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yp.apply(this,arguments)}var Hc=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=ne("recharts-dot",a);return r===+r&&n===+n&&i===+i?R.createElement("circle",Yp({},J(t,!1),Xu(t),{className:o,cx:r,cy:n,r:i})):null};function ul(e){"@babel/helpers - typeof";return ul=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ul(e)}var p9=["x","y","top","left","width","height","className"];function Qp(){return Qp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qp.apply(this,arguments)}function kb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function h9(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kb(Object(r),!0).forEach(function(n){v9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function v9(e,t,r){return t=y9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y9(e){var t=m9(e,"string");return ul(t)=="symbol"?t:t+""}function m9(e,t){if(ul(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ul(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function g9(e,t){if(e==null)return{};var r=b9(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function b9(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var x9=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},w9=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,l=o===void 0?0:o,u=t.left,s=u===void 0?0:u,f=t.width,c=f===void 0?0:f,d=t.height,p=d===void 0?0:d,m=t.className,v=g9(t,p9),x=h9({x:n,y:a,top:l,left:s,width:c,height:p},v);return!H(n)||!H(a)||!H(c)||!H(p)||!H(l)||!H(s)?null:E.createElement("path",Qp({},J(x,!0),{className:ne("recharts-cross",m),d:x9(n,a,c,p,l,s)}))},S9=IS,O9=S9(Object.getPrototypeOf,Object),_9=O9,P9=Fr,A9=_9,E9=Ur,$9="[object Object]",j9=Function.prototype,T9=Object.prototype,w_=j9.toString,k9=T9.hasOwnProperty,C9=w_.call(Object);function M9(e){if(!E9(e)||P9(e)!=$9)return!1;var t=A9(e);if(t===null)return!0;var r=k9.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&w_.call(r)==C9}var N9=M9;const I9=pe(N9);var D9=Fr,L9=Ur,R9="[object Boolean]";function B9(e){return e===!0||e===!1||L9(e)&&D9(e)==R9}var z9=B9;const F9=pe(z9);function sl(e){"@babel/helpers - typeof";return sl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sl(e)}function Ns(){return Ns=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ns.apply(this,arguments)}function U9(e,t){return K9(e)||V9(e,t)||H9(e,t)||W9()}function W9(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
193
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H9(e,t){if(e){if(typeof e=="string")return Cb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cb(e,t)}}function Cb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function V9(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(f){s=!0,i=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}function K9(e){if(Array.isArray(e))return e}function Mb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mb(Object(r),!0).forEach(function(n){G9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function G9(e,t,r){return t=q9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q9(e){var t=X9(e,"string");return sl(t)=="symbol"?t:t+""}function X9(e,t){if(sl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(sl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ib=function(t,r,n,i,a){var o=n-i,l;return l="M ".concat(t,",").concat(r),l+="L ".concat(t+n,",").concat(r),l+="L ".concat(t+n-o/2,",").concat(r+a),l+="L ".concat(t+n-o/2-i,",").concat(r+a),l+="L ".concat(t,",").concat(r," Z"),l},Y9={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Q9=function(t){var r=Nb(Nb({},Y9),t),n=R.useRef(),i=R.useState(-1),a=U9(i,2),o=a[0],l=a[1];R.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var g=n.current.getTotalLength();g&&l(g)}catch{}},[]);var u=r.x,s=r.y,f=r.upperWidth,c=r.lowerWidth,d=r.height,p=r.className,m=r.animationEasing,v=r.animationDuration,x=r.animationBegin,y=r.isUpdateAnimationActive;if(u!==+u||s!==+s||f!==+f||c!==+c||d!==+d||f===0&&c===0||d===0)return null;var h=ne("recharts-trapezoid",p);return y?E.createElement(gr,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:u,y:s},to:{upperWidth:f,lowerWidth:c,height:d,x:u,y:s},duration:v,animationEasing:m,isActive:y},function(g){var S=g.upperWidth,b=g.lowerWidth,w=g.height,O=g.x,_=g.y;return E.createElement(gr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:x,duration:v,easing:m},E.createElement("path",Ns({},J(r,!0),{className:h,d:Ib(O,_,S,b,w),ref:n})))}):E.createElement("g",null,E.createElement("path",Ns({},J(r,!0),{className:h,d:Ib(u,s,f,c,d)})))},Z9=["option","shapeType","propTransformer","activeClassName","isActive"];function cl(e){"@babel/helpers - typeof";return cl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cl(e)}function J9(e,t){if(e==null)return{};var r=e7(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function e7(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Db(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Is(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Db(Object(r),!0).forEach(function(n){t7(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Db(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function t7(e,t,r){return t=r7(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r7(e){var t=n7(e,"string");return cl(t)=="symbol"?t:t+""}function n7(e,t){if(cl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function i7(e,t){return Is(Is({},t),e)}function a7(e,t){return e==="symbols"}function Lb(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return E.createElement(dy,r);case"trapezoid":return E.createElement(Q9,r);case"sector":return E.createElement(c_,r);case"symbols":if(a7(t))return E.createElement(kv,r);break;default:return null}}function o7(e){return R.isValidElement(e)?e.props:e}function l7(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?i7:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,l=e.isActive,u=J9(e,Z9),s;if(R.isValidElement(t))s=R.cloneElement(t,Is(Is({},u),o7(t)));else if(Q(t))s=t(u);else if(I9(t)&&!F9(t)){var f=i(t,u);s=E.createElement(Lb,{shapeType:r,elementProps:f})}else{var c=u;s=E.createElement(Lb,{shapeType:r,elementProps:c})}return l?E.createElement(ye,{className:o},s):s}function Vc(e,t){return t!=null&&"trapezoids"in e.props}function Kc(e,t){return t!=null&&"sectors"in e.props}function fl(e,t){return t!=null&&"points"in e.props}function u7(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function s7(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function c7(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function f7(e,t){var r;return Vc(e,t)?r=u7:Kc(e,t)?r=s7:fl(e,t)&&(r=c7),r}function d7(e,t){var r;return Vc(e,t)?r="trapezoids":Kc(e,t)?r="sectors":fl(e,t)&&(r="points"),r}function p7(e,t){if(Vc(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(Kc(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return fl(e,t)?t.payload:{}}function h7(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=d7(r,t),a=p7(r,t),o=n.filter(function(u,s){var f=ea(a,u),c=r.props[i].filter(function(m){var v=f7(r,t);return v(m,t)}),d=r.props[i].indexOf(c[c.length-1]),p=s===d;return f&&p}),l=n.indexOf(o[o.length-1]);return l}var v7=Math.ceil,y7=Math.max;function m7(e,t,r,n){for(var i=-1,a=y7(v7((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var g7=m7,b7=eO,Rb=1/0,x7=17976931348623157e292;function w7(e){if(!e)return e===0?e:0;if(e=b7(e),e===Rb||e===-Rb){var t=e<0?-1:1;return t*x7}return e===e?e:0}var S_=w7,S7=g7,O7=Nc,Yf=S_;function _7(e){return function(t,r,n){return n&&typeof n!="number"&&O7(t,r,n)&&(r=n=void 0),t=Yf(t),r===void 0?(r=t,t=0):r=Yf(r),n=n===void 0?t<r?1:-1:Yf(n),S7(t,r,n,e)}}var P7=_7,A7=P7,E7=A7(),$7=E7;const Ds=pe($7);function dl(e){"@babel/helpers - typeof";return dl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dl(e)}function Bb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bb(Object(r),!0).forEach(function(n){O_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function O_(e,t,r){return t=j7(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j7(e){var t=T7(e,"string");return dl(t)=="symbol"?t:t+""}function T7(e,t){if(dl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var k7=["Webkit","Moz","O","ms"],C7=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=k7.reduce(function(a,o){return zb(zb({},a),{},O_({},o+n,r))},{});return i[t]=r,i};function na(e){"@babel/helpers - typeof";return na=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},na(e)}function Ls(){return Ls=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ls.apply(this,arguments)}function Fb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fb(Object(r),!0).forEach(function(n){Ot(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function M7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ub(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,P_(n.key),n)}}function N7(e,t,r){return t&&Ub(e.prototype,t),r&&Ub(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function I7(e,t,r){return t=Rs(t),D7(e,__()?Reflect.construct(t,r||[],Rs(e).constructor):t.apply(e,r))}function D7(e,t){if(t&&(na(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return L7(e)}function L7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function __(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(__=function(){return!!e})()}function Rs(e){return Rs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Rs(e)}function R7(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zp(e,t)}function Zp(e,t){return Zp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zp(e,t)}function Ot(e,t,r){return t=P_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P_(e){var t=B7(e,"string");return na(t)=="symbol"?t:t+""}function B7(e,t){if(na(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(na(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var z7=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,l=t.travellerWidth;if(!r||!r.length)return{};var u=r.length,s=vo().domain(Ds(0,u)).range([a,a+o-l]),f=s.domain().map(function(c){return s(c)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:s(n),endX:s(i),scale:s,scaleValues:f}},Wb=function(t){return t.changedTouches&&!!t.changedTouches.length},ia=function(e){function t(r){var n;return M7(this,t),n=I7(this,t,[r]),Ot(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Ot(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Ot(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,l=i.startIndex;o==null||o({endIndex:a,startIndex:l})}),n.detachDragEndListener()}),Ot(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Ot(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Ot(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Ot(n,"handleSlideDragStart",function(i){var a=Wb(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return R7(t,e),N7(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,l=this.props,u=l.gap,s=l.data,f=s.length-1,c=Math.min(i,a),d=Math.max(i,a),p=t.getIndexInRange(o,c),m=t.getIndexInRange(o,d);return{startIndex:p-p%u,endIndex:m===f?f:m-m%u}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,l=i.dataKey,u=ct(a[n],l,n);return Q(o)?o(u,n):u}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,l=i.endX,u=this.props,s=u.x,f=u.width,c=u.travellerWidth,d=u.startIndex,p=u.endIndex,m=u.onChange,v=n.pageX-a;v>0?v=Math.min(v,s+f-c-l,s+f-c-o):v<0&&(v=Math.max(v,s-o,s-l));var x=this.getIndex({startX:o+v,endX:l+v});(x.startIndex!==d||x.endIndex!==p)&&m&&m(x),this.setState({startX:o+v,endX:l+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=Wb(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,l=i.endX,u=i.startX,s=this.state[o],f=this.props,c=f.x,d=f.width,p=f.travellerWidth,m=f.onChange,v=f.gap,x=f.data,y={startX:this.state.startX,endX:this.state.endX},h=n.pageX-a;h>0?h=Math.min(h,c+d-p-s):h<0&&(h=Math.max(h,c-s)),y[o]=s+h;var g=this.getIndex(y),S=g.startIndex,b=g.endIndex,w=function(){var _=x.length-1;return o==="startX"&&(l>u?S%v===0:b%v===0)||l<u&&b===_||o==="endX"&&(l>u?b%v===0:S%v===0)||l>u&&b===_};this.setState(Ot(Ot({},o,s+h),"brushMoveStartX",n.pageX),function(){m&&w()&&m(g)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,l=o.scaleValues,u=o.startX,s=o.endX,f=this.state[i],c=l.indexOf(f);if(c!==-1){var d=c+n;if(!(d===-1||d>=l.length)){var p=l[d];i==="startX"&&p>=s||i==="endX"&&p<=u||this.setState(Ot({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,l=n.height,u=n.fill,s=n.stroke;return E.createElement("rect",{stroke:s,fill:u,x:i,y:a,width:o,height:l})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,l=n.height,u=n.data,s=n.children,f=n.padding,c=R.Children.only(s);return c?E.cloneElement(c,{x:i,y:a,width:o,height:l,margin:f,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,l=this,u=this.props,s=u.y,f=u.travellerWidth,c=u.height,d=u.traveller,p=u.ariaLabel,m=u.data,v=u.startIndex,x=u.endIndex,y=Math.max(n,this.props.x),h=Qf(Qf({},J(this.props,!1)),{},{x:y,y:s,width:f,height:c}),g=p||"Min value: ".concat((a=m[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=m[x])===null||o===void 0?void 0:o.name);return E.createElement(ye,{tabIndex:0,role:"slider","aria-label":g,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(b){["ArrowLeft","ArrowRight"].includes(b.key)&&(b.preventDefault(),b.stopPropagation(),l.handleTravellerMoveKeyboard(b.key==="ArrowRight"?1:-1,i))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,h))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,l=a.height,u=a.stroke,s=a.travellerWidth,f=Math.min(n,i)+s,c=Math.max(Math.abs(i-n)-s,0);return E.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:u,fillOpacity:.2,x:f,y:o,width:c,height:l})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,l=n.height,u=n.travellerWidth,s=n.stroke,f=this.state,c=f.startX,d=f.endX,p=5,m={pointerEvents:"none",fill:s};return E.createElement(ye,{className:"recharts-brush-texts"},E.createElement(cs,Ls({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,d)-p,y:o+l/2},m),this.getTextOfTick(i)),E.createElement(cs,Ls({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,d)+u+p,y:o+l/2},m),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,l=n.x,u=n.y,s=n.width,f=n.height,c=n.alwaysShowText,d=this.state,p=d.startX,m=d.endX,v=d.isTextActive,x=d.isSlideMoving,y=d.isTravellerMoving,h=d.isTravellerFocused;if(!i||!i.length||!H(l)||!H(u)||!H(s)||!H(f)||s<=0||f<=0)return null;var g=ne("recharts-brush",a),S=E.Children.count(o)===1,b=C7("userSelect","none");return E.createElement(ye,{className:g,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(p,m),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(m,"endX"),(v||x||y||h||c)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,l=n.height,u=n.stroke,s=Math.floor(a+l/2)-1;return E.createElement(E.Fragment,null,E.createElement("rect",{x:i,y:a,width:o,height:l,fill:u,stroke:"none"}),E.createElement("line",{x1:i+1,y1:s,x2:i+o-1,y2:s,fill:"none",stroke:"#fff"}),E.createElement("line",{x1:i+1,y1:s+2,x2:i+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return E.isValidElement(n)?a=E.cloneElement(n,i):Q(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,l=n.x,u=n.travellerWidth,s=n.updateId,f=n.startIndex,c=n.endIndex;if(a!==i.prevData||s!==i.prevUpdateId)return Qf({prevData:a,prevTravellerWidth:u,prevUpdateId:s,prevX:l,prevWidth:o},a&&a.length?z7({data:a,width:o,x:l,travellerWidth:u,startIndex:f,endIndex:c}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||l!==i.prevX||u!==i.prevTravellerWidth)){i.scale.range([l,l+o-u]);var d=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:u,prevUpdateId:s,prevX:l,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,l=a-1;l-o>1;){var u=Math.floor((o+l)/2);n[u]>i?l=u:o=u}return i>=n[l]?l:o}}])}(R.PureComponent);Ot(ia,"displayName","Brush");Ot(ia,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var F7=Rv;function U7(e,t){var r;return F7(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var W7=U7,H7=ES,V7=bn,K7=W7,G7=wt,q7=Nc;function X7(e,t,r){var n=G7(e)?H7:K7;return r&&q7(e,t,r)&&(t=void 0),n(e,V7(t))}var Y7=X7;const Q7=pe(Y7);var yr=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Hb=XS;function Z7(e,t,r){t=="__proto__"&&Hb?Hb(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var J7=Z7,eH=J7,tH=GS,rH=bn;function nH(e,t){var r={};return t=rH(t),tH(e,function(n,i,a){eH(r,i,t(n,i,a))}),r}var iH=nH;const aH=pe(iH);function oH(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}var lH=oH,uH=Rv;function sH(e,t){var r=!0;return uH(e,function(n,i,a){return r=!!t(n,i,a),r}),r}var cH=sH,fH=lH,dH=cH,pH=bn,hH=wt,vH=Nc;function yH(e,t,r){var n=hH(e)?fH:dH;return r&&vH(e,t,r)&&(t=void 0),n(e,pH(t))}var mH=yH;const A_=pe(mH);var gH=["x","y"];function pl(e){"@babel/helpers - typeof";return pl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pl(e)}function Jp(){return Jp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jp.apply(this,arguments)}function Vb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Za(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vb(Object(r),!0).forEach(function(n){bH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bH(e,t,r){return t=xH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xH(e){var t=wH(e,"string");return pl(t)=="symbol"?t:t+""}function wH(e,t){if(pl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SH(e,t){if(e==null)return{};var r=OH(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function OH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function _H(e,t){var r=e.x,n=e.y,i=SH(e,gH),a="".concat(r),o=parseInt(a,10),l="".concat(n),u=parseInt(l,10),s="".concat(t.height||i.height),f=parseInt(s,10),c="".concat(t.width||i.width),d=parseInt(c,10);return Za(Za(Za(Za(Za({},t),i),o?{x:o}:{}),u?{y:u}:{}),{},{height:f,width:d,name:t.name,radius:t.radius})}function Kb(e){return E.createElement(l7,Jp({shapeType:"rectangle",propTransformer:_H,activeClassName:"recharts-active-bar"},e))}var PH=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=H(n)||BT(n);return a?t(n,i):(a||Zn(),r)}},AH=["value","background"],E_;function aa(e){"@babel/helpers - typeof";return aa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},aa(e)}function EH(e,t){if(e==null)return{};var r=$H(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $H(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Bs(){return Bs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bs.apply(this,arguments)}function Gb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ce(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Gb(Object(r),!0).forEach(function(n){rn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,j_(n.key),n)}}function TH(e,t,r){return t&&qb(e.prototype,t),r&&qb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function kH(e,t,r){return t=zs(t),CH(e,$_()?Reflect.construct(t,r||[],zs(e).constructor):t.apply(e,r))}function CH(e,t){if(t&&(aa(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return MH(e)}function MH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($_=function(){return!!e})()}function zs(e){return zs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zs(e)}function NH(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eh(e,t)}function eh(e,t){return eh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},eh(e,t)}function rn(e,t,r){return t=j_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j_(e){var t=IH(e,"string");return aa(t)=="symbol"?t:t+""}function IH(e,t){if(aa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(aa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Tl=function(e){function t(){var r;jH(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=kH(this,t,[].concat(i)),rn(r,"state",{isAnimationFinished:!1}),rn(r,"id",Ea("recharts-bar-")),rn(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),rn(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return NH(t,e),TH(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,l=a.dataKey,u=a.activeIndex,s=a.activeBar,f=J(this.props,!1);return n&&n.map(function(c,d){var p=d===u,m=p?s:o,v=Ce(Ce(Ce({},f),c),{},{isActive:p,option:m,index:d,dataKey:l,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return E.createElement(ye,Bs({className:"recharts-bar-rectangle"},Yu(i.props,c,d),{key:"rectangle-".concat(c==null?void 0:c.x,"-").concat(c==null?void 0:c.y,"-").concat(c==null?void 0:c.value,"-").concat(d)}),E.createElement(Kb,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,l=i.isAnimationActive,u=i.animationBegin,s=i.animationDuration,f=i.animationEasing,c=i.animationId,d=this.state.prevData;return E.createElement(gr,{begin:u,duration:s,isActive:l,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var m=p.t,v=a.map(function(x,y){var h=d&&d[y];if(h){var g=Xe(h.x,x.x),S=Xe(h.y,x.y),b=Xe(h.width,x.width),w=Xe(h.height,x.height);return Ce(Ce({},x),{},{x:g(m),y:S(m),width:b(m),height:w(m)})}if(o==="horizontal"){var O=Xe(0,x.height),_=O(m);return Ce(Ce({},x),{},{y:x.y+x.height-_,height:_})}var A=Xe(0,x.width),j=A(m);return Ce(Ce({},x),{},{width:j})});return E.createElement(ye,null,n.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!ea(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,l=i.activeIndex,u=J(this.props.background,!1);return a.map(function(s,f){s.value;var c=s.background,d=EH(s,AH);if(!c)return null;var p=Ce(Ce(Ce(Ce(Ce({},d),{},{fill:"#eee"},c),u),Yu(n.props,s,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return E.createElement(Kb,Bs({key:"background-bar-".concat(f),option:n.props.background,isActive:f===l},p))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,l=a.xAxis,u=a.yAxis,s=a.layout,f=a.children,c=Ut(f,jl);if(!c)return null;var d=s==="vertical"?o[0].height/2:o[0].width/2,p=function(x,y){var h=Array.isArray(x.value)?x.value[1]:x.value;return{x:x.x,y:x.y,value:h,errorVal:ct(x,y)}},m={clipPath:n?"url(#clipPath-".concat(i,")"):null};return E.createElement(ye,m,c.map(function(v){return E.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:l,yAxis:u,layout:s,offset:d,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,l=n.xAxis,u=n.yAxis,s=n.left,f=n.top,c=n.width,d=n.height,p=n.isAnimationActive,m=n.background,v=n.id;if(i||!a||!a.length)return null;var x=this.state.isAnimationFinished,y=ne("recharts-bar",o),h=l&&l.allowDataOverflow,g=u&&u.allowDataOverflow,S=h||g,b=te(v)?this.id:v;return E.createElement(ye,{className:y},h||g?E.createElement("defs",null,E.createElement("clipPath",{id:"clipPath-".concat(b)},E.createElement("rect",{x:h?s:s-c/2,y:g?f:f-d/2,width:h?c:c*2,height:g?d:d*2}))):null,E.createElement(ye,{className:"recharts-bar-rectangles",clipPath:S?"url(#clipPath-".concat(b,")"):null},m?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(S,b),(!p||x)&&Cr.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])}(R.PureComponent);E_=Tl;rn(Tl,"displayName","Bar");rn(Tl,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!ni.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});rn(Tl,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,l=e.xAxisTicks,u=e.yAxisTicks,s=e.stackedData,f=e.dataStartIndex,c=e.displayedData,d=e.offset,p=lF(n,r);if(!p)return null;var m=t.layout,v=r.type.defaultProps,x=v!==void 0?Ce(Ce({},v),r.props):r.props,y=x.dataKey,h=x.children,g=x.minPointSize,S=m==="horizontal"?o:a,b=s?S.scale.domain():null,w=vF({numericAxis:S}),O=Ut(h,rO),_=c.map(function(A,j){var T,$,I,N,C,D;s?T=uF(s[f+j],b):(T=ct(A,y),Array.isArray(T)||(T=[w,T]));var z=PH(g,E_.defaultProps.minPointSize)(T[1],j);if(m==="horizontal"){var k,L=[o.scale(T[0]),o.scale(T[1])],B=L[0],V=L[1];$=Y0({axis:a,ticks:l,bandSize:i,offset:p.offset,entry:A,index:j}),I=(k=V??B)!==null&&k!==void 0?k:void 0,N=p.size;var W=B-V;if(C=Number.isNaN(W)?0:W,D={x:$,y:o.y,width:N,height:o.height},Math.abs(z)>0&&Math.abs(C)<Math.abs(z)){var X=nr(C||z)*(Math.abs(z)-Math.abs(C));I-=X,C+=X}}else{var ie=[a.scale(T[0]),a.scale(T[1])],we=ie[0],Te=ie[1];if($=we,I=Y0({axis:o,ticks:u,bandSize:i,offset:p.offset,entry:A,index:j}),N=Te-we,C=p.size,D={x:a.x,y:I,width:a.width,height:C},Math.abs(z)>0&&Math.abs(N)<Math.abs(z)){var Ct=nr(N||z)*(Math.abs(z)-Math.abs(N));N+=Ct}}return Ce(Ce(Ce({},A),{},{x:$,y:I,width:N,height:C,value:s?T:T[1],payload:A,background:D},O&&O[j]&&O[j].props),{},{tooltipPayload:[l_(r,A)],tooltipPosition:{x:$+N/2,y:I+C/2}})});return Ce({data:_,layout:m},d)});function hl(e){"@babel/helpers - typeof";return hl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hl(e)}function DH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,T_(n.key),n)}}function LH(e,t,r){return t&&Xb(e.prototype,t),r&&Xb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Yb(Object(r),!0).forEach(function(n){Gc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gc(e,t,r){return t=T_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T_(e){var t=RH(e,"string");return hl(t)=="symbol"?t:t+""}function RH(e,t){if(hl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var k_=function(t,r,n,i,a){var o=t.width,l=t.height,u=t.layout,s=t.children,f=Object.keys(r),c={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:l-n.bottom,bottomMirror:l-n.bottom},d=!!Pt(s,Tl);return f.reduce(function(p,m){var v=r[m],x=v.orientation,y=v.domain,h=v.padding,g=h===void 0?{}:h,S=v.mirror,b=v.reversed,w="".concat(x).concat(S?"Mirror":""),O,_,A,j,T;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var $=y[1]-y[0],I=1/0,N=v.categoricalDomain.sort(UT);if(N.forEach(function(ie,we){we>0&&(I=Math.min((ie||0)-(N[we-1]||0),I))}),Number.isFinite(I)){var C=I/$,D=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(O=C*D/2),v.padding==="no-gap"){var z=Yn(t.barCategoryGap,C*D),k=C*D/2;O=k-z-(k-z)/D*z}}}i==="xAxis"?_=[n.left+(g.left||0)+(O||0),n.left+n.width-(g.right||0)-(O||0)]:i==="yAxis"?_=u==="horizontal"?[n.top+n.height-(g.bottom||0),n.top+(g.top||0)]:[n.top+(g.top||0)+(O||0),n.top+n.height-(g.bottom||0)-(O||0)]:_=v.range,b&&(_=[_[1],_[0]]);var L=aF(v,a,d),B=L.scale,V=L.realScaleType;B.domain(y).range(_),oF(B);var W=hF(B,Jt(Jt({},v),{},{realScaleType:V}));i==="xAxis"?(T=x==="top"&&!S||x==="bottom"&&S,A=n.left,j=c[w]-T*v.height):i==="yAxis"&&(T=x==="left"&&!S||x==="right"&&S,A=c[w]-T*v.width,j=n.top);var X=Jt(Jt(Jt({},v),W),{},{realScaleType:V,x:A,y:j,scale:B,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return X.bandSize=As(X,W),!v.hide&&i==="xAxis"?c[w]+=(T?-1:1)*X.height:v.hide||(c[w]+=(T?-1:1)*X.width),Jt(Jt({},p),{},Gc({},m,X))},{})},C_=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},BH=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return C_({x:r,y:n},{x:i,y:a})},M_=function(){function e(t){DH(this,e),this.scale=t}return LH(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(r)+l}default:return this.scale(r)}if(i){var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+u}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])}();Gc(M_,"EPS",1e-4);var py=function(t){var r=Object.keys(t).reduce(function(n,i){return Jt(Jt({},n),{},Gc({},i,M_.create(t[i])))},{});return Jt(Jt({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,l=a.position;return aH(i,function(u,s){return r[s].apply(u,{bandAware:o,position:l})})},isInRange:function(i){return A_(i,function(a,o){return r[o].isInRange(a)})}})};function zH(e){return(e%180+180)%180}var FH=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=zH(i),o=a*Math.PI/180,l=Math.atan(n/r),u=o>l&&o<Math.PI-l?n/Math.sin(o):r/Math.cos(o);return Math.abs(u)},UH=bn,WH=_l,HH=Cc;function VH(e){return function(t,r,n){var i=Object(t);if(!WH(t)){var a=UH(r);t=HH(t),r=function(l){return a(i[l],l,i)}}var o=e(t,r,n);return o>-1?i[a?t[o]:o]:void 0}}var KH=VH,GH=S_;function qH(e){var t=GH(e),r=t%1;return t===t?r?t-r:t:0}var XH=qH,YH=FS,QH=bn,ZH=XH,JH=Math.max;function eV(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:ZH(r);return i<0&&(i=JH(n+i,0)),YH(e,QH(t),i)}var tV=eV,rV=KH,nV=tV,iV=rV(nV),aV=iV;const oV=pe(aV);var lV=V2(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),hy=R.createContext(void 0),vy=R.createContext(void 0),N_=R.createContext(void 0),I_=R.createContext({}),D_=R.createContext(void 0),L_=R.createContext(0),R_=R.createContext(0),Qb=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,l=t.children,u=t.width,s=t.height,f=lV(a);return E.createElement(hy.Provider,{value:n},E.createElement(vy.Provider,{value:i},E.createElement(I_.Provider,{value:a},E.createElement(N_.Provider,{value:f},E.createElement(D_.Provider,{value:o},E.createElement(L_.Provider,{value:s},E.createElement(R_.Provider,{value:u},l)))))))},uV=function(){return R.useContext(D_)},B_=function(t){var r=R.useContext(hy);r==null&&Zn();var n=r[t];return n==null&&Zn(),n},sV=function(){var t=R.useContext(hy);return Zr(t)},cV=function(){var t=R.useContext(vy),r=oV(t,function(n){return A_(n.domain,Number.isFinite)});return r||Zr(t)},z_=function(t){var r=R.useContext(vy);r==null&&Zn();var n=r[t];return n==null&&Zn(),n},fV=function(){var t=R.useContext(N_);return t},dV=function(){return R.useContext(I_)},yy=function(){return R.useContext(R_)},my=function(){return R.useContext(L_)};function oa(e){"@babel/helpers - typeof";return oa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oa(e)}function pV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,U_(n.key),n)}}function vV(e,t,r){return t&&hV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yV(e,t,r){return t=Fs(t),mV(e,F_()?Reflect.construct(t,r||[],Fs(e).constructor):t.apply(e,r))}function mV(e,t){if(t&&(oa(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gV(e)}function gV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F_=function(){return!!e})()}function Fs(e){return Fs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fs(e)}function bV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&th(e,t)}function th(e,t){return th=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},th(e,t)}function Zb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zb(Object(r),!0).forEach(function(n){gy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gy(e,t,r){return t=U_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U_(e){var t=xV(e,"string");return oa(t)=="symbol"?t:t+""}function xV(e,t){if(oa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(oa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function wV(e,t){return PV(e)||_V(e,t)||OV(e,t)||SV()}function SV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
194
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OV(e,t){if(e){if(typeof e=="string")return ex(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ex(e,t)}}function ex(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _V(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(f){s=!0,i=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}function PV(e){if(Array.isArray(e))return e}function rh(){return rh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rh.apply(this,arguments)}var AV=function(t,r){var n;return E.isValidElement(t)?n=E.cloneElement(t,r):Q(t)?n=t(r):n=E.createElement("line",rh({},r,{className:"recharts-reference-line-line"})),n},EV=function(t,r,n,i,a,o,l,u,s){var f=a.x,c=a.y,d=a.width,p=a.height;if(n){var m=s.y,v=t.y.apply(m,{position:o});if(yr(s,"discard")&&!t.y.isInRange(v))return null;var x=[{x:f+d,y:v},{x:f,y:v}];return u==="left"?x.reverse():x}if(r){var y=s.x,h=t.x.apply(y,{position:o});if(yr(s,"discard")&&!t.x.isInRange(h))return null;var g=[{x:h,y:c+p},{x:h,y:c}];return l==="top"?g.reverse():g}if(i){var S=s.segment,b=S.map(function(w){return t.apply(w,{position:o})});return yr(s,"discard")&&Q7(b,function(w){return!t.isInRange(w)})?null:b}return null};function $V(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,l=e.className,u=e.alwaysShow,s=uV(),f=B_(i),c=z_(a),d=fV();if(!s||!d)return null;Tr(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=py({x:f.scale,y:c.scale}),m=Fe(t),v=Fe(r),x=n&&n.length===2,y=EV(p,m,v,x,d,e.position,f.orientation,c.orientation,e);if(!y)return null;var h=wV(y,2),g=h[0],S=g.x,b=g.y,w=h[1],O=w.x,_=w.y,A=yr(e,"hidden")?"url(#".concat(s,")"):void 0,j=Jb(Jb({clipPath:A},J(e,!0)),{},{x1:S,y1:b,x2:O,y2:_});return E.createElement(ye,{className:ne("recharts-reference-line",l)},AV(o,j),nt.renderCallByParent(e,BH({x1:S,y1:b,x2:O,y2:_})))}var by=function(e){function t(){return pV(this,t),yV(this,t,arguments)}return bV(t,e),vV(t,[{key:"render",value:function(){return E.createElement($V,this.props)}}])}(E.Component);gy(by,"displayName","ReferenceLine");gy(by,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function nh(){return nh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nh.apply(this,arguments)}function la(e){"@babel/helpers - typeof";return la=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},la(e)}function tx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tx(Object(r),!0).forEach(function(n){qc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,H_(n.key),n)}}function kV(e,t,r){return t&&TV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function CV(e,t,r){return t=Us(t),MV(e,W_()?Reflect.construct(t,r||[],Us(e).constructor):t.apply(e,r))}function MV(e,t){if(t&&(la(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return NV(e)}function NV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(W_=function(){return!!e})()}function Us(e){return Us=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Us(e)}function IV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ih(e,t)}function ih(e,t){return ih=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ih(e,t)}function qc(e,t,r){return t=H_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H_(e){var t=DV(e,"string");return la(t)=="symbol"?t:t+""}function DV(e,t){if(la(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(la(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var LV=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=py({x:i.scale,y:a.scale}),l=o.apply({x:r,y:n},{bandAware:!0});return yr(t,"discard")&&!o.isInRange(l)?null:l},Xc=function(e){function t(){return jV(this,t),CV(this,t,arguments)}return IV(t,e),kV(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,l=n.alwaysShow,u=n.clipPathId,s=Fe(i),f=Fe(a);if(Tr(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!f)return null;var c=LV(this.props);if(!c)return null;var d=c.x,p=c.y,m=this.props,v=m.shape,x=m.className,y=yr(this.props,"hidden")?"url(#".concat(u,")"):void 0,h=rx(rx({clipPath:y},J(this.props,!0)),{},{cx:d,cy:p});return E.createElement(ye,{className:ne("recharts-reference-dot",x)},t.renderDot(v,h),nt.renderCallByParent(this.props,{x:d-o,y:p-o,width:2*o,height:2*o}))}}])}(E.Component);qc(Xc,"displayName","ReferenceDot");qc(Xc,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});qc(Xc,"renderDot",function(e,t){var r;return E.isValidElement(e)?r=E.cloneElement(e,t):Q(e)?r=e(t):r=E.createElement(Hc,nh({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function ah(){return ah=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ah.apply(this,arguments)}function ua(e){"@babel/helpers - typeof";return ua=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ua(e)}function nx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ix(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nx(Object(r),!0).forEach(function(n){Yc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BV(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,K_(n.key),n)}}function zV(e,t,r){return t&&BV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function FV(e,t,r){return t=Ws(t),UV(e,V_()?Reflect.construct(t,r||[],Ws(e).constructor):t.apply(e,r))}function UV(e,t){if(t&&(ua(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return WV(e)}function WV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(V_=function(){return!!e})()}function Ws(e){return Ws=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ws(e)}function HV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oh(e,t)}function oh(e,t){return oh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},oh(e,t)}function Yc(e,t,r){return t=K_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K_(e){var t=VV(e,"string");return ua(t)=="symbol"?t:t+""}function VV(e,t){if(ua(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ua(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var KV=function(t,r,n,i,a){var o=a.x1,l=a.x2,u=a.y1,s=a.y2,f=a.xAxis,c=a.yAxis;if(!f||!c)return null;var d=py({x:f.scale,y:c.scale}),p={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(u,{position:"start"}):d.y.rangeMin},m={x:r?d.x.apply(l,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(s,{position:"end"}):d.y.rangeMax};return yr(a,"discard")&&(!d.isInRange(p)||!d.isInRange(m))?null:C_(p,m)},Qc=function(e){function t(){return RV(this,t),FV(this,t,arguments)}return HV(t,e),zV(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,l=n.y2,u=n.className,s=n.alwaysShow,f=n.clipPathId;Tr(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var c=Fe(i),d=Fe(a),p=Fe(o),m=Fe(l),v=this.props.shape;if(!c&&!d&&!p&&!m&&!v)return null;var x=KV(c,d,p,m,this.props);if(!x&&!v)return null;var y=yr(this.props,"hidden")?"url(#".concat(f,")"):void 0;return E.createElement(ye,{className:ne("recharts-reference-area",u)},t.renderRect(v,ix(ix({clipPath:y},J(this.props,!0)),x)),nt.renderCallByParent(this.props,x))}}])}(E.Component);Yc(Qc,"displayName","ReferenceArea");Yc(Qc,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Yc(Qc,"renderRect",function(e,t){var r;return E.isValidElement(e)?r=E.cloneElement(e,t):Q(e)?r=e(t):r=E.createElement(dy,ah({},t,{className:"recharts-reference-area-rect"})),r});function G_(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function GV(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return FH(n,r)}function qV(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,l=e.height;return t===1?{start:n?i:a,end:n?i+o:a+l}:{start:n?i+o:a+l,end:n?i:a}}function Hs(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function XV(e,t){return G_(e,t+1)}function YV(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,l=t.end,u=0,s=1,f=o,c=function(){var m=n==null?void 0:n[u];if(m===void 0)return{v:G_(n,s)};var v=u,x,y=function(){return x===void 0&&(x=r(m,v)),x},h=m.coordinate,g=u===0||Hs(e,h,y,f,l);g||(u=0,f=o,s+=1),g&&(f=h+e*(y()/2+i),u+=s)},d;s<=a.length;)if(d=c(),d)return d.v;return[]}function vl(e){"@babel/helpers - typeof";return vl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vl(e)}function ax(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ax(Object(r),!0).forEach(function(n){QV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ax(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QV(e,t,r){return t=ZV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZV(e){var t=JV(e,"string");return vl(t)=="symbol"?t:t+""}function JV(e,t){if(vl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eK(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,l=t.start,u=t.end,s=function(d){var p=a[d],m,v=function(){return m===void 0&&(m=r(p,d)),m};if(d===o-1){var x=e*(p.coordinate+e*v()/2-u);a[d]=p=tt(tt({},p),{},{tickCoord:x>0?p.coordinate-x*e:p.coordinate})}else a[d]=p=tt(tt({},p),{},{tickCoord:p.coordinate});var y=Hs(e,p.tickCoord,v,l,u);y&&(u=p.tickCoord-e*(v()/2+i),a[d]=tt(tt({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)s(f);return a}function tK(e,t,r,n,i,a){var o=(n||[]).slice(),l=o.length,u=t.start,s=t.end;if(a){var f=n[l-1],c=r(f,l-1),d=e*(f.coordinate+e*c/2-s);o[l-1]=f=tt(tt({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate});var p=Hs(e,f.tickCoord,function(){return c},u,s);p&&(s=f.tickCoord-e*(c/2+i),o[l-1]=tt(tt({},f),{},{isShow:!0}))}for(var m=a?l-1:l,v=function(h){var g=o[h],S,b=function(){return S===void 0&&(S=r(g,h)),S};if(h===0){var w=e*(g.coordinate-e*b()/2-u);o[h]=g=tt(tt({},g),{},{tickCoord:w<0?g.coordinate-w*e:g.coordinate})}else o[h]=g=tt(tt({},g),{},{tickCoord:g.coordinate});var O=Hs(e,g.tickCoord,b,u,s);O&&(u=g.tickCoord+e*(b()/2+i),o[h]=tt(tt({},g),{},{isShow:!0}))},x=0;x<m;x++)v(x);return o}function xy(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,l=e.orientation,u=e.interval,s=e.tickFormatter,f=e.unit,c=e.angle;if(!i||!i.length||!n)return[];if(H(u)||ni.isSsr)return XV(i,typeof u=="number"&&H(u)?u:0);var d=[],p=l==="top"||l==="bottom"?"width":"height",m=f&&p==="width"?ho(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(g,S){var b=Q(s)?s(g.value,S):g.value;return p==="width"?GV(ho(b,{fontSize:t,letterSpacing:r}),m,c):ho(b,{fontSize:t,letterSpacing:r})[p]},x=i.length>=2?nr(i[1].coordinate-i[0].coordinate):1,y=qV(a,x,p);return u==="equidistantPreserveStart"?YV(x,y,v,i,o):(u==="preserveStart"||u==="preserveStartEnd"?d=tK(x,y,v,i,o,u==="preserveStartEnd"):d=eK(x,y,v,i,o),d.filter(function(h){return h.isShow}))}var rK=["viewBox"],nK=["viewBox"],iK=["ticks"];function sa(e){"@babel/helpers - typeof";return sa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sa(e)}function Ai(){return Ai=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ai.apply(this,arguments)}function ox(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Le(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ox(Object(r),!0).forEach(function(n){wy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ox(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Zf(e,t){if(e==null)return{};var r=aK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function aK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function oK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lx(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,X_(n.key),n)}}function lK(e,t,r){return t&&lx(e.prototype,t),r&&lx(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function uK(e,t,r){return t=Vs(t),sK(e,q_()?Reflect.construct(t,r||[],Vs(e).constructor):t.apply(e,r))}function sK(e,t){if(t&&(sa(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cK(e)}function cK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(q_=function(){return!!e})()}function Vs(e){return Vs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vs(e)}function fK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lh(e,t)}function lh(e,t){return lh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},lh(e,t)}function wy(e,t,r){return t=X_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X_(e){var t=dK(e,"string");return sa(t)=="symbol"?t:t+""}function dK(e,t){if(sa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(sa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Na=function(e){function t(r){var n;return oK(this,t),n=uK(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return fK(t,e),lK(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=Zf(n,rK),l=this.props,u=l.viewBox,s=Zf(l,nK);return!Ni(a,u)||!Ni(o,s)||!Ni(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,l=i.width,u=i.height,s=i.orientation,f=i.tickSize,c=i.mirror,d=i.tickMargin,p,m,v,x,y,h,g=c?-1:1,S=n.tickSize||f,b=H(n.tickCoord)?n.tickCoord:n.coordinate;switch(s){case"top":p=m=n.coordinate,x=o+ +!c*u,v=x-g*S,h=v-g*d,y=b;break;case"left":v=x=n.coordinate,m=a+ +!c*l,p=m-g*S,y=p-g*d,h=b;break;case"right":v=x=n.coordinate,m=a+ +c*l,p=m+g*S,y=p+g*d,h=b;break;default:p=m=n.coordinate,x=o+ +c*u,v=x+g*S,h=v+g*d,y=b;break}return{line:{x1:p,y1:v,x2:m,y2:x},tick:{x:y,y:h}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,l=n.height,u=n.orientation,s=n.mirror,f=n.axisLine,c=Le(Le(Le({},J(this.props,!1)),J(f,!1)),{},{fill:"none"});if(u==="top"||u==="bottom"){var d=+(u==="top"&&!s||u==="bottom"&&s);c=Le(Le({},c),{},{x1:i,y1:a+d*l,x2:i+o,y2:a+d*l})}else{var p=+(u==="left"&&!s||u==="right"&&s);c=Le(Le({},c),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+l})}return E.createElement("line",Ai({},c,{className:ne("recharts-cartesian-axis-line",Ft(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,l=this.props,u=l.tickLine,s=l.stroke,f=l.tick,c=l.tickFormatter,d=l.unit,p=xy(Le(Le({},this.props),{},{ticks:n}),i,a),m=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),x=J(this.props,!1),y=J(f,!1),h=Le(Le({},x),{},{fill:"none"},J(u,!1)),g=p.map(function(S,b){var w=o.getTickLineCoord(S),O=w.line,_=w.tick,A=Le(Le(Le(Le({textAnchor:m,verticalAnchor:v},x),{},{stroke:"none",fill:s},y),_),{},{index:b,payload:S,visibleTicksCount:p.length,tickFormatter:c});return E.createElement(ye,Ai({className:"recharts-cartesian-axis-tick",key:"tick-".concat(S.value,"-").concat(S.coordinate,"-").concat(S.tickCoord)},Yu(o.props,S,b)),u&&E.createElement("line",Ai({},h,O,{className:ne("recharts-cartesian-axis-tick-line",Ft(u,"className"))})),f&&t.renderTickItem(f,A,"".concat(Q(c)?c(S.value,b):S.value).concat(d||"")))});return E.createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,l=i.height,u=i.ticksGenerator,s=i.className,f=i.hide;if(f)return null;var c=this.props,d=c.ticks,p=Zf(c,iK),m=d;return Q(u)&&(m=d&&d.length>0?u(this.props):u(p)),o<=0||l<=0||!m||!m.length?null:E.createElement(ye,{className:ne("recharts-cartesian-axis",s),ref:function(x){n.layerReference=x}},a&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),nt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,l=ne(i.className,"recharts-cartesian-axis-tick-value");return E.isValidElement(n)?o=E.cloneElement(n,Le(Le({},i),{},{className:l})):Q(n)?o=n(Le(Le({},i),{},{className:l})):o=E.createElement(cs,Ai({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(R.Component);wy(Na,"displayName","CartesianAxis");wy(Na,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var pK=["x1","y1","x2","y2","key"],hK=["offset"];function Jn(e){"@babel/helpers - typeof";return Jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jn(e)}function ux(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function it(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ux(Object(r),!0).forEach(function(n){vK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ux(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vK(e,t,r){return t=yK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yK(e){var t=mK(e,"string");return Jn(t)=="symbol"?t:t+""}function mK(e,t){if(Jn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rn(){return Rn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rn.apply(this,arguments)}function sx(e,t){if(e==null)return{};var r=gK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var bK=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,l=t.height,u=t.ry;return E.createElement("rect",{x:i,y:a,ry:u,width:o,height:l,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function Y_(e,t){var r;if(E.isValidElement(e))r=E.cloneElement(e,t);else if(Q(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,l=t.key,u=sx(t,pK),s=J(u,!1);s.offset;var f=sx(s,hK);r=E.createElement("line",Rn({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:l}))}return r}function xK(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(l,u){var s=it(it({},e),{},{x1:t,y1:l,x2:t+r,y2:l,key:"line-".concat(u),index:u});return Y_(i,s)});return E.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function wK(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(l,u){var s=it(it({},e),{},{x1:l,y1:t,x2:l,y2:t+r,key:"line-".concat(u),index:u});return Y_(i,s)});return E.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function SK(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,l=e.horizontalPoints,u=e.horizontal,s=u===void 0?!0:u;if(!s||!t||!t.length)return null;var f=l.map(function(d){return Math.round(d+i-i)}).sort(function(d,p){return d-p});i!==f[0]&&f.unshift(0);var c=f.map(function(d,p){var m=!f[p+1],v=m?i+o-d:f[p+1]-d;if(v<=0)return null;var x=p%t.length;return E.createElement("rect",{key:"react-".concat(p),y:d,x:n,height:v,width:a,stroke:"none",fill:t[x],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return E.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},c)}function OK(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,l=e.width,u=e.height,s=e.verticalPoints;if(!r||!n||!n.length)return null;var f=s.map(function(d){return Math.round(d+a-a)}).sort(function(d,p){return d-p});a!==f[0]&&f.unshift(0);var c=f.map(function(d,p){var m=!f[p+1],v=m?a+l-d:f[p+1]-d;if(v<=0)return null;var x=p%n.length;return E.createElement("rect",{key:"react-".concat(p),x:d,y:o,width:v,height:u,stroke:"none",fill:n[x],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return E.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},c)}var _K=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return a_(xy(it(it(it({},Na.defaultProps),n),{},{ticks:Er(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},PK=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return a_(xy(it(it(it({},Na.defaultProps),n),{},{ticks:Er(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},fi={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function uh(e){var t,r,n,i,a,o,l=yy(),u=my(),s=dV(),f=it(it({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:fi.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:fi.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:fi.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:fi.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:fi.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:fi.verticalFill,x:H(e.x)?e.x:s.left,y:H(e.y)?e.y:s.top,width:H(e.width)?e.width:s.width,height:H(e.height)?e.height:s.height}),c=f.x,d=f.y,p=f.width,m=f.height,v=f.syncWithTicks,x=f.horizontalValues,y=f.verticalValues,h=sV(),g=cV();if(!H(p)||p<=0||!H(m)||m<=0||!H(c)||c!==+c||!H(d)||d!==+d)return null;var S=f.verticalCoordinatesGenerator||_K,b=f.horizontalCoordinatesGenerator||PK,w=f.horizontalPoints,O=f.verticalPoints;if((!w||!w.length)&&Q(b)){var _=x&&x.length,A=b({yAxis:g?it(it({},g),{},{ticks:_?x:g.ticks}):void 0,width:l,height:u,offset:s},_?!0:v);Tr(Array.isArray(A),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Jn(A),"]")),Array.isArray(A)&&(w=A)}if((!O||!O.length)&&Q(S)){var j=y&&y.length,T=S({xAxis:h?it(it({},h),{},{ticks:j?y:h.ticks}):void 0,width:l,height:u,offset:s},j?!0:v);Tr(Array.isArray(T),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Jn(T),"]")),Array.isArray(T)&&(O=T)}return E.createElement("g",{className:"recharts-cartesian-grid"},E.createElement(bK,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),E.createElement(xK,Rn({},f,{offset:s,horizontalPoints:w,xAxis:h,yAxis:g})),E.createElement(wK,Rn({},f,{offset:s,verticalPoints:O,xAxis:h,yAxis:g})),E.createElement(SK,Rn({},f,{horizontalPoints:w})),E.createElement(OK,Rn({},f,{verticalPoints:O})))}uh.displayName="CartesianGrid";var AK=["type","layout","connectNulls","ref"],EK=["key"];function ca(e){"@babel/helpers - typeof";return ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ca(e)}function cx(e,t){if(e==null)return{};var r=$K(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $K(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function go(){return go=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},go.apply(this,arguments)}function fx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function St(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fx(Object(r),!0).forEach(function(n){er(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function di(e){return CK(e)||kK(e)||TK(e)||jK()}function jK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
195
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TK(e,t){if(e){if(typeof e=="string")return sh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sh(e,t)}}function kK(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function CK(e){if(Array.isArray(e))return sh(e)}function sh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function MK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dx(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Z_(n.key),n)}}function NK(e,t,r){return t&&dx(e.prototype,t),r&&dx(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function IK(e,t,r){return t=Ks(t),DK(e,Q_()?Reflect.construct(t,r||[],Ks(e).constructor):t.apply(e,r))}function DK(e,t){if(t&&(ca(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return LK(e)}function LK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Q_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Q_=function(){return!!e})()}function Ks(e){return Ks=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ks(e)}function RK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ch(e,t)}function ch(e,t){return ch=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ch(e,t)}function er(e,t,r){return t=Z_(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z_(e){var t=BK(e,"string");return ca(t)=="symbol"?t:t+""}function BK(e,t){if(ca(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ca(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var kl=function(e){function t(){var r;MK(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=IK(this,t,[].concat(i)),er(r,"state",{isAnimationFinished:!0,totalLength:0}),er(r,"generateSimpleStrokeDasharray",function(o,l){return"".concat(l,"px ").concat(o-l,"px")}),er(r,"getStrokeDasharray",function(o,l,u){var s=u.reduce(function(y,h){return y+h});if(!s)return r.generateSimpleStrokeDasharray(l,o);for(var f=Math.floor(o/s),c=o%s,d=l-o,p=[],m=0,v=0;m<u.length;v+=u[m],++m)if(v+u[m]>c){p=[].concat(di(u.slice(0,m)),[c-v]);break}var x=p.length%2===0?[0,d]:[d];return[].concat(di(t.repeat(u,f)),di(p),x).map(function(y){return"".concat(y,"px")}).join(", ")}),er(r,"id",Ea("recharts-line-")),er(r,"pathRef",function(o){r.mainCurve=o}),er(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),er(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return RK(t,e),NK(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,l=a.xAxis,u=a.yAxis,s=a.layout,f=a.children,c=Ut(f,jl);if(!c)return null;var d=function(v,x){return{x:v.x,y:v.y,value:v.value,errorVal:ct(v.payload,x)}},p={clipPath:n?"url(#clipPath-".concat(i,")"):null};return E.createElement(ye,p,c.map(function(m){return E.cloneElement(m,{key:"bar-".concat(m.props.dataKey),data:o,xAxis:l,yAxis:u,layout:s,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var l=this.props,u=l.dot,s=l.points,f=l.dataKey,c=J(this.props,!1),d=J(u,!0),p=s.map(function(v,x){var y=St(St(St({key:"dot-".concat(x),r:3},c),d),{},{index:x,cx:v.x,cy:v.y,value:v.value,dataKey:f,payload:v.payload,points:s});return t.renderDotItem(u,y)}),m={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return E.createElement(ye,go({className:"recharts-line-dots",key:"dots"},m),p)}},{key:"renderCurveStatically",value:function(n,i,a,o){var l=this.props,u=l.type,s=l.layout,f=l.connectNulls;l.ref;var c=cx(l,AK),d=St(St(St({},J(c,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:u,layout:s,connectNulls:f});return E.createElement(Ri,go({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,l=o.points,u=o.strokeDasharray,s=o.isAnimationActive,f=o.animationBegin,c=o.animationDuration,d=o.animationEasing,p=o.animationId,m=o.animateNewValues,v=o.width,x=o.height,y=this.state,h=y.prevPoints,g=y.totalLength;return E.createElement(gr,{begin:f,duration:c,isActive:s,easing:d,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(S){var b=S.t;if(h){var w=h.length/l.length,O=l.map(function($,I){var N=Math.floor(I*w);if(h[N]){var C=h[N],D=Xe(C.x,$.x),z=Xe(C.y,$.y);return St(St({},$),{},{x:D(b),y:z(b)})}if(m){var k=Xe(v*2,$.x),L=Xe(x/2,$.y);return St(St({},$),{},{x:k(b),y:L(b)})}return St(St({},$),{},{x:$.x,y:$.y})});return a.renderCurveStatically(O,n,i)}var _=Xe(0,g),A=_(b),j;if(u){var T="".concat(u).split(/[,\s]+/gim).map(function($){return parseFloat($)});j=a.getStrokeDasharray(A,g,T)}else j=a.generateSimpleStrokeDasharray(g,A);return a.renderCurveStatically(l,n,i,{strokeDasharray:j})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,l=a.isAnimationActive,u=this.state,s=u.prevPoints,f=u.totalLength;return l&&o&&o.length&&(!s&&f>0||!ea(s,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,l=i.points,u=i.className,s=i.xAxis,f=i.yAxis,c=i.top,d=i.left,p=i.width,m=i.height,v=i.isAnimationActive,x=i.id;if(a||!l||!l.length)return null;var y=this.state.isAnimationFinished,h=l.length===1,g=ne("recharts-line",u),S=s&&s.allowDataOverflow,b=f&&f.allowDataOverflow,w=S||b,O=te(x)?this.id:x,_=(n=J(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},A=_.r,j=A===void 0?3:A,T=_.strokeWidth,$=T===void 0?2:T,I=Zw(o)?o:{},N=I.clipDot,C=N===void 0?!0:N,D=j*2+$;return E.createElement(ye,{className:g},S||b?E.createElement("defs",null,E.createElement("clipPath",{id:"clipPath-".concat(O)},E.createElement("rect",{x:S?d:d-p/2,y:b?c:c-m/2,width:S?p:p*2,height:b?m:m*2})),!C&&E.createElement("clipPath",{id:"clipPath-dots-".concat(O)},E.createElement("rect",{x:d-D/2,y:c-D/2,width:p+D,height:m+D}))):null,!h&&this.renderCurve(w,O),this.renderErrorBar(w,O),(h||o)&&this.renderDots(w,C,O),(!v||y)&&Cr.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(di(n),[0]):n,o=[],l=0;l<i;++l)o=[].concat(di(o),di(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(E.isValidElement(n))a=E.cloneElement(n,i);else if(Q(n))a=n(i);else{var o=i.key,l=cx(i,EK),u=ne("recharts-line-dot",typeof n!="boolean"?n.className:"");a=E.createElement(Hc,go({key:o},l,{className:u}))}return a}}])}(R.PureComponent);er(kl,"displayName","Line");er(kl,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ni.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});er(kl,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,l=e.bandSize,u=e.displayedData,s=e.offset,f=t.layout,c=u.map(function(d,p){var m=ct(d,o);return f==="horizontal"?{x:Ps({axis:r,ticks:i,bandSize:l,entry:d,index:p}),y:te(m)?null:n.scale(m),value:m,payload:d}:{x:te(m)?null:r.scale(m),y:Ps({axis:n,ticks:a,bandSize:l,entry:d,index:p}),value:m,payload:d}});return St({points:c,layout:f},s)});var zK=["layout","type","stroke","connectNulls","isRange","ref"],FK=["key"],J_;function fa(e){"@babel/helpers - typeof";return fa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fa(e)}function eP(e,t){if(e==null)return{};var r=UK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function UK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Bn(){return Bn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bn.apply(this,arguments)}function px(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Kr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?px(Object(r),!0).forEach(function(n){dr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):px(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hx(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,rP(n.key),n)}}function HK(e,t,r){return t&&hx(e.prototype,t),r&&hx(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function VK(e,t,r){return t=Gs(t),KK(e,tP()?Reflect.construct(t,r||[],Gs(e).constructor):t.apply(e,r))}function KK(e,t){if(t&&(fa(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return GK(e)}function GK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tP=function(){return!!e})()}function Gs(e){return Gs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gs(e)}function qK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fh(e,t)}function fh(e,t){return fh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},fh(e,t)}function dr(e,t,r){return t=rP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rP(e){var t=XK(e,"string");return fa(t)=="symbol"?t:t+""}function XK(e,t){if(fa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var On=function(e){function t(){var r;WK(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=VK(this,t,[].concat(i)),dr(r,"state",{isAnimationFinished:!0}),dr(r,"id",Ea("recharts-area-")),dr(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Q(o)&&o()}),dr(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Q(o)&&o()}),r}return qK(t,e),HK(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,l=this.state.isAnimationFinished;if(o&&!l)return null;var u=this.props,s=u.dot,f=u.points,c=u.dataKey,d=J(this.props,!1),p=J(s,!0),m=f.map(function(x,y){var h=Kr(Kr(Kr({key:"dot-".concat(y),r:3},d),p),{},{index:y,cx:x.x,cy:x.y,dataKey:c,value:x.value,payload:x.payload,points:f});return t.renderDotItem(s,h)}),v={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return E.createElement(ye,Bn({className:"recharts-area-dots"},v),m)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,l=i.strokeWidth,u=o[0].x,s=o[o.length-1].x,f=n*Math.abs(u-s),c=tn(o.map(function(d){return d.y||0}));return H(a)&&typeof a=="number"?c=Math.max(a,c):a&&Array.isArray(a)&&a.length&&(c=Math.max(tn(a.map(function(d){return d.y||0})),c)),H(c)?E.createElement("rect",{x:u<s?u:u-f,y:0,width:f,height:Math.floor(c+(l?parseInt("".concat(l),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,l=i.strokeWidth,u=o[0].y,s=o[o.length-1].y,f=n*Math.abs(u-s),c=tn(o.map(function(d){return d.x||0}));return H(a)&&typeof a=="number"?c=Math.max(a,c):a&&Array.isArray(a)&&a.length&&(c=Math.max(tn(a.map(function(d){return d.x||0})),c)),H(c)?E.createElement("rect",{x:0,y:u<s?u:u-f,width:c+(l?parseInt("".concat(l),10):1),height:Math.floor(f)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var l=this.props,u=l.layout,s=l.type,f=l.stroke,c=l.connectNulls,d=l.isRange;l.ref;var p=eP(l,zK);return E.createElement(ye,{clipPath:a?"url(#clipPath-".concat(o,")"):null},E.createElement(Ri,Bn({},J(p,!0),{points:n,connectNulls:c,type:s,baseLine:i,layout:u,stroke:"none",className:"recharts-area-area"})),f!=="none"&&E.createElement(Ri,Bn({},J(this.props,!1),{className:"recharts-area-curve",layout:u,type:s,connectNulls:c,fill:"none",points:n})),f!=="none"&&d&&E.createElement(Ri,Bn({},J(this.props,!1),{className:"recharts-area-curve",layout:u,type:s,connectNulls:c,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,l=o.points,u=o.baseLine,s=o.isAnimationActive,f=o.animationBegin,c=o.animationDuration,d=o.animationEasing,p=o.animationId,m=this.state,v=m.prevPoints,x=m.prevBaseLine;return E.createElement(gr,{begin:f,duration:c,isActive:s,easing:d,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(y){var h=y.t;if(v){var g=v.length/l.length,S=l.map(function(_,A){var j=Math.floor(A*g);if(v[j]){var T=v[j],$=Xe(T.x,_.x),I=Xe(T.y,_.y);return Kr(Kr({},_),{},{x:$(h),y:I(h)})}return _}),b;if(H(u)&&typeof u=="number"){var w=Xe(x,u);b=w(h)}else if(te(u)||Aa(u)){var O=Xe(x,0);b=O(h)}else b=u.map(function(_,A){var j=Math.floor(A*g);if(x[j]){var T=x[j],$=Xe(T.x,_.x),I=Xe(T.y,_.y);return Kr(Kr({},_),{},{x:$(h),y:I(h)})}return _});return a.renderAreaStatically(S,b,n,i)}return E.createElement(ye,null,E.createElement("defs",null,E.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(h))),E.createElement(ye,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(l,u,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,l=a.baseLine,u=a.isAnimationActive,s=this.state,f=s.prevPoints,c=s.prevBaseLine,d=s.totalLength;return u&&o&&o.length&&(!f&&d>0||!ea(f,o)||!ea(c,l))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,l,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,l=i.points,u=i.className,s=i.top,f=i.left,c=i.xAxis,d=i.yAxis,p=i.width,m=i.height,v=i.isAnimationActive,x=i.id;if(a||!l||!l.length)return null;var y=this.state.isAnimationFinished,h=l.length===1,g=ne("recharts-area",u),S=c&&c.allowDataOverflow,b=d&&d.allowDataOverflow,w=S||b,O=te(x)?this.id:x,_=(n=J(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},A=_.r,j=A===void 0?3:A,T=_.strokeWidth,$=T===void 0?2:T,I=Zw(o)?o:{},N=I.clipDot,C=N===void 0?!0:N,D=j*2+$;return E.createElement(ye,{className:g},S||b?E.createElement("defs",null,E.createElement("clipPath",{id:"clipPath-".concat(O)},E.createElement("rect",{x:S?f:f-p/2,y:b?s:s-m/2,width:S?p:p*2,height:b?m:m*2})),!C&&E.createElement("clipPath",{id:"clipPath-dots-".concat(O)},E.createElement("rect",{x:f-D/2,y:s-D/2,width:p+D,height:m+D}))):null,h?null:this.renderArea(w,O),(o||h)&&this.renderDots(w,C,O),(!v||y)&&Cr.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])}(R.PureComponent);J_=On;dr(On,"displayName","Area");dr(On,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!ni.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});dr(On,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,l=o??a;if(H(l)&&typeof l=="number")return l;var u=i==="horizontal"?n:r,s=u.scale.domain();if(u.type==="number"){var f=Math.max(s[0],s[1]),c=Math.min(s[0],s[1]);return l==="dataMin"?c:l==="dataMax"||f<0?f:Math.max(Math.min(s[0],s[1]),0)}return l==="dataMin"?s[0]:l==="dataMax"?s[1]:s[0]});dr(On,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,l=e.bandSize,u=e.dataKey,s=e.stackedData,f=e.dataStartIndex,c=e.displayedData,d=e.offset,p=t.layout,m=s&&s.length,v=J_.getBaseValue(t,r,n,i),x=p==="horizontal",y=!1,h=c.map(function(S,b){var w;m?w=s[f+b]:(w=ct(S,u),Array.isArray(w)?y=!0:w=[v,w]);var O=w[1]==null||m&&ct(S,u)==null;return x?{x:Ps({axis:n,ticks:a,bandSize:l,entry:S,index:b}),y:O?null:i.scale(w[1]),value:w,payload:S}:{x:O?null:n.scale(w[1]),y:Ps({axis:i,ticks:o,bandSize:l,entry:S,index:b}),value:w,payload:S}}),g;return m||y?g=h.map(function(S){var b=Array.isArray(S.value)?S.value[0]:null;return x?{x:S.x,y:b!=null&&S.y!=null?i.scale(b):null}:{x:b!=null?n.scale(b):null,y:S.y}}):g=x?i.scale(v):n.scale(v),Kr({points:h,baseLine:g,layout:p,isRange:y},d)});dr(On,"renderDotItem",function(e,t){var r;if(E.isValidElement(e))r=E.cloneElement(e,t);else if(Q(e))r=e(t);else{var n=ne("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=eP(t,FK);r=E.createElement(Hc,Bn({},a,{key:i,className:n}))}return r});function da(e){"@babel/helpers - typeof";return da=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},da(e)}function YK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QK(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,aP(n.key),n)}}function ZK(e,t,r){return t&&QK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function JK(e,t,r){return t=qs(t),eG(e,nP()?Reflect.construct(t,r||[],qs(e).constructor):t.apply(e,r))}function eG(e,t){if(t&&(da(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tG(e)}function tG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nP=function(){return!!e})()}function qs(e){return qs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qs(e)}function rG(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dh(e,t)}function dh(e,t){return dh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dh(e,t)}function iP(e,t,r){return t=aP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aP(e){var t=nG(e,"string");return da(t)=="symbol"?t:t+""}function nG(e,t){if(da(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(da(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ph(){return ph=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ph.apply(this,arguments)}function iG(e){var t=e.xAxisId,r=yy(),n=my(),i=B_(t);return i==null?null:R.createElement(Na,ph({},i,{className:ne("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Er(o,!0)}}))}var pa=function(e){function t(){return YK(this,t),JK(this,t,arguments)}return rG(t,e),ZK(t,[{key:"render",value:function(){return R.createElement(iG,this.props)}}])}(R.Component);iP(pa,"displayName","XAxis");iP(pa,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function ha(e){"@babel/helpers - typeof";return ha=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ha(e)}function aG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oG(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,uP(n.key),n)}}function lG(e,t,r){return t&&oG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uG(e,t,r){return t=Xs(t),sG(e,oP()?Reflect.construct(t,r||[],Xs(e).constructor):t.apply(e,r))}function sG(e,t){if(t&&(ha(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cG(e)}function cG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oP=function(){return!!e})()}function Xs(e){return Xs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xs(e)}function fG(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hh(e,t)}function hh(e,t){return hh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hh(e,t)}function lP(e,t,r){return t=uP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uP(e){var t=dG(e,"string");return ha(t)=="symbol"?t:t+""}function dG(e,t){if(ha(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ha(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function vh(){return vh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vh.apply(this,arguments)}var pG=function(t){var r=t.yAxisId,n=yy(),i=my(),a=z_(r);return a==null?null:R.createElement(Na,vh({},a,{className:ne("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(l){return Er(l,!0)}}))},va=function(e){function t(){return aG(this,t),uG(this,t,arguments)}return fG(t,e),lG(t,[{key:"render",value:function(){return R.createElement(pG,this.props)}}])}(R.Component);lP(va,"displayName","YAxis");lP(va,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function vx(e){return mG(e)||yG(e)||vG(e)||hG()}function hG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
196
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vG(e,t){if(e){if(typeof e=="string")return yh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yh(e,t)}}function yG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mG(e){if(Array.isArray(e))return yh(e)}function yh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var mh=function(t,r,n,i,a){var o=Ut(t,by),l=Ut(t,Xc),u=[].concat(vx(o),vx(l)),s=Ut(t,Qc),f="".concat(i,"Id"),c=i[0],d=r;if(u.length&&(d=u.reduce(function(v,x){if(x.props[f]===n&&yr(x.props,"extendDomain")&&H(x.props[c])){var y=x.props[c];return[Math.min(v[0],y),Math.max(v[1],y)]}return v},d)),s.length){var p="".concat(c,"1"),m="".concat(c,"2");d=s.reduce(function(v,x){if(x.props[f]===n&&yr(x.props,"extendDomain")&&H(x.props[p])&&H(x.props[m])){var y=x.props[p],h=x.props[m];return[Math.min(v[0],y,h),Math.max(v[1],y,h)]}return v},d)}return a&&a.length&&(d=a.reduce(function(v,x){return H(x)?[Math.min(v[0],x),Math.max(v[1],x)]:v},d)),d},sP={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(u,s,f){this.fn=u,this.context=s,this.once=f||!1}function a(u,s,f,c,d){if(typeof f!="function")throw new TypeError("The listener must be a function");var p=new i(f,c||u,d),m=r?r+s:s;return u._events[m]?u._events[m].fn?u._events[m]=[u._events[m],p]:u._events[m].push(p):(u._events[m]=p,u._eventsCount++),u}function o(u,s){--u._eventsCount===0?u._events=new n:delete u._events[s]}function l(){this._events=new n,this._eventsCount=0}l.prototype.eventNames=function(){var s=[],f,c;if(this._eventsCount===0)return s;for(c in f=this._events)t.call(f,c)&&s.push(r?c.slice(1):c);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(f)):s},l.prototype.listeners=function(s){var f=r?r+s:s,c=this._events[f];if(!c)return[];if(c.fn)return[c.fn];for(var d=0,p=c.length,m=new Array(p);d<p;d++)m[d]=c[d].fn;return m},l.prototype.listenerCount=function(s){var f=r?r+s:s,c=this._events[f];return c?c.fn?1:c.length:0},l.prototype.emit=function(s,f,c,d,p,m){var v=r?r+s:s;if(!this._events[v])return!1;var x=this._events[v],y=arguments.length,h,g;if(x.fn){switch(x.once&&this.removeListener(s,x.fn,void 0,!0),y){case 1:return x.fn.call(x.context),!0;case 2:return x.fn.call(x.context,f),!0;case 3:return x.fn.call(x.context,f,c),!0;case 4:return x.fn.call(x.context,f,c,d),!0;case 5:return x.fn.call(x.context,f,c,d,p),!0;case 6:return x.fn.call(x.context,f,c,d,p,m),!0}for(g=1,h=new Array(y-1);g<y;g++)h[g-1]=arguments[g];x.fn.apply(x.context,h)}else{var S=x.length,b;for(g=0;g<S;g++)switch(x[g].once&&this.removeListener(s,x[g].fn,void 0,!0),y){case 1:x[g].fn.call(x[g].context);break;case 2:x[g].fn.call(x[g].context,f);break;case 3:x[g].fn.call(x[g].context,f,c);break;case 4:x[g].fn.call(x[g].context,f,c,d);break;default:if(!h)for(b=1,h=new Array(y-1);b<y;b++)h[b-1]=arguments[b];x[g].fn.apply(x[g].context,h)}}return!0},l.prototype.on=function(s,f,c){return a(this,s,f,c,!1)},l.prototype.once=function(s,f,c){return a(this,s,f,c,!0)},l.prototype.removeListener=function(s,f,c,d){var p=r?r+s:s;if(!this._events[p])return this;if(!f)return o(this,p),this;var m=this._events[p];if(m.fn)m.fn===f&&(!d||m.once)&&(!c||m.context===c)&&o(this,p);else{for(var v=0,x=[],y=m.length;v<y;v++)(m[v].fn!==f||d&&!m[v].once||c&&m[v].context!==c)&&x.push(m[v]);x.length?this._events[p]=x.length===1?x[0]:x:o(this,p)}return this},l.prototype.removeAllListeners=function(s){var f;return s?(f=r?r+s:s,this._events[f]&&o(this,f)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,e.exports=l})(sP);var gG=sP.exports;const bG=pe(gG);var Jf=new bG,ed="recharts.syncMouseEvents";function yl(e){"@babel/helpers - typeof";return yl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yl(e)}function xG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wG(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,cP(n.key),n)}}function SG(e,t,r){return t&&wG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function td(e,t,r){return t=cP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cP(e){var t=OG(e,"string");return yl(t)=="symbol"?t:t+""}function OG(e,t){if(yl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _G=function(){function e(){xG(this,e),td(this,"activeIndex",0),td(this,"coordinateList",[]),td(this,"layout","horizontal")}return SG(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,l=o===void 0?null:o,u=r.layout,s=u===void 0?null:u,f=r.offset,c=f===void 0?null:f,d=r.mouseHandlerCallback,p=d===void 0?null:d;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=l??this.container,this.layout=s??this.layout,this.offset=c??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,l=i.height,u=this.coordinateList[this.activeIndex].coordinate,s=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,c=a+u+s,d=o+this.offset.top+l/2+f;this.mouseHandlerCallback({pageX:c,pageY:d})}}}])}();function PG(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&H(n)&&H(i))return!0}return!1}function AG(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function fP(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Ye(t,r,n,i),l=Ye(t,r,n,a);return{points:[o,l],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function EG(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var l=t.cx,u=t.cy,s=t.innerRadius,f=t.outerRadius,c=t.angle,d=Ye(l,u,s,c),p=Ye(l,u,f,c);n=d.x,i=d.y,a=p.x,o=p.y}else return fP(t);return[{x:n,y:i},{x:a,y:o}]}function ml(e){"@babel/helpers - typeof";return ml=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ml(e)}function yx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yx(Object(r),!0).forEach(function(n){$G(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $G(e,t,r){return t=jG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jG(e){var t=TG(e,"string");return ml(t)=="symbol"?t:t+""}function TG(e,t){if(ml(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ml(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kG(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,l=e.activePayload,u=e.offset,s=e.activeTooltipIndex,f=e.tooltipAxisBandSize,c=e.layout,d=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var m,v=Ri;if(d==="ScatterChart")m=o,v=w9;else if(d==="BarChart")m=AG(c,o,u,f),v=dy;else if(c==="radial"){var x=fP(o),y=x.cx,h=x.cy,g=x.radius,S=x.startAngle,b=x.endAngle;m={cx:y,cy:h,startAngle:S,endAngle:b,innerRadius:g,outerRadius:g},v=c_}else m={points:EG(c,o,u)},v=Ri;var w=cu(cu(cu(cu({stroke:"#ccc",pointerEvents:"none"},u),m),J(p,!1)),{},{payload:l,payloadIndex:s,className:ne("recharts-tooltip-cursor",p.className)});return R.isValidElement(p)?R.cloneElement(p,w):R.createElement(v,w)}var CG=["item"],MG=["children","className","width","height","style","compact","title","desc"];function ya(e){"@babel/helpers - typeof";return ya=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ya(e)}function Ei(){return Ei=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ei.apply(this,arguments)}function mx(e,t){return DG(e)||IG(e,t)||pP(e,t)||NG()}function NG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
197
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IG(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,l=[],u=!0,s=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(f){s=!0,i=f}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw i}}return l}}function DG(e){if(Array.isArray(e))return e}function gx(e,t){if(e==null)return{};var r=LG(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function LG(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function RG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BG(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,hP(n.key),n)}}function zG(e,t,r){return t&&BG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function FG(e,t,r){return t=Ys(t),UG(e,dP()?Reflect.construct(t,r||[],Ys(e).constructor):t.apply(e,r))}function UG(e,t){if(t&&(ya(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return WG(e)}function WG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dP=function(){return!!e})()}function Ys(e){return Ys=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ys(e)}function HG(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gh(e,t)}function gh(e,t){return gh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gh(e,t)}function ma(e){return GG(e)||KG(e)||pP(e)||VG()}function VG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
198
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pP(e,t){if(e){if(typeof e=="string")return bh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bh(e,t)}}function KG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GG(e){if(Array.isArray(e))return bh(e)}function bh(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function M(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bx(Object(r),!0).forEach(function(n){Y(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Y(e,t,r){return t=hP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hP(e){var t=qG(e,"string");return ya(t)=="symbol"?t:t+""}function qG(e,t){if(ya(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ya(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var XG={xAxis:["bottom","top"],yAxis:["left","right"]},YG={width:"100%",height:"100%"},vP={x:0,y:0};function fu(e){return e}var QG=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},ZG=function(t,r,n,i){var a=r.find(function(f){return f&&f.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,l=i.radius;return M(M(M({},i),Ye(i.cx,i.cy,l,o)),{},{angle:o,radius:l})}var u=a.coordinate,s=i.angle;return M(M(M({},i),Ye(i.cx,i.cy,u,s)),{},{angle:s,radius:u})}return vP},Zc=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(l,u){var s=u.props.data;return s&&s.length?[].concat(ma(l),ma(s)):l},[]);return o.length>0?o:t&&t.length&&H(i)&&H(a)?t.slice(i,a+1):[]};function yP(e){return e==="number"?[0,"auto"]:void 0}var xh=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,l=Zc(r,t);return n<0||!a||!a.length||n>=l.length?null:a.reduce(function(u,s){var f,c=(f=s.props.data)!==null&&f!==void 0?f:r;c&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(c=c.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var p=c===void 0?l:c;d=qu(p,o.dataKey,i)}else d=c&&c[n]||l[n];return d?[].concat(ma(u),[l_(s,d)]):u},[])},xx=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=QG(a,n),l=t.orderedTooltipTicks,u=t.tooltipAxis,s=t.tooltipTicks,f=J5(o,l,s,u);if(f>=0&&s){var c=s[f]&&s[f].value,d=xh(t,r,f,c),p=ZG(n,l,f,a);return{activeTooltipIndex:f,activeLabel:c,activePayload:d,activeCoordinate:p}}return null},JG=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,l=r.stackGroups,u=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,c=t.children,d=t.stackOffset,p=i_(f,a);return n.reduce(function(m,v){var x,y=v.type.defaultProps!==void 0?M(M({},v.type.defaultProps),v.props):v.props,h=y.type,g=y.dataKey,S=y.allowDataOverflow,b=y.allowDuplicatedCategory,w=y.scale,O=y.ticks,_=y.includeHidden,A=y[o];if(m[A])return m;var j=Zc(t.data,{graphicalItems:i.filter(function(W){var X,ie=o in W.props?W.props[o]:(X=W.type.defaultProps)===null||X===void 0?void 0:X[o];return ie===A}),dataStartIndex:u,dataEndIndex:s}),T=j.length,$,I,N;PG(y.domain,S,h)&&($=Dp(y.domain,null,S),p&&(h==="number"||w!=="auto")&&(N=yo(j,g,"category")));var C=yP(h);if(!$||$.length===0){var D,z=(D=y.domain)!==null&&D!==void 0?D:C;if(g){if($=yo(j,g,h),h==="category"&&p){var k=FT($);b&&k?(I=$,$=Ds(0,T)):b||($=J0(z,$,v).reduce(function(W,X){return W.indexOf(X)>=0?W:[].concat(ma(W),[X])},[]))}else if(h==="category")b?$=$.filter(function(W){return W!==""&&!te(W)}):$=J0(z,$,v).reduce(function(W,X){return W.indexOf(X)>=0||X===""||te(X)?W:[].concat(ma(W),[X])},[]);else if(h==="number"){var L=iF(j,i.filter(function(W){var X,ie,we=o in W.props?W.props[o]:(X=W.type.defaultProps)===null||X===void 0?void 0:X[o],Te="hide"in W.props?W.props.hide:(ie=W.type.defaultProps)===null||ie===void 0?void 0:ie.hide;return we===A&&(_||!Te)}),g,a,f);L&&($=L)}p&&(h==="number"||w!=="auto")&&(N=yo(j,g,"category"))}else p?$=Ds(0,T):l&&l[A]&&l[A].hasStack&&h==="number"?$=d==="expand"?[0,1]:o_(l[A].stackGroups,u,s):$=n_(j,i.filter(function(W){var X=o in W.props?W.props[o]:W.type.defaultProps[o],ie="hide"in W.props?W.props.hide:W.type.defaultProps.hide;return X===A&&(_||!ie)}),h,f,!0);if(h==="number")$=mh(c,$,A,a,O),z&&($=Dp(z,$,S));else if(h==="category"&&z){var B=z,V=$.every(function(W){return B.indexOf(W)>=0});V&&($=B)}}return M(M({},m),{},Y({},A,M(M({},y),{},{axisType:a,domain:$,categoricalDomain:N,duplicateDomain:I,originalDomain:(x=y.domain)!==null&&x!==void 0?x:C,isCategorical:p,layout:f})))},{})},eq=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,l=r.stackGroups,u=r.dataStartIndex,s=r.dataEndIndex,f=t.layout,c=t.children,d=Zc(t.data,{graphicalItems:n,dataStartIndex:u,dataEndIndex:s}),p=d.length,m=i_(f,a),v=-1;return n.reduce(function(x,y){var h=y.type.defaultProps!==void 0?M(M({},y.type.defaultProps),y.props):y.props,g=h[o],S=yP("number");if(!x[g]){v++;var b;return m?b=Ds(0,p):l&&l[g]&&l[g].hasStack?(b=o_(l[g].stackGroups,u,s),b=mh(c,b,g,a)):(b=Dp(S,n_(d,n.filter(function(w){var O,_,A=o in w.props?w.props[o]:(O=w.type.defaultProps)===null||O===void 0?void 0:O[o],j="hide"in w.props?w.props.hide:(_=w.type.defaultProps)===null||_===void 0?void 0:_.hide;return A===g&&!j}),"number",f),i.defaultProps.allowDataOverflow),b=mh(c,b,g,a)),M(M({},x),{},Y({},g,M(M({axisType:a},i.defaultProps),{},{hide:!0,orientation:Ft(XG,"".concat(a,".").concat(v%2),null),domain:b,originalDomain:S,isCategorical:m,layout:f})))}return x},{})},tq=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,l=r.stackGroups,u=r.dataStartIndex,s=r.dataEndIndex,f=t.children,c="".concat(i,"Id"),d=Ut(f,a),p={};return d&&d.length?p=JG(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:l,dataStartIndex:u,dataEndIndex:s}):o&&o.length&&(p=eq(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:l,dataStartIndex:u,dataEndIndex:s})),p},rq=function(t){var r=Zr(t),n=Er(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Bv(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:As(r,n)}},wx=function(t){var r=t.children,n=t.defaultShowTooltip,i=Pt(r,ia),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},nq=function(t){return!t||!t.length?!1:t.some(function(r){var n=jr(r&&r.type);return n&&n.indexOf("Bar")>=0})},Sx=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},iq=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,l=t.yAxisMap,u=l===void 0?{}:l,s=n.width,f=n.height,c=n.children,d=n.margin||{},p=Pt(c,ia),m=Pt(c,Ii),v=Object.keys(u).reduce(function(b,w){var O=u[w],_=O.orientation;return!O.mirror&&!O.hide?M(M({},b),{},Y({},_,b[_]+O.width)):b},{left:d.left||0,right:d.right||0}),x=Object.keys(o).reduce(function(b,w){var O=o[w],_=O.orientation;return!O.mirror&&!O.hide?M(M({},b),{},Y({},_,Ft(b,"".concat(_))+O.height)):b},{top:d.top||0,bottom:d.bottom||0}),y=M(M({},x),v),h=y.bottom;p&&(y.bottom+=p.props.height||ia.defaultProps.height),m&&r&&(y=rF(y,i,n,r));var g=s-y.left-y.right,S=f-y.top-y.bottom;return M(M({brushBottom:h},y),{},{width:Math.max(g,0),height:Math.max(S,0)})},aq=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},mP=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,l=o===void 0?["axis"]:o,u=t.axisComponents,s=t.legendContent,f=t.formatAxisMap,c=t.defaultProps,d=function(y,h){var g=h.graphicalItems,S=h.stackGroups,b=h.offset,w=h.updateId,O=h.dataStartIndex,_=h.dataEndIndex,A=y.barSize,j=y.layout,T=y.barGap,$=y.barCategoryGap,I=y.maxBarSize,N=Sx(j),C=N.numericAxisName,D=N.cateAxisName,z=nq(g),k=[];return g.forEach(function(L,B){var V=Zc(y.data,{graphicalItems:[L],dataStartIndex:O,dataEndIndex:_}),W=L.type.defaultProps!==void 0?M(M({},L.type.defaultProps),L.props):L.props,X=W.dataKey,ie=W.maxBarSize,we=W["".concat(C,"Id")],Te=W["".concat(D,"Id")],Ct={},pt=u.reduce(function(_n,Pn){var Jc=h["".concat(Pn.axisType,"Map")],Sy=W["".concat(Pn.axisType,"Id")];Jc&&Jc[Sy]||Pn.axisType==="zAxis"||Zn();var Oy=Jc[Sy];return M(M({},_n),{},Y(Y({},Pn.axisType,Oy),"".concat(Pn.axisType,"Ticks"),Er(Oy)))},Ct),K=pt[D],Z=pt["".concat(D,"Ticks")],ee=S&&S[we]&&S[we].hasStack&&yF(L,S[we].stackGroups),F=jr(L.type).indexOf("Bar")>=0,Ee=As(K,Z),ae=[],Ie=z&&eF({barSize:A,stackGroups:S,totalSize:aq(pt,D)});if(F){var De,ht,Hr=te(ie)?I:ie,li=(De=(ht=As(K,Z,!0))!==null&&ht!==void 0?ht:Hr)!==null&&De!==void 0?De:0;ae=tF({barGap:T,barCategoryGap:$,bandSize:li!==Ee?li:Ee,sizeList:Ie[Te],maxBarSize:Hr}),li!==Ee&&(ae=ae.map(function(_n){return M(M({},_n),{},{position:M(M({},_n.position),{},{offset:_n.position.offset-li/2})})}))}var Cl=L&&L.type&&L.type.getComposedData;Cl&&k.push({props:M(M({},Cl(M(M({},pt),{},{displayedData:V,props:y,dataKey:X,item:L,bandSize:Ee,barPosition:ae,offset:b,stackedData:ee,layout:j,dataStartIndex:O,dataEndIndex:_}))),{},Y(Y(Y({key:L.key||"item-".concat(B)},C,pt[C]),D,pt[D]),"animationId",w)),childIndex:JT(L,y.children),item:L})}),k},p=function(y,h){var g=y.props,S=y.dataStartIndex,b=y.dataEndIndex,w=y.updateId;if(!Km({props:g}))return null;var O=g.children,_=g.layout,A=g.stackOffset,j=g.data,T=g.reverseStackOrder,$=Sx(_),I=$.numericAxisName,N=$.cateAxisName,C=Ut(O,n),D=pF(j,C,"".concat(I,"Id"),"".concat(N,"Id"),A,T),z=u.reduce(function(W,X){var ie="".concat(X.axisType,"Map");return M(M({},W),{},Y({},ie,tq(g,M(M({},X),{},{graphicalItems:C,stackGroups:X.axisType===I&&D,dataStartIndex:S,dataEndIndex:b}))))},{}),k=iq(M(M({},z),{},{props:g,graphicalItems:C}),h==null?void 0:h.legendBBox);Object.keys(z).forEach(function(W){z[W]=f(g,z[W],k,W.replace("Map",""),r)});var L=z["".concat(N,"Map")],B=rq(L),V=d(g,M(M({},z),{},{dataStartIndex:S,dataEndIndex:b,updateId:w,graphicalItems:C,stackGroups:D,offset:k}));return M(M({formattedGraphicalItems:V,graphicalItems:C,offset:k,stackGroups:D},B),z)},m=function(x){function y(h){var g,S,b;return RG(this,y),b=FG(this,y,[h]),Y(b,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Y(b,"accessibilityManager",new _G),Y(b,"handleLegendBBoxUpdate",function(w){if(w){var O=b.state,_=O.dataStartIndex,A=O.dataEndIndex,j=O.updateId;b.setState(M({legendBBox:w},p({props:b.props,dataStartIndex:_,dataEndIndex:A,updateId:j},M(M({},b.state),{},{legendBBox:w}))))}}),Y(b,"handleReceiveSyncEvent",function(w,O,_){if(b.props.syncId===w){if(_===b.eventEmitterSymbol&&typeof b.props.syncMethod!="function")return;b.applySyncEvent(O)}}),Y(b,"handleBrushChange",function(w){var O=w.startIndex,_=w.endIndex;if(O!==b.state.dataStartIndex||_!==b.state.dataEndIndex){var A=b.state.updateId;b.setState(function(){return M({dataStartIndex:O,dataEndIndex:_},p({props:b.props,dataStartIndex:O,dataEndIndex:_,updateId:A},b.state))}),b.triggerSyncEvent({dataStartIndex:O,dataEndIndex:_})}}),Y(b,"handleMouseEnter",function(w){var O=b.getMouseInfo(w);if(O){var _=M(M({},O),{},{isTooltipActive:!0});b.setState(_),b.triggerSyncEvent(_);var A=b.props.onMouseEnter;Q(A)&&A(_,w)}}),Y(b,"triggeredAfterMouseMove",function(w){var O=b.getMouseInfo(w),_=O?M(M({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};b.setState(_),b.triggerSyncEvent(_);var A=b.props.onMouseMove;Q(A)&&A(_,w)}),Y(b,"handleItemMouseEnter",function(w){b.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),Y(b,"handleItemMouseLeave",function(){b.setState(function(){return{isTooltipActive:!1}})}),Y(b,"handleMouseMove",function(w){w.persist(),b.throttleTriggeredAfterMouseMove(w)}),Y(b,"handleMouseLeave",function(w){b.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};b.setState(O),b.triggerSyncEvent(O);var _=b.props.onMouseLeave;Q(_)&&_(O,w)}),Y(b,"handleOuterEvent",function(w){var O=ZT(w),_=Ft(b.props,"".concat(O));if(O&&Q(_)){var A,j;/.*touch.*/i.test(O)?j=b.getMouseInfo(w.changedTouches[0]):j=b.getMouseInfo(w),_((A=j)!==null&&A!==void 0?A:{},w)}}),Y(b,"handleClick",function(w){var O=b.getMouseInfo(w);if(O){var _=M(M({},O),{},{isTooltipActive:!0});b.setState(_),b.triggerSyncEvent(_);var A=b.props.onClick;Q(A)&&A(_,w)}}),Y(b,"handleMouseDown",function(w){var O=b.props.onMouseDown;if(Q(O)){var _=b.getMouseInfo(w);O(_,w)}}),Y(b,"handleMouseUp",function(w){var O=b.props.onMouseUp;if(Q(O)){var _=b.getMouseInfo(w);O(_,w)}}),Y(b,"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&b.throttleTriggeredAfterMouseMove(w.changedTouches[0])}),Y(b,"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&b.handleMouseDown(w.changedTouches[0])}),Y(b,"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&b.handleMouseUp(w.changedTouches[0])}),Y(b,"handleDoubleClick",function(w){var O=b.props.onDoubleClick;if(Q(O)){var _=b.getMouseInfo(w);O(_,w)}}),Y(b,"handleContextMenu",function(w){var O=b.props.onContextMenu;if(Q(O)){var _=b.getMouseInfo(w);O(_,w)}}),Y(b,"triggerSyncEvent",function(w){b.props.syncId!==void 0&&Jf.emit(ed,b.props.syncId,w,b.eventEmitterSymbol)}),Y(b,"applySyncEvent",function(w){var O=b.props,_=O.layout,A=O.syncMethod,j=b.state.updateId,T=w.dataStartIndex,$=w.dataEndIndex;if(w.dataStartIndex!==void 0||w.dataEndIndex!==void 0)b.setState(M({dataStartIndex:T,dataEndIndex:$},p({props:b.props,dataStartIndex:T,dataEndIndex:$,updateId:j},b.state)));else if(w.activeTooltipIndex!==void 0){var I=w.chartX,N=w.chartY,C=w.activeTooltipIndex,D=b.state,z=D.offset,k=D.tooltipTicks;if(!z)return;if(typeof A=="function")C=A(k,w);else if(A==="value"){C=-1;for(var L=0;L<k.length;L++)if(k[L].value===w.activeLabel){C=L;break}}var B=M(M({},z),{},{x:z.left,y:z.top}),V=Math.min(I,B.x+B.width),W=Math.min(N,B.y+B.height),X=k[C]&&k[C].value,ie=xh(b.state,b.props.data,C),we=k[C]?{x:_==="horizontal"?k[C].coordinate:V,y:_==="horizontal"?W:k[C].coordinate}:vP;b.setState(M(M({},w),{},{activeLabel:X,activeCoordinate:we,activePayload:ie,activeTooltipIndex:C}))}else b.setState(w)}),Y(b,"renderCursor",function(w){var O,_=b.state,A=_.isTooltipActive,j=_.activeCoordinate,T=_.activePayload,$=_.offset,I=_.activeTooltipIndex,N=_.tooltipAxisBandSize,C=b.getTooltipEventType(),D=(O=w.props.active)!==null&&O!==void 0?O:A,z=b.props.layout,k=w.key||"_recharts-cursor";return E.createElement(kG,{key:k,activeCoordinate:j,activePayload:T,activeTooltipIndex:I,chartName:r,element:w,isActive:D,layout:z,offset:$,tooltipAxisBandSize:N,tooltipEventType:C})}),Y(b,"renderPolarAxis",function(w,O,_){var A=Ft(w,"type.axisType"),j=Ft(b.state,"".concat(A,"Map")),T=w.type.defaultProps,$=T!==void 0?M(M({},T),w.props):w.props,I=j&&j[$["".concat(A,"Id")]];return R.cloneElement(w,M(M({},I),{},{className:ne(A,I.className),key:w.key||"".concat(O,"-").concat(_),ticks:Er(I,!0)}))}),Y(b,"renderPolarGrid",function(w){var O=w.props,_=O.radialLines,A=O.polarAngles,j=O.polarRadius,T=b.state,$=T.radiusAxisMap,I=T.angleAxisMap,N=Zr($),C=Zr(I),D=C.cx,z=C.cy,k=C.innerRadius,L=C.outerRadius;return R.cloneElement(w,{polarAngles:Array.isArray(A)?A:Er(C,!0).map(function(B){return B.coordinate}),polarRadius:Array.isArray(j)?j:Er(N,!0).map(function(B){return B.coordinate}),cx:D,cy:z,innerRadius:k,outerRadius:L,key:w.key||"polar-grid",radialLines:_})}),Y(b,"renderLegend",function(){var w=b.state.formattedGraphicalItems,O=b.props,_=O.children,A=O.width,j=O.height,T=b.props.margin||{},$=A-(T.left||0)-(T.right||0),I=t_({children:_,formattedGraphicalItems:w,legendWidth:$,legendContent:s});if(!I)return null;var N=I.item,C=gx(I,CG);return R.cloneElement(N,M(M({},C),{},{chartWidth:A,chartHeight:j,margin:T,onBBoxUpdate:b.handleLegendBBoxUpdate}))}),Y(b,"renderTooltip",function(){var w,O=b.props,_=O.children,A=O.accessibilityLayer,j=Pt(_,Zt);if(!j)return null;var T=b.state,$=T.isTooltipActive,I=T.activeCoordinate,N=T.activePayload,C=T.activeLabel,D=T.offset,z=(w=j.props.active)!==null&&w!==void 0?w:$;return R.cloneElement(j,{viewBox:M(M({},D),{},{x:D.left,y:D.top}),active:z,label:C,payload:z?N:[],coordinate:I,accessibilityLayer:A})}),Y(b,"renderBrush",function(w){var O=b.props,_=O.margin,A=O.data,j=b.state,T=j.offset,$=j.dataStartIndex,I=j.dataEndIndex,N=j.updateId;return R.cloneElement(w,{key:w.key||"_recharts-brush",onChange:ou(b.handleBrushChange,w.props.onChange),data:A,x:H(w.props.x)?w.props.x:T.left,y:H(w.props.y)?w.props.y:T.top+T.height+T.brushBottom-(_.bottom||0),width:H(w.props.width)?w.props.width:T.width,startIndex:$,endIndex:I,updateId:"brush-".concat(N)})}),Y(b,"renderReferenceElement",function(w,O,_){if(!w)return null;var A=b,j=A.clipPathId,T=b.state,$=T.xAxisMap,I=T.yAxisMap,N=T.offset,C=w.type.defaultProps||{},D=w.props,z=D.xAxisId,k=z===void 0?C.xAxisId:z,L=D.yAxisId,B=L===void 0?C.yAxisId:L;return R.cloneElement(w,{key:w.key||"".concat(O,"-").concat(_),xAxis:$[k],yAxis:I[B],viewBox:{x:N.left,y:N.top,width:N.width,height:N.height},clipPathId:j})}),Y(b,"renderActivePoints",function(w){var O=w.item,_=w.activePoint,A=w.basePoint,j=w.childIndex,T=w.isRange,$=[],I=O.props.key,N=O.item.type.defaultProps!==void 0?M(M({},O.item.type.defaultProps),O.item.props):O.item.props,C=N.activeDot,D=N.dataKey,z=M(M({index:j,dataKey:D,cx:_.x,cy:_.y,r:4,fill:fy(O.item),strokeWidth:2,stroke:"#fff",payload:_.payload,value:_.value},J(C,!1)),Xu(C));return $.push(y.renderActiveDot(C,z,"".concat(I,"-activePoint-").concat(j))),A?$.push(y.renderActiveDot(C,M(M({},z),{},{cx:A.x,cy:A.y}),"".concat(I,"-basePoint-").concat(j))):T&&$.push(null),$}),Y(b,"renderGraphicChild",function(w,O,_){var A=b.filterFormatItem(w,O,_);if(!A)return null;var j=b.getTooltipEventType(),T=b.state,$=T.isTooltipActive,I=T.tooltipAxis,N=T.activeTooltipIndex,C=T.activeLabel,D=b.props.children,z=Pt(D,Zt),k=A.props,L=k.points,B=k.isRange,V=k.baseLine,W=A.item.type.defaultProps!==void 0?M(M({},A.item.type.defaultProps),A.item.props):A.item.props,X=W.activeDot,ie=W.hide,we=W.activeBar,Te=W.activeShape,Ct=!!(!ie&&$&&z&&(X||we||Te)),pt={};j!=="axis"&&z&&z.props.trigger==="click"?pt={onClick:ou(b.handleItemMouseEnter,w.props.onClick)}:j!=="axis"&&(pt={onMouseLeave:ou(b.handleItemMouseLeave,w.props.onMouseLeave),onMouseEnter:ou(b.handleItemMouseEnter,w.props.onMouseEnter)});var K=R.cloneElement(w,M(M({},A.props),pt));function Z(Pn){return typeof I.dataKey=="function"?I.dataKey(Pn.payload):null}if(Ct)if(N>=0){var ee,F;if(I.dataKey&&!I.allowDuplicatedCategory){var Ee=typeof I.dataKey=="function"?Z:"payload.".concat(I.dataKey.toString());ee=qu(L,Ee,C),F=B&&V&&qu(V,Ee,C)}else ee=L==null?void 0:L[N],F=B&&V&&V[N];if(Te||we){var ae=w.props.activeIndex!==void 0?w.props.activeIndex:N;return[R.cloneElement(w,M(M(M({},A.props),pt),{},{activeIndex:ae})),null,null]}if(!te(ee))return[K].concat(ma(b.renderActivePoints({item:A,activePoint:ee,basePoint:F,childIndex:N,isRange:B})))}else{var Ie,De=(Ie=b.getItemByXY(b.state.activeCoordinate))!==null&&Ie!==void 0?Ie:{graphicalItem:K},ht=De.graphicalItem,Hr=ht.item,li=Hr===void 0?w:Hr,Cl=ht.childIndex,_n=M(M(M({},A.props),pt),{},{activeIndex:Cl});return[R.cloneElement(li,_n),null,null]}return B?[K,null,null]:[K,null]}),Y(b,"renderCustomized",function(w,O,_){return R.cloneElement(w,M(M({key:"recharts-customized-".concat(_)},b.props),b.state))}),Y(b,"renderMap",{CartesianGrid:{handler:fu,once:!0},ReferenceArea:{handler:b.renderReferenceElement},ReferenceLine:{handler:fu},ReferenceDot:{handler:b.renderReferenceElement},XAxis:{handler:fu},YAxis:{handler:fu},Brush:{handler:b.renderBrush,once:!0},Bar:{handler:b.renderGraphicChild},Line:{handler:b.renderGraphicChild},Area:{handler:b.renderGraphicChild},Radar:{handler:b.renderGraphicChild},RadialBar:{handler:b.renderGraphicChild},Scatter:{handler:b.renderGraphicChild},Pie:{handler:b.renderGraphicChild},Funnel:{handler:b.renderGraphicChild},Tooltip:{handler:b.renderCursor,once:!0},PolarGrid:{handler:b.renderPolarGrid,once:!0},PolarAngleAxis:{handler:b.renderPolarAxis},PolarRadiusAxis:{handler:b.renderPolarAxis},Customized:{handler:b.renderCustomized}}),b.clipPathId="".concat((g=h.id)!==null&&g!==void 0?g:Ea("recharts"),"-clip"),b.throttleTriggeredAfterMouseMove=tO(b.triggeredAfterMouseMove,(S=h.throttleDelay)!==null&&S!==void 0?S:1e3/60),b.state={},b}return HG(y,x),zG(y,[{key:"componentDidMount",value:function(){var g,S;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(g=this.props.margin.left)!==null&&g!==void 0?g:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var g=this.props,S=g.children,b=g.data,w=g.height,O=g.layout,_=Pt(S,Zt);if(_){var A=_.props.defaultIndex;if(!(typeof A!="number"||A<0||A>this.state.tooltipTicks.length-1)){var j=this.state.tooltipTicks[A]&&this.state.tooltipTicks[A].value,T=xh(this.state,b,A,j),$=this.state.tooltipTicks[A].coordinate,I=(this.state.offset.top+w)/2,N=O==="horizontal",C=N?{x:$,y:I}:{y:$,x:I},D=this.state.formattedGraphicalItems.find(function(k){var L=k.item;return L.type.name==="Scatter"});D&&(C=M(M({},C),D.props.points[A].tooltipPosition),T=D.props.points[A].tooltipPayload);var z={activeTooltipIndex:A,isTooltipActive:!0,activeLabel:j,activePayload:T,activeCoordinate:C};this.setState(z),this.renderCursor(_),this.accessibilityManager.setIndex(A)}}}},{key:"getSnapshotBeforeUpdate",value:function(g,S){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==S.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==g.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==g.margin){var b,w;this.accessibilityManager.setDetails({offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0}})}return null}},{key:"componentDidUpdate",value:function(g){Qd([Pt(g.children,Zt)],[Pt(this.props.children,Zt)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var g=Pt(this.props.children,Zt);if(g&&typeof g.props.shared=="boolean"){var S=g.props.shared?"axis":"item";return l.indexOf(S)>=0?S:a}return a}},{key:"getMouseInfo",value:function(g){if(!this.container)return null;var S=this.container,b=S.getBoundingClientRect(),w=PB(b),O={chartX:Math.round(g.pageX-w.left),chartY:Math.round(g.pageY-w.top)},_=b.width/S.offsetWidth||1,A=this.inRange(O.chartX,O.chartY,_);if(!A)return null;var j=this.state,T=j.xAxisMap,$=j.yAxisMap,I=this.getTooltipEventType(),N=xx(this.state,this.props.data,this.props.layout,A);if(I!=="axis"&&T&&$){var C=Zr(T).scale,D=Zr($).scale,z=C&&C.invert?C.invert(O.chartX):null,k=D&&D.invert?D.invert(O.chartY):null;return M(M({},O),{},{xValue:z,yValue:k},N)}return N?M(M({},O),N):null}},{key:"inRange",value:function(g,S){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,O=g/b,_=S/b;if(w==="horizontal"||w==="vertical"){var A=this.state.offset,j=O>=A.left&&O<=A.left+A.width&&_>=A.top&&_<=A.top+A.height;return j?{x:O,y:_}:null}var T=this.state,$=T.angleAxisMap,I=T.radiusAxisMap;if($&&I){var N=Zr($);return rb({x:O,y:_},N)}return null}},{key:"parseEventsOfWrapper",value:function(){var g=this.props.children,S=this.getTooltipEventType(),b=Pt(g,Zt),w={};b&&S==="axis"&&(b.props.trigger==="click"?w={onClick:this.handleClick}:w={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var O=Xu(this.props,this.handleOuterEvent);return M(M({},O),w)}},{key:"addListener",value:function(){Jf.on(ed,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Jf.removeListener(ed,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(g,S,b){for(var w=this.state.formattedGraphicalItems,O=0,_=w.length;O<_;O++){var A=w[O];if(A.item===g||A.props.key===g.key||S===jr(A.item.type)&&b===A.childIndex)return A}return null}},{key:"renderClipPath",value:function(){var g=this.clipPathId,S=this.state.offset,b=S.left,w=S.top,O=S.height,_=S.width;return E.createElement("defs",null,E.createElement("clipPath",{id:g},E.createElement("rect",{x:b,y:w,height:O,width:_})))}},{key:"getXScales",value:function(){var g=this.state.xAxisMap;return g?Object.entries(g).reduce(function(S,b){var w=mx(b,2),O=w[0],_=w[1];return M(M({},S),{},Y({},O,_.scale))},{}):null}},{key:"getYScales",value:function(){var g=this.state.yAxisMap;return g?Object.entries(g).reduce(function(S,b){var w=mx(b,2),O=w[0],_=w[1];return M(M({},S),{},Y({},O,_.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(g){var S;return(S=this.state.xAxisMap)===null||S===void 0||(S=S[g])===null||S===void 0?void 0:S.scale}},{key:"getYScaleByAxisId",value:function(g){var S;return(S=this.state.yAxisMap)===null||S===void 0||(S=S[g])===null||S===void 0?void 0:S.scale}},{key:"getItemByXY",value:function(g){var S=this.state,b=S.formattedGraphicalItems,w=S.activeItem;if(b&&b.length)for(var O=0,_=b.length;O<_;O++){var A=b[O],j=A.props,T=A.item,$=T.type.defaultProps!==void 0?M(M({},T.type.defaultProps),T.props):T.props,I=jr(T.type);if(I==="Bar"){var N=(j.data||[]).find(function(k){return f9(g,k)});if(N)return{graphicalItem:A,payload:N}}else if(I==="RadialBar"){var C=(j.data||[]).find(function(k){return rb(g,k)});if(C)return{graphicalItem:A,payload:C}}else if(Vc(A,w)||Kc(A,w)||fl(A,w)){var D=h7({graphicalItem:A,activeTooltipItem:w,itemData:$.data}),z=$.activeIndex===void 0?D:$.activeIndex;return{graphicalItem:M(M({},A),{},{childIndex:z}),payload:fl(A,w)?$.data[D]:A.props.data[D]}}}return null}},{key:"render",value:function(){var g=this;if(!Km(this))return null;var S=this.props,b=S.children,w=S.className,O=S.width,_=S.height,A=S.style,j=S.compact,T=S.title,$=S.desc,I=gx(S,MG),N=J(I,!1);if(j)return E.createElement(Qb,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},E.createElement(Jd,Ei({},N,{width:O,height:_,title:T,desc:$}),this.renderClipPath(),qm(b,this.renderMap)));if(this.props.accessibilityLayer){var C,D;N.tabIndex=(C=this.props.tabIndex)!==null&&C!==void 0?C:0,N.role=(D=this.props.role)!==null&&D!==void 0?D:"application",N.onKeyDown=function(k){g.accessibilityManager.keyboardEvent(k)},N.onFocus=function(){g.accessibilityManager.focus()}}var z=this.parseEventsOfWrapper();return E.createElement(Qb,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},E.createElement("div",Ei({className:ne("recharts-wrapper",w),style:M({position:"relative",cursor:"default",width:O,height:_},A)},z,{ref:function(L){g.container=L}}),E.createElement(Jd,Ei({},N,{width:O,height:_,title:T,desc:$,style:YG}),this.renderClipPath(),qm(b,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(R.Component);Y(m,"displayName",r),Y(m,"defaultProps",M({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},c)),Y(m,"getDerivedStateFromProps",function(x,y){var h=x.dataKey,g=x.data,S=x.children,b=x.width,w=x.height,O=x.layout,_=x.stackOffset,A=x.margin,j=y.dataStartIndex,T=y.dataEndIndex;if(y.updateId===void 0){var $=wx(x);return M(M(M({},$),{},{updateId:0},p(M(M({props:x},$),{},{updateId:0}),y)),{},{prevDataKey:h,prevData:g,prevWidth:b,prevHeight:w,prevLayout:O,prevStackOffset:_,prevMargin:A,prevChildren:S})}if(h!==y.prevDataKey||g!==y.prevData||b!==y.prevWidth||w!==y.prevHeight||O!==y.prevLayout||_!==y.prevStackOffset||!Ni(A,y.prevMargin)){var I=wx(x),N={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},C=M(M({},xx(y,g,O)),{},{updateId:y.updateId+1}),D=M(M(M({},I),N),C);return M(M(M({},D),p(M({props:x},D),y)),{},{prevDataKey:h,prevData:g,prevWidth:b,prevHeight:w,prevLayout:O,prevStackOffset:_,prevMargin:A,prevChildren:S})}if(!Qd(S,y.prevChildren)){var z,k,L,B,V=Pt(S,ia),W=V&&(z=(k=V.props)===null||k===void 0?void 0:k.startIndex)!==null&&z!==void 0?z:j,X=V&&(L=(B=V.props)===null||B===void 0?void 0:B.endIndex)!==null&&L!==void 0?L:T,ie=W!==j||X!==T,we=!te(g),Te=we&&!ie?y.updateId:y.updateId+1;return M(M({updateId:Te},p(M(M({props:x},y),{},{updateId:Te,dataStartIndex:W,dataEndIndex:X}),y)),{},{prevChildren:S,dataStartIndex:W,dataEndIndex:X})}return null}),Y(m,"renderActiveDot",function(x,y,h){var g;return R.isValidElement(x)?g=R.cloneElement(x,y):Q(x)?g=x(y):g=E.createElement(Hc,y),E.createElement(ye,{className:"recharts-active-dot",key:h},g)});var v=R.forwardRef(function(y,h){return E.createElement(m,Ei({},y,{ref:h}))});return v.displayName=m.displayName,v},oq=mP({chartName:"LineChart",GraphicalChild:kl,axisComponents:[{axisType:"xAxis",AxisComp:pa},{axisType:"yAxis",AxisComp:va}],formatAxisMap:k_}),lq=mP({chartName:"AreaChart",GraphicalChild:On,axisComponents:[{axisType:"xAxis",AxisComp:pa},{axisType:"yAxis",AxisComp:va}],formatAxisMap:k_});function uq(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(2)} MB`}function sq(e){const t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=Math.floor(e%60);return t>0?`${t}h ${r}m ${n}s`:r>0?`${r}m ${n}s`:`${n}s`}function cq(){var c;const[e,t]=R.useState(null),[r,n]=R.useState(null);if(R.useEffect(()=>{const d=async()=>{try{const m=await vv.getMetrics();t(m),n(null)}catch(m){n(m instanceof Error?m.message:"Failed to load metrics")}};d();const p=setInterval(d,1e3);return()=>clearInterval(p)},[]),r&&!e)return P.jsxs("div",{className:"bg-slate-800 rounded-xl border border-slate-700 p-8 text-center text-slate-400",children:[P.jsx("p",{children:r}),P.jsx("p",{className:"text-sm mt-2",children:"Ensure the server is running and Clockwork is enabled."})]});if(!e)return P.jsx("div",{className:"bg-slate-800 rounded-xl border border-slate-700 p-8 text-center text-slate-400",children:"Loading metrics…"});const a=(e.spans??[])[0]??{responseTime:[],rps:[],statusCodes:[],interval:1},o=a.responseTime.map((d,p)=>({index:p,responseTime:Math.round(d),rps:a.rps[p]!=null?Math.round(a.rps[p]*10)/10:0})),u=((c=a.statusCodes)!=null&&c.length?a.statusCodes.flatMap(d=>Object.entries(d).map(([p,m])=>({bucket:p,count:m}))):[]).reduce((d,{bucket:p,count:m})=>(d[p]=(d[p]??0)+m,d),{}),s=e.os,f=e.process;return P.jsxs("div",{className:"space-y-6",children:[P.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[P.jsxs("div",{className:"bg-slate-800 rounded-xl border border-slate-700 p-4 flex items-center gap-3",children:[P.jsx("div",{className:"p-2 bg-amber-600/20 rounded-lg",children:P.jsx(qE,{className:"w-5 h-5 text-amber-400"})}),P.jsxs("div",{children:[P.jsx("p",{className:"text-xs text-slate-400 uppercase tracking-wide",children:"CPU"}),P.jsx("p",{className:"text-lg font-semibold text-white",children:(s==null?void 0:s.cpu)!=null?`${s.cpu.toFixed(1)}%`:"—"})]})]}),P.jsxs("div",{className:"bg-slate-800 rounded-xl border border-slate-700 p-4 flex items-center gap-3",children:[P.jsx("div",{className:"p-2 bg-emerald-600/20 rounded-lg",children:P.jsx(YE,{className:"w-5 h-5 text-emerald-400"})}),P.jsxs("div",{children:[P.jsx("p",{className:"text-xs text-slate-400 uppercase tracking-wide",children:"Memory"}),P.jsx("p",{className:"text-lg font-semibold text-white",children:(s==null?void 0:s.memory)!=null?`${s.memory.toFixed(1)}%`:"—"}),P.jsx("p",{className:"text-xs text-slate-400",children:(s==null?void 0:s.heapUsed)!=null?uq(s.heapUsed):"—"})]})]}),P.jsxs("div",{className:"bg-slate-800 rounded-xl border border-slate-700 p-4 flex items-center gap-3",children:[P.jsx("div",{className:"p-2 bg-blue-600/20 rounded-lg",children:P.jsx(t$,{className:"w-5 h-5 text-blue-400"})}),P.jsxs("div",{children:[P.jsx("p",{className:"text-xs text-slate-400 uppercase tracking-wide",children:"Event loop"}),P.jsx("p",{className:"text-lg font-semibold text-white",children:(f==null?void 0:f.eventLoopDelay)!=null?`${Math.round(f.eventLoopDelay)} ms`:"—"})]})]}),P.jsxs("div",{className:"bg-slate-800 rounded-xl border border-slate-700 p-4 flex items-center gap-3",children:[P.jsx("div",{className:"p-2 bg-violet-600/20 rounded-lg",children:P.jsx(Do,{className:"w-5 h-5 text-violet-400"})}),P.jsxs("div",{children:[P.jsx("p",{className:"text-xs text-slate-400 uppercase tracking-wide",children:"Uptime"}),P.jsx("p",{className:"text-lg font-semibold text-white",children:(f==null?void 0:f.uptime)!=null?sq(f.uptime):"—"})]})]})]}),o.length>0&&P.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[P.jsxs("div",{className:"bg-slate-800 rounded-xl border border-slate-700 p-4",children:[P.jsxs("h3",{className:"text-sm font-medium text-slate-300 mb-3 flex items-center gap-2",children:[P.jsx(KE,{className:"w-4 h-4"})," Response time (ms) — ",a.interval,"s span"]}),P.jsx("div",{className:"h-48",children:P.jsx(Vg,{width:"100%",height:"100%",children:P.jsxs(lq,{data:o,margin:{top:5,right:5,left:0,bottom:0},children:[P.jsx("defs",{children:P.jsxs("linearGradient",{id:"colorResponseTime",x1:"0",y1:"0",x2:"0",y2:"1",children:[P.jsx("stop",{offset:"5%",stopColor:"#8b5cf6",stopOpacity:.3}),P.jsx("stop",{offset:"95%",stopColor:"#8b5cf6",stopOpacity:0})]})}),P.jsx(uh,{strokeDasharray:"3 3",stroke:"#334155"}),P.jsx(pa,{dataKey:"index",stroke:"#64748b",tick:{fontSize:10}}),P.jsx(va,{stroke:"#64748b",tick:{fontSize:10}}),P.jsx(Zt,{contentStyle:{backgroundColor:"#1e293b",border:"1px solid #334155"},labelStyle:{color:"#94a3b8"},formatter:d=>[d,"Response time (ms)"]}),P.jsx(On,{type:"monotone",dataKey:"responseTime",stroke:"#8b5cf6",fillOpacity:1,fill:"url(#colorResponseTime)",name:"Response time (ms)"})]})})})]}),P.jsxs("div",{className:"bg-slate-800 rounded-xl border border-slate-700 p-4",children:[P.jsxs("h3",{className:"text-sm font-medium text-slate-300 mb-3 flex items-center gap-2",children:[P.jsx(Do,{className:"w-4 h-4"})," Requests per second"]}),P.jsx("div",{className:"h-48",children:P.jsx(Vg,{width:"100%",height:"100%",children:P.jsxs(oq,{data:o,margin:{top:5,right:5,left:0,bottom:0},children:[P.jsx(uh,{strokeDasharray:"3 3",stroke:"#334155"}),P.jsx(pa,{dataKey:"index",stroke:"#64748b",tick:{fontSize:10}}),P.jsx(va,{stroke:"#64748b",tick:{fontSize:10}}),P.jsx(Zt,{contentStyle:{backgroundColor:"#1e293b",border:"1px solid #334155"},formatter:d=>[d,"RPS"]}),P.jsx(kl,{type:"monotone",dataKey:"rps",stroke:"#10b981",strokeWidth:2,dot:!1,name:"RPS"})]})})})]})]}),Object.keys(u).length>0&&P.jsxs("div",{className:"bg-slate-800 rounded-xl border border-slate-700 p-4",children:[P.jsx("h3",{className:"text-sm font-medium text-slate-300 mb-3",children:"Status codes (recent)"}),P.jsx("div",{className:"flex flex-wrap gap-4",children:Object.entries(u).map(([d,p])=>P.jsxs("div",{className:"flex items-center gap-2",children:[P.jsx("span",{className:`px-2 py-1 rounded text-sm font-medium ${d==="2xx"?"bg-green-600/30 text-green-300":d==="3xx"?"bg-blue-600/30 text-blue-300":d==="4xx"?"bg-yellow-600/30 text-yellow-300":"bg-red-600/30 text-red-300"}`,children:d}),P.jsx("span",{className:"text-slate-400",children:p})]},d))})]}),e.healthChecks&&e.healthChecks.length>0&&P.jsxs("div",{className:"bg-slate-800 rounded-xl border border-slate-700 p-4",children:[P.jsx("h3",{className:"text-sm font-medium text-slate-300 mb-3",children:"Health checks"}),P.jsx("div",{className:"space-y-2",children:e.healthChecks.map((d,p)=>P.jsxs("div",{className:"flex items-center justify-between py-2 px-3 rounded-lg bg-slate-700/50",children:[P.jsxs("div",{className:"flex items-center gap-2",children:[d.status==="ok"?P.jsx(GE,{className:"w-4 h-4 text-green-400"}):P.jsx(r$,{className:"w-4 h-4 text-red-400"}),P.jsx("span",{className:"text-slate-200 font-mono text-sm",children:d.name||d.path})]}),P.jsxs("div",{className:"flex items-center gap-3 text-sm",children:[d.duration!=null&&P.jsxs("span",{className:"text-slate-400",children:[d.duration," ms"]}),d.statusCode!=null&&P.jsxs("span",{className:"text-slate-400",children:["HTTP ",d.statusCode]}),d.error&&P.jsx("span",{className:"text-red-400",children:d.error})]})]},p))})]}),o.length===0&&!s&&!f&&Object.keys(u).length===0&&P.jsx("div",{className:"bg-slate-800 rounded-xl border border-slate-700 p-8 text-center text-slate-400",children:P.jsx("p",{children:"No metrics data yet. Request data is collected per-request; aggregate metrics can be added via plugins."})})]})}function fq(){const[e,t]=R.useState("requests"),[r,n]=R.useState([]),[i,a]=R.useState(null),[o,l]=R.useState(!0);R.useEffect(()=>{if(e==="requests"){u();const s=setInterval(u,2e3);return()=>clearInterval(s)}},[e]);const u=async()=>{try{const s=await vv.getRequests();n(s)}catch(s){console.error("Error fetching requests:",s)}finally{l(!1)}};return P.jsxs("div",{className:"min-h-screen bg-slate-900",children:[P.jsx("header",{className:"bg-slate-800 border-b border-slate-700 sticky top-0 z-10",children:P.jsx("div",{className:"max-w-screen-2xl mx-auto px-6 py-4",children:P.jsxs("div",{className:"flex items-center justify-between",children:[P.jsxs("div",{className:"flex items-center gap-3",children:[P.jsx("div",{className:"bg-orange-600 p-2 rounded-lg",children:P.jsx(Do,{className:"w-6 h-6 text-white"})}),P.jsxs("div",{children:[P.jsx("h1",{className:"text-2xl font-bold text-white",children:"Clockwork"}),P.jsx("p",{className:"text-sm text-slate-400",children:"Node.js Debugging, Profiling & Metrics"})]})]}),P.jsxs("nav",{className:"flex rounded-lg bg-slate-700/50 p-1",children:[P.jsxs("button",{onClick:()=>t("requests"),className:`flex items-center gap-2 px-4 py-2 rounded-md text-sm font-medium transition-colors ${e==="requests"?"bg-slate-600 text-white":"text-slate-400 hover:text-white"}`,children:[P.jsx(ZE,{className:"w-4 h-4"})," Requests"]}),P.jsxs("button",{onClick:()=>t("metrics"),className:`flex items-center gap-2 px-4 py-2 rounded-md text-sm font-medium transition-colors ${e==="metrics"?"bg-slate-600 text-white":"text-slate-400 hover:text-white"}`,children:[P.jsx(XE,{className:"w-4 h-4"})," Metrics"]})]})]})})}),P.jsx("div",{className:"max-w-screen-2xl mx-auto p-6",children:e==="metrics"?P.jsx(cq,{}):P.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[P.jsx("div",{className:"lg:col-span-1",children:P.jsx(n$,{requests:r,selectedRequestId:i,onSelectRequest:a,loading:o,onRefresh:u})}),P.jsx("div",{className:"lg:col-span-1",children:i?P.jsx(i$,{requestId:i}):P.jsx("div",{className:"bg-slate-800 rounded-xl border border-slate-700 h-full flex items-center justify-center",children:P.jsxs("div",{className:"text-center text-slate-400",children:[P.jsx(Do,{className:"w-12 h-12 mx-auto mb-3 opacity-50"}),P.jsx("p",{children:"Select a request to view details"})]})})})]})})]})}function dq(){return P.jsx(fq,{})}Iw(document.getElementById("root")).render(P.jsx(R.StrictMode,{children:P.jsx(dq,{})}));
|