feature_map 1.2.8 → 1.2.9

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.
@@ -15,7 +15,7 @@
15
15
  </head>
16
16
  <body class="bg-gray-100">
17
17
  <div id="root"></div>
18
- <script>function uC(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(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"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(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 r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var mu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function me(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xE={exports:{}},Gf={},bE={exports:{}},ae={};/**
18
+ <script>function dC(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var mu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function me(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yE={exports:{}},Gf={},xE={exports:{}},oe={};/**
19
19
  * @license React
20
20
  * react.production.min.js
21
21
  *
@@ -23,7 +23,7 @@
23
23
  *
24
24
  * This source code is licensed under the MIT license found in the
25
25
  * LICENSE file in the root directory of this source tree.
26
- */var Fs=Symbol.for("react.element"),cC=Symbol.for("react.portal"),fC=Symbol.for("react.fragment"),dC=Symbol.for("react.strict_mode"),pC=Symbol.for("react.profiler"),hC=Symbol.for("react.provider"),mC=Symbol.for("react.context"),vC=Symbol.for("react.forward_ref"),gC=Symbol.for("react.suspense"),yC=Symbol.for("react.memo"),xC=Symbol.for("react.lazy"),cx=Symbol.iterator;function bC(e){return e===null||typeof e!="object"?null:(e=cx&&e[cx]||e["@@iterator"],typeof e=="function"?e:null)}var wE={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_E=Object.assign,SE={};function Eo(e,t,n){this.props=e,this.context=t,this.refs=SE,this.updater=n||wE}Eo.prototype.isReactComponent={};Eo.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")};Eo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function EE(){}EE.prototype=Eo.prototype;function _g(e,t,n){this.props=e,this.context=t,this.refs=SE,this.updater=n||wE}var Sg=_g.prototype=new EE;Sg.constructor=_g;_E(Sg,Eo.prototype);Sg.isPureReactComponent=!0;var fx=Array.isArray,OE=Object.prototype.hasOwnProperty,Eg={current:null},$E={key:!0,ref:!0,__self:!0,__source:!0};function PE(e,t,n){var r,i={},a=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)OE.call(t,r)&&!$E.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];i.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:Fs,type:e,key:a,ref:o,props:i,_owner:Eg.current}}function wC(e,t){return{$$typeof:Fs,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Og(e){return typeof e=="object"&&e!==null&&e.$$typeof===Fs}function _C(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var dx=/\/+/g;function Sp(e,t){return typeof e=="object"&&e!==null&&e.key!=null?_C(""+e.key):t.toString(36)}function Zu(e,t,n,r,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 Fs:case cC:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+Sp(o,0):r,fx(i)?(n="",e!=null&&(n=e.replace(dx,"$&/")+"/"),Zu(i,t,n,"",function(u){return u})):i!=null&&(Og(i)&&(i=wC(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(dx,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",fx(e))for(var l=0;l<e.length;l++){a=e[l];var s=r+Sp(a,l);o+=Zu(a,t,n,s,i)}else if(s=bC(e),typeof s=="function")for(e=s.call(e),l=0;!(a=e.next()).done;)a=a.value,s=r+Sp(a,l++),o+=Zu(a,t,n,s,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 vu(e,t,n){if(e==null)return e;var r=[],i=0;return Zu(e,r,"","",function(a){return t.call(n,a,i++)}),r}function SC(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var $t={current:null},Ju={transition:null},EC={ReactCurrentDispatcher:$t,ReactCurrentBatchConfig:Ju,ReactCurrentOwner:Eg};function jE(){throw Error("act(...) is not supported in production builds of React.")}ae.Children={map:vu,forEach:function(e,t,n){vu(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return vu(e,function(){t++}),t},toArray:function(e){return vu(e,function(t){return t})||[]},only:function(e){if(!Og(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ae.Component=Eo;ae.Fragment=fC;ae.Profiler=pC;ae.PureComponent=_g;ae.StrictMode=dC;ae.Suspense=gC;ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=EC;ae.act=jE;ae.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=_E({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=Eg.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)OE.call(t,s)&&!$E.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Fs,type:e.type,key:i,ref:a,props:r,_owner:o}};ae.createContext=function(e){return e={$$typeof:mC,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:hC,_context:e},e.Consumer=e};ae.createElement=PE;ae.createFactory=function(e){var t=PE.bind(null,e);return t.type=e,t};ae.createRef=function(){return{current:null}};ae.forwardRef=function(e){return{$$typeof:vC,render:e}};ae.isValidElement=Og;ae.lazy=function(e){return{$$typeof:xC,_payload:{_status:-1,_result:e},_init:SC}};ae.memo=function(e,t){return{$$typeof:yC,type:e,compare:t===void 0?null:t}};ae.startTransition=function(e){var t=Ju.transition;Ju.transition={};try{e()}finally{Ju.transition=t}};ae.unstable_act=jE;ae.useCallback=function(e,t){return $t.current.useCallback(e,t)};ae.useContext=function(e){return $t.current.useContext(e)};ae.useDebugValue=function(){};ae.useDeferredValue=function(e){return $t.current.useDeferredValue(e)};ae.useEffect=function(e,t){return $t.current.useEffect(e,t)};ae.useId=function(){return $t.current.useId()};ae.useImperativeHandle=function(e,t,n){return $t.current.useImperativeHandle(e,t,n)};ae.useInsertionEffect=function(e,t){return $t.current.useInsertionEffect(e,t)};ae.useLayoutEffect=function(e,t){return $t.current.useLayoutEffect(e,t)};ae.useMemo=function(e,t){return $t.current.useMemo(e,t)};ae.useReducer=function(e,t,n){return $t.current.useReducer(e,t,n)};ae.useRef=function(e){return $t.current.useRef(e)};ae.useState=function(e){return $t.current.useState(e)};ae.useSyncExternalStore=function(e,t,n){return $t.current.useSyncExternalStore(e,t,n)};ae.useTransition=function(){return $t.current.useTransition()};ae.version="18.3.1";bE.exports=ae;var w=bE.exports;const j=me(w),mc=uC({__proto__:null,default:j},[w]);/**
26
+ */var Fs=Symbol.for("react.element"),pC=Symbol.for("react.portal"),hC=Symbol.for("react.fragment"),mC=Symbol.for("react.strict_mode"),vC=Symbol.for("react.profiler"),gC=Symbol.for("react.provider"),yC=Symbol.for("react.context"),xC=Symbol.for("react.forward_ref"),bC=Symbol.for("react.suspense"),wC=Symbol.for("react.memo"),_C=Symbol.for("react.lazy"),cx=Symbol.iterator;function SC(e){return e===null||typeof e!="object"?null:(e=cx&&e[cx]||e["@@iterator"],typeof e=="function"?e:null)}var bE={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},wE=Object.assign,_E={};function Ea(e,t,n){this.props=e,this.context=t,this.refs=_E,this.updater=n||bE}Ea.prototype.isReactComponent={};Ea.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")};Ea.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function SE(){}SE.prototype=Ea.prototype;function Sg(e,t,n){this.props=e,this.context=t,this.refs=_E,this.updater=n||bE}var Eg=Sg.prototype=new SE;Eg.constructor=Sg;wE(Eg,Ea.prototype);Eg.isPureReactComponent=!0;var fx=Array.isArray,EE=Object.prototype.hasOwnProperty,Og={current:null},OE={key:!0,ref:!0,__self:!0,__source:!0};function $E(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)EE.call(t,r)&&!OE.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var s=Array(l),u=0;u<l;u++)s[u]=arguments[u+2];i.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:Fs,type:e,key:o,ref:a,props:i,_owner:Og.current}}function EC(e,t){return{$$typeof:Fs,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function $g(e){return typeof e=="object"&&e!==null&&e.$$typeof===Fs}function OC(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var dx=/\/+/g;function Sp(e,t){return typeof e=="object"&&e!==null&&e.key!=null?OC(""+e.key):t.toString(36)}function Zu(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Fs:case pC:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+Sp(a,0):r,fx(i)?(n="",e!=null&&(n=e.replace(dx,"$&/")+"/"),Zu(i,t,n,"",function(u){return u})):i!=null&&($g(i)&&(i=EC(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(dx,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",fx(e))for(var l=0;l<e.length;l++){o=e[l];var s=r+Sp(o,l);a+=Zu(o,t,n,s,i)}else if(s=SC(e),typeof s=="function")for(e=s.call(e),l=0;!(o=e.next()).done;)o=o.value,s=r+Sp(o,l++),a+=Zu(o,t,n,s,i);else if(o==="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 a}function vu(e,t,n){if(e==null)return e;var r=[],i=0;return Zu(e,r,"","",function(o){return t.call(n,o,i++)}),r}function $C(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var $t={current:null},Ju={transition:null},PC={ReactCurrentDispatcher:$t,ReactCurrentBatchConfig:Ju,ReactCurrentOwner:Og};function PE(){throw Error("act(...) is not supported in production builds of React.")}oe.Children={map:vu,forEach:function(e,t,n){vu(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return vu(e,function(){t++}),t},toArray:function(e){return vu(e,function(t){return t})||[]},only:function(e){if(!$g(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};oe.Component=Ea;oe.Fragment=hC;oe.Profiler=vC;oe.PureComponent=Sg;oe.StrictMode=mC;oe.Suspense=bC;oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=PC;oe.act=PE;oe.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=wE({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=Og.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)EE.call(t,s)&&!OE.hasOwnProperty(s)&&(r[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){l=Array(s);for(var u=0;u<s;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Fs,type:e.type,key:i,ref:o,props:r,_owner:a}};oe.createContext=function(e){return e={$$typeof:yC,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:gC,_context:e},e.Consumer=e};oe.createElement=$E;oe.createFactory=function(e){var t=$E.bind(null,e);return t.type=e,t};oe.createRef=function(){return{current:null}};oe.forwardRef=function(e){return{$$typeof:xC,render:e}};oe.isValidElement=$g;oe.lazy=function(e){return{$$typeof:_C,_payload:{_status:-1,_result:e},_init:$C}};oe.memo=function(e,t){return{$$typeof:wC,type:e,compare:t===void 0?null:t}};oe.startTransition=function(e){var t=Ju.transition;Ju.transition={};try{e()}finally{Ju.transition=t}};oe.unstable_act=PE;oe.useCallback=function(e,t){return $t.current.useCallback(e,t)};oe.useContext=function(e){return $t.current.useContext(e)};oe.useDebugValue=function(){};oe.useDeferredValue=function(e){return $t.current.useDeferredValue(e)};oe.useEffect=function(e,t){return $t.current.useEffect(e,t)};oe.useId=function(){return $t.current.useId()};oe.useImperativeHandle=function(e,t,n){return $t.current.useImperativeHandle(e,t,n)};oe.useInsertionEffect=function(e,t){return $t.current.useInsertionEffect(e,t)};oe.useLayoutEffect=function(e,t){return $t.current.useLayoutEffect(e,t)};oe.useMemo=function(e,t){return $t.current.useMemo(e,t)};oe.useReducer=function(e,t,n){return $t.current.useReducer(e,t,n)};oe.useRef=function(e){return $t.current.useRef(e)};oe.useState=function(e){return $t.current.useState(e)};oe.useSyncExternalStore=function(e,t,n){return $t.current.useSyncExternalStore(e,t,n)};oe.useTransition=function(){return $t.current.useTransition()};oe.version="18.3.1";xE.exports=oe;var b=xE.exports;const j=me(b),mc=dC({__proto__:null,default:j},[b]);/**
27
27
  * @license React
28
28
  * react-jsx-runtime.production.min.js
29
29
  *
@@ -31,7 +31,7 @@
31
31
  *
32
32
  * This source code is licensed under the MIT license found in the
33
33
  * LICENSE file in the root directory of this source tree.
34
- */var OC=w,$C=Symbol.for("react.element"),PC=Symbol.for("react.fragment"),jC=Object.prototype.hasOwnProperty,TC=OC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,AC={key:!0,ref:!0,__self:!0,__source:!0};function TE(e,t,n){var r,i={},a=null,o=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)jC.call(t,r)&&!AC.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:$C,type:e,key:a,ref:o,props:i,_owner:TC.current}}Gf.Fragment=PC;Gf.jsx=TE;Gf.jsxs=TE;xE.exports=Gf;var g=xE.exports,zh={},AE={exports:{}},Kt={},CE={exports:{}},kE={};/**
34
+ */var jC=b,TC=Symbol.for("react.element"),AC=Symbol.for("react.fragment"),CC=Object.prototype.hasOwnProperty,kC=jC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,NC={key:!0,ref:!0,__self:!0,__source:!0};function jE(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)CC.call(t,r)&&!NC.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:TC,type:e,key:o,ref:a,props:i,_owner:kC.current}}Gf.Fragment=AC;Gf.jsx=jE;Gf.jsxs=jE;yE.exports=Gf;var v=yE.exports,Uh={},TE={exports:{}},Kt={},AE={exports:{}},CE={};/**
35
35
  * @license React
36
36
  * scheduler.production.min.js
37
37
  *
@@ -39,7 +39,7 @@
39
39
  *
40
40
  * This source code is licensed under the MIT license found in the
41
41
  * LICENSE file in the root directory of this source tree.
42
- */(function(e){function t(P,k){var B=P.length;P.push(k);e:for(;0<B;){var L=B-1>>>1,U=P[L];if(0<i(U,k))P[L]=k,P[B]=U,B=L;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var k=P[0],B=P.pop();if(B!==k){P[0]=B;e:for(var L=0,U=P.length,V=U>>>1;L<V;){var re=2*(L+1)-1,ie=P[re],J=re+1,Ce=P[J];if(0>i(ie,B))J<U&&0>i(Ce,ie)?(P[L]=Ce,P[J]=B,L=J):(P[L]=ie,P[re]=B,L=re);else if(J<U&&0>i(Ce,B))P[L]=Ce,P[J]=B,L=J;else break e}}return k}function i(P,k){var B=P.sortIndex-k.sortIndex;return B!==0?B:P.id-k.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 s=[],u=[],c=1,f=null,d=3,p=!1,h=!1,m=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(P){for(var k=n(u);k!==null;){if(k.callback===null)r(u);else if(k.startTime<=P)r(u),k.sortIndex=k.expirationTime,t(s,k);else break;k=n(u)}}function E(P){if(m=!1,x(P),!h)if(n(s)!==null)h=!0,F(_);else{var k=n(u);k!==null&&R(E,k.startTime-P)}}function _(P,k){h=!1,m&&(m=!1,v($),$=-1),p=!0;var B=d;try{for(x(k),f=n(s);f!==null&&(!(f.expirationTime>k)||P&&!A());){var L=f.callback;if(typeof L=="function"){f.callback=null,d=f.priorityLevel;var U=L(f.expirationTime<=k);k=e.unstable_now(),typeof U=="function"?f.callback=U:f===n(s)&&r(s),x(k)}else r(s);f=n(s)}if(f!==null)var V=!0;else{var re=n(u);re!==null&&R(E,re.startTime-k),V=!1}return V}finally{f=null,d=B,p=!1}}var S=!1,O=null,$=-1,T=5,C=-1;function A(){return!(e.unstable_now()-C<T)}function N(){if(O!==null){var P=e.unstable_now();C=P;var k=!0;try{k=O(!0,P)}finally{k?I():(S=!1,O=null)}}else S=!1}var I;if(typeof y=="function")I=function(){y(N)};else if(typeof MessageChannel<"u"){var D=new MessageChannel,M=D.port2;D.port1.onmessage=N,I=function(){M.postMessage(null)}}else I=function(){b(N,0)};function F(P){O=P,S||(S=!0,I())}function R(P,k){$=b(function(){P(e.unstable_now())},k)}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(P){P.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,F(_))},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(P){switch(d){case 1:case 2:case 3:var k=3;break;default:k=d}var B=d;d=k;try{return P()}finally{d=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,k){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var B=d;d=P;try{return k()}finally{d=B}},e.unstable_scheduleCallback=function(P,k,B){var L=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?L+B:L):B=L,P){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=B+U,P={id:c++,callback:k,priorityLevel:P,startTime:B,expirationTime:U,sortIndex:-1},B>L?(P.sortIndex=B,t(u,P),n(s)===null&&P===n(u)&&(m?(v($),$=-1):m=!0,R(E,B-L))):(P.sortIndex=U,t(s,P),h||p||(h=!0,F(_))),P},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(P){var k=d;return function(){var B=d;d=k;try{return P.apply(this,arguments)}finally{d=B}}}})(kE);CE.exports=kE;var CC=CE.exports;/**
42
+ */(function(e){function t(P,k){var B=P.length;P.push(k);e:for(;0<B;){var L=B-1>>>1,U=P[L];if(0<i(U,k))P[L]=k,P[B]=U,B=L;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var k=P[0],B=P.pop();if(B!==k){P[0]=B;e:for(var L=0,U=P.length,V=U>>>1;L<V;){var re=2*(L+1)-1,ie=P[re],J=re+1,Ce=P[J];if(0>i(ie,B))J<U&&0>i(Ce,ie)?(P[L]=Ce,P[J]=B,L=J):(P[L]=ie,P[re]=B,L=re);else if(J<U&&0>i(Ce,B))P[L]=Ce,P[J]=B,L=J;else break e}}return k}function i(P,k){var B=P.sortIndex-k.sortIndex;return B!==0?B:P.id-k.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],u=[],c=1,f=null,d=3,p=!1,h=!1,m=!1,w=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(P){for(var k=n(u);k!==null;){if(k.callback===null)r(u);else if(k.startTime<=P)r(u),k.sortIndex=k.expirationTime,t(s,k);else break;k=n(u)}}function E(P){if(m=!1,x(P),!h)if(n(s)!==null)h=!0,F(_);else{var k=n(u);k!==null&&I(E,k.startTime-P)}}function _(P,k){h=!1,m&&(m=!1,g($),$=-1),p=!0;var B=d;try{for(x(k),f=n(s);f!==null&&(!(f.expirationTime>k)||P&&!A());){var L=f.callback;if(typeof L=="function"){f.callback=null,d=f.priorityLevel;var U=L(f.expirationTime<=k);k=e.unstable_now(),typeof U=="function"?f.callback=U:f===n(s)&&r(s),x(k)}else r(s);f=n(s)}if(f!==null)var V=!0;else{var re=n(u);re!==null&&I(E,re.startTime-k),V=!1}return V}finally{f=null,d=B,p=!1}}var S=!1,O=null,$=-1,T=5,C=-1;function A(){return!(e.unstable_now()-C<T)}function N(){if(O!==null){var P=e.unstable_now();C=P;var k=!0;try{k=O(!0,P)}finally{k?R():(S=!1,O=null)}}else S=!1}var R;if(typeof y=="function")R=function(){y(N)};else if(typeof MessageChannel<"u"){var D=new MessageChannel,M=D.port2;D.port1.onmessage=N,R=function(){M.postMessage(null)}}else R=function(){w(N,0)};function F(P){O=P,S||(S=!0,R())}function I(P,k){$=w(function(){P(e.unstable_now())},k)}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(P){P.callback=null},e.unstable_continueExecution=function(){h||p||(h=!0,F(_))},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(P){switch(d){case 1:case 2:case 3:var k=3;break;default:k=d}var B=d;d=k;try{return P()}finally{d=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(P,k){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var B=d;d=P;try{return k()}finally{d=B}},e.unstable_scheduleCallback=function(P,k,B){var L=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?L+B:L):B=L,P){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=B+U,P={id:c++,callback:k,priorityLevel:P,startTime:B,expirationTime:U,sortIndex:-1},B>L?(P.sortIndex=B,t(u,P),n(s)===null&&P===n(u)&&(m?(g($),$=-1):m=!0,I(E,B-L))):(P.sortIndex=U,t(s,P),h||p||(h=!0,F(_))),P},e.unstable_shouldYield=A,e.unstable_wrapCallback=function(P){var k=d;return function(){var B=d;d=k;try{return P.apply(this,arguments)}finally{d=B}}}})(CE);AE.exports=CE;var MC=AE.exports;/**
43
43
  * @license React
44
44
  * react-dom.production.min.js
45
45
  *
@@ -47,56 +47,65 @@
47
47
  *
48
48
  * This source code is licensed under the MIT license found in the
49
49
  * LICENSE file in the root directory of this source tree.
50
- */var kC=w,Wt=CC;function W(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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 NE=new Set,Ll={};function ta(e,t){Ua(e,t),Ua(e+"Capture",t)}function Ua(e,t){for(Ll[e]=t,e=0;e<t.length;e++)NE.add(t[e])}var vr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uh=Object.prototype.hasOwnProperty,NC=/^[: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]*$/,px={},hx={};function MC(e){return Uh.call(hx,e)?!0:Uh.call(px,e)?!1:NC.test(e)?hx[e]=!0:(px[e]=!0,!1)}function IC(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function RC(e,t,n,r){if(t===null||typeof t>"u"||IC(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.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 Pt(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var dt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){dt[e]=new Pt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];dt[t]=new Pt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){dt[e]=new Pt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){dt[e]=new Pt(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){dt[e]=new Pt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){dt[e]=new Pt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){dt[e]=new Pt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){dt[e]=new Pt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){dt[e]=new Pt(e,5,!1,e.toLowerCase(),null,!1,!1)});var $g=/[\-:]([a-z])/g;function Pg(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($g,Pg);dt[t]=new Pt(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($g,Pg);dt[t]=new Pt(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($g,Pg);dt[t]=new Pt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){dt[e]=new Pt(e,1,!1,e.toLowerCase(),null,!1,!1)});dt.xlinkHref=new Pt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){dt[e]=new Pt(e,1,!1,e.toLowerCase(),null,!0,!0)});function jg(e,t,n,r){var i=dt.hasOwnProperty(t)?dt[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(RC(t,n,i,r)&&(n=null),r||i===null?MC(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Tr=kC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,gu=Symbol.for("react.element"),va=Symbol.for("react.portal"),ga=Symbol.for("react.fragment"),Tg=Symbol.for("react.strict_mode"),Hh=Symbol.for("react.profiler"),ME=Symbol.for("react.provider"),IE=Symbol.for("react.context"),Ag=Symbol.for("react.forward_ref"),Wh=Symbol.for("react.suspense"),Vh=Symbol.for("react.suspense_list"),Cg=Symbol.for("react.memo"),Lr=Symbol.for("react.lazy"),RE=Symbol.for("react.offscreen"),mx=Symbol.iterator;function Go(e){return e===null||typeof e!="object"?null:(e=mx&&e[mx]||e["@@iterator"],typeof e=="function"?e:null)}var Be=Object.assign,Ep;function dl(e){if(Ep===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ep=t&&t[1]||""}return`
50
+ */var RC=b,Wt=MC;function W(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);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 kE=new Set,Ll={};function to(e,t){Ho(e,t),Ho(e+"Capture",t)}function Ho(e,t){for(Ll[e]=t,e=0;e<t.length;e++)kE.add(t[e])}var vr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hh=Object.prototype.hasOwnProperty,IC=/^[: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]*$/,px={},hx={};function LC(e){return Hh.call(hx,e)?!0:Hh.call(px,e)?!1:IC.test(e)?hx[e]=!0:(px[e]=!0,!1)}function DC(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function FC(e,t,n,r){if(t===null||typeof t>"u"||DC(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.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 Pt(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var dt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){dt[e]=new Pt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];dt[t]=new Pt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){dt[e]=new Pt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){dt[e]=new Pt(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){dt[e]=new Pt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){dt[e]=new Pt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){dt[e]=new Pt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){dt[e]=new Pt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){dt[e]=new Pt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Pg=/[\-:]([a-z])/g;function jg(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(Pg,jg);dt[t]=new Pt(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(Pg,jg);dt[t]=new Pt(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(Pg,jg);dt[t]=new Pt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){dt[e]=new Pt(e,1,!1,e.toLowerCase(),null,!1,!1)});dt.xlinkHref=new Pt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){dt[e]=new Pt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Tg(e,t,n,r){var i=dt.hasOwnProperty(t)?dt[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(FC(t,n,i,r)&&(n=null),r||i===null?LC(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Tr=RC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,gu=Symbol.for("react.element"),go=Symbol.for("react.portal"),yo=Symbol.for("react.fragment"),Ag=Symbol.for("react.strict_mode"),Wh=Symbol.for("react.profiler"),NE=Symbol.for("react.provider"),ME=Symbol.for("react.context"),Cg=Symbol.for("react.forward_ref"),Vh=Symbol.for("react.suspense"),Kh=Symbol.for("react.suspense_list"),kg=Symbol.for("react.memo"),Lr=Symbol.for("react.lazy"),RE=Symbol.for("react.offscreen"),mx=Symbol.iterator;function Ga(e){return e===null||typeof e!="object"?null:(e=mx&&e[mx]||e["@@iterator"],typeof e=="function"?e:null)}var Be=Object.assign,Ep;function dl(e){if(Ep===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ep=t&&t[1]||""}return`
51
51
  `+Ep+e}var Op=!1;function $p(e,t){if(!e||Op)return"";Op=!0;var n=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(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
52
- `),a=r.stack.split(`
53
- `),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 s=`
54
- `+i[o].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=o&&0<=l);break}}}finally{Op=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?dl(e):""}function LC(e){switch(e.tag){case 5:return dl(e.type);case 16:return dl("Lazy");case 13:return dl("Suspense");case 19:return dl("SuspenseList");case 0:case 2:case 15:return e=$p(e.type,!1),e;case 11:return e=$p(e.type.render,!1),e;case 1:return e=$p(e.type,!0),e;default:return""}}function Kh(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 ga:return"Fragment";case va:return"Portal";case Hh:return"Profiler";case Tg:return"StrictMode";case Wh:return"Suspense";case Vh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case IE:return(e.displayName||"Context")+".Consumer";case ME:return(e._context.displayName||"Context")+".Provider";case Ag:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Cg:return t=e.displayName||null,t!==null?t:Kh(e.type)||"Memo";case Lr:t=e._payload,e=e._init;try{return Kh(e(t))}catch{}}return null}function DC(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 Kh(t);case 8:return t===Tg?"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 oi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function LE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function FC(e){var t=LE(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yu(e){e._valueTracker||(e._valueTracker=FC(e))}function DE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=LE(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function vc(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 Gh(e,t){var n=t.checked;return Be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function vx(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=oi(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function FE(e,t){t=t.checked,t!=null&&jg(e,"checked",t,!1)}function qh(e,t){FE(e,t);var n=oi(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Yh(e,t.type,n):t.hasOwnProperty("defaultValue")&&Yh(e,t.type,oi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function gx(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Yh(e,t,n){(t!=="number"||vc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var pl=Array.isArray;function ka(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+oi(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Xh(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(W(91));return Be({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function yx(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(W(92));if(pl(n)){if(1<n.length)throw Error(W(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:oi(n)}}function BE(e,t){var n=oi(t.value),r=oi(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function xx(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function zE(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 Qh(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?zE(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var xu,UE=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(xu=xu||document.createElement("div"),xu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=xu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Dl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var bl={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},BC=["Webkit","ms","Moz","O"];Object.keys(bl).forEach(function(e){BC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),bl[t]=bl[e]})});function HE(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||bl.hasOwnProperty(e)&&bl[e]?(""+t).trim():t+"px"}function WE(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=HE(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var zC=Be({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 Zh(e,t){if(t){if(zC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(W(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(W(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(W(61))}if(t.style!=null&&typeof t.style!="object")throw Error(W(62))}}function Jh(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 em=null;function kg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var tm=null,Na=null,Ma=null;function bx(e){if(e=Us(e)){if(typeof tm!="function")throw Error(W(280));var t=e.stateNode;t&&(t=Zf(t),tm(e.stateNode,e.type,t))}}function VE(e){Na?Ma?Ma.push(e):Ma=[e]:Na=e}function KE(){if(Na){var e=Na,t=Ma;if(Ma=Na=null,bx(e),t)for(e=0;e<t.length;e++)bx(t[e])}}function GE(e,t){return e(t)}function qE(){}var Pp=!1;function YE(e,t,n){if(Pp)return e(t,n);Pp=!0;try{return GE(e,t,n)}finally{Pp=!1,(Na!==null||Ma!==null)&&(qE(),KE())}}function Fl(e,t){var n=e.stateNode;if(n===null)return null;var r=Zf(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(W(231,t,typeof n));return n}var nm=!1;if(vr)try{var qo={};Object.defineProperty(qo,"passive",{get:function(){nm=!0}}),window.addEventListener("test",qo,qo),window.removeEventListener("test",qo,qo)}catch{nm=!1}function UC(e,t,n,r,i,a,o,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var wl=!1,gc=null,yc=!1,rm=null,HC={onError:function(e){wl=!0,gc=e}};function WC(e,t,n,r,i,a,o,l,s){wl=!1,gc=null,UC.apply(HC,arguments)}function VC(e,t,n,r,i,a,o,l,s){if(WC.apply(this,arguments),wl){if(wl){var u=gc;wl=!1,gc=null}else throw Error(W(198));yc||(yc=!0,rm=u)}}function na(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function XE(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 wx(e){if(na(e)!==e)throw Error(W(188))}function KC(e){var t=e.alternate;if(!t){if(t=na(e),t===null)throw Error(W(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return wx(i),e;if(a===r)return wx(i),t;a=a.sibling}throw Error(W(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,l=i.child;l;){if(l===n){o=!0,n=i,r=a;break}if(l===r){o=!0,r=i,n=a;break}l=l.sibling}if(!o){for(l=a.child;l;){if(l===n){o=!0,n=a,r=i;break}if(l===r){o=!0,r=a,n=i;break}l=l.sibling}if(!o)throw Error(W(189))}}if(n.alternate!==r)throw Error(W(190))}if(n.tag!==3)throw Error(W(188));return n.stateNode.current===n?e:t}function QE(e){return e=KC(e),e!==null?ZE(e):null}function ZE(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ZE(e);if(t!==null)return t;e=e.sibling}return null}var JE=Wt.unstable_scheduleCallback,_x=Wt.unstable_cancelCallback,GC=Wt.unstable_shouldYield,qC=Wt.unstable_requestPaint,We=Wt.unstable_now,YC=Wt.unstable_getCurrentPriorityLevel,Ng=Wt.unstable_ImmediatePriority,eO=Wt.unstable_UserBlockingPriority,xc=Wt.unstable_NormalPriority,XC=Wt.unstable_LowPriority,tO=Wt.unstable_IdlePriority,qf=null,Fn=null;function QC(e){if(Fn&&typeof Fn.onCommitFiberRoot=="function")try{Fn.onCommitFiberRoot(qf,e,void 0,(e.current.flags&128)===128)}catch{}}var _n=Math.clz32?Math.clz32:ek,ZC=Math.log,JC=Math.LN2;function ek(e){return e>>>=0,e===0?32:31-(ZC(e)/JC|0)|0}var bu=64,wu=4194304;function hl(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 bc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=hl(l):(a&=o,a!==0&&(r=hl(a)))}else o=n&~i,o!==0?r=hl(o):a!==0&&(r=hl(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-_n(t),i=1<<n,r|=e[n],t&=~i;return r}function tk(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 nk(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-_n(a),l=1<<o,s=i[o];s===-1?(!(l&n)||l&r)&&(i[o]=tk(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}function im(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function nO(){var e=bu;return bu<<=1,!(bu&4194240)&&(bu=64),e}function jp(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Bs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_n(t),e[t]=n}function rk(e,t){var n=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 r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-_n(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function Mg(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-_n(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var pe=0;function rO(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var iO,Ig,aO,oO,lO,am=!1,_u=[],qr=null,Yr=null,Xr=null,Bl=new Map,zl=new Map,zr=[],ik="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 Sx(e,t){switch(e){case"focusin":case"focusout":qr=null;break;case"dragenter":case"dragleave":Yr=null;break;case"mouseover":case"mouseout":Xr=null;break;case"pointerover":case"pointerout":Bl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zl.delete(t.pointerId)}}function Yo(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Us(t),t!==null&&Ig(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function ak(e,t,n,r,i){switch(t){case"focusin":return qr=Yo(qr,e,t,n,r,i),!0;case"dragenter":return Yr=Yo(Yr,e,t,n,r,i),!0;case"mouseover":return Xr=Yo(Xr,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return Bl.set(a,Yo(Bl.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,zl.set(a,Yo(zl.get(a)||null,e,t,n,r,i)),!0}return!1}function sO(e){var t=Ti(e.target);if(t!==null){var n=na(t);if(n!==null){if(t=n.tag,t===13){if(t=XE(n),t!==null){e.blockedOn=t,lO(e.priority,function(){aO(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ec(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=om(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);em=r,n.target.dispatchEvent(r),em=null}else return t=Us(n),t!==null&&Ig(t),e.blockedOn=n,!1;t.shift()}return!0}function Ex(e,t,n){ec(e)&&n.delete(t)}function ok(){am=!1,qr!==null&&ec(qr)&&(qr=null),Yr!==null&&ec(Yr)&&(Yr=null),Xr!==null&&ec(Xr)&&(Xr=null),Bl.forEach(Ex),zl.forEach(Ex)}function Xo(e,t){e.blockedOn===t&&(e.blockedOn=null,am||(am=!0,Wt.unstable_scheduleCallback(Wt.unstable_NormalPriority,ok)))}function Ul(e){function t(i){return Xo(i,e)}if(0<_u.length){Xo(_u[0],e);for(var n=1;n<_u.length;n++){var r=_u[n];r.blockedOn===e&&(r.blockedOn=null)}}for(qr!==null&&Xo(qr,e),Yr!==null&&Xo(Yr,e),Xr!==null&&Xo(Xr,e),Bl.forEach(t),zl.forEach(t),n=0;n<zr.length;n++)r=zr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<zr.length&&(n=zr[0],n.blockedOn===null);)sO(n),n.blockedOn===null&&zr.shift()}var Ia=Tr.ReactCurrentBatchConfig,wc=!0;function lk(e,t,n,r){var i=pe,a=Ia.transition;Ia.transition=null;try{pe=1,Rg(e,t,n,r)}finally{pe=i,Ia.transition=a}}function sk(e,t,n,r){var i=pe,a=Ia.transition;Ia.transition=null;try{pe=4,Rg(e,t,n,r)}finally{pe=i,Ia.transition=a}}function Rg(e,t,n,r){if(wc){var i=om(e,t,n,r);if(i===null)Dp(e,t,r,_c,n),Sx(e,r);else if(ak(i,e,t,n,r))r.stopPropagation();else if(Sx(e,r),t&4&&-1<ik.indexOf(e)){for(;i!==null;){var a=Us(i);if(a!==null&&iO(a),a=om(e,t,n,r),a===null&&Dp(e,t,r,_c,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Dp(e,t,r,null,n)}}var _c=null;function om(e,t,n,r){if(_c=null,e=kg(r),e=Ti(e),e!==null)if(t=na(e),t===null)e=null;else if(n=t.tag,n===13){if(e=XE(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return _c=e,null}function uO(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(YC()){case Ng:return 1;case eO:return 4;case xc:case XC:return 16;case tO:return 536870912;default:return 16}default:return 16}}var Wr=null,Lg=null,tc=null;function cO(){if(tc)return tc;var e,t=Lg,n=t.length,r,i="value"in Wr?Wr.value:Wr.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return tc=i.slice(e,1<r?1-r:void 0)}function nc(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 Su(){return!0}function Ox(){return!1}function Gt(e){function t(n,r,i,a,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(a):a[l]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Su:Ox,this.isPropagationStopped=Ox,this}return Be(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Su)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Su)},persist:function(){},isPersistent:Su}),t}var Oo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Dg=Gt(Oo),zs=Be({},Oo,{view:0,detail:0}),uk=Gt(zs),Tp,Ap,Qo,Yf=Be({},zs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fg,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!==Qo&&(Qo&&e.type==="mousemove"?(Tp=e.screenX-Qo.screenX,Ap=e.screenY-Qo.screenY):Ap=Tp=0,Qo=e),Tp)},movementY:function(e){return"movementY"in e?e.movementY:Ap}}),$x=Gt(Yf),ck=Be({},Yf,{dataTransfer:0}),fk=Gt(ck),dk=Be({},zs,{relatedTarget:0}),Cp=Gt(dk),pk=Be({},Oo,{animationName:0,elapsedTime:0,pseudoElement:0}),hk=Gt(pk),mk=Be({},Oo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vk=Gt(mk),gk=Be({},Oo,{data:0}),Px=Gt(gk),yk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xk={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"},bk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wk(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=bk[e])?!!t[e]:!1}function Fg(){return wk}var _k=Be({},zs,{key:function(e){if(e.key){var t=yk[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=nc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?xk[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fg,charCode:function(e){return e.type==="keypress"?nc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?nc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Sk=Gt(_k),Ek=Be({},Yf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jx=Gt(Ek),Ok=Be({},zs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fg}),$k=Gt(Ok),Pk=Be({},Oo,{propertyName:0,elapsedTime:0,pseudoElement:0}),jk=Gt(Pk),Tk=Be({},Yf,{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}),Ak=Gt(Tk),Ck=[9,13,27,32],Bg=vr&&"CompositionEvent"in window,_l=null;vr&&"documentMode"in document&&(_l=document.documentMode);var kk=vr&&"TextEvent"in window&&!_l,fO=vr&&(!Bg||_l&&8<_l&&11>=_l),Tx=" ",Ax=!1;function dO(e,t){switch(e){case"keyup":return Ck.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pO(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ya=!1;function Nk(e,t){switch(e){case"compositionend":return pO(t);case"keypress":return t.which!==32?null:(Ax=!0,Tx);case"textInput":return e=t.data,e===Tx&&Ax?null:e;default:return null}}function Mk(e,t){if(ya)return e==="compositionend"||!Bg&&dO(e,t)?(e=cO(),tc=Lg=Wr=null,ya=!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 fO&&t.locale!=="ko"?null:t.data;default:return null}}var Ik={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 Cx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ik[e.type]:t==="textarea"}function hO(e,t,n,r){VE(r),t=Sc(t,"onChange"),0<t.length&&(n=new Dg("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Sl=null,Hl=null;function Rk(e){OO(e,0)}function Xf(e){var t=wa(e);if(DE(t))return e}function Lk(e,t){if(e==="change")return t}var mO=!1;if(vr){var kp;if(vr){var Np="oninput"in document;if(!Np){var kx=document.createElement("div");kx.setAttribute("oninput","return;"),Np=typeof kx.oninput=="function"}kp=Np}else kp=!1;mO=kp&&(!document.documentMode||9<document.documentMode)}function Nx(){Sl&&(Sl.detachEvent("onpropertychange",vO),Hl=Sl=null)}function vO(e){if(e.propertyName==="value"&&Xf(Hl)){var t=[];hO(t,Hl,e,kg(e)),YE(Rk,t)}}function Dk(e,t,n){e==="focusin"?(Nx(),Sl=t,Hl=n,Sl.attachEvent("onpropertychange",vO)):e==="focusout"&&Nx()}function Fk(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Xf(Hl)}function Bk(e,t){if(e==="click")return Xf(t)}function zk(e,t){if(e==="input"||e==="change")return Xf(t)}function Uk(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $n=typeof Object.is=="function"?Object.is:Uk;function Wl(e,t){if($n(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Uh.call(t,i)||!$n(e[i],t[i]))return!1}return!0}function Mx(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ix(e,t){var n=Mx(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Mx(n)}}function gO(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gO(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yO(){for(var e=window,t=vc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=vc(e.document)}return t}function zg(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 Hk(e){var t=yO(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&gO(n.ownerDocument.documentElement,n)){if(r!==null&&zg(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Ix(n,a);var o=Ix(n,r);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>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Wk=vr&&"documentMode"in document&&11>=document.documentMode,xa=null,lm=null,El=null,sm=!1;function Rx(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;sm||xa==null||xa!==vc(r)||(r=xa,"selectionStart"in r&&zg(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),El&&Wl(El,r)||(El=r,r=Sc(lm,"onSelect"),0<r.length&&(t=new Dg("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=xa)))}function Eu(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ba={animationend:Eu("Animation","AnimationEnd"),animationiteration:Eu("Animation","AnimationIteration"),animationstart:Eu("Animation","AnimationStart"),transitionend:Eu("Transition","TransitionEnd")},Mp={},xO={};vr&&(xO=document.createElement("div").style,"AnimationEvent"in window||(delete ba.animationend.animation,delete ba.animationiteration.animation,delete ba.animationstart.animation),"TransitionEvent"in window||delete ba.transitionend.transition);function Qf(e){if(Mp[e])return Mp[e];if(!ba[e])return e;var t=ba[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in xO)return Mp[e]=t[n];return e}var bO=Qf("animationend"),wO=Qf("animationiteration"),_O=Qf("animationstart"),SO=Qf("transitionend"),EO=new Map,Lx="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 ui(e,t){EO.set(e,t),ta(t,[e])}for(var Ip=0;Ip<Lx.length;Ip++){var Rp=Lx[Ip],Vk=Rp.toLowerCase(),Kk=Rp[0].toUpperCase()+Rp.slice(1);ui(Vk,"on"+Kk)}ui(bO,"onAnimationEnd");ui(wO,"onAnimationIteration");ui(_O,"onAnimationStart");ui("dblclick","onDoubleClick");ui("focusin","onFocus");ui("focusout","onBlur");ui(SO,"onTransitionEnd");Ua("onMouseEnter",["mouseout","mouseover"]);Ua("onMouseLeave",["mouseout","mouseover"]);Ua("onPointerEnter",["pointerout","pointerover"]);Ua("onPointerLeave",["pointerout","pointerover"]);ta("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ta("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ta("onBeforeInput",["compositionend","keypress","textInput","paste"]);ta("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ta("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ta("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ml="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(" "),Gk=new Set("cancel close invalid load scroll toggle".split(" ").concat(ml));function Dx(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,VC(r,t,void 0,e),e.currentTarget=null}function OO(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==a&&i.isPropagationStopped())break e;Dx(i,l,u),a=s}else for(o=0;o<r.length;o++){if(l=r[o],s=l.instance,u=l.currentTarget,l=l.listener,s!==a&&i.isPropagationStopped())break e;Dx(i,l,u),a=s}}}if(yc)throw e=rm,yc=!1,rm=null,e}function $e(e,t){var n=t[pm];n===void 0&&(n=t[pm]=new Set);var r=e+"__bubble";n.has(r)||($O(t,e,2,!1),n.add(r))}function Lp(e,t,n){var r=0;t&&(r|=4),$O(n,e,r,t)}var Ou="_reactListening"+Math.random().toString(36).slice(2);function Vl(e){if(!e[Ou]){e[Ou]=!0,NE.forEach(function(n){n!=="selectionchange"&&(Gk.has(n)||Lp(n,!1,e),Lp(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ou]||(t[Ou]=!0,Lp("selectionchange",!1,t))}}function $O(e,t,n,r){switch(uO(t)){case 1:var i=lk;break;case 4:i=sk;break;default:i=Rg}n=i.bind(null,t,n,e),i=void 0,!nm||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Dp(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var s=o.tag;if((s===3||s===4)&&(s=o.stateNode.containerInfo,s===i||s.nodeType===8&&s.parentNode===i))return;o=o.return}for(;l!==null;){if(o=Ti(l),o===null)return;if(s=o.tag,s===5||s===6){r=a=o;continue e}l=l.parentNode}}r=r.return}YE(function(){var u=a,c=kg(n),f=[];e:{var d=EO.get(e);if(d!==void 0){var p=Dg,h=e;switch(e){case"keypress":if(nc(n)===0)break e;case"keydown":case"keyup":p=Sk;break;case"focusin":h="focus",p=Cp;break;case"focusout":h="blur",p=Cp;break;case"beforeblur":case"afterblur":p=Cp;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=$x;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=fk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=$k;break;case bO:case wO:case _O:p=hk;break;case SO:p=jk;break;case"scroll":p=uk;break;case"wheel":p=Ak;break;case"copy":case"cut":case"paste":p=vk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=jx}var m=(t&4)!==0,b=!m&&e==="scroll",v=m?d!==null?d+"Capture":null:d;m=[];for(var y=u,x;y!==null;){x=y;var E=x.stateNode;if(x.tag===5&&E!==null&&(x=E,v!==null&&(E=Fl(y,v),E!=null&&m.push(Kl(y,E,x)))),b)break;y=y.return}0<m.length&&(d=new p(d,h,null,n,c),f.push({event:d,listeners:m}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",d&&n!==em&&(h=n.relatedTarget||n.fromElement)&&(Ti(h)||h[gr]))break e;if((p||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,p?(h=n.relatedTarget||n.toElement,p=u,h=h?Ti(h):null,h!==null&&(b=na(h),h!==b||h.tag!==5&&h.tag!==6)&&(h=null)):(p=null,h=u),p!==h)){if(m=$x,E="onMouseLeave",v="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(m=jx,E="onPointerLeave",v="onPointerEnter",y="pointer"),b=p==null?d:wa(p),x=h==null?d:wa(h),d=new m(E,y+"leave",p,n,c),d.target=b,d.relatedTarget=x,E=null,Ti(c)===u&&(m=new m(v,y+"enter",h,n,c),m.target=x,m.relatedTarget=b,E=m),b=E,p&&h)t:{for(m=p,v=h,y=0,x=m;x;x=ca(x))y++;for(x=0,E=v;E;E=ca(E))x++;for(;0<y-x;)m=ca(m),y--;for(;0<x-y;)v=ca(v),x--;for(;y--;){if(m===v||v!==null&&m===v.alternate)break t;m=ca(m),v=ca(v)}m=null}else m=null;p!==null&&Fx(f,d,p,m,!1),h!==null&&b!==null&&Fx(f,b,h,m,!0)}}e:{if(d=u?wa(u):window,p=d.nodeName&&d.nodeName.toLowerCase(),p==="select"||p==="input"&&d.type==="file")var _=Lk;else if(Cx(d))if(mO)_=zk;else{_=Fk;var S=Dk}else(p=d.nodeName)&&p.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(_=Bk);if(_&&(_=_(e,u))){hO(f,_,n,c);break e}S&&S(e,d,u),e==="focusout"&&(S=d._wrapperState)&&S.controlled&&d.type==="number"&&Yh(d,"number",d.value)}switch(S=u?wa(u):window,e){case"focusin":(Cx(S)||S.contentEditable==="true")&&(xa=S,lm=u,El=null);break;case"focusout":El=lm=xa=null;break;case"mousedown":sm=!0;break;case"contextmenu":case"mouseup":case"dragend":sm=!1,Rx(f,n,c);break;case"selectionchange":if(Wk)break;case"keydown":case"keyup":Rx(f,n,c)}var O;if(Bg)e:{switch(e){case"compositionstart":var $="onCompositionStart";break e;case"compositionend":$="onCompositionEnd";break e;case"compositionupdate":$="onCompositionUpdate";break e}$=void 0}else ya?dO(e,n)&&($="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&($="onCompositionStart");$&&(fO&&n.locale!=="ko"&&(ya||$!=="onCompositionStart"?$==="onCompositionEnd"&&ya&&(O=cO()):(Wr=c,Lg="value"in Wr?Wr.value:Wr.textContent,ya=!0)),S=Sc(u,$),0<S.length&&($=new Px($,e,null,n,c),f.push({event:$,listeners:S}),O?$.data=O:(O=pO(n),O!==null&&($.data=O)))),(O=kk?Nk(e,n):Mk(e,n))&&(u=Sc(u,"onBeforeInput"),0<u.length&&(c=new Px("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=O))}OO(f,t)})}function Kl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Sc(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=Fl(e,n),a!=null&&r.unshift(Kl(e,a,i)),a=Fl(e,t),a!=null&&r.push(Kl(e,a,i))),e=e.return}return r}function ca(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Fx(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(s!==null&&s===r)break;l.tag===5&&u!==null&&(l=u,i?(s=Fl(n,a),s!=null&&o.unshift(Kl(n,s,l))):i||(s=Fl(n,a),s!=null&&o.push(Kl(n,s,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var qk=/\r\n?/g,Yk=/\u0000|\uFFFD/g;function Bx(e){return(typeof e=="string"?e:""+e).replace(qk,`
55
- `).replace(Yk,"")}function $u(e,t,n){if(t=Bx(t),Bx(e)!==t&&n)throw Error(W(425))}function Ec(){}var um=null,cm=null;function fm(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 dm=typeof setTimeout=="function"?setTimeout:void 0,Xk=typeof clearTimeout=="function"?clearTimeout:void 0,zx=typeof Promise=="function"?Promise:void 0,Qk=typeof queueMicrotask=="function"?queueMicrotask:typeof zx<"u"?function(e){return zx.resolve(null).then(e).catch(Zk)}:dm;function Zk(e){setTimeout(function(){throw e})}function Fp(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Ul(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Ul(t)}function Qr(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 Ux(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var $o=Math.random().toString(36).slice(2),Ln="__reactFiber$"+$o,Gl="__reactProps$"+$o,gr="__reactContainer$"+$o,pm="__reactEvents$"+$o,Jk="__reactListeners$"+$o,eN="__reactHandles$"+$o;function Ti(e){var t=e[Ln];if(t)return t;for(var n=e.parentNode;n;){if(t=n[gr]||n[Ln]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ux(e);e!==null;){if(n=e[Ln])return n;e=Ux(e)}return t}e=n,n=e.parentNode}return null}function Us(e){return e=e[Ln]||e[gr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function wa(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(W(33))}function Zf(e){return e[Gl]||null}var hm=[],_a=-1;function ci(e){return{current:e}}function Ae(e){0>_a||(e.current=hm[_a],hm[_a]=null,_a--)}function _e(e,t){_a++,hm[_a]=e.current,e.current=t}var li={},yt=ci(li),Mt=ci(!1),Ui=li;function Ha(e,t){var n=e.type.contextTypes;if(!n)return li;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function It(e){return e=e.childContextTypes,e!=null}function Oc(){Ae(Mt),Ae(yt)}function Hx(e,t,n){if(yt.current!==li)throw Error(W(168));_e(yt,t),_e(Mt,n)}function PO(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(W(108,DC(e)||"Unknown",i));return Be({},n,r)}function $c(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||li,Ui=yt.current,_e(yt,e),_e(Mt,Mt.current),!0}function Wx(e,t,n){var r=e.stateNode;if(!r)throw Error(W(169));n?(e=PO(e,t,Ui),r.__reactInternalMemoizedMergedChildContext=e,Ae(Mt),Ae(yt),_e(yt,e)):Ae(Mt),_e(Mt,n)}var rr=null,Jf=!1,Bp=!1;function jO(e){rr===null?rr=[e]:rr.push(e)}function tN(e){Jf=!0,jO(e)}function fi(){if(!Bp&&rr!==null){Bp=!0;var e=0,t=pe;try{var n=rr;for(pe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}rr=null,Jf=!1}catch(i){throw rr!==null&&(rr=rr.slice(e+1)),JE(Ng,fi),i}finally{pe=t,Bp=!1}}return null}var Sa=[],Ea=0,Pc=null,jc=0,en=[],tn=0,Hi=null,ar=1,or="";function _i(e,t){Sa[Ea++]=jc,Sa[Ea++]=Pc,Pc=e,jc=t}function TO(e,t,n){en[tn++]=ar,en[tn++]=or,en[tn++]=Hi,Hi=e;var r=ar;e=or;var i=32-_n(r)-1;r&=~(1<<i),n+=1;var a=32-_n(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ar=1<<32-_n(t)+i|n<<i|r,or=a+e}else ar=1<<a|n<<i|r,or=e}function Ug(e){e.return!==null&&(_i(e,1),TO(e,1,0))}function Hg(e){for(;e===Pc;)Pc=Sa[--Ea],Sa[Ea]=null,jc=Sa[--Ea],Sa[Ea]=null;for(;e===Hi;)Hi=en[--tn],en[tn]=null,or=en[--tn],en[tn]=null,ar=en[--tn],en[tn]=null}var Ut=null,zt=null,Me=!1,bn=null;function AO(e,t){var n=an(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Vx(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ut=e,zt=Qr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ut=e,zt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Hi!==null?{id:ar,overflow:or}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=an(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ut=e,zt=null,!0):!1;default:return!1}}function mm(e){return(e.mode&1)!==0&&(e.flags&128)===0}function vm(e){if(Me){var t=zt;if(t){var n=t;if(!Vx(e,t)){if(mm(e))throw Error(W(418));t=Qr(n.nextSibling);var r=Ut;t&&Vx(e,t)?AO(r,n):(e.flags=e.flags&-4097|2,Me=!1,Ut=e)}}else{if(mm(e))throw Error(W(418));e.flags=e.flags&-4097|2,Me=!1,Ut=e}}}function Kx(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ut=e}function Pu(e){if(e!==Ut)return!1;if(!Me)return Kx(e),Me=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!fm(e.type,e.memoizedProps)),t&&(t=zt)){if(mm(e))throw CO(),Error(W(418));for(;t;)AO(e,t),t=Qr(t.nextSibling)}if(Kx(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(W(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){zt=Qr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}zt=null}}else zt=Ut?Qr(e.stateNode.nextSibling):null;return!0}function CO(){for(var e=zt;e;)e=Qr(e.nextSibling)}function Wa(){zt=Ut=null,Me=!1}function Wg(e){bn===null?bn=[e]:bn.push(e)}var nN=Tr.ReactCurrentBatchConfig;function Zo(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(W(309));var r=n.stateNode}if(!r)throw Error(W(147,e));var i=r,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(W(284));if(!n._owner)throw Error(W(290,e))}return e}function ju(e,t){throw e=Object.prototype.toString.call(t),Error(W(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Gx(e){var t=e._init;return t(e._payload)}function kO(e){function t(v,y){if(e){var x=v.deletions;x===null?(v.deletions=[y],v.flags|=16):x.push(y)}}function n(v,y){if(!e)return null;for(;y!==null;)t(v,y),y=y.sibling;return null}function r(v,y){for(v=new Map;y!==null;)y.key!==null?v.set(y.key,y):v.set(y.index,y),y=y.sibling;return v}function i(v,y){return v=ti(v,y),v.index=0,v.sibling=null,v}function a(v,y,x){return v.index=x,e?(x=v.alternate,x!==null?(x=x.index,x<y?(v.flags|=2,y):x):(v.flags|=2,y)):(v.flags|=1048576,y)}function o(v){return e&&v.alternate===null&&(v.flags|=2),v}function l(v,y,x,E){return y===null||y.tag!==6?(y=Gp(x,v.mode,E),y.return=v,y):(y=i(y,x),y.return=v,y)}function s(v,y,x,E){var _=x.type;return _===ga?c(v,y,x.props.children,E,x.key):y!==null&&(y.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Lr&&Gx(_)===y.type)?(E=i(y,x.props),E.ref=Zo(v,y,x),E.return=v,E):(E=uc(x.type,x.key,x.props,null,v.mode,E),E.ref=Zo(v,y,x),E.return=v,E)}function u(v,y,x,E){return y===null||y.tag!==4||y.stateNode.containerInfo!==x.containerInfo||y.stateNode.implementation!==x.implementation?(y=qp(x,v.mode,E),y.return=v,y):(y=i(y,x.children||[]),y.return=v,y)}function c(v,y,x,E,_){return y===null||y.tag!==7?(y=Di(x,v.mode,E,_),y.return=v,y):(y=i(y,x),y.return=v,y)}function f(v,y,x){if(typeof y=="string"&&y!==""||typeof y=="number")return y=Gp(""+y,v.mode,x),y.return=v,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case gu:return x=uc(y.type,y.key,y.props,null,v.mode,x),x.ref=Zo(v,null,y),x.return=v,x;case va:return y=qp(y,v.mode,x),y.return=v,y;case Lr:var E=y._init;return f(v,E(y._payload),x)}if(pl(y)||Go(y))return y=Di(y,v.mode,x,null),y.return=v,y;ju(v,y)}return null}function d(v,y,x,E){var _=y!==null?y.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return _!==null?null:l(v,y,""+x,E);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case gu:return x.key===_?s(v,y,x,E):null;case va:return x.key===_?u(v,y,x,E):null;case Lr:return _=x._init,d(v,y,_(x._payload),E)}if(pl(x)||Go(x))return _!==null?null:c(v,y,x,E,null);ju(v,x)}return null}function p(v,y,x,E,_){if(typeof E=="string"&&E!==""||typeof E=="number")return v=v.get(x)||null,l(y,v,""+E,_);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case gu:return v=v.get(E.key===null?x:E.key)||null,s(y,v,E,_);case va:return v=v.get(E.key===null?x:E.key)||null,u(y,v,E,_);case Lr:var S=E._init;return p(v,y,x,S(E._payload),_)}if(pl(E)||Go(E))return v=v.get(x)||null,c(y,v,E,_,null);ju(y,E)}return null}function h(v,y,x,E){for(var _=null,S=null,O=y,$=y=0,T=null;O!==null&&$<x.length;$++){O.index>$?(T=O,O=null):T=O.sibling;var C=d(v,O,x[$],E);if(C===null){O===null&&(O=T);break}e&&O&&C.alternate===null&&t(v,O),y=a(C,y,$),S===null?_=C:S.sibling=C,S=C,O=T}if($===x.length)return n(v,O),Me&&_i(v,$),_;if(O===null){for(;$<x.length;$++)O=f(v,x[$],E),O!==null&&(y=a(O,y,$),S===null?_=O:S.sibling=O,S=O);return Me&&_i(v,$),_}for(O=r(v,O);$<x.length;$++)T=p(O,v,$,x[$],E),T!==null&&(e&&T.alternate!==null&&O.delete(T.key===null?$:T.key),y=a(T,y,$),S===null?_=T:S.sibling=T,S=T);return e&&O.forEach(function(A){return t(v,A)}),Me&&_i(v,$),_}function m(v,y,x,E){var _=Go(x);if(typeof _!="function")throw Error(W(150));if(x=_.call(x),x==null)throw Error(W(151));for(var S=_=null,O=y,$=y=0,T=null,C=x.next();O!==null&&!C.done;$++,C=x.next()){O.index>$?(T=O,O=null):T=O.sibling;var A=d(v,O,C.value,E);if(A===null){O===null&&(O=T);break}e&&O&&A.alternate===null&&t(v,O),y=a(A,y,$),S===null?_=A:S.sibling=A,S=A,O=T}if(C.done)return n(v,O),Me&&_i(v,$),_;if(O===null){for(;!C.done;$++,C=x.next())C=f(v,C.value,E),C!==null&&(y=a(C,y,$),S===null?_=C:S.sibling=C,S=C);return Me&&_i(v,$),_}for(O=r(v,O);!C.done;$++,C=x.next())C=p(O,v,$,C.value,E),C!==null&&(e&&C.alternate!==null&&O.delete(C.key===null?$:C.key),y=a(C,y,$),S===null?_=C:S.sibling=C,S=C);return e&&O.forEach(function(N){return t(v,N)}),Me&&_i(v,$),_}function b(v,y,x,E){if(typeof x=="object"&&x!==null&&x.type===ga&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case gu:e:{for(var _=x.key,S=y;S!==null;){if(S.key===_){if(_=x.type,_===ga){if(S.tag===7){n(v,S.sibling),y=i(S,x.props.children),y.return=v,v=y;break e}}else if(S.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Lr&&Gx(_)===S.type){n(v,S.sibling),y=i(S,x.props),y.ref=Zo(v,S,x),y.return=v,v=y;break e}n(v,S);break}else t(v,S);S=S.sibling}x.type===ga?(y=Di(x.props.children,v.mode,E,x.key),y.return=v,v=y):(E=uc(x.type,x.key,x.props,null,v.mode,E),E.ref=Zo(v,y,x),E.return=v,v=E)}return o(v);case va:e:{for(S=x.key;y!==null;){if(y.key===S)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){n(v,y.sibling),y=i(y,x.children||[]),y.return=v,v=y;break e}else{n(v,y);break}else t(v,y);y=y.sibling}y=qp(x,v.mode,E),y.return=v,v=y}return o(v);case Lr:return S=x._init,b(v,y,S(x._payload),E)}if(pl(x))return h(v,y,x,E);if(Go(x))return m(v,y,x,E);ju(v,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(n(v,y.sibling),y=i(y,x),y.return=v,v=y):(n(v,y),y=Gp(x,v.mode,E),y.return=v,v=y),o(v)):n(v,y)}return b}var Va=kO(!0),NO=kO(!1),Tc=ci(null),Ac=null,Oa=null,Vg=null;function Kg(){Vg=Oa=Ac=null}function Gg(e){var t=Tc.current;Ae(Tc),e._currentValue=t}function gm(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ra(e,t){Ac=e,Vg=Oa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ct=!0),e.firstContext=null)}function cn(e){var t=e._currentValue;if(Vg!==e)if(e={context:e,memoizedValue:t,next:null},Oa===null){if(Ac===null)throw Error(W(308));Oa=e,Ac.dependencies={lanes:0,firstContext:e}}else Oa=Oa.next=e;return t}var Ai=null;function qg(e){Ai===null?Ai=[e]:Ai.push(e)}function MO(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,qg(t)):(n.next=i.next,i.next=n),t.interleaved=n,yr(e,r)}function yr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Dr=!1;function Yg(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function IO(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 ur(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,se&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,yr(e,n)}return i=r.interleaved,i===null?(t.next=t,qg(r)):(t.next=i.next,i.next=t),r.interleaved=t,yr(e,n)}function rc(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Mg(e,n)}}function qx(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Cc(e,t,n,r){var i=e.updateQueue;Dr=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var s=l,u=s.next;s.next=null,o===null?a=u:o.next=u,o=s;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==o&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(a!==null){var f=i.baseState;o=0,c=u=s=null,l=a;do{var d=l.lane,p=l.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(d=t,p=n,m.tag){case 1:if(h=m.payload,typeof h=="function"){f=h.call(p,f,d);break e}f=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=m.payload,d=typeof h=="function"?h.call(p,f,d):h,d==null)break e;f=Be({},f,d);break e;case 2:Dr=!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},c===null?(u=c=p,s=f):c=c.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(c===null&&(s=f),i.baseState=s,i.firstBaseUpdate=u,i.lastBaseUpdate=c,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);Vi|=o,e.lanes=o,e.memoizedState=f}}function Yx(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(W(191,i));i.call(r)}}}var Hs={},Bn=ci(Hs),ql=ci(Hs),Yl=ci(Hs);function Ci(e){if(e===Hs)throw Error(W(174));return e}function Xg(e,t){switch(_e(Yl,t),_e(ql,e),_e(Bn,Hs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Qh(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Qh(t,e)}Ae(Bn),_e(Bn,t)}function Ka(){Ae(Bn),Ae(ql),Ae(Yl)}function RO(e){Ci(Yl.current);var t=Ci(Bn.current),n=Qh(t,e.type);t!==n&&(_e(ql,e),_e(Bn,n))}function Qg(e){ql.current===e&&(Ae(Bn),Ae(ql))}var Le=ci(0);function kc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.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 zp=[];function Zg(){for(var e=0;e<zp.length;e++)zp[e]._workInProgressVersionPrimary=null;zp.length=0}var ic=Tr.ReactCurrentDispatcher,Up=Tr.ReactCurrentBatchConfig,Wi=0,De=null,Xe=null,nt=null,Nc=!1,Ol=!1,Xl=0,rN=0;function pt(){throw Error(W(321))}function Jg(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!$n(e[n],t[n]))return!1;return!0}function ey(e,t,n,r,i,a){if(Wi=a,De=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ic.current=e===null||e.memoizedState===null?lN:sN,e=n(r,i),Ol){a=0;do{if(Ol=!1,Xl=0,25<=a)throw Error(W(301));a+=1,nt=Xe=null,t.updateQueue=null,ic.current=uN,e=n(r,i)}while(Ol)}if(ic.current=Mc,t=Xe!==null&&Xe.next!==null,Wi=0,nt=Xe=De=null,Nc=!1,t)throw Error(W(300));return e}function ty(){var e=Xl!==0;return Xl=0,e}function Rn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nt===null?De.memoizedState=nt=e:nt=nt.next=e,nt}function fn(){if(Xe===null){var e=De.alternate;e=e!==null?e.memoizedState:null}else e=Xe.next;var t=nt===null?De.memoizedState:nt.next;if(t!==null)nt=t,Xe=e;else{if(e===null)throw Error(W(310));Xe=e,e={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},nt===null?De.memoizedState=nt=e:nt=nt.next=e}return nt}function Ql(e,t){return typeof t=="function"?t(e):t}function Hp(e){var t=fn(),n=t.queue;if(n===null)throw Error(W(311));n.lastRenderedReducer=e;var r=Xe,i=r.baseQueue,a=n.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}r.baseQueue=i=a,n.pending=null}if(i!==null){a=i.next,r=r.baseState;var l=o=null,s=null,u=a;do{var c=u.lane;if((Wi&c)===c)s!==null&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};s===null?(l=s=f,o=r):s=s.next=f,De.lanes|=c,Vi|=c}u=u.next}while(u!==null&&u!==a);s===null?o=r:s.next=l,$n(r,t.memoizedState)||(Ct=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do a=i.lane,De.lanes|=a,Vi|=a,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Wp(e){var t=fn(),n=t.queue;if(n===null)throw Error(W(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);$n(a,t.memoizedState)||(Ct=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function LO(){}function DO(e,t){var n=De,r=fn(),i=t(),a=!$n(r.memoizedState,i);if(a&&(r.memoizedState=i,Ct=!0),r=r.queue,ny(zO.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||nt!==null&&nt.memoizedState.tag&1){if(n.flags|=2048,Zl(9,BO.bind(null,n,r,i,t),void 0,null),it===null)throw Error(W(349));Wi&30||FO(n,t,i)}return i}function FO(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=De.updateQueue,t===null?(t={lastEffect:null,stores:null},De.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function BO(e,t,n,r){t.value=n,t.getSnapshot=r,UO(t)&&HO(e)}function zO(e,t,n){return n(function(){UO(t)&&HO(e)})}function UO(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$n(e,n)}catch{return!0}}function HO(e){var t=yr(e,1);t!==null&&Sn(t,e,1,-1)}function Xx(e){var t=Rn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ql,lastRenderedState:e},t.queue=e,e=e.dispatch=oN.bind(null,De,e),[t.memoizedState,e]}function Zl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=De.updateQueue,t===null?(t={lastEffect:null,stores:null},De.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function WO(){return fn().memoizedState}function ac(e,t,n,r){var i=Rn();De.flags|=e,i.memoizedState=Zl(1|t,n,void 0,r===void 0?null:r)}function ed(e,t,n,r){var i=fn();r=r===void 0?null:r;var a=void 0;if(Xe!==null){var o=Xe.memoizedState;if(a=o.destroy,r!==null&&Jg(r,o.deps)){i.memoizedState=Zl(t,n,a,r);return}}De.flags|=e,i.memoizedState=Zl(1|t,n,a,r)}function Qx(e,t){return ac(8390656,8,e,t)}function ny(e,t){return ed(2048,8,e,t)}function VO(e,t){return ed(4,2,e,t)}function KO(e,t){return ed(4,4,e,t)}function GO(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 qO(e,t,n){return n=n!=null?n.concat([e]):null,ed(4,4,GO.bind(null,t,e),n)}function ry(){}function YO(e,t){var n=fn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Jg(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function XO(e,t){var n=fn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Jg(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function QO(e,t,n){return Wi&21?($n(n,t)||(n=nO(),De.lanes|=n,Vi|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ct=!0),e.memoizedState=n)}function iN(e,t){var n=pe;pe=n!==0&&4>n?n:4,e(!0);var r=Up.transition;Up.transition={};try{e(!1),t()}finally{pe=n,Up.transition=r}}function ZO(){return fn().memoizedState}function aN(e,t,n){var r=ei(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},JO(e))e$(t,n);else if(n=MO(e,t,n,r),n!==null){var i=Ot();Sn(n,e,r,i),t$(n,t,r)}}function oN(e,t,n){var r=ei(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(JO(e))e$(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,n);if(i.hasEagerState=!0,i.eagerState=l,$n(l,o)){var s=t.interleaved;s===null?(i.next=i,qg(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=MO(e,t,i,r),n!==null&&(i=Ot(),Sn(n,e,r,i),t$(n,t,r))}}function JO(e){var t=e.alternate;return e===De||t!==null&&t===De}function e$(e,t){Ol=Nc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function t$(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Mg(e,n)}}var Mc={readContext:cn,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useInsertionEffect:pt,useLayoutEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useMutableSource:pt,useSyncExternalStore:pt,useId:pt,unstable_isNewReconciler:!1},lN={readContext:cn,useCallback:function(e,t){return Rn().memoizedState=[e,t===void 0?null:t],e},useContext:cn,useEffect:Qx,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ac(4194308,4,GO.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ac(4194308,4,e,t)},useInsertionEffect:function(e,t){return ac(4,2,e,t)},useMemo:function(e,t){var n=Rn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Rn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=aN.bind(null,De,e),[r.memoizedState,e]},useRef:function(e){var t=Rn();return e={current:e},t.memoizedState=e},useState:Xx,useDebugValue:ry,useDeferredValue:function(e){return Rn().memoizedState=e},useTransition:function(){var e=Xx(!1),t=e[0];return e=iN.bind(null,e[1]),Rn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=De,i=Rn();if(Me){if(n===void 0)throw Error(W(407));n=n()}else{if(n=t(),it===null)throw Error(W(349));Wi&30||FO(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Qx(zO.bind(null,r,a,e),[e]),r.flags|=2048,Zl(9,BO.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Rn(),t=it.identifierPrefix;if(Me){var n=or,r=ar;n=(r&~(1<<32-_n(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Xl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=rN++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},sN={readContext:cn,useCallback:YO,useContext:cn,useEffect:ny,useImperativeHandle:qO,useInsertionEffect:VO,useLayoutEffect:KO,useMemo:XO,useReducer:Hp,useRef:WO,useState:function(){return Hp(Ql)},useDebugValue:ry,useDeferredValue:function(e){var t=fn();return QO(t,Xe.memoizedState,e)},useTransition:function(){var e=Hp(Ql)[0],t=fn().memoizedState;return[e,t]},useMutableSource:LO,useSyncExternalStore:DO,useId:ZO,unstable_isNewReconciler:!1},uN={readContext:cn,useCallback:YO,useContext:cn,useEffect:ny,useImperativeHandle:qO,useInsertionEffect:VO,useLayoutEffect:KO,useMemo:XO,useReducer:Wp,useRef:WO,useState:function(){return Wp(Ql)},useDebugValue:ry,useDeferredValue:function(e){var t=fn();return Xe===null?t.memoizedState=e:QO(t,Xe.memoizedState,e)},useTransition:function(){var e=Wp(Ql)[0],t=fn().memoizedState;return[e,t]},useMutableSource:LO,useSyncExternalStore:DO,useId:ZO,unstable_isNewReconciler:!1};function yn(e,t){if(e&&e.defaultProps){t=Be({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ym(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Be({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var td={isMounted:function(e){return(e=e._reactInternals)?na(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ot(),i=ei(e),a=ur(r,i);a.payload=t,n!=null&&(a.callback=n),t=Zr(e,a,i),t!==null&&(Sn(t,e,i,r),rc(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ot(),i=ei(e),a=ur(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Zr(e,a,i),t!==null&&(Sn(t,e,i,r),rc(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ot(),r=ei(e),i=ur(n,r);i.tag=2,t!=null&&(i.callback=t),t=Zr(e,i,r),t!==null&&(Sn(t,e,r,n),rc(t,e,r))}};function Zx(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Wl(n,r)||!Wl(i,a):!0}function n$(e,t,n){var r=!1,i=li,a=t.contextType;return typeof a=="object"&&a!==null?a=cn(a):(i=It(t)?Ui:yt.current,r=t.contextTypes,a=(r=r!=null)?Ha(e,i):li),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=td,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Jx(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&td.enqueueReplaceState(t,t.state,null)}function xm(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Yg(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=cn(a):(a=It(t)?Ui:yt.current,i.context=Ha(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(ym(e,t,a,n),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&&td.enqueueReplaceState(i,i.state,null),Cc(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Ga(e,t){try{var n="",r=t;do n+=LC(r),r=r.return;while(r);var i=n}catch(a){i=`
56
- Error generating stack: `+a.message+`
57
- `+a.stack}return{value:e,source:t,stack:i,digest:null}}function Vp(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function bm(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var cN=typeof WeakMap=="function"?WeakMap:Map;function r$(e,t,n){n=ur(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Rc||(Rc=!0,Am=r),bm(e,t)},n}function i$(e,t,n){n=ur(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){bm(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(n.callback=function(){bm(e,t),typeof r!="function"&&(Jr===null?Jr=new Set([this]):Jr.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function eb(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new cN;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=EN.bind(null,e,t,n),t.then(e,e))}function tb(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 nb(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=ur(-1,1),t.tag=2,Zr(n,t,1))),n.lanes|=1),e)}var fN=Tr.ReactCurrentOwner,Ct=!1;function xt(e,t,n,r){t.child=e===null?NO(t,null,n,r):Va(t,e.child,n,r)}function rb(e,t,n,r,i){n=n.render;var a=t.ref;return Ra(t,i),r=ey(e,t,n,r,a,i),n=ty(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,xr(e,t,i)):(Me&&n&&Ug(t),t.flags|=1,xt(e,t,r,i),t.child)}function ib(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!fy(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,a$(e,t,a,r,i)):(e=uc(n.type,null,r,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(n=n.compare,n=n!==null?n:Wl,n(o,r)&&e.ref===t.ref)return xr(e,t,i)}return t.flags|=1,e=ti(a,r),e.ref=t.ref,e.return=t,t.child=e}function a$(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Wl(a,r)&&e.ref===t.ref)if(Ct=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Ct=!0);else return t.lanes=e.lanes,xr(e,t,i)}return wm(e,t,n,r,i)}function o$(e,t,n){var r=t.pendingProps,i=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_e(Pa,Ft),Ft|=n;else{if(!(n&1073741824))return e=a!==null?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_e(Pa,Ft),Ft|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a!==null?a.baseLanes:n,_e(Pa,Ft),Ft|=r}else a!==null?(r=a.baseLanes|n,t.memoizedState=null):r=n,_e(Pa,Ft),Ft|=r;return xt(e,t,i,n),t.child}function l$(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function wm(e,t,n,r,i){var a=It(n)?Ui:yt.current;return a=Ha(t,a),Ra(t,i),n=ey(e,t,n,r,a,i),r=ty(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,xr(e,t,i)):(Me&&r&&Ug(t),t.flags|=1,xt(e,t,n,i),t.child)}function ab(e,t,n,r,i){if(It(n)){var a=!0;$c(t)}else a=!1;if(Ra(t,i),t.stateNode===null)oc(e,t),n$(t,n,r),xm(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var s=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=cn(u):(u=It(n)?Ui:yt.current,u=Ha(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||s!==u)&&Jx(t,o,r,u),Dr=!1;var d=t.memoizedState;o.state=d,Cc(t,r,o,i),s=t.memoizedState,l!==r||d!==s||Mt.current||Dr?(typeof c=="function"&&(ym(t,n,c,r),s=t.memoizedState),(l=Dr||Zx(t,n,l,r,d,s,u))?(f||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=r,t.memoizedState=s),o.props=r,o.state=s,o.context=u,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,IO(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:yn(t.type,l),o.props=u,f=t.pendingProps,d=o.context,s=n.contextType,typeof s=="object"&&s!==null?s=cn(s):(s=It(n)?Ui:yt.current,s=Ha(t,s));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==f||d!==s)&&Jx(t,o,r,s),Dr=!1,d=t.memoizedState,o.state=d,Cc(t,r,o,i);var h=t.memoizedState;l!==f||d!==h||Mt.current||Dr?(typeof p=="function"&&(ym(t,n,p,r),h=t.memoizedState),(u=Dr||Zx(t,n,u,r,d,h,s)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,h,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,h,s)),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=r,t.memoizedState=h),o.props=r,o.state=h,o.context=s,r=u):(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),r=!1)}return _m(e,t,n,r,a,i)}function _m(e,t,n,r,i,a){l$(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&Wx(t,n,!1),xr(e,t,a);r=t.stateNode,fN.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Va(t,e.child,null,a),t.child=Va(t,null,l,a)):xt(e,t,l,a),t.memoizedState=r.state,i&&Wx(t,n,!0),t.child}function s$(e){var t=e.stateNode;t.pendingContext?Hx(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Hx(e,t.context,!1),Xg(e,t.containerInfo)}function ob(e,t,n,r,i){return Wa(),Wg(i),t.flags|=256,xt(e,t,n,r),t.child}var Sm={dehydrated:null,treeContext:null,retryLane:0};function Em(e){return{baseLanes:e,cachePool:null,transitions:null}}function u$(e,t,n){var r=t.pendingProps,i=Le.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),_e(Le,i&1),e===null)return vm(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=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:"hidden",children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=id(o,r,0,null),e=Di(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Em(n),t.memoizedState=Sm,e):iy(t,o));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return dN(e,t,o,r,l,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,l=i.sibling;var s={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=ti(i,s),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?a=ti(l,a):(a=Di(a,o,n,null),a.flags|=2),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?Em(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=Sm,r}return a=e.child,e=a.sibling,r=ti(a,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function iy(e,t){return t=id({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Tu(e,t,n,r){return r!==null&&Wg(r),Va(t,e.child,null,n),e=iy(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function dN(e,t,n,r,i,a,o){if(n)return t.flags&256?(t.flags&=-257,r=Vp(Error(W(422))),Tu(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=id({mode:"visible",children:r.children},i,0,null),a=Di(a,i,o,null),a.flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,t.mode&1&&Va(t,e.child,null,o),t.child.memoizedState=Em(o),t.memoizedState=Sm,a);if(!(t.mode&1))return Tu(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,a=Error(W(419)),r=Vp(a,r,void 0),Tu(e,t,o,r)}if(l=(o&e.childLanes)!==0,Ct||l){if(r=it,r!==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&(r.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,yr(e,i),Sn(r,e,i,-1))}return cy(),r=Vp(Error(W(421))),Tu(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=ON.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,zt=Qr(i.nextSibling),Ut=t,Me=!0,bn=null,e!==null&&(en[tn++]=ar,en[tn++]=or,en[tn++]=Hi,ar=e.id,or=e.overflow,Hi=t),t=iy(t,r.children),t.flags|=4096,t)}function lb(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),gm(e.return,t,n)}function Kp(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function c$(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(xt(e,t,r.children,n),r=Le.current,r&2)r=r&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&&lb(e,n,t);else if(e.tag===19)lb(e,n,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}r&=1}if(_e(Le,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&kc(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Kp(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&kc(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Kp(t,!0,n,null,a);break;case"together":Kp(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function oc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function xr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Vi|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(W(153));if(t.child!==null){for(e=t.child,n=ti(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ti(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function pN(e,t,n){switch(t.tag){case 3:s$(t),Wa();break;case 5:RO(t);break;case 1:It(t.type)&&$c(t);break;case 4:Xg(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;_e(Tc,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(_e(Le,Le.current&1),t.flags|=128,null):n&t.child.childLanes?u$(e,t,n):(_e(Le,Le.current&1),e=xr(e,t,n),e!==null?e.sibling:null);_e(Le,Le.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return c$(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),_e(Le,Le.current),r)break;return null;case 22:case 23:return t.lanes=0,o$(e,t,n)}return xr(e,t,n)}var f$,Om,d$,p$;f$=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Om=function(){};d$=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ci(Bn.current);var a=null;switch(n){case"input":i=Gh(e,i),r=Gh(e,r),a=[];break;case"select":i=Be({},i,{value:void 0}),r=Be({},r,{value:void 0}),a=[];break;case"textarea":i=Xh(e,i),r=Xh(e,r),a=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ec)}Zh(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ll.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var s=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&s!==l&&(s!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in s)s.hasOwnProperty(o)&&l[o]!==s[o]&&(n||(n={}),n[o]=s[o])}else n||(a||(a=[]),a.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(a=a||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(a=a||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ll.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&$e("scroll",e),a||l===s||(a=[])):(a=a||[]).push(u,s))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};p$=function(e,t,n,r){n!==r&&(t.flags|=4)};function Jo(e,t){if(!Me)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ht(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function hN(e,t,n){var r=t.pendingProps;switch(Hg(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(t),null;case 1:return It(t.type)&&Oc(),ht(t),null;case 3:return r=t.stateNode,Ka(),Ae(Mt),Ae(yt),Zg(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Pu(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,bn!==null&&(Nm(bn),bn=null))),Om(e,t),ht(t),null;case 5:Qg(t);var i=Ci(Yl.current);if(n=t.type,e!==null&&t.stateNode!=null)d$(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(W(166));return ht(t),null}if(e=Ci(Bn.current),Pu(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Ln]=t,r[Gl]=a,e=(t.mode&1)!==0,n){case"dialog":$e("cancel",r),$e("close",r);break;case"iframe":case"object":case"embed":$e("load",r);break;case"video":case"audio":for(i=0;i<ml.length;i++)$e(ml[i],r);break;case"source":$e("error",r);break;case"img":case"image":case"link":$e("error",r),$e("load",r);break;case"details":$e("toggle",r);break;case"input":vx(r,a),$e("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},$e("invalid",r);break;case"textarea":yx(r,a),$e("invalid",r)}Zh(n,a),i=null;for(var o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="children"?typeof l=="string"?r.textContent!==l&&(a.suppressHydrationWarning!==!0&&$u(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(a.suppressHydrationWarning!==!0&&$u(r.textContent,l,e),i=["children",""+l]):Ll.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&$e("scroll",r)}switch(n){case"input":yu(r),gx(r,a,!0);break;case"textarea":yu(r),xx(r);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(r.onclick=Ec)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=zE(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[Ln]=t,e[Gl]=r,f$(e,t,!1,!1),t.stateNode=e;e:{switch(o=Jh(n,r),n){case"dialog":$e("cancel",e),$e("close",e),i=r;break;case"iframe":case"object":case"embed":$e("load",e),i=r;break;case"video":case"audio":for(i=0;i<ml.length;i++)$e(ml[i],e);i=r;break;case"source":$e("error",e),i=r;break;case"img":case"image":case"link":$e("error",e),$e("load",e),i=r;break;case"details":$e("toggle",e),i=r;break;case"input":vx(e,r),i=Gh(e,r),$e("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Be({},r,{value:void 0}),$e("invalid",e);break;case"textarea":yx(e,r),i=Xh(e,r),$e("invalid",e);break;default:i=r}Zh(n,i),l=i;for(a in l)if(l.hasOwnProperty(a)){var s=l[a];a==="style"?WE(e,s):a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&UE(e,s)):a==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&Dl(e,s):typeof s=="number"&&Dl(e,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Ll.hasOwnProperty(a)?s!=null&&a==="onScroll"&&$e("scroll",e):s!=null&&jg(e,a,s,o))}switch(n){case"input":yu(e),gx(e,r,!1);break;case"textarea":yu(e),xx(e);break;case"option":r.value!=null&&e.setAttribute("value",""+oi(r.value));break;case"select":e.multiple=!!r.multiple,a=r.value,a!=null?ka(e,!!r.multiple,a,!1):r.defaultValue!=null&&ka(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Ec)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ht(t),null;case 6:if(e&&t.stateNode!=null)p$(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(W(166));if(n=Ci(Yl.current),Ci(Bn.current),Pu(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ln]=t,(a=r.nodeValue!==n)&&(e=Ut,e!==null))switch(e.tag){case 3:$u(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&$u(r.nodeValue,n,(e.mode&1)!==0)}a&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ln]=t,t.stateNode=r}return ht(t),null;case 13:if(Ae(Le),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Me&&zt!==null&&t.mode&1&&!(t.flags&128))CO(),Wa(),t.flags|=98560,a=!1;else if(a=Pu(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(W(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(W(317));a[Ln]=t}else Wa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ht(t),a=!1}else bn!==null&&(Nm(bn),bn=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Le.current&1?Ze===0&&(Ze=3):cy())),t.updateQueue!==null&&(t.flags|=4),ht(t),null);case 4:return Ka(),Om(e,t),e===null&&Vl(t.stateNode.containerInfo),ht(t),null;case 10:return Gg(t.type._context),ht(t),null;case 17:return It(t.type)&&Oc(),ht(t),null;case 19:if(Ae(Le),a=t.memoizedState,a===null)return ht(t),null;if(r=(t.flags&128)!==0,o=a.rendering,o===null)if(r)Jo(a,!1);else{if(Ze!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=kc(e),o!==null){for(t.flags|=128,Jo(a,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)a=n,e=r,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}),n=n.sibling;return _e(Le,Le.current&1|2),t.child}e=e.sibling}a.tail!==null&&We()>qa&&(t.flags|=128,r=!0,Jo(a,!1),t.lanes=4194304)}else{if(!r)if(e=kc(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Jo(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Me)return ht(t),null}else 2*We()-a.renderingStartTime>qa&&n!==1073741824&&(t.flags|=128,r=!0,Jo(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=We(),t.sibling=null,n=Le.current,_e(Le,r?n&1|2:n&1),t):(ht(t),null);case 22:case 23:return uy(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ft&1073741824&&(ht(t),t.subtreeFlags&6&&(t.flags|=8192)):ht(t),null;case 24:return null;case 25:return null}throw Error(W(156,t.tag))}function mN(e,t){switch(Hg(t),t.tag){case 1:return It(t.type)&&Oc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ka(),Ae(Mt),Ae(yt),Zg(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Qg(t),null;case 13:if(Ae(Le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(W(340));Wa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ae(Le),null;case 4:return Ka(),null;case 10:return Gg(t.type._context),null;case 22:case 23:return uy(),null;case 24:return null;default:return null}}var Au=!1,mt=!1,vN=typeof WeakSet=="function"?WeakSet:Set,q=null;function $a(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ze(e,t,r)}else n.current=null}function $m(e,t,n){try{n()}catch(r){ze(e,t,r)}}var sb=!1;function gN(e,t){if(um=wc,e=yO(),zg(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,l=-1,s=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var p;f!==n||i!==0&&f.nodeType!==3||(l=o+i),f!==a||r!==0&&f.nodeType!==3||(s=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(p=f.firstChild)!==null;)d=f,f=p;for(;;){if(f===e)break t;if(d===n&&++u===i&&(l=o),d===a&&++c===r&&(s=o),(p=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=p}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(cm={focusedElem:e,selectionRange:n},wc=!1,q=t;q!==null;)if(t=q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,q=e;else for(;q!==null;){t=q;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var m=h.memoizedProps,b=h.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:yn(t.type,m),b);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(W(163))}}catch(E){ze(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return h=sb,sb=!1,h}function $l(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&$m(t,n,a)}i=i.next}while(i!==r)}}function nd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Pm(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function h$(e){var t=e.alternate;t!==null&&(e.alternate=null,h$(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ln],delete t[Gl],delete t[pm],delete t[Jk],delete t[eN])),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 m$(e){return e.tag===5||e.tag===3||e.tag===4}function ub(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||m$(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 jm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ec));else if(r!==4&&(e=e.child,e!==null))for(jm(e,t,n),e=e.sibling;e!==null;)jm(e,t,n),e=e.sibling}function Tm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Tm(e,t,n),e=e.sibling;e!==null;)Tm(e,t,n),e=e.sibling}var st=null,xn=!1;function Rr(e,t,n){for(n=n.child;n!==null;)v$(e,t,n),n=n.sibling}function v$(e,t,n){if(Fn&&typeof Fn.onCommitFiberUnmount=="function")try{Fn.onCommitFiberUnmount(qf,n)}catch{}switch(n.tag){case 5:mt||$a(n,t);case 6:var r=st,i=xn;st=null,Rr(e,t,n),st=r,xn=i,st!==null&&(xn?(e=st,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):st.removeChild(n.stateNode));break;case 18:st!==null&&(xn?(e=st,n=n.stateNode,e.nodeType===8?Fp(e.parentNode,n):e.nodeType===1&&Fp(e,n),Ul(e)):Fp(st,n.stateNode));break;case 4:r=st,i=xn,st=n.stateNode.containerInfo,xn=!0,Rr(e,t,n),st=r,xn=i;break;case 0:case 11:case 14:case 15:if(!mt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&$m(n,t,o),i=i.next}while(i!==r)}Rr(e,t,n);break;case 1:if(!mt&&($a(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ze(n,t,l)}Rr(e,t,n);break;case 21:Rr(e,t,n);break;case 22:n.mode&1?(mt=(r=mt)||n.memoizedState!==null,Rr(e,t,n),mt=r):Rr(e,t,n);break;default:Rr(e,t,n)}}function cb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new vN),t.forEach(function(r){var i=$N.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function vn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:st=l.stateNode,xn=!1;break e;case 3:st=l.stateNode.containerInfo,xn=!0;break e;case 4:st=l.stateNode.containerInfo,xn=!0;break e}l=l.return}if(st===null)throw Error(W(160));v$(a,o,i),st=null,xn=!1;var s=i.alternate;s!==null&&(s.return=null),i.return=null}catch(u){ze(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)g$(t,e),t=t.sibling}function g$(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vn(t,e),Mn(e),r&4){try{$l(3,e,e.return),nd(3,e)}catch(m){ze(e,e.return,m)}try{$l(5,e,e.return)}catch(m){ze(e,e.return,m)}}break;case 1:vn(t,e),Mn(e),r&512&&n!==null&&$a(n,n.return);break;case 5:if(vn(t,e),Mn(e),r&512&&n!==null&&$a(n,n.return),e.flags&32){var i=e.stateNode;try{Dl(i,"")}catch(m){ze(e,e.return,m)}}if(r&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,o=n!==null?n.memoizedProps:a,l=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{l==="input"&&a.type==="radio"&&a.name!=null&&FE(i,a),Jh(l,o);var u=Jh(l,a);for(o=0;o<s.length;o+=2){var c=s[o],f=s[o+1];c==="style"?WE(i,f):c==="dangerouslySetInnerHTML"?UE(i,f):c==="children"?Dl(i,f):jg(i,c,f,u)}switch(l){case"input":qh(i,a);break;case"textarea":BE(i,a);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;p!=null?ka(i,!!a.multiple,p,!1):d!==!!a.multiple&&(a.defaultValue!=null?ka(i,!!a.multiple,a.defaultValue,!0):ka(i,!!a.multiple,a.multiple?[]:"",!1))}i[Gl]=a}catch(m){ze(e,e.return,m)}}break;case 6:if(vn(t,e),Mn(e),r&4){if(e.stateNode===null)throw Error(W(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(m){ze(e,e.return,m)}}break;case 3:if(vn(t,e),Mn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ul(t.containerInfo)}catch(m){ze(e,e.return,m)}break;case 4:vn(t,e),Mn(e);break;case 13:vn(t,e),Mn(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(ly=We())),r&4&&cb(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(mt=(u=mt)||c,vn(t,e),mt=u):vn(t,e),Mn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(q=e,c=e.child;c!==null;){for(f=q=c;q!==null;){switch(d=q,p=d.child,d.tag){case 0:case 11:case 14:case 15:$l(4,d,d.return);break;case 1:$a(d,d.return);var h=d.stateNode;if(typeof h.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(m){ze(r,n,m)}}break;case 5:$a(d,d.return);break;case 22:if(d.memoizedState!==null){db(f);continue}}p!==null?(p.return=d,q=p):db(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(l=f.stateNode,s=f.memoizedProps.style,o=s!=null&&s.hasOwnProperty("display")?s.display:null,l.style.display=HE("display",o))}catch(m){ze(e,e.return,m)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(m){ze(e,e.return,m)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:vn(t,e),Mn(e),r&4&&cb(e);break;case 21:break;default:vn(t,e),Mn(e)}}function Mn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(m$(n)){var r=n;break e}n=n.return}throw Error(W(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Dl(i,""),r.flags&=-33);var a=ub(e);Tm(e,a,i);break;case 3:case 4:var o=r.stateNode.containerInfo,l=ub(e);jm(e,l,o);break;default:throw Error(W(161))}}catch(s){ze(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yN(e,t,n){q=e,y$(e)}function y$(e,t,n){for(var r=(e.mode&1)!==0;q!==null;){var i=q,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||Au;if(!o){var l=i.alternate,s=l!==null&&l.memoizedState!==null||mt;l=Au;var u=mt;if(Au=o,(mt=s)&&!u)for(q=i;q!==null;)o=q,s=o.child,o.tag===22&&o.memoizedState!==null?pb(i):s!==null?(s.return=o,q=s):pb(i);for(;a!==null;)q=a,y$(a),a=a.sibling;q=i,Au=l,mt=u}fb(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,q=a):fb(e)}}function fb(e){for(;q!==null;){var t=q;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:mt||nd(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!mt)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:yn(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&Yx(t,a,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Yx(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Ul(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(W(163))}mt||t.flags&512&&Pm(t)}catch(d){ze(t,t.return,d)}}if(t===e){q=null;break}if(n=t.sibling,n!==null){n.return=t.return,q=n;break}q=t.return}}function db(e){for(;q!==null;){var t=q;if(t===e){q=null;break}var n=t.sibling;if(n!==null){n.return=t.return,q=n;break}q=t.return}}function pb(e){for(;q!==null;){var t=q;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{nd(4,t)}catch(s){ze(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(s){ze(t,i,s)}}var a=t.return;try{Pm(t)}catch(s){ze(t,a,s)}break;case 5:var o=t.return;try{Pm(t)}catch(s){ze(t,o,s)}}}catch(s){ze(t,t.return,s)}if(t===e){q=null;break}var l=t.sibling;if(l!==null){l.return=t.return,q=l;break}q=t.return}}var xN=Math.ceil,Ic=Tr.ReactCurrentDispatcher,ay=Tr.ReactCurrentOwner,un=Tr.ReactCurrentBatchConfig,se=0,it=null,Ke=null,ft=0,Ft=0,Pa=ci(0),Ze=0,Jl=null,Vi=0,rd=0,oy=0,Pl=null,At=null,ly=0,qa=1/0,er=null,Rc=!1,Am=null,Jr=null,Cu=!1,Vr=null,Lc=0,jl=0,Cm=null,lc=-1,sc=0;function Ot(){return se&6?We():lc!==-1?lc:lc=We()}function ei(e){return e.mode&1?se&2&&ft!==0?ft&-ft:nN.transition!==null?(sc===0&&(sc=nO()),sc):(e=pe,e!==0||(e=window.event,e=e===void 0?16:uO(e.type)),e):1}function Sn(e,t,n,r){if(50<jl)throw jl=0,Cm=null,Error(W(185));Bs(e,n,r),(!(se&2)||e!==it)&&(e===it&&(!(se&2)&&(rd|=n),Ze===4&&Ur(e,ft)),Rt(e,r),n===1&&se===0&&!(t.mode&1)&&(qa=We()+500,Jf&&fi()))}function Rt(e,t){var n=e.callbackNode;nk(e,t);var r=bc(e,e===it?ft:0);if(r===0)n!==null&&_x(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&_x(n),t===1)e.tag===0?tN(hb.bind(null,e)):jO(hb.bind(null,e)),Qk(function(){!(se&6)&&fi()}),n=null;else{switch(rO(r)){case 1:n=Ng;break;case 4:n=eO;break;case 16:n=xc;break;case 536870912:n=tO;break;default:n=xc}n=$$(n,x$.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function x$(e,t){if(lc=-1,sc=0,se&6)throw Error(W(327));var n=e.callbackNode;if(La()&&e.callbackNode!==n)return null;var r=bc(e,e===it?ft:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Dc(e,r);else{t=r;var i=se;se|=2;var a=w$();(it!==e||ft!==t)&&(er=null,qa=We()+500,Li(e,t));do try{_N();break}catch(l){b$(e,l)}while(!0);Kg(),Ic.current=a,se=i,Ke!==null?t=0:(it=null,ft=0,t=Ze)}if(t!==0){if(t===2&&(i=im(e),i!==0&&(r=i,t=km(e,i))),t===1)throw n=Jl,Li(e,0),Ur(e,r),Rt(e,We()),n;if(t===6)Ur(e,r);else{if(i=e.current.alternate,!(r&30)&&!bN(i)&&(t=Dc(e,r),t===2&&(a=im(e),a!==0&&(r=a,t=km(e,a))),t===1))throw n=Jl,Li(e,0),Ur(e,r),Rt(e,We()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(W(345));case 2:Si(e,At,er);break;case 3:if(Ur(e,r),(r&130023424)===r&&(t=ly+500-We(),10<t)){if(bc(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ot(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=dm(Si.bind(null,e,At,er),t);break}Si(e,At,er);break;case 4:if(Ur(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-_n(r);a=1<<o,o=t[o],o>i&&(i=o),r&=~a}if(r=i,r=We()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xN(r/1960))-r,10<r){e.timeoutHandle=dm(Si.bind(null,e,At,er),r);break}Si(e,At,er);break;case 5:Si(e,At,er);break;default:throw Error(W(329))}}}return Rt(e,We()),e.callbackNode===n?x$.bind(null,e):null}function km(e,t){var n=Pl;return e.current.memoizedState.isDehydrated&&(Li(e,t).flags|=256),e=Dc(e,t),e!==2&&(t=At,At=n,t!==null&&Nm(t)),e}function Nm(e){At===null?At=e:At.push.apply(At,e)}function bN(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!$n(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 Ur(e,t){for(t&=~oy,t&=~rd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-_n(t),r=1<<n;e[n]=-1,t&=~r}}function hb(e){if(se&6)throw Error(W(327));La();var t=bc(e,0);if(!(t&1))return Rt(e,We()),null;var n=Dc(e,t);if(e.tag!==0&&n===2){var r=im(e);r!==0&&(t=r,n=km(e,r))}if(n===1)throw n=Jl,Li(e,0),Ur(e,t),Rt(e,We()),n;if(n===6)throw Error(W(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Si(e,At,er),Rt(e,We()),null}function sy(e,t){var n=se;se|=1;try{return e(t)}finally{se=n,se===0&&(qa=We()+500,Jf&&fi())}}function Ki(e){Vr!==null&&Vr.tag===0&&!(se&6)&&La();var t=se;se|=1;var n=un.transition,r=pe;try{if(un.transition=null,pe=1,e)return e()}finally{pe=r,un.transition=n,se=t,!(se&6)&&fi()}}function uy(){Ft=Pa.current,Ae(Pa)}function Li(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Xk(n)),Ke!==null)for(n=Ke.return;n!==null;){var r=n;switch(Hg(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Oc();break;case 3:Ka(),Ae(Mt),Ae(yt),Zg();break;case 5:Qg(r);break;case 4:Ka();break;case 13:Ae(Le);break;case 19:Ae(Le);break;case 10:Gg(r.type._context);break;case 22:case 23:uy()}n=n.return}if(it=e,Ke=e=ti(e.current,null),ft=Ft=t,Ze=0,Jl=null,oy=rd=Vi=0,At=Pl=null,Ai!==null){for(t=0;t<Ai.length;t++)if(n=Ai[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}Ai=null}return e}function b$(e,t){do{var n=Ke;try{if(Kg(),ic.current=Mc,Nc){for(var r=De.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Nc=!1}if(Wi=0,nt=Xe=De=null,Ol=!1,Xl=0,ay.current=null,n===null||n.return===null){Ze=1,Jl=t,Ke=null;break}e:{var a=e,o=n.return,l=n,s=t;if(t=ft,l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var u=s,c=l,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=tb(o);if(p!==null){p.flags&=-257,nb(p,o,l,a,t),p.mode&1&&eb(a,u,t),t=p,s=u;var h=t.updateQueue;if(h===null){var m=new Set;m.add(s),t.updateQueue=m}else h.add(s);break e}else{if(!(t&1)){eb(a,u,t),cy();break e}s=Error(W(426))}}else if(Me&&l.mode&1){var b=tb(o);if(b!==null){!(b.flags&65536)&&(b.flags|=256),nb(b,o,l,a,t),Wg(Ga(s,l));break e}}a=s=Ga(s,l),Ze!==4&&(Ze=2),Pl===null?Pl=[a]:Pl.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var v=r$(a,s,t);qx(a,v);break e;case 1:l=s;var y=a.type,x=a.stateNode;if(!(a.flags&128)&&(typeof y.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Jr===null||!Jr.has(x)))){a.flags|=65536,t&=-t,a.lanes|=t;var E=i$(a,l,t);qx(a,E);break e}}a=a.return}while(a!==null)}S$(n)}catch(_){t=_,Ke===n&&n!==null&&(Ke=n=n.return);continue}break}while(!0)}function w$(){var e=Ic.current;return Ic.current=Mc,e===null?Mc:e}function cy(){(Ze===0||Ze===3||Ze===2)&&(Ze=4),it===null||!(Vi&268435455)&&!(rd&268435455)||Ur(it,ft)}function Dc(e,t){var n=se;se|=2;var r=w$();(it!==e||ft!==t)&&(er=null,Li(e,t));do try{wN();break}catch(i){b$(e,i)}while(!0);if(Kg(),se=n,Ic.current=r,Ke!==null)throw Error(W(261));return it=null,ft=0,Ze}function wN(){for(;Ke!==null;)_$(Ke)}function _N(){for(;Ke!==null&&!GC();)_$(Ke)}function _$(e){var t=O$(e.alternate,e,Ft);e.memoizedProps=e.pendingProps,t===null?S$(e):Ke=t,ay.current=null}function S$(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=mN(n,t),n!==null){n.flags&=32767,Ke=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ze=6,Ke=null;return}}else if(n=hN(n,t,Ft),n!==null){Ke=n;return}if(t=t.sibling,t!==null){Ke=t;return}Ke=t=e}while(t!==null);Ze===0&&(Ze=5)}function Si(e,t,n){var r=pe,i=un.transition;try{un.transition=null,pe=1,SN(e,t,n,r)}finally{un.transition=i,pe=r}return null}function SN(e,t,n,r){do La();while(Vr!==null);if(se&6)throw Error(W(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(W(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(rk(e,a),e===it&&(Ke=it=null,ft=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Cu||(Cu=!0,$$(xc,function(){return La(),null})),a=(n.flags&15990)!==0,n.subtreeFlags&15990||a){a=un.transition,un.transition=null;var o=pe;pe=1;var l=se;se|=4,ay.current=null,gN(e,n),g$(n,e),Hk(cm),wc=!!um,cm=um=null,e.current=n,yN(n),qC(),se=l,pe=o,un.transition=a}else e.current=n;if(Cu&&(Cu=!1,Vr=e,Lc=i),a=e.pendingLanes,a===0&&(Jr=null),QC(n.stateNode),Rt(e,We()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Rc)throw Rc=!1,e=Am,Am=null,e;return Lc&1&&e.tag!==0&&La(),a=e.pendingLanes,a&1?e===Cm?jl++:(jl=0,Cm=e):jl=0,fi(),null}function La(){if(Vr!==null){var e=rO(Lc),t=un.transition,n=pe;try{if(un.transition=null,pe=16>e?16:e,Vr===null)var r=!1;else{if(e=Vr,Vr=null,Lc=0,se&6)throw Error(W(331));var i=se;for(se|=4,q=e.current;q!==null;){var a=q,o=a.child;if(q.flags&16){var l=a.deletions;if(l!==null){for(var s=0;s<l.length;s++){var u=l[s];for(q=u;q!==null;){var c=q;switch(c.tag){case 0:case 11:case 15:$l(8,c,a)}var f=c.child;if(f!==null)f.return=c,q=f;else for(;q!==null;){c=q;var d=c.sibling,p=c.return;if(h$(c),c===u){q=null;break}if(d!==null){d.return=p,q=d;break}q=p}}}var h=a.alternate;if(h!==null){var m=h.child;if(m!==null){h.child=null;do{var b=m.sibling;m.sibling=null,m=b}while(m!==null)}}q=a}}if(a.subtreeFlags&2064&&o!==null)o.return=a,q=o;else e:for(;q!==null;){if(a=q,a.flags&2048)switch(a.tag){case 0:case 11:case 15:$l(9,a,a.return)}var v=a.sibling;if(v!==null){v.return=a.return,q=v;break e}q=a.return}}var y=e.current;for(q=y;q!==null;){o=q;var x=o.child;if(o.subtreeFlags&2064&&x!==null)x.return=o,q=x;else e:for(o=y;q!==null;){if(l=q,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:nd(9,l)}}catch(_){ze(l,l.return,_)}if(l===o){q=null;break e}var E=l.sibling;if(E!==null){E.return=l.return,q=E;break e}q=l.return}}if(se=i,fi(),Fn&&typeof Fn.onPostCommitFiberRoot=="function")try{Fn.onPostCommitFiberRoot(qf,e)}catch{}r=!0}return r}finally{pe=n,un.transition=t}}return!1}function mb(e,t,n){t=Ga(n,t),t=r$(e,t,1),e=Zr(e,t,1),t=Ot(),e!==null&&(Bs(e,1,t),Rt(e,t))}function ze(e,t,n){if(e.tag===3)mb(e,e,n);else for(;t!==null;){if(t.tag===3){mb(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Jr===null||!Jr.has(r))){e=Ga(n,e),e=i$(t,e,1),t=Zr(t,e,1),e=Ot(),t!==null&&(Bs(t,1,e),Rt(t,e));break}}t=t.return}}function EN(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ot(),e.pingedLanes|=e.suspendedLanes&n,it===e&&(ft&n)===n&&(Ze===4||Ze===3&&(ft&130023424)===ft&&500>We()-ly?Li(e,0):oy|=n),Rt(e,t)}function E$(e,t){t===0&&(e.mode&1?(t=wu,wu<<=1,!(wu&130023424)&&(wu=4194304)):t=1);var n=Ot();e=yr(e,t),e!==null&&(Bs(e,t,n),Rt(e,n))}function ON(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),E$(e,n)}function $N(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(W(314))}r!==null&&r.delete(t),E$(e,n)}var O$;O$=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Mt.current)Ct=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ct=!1,pN(e,t,n);Ct=!!(e.flags&131072)}else Ct=!1,Me&&t.flags&1048576&&TO(t,jc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;oc(e,t),e=t.pendingProps;var i=Ha(t,yt.current);Ra(t,n),i=ey(null,t,r,e,i,n);var a=ty();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,It(r)?(a=!0,$c(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Yg(t),i.updater=td,t.stateNode=i,i._reactInternals=t,xm(t,r,e,n),t=_m(null,t,r,!0,a,n)):(t.tag=0,Me&&a&&Ug(t),xt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(oc(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=jN(r),e=yn(r,e),i){case 0:t=wm(null,t,r,e,n);break e;case 1:t=ab(null,t,r,e,n);break e;case 11:t=rb(null,t,r,e,n);break e;case 14:t=ib(null,t,r,yn(r.type,e),n);break e}throw Error(W(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yn(r,i),wm(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yn(r,i),ab(e,t,r,i,n);case 3:e:{if(s$(t),e===null)throw Error(W(387));r=t.pendingProps,a=t.memoizedState,i=a.element,IO(e,t),Cc(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Ga(Error(W(423)),t),t=ob(e,t,r,n,i);break e}else if(r!==i){i=Ga(Error(W(424)),t),t=ob(e,t,r,n,i);break e}else for(zt=Qr(t.stateNode.containerInfo.firstChild),Ut=t,Me=!0,bn=null,n=NO(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Wa(),r===i){t=xr(e,t,n);break e}xt(e,t,r,n)}t=t.child}return t;case 5:return RO(t),e===null&&vm(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,fm(r,i)?o=null:a!==null&&fm(r,a)&&(t.flags|=32),l$(e,t),xt(e,t,o,n),t.child;case 6:return e===null&&vm(t),null;case 13:return u$(e,t,n);case 4:return Xg(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Va(t,null,r,n):xt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yn(r,i),rb(e,t,r,i,n);case 7:return xt(e,t,t.pendingProps,n),t.child;case 8:return xt(e,t,t.pendingProps.children,n),t.child;case 12:return xt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,_e(Tc,r._currentValue),r._currentValue=o,a!==null)if($n(a.value,o)){if(a.children===i.children&&!Mt.current){t=xr(e,t,n);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 s=l.firstContext;s!==null;){if(s.context===r){if(a.tag===1){s=ur(-1,n&-n),s.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),gm(a.return,n,t),l.lanes|=n;break}s=s.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(W(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),gm(o,n,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}xt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ra(t,n),i=cn(i),r=r(i),t.flags|=1,xt(e,t,r,n),t.child;case 14:return r=t.type,i=yn(r,t.pendingProps),i=yn(r.type,i),ib(e,t,r,i,n);case 15:return a$(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yn(r,i),oc(e,t),t.tag=1,It(r)?(e=!0,$c(t)):e=!1,Ra(t,n),n$(t,r,i),xm(t,r,i,n),_m(null,t,r,!0,e,n);case 19:return c$(e,t,n);case 22:return o$(e,t,n)}throw Error(W(156,t.tag))};function $$(e,t){return JE(e,t)}function PN(e,t,n,r){this.tag=e,this.key=n,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function an(e,t,n,r){return new PN(e,t,n,r)}function fy(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jN(e){if(typeof e=="function")return fy(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ag)return 11;if(e===Cg)return 14}return 2}function ti(e,t){var n=e.alternate;return n===null?(n=an(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function uc(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")fy(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case ga:return Di(n.children,i,a,t);case Tg:o=8,i|=8;break;case Hh:return e=an(12,n,t,i|2),e.elementType=Hh,e.lanes=a,e;case Wh:return e=an(13,n,t,i),e.elementType=Wh,e.lanes=a,e;case Vh:return e=an(19,n,t,i),e.elementType=Vh,e.lanes=a,e;case RE:return id(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ME:o=10;break e;case IE:o=9;break e;case Ag:o=11;break e;case Cg:o=14;break e;case Lr:o=16,r=null;break e}throw Error(W(130,e==null?e:typeof e,""))}return t=an(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Di(e,t,n,r){return e=an(7,e,r,t),e.lanes=n,e}function id(e,t,n,r){return e=an(22,e,r,t),e.elementType=RE,e.lanes=n,e.stateNode={isHidden:!1},e}function Gp(e,t,n){return e=an(6,e,null,t),e.lanes=n,e}function qp(e,t,n){return t=an(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function TN(e,t,n,r,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=jp(0),this.expirationTimes=jp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jp(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function dy(e,t,n,r,i,a,o,l,s){return e=new TN(e,t,n,l,s),t===1?(t=1,a===!0&&(t|=8)):t=0,a=an(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yg(a),e}function AN(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:va,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function P$(e){if(!e)return li;e=e._reactInternals;e:{if(na(e)!==e||e.tag!==1)throw Error(W(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(It(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(W(171))}if(e.tag===1){var n=e.type;if(It(n))return PO(e,n,t)}return t}function j$(e,t,n,r,i,a,o,l,s){return e=dy(n,r,!0,e,i,a,o,l,s),e.context=P$(null),n=e.current,r=Ot(),i=ei(n),a=ur(r,i),a.callback=t??null,Zr(n,a,i),e.current.lanes=i,Bs(e,i,r),Rt(e,r),e}function ad(e,t,n,r){var i=t.current,a=Ot(),o=ei(i);return n=P$(n),t.context===null?t.context=n:t.pendingContext=n,t=ur(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Zr(i,t,o),e!==null&&(Sn(e,i,o,a),rc(e,i,o)),o}function Fc(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 vb(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function py(e,t){vb(e,t),(e=e.alternate)&&vb(e,t)}function CN(){return null}var T$=typeof reportError=="function"?reportError:function(e){console.error(e)};function hy(e){this._internalRoot=e}od.prototype.render=hy.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(W(409));ad(e,t,null,null)};od.prototype.unmount=hy.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ki(function(){ad(null,e,null,null)}),t[gr]=null}};function od(e){this._internalRoot=e}od.prototype.unstable_scheduleHydration=function(e){if(e){var t=oO();e={blockedOn:null,target:e,priority:t};for(var n=0;n<zr.length&&t!==0&&t<zr[n].priority;n++);zr.splice(n,0,e),n===0&&sO(e)}};function my(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ld(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function gb(){}function kN(e,t,n,r,i){if(i){if(typeof r=="function"){var a=r;r=function(){var u=Fc(o);a.call(u)}}var o=j$(t,r,e,0,null,!1,!1,"",gb);return e._reactRootContainer=o,e[gr]=o.current,Vl(e.nodeType===8?e.parentNode:e),Ki(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=Fc(s);l.call(u)}}var s=dy(e,0,!1,null,null,!1,!1,"",gb);return e._reactRootContainer=s,e[gr]=s.current,Vl(e.nodeType===8?e.parentNode:e),Ki(function(){ad(t,s,n,r)}),s}function sd(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i=="function"){var l=i;i=function(){var s=Fc(o);l.call(s)}}ad(t,o,e,i)}else o=kN(n,t,e,i,r);return Fc(o)}iO=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=hl(t.pendingLanes);n!==0&&(Mg(t,n|1),Rt(t,We()),!(se&6)&&(qa=We()+500,fi()))}break;case 13:Ki(function(){var r=yr(e,1);if(r!==null){var i=Ot();Sn(r,e,1,i)}}),py(e,1)}};Ig=function(e){if(e.tag===13){var t=yr(e,134217728);if(t!==null){var n=Ot();Sn(t,e,134217728,n)}py(e,134217728)}};aO=function(e){if(e.tag===13){var t=ei(e),n=yr(e,t);if(n!==null){var r=Ot();Sn(n,e,t,r)}py(e,t)}};oO=function(){return pe};lO=function(e,t){var n=pe;try{return pe=e,t()}finally{pe=n}};tm=function(e,t,n){switch(t){case"input":if(qh(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Zf(r);if(!i)throw Error(W(90));DE(r),qh(r,i)}}}break;case"textarea":BE(e,n);break;case"select":t=n.value,t!=null&&ka(e,!!n.multiple,t,!1)}};GE=sy;qE=Ki;var NN={usingClientEntryPoint:!1,Events:[Us,wa,Zf,VE,KE,sy]},el={findFiberByHostInstance:Ti,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},MN={bundleType:el.bundleType,version:el.version,rendererPackageName:el.rendererPackageName,rendererConfig:el.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Tr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=QE(e),e===null?null:e.stateNode},findFiberByHostInstance:el.findFiberByHostInstance||CN,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 ku=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ku.isDisabled&&ku.supportsFiber)try{qf=ku.inject(MN),Fn=ku}catch{}}Kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=NN;Kt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!my(t))throw Error(W(200));return AN(e,t,null,n)};Kt.createRoot=function(e,t){if(!my(e))throw Error(W(299));var n=!1,r="",i=T$;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=dy(e,1,!1,null,null,n,!1,r,i),e[gr]=t.current,Vl(e.nodeType===8?e.parentNode:e),new hy(t)};Kt.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(W(188)):(e=Object.keys(e).join(","),Error(W(268,e)));return e=QE(t),e=e===null?null:e.stateNode,e};Kt.flushSync=function(e){return Ki(e)};Kt.hydrate=function(e,t,n){if(!ld(t))throw Error(W(200));return sd(null,e,t,!0,n)};Kt.hydrateRoot=function(e,t,n){if(!my(e))throw Error(W(405));var r=n!=null&&n.hydratedSources||null,i=!1,a="",o=T$;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=j$(t,null,e,1,n??null,i,!1,a,o),e[gr]=t.current,Vl(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new od(t)};Kt.render=function(e,t,n){if(!ld(t))throw Error(W(200));return sd(null,e,t,!1,n)};Kt.unmountComponentAtNode=function(e){if(!ld(e))throw Error(W(40));return e._reactRootContainer?(Ki(function(){sd(null,null,e,!1,function(){e._reactRootContainer=null,e[gr]=null})}),!0):!1};Kt.unstable_batchedUpdates=sy;Kt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ld(n))throw Error(W(200));if(e==null||e._reactInternals===void 0)throw Error(W(38));return sd(e,t,n,!1,r)};Kt.version="18.3.1-next-f1338f8080-20240426";function A$(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(A$)}catch(e){console.error(e)}}A$(),AE.exports=Kt;var Ht=AE.exports,yb=Ht;zh.createRoot=yb.createRoot,zh.hydrateRoot=yb.hydrateRoot;var vy={};Object.defineProperty(vy,"__esModule",{value:!0});vy.parse=zN;vy.serialize=UN;const IN=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,RN=/^[\u0021-\u003A\u003C-\u007E]*$/,LN=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,DN=/^[\u0020-\u003A\u003D-\u007E]*$/,FN=Object.prototype.toString,BN=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function zN(e,t){const n=new BN,r=e.length;if(r<2)return n;const i=(t==null?void 0:t.decode)||HN;let a=0;do{const o=e.indexOf("=",a);if(o===-1)break;const l=e.indexOf(";",a),s=l===-1?r:l;if(o>s){a=e.lastIndexOf(";",o-1)+1;continue}const u=xb(e,a,o),c=bb(e,o,u),f=e.slice(u,c);if(n[f]===void 0){let d=xb(e,o+1,s),p=bb(e,s,d);const h=i(e.slice(d,p));n[f]=h}a=s+1}while(a<r);return n}function xb(e,t,n){do{const r=e.charCodeAt(t);if(r!==32&&r!==9)return t}while(++t<n);return n}function bb(e,t,n){for(;t>n;){const r=e.charCodeAt(--t);if(r!==32&&r!==9)return t+1}return n}function UN(e,t,n){const r=(n==null?void 0:n.encode)||encodeURIComponent;if(!IN.test(e))throw new TypeError(`argument name is invalid: ${e}`);const i=r(t);if(!RN.test(i))throw new TypeError(`argument val is invalid: ${t}`);let a=e+"="+i;if(!n)return a;if(n.maxAge!==void 0){if(!Number.isInteger(n.maxAge))throw new TypeError(`option maxAge is invalid: ${n.maxAge}`);a+="; Max-Age="+n.maxAge}if(n.domain){if(!LN.test(n.domain))throw new TypeError(`option domain is invalid: ${n.domain}`);a+="; Domain="+n.domain}if(n.path){if(!DN.test(n.path))throw new TypeError(`option path is invalid: ${n.path}`);a+="; Path="+n.path}if(n.expires){if(!WN(n.expires)||!Number.isFinite(n.expires.valueOf()))throw new TypeError(`option expires is invalid: ${n.expires}`);a+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(a+="; HttpOnly"),n.secure&&(a+="; Secure"),n.partitioned&&(a+="; Partitioned"),n.priority)switch(typeof n.priority=="string"?n.priority.toLowerCase():void 0){case"low":a+="; Priority=Low";break;case"medium":a+="; Priority=Medium";break;case"high":a+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${n.priority}`)}if(n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:case"strict":a+="; SameSite=Strict";break;case"lax":a+="; SameSite=Lax";break;case"none":a+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${n.sameSite}`)}return a}function HN(e){if(e.indexOf("%")===-1)return e;try{return decodeURIComponent(e)}catch{return e}}function WN(e){return FN.call(e)==="[object Date]"}var wb="popstate";function VN(e={}){function t(i,a){let{pathname:o="/",search:l="",hash:s=""}=ra(i.location.hash.substring(1));return!o.startsWith("/")&&!o.startsWith(".")&&(o="/"+o),Mm("",{pathname:o,search:l,hash:s},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(i,a){let o=i.document.querySelector("base"),l="";if(o&&o.getAttribute("href")){let s=i.location.href,u=s.indexOf("#");l=u===-1?s:s.slice(0,u)}return l+"#"+(typeof a=="string"?a:es(a))}function r(i,a){Pn(i.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(a)})`)}return GN(t,n,r,e)}function Fe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Pn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function KN(){return Math.random().toString(36).substring(2,10)}function _b(e,t){return{usr:e.state,key:e.key,idx:t}}function Mm(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ra(t):t,state:n,key:t&&t.key||r||KN()}}function es({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ra(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function GN(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,l="POP",s=null,u=c();u==null&&(u=0,o.replaceState({...o.state,idx:u},""));function c(){return(o.state||{idx:null}).idx}function f(){l="POP";let b=c(),v=b==null?null:b-u;u=b,s&&s({action:l,location:m.location,delta:v})}function d(b,v){l="PUSH";let y=Mm(m.location,b,v);n&&n(y,b),u=c()+1;let x=_b(y,u),E=m.createHref(y);try{o.pushState(x,"",E)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;i.location.assign(E)}a&&s&&s({action:l,location:m.location,delta:1})}function p(b,v){l="REPLACE";let y=Mm(m.location,b,v);n&&n(y,b),u=c();let x=_b(y,u),E=m.createHref(y);o.replaceState(x,"",E),a&&s&&s({action:l,location:m.location,delta:0})}function h(b){let v=i.location.origin!=="null"?i.location.origin:i.location.href,y=typeof b=="string"?b:es(b);return y=y.replace(/ $/,"%20"),Fe(v,`No window.location.(origin|href) available to create URL for href: ${y}`),new URL(y,v)}let m={get action(){return l},get location(){return e(i,o)},listen(b){if(s)throw new Error("A history only accepts one active listener");return i.addEventListener(wb,f),s=b,()=>{i.removeEventListener(wb,f),s=null}},createHref(b){return t(i,b)},createURL:h,encodeLocation(b){let v=h(b);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:d,replace:p,go(b){return o.go(b)}};return m}function C$(e,t,n="/"){return qN(e,t,n,!1)}function qN(e,t,n,r){let i=typeof t=="string"?ra(t):t,a=br(i.pathname||"/",n);if(a==null)return null;let o=k$(e);YN(o);let l=null;for(let s=0;l==null&&s<o.length;++s){let u=oM(a);l=iM(o[s],u,r)}return l}function k$(e,t=[],n=[],r=""){let i=(a,o,l)=>{let s={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};s.relativePath.startsWith("/")&&(Fe(s.relativePath.startsWith(r),`Absolute route path "${s.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),s.relativePath=s.relativePath.slice(r.length));let u=cr([r,s.relativePath]),c=n.concat(s);a.children&&a.children.length>0&&(Fe(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),k$(a.children,t,c,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:nM(u,a.index),routesMeta:c})};return e.forEach((a,o)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))i(a,o);else for(let s of N$(a.path))i(a,o,s)}),t}function N$(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=N$(r.join("/")),l=[];return l.push(...o.map(s=>s===""?a:[a,s].join("/"))),i&&l.push(...o),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function YN(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:rM(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var XN=/^:[\w-]+$/,QN=3,ZN=2,JN=1,eM=10,tM=-2,Sb=e=>e==="*";function nM(e,t){let n=e.split("/"),r=n.length;return n.some(Sb)&&(r+=tM),t&&(r+=ZN),n.filter(i=>!Sb(i)).reduce((i,a)=>i+(XN.test(a)?QN:a===""?JN:eM),r)}function rM(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function iM(e,t,n=!1){let{routesMeta:r}=e,i={},a="/",o=[];for(let l=0;l<r.length;++l){let s=r[l],u=l===r.length-1,c=a==="/"?t:t.slice(a.length)||"/",f=Bc({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},c),d=s.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=Bc({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!f)return null;Object.assign(i,f.params),o.push({params:i,pathname:cr([a,f.pathname]),pathnameBase:cM(cr([a,f.pathnameBase])),route:d}),f.pathnameBase!=="/"&&(a=cr([a,f.pathnameBase]))}return o}function Bc(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=aM(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((u,{paramName:c,isOptional:f},d)=>{if(c==="*"){let h=l[d]||"";o=a.slice(0,a.length-h.length).replace(/(.)\/+$/,"$1")}const p=l[d];return f&&!p?u[c]=void 0:u[c]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:o,pattern:e}}function aM(e,t=!1,n=!0){Pn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function oM(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Pn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function br(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function lM(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ra(e):e;return{pathname:n?n.startsWith("/")?n:sM(n,t):t,search:fM(r),hash:dM(i)}}function sM(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Yp(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function uM(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function M$(e){let t=uM(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function I$(e,t,n,r=!1){let i;typeof e=="string"?i=ra(e):(i={...e},Fe(!i.pathname||!i.pathname.includes("?"),Yp("?","pathname","search",i)),Fe(!i.pathname||!i.pathname.includes("#"),Yp("#","pathname","hash",i)),Fe(!i.search||!i.search.includes("#"),Yp("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,l;if(o==null)l=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}l=f>=0?t[f]:"/"}let s=lM(i,l),u=o&&o!=="/"&&o.endsWith("/"),c=(a||o===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}var cr=e=>e.join("/").replace(/\/\/+/g,"/"),cM=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),fM=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,dM=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function pM(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var R$=["POST","PUT","PATCH","DELETE"];new Set(R$);var hM=["GET",...R$];new Set(hM);var Po=w.createContext(null);Po.displayName="DataRouter";var ud=w.createContext(null);ud.displayName="DataRouterState";var L$=w.createContext({isTransitioning:!1});L$.displayName="ViewTransition";var mM=w.createContext(new Map);mM.displayName="Fetchers";var vM=w.createContext(null);vM.displayName="Await";var Xn=w.createContext(null);Xn.displayName="Navigation";var Ws=w.createContext(null);Ws.displayName="Location";var Tn=w.createContext({outlet:null,matches:[],isDataRoute:!1});Tn.displayName="Route";var gy=w.createContext(null);gy.displayName="RouteError";function gM(e,{relative:t}={}){Fe(Vs(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=w.useContext(Xn),{hash:i,pathname:a,search:o}=Ks(e,{relative:t}),l=a;return n!=="/"&&(l=a==="/"?n:cr([n,a])),r.createHref({pathname:l,search:o,hash:i})}function Vs(){return w.useContext(Ws)!=null}function Ar(){return Fe(Vs(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(Ws).location}var D$="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function F$(e){w.useContext(Xn).static||w.useLayoutEffect(e)}function yM(){let{isDataRoute:e}=w.useContext(Tn);return e?MM():xM()}function xM(){Fe(Vs(),"useNavigate() may be used only in the context of a <Router> component.");let e=w.useContext(Po),{basename:t,navigator:n}=w.useContext(Xn),{matches:r}=w.useContext(Tn),{pathname:i}=Ar(),a=JSON.stringify(M$(r)),o=w.useRef(!1);return F$(()=>{o.current=!0}),w.useCallback((s,u={})=>{if(Pn(o.current,D$),!o.current)return;if(typeof s=="number"){n.go(s);return}let c=I$(s,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:cr([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,a,i,e])}var bM=w.createContext(null);function wM(e){let t=w.useContext(Tn).outlet;return t&&w.createElement(bM.Provider,{value:e},t)}function _M(){let{matches:e}=w.useContext(Tn),t=e[e.length-1];return t?t.params:{}}function Ks(e,{relative:t}={}){let{matches:n}=w.useContext(Tn),{pathname:r}=Ar(),i=JSON.stringify(M$(n));return w.useMemo(()=>I$(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function SM(e,t){return B$(e,t)}function B$(e,t,n,r){var y;Fe(Vs(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i,static:a}=w.useContext(Xn),{matches:o}=w.useContext(Tn),l=o[o.length-1],s=l?l.params:{},u=l?l.pathname:"/",c=l?l.pathnameBase:"/",f=l&&l.route;{let x=f&&f.path||"";z$(u,!f||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${x}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
52
+ `),o=r.stack.split(`
53
+ `),a=i.length-1,l=o.length-1;1<=a&&0<=l&&i[a]!==o[l];)l--;for(;1<=a&&0<=l;a--,l--)if(i[a]!==o[l]){if(a!==1||l!==1)do if(a--,l--,0>l||i[a]!==o[l]){var s=`
54
+ `+i[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}while(1<=a&&0<=l);break}}}finally{Op=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?dl(e):""}function BC(e){switch(e.tag){case 5:return dl(e.type);case 16:return dl("Lazy");case 13:return dl("Suspense");case 19:return dl("SuspenseList");case 0:case 2:case 15:return e=$p(e.type,!1),e;case 11:return e=$p(e.type.render,!1),e;case 1:return e=$p(e.type,!0),e;default:return""}}function Gh(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 yo:return"Fragment";case go:return"Portal";case Wh:return"Profiler";case Ag:return"StrictMode";case Vh:return"Suspense";case Kh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ME:return(e.displayName||"Context")+".Consumer";case NE:return(e._context.displayName||"Context")+".Provider";case Cg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case kg:return t=e.displayName||null,t!==null?t:Gh(e.type)||"Memo";case Lr:t=e._payload,e=e._init;try{return Gh(e(t))}catch{}}return null}function zC(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 Gh(t);case 8:return t===Ag?"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 ai(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function IE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function UC(e){var t=IE(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function yu(e){e._valueTracker||(e._valueTracker=UC(e))}function LE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=IE(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function vc(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 qh(e,t){var n=t.checked;return Be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function vx(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ai(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function DE(e,t){t=t.checked,t!=null&&Tg(e,"checked",t,!1)}function Xh(e,t){DE(e,t);var n=ai(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Yh(e,t.type,n):t.hasOwnProperty("defaultValue")&&Yh(e,t.type,ai(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function gx(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Yh(e,t,n){(t!=="number"||vc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var pl=Array.isArray;function No(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ai(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Qh(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(W(91));return Be({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function yx(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(W(92));if(pl(n)){if(1<n.length)throw Error(W(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ai(n)}}function FE(e,t){var n=ai(t.value),r=ai(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function xx(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function BE(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 Zh(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?BE(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var xu,zE=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(xu=xu||document.createElement("div"),xu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=xu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Dl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var bl={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},HC=["Webkit","ms","Moz","O"];Object.keys(bl).forEach(function(e){HC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),bl[t]=bl[e]})});function UE(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||bl.hasOwnProperty(e)&&bl[e]?(""+t).trim():t+"px"}function HE(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=UE(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var WC=Be({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 Jh(e,t){if(t){if(WC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(W(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(W(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(W(61))}if(t.style!=null&&typeof t.style!="object")throw Error(W(62))}}function em(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 tm=null;function Ng(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var nm=null,Mo=null,Ro=null;function bx(e){if(e=Us(e)){if(typeof nm!="function")throw Error(W(280));var t=e.stateNode;t&&(t=Zf(t),nm(e.stateNode,e.type,t))}}function WE(e){Mo?Ro?Ro.push(e):Ro=[e]:Mo=e}function VE(){if(Mo){var e=Mo,t=Ro;if(Ro=Mo=null,bx(e),t)for(e=0;e<t.length;e++)bx(t[e])}}function KE(e,t){return e(t)}function GE(){}var Pp=!1;function qE(e,t,n){if(Pp)return e(t,n);Pp=!0;try{return KE(e,t,n)}finally{Pp=!1,(Mo!==null||Ro!==null)&&(GE(),VE())}}function Fl(e,t){var n=e.stateNode;if(n===null)return null;var r=Zf(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(W(231,t,typeof n));return n}var rm=!1;if(vr)try{var qa={};Object.defineProperty(qa,"passive",{get:function(){rm=!0}}),window.addEventListener("test",qa,qa),window.removeEventListener("test",qa,qa)}catch{rm=!1}function VC(e,t,n,r,i,o,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var wl=!1,gc=null,yc=!1,im=null,KC={onError:function(e){wl=!0,gc=e}};function GC(e,t,n,r,i,o,a,l,s){wl=!1,gc=null,VC.apply(KC,arguments)}function qC(e,t,n,r,i,o,a,l,s){if(GC.apply(this,arguments),wl){if(wl){var u=gc;wl=!1,gc=null}else throw Error(W(198));yc||(yc=!0,im=u)}}function no(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function XE(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 wx(e){if(no(e)!==e)throw Error(W(188))}function XC(e){var t=e.alternate;if(!t){if(t=no(e),t===null)throw Error(W(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return wx(i),e;if(o===r)return wx(i),t;o=o.sibling}throw Error(W(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a){for(l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a)throw Error(W(189))}}if(n.alternate!==r)throw Error(W(190))}if(n.tag!==3)throw Error(W(188));return n.stateNode.current===n?e:t}function YE(e){return e=XC(e),e!==null?QE(e):null}function QE(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=QE(e);if(t!==null)return t;e=e.sibling}return null}var ZE=Wt.unstable_scheduleCallback,_x=Wt.unstable_cancelCallback,YC=Wt.unstable_shouldYield,QC=Wt.unstable_requestPaint,We=Wt.unstable_now,ZC=Wt.unstable_getCurrentPriorityLevel,Mg=Wt.unstable_ImmediatePriority,JE=Wt.unstable_UserBlockingPriority,xc=Wt.unstable_NormalPriority,JC=Wt.unstable_LowPriority,eO=Wt.unstable_IdlePriority,qf=null,Bn=null;function ek(e){if(Bn&&typeof Bn.onCommitFiberRoot=="function")try{Bn.onCommitFiberRoot(qf,e,void 0,(e.current.flags&128)===128)}catch{}}var En=Math.clz32?Math.clz32:rk,tk=Math.log,nk=Math.LN2;function rk(e){return e>>>=0,e===0?32:31-(tk(e)/nk|0)|0}var bu=64,wu=4194304;function hl(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 bc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var l=a&~i;l!==0?r=hl(l):(o&=a,o!==0&&(r=hl(o)))}else a=n&~i,a!==0?r=hl(a):o!==0&&(r=hl(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-En(t),i=1<<n,r|=e[n],t&=~i;return r}function ik(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 ok(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-En(o),l=1<<a,s=i[a];s===-1?(!(l&n)||l&r)&&(i[a]=ik(l,t)):s<=t&&(e.expiredLanes|=l),o&=~l}}function om(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function tO(){var e=bu;return bu<<=1,!(bu&4194240)&&(bu=64),e}function jp(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Bs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-En(t),e[t]=n}function ak(e,t){var n=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 r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-En(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Rg(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-En(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var pe=0;function nO(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var rO,Ig,iO,oO,aO,am=!1,_u=[],qr=null,Xr=null,Yr=null,Bl=new Map,zl=new Map,zr=[],lk="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 Sx(e,t){switch(e){case"focusin":case"focusout":qr=null;break;case"dragenter":case"dragleave":Xr=null;break;case"mouseover":case"mouseout":Yr=null;break;case"pointerover":case"pointerout":Bl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zl.delete(t.pointerId)}}function Xa(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Us(t),t!==null&&Ig(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function sk(e,t,n,r,i){switch(t){case"focusin":return qr=Xa(qr,e,t,n,r,i),!0;case"dragenter":return Xr=Xa(Xr,e,t,n,r,i),!0;case"mouseover":return Yr=Xa(Yr,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Bl.set(o,Xa(Bl.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,zl.set(o,Xa(zl.get(o)||null,e,t,n,r,i)),!0}return!1}function lO(e){var t=Ti(e.target);if(t!==null){var n=no(t);if(n!==null){if(t=n.tag,t===13){if(t=XE(n),t!==null){e.blockedOn=t,aO(e.priority,function(){iO(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ec(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=lm(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);tm=r,n.target.dispatchEvent(r),tm=null}else return t=Us(n),t!==null&&Ig(t),e.blockedOn=n,!1;t.shift()}return!0}function Ex(e,t,n){ec(e)&&n.delete(t)}function uk(){am=!1,qr!==null&&ec(qr)&&(qr=null),Xr!==null&&ec(Xr)&&(Xr=null),Yr!==null&&ec(Yr)&&(Yr=null),Bl.forEach(Ex),zl.forEach(Ex)}function Ya(e,t){e.blockedOn===t&&(e.blockedOn=null,am||(am=!0,Wt.unstable_scheduleCallback(Wt.unstable_NormalPriority,uk)))}function Ul(e){function t(i){return Ya(i,e)}if(0<_u.length){Ya(_u[0],e);for(var n=1;n<_u.length;n++){var r=_u[n];r.blockedOn===e&&(r.blockedOn=null)}}for(qr!==null&&Ya(qr,e),Xr!==null&&Ya(Xr,e),Yr!==null&&Ya(Yr,e),Bl.forEach(t),zl.forEach(t),n=0;n<zr.length;n++)r=zr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<zr.length&&(n=zr[0],n.blockedOn===null);)lO(n),n.blockedOn===null&&zr.shift()}var Io=Tr.ReactCurrentBatchConfig,wc=!0;function ck(e,t,n,r){var i=pe,o=Io.transition;Io.transition=null;try{pe=1,Lg(e,t,n,r)}finally{pe=i,Io.transition=o}}function fk(e,t,n,r){var i=pe,o=Io.transition;Io.transition=null;try{pe=4,Lg(e,t,n,r)}finally{pe=i,Io.transition=o}}function Lg(e,t,n,r){if(wc){var i=lm(e,t,n,r);if(i===null)Dp(e,t,r,_c,n),Sx(e,r);else if(sk(i,e,t,n,r))r.stopPropagation();else if(Sx(e,r),t&4&&-1<lk.indexOf(e)){for(;i!==null;){var o=Us(i);if(o!==null&&rO(o),o=lm(e,t,n,r),o===null&&Dp(e,t,r,_c,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Dp(e,t,r,null,n)}}var _c=null;function lm(e,t,n,r){if(_c=null,e=Ng(r),e=Ti(e),e!==null)if(t=no(e),t===null)e=null;else if(n=t.tag,n===13){if(e=XE(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return _c=e,null}function sO(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(ZC()){case Mg:return 1;case JE:return 4;case xc:case JC:return 16;case eO:return 536870912;default:return 16}default:return 16}}var Wr=null,Dg=null,tc=null;function uO(){if(tc)return tc;var e,t=Dg,n=t.length,r,i="value"in Wr?Wr.value:Wr.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return tc=i.slice(e,1<r?1-r:void 0)}function nc(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 Su(){return!0}function Ox(){return!1}function Gt(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Su:Ox,this.isPropagationStopped=Ox,this}return Be(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Su)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Su)},persist:function(){},isPersistent:Su}),t}var Oa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fg=Gt(Oa),zs=Be({},Oa,{view:0,detail:0}),dk=Gt(zs),Tp,Ap,Qa,Xf=Be({},zs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bg,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!==Qa&&(Qa&&e.type==="mousemove"?(Tp=e.screenX-Qa.screenX,Ap=e.screenY-Qa.screenY):Ap=Tp=0,Qa=e),Tp)},movementY:function(e){return"movementY"in e?e.movementY:Ap}}),$x=Gt(Xf),pk=Be({},Xf,{dataTransfer:0}),hk=Gt(pk),mk=Be({},zs,{relatedTarget:0}),Cp=Gt(mk),vk=Be({},Oa,{animationName:0,elapsedTime:0,pseudoElement:0}),gk=Gt(vk),yk=Be({},Oa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),xk=Gt(yk),bk=Be({},Oa,{data:0}),Px=Gt(bk),wk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_k={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"},Sk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ek(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Sk[e])?!!t[e]:!1}function Bg(){return Ek}var Ok=Be({},zs,{key:function(e){if(e.key){var t=wk[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=nc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?_k[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bg,charCode:function(e){return e.type==="keypress"?nc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?nc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$k=Gt(Ok),Pk=Be({},Xf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jx=Gt(Pk),jk=Be({},zs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bg}),Tk=Gt(jk),Ak=Be({},Oa,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ck=Gt(Ak),kk=Be({},Xf,{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}),Nk=Gt(kk),Mk=[9,13,27,32],zg=vr&&"CompositionEvent"in window,_l=null;vr&&"documentMode"in document&&(_l=document.documentMode);var Rk=vr&&"TextEvent"in window&&!_l,cO=vr&&(!zg||_l&&8<_l&&11>=_l),Tx=" ",Ax=!1;function fO(e,t){switch(e){case"keyup":return Mk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dO(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xo=!1;function Ik(e,t){switch(e){case"compositionend":return dO(t);case"keypress":return t.which!==32?null:(Ax=!0,Tx);case"textInput":return e=t.data,e===Tx&&Ax?null:e;default:return null}}function Lk(e,t){if(xo)return e==="compositionend"||!zg&&fO(e,t)?(e=uO(),tc=Dg=Wr=null,xo=!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 cO&&t.locale!=="ko"?null:t.data;default:return null}}var Dk={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 Cx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Dk[e.type]:t==="textarea"}function pO(e,t,n,r){WE(r),t=Sc(t,"onChange"),0<t.length&&(n=new Fg("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Sl=null,Hl=null;function Fk(e){EO(e,0)}function Yf(e){var t=_o(e);if(LE(t))return e}function Bk(e,t){if(e==="change")return t}var hO=!1;if(vr){var kp;if(vr){var Np="oninput"in document;if(!Np){var kx=document.createElement("div");kx.setAttribute("oninput","return;"),Np=typeof kx.oninput=="function"}kp=Np}else kp=!1;hO=kp&&(!document.documentMode||9<document.documentMode)}function Nx(){Sl&&(Sl.detachEvent("onpropertychange",mO),Hl=Sl=null)}function mO(e){if(e.propertyName==="value"&&Yf(Hl)){var t=[];pO(t,Hl,e,Ng(e)),qE(Fk,t)}}function zk(e,t,n){e==="focusin"?(Nx(),Sl=t,Hl=n,Sl.attachEvent("onpropertychange",mO)):e==="focusout"&&Nx()}function Uk(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Yf(Hl)}function Hk(e,t){if(e==="click")return Yf(t)}function Wk(e,t){if(e==="input"||e==="change")return Yf(t)}function Vk(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jn=typeof Object.is=="function"?Object.is:Vk;function Wl(e,t){if(jn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Hh.call(t,i)||!jn(e[i],t[i]))return!1}return!0}function Mx(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rx(e,t){var n=Mx(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Mx(n)}}function vO(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vO(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gO(){for(var e=window,t=vc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=vc(e.document)}return t}function Ug(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 Kk(e){var t=gO(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&vO(n.ownerDocument.documentElement,n)){if(r!==null&&Ug(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Rx(n,o);var a=Rx(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Gk=vr&&"documentMode"in document&&11>=document.documentMode,bo=null,sm=null,El=null,um=!1;function Ix(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;um||bo==null||bo!==vc(r)||(r=bo,"selectionStart"in r&&Ug(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),El&&Wl(El,r)||(El=r,r=Sc(sm,"onSelect"),0<r.length&&(t=new Fg("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=bo)))}function Eu(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wo={animationend:Eu("Animation","AnimationEnd"),animationiteration:Eu("Animation","AnimationIteration"),animationstart:Eu("Animation","AnimationStart"),transitionend:Eu("Transition","TransitionEnd")},Mp={},yO={};vr&&(yO=document.createElement("div").style,"AnimationEvent"in window||(delete wo.animationend.animation,delete wo.animationiteration.animation,delete wo.animationstart.animation),"TransitionEvent"in window||delete wo.transitionend.transition);function Qf(e){if(Mp[e])return Mp[e];if(!wo[e])return e;var t=wo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in yO)return Mp[e]=t[n];return e}var xO=Qf("animationend"),bO=Qf("animationiteration"),wO=Qf("animationstart"),_O=Qf("transitionend"),SO=new Map,Lx="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 ui(e,t){SO.set(e,t),to(t,[e])}for(var Rp=0;Rp<Lx.length;Rp++){var Ip=Lx[Rp],qk=Ip.toLowerCase(),Xk=Ip[0].toUpperCase()+Ip.slice(1);ui(qk,"on"+Xk)}ui(xO,"onAnimationEnd");ui(bO,"onAnimationIteration");ui(wO,"onAnimationStart");ui("dblclick","onDoubleClick");ui("focusin","onFocus");ui("focusout","onBlur");ui(_O,"onTransitionEnd");Ho("onMouseEnter",["mouseout","mouseover"]);Ho("onMouseLeave",["mouseout","mouseover"]);Ho("onPointerEnter",["pointerout","pointerover"]);Ho("onPointerLeave",["pointerout","pointerover"]);to("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));to("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));to("onBeforeInput",["compositionend","keypress","textInput","paste"]);to("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));to("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));to("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ml="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(" "),Yk=new Set("cancel close invalid load scroll toggle".split(" ").concat(ml));function Dx(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,qC(r,t,void 0,e),e.currentTarget=null}function EO(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==o&&i.isPropagationStopped())break e;Dx(i,l,u),o=s}else for(a=0;a<r.length;a++){if(l=r[a],s=l.instance,u=l.currentTarget,l=l.listener,s!==o&&i.isPropagationStopped())break e;Dx(i,l,u),o=s}}}if(yc)throw e=im,yc=!1,im=null,e}function $e(e,t){var n=t[hm];n===void 0&&(n=t[hm]=new Set);var r=e+"__bubble";n.has(r)||(OO(t,e,2,!1),n.add(r))}function Lp(e,t,n){var r=0;t&&(r|=4),OO(n,e,r,t)}var Ou="_reactListening"+Math.random().toString(36).slice(2);function Vl(e){if(!e[Ou]){e[Ou]=!0,kE.forEach(function(n){n!=="selectionchange"&&(Yk.has(n)||Lp(n,!1,e),Lp(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ou]||(t[Ou]=!0,Lp("selectionchange",!1,t))}}function OO(e,t,n,r){switch(sO(t)){case 1:var i=ck;break;case 4:i=fk;break;default:i=Lg}n=i.bind(null,t,n,e),i=void 0,!rm||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Dp(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var s=a.tag;if((s===3||s===4)&&(s=a.stateNode.containerInfo,s===i||s.nodeType===8&&s.parentNode===i))return;a=a.return}for(;l!==null;){if(a=Ti(l),a===null)return;if(s=a.tag,s===5||s===6){r=o=a;continue e}l=l.parentNode}}r=r.return}qE(function(){var u=o,c=Ng(n),f=[];e:{var d=SO.get(e);if(d!==void 0){var p=Fg,h=e;switch(e){case"keypress":if(nc(n)===0)break e;case"keydown":case"keyup":p=$k;break;case"focusin":h="focus",p=Cp;break;case"focusout":h="blur",p=Cp;break;case"beforeblur":case"afterblur":p=Cp;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=$x;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=hk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=Tk;break;case xO:case bO:case wO:p=gk;break;case _O:p=Ck;break;case"scroll":p=dk;break;case"wheel":p=Nk;break;case"copy":case"cut":case"paste":p=xk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=jx}var m=(t&4)!==0,w=!m&&e==="scroll",g=m?d!==null?d+"Capture":null:d;m=[];for(var y=u,x;y!==null;){x=y;var E=x.stateNode;if(x.tag===5&&E!==null&&(x=E,g!==null&&(E=Fl(y,g),E!=null&&m.push(Kl(y,E,x)))),w)break;y=y.return}0<m.length&&(d=new p(d,h,null,n,c),f.push({event:d,listeners:m}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",d&&n!==tm&&(h=n.relatedTarget||n.fromElement)&&(Ti(h)||h[gr]))break e;if((p||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,p?(h=n.relatedTarget||n.toElement,p=u,h=h?Ti(h):null,h!==null&&(w=no(h),h!==w||h.tag!==5&&h.tag!==6)&&(h=null)):(p=null,h=u),p!==h)){if(m=$x,E="onMouseLeave",g="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(m=jx,E="onPointerLeave",g="onPointerEnter",y="pointer"),w=p==null?d:_o(p),x=h==null?d:_o(h),d=new m(E,y+"leave",p,n,c),d.target=w,d.relatedTarget=x,E=null,Ti(c)===u&&(m=new m(g,y+"enter",h,n,c),m.target=x,m.relatedTarget=w,E=m),w=E,p&&h)t:{for(m=p,g=h,y=0,x=m;x;x=co(x))y++;for(x=0,E=g;E;E=co(E))x++;for(;0<y-x;)m=co(m),y--;for(;0<x-y;)g=co(g),x--;for(;y--;){if(m===g||g!==null&&m===g.alternate)break t;m=co(m),g=co(g)}m=null}else m=null;p!==null&&Fx(f,d,p,m,!1),h!==null&&w!==null&&Fx(f,w,h,m,!0)}}e:{if(d=u?_o(u):window,p=d.nodeName&&d.nodeName.toLowerCase(),p==="select"||p==="input"&&d.type==="file")var _=Bk;else if(Cx(d))if(hO)_=Wk;else{_=Uk;var S=zk}else(p=d.nodeName)&&p.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(_=Hk);if(_&&(_=_(e,u))){pO(f,_,n,c);break e}S&&S(e,d,u),e==="focusout"&&(S=d._wrapperState)&&S.controlled&&d.type==="number"&&Yh(d,"number",d.value)}switch(S=u?_o(u):window,e){case"focusin":(Cx(S)||S.contentEditable==="true")&&(bo=S,sm=u,El=null);break;case"focusout":El=sm=bo=null;break;case"mousedown":um=!0;break;case"contextmenu":case"mouseup":case"dragend":um=!1,Ix(f,n,c);break;case"selectionchange":if(Gk)break;case"keydown":case"keyup":Ix(f,n,c)}var O;if(zg)e:{switch(e){case"compositionstart":var $="onCompositionStart";break e;case"compositionend":$="onCompositionEnd";break e;case"compositionupdate":$="onCompositionUpdate";break e}$=void 0}else xo?fO(e,n)&&($="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&($="onCompositionStart");$&&(cO&&n.locale!=="ko"&&(xo||$!=="onCompositionStart"?$==="onCompositionEnd"&&xo&&(O=uO()):(Wr=c,Dg="value"in Wr?Wr.value:Wr.textContent,xo=!0)),S=Sc(u,$),0<S.length&&($=new Px($,e,null,n,c),f.push({event:$,listeners:S}),O?$.data=O:(O=dO(n),O!==null&&($.data=O)))),(O=Rk?Ik(e,n):Lk(e,n))&&(u=Sc(u,"onBeforeInput"),0<u.length&&(c=new Px("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=O))}EO(f,t)})}function Kl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Sc(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Fl(e,n),o!=null&&r.unshift(Kl(e,o,i)),o=Fl(e,t),o!=null&&r.push(Kl(e,o,i))),e=e.return}return r}function co(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Fx(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(s!==null&&s===r)break;l.tag===5&&u!==null&&(l=u,i?(s=Fl(n,o),s!=null&&a.unshift(Kl(n,s,l))):i||(s=Fl(n,o),s!=null&&a.push(Kl(n,s,l)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var Qk=/\r\n?/g,Zk=/\u0000|\uFFFD/g;function Bx(e){return(typeof e=="string"?e:""+e).replace(Qk,`
55
+ `).replace(Zk,"")}function $u(e,t,n){if(t=Bx(t),Bx(e)!==t&&n)throw Error(W(425))}function Ec(){}var cm=null,fm=null;function dm(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 pm=typeof setTimeout=="function"?setTimeout:void 0,Jk=typeof clearTimeout=="function"?clearTimeout:void 0,zx=typeof Promise=="function"?Promise:void 0,eN=typeof queueMicrotask=="function"?queueMicrotask:typeof zx<"u"?function(e){return zx.resolve(null).then(e).catch(tN)}:pm;function tN(e){setTimeout(function(){throw e})}function Fp(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Ul(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Ul(t)}function Qr(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 Ux(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var $a=Math.random().toString(36).slice(2),Dn="__reactFiber$"+$a,Gl="__reactProps$"+$a,gr="__reactContainer$"+$a,hm="__reactEvents$"+$a,nN="__reactListeners$"+$a,rN="__reactHandles$"+$a;function Ti(e){var t=e[Dn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[gr]||n[Dn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ux(e);e!==null;){if(n=e[Dn])return n;e=Ux(e)}return t}e=n,n=e.parentNode}return null}function Us(e){return e=e[Dn]||e[gr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function _o(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(W(33))}function Zf(e){return e[Gl]||null}var mm=[],So=-1;function ci(e){return{current:e}}function Ae(e){0>So||(e.current=mm[So],mm[So]=null,So--)}function _e(e,t){So++,mm[So]=e.current,e.current=t}var li={},yt=ci(li),Mt=ci(!1),Ui=li;function Wo(e,t){var n=e.type.contextTypes;if(!n)return li;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Rt(e){return e=e.childContextTypes,e!=null}function Oc(){Ae(Mt),Ae(yt)}function Hx(e,t,n){if(yt.current!==li)throw Error(W(168));_e(yt,t),_e(Mt,n)}function $O(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(W(108,zC(e)||"Unknown",i));return Be({},n,r)}function $c(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||li,Ui=yt.current,_e(yt,e),_e(Mt,Mt.current),!0}function Wx(e,t,n){var r=e.stateNode;if(!r)throw Error(W(169));n?(e=$O(e,t,Ui),r.__reactInternalMemoizedMergedChildContext=e,Ae(Mt),Ae(yt),_e(yt,e)):Ae(Mt),_e(Mt,n)}var rr=null,Jf=!1,Bp=!1;function PO(e){rr===null?rr=[e]:rr.push(e)}function iN(e){Jf=!0,PO(e)}function fi(){if(!Bp&&rr!==null){Bp=!0;var e=0,t=pe;try{var n=rr;for(pe=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}rr=null,Jf=!1}catch(i){throw rr!==null&&(rr=rr.slice(e+1)),ZE(Mg,fi),i}finally{pe=t,Bp=!1}}return null}var Eo=[],Oo=0,Pc=null,jc=0,en=[],tn=0,Hi=null,or=1,ar="";function _i(e,t){Eo[Oo++]=jc,Eo[Oo++]=Pc,Pc=e,jc=t}function jO(e,t,n){en[tn++]=or,en[tn++]=ar,en[tn++]=Hi,Hi=e;var r=or;e=ar;var i=32-En(r)-1;r&=~(1<<i),n+=1;var o=32-En(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,or=1<<32-En(t)+i|n<<i|r,ar=o+e}else or=1<<o|n<<i|r,ar=e}function Hg(e){e.return!==null&&(_i(e,1),jO(e,1,0))}function Wg(e){for(;e===Pc;)Pc=Eo[--Oo],Eo[Oo]=null,jc=Eo[--Oo],Eo[Oo]=null;for(;e===Hi;)Hi=en[--tn],en[tn]=null,ar=en[--tn],en[tn]=null,or=en[--tn],en[tn]=null}var Ut=null,zt=null,Me=!1,_n=null;function TO(e,t){var n=on(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Vx(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Ut=e,zt=Qr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ut=e,zt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Hi!==null?{id:or,overflow:ar}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=on(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ut=e,zt=null,!0):!1;default:return!1}}function vm(e){return(e.mode&1)!==0&&(e.flags&128)===0}function gm(e){if(Me){var t=zt;if(t){var n=t;if(!Vx(e,t)){if(vm(e))throw Error(W(418));t=Qr(n.nextSibling);var r=Ut;t&&Vx(e,t)?TO(r,n):(e.flags=e.flags&-4097|2,Me=!1,Ut=e)}}else{if(vm(e))throw Error(W(418));e.flags=e.flags&-4097|2,Me=!1,Ut=e}}}function Kx(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ut=e}function Pu(e){if(e!==Ut)return!1;if(!Me)return Kx(e),Me=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!dm(e.type,e.memoizedProps)),t&&(t=zt)){if(vm(e))throw AO(),Error(W(418));for(;t;)TO(e,t),t=Qr(t.nextSibling)}if(Kx(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(W(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){zt=Qr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}zt=null}}else zt=Ut?Qr(e.stateNode.nextSibling):null;return!0}function AO(){for(var e=zt;e;)e=Qr(e.nextSibling)}function Vo(){zt=Ut=null,Me=!1}function Vg(e){_n===null?_n=[e]:_n.push(e)}var oN=Tr.ReactCurrentBatchConfig;function Za(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(W(309));var r=n.stateNode}if(!r)throw Error(W(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(a){var l=i.refs;a===null?delete l[o]:l[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(W(284));if(!n._owner)throw Error(W(290,e))}return e}function ju(e,t){throw e=Object.prototype.toString.call(t),Error(W(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Gx(e){var t=e._init;return t(e._payload)}function CO(e){function t(g,y){if(e){var x=g.deletions;x===null?(g.deletions=[y],g.flags|=16):x.push(y)}}function n(g,y){if(!e)return null;for(;y!==null;)t(g,y),y=y.sibling;return null}function r(g,y){for(g=new Map;y!==null;)y.key!==null?g.set(y.key,y):g.set(y.index,y),y=y.sibling;return g}function i(g,y){return g=ti(g,y),g.index=0,g.sibling=null,g}function o(g,y,x){return g.index=x,e?(x=g.alternate,x!==null?(x=x.index,x<y?(g.flags|=2,y):x):(g.flags|=2,y)):(g.flags|=1048576,y)}function a(g){return e&&g.alternate===null&&(g.flags|=2),g}function l(g,y,x,E){return y===null||y.tag!==6?(y=Gp(x,g.mode,E),y.return=g,y):(y=i(y,x),y.return=g,y)}function s(g,y,x,E){var _=x.type;return _===yo?c(g,y,x.props.children,E,x.key):y!==null&&(y.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Lr&&Gx(_)===y.type)?(E=i(y,x.props),E.ref=Za(g,y,x),E.return=g,E):(E=uc(x.type,x.key,x.props,null,g.mode,E),E.ref=Za(g,y,x),E.return=g,E)}function u(g,y,x,E){return y===null||y.tag!==4||y.stateNode.containerInfo!==x.containerInfo||y.stateNode.implementation!==x.implementation?(y=qp(x,g.mode,E),y.return=g,y):(y=i(y,x.children||[]),y.return=g,y)}function c(g,y,x,E,_){return y===null||y.tag!==7?(y=Di(x,g.mode,E,_),y.return=g,y):(y=i(y,x),y.return=g,y)}function f(g,y,x){if(typeof y=="string"&&y!==""||typeof y=="number")return y=Gp(""+y,g.mode,x),y.return=g,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case gu:return x=uc(y.type,y.key,y.props,null,g.mode,x),x.ref=Za(g,null,y),x.return=g,x;case go:return y=qp(y,g.mode,x),y.return=g,y;case Lr:var E=y._init;return f(g,E(y._payload),x)}if(pl(y)||Ga(y))return y=Di(y,g.mode,x,null),y.return=g,y;ju(g,y)}return null}function d(g,y,x,E){var _=y!==null?y.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return _!==null?null:l(g,y,""+x,E);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case gu:return x.key===_?s(g,y,x,E):null;case go:return x.key===_?u(g,y,x,E):null;case Lr:return _=x._init,d(g,y,_(x._payload),E)}if(pl(x)||Ga(x))return _!==null?null:c(g,y,x,E,null);ju(g,x)}return null}function p(g,y,x,E,_){if(typeof E=="string"&&E!==""||typeof E=="number")return g=g.get(x)||null,l(y,g,""+E,_);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case gu:return g=g.get(E.key===null?x:E.key)||null,s(y,g,E,_);case go:return g=g.get(E.key===null?x:E.key)||null,u(y,g,E,_);case Lr:var S=E._init;return p(g,y,x,S(E._payload),_)}if(pl(E)||Ga(E))return g=g.get(x)||null,c(y,g,E,_,null);ju(y,E)}return null}function h(g,y,x,E){for(var _=null,S=null,O=y,$=y=0,T=null;O!==null&&$<x.length;$++){O.index>$?(T=O,O=null):T=O.sibling;var C=d(g,O,x[$],E);if(C===null){O===null&&(O=T);break}e&&O&&C.alternate===null&&t(g,O),y=o(C,y,$),S===null?_=C:S.sibling=C,S=C,O=T}if($===x.length)return n(g,O),Me&&_i(g,$),_;if(O===null){for(;$<x.length;$++)O=f(g,x[$],E),O!==null&&(y=o(O,y,$),S===null?_=O:S.sibling=O,S=O);return Me&&_i(g,$),_}for(O=r(g,O);$<x.length;$++)T=p(O,g,$,x[$],E),T!==null&&(e&&T.alternate!==null&&O.delete(T.key===null?$:T.key),y=o(T,y,$),S===null?_=T:S.sibling=T,S=T);return e&&O.forEach(function(A){return t(g,A)}),Me&&_i(g,$),_}function m(g,y,x,E){var _=Ga(x);if(typeof _!="function")throw Error(W(150));if(x=_.call(x),x==null)throw Error(W(151));for(var S=_=null,O=y,$=y=0,T=null,C=x.next();O!==null&&!C.done;$++,C=x.next()){O.index>$?(T=O,O=null):T=O.sibling;var A=d(g,O,C.value,E);if(A===null){O===null&&(O=T);break}e&&O&&A.alternate===null&&t(g,O),y=o(A,y,$),S===null?_=A:S.sibling=A,S=A,O=T}if(C.done)return n(g,O),Me&&_i(g,$),_;if(O===null){for(;!C.done;$++,C=x.next())C=f(g,C.value,E),C!==null&&(y=o(C,y,$),S===null?_=C:S.sibling=C,S=C);return Me&&_i(g,$),_}for(O=r(g,O);!C.done;$++,C=x.next())C=p(O,g,$,C.value,E),C!==null&&(e&&C.alternate!==null&&O.delete(C.key===null?$:C.key),y=o(C,y,$),S===null?_=C:S.sibling=C,S=C);return e&&O.forEach(function(N){return t(g,N)}),Me&&_i(g,$),_}function w(g,y,x,E){if(typeof x=="object"&&x!==null&&x.type===yo&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case gu:e:{for(var _=x.key,S=y;S!==null;){if(S.key===_){if(_=x.type,_===yo){if(S.tag===7){n(g,S.sibling),y=i(S,x.props.children),y.return=g,g=y;break e}}else if(S.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Lr&&Gx(_)===S.type){n(g,S.sibling),y=i(S,x.props),y.ref=Za(g,S,x),y.return=g,g=y;break e}n(g,S);break}else t(g,S);S=S.sibling}x.type===yo?(y=Di(x.props.children,g.mode,E,x.key),y.return=g,g=y):(E=uc(x.type,x.key,x.props,null,g.mode,E),E.ref=Za(g,y,x),E.return=g,g=E)}return a(g);case go:e:{for(S=x.key;y!==null;){if(y.key===S)if(y.tag===4&&y.stateNode.containerInfo===x.containerInfo&&y.stateNode.implementation===x.implementation){n(g,y.sibling),y=i(y,x.children||[]),y.return=g,g=y;break e}else{n(g,y);break}else t(g,y);y=y.sibling}y=qp(x,g.mode,E),y.return=g,g=y}return a(g);case Lr:return S=x._init,w(g,y,S(x._payload),E)}if(pl(x))return h(g,y,x,E);if(Ga(x))return m(g,y,x,E);ju(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,y!==null&&y.tag===6?(n(g,y.sibling),y=i(y,x),y.return=g,g=y):(n(g,y),y=Gp(x,g.mode,E),y.return=g,g=y),a(g)):n(g,y)}return w}var Ko=CO(!0),kO=CO(!1),Tc=ci(null),Ac=null,$o=null,Kg=null;function Gg(){Kg=$o=Ac=null}function qg(e){var t=Tc.current;Ae(Tc),e._currentValue=t}function ym(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Lo(e,t){Ac=e,Kg=$o=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ct=!0),e.firstContext=null)}function cn(e){var t=e._currentValue;if(Kg!==e)if(e={context:e,memoizedValue:t,next:null},$o===null){if(Ac===null)throw Error(W(308));$o=e,Ac.dependencies={lanes:0,firstContext:e}}else $o=$o.next=e;return t}var Ai=null;function Xg(e){Ai===null?Ai=[e]:Ai.push(e)}function NO(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Xg(t)):(n.next=i.next,i.next=n),t.interleaved=n,yr(e,r)}function yr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Dr=!1;function Yg(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function MO(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 ur(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,se&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,yr(e,n)}return i=r.interleaved,i===null?(t.next=t,Xg(r)):(t.next=i.next,i.next=t),r.interleaved=t,yr(e,n)}function rc(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rg(e,n)}}function qx(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Cc(e,t,n,r){var i=e.updateQueue;Dr=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var s=l,u=s.next;s.next=null,a===null?o=u:a.next=u,a=s;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==a&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(o!==null){var f=i.baseState;a=0,c=u=s=null,l=o;do{var d=l.lane,p=l.eventTime;if((r&d)===d){c!==null&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(d=t,p=n,m.tag){case 1:if(h=m.payload,typeof h=="function"){f=h.call(p,f,d);break e}f=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=m.payload,d=typeof h=="function"?h.call(p,f,d):h,d==null)break e;f=Be({},f,d);break e;case 2:Dr=!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},c===null?(u=c=p,s=f):c=c.next=p,a|=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(c===null&&(s=f),i.baseState=s,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Vi|=a,e.lanes=a,e.memoizedState=f}}function Xx(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(W(191,i));i.call(r)}}}var Hs={},zn=ci(Hs),ql=ci(Hs),Xl=ci(Hs);function Ci(e){if(e===Hs)throw Error(W(174));return e}function Qg(e,t){switch(_e(Xl,t),_e(ql,e),_e(zn,Hs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Zh(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Zh(t,e)}Ae(zn),_e(zn,t)}function Go(){Ae(zn),Ae(ql),Ae(Xl)}function RO(e){Ci(Xl.current);var t=Ci(zn.current),n=Zh(t,e.type);t!==n&&(_e(ql,e),_e(zn,n))}function Zg(e){ql.current===e&&(Ae(zn),Ae(ql))}var Le=ci(0);function kc(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.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 zp=[];function Jg(){for(var e=0;e<zp.length;e++)zp[e]._workInProgressVersionPrimary=null;zp.length=0}var ic=Tr.ReactCurrentDispatcher,Up=Tr.ReactCurrentBatchConfig,Wi=0,De=null,Ye=null,nt=null,Nc=!1,Ol=!1,Yl=0,aN=0;function pt(){throw Error(W(321))}function ey(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!jn(e[n],t[n]))return!1;return!0}function ty(e,t,n,r,i,o){if(Wi=o,De=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ic.current=e===null||e.memoizedState===null?cN:fN,e=n(r,i),Ol){o=0;do{if(Ol=!1,Yl=0,25<=o)throw Error(W(301));o+=1,nt=Ye=null,t.updateQueue=null,ic.current=dN,e=n(r,i)}while(Ol)}if(ic.current=Mc,t=Ye!==null&&Ye.next!==null,Wi=0,nt=Ye=De=null,Nc=!1,t)throw Error(W(300));return e}function ny(){var e=Yl!==0;return Yl=0,e}function Ln(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nt===null?De.memoizedState=nt=e:nt=nt.next=e,nt}function fn(){if(Ye===null){var e=De.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var t=nt===null?De.memoizedState:nt.next;if(t!==null)nt=t,Ye=e;else{if(e===null)throw Error(W(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},nt===null?De.memoizedState=nt=e:nt=nt.next=e}return nt}function Ql(e,t){return typeof t=="function"?t(e):t}function Hp(e){var t=fn(),n=t.queue;if(n===null)throw Error(W(311));n.lastRenderedReducer=e;var r=Ye,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var l=a=null,s=null,u=o;do{var c=u.lane;if((Wi&c)===c)s!==null&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};s===null?(l=s=f,a=r):s=s.next=f,De.lanes|=c,Vi|=c}u=u.next}while(u!==null&&u!==o);s===null?a=r:s.next=l,jn(r,t.memoizedState)||(Ct=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,De.lanes|=o,Vi|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Wp(e){var t=fn(),n=t.queue;if(n===null)throw Error(W(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);jn(o,t.memoizedState)||(Ct=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function IO(){}function LO(e,t){var n=De,r=fn(),i=t(),o=!jn(r.memoizedState,i);if(o&&(r.memoizedState=i,Ct=!0),r=r.queue,ry(BO.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||nt!==null&&nt.memoizedState.tag&1){if(n.flags|=2048,Zl(9,FO.bind(null,n,r,i,t),void 0,null),it===null)throw Error(W(349));Wi&30||DO(n,t,i)}return i}function DO(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=De.updateQueue,t===null?(t={lastEffect:null,stores:null},De.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function FO(e,t,n,r){t.value=n,t.getSnapshot=r,zO(t)&&UO(e)}function BO(e,t,n){return n(function(){zO(t)&&UO(e)})}function zO(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!jn(e,n)}catch{return!0}}function UO(e){var t=yr(e,1);t!==null&&On(t,e,1,-1)}function Yx(e){var t=Ln();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ql,lastRenderedState:e},t.queue=e,e=e.dispatch=uN.bind(null,De,e),[t.memoizedState,e]}function Zl(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=De.updateQueue,t===null?(t={lastEffect:null,stores:null},De.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function HO(){return fn().memoizedState}function oc(e,t,n,r){var i=Ln();De.flags|=e,i.memoizedState=Zl(1|t,n,void 0,r===void 0?null:r)}function ed(e,t,n,r){var i=fn();r=r===void 0?null:r;var o=void 0;if(Ye!==null){var a=Ye.memoizedState;if(o=a.destroy,r!==null&&ey(r,a.deps)){i.memoizedState=Zl(t,n,o,r);return}}De.flags|=e,i.memoizedState=Zl(1|t,n,o,r)}function Qx(e,t){return oc(8390656,8,e,t)}function ry(e,t){return ed(2048,8,e,t)}function WO(e,t){return ed(4,2,e,t)}function VO(e,t){return ed(4,4,e,t)}function KO(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 GO(e,t,n){return n=n!=null?n.concat([e]):null,ed(4,4,KO.bind(null,t,e),n)}function iy(){}function qO(e,t){var n=fn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ey(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function XO(e,t){var n=fn();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ey(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function YO(e,t,n){return Wi&21?(jn(n,t)||(n=tO(),De.lanes|=n,Vi|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ct=!0),e.memoizedState=n)}function lN(e,t){var n=pe;pe=n!==0&&4>n?n:4,e(!0);var r=Up.transition;Up.transition={};try{e(!1),t()}finally{pe=n,Up.transition=r}}function QO(){return fn().memoizedState}function sN(e,t,n){var r=ei(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ZO(e))JO(t,n);else if(n=NO(e,t,n,r),n!==null){var i=Ot();On(n,e,r,i),e$(n,t,r)}}function uN(e,t,n){var r=ei(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ZO(e))JO(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,l=o(a,n);if(i.hasEagerState=!0,i.eagerState=l,jn(l,a)){var s=t.interleaved;s===null?(i.next=i,Xg(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=NO(e,t,i,r),n!==null&&(i=Ot(),On(n,e,r,i),e$(n,t,r))}}function ZO(e){var t=e.alternate;return e===De||t!==null&&t===De}function JO(e,t){Ol=Nc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function e$(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Rg(e,n)}}var Mc={readContext:cn,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useInsertionEffect:pt,useLayoutEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useMutableSource:pt,useSyncExternalStore:pt,useId:pt,unstable_isNewReconciler:!1},cN={readContext:cn,useCallback:function(e,t){return Ln().memoizedState=[e,t===void 0?null:t],e},useContext:cn,useEffect:Qx,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,oc(4194308,4,KO.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oc(4194308,4,e,t)},useInsertionEffect:function(e,t){return oc(4,2,e,t)},useMemo:function(e,t){var n=Ln();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ln();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=sN.bind(null,De,e),[r.memoizedState,e]},useRef:function(e){var t=Ln();return e={current:e},t.memoizedState=e},useState:Yx,useDebugValue:iy,useDeferredValue:function(e){return Ln().memoizedState=e},useTransition:function(){var e=Yx(!1),t=e[0];return e=lN.bind(null,e[1]),Ln().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=De,i=Ln();if(Me){if(n===void 0)throw Error(W(407));n=n()}else{if(n=t(),it===null)throw Error(W(349));Wi&30||DO(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Qx(BO.bind(null,r,o,e),[e]),r.flags|=2048,Zl(9,FO.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ln(),t=it.identifierPrefix;if(Me){var n=ar,r=or;n=(r&~(1<<32-En(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Yl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=aN++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},fN={readContext:cn,useCallback:qO,useContext:cn,useEffect:ry,useImperativeHandle:GO,useInsertionEffect:WO,useLayoutEffect:VO,useMemo:XO,useReducer:Hp,useRef:HO,useState:function(){return Hp(Ql)},useDebugValue:iy,useDeferredValue:function(e){var t=fn();return YO(t,Ye.memoizedState,e)},useTransition:function(){var e=Hp(Ql)[0],t=fn().memoizedState;return[e,t]},useMutableSource:IO,useSyncExternalStore:LO,useId:QO,unstable_isNewReconciler:!1},dN={readContext:cn,useCallback:qO,useContext:cn,useEffect:ry,useImperativeHandle:GO,useInsertionEffect:WO,useLayoutEffect:VO,useMemo:XO,useReducer:Wp,useRef:HO,useState:function(){return Wp(Ql)},useDebugValue:iy,useDeferredValue:function(e){var t=fn();return Ye===null?t.memoizedState=e:YO(t,Ye.memoizedState,e)},useTransition:function(){var e=Wp(Ql)[0],t=fn().memoizedState;return[e,t]},useMutableSource:IO,useSyncExternalStore:LO,useId:QO,unstable_isNewReconciler:!1};function bn(e,t){if(e&&e.defaultProps){t=Be({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function xm(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Be({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var td={isMounted:function(e){return(e=e._reactInternals)?no(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ot(),i=ei(e),o=ur(r,i);o.payload=t,n!=null&&(o.callback=n),t=Zr(e,o,i),t!==null&&(On(t,e,i,r),rc(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ot(),i=ei(e),o=ur(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Zr(e,o,i),t!==null&&(On(t,e,i,r),rc(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ot(),r=ei(e),i=ur(n,r);i.tag=2,t!=null&&(i.callback=t),t=Zr(e,i,r),t!==null&&(On(t,e,r,n),rc(t,e,r))}};function Zx(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!Wl(n,r)||!Wl(i,o):!0}function t$(e,t,n){var r=!1,i=li,o=t.contextType;return typeof o=="object"&&o!==null?o=cn(o):(i=Rt(t)?Ui:yt.current,r=t.contextTypes,o=(r=r!=null)?Wo(e,i):li),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=td,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Jx(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&td.enqueueReplaceState(t,t.state,null)}function bm(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Yg(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=cn(o):(o=Rt(t)?Ui:yt.current,i.context=Wo(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(xm(e,t,o,n),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&&td.enqueueReplaceState(i,i.state,null),Cc(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function qo(e,t){try{var n="",r=t;do n+=BC(r),r=r.return;while(r);var i=n}catch(o){i=`
56
+ Error generating stack: `+o.message+`
57
+ `+o.stack}return{value:e,source:t,stack:i,digest:null}}function Vp(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function wm(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var pN=typeof WeakMap=="function"?WeakMap:Map;function n$(e,t,n){n=ur(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ic||(Ic=!0,Cm=r),wm(e,t)},n}function r$(e,t,n){n=ur(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){wm(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){wm(e,t),typeof r!="function"&&(Jr===null?Jr=new Set([this]):Jr.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function eb(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new pN;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=PN.bind(null,e,t,n),t.then(e,e))}function tb(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 nb(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=ur(-1,1),t.tag=2,Zr(n,t,1))),n.lanes|=1),e)}var hN=Tr.ReactCurrentOwner,Ct=!1;function xt(e,t,n,r){t.child=e===null?kO(t,null,n,r):Ko(t,e.child,n,r)}function rb(e,t,n,r,i){n=n.render;var o=t.ref;return Lo(t,i),r=ty(e,t,n,r,o,i),n=ny(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,xr(e,t,i)):(Me&&n&&Hg(t),t.flags|=1,xt(e,t,r,i),t.child)}function ib(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!dy(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,i$(e,t,o,r,i)):(e=uc(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:Wl,n(a,r)&&e.ref===t.ref)return xr(e,t,i)}return t.flags|=1,e=ti(o,r),e.ref=t.ref,e.return=t,t.child=e}function i$(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Wl(o,r)&&e.ref===t.ref)if(Ct=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Ct=!0);else return t.lanes=e.lanes,xr(e,t,i)}return _m(e,t,n,r,i)}function o$(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_e(jo,Ft),Ft|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_e(jo,Ft),Ft|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,_e(jo,Ft),Ft|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,_e(jo,Ft),Ft|=r;return xt(e,t,i,n),t.child}function a$(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function _m(e,t,n,r,i){var o=Rt(n)?Ui:yt.current;return o=Wo(t,o),Lo(t,i),n=ty(e,t,n,r,o,i),r=ny(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,xr(e,t,i)):(Me&&r&&Hg(t),t.flags|=1,xt(e,t,n,i),t.child)}function ob(e,t,n,r,i){if(Rt(n)){var o=!0;$c(t)}else o=!1;if(Lo(t,i),t.stateNode===null)ac(e,t),t$(t,n,r),bm(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=cn(u):(u=Rt(n)?Ui:yt.current,u=Wo(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==r||s!==u)&&Jx(t,a,r,u),Dr=!1;var d=t.memoizedState;a.state=d,Cc(t,r,a,i),s=t.memoizedState,l!==r||d!==s||Mt.current||Dr?(typeof c=="function"&&(xm(t,n,c,r),s=t.memoizedState),(l=Dr||Zx(t,n,l,r,d,s,u))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,MO(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:bn(t.type,l),a.props=u,f=t.pendingProps,d=a.context,s=n.contextType,typeof s=="object"&&s!==null?s=cn(s):(s=Rt(n)?Ui:yt.current,s=Wo(t,s));var p=n.getDerivedStateFromProps;(c=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(l!==f||d!==s)&&Jx(t,a,r,s),Dr=!1,d=t.memoizedState,a.state=d,Cc(t,r,a,i);var h=t.memoizedState;l!==f||d!==h||Mt.current||Dr?(typeof p=="function"&&(xm(t,n,p,r),h=t.memoizedState),(u=Dr||Zx(t,n,u,r,d,h,s)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,h,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,h,s)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=s,r=u):(typeof a.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Sm(e,t,n,r,o,i)}function Sm(e,t,n,r,i,o){a$(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&Wx(t,n,!1),xr(e,t,o);r=t.stateNode,hN.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Ko(t,e.child,null,o),t.child=Ko(t,null,l,o)):xt(e,t,l,o),t.memoizedState=r.state,i&&Wx(t,n,!0),t.child}function l$(e){var t=e.stateNode;t.pendingContext?Hx(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Hx(e,t.context,!1),Qg(e,t.containerInfo)}function ab(e,t,n,r,i){return Vo(),Vg(i),t.flags|=256,xt(e,t,n,r),t.child}var Em={dehydrated:null,treeContext:null,retryLane:0};function Om(e){return{baseLanes:e,cachePool:null,transitions:null}}function s$(e,t,n){var r=t.pendingProps,i=Le.current,o=!1,a=(t.flags&128)!==0,l;if((l=a)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),_e(Le,i&1),e===null)return gm(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):(a=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=id(a,r,0,null),e=Di(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Om(n),t.memoizedState=Em,e):oy(t,a));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return mN(e,t,a,r,l,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,l=i.sibling;var s={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=s,t.deletions=null):(r=ti(i,s),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=ti(l,o):(o=Di(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?Om(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=Em,r}return o=e.child,e=o.sibling,r=ti(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function oy(e,t){return t=id({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Tu(e,t,n,r){return r!==null&&Vg(r),Ko(t,e.child,null,n),e=oy(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function mN(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=Vp(Error(W(422))),Tu(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=id({mode:"visible",children:r.children},i,0,null),o=Di(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Ko(t,e.child,null,a),t.child.memoizedState=Om(a),t.memoizedState=Em,o);if(!(t.mode&1))return Tu(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(W(419)),r=Vp(o,r,void 0),Tu(e,t,a,r)}if(l=(a&e.childLanes)!==0,Ct||l){if(r=it,r!==null){switch(a&-a){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&(r.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,yr(e,i),On(r,e,i,-1))}return fy(),r=Vp(Error(W(421))),Tu(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=jN.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,zt=Qr(i.nextSibling),Ut=t,Me=!0,_n=null,e!==null&&(en[tn++]=or,en[tn++]=ar,en[tn++]=Hi,or=e.id,ar=e.overflow,Hi=t),t=oy(t,r.children),t.flags|=4096,t)}function lb(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ym(e.return,t,n)}function Kp(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function u$(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(xt(e,t,r.children,n),r=Le.current,r&2)r=r&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&&lb(e,n,t);else if(e.tag===19)lb(e,n,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}r&=1}if(_e(Le,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&kc(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Kp(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&kc(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Kp(t,!0,n,null,o);break;case"together":Kp(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ac(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function xr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Vi|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(W(153));if(t.child!==null){for(e=t.child,n=ti(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ti(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function vN(e,t,n){switch(t.tag){case 3:l$(t),Vo();break;case 5:RO(t);break;case 1:Rt(t.type)&&$c(t);break;case 4:Qg(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;_e(Tc,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(_e(Le,Le.current&1),t.flags|=128,null):n&t.child.childLanes?s$(e,t,n):(_e(Le,Le.current&1),e=xr(e,t,n),e!==null?e.sibling:null);_e(Le,Le.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return u$(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),_e(Le,Le.current),r)break;return null;case 22:case 23:return t.lanes=0,o$(e,t,n)}return xr(e,t,n)}var c$,$m,f$,d$;c$=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};$m=function(){};f$=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ci(zn.current);var o=null;switch(n){case"input":i=qh(e,i),r=qh(e,r),o=[];break;case"select":i=Be({},i,{value:void 0}),r=Be({},r,{value:void 0}),o=[];break;case"textarea":i=Qh(e,i),r=Qh(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ec)}Jh(n,r);var a;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ll.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var s=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&s!==l&&(s!=null||l!=null))if(u==="style")if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(o||(o=[]),o.push(u,n)),n=s;else u==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(o=o||[]).push(u,s)):u==="children"?typeof s!="string"&&typeof s!="number"||(o=o||[]).push(u,""+s):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ll.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&$e("scroll",e),o||l===s||(o=[])):(o=o||[]).push(u,s))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};d$=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ja(e,t){if(!Me)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ht(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function gN(e,t,n){var r=t.pendingProps;switch(Wg(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(t),null;case 1:return Rt(t.type)&&Oc(),ht(t),null;case 3:return r=t.stateNode,Go(),Ae(Mt),Ae(yt),Jg(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Pu(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,_n!==null&&(Mm(_n),_n=null))),$m(e,t),ht(t),null;case 5:Zg(t);var i=Ci(Xl.current);if(n=t.type,e!==null&&t.stateNode!=null)f$(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(W(166));return ht(t),null}if(e=Ci(zn.current),Pu(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Dn]=t,r[Gl]=o,e=(t.mode&1)!==0,n){case"dialog":$e("cancel",r),$e("close",r);break;case"iframe":case"object":case"embed":$e("load",r);break;case"video":case"audio":for(i=0;i<ml.length;i++)$e(ml[i],r);break;case"source":$e("error",r);break;case"img":case"image":case"link":$e("error",r),$e("load",r);break;case"details":$e("toggle",r);break;case"input":vx(r,o),$e("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},$e("invalid",r);break;case"textarea":yx(r,o),$e("invalid",r)}Jh(n,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var l=o[a];a==="children"?typeof l=="string"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&$u(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&$u(r.textContent,l,e),i=["children",""+l]):Ll.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&$e("scroll",r)}switch(n){case"input":yu(r),gx(r,o,!0);break;case"textarea":yu(r),xx(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Ec)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=BE(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Dn]=t,e[Gl]=r,c$(e,t,!1,!1),t.stateNode=e;e:{switch(a=em(n,r),n){case"dialog":$e("cancel",e),$e("close",e),i=r;break;case"iframe":case"object":case"embed":$e("load",e),i=r;break;case"video":case"audio":for(i=0;i<ml.length;i++)$e(ml[i],e);i=r;break;case"source":$e("error",e),i=r;break;case"img":case"image":case"link":$e("error",e),$e("load",e),i=r;break;case"details":$e("toggle",e),i=r;break;case"input":vx(e,r),i=qh(e,r),$e("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Be({},r,{value:void 0}),$e("invalid",e);break;case"textarea":yx(e,r),i=Qh(e,r),$e("invalid",e);break;default:i=r}Jh(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var s=l[o];o==="style"?HE(e,s):o==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&zE(e,s)):o==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&Dl(e,s):typeof s=="number"&&Dl(e,""+s):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Ll.hasOwnProperty(o)?s!=null&&o==="onScroll"&&$e("scroll",e):s!=null&&Tg(e,o,s,a))}switch(n){case"input":yu(e),gx(e,r,!1);break;case"textarea":yu(e),xx(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ai(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?No(e,!!r.multiple,o,!1):r.defaultValue!=null&&No(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Ec)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ht(t),null;case 6:if(e&&t.stateNode!=null)d$(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(W(166));if(n=Ci(Xl.current),Ci(zn.current),Pu(t)){if(r=t.stateNode,n=t.memoizedProps,r[Dn]=t,(o=r.nodeValue!==n)&&(e=Ut,e!==null))switch(e.tag){case 3:$u(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&$u(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Dn]=t,t.stateNode=r}return ht(t),null;case 13:if(Ae(Le),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Me&&zt!==null&&t.mode&1&&!(t.flags&128))AO(),Vo(),t.flags|=98560,o=!1;else if(o=Pu(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(W(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(W(317));o[Dn]=t}else Vo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ht(t),o=!1}else _n!==null&&(Mm(_n),_n=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||Le.current&1?Ze===0&&(Ze=3):fy())),t.updateQueue!==null&&(t.flags|=4),ht(t),null);case 4:return Go(),$m(e,t),e===null&&Vl(t.stateNode.containerInfo),ht(t),null;case 10:return qg(t.type._context),ht(t),null;case 17:return Rt(t.type)&&Oc(),ht(t),null;case 19:if(Ae(Le),o=t.memoizedState,o===null)return ht(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)Ja(o,!1);else{if(Ze!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=kc(e),a!==null){for(t.flags|=128,Ja(o,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return _e(Le,Le.current&1|2),t.child}e=e.sibling}o.tail!==null&&We()>Xo&&(t.flags|=128,r=!0,Ja(o,!1),t.lanes=4194304)}else{if(!r)if(e=kc(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ja(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Me)return ht(t),null}else 2*We()-o.renderingStartTime>Xo&&n!==1073741824&&(t.flags|=128,r=!0,Ja(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=We(),t.sibling=null,n=Le.current,_e(Le,r?n&1|2:n&1),t):(ht(t),null);case 22:case 23:return cy(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ft&1073741824&&(ht(t),t.subtreeFlags&6&&(t.flags|=8192)):ht(t),null;case 24:return null;case 25:return null}throw Error(W(156,t.tag))}function yN(e,t){switch(Wg(t),t.tag){case 1:return Rt(t.type)&&Oc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Go(),Ae(Mt),Ae(yt),Jg(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Zg(t),null;case 13:if(Ae(Le),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(W(340));Vo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ae(Le),null;case 4:return Go(),null;case 10:return qg(t.type._context),null;case 22:case 23:return cy(),null;case 24:return null;default:return null}}var Au=!1,mt=!1,xN=typeof WeakSet=="function"?WeakSet:Set,q=null;function Po(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ze(e,t,r)}else n.current=null}function Pm(e,t,n){try{n()}catch(r){ze(e,t,r)}}var sb=!1;function bN(e,t){if(cm=wc,e=gO(),Ug(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,l=-1,s=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var p;f!==n||i!==0&&f.nodeType!==3||(l=a+i),f!==o||r!==0&&f.nodeType!==3||(s=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(p=f.firstChild)!==null;)d=f,f=p;for(;;){if(f===e)break t;if(d===n&&++u===i&&(l=a),d===o&&++c===r&&(s=a),(p=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=p}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(fm={focusedElem:e,selectionRange:n},wc=!1,q=t;q!==null;)if(t=q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,q=e;else for(;q!==null;){t=q;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var m=h.memoizedProps,w=h.memoizedState,g=t.stateNode,y=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:bn(t.type,m),w);g.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(W(163))}}catch(E){ze(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return h=sb,sb=!1,h}function $l(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Pm(t,n,o)}i=i.next}while(i!==r)}}function nd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function jm(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function p$(e){var t=e.alternate;t!==null&&(e.alternate=null,p$(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Dn],delete t[Gl],delete t[hm],delete t[nN],delete t[rN])),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 h$(e){return e.tag===5||e.tag===3||e.tag===4}function ub(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||h$(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 Tm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ec));else if(r!==4&&(e=e.child,e!==null))for(Tm(e,t,n),e=e.sibling;e!==null;)Tm(e,t,n),e=e.sibling}function Am(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Am(e,t,n),e=e.sibling;e!==null;)Am(e,t,n),e=e.sibling}var st=null,wn=!1;function Ir(e,t,n){for(n=n.child;n!==null;)m$(e,t,n),n=n.sibling}function m$(e,t,n){if(Bn&&typeof Bn.onCommitFiberUnmount=="function")try{Bn.onCommitFiberUnmount(qf,n)}catch{}switch(n.tag){case 5:mt||Po(n,t);case 6:var r=st,i=wn;st=null,Ir(e,t,n),st=r,wn=i,st!==null&&(wn?(e=st,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):st.removeChild(n.stateNode));break;case 18:st!==null&&(wn?(e=st,n=n.stateNode,e.nodeType===8?Fp(e.parentNode,n):e.nodeType===1&&Fp(e,n),Ul(e)):Fp(st,n.stateNode));break;case 4:r=st,i=wn,st=n.stateNode.containerInfo,wn=!0,Ir(e,t,n),st=r,wn=i;break;case 0:case 11:case 14:case 15:if(!mt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&Pm(n,t,a),i=i.next}while(i!==r)}Ir(e,t,n);break;case 1:if(!mt&&(Po(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ze(n,t,l)}Ir(e,t,n);break;case 21:Ir(e,t,n);break;case 22:n.mode&1?(mt=(r=mt)||n.memoizedState!==null,Ir(e,t,n),mt=r):Ir(e,t,n);break;default:Ir(e,t,n)}}function cb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new xN),t.forEach(function(r){var i=TN.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function yn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,l=a;e:for(;l!==null;){switch(l.tag){case 5:st=l.stateNode,wn=!1;break e;case 3:st=l.stateNode.containerInfo,wn=!0;break e;case 4:st=l.stateNode.containerInfo,wn=!0;break e}l=l.return}if(st===null)throw Error(W(160));m$(o,a,i),st=null,wn=!1;var s=i.alternate;s!==null&&(s.return=null),i.return=null}catch(u){ze(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)v$(t,e),t=t.sibling}function v$(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(yn(t,e),Rn(e),r&4){try{$l(3,e,e.return),nd(3,e)}catch(m){ze(e,e.return,m)}try{$l(5,e,e.return)}catch(m){ze(e,e.return,m)}}break;case 1:yn(t,e),Rn(e),r&512&&n!==null&&Po(n,n.return);break;case 5:if(yn(t,e),Rn(e),r&512&&n!==null&&Po(n,n.return),e.flags&32){var i=e.stateNode;try{Dl(i,"")}catch(m){ze(e,e.return,m)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,l=e.type,s=e.updateQueue;if(e.updateQueue=null,s!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&DE(i,o),em(l,a);var u=em(l,o);for(a=0;a<s.length;a+=2){var c=s[a],f=s[a+1];c==="style"?HE(i,f):c==="dangerouslySetInnerHTML"?zE(i,f):c==="children"?Dl(i,f):Tg(i,c,f,u)}switch(l){case"input":Xh(i,o);break;case"textarea":FE(i,o);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?No(i,!!o.multiple,p,!1):d!==!!o.multiple&&(o.defaultValue!=null?No(i,!!o.multiple,o.defaultValue,!0):No(i,!!o.multiple,o.multiple?[]:"",!1))}i[Gl]=o}catch(m){ze(e,e.return,m)}}break;case 6:if(yn(t,e),Rn(e),r&4){if(e.stateNode===null)throw Error(W(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(m){ze(e,e.return,m)}}break;case 3:if(yn(t,e),Rn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ul(t.containerInfo)}catch(m){ze(e,e.return,m)}break;case 4:yn(t,e),Rn(e);break;case 13:yn(t,e),Rn(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(sy=We())),r&4&&cb(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(mt=(u=mt)||c,yn(t,e),mt=u):yn(t,e),Rn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for(q=e,c=e.child;c!==null;){for(f=q=c;q!==null;){switch(d=q,p=d.child,d.tag){case 0:case 11:case 14:case 15:$l(4,d,d.return);break;case 1:Po(d,d.return);var h=d.stateNode;if(typeof h.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(m){ze(r,n,m)}}break;case 5:Po(d,d.return);break;case 22:if(d.memoizedState!==null){db(f);continue}}p!==null?(p.return=d,q=p):db(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=f.stateNode,s=f.memoizedProps.style,a=s!=null&&s.hasOwnProperty("display")?s.display:null,l.style.display=UE("display",a))}catch(m){ze(e,e.return,m)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(m){ze(e,e.return,m)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:yn(t,e),Rn(e),r&4&&cb(e);break;case 21:break;default:yn(t,e),Rn(e)}}function Rn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(h$(n)){var r=n;break e}n=n.return}throw Error(W(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Dl(i,""),r.flags&=-33);var o=ub(e);Am(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,l=ub(e);Tm(e,l,a);break;default:throw Error(W(161))}}catch(s){ze(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function wN(e,t,n){q=e,g$(e)}function g$(e,t,n){for(var r=(e.mode&1)!==0;q!==null;){var i=q,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||Au;if(!a){var l=i.alternate,s=l!==null&&l.memoizedState!==null||mt;l=Au;var u=mt;if(Au=a,(mt=s)&&!u)for(q=i;q!==null;)a=q,s=a.child,a.tag===22&&a.memoizedState!==null?pb(i):s!==null?(s.return=a,q=s):pb(i);for(;o!==null;)q=o,g$(o),o=o.sibling;q=i,Au=l,mt=u}fb(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,q=o):fb(e)}}function fb(e){for(;q!==null;){var t=q;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:mt||nd(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!mt)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:bn(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Xx(t,o,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Xx(t,a,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Ul(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(W(163))}mt||t.flags&512&&jm(t)}catch(d){ze(t,t.return,d)}}if(t===e){q=null;break}if(n=t.sibling,n!==null){n.return=t.return,q=n;break}q=t.return}}function db(e){for(;q!==null;){var t=q;if(t===e){q=null;break}var n=t.sibling;if(n!==null){n.return=t.return,q=n;break}q=t.return}}function pb(e){for(;q!==null;){var t=q;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{nd(4,t)}catch(s){ze(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(s){ze(t,i,s)}}var o=t.return;try{jm(t)}catch(s){ze(t,o,s)}break;case 5:var a=t.return;try{jm(t)}catch(s){ze(t,a,s)}}}catch(s){ze(t,t.return,s)}if(t===e){q=null;break}var l=t.sibling;if(l!==null){l.return=t.return,q=l;break}q=t.return}}var _N=Math.ceil,Rc=Tr.ReactCurrentDispatcher,ay=Tr.ReactCurrentOwner,un=Tr.ReactCurrentBatchConfig,se=0,it=null,Ke=null,ft=0,Ft=0,jo=ci(0),Ze=0,Jl=null,Vi=0,rd=0,ly=0,Pl=null,At=null,sy=0,Xo=1/0,er=null,Ic=!1,Cm=null,Jr=null,Cu=!1,Vr=null,Lc=0,jl=0,km=null,lc=-1,sc=0;function Ot(){return se&6?We():lc!==-1?lc:lc=We()}function ei(e){return e.mode&1?se&2&&ft!==0?ft&-ft:oN.transition!==null?(sc===0&&(sc=tO()),sc):(e=pe,e!==0||(e=window.event,e=e===void 0?16:sO(e.type)),e):1}function On(e,t,n,r){if(50<jl)throw jl=0,km=null,Error(W(185));Bs(e,n,r),(!(se&2)||e!==it)&&(e===it&&(!(se&2)&&(rd|=n),Ze===4&&Ur(e,ft)),It(e,r),n===1&&se===0&&!(t.mode&1)&&(Xo=We()+500,Jf&&fi()))}function It(e,t){var n=e.callbackNode;ok(e,t);var r=bc(e,e===it?ft:0);if(r===0)n!==null&&_x(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&_x(n),t===1)e.tag===0?iN(hb.bind(null,e)):PO(hb.bind(null,e)),eN(function(){!(se&6)&&fi()}),n=null;else{switch(nO(r)){case 1:n=Mg;break;case 4:n=JE;break;case 16:n=xc;break;case 536870912:n=eO;break;default:n=xc}n=O$(n,y$.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function y$(e,t){if(lc=-1,sc=0,se&6)throw Error(W(327));var n=e.callbackNode;if(Do()&&e.callbackNode!==n)return null;var r=bc(e,e===it?ft:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Dc(e,r);else{t=r;var i=se;se|=2;var o=b$();(it!==e||ft!==t)&&(er=null,Xo=We()+500,Li(e,t));do try{ON();break}catch(l){x$(e,l)}while(!0);Gg(),Rc.current=o,se=i,Ke!==null?t=0:(it=null,ft=0,t=Ze)}if(t!==0){if(t===2&&(i=om(e),i!==0&&(r=i,t=Nm(e,i))),t===1)throw n=Jl,Li(e,0),Ur(e,r),It(e,We()),n;if(t===6)Ur(e,r);else{if(i=e.current.alternate,!(r&30)&&!SN(i)&&(t=Dc(e,r),t===2&&(o=om(e),o!==0&&(r=o,t=Nm(e,o))),t===1))throw n=Jl,Li(e,0),Ur(e,r),It(e,We()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(W(345));case 2:Si(e,At,er);break;case 3:if(Ur(e,r),(r&130023424)===r&&(t=sy+500-We(),10<t)){if(bc(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ot(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=pm(Si.bind(null,e,At,er),t);break}Si(e,At,er);break;case 4:if(Ur(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-En(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=We()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_N(r/1960))-r,10<r){e.timeoutHandle=pm(Si.bind(null,e,At,er),r);break}Si(e,At,er);break;case 5:Si(e,At,er);break;default:throw Error(W(329))}}}return It(e,We()),e.callbackNode===n?y$.bind(null,e):null}function Nm(e,t){var n=Pl;return e.current.memoizedState.isDehydrated&&(Li(e,t).flags|=256),e=Dc(e,t),e!==2&&(t=At,At=n,t!==null&&Mm(t)),e}function Mm(e){At===null?At=e:At.push.apply(At,e)}function SN(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!jn(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 Ur(e,t){for(t&=~ly,t&=~rd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-En(t),r=1<<n;e[n]=-1,t&=~r}}function hb(e){if(se&6)throw Error(W(327));Do();var t=bc(e,0);if(!(t&1))return It(e,We()),null;var n=Dc(e,t);if(e.tag!==0&&n===2){var r=om(e);r!==0&&(t=r,n=Nm(e,r))}if(n===1)throw n=Jl,Li(e,0),Ur(e,t),It(e,We()),n;if(n===6)throw Error(W(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Si(e,At,er),It(e,We()),null}function uy(e,t){var n=se;se|=1;try{return e(t)}finally{se=n,se===0&&(Xo=We()+500,Jf&&fi())}}function Ki(e){Vr!==null&&Vr.tag===0&&!(se&6)&&Do();var t=se;se|=1;var n=un.transition,r=pe;try{if(un.transition=null,pe=1,e)return e()}finally{pe=r,un.transition=n,se=t,!(se&6)&&fi()}}function cy(){Ft=jo.current,Ae(jo)}function Li(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Jk(n)),Ke!==null)for(n=Ke.return;n!==null;){var r=n;switch(Wg(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Oc();break;case 3:Go(),Ae(Mt),Ae(yt),Jg();break;case 5:Zg(r);break;case 4:Go();break;case 13:Ae(Le);break;case 19:Ae(Le);break;case 10:qg(r.type._context);break;case 22:case 23:cy()}n=n.return}if(it=e,Ke=e=ti(e.current,null),ft=Ft=t,Ze=0,Jl=null,ly=rd=Vi=0,At=Pl=null,Ai!==null){for(t=0;t<Ai.length;t++)if(n=Ai[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var a=o.next;o.next=i,r.next=a}n.pending=r}Ai=null}return e}function x$(e,t){do{var n=Ke;try{if(Gg(),ic.current=Mc,Nc){for(var r=De.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Nc=!1}if(Wi=0,nt=Ye=De=null,Ol=!1,Yl=0,ay.current=null,n===null||n.return===null){Ze=1,Jl=t,Ke=null;break}e:{var o=e,a=n.return,l=n,s=t;if(t=ft,l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){var u=s,c=l,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var d=c.alternate;d?(c.updateQueue=d.updateQueue,c.memoizedState=d.memoizedState,c.lanes=d.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=tb(a);if(p!==null){p.flags&=-257,nb(p,a,l,o,t),p.mode&1&&eb(o,u,t),t=p,s=u;var h=t.updateQueue;if(h===null){var m=new Set;m.add(s),t.updateQueue=m}else h.add(s);break e}else{if(!(t&1)){eb(o,u,t),fy();break e}s=Error(W(426))}}else if(Me&&l.mode&1){var w=tb(a);if(w!==null){!(w.flags&65536)&&(w.flags|=256),nb(w,a,l,o,t),Vg(qo(s,l));break e}}o=s=qo(s,l),Ze!==4&&(Ze=2),Pl===null?Pl=[o]:Pl.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var g=n$(o,s,t);qx(o,g);break e;case 1:l=s;var y=o.type,x=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Jr===null||!Jr.has(x)))){o.flags|=65536,t&=-t,o.lanes|=t;var E=r$(o,l,t);qx(o,E);break e}}o=o.return}while(o!==null)}_$(n)}catch(_){t=_,Ke===n&&n!==null&&(Ke=n=n.return);continue}break}while(!0)}function b$(){var e=Rc.current;return Rc.current=Mc,e===null?Mc:e}function fy(){(Ze===0||Ze===3||Ze===2)&&(Ze=4),it===null||!(Vi&268435455)&&!(rd&268435455)||Ur(it,ft)}function Dc(e,t){var n=se;se|=2;var r=b$();(it!==e||ft!==t)&&(er=null,Li(e,t));do try{EN();break}catch(i){x$(e,i)}while(!0);if(Gg(),se=n,Rc.current=r,Ke!==null)throw Error(W(261));return it=null,ft=0,Ze}function EN(){for(;Ke!==null;)w$(Ke)}function ON(){for(;Ke!==null&&!YC();)w$(Ke)}function w$(e){var t=E$(e.alternate,e,Ft);e.memoizedProps=e.pendingProps,t===null?_$(e):Ke=t,ay.current=null}function _$(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=yN(n,t),n!==null){n.flags&=32767,Ke=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ze=6,Ke=null;return}}else if(n=gN(n,t,Ft),n!==null){Ke=n;return}if(t=t.sibling,t!==null){Ke=t;return}Ke=t=e}while(t!==null);Ze===0&&(Ze=5)}function Si(e,t,n){var r=pe,i=un.transition;try{un.transition=null,pe=1,$N(e,t,n,r)}finally{un.transition=i,pe=r}return null}function $N(e,t,n,r){do Do();while(Vr!==null);if(se&6)throw Error(W(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(W(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(ak(e,o),e===it&&(Ke=it=null,ft=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Cu||(Cu=!0,O$(xc,function(){return Do(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=un.transition,un.transition=null;var a=pe;pe=1;var l=se;se|=4,ay.current=null,bN(e,n),v$(n,e),Kk(fm),wc=!!cm,fm=cm=null,e.current=n,wN(n),QC(),se=l,pe=a,un.transition=o}else e.current=n;if(Cu&&(Cu=!1,Vr=e,Lc=i),o=e.pendingLanes,o===0&&(Jr=null),ek(n.stateNode),It(e,We()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Ic)throw Ic=!1,e=Cm,Cm=null,e;return Lc&1&&e.tag!==0&&Do(),o=e.pendingLanes,o&1?e===km?jl++:(jl=0,km=e):jl=0,fi(),null}function Do(){if(Vr!==null){var e=nO(Lc),t=un.transition,n=pe;try{if(un.transition=null,pe=16>e?16:e,Vr===null)var r=!1;else{if(e=Vr,Vr=null,Lc=0,se&6)throw Error(W(331));var i=se;for(se|=4,q=e.current;q!==null;){var o=q,a=o.child;if(q.flags&16){var l=o.deletions;if(l!==null){for(var s=0;s<l.length;s++){var u=l[s];for(q=u;q!==null;){var c=q;switch(c.tag){case 0:case 11:case 15:$l(8,c,o)}var f=c.child;if(f!==null)f.return=c,q=f;else for(;q!==null;){c=q;var d=c.sibling,p=c.return;if(p$(c),c===u){q=null;break}if(d!==null){d.return=p,q=d;break}q=p}}}var h=o.alternate;if(h!==null){var m=h.child;if(m!==null){h.child=null;do{var w=m.sibling;m.sibling=null,m=w}while(m!==null)}}q=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,q=a;else e:for(;q!==null;){if(o=q,o.flags&2048)switch(o.tag){case 0:case 11:case 15:$l(9,o,o.return)}var g=o.sibling;if(g!==null){g.return=o.return,q=g;break e}q=o.return}}var y=e.current;for(q=y;q!==null;){a=q;var x=a.child;if(a.subtreeFlags&2064&&x!==null)x.return=a,q=x;else e:for(a=y;q!==null;){if(l=q,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:nd(9,l)}}catch(_){ze(l,l.return,_)}if(l===a){q=null;break e}var E=l.sibling;if(E!==null){E.return=l.return,q=E;break e}q=l.return}}if(se=i,fi(),Bn&&typeof Bn.onPostCommitFiberRoot=="function")try{Bn.onPostCommitFiberRoot(qf,e)}catch{}r=!0}return r}finally{pe=n,un.transition=t}}return!1}function mb(e,t,n){t=qo(n,t),t=n$(e,t,1),e=Zr(e,t,1),t=Ot(),e!==null&&(Bs(e,1,t),It(e,t))}function ze(e,t,n){if(e.tag===3)mb(e,e,n);else for(;t!==null;){if(t.tag===3){mb(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Jr===null||!Jr.has(r))){e=qo(n,e),e=r$(t,e,1),t=Zr(t,e,1),e=Ot(),t!==null&&(Bs(t,1,e),It(t,e));break}}t=t.return}}function PN(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ot(),e.pingedLanes|=e.suspendedLanes&n,it===e&&(ft&n)===n&&(Ze===4||Ze===3&&(ft&130023424)===ft&&500>We()-sy?Li(e,0):ly|=n),It(e,t)}function S$(e,t){t===0&&(e.mode&1?(t=wu,wu<<=1,!(wu&130023424)&&(wu=4194304)):t=1);var n=Ot();e=yr(e,t),e!==null&&(Bs(e,t,n),It(e,n))}function jN(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),S$(e,n)}function TN(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(W(314))}r!==null&&r.delete(t),S$(e,n)}var E$;E$=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Mt.current)Ct=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ct=!1,vN(e,t,n);Ct=!!(e.flags&131072)}else Ct=!1,Me&&t.flags&1048576&&jO(t,jc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ac(e,t),e=t.pendingProps;var i=Wo(t,yt.current);Lo(t,n),i=ty(null,t,r,e,i,n);var o=ny();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,Rt(r)?(o=!0,$c(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Yg(t),i.updater=td,t.stateNode=i,i._reactInternals=t,bm(t,r,e,n),t=Sm(null,t,r,!0,o,n)):(t.tag=0,Me&&o&&Hg(t),xt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ac(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=CN(r),e=bn(r,e),i){case 0:t=_m(null,t,r,e,n);break e;case 1:t=ob(null,t,r,e,n);break e;case 11:t=rb(null,t,r,e,n);break e;case 14:t=ib(null,t,r,bn(r.type,e),n);break e}throw Error(W(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:bn(r,i),_m(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:bn(r,i),ob(e,t,r,i,n);case 3:e:{if(l$(t),e===null)throw Error(W(387));r=t.pendingProps,o=t.memoizedState,i=o.element,MO(e,t),Cc(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=qo(Error(W(423)),t),t=ab(e,t,r,n,i);break e}else if(r!==i){i=qo(Error(W(424)),t),t=ab(e,t,r,n,i);break e}else for(zt=Qr(t.stateNode.containerInfo.firstChild),Ut=t,Me=!0,_n=null,n=kO(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vo(),r===i){t=xr(e,t,n);break e}xt(e,t,r,n)}t=t.child}return t;case 5:return RO(t),e===null&&gm(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,dm(r,i)?a=null:o!==null&&dm(r,o)&&(t.flags|=32),a$(e,t),xt(e,t,a,n),t.child;case 6:return e===null&&gm(t),null;case 13:return s$(e,t,n);case 4:return Qg(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ko(t,null,r,n):xt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:bn(r,i),rb(e,t,r,i,n);case 7:return xt(e,t,t.pendingProps,n),t.child;case 8:return xt(e,t,t.pendingProps.children,n),t.child;case 12:return xt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,_e(Tc,r._currentValue),r._currentValue=a,o!==null)if(jn(o.value,a)){if(o.children===i.children&&!Mt.current){t=xr(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){a=o.child;for(var s=l.firstContext;s!==null;){if(s.context===r){if(o.tag===1){s=ur(-1,n&-n),s.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),ym(o.return,n,t),l.lanes|=n;break}s=s.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(W(341));a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),ym(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}xt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Lo(t,n),i=cn(i),r=r(i),t.flags|=1,xt(e,t,r,n),t.child;case 14:return r=t.type,i=bn(r,t.pendingProps),i=bn(r.type,i),ib(e,t,r,i,n);case 15:return i$(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:bn(r,i),ac(e,t),t.tag=1,Rt(r)?(e=!0,$c(t)):e=!1,Lo(t,n),t$(t,r,i),bm(t,r,i,n),Sm(null,t,r,!0,e,n);case 19:return u$(e,t,n);case 22:return o$(e,t,n)}throw Error(W(156,t.tag))};function O$(e,t){return ZE(e,t)}function AN(e,t,n,r){this.tag=e,this.key=n,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function on(e,t,n,r){return new AN(e,t,n,r)}function dy(e){return e=e.prototype,!(!e||!e.isReactComponent)}function CN(e){if(typeof e=="function")return dy(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Cg)return 11;if(e===kg)return 14}return 2}function ti(e,t){var n=e.alternate;return n===null?(n=on(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function uc(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")dy(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case yo:return Di(n.children,i,o,t);case Ag:a=8,i|=8;break;case Wh:return e=on(12,n,t,i|2),e.elementType=Wh,e.lanes=o,e;case Vh:return e=on(13,n,t,i),e.elementType=Vh,e.lanes=o,e;case Kh:return e=on(19,n,t,i),e.elementType=Kh,e.lanes=o,e;case RE:return id(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case NE:a=10;break e;case ME:a=9;break e;case Cg:a=11;break e;case kg:a=14;break e;case Lr:a=16,r=null;break e}throw Error(W(130,e==null?e:typeof e,""))}return t=on(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Di(e,t,n,r){return e=on(7,e,r,t),e.lanes=n,e}function id(e,t,n,r){return e=on(22,e,r,t),e.elementType=RE,e.lanes=n,e.stateNode={isHidden:!1},e}function Gp(e,t,n){return e=on(6,e,null,t),e.lanes=n,e}function qp(e,t,n){return t=on(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function kN(e,t,n,r,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=jp(0),this.expirationTimes=jp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jp(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function py(e,t,n,r,i,o,a,l,s){return e=new kN(e,t,n,l,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=on(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yg(o),e}function NN(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:go,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function $$(e){if(!e)return li;e=e._reactInternals;e:{if(no(e)!==e||e.tag!==1)throw Error(W(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Rt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(W(171))}if(e.tag===1){var n=e.type;if(Rt(n))return $O(e,n,t)}return t}function P$(e,t,n,r,i,o,a,l,s){return e=py(n,r,!0,e,i,o,a,l,s),e.context=$$(null),n=e.current,r=Ot(),i=ei(n),o=ur(r,i),o.callback=t??null,Zr(n,o,i),e.current.lanes=i,Bs(e,i,r),It(e,r),e}function od(e,t,n,r){var i=t.current,o=Ot(),a=ei(i);return n=$$(n),t.context===null?t.context=n:t.pendingContext=n,t=ur(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Zr(i,t,a),e!==null&&(On(e,i,a,o),rc(e,i,a)),a}function Fc(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 vb(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function hy(e,t){vb(e,t),(e=e.alternate)&&vb(e,t)}function MN(){return null}var j$=typeof reportError=="function"?reportError:function(e){console.error(e)};function my(e){this._internalRoot=e}ad.prototype.render=my.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(W(409));od(e,t,null,null)};ad.prototype.unmount=my.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ki(function(){od(null,e,null,null)}),t[gr]=null}};function ad(e){this._internalRoot=e}ad.prototype.unstable_scheduleHydration=function(e){if(e){var t=oO();e={blockedOn:null,target:e,priority:t};for(var n=0;n<zr.length&&t!==0&&t<zr[n].priority;n++);zr.splice(n,0,e),n===0&&lO(e)}};function vy(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ld(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function gb(){}function RN(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=Fc(a);o.call(u)}}var a=P$(t,r,e,0,null,!1,!1,"",gb);return e._reactRootContainer=a,e[gr]=a.current,Vl(e.nodeType===8?e.parentNode:e),Ki(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=Fc(s);l.call(u)}}var s=py(e,0,!1,null,null,!1,!1,"",gb);return e._reactRootContainer=s,e[gr]=s.current,Vl(e.nodeType===8?e.parentNode:e),Ki(function(){od(t,s,n,r)}),s}function sd(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var l=i;i=function(){var s=Fc(a);l.call(s)}}od(t,a,e,i)}else a=RN(n,t,e,i,r);return Fc(a)}rO=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=hl(t.pendingLanes);n!==0&&(Rg(t,n|1),It(t,We()),!(se&6)&&(Xo=We()+500,fi()))}break;case 13:Ki(function(){var r=yr(e,1);if(r!==null){var i=Ot();On(r,e,1,i)}}),hy(e,1)}};Ig=function(e){if(e.tag===13){var t=yr(e,134217728);if(t!==null){var n=Ot();On(t,e,134217728,n)}hy(e,134217728)}};iO=function(e){if(e.tag===13){var t=ei(e),n=yr(e,t);if(n!==null){var r=Ot();On(n,e,t,r)}hy(e,t)}};oO=function(){return pe};aO=function(e,t){var n=pe;try{return pe=e,t()}finally{pe=n}};nm=function(e,t,n){switch(t){case"input":if(Xh(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Zf(r);if(!i)throw Error(W(90));LE(r),Xh(r,i)}}}break;case"textarea":FE(e,n);break;case"select":t=n.value,t!=null&&No(e,!!n.multiple,t,!1)}};KE=uy;GE=Ki;var IN={usingClientEntryPoint:!1,Events:[Us,_o,Zf,WE,VE,uy]},el={findFiberByHostInstance:Ti,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},LN={bundleType:el.bundleType,version:el.version,rendererPackageName:el.rendererPackageName,rendererConfig:el.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Tr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=YE(e),e===null?null:e.stateNode},findFiberByHostInstance:el.findFiberByHostInstance||MN,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 ku=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ku.isDisabled&&ku.supportsFiber)try{qf=ku.inject(LN),Bn=ku}catch{}}Kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=IN;Kt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!vy(t))throw Error(W(200));return NN(e,t,null,n)};Kt.createRoot=function(e,t){if(!vy(e))throw Error(W(299));var n=!1,r="",i=j$;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=py(e,1,!1,null,null,n,!1,r,i),e[gr]=t.current,Vl(e.nodeType===8?e.parentNode:e),new my(t)};Kt.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(W(188)):(e=Object.keys(e).join(","),Error(W(268,e)));return e=YE(t),e=e===null?null:e.stateNode,e};Kt.flushSync=function(e){return Ki(e)};Kt.hydrate=function(e,t,n){if(!ld(t))throw Error(W(200));return sd(null,e,t,!0,n)};Kt.hydrateRoot=function(e,t,n){if(!vy(e))throw Error(W(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=j$;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=P$(t,null,e,1,n??null,i,!1,o,a),e[gr]=t.current,Vl(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new ad(t)};Kt.render=function(e,t,n){if(!ld(t))throw Error(W(200));return sd(null,e,t,!1,n)};Kt.unmountComponentAtNode=function(e){if(!ld(e))throw Error(W(40));return e._reactRootContainer?(Ki(function(){sd(null,null,e,!1,function(){e._reactRootContainer=null,e[gr]=null})}),!0):!1};Kt.unstable_batchedUpdates=uy;Kt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ld(n))throw Error(W(200));if(e==null||e._reactInternals===void 0)throw Error(W(38));return sd(e,t,n,!1,r)};Kt.version="18.3.1-next-f1338f8080-20240426";function T$(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(T$)}catch(e){console.error(e)}}T$(),TE.exports=Kt;var Ht=TE.exports,yb=Ht;Uh.createRoot=yb.createRoot,Uh.hydrateRoot=yb.hydrateRoot;/**
58
+ * react-router v7.12.0
59
+ *
60
+ * Copyright (c) Remix Software Inc.
61
+ *
62
+ * This source code is licensed under the MIT license found in the
63
+ * LICENSE.md file in the root directory of this source tree.
64
+ *
65
+ * @license MIT
66
+ */var xb="popstate";function DN(e={}){function t(i,o){let{pathname:a="/",search:l="",hash:s=""}=ro(i.location.hash.substring(1));return!a.startsWith("/")&&!a.startsWith(".")&&(a="/"+a),Rm("",{pathname:a,search:l,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(i,o){let a=i.document.querySelector("base"),l="";if(a&&a.getAttribute("href")){let s=i.location.href,u=s.indexOf("#");l=u===-1?s:s.slice(0,u)}return l+"#"+(typeof o=="string"?o:es(o))}function r(i,o){dn(i.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(o)})`)}return BN(t,n,r,e)}function Fe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function dn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function FN(){return Math.random().toString(36).substring(2,10)}function bb(e,t){return{usr:e.state,key:e.key,idx:t}}function Rm(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ro(t):t,state:n,key:t&&t.key||r||FN()}}function es({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ro(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function BN(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,l="POP",s=null,u=c();u==null&&(u=0,a.replaceState({...a.state,idx:u},""));function c(){return(a.state||{idx:null}).idx}function f(){l="POP";let w=c(),g=w==null?null:w-u;u=w,s&&s({action:l,location:m.location,delta:g})}function d(w,g){l="PUSH";let y=Rm(m.location,w,g);n&&n(y,w),u=c()+1;let x=bb(y,u),E=m.createHref(y);try{a.pushState(x,"",E)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;i.location.assign(E)}o&&s&&s({action:l,location:m.location,delta:1})}function p(w,g){l="REPLACE";let y=Rm(m.location,w,g);n&&n(y,w),u=c();let x=bb(y,u),E=m.createHref(y);a.replaceState(x,"",E),o&&s&&s({action:l,location:m.location,delta:0})}function h(w){return zN(w)}let m={get action(){return l},get location(){return e(i,a)},listen(w){if(s)throw new Error("A history only accepts one active listener");return i.addEventListener(xb,f),s=w,()=>{i.removeEventListener(xb,f),s=null}},createHref(w){return t(i,w)},createURL:h,encodeLocation(w){let g=h(w);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:d,replace:p,go(w){return a.go(w)}};return m}function zN(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Fe(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:es(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function A$(e,t,n="/"){return UN(e,t,n,!1)}function UN(e,t,n,r){let i=typeof t=="string"?ro(t):t,o=br(i.pathname||"/",n);if(o==null)return null;let a=C$(e);HN(a);let l=null;for(let s=0;l==null&&s<a.length;++s){let u=eM(o);l=ZN(a[s],u,r)}return l}function C$(e,t=[],n=[],r="",i=!1){let o=(a,l,s=i,u)=>{let c={relativePath:u===void 0?a.path||"":u,caseSensitive:a.caseSensitive===!0,childrenIndex:l,route:a};if(c.relativePath.startsWith("/")){if(!c.relativePath.startsWith(r)&&s)return;Fe(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let f=cr([r,c.relativePath]),d=n.concat(c);a.children&&a.children.length>0&&(Fe(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),C$(a.children,t,d,f,s)),!(a.path==null&&!a.index)&&t.push({path:f,score:YN(f,a.index),routesMeta:d})};return e.forEach((a,l)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,l);else for(let u of k$(a.path))o(a,l,!0,u)}),t}function k$(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=k$(r.join("/")),l=[];return l.push(...a.map(s=>s===""?o:[o,s].join("/"))),i&&l.push(...a),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function HN(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:QN(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var WN=/^:[\w-]+$/,VN=3,KN=2,GN=1,qN=10,XN=-2,wb=e=>e==="*";function YN(e,t){let n=e.split("/"),r=n.length;return n.some(wb)&&(r+=XN),t&&(r+=KN),n.filter(i=>!wb(i)).reduce((i,o)=>i+(WN.test(o)?VN:o===""?GN:qN),r)}function QN(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function ZN(e,t,n=!1){let{routesMeta:r}=e,i={},o="/",a=[];for(let l=0;l<r.length;++l){let s=r[l],u=l===r.length-1,c=o==="/"?t:t.slice(o.length)||"/",f=Bc({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},c),d=s.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=Bc({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},c)),!f)return null;Object.assign(i,f.params),a.push({params:i,pathname:cr([o,f.pathname]),pathnameBase:iM(cr([o,f.pathnameBase])),route:d}),f.pathnameBase!=="/"&&(o=cr([o,f.pathnameBase]))}return a}function Bc(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=JN(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((u,{paramName:c,isOptional:f},d)=>{if(c==="*"){let h=l[d]||"";a=o.slice(0,o.length-h.length).replace(/(.)\/+$/,"$1")}const p=l[d];return f&&!p?u[c]=void 0:u[c]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:a,pattern:e}}function JN(e,t=!1,n=!0){dn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,s)=>(r.push({paramName:l,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function eM(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return dn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function br(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var N$=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,tM=e=>N$.test(e);function nM(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ro(e):e,o;if(n)if(tM(n))o=n;else{if(n.includes("//")){let a=n;n=n.replace(/\/\/+/g,"/"),dn(!1,`Pathnames cannot have embedded double slashes - normalizing ${a} -> ${n}`)}n.startsWith("/")?o=_b(n.substring(1),"/"):o=_b(n,t)}else o=t;return{pathname:o,search:oM(r),hash:aM(i)}}function _b(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Xp(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function rM(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function M$(e){let t=rM(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function R$(e,t,n,r=!1){let i;typeof e=="string"?i=ro(e):(i={...e},Fe(!i.pathname||!i.pathname.includes("?"),Xp("?","pathname","search",i)),Fe(!i.pathname||!i.pathname.includes("#"),Xp("#","pathname","hash",i)),Fe(!i.search||!i.search.includes("#"),Xp("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,l;if(a==null)l=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),f-=1;i.pathname=d.join("/")}l=f>=0?t[f]:"/"}let s=nM(i,l),u=a&&a!=="/"&&a.endsWith("/"),c=(o||a===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}var cr=e=>e.join("/").replace(/\/\/+/g,"/"),iM=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),oM=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,aM=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,lM=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function sM(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function uM(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var I$=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function L$(e,t){let n=e;if(typeof n!="string"||!N$.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(I$)try{let o=new URL(window.location.href),a=n.startsWith("//")?new URL(o.protocol+n):new URL(n),l=br(a.pathname,t);a.origin===o.origin&&l!=null?n=l+a.search+a.hash:i=!0}catch{dn(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var D$=["POST","PUT","PATCH","DELETE"];new Set(D$);var cM=["GET",...D$];new Set(cM);var Pa=b.createContext(null);Pa.displayName="DataRouter";var ud=b.createContext(null);ud.displayName="DataRouterState";var fM=b.createContext(!1),F$=b.createContext({isTransitioning:!1});F$.displayName="ViewTransition";var dM=b.createContext(new Map);dM.displayName="Fetchers";var pM=b.createContext(null);pM.displayName="Await";var mn=b.createContext(null);mn.displayName="Navigation";var Ws=b.createContext(null);Ws.displayName="Location";var An=b.createContext({outlet:null,matches:[],isDataRoute:!1});An.displayName="Route";var gy=b.createContext(null);gy.displayName="RouteError";var B$="REACT_ROUTER_ERROR",hM="REDIRECT",mM="ROUTE_ERROR_RESPONSE";function vM(e){if(e.startsWith(`${B$}:${hM}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function gM(e){if(e.startsWith(`${B$}:${mM}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new lM(t.status,t.statusText,t.data)}catch{}}function yM(e,{relative:t}={}){Fe(Vs(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=b.useContext(mn),{hash:i,pathname:o,search:a}=Ks(e,{relative:t}),l=o;return n!=="/"&&(l=o==="/"?n:cr([n,o])),r.createHref({pathname:l,search:a,hash:i})}function Vs(){return b.useContext(Ws)!=null}function Ar(){return Fe(Vs(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(Ws).location}var z$="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function U$(e){b.useContext(mn).static||b.useLayoutEffect(e)}function xM(){let{isDataRoute:e}=b.useContext(An);return e?RM():bM()}function bM(){Fe(Vs(),"useNavigate() may be used only in the context of a <Router> component.");let e=b.useContext(Pa),{basename:t,navigator:n}=b.useContext(mn),{matches:r}=b.useContext(An),{pathname:i}=Ar(),o=JSON.stringify(M$(r)),a=b.useRef(!1);return U$(()=>{a.current=!0}),b.useCallback((s,u={})=>{if(dn(a.current,z$),!a.current)return;if(typeof s=="number"){n.go(s);return}let c=R$(s,JSON.parse(o),i,u.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:cr([t,c.pathname])),(u.replace?n.replace:n.push)(c,u.state,u)},[t,n,o,i,e])}var wM=b.createContext(null);function _M(e){let t=b.useContext(An).outlet;return b.useMemo(()=>t&&b.createElement(wM.Provider,{value:e},t),[t,e])}function SM(){let{matches:e}=b.useContext(An),t=e[e.length-1];return t?t.params:{}}function Ks(e,{relative:t}={}){let{matches:n}=b.useContext(An),{pathname:r}=Ar(),i=JSON.stringify(M$(n));return b.useMemo(()=>R$(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function EM(e,t){return H$(e,t)}function H$(e,t,n,r,i){var y;Fe(Vs(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=b.useContext(mn),{matches:a}=b.useContext(An),l=a[a.length-1],s=l?l.params:{},u=l?l.pathname:"/",c=l?l.pathnameBase:"/",f=l&&l.route;{let x=f&&f.path||"";V$(u,!f||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${x}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
58
67
 
59
- Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let d=Ar(),p;if(t){let x=typeof t=="string"?ra(t):t;Fe(c==="/"||((y=x.pathname)==null?void 0:y.startsWith(c)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${x.pathname}" was given in the \`location\` prop.`),p=x}else p=d;let h=p.pathname||"/",m=h;if(c!=="/"){let x=c.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(x.length).join("/")}let b=!a&&n&&n.matches&&n.matches.length>0?n.matches:C$(e,{pathname:m});Pn(f||b!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),Pn(b==null||b[b.length-1].route.element!==void 0||b[b.length-1].route.Component!==void 0||b[b.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let v=jM(b&&b.map(x=>Object.assign({},x,{params:Object.assign({},s,x.params),pathname:cr([c,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?c:cr([c,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),o,n,r);return t&&v?w.createElement(Ws.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...p},navigationType:"POP"}},v):v}function EM(){let e=NM(),t=pM(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:a},"ErrorBoundary")," or"," ",w.createElement("code",{style:a},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),n?w.createElement("pre",{style:i},n):null,o)}var OM=w.createElement(EM,null),$M=class extends w.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?w.createElement(Tn.Provider,{value:this.props.routeContext},w.createElement(gy.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function PM({routeContext:e,match:t,children:n}){let r=w.useContext(Po);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),w.createElement(Tn.Provider,{value:e},n)}function jM(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=n==null?void 0:n.errors;if(a!=null){let s=i.findIndex(u=>u.route.id&&(a==null?void 0:a[u.route.id])!==void 0);Fe(s>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,s+1))}let o=!1,l=-1;if(n)for(let s=0;s<i.length;s++){let u=i[s];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(l=s),u.route.id){let{loaderData:c,errors:f}=n,d=u.route.loader&&!c.hasOwnProperty(u.route.id)&&(!f||f[u.route.id]===void 0);if(u.route.lazy||d){o=!0,l>=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((s,u,c)=>{let f,d=!1,p=null,h=null;n&&(f=a&&u.route.id?a[u.route.id]:void 0,p=u.route.errorElement||OM,o&&(l<0&&c===0?(z$("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,h=null):l===c&&(d=!0,h=u.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),b=()=>{let v;return f?v=p:d?v=h:u.route.Component?v=w.createElement(u.route.Component,null):u.route.element?v=u.route.element:v=s,w.createElement(PM,{match:u,routeContext:{outlet:s,matches:m,isDataRoute:n!=null},children:v})};return n&&(u.route.ErrorBoundary||u.route.errorElement||c===0)?w.createElement($M,{location:n.location,revalidation:n.revalidation,component:p,error:f,children:b(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):b()},null)}function yy(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function TM(e){let t=w.useContext(Po);return Fe(t,yy(e)),t}function AM(e){let t=w.useContext(ud);return Fe(t,yy(e)),t}function CM(e){let t=w.useContext(Tn);return Fe(t,yy(e)),t}function xy(e){let t=CM(e),n=t.matches[t.matches.length-1];return Fe(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function kM(){return xy("useRouteId")}function NM(){var r;let e=w.useContext(gy),t=AM("useRouteError"),n=xy("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function MM(){let{router:e}=TM("useNavigate"),t=xy("useNavigate"),n=w.useRef(!1);return F$(()=>{n.current=!0}),w.useCallback(async(i,a={})=>{Pn(n.current,D$),n.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...a}))},[e,t])}var Eb={};function z$(e,t,n){!t&&!Eb[e]&&(Eb[e]=!0,Pn(!1,n))}w.memo(IM);function IM({routes:e,future:t,state:n}){return B$(e,void 0,n,t)}function RM(e){return wM(e.context)}function vl(e){Fe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function LM({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:a=!1}){Fe(!Vs(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),l=w.useMemo(()=>({basename:o,navigator:i,static:a,future:{}}),[o,i,a]);typeof n=="string"&&(n=ra(n));let{pathname:s="/",search:u="",hash:c="",state:f=null,key:d="default"}=n,p=w.useMemo(()=>{let h=br(s,o);return h==null?null:{location:{pathname:h,search:u,hash:c,state:f,key:d},navigationType:r}},[o,s,u,c,f,d,r]);return Pn(p!=null,`<Router basename="${o}"> is not able to match the URL "${s}${u}${c}" because it does not start with the basename, so the <Router> won't render anything.`),p==null?null:w.createElement(Xn.Provider,{value:l},w.createElement(Ws.Provider,{children:t,value:p}))}function DM({children:e,location:t}){return SM(Im(e),t)}function Im(e,t=[]){let n=[];return w.Children.forEach(e,(r,i)=>{if(!w.isValidElement(r))return;let a=[...t,i];if(r.type===w.Fragment){n.push.apply(n,Im(r.props.children,a));return}Fe(r.type===vl,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Fe(!r.props.index||!r.props.children,"An index route cannot have child routes.");let o={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=Im(r.props.children,a)),n.push(o)}),n}var cc="get",fc="application/x-www-form-urlencoded";function cd(e){return e!=null&&typeof e.tagName=="string"}function FM(e){return cd(e)&&e.tagName.toLowerCase()==="button"}function BM(e){return cd(e)&&e.tagName.toLowerCase()==="form"}function zM(e){return cd(e)&&e.tagName.toLowerCase()==="input"}function UM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function HM(e,t){return e.button===0&&(!t||t==="_self")&&!UM(e)}var Nu=null;function WM(){if(Nu===null)try{new FormData(document.createElement("form"),0),Nu=!1}catch{Nu=!0}return Nu}var VM=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Xp(e){return e!=null&&!VM.has(e)?(Pn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${fc}"`),null):e}function KM(e,t){let n,r,i,a,o;if(BM(e)){let l=e.getAttribute("action");r=l?br(l,t):null,n=e.getAttribute("method")||cc,i=Xp(e.getAttribute("enctype"))||fc,a=new FormData(e)}else if(FM(e)||zM(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||l.getAttribute("action");if(r=s?br(s,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||cc,i=Xp(e.getAttribute("formenctype"))||Xp(l.getAttribute("enctype"))||fc,a=new FormData(l,e),!WM()){let{name:u,type:c,value:f}=e;if(c==="image"){let d=u?`${u}.`:"";a.append(`${d}x`,"0"),a.append(`${d}y`,"0")}else u&&a.append(u,f)}}else{if(cd(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=cc,r=null,i=fc,o=e}return a&&i==="text/plain"&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}function by(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function GM(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function qM(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function YM(e,t,n){let r=await Promise.all(e.map(async i=>{let a=t.routes[i.route.id];if(a){let o=await GM(a,n);return o.links?o.links():[]}return[]}));return JM(r.flat(1).filter(qM).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function Ob(e,t,n,r,i,a){let o=(s,u)=>n[u]?s.route.id!==n[u].route.id:!0,l=(s,u)=>{var c;return n[u].pathname!==s.pathname||((c=n[u].route.path)==null?void 0:c.endsWith("*"))&&n[u].params["*"]!==s.params["*"]};return a==="assets"?t.filter((s,u)=>o(s,u)||l(s,u)):a==="data"?t.filter((s,u)=>{var f;let c=r.routes[s.route.id];if(!c||!c.hasLoader)return!1;if(o(s,u)||l(s,u))return!0;if(s.route.shouldRevalidate){let d=s.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((f=n[0])==null?void 0:f.params)||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof d=="boolean")return d}return!0}):[]}function XM(e,t,{includeHydrateFallback:n}={}){return QM(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let a=[i.module];return i.clientActionModule&&(a=a.concat(i.clientActionModule)),i.clientLoaderModule&&(a=a.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(a=a.concat(i.hydrateFallbackModule)),i.imports&&(a=a.concat(i.imports)),a}).flat(1))}function QM(e){return[...new Set(e)]}function ZM(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function JM(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let a=JSON.stringify(ZM(i));return n.has(a)||(n.add(a),r.push({key:a,link:i})),r},[])}var eI=new Set([100,101,204,205]);function tI(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&br(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function U$(){let e=w.useContext(Po);return by(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function nI(){let e=w.useContext(ud);return by(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var wy=w.createContext(void 0);wy.displayName="FrameworkContext";function H$(){let e=w.useContext(wy);return by(e,"You must render this element inside a <HydratedRouter> element"),e}function rI(e,t){let n=w.useContext(wy),[r,i]=w.useState(!1),[a,o]=w.useState(!1),{onFocus:l,onBlur:s,onMouseEnter:u,onMouseLeave:c,onTouchStart:f}=t,d=w.useRef(null);w.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let m=v=>{v.forEach(y=>{o(y.isIntersecting)})},b=new IntersectionObserver(m,{threshold:.5});return d.current&&b.observe(d.current),()=>{b.disconnect()}}},[e]),w.useEffect(()=>{if(r){let m=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(m)}}},[r]);let p=()=>{i(!0)},h=()=>{i(!1),o(!1)};return n?e!=="intent"?[a,d,{}]:[a,d,{onFocus:tl(l,p),onBlur:tl(s,h),onMouseEnter:tl(u,p),onMouseLeave:tl(c,h),onTouchStart:tl(f,p)}]:[!1,d,{}]}function tl(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function iI({page:e,...t}){let{router:n}=U$(),r=w.useMemo(()=>C$(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?w.createElement(oI,{page:e,matches:r,...t}):null}function aI(e){let{manifest:t,routeModules:n}=H$(),[r,i]=w.useState([]);return w.useEffect(()=>{let a=!1;return YM(e,t,n).then(o=>{a||i(o)}),()=>{a=!0}},[e,t,n]),r}function oI({page:e,matches:t,...n}){let r=Ar(),{manifest:i,routeModules:a}=H$(),{basename:o}=U$(),{loaderData:l,matches:s}=nI(),u=w.useMemo(()=>Ob(e,t,s,i,r,"data"),[e,t,s,i,r]),c=w.useMemo(()=>Ob(e,t,s,i,r,"assets"),[e,t,s,i,r]),f=w.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let h=new Set,m=!1;if(t.forEach(v=>{var x;let y=i.routes[v.route.id];!y||!y.hasLoader||(!u.some(E=>E.route.id===v.route.id)&&v.route.id in l&&((x=a[v.route.id])!=null&&x.shouldRevalidate)||y.hasClientLoader?m=!0:h.add(v.route.id))}),h.size===0)return[];let b=tI(e,o);return m&&h.size>0&&b.searchParams.set("_routes",t.filter(v=>h.has(v.route.id)).map(v=>v.route.id).join(",")),[b.pathname+b.search]},[o,l,r,i,u,t,e,a]),d=w.useMemo(()=>XM(c,i),[c,i]),p=aI(c);return w.createElement(w.Fragment,null,f.map(h=>w.createElement("link",{key:h,rel:"prefetch",as:"fetch",href:h,...n})),d.map(h=>w.createElement("link",{key:h,rel:"modulepreload",href:h,...n})),p.map(({key:h,link:m})=>w.createElement("link",{key:h,...m})))}function lI(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var W$=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{W$&&(window.__reactRouterVersion="7.5.2")}catch{}function sI({basename:e,children:t,window:n}){let r=w.useRef();r.current==null&&(r.current=VN({window:n,v5Compat:!0}));let i=r.current,[a,o]=w.useState({action:i.action,location:i.location}),l=w.useCallback(s=>{w.startTransition(()=>o(s))},[o]);return w.useLayoutEffect(()=>i.listen(l),[i,l]),w.createElement(LM,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:i})}var V$=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wr=w.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:a,replace:o,state:l,target:s,to:u,preventScrollReset:c,viewTransition:f,...d},p){let{basename:h}=w.useContext(Xn),m=typeof u=="string"&&V$.test(u),b,v=!1;if(typeof u=="string"&&m&&(b=u,W$))try{let T=new URL(window.location.href),C=u.startsWith("//")?new URL(T.protocol+u):new URL(u),A=br(C.pathname,h);C.origin===T.origin&&A!=null?u=A+C.search+C.hash:v=!0}catch{Pn(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let y=gM(u,{relative:i}),[x,E,_]=rI(r,d),S=dI(u,{replace:o,state:l,target:s,preventScrollReset:c,relative:i,viewTransition:f});function O(T){t&&t(T),T.defaultPrevented||S(T)}let $=w.createElement("a",{...d,..._,href:b||y,onClick:v||a?t:O,ref:lI(p,E),target:s,"data-discover":!m&&n==="render"?"true":void 0});return x&&!m?w.createElement(w.Fragment,null,$,w.createElement(iI,{page:y})):$});wr.displayName="Link";var uI=w.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:a,to:o,viewTransition:l,children:s,...u},c){let f=Ks(o,{relative:u.relative}),d=Ar(),p=w.useContext(ud),{navigator:h,basename:m}=w.useContext(Xn),b=p!=null&&gI(f)&&l===!0,v=h.encodeLocation?h.encodeLocation(f).pathname:f.pathname,y=d.pathname,x=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(y=y.toLowerCase(),x=x?x.toLowerCase():null,v=v.toLowerCase()),x&&m&&(x=br(x,m)||x);const E=v!=="/"&&v.endsWith("/")?v.length-1:v.length;let _=y===v||!i&&y.startsWith(v)&&y.charAt(E)==="/",S=x!=null&&(x===v||!i&&x.startsWith(v)&&x.charAt(v.length)==="/"),O={isActive:_,isPending:S,isTransitioning:b},$=_?t:void 0,T;typeof r=="function"?T=r(O):T=[r,_?"active":null,S?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let C=typeof a=="function"?a(O):a;return w.createElement(wr,{...u,"aria-current":$,className:T,ref:c,style:C,to:o,viewTransition:l},typeof s=="function"?s(O):s)});uI.displayName="NavLink";var cI=w.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=cc,action:l,onSubmit:s,relative:u,preventScrollReset:c,viewTransition:f,...d},p)=>{let h=mI(),m=vI(l,{relative:u}),b=o.toLowerCase()==="get"?"get":"post",v=typeof l=="string"&&V$.test(l),y=x=>{if(s&&s(x),x.defaultPrevented)return;x.preventDefault();let E=x.nativeEvent.submitter,_=(E==null?void 0:E.getAttribute("formmethod"))||o;h(E||x.currentTarget,{fetcherKey:t,method:_,navigate:n,replace:i,state:a,relative:u,preventScrollReset:c,viewTransition:f})};return w.createElement("form",{ref:p,method:b,action:m,onSubmit:r?s:y,...d,"data-discover":!v&&e==="render"?"true":void 0})});cI.displayName="Form";function fI(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function K$(e){let t=w.useContext(Po);return Fe(t,fI(e)),t}function dI(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:a,viewTransition:o}={}){let l=yM(),s=Ar(),u=Ks(e,{relative:a});return w.useCallback(c=>{if(HM(c,t)){c.preventDefault();let f=n!==void 0?n:es(s)===es(u);l(e,{replace:f,state:r,preventScrollReset:i,relative:a,viewTransition:o})}},[s,l,u,n,r,t,e,i,a,o])}var pI=0,hI=()=>`__${String(++pI)}__`;function mI(){let{router:e}=K$("useSubmit"),{basename:t}=w.useContext(Xn),n=kM();return w.useCallback(async(r,i={})=>{let{action:a,method:o,encType:l,formData:s,body:u}=KM(r,t);if(i.navigate===!1){let c=i.fetcherKey||hI();await e.fetch(c,n,i.action||a,{preventScrollReset:i.preventScrollReset,formData:s,body:u,formMethod:i.method||o,formEncType:i.encType||l,flushSync:i.flushSync})}else await e.navigate(i.action||a,{preventScrollReset:i.preventScrollReset,formData:s,body:u,formMethod:i.method||o,formEncType:i.encType||l,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,n])}function vI(e,{relative:t}={}){let{basename:n}=w.useContext(Xn),r=w.useContext(Tn);Fe(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),a={...Ks(e||".",{relative:t})},o=Ar();if(e==null){a.search=o.search;let l=new URLSearchParams(a.search),s=l.getAll("index");if(s.some(c=>c==="")){l.delete("index"),s.filter(f=>f).forEach(f=>l.append("index",f));let c=l.toString();a.search=c?`?${c}`:""}}return(!e||e===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:cr([n,a.pathname])),es(a)}function gI(e,t={}){let n=w.useContext(L$);Fe(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=K$("useViewTransitionState"),i=Ks(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=br(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=br(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Bc(i.pathname,o)!=null||Bc(i.pathname,a)!=null}new TextEncoder;[...eI];const yI={features:{"Assignment Mapping":{description:"Various strategies for mapping features to code elements including directory-based assignments, glob patterns, and file annotation processing.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/private/assignment_mappers/directory_assignment.rb","lib/feature_map/private/assignment_mappers/feature_definition_assignment.rb","lib/feature_map/private/assignment_mappers/feature_globs.rb","lib/feature_map/private/assignment_mappers/file_annotations.rb","lib/feature_map/private/glob_cache.rb","spec/lib/feature_map/private/assignment_mappers/directory_assignment_spec.rb","spec/lib/feature_map/private/assignment_mappers/feature_definition_assignment_spec.rb","spec/lib/feature_map/private/assignment_mappers/feature_globs_spec.rb","spec/lib/feature_map/private/assignment_mappers/file_annotations_spec.rb"],teams:["Core Library"]},metrics:{abc_size:541.4,cyclomatic_complexity:38,lines_of_code:604,todo_locations:{},complexity_ratio:15.894736842105264,encapsulation_ratio:.014900662251655629},test_coverage:{lines:348,hits:346,misses:2,coverage_ratio:99},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:31.818181818181817,percent_of_max:42,score:15.894736842105264},encapsulation:{percentile:68.18181818181819,percent_of_max:39,score:.014900662251655629},feature_size:{percentile:40.90909090909091,percent_of_max:23,score:604},test_coverage:{percentile:50,percent_of_max:99,score:99},todo_count:{percentile:31.818181818181817,percent_of_max:0,score:0},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:1.5909090909090908},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:6.818181818181818},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:93.4090909090909}}},"Code Features":{description:"Plugin system for defining code features and their relationships with extensible interfaces and identity management.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/code_features.rb","lib/feature_map/code_features/plugin.rb","lib/feature_map/code_features/plugins/identity.rb","lib/feature_map/private/feature_plugins/assignment.rb","spec/lib/feature_map/code_features/plugin_spec.rb","spec/lib/feature_map/code_features_spec.rb"],teams:["Core Library"]},metrics:{abc_size:416.79,cyclomatic_complexity:13,lines_of_code:373,todo_locations:{},complexity_ratio:28.692307692307693,encapsulation_ratio:.0160857908847185},test_coverage:{lines:236,hits:233,misses:3,coverage_ratio:99},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:59.09090909090909,percent_of_max:76,score:28.692307692307693},encapsulation:{percentile:77.27272727272727,percent_of_max:42,score:.0160857908847185},feature_size:{percentile:13.636363636363637,percent_of_max:14,score:373},test_coverage:{percentile:50,percent_of_max:99,score:99},todo_count:{percentile:31.818181818181817,percent_of_max:0,score:0},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:2.9545454545454546},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:7.727272727272727},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:95.68181818181819}}},"Core Library":{description:"The foundation of the feature_map library including main configuration interfaces, constants, and base functionality that orchestrates the overall system.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map.rb","lib/feature_map/cli.rb","lib/feature_map/commit.rb","lib/feature_map/configuration.rb","lib/feature_map/constants.rb","lib/feature_map/mapper.rb","lib/feature_map/output_color.rb","lib/feature_map/private.rb","lib/feature_map/validator.rb","spec/lib/feature_map/cli_spec.rb","spec/lib/feature_map/commit_spec.rb","spec/lib/feature_map_spec.rb","spec/spec_helper.rb"],teams:["Core Library"]},metrics:{abc_size:1528.37,cyclomatic_complexity:83,lines_of_code:1596,todo_locations:{"lib/feature_map.rb:37":"what if there are multiple features? Should we respond with an error instead of the first match?"},complexity_ratio:19.228915662650603,encapsulation_ratio:.008145363408521303},test_coverage:{lines:930,hits:883,misses:47,coverage_ratio:95},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:50,percent_of_max:51,score:19.228915662650603},encapsulation:{percentile:13.636363636363637,percent_of_max:21,score:.008145363408521303},feature_size:{percentile:86.36363636363636,percent_of_max:60,score:1596},test_coverage:{percentile:31.818181818181817,percent_of_max:95,score:95},todo_count:{percentile:72.72727272727273,percent_of_max:4,score:1},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:2.5},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:1.3636363636363635},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:88.86363636363636}}},"Documentation Content":{description:"Written documentation in Markdown format covering usage instructions, configuration, public interfaces, and examples for users.",dashboard_link:null,documentation_link:null,assignments:{files:["readme/_layouts/default.html","readme/artifacts/assignments.md","readme/artifacts/docs.md","readme/artifacts/metrics.md","readme/artifacts/overview.md","readme/artifacts/test-coverage.md","readme/artifacts/test-pyramid.md","readme/continuous-integration/pr-tags.md","readme/continuous-integration/release-notification.md","readme/continuous-integration/validation.md","readme/documentation-site/overview.md","readme/getting-started/configuration.md","readme/getting-started/feature-assignment.md","readme/getting-started/feature-definition.md","readme/getting-started/inline-execution.md","readme/getting-started/with-code-ownership.md","readme/index.md","readme/public-interface/apply-assignments.md","readme/public-interface/docs.md","readme/public-interface/for-backtrace.md","readme/public-interface/for-class.md","readme/public-interface/for-feature.md","readme/public-interface/for-file.md","readme/public-interface/overview.md","readme/public-interface/test-coverage.md","readme/public-interface/test-pyramid.md","readme/public-interface/validate.md"],teams:["Core Library"]},metrics:{abc_size:0,cyclomatic_complexity:0,lines_of_code:709,todo_locations:{},complexity_ratio:0,encapsulation_ratio:.0380818053596615},test_coverage:{lines:0,hits:0,misses:0,coverage_ratio:0},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:9.090909090909092,percent_of_max:0,score:0},encapsulation:{percentile:95.45454545454545,percent_of_max:100,score:.0380818053596615},feature_size:{percentile:59.09090909090909,percent_of_max:27,score:709},test_coverage:{percentile:9.090909090909092,percent_of_max:0,score:0},todo_count:{percentile:31.818181818181817,percent_of_max:0,score:0},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!1,health_score:0},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:.4545454545454546},encapsulation_component:{awardable_points:10,close_to_maximum_score:!0,health_score:10},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:25.454545454545453}}},"Documentation UI":{description:"Frontend React components that render the visualization of features, metrics, and code relationships in an interactive web interface.",dashboard_link:null,documentation_link:null,assignments:{files:["docs/src/App.jsx","docs/src/components/CircularProgress.jsx","docs/src/components/DigestHealthScoreCard.jsx","docs/src/components/DigestTestCoverageCard.jsx","docs/src/components/DigestTestPyramidCard.jsx","docs/src/components/DigestTestPyramidDetails.jsx","docs/src/components/FeatureCard.jsx","docs/src/components/FeatureDetails.jsx","docs/src/components/FeatureSizeDataCard.jsx","docs/src/components/FeatureTestPyramidCard.jsx","docs/src/components/FeaturesTable.jsx","docs/src/components/FeaturesTreemap.jsx","docs/src/components/FileExplorer.jsx","docs/src/components/HealthScoreDataCard.jsx","docs/src/components/Layout.jsx","docs/src/components/LayoutSidebar.jsx","docs/src/components/MetricCard.jsx","docs/src/components/SearchBox.jsx","docs/src/components/TestCoverageDataCard.jsx","docs/src/components/Tooltip.jsx","docs/src/components/ui/Dropdown.jsx","docs/src/components/ui/Switcher.jsx","docs/src/components/ui/index.js","docs/src/main.jsx","docs/src/pages/Dashboard.jsx","docs/src/pages/Digest.jsx","docs/src/pages/Feature.jsx","docs/src/scripts/app.js","docs/src/styles/app.css","docs/src/utils/config.js","docs/src/utils/feature-helpers.jsx","docs/src/utils/health-score.js"],teams:["Core Library"]},metrics:{abc_size:0,cyclomatic_complexity:0,lines_of_code:2667,todo_locations:{},complexity_ratio:0,encapsulation_ratio:.011998500187476566},test_coverage:{lines:0,hits:0,misses:0,coverage_ratio:0},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:9.090909090909092,percent_of_max:0,score:0},encapsulation:{percentile:50,percent_of_max:32,score:.011998500187476566},feature_size:{percentile:95.45454545454545,percent_of_max:100,score:2667},test_coverage:{percentile:9.090909090909092,percent_of_max:0,score:0},todo_count:{percentile:31.818181818181817,percent_of_max:0,score:0},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!1,health_score:0},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:.4545454545454546},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:5},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:20.454545454545453}}},"Extension System":{description:"Framework for loading extensions, building documentation sites, and generating release notifications to extend core functionality.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/private/documentation_site.rb","lib/feature_map/private/extension_loader.rb","lib/feature_map/private/release_notification_builder.rb","spec/lib/feature_map/private/documentation_site_spec.rb","spec/lib/feature_map/private/extension_loader_spec.rb","spec/lib/feature_map/private/release_notification_builder_spec.rb"],teams:["Core Library"]},metrics:{abc_size:376.97,cyclomatic_complexity:15,lines_of_code:566,todo_locations:{"spec/lib/feature_map/private/extension_loader_spec.rb:3":"This was failing without cache busting. It seems like the code_ownership gem has some"},complexity_ratio:37.733333333333334,encapsulation_ratio:.01060070671378092},test_coverage:{lines:189,hits:188,misses:1,coverage_ratio:99},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:95.45454545454545,percent_of_max:100,score:37.733333333333334},encapsulation:{percentile:40.90909090909091,percent_of_max:28,score:.01060070671378092},feature_size:{percentile:31.818181818181817,percent_of_max:21,score:566},test_coverage:{percentile:50,percent_of_max:99,score:99},todo_count:{percentile:72.72727272727273,percent_of_max:4,score:1},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!0,health_score:5},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:4.090909090909091},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:94.0909090909091}}},"Feature Assignment":{description:"Core functionality that handles the assignment of features to files and code elements with storage and application mechanisms.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/private/assignment_applicator.rb","lib/feature_map/private/assignments_file.rb","lib/feature_map/private/feature_assigner.rb","spec/lib/feature_map/private/assignment_applicator_spec.rb","spec/lib/feature_map/private/assignments_file_spec.rb","spec/lib/feature_map/private/feature_assigner_spec.rb"],teams:["Core Library"]},metrics:{abc_size:710.48,cyclomatic_complexity:33,lines_of_code:1070,todo_locations:{},complexity_ratio:32.42424242424242,encapsulation_ratio:.005607476635514018},test_coverage:{lines:380,hits:379,misses:1,coverage_ratio:100},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:68.18181818181819,percent_of_max:86,score:32.42424242424242},encapsulation:{percentile:4.545454545454546,percent_of_max:15,score:.005607476635514018},feature_size:{percentile:68.18181818181819,percent_of_max:40,score:1070},test_coverage:{percentile:81.81818181818181,percent_of_max:100,score:100},todo_count:{percentile:31.818181818181817,percent_of_max:0,score:0},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:3.409090909090909},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:.4545454545454546},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:88.86363636363636}}},"Metrics Calculation":{description:"Analytical components that calculate code health metrics including complexity, size, and percentile-based measurements across features.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/private/cyclomatic_complexity_calculator.rb","lib/feature_map/private/feature_metrics_calculator.rb","lib/feature_map/private/health_calculator.rb","lib/feature_map/private/lines_of_code_calculator.rb","lib/feature_map/private/percentile_metrics_calculator.rb","spec/lib/feature_map/private/cyclomatic_complexity_calculator_spec.rb","spec/lib/feature_map/private/feature_metrics_calculator_spec.rb","spec/lib/feature_map/private/health_calculator_spec.rb","spec/lib/feature_map/private/lines_of_code_calculator_spec.rb","spec/lib/feature_map/private/percentile_metrics_calculator_spec.rb"],teams:["Core Library"]},metrics:{abc_size:1360.32,cyclomatic_complexity:35,lines_of_code:1203,todo_locations:{"spec/lib/feature_map/private/feature_metrics_calculator_spec.rb:99":"Fix this method","spec/lib/feature_map/private/feature_metrics_calculator_spec.rb:107":"Refactor later","spec/lib/feature_map/private/feature_metrics_calculator_spec.rb:108":"Add error handling","spec/lib/feature_map/private/feature_metrics_calculator_spec.rb:116":"First todo","spec/lib/feature_map/private/feature_metrics_calculator_spec.rb:117":"Second todo","spec/lib/feature_map/private/feature_metrics_calculator_spec.rb:118":"Third todo","spec/lib/feature_map/private/feature_metrics_calculator_spec.rb:120":"Fourth todo","spec/lib/feature_map/private/health_calculator_spec.rb:105":"count - inverse percentile is used for calculation","spec/lib/feature_map/private/health_calculator_spec.rb:109":"count (inverted: 100-70 = 30)","spec/lib/feature_map/private/health_calculator_spec.rb:110":"s (inverted: 100-80 = 20, below 95 threshold)","spec/lib/feature_map/private/health_calculator_spec.rb:143":"count formula (inverse):","spec/lib/feature_map/private/health_calculator_spec.rb:186":"count - inverted, but still above threshold","spec/lib/feature_map/private/health_calculator_spec.rb:187":"count, we need the inverse to be above threshold","spec/lib/feature_map/private/health_calculator_spec.rb:256":"count below threshold","spec/lib/feature_map/private/health_calculator_spec.rb:277":"count gets partial points (score is inverted, so 80% of points)","spec/lib/feature_map/private/health_calculator_spec.rb:278":"_count_component']['health_score']).to be_within(0.1).of(12) # (100-20)% of 15","spec/lib/feature_map/private/health_calculator_spec.rb:286":"_count = 12 # 80% of 15","spec/lib/feature_map/private/health_calculator_spec.rb:316":"s","spec/lib/feature_map/private/percentile_metrics_calculator_spec.rb:265":"_count_for' do"},complexity_ratio:34.371428571428574,encapsulation_ratio:.00831255195344971},test_coverage:{lines:575,hits:573,misses:2,coverage_ratio:100},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:86.36363636363636,percent_of_max:91,score:34.371428571428574},encapsulation:{percentile:22.727272727272727,percent_of_max:22,score:.00831255195344971},feature_size:{percentile:77.27272727272727,percent_of_max:45,score:1203},test_coverage:{percentile:81.81818181818181,percent_of_max:100,score:100},todo_count:{percentile:86.36363636363636,percent_of_max:76,score:19},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!0,health_score:5},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:2.2727272727272725},todo_count_component:{awardable_points:15,close_to_maximum_score:!1,health_score:3.5999999999999996},overall:80.87272727272727}}},"Metrics Storage":{description:"Persistence and retrieval mechanisms for metrics data with support for base metrics and additional/custom metrics.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/private/additional_metrics_file.rb","lib/feature_map/private/metrics_file.rb","spec/lib/feature_map/private/additional_metrics_file_spec.rb","spec/lib/feature_map/private/metrics_file_spec.rb"],teams:["Core Library"]},metrics:{abc_size:235.98000000000002,cyclomatic_complexity:12,lines_of_code:400,todo_locations:{},complexity_ratio:33.333333333333336,encapsulation_ratio:.01},test_coverage:{lines:135,hits:135,misses:0,coverage_ratio:100},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:77.27272727272727,percent_of_max:88,score:33.333333333333336},encapsulation:{percentile:31.818181818181817,percent_of_max:26,score:.01},feature_size:{percentile:22.727272727272727,percent_of_max:15,score:400},test_coverage:{percentile:81.81818181818181,percent_of_max:100,score:100},todo_count:{percentile:31.818181818181817,percent_of_max:0,score:0},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:3.8636363636363633},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:3.1818181818181817},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:92.04545454545455}}},"Testing Tools":{description:"Components for analyzing test coverage, maintaining a test pyramid, and integrating with testing libraries like SimpleCov and CodeCov.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/private/code_cov.rb","lib/feature_map/private/simple_cov_resultsets.rb","lib/feature_map/private/test_coverage_file.rb","lib/feature_map/private/test_pyramid_file.rb","lib/feature_map/private/todo_inspector.rb","spec/lib/feature_map/private/code_cov_spec.rb","spec/lib/feature_map/private/test_coverage_file_spec.rb","spec/lib/feature_map/private/test_pyramid_file_spec.rb","spec/lib/feature_map/private/todo_inspector_spec.rb"],teams:["Core Library"]},metrics:{abc_size:643.16,cyclomatic_complexity:40,lines_of_code:694,todo_locations:{"lib/feature_map/private/code_cov.rb:46":"Move these values to config.","lib/feature_map/private/todo_inspector.rb:16":"?\\s* # TODO with optional colon with whitespace","lib/feature_map/private/todo_inspector.rb:17":"content","lib/feature_map/private/todo_inspector.rb:34":'s["#{@file_path}:#{index + 1}"] = match[:content].strip',"spec/lib/feature_map/private/todo_inspector_spec.rb:14":"Fix this method","spec/lib/feature_map/private/todo_inspector_spec.rb:18":"Make this better","spec/lib/feature_map/private/todo_inspector_spec.rb:32":"Update API endpoint","spec/lib/feature_map/private/todo_inspector_spec.rb:34":"Fix error handling","spec/lib/feature_map/private/todo_inspector_spec.rb:49":"Implement caching","spec/lib/feature_map/private/todo_inspector_spec.rb:53":"Another todo here","spec/lib/feature_map/private/todo_inspector_spec.rb:61":"here'","spec/lib/feature_map/private/todo_inspector_spec.rb:67":"Add responsive styles","spec/lib/feature_map/private/todo_inspector_spec.rb:69":"Fix accessibility","spec/lib/feature_map/private/todo_inspector_spec.rb:99":"First todo","spec/lib/feature_map/private/todo_inspector_spec.rb:100":"Second todo","spec/lib/feature_map/private/todo_inspector_spec.rb:101":"Third todo","spec/lib/feature_map/private/todo_inspector_spec.rb:103":"Fourth todo","spec/lib/feature_map/private/todo_inspector_spec.rb:110":"',","spec/lib/feature_map/private/todo_inspector_spec.rb:111":"',","spec/lib/feature_map/private/todo_inspector_spec.rb:112":"',","spec/lib/feature_map/private/todo_inspector_spec.rb:113":"'","spec/lib/feature_map/private/todo_inspector_spec.rb:138":"fix this')","spec/lib/feature_map/private/todo_inspector_spec.rb:142":`s).to include("#{path}:1" => 'fix this')`,"spec/lib/feature_map/private/todo_inspector_spec.rb:146":"spacing test ')","spec/lib/feature_map/private/todo_inspector_spec.rb:150":`s).to include("#{path}:1" => 'spacing test')`},complexity_ratio:17.35,encapsulation_ratio:.012968299711815562},test_coverage:{lines:349,hits:349,misses:0,coverage_ratio:100},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:40.90909090909091,percent_of_max:46,score:17.35},encapsulation:{percentile:59.09090909090909,percent_of_max:34,score:.012968299711815562},feature_size:{percentile:50,percent_of_max:26,score:694},test_coverage:{percentile:81.81818181818181,percent_of_max:100,score:100},todo_count:{percentile:95.45454545454545,percent_of_max:100,score:25},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:2.0454545454545454},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:5.909090909090909},todo_count_component:{awardable_points:15,close_to_maximum_score:!1,health_score:0},overall:77.95454545454545}}},Validation:{description:"Rules and checks that ensure code adheres to feature mapping standards by validating feature assignments and detecting issues.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/private/validations/features_up_to_date.rb","lib/feature_map/private/validations/files_have_features.rb","lib/feature_map/private/validations/files_have_unique_features.rb","spec/lib/feature_map/private/validations/files_have_features_spec.rb","spec/lib/feature_map/private/validations/files_have_unique_features_spec.rb"],teams:["Core Library"]},metrics:{abc_size:228.63,cyclomatic_complexity:20,lines_of_code:298,todo_locations:{},complexity_ratio:14.9,encapsulation_ratio:.016778523489932886},test_coverage:{lines:163,hits:145,misses:18,coverage_ratio:89},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:22.727272727272727,percent_of_max:39,score:14.9},encapsulation:{percentile:86.36363636363636,percent_of_max:44,score:.016778523489932886},feature_size:{percentile:4.545454545454546,percent_of_max:11,score:298},test_coverage:{percentile:22.727272727272727,percent_of_max:89,score:89},todo_count:{percentile:31.818181818181817,percent_of_max:0,score:0},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!1,health_score:62.300000000000004},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:1.1363636363636362},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:8.636363636363637},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:87.07272727272728}}}},environment:{git_ref:"main"},project:{assigned_globs:["lib/**/*.rb","spec/**/*.rb","docs/src/**/*.{jsx,html}","readme/**/*.{md,html}"],unassigned_globs:["spec/spec_holder.rb","spec/support/**","docs/node_modules/*","readme/node_modules/**/*","readme/_site/**/*","readme/example-docs-site.html"],require_assignment_for_teams:["Analysis & Metrics","Documentation & Frontend","Feature Assignment & Validation","Core Library"],ignore_feature_definitions:!0,skip_code_ownership:!1,skip_features_validation:!1,code_cov:{service:"github",owner:"Example",repo:"example"},repository:{main_branch:"main",url:"https://github.com/Beyond-Finance/feature_map"},documentation_site_url:"https://beyond-finance.github.io/feature_map/example-docs-site.html",documentation_site:{health:{minimum_thresholds:{good:95,fair:80,poor:0},components:{cyclomatic_complexity:{weight:5,percent_of_max_threshold:90},encapsulation:{weight:10,percent_of_max_threshold:90},test_coverage:{weight:70,percent_of_max_threshold:95},todo_count:{weight:15,percent_of_max_threshold:95}}},linked_sites:[{name:"User Service",url:"https://example.github.io/user-service"},{name:"Gateway Service",url:"https://example.github.io/gateway-service"}],size_percentile:{minimum_thresholds:{xl:95,l:75,m:25,s:5,xs:0}},title:"Example Site",test_coverage:{minimum_thresholds:{good:98,fair:95,poor:0}}}}},xI={assigned_globs:["lib/**/*.rb","spec/**/*.rb","docs/src/**/*.{jsx,html}","readme/**/*.{md,html}"],unassigned_globs:["spec/spec_holder.rb","spec/support/**","docs/node_modules/*","readme/node_modules/**/*","readme/_site/**/*","readme/example-docs-site.html"],require_assignment_for_teams:["Analysis & Metrics","Documentation & Frontend","Feature Assignment & Validation","Core Library"],ignore_feature_definitions:!0,skip_code_ownership:!1,skip_features_validation:!1,code_cov:{service:"github",owner:"Example",repo:"example"},repository:{main_branch:"main",url:"https://github.com/Beyond-Finance/feature_map"},documentation_site_url:"https://beyond-finance.github.io/feature_map/example-docs-site.html",documentation_site:{health:{minimum_thresholds:{good:95,fair:80,poor:0},components:{cyclomatic_complexity:{weight:5,percent_of_max_threshold:90},encapsulation:{weight:10,percent_of_max_threshold:90},test_coverage:{weight:70,percent_of_max_threshold:95},todo_count:{weight:15,percent_of_max_threshold:95}}},linked_sites:[{name:"User Service",url:"https://example.github.io/user-service"},{name:"Gateway Service",url:"https://example.github.io/gateway-service"}],internal_resources:[{name:"Feature Management Docs",url:"https://notion.com"},{name:"Feature Map Docs",url:"https://example.github.io/feature_map"},{name:"New Relic Dashboard",url:"https://newrelic.com"}],size_percentile:{minimum_thresholds:{xl:95,l:75,m:25,s:5,xs:0}},title:"Example Site",test_coverage:{minimum_thresholds:{good:98,fair:95,poor:0}}}},bI={...yI,project:xI,environment:{git_ref:"main"}},_r=window.FEATURE_MAP_CONFIG||bI;/**
68
+ Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let d=Ar(),p;if(t){let x=typeof t=="string"?ro(t):t;Fe(c==="/"||((y=x.pathname)==null?void 0:y.startsWith(c)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${x.pathname}" was given in the \`location\` prop.`),p=x}else p=d;let h=p.pathname||"/",m=h;if(c!=="/"){let x=c.replace(/^\//,"").split("/");m="/"+h.replace(/^\//,"").split("/").slice(x.length).join("/")}let w=A$(e,{pathname:m});dn(f||w!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),dn(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let g=TM(w&&w.map(x=>Object.assign({},x,{params:Object.assign({},s,x.params),pathname:cr([c,o.encodeLocation?o.encodeLocation(x.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?c:cr([c,o.encodeLocation?o.encodeLocation(x.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathnameBase])})),a,n,r,i);return t&&g?b.createElement(Ws.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...p},navigationType:"POP"}},g):g}function OM(){let e=MM(),t=sM(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=b.createElement(b.Fragment,null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:o},"ErrorBoundary")," or"," ",b.createElement("code",{style:o},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:i},n):null,a)}var $M=b.createElement(OM,null),W$=class extends b.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=gM(e.digest);n&&(e=n)}let t=e!==void 0?b.createElement(An.Provider,{value:this.props.routeContext},b.createElement(gy.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?b.createElement(PM,{error:e},t):t}};W$.contextType=fM;var Yp=new WeakMap;function PM({children:e,error:t}){let{basename:n}=b.useContext(mn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=vM(t.digest);if(r){let i=Yp.get(t);if(i)throw i;let o=L$(r.location,n);if(I$&&!Yp.get(t))if(o.isExternal||r.reloadDocument)window.location.href=o.absoluteURL||o.to;else{const a=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(o.to,{replace:r.replace}));throw Yp.set(t,a),a}return b.createElement("meta",{httpEquiv:"refresh",content:`0;url=${o.absoluteURL||o.to}`})}}return e}function jM({routeContext:e,match:t,children:n}){let r=b.useContext(Pa);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),b.createElement(An.Provider,{value:e},n)}function TM(e,t=[],n=null,r=null,i=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=n==null?void 0:n.errors;if(a!=null){let c=o.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);Fe(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),o=o.slice(0,Math.min(o.length,c+1))}let l=!1,s=-1;if(n)for(let c=0;c<o.length;c++){let f=o[c];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(s=c),f.route.id){let{loaderData:d,errors:p}=n,h=f.route.loader&&!d.hasOwnProperty(f.route.id)&&(!p||p[f.route.id]===void 0);if(f.route.lazy||h){l=!0,s>=0?o=o.slice(0,s+1):o=[o[0]];break}}}let u=n&&r?(c,f)=>{var d,p;r(c,{location:n.location,params:((p=(d=n.matches)==null?void 0:d[0])==null?void 0:p.params)??{},unstable_pattern:uM(n.matches),errorInfo:f})}:void 0;return o.reduceRight((c,f,d)=>{let p,h=!1,m=null,w=null;n&&(p=a&&f.route.id?a[f.route.id]:void 0,m=f.route.errorElement||$M,l&&(s<0&&d===0?(V$("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,w=null):s===d&&(h=!0,w=f.route.hydrateFallbackElement||null)));let g=t.concat(o.slice(0,d+1)),y=()=>{let x;return p?x=m:h?x=w:f.route.Component?x=b.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=c,b.createElement(jM,{match:f,routeContext:{outlet:c,matches:g,isDataRoute:n!=null},children:x})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?b.createElement(W$,{location:n.location,revalidation:n.revalidation,component:m,error:p,children:y(),routeContext:{outlet:null,matches:g,isDataRoute:!0},onError:u}):y()},null)}function yy(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function AM(e){let t=b.useContext(Pa);return Fe(t,yy(e)),t}function CM(e){let t=b.useContext(ud);return Fe(t,yy(e)),t}function kM(e){let t=b.useContext(An);return Fe(t,yy(e)),t}function xy(e){let t=kM(e),n=t.matches[t.matches.length-1];return Fe(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function NM(){return xy("useRouteId")}function MM(){var r;let e=b.useContext(gy),t=CM("useRouteError"),n=xy("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function RM(){let{router:e}=AM("useNavigate"),t=xy("useNavigate"),n=b.useRef(!1);return U$(()=>{n.current=!0}),b.useCallback(async(i,o={})=>{dn(n.current,z$),n.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...o}))},[e,t])}var Sb={};function V$(e,t,n){!t&&!Sb[e]&&(Sb[e]=!0,dn(!1,n))}b.memo(IM);function IM({routes:e,future:t,state:n,onError:r}){return H$(e,void 0,n,r,t)}function LM(e){return _M(e.context)}function vl(e){Fe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function DM({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:o=!1,unstable_useTransitions:a}){Fe(!Vs(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),s=b.useMemo(()=>({basename:l,navigator:i,static:o,unstable_useTransitions:a,future:{}}),[l,i,o,a]);typeof n=="string"&&(n=ro(n));let{pathname:u="/",search:c="",hash:f="",state:d=null,key:p="default"}=n,h=b.useMemo(()=>{let m=br(u,l);return m==null?null:{location:{pathname:m,search:c,hash:f,state:d,key:p},navigationType:r}},[l,u,c,f,d,p,r]);return dn(h!=null,`<Router basename="${l}"> is not able to match the URL "${u}${c}${f}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:b.createElement(mn.Provider,{value:s},b.createElement(Ws.Provider,{children:t,value:h}))}function FM({children:e,location:t}){return EM(Im(e),t)}function Im(e,t=[]){let n=[];return b.Children.forEach(e,(r,i)=>{if(!b.isValidElement(r))return;let o=[...t,i];if(r.type===b.Fragment){n.push.apply(n,Im(r.props.children,o));return}Fe(r.type===vl,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Fe(!r.props.index||!r.props.children,"An index route cannot have child routes.");let a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=Im(r.props.children,o)),n.push(a)}),n}var cc="get",fc="application/x-www-form-urlencoded";function cd(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function BM(e){return cd(e)&&e.tagName.toLowerCase()==="button"}function zM(e){return cd(e)&&e.tagName.toLowerCase()==="form"}function UM(e){return cd(e)&&e.tagName.toLowerCase()==="input"}function HM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function WM(e,t){return e.button===0&&(!t||t==="_self")&&!HM(e)}var Nu=null;function VM(){if(Nu===null)try{new FormData(document.createElement("form"),0),Nu=!1}catch{Nu=!0}return Nu}var KM=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Qp(e){return e!=null&&!KM.has(e)?(dn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${fc}"`),null):e}function GM(e,t){let n,r,i,o,a;if(zM(e)){let l=e.getAttribute("action");r=l?br(l,t):null,n=e.getAttribute("method")||cc,i=Qp(e.getAttribute("enctype"))||fc,o=new FormData(e)}else if(BM(e)||UM(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||l.getAttribute("action");if(r=s?br(s,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||cc,i=Qp(e.getAttribute("formenctype"))||Qp(l.getAttribute("enctype"))||fc,o=new FormData(l,e),!VM()){let{name:u,type:c,value:f}=e;if(c==="image"){let d=u?`${u}.`:"";o.append(`${d}x`,"0"),o.append(`${d}y`,"0")}else u&&o.append(u,f)}}else{if(cd(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=cc,r=null,i=fc,a=e}return o&&i==="text/plain"&&(a=o,o=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:o,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function by(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function qM(e,t,n,r){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?i.pathname.endsWith("/")?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname==="/"?i.pathname=`_root.${r}`:t&&br(i.pathname,t)==="/"?i.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${r}`,i}async function XM(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function YM(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function QM(e,t,n){let r=await Promise.all(e.map(async i=>{let o=t.routes[i.route.id];if(o){let a=await XM(o,n);return a.links?a.links():[]}return[]}));return tR(r.flat(1).filter(YM).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function Eb(e,t,n,r,i,o){let a=(s,u)=>n[u]?s.route.id!==n[u].route.id:!0,l=(s,u)=>{var c;return n[u].pathname!==s.pathname||((c=n[u].route.path)==null?void 0:c.endsWith("*"))&&n[u].params["*"]!==s.params["*"]};return o==="assets"?t.filter((s,u)=>a(s,u)||l(s,u)):o==="data"?t.filter((s,u)=>{var f;let c=r.routes[s.route.id];if(!c||!c.hasLoader)return!1;if(a(s,u)||l(s,u))return!0;if(s.route.shouldRevalidate){let d=s.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((f=n[0])==null?void 0:f.params)||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof d=="boolean")return d}return!0}):[]}function ZM(e,t,{includeHydrateFallback:n}={}){return JM(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let o=[i.module];return i.clientActionModule&&(o=o.concat(i.clientActionModule)),i.clientLoaderModule&&(o=o.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(o=o.concat(i.hydrateFallbackModule)),i.imports&&(o=o.concat(i.imports)),o}).flat(1))}function JM(e){return[...new Set(e)]}function eR(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function tR(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let o=JSON.stringify(eR(i));return n.has(o)||(n.add(o),r.push({key:o,link:i})),r},[])}function K$(){let e=b.useContext(Pa);return by(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function nR(){let e=b.useContext(ud);return by(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var wy=b.createContext(void 0);wy.displayName="FrameworkContext";function G$(){let e=b.useContext(wy);return by(e,"You must render this element inside a <HydratedRouter> element"),e}function rR(e,t){let n=b.useContext(wy),[r,i]=b.useState(!1),[o,a]=b.useState(!1),{onFocus:l,onBlur:s,onMouseEnter:u,onMouseLeave:c,onTouchStart:f}=t,d=b.useRef(null);b.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let m=g=>{g.forEach(y=>{a(y.isIntersecting)})},w=new IntersectionObserver(m,{threshold:.5});return d.current&&w.observe(d.current),()=>{w.disconnect()}}},[e]),b.useEffect(()=>{if(r){let m=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(m)}}},[r]);let p=()=>{i(!0)},h=()=>{i(!1),a(!1)};return n?e!=="intent"?[o,d,{}]:[o,d,{onFocus:tl(l,p),onBlur:tl(s,h),onMouseEnter:tl(u,p),onMouseLeave:tl(c,h),onTouchStart:tl(f,p)}]:[!1,d,{}]}function tl(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function iR({page:e,...t}){let{router:n}=K$(),r=b.useMemo(()=>A$(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?b.createElement(aR,{page:e,matches:r,...t}):null}function oR(e){let{manifest:t,routeModules:n}=G$(),[r,i]=b.useState([]);return b.useEffect(()=>{let o=!1;return QM(e,t,n).then(a=>{o||i(a)}),()=>{o=!0}},[e,t,n]),r}function aR({page:e,matches:t,...n}){let r=Ar(),{future:i,manifest:o,routeModules:a}=G$(),{basename:l}=K$(),{loaderData:s,matches:u}=nR(),c=b.useMemo(()=>Eb(e,t,u,o,r,"data"),[e,t,u,o,r]),f=b.useMemo(()=>Eb(e,t,u,o,r,"assets"),[e,t,u,o,r]),d=b.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let m=new Set,w=!1;if(t.forEach(y=>{var E;let x=o.routes[y.route.id];!x||!x.hasLoader||(!c.some(_=>_.route.id===y.route.id)&&y.route.id in s&&((E=a[y.route.id])!=null&&E.shouldRevalidate)||x.hasClientLoader?w=!0:m.add(y.route.id))}),m.size===0)return[];let g=qM(e,l,i.unstable_trailingSlashAwareDataRequests,"data");return w&&m.size>0&&g.searchParams.set("_routes",t.filter(y=>m.has(y.route.id)).map(y=>y.route.id).join(",")),[g.pathname+g.search]},[l,i.unstable_trailingSlashAwareDataRequests,s,r,o,c,t,e,a]),p=b.useMemo(()=>ZM(f,o),[f,o]),h=oR(f);return b.createElement(b.Fragment,null,d.map(m=>b.createElement("link",{key:m,rel:"prefetch",as:"fetch",href:m,...n})),p.map(m=>b.createElement("link",{key:m,rel:"modulepreload",href:m,...n})),h.map(({key:m,link:w})=>b.createElement("link",{key:m,nonce:n.nonce,...w})))}function lR(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var sR=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{sR&&(window.__reactRouterVersion="7.12.0")}catch{}function uR({basename:e,children:t,unstable_useTransitions:n,window:r}){let i=b.useRef();i.current==null&&(i.current=DN({window:r,v5Compat:!0}));let o=i.current,[a,l]=b.useState({action:o.action,location:o.location}),s=b.useCallback(u=>{n===!1?l(u):b.startTransition(()=>l(u))},[n]);return b.useLayoutEffect(()=>o.listen(s),[o,s]),b.createElement(DM,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:o,unstable_useTransitions:n})}var q$=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wr=b.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:o,replace:a,state:l,target:s,to:u,preventScrollReset:c,viewTransition:f,unstable_defaultShouldRevalidate:d,...p},h){let{basename:m,unstable_useTransitions:w}=b.useContext(mn),g=typeof u=="string"&&q$.test(u),y=L$(u,m);u=y.to;let x=yM(u,{relative:i}),[E,_,S]=rR(r,p),O=pR(u,{replace:a,state:l,target:s,preventScrollReset:c,relative:i,viewTransition:f,unstable_defaultShouldRevalidate:d,unstable_useTransitions:w});function $(C){t&&t(C),C.defaultPrevented||O(C)}let T=b.createElement("a",{...p,...S,href:y.absoluteURL||x,onClick:y.isExternal||o?t:$,ref:lR(h,_),target:s,"data-discover":!g&&n==="render"?"true":void 0});return E&&!g?b.createElement(b.Fragment,null,T,b.createElement(iR,{page:x})):T});wr.displayName="Link";var cR=b.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:o,to:a,viewTransition:l,children:s,...u},c){let f=Ks(a,{relative:u.relative}),d=Ar(),p=b.useContext(ud),{navigator:h,basename:m}=b.useContext(mn),w=p!=null&&yR(f)&&l===!0,g=h.encodeLocation?h.encodeLocation(f).pathname:f.pathname,y=d.pathname,x=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(y=y.toLowerCase(),x=x?x.toLowerCase():null,g=g.toLowerCase()),x&&m&&(x=br(x,m)||x);const E=g!=="/"&&g.endsWith("/")?g.length-1:g.length;let _=y===g||!i&&y.startsWith(g)&&y.charAt(E)==="/",S=x!=null&&(x===g||!i&&x.startsWith(g)&&x.charAt(g.length)==="/"),O={isActive:_,isPending:S,isTransitioning:w},$=_?t:void 0,T;typeof r=="function"?T=r(O):T=[r,_?"active":null,S?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let C=typeof o=="function"?o(O):o;return b.createElement(wr,{...u,"aria-current":$,className:T,ref:c,style:C,to:a,viewTransition:l},typeof s=="function"?s(O):s)});cR.displayName="NavLink";var fR=b.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:o,method:a=cc,action:l,onSubmit:s,relative:u,preventScrollReset:c,viewTransition:f,unstable_defaultShouldRevalidate:d,...p},h)=>{let{unstable_useTransitions:m}=b.useContext(mn),w=vR(),g=gR(l,{relative:u}),y=a.toLowerCase()==="get"?"get":"post",x=typeof l=="string"&&q$.test(l),E=_=>{if(s&&s(_),_.defaultPrevented)return;_.preventDefault();let S=_.nativeEvent.submitter,O=(S==null?void 0:S.getAttribute("formmethod"))||a,$=()=>w(S||_.currentTarget,{fetcherKey:t,method:O,navigate:n,replace:i,state:o,relative:u,preventScrollReset:c,viewTransition:f,unstable_defaultShouldRevalidate:d});m&&n!==!1?b.startTransition(()=>$()):$()};return b.createElement("form",{ref:h,method:y,action:g,onSubmit:r?s:E,...p,"data-discover":!x&&e==="render"?"true":void 0})});fR.displayName="Form";function dR(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function X$(e){let t=b.useContext(Pa);return Fe(t,dR(e)),t}function pR(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:o,viewTransition:a,unstable_defaultShouldRevalidate:l,unstable_useTransitions:s}={}){let u=xM(),c=Ar(),f=Ks(e,{relative:o});return b.useCallback(d=>{if(WM(d,t)){d.preventDefault();let p=n!==void 0?n:es(c)===es(f),h=()=>u(e,{replace:p,state:r,preventScrollReset:i,relative:o,viewTransition:a,unstable_defaultShouldRevalidate:l});s?b.startTransition(()=>h()):h()}},[c,u,f,n,r,t,e,i,o,a,l,s])}var hR=0,mR=()=>`__${String(++hR)}__`;function vR(){let{router:e}=X$("useSubmit"),{basename:t}=b.useContext(mn),n=NM(),r=e.fetch,i=e.navigate;return b.useCallback(async(o,a={})=>{let{action:l,method:s,encType:u,formData:c,body:f}=GM(o,t);if(a.navigate===!1){let d=a.fetcherKey||mR();await r(d,n,a.action||l,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:c,body:f,formMethod:a.method||s,formEncType:a.encType||u,flushSync:a.flushSync})}else await i(a.action||l,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:c,body:f,formMethod:a.method||s,formEncType:a.encType||u,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function gR(e,{relative:t}={}){let{basename:n}=b.useContext(mn),r=b.useContext(An);Fe(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),o={...Ks(e||".",{relative:t})},a=Ar();if(e==null){o.search=a.search;let l=new URLSearchParams(o.search),s=l.getAll("index");if(s.some(c=>c==="")){l.delete("index"),s.filter(f=>f).forEach(f=>l.append("index",f));let c=l.toString();o.search=c?`?${c}`:""}}return(!e||e===".")&&i.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:cr([n,o.pathname])),es(o)}function yR(e,{relative:t}={}){let n=b.useContext(F$);Fe(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=X$("useViewTransitionState"),i=Ks(e,{relative:t});if(!n.isTransitioning)return!1;let o=br(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=br(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Bc(i.pathname,a)!=null||Bc(i.pathname,o)!=null}const xR={features:{"Assignment Mapping":{description:"Various strategies for mapping features to code elements including directory-based assignments, glob patterns, and file annotation processing.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/private/assignment_mappers/directory_assignment.rb","lib/feature_map/private/assignment_mappers/feature_definition_assignment.rb","lib/feature_map/private/assignment_mappers/feature_globs.rb","lib/feature_map/private/assignment_mappers/file_annotations.rb","lib/feature_map/private/glob_cache.rb","spec/lib/feature_map/private/assignment_mappers/directory_assignment_spec.rb","spec/lib/feature_map/private/assignment_mappers/feature_definition_assignment_spec.rb","spec/lib/feature_map/private/assignment_mappers/feature_globs_spec.rb","spec/lib/feature_map/private/assignment_mappers/file_annotations_spec.rb"],teams:["Core Library"]},metrics:{abc_size:541.4,cyclomatic_complexity:38,lines_of_code:604,todo_locations:{},complexity_ratio:15.894736842105264,encapsulation_ratio:.014900662251655629},test_coverage:{lines:348,hits:346,misses:2,coverage_ratio:99},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:31.818181818181817,percent_of_max:42,score:15.894736842105264},encapsulation:{percentile:68.18181818181819,percent_of_max:39,score:.014900662251655629},feature_size:{percentile:40.90909090909091,percent_of_max:23,score:604},test_coverage:{percentile:50,percent_of_max:99,score:99},todo_count:{percentile:31.818181818181817,percent_of_max:0,score:0},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:1.5909090909090908},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:6.818181818181818},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:93.4090909090909}}},"Code Features":{description:"Plugin system for defining code features and their relationships with extensible interfaces and identity management.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/code_features.rb","lib/feature_map/code_features/plugin.rb","lib/feature_map/code_features/plugins/identity.rb","lib/feature_map/private/feature_plugins/assignment.rb","spec/lib/feature_map/code_features/plugin_spec.rb","spec/lib/feature_map/code_features_spec.rb"],teams:["Core Library"]},metrics:{abc_size:416.79,cyclomatic_complexity:13,lines_of_code:373,todo_locations:{},complexity_ratio:28.692307692307693,encapsulation_ratio:.0160857908847185},test_coverage:{lines:236,hits:233,misses:3,coverage_ratio:99},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:59.09090909090909,percent_of_max:76,score:28.692307692307693},encapsulation:{percentile:77.27272727272727,percent_of_max:42,score:.0160857908847185},feature_size:{percentile:13.636363636363637,percent_of_max:14,score:373},test_coverage:{percentile:50,percent_of_max:99,score:99},todo_count:{percentile:31.818181818181817,percent_of_max:0,score:0},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:2.9545454545454546},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:7.727272727272727},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:95.68181818181819}}},"Core Library":{description:"The foundation of the feature_map library including main configuration interfaces, constants, and base functionality that orchestrates the overall system.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map.rb","lib/feature_map/cli.rb","lib/feature_map/commit.rb","lib/feature_map/configuration.rb","lib/feature_map/constants.rb","lib/feature_map/mapper.rb","lib/feature_map/output_color.rb","lib/feature_map/private.rb","lib/feature_map/validator.rb","spec/lib/feature_map/cli_spec.rb","spec/lib/feature_map/commit_spec.rb","spec/lib/feature_map_spec.rb","spec/spec_helper.rb"],teams:["Core Library"]},metrics:{abc_size:1528.37,cyclomatic_complexity:83,lines_of_code:1596,todo_locations:{"lib/feature_map.rb:37":"what if there are multiple features? Should we respond with an error instead of the first match?"},complexity_ratio:19.228915662650603,encapsulation_ratio:.008145363408521303},test_coverage:{lines:930,hits:883,misses:47,coverage_ratio:95},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:50,percent_of_max:51,score:19.228915662650603},encapsulation:{percentile:13.636363636363637,percent_of_max:21,score:.008145363408521303},feature_size:{percentile:86.36363636363636,percent_of_max:60,score:1596},test_coverage:{percentile:31.818181818181817,percent_of_max:95,score:95},todo_count:{percentile:72.72727272727273,percent_of_max:4,score:1},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:2.5},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:1.3636363636363635},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:88.86363636363636}}},"Documentation Content":{description:"Written documentation in Markdown format covering usage instructions, configuration, public interfaces, and examples for users.",dashboard_link:null,documentation_link:null,assignments:{files:["readme/_layouts/default.html","readme/artifacts/assignments.md","readme/artifacts/docs.md","readme/artifacts/metrics.md","readme/artifacts/overview.md","readme/artifacts/test-coverage.md","readme/artifacts/test-pyramid.md","readme/continuous-integration/pr-tags.md","readme/continuous-integration/release-notification.md","readme/continuous-integration/validation.md","readme/documentation-site/overview.md","readme/getting-started/configuration.md","readme/getting-started/feature-assignment.md","readme/getting-started/feature-definition.md","readme/getting-started/inline-execution.md","readme/getting-started/with-code-ownership.md","readme/index.md","readme/public-interface/apply-assignments.md","readme/public-interface/docs.md","readme/public-interface/for-backtrace.md","readme/public-interface/for-class.md","readme/public-interface/for-feature.md","readme/public-interface/for-file.md","readme/public-interface/overview.md","readme/public-interface/test-coverage.md","readme/public-interface/test-pyramid.md","readme/public-interface/validate.md"],teams:["Core Library"]},metrics:{abc_size:0,cyclomatic_complexity:0,lines_of_code:709,todo_locations:{},complexity_ratio:0,encapsulation_ratio:.0380818053596615},test_coverage:{lines:0,hits:0,misses:0,coverage_ratio:0},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:9.090909090909092,percent_of_max:0,score:0},encapsulation:{percentile:95.45454545454545,percent_of_max:100,score:.0380818053596615},feature_size:{percentile:59.09090909090909,percent_of_max:27,score:709},test_coverage:{percentile:9.090909090909092,percent_of_max:0,score:0},todo_count:{percentile:31.818181818181817,percent_of_max:0,score:0},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!1,health_score:0},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:.4545454545454546},encapsulation_component:{awardable_points:10,close_to_maximum_score:!0,health_score:10},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:25.454545454545453}}},"Documentation UI":{description:"Frontend React components that render the visualization of features, metrics, and code relationships in an interactive web interface.",dashboard_link:null,documentation_link:null,assignments:{files:["docs/src/App.jsx","docs/src/components/CircularProgress.jsx","docs/src/components/DigestHealthScoreCard.jsx","docs/src/components/DigestTestCoverageCard.jsx","docs/src/components/DigestTestPyramidCard.jsx","docs/src/components/DigestTestPyramidDetails.jsx","docs/src/components/FeatureCard.jsx","docs/src/components/FeatureDetails.jsx","docs/src/components/FeatureSizeDataCard.jsx","docs/src/components/FeatureTestPyramidCard.jsx","docs/src/components/FeaturesTable.jsx","docs/src/components/FeaturesTreemap.jsx","docs/src/components/FileExplorer.jsx","docs/src/components/HealthScoreDataCard.jsx","docs/src/components/Layout.jsx","docs/src/components/LayoutSidebar.jsx","docs/src/components/MetricCard.jsx","docs/src/components/SearchBox.jsx","docs/src/components/TestCoverageDataCard.jsx","docs/src/components/Tooltip.jsx","docs/src/components/ui/Dropdown.jsx","docs/src/components/ui/Switcher.jsx","docs/src/components/ui/index.js","docs/src/main.jsx","docs/src/pages/Dashboard.jsx","docs/src/pages/Digest.jsx","docs/src/pages/Feature.jsx","docs/src/scripts/app.js","docs/src/styles/app.css","docs/src/utils/config.js","docs/src/utils/feature-helpers.jsx","docs/src/utils/health-score.js"],teams:["Core Library"]},metrics:{abc_size:0,cyclomatic_complexity:0,lines_of_code:2667,todo_locations:{},complexity_ratio:0,encapsulation_ratio:.011998500187476566},test_coverage:{lines:0,hits:0,misses:0,coverage_ratio:0},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:9.090909090909092,percent_of_max:0,score:0},encapsulation:{percentile:50,percent_of_max:32,score:.011998500187476566},feature_size:{percentile:95.45454545454545,percent_of_max:100,score:2667},test_coverage:{percentile:9.090909090909092,percent_of_max:0,score:0},todo_count:{percentile:31.818181818181817,percent_of_max:0,score:0},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!1,health_score:0},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:.4545454545454546},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:5},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:20.454545454545453}}},"Extension System":{description:"Framework for loading extensions, building documentation sites, and generating release notifications to extend core functionality.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/private/documentation_site.rb","lib/feature_map/private/extension_loader.rb","lib/feature_map/private/release_notification_builder.rb","spec/lib/feature_map/private/documentation_site_spec.rb","spec/lib/feature_map/private/extension_loader_spec.rb","spec/lib/feature_map/private/release_notification_builder_spec.rb"],teams:["Core Library"]},metrics:{abc_size:376.97,cyclomatic_complexity:15,lines_of_code:566,todo_locations:{"spec/lib/feature_map/private/extension_loader_spec.rb:3":"This was failing without cache busting. It seems like the code_ownership gem has some"},complexity_ratio:37.733333333333334,encapsulation_ratio:.01060070671378092},test_coverage:{lines:189,hits:188,misses:1,coverage_ratio:99},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:95.45454545454545,percent_of_max:100,score:37.733333333333334},encapsulation:{percentile:40.90909090909091,percent_of_max:28,score:.01060070671378092},feature_size:{percentile:31.818181818181817,percent_of_max:21,score:566},test_coverage:{percentile:50,percent_of_max:99,score:99},todo_count:{percentile:72.72727272727273,percent_of_max:4,score:1},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!0,health_score:5},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:4.090909090909091},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:94.0909090909091}}},"Feature Assignment":{description:"Core functionality that handles the assignment of features to files and code elements with storage and application mechanisms.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/private/assignment_applicator.rb","lib/feature_map/private/assignments_file.rb","lib/feature_map/private/feature_assigner.rb","spec/lib/feature_map/private/assignment_applicator_spec.rb","spec/lib/feature_map/private/assignments_file_spec.rb","spec/lib/feature_map/private/feature_assigner_spec.rb"],teams:["Core Library"]},metrics:{abc_size:710.48,cyclomatic_complexity:33,lines_of_code:1070,todo_locations:{},complexity_ratio:32.42424242424242,encapsulation_ratio:.005607476635514018},test_coverage:{lines:380,hits:379,misses:1,coverage_ratio:100},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:68.18181818181819,percent_of_max:86,score:32.42424242424242},encapsulation:{percentile:4.545454545454546,percent_of_max:15,score:.005607476635514018},feature_size:{percentile:68.18181818181819,percent_of_max:40,score:1070},test_coverage:{percentile:81.81818181818181,percent_of_max:100,score:100},todo_count:{percentile:31.818181818181817,percent_of_max:0,score:0},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:3.409090909090909},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:.4545454545454546},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:88.86363636363636}}},"Metrics Calculation":{description:"Analytical components that calculate code health metrics including complexity, size, and percentile-based measurements across features.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/private/cyclomatic_complexity_calculator.rb","lib/feature_map/private/feature_metrics_calculator.rb","lib/feature_map/private/health_calculator.rb","lib/feature_map/private/lines_of_code_calculator.rb","lib/feature_map/private/percentile_metrics_calculator.rb","spec/lib/feature_map/private/cyclomatic_complexity_calculator_spec.rb","spec/lib/feature_map/private/feature_metrics_calculator_spec.rb","spec/lib/feature_map/private/health_calculator_spec.rb","spec/lib/feature_map/private/lines_of_code_calculator_spec.rb","spec/lib/feature_map/private/percentile_metrics_calculator_spec.rb"],teams:["Core Library"]},metrics:{abc_size:1360.32,cyclomatic_complexity:35,lines_of_code:1203,todo_locations:{"spec/lib/feature_map/private/feature_metrics_calculator_spec.rb:99":"Fix this method","spec/lib/feature_map/private/feature_metrics_calculator_spec.rb:107":"Refactor later","spec/lib/feature_map/private/feature_metrics_calculator_spec.rb:108":"Add error handling","spec/lib/feature_map/private/feature_metrics_calculator_spec.rb:116":"First todo","spec/lib/feature_map/private/feature_metrics_calculator_spec.rb:117":"Second todo","spec/lib/feature_map/private/feature_metrics_calculator_spec.rb:118":"Third todo","spec/lib/feature_map/private/feature_metrics_calculator_spec.rb:120":"Fourth todo","spec/lib/feature_map/private/health_calculator_spec.rb:105":"count - inverse percentile is used for calculation","spec/lib/feature_map/private/health_calculator_spec.rb:109":"count (inverted: 100-70 = 30)","spec/lib/feature_map/private/health_calculator_spec.rb:110":"s (inverted: 100-80 = 20, below 95 threshold)","spec/lib/feature_map/private/health_calculator_spec.rb:143":"count formula (inverse):","spec/lib/feature_map/private/health_calculator_spec.rb:186":"count - inverted, but still above threshold","spec/lib/feature_map/private/health_calculator_spec.rb:187":"count, we need the inverse to be above threshold","spec/lib/feature_map/private/health_calculator_spec.rb:256":"count below threshold","spec/lib/feature_map/private/health_calculator_spec.rb:277":"count gets partial points (score is inverted, so 80% of points)","spec/lib/feature_map/private/health_calculator_spec.rb:278":"_count_component']['health_score']).to be_within(0.1).of(12) # (100-20)% of 15","spec/lib/feature_map/private/health_calculator_spec.rb:286":"_count = 12 # 80% of 15","spec/lib/feature_map/private/health_calculator_spec.rb:316":"s","spec/lib/feature_map/private/percentile_metrics_calculator_spec.rb:265":"_count_for' do"},complexity_ratio:34.371428571428574,encapsulation_ratio:.00831255195344971},test_coverage:{lines:575,hits:573,misses:2,coverage_ratio:100},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:86.36363636363636,percent_of_max:91,score:34.371428571428574},encapsulation:{percentile:22.727272727272727,percent_of_max:22,score:.00831255195344971},feature_size:{percentile:77.27272727272727,percent_of_max:45,score:1203},test_coverage:{percentile:81.81818181818181,percent_of_max:100,score:100},todo_count:{percentile:86.36363636363636,percent_of_max:76,score:19},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!0,health_score:5},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:2.2727272727272725},todo_count_component:{awardable_points:15,close_to_maximum_score:!1,health_score:3.5999999999999996},overall:80.87272727272727}}},"Metrics Storage":{description:"Persistence and retrieval mechanisms for metrics data with support for base metrics and additional/custom metrics.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/private/additional_metrics_file.rb","lib/feature_map/private/metrics_file.rb","spec/lib/feature_map/private/additional_metrics_file_spec.rb","spec/lib/feature_map/private/metrics_file_spec.rb"],teams:["Core Library"]},metrics:{abc_size:235.98000000000002,cyclomatic_complexity:12,lines_of_code:400,todo_locations:{},complexity_ratio:33.333333333333336,encapsulation_ratio:.01},test_coverage:{lines:135,hits:135,misses:0,coverage_ratio:100},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:77.27272727272727,percent_of_max:88,score:33.333333333333336},encapsulation:{percentile:31.818181818181817,percent_of_max:26,score:.01},feature_size:{percentile:22.727272727272727,percent_of_max:15,score:400},test_coverage:{percentile:81.81818181818181,percent_of_max:100,score:100},todo_count:{percentile:31.818181818181817,percent_of_max:0,score:0},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:3.8636363636363633},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:3.1818181818181817},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:92.04545454545455}}},"Testing Tools":{description:"Components for analyzing test coverage, maintaining a test pyramid, and integrating with testing libraries like SimpleCov and CodeCov.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/private/code_cov.rb","lib/feature_map/private/simple_cov_resultsets.rb","lib/feature_map/private/test_coverage_file.rb","lib/feature_map/private/test_pyramid_file.rb","lib/feature_map/private/todo_inspector.rb","spec/lib/feature_map/private/code_cov_spec.rb","spec/lib/feature_map/private/test_coverage_file_spec.rb","spec/lib/feature_map/private/test_pyramid_file_spec.rb","spec/lib/feature_map/private/todo_inspector_spec.rb"],teams:["Core Library"]},metrics:{abc_size:643.16,cyclomatic_complexity:40,lines_of_code:694,todo_locations:{"lib/feature_map/private/code_cov.rb:46":"Move these values to config.","lib/feature_map/private/todo_inspector.rb:16":"?\\s* # TODO with optional colon with whitespace","lib/feature_map/private/todo_inspector.rb:17":"content","lib/feature_map/private/todo_inspector.rb:34":'s["#{@file_path}:#{index + 1}"] = match[:content].strip',"spec/lib/feature_map/private/todo_inspector_spec.rb:14":"Fix this method","spec/lib/feature_map/private/todo_inspector_spec.rb:18":"Make this better","spec/lib/feature_map/private/todo_inspector_spec.rb:32":"Update API endpoint","spec/lib/feature_map/private/todo_inspector_spec.rb:34":"Fix error handling","spec/lib/feature_map/private/todo_inspector_spec.rb:49":"Implement caching","spec/lib/feature_map/private/todo_inspector_spec.rb:53":"Another todo here","spec/lib/feature_map/private/todo_inspector_spec.rb:61":"here'","spec/lib/feature_map/private/todo_inspector_spec.rb:67":"Add responsive styles","spec/lib/feature_map/private/todo_inspector_spec.rb:69":"Fix accessibility","spec/lib/feature_map/private/todo_inspector_spec.rb:99":"First todo","spec/lib/feature_map/private/todo_inspector_spec.rb:100":"Second todo","spec/lib/feature_map/private/todo_inspector_spec.rb:101":"Third todo","spec/lib/feature_map/private/todo_inspector_spec.rb:103":"Fourth todo","spec/lib/feature_map/private/todo_inspector_spec.rb:110":"',","spec/lib/feature_map/private/todo_inspector_spec.rb:111":"',","spec/lib/feature_map/private/todo_inspector_spec.rb:112":"',","spec/lib/feature_map/private/todo_inspector_spec.rb:113":"'","spec/lib/feature_map/private/todo_inspector_spec.rb:138":"fix this')","spec/lib/feature_map/private/todo_inspector_spec.rb:142":`s).to include("#{path}:1" => 'fix this')`,"spec/lib/feature_map/private/todo_inspector_spec.rb:146":"spacing test ')","spec/lib/feature_map/private/todo_inspector_spec.rb:150":`s).to include("#{path}:1" => 'spacing test')`},complexity_ratio:17.35,encapsulation_ratio:.012968299711815562},test_coverage:{lines:349,hits:349,misses:0,coverage_ratio:100},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:40.90909090909091,percent_of_max:46,score:17.35},encapsulation:{percentile:59.09090909090909,percent_of_max:34,score:.012968299711815562},feature_size:{percentile:50,percent_of_max:26,score:694},test_coverage:{percentile:81.81818181818181,percent_of_max:100,score:100},todo_count:{percentile:95.45454545454545,percent_of_max:100,score:25},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!0,health_score:70},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:2.0454545454545454},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:5.909090909090909},todo_count_component:{awardable_points:15,close_to_maximum_score:!1,health_score:0},overall:77.95454545454545}}},Validation:{description:"Rules and checks that ensure code adheres to feature mapping standards by validating feature assignments and detecting issues.",dashboard_link:null,documentation_link:null,assignments:{files:["lib/feature_map/private/validations/features_up_to_date.rb","lib/feature_map/private/validations/files_have_features.rb","lib/feature_map/private/validations/files_have_unique_features.rb","spec/lib/feature_map/private/validations/files_have_features_spec.rb","spec/lib/feature_map/private/validations/files_have_unique_features_spec.rb"],teams:["Core Library"]},metrics:{abc_size:228.63,cyclomatic_complexity:20,lines_of_code:298,todo_locations:{},complexity_ratio:14.9,encapsulation_ratio:.016778523489932886},test_coverage:{lines:163,hits:145,misses:18,coverage_ratio:89},test_pyramid:null,additional_metrics:{cyclomatic_complexity:{percentile:22.727272727272727,percent_of_max:39,score:14.9},encapsulation:{percentile:86.36363636363636,percent_of_max:44,score:.016778523489932886},feature_size:{percentile:4.545454545454546,percent_of_max:11,score:298},test_coverage:{percentile:22.727272727272727,percent_of_max:89,score:89},todo_count:{percentile:31.818181818181817,percent_of_max:0,score:0},health:{test_coverage_component:{awardable_points:70,close_to_maximum_score:!1,health_score:62.300000000000004},cyclomatic_complexity_component:{awardable_points:5,close_to_maximum_score:!1,health_score:1.1363636363636362},encapsulation_component:{awardable_points:10,close_to_maximum_score:!1,health_score:8.636363636363637},todo_count_component:{awardable_points:15,close_to_maximum_score:!0,health_score:15},overall:87.07272727272728}}}},environment:{git_ref:"main"},project:{assigned_globs:["lib/**/*.rb","spec/**/*.rb","docs/src/**/*.{jsx,html}","readme/**/*.{md,html}"],unassigned_globs:["spec/spec_holder.rb","spec/support/**","docs/node_modules/*","readme/node_modules/**/*","readme/_site/**/*","readme/example-docs-site.html"],require_assignment_for_teams:["Analysis & Metrics","Documentation & Frontend","Feature Assignment & Validation","Core Library"],ignore_feature_definitions:!0,skip_code_ownership:!1,skip_features_validation:!1,code_cov:{service:"github",owner:"Example",repo:"example"},repository:{main_branch:"main",url:"https://github.com/Beyond-Finance/feature_map"},documentation_site_url:"https://beyond-finance.github.io/feature_map/example-docs-site.html",documentation_site:{health:{minimum_thresholds:{good:95,fair:80,poor:0},components:{cyclomatic_complexity:{weight:5,percent_of_max_threshold:90},encapsulation:{weight:10,percent_of_max_threshold:90},test_coverage:{weight:70,percent_of_max_threshold:95},todo_count:{weight:15,percent_of_max_threshold:95}}},linked_sites:[{name:"User Service",url:"https://example.github.io/user-service"},{name:"Gateway Service",url:"https://example.github.io/gateway-service"}],size_percentile:{minimum_thresholds:{xl:95,l:75,m:25,s:5,xs:0}},title:"Example Site",test_coverage:{minimum_thresholds:{good:98,fair:95,poor:0}}}}},bR={assigned_globs:["lib/**/*.rb","spec/**/*.rb","docs/src/**/*.{jsx,html}","readme/**/*.{md,html}"],unassigned_globs:["spec/spec_holder.rb","spec/support/**","docs/node_modules/*","readme/node_modules/**/*","readme/_site/**/*","readme/example-docs-site.html"],require_assignment_for_teams:["Analysis & Metrics","Documentation & Frontend","Feature Assignment & Validation","Core Library"],ignore_feature_definitions:!0,skip_code_ownership:!1,skip_features_validation:!1,code_cov:{service:"github",owner:"Example",repo:"example"},repository:{main_branch:"main",url:"https://github.com/Beyond-Finance/feature_map"},documentation_site_url:"https://beyond-finance.github.io/feature_map/example-docs-site.html",documentation_site:{health:{minimum_thresholds:{good:95,fair:80,poor:0},components:{cyclomatic_complexity:{weight:5,percent_of_max_threshold:90},encapsulation:{weight:10,percent_of_max_threshold:90},test_coverage:{weight:70,percent_of_max_threshold:95},todo_count:{weight:15,percent_of_max_threshold:95}}},linked_sites:[{name:"User Service",url:"https://example.github.io/user-service"},{name:"Gateway Service",url:"https://example.github.io/gateway-service"}],internal_resources:[{name:"Feature Management Docs",url:"https://notion.com"},{name:"Feature Map Docs",url:"https://example.github.io/feature_map"},{name:"New Relic Dashboard",url:"https://newrelic.com"}],size_percentile:{minimum_thresholds:{xl:95,l:75,m:25,s:5,xs:0}},title:"Example Site",test_coverage:{minimum_thresholds:{good:98,fair:95,poor:0}}}},wR={...xR,project:bR,environment:{git_ref:"main"}},_r=window.FEATURE_MAP_CONFIG||wR;/**
60
69
  * @license lucide-react v0.468.0 - ISC
61
70
  *
62
71
  * This source code is licensed under the ISC license.
63
72
  * See the LICENSE file in the root directory of this source tree.
64
- */const wI=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),G$=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
73
+ */const _R=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Y$=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
65
74
  * @license lucide-react v0.468.0 - ISC
66
75
  *
67
76
  * This source code is licensed under the ISC license.
68
77
  * See the LICENSE file in the root directory of this source tree.
69
- */var _I={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"};/**
78
+ */var SR={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"};/**
70
79
  * @license lucide-react v0.468.0 - ISC
71
80
  *
72
81
  * This source code is licensed under the ISC license.
73
82
  * See the LICENSE file in the root directory of this source tree.
74
- */const SI=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:a,iconNode:o,...l},s)=>w.createElement("svg",{ref:s,..._I,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:G$("lucide",i),...l},[...o.map(([u,c])=>w.createElement(u,c)),...Array.isArray(a)?a:[a]]));/**
83
+ */const ER=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:a,...l},s)=>b.createElement("svg",{ref:s,...SR,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Y$("lucide",i),...l},[...a.map(([u,c])=>b.createElement(u,c)),...Array.isArray(o)?o:[o]]));/**
75
84
  * @license lucide-react v0.468.0 - ISC
76
85
  *
77
86
  * This source code is licensed under the ISC license.
78
87
  * See the LICENSE file in the root directory of this source tree.
79
- */const Ve=(e,t)=>{const n=w.forwardRef(({className:r,...i},a)=>w.createElement(SI,{ref:a,iconNode:t,className:G$(`lucide-${wI(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
88
+ */const Ve=(e,t)=>{const n=b.forwardRef(({className:r,...i},o)=>b.createElement(ER,{ref:o,iconNode:t,className:Y$(`lucide-${_R(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
80
89
  * @license lucide-react v0.468.0 - ISC
81
90
  *
82
91
  * This source code is licensed under the ISC license.
83
92
  * See the LICENSE file in the root directory of this source tree.
84
- */const q$=Ve("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
93
+ */const Q$=Ve("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
85
94
  * @license lucide-react v0.468.0 - ISC
86
95
  *
87
96
  * This source code is licensed under the ISC license.
88
97
  * See the LICENSE file in the root directory of this source tree.
89
- */const EI=Ve("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
98
+ */const OR=Ve("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
90
99
  * @license lucide-react v0.468.0 - ISC
91
100
  *
92
101
  * This source code is licensed under the ISC license.
93
102
  * See the LICENSE file in the root directory of this source tree.
94
- */const OI=Ve("CircleX",[["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"}]]);/**
103
+ */const $R=Ve("CircleX",[["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"}]]);/**
95
104
  * @license lucide-react v0.468.0 - ISC
96
105
  *
97
106
  * This source code is licensed under the ISC license.
98
107
  * See the LICENSE file in the root directory of this source tree.
99
- */const $I=Ve("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/**
108
+ */const PR=Ve("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/**
100
109
  * @license lucide-react v0.468.0 - ISC
101
110
  *
102
111
  * This source code is licensed under the ISC license.
@@ -106,7 +115,7 @@ Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}
106
115
  *
107
116
  * This source code is licensed under the ISC license.
108
117
  * See the LICENSE file in the root directory of this source tree.
109
- */const Rm=Ve("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);/**
118
+ */const Lm=Ve("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);/**
110
119
  * @license lucide-react v0.468.0 - ISC
111
120
  *
112
121
  * This source code is licensed under the ISC license.
@@ -121,7 +130,7 @@ Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}
121
130
  *
122
131
  * This source code is licensed under the ISC license.
123
132
  * See the LICENSE file in the root directory of this source tree.
124
- */const PI=Ve("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
133
+ */const jR=Ve("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
125
134
  * @license lucide-react v0.468.0 - ISC
126
135
  *
127
136
  * This source code is licensed under the ISC license.
@@ -131,17 +140,17 @@ Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}
131
140
  *
132
141
  * This source code is licensed under the ISC license.
133
142
  * See the LICENSE file in the root directory of this source tree.
134
- */const jI=Ve("GitCompareArrows",[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M12 6h5a2 2 0 0 1 2 2v7",key:"1yj91y"}],["path",{d:"m15 9-3-3 3-3",key:"1lwv8l"}],["circle",{cx:"19",cy:"18",r:"3",key:"1qljk2"}],["path",{d:"M12 18H7a2 2 0 0 1-2-2V9",key:"16sdep"}],["path",{d:"m9 15 3 3-3 3",key:"1m3kbl"}]]);/**
143
+ */const TR=Ve("GitCompareArrows",[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M12 6h5a2 2 0 0 1 2 2v7",key:"1yj91y"}],["path",{d:"m15 9-3-3 3-3",key:"1lwv8l"}],["circle",{cx:"19",cy:"18",r:"3",key:"1qljk2"}],["path",{d:"M12 18H7a2 2 0 0 1-2-2V9",key:"16sdep"}],["path",{d:"m9 15 3 3-3 3",key:"1m3kbl"}]]);/**
135
144
  * @license lucide-react v0.468.0 - ISC
136
145
  *
137
146
  * This source code is licensed under the ISC license.
138
147
  * See the LICENSE file in the root directory of this source tree.
139
- */const TI=Ve("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/**
148
+ */const AR=Ve("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/**
140
149
  * @license lucide-react v0.468.0 - ISC
141
150
  *
142
151
  * This source code is licensed under the ISC license.
143
152
  * See the LICENSE file in the root directory of this source tree.
144
- */const AI=Ve("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
153
+ */const CR=Ve("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
145
154
  * @license lucide-react v0.468.0 - ISC
146
155
  *
147
156
  * This source code is licensed under the ISC license.
@@ -151,37 +160,37 @@ Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}
151
160
  *
152
161
  * This source code is licensed under the ISC license.
153
162
  * See the LICENSE file in the root directory of this source tree.
154
- */const CI=Ve("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/**
163
+ */const kR=Ve("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/**
155
164
  * @license lucide-react v0.468.0 - ISC
156
165
  *
157
166
  * This source code is licensed under the ISC license.
158
167
  * See the LICENSE file in the root directory of this source tree.
159
- */const kI=Ve("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
168
+ */const NR=Ve("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
160
169
  * @license lucide-react v0.468.0 - ISC
161
170
  *
162
171
  * This source code is licensed under the ISC license.
163
172
  * See the LICENSE file in the root directory of this source tree.
164
- */const Y$=Ve("Proportions",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"M12 9v11",key:"1fnkrn"}],["path",{d:"M2 9h13a2 2 0 0 1 2 2v9",key:"11z3ex"}]]);/**
173
+ */const Z$=Ve("Proportions",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"M12 9v11",key:"1fnkrn"}],["path",{d:"M2 9h13a2 2 0 0 1 2 2v9",key:"11z3ex"}]]);/**
165
174
  * @license lucide-react v0.468.0 - ISC
166
175
  *
167
176
  * This source code is licensed under the ISC license.
168
177
  * See the LICENSE file in the root directory of this source tree.
169
- */const X$=Ve("Pyramid",[["path",{d:"M2.5 16.88a1 1 0 0 1-.32-1.43l9-13.02a1 1 0 0 1 1.64 0l9 13.01a1 1 0 0 1-.32 1.44l-8.51 4.86a2 2 0 0 1-1.98 0Z",key:"aenxs0"}],["path",{d:"M12 2v20",key:"t6zp3m"}]]);/**
178
+ */const J$=Ve("Pyramid",[["path",{d:"M2.5 16.88a1 1 0 0 1-.32-1.43l9-13.02a1 1 0 0 1 1.64 0l9 13.01a1 1 0 0 1-.32 1.44l-8.51 4.86a2 2 0 0 1-1.98 0Z",key:"aenxs0"}],["path",{d:"M12 2v20",key:"t6zp3m"}]]);/**
170
179
  * @license lucide-react v0.468.0 - ISC
171
180
  *
172
181
  * This source code is licensed under the ISC license.
173
182
  * See the LICENSE file in the root directory of this source tree.
174
- */const NI=Ve("Shapes",[["path",{d:"M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z",key:"1bo67w"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}],["circle",{cx:"17.5",cy:"17.5",r:"3.5",key:"w3z12y"}]]);/**
183
+ */const MR=Ve("Shapes",[["path",{d:"M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z",key:"1bo67w"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}],["circle",{cx:"17.5",cy:"17.5",r:"3.5",key:"w3z12y"}]]);/**
175
184
  * @license lucide-react v0.468.0 - ISC
176
185
  *
177
186
  * This source code is licensed under the ISC license.
178
187
  * See the LICENSE file in the root directory of this source tree.
179
- */const MI=Ve("Triangle",[["path",{d:"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"14u9p9"}]]);/**
188
+ */const RR=Ve("Triangle",[["path",{d:"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"14u9p9"}]]);/**
180
189
  * @license lucide-react v0.468.0 - ISC
181
190
  *
182
191
  * This source code is licensed under the ISC license.
183
192
  * See the LICENSE file in the root directory of this source tree.
184
- */const Gi=Ve("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);function Q$(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Q$(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ue(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Q$(e))&&(r&&(r+=" "),r+=t);return r}var II=Array.isArray,jt=II,RI=typeof mu=="object"&&mu&&mu.Object===Object&&mu,Z$=RI,LI=Z$,DI=typeof self=="object"&&self&&self.Object===Object&&self,FI=LI||DI||Function("return this")(),An=FI,BI=An,zI=BI.Symbol,jo=zI,$b=jo,J$=Object.prototype,UI=J$.hasOwnProperty,HI=J$.toString,nl=$b?$b.toStringTag:void 0;function WI(e){var t=UI.call(e,nl),n=e[nl];try{e[nl]=void 0;var r=!0}catch{}var i=HI.call(e);return r&&(t?e[nl]=n:delete e[nl]),i}var VI=WI,KI=Object.prototype,GI=KI.toString;function qI(e){return GI.call(e)}var YI=qI,Pb=jo,XI=VI,QI=YI,ZI="[object Null]",JI="[object Undefined]",jb=Pb?Pb.toStringTag:void 0;function eR(e){return e==null?e===void 0?JI:ZI:jb&&jb in Object(e)?XI(e):QI(e)}var Cr=eR;function tR(e){return e!=null&&typeof e=="object"}var Cn=tR,nR=Cr,rR=Cn,iR="[object Symbol]";function aR(e){return typeof e=="symbol"||rR(e)&&nR(e)==iR}var To=aR,oR=jt,lR=To,sR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,uR=/^\w*$/;function cR(e,t){if(oR(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||lR(e)?!0:uR.test(e)||!sR.test(e)||t!=null&&e in Object(t)}var Oy=cR;function fR(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var kn=fR;const Ao=me(kn);var dR=Cr,pR=kn,hR="[object AsyncFunction]",mR="[object Function]",vR="[object GeneratorFunction]",gR="[object Proxy]";function yR(e){if(!pR(e))return!1;var t=dR(e);return t==mR||t==vR||t==hR||t==gR}var $y=yR;const te=me($y);var xR=An,bR=xR["__core-js_shared__"],wR=bR,Qp=wR,Tb=function(){var e=/[^.]+$/.exec(Qp&&Qp.keys&&Qp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function _R(e){return!!Tb&&Tb in e}var SR=_R,ER=Function.prototype,OR=ER.toString;function $R(e){if(e!=null){try{return OR.call(e)}catch{}try{return e+""}catch{}}return""}var eP=$R,PR=$y,jR=SR,TR=kn,AR=eP,CR=/[\\^$.*+?()[\]{}|]/g,kR=/^\[object .+?Constructor\]$/,NR=Function.prototype,MR=Object.prototype,IR=NR.toString,RR=MR.hasOwnProperty,LR=RegExp("^"+IR.call(RR).replace(CR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function DR(e){if(!TR(e)||jR(e))return!1;var t=PR(e)?LR:kR;return t.test(AR(e))}var FR=DR;function BR(e,t){return e==null?void 0:e[t]}var zR=BR,UR=FR,HR=zR;function WR(e,t){var n=HR(e,t);return UR(n)?n:void 0}var ia=WR,VR=ia,KR=VR(Object,"create"),fd=KR,Ab=fd;function GR(){this.__data__=Ab?Ab(null):{},this.size=0}var qR=GR;function YR(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var XR=YR,QR=fd,ZR="__lodash_hash_undefined__",JR=Object.prototype,e3=JR.hasOwnProperty;function t3(e){var t=this.__data__;if(QR){var n=t[e];return n===ZR?void 0:n}return e3.call(t,e)?t[e]:void 0}var n3=t3,r3=fd,i3=Object.prototype,a3=i3.hasOwnProperty;function o3(e){var t=this.__data__;return r3?t[e]!==void 0:a3.call(t,e)}var l3=o3,s3=fd,u3="__lodash_hash_undefined__";function c3(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=s3&&t===void 0?u3:t,this}var f3=c3,d3=qR,p3=XR,h3=n3,m3=l3,v3=f3;function Co(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Co.prototype.clear=d3;Co.prototype.delete=p3;Co.prototype.get=h3;Co.prototype.has=m3;Co.prototype.set=v3;var g3=Co;function y3(){this.__data__=[],this.size=0}var x3=y3;function b3(e,t){return e===t||e!==e&&t!==t}var dd=b3,w3=dd;function _3(e,t){for(var n=e.length;n--;)if(w3(e[n][0],t))return n;return-1}var pd=_3,S3=pd,E3=Array.prototype,O3=E3.splice;function $3(e){var t=this.__data__,n=S3(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():O3.call(t,n,1),--this.size,!0}var P3=$3,j3=pd;function T3(e){var t=this.__data__,n=j3(t,e);return n<0?void 0:t[n][1]}var A3=T3,C3=pd;function k3(e){return C3(this.__data__,e)>-1}var N3=k3,M3=pd;function I3(e,t){var n=this.__data__,r=M3(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var R3=I3,L3=x3,D3=P3,F3=A3,B3=N3,z3=R3;function ko(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ko.prototype.clear=L3;ko.prototype.delete=D3;ko.prototype.get=F3;ko.prototype.has=B3;ko.prototype.set=z3;var hd=ko,U3=ia,H3=An,W3=U3(H3,"Map"),Py=W3,Cb=g3,V3=hd,K3=Py;function G3(){this.size=0,this.__data__={hash:new Cb,map:new(K3||V3),string:new Cb}}var q3=G3;function Y3(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var X3=Y3,Q3=X3;function Z3(e,t){var n=e.__data__;return Q3(t)?n[typeof t=="string"?"string":"hash"]:n.map}var md=Z3,J3=md;function e5(e){var t=J3(this,e).delete(e);return this.size-=t?1:0,t}var t5=e5,n5=md;function r5(e){return n5(this,e).get(e)}var i5=r5,a5=md;function o5(e){return a5(this,e).has(e)}var l5=o5,s5=md;function u5(e,t){var n=s5(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var c5=u5,f5=q3,d5=t5,p5=i5,h5=l5,m5=c5;function No(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}No.prototype.clear=f5;No.prototype.delete=d5;No.prototype.get=p5;No.prototype.has=h5;No.prototype.set=m5;var jy=No,tP=jy,v5="Expected a function";function Ty(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(v5);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Ty.Cache||tP),n}Ty.Cache=tP;var nP=Ty;const g5=me(nP);var y5=nP,x5=500;function b5(e){var t=y5(e,function(r){return n.size===x5&&n.clear(),r}),n=t.cache;return t}var w5=b5,_5=w5,S5=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,E5=/\\(\\)?/g,O5=_5(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(S5,function(n,r,i,a){t.push(i?a.replace(E5,"$1"):r||n)}),t}),$5=O5;function P5(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var vd=P5,kb=jo,j5=vd,T5=jt,A5=To,C5=1/0,Nb=kb?kb.prototype:void 0,Mb=Nb?Nb.toString:void 0;function rP(e){if(typeof e=="string")return e;if(T5(e))return j5(e,rP)+"";if(A5(e))return Mb?Mb.call(e):"";var t=e+"";return t=="0"&&1/e==-C5?"-0":t}var k5=rP,N5=k5;function M5(e){return e==null?"":N5(e)}var iP=M5,I5=jt,R5=Oy,L5=$5,D5=iP;function F5(e,t){return I5(e)?e:R5(e,t)?[e]:L5(D5(e))}var gd=F5,B5=To,z5=1/0;function U5(e){if(typeof e=="string"||B5(e))return e;var t=e+"";return t=="0"&&1/e==-z5?"-0":t}var Gs=U5,H5=gd,W5=Gs;function V5(e,t){t=H5(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[W5(t[n++])];return n&&n==r?e:void 0}var yd=V5,K5=yd;function G5(e,t,n){var r=e==null?void 0:K5(e,t);return r===void 0?n:r}var aP=G5;const En=me(aP);function q5(e){return e==null}var Y5=q5;const le=me(Y5);var X5=Cr,Q5=jt,Z5=Cn,J5="[object String]";function eL(e){return typeof e=="string"||!Q5(e)&&Z5(e)&&X5(e)==J5}var tL=eL;const Mo=me(tL);var oP={exports:{}},ve={};/**
193
+ */const Gi=Ve("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);function eP(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=eP(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ue(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=eP(e))&&(r&&(r+=" "),r+=t);return r}var IR=Array.isArray,jt=IR,LR=typeof mu=="object"&&mu&&mu.Object===Object&&mu,tP=LR,DR=tP,FR=typeof self=="object"&&self&&self.Object===Object&&self,BR=DR||FR||Function("return this")(),Cn=BR,zR=Cn,UR=zR.Symbol,ja=UR,Ob=ja,nP=Object.prototype,HR=nP.hasOwnProperty,WR=nP.toString,nl=Ob?Ob.toStringTag:void 0;function VR(e){var t=HR.call(e,nl),n=e[nl];try{e[nl]=void 0;var r=!0}catch{}var i=WR.call(e);return r&&(t?e[nl]=n:delete e[nl]),i}var KR=VR,GR=Object.prototype,qR=GR.toString;function XR(e){return qR.call(e)}var YR=XR,$b=ja,QR=KR,ZR=YR,JR="[object Null]",eI="[object Undefined]",Pb=$b?$b.toStringTag:void 0;function tI(e){return e==null?e===void 0?eI:JR:Pb&&Pb in Object(e)?QR(e):ZR(e)}var Cr=tI;function nI(e){return e!=null&&typeof e=="object"}var kn=nI,rI=Cr,iI=kn,oI="[object Symbol]";function aI(e){return typeof e=="symbol"||iI(e)&&rI(e)==oI}var Ta=aI,lI=jt,sI=Ta,uI=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cI=/^\w*$/;function fI(e,t){if(lI(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||sI(e)?!0:cI.test(e)||!uI.test(e)||t!=null&&e in Object(t)}var Oy=fI;function dI(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Nn=dI;const Aa=me(Nn);var pI=Cr,hI=Nn,mI="[object AsyncFunction]",vI="[object Function]",gI="[object GeneratorFunction]",yI="[object Proxy]";function xI(e){if(!hI(e))return!1;var t=pI(e);return t==vI||t==gI||t==mI||t==yI}var $y=xI;const te=me($y);var bI=Cn,wI=bI["__core-js_shared__"],_I=wI,Zp=_I,jb=function(){var e=/[^.]+$/.exec(Zp&&Zp.keys&&Zp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function SI(e){return!!jb&&jb in e}var EI=SI,OI=Function.prototype,$I=OI.toString;function PI(e){if(e!=null){try{return $I.call(e)}catch{}try{return e+""}catch{}}return""}var rP=PI,jI=$y,TI=EI,AI=Nn,CI=rP,kI=/[\\^$.*+?()[\]{}|]/g,NI=/^\[object .+?Constructor\]$/,MI=Function.prototype,RI=Object.prototype,II=MI.toString,LI=RI.hasOwnProperty,DI=RegExp("^"+II.call(LI).replace(kI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function FI(e){if(!AI(e)||TI(e))return!1;var t=jI(e)?DI:NI;return t.test(CI(e))}var BI=FI;function zI(e,t){return e==null?void 0:e[t]}var UI=zI,HI=BI,WI=UI;function VI(e,t){var n=WI(e,t);return HI(n)?n:void 0}var io=VI,KI=io,GI=KI(Object,"create"),fd=GI,Tb=fd;function qI(){this.__data__=Tb?Tb(null):{},this.size=0}var XI=qI;function YI(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var QI=YI,ZI=fd,JI="__lodash_hash_undefined__",e3=Object.prototype,t3=e3.hasOwnProperty;function n3(e){var t=this.__data__;if(ZI){var n=t[e];return n===JI?void 0:n}return t3.call(t,e)?t[e]:void 0}var r3=n3,i3=fd,o3=Object.prototype,a3=o3.hasOwnProperty;function l3(e){var t=this.__data__;return i3?t[e]!==void 0:a3.call(t,e)}var s3=l3,u3=fd,c3="__lodash_hash_undefined__";function f3(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=u3&&t===void 0?c3:t,this}var d3=f3,p3=XI,h3=QI,m3=r3,v3=s3,g3=d3;function Ca(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ca.prototype.clear=p3;Ca.prototype.delete=h3;Ca.prototype.get=m3;Ca.prototype.has=v3;Ca.prototype.set=g3;var y3=Ca;function x3(){this.__data__=[],this.size=0}var b3=x3;function w3(e,t){return e===t||e!==e&&t!==t}var dd=w3,_3=dd;function S3(e,t){for(var n=e.length;n--;)if(_3(e[n][0],t))return n;return-1}var pd=S3,E3=pd,O3=Array.prototype,$3=O3.splice;function P3(e){var t=this.__data__,n=E3(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():$3.call(t,n,1),--this.size,!0}var j3=P3,T3=pd;function A3(e){var t=this.__data__,n=T3(t,e);return n<0?void 0:t[n][1]}var C3=A3,k3=pd;function N3(e){return k3(this.__data__,e)>-1}var M3=N3,R3=pd;function I3(e,t){var n=this.__data__,r=R3(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var L3=I3,D3=b3,F3=j3,B3=C3,z3=M3,U3=L3;function ka(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ka.prototype.clear=D3;ka.prototype.delete=F3;ka.prototype.get=B3;ka.prototype.has=z3;ka.prototype.set=U3;var hd=ka,H3=io,W3=Cn,V3=H3(W3,"Map"),Py=V3,Ab=y3,K3=hd,G3=Py;function q3(){this.size=0,this.__data__={hash:new Ab,map:new(G3||K3),string:new Ab}}var X3=q3;function Y3(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var Q3=Y3,Z3=Q3;function J3(e,t){var n=e.__data__;return Z3(t)?n[typeof t=="string"?"string":"hash"]:n.map}var md=J3,eL=md;function tL(e){var t=eL(this,e).delete(e);return this.size-=t?1:0,t}var nL=tL,rL=md;function iL(e){return rL(this,e).get(e)}var oL=iL,aL=md;function lL(e){return aL(this,e).has(e)}var sL=lL,uL=md;function cL(e,t){var n=uL(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var fL=cL,dL=X3,pL=nL,hL=oL,mL=sL,vL=fL;function Na(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Na.prototype.clear=dL;Na.prototype.delete=pL;Na.prototype.get=hL;Na.prototype.has=mL;Na.prototype.set=vL;var jy=Na,iP=jy,gL="Expected a function";function Ty(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(gL);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ty.Cache||iP),n}Ty.Cache=iP;var oP=Ty;const yL=me(oP);var xL=oP,bL=500;function wL(e){var t=xL(e,function(r){return n.size===bL&&n.clear(),r}),n=t.cache;return t}var _L=wL,SL=_L,EL=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,OL=/\\(\\)?/g,$L=SL(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(EL,function(n,r,i,o){t.push(i?o.replace(OL,"$1"):r||n)}),t}),PL=$L;function jL(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var vd=jL,Cb=ja,TL=vd,AL=jt,CL=Ta,kL=1/0,kb=Cb?Cb.prototype:void 0,Nb=kb?kb.toString:void 0;function aP(e){if(typeof e=="string")return e;if(AL(e))return TL(e,aP)+"";if(CL(e))return Nb?Nb.call(e):"";var t=e+"";return t=="0"&&1/e==-kL?"-0":t}var NL=aP,ML=NL;function RL(e){return e==null?"":ML(e)}var lP=RL,IL=jt,LL=Oy,DL=PL,FL=lP;function BL(e,t){return IL(e)?e:LL(e,t)?[e]:DL(FL(e))}var gd=BL,zL=Ta,UL=1/0;function HL(e){if(typeof e=="string"||zL(e))return e;var t=e+"";return t=="0"&&1/e==-UL?"-0":t}var Gs=HL,WL=gd,VL=Gs;function KL(e,t){t=WL(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[VL(t[n++])];return n&&n==r?e:void 0}var yd=KL,GL=yd;function qL(e,t,n){var r=e==null?void 0:GL(e,t);return r===void 0?n:r}var sP=qL;const $n=me(sP);function XL(e){return e==null}var YL=XL;const le=me(YL);var QL=Cr,ZL=jt,JL=kn,e5="[object String]";function t5(e){return typeof e=="string"||!ZL(e)&&JL(e)&&QL(e)==e5}var n5=t5;const Ma=me(n5);var uP={exports:{}},ve={};/**
185
194
  * @license React
186
195
  * react-is.production.min.js
187
196
  *
@@ -189,78 +198,78 @@ Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}
189
198
  *
190
199
  * This source code is licensed under the MIT license found in the
191
200
  * LICENSE file in the root directory of this source tree.
192
- */var Ay=Symbol.for("react.element"),Cy=Symbol.for("react.portal"),xd=Symbol.for("react.fragment"),bd=Symbol.for("react.strict_mode"),wd=Symbol.for("react.profiler"),_d=Symbol.for("react.provider"),Sd=Symbol.for("react.context"),nL=Symbol.for("react.server_context"),Ed=Symbol.for("react.forward_ref"),Od=Symbol.for("react.suspense"),$d=Symbol.for("react.suspense_list"),Pd=Symbol.for("react.memo"),jd=Symbol.for("react.lazy"),rL=Symbol.for("react.offscreen"),lP;lP=Symbol.for("react.module.reference");function hn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ay:switch(e=e.type,e){case xd:case wd:case bd:case Od:case $d:return e;default:switch(e=e&&e.$$typeof,e){case nL:case Sd:case Ed:case jd:case Pd:case _d:return e;default:return t}}case Cy:return t}}}ve.ContextConsumer=Sd;ve.ContextProvider=_d;ve.Element=Ay;ve.ForwardRef=Ed;ve.Fragment=xd;ve.Lazy=jd;ve.Memo=Pd;ve.Portal=Cy;ve.Profiler=wd;ve.StrictMode=bd;ve.Suspense=Od;ve.SuspenseList=$d;ve.isAsyncMode=function(){return!1};ve.isConcurrentMode=function(){return!1};ve.isContextConsumer=function(e){return hn(e)===Sd};ve.isContextProvider=function(e){return hn(e)===_d};ve.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ay};ve.isForwardRef=function(e){return hn(e)===Ed};ve.isFragment=function(e){return hn(e)===xd};ve.isLazy=function(e){return hn(e)===jd};ve.isMemo=function(e){return hn(e)===Pd};ve.isPortal=function(e){return hn(e)===Cy};ve.isProfiler=function(e){return hn(e)===wd};ve.isStrictMode=function(e){return hn(e)===bd};ve.isSuspense=function(e){return hn(e)===Od};ve.isSuspenseList=function(e){return hn(e)===$d};ve.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===xd||e===wd||e===bd||e===Od||e===$d||e===rL||typeof e=="object"&&e!==null&&(e.$$typeof===jd||e.$$typeof===Pd||e.$$typeof===_d||e.$$typeof===Sd||e.$$typeof===Ed||e.$$typeof===lP||e.getModuleId!==void 0)};ve.typeOf=hn;oP.exports=ve;var iL=oP.exports,aL=Cr,oL=Cn,lL="[object Number]";function sL(e){return typeof e=="number"||oL(e)&&aL(e)==lL}var sP=sL;const uP=me(sP);var uL=sP;function cL(e){return uL(e)&&e!=+e}var fL=cL;const qs=me(fL);var on=function(t){return t===0?0:t>0?1:-1},ki=function(t){return Mo(t)&&t.indexOf("%")===t.length-1},G=function(t){return uP(t)&&!qs(t)},Je=function(t){return G(t)||Mo(t)},dL=0,Td=function(t){var n=++dL;return"".concat(t||"").concat(n)},kt=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!G(t)&&!Mo(t))return r;var a;if(ki(t)){var o=t.indexOf("%");a=n*parseFloat(t.slice(0,o))/100}else a=+t;return qs(a)&&(a=r),i&&a>n&&(a=n),a},ha=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},pL=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i<n;i++)if(!r[t[i]])r[t[i]]=!0;else return!0;return!1},Zt=function(t,n){return G(t)&&G(n)?function(r){return t+r*(n-t)}:function(){return n}};function Lm(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):En(r,t))===n})}function Dm(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function Fm(e){"@babel/helpers - typeof";return Fm=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},Fm(e)}var hL=["viewBox","children"],mL=["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"],Ib=["points","pathLength"],Zp={svg:hL,polygon:Ib,polyline:Ib},ky=["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"],zc=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(w.isValidElement(t)&&(r=t.props),!Ao(r))return null;var i={};return Object.keys(r).forEach(function(a){ky.includes(a)&&(i[a]=n||function(o){return r[a](r,o)})}),i},vL=function(t,n,r){return function(i){return t(n,r,i),null}},Ys=function(t,n,r){if(!Ao(t)||Fm(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];ky.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=vL(o,n,r))}),i},gL=["children"],yL=["children"];function Rb(e,t){if(e==null)return{};var n=xL(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xL(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Lb={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"},fr=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Db=null,Jp=null,Ny=function e(t){if(t===Db&&Array.isArray(Jp))return Jp;var n=[];return w.Children.forEach(t,function(r){le(r)||(iL.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),Jp=n,Db=t,n};function On(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return fr(i)}):r=[fr(t)],Ny(e).forEach(function(i){var a=En(i,"type.displayName")||En(i,"type.name");r.indexOf(a)!==-1&&n.push(i)}),n}function Jt(e,t){var n=On(e,t);return n&&n[0]}var Fb=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!G(r)||r<=0||!G(i)||i<=0)},bL=["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"],wL=function(t){return t&&t.type&&Mo(t.type)&&bL.indexOf(t.type)>=0},_L=function(t,n,r,i){var a,o=(a=Zp==null?void 0:Zp[i])!==null&&a!==void 0?a:[];return!te(t)&&(i&&o.includes(n)||mL.includes(n))||r&&ky.includes(n)},ne=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(w.isValidElement(t)&&(i=t.props),!Ao(i))return null;var a={};return Object.keys(i).forEach(function(o){var l;_L((l=i)===null||l===void 0?void 0:l[o],o,n,r)&&(a[o]=i[o])}),a},Bm=function e(t,n){if(t===n)return!0;var r=w.Children.count(t);if(r!==w.Children.count(n))return!1;if(r===0)return!0;if(r===1)return Bb(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var a=t[i],o=n[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!Bb(a,o))return!1}return!0},Bb=function(t,n){if(le(t)&&le(n))return!0;if(!le(t)&&!le(n)){var r=t.props||{},i=r.children,a=Rb(r,gL),o=n.props||{},l=o.children,s=Rb(o,yL);return i&&l?Dm(a,s)&&Bm(i,l):!i&&!l?Dm(a,s):!1}return!1},zb=function(t,n){var r=[],i={};return Ny(t).forEach(function(a,o){if(wL(a))r.push(a);else if(a){var l=fr(a.type),s=n[l]||{},u=s.handler,c=s.once;if(u&&(!c||!i[l])){var f=u(a,l,o);r.push(f),i[l]=!0}}}),r},SL=function(t){var n=t&&t.type;return n&&Lb[n]?Lb[n]:null},EL=function(t,n){return Ny(n).indexOf(t)},OL=["children","width","height","viewBox","className","style","title","desc"];function zm(){return zm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zm.apply(this,arguments)}function $L(e,t){if(e==null)return{};var n=PL(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function PL(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Um(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,a=e.className,o=e.style,l=e.title,s=e.desc,u=$L(e,OL),c=i||{width:n,height:r,x:0,y:0},f=ue("recharts-surface",a);return j.createElement("svg",zm({},ne(u,!0,"svg"),{className:f,width:n,height:r,style:o,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height)}),j.createElement("title",null,l),j.createElement("desc",null,s),t)}var jL=["children","className"];function Hm(){return Hm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hm.apply(this,arguments)}function TL(e,t){if(e==null)return{};var n=AL(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function AL(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Te=j.forwardRef(function(e,t){var n=e.children,r=e.className,i=TL(e,jL),a=ue("recharts-layer",r);return j.createElement("g",Hm({className:a},ne(i,!0),{ref:t}),n)}),dr=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a]};function CL(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}var cP=CL,kL=cP;function NL(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:kL(e,t,n)}var ML=NL,IL="\\ud800-\\udfff",RL="\\u0300-\\u036f",LL="\\ufe20-\\ufe2f",DL="\\u20d0-\\u20ff",FL=RL+LL+DL,BL="\\ufe0e\\ufe0f",zL="\\u200d",UL=RegExp("["+zL+IL+FL+BL+"]");function HL(e){return UL.test(e)}var fP=HL;function WL(e){return e.split("")}var VL=WL,dP="\\ud800-\\udfff",KL="\\u0300-\\u036f",GL="\\ufe20-\\ufe2f",qL="\\u20d0-\\u20ff",YL=KL+GL+qL,XL="\\ufe0e\\ufe0f",QL="["+dP+"]",Wm="["+YL+"]",Vm="\\ud83c[\\udffb-\\udfff]",ZL="(?:"+Wm+"|"+Vm+")",pP="[^"+dP+"]",hP="(?:\\ud83c[\\udde6-\\uddff]){2}",mP="[\\ud800-\\udbff][\\udc00-\\udfff]",JL="\\u200d",vP=ZL+"?",gP="["+XL+"]?",eD="(?:"+JL+"(?:"+[pP,hP,mP].join("|")+")"+gP+vP+")*",tD=gP+vP+eD,nD="(?:"+[pP+Wm+"?",Wm,hP,mP,QL].join("|")+")",rD=RegExp(Vm+"(?="+Vm+")|"+nD+tD,"g");function iD(e){return e.match(rD)||[]}var aD=iD,oD=VL,lD=fP,sD=aD;function uD(e){return lD(e)?sD(e):oD(e)}var cD=uD,fD=ML,dD=fP,pD=cD,hD=iP;function mD(e){return function(t){t=hD(t);var n=dD(t)?pD(t):void 0,r=n?n[0]:t.charAt(0),i=n?fD(n,1).join(""):t.slice(1);return r[e]()+i}}var vD=mD,gD=vD,yD=gD("toUpperCase"),xD=yD;const Ad=me(xD);function we(e){return function(){return e}}const yP=Math.cos,Uc=Math.sin,Nn=Math.sqrt,Hc=Math.PI,Cd=2*Hc,Km=Math.PI,Gm=2*Km,Ei=1e-6,bD=Gm-Ei;function xP(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function wD(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return xP;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class _D{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?xP:wD(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,a,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,l=this._y1,s=r-t,u=i-n,c=o-t,f=l-n,d=c*c+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(d>Ei)if(!(Math.abs(f*s-u*c)>Ei)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-o,h=i-l,m=s*s+u*u,b=p*p+h*h,v=Math.sqrt(m),y=Math.sqrt(d),x=a*Math.tan((Km-Math.acos((m+d-b)/(2*v*y)))/2),E=x/y,_=x/v;Math.abs(E-1)>Ei&&this._append`L${t+E*c},${n+E*f}`,this._append`A${a},${a},0,0,${+(f*p>c*h)},${this._x1=t+_*s},${this._y1=n+_*u}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(i),s=r*Math.sin(i),u=t+l,c=n+s,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>Ei||Math.abs(this._y1-c)>Ei)&&this._append`L${u},${c}`,r&&(d<0&&(d=d%Gm+Gm),d>bD?this._append`A${r},${r},0,1,${f},${t-l},${n-s}A${r},${r},0,1,${f},${this._x1=u},${this._y1=c}`:d>Ei&&this._append`A${r},${r},0,${+(d>=Km)},${f},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function My(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new _D(t)}function Iy(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function bP(e){this._context=e}bP.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 kd(e){return new bP(e)}function wP(e){return e[0]}function _P(e){return e[1]}function SP(e,t){var n=we(!0),r=null,i=kd,a=null,o=My(l);e=typeof e=="function"?e:e===void 0?wP:we(e),t=typeof t=="function"?t:t===void 0?_P:we(t);function l(s){var u,c=(s=Iy(s)).length,f,d=!1,p;for(r==null&&(a=i(p=o())),u=0;u<=c;++u)!(u<c&&n(f=s[u],u,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,u,s),+t(f,u,s));if(p)return a=null,p+""||null}return l.x=function(s){return arguments.length?(e=typeof s=="function"?s:we(+s),l):e},l.y=function(s){return arguments.length?(t=typeof s=="function"?s:we(+s),l):t},l.defined=function(s){return arguments.length?(n=typeof s=="function"?s:we(!!s),l):n},l.curve=function(s){return arguments.length?(i=s,r!=null&&(a=i(r)),l):i},l.context=function(s){return arguments.length?(s==null?r=a=null:a=i(r=s),l):r},l}function Mu(e,t,n){var r=null,i=we(!0),a=null,o=kd,l=null,s=My(u);e=typeof e=="function"?e:e===void 0?wP:we(+e),t=typeof t=="function"?t:we(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?_P:we(+n);function u(f){var d,p,h,m=(f=Iy(f)).length,b,v=!1,y,x=new Array(m),E=new Array(m);for(a==null&&(l=o(y=s())),d=0;d<=m;++d){if(!(d<m&&i(b=f[d],d,f))===v)if(v=!v)p=d,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),h=d-1;h>=p;--h)l.point(x[h],E[h]);l.lineEnd(),l.areaEnd()}v&&(x[d]=+e(b,d,f),E[d]=+t(b,d,f),l.point(r?+r(b,d,f):x[d],n?+n(b,d,f):E[d]))}if(y)return l=null,y+""||null}function c(){return SP().defined(i).curve(o).context(a)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:we(+f),r=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:we(+f),u):e},u.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:we(+f),u):r},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:we(+f),n=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:we(+f),u):t},u.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:we(+f),u):n},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(n)},u.lineX1=function(){return c().x(r).y(t)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:we(!!f),u):i},u.curve=function(f){return arguments.length?(o=f,a!=null&&(l=o(a)),u):o},u.context=function(f){return arguments.length?(f==null?a=l=null:l=o(a=f),u):a},u}class EP{constructor(t,n){this._context=t,this._x=n}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,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function SD(e){return new EP(e,!0)}function ED(e){return new EP(e,!1)}const Ry={draw(e,t){const n=Nn(t/Hc);e.moveTo(n,0),e.arc(0,0,n,0,Cd)}},OD={draw(e,t){const n=Nn(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},OP=Nn(1/3),$D=OP*2,PD={draw(e,t){const n=Nn(t/$D),r=n*OP;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},jD={draw(e,t){const n=Nn(t),r=-n/2;e.rect(r,r,n,n)}},TD=.8908130915292852,$P=Uc(Hc/10)/Uc(7*Hc/10),AD=Uc(Cd/10)*$P,CD=-yP(Cd/10)*$P,kD={draw(e,t){const n=Nn(t*TD),r=AD*n,i=CD*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const o=Cd*a/5,l=yP(o),s=Uc(o);e.lineTo(s*n,-l*n),e.lineTo(l*r-s*i,s*r+l*i)}e.closePath()}},eh=Nn(3),ND={draw(e,t){const n=-Nn(t/(eh*3));e.moveTo(0,n*2),e.lineTo(-eh*n,-n),e.lineTo(eh*n,-n),e.closePath()}},Yt=-.5,Xt=Nn(3)/2,qm=1/Nn(12),MD=(qm/2+1)*3,ID={draw(e,t){const n=Nn(t/MD),r=n/2,i=n*qm,a=r,o=n*qm+n,l=-a,s=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(l,s),e.lineTo(Yt*r-Xt*i,Xt*r+Yt*i),e.lineTo(Yt*a-Xt*o,Xt*a+Yt*o),e.lineTo(Yt*l-Xt*s,Xt*l+Yt*s),e.lineTo(Yt*r+Xt*i,Yt*i-Xt*r),e.lineTo(Yt*a+Xt*o,Yt*o-Xt*a),e.lineTo(Yt*l+Xt*s,Yt*s-Xt*l),e.closePath()}};function RD(e,t){let n=null,r=My(i);e=typeof e=="function"?e:we(e||Ry),t=typeof t=="function"?t:we(t===void 0?64:+t);function i(){let a;if(n||(n=a=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:we(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:we(+a),i):t},i.context=function(a){return arguments.length?(n=a??null,i):n},i}function Wc(){}function Vc(e,t,n){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+n)/6)}function PP(e){this._context=e}PP.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:Vc(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:Vc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function LD(e){return new PP(e)}function jP(e){this._context=e}jP.prototype={areaStart:Wc,areaEnd:Wc,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:Vc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function DD(e){return new jP(e)}function TP(e){this._context=e}TP.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 n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Vc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function FD(e){return new TP(e)}function AP(e){this._context=e}AP.prototype={areaStart:Wc,areaEnd:Wc,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 BD(e){return new AP(e)}function Ub(e){return e<0?-1:1}function Hb(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),l=(a*i+o*r)/(r+i);return(Ub(a)+Ub(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function Wb(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function th(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,l=(a-r)/3;e._context.bezierCurveTo(r+l,i+l*t,a-l,o-l*n,a,o)}function Kc(e){this._context=e}Kc.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:th(this,this._t0,Wb(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 n=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,th(this,Wb(this,n=Hb(this,e,t)),n);break;default:th(this,this._t0,n=Hb(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function CP(e){this._context=new kP(e)}(CP.prototype=Object.create(Kc.prototype)).point=function(e,t){Kc.prototype.point.call(this,t,e)};function kP(e){this._context=e}kP.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,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function zD(e){return new Kc(e)}function UD(e){return new CP(e)}function NP(e){this._context=e}NP.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,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Vb(e),i=Vb(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===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 Vb(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function HD(e){return new NP(e)}function Nd(e,t){this._context=e,this._t=t}Nd.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 n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function WD(e){return new Nd(e,.5)}function VD(e){return new Nd(e,0)}function KD(e){return new Nd(e,1)}function Ya(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,l=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<l;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Ym(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function GD(e,t){return e[t]}function qD(e){const t=[];return t.key=e,t}function YD(){var e=we([]),t=Ym,n=Ya,r=GD;function i(a){var o=Array.from(e.apply(this,arguments),qD),l,s=o.length,u=-1,c;for(const f of a)for(l=0,++u;l<s;++l)(o[l][u]=[0,+r(f,o[l].key,u,a)]).data=f;for(l=0,c=Iy(t(o));l<s;++l)o[c[l]].index=l;return n(o,c),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:we(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:we(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?Ym:typeof a=="function"?a:we(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??Ya,i):n},i}function XD(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}Ya(e,t)}}function QD(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,l=0;o<i;++o)l+=e[o][n][1]||0;r[n][1]+=r[n][0]=-l/2}Ya(e,t)}}function ZD(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r<a;++r){for(var l=0,s=0,u=0;l<o;++l){for(var c=e[t[l]],f=c[r][1]||0,d=c[r-1][1]||0,p=(f-d)/2,h=0;h<l;++h){var m=e[t[h]],b=m[r][1]||0,v=m[r-1][1]||0;p+=b-v}s+=f,u+=p*f}i[r-1][1]+=i[r-1][0]=n,s&&(n-=u/s)}i[r-1][1]+=i[r-1][0]=n,Ya(e,t)}}function ts(e){"@babel/helpers - typeof";return ts=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},ts(e)}var JD=["type","size","sizeType"];function Xm(){return Xm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xm.apply(this,arguments)}function Kb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Kb(Object(n),!0).forEach(function(r){e4(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function e4(e,t,n){return t=t4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t4(e){var t=n4(e,"string");return ts(t)=="symbol"?t:t+""}function n4(e,t){if(ts(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ts(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function r4(e,t){if(e==null)return{};var n=i4(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function i4(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var MP={symbolCircle:Ry,symbolCross:OD,symbolDiamond:PD,symbolSquare:jD,symbolStar:kD,symbolTriangle:ND,symbolWye:ID},a4=Math.PI/180,o4=function(t){var n="symbol".concat(Ad(t));return MP[n]||Ry},l4=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*a4;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}},s4=function(t,n){MP["symbol".concat(Ad(t))]=n},Ly=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,a=i===void 0?64:i,o=t.sizeType,l=o===void 0?"area":o,s=r4(t,JD),u=Gb(Gb({},s),{},{type:r,size:a,sizeType:l}),c=function(){var b=o4(r),v=RD().type(b).size(l4(a,l,r));return v()},f=u.className,d=u.cx,p=u.cy,h=ne(u,!0);return d===+d&&p===+p&&a===+a?j.createElement("path",Xm({},h,{className:ue("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(p,")"),d:c()})):null};Ly.registerSymbol=s4;function Xa(e){"@babel/helpers - typeof";return Xa=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},Xa(e)}function Qm(){return Qm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qm.apply(this,arguments)}function qb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function u4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qb(Object(n),!0).forEach(function(r){ns(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function c4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,RP(r.key),r)}}function d4(e,t,n){return t&&f4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function p4(e,t,n){return t=Gc(t),h4(e,IP()?Reflect.construct(t,n||[],Gc(e).constructor):t.apply(e,n))}function h4(e,t){if(t&&(Xa(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return m4(e)}function m4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(IP=function(){return!!e})()}function Gc(e){return Gc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gc(e)}function v4(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&&Zm(e,t)}function Zm(e,t){return Zm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Zm(e,t)}function ns(e,t,n){return t=RP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RP(e){var t=g4(e,"string");return Xa(t)=="symbol"?t:t+""}function g4(e,t){if(Xa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Xa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qt=32,Dy=function(e){function t(){return c4(this,t),p4(this,t,arguments)}return v4(t,e),d4(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,a=Qt/2,o=Qt/6,l=Qt/3,s=r.inactive?i:r.color;if(r.type==="plainline")return j.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:a,x2:Qt,y2:a,className:"recharts-legend-icon"});if(r.type==="line")return j.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(a,"h").concat(l,`
193
- A`).concat(o,",").concat(o,",0,1,1,").concat(2*l,",").concat(a,`
194
- H`).concat(Qt,"M").concat(2*l,",").concat(a,`
195
- A`).concat(o,",").concat(o,",0,1,1,").concat(l,",").concat(a),className:"recharts-legend-icon"});if(r.type==="rect")return j.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(Qt/8,"h").concat(Qt,"v").concat(Qt*3/4,"h").concat(-Qt,"z"),className:"recharts-legend-icon"});if(j.isValidElement(r.legendIcon)){var u=u4({},r);return delete u.legendIcon,j.cloneElement(r.legendIcon,u)}return j.createElement(Ly,{fill:s,cx:a,cy:a,size:Qt,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,a=i.payload,o=i.iconSize,l=i.layout,s=i.formatter,u=i.inactiveColor,c={x:0,y:0,width:Qt,height:Qt},f={display:l==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,h){var m=p.formatter||s,b=ue(ns(ns({"recharts-legend-item":!0},"legend-item-".concat(h),!0),"inactive",p.inactive));if(p.type==="none")return null;var v=te(p.value)?null:p.value;dr(!te(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 y=p.inactive?u:p.color;return j.createElement("li",Qm({className:b,style:f,key:"legend-item-".concat(h)},Ys(r.props,p,h)),j.createElement(Um,{width:o,height:o,viewBox:c,style:d},r.renderIcon(p)),j.createElement("span",{className:"recharts-legend-item-text",style:{color:y}},m?m(v,p,h):v))})}},{key:"render",value:function(){var r=this.props,i=r.payload,a=r.layout,o=r.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return j.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(w.PureComponent);ns(Dy,"displayName","Legend");ns(Dy,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var y4=hd;function x4(){this.__data__=new y4,this.size=0}var b4=x4;function w4(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var _4=w4;function S4(e){return this.__data__.get(e)}var E4=S4;function O4(e){return this.__data__.has(e)}var $4=O4,P4=hd,j4=Py,T4=jy,A4=200;function C4(e,t){var n=this.__data__;if(n instanceof P4){var r=n.__data__;if(!j4||r.length<A4-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new T4(r)}return n.set(e,t),this.size=n.size,this}var k4=C4,N4=hd,M4=b4,I4=_4,R4=E4,L4=$4,D4=k4;function Io(e){var t=this.__data__=new N4(e);this.size=t.size}Io.prototype.clear=M4;Io.prototype.delete=I4;Io.prototype.get=R4;Io.prototype.has=L4;Io.prototype.set=D4;var Fy=Io,F4="__lodash_hash_undefined__";function B4(e){return this.__data__.set(e,F4),this}var z4=B4;function U4(e){return this.__data__.has(e)}var H4=U4,W4=jy,V4=z4,K4=H4;function qc(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new W4;++t<n;)this.add(e[t])}qc.prototype.add=qc.prototype.push=V4;qc.prototype.has=K4;var LP=qc;function G4(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var DP=G4;function q4(e,t){return e.has(t)}var FP=q4,Y4=LP,X4=DP,Q4=FP,Z4=1,J4=2;function eF(e,t,n,r,i,a){var o=n&Z4,l=e.length,s=t.length;if(l!=s&&!(o&&s>l))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,p=n&J4?new Y4:void 0;for(a.set(e,t),a.set(t,e);++f<l;){var h=e[f],m=t[f];if(r)var b=o?r(m,h,f,t,e,a):r(h,m,f,e,t,a);if(b!==void 0){if(b)continue;d=!1;break}if(p){if(!X4(t,function(v,y){if(!Q4(p,y)&&(h===v||i(h,v,n,r,a)))return p.push(y)})){d=!1;break}}else if(!(h===m||i(h,m,n,r,a))){d=!1;break}}return a.delete(e),a.delete(t),d}var BP=eF,tF=An,nF=tF.Uint8Array,zP=nF;function rF(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var iF=rF;function aF(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var By=aF,Yb=jo,Xb=zP,oF=dd,lF=BP,sF=iF,uF=By,cF=1,fF=2,dF="[object Boolean]",pF="[object Date]",hF="[object Error]",mF="[object Map]",vF="[object Number]",gF="[object RegExp]",yF="[object Set]",xF="[object String]",bF="[object Symbol]",wF="[object ArrayBuffer]",_F="[object DataView]",Qb=Yb?Yb.prototype:void 0,nh=Qb?Qb.valueOf:void 0;function SF(e,t,n,r,i,a,o){switch(n){case _F:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case wF:return!(e.byteLength!=t.byteLength||!a(new Xb(e),new Xb(t)));case dF:case pF:case vF:return oF(+e,+t);case hF:return e.name==t.name&&e.message==t.message;case gF:case xF:return e==t+"";case mF:var l=sF;case yF:var s=r&cF;if(l||(l=uF),e.size!=t.size&&!s)return!1;var u=o.get(e);if(u)return u==t;r|=fF,o.set(e,t);var c=lF(l(e),l(t),r,i,a,o);return o.delete(e),c;case bF:if(nh)return nh.call(e)==nh.call(t)}return!1}var EF=SF;function OF(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var zy=OF,$F=zy,PF=jt;function jF(e,t,n){var r=t(e);return PF(e)?r:$F(r,n(e))}var UP=jF;function TF(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}var AF=TF;function CF(){return[]}var HP=CF,kF=AF,NF=HP,MF=Object.prototype,IF=MF.propertyIsEnumerable,Zb=Object.getOwnPropertySymbols,RF=Zb?function(e){return e==null?[]:(e=Object(e),kF(Zb(e),function(t){return IF.call(e,t)}))}:NF,Uy=RF;function LF(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var DF=LF,FF=Cr,BF=Cn,zF="[object Arguments]";function UF(e){return BF(e)&&FF(e)==zF}var HF=UF,Jb=HF,WF=Cn,WP=Object.prototype,VF=WP.hasOwnProperty,KF=WP.propertyIsEnumerable,GF=Jb(function(){return arguments}())?Jb:function(e){return WF(e)&&VF.call(e,"callee")&&!KF.call(e,"callee")},Hy=GF,Yc={exports:{}};function qF(){return!1}var YF=qF;Yc.exports;(function(e,t){var n=An,r=YF,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,l=o?n.Buffer:void 0,s=l?l.isBuffer:void 0,u=s||r;e.exports=u})(Yc,Yc.exports);var Wy=Yc.exports,XF=9007199254740991,QF=/^(?:0|[1-9]\d*)$/;function ZF(e,t){var n=typeof e;return t=t??XF,!!t&&(n=="number"||n!="symbol"&&QF.test(e))&&e>-1&&e%1==0&&e<t}var Vy=ZF,JF=9007199254740991;function e8(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=JF}var Ky=e8,t8=Cr,n8=Ky,r8=Cn,i8="[object Arguments]",a8="[object Array]",o8="[object Boolean]",l8="[object Date]",s8="[object Error]",u8="[object Function]",c8="[object Map]",f8="[object Number]",d8="[object Object]",p8="[object RegExp]",h8="[object Set]",m8="[object String]",v8="[object WeakMap]",g8="[object ArrayBuffer]",y8="[object DataView]",x8="[object Float32Array]",b8="[object Float64Array]",w8="[object Int8Array]",_8="[object Int16Array]",S8="[object Int32Array]",E8="[object Uint8Array]",O8="[object Uint8ClampedArray]",$8="[object Uint16Array]",P8="[object Uint32Array]",Pe={};Pe[x8]=Pe[b8]=Pe[w8]=Pe[_8]=Pe[S8]=Pe[E8]=Pe[O8]=Pe[$8]=Pe[P8]=!0;Pe[i8]=Pe[a8]=Pe[g8]=Pe[o8]=Pe[y8]=Pe[l8]=Pe[s8]=Pe[u8]=Pe[c8]=Pe[f8]=Pe[d8]=Pe[p8]=Pe[h8]=Pe[m8]=Pe[v8]=!1;function j8(e){return r8(e)&&n8(e.length)&&!!Pe[t8(e)]}var T8=j8;function A8(e){return function(t){return e(t)}}var Md=A8,Xc={exports:{}};Xc.exports;(function(e,t){var n=Z$,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,l=function(){try{var s=i&&i.require&&i.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l})(Xc,Xc.exports);var Gy=Xc.exports,C8=T8,k8=Md,e1=Gy,t1=e1&&e1.isTypedArray,N8=t1?k8(t1):C8,VP=N8,M8=DF,I8=Hy,R8=jt,L8=Wy,D8=Vy,F8=VP,B8=Object.prototype,z8=B8.hasOwnProperty;function U8(e,t){var n=R8(e),r=!n&&I8(e),i=!n&&!r&&L8(e),a=!n&&!r&&!i&&F8(e),o=n||r||i||a,l=o?M8(e.length,String):[],s=l.length;for(var u in e)(t||z8.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||D8(u,s)))&&l.push(u);return l}var KP=U8,H8=Object.prototype;function W8(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||H8;return e===n}var qy=W8;function V8(e,t){return function(n){return e(t(n))}}var GP=V8,K8=GP,G8=K8(Object.keys,Object),q8=G8,Y8=qy,X8=q8,Q8=Object.prototype,Z8=Q8.hasOwnProperty;function J8(e){if(!Y8(e))return X8(e);var t=[];for(var n in Object(e))Z8.call(e,n)&&n!="constructor"&&t.push(n);return t}var e6=J8,t6=$y,n6=Ky;function r6(e){return e!=null&&n6(e.length)&&!t6(e)}var Xs=r6,i6=KP,a6=e6,o6=Xs;function l6(e){return o6(e)?i6(e):a6(e)}var Qs=l6,s6=UP,u6=Uy,c6=Qs;function f6(e){return s6(e,c6,u6)}var qP=f6,n1=qP,d6=1,p6=Object.prototype,h6=p6.hasOwnProperty;function m6(e,t,n,r,i,a){var o=n&d6,l=n1(e),s=l.length,u=n1(t),c=u.length;if(s!=c&&!o)return!1;for(var f=s;f--;){var d=l[f];if(!(o?d in t:h6.call(t,d)))return!1}var p=a.get(e),h=a.get(t);if(p&&h)return p==t&&h==e;var m=!0;a.set(e,t),a.set(t,e);for(var b=o;++f<s;){d=l[f];var v=e[d],y=t[d];if(r)var x=o?r(y,v,d,t,e,a):r(v,y,d,e,t,a);if(!(x===void 0?v===y||i(v,y,n,r,a):x)){m=!1;break}b||(b=d=="constructor")}if(m&&!b){var E=e.constructor,_=t.constructor;E!=_&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof _=="function"&&_ instanceof _)&&(m=!1)}return a.delete(e),a.delete(t),m}var v6=m6,g6=ia,y6=An,x6=g6(y6,"DataView"),b6=x6,w6=ia,_6=An,S6=w6(_6,"Promise"),E6=S6,O6=ia,$6=An,P6=O6($6,"Set"),YP=P6,j6=ia,T6=An,A6=j6(T6,"WeakMap"),C6=A6,Jm=b6,ev=Py,tv=E6,nv=YP,rv=C6,XP=Cr,Ro=eP,r1="[object Map]",k6="[object Object]",i1="[object Promise]",a1="[object Set]",o1="[object WeakMap]",l1="[object DataView]",N6=Ro(Jm),M6=Ro(ev),I6=Ro(tv),R6=Ro(nv),L6=Ro(rv),Oi=XP;(Jm&&Oi(new Jm(new ArrayBuffer(1)))!=l1||ev&&Oi(new ev)!=r1||tv&&Oi(tv.resolve())!=i1||nv&&Oi(new nv)!=a1||rv&&Oi(new rv)!=o1)&&(Oi=function(e){var t=XP(e),n=t==k6?e.constructor:void 0,r=n?Ro(n):"";if(r)switch(r){case N6:return l1;case M6:return r1;case I6:return i1;case R6:return a1;case L6:return o1}return t});var Id=Oi,rh=Fy,D6=BP,F6=EF,B6=v6,s1=Id,u1=jt,c1=Wy,z6=VP,U6=1,f1="[object Arguments]",d1="[object Array]",Iu="[object Object]",H6=Object.prototype,p1=H6.hasOwnProperty;function W6(e,t,n,r,i,a){var o=u1(e),l=u1(t),s=o?d1:s1(e),u=l?d1:s1(t);s=s==f1?Iu:s,u=u==f1?Iu:u;var c=s==Iu,f=u==Iu,d=s==u;if(d&&c1(e)){if(!c1(t))return!1;o=!0,c=!1}if(d&&!c)return a||(a=new rh),o||z6(e)?D6(e,t,n,r,i,a):F6(e,t,s,n,r,i,a);if(!(n&U6)){var p=c&&p1.call(e,"__wrapped__"),h=f&&p1.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,b=h?t.value():t;return a||(a=new rh),i(m,b,n,r,a)}}return d?(a||(a=new rh),B6(e,t,n,r,i,a)):!1}var V6=W6,K6=V6,h1=Cn;function QP(e,t,n,r,i){return e===t?!0:e==null||t==null||!h1(e)&&!h1(t)?e!==e&&t!==t:K6(e,t,n,r,QP,i)}var Yy=QP,G6=Fy,q6=Yy,Y6=1,X6=2;function Q6(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var l=n[i];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){l=n[i];var s=l[0],u=e[s],c=l[1];if(o&&l[2]){if(u===void 0&&!(s in e))return!1}else{var f=new G6;if(r)var d=r(u,c,s,e,t,f);if(!(d===void 0?q6(c,u,Y6|X6,r,f):d))return!1}}return!0}var Z6=Q6,J6=kn;function eB(e){return e===e&&!J6(e)}var ZP=eB,tB=ZP,nB=Qs;function rB(e){for(var t=nB(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,tB(i)]}return t}var iB=rB;function aB(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var JP=aB,oB=Z6,lB=iB,sB=JP;function uB(e){var t=lB(e);return t.length==1&&t[0][2]?sB(t[0][0],t[0][1]):function(n){return n===e||oB(n,e,t)}}var cB=uB;function fB(e,t){return e!=null&&t in Object(e)}var dB=fB,pB=gd,hB=Hy,mB=jt,vB=Vy,gB=Ky,yB=Gs;function xB(e,t,n){t=pB(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=yB(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&gB(i)&&vB(o,i)&&(mB(e)||hB(e)))}var bB=xB,wB=dB,_B=bB;function SB(e,t){return e!=null&&_B(e,t,wB)}var EB=SB,OB=Yy,$B=aP,PB=EB,jB=Oy,TB=ZP,AB=JP,CB=Gs,kB=1,NB=2;function MB(e,t){return jB(e)&&TB(t)?AB(CB(e),t):function(n){var r=$B(n,e);return r===void 0&&r===t?PB(n,e):OB(t,r,kB|NB)}}var IB=MB;function RB(e){return e}var Lo=RB;function LB(e){return function(t){return t==null?void 0:t[e]}}var DB=LB,FB=yd;function BB(e){return function(t){return FB(t,e)}}var zB=BB,UB=DB,HB=zB,WB=Oy,VB=Gs;function KB(e){return WB(e)?UB(VB(e)):HB(e)}var GB=KB,qB=cB,YB=IB,XB=Lo,QB=jt,ZB=GB;function JB(e){return typeof e=="function"?e:e==null?XB:typeof e=="object"?QB(e)?YB(e[0],e[1]):qB(e):ZB(e)}var di=JB;function e7(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var t7=e7;function n7(e){return e!==e}var r7=n7;function i7(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var a7=i7,o7=t7,l7=r7,s7=a7;function u7(e,t,n){return t===t?s7(e,t,n):o7(e,l7,n)}var c7=u7,f7=c7;function d7(e,t){var n=e==null?0:e.length;return!!n&&f7(e,t,0)>-1}var p7=d7;function h7(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var m7=h7;function v7(){}var g7=v7,ih=YP,y7=g7,x7=By,b7=1/0,w7=ih&&1/x7(new ih([,-0]))[1]==b7?function(e){return new ih(e)}:y7,_7=w7,S7=LP,E7=p7,O7=m7,$7=FP,P7=_7,j7=By,T7=200;function A7(e,t,n){var r=-1,i=E7,a=e.length,o=!0,l=[],s=l;if(n)o=!1,i=O7;else if(a>=T7){var u=t?null:P7(e);if(u)return j7(u);o=!1,i=$7,s=new S7}else s=t?[]:l;e:for(;++r<a;){var c=e[r],f=t?t(c):c;if(c=n||c!==0?c:0,o&&f===f){for(var d=s.length;d--;)if(s[d]===f)continue e;t&&s.push(f),l.push(c)}else i(s,f,n)||(s!==l&&s.push(f),l.push(c))}return l}var C7=A7,k7=di,N7=C7;function M7(e,t){return e&&e.length?N7(e,k7(t)):[]}var I7=M7;const m1=me(I7);function e2(e,t,n){return t===!0?m1(e,n):te(t)?m1(e,t):e}function Qa(e){"@babel/helpers - typeof";return Qa=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},Qa(e)}var R7=["ref"];function v1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Jn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?v1(Object(n),!0).forEach(function(r){Rd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function L7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g1(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,n2(r.key),r)}}function D7(e,t,n){return t&&g1(e.prototype,t),n&&g1(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function F7(e,t,n){return t=Qc(t),B7(e,t2()?Reflect.construct(t,n||[],Qc(e).constructor):t.apply(e,n))}function B7(e,t){if(t&&(Qa(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return z7(e)}function z7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function t2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(t2=function(){return!!e})()}function Qc(e){return Qc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qc(e)}function U7(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&&iv(e,t)}function iv(e,t){return iv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},iv(e,t)}function Rd(e,t,n){return t=n2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n2(e){var t=H7(e,"string");return Qa(t)=="symbol"?t:t+""}function H7(e,t){if(Qa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function W7(e,t){if(e==null)return{};var n=V7(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function V7(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function K7(e){return e.value}function G7(e,t){if(j.isValidElement(e))return j.cloneElement(e,t);if(typeof e=="function")return j.createElement(e,t);t.ref;var n=W7(t,R7);return j.createElement(Dy,n)}var y1=1,Da=function(e){function t(){var n;L7(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=F7(this,t,[].concat(i)),Rd(n,"lastBoundingBox",{width:-1,height:-1}),n}return U7(t,e),D7(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>y1||Math.abs(i.height-this.lastBoundingBox.height)>y1)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Jn({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,a=i.layout,o=i.align,l=i.verticalAlign,s=i.margin,u=i.chartWidth,c=i.chartHeight,f,d;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();f={left:((u||0)-p.width)/2}}else f=o==="right"?{right:s&&s.right||0}:{left:s&&s.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(l==="middle"){var h=this.getBBoxSnapshot();d={top:((c||0)-h.height)/2}}else d=l==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return Jn(Jn({},f),d)}},{key:"render",value:function(){var r=this,i=this.props,a=i.content,o=i.width,l=i.height,s=i.wrapperStyle,u=i.payloadUniqBy,c=i.payload,f=Jn(Jn({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(s)),s);return j.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(p){r.wrapperNode=p}},G7(a,Jn(Jn({},this.props),{},{payload:e2(c,u,K7)})))}}],[{key:"getWithHeight",value:function(r,i){var a=Jn(Jn({},this.defaultProps),r.props),o=a.layout;return o==="vertical"&&G(r.props.height)?{height:r.props.height}:o==="horizontal"?{width:r.props.width||i}:null}}])}(w.PureComponent);Rd(Da,"displayName","Legend");Rd(Da,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var x1=jo,q7=Hy,Y7=jt,b1=x1?x1.isConcatSpreadable:void 0;function X7(e){return Y7(e)||q7(e)||!!(b1&&e&&e[b1])}var Q7=X7,Z7=zy,J7=Q7;function r2(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=J7),i||(i=[]);++a<o;){var l=e[a];t>0&&n(l)?t>1?r2(l,t-1,n,r,i):Z7(i,l):r||(i[i.length]=l)}return i}var Xy=r2;function e9(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),l=o.length;l--;){var s=o[e?l:++i];if(n(a[s],s,a)===!1)break}return t}}var t9=e9,n9=t9,r9=n9(),i9=r9,a9=i9,o9=Qs;function l9(e,t){return e&&a9(e,t,o9)}var i2=l9,s9=Xs;function u9(e,t){return function(n,r){if(n==null)return n;if(!s9(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var c9=u9,f9=i2,d9=c9,p9=d9(f9),Qy=p9,h9=Qy,m9=Xs;function v9(e,t){var n=-1,r=m9(e)?Array(e.length):[];return h9(e,function(i,a,o){r[++n]=t(i,a,o)}),r}var a2=v9;function g9(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var y9=g9,w1=To;function x9(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=w1(e),o=t!==void 0,l=t===null,s=t===t,u=w1(t);if(!l&&!u&&!a&&e>t||a&&o&&s&&!l&&!u||r&&o&&s||!n&&s||!i)return 1;if(!r&&!a&&!u&&e<t||u&&n&&i&&!r&&!a||l&&n&&i||!o&&i||!s)return-1}return 0}var b9=x9,w9=b9;function _9(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,l=n.length;++r<o;){var s=w9(i[r],a[r]);if(s){if(r>=l)return s;var u=n[r];return s*(u=="desc"?-1:1)}}return e.index-t.index}var S9=_9,ah=vd,E9=yd,O9=di,$9=a2,P9=y9,j9=Md,T9=S9,A9=Lo,C9=jt;function k9(e,t,n){t.length?t=ah(t,function(a){return C9(a)?function(o){return E9(o,a.length===1?a[0]:a)}:a}):t=[A9];var r=-1;t=ah(t,j9(O9));var i=$9(e,function(a,o,l){var s=ah(t,function(u){return u(a)});return{criteria:s,index:++r,value:a}});return P9(i,function(a,o){return T9(a,o,n)})}var N9=k9;function M9(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var I9=M9,R9=I9,_1=Math.max;function L9(e,t,n){return t=_1(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=_1(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=r[i];return l[t]=n(o),R9(e,this,l)}}var o2=L9;function D9(e){return function(){return e}}var F9=D9,B9=ia,z9=function(){try{var e=B9(Object,"defineProperty");return e({},"",{}),e}catch{}}(),l2=z9,U9=F9,S1=l2,H9=Lo,W9=S1?function(e,t){return S1(e,"toString",{configurable:!0,enumerable:!1,value:U9(t),writable:!0})}:H9,V9=W9,K9=800,G9=16,q9=Date.now;function Y9(e){var t=0,n=0;return function(){var r=q9(),i=G9-(r-n);if(n=r,i>0){if(++t>=K9)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var X9=Y9,Q9=V9,Z9=X9,J9=Z9(Q9),s2=J9,ez=Lo,tz=o2,nz=s2;function rz(e,t){return nz(tz(e,t,ez),e+"")}var iz=rz,az=dd,oz=Xs,lz=Vy,sz=kn;function uz(e,t,n){if(!sz(n))return!1;var r=typeof t;return(r=="number"?oz(n)&&lz(t,n.length):r=="string"&&t in n)?az(n[t],e):!1}var Ld=uz,cz=Xy,fz=N9,dz=iz,E1=Ld,pz=dz(function(e,t){if(e==null)return[];var n=t.length;return n>1&&E1(e,t[0],t[1])?t=[]:n>2&&E1(t[0],t[1],t[2])&&(t=[t[0]]),fz(e,cz(t,1),[])}),hz=pz;const Zy=me(hz);function rs(e){"@babel/helpers - typeof";return rs=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},rs(e)}function av(){return av=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},av.apply(this,arguments)}function mz(e,t){return xz(e)||yz(e,t)||gz(e,t)||vz()}function vz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
196
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gz(e,t){if(e){if(typeof e=="string")return O1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O1(e,t)}}function O1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yz(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function xz(e){if(Array.isArray(e))return e}function $1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function oh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$1(Object(n),!0).forEach(function(r){bz(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bz(e,t,n){return t=wz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wz(e){var t=_z(e,"string");return rs(t)=="symbol"?t:t+""}function _z(e,t){if(rs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(rs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sz(e){return Array.isArray(e)&&Je(e[0])&&Je(e[1])?e.join(" ~ "):e}var Ez=function(t){var n=t.separator,r=n===void 0?" : ":n,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,l=o===void 0?{}:o,s=t.labelStyle,u=s===void 0?{}:s,c=t.payload,f=t.formatter,d=t.itemSorter,p=t.wrapperClassName,h=t.labelClassName,m=t.label,b=t.labelFormatter,v=t.accessibilityLayer,y=v===void 0?!1:v,x=function(){if(c&&c.length){var N={padding:0,margin:0},I=(d?Zy(c,d):c).map(function(D,M){if(D.type==="none")return null;var F=oh({display:"block",paddingTop:4,paddingBottom:4,color:D.color||"#000"},l),R=D.formatter||f||Sz,P=D.value,k=D.name,B=P,L=k;if(R&&B!=null&&L!=null){var U=R(P,k,D,M,c);if(Array.isArray(U)){var V=mz(U,2);B=V[0],L=V[1]}else B=U}return j.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(M),style:F},Je(L)?j.createElement("span",{className:"recharts-tooltip-item-name"},L):null,Je(L)?j.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,j.createElement("span",{className:"recharts-tooltip-item-value"},B),j.createElement("span",{className:"recharts-tooltip-item-unit"},D.unit||""))});return j.createElement("ul",{className:"recharts-tooltip-item-list",style:N},I)}return null},E=oh({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),_=oh({margin:0},u),S=!le(m),O=S?m:"",$=ue("recharts-default-tooltip",p),T=ue("recharts-tooltip-label",h);S&&b&&c!==void 0&&c!==null&&(O=b(m,c));var C=y?{role:"status","aria-live":"assertive"}:{};return j.createElement("div",av({className:$,style:E},C),j.createElement("p",{className:T,style:_},j.isValidElement(O)?O:"".concat(O)),x())};function is(e){"@babel/helpers - typeof";return is=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},is(e)}function Ru(e,t,n){return t=Oz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oz(e){var t=$z(e,"string");return is(t)=="symbol"?t:t+""}function $z(e,t){if(is(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(is(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rl="recharts-tooltip-wrapper",Pz={visibility:"hidden"};function jz(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return ue(rl,Ru(Ru(Ru(Ru({},"".concat(rl,"-right"),G(n)&&t&&G(t.x)&&n>=t.x),"".concat(rl,"-left"),G(n)&&t&&G(t.x)&&n<t.x),"".concat(rl,"-bottom"),G(r)&&t&&G(t.y)&&r>=t.y),"".concat(rl,"-top"),G(r)&&t&&G(t.y)&&r<t.y))}function P1(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,l=e.tooltipDimension,s=e.viewBox,u=e.viewBoxDimension;if(a&&G(a[r]))return a[r];var c=n[r]-l-i,f=n[r]+i;if(t[r])return o[r]?c:f;if(o[r]){var d=c,p=s[r];return d<p?Math.max(f,s[r]):Math.max(c,s[r])}var h=f+l,m=s[r]+u;return h>m?Math.max(c,s[r]):Math.max(f,s[r])}function Tz(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function Az(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,l=e.useTranslate3d,s=e.viewBox,u,c,f;return o.height>0&&o.width>0&&n?(c=P1({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),f=P1({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),u=Tz({translateX:c,translateY:f,useTranslate3d:l})):u=Pz,{cssProperties:u,cssClasses:jz({translateX:c,translateY:f,coordinate:n})}}function Za(e){"@babel/helpers - typeof";return Za=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},Za(e)}function j1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function T1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?j1(Object(n),!0).forEach(function(r){lv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kz(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c2(r.key),r)}}function Nz(e,t,n){return t&&kz(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mz(e,t,n){return t=Zc(t),Iz(e,u2()?Reflect.construct(t,n||[],Zc(e).constructor):t.apply(e,n))}function Iz(e,t){if(t&&(Za(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rz(e)}function Rz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(u2=function(){return!!e})()}function Zc(e){return Zc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Zc(e)}function Lz(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&&ov(e,t)}function ov(e,t){return ov=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ov(e,t)}function lv(e,t,n){return t=c2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c2(e){var t=Dz(e,"string");return Za(t)=="symbol"?t:t+""}function Dz(e,t){if(Za(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Za(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var A1=1,Fz=function(e){function t(){var n;Cz(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Mz(this,t,[].concat(i)),lv(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),lv(n,"handleKeyDown",function(o){if(o.key==="Escape"){var l,s,u,c;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(s=n.props.coordinate)===null||s===void 0?void 0:s.x)!==null&&l!==void 0?l:0,y:(u=(c=n.props.coordinate)===null||c===void 0?void 0:c.y)!==null&&u!==void 0?u:0}})}}),n}return Lz(t,e),Nz(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>A1||Math.abs(r.height-this.state.lastBoundingBox.height)>A1)&&this.setState({lastBoundingBox:{width:r.width,height:r.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 r,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.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 r=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,l=i.animationDuration,s=i.animationEasing,u=i.children,c=i.coordinate,f=i.hasPayload,d=i.isAnimationActive,p=i.offset,h=i.position,m=i.reverseDirection,b=i.useTranslate3d,v=i.viewBox,y=i.wrapperStyle,x=Az({allowEscapeViewBox:o,coordinate:c,offsetTopLeft:p,position:h,reverseDirection:m,tooltipBox:this.state.lastBoundingBox,useTranslate3d:b,viewBox:v}),E=x.cssClasses,_=x.cssProperties,S=T1(T1({transition:d&&a?"transform ".concat(l,"ms ").concat(s):void 0},_),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},y);return j.createElement("div",{tabIndex:-1,className:E,style:S,ref:function($){r.wrapperNode=$}},u)}}])}(w.PureComponent),Bz=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ni={isSsr:Bz(),get:function(t){return ni[t]},set:function(t,n){if(typeof t=="string")ni[t]=n;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(i){ni[i]=t[i]})}}};function Ja(e){"@babel/helpers - typeof";return Ja=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},Ja(e)}function C1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function k1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?C1(Object(n),!0).forEach(function(r){Jy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uz(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d2(r.key),r)}}function Hz(e,t,n){return t&&Uz(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wz(e,t,n){return t=Jc(t),Vz(e,f2()?Reflect.construct(t,n||[],Jc(e).constructor):t.apply(e,n))}function Vz(e,t){if(t&&(Ja(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kz(e)}function Kz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(f2=function(){return!!e})()}function Jc(e){return Jc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jc(e)}function Gz(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&&sv(e,t)}function sv(e,t){return sv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},sv(e,t)}function Jy(e,t,n){return t=d2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d2(e){var t=qz(e,"string");return Ja(t)=="symbol"?t:t+""}function qz(e,t){if(Ja(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ja(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yz(e){return e.dataKey}function Xz(e,t){return j.isValidElement(e)?j.cloneElement(e,t):typeof e=="function"?j.createElement(e,t):j.createElement(Ez,t)}var tr=function(e){function t(){return zz(this,t),Wz(this,t,arguments)}return Gz(t,e),Hz(t,[{key:"render",value:function(){var r=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,l=i.animationDuration,s=i.animationEasing,u=i.content,c=i.coordinate,f=i.filterNull,d=i.isAnimationActive,p=i.offset,h=i.payload,m=i.payloadUniqBy,b=i.position,v=i.reverseDirection,y=i.useTranslate3d,x=i.viewBox,E=i.wrapperStyle,_=h??[];f&&_.length&&(_=e2(h.filter(function(O){return O.value!=null&&(O.hide!==!0||r.props.includeHidden)}),m,Yz));var S=_.length>0;return j.createElement(Fz,{allowEscapeViewBox:o,animationDuration:l,animationEasing:s,isAnimationActive:d,active:a,coordinate:c,hasPayload:S,offset:p,position:b,reverseDirection:v,useTranslate3d:y,viewBox:x,wrapperStyle:E},Xz(u,k1(k1({},this.props),{},{payload:_})))}}])}(w.PureComponent);Jy(tr,"displayName","Tooltip");Jy(tr,"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 Qz=An,Zz=function(){return Qz.Date.now()},Jz=Zz,eU=/\s/;function tU(e){for(var t=e.length;t--&&eU.test(e.charAt(t)););return t}var nU=tU,rU=nU,iU=/^\s+/;function aU(e){return e&&e.slice(0,rU(e)+1).replace(iU,"")}var oU=aU,lU=oU,N1=kn,sU=To,M1=NaN,uU=/^[-+]0x[0-9a-f]+$/i,cU=/^0b[01]+$/i,fU=/^0o[0-7]+$/i,dU=parseInt;function pU(e){if(typeof e=="number")return e;if(sU(e))return M1;if(N1(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=N1(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=lU(e);var n=cU.test(e);return n||fU.test(e)?dU(e.slice(2),n?2:8):uU.test(e)?M1:+e}var p2=pU,hU=kn,lh=Jz,I1=p2,mU="Expected a function",vU=Math.max,gU=Math.min;function yU(e,t,n){var r,i,a,o,l,s,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(mU);t=I1(t)||0,hU(n)&&(c=!!n.leading,f="maxWait"in n,a=f?vU(I1(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d);function p(S){var O=r,$=i;return r=i=void 0,u=S,o=e.apply($,O),o}function h(S){return u=S,l=setTimeout(v,t),c?p(S):o}function m(S){var O=S-s,$=S-u,T=t-O;return f?gU(T,a-$):T}function b(S){var O=S-s,$=S-u;return s===void 0||O>=t||O<0||f&&$>=a}function v(){var S=lh();if(b(S))return y(S);l=setTimeout(v,m(S))}function y(S){return l=void 0,d&&r?p(S):(r=i=void 0,o)}function x(){l!==void 0&&clearTimeout(l),u=0,r=s=i=l=void 0}function E(){return l===void 0?o:y(lh())}function _(){var S=lh(),O=b(S);if(r=arguments,i=this,s=S,O){if(l===void 0)return h(s);if(f)return clearTimeout(l),l=setTimeout(v,t),p(s)}return l===void 0&&(l=setTimeout(v,t)),o}return _.cancel=x,_.flush=E,_}var xU=yU,bU=xU,wU=kn,_U="Expected a function";function SU(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(_U);return wU(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),bU(e,t,{leading:r,maxWait:t,trailing:i})}var EU=SU;const h2=me(EU);function as(e){"@babel/helpers - typeof";return as=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},as(e)}function R1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Lu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R1(Object(n),!0).forEach(function(r){OU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OU(e,t,n){return t=$U(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $U(e){var t=PU(e,"string");return as(t)=="symbol"?t:t+""}function PU(e,t){if(as(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(as(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jU(e,t){return kU(e)||CU(e,t)||AU(e,t)||TU()}function TU(){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 AU(e,t){if(e){if(typeof e=="string")return L1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return L1(e,t)}}function L1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function CU(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function kU(e){if(Array.isArray(e))return e}var Do=w.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,a=e.width,o=a===void 0?"100%":a,l=e.height,s=l===void 0?"100%":l,u=e.minWidth,c=u===void 0?0:u,f=e.minHeight,d=e.maxHeight,p=e.children,h=e.debounce,m=h===void 0?0:h,b=e.id,v=e.className,y=e.onResize,x=e.style,E=x===void 0?{}:x,_=w.useRef(null),S=w.useRef();S.current=y,w.useImperativeHandle(t,function(){return Object.defineProperty(_.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),_.current},configurable:!0})});var O=w.useState({containerWidth:i.width,containerHeight:i.height}),$=jU(O,2),T=$[0],C=$[1],A=w.useCallback(function(I,D){C(function(M){var F=Math.round(I),R=Math.round(D);return M.containerWidth===F&&M.containerHeight===R?M:{containerWidth:F,containerHeight:R}})},[]);w.useEffect(function(){var I=function(k){var B,L=k[0].contentRect,U=L.width,V=L.height;A(U,V),(B=S.current)===null||B===void 0||B.call(S,U,V)};m>0&&(I=h2(I,m,{trailing:!0,leading:!1}));var D=new ResizeObserver(I),M=_.current.getBoundingClientRect(),F=M.width,R=M.height;return A(F,R),D.observe(_.current),function(){D.disconnect()}},[A,m]);var N=w.useMemo(function(){var I=T.containerWidth,D=T.containerHeight;if(I<0||D<0)return null;dr(ki(o)||ki(s),`The width(%s) and height(%s) are both fixed numbers,
198
- maybe you don't need to use a ResponsiveContainer.`,o,s),dr(!n||n>0,"The aspect(%s) must be greater than zero.",n);var M=ki(o)?I:o,F=ki(s)?D:s;n&&n>0&&(M?F=M/n:F&&(M=F*n),d&&F>d&&(F=d)),dr(M>0||F>0,`The width(%s) and height(%s) of chart should be greater than 0,
201
+ */var Ay=Symbol.for("react.element"),Cy=Symbol.for("react.portal"),xd=Symbol.for("react.fragment"),bd=Symbol.for("react.strict_mode"),wd=Symbol.for("react.profiler"),_d=Symbol.for("react.provider"),Sd=Symbol.for("react.context"),r5=Symbol.for("react.server_context"),Ed=Symbol.for("react.forward_ref"),Od=Symbol.for("react.suspense"),$d=Symbol.for("react.suspense_list"),Pd=Symbol.for("react.memo"),jd=Symbol.for("react.lazy"),i5=Symbol.for("react.offscreen"),cP;cP=Symbol.for("react.module.reference");function vn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Ay:switch(e=e.type,e){case xd:case wd:case bd:case Od:case $d:return e;default:switch(e=e&&e.$$typeof,e){case r5:case Sd:case Ed:case jd:case Pd:case _d:return e;default:return t}}case Cy:return t}}}ve.ContextConsumer=Sd;ve.ContextProvider=_d;ve.Element=Ay;ve.ForwardRef=Ed;ve.Fragment=xd;ve.Lazy=jd;ve.Memo=Pd;ve.Portal=Cy;ve.Profiler=wd;ve.StrictMode=bd;ve.Suspense=Od;ve.SuspenseList=$d;ve.isAsyncMode=function(){return!1};ve.isConcurrentMode=function(){return!1};ve.isContextConsumer=function(e){return vn(e)===Sd};ve.isContextProvider=function(e){return vn(e)===_d};ve.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ay};ve.isForwardRef=function(e){return vn(e)===Ed};ve.isFragment=function(e){return vn(e)===xd};ve.isLazy=function(e){return vn(e)===jd};ve.isMemo=function(e){return vn(e)===Pd};ve.isPortal=function(e){return vn(e)===Cy};ve.isProfiler=function(e){return vn(e)===wd};ve.isStrictMode=function(e){return vn(e)===bd};ve.isSuspense=function(e){return vn(e)===Od};ve.isSuspenseList=function(e){return vn(e)===$d};ve.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===xd||e===wd||e===bd||e===Od||e===$d||e===i5||typeof e=="object"&&e!==null&&(e.$$typeof===jd||e.$$typeof===Pd||e.$$typeof===_d||e.$$typeof===Sd||e.$$typeof===Ed||e.$$typeof===cP||e.getModuleId!==void 0)};ve.typeOf=vn;uP.exports=ve;var o5=uP.exports,a5=Cr,l5=kn,s5="[object Number]";function u5(e){return typeof e=="number"||l5(e)&&a5(e)==s5}var fP=u5;const dP=me(fP);var c5=fP;function f5(e){return c5(e)&&e!=+e}var d5=f5;const qs=me(d5);var an=function(t){return t===0?0:t>0?1:-1},ki=function(t){return Ma(t)&&t.indexOf("%")===t.length-1},G=function(t){return dP(t)&&!qs(t)},Je=function(t){return G(t)||Ma(t)},p5=0,Td=function(t){var n=++p5;return"".concat(t||"").concat(n)},kt=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!G(t)&&!Ma(t))return r;var o;if(ki(t)){var a=t.indexOf("%");o=n*parseFloat(t.slice(0,a))/100}else o=+t;return qs(o)&&(o=r),i&&o>n&&(o=n),o},mo=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},h5=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i<n;i++)if(!r[t[i]])r[t[i]]=!0;else return!0;return!1},Zt=function(t,n){return G(t)&&G(n)?function(r){return t+r*(n-t)}:function(){return n}};function Dm(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):$n(r,t))===n})}function Fm(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function Bm(e){"@babel/helpers - typeof";return Bm=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},Bm(e)}var m5=["viewBox","children"],v5=["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"],Mb=["points","pathLength"],Jp={svg:m5,polygon:Mb,polyline:Mb},ky=["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"],zc=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(b.isValidElement(t)&&(r=t.props),!Aa(r))return null;var i={};return Object.keys(r).forEach(function(o){ky.includes(o)&&(i[o]=n||function(a){return r[o](r,a)})}),i},g5=function(t,n,r){return function(i){return t(n,r,i),null}},Xs=function(t,n,r){if(!Aa(t)||Bm(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(o){var a=t[o];ky.includes(o)&&typeof a=="function"&&(i||(i={}),i[o]=g5(a,n,r))}),i},y5=["children"],x5=["children"];function Rb(e,t){if(e==null)return{};var n=b5(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function b5(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Ib={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"},fr=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Lb=null,eh=null,Ny=function e(t){if(t===Lb&&Array.isArray(eh))return eh;var n=[];return b.Children.forEach(t,function(r){le(r)||(o5.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),eh=n,Lb=t,n};function Pn(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return fr(i)}):r=[fr(t)],Ny(e).forEach(function(i){var o=$n(i,"type.displayName")||$n(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}function Jt(e,t){var n=Pn(e,t);return n&&n[0]}var Db=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!G(r)||r<=0||!G(i)||i<=0)},w5=["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"],_5=function(t){return t&&t.type&&Ma(t.type)&&w5.indexOf(t.type)>=0},S5=function(t,n,r,i){var o,a=(o=Jp==null?void 0:Jp[i])!==null&&o!==void 0?o:[];return!te(t)&&(i&&a.includes(n)||v5.includes(n))||r&&ky.includes(n)},ne=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(b.isValidElement(t)&&(i=t.props),!Aa(i))return null;var o={};return Object.keys(i).forEach(function(a){var l;S5((l=i)===null||l===void 0?void 0:l[a],a,n,r)&&(o[a]=i[a])}),o},zm=function e(t,n){if(t===n)return!0;var r=b.Children.count(t);if(r!==b.Children.count(n))return!1;if(r===0)return!0;if(r===1)return Fb(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var o=t[i],a=n[i];if(Array.isArray(o)||Array.isArray(a)){if(!e(o,a))return!1}else if(!Fb(o,a))return!1}return!0},Fb=function(t,n){if(le(t)&&le(n))return!0;if(!le(t)&&!le(n)){var r=t.props||{},i=r.children,o=Rb(r,y5),a=n.props||{},l=a.children,s=Rb(a,x5);return i&&l?Fm(o,s)&&zm(i,l):!i&&!l?Fm(o,s):!1}return!1},Bb=function(t,n){var r=[],i={};return Ny(t).forEach(function(o,a){if(_5(o))r.push(o);else if(o){var l=fr(o.type),s=n[l]||{},u=s.handler,c=s.once;if(u&&(!c||!i[l])){var f=u(o,l,a);r.push(f),i[l]=!0}}}),r},E5=function(t){var n=t&&t.type;return n&&Ib[n]?Ib[n]:null},O5=function(t,n){return Ny(n).indexOf(t)},$5=["children","width","height","viewBox","className","style","title","desc"];function Um(){return Um=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Um.apply(this,arguments)}function P5(e,t){if(e==null)return{};var n=j5(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function j5(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Hm(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,o=e.className,a=e.style,l=e.title,s=e.desc,u=P5(e,$5),c=i||{width:n,height:r,x:0,y:0},f=ue("recharts-surface",o);return j.createElement("svg",Um({},ne(u,!0,"svg"),{className:f,width:n,height:r,style:a,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height)}),j.createElement("title",null,l),j.createElement("desc",null,s),t)}var T5=["children","className"];function Wm(){return Wm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wm.apply(this,arguments)}function A5(e,t){if(e==null)return{};var n=C5(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function C5(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Te=j.forwardRef(function(e,t){var n=e.children,r=e.className,i=A5(e,T5),o=ue("recharts-layer",r);return j.createElement("g",Wm({className:o},ne(i,!0),{ref:t}),n)}),dr=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o]};function k5(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}var pP=k5,N5=pP;function M5(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:N5(e,t,n)}var R5=M5,I5="\\ud800-\\udfff",L5="\\u0300-\\u036f",D5="\\ufe20-\\ufe2f",F5="\\u20d0-\\u20ff",B5=L5+D5+F5,z5="\\ufe0e\\ufe0f",U5="\\u200d",H5=RegExp("["+U5+I5+B5+z5+"]");function W5(e){return H5.test(e)}var hP=W5;function V5(e){return e.split("")}var K5=V5,mP="\\ud800-\\udfff",G5="\\u0300-\\u036f",q5="\\ufe20-\\ufe2f",X5="\\u20d0-\\u20ff",Y5=G5+q5+X5,Q5="\\ufe0e\\ufe0f",Z5="["+mP+"]",Vm="["+Y5+"]",Km="\\ud83c[\\udffb-\\udfff]",J5="(?:"+Vm+"|"+Km+")",vP="[^"+mP+"]",gP="(?:\\ud83c[\\udde6-\\uddff]){2}",yP="[\\ud800-\\udbff][\\udc00-\\udfff]",eD="\\u200d",xP=J5+"?",bP="["+Q5+"]?",tD="(?:"+eD+"(?:"+[vP,gP,yP].join("|")+")"+bP+xP+")*",nD=bP+xP+tD,rD="(?:"+[vP+Vm+"?",Vm,gP,yP,Z5].join("|")+")",iD=RegExp(Km+"(?="+Km+")|"+rD+nD,"g");function oD(e){return e.match(iD)||[]}var aD=oD,lD=K5,sD=hP,uD=aD;function cD(e){return sD(e)?uD(e):lD(e)}var fD=cD,dD=R5,pD=hP,hD=fD,mD=lP;function vD(e){return function(t){t=mD(t);var n=pD(t)?hD(t):void 0,r=n?n[0]:t.charAt(0),i=n?dD(n,1).join(""):t.slice(1);return r[e]()+i}}var gD=vD,yD=gD,xD=yD("toUpperCase"),bD=xD;const Ad=me(bD);function we(e){return function(){return e}}const wP=Math.cos,Uc=Math.sin,Mn=Math.sqrt,Hc=Math.PI,Cd=2*Hc,Gm=Math.PI,qm=2*Gm,Ei=1e-6,wD=qm-Ei;function _P(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function _D(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return _P;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class SD{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?_P:_D(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,l=this._y1,s=r-t,u=i-n,c=a-t,f=l-n,d=c*c+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(d>Ei)if(!(Math.abs(f*s-u*c)>Ei)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-a,h=i-l,m=s*s+u*u,w=p*p+h*h,g=Math.sqrt(m),y=Math.sqrt(d),x=o*Math.tan((Gm-Math.acos((m+d-w)/(2*g*y)))/2),E=x/y,_=x/g;Math.abs(E-1)>Ei&&this._append`L${t+E*c},${n+E*f}`,this._append`A${o},${o},0,0,${+(f*p>c*h)},${this._x1=t+_*s},${this._y1=n+_*u}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(i),s=r*Math.sin(i),u=t+l,c=n+s,f=1^a,d=a?i-o:o-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>Ei||Math.abs(this._y1-c)>Ei)&&this._append`L${u},${c}`,r&&(d<0&&(d=d%qm+qm),d>wD?this._append`A${r},${r},0,1,${f},${t-l},${n-s}A${r},${r},0,1,${f},${this._x1=u},${this._y1=c}`:d>Ei&&this._append`A${r},${r},0,${+(d>=Gm)},${f},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function My(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new SD(t)}function Ry(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function SP(e){this._context=e}SP.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 kd(e){return new SP(e)}function EP(e){return e[0]}function OP(e){return e[1]}function $P(e,t){var n=we(!0),r=null,i=kd,o=null,a=My(l);e=typeof e=="function"?e:e===void 0?EP:we(e),t=typeof t=="function"?t:t===void 0?OP:we(t);function l(s){var u,c=(s=Ry(s)).length,f,d=!1,p;for(r==null&&(o=i(p=a())),u=0;u<=c;++u)!(u<c&&n(f=s[u],u,s))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+e(f,u,s),+t(f,u,s));if(p)return o=null,p+""||null}return l.x=function(s){return arguments.length?(e=typeof s=="function"?s:we(+s),l):e},l.y=function(s){return arguments.length?(t=typeof s=="function"?s:we(+s),l):t},l.defined=function(s){return arguments.length?(n=typeof s=="function"?s:we(!!s),l):n},l.curve=function(s){return arguments.length?(i=s,r!=null&&(o=i(r)),l):i},l.context=function(s){return arguments.length?(s==null?r=o=null:o=i(r=s),l):r},l}function Mu(e,t,n){var r=null,i=we(!0),o=null,a=kd,l=null,s=My(u);e=typeof e=="function"?e:e===void 0?EP:we(+e),t=typeof t=="function"?t:we(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?OP:we(+n);function u(f){var d,p,h,m=(f=Ry(f)).length,w,g=!1,y,x=new Array(m),E=new Array(m);for(o==null&&(l=a(y=s())),d=0;d<=m;++d){if(!(d<m&&i(w=f[d],d,f))===g)if(g=!g)p=d,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),h=d-1;h>=p;--h)l.point(x[h],E[h]);l.lineEnd(),l.areaEnd()}g&&(x[d]=+e(w,d,f),E[d]=+t(w,d,f),l.point(r?+r(w,d,f):x[d],n?+n(w,d,f):E[d]))}if(y)return l=null,y+""||null}function c(){return $P().defined(i).curve(a).context(o)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:we(+f),r=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:we(+f),u):e},u.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:we(+f),u):r},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:we(+f),n=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:we(+f),u):t},u.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:we(+f),u):n},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(n)},u.lineX1=function(){return c().x(r).y(t)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:we(!!f),u):i},u.curve=function(f){return arguments.length?(a=f,o!=null&&(l=a(o)),u):a},u.context=function(f){return arguments.length?(f==null?o=l=null:l=a(o=f),u):o},u}class PP{constructor(t,n){this._context=t,this._x=n}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,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function ED(e){return new PP(e,!0)}function OD(e){return new PP(e,!1)}const Iy={draw(e,t){const n=Mn(t/Hc);e.moveTo(n,0),e.arc(0,0,n,0,Cd)}},$D={draw(e,t){const n=Mn(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},jP=Mn(1/3),PD=jP*2,jD={draw(e,t){const n=Mn(t/PD),r=n*jP;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},TD={draw(e,t){const n=Mn(t),r=-n/2;e.rect(r,r,n,n)}},AD=.8908130915292852,TP=Uc(Hc/10)/Uc(7*Hc/10),CD=Uc(Cd/10)*TP,kD=-wP(Cd/10)*TP,ND={draw(e,t){const n=Mn(t*AD),r=CD*n,i=kD*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const a=Cd*o/5,l=wP(a),s=Uc(a);e.lineTo(s*n,-l*n),e.lineTo(l*r-s*i,s*r+l*i)}e.closePath()}},th=Mn(3),MD={draw(e,t){const n=-Mn(t/(th*3));e.moveTo(0,n*2),e.lineTo(-th*n,-n),e.lineTo(th*n,-n),e.closePath()}},Xt=-.5,Yt=Mn(3)/2,Xm=1/Mn(12),RD=(Xm/2+1)*3,ID={draw(e,t){const n=Mn(t/RD),r=n/2,i=n*Xm,o=r,a=n*Xm+n,l=-o,s=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(l,s),e.lineTo(Xt*r-Yt*i,Yt*r+Xt*i),e.lineTo(Xt*o-Yt*a,Yt*o+Xt*a),e.lineTo(Xt*l-Yt*s,Yt*l+Xt*s),e.lineTo(Xt*r+Yt*i,Xt*i-Yt*r),e.lineTo(Xt*o+Yt*a,Xt*a-Yt*o),e.lineTo(Xt*l+Yt*s,Xt*s-Yt*l),e.closePath()}};function LD(e,t){let n=null,r=My(i);e=typeof e=="function"?e:we(e||Iy),t=typeof t=="function"?t:we(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:we(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:we(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function Wc(){}function Vc(e,t,n){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+n)/6)}function AP(e){this._context=e}AP.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:Vc(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:Vc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function DD(e){return new AP(e)}function CP(e){this._context=e}CP.prototype={areaStart:Wc,areaEnd:Wc,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:Vc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function FD(e){return new CP(e)}function kP(e){this._context=e}kP.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 n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Vc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function BD(e){return new kP(e)}function NP(e){this._context=e}NP.prototype={areaStart:Wc,areaEnd:Wc,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 zD(e){return new NP(e)}function zb(e){return e<0?-1:1}function Ub(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),l=(o*i+a*r)/(r+i);return(zb(o)+zb(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(l))||0}function Hb(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function nh(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,l=(o-r)/3;e._context.bezierCurveTo(r+l,i+l*t,o-l,a-l*n,o,a)}function Kc(e){this._context=e}Kc.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:nh(this,this._t0,Hb(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 n=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,nh(this,Hb(this,n=Ub(this,e,t)),n);break;default:nh(this,this._t0,n=Ub(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function MP(e){this._context=new RP(e)}(MP.prototype=Object.create(Kc.prototype)).point=function(e,t){Kc.prototype.point.call(this,t,e)};function RP(e){this._context=e}RP.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,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function UD(e){return new Kc(e)}function HD(e){return new MP(e)}function IP(e){this._context=e}IP.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,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Wb(e),i=Wb(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&n===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 Wb(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function WD(e){return new IP(e)}function Nd(e,t){this._context=e,this._t=t}Nd.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 n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function VD(e){return new Nd(e,.5)}function KD(e){return new Nd(e,0)}function GD(e){return new Nd(e,1)}function Yo(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,l=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<l;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Ym(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function qD(e,t){return e[t]}function XD(e){const t=[];return t.key=e,t}function YD(){var e=we([]),t=Ym,n=Yo,r=qD;function i(o){var a=Array.from(e.apply(this,arguments),XD),l,s=a.length,u=-1,c;for(const f of o)for(l=0,++u;l<s;++l)(a[l][u]=[0,+r(f,a[l].key,u,o)]).data=f;for(l=0,c=Ry(t(a));l<s;++l)a[c[l]].index=l;return n(a,c),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:we(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:we(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?Ym:typeof o=="function"?o:we(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??Yo,i):n},i}function QD(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,a;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}Yo(e,t)}}function ZD(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var a=0,l=0;a<i;++a)l+=e[a][n][1]||0;r[n][1]+=r[n][0]=-l/2}Yo(e,t)}}function JD(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r<o;++r){for(var l=0,s=0,u=0;l<a;++l){for(var c=e[t[l]],f=c[r][1]||0,d=c[r-1][1]||0,p=(f-d)/2,h=0;h<l;++h){var m=e[t[h]],w=m[r][1]||0,g=m[r-1][1]||0;p+=w-g}s+=f,u+=p*f}i[r-1][1]+=i[r-1][0]=n,s&&(n-=u/s)}i[r-1][1]+=i[r-1][0]=n,Yo(e,t)}}function ts(e){"@babel/helpers - typeof";return ts=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},ts(e)}var e4=["type","size","sizeType"];function Qm(){return Qm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qm.apply(this,arguments)}function Vb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Kb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vb(Object(n),!0).forEach(function(r){t4(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function t4(e,t,n){return t=n4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n4(e){var t=r4(e,"string");return ts(t)=="symbol"?t:t+""}function r4(e,t){if(ts(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ts(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function i4(e,t){if(e==null)return{};var n=o4(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function o4(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var LP={symbolCircle:Iy,symbolCross:$D,symbolDiamond:jD,symbolSquare:TD,symbolStar:ND,symbolTriangle:MD,symbolWye:ID},a4=Math.PI/180,l4=function(t){var n="symbol".concat(Ad(t));return LP[n]||Iy},s4=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*a4;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}},u4=function(t,n){LP["symbol".concat(Ad(t))]=n},Ly=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,o=i===void 0?64:i,a=t.sizeType,l=a===void 0?"area":a,s=i4(t,e4),u=Kb(Kb({},s),{},{type:r,size:o,sizeType:l}),c=function(){var w=l4(r),g=LD().type(w).size(s4(o,l,r));return g()},f=u.className,d=u.cx,p=u.cy,h=ne(u,!0);return d===+d&&p===+p&&o===+o?j.createElement("path",Qm({},h,{className:ue("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(p,")"),d:c()})):null};Ly.registerSymbol=u4;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 Zm(){return Zm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zm.apply(this,arguments)}function Gb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function c4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gb(Object(n),!0).forEach(function(r){ns(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gb(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function f4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d4(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,FP(r.key),r)}}function p4(e,t,n){return t&&d4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function h4(e,t,n){return t=Gc(t),m4(e,DP()?Reflect.construct(t,n||[],Gc(e).constructor):t.apply(e,n))}function m4(e,t){if(t&&(Qo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v4(e)}function v4(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 Gc(e){return Gc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gc(e)}function g4(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&&Jm(e,t)}function Jm(e,t){return Jm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Jm(e,t)}function ns(e,t,n){return t=FP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FP(e){var t=y4(e,"string");return Qo(t)=="symbol"?t:t+""}function y4(e,t){if(Qo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Qo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qt=32,Dy=function(e){function t(){return f4(this,t),h4(this,t,arguments)}return g4(t,e),p4(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,o=Qt/2,a=Qt/6,l=Qt/3,s=r.inactive?i:r.color;if(r.type==="plainline")return j.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:o,x2:Qt,y2:o,className:"recharts-legend-icon"});if(r.type==="line")return j.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(o,"h").concat(l,`
202
+ A`).concat(a,",").concat(a,",0,1,1,").concat(2*l,",").concat(o,`
203
+ H`).concat(Qt,"M").concat(2*l,",").concat(o,`
204
+ A`).concat(a,",").concat(a,",0,1,1,").concat(l,",").concat(o),className:"recharts-legend-icon"});if(r.type==="rect")return j.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(Qt/8,"h").concat(Qt,"v").concat(Qt*3/4,"h").concat(-Qt,"z"),className:"recharts-legend-icon"});if(j.isValidElement(r.legendIcon)){var u=c4({},r);return delete u.legendIcon,j.cloneElement(r.legendIcon,u)}return j.createElement(Ly,{fill:s,cx:o,cy:o,size:Qt,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,o=i.payload,a=i.iconSize,l=i.layout,s=i.formatter,u=i.inactiveColor,c={x:0,y:0,width:Qt,height:Qt},f={display:l==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(p,h){var m=p.formatter||s,w=ue(ns(ns({"recharts-legend-item":!0},"legend-item-".concat(h),!0),"inactive",p.inactive));if(p.type==="none")return null;var g=te(p.value)?null:p.value;dr(!te(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 y=p.inactive?u:p.color;return j.createElement("li",Zm({className:w,style:f,key:"legend-item-".concat(h)},Xs(r.props,p,h)),j.createElement(Hm,{width:a,height:a,viewBox:c,style:d},r.renderIcon(p)),j.createElement("span",{className:"recharts-legend-item-text",style:{color:y}},m?m(g,p,h):g))})}},{key:"render",value:function(){var r=this.props,i=r.payload,o=r.layout,a=r.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:o==="horizontal"?a:"left"};return j.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(b.PureComponent);ns(Dy,"displayName","Legend");ns(Dy,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var x4=hd;function b4(){this.__data__=new x4,this.size=0}var w4=b4;function _4(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var S4=_4;function E4(e){return this.__data__.get(e)}var O4=E4;function $4(e){return this.__data__.has(e)}var P4=$4,j4=hd,T4=Py,A4=jy,C4=200;function k4(e,t){var n=this.__data__;if(n instanceof j4){var r=n.__data__;if(!T4||r.length<C4-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new A4(r)}return n.set(e,t),this.size=n.size,this}var N4=k4,M4=hd,R4=w4,I4=S4,L4=O4,D4=P4,F4=N4;function Ra(e){var t=this.__data__=new M4(e);this.size=t.size}Ra.prototype.clear=R4;Ra.prototype.delete=I4;Ra.prototype.get=L4;Ra.prototype.has=D4;Ra.prototype.set=F4;var Fy=Ra,B4="__lodash_hash_undefined__";function z4(e){return this.__data__.set(e,B4),this}var U4=z4;function H4(e){return this.__data__.has(e)}var W4=H4,V4=jy,K4=U4,G4=W4;function qc(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new V4;++t<n;)this.add(e[t])}qc.prototype.add=qc.prototype.push=K4;qc.prototype.has=G4;var BP=qc;function q4(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var zP=q4;function X4(e,t){return e.has(t)}var UP=X4,Y4=BP,Q4=zP,Z4=UP,J4=1,eF=2;function tF(e,t,n,r,i,o){var a=n&J4,l=e.length,s=t.length;if(l!=s&&!(a&&s>l))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var f=-1,d=!0,p=n&eF?new Y4:void 0;for(o.set(e,t),o.set(t,e);++f<l;){var h=e[f],m=t[f];if(r)var w=a?r(m,h,f,t,e,o):r(h,m,f,e,t,o);if(w!==void 0){if(w)continue;d=!1;break}if(p){if(!Q4(t,function(g,y){if(!Z4(p,y)&&(h===g||i(h,g,n,r,o)))return p.push(y)})){d=!1;break}}else if(!(h===m||i(h,m,n,r,o))){d=!1;break}}return o.delete(e),o.delete(t),d}var HP=tF,nF=Cn,rF=nF.Uint8Array,WP=rF;function iF(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var oF=iF;function aF(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var By=aF,qb=ja,Xb=WP,lF=dd,sF=HP,uF=oF,cF=By,fF=1,dF=2,pF="[object Boolean]",hF="[object Date]",mF="[object Error]",vF="[object Map]",gF="[object Number]",yF="[object RegExp]",xF="[object Set]",bF="[object String]",wF="[object Symbol]",_F="[object ArrayBuffer]",SF="[object DataView]",Yb=qb?qb.prototype:void 0,rh=Yb?Yb.valueOf:void 0;function EF(e,t,n,r,i,o,a){switch(n){case SF:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _F:return!(e.byteLength!=t.byteLength||!o(new Xb(e),new Xb(t)));case pF:case hF:case gF:return lF(+e,+t);case mF:return e.name==t.name&&e.message==t.message;case yF:case bF:return e==t+"";case vF:var l=uF;case xF:var s=r&fF;if(l||(l=cF),e.size!=t.size&&!s)return!1;var u=a.get(e);if(u)return u==t;r|=dF,a.set(e,t);var c=sF(l(e),l(t),r,i,o,a);return a.delete(e),c;case wF:if(rh)return rh.call(e)==rh.call(t)}return!1}var OF=EF;function $F(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var zy=$F,PF=zy,jF=jt;function TF(e,t,n){var r=t(e);return jF(e)?r:PF(r,n(e))}var VP=TF;function AF(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}var CF=AF;function kF(){return[]}var KP=kF,NF=CF,MF=KP,RF=Object.prototype,IF=RF.propertyIsEnumerable,Qb=Object.getOwnPropertySymbols,LF=Qb?function(e){return e==null?[]:(e=Object(e),NF(Qb(e),function(t){return IF.call(e,t)}))}:MF,Uy=LF;function DF(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var FF=DF,BF=Cr,zF=kn,UF="[object Arguments]";function HF(e){return zF(e)&&BF(e)==UF}var WF=HF,Zb=WF,VF=kn,GP=Object.prototype,KF=GP.hasOwnProperty,GF=GP.propertyIsEnumerable,qF=Zb(function(){return arguments}())?Zb:function(e){return VF(e)&&KF.call(e,"callee")&&!GF.call(e,"callee")},Hy=qF,Xc={exports:{}};function XF(){return!1}var YF=XF;Xc.exports;(function(e,t){var n=Cn,r=YF,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,l=a?n.Buffer:void 0,s=l?l.isBuffer:void 0,u=s||r;e.exports=u})(Xc,Xc.exports);var Wy=Xc.exports,QF=9007199254740991,ZF=/^(?:0|[1-9]\d*)$/;function JF(e,t){var n=typeof e;return t=t??QF,!!t&&(n=="number"||n!="symbol"&&ZF.test(e))&&e>-1&&e%1==0&&e<t}var Vy=JF,e8=9007199254740991;function t8(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=e8}var Ky=t8,n8=Cr,r8=Ky,i8=kn,o8="[object Arguments]",a8="[object Array]",l8="[object Boolean]",s8="[object Date]",u8="[object Error]",c8="[object Function]",f8="[object Map]",d8="[object Number]",p8="[object Object]",h8="[object RegExp]",m8="[object Set]",v8="[object String]",g8="[object WeakMap]",y8="[object ArrayBuffer]",x8="[object DataView]",b8="[object Float32Array]",w8="[object Float64Array]",_8="[object Int8Array]",S8="[object Int16Array]",E8="[object Int32Array]",O8="[object Uint8Array]",$8="[object Uint8ClampedArray]",P8="[object Uint16Array]",j8="[object Uint32Array]",Pe={};Pe[b8]=Pe[w8]=Pe[_8]=Pe[S8]=Pe[E8]=Pe[O8]=Pe[$8]=Pe[P8]=Pe[j8]=!0;Pe[o8]=Pe[a8]=Pe[y8]=Pe[l8]=Pe[x8]=Pe[s8]=Pe[u8]=Pe[c8]=Pe[f8]=Pe[d8]=Pe[p8]=Pe[h8]=Pe[m8]=Pe[v8]=Pe[g8]=!1;function T8(e){return i8(e)&&r8(e.length)&&!!Pe[n8(e)]}var A8=T8;function C8(e){return function(t){return e(t)}}var Md=C8,Yc={exports:{}};Yc.exports;(function(e,t){var n=tP,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,l=function(){try{var s=i&&i.require&&i.require("util").types;return s||a&&a.binding&&a.binding("util")}catch{}}();e.exports=l})(Yc,Yc.exports);var Gy=Yc.exports,k8=A8,N8=Md,Jb=Gy,e1=Jb&&Jb.isTypedArray,M8=e1?N8(e1):k8,qP=M8,R8=FF,I8=Hy,L8=jt,D8=Wy,F8=Vy,B8=qP,z8=Object.prototype,U8=z8.hasOwnProperty;function H8(e,t){var n=L8(e),r=!n&&I8(e),i=!n&&!r&&D8(e),o=!n&&!r&&!i&&B8(e),a=n||r||i||o,l=a?R8(e.length,String):[],s=l.length;for(var u in e)(t||U8.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||F8(u,s)))&&l.push(u);return l}var XP=H8,W8=Object.prototype;function V8(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||W8;return e===n}var qy=V8;function K8(e,t){return function(n){return e(t(n))}}var YP=K8,G8=YP,q8=G8(Object.keys,Object),X8=q8,Y8=qy,Q8=X8,Z8=Object.prototype,J8=Z8.hasOwnProperty;function e6(e){if(!Y8(e))return Q8(e);var t=[];for(var n in Object(e))J8.call(e,n)&&n!="constructor"&&t.push(n);return t}var t6=e6,n6=$y,r6=Ky;function i6(e){return e!=null&&r6(e.length)&&!n6(e)}var Ys=i6,o6=XP,a6=t6,l6=Ys;function s6(e){return l6(e)?o6(e):a6(e)}var Qs=s6,u6=VP,c6=Uy,f6=Qs;function d6(e){return u6(e,f6,c6)}var QP=d6,t1=QP,p6=1,h6=Object.prototype,m6=h6.hasOwnProperty;function v6(e,t,n,r,i,o){var a=n&p6,l=t1(e),s=l.length,u=t1(t),c=u.length;if(s!=c&&!a)return!1;for(var f=s;f--;){var d=l[f];if(!(a?d in t:m6.call(t,d)))return!1}var p=o.get(e),h=o.get(t);if(p&&h)return p==t&&h==e;var m=!0;o.set(e,t),o.set(t,e);for(var w=a;++f<s;){d=l[f];var g=e[d],y=t[d];if(r)var x=a?r(y,g,d,t,e,o):r(g,y,d,e,t,o);if(!(x===void 0?g===y||i(g,y,n,r,o):x)){m=!1;break}w||(w=d=="constructor")}if(m&&!w){var E=e.constructor,_=t.constructor;E!=_&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof _=="function"&&_ instanceof _)&&(m=!1)}return o.delete(e),o.delete(t),m}var g6=v6,y6=io,x6=Cn,b6=y6(x6,"DataView"),w6=b6,_6=io,S6=Cn,E6=_6(S6,"Promise"),O6=E6,$6=io,P6=Cn,j6=$6(P6,"Set"),ZP=j6,T6=io,A6=Cn,C6=T6(A6,"WeakMap"),k6=C6,ev=w6,tv=Py,nv=O6,rv=ZP,iv=k6,JP=Cr,Ia=rP,n1="[object Map]",N6="[object Object]",r1="[object Promise]",i1="[object Set]",o1="[object WeakMap]",a1="[object DataView]",M6=Ia(ev),R6=Ia(tv),I6=Ia(nv),L6=Ia(rv),D6=Ia(iv),Oi=JP;(ev&&Oi(new ev(new ArrayBuffer(1)))!=a1||tv&&Oi(new tv)!=n1||nv&&Oi(nv.resolve())!=r1||rv&&Oi(new rv)!=i1||iv&&Oi(new iv)!=o1)&&(Oi=function(e){var t=JP(e),n=t==N6?e.constructor:void 0,r=n?Ia(n):"";if(r)switch(r){case M6:return a1;case R6:return n1;case I6:return r1;case L6:return i1;case D6:return o1}return t});var Rd=Oi,ih=Fy,F6=HP,B6=OF,z6=g6,l1=Rd,s1=jt,u1=Wy,U6=qP,H6=1,c1="[object Arguments]",f1="[object Array]",Ru="[object Object]",W6=Object.prototype,d1=W6.hasOwnProperty;function V6(e,t,n,r,i,o){var a=s1(e),l=s1(t),s=a?f1:l1(e),u=l?f1:l1(t);s=s==c1?Ru:s,u=u==c1?Ru:u;var c=s==Ru,f=u==Ru,d=s==u;if(d&&u1(e)){if(!u1(t))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new ih),a||U6(e)?F6(e,t,n,r,i,o):B6(e,t,s,n,r,i,o);if(!(n&H6)){var p=c&&d1.call(e,"__wrapped__"),h=f&&d1.call(t,"__wrapped__");if(p||h){var m=p?e.value():e,w=h?t.value():t;return o||(o=new ih),i(m,w,n,r,o)}}return d?(o||(o=new ih),z6(e,t,n,r,i,o)):!1}var K6=V6,G6=K6,p1=kn;function e2(e,t,n,r,i){return e===t?!0:e==null||t==null||!p1(e)&&!p1(t)?e!==e&&t!==t:G6(e,t,n,r,e2,i)}var Xy=e2,q6=Fy,X6=Xy,Y6=1,Q6=2;function Z6(e,t,n,r){var i=n.length,o=i,a=!r;if(e==null)return!o;for(e=Object(e);i--;){var l=n[i];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<o;){l=n[i];var s=l[0],u=e[s],c=l[1];if(a&&l[2]){if(u===void 0&&!(s in e))return!1}else{var f=new q6;if(r)var d=r(u,c,s,e,t,f);if(!(d===void 0?X6(c,u,Y6|Q6,r,f):d))return!1}}return!0}var J6=Z6,eB=Nn;function tB(e){return e===e&&!eB(e)}var t2=tB,nB=t2,rB=Qs;function iB(e){for(var t=rB(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,nB(i)]}return t}var oB=iB;function aB(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var n2=aB,lB=J6,sB=oB,uB=n2;function cB(e){var t=sB(e);return t.length==1&&t[0][2]?uB(t[0][0],t[0][1]):function(n){return n===e||lB(n,e,t)}}var fB=cB;function dB(e,t){return e!=null&&t in Object(e)}var pB=dB,hB=gd,mB=Hy,vB=jt,gB=Vy,yB=Ky,xB=Gs;function bB(e,t,n){t=hB(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=xB(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&yB(i)&&gB(a,i)&&(vB(e)||mB(e)))}var wB=bB,_B=pB,SB=wB;function EB(e,t){return e!=null&&SB(e,t,_B)}var OB=EB,$B=Xy,PB=sP,jB=OB,TB=Oy,AB=t2,CB=n2,kB=Gs,NB=1,MB=2;function RB(e,t){return TB(e)&&AB(t)?CB(kB(e),t):function(n){var r=PB(n,e);return r===void 0&&r===t?jB(n,e):$B(t,r,NB|MB)}}var IB=RB;function LB(e){return e}var La=LB;function DB(e){return function(t){return t==null?void 0:t[e]}}var FB=DB,BB=yd;function zB(e){return function(t){return BB(t,e)}}var UB=zB,HB=FB,WB=UB,VB=Oy,KB=Gs;function GB(e){return VB(e)?HB(KB(e)):WB(e)}var qB=GB,XB=fB,YB=IB,QB=La,ZB=jt,JB=qB;function e7(e){return typeof e=="function"?e:e==null?QB:typeof e=="object"?ZB(e)?YB(e[0],e[1]):XB(e):JB(e)}var di=e7;function t7(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var n7=t7;function r7(e){return e!==e}var i7=r7;function o7(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var a7=o7,l7=n7,s7=i7,u7=a7;function c7(e,t,n){return t===t?u7(e,t,n):l7(e,s7,n)}var f7=c7,d7=f7;function p7(e,t){var n=e==null?0:e.length;return!!n&&d7(e,t,0)>-1}var h7=p7;function m7(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var v7=m7;function g7(){}var y7=g7,oh=ZP,x7=y7,b7=By,w7=1/0,_7=oh&&1/b7(new oh([,-0]))[1]==w7?function(e){return new oh(e)}:x7,S7=_7,E7=BP,O7=h7,$7=v7,P7=UP,j7=S7,T7=By,A7=200;function C7(e,t,n){var r=-1,i=O7,o=e.length,a=!0,l=[],s=l;if(n)a=!1,i=$7;else if(o>=A7){var u=t?null:j7(e);if(u)return T7(u);a=!1,i=P7,s=new E7}else s=t?[]:l;e:for(;++r<o;){var c=e[r],f=t?t(c):c;if(c=n||c!==0?c:0,a&&f===f){for(var d=s.length;d--;)if(s[d]===f)continue e;t&&s.push(f),l.push(c)}else i(s,f,n)||(s!==l&&s.push(f),l.push(c))}return l}var k7=C7,N7=di,M7=k7;function R7(e,t){return e&&e.length?M7(e,N7(t)):[]}var I7=R7;const h1=me(I7);function r2(e,t,n){return t===!0?h1(e,n):te(t)?h1(e,t):e}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)}var L7=["ref"];function m1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Jn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?m1(Object(n),!0).forEach(function(r){Id(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function D7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v1(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o2(r.key),r)}}function F7(e,t,n){return t&&v1(e.prototype,t),n&&v1(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function B7(e,t,n){return t=Qc(t),z7(e,i2()?Reflect.construct(t,n||[],Qc(e).constructor):t.apply(e,n))}function z7(e,t){if(t&&(Zo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return U7(e)}function U7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(i2=function(){return!!e})()}function Qc(e){return Qc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qc(e)}function H7(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&&ov(e,t)}function ov(e,t){return ov=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ov(e,t)}function Id(e,t,n){return t=o2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o2(e){var t=W7(e,"string");return Zo(t)=="symbol"?t:t+""}function W7(e,t){if(Zo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Zo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function V7(e,t){if(e==null)return{};var n=K7(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function K7(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function G7(e){return e.value}function q7(e,t){if(j.isValidElement(e))return j.cloneElement(e,t);if(typeof e=="function")return j.createElement(e,t);t.ref;var n=V7(t,L7);return j.createElement(Dy,n)}var g1=1,Fo=function(e){function t(){var n;D7(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=B7(this,t,[].concat(i)),Id(n,"lastBoundingBox",{width:-1,height:-1}),n}return H7(t,e),F7(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>g1||Math.abs(i.height-this.lastBoundingBox.height)>g1)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Jn({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,o=i.layout,a=i.align,l=i.verticalAlign,s=i.margin,u=i.chartWidth,c=i.chartHeight,f,d;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(a==="center"&&o==="vertical"){var p=this.getBBoxSnapshot();f={left:((u||0)-p.width)/2}}else f=a==="right"?{right:s&&s.right||0}:{left:s&&s.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(l==="middle"){var h=this.getBBoxSnapshot();d={top:((c||0)-h.height)/2}}else d=l==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return Jn(Jn({},f),d)}},{key:"render",value:function(){var r=this,i=this.props,o=i.content,a=i.width,l=i.height,s=i.wrapperStyle,u=i.payloadUniqBy,c=i.payload,f=Jn(Jn({position:"absolute",width:a||"auto",height:l||"auto"},this.getDefaultPosition(s)),s);return j.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(p){r.wrapperNode=p}},q7(o,Jn(Jn({},this.props),{},{payload:r2(c,u,G7)})))}}],[{key:"getWithHeight",value:function(r,i){var o=Jn(Jn({},this.defaultProps),r.props),a=o.layout;return a==="vertical"&&G(r.props.height)?{height:r.props.height}:a==="horizontal"?{width:r.props.width||i}:null}}])}(b.PureComponent);Id(Fo,"displayName","Legend");Id(Fo,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var y1=ja,X7=Hy,Y7=jt,x1=y1?y1.isConcatSpreadable:void 0;function Q7(e){return Y7(e)||X7(e)||!!(x1&&e&&e[x1])}var Z7=Q7,J7=zy,e9=Z7;function a2(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=e9),i||(i=[]);++o<a;){var l=e[o];t>0&&n(l)?t>1?a2(l,t-1,n,r,i):J7(i,l):r||(i[i.length]=l)}return i}var Yy=a2;function t9(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),l=a.length;l--;){var s=a[e?l:++i];if(n(o[s],s,o)===!1)break}return t}}var n9=t9,r9=n9,i9=r9(),o9=i9,a9=o9,l9=Qs;function s9(e,t){return e&&a9(e,t,l9)}var l2=s9,u9=Ys;function c9(e,t){return function(n,r){if(n==null)return n;if(!u9(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}var f9=c9,d9=l2,p9=f9,h9=p9(d9),Qy=h9,m9=Qy,v9=Ys;function g9(e,t){var n=-1,r=v9(e)?Array(e.length):[];return m9(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var s2=g9;function y9(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var x9=y9,b1=Ta;function b9(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=b1(e),a=t!==void 0,l=t===null,s=t===t,u=b1(t);if(!l&&!u&&!o&&e>t||o&&a&&s&&!l&&!u||r&&a&&s||!n&&s||!i)return 1;if(!r&&!o&&!u&&e<t||u&&n&&i&&!r&&!o||l&&n&&i||!a&&i||!s)return-1}return 0}var w9=b9,_9=w9;function S9(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,l=n.length;++r<a;){var s=_9(i[r],o[r]);if(s){if(r>=l)return s;var u=n[r];return s*(u=="desc"?-1:1)}}return e.index-t.index}var E9=S9,ah=vd,O9=yd,$9=di,P9=s2,j9=x9,T9=Md,A9=E9,C9=La,k9=jt;function N9(e,t,n){t.length?t=ah(t,function(o){return k9(o)?function(a){return O9(a,o.length===1?o[0]:o)}:o}):t=[C9];var r=-1;t=ah(t,T9($9));var i=P9(e,function(o,a,l){var s=ah(t,function(u){return u(o)});return{criteria:s,index:++r,value:o}});return j9(i,function(o,a){return A9(o,a,n)})}var M9=N9;function R9(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var I9=R9,L9=I9,w1=Math.max;function D9(e,t,n){return t=w1(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=w1(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=r[i];return l[t]=n(a),L9(e,this,l)}}var u2=D9;function F9(e){return function(){return e}}var B9=F9,z9=io,U9=function(){try{var e=z9(Object,"defineProperty");return e({},"",{}),e}catch{}}(),c2=U9,H9=B9,_1=c2,W9=La,V9=_1?function(e,t){return _1(e,"toString",{configurable:!0,enumerable:!1,value:H9(t),writable:!0})}:W9,K9=V9,G9=800,q9=16,X9=Date.now;function Y9(e){var t=0,n=0;return function(){var r=X9(),i=q9-(r-n);if(n=r,i>0){if(++t>=G9)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Q9=Y9,Z9=K9,J9=Q9,ez=J9(Z9),f2=ez,tz=La,nz=u2,rz=f2;function iz(e,t){return rz(nz(e,t,tz),e+"")}var oz=iz,az=dd,lz=Ys,sz=Vy,uz=Nn;function cz(e,t,n){if(!uz(n))return!1;var r=typeof t;return(r=="number"?lz(n)&&sz(t,n.length):r=="string"&&t in n)?az(n[t],e):!1}var Ld=cz,fz=Yy,dz=M9,pz=oz,S1=Ld,hz=pz(function(e,t){if(e==null)return[];var n=t.length;return n>1&&S1(e,t[0],t[1])?t=[]:n>2&&S1(t[0],t[1],t[2])&&(t=[t[0]]),dz(e,fz(t,1),[])}),mz=hz;const Zy=me(mz);function rs(e){"@babel/helpers - typeof";return rs=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},rs(e)}function av(){return av=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},av.apply(this,arguments)}function vz(e,t){return bz(e)||xz(e,t)||yz(e,t)||gz()}function gz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
205
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yz(e,t){if(e){if(typeof e=="string")return E1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E1(e,t)}}function E1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xz(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}function bz(e){if(Array.isArray(e))return e}function O1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O1(Object(n),!0).forEach(function(r){wz(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wz(e,t,n){return t=_z(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _z(e){var t=Sz(e,"string");return rs(t)=="symbol"?t:t+""}function Sz(e,t){if(rs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(rs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ez(e){return Array.isArray(e)&&Je(e[0])&&Je(e[1])?e.join(" ~ "):e}var Oz=function(t){var n=t.separator,r=n===void 0?" : ":n,i=t.contentStyle,o=i===void 0?{}:i,a=t.itemStyle,l=a===void 0?{}:a,s=t.labelStyle,u=s===void 0?{}:s,c=t.payload,f=t.formatter,d=t.itemSorter,p=t.wrapperClassName,h=t.labelClassName,m=t.label,w=t.labelFormatter,g=t.accessibilityLayer,y=g===void 0?!1:g,x=function(){if(c&&c.length){var N={padding:0,margin:0},R=(d?Zy(c,d):c).map(function(D,M){if(D.type==="none")return null;var F=lh({display:"block",paddingTop:4,paddingBottom:4,color:D.color||"#000"},l),I=D.formatter||f||Ez,P=D.value,k=D.name,B=P,L=k;if(I&&B!=null&&L!=null){var U=I(P,k,D,M,c);if(Array.isArray(U)){var V=vz(U,2);B=V[0],L=V[1]}else B=U}return j.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(M),style:F},Je(L)?j.createElement("span",{className:"recharts-tooltip-item-name"},L):null,Je(L)?j.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,j.createElement("span",{className:"recharts-tooltip-item-value"},B),j.createElement("span",{className:"recharts-tooltip-item-unit"},D.unit||""))});return j.createElement("ul",{className:"recharts-tooltip-item-list",style:N},R)}return null},E=lh({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),_=lh({margin:0},u),S=!le(m),O=S?m:"",$=ue("recharts-default-tooltip",p),T=ue("recharts-tooltip-label",h);S&&w&&c!==void 0&&c!==null&&(O=w(m,c));var C=y?{role:"status","aria-live":"assertive"}:{};return j.createElement("div",av({className:$,style:E},C),j.createElement("p",{className:T,style:_},j.isValidElement(O)?O:"".concat(O)),x())};function is(e){"@babel/helpers - typeof";return is=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},is(e)}function Iu(e,t,n){return t=$z(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $z(e){var t=Pz(e,"string");return is(t)=="symbol"?t:t+""}function Pz(e,t){if(is(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(is(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rl="recharts-tooltip-wrapper",jz={visibility:"hidden"};function Tz(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return ue(rl,Iu(Iu(Iu(Iu({},"".concat(rl,"-right"),G(n)&&t&&G(t.x)&&n>=t.x),"".concat(rl,"-left"),G(n)&&t&&G(t.x)&&n<t.x),"".concat(rl,"-bottom"),G(r)&&t&&G(t.y)&&r>=t.y),"".concat(rl,"-top"),G(r)&&t&&G(t.y)&&r<t.y))}function $1(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,o=e.position,a=e.reverseDirection,l=e.tooltipDimension,s=e.viewBox,u=e.viewBoxDimension;if(o&&G(o[r]))return o[r];var c=n[r]-l-i,f=n[r]+i;if(t[r])return a[r]?c:f;if(a[r]){var d=c,p=s[r];return d<p?Math.max(f,s[r]):Math.max(c,s[r])}var h=f+l,m=s[r]+u;return h>m?Math.max(c,s[r]):Math.max(f,s[r])}function Az(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function Cz(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,o=e.reverseDirection,a=e.tooltipBox,l=e.useTranslate3d,s=e.viewBox,u,c,f;return a.height>0&&a.width>0&&n?(c=$1({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:s,viewBoxDimension:s.width}),f=$1({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:s,viewBoxDimension:s.height}),u=Az({translateX:c,translateY:f,useTranslate3d:l})):u=jz,{cssProperties:u,cssClasses:Tz({translateX:c,translateY:f,coordinate:n})}}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 P1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function j1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?P1(Object(n),!0).forEach(function(r){sv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nz(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p2(r.key),r)}}function Mz(e,t,n){return t&&Nz(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rz(e,t,n){return t=Zc(t),Iz(e,d2()?Reflect.construct(t,n||[],Zc(e).constructor):t.apply(e,n))}function Iz(e,t){if(t&&(Jo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lz(e)}function Lz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(d2=function(){return!!e})()}function Zc(e){return Zc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Zc(e)}function Dz(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&&lv(e,t)}function lv(e,t){return lv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},lv(e,t)}function sv(e,t,n){return t=p2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p2(e){var t=Fz(e,"string");return Jo(t)=="symbol"?t:t+""}function Fz(e,t){if(Jo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Jo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var T1=1,Bz=function(e){function t(){var n;kz(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Rz(this,t,[].concat(i)),sv(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),sv(n,"handleKeyDown",function(a){if(a.key==="Escape"){var l,s,u,c;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(s=n.props.coordinate)===null||s===void 0?void 0:s.x)!==null&&l!==void 0?l:0,y:(u=(c=n.props.coordinate)===null||c===void 0?void 0:c.y)!==null&&u!==void 0?u:0}})}}),n}return Dz(t,e),Mz(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>T1||Math.abs(r.height-this.state.lastBoundingBox.height)>T1)&&this.setState({lastBoundingBox:{width:r.width,height:r.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 r,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.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 r=this,i=this.props,o=i.active,a=i.allowEscapeViewBox,l=i.animationDuration,s=i.animationEasing,u=i.children,c=i.coordinate,f=i.hasPayload,d=i.isAnimationActive,p=i.offset,h=i.position,m=i.reverseDirection,w=i.useTranslate3d,g=i.viewBox,y=i.wrapperStyle,x=Cz({allowEscapeViewBox:a,coordinate:c,offsetTopLeft:p,position:h,reverseDirection:m,tooltipBox:this.state.lastBoundingBox,useTranslate3d:w,viewBox:g}),E=x.cssClasses,_=x.cssProperties,S=j1(j1({transition:d&&o?"transform ".concat(l,"ms ").concat(s):void 0},_),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&f?"visible":"hidden",position:"absolute",top:0,left:0},y);return j.createElement("div",{tabIndex:-1,className:E,style:S,ref:function($){r.wrapperNode=$}},u)}}])}(b.PureComponent),zz=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ni={isSsr:zz(),get:function(t){return ni[t]},set:function(t,n){if(typeof t=="string")ni[t]=n;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(i){ni[i]=t[i]})}}};function ea(e){"@babel/helpers - typeof";return ea=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},ea(e)}function A1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function C1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?A1(Object(n),!0).forEach(function(r){Jy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hz(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m2(r.key),r)}}function Wz(e,t,n){return t&&Hz(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vz(e,t,n){return t=Jc(t),Kz(e,h2()?Reflect.construct(t,n||[],Jc(e).constructor):t.apply(e,n))}function Kz(e,t){if(t&&(ea(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gz(e)}function Gz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(h2=function(){return!!e})()}function Jc(e){return Jc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jc(e)}function qz(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&&uv(e,t)}function uv(e,t){return uv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},uv(e,t)}function Jy(e,t,n){return t=m2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m2(e){var t=Xz(e,"string");return ea(t)=="symbol"?t:t+""}function Xz(e,t){if(ea(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ea(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yz(e){return e.dataKey}function Qz(e,t){return j.isValidElement(e)?j.cloneElement(e,t):typeof e=="function"?j.createElement(e,t):j.createElement(Oz,t)}var tr=function(e){function t(){return Uz(this,t),Vz(this,t,arguments)}return qz(t,e),Wz(t,[{key:"render",value:function(){var r=this,i=this.props,o=i.active,a=i.allowEscapeViewBox,l=i.animationDuration,s=i.animationEasing,u=i.content,c=i.coordinate,f=i.filterNull,d=i.isAnimationActive,p=i.offset,h=i.payload,m=i.payloadUniqBy,w=i.position,g=i.reverseDirection,y=i.useTranslate3d,x=i.viewBox,E=i.wrapperStyle,_=h??[];f&&_.length&&(_=r2(h.filter(function(O){return O.value!=null&&(O.hide!==!0||r.props.includeHidden)}),m,Yz));var S=_.length>0;return j.createElement(Bz,{allowEscapeViewBox:a,animationDuration:l,animationEasing:s,isAnimationActive:d,active:o,coordinate:c,hasPayload:S,offset:p,position:w,reverseDirection:g,useTranslate3d:y,viewBox:x,wrapperStyle:E},Qz(u,C1(C1({},this.props),{},{payload:_})))}}])}(b.PureComponent);Jy(tr,"displayName","Tooltip");Jy(tr,"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 Zz=Cn,Jz=function(){return Zz.Date.now()},eU=Jz,tU=/\s/;function nU(e){for(var t=e.length;t--&&tU.test(e.charAt(t)););return t}var rU=nU,iU=rU,oU=/^\s+/;function aU(e){return e&&e.slice(0,iU(e)+1).replace(oU,"")}var lU=aU,sU=lU,k1=Nn,uU=Ta,N1=NaN,cU=/^[-+]0x[0-9a-f]+$/i,fU=/^0b[01]+$/i,dU=/^0o[0-7]+$/i,pU=parseInt;function hU(e){if(typeof e=="number")return e;if(uU(e))return N1;if(k1(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=k1(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=sU(e);var n=fU.test(e);return n||dU.test(e)?pU(e.slice(2),n?2:8):cU.test(e)?N1:+e}var v2=hU,mU=Nn,sh=eU,M1=v2,vU="Expected a function",gU=Math.max,yU=Math.min;function xU(e,t,n){var r,i,o,a,l,s,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(vU);t=M1(t)||0,mU(n)&&(c=!!n.leading,f="maxWait"in n,o=f?gU(M1(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d);function p(S){var O=r,$=i;return r=i=void 0,u=S,a=e.apply($,O),a}function h(S){return u=S,l=setTimeout(g,t),c?p(S):a}function m(S){var O=S-s,$=S-u,T=t-O;return f?yU(T,o-$):T}function w(S){var O=S-s,$=S-u;return s===void 0||O>=t||O<0||f&&$>=o}function g(){var S=sh();if(w(S))return y(S);l=setTimeout(g,m(S))}function y(S){return l=void 0,d&&r?p(S):(r=i=void 0,a)}function x(){l!==void 0&&clearTimeout(l),u=0,r=s=i=l=void 0}function E(){return l===void 0?a:y(sh())}function _(){var S=sh(),O=w(S);if(r=arguments,i=this,s=S,O){if(l===void 0)return h(s);if(f)return clearTimeout(l),l=setTimeout(g,t),p(s)}return l===void 0&&(l=setTimeout(g,t)),a}return _.cancel=x,_.flush=E,_}var bU=xU,wU=bU,_U=Nn,SU="Expected a function";function EU(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(SU);return _U(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),wU(e,t,{leading:r,maxWait:t,trailing:i})}var OU=EU;const g2=me(OU);function os(e){"@babel/helpers - typeof";return os=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},os(e)}function R1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Lu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R1(Object(n),!0).forEach(function(r){$U(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $U(e,t,n){return t=PU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PU(e){var t=jU(e,"string");return os(t)=="symbol"?t:t+""}function jU(e,t){if(os(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(os(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TU(e,t){return NU(e)||kU(e,t)||CU(e,t)||AU()}function AU(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
206
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CU(e,t){if(e){if(typeof e=="string")return I1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I1(e,t)}}function I1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kU(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}function NU(e){if(Array.isArray(e))return e}var Da=b.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,o=e.width,a=o===void 0?"100%":o,l=e.height,s=l===void 0?"100%":l,u=e.minWidth,c=u===void 0?0:u,f=e.minHeight,d=e.maxHeight,p=e.children,h=e.debounce,m=h===void 0?0:h,w=e.id,g=e.className,y=e.onResize,x=e.style,E=x===void 0?{}:x,_=b.useRef(null),S=b.useRef();S.current=y,b.useImperativeHandle(t,function(){return Object.defineProperty(_.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),_.current},configurable:!0})});var O=b.useState({containerWidth:i.width,containerHeight:i.height}),$=TU(O,2),T=$[0],C=$[1],A=b.useCallback(function(R,D){C(function(M){var F=Math.round(R),I=Math.round(D);return M.containerWidth===F&&M.containerHeight===I?M:{containerWidth:F,containerHeight:I}})},[]);b.useEffect(function(){var R=function(k){var B,L=k[0].contentRect,U=L.width,V=L.height;A(U,V),(B=S.current)===null||B===void 0||B.call(S,U,V)};m>0&&(R=g2(R,m,{trailing:!0,leading:!1}));var D=new ResizeObserver(R),M=_.current.getBoundingClientRect(),F=M.width,I=M.height;return A(F,I),D.observe(_.current),function(){D.disconnect()}},[A,m]);var N=b.useMemo(function(){var R=T.containerWidth,D=T.containerHeight;if(R<0||D<0)return null;dr(ki(a)||ki(s),`The width(%s) and height(%s) are both fixed numbers,
207
+ maybe you don't need to use a ResponsiveContainer.`,a,s),dr(!n||n>0,"The aspect(%s) must be greater than zero.",n);var M=ki(a)?R:a,F=ki(s)?D:s;n&&n>0&&(M?F=M/n:F&&(M=F*n),d&&F>d&&(F=d)),dr(M>0||F>0,`The width(%s) and height(%s) of chart should be greater than 0,
199
208
  please check the style of container, or the props width(%s) and height(%s),
200
209
  or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
201
- height and width.`,M,F,o,s,c,f,n);var R=!Array.isArray(p)&&fr(p.type).endsWith("Chart");return j.Children.map(p,function(P){return j.isValidElement(P)?w.cloneElement(P,Lu({width:M,height:F},R?{style:Lu({height:"100%",width:"100%",maxHeight:F,maxWidth:M},P.props.style)}:{})):P})},[n,p,s,d,f,c,T,o]);return j.createElement("div",{id:b?"".concat(b):void 0,className:ue("recharts-responsive-container",v),style:Lu(Lu({},E),{},{width:o,height:s,minWidth:c,minHeight:f,maxHeight:d}),ref:_},N)}),e0=function(t){return null};e0.displayName="Cell";function os(e){"@babel/helpers - typeof";return os=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},os(e)}function D1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function uv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D1(Object(n),!0).forEach(function(r){NU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function NU(e,t,n){return t=MU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MU(e){var t=IU(e,"string");return os(t)=="symbol"?t:t+""}function IU(e,t){if(os(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(os(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fa={widthCache:{},cacheCount:0},RU=2e3,LU={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},F1="recharts_measurement_span";function DU(e){var t=uv({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var B1=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ni.isSsr)return{width:0,height:0};var r=DU(n),i=JSON.stringify({text:t,copyStyle:r});if(fa.widthCache[i])return fa.widthCache[i];try{var a=document.getElementById(F1);a||(a=document.createElement("span"),a.setAttribute("id",F1),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=uv(uv({},LU),r);Object.assign(a.style,o),a.textContent="".concat(t);var l=a.getBoundingClientRect(),s={width:l.width,height:l.height};return fa.widthCache[i]=s,++fa.cacheCount>RU&&(fa.cacheCount=0,fa.widthCache={}),s}catch{return{width:0,height:0}}},FU=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function ls(e){"@babel/helpers - typeof";return ls=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},ls(e)}function ef(e,t){return HU(e)||UU(e,t)||zU(e,t)||BU()}function BU(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
202
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zU(e,t){if(e){if(typeof e=="string")return z1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return z1(e,t)}}function z1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function UU(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function HU(e){if(Array.isArray(e))return e}function WU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U1(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,KU(r.key),r)}}function VU(e,t,n){return t&&U1(e.prototype,t),n&&U1(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function KU(e){var t=GU(e,"string");return ls(t)=="symbol"?t:t+""}function GU(e,t){if(ls(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ls(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var H1=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,W1=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,qU=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,YU=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,m2={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},XU=Object.keys(m2),ja="NaN";function QU(e,t){return e*m2[t]}var Du=function(){function e(t,n){WU(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!qU.test(n)&&(this.num=NaN,this.unit=""),XU.includes(n)&&(this.num=QU(t,n),this.unit="px")}return VU(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.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(n){var r,i=(r=YU.exec(n))!==null&&r!==void 0?r:[],a=ef(i,3),o=a[1],l=a[2];return new e(parseFloat(o),l??"")}}])}();function v2(e){if(e.includes(ja))return ja;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=H1.exec(t))!==null&&n!==void 0?n:[],i=ef(r,4),a=i[1],o=i[2],l=i[3],s=Du.parse(a??""),u=Du.parse(l??""),c=o==="*"?s.multiply(u):s.divide(u);if(c.isNaN())return ja;t=t.replace(H1,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,d=(f=W1.exec(t))!==null&&f!==void 0?f:[],p=ef(d,4),h=p[1],m=p[2],b=p[3],v=Du.parse(h??""),y=Du.parse(b??""),x=m==="+"?v.add(y):v.subtract(y);if(x.isNaN())return ja;t=t.replace(W1,x.toString())}return t}var V1=/\(([^()]*)\)/;function ZU(e){for(var t=e;t.includes("(");){var n=V1.exec(t),r=ef(n,2),i=r[1];t=t.replace(V1,v2(i))}return t}function JU(e){var t=e.replace(/\s+/g,"");return t=ZU(t),t=v2(t),t}function eH(e){try{return JU(e)}catch{return ja}}function sh(e){var t=eH(e.slice(5,-1));return t===ja?"":t}var tH=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],nH=["dx","dy","angle","className","breakAll"];function cv(){return cv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cv.apply(this,arguments)}function K1(e,t){if(e==null)return{};var n=rH(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rH(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function G1(e,t){return lH(e)||oH(e,t)||aH(e,t)||iH()}function iH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
203
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aH(e,t){if(e){if(typeof e=="string")return q1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q1(e,t)}}function q1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oH(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function lH(e){if(Array.isArray(e))return e}var g2=/[ \f\n\r\t\v\u2028\u2029]+/,y2=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var a=[];le(n)||(r?a=n.toString().split(""):a=n.toString().split(g2));var o=a.map(function(s){return{word:s,width:B1(s,i).width}}),l=r?0:B1(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:l}}catch{return null}},sH=function(t,n,r,i,a){var o=t.maxLines,l=t.children,s=t.style,u=t.breakAll,c=G(o),f=l,d=function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return M.reduce(function(F,R){var P=R.word,k=R.width,B=F[F.length-1];if(B&&(i==null||a||B.width+k+r<Number(i)))B.words.push(P),B.width+=k+r;else{var L={words:[P],width:k};F.push(L)}return F},[])},p=d(n),h=function(M){return M.reduce(function(F,R){return F.width>R.width?F:R})};if(!c)return p;for(var m="…",b=function(M){var F=f.slice(0,M),R=y2({breakAll:u,style:s,children:F+m}).wordsWithComputedWidth,P=d(R),k=P.length>o||h(P).width>Number(i);return[k,P]},v=0,y=f.length-1,x=0,E;v<=y&&x<=f.length-1;){var _=Math.floor((v+y)/2),S=_-1,O=b(S),$=G1(O,2),T=$[0],C=$[1],A=b(_),N=G1(A,1),I=N[0];if(!T&&!I&&(v=_+1),T&&I&&(y=_-1),!T&&I){E=C;break}x++}return E||p},Y1=function(t){var n=le(t)?[]:t.toString().split(g2);return[{words:n}]},uH=function(t){var n=t.width,r=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,l=t.maxLines;if((n||r)&&!ni.isSsr){var s,u,c=y2({breakAll:o,children:i,style:a});if(c){var f=c.wordsWithComputedWidth,d=c.spaceWidth;s=f,u=d}else return Y1(i);return sH({breakAll:o,children:i,maxLines:l,style:a},s,u,n,r)}return Y1(i)},X1="#808080",eo=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,o=t.lineHeight,l=o===void 0?"1em":o,s=t.capHeight,u=s===void 0?"0.71em":s,c=t.scaleToFit,f=c===void 0?!1:c,d=t.textAnchor,p=d===void 0?"start":d,h=t.verticalAnchor,m=h===void 0?"end":h,b=t.fill,v=b===void 0?X1:b,y=K1(t,tH),x=w.useMemo(function(){return uH({breakAll:y.breakAll,children:y.children,maxLines:y.maxLines,scaleToFit:f,style:y.style,width:y.width})},[y.breakAll,y.children,y.maxLines,f,y.style,y.width]),E=y.dx,_=y.dy,S=y.angle,O=y.className,$=y.breakAll,T=K1(y,nH);if(!Je(r)||!Je(a))return null;var C=r+(G(E)?E:0),A=a+(G(_)?_:0),N;switch(m){case"start":N=sh("calc(".concat(u,")"));break;case"middle":N=sh("calc(".concat((x.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:N=sh("calc(".concat(x.length-1," * -").concat(l,")"));break}var I=[];if(f){var D=x[0].width,M=y.width;I.push("scale(".concat((G(M)?M/D:1)/D,")"))}return S&&I.push("rotate(".concat(S,", ").concat(C,", ").concat(A,")")),I.length&&(T.transform=I.join(" ")),j.createElement("text",cv({},ne(T,!0),{x:C,y:A,className:ue("recharts-text",O),textAnchor:p,fill:v.includes("url")?X1:v}),x.map(function(F,R){var P=F.words.join($?"":" ");return j.createElement("tspan",{x:C,dy:R===0?N:l,key:"".concat(P,"-").concat(R)},P)}))};function ri(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function cH(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function t0(e){let t,n,r;e.length!==2?(t=ri,n=(l,s)=>ri(e(l),s),r=(l,s)=>e(l)-s):(t=e===ri||e===cH?e:fH,n=e,r=e);function i(l,s,u=0,c=l.length){if(u<c){if(t(s,s)!==0)return c;do{const f=u+c>>>1;n(l[f],s)<0?u=f+1:c=f}while(u<c)}return u}function a(l,s,u=0,c=l.length){if(u<c){if(t(s,s)!==0)return c;do{const f=u+c>>>1;n(l[f],s)<=0?u=f+1:c=f}while(u<c)}return u}function o(l,s,u=0,c=l.length){const f=i(l,s,u,c-1);return f>u&&r(l[f-1],s)>-r(l[f],s)?f-1:f}return{left:i,center:o,right:a}}function fH(){return 0}function x2(e){return e===null?NaN:+e}function*dH(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const pH=t0(ri),Zs=pH.right;t0(x2).center;class Q1 extends Map{constructor(t,n=vH){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(Z1(this,t))}has(t){return super.has(Z1(this,t))}set(t,n){return super.set(hH(this,t),n)}delete(t){return super.delete(mH(this,t))}}function Z1({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function hH({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function mH({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function vH(e){return e!==null&&typeof e=="object"?e.valueOf():e}function gH(e=ri){if(e===ri)return b2;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function b2(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const yH=Math.sqrt(50),xH=Math.sqrt(10),bH=Math.sqrt(2);function tf(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=yH?10:a>=xH?5:a>=bH?2:1;let l,s,u;return i<0?(u=Math.pow(10,-i)/o,l=Math.round(e*u),s=Math.round(t*u),l/u<e&&++l,s/u>t&&--s,u=-u):(u=Math.pow(10,i)*o,l=Math.round(e/u),s=Math.round(t/u),l*u<e&&++l,s*u>t&&--s),s<l&&.5<=n&&n<2?tf(e,t,n*2):[l,s,u]}function fv(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,o]=r?tf(t,e,n):tf(e,t,n);if(!(a>=i))return[];const l=a-i+1,s=new Array(l);if(r)if(o<0)for(let u=0;u<l;++u)s[u]=(a-u)/-o;else for(let u=0;u<l;++u)s[u]=(a-u)*o;else if(o<0)for(let u=0;u<l;++u)s[u]=(i+u)/-o;else for(let u=0;u<l;++u)s[u]=(i+u)*o;return s}function dv(e,t,n){return t=+t,e=+e,n=+n,tf(e,t,n)[2]}function pv(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?dv(t,e,n):dv(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function J1(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function ew(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function w2(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?b2:gH(i);r>n;){if(r-n>600){const s=r-n+1,u=t-n+1,c=Math.log(s),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(s-f)/s)*(u-s/2<0?-1:1),p=Math.max(n,Math.floor(t-u*f/s+d)),h=Math.min(r,Math.floor(t+(s-u)*f/s+d));w2(e,t,p,h,i)}const a=e[t];let o=n,l=r;for(il(e,n,t),i(e[r],a)>0&&il(e,n,r);o<l;){for(il(e,o,l),++o,--l;i(e[o],a)<0;)++o;for(;i(e[l],a)>0;)--l}i(e[n],a)===0?il(e,n,l):(++l,il(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function il(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function wH(e,t,n){if(e=Float64Array.from(dH(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return ew(e);if(t>=1)return J1(e);var r,i=(r-1)*t,a=Math.floor(i),o=J1(w2(e,a).subarray(0,a+1)),l=ew(e.subarray(a+1));return o+(l-o)*(i-a)}}function _H(e,t,n=x2){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e),l=+n(e[a+1],a+1,e);return o+(l-o)*(i-a)}}function SH(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r<i;)a[r]=e+r*n;return a}function mn(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function kr(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 hv=Symbol("implicit");function n0(){var e=new Q1,t=[],n=[],r=hv;function i(a){let o=e.get(a);if(o===void 0){if(r!==hv)return r;e.set(a,o=t.push(a)-1)}return n[o%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Q1;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return n0(t,n).unknown(r)},mn.apply(i,arguments),i}function ss(){var e=n0().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,l=!1,s=0,u=0,c=.5;delete e.unknown;function f(){var d=t().length,p=i<r,h=p?i:r,m=p?r:i;a=(m-h)/Math.max(1,d-s+u*2),l&&(a=Math.floor(a)),h+=(m-h-a*(d-s))*c,o=a*(1-s),l&&(h=Math.round(h),o=Math.round(o));var b=SH(d).map(function(v){return h+a*v});return n(p?b.reverse():b)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([r,i]=d,r=+r,i=+i,f()):[r,i]},e.rangeRound=function(d){return[r,i]=d,r=+r,i=+i,l=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(l=!!d,f()):l},e.padding=function(d){return arguments.length?(s=Math.min(1,u=+d),f()):s},e.paddingInner=function(d){return arguments.length?(s=Math.min(1,d),f()):s},e.paddingOuter=function(d){return arguments.length?(u=+d,f()):u},e.align=function(d){return arguments.length?(c=Math.max(0,Math.min(1,d)),f()):c},e.copy=function(){return ss(t(),[r,i]).round(l).paddingInner(s).paddingOuter(u).align(c)},mn.apply(f(),arguments)}function _2(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return _2(t())},e}function Al(){return _2(ss.apply(null,arguments).paddingInner(1))}function r0(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function S2(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Js(){}var us=.7,nf=1/us,Fa="\\s*([+-]?\\d+)\\s*",cs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",zn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",EH=/^#([0-9a-f]{3,8})$/,OH=new RegExp(`^rgb\\(${Fa},${Fa},${Fa}\\)$`),$H=new RegExp(`^rgb\\(${zn},${zn},${zn}\\)$`),PH=new RegExp(`^rgba\\(${Fa},${Fa},${Fa},${cs}\\)$`),jH=new RegExp(`^rgba\\(${zn},${zn},${zn},${cs}\\)$`),TH=new RegExp(`^hsl\\(${cs},${zn},${zn}\\)$`),AH=new RegExp(`^hsla\\(${cs},${zn},${zn},${cs}\\)$`),tw={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};r0(Js,fs,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:nw,formatHex:nw,formatHex8:CH,formatHsl:kH,formatRgb:rw,toString:rw});function nw(){return this.rgb().formatHex()}function CH(){return this.rgb().formatHex8()}function kH(){return E2(this).formatHsl()}function rw(){return this.rgb().formatRgb()}function fs(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=EH.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?iw(t):n===3?new Nt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Fu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Fu(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=OH.exec(e))?new Nt(t[1],t[2],t[3],1):(t=$H.exec(e))?new Nt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=PH.exec(e))?Fu(t[1],t[2],t[3],t[4]):(t=jH.exec(e))?Fu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=TH.exec(e))?lw(t[1],t[2]/100,t[3]/100,1):(t=AH.exec(e))?lw(t[1],t[2]/100,t[3]/100,t[4]):tw.hasOwnProperty(e)?iw(tw[e]):e==="transparent"?new Nt(NaN,NaN,NaN,0):null}function iw(e){return new Nt(e>>16&255,e>>8&255,e&255,1)}function Fu(e,t,n,r){return r<=0&&(e=t=n=NaN),new Nt(e,t,n,r)}function NH(e){return e instanceof Js||(e=fs(e)),e?(e=e.rgb(),new Nt(e.r,e.g,e.b,e.opacity)):new Nt}function mv(e,t,n,r){return arguments.length===1?NH(e):new Nt(e,t,n,r??1)}function Nt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}r0(Nt,mv,S2(Js,{brighter(e){return e=e==null?nf:Math.pow(nf,e),new Nt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?us:Math.pow(us,e),new Nt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Nt(Fi(this.r),Fi(this.g),Fi(this.b),rf(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:aw,formatHex:aw,formatHex8:MH,formatRgb:ow,toString:ow}));function aw(){return`#${Ni(this.r)}${Ni(this.g)}${Ni(this.b)}`}function MH(){return`#${Ni(this.r)}${Ni(this.g)}${Ni(this.b)}${Ni((isNaN(this.opacity)?1:this.opacity)*255)}`}function ow(){const e=rf(this.opacity);return`${e===1?"rgb(":"rgba("}${Fi(this.r)}, ${Fi(this.g)}, ${Fi(this.b)}${e===1?")":`, ${e})`}`}function rf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Fi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ni(e){return e=Fi(e),(e<16?"0":"")+e.toString(16)}function lw(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new wn(e,t,n,r)}function E2(e){if(e instanceof wn)return new wn(e.h,e.s,e.l,e.opacity);if(e instanceof Js||(e=fs(e)),!e)return new wn;if(e instanceof wn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,l=a-i,s=(a+i)/2;return l?(t===a?o=(n-r)/l+(n<r)*6:n===a?o=(r-t)/l+2:o=(t-n)/l+4,l/=s<.5?a+i:2-a-i,o*=60):l=s>0&&s<1?0:o,new wn(o,l,s,e.opacity)}function IH(e,t,n,r){return arguments.length===1?E2(e):new wn(e,t,n,r??1)}function wn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}r0(wn,IH,S2(Js,{brighter(e){return e=e==null?nf:Math.pow(nf,e),new wn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?us:Math.pow(us,e),new wn(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,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Nt(uh(e>=240?e-240:e+120,i,r),uh(e,i,r),uh(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new wn(sw(this.h),Bu(this.s),Bu(this.l),rf(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=rf(this.opacity);return`${e===1?"hsl(":"hsla("}${sw(this.h)}, ${Bu(this.s)*100}%, ${Bu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function sw(e){return e=(e||0)%360,e<0?e+360:e}function Bu(e){return Math.max(0,Math.min(1,e||0))}function uh(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const i0=e=>()=>e;function RH(e,t){return function(n){return e+n*t}}function LH(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function DH(e){return(e=+e)==1?O2:function(t,n){return n-t?LH(t,n,e):i0(isNaN(t)?n:t)}}function O2(e,t){var n=t-e;return n?RH(e,n):i0(isNaN(e)?t:e)}const uw=function e(t){var n=DH(t);function r(i,a){var o=n((i=mv(i)).r,(a=mv(a)).r),l=n(i.g,a.g),s=n(i.b,a.b),u=O2(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=l(c),i.b=s(c),i.opacity=u(c),i+""}}return r.gamma=e,r}(1);function FH(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function BH(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function zH(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o)i[o]=Fo(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(l){for(o=0;o<r;++o)a[o]=i[o](l);return a}}function UH(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function af(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function HH(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Fo(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var vv=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ch=new RegExp(vv.source,"g");function WH(e){return function(){return e}}function VH(e){return function(t){return e(t)+""}}function KH(e,t){var n=vv.lastIndex=ch.lastIndex=0,r,i,a,o=-1,l=[],s=[];for(e=e+"",t=t+"";(r=vv.exec(e))&&(i=ch.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),l[o]?l[o]+=a:l[++o]=a),(r=r[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,s.push({i:o,x:af(r,i)})),n=ch.lastIndex;return n<t.length&&(a=t.slice(n),l[o]?l[o]+=a:l[++o]=a),l.length<2?s[0]?VH(s[0].x):WH(t):(t=s.length,function(u){for(var c=0,f;c<t;++c)l[(f=s[c]).i]=f.x(u);return l.join("")})}function Fo(e,t){var n=typeof t,r;return t==null||n==="boolean"?i0(t):(n==="number"?af:n==="string"?(r=fs(t))?(t=r,uw):KH:t instanceof fs?uw:t instanceof Date?UH:BH(t)?FH:Array.isArray(t)?zH:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?HH:af)(e,t)}function a0(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function GH(e,t){t===void 0&&(t=e,e=Fo);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(o){var l=Math.max(0,Math.min(r-1,Math.floor(o*=r)));return a[l](o-l)}}function qH(e){return function(){return e}}function of(e){return+e}var cw=[0,1];function St(e){return e}function gv(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:qH(isNaN(t)?NaN:.5)}function YH(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function XH(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=gv(i,r),a=n(o,a)):(r=gv(r,i),a=n(a,o)),function(l){return a(r(l))}}function QH(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=gv(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(l){var s=Zs(e,l,1,r)-1;return a[s](i[s](l))}}function eu(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Dd(){var e=cw,t=cw,n=Fo,r,i,a,o=St,l,s,u;function c(){var d=Math.min(e.length,t.length);return o!==St&&(o=YH(e[0],e[d-1])),l=d>2?QH:XH,s=u=null,f}function f(d){return d==null||isNaN(d=+d)?a:(s||(s=l(e.map(r),t,n)))(r(o(d)))}return f.invert=function(d){return o(i((u||(u=l(t,e.map(r),af)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,of),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),n=a0,c()},f.clamp=function(d){return arguments.length?(o=d?!0:St,c()):o!==St},f.interpolate=function(d){return arguments.length?(n=d,c()):n},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,p){return r=d,i=p,c()}}function o0(){return Dd()(St,St)}function ZH(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function lf(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function to(e){return e=lf(Math.abs(e)),e?e[1]:NaN}function JH(e,t){return function(n,r){for(var i=n.length,a=[],o=0,l=e[0],s=0;i>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),a.push(n.substring(i-=l,i+l)),!((s+=l+1)>r));)l=e[o=(o+1)%e.length];return a.reverse().join(t)}}function eW(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var tW=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ds(e){if(!(t=tW.exec(e)))throw new Error("invalid format: "+e);var t;return new l0({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]})}ds.prototype=l0.prototype;function l0(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+""}l0.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 nW(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var $2;function rW(e,t){var n=lf(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-($2=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+lf(e,Math.max(0,t+a-1))[0]}function fw(e,t){var n=lf(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const dw={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:ZH,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)=>fw(e*100,t),r:fw,s:rW,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function pw(e){return e}var hw=Array.prototype.map,mw=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function iW(e){var t=e.grouping===void 0||e.thousands===void 0?pw:JH(hw.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?pw:eW(hw.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function u(f){f=ds(f);var d=f.fill,p=f.align,h=f.sign,m=f.symbol,b=f.zero,v=f.width,y=f.comma,x=f.precision,E=f.trim,_=f.type;_==="n"?(y=!0,_="g"):dw[_]||(x===void 0&&(x=12),E=!0,_="g"),(b||d==="0"&&p==="=")&&(b=!0,d="0",p="=");var S=m==="$"?n:m==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",O=m==="$"?r:/[%p]/.test(_)?o:"",$=dw[_],T=/[defgprs%]/.test(_);x=x===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function C(A){var N=S,I=O,D,M,F;if(_==="c")I=$(A)+I,A="";else{A=+A;var R=A<0||1/A<0;if(A=isNaN(A)?s:$(Math.abs(A),x),E&&(A=nW(A)),R&&+A==0&&h!=="+"&&(R=!1),N=(R?h==="("?h:l:h==="-"||h==="("?"":h)+N,I=(_==="s"?mw[8+$2/3]:"")+I+(R&&h==="("?")":""),T){for(D=-1,M=A.length;++D<M;)if(F=A.charCodeAt(D),48>F||F>57){I=(F===46?i+A.slice(D+1):A.slice(D))+I,A=A.slice(0,D);break}}}y&&!b&&(A=t(A,1/0));var P=N.length+A.length+I.length,k=P<v?new Array(v-P+1).join(d):"";switch(y&&b&&(A=t(k+A,k.length?v-I.length:1/0),k=""),p){case"<":A=N+A+I+k;break;case"=":A=N+k+A+I;break;case"^":A=k.slice(0,P=k.length>>1)+N+A+I+k.slice(P);break;default:A=k+N+A+I;break}return a(A)}return C.toString=function(){return f+""},C}function c(f,d){var p=u((f=ds(f),f.type="f",f)),h=Math.max(-8,Math.min(8,Math.floor(to(d)/3)))*3,m=Math.pow(10,-h),b=mw[8+h/3];return function(v){return p(m*v)+b}}return{format:u,formatPrefix:c}}var zu,s0,P2;aW({thousands:",",grouping:[3],currency:["$",""]});function aW(e){return zu=iW(e),s0=zu.format,P2=zu.formatPrefix,zu}function oW(e){return Math.max(0,-to(Math.abs(e)))}function lW(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(to(t)/3)))*3-to(Math.abs(e)))}function sW(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,to(t)-to(e))+1}function j2(e,t,n,r){var i=pv(e,t,n),a;switch(r=ds(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=lW(i,o))&&(r.precision=a),P2(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=sW(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=oW(i))&&(r.precision=a-(r.type==="%")*2);break}}return s0(r)}function pi(e){var t=e.domain;return e.ticks=function(n){var r=t();return fv(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return j2(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],l=r[a],s,u,c=10;for(l<o&&(u=o,o=l,l=u,u=i,i=a,a=u);c-- >0;){if(u=dv(o,l,n),u===s)return r[i]=o,r[a]=l,t(r);if(u>0)o=Math.floor(o/u)*u,l=Math.ceil(l/u)*u;else if(u<0)o=Math.ceil(o*u)/u,l=Math.floor(l*u)/u;else break;s=u}return e},e}function sf(){var e=o0();return e.copy=function(){return eu(e,sf())},mn.apply(e,arguments),pi(e)}function T2(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,of),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return T2(e).unknown(t)},e=arguments.length?Array.from(e,of):[0,1],pi(n)}function A2(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function vw(e){return Math.log(e)}function gw(e){return Math.exp(e)}function uW(e){return-Math.log(-e)}function cW(e){return-Math.exp(-e)}function fW(e){return isFinite(e)?+("1e"+e):e<0?0:e}function dW(e){return e===10?fW:e===Math.E?Math.exp:t=>Math.pow(e,t)}function pW(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 yw(e){return(t,n)=>-e(-t,n)}function u0(e){const t=e(vw,gw),n=t.domain;let r=10,i,a;function o(){return i=pW(r),a=dW(r),n()[0]<0?(i=yw(i),a=yw(a),e(uW,cW)):e(vw,gw),t}return t.base=function(l){return arguments.length?(r=+l,o()):r},t.domain=function(l){return arguments.length?(n(l),o()):n()},t.ticks=l=>{const s=n();let u=s[0],c=s[s.length-1];const f=c<u;f&&([u,c]=[c,u]);let d=i(u),p=i(c),h,m;const b=l==null?10:+l;let v=[];if(!(r%1)&&p-d<b){if(d=Math.floor(d),p=Math.ceil(p),u>0){for(;d<=p;++d)for(h=1;h<r;++h)if(m=d<0?h/a(-d):h*a(d),!(m<u)){if(m>c)break;v.push(m)}}else for(;d<=p;++d)for(h=r-1;h>=1;--h)if(m=d>0?h/a(-d):h*a(d),!(m<u)){if(m>c)break;v.push(m)}v.length*2<b&&(v=fv(u,c,b))}else v=fv(d,p,Math.min(p-d,b)).map(a);return f?v.reverse():v},t.tickFormat=(l,s)=>{if(l==null&&(l=10),s==null&&(s=r===10?"s":","),typeof s!="function"&&(!(r%1)&&(s=ds(s)).precision==null&&(s.trim=!0),s=s0(s)),l===1/0)return s;const u=Math.max(1,r*l/t.ticks().length);return c=>{let f=c/a(Math.round(i(c)));return f*r<r-.5&&(f*=r),f<=u?s(c):""}},t.nice=()=>n(A2(n(),{floor:l=>a(Math.floor(i(l))),ceil:l=>a(Math.ceil(i(l)))})),t}function C2(){const e=u0(Dd()).domain([1,10]);return e.copy=()=>eu(e,C2()).base(e.base()),mn.apply(e,arguments),e}function xw(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function bw(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function c0(e){var t=1,n=e(xw(t),bw(t));return n.constant=function(r){return arguments.length?e(xw(t=+r),bw(t)):t},pi(n)}function k2(){var e=c0(Dd());return e.copy=function(){return eu(e,k2()).constant(e.constant())},mn.apply(e,arguments)}function ww(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function hW(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function mW(e){return e<0?-e*e:e*e}function f0(e){var t=e(St,St),n=1;function r(){return n===1?e(St,St):n===.5?e(hW,mW):e(ww(n),ww(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},pi(t)}function d0(){var e=f0(Dd());return e.copy=function(){return eu(e,d0()).exponent(e.exponent())},mn.apply(e,arguments),e}function vW(){return d0.apply(null,arguments).exponent(.5)}function _w(e){return Math.sign(e)*e*e}function gW(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function N2(){var e=o0(),t=[0,1],n=!1,r;function i(a){var o=gW(e(a));return isNaN(o)?r:n?Math.round(o):o}return i.invert=function(a){return e.invert(_w(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,of)).map(_w)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(n=!!a,i):n},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return N2(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},mn.apply(i,arguments),pi(i)}function M2(){var e=[],t=[],n=[],r;function i(){var o=0,l=Math.max(1,t.length);for(n=new Array(l-1);++o<l;)n[o-1]=_H(e,o/l);return a}function a(o){return o==null||isNaN(o=+o)?r:t[Zs(n,o)]}return a.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?n[l-1]:e[0],l<n.length?n[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(ri),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return M2().domain(e).range(t).unknown(r)},mn.apply(a,arguments)}function I2(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[Zs(r,s,0,n)]:a}function l(){var s=-1;for(r=new Array(n);++s<n;)r[s]=((s+1)*t-(s-n)*e)/(n+1);return o}return o.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,l()):[e,t]},o.range=function(s){return arguments.length?(n=(i=Array.from(s)).length-1,l()):i.slice()},o.invertExtent=function(s){var u=i.indexOf(s);return u<0?[NaN,NaN]:u<1?[e,r[0]]:u>=n?[r[n-1],t]:[r[u-1],r[u]]},o.unknown=function(s){return arguments.length&&(a=s),o},o.thresholds=function(){return r.slice()},o.copy=function(){return I2().domain([e,t]).range(i).unknown(a)},mn.apply(pi(o),arguments)}function R2(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[Zs(e,a,0,r)]:n}return i.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),r=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?(n=a,i):n},i.copy=function(){return R2().domain(e).range(t).unknown(n)},mn.apply(i,arguments)}const fh=new Date,dh=new Date;function et(e,t,n,r){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 s=[];if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a<o)||!(l>0))return s;let u;do s.push(u=new Date(+a)),t(a,l),e(a);while(u<a&&a<o);return s},i.filter=a=>et(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););}),n&&(i.count=(a,o)=>(fh.setTime(+a),dh.setTime(+o),e(fh),e(dh),Math.floor(n(fh,dh))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const uf=et(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);uf.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?et(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):uf);uf.range;const lr=1e3,ln=lr*60,sr=ln*60,Er=sr*24,p0=Er*7,Sw=Er*30,ph=Er*365,Mi=et(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*lr)},(e,t)=>(t-e)/lr,e=>e.getUTCSeconds());Mi.range;const h0=et(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*lr)},(e,t)=>{e.setTime(+e+t*ln)},(e,t)=>(t-e)/ln,e=>e.getMinutes());h0.range;const m0=et(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ln)},(e,t)=>(t-e)/ln,e=>e.getUTCMinutes());m0.range;const v0=et(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*lr-e.getMinutes()*ln)},(e,t)=>{e.setTime(+e+t*sr)},(e,t)=>(t-e)/sr,e=>e.getHours());v0.range;const g0=et(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*sr)},(e,t)=>(t-e)/sr,e=>e.getUTCHours());g0.range;const tu=et(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ln)/Er,e=>e.getDate()-1);tu.range;const Fd=et(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Er,e=>e.getUTCDate()-1);Fd.range;const L2=et(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Er,e=>Math.floor(e/Er));L2.range;function aa(e){return et(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ln)/p0)}const Bd=aa(0),cf=aa(1),yW=aa(2),xW=aa(3),no=aa(4),bW=aa(5),wW=aa(6);Bd.range;cf.range;yW.range;xW.range;no.range;bW.range;wW.range;function oa(e){return et(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/p0)}const zd=oa(0),ff=oa(1),_W=oa(2),SW=oa(3),ro=oa(4),EW=oa(5),OW=oa(6);zd.range;ff.range;_W.range;SW.range;ro.range;EW.range;OW.range;const y0=et(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());y0.range;const x0=et(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());x0.range;const Or=et(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());Or.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:et(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Or.range;const $r=et(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());$r.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:et(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});$r.range;function D2(e,t,n,r,i,a){const o=[[Mi,1,lr],[Mi,5,5*lr],[Mi,15,15*lr],[Mi,30,30*lr],[a,1,ln],[a,5,5*ln],[a,15,15*ln],[a,30,30*ln],[i,1,sr],[i,3,3*sr],[i,6,6*sr],[i,12,12*sr],[r,1,Er],[r,2,2*Er],[n,1,p0],[t,1,Sw],[t,3,3*Sw],[e,1,ph]];function l(u,c,f){const d=c<u;d&&([u,c]=[c,u]);const p=f&&typeof f.range=="function"?f:s(u,c,f),h=p?p.range(u,+c+1):[];return d?h.reverse():h}function s(u,c,f){const d=Math.abs(c-u)/f,p=t0(([,,b])=>b).right(o,d);if(p===o.length)return e.every(pv(u/ph,c/ph,f));if(p===0)return uf.every(Math.max(pv(u,c,f),1));const[h,m]=o[d/o[p-1][2]<o[p][2]/d?p-1:p];return h.every(m)}return[l,s]}const[$W,PW]=D2($r,x0,zd,L2,g0,m0),[jW,TW]=D2(Or,y0,Bd,tu,v0,h0);function hh(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 mh(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 al(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function AW(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,l=e.months,s=e.shortMonths,u=ol(i),c=ll(i),f=ol(a),d=ll(a),p=ol(o),h=ll(o),m=ol(l),b=ll(l),v=ol(s),y=ll(s),x={a:R,A:P,b:k,B,c:null,d:Tw,e:Tw,f:JW,g:uV,G:fV,H:XW,I:QW,j:ZW,L:F2,m:eV,M:tV,p:L,q:U,Q:kw,s:Nw,S:nV,u:rV,U:iV,V:aV,w:oV,W:lV,x:null,X:null,y:sV,Y:cV,Z:dV,"%":Cw},E={a:V,A:re,b:ie,B:J,c:null,d:Aw,e:Aw,f:vV,g:$V,G:jV,H:pV,I:hV,j:mV,L:z2,m:gV,M:yV,p:Ce,q:Oe,Q:kw,s:Nw,S:xV,u:bV,U:wV,V:_V,w:SV,W:EV,x:null,X:null,y:OV,Y:PV,Z:TV,"%":Cw},_={a:C,A,b:N,B:I,c:D,d:Pw,e:Pw,f:KW,g:$w,G:Ow,H:jw,I:jw,j:UW,L:VW,m:zW,M:HW,p:T,q:BW,Q:qW,s:YW,S:WW,u:IW,U:RW,V:LW,w:MW,W:DW,x:M,X:F,y:$w,Y:Ow,Z:FW,"%":GW};x.x=S(n,x),x.X=S(r,x),x.c=S(t,x),E.x=S(n,E),E.X=S(r,E),E.c=S(t,E);function S(K,Z){return function(ee){var H=[],ke=-1,oe=0,He=K.length,qe,Tt,Ir;for(ee instanceof Date||(ee=new Date(+ee));++ke<He;)K.charCodeAt(ke)===37&&(H.push(K.slice(oe,ke)),(Tt=Ew[qe=K.charAt(++ke)])!=null?qe=K.charAt(++ke):Tt=qe==="e"?" ":"0",(Ir=Z[qe])&&(qe=Ir(ee,Tt)),H.push(qe),oe=ke+1);return H.push(K.slice(oe,ke)),H.join("")}}function O(K,Z){return function(ee){var H=al(1900,void 0,1),ke=$(H,K,ee+="",0),oe,He;if(ke!=ee.length)return null;if("Q"in H)return new Date(H.Q);if("s"in H)return new Date(H.s*1e3+("L"in H?H.L:0));if(Z&&!("Z"in H)&&(H.Z=0),"p"in H&&(H.H=H.H%12+H.p*12),H.m===void 0&&(H.m="q"in H?H.q:0),"V"in H){if(H.V<1||H.V>53)return null;"w"in H||(H.w=1),"Z"in H?(oe=mh(al(H.y,0,1)),He=oe.getUTCDay(),oe=He>4||He===0?ff.ceil(oe):ff(oe),oe=Fd.offset(oe,(H.V-1)*7),H.y=oe.getUTCFullYear(),H.m=oe.getUTCMonth(),H.d=oe.getUTCDate()+(H.w+6)%7):(oe=hh(al(H.y,0,1)),He=oe.getDay(),oe=He>4||He===0?cf.ceil(oe):cf(oe),oe=tu.offset(oe,(H.V-1)*7),H.y=oe.getFullYear(),H.m=oe.getMonth(),H.d=oe.getDate()+(H.w+6)%7)}else("W"in H||"U"in H)&&("w"in H||(H.w="u"in H?H.u%7:"W"in H?1:0),He="Z"in H?mh(al(H.y,0,1)).getUTCDay():hh(al(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(He+5)%7:H.w+H.U*7-(He+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,mh(H)):hh(H)}}function $(K,Z,ee,H){for(var ke=0,oe=Z.length,He=ee.length,qe,Tt;ke<oe;){if(H>=He)return-1;if(qe=Z.charCodeAt(ke++),qe===37){if(qe=Z.charAt(ke++),Tt=_[qe in Ew?Z.charAt(ke++):qe],!Tt||(H=Tt(K,ee,H))<0)return-1}else if(qe!=ee.charCodeAt(H++))return-1}return H}function T(K,Z,ee){var H=u.exec(Z.slice(ee));return H?(K.p=c.get(H[0].toLowerCase()),ee+H[0].length):-1}function C(K,Z,ee){var H=p.exec(Z.slice(ee));return H?(K.w=h.get(H[0].toLowerCase()),ee+H[0].length):-1}function A(K,Z,ee){var H=f.exec(Z.slice(ee));return H?(K.w=d.get(H[0].toLowerCase()),ee+H[0].length):-1}function N(K,Z,ee){var H=v.exec(Z.slice(ee));return H?(K.m=y.get(H[0].toLowerCase()),ee+H[0].length):-1}function I(K,Z,ee){var H=m.exec(Z.slice(ee));return H?(K.m=b.get(H[0].toLowerCase()),ee+H[0].length):-1}function D(K,Z,ee){return $(K,t,Z,ee)}function M(K,Z,ee){return $(K,n,Z,ee)}function F(K,Z,ee){return $(K,r,Z,ee)}function R(K){return o[K.getDay()]}function P(K){return a[K.getDay()]}function k(K){return s[K.getMonth()]}function B(K){return l[K.getMonth()]}function L(K){return i[+(K.getHours()>=12)]}function U(K){return 1+~~(K.getMonth()/3)}function V(K){return o[K.getUTCDay()]}function re(K){return a[K.getUTCDay()]}function ie(K){return s[K.getUTCMonth()]}function J(K){return l[K.getUTCMonth()]}function Ce(K){return i[+(K.getUTCHours()>=12)]}function Oe(K){return 1+~~(K.getUTCMonth()/3)}return{format:function(K){var Z=S(K+="",x);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=S(K+="",E);return Z.toString=function(){return K},Z},utcParse:function(K){var Z=O(K+="",!0);return Z.toString=function(){return K},Z}}}var Ew={"-":"",_:" ",0:"0"},at=/^\s*\d+/,CW=/^%/,kW=/[\\^$*+?|[\]().{}]/g;function ce(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function NW(e){return e.replace(kW,"\\$&")}function ol(e){return new RegExp("^(?:"+e.map(NW).join("|")+")","i")}function ll(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function MW(e,t,n){var r=at.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function IW(e,t,n){var r=at.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function RW(e,t,n){var r=at.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function LW(e,t,n){var r=at.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function DW(e,t,n){var r=at.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Ow(e,t,n){var r=at.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function $w(e,t,n){var r=at.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function FW(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function BW(e,t,n){var r=at.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function zW(e,t,n){var r=at.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Pw(e,t,n){var r=at.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function UW(e,t,n){var r=at.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function jw(e,t,n){var r=at.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function HW(e,t,n){var r=at.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function WW(e,t,n){var r=at.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function VW(e,t,n){var r=at.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function KW(e,t,n){var r=at.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function GW(e,t,n){var r=CW.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function qW(e,t,n){var r=at.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function YW(e,t,n){var r=at.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Tw(e,t){return ce(e.getDate(),t,2)}function XW(e,t){return ce(e.getHours(),t,2)}function QW(e,t){return ce(e.getHours()%12||12,t,2)}function ZW(e,t){return ce(1+tu.count(Or(e),e),t,3)}function F2(e,t){return ce(e.getMilliseconds(),t,3)}function JW(e,t){return F2(e,t)+"000"}function eV(e,t){return ce(e.getMonth()+1,t,2)}function tV(e,t){return ce(e.getMinutes(),t,2)}function nV(e,t){return ce(e.getSeconds(),t,2)}function rV(e){var t=e.getDay();return t===0?7:t}function iV(e,t){return ce(Bd.count(Or(e)-1,e),t,2)}function B2(e){var t=e.getDay();return t>=4||t===0?no(e):no.ceil(e)}function aV(e,t){return e=B2(e),ce(no.count(Or(e),e)+(Or(e).getDay()===4),t,2)}function oV(e){return e.getDay()}function lV(e,t){return ce(cf.count(Or(e)-1,e),t,2)}function sV(e,t){return ce(e.getFullYear()%100,t,2)}function uV(e,t){return e=B2(e),ce(e.getFullYear()%100,t,2)}function cV(e,t){return ce(e.getFullYear()%1e4,t,4)}function fV(e,t){var n=e.getDay();return e=n>=4||n===0?no(e):no.ceil(e),ce(e.getFullYear()%1e4,t,4)}function dV(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ce(t/60|0,"0",2)+ce(t%60,"0",2)}function Aw(e,t){return ce(e.getUTCDate(),t,2)}function pV(e,t){return ce(e.getUTCHours(),t,2)}function hV(e,t){return ce(e.getUTCHours()%12||12,t,2)}function mV(e,t){return ce(1+Fd.count($r(e),e),t,3)}function z2(e,t){return ce(e.getUTCMilliseconds(),t,3)}function vV(e,t){return z2(e,t)+"000"}function gV(e,t){return ce(e.getUTCMonth()+1,t,2)}function yV(e,t){return ce(e.getUTCMinutes(),t,2)}function xV(e,t){return ce(e.getUTCSeconds(),t,2)}function bV(e){var t=e.getUTCDay();return t===0?7:t}function wV(e,t){return ce(zd.count($r(e)-1,e),t,2)}function U2(e){var t=e.getUTCDay();return t>=4||t===0?ro(e):ro.ceil(e)}function _V(e,t){return e=U2(e),ce(ro.count($r(e),e)+($r(e).getUTCDay()===4),t,2)}function SV(e){return e.getUTCDay()}function EV(e,t){return ce(ff.count($r(e)-1,e),t,2)}function OV(e,t){return ce(e.getUTCFullYear()%100,t,2)}function $V(e,t){return e=U2(e),ce(e.getUTCFullYear()%100,t,2)}function PV(e,t){return ce(e.getUTCFullYear()%1e4,t,4)}function jV(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ro(e):ro.ceil(e),ce(e.getUTCFullYear()%1e4,t,4)}function TV(){return"+0000"}function Cw(){return"%"}function kw(e){return+e}function Nw(e){return Math.floor(+e/1e3)}var da,H2,W2;AV({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 AV(e){return da=AW(e),H2=da.format,da.parse,W2=da.utcFormat,da.utcParse,da}function CV(e){return new Date(e)}function kV(e){return e instanceof Date?+e:+new Date(+e)}function b0(e,t,n,r,i,a,o,l,s,u){var c=o0(),f=c.invert,d=c.domain,p=u(".%L"),h=u(":%S"),m=u("%I:%M"),b=u("%I %p"),v=u("%a %d"),y=u("%b %d"),x=u("%B"),E=u("%Y");function _(S){return(s(S)<S?p:l(S)<S?h:o(S)<S?m:a(S)<S?b:r(S)<S?i(S)<S?v:y:n(S)<S?x:E)(S)}return c.invert=function(S){return new Date(f(S))},c.domain=function(S){return arguments.length?d(Array.from(S,kV)):d().map(CV)},c.ticks=function(S){var O=d();return e(O[0],O[O.length-1],S??10)},c.tickFormat=function(S,O){return O==null?_:u(O)},c.nice=function(S){var O=d();return(!S||typeof S.range!="function")&&(S=t(O[0],O[O.length-1],S??10)),S?d(A2(O,S)):c},c.copy=function(){return eu(c,b0(e,t,n,r,i,a,o,l,s,u))},c}function NV(){return mn.apply(b0(jW,TW,Or,y0,Bd,tu,v0,h0,Mi,H2).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function MV(){return mn.apply(b0($W,PW,$r,x0,zd,Fd,g0,m0,Mi,W2).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ud(){var e=0,t=1,n,r,i,a,o=St,l=!1,s;function u(f){return f==null||isNaN(f=+f)?s:o(i===0?.5:(f=(a(f)-n)*i,l?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(f){return arguments.length?(l=!!f,u):l},u.interpolator=function(f){return arguments.length?(o=f,u):o};function c(f){return function(d){var p,h;return arguments.length?([p,h]=d,o=f(p,h),u):[o(0),o(1)]}}return u.range=c(Fo),u.rangeRound=c(a0),u.unknown=function(f){return arguments.length?(s=f,u):s},function(f){return a=f,n=f(e),r=f(t),i=n===r?0:1/(r-n),u}}function hi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function V2(){var e=pi(Ud()(St));return e.copy=function(){return hi(e,V2())},kr.apply(e,arguments)}function K2(){var e=u0(Ud()).domain([1,10]);return e.copy=function(){return hi(e,K2()).base(e.base())},kr.apply(e,arguments)}function G2(){var e=c0(Ud());return e.copy=function(){return hi(e,G2()).constant(e.constant())},kr.apply(e,arguments)}function w0(){var e=f0(Ud());return e.copy=function(){return hi(e,w0()).exponent(e.exponent())},kr.apply(e,arguments)}function IV(){return w0.apply(null,arguments).exponent(.5)}function q2(){var e=[],t=St;function n(r){if(r!=null&&!isNaN(r=+r))return t((Zs(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(ri),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,a)=>wH(e,a/r))},n.copy=function(){return q2(t).domain(e)},kr.apply(n,arguments)}function Hd(){var e=0,t=.5,n=1,r=1,i,a,o,l,s,u=St,c,f=!1,d;function p(m){return isNaN(m=+m)?d:(m=.5+((m=+c(m))-a)*(r*m<r*a?l:s),u(f?Math.max(0,Math.min(1,m)):m))}p.domain=function(m){return arguments.length?([e,t,n]=m,i=c(e=+e),a=c(t=+t),o=c(n=+n),l=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),r=a<i?-1:1,p):[e,t,n]},p.clamp=function(m){return arguments.length?(f=!!m,p):f},p.interpolator=function(m){return arguments.length?(u=m,p):u};function h(m){return function(b){var v,y,x;return arguments.length?([v,y,x]=b,u=GH(m,[v,y,x]),p):[u(0),u(.5),u(1)]}}return p.range=h(Fo),p.rangeRound=h(a0),p.unknown=function(m){return arguments.length?(d=m,p):d},function(m){return c=m,i=m(e),a=m(t),o=m(n),l=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),r=a<i?-1:1,p}}function Y2(){var e=pi(Hd()(St));return e.copy=function(){return hi(e,Y2())},kr.apply(e,arguments)}function X2(){var e=u0(Hd()).domain([.1,1,10]);return e.copy=function(){return hi(e,X2()).base(e.base())},kr.apply(e,arguments)}function Q2(){var e=c0(Hd());return e.copy=function(){return hi(e,Q2()).constant(e.constant())},kr.apply(e,arguments)}function _0(){var e=f0(Hd());return e.copy=function(){return hi(e,_0()).exponent(e.exponent())},kr.apply(e,arguments)}function RV(){return _0.apply(null,arguments).exponent(.5)}const Mw=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:ss,scaleDiverging:Y2,scaleDivergingLog:X2,scaleDivergingPow:_0,scaleDivergingSqrt:RV,scaleDivergingSymlog:Q2,scaleIdentity:T2,scaleImplicit:hv,scaleLinear:sf,scaleLog:C2,scaleOrdinal:n0,scalePoint:Al,scalePow:d0,scaleQuantile:M2,scaleQuantize:I2,scaleRadial:N2,scaleSequential:V2,scaleSequentialLog:K2,scaleSequentialPow:w0,scaleSequentialQuantile:q2,scaleSequentialSqrt:IV,scaleSequentialSymlog:G2,scaleSqrt:vW,scaleSymlog:k2,scaleThreshold:R2,scaleTime:NV,scaleUtc:MV,tickFormat:j2},Symbol.toStringTag,{value:"Module"}));var LV=To;function DV(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],o=t(a);if(o!=null&&(l===void 0?o===o&&!LV(o):n(o,l)))var l=o,s=a}return s}var Wd=DV;function FV(e,t){return e>t}var Z2=FV,BV=Wd,zV=Z2,UV=Lo;function HV(e){return e&&e.length?BV(e,UV,zV):void 0}var WV=HV;const Vd=me(WV);function VV(e,t){return e<t}var J2=VV,KV=Wd,GV=J2,qV=Lo;function YV(e){return e&&e.length?KV(e,qV,GV):void 0}var XV=YV;const Kd=me(XV);var QV=vd,ZV=di,JV=a2,eK=jt;function tK(e,t){var n=eK(e)?QV:JV;return n(e,ZV(t))}var nK=tK,rK=Xy,iK=nK;function aK(e,t){return rK(iK(e,t),1)}var oK=aK;const lK=me(oK);var sK=Yy;function uK(e,t){return sK(e,t)}var cK=uK;const Gd=me(cK);var Bo=1e9,fK={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},E0,Ie=!0,dn="[DecimalError] ",Bi=dn+"Invalid argument: ",S0=dn+"Exponent out of range: ",zo=Math.floor,$i=Math.pow,dK=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Bt,tt=1e7,je=7,ej=9007199254740991,df=zo(ej/je),Y={};Y.absoluteValue=Y.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Y.comparedTo=Y.cmp=function(e){var t,n,r,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(r=a.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1};Y.decimalPlaces=Y.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*je;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};Y.dividedBy=Y.div=function(e){return pr(this,new this.constructor(e))};Y.dividedToIntegerBy=Y.idiv=function(e){var t=this,n=t.constructor;return ye(pr(t,new n(e),0,1),n.precision)};Y.equals=Y.eq=function(e){return!this.cmp(e)};Y.exponent=function(){return Ge(this)};Y.greaterThan=Y.gt=function(e){return this.cmp(e)>0};Y.greaterThanOrEqualTo=Y.gte=function(e){return this.cmp(e)>=0};Y.isInteger=Y.isint=function(){return this.e>this.d.length-2};Y.isNegative=Y.isneg=function(){return this.s<0};Y.isPositive=Y.ispos=function(){return this.s>0};Y.isZero=function(){return this.s===0};Y.lessThan=Y.lt=function(e){return this.cmp(e)<0};Y.lessThanOrEqualTo=Y.lte=function(e){return this.cmp(e)<1};Y.logarithm=Y.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Bt))throw Error(dn+"NaN");if(n.s<1)throw Error(dn+(n.s?"NaN":"-Infinity"));return n.eq(Bt)?new r(0):(Ie=!1,t=pr(ps(n,a),ps(e,a),a),Ie=!0,ye(t,i))};Y.minus=Y.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?rj(t,e):tj(t,(e.s=-e.s,e))};Y.modulo=Y.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(dn+"NaN");return n.s?(Ie=!1,t=pr(n,e,0,1).times(e),Ie=!0,n.minus(t)):ye(new r(n),i)};Y.naturalExponential=Y.exp=function(){return nj(this)};Y.naturalLogarithm=Y.ln=function(){return ps(this)};Y.negated=Y.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Y.plus=Y.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?tj(t,e):rj(t,(e.s=-e.s,e))};Y.precision=Y.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Bi+e);if(t=Ge(i)+1,r=i.d.length-1,n=r*je+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};Y.squareRoot=Y.sqrt=function(){var e,t,n,r,i,a,o,l=this,s=l.constructor;if(l.s<1){if(!l.s)return new s(0);throw Error(dn+"NaN")}for(e=Ge(l),Ie=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=Dn(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=zo((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),r=new s(t)):r=new s(i.toString()),n=s.precision,i=o=n+3;;)if(a=r,r=a.plus(pr(l,a,o+2)).times(.5),Dn(a.d).slice(0,o)===(t=Dn(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(ye(a,n+1,0),a.times(a).eq(l)){r=a;break}}else if(t!="9999")break;o+=4}return Ie=!0,ye(r,n)};Y.times=Y.mul=function(e){var t,n,r,i,a,o,l,s,u,c=this,f=c.constructor,d=c.d,p=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,n=c.e+e.e,s=d.length,u=p.length,s<u&&(a=d,d=p,p=a,o=s,s=u,u=o),a=[],o=s+u,r=o;r--;)a.push(0);for(r=u;--r>=0;){for(t=0,i=s+r;i>r;)l=a[i]+p[r]*d[i-r-1]+t,a[i--]=l%tt|0,t=l/tt|0;a[i]=(a[i]+t)%tt|0}for(;!a[--o];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,Ie?ye(e,f.precision):e};Y.toDecimalPlaces=Y.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(qn(e,0,Bo),t===void 0?t=r.rounding:qn(t,0,8),ye(n,e+Ge(n)+1,t))};Y.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=qi(r,!0):(qn(e,0,Bo),t===void 0?t=i.rounding:qn(t,0,8),r=ye(new i(r),e+1,t),n=qi(r,!0,e+1)),n};Y.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?qi(i):(qn(e,0,Bo),t===void 0?t=a.rounding:qn(t,0,8),r=ye(new a(i),e+Ge(i)+1,t),n=qi(r.abs(),!1,e+Ge(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};Y.toInteger=Y.toint=function(){var e=this,t=e.constructor;return ye(new t(e),Ge(e)+1,t.rounding)};Y.toNumber=function(){return+this};Y.toPower=Y.pow=function(e){var t,n,r,i,a,o,l=this,s=l.constructor,u=12,c=+(e=new s(e));if(!e.s)return new s(Bt);if(l=new s(l),!l.s){if(e.s<1)throw Error(dn+"Infinity");return l}if(l.eq(Bt))return l;if(r=s.precision,e.eq(Bt))return ye(l,r);if(t=e.e,n=e.d.length-1,o=t>=n,a=l.s,o){if((n=c<0?-c:c)<=ej){for(i=new s(Bt),t=Math.ceil(r/je+4),Ie=!1;n%2&&(i=i.times(l),Rw(i.d,t)),n=zo(n/2),n!==0;)l=l.times(l),Rw(l.d,t);return Ie=!0,e.s<0?new s(Bt).div(i):ye(i,r)}}else if(a<0)throw Error(dn+"NaN");return a=a<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,Ie=!1,i=e.times(ps(l,r+u)),Ie=!0,i=nj(i),i.s=a,i};Y.toPrecision=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?(n=Ge(i),r=qi(i,n<=a.toExpNeg||n>=a.toExpPos)):(qn(e,1,Bo),t===void 0?t=a.rounding:qn(t,0,8),i=ye(new a(i),e,t),n=Ge(i),r=qi(i,e<=n||n<=a.toExpNeg,e)),r};Y.toSignificantDigits=Y.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(qn(e,1,Bo),t===void 0?t=r.rounding:qn(t,0,8)),ye(new r(n),e,t)};Y.toString=Y.valueOf=Y.val=Y.toJSON=Y[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Ge(e),n=e.constructor;return qi(e,t<=n.toExpNeg||t>=n.toExpPos)};function tj(e,t){var n,r,i,a,o,l,s,u,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),Ie?ye(t,f):t;if(s=e.d,u=t.d,o=e.e,i=t.e,s=s.slice(),a=o-i,a){for(a<0?(r=s,a=-a,l=u.length):(r=u,i=o,l=s.length),o=Math.ceil(f/je),l=o>l?o+1:l+1,a>l&&(a=l,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for(l=s.length,a=u.length,l-a<0&&(a=l,r=u,u=s,s=r),n=0;a;)n=(s[--a]=s[a]+u[a]+n)/tt|0,s[a]%=tt;for(n&&(s.unshift(n),++i),l=s.length;s[--l]==0;)s.pop();return t.d=s,t.e=i,Ie?ye(t,f):t}function qn(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Bi+e)}function Dn(e){var t,n,r,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)r=e[t]+"",n=je-r.length,n&&(a+=Fr(n)),a+=r;o=e[t],r=o+"",n=je-r.length,n&&(a+=Fr(n))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var pr=function(){function e(r,i){var a,o=0,l=r.length;for(r=r.slice();l--;)a=r[l]*i+o,r[l]=a%tt|0,o=a/tt|0;return o&&r.unshift(o),r}function t(r,i,a,o){var l,s;if(a!=o)s=a>o?1:-1;else for(l=s=0;l<a;l++)if(r[l]!=i[l]){s=r[l]>i[l]?1:-1;break}return s}function n(r,i,a){for(var o=0;a--;)r[a]-=o,o=r[a]<i[a]?1:0,r[a]=o*tt+r[a]-i[a];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,a,o){var l,s,u,c,f,d,p,h,m,b,v,y,x,E,_,S,O,$,T=r.constructor,C=r.s==i.s?1:-1,A=r.d,N=i.d;if(!r.s)return new T(r);if(!i.s)throw Error(dn+"Division by zero");for(s=r.e-i.e,O=N.length,_=A.length,p=new T(C),h=p.d=[],u=0;N[u]==(A[u]||0);)++u;if(N[u]>(A[u]||0)&&--s,a==null?y=a=T.precision:o?y=a+(Ge(r)-Ge(i))+1:y=a,y<0)return new T(0);if(y=y/je+2|0,u=0,O==1)for(c=0,N=N[0],y++;(u<_||c)&&y--;u++)x=c*tt+(A[u]||0),h[u]=x/N|0,c=x%N|0;else{for(c=tt/(N[0]+1)|0,c>1&&(N=e(N,c),A=e(A,c),O=N.length,_=A.length),E=O,m=A.slice(0,O),b=m.length;b<O;)m[b++]=0;$=N.slice(),$.unshift(0),S=N[0],N[1]>=tt/2&&++S;do c=0,l=t(N,m,O,b),l<0?(v=m[0],O!=b&&(v=v*tt+(m[1]||0)),c=v/S|0,c>1?(c>=tt&&(c=tt-1),f=e(N,c),d=f.length,b=m.length,l=t(f,m,d,b),l==1&&(c--,n(f,O<d?$:N,d))):(c==0&&(l=c=1),f=N.slice()),d=f.length,d<b&&f.unshift(0),n(m,f,b),l==-1&&(b=m.length,l=t(N,m,O,b),l<1&&(c++,n(m,O<b?$:N,b))),b=m.length):l===0&&(c++,m=[0]),h[u++]=c,l&&m[0]?m[b++]=A[E]||0:(m=[A[E]],b=1);while((E++<_||m[0]!==void 0)&&y--)}return h[0]||h.shift(),p.e=s,ye(p,o?a+Ge(p)+1:a)}}();function nj(e,t){var n,r,i,a,o,l,s=0,u=0,c=e.constructor,f=c.precision;if(Ge(e)>16)throw Error(S0+Ge(e));if(!e.s)return new c(Bt);for(t==null?(Ie=!1,l=f):l=t,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(r=Math.log($i(2,u))/Math.LN10*2+5|0,l+=r,n=i=a=new c(Bt),c.precision=l;;){if(i=ye(i.times(e),l),n=n.times(++s),o=a.plus(pr(i,n,l)),Dn(o.d).slice(0,l)===Dn(a.d).slice(0,l)){for(;u--;)a=ye(a.times(a),l);return c.precision=f,t==null?(Ie=!0,ye(a,f)):a}a=o}}function Ge(e){for(var t=e.e*je,n=e.d[0];n>=10;n/=10)t++;return t}function vh(e,t,n){if(t>e.LN10.sd())throw Ie=!0,n&&(e.precision=n),Error(dn+"LN10 precision limit exceeded");return ye(new e(e.LN10),t)}function Fr(e){for(var t="";e--;)t+="0";return t}function ps(e,t){var n,r,i,a,o,l,s,u,c,f=1,d=10,p=e,h=p.d,m=p.constructor,b=m.precision;if(p.s<1)throw Error(dn+(p.s?"NaN":"-Infinity"));if(p.eq(Bt))return new m(0);if(t==null?(Ie=!1,u=b):u=t,p.eq(10))return t==null&&(Ie=!0),vh(m,u);if(u+=d,m.precision=u,n=Dn(h),r=n.charAt(0),a=Ge(p),Math.abs(a)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=Dn(p.d),r=n.charAt(0),f++;a=Ge(p),r>1?(p=new m("0."+n),a++):p=new m(r+"."+n.slice(1))}else return s=vh(m,u+2,b).times(a+""),p=ps(new m(r+"."+n.slice(1)),u-d).plus(s),m.precision=b,t==null?(Ie=!0,ye(p,b)):p;for(l=o=p=pr(p.minus(Bt),p.plus(Bt),u),c=ye(p.times(p),u),i=3;;){if(o=ye(o.times(c),u),s=l.plus(pr(o,new m(i),u)),Dn(s.d).slice(0,u)===Dn(l.d).slice(0,u))return l=l.times(2),a!==0&&(l=l.plus(vh(m,u+2,b).times(a+""))),l=pr(l,new m(f),u),m.precision=b,t==null?(Ie=!0,ye(l,b)):l;l=s,i+=2}}function Iw(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=zo(n/je),e.d=[],r=(n+1)%je,n<0&&(r+=je),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=je;r<i;)e.d.push(+t.slice(r,r+=je));t=t.slice(r),r=je-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),Ie&&(e.e>df||e.e<-df))throw Error(S0+n)}else e.s=0,e.e=0,e.d=[0];return e}function ye(e,t,n){var r,i,a,o,l,s,u,c,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(r=t-o,r<0)r+=je,i=t,u=f[c=0];else{if(c=Math.ceil((r+1)/je),a=f.length,c>=a)return e;for(u=a=f[c],o=1;a>=10;a/=10)o++;r%=je,i=r-je+o}if(n!==void 0&&(a=$i(10,o-i-1),l=u/a%10|0,s=t<0||f[c+1]!==void 0||u%a,s=n<4?(l||s)&&(n==0||n==(e.s<0?3:2)):l>5||l==5&&(n==4||s||n==6&&(r>0?i>0?u/$i(10,o-i):0:f[c-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return s?(a=Ge(e),f.length=1,t=t-a-1,f[0]=$i(10,(je-t%je)%je),e.e=zo(-t/je)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(r==0?(f.length=c,a=1,c--):(f.length=c+1,a=$i(10,je-r),f[c]=i>0?(u/$i(10,o-i)%$i(10,i)|0)*a:0),s)for(;;)if(c==0){(f[0]+=a)==tt&&(f[0]=1,++e.e);break}else{if(f[c]+=a,f[c]!=tt)break;f[c--]=0,a=1}for(r=f.length;f[--r]===0;)f.pop();if(Ie&&(e.e>df||e.e<-df))throw Error(S0+Ge(e));return e}function rj(e,t){var n,r,i,a,o,l,s,u,c,f,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Ie?ye(t,p):t;if(s=e.d,f=t.d,r=t.e,u=e.e,s=s.slice(),o=u-r,o){for(c=o<0,c?(n=s,o=-o,l=f.length):(n=f,r=u,l=s.length),i=Math.max(Math.ceil(p/je),l)+2,o>i&&(o=i,n.length=1),n.reverse(),i=o;i--;)n.push(0);n.reverse()}else{for(i=s.length,l=f.length,c=i<l,c&&(l=i),i=0;i<l;i++)if(s[i]!=f[i]){c=s[i]<f[i];break}o=0}for(c&&(n=s,s=f,f=n,t.s=-t.s),l=s.length,i=f.length-l;i>0;--i)s[l++]=0;for(i=f.length;i>o;){if(s[--i]<f[i]){for(a=i;a&&s[--a]===0;)s[a]=tt-1;--s[a],s[i]+=tt}s[i]-=f[i]}for(;s[--l]===0;)s.pop();for(;s[0]===0;s.shift())--r;return s[0]?(t.d=s,t.e=r,Ie?ye(t,p):t):new d(0)}function qi(e,t,n){var r,i=Ge(e),a=Dn(e.d),o=a.length;return t?(n&&(r=n-o)>0?a=a.charAt(0)+"."+a.slice(1)+Fr(r):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Fr(-i-1)+a,n&&(r=n-o)>0&&(a+=Fr(r))):i>=o?(a+=Fr(i+1-o),n&&(r=n-i-1)>0&&(a=a+"."+Fr(r))):((r=i+1)<o&&(a=a.slice(0,r)+"."+a.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(a+="."),a+=Fr(r))),e.s<0?"-"+a:a}function Rw(e,t){if(e.length>t)return e.length=t,!0}function ij(e){var t,n,r;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(Bi+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 Iw(o,a.toString())}else if(typeof a!="string")throw Error(Bi+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,dK.test(a))Iw(o,a);else throw Error(Bi+a)}if(i.prototype=Y,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=ij,i.config=i.set=pK,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function pK(e){if(!e||typeof e!="object")throw Error(dn+"Object expected");var t,n,r,i=["precision",1,Bo,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(zo(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Bi+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Bi+n+": "+r);return this}var E0=ij(fK);Bt=new E0(1);const ge=E0;function hK(e){return yK(e)||gK(e)||vK(e)||mK()}function mK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
204
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vK(e,t){if(e){if(typeof e=="string")return yv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yv(e,t)}}function gK(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function yK(e){if(Array.isArray(e))return yv(e)}function yv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var xK=function(t){return t},aj={"@@functional/placeholder":!0},oj=function(t){return t===aj},Lw=function(t){return function n(){return arguments.length===0||arguments.length===1&&oj(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},bK=function e(t,n){return t===1?n:Lw(function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=i.filter(function(l){return l!==aj}).length;return o>=t?n.apply(void 0,i):e(t-o,Lw(function(){for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];var c=i.map(function(f){return oj(f)?s.shift():f});return n.apply(void 0,hK(c).concat(s))}))})},qd=function(t){return bK(t.length,t)},xv=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},wK=qd(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),_K=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return xK;var i=n.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(l,s){return s(l)},a.apply(void 0,arguments))}},bv=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},lj=function(t){var n=null,r=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n&&a.every(function(l,s){return l===n[s]})||(n=a,r=t.apply(void 0,a)),r}};function SK(e){var t;return e===0?t=1:t=Math.floor(new ge(e).abs().log(10).toNumber())+1,t}function EK(e,t,n){for(var r=new ge(e),i=0,a=[];r.lt(t)&&i<1e5;)a.push(r.toNumber()),r=r.add(n),i++;return a}var OK=qd(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),$K=qd(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),PK=qd(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Yd={rangeStep:EK,getDigitCount:SK,interpolateNumber:OK,uninterpolateNumber:$K,uninterpolateTruncation:PK};function wv(e){return AK(e)||TK(e)||sj(e)||jK()}function jK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
205
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TK(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function AK(e){if(Array.isArray(e))return _v(e)}function hs(e,t){return NK(e)||kK(e,t)||sj(e,t)||CK()}function CK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
206
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sj(e,t){if(e){if(typeof e=="string")return _v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _v(e,t)}}function _v(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kK(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),l;!(r=(l=o.next()).done)&&(n.push(l.value),!(t&&n.length===t));r=!0);}catch(s){i=!0,a=s}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function NK(e){if(Array.isArray(e))return e}function uj(e){var t=hs(e,2),n=t[0],r=t[1],i=n,a=r;return n>r&&(i=r,a=n),[i,a]}function cj(e,t,n){if(e.lte(0))return new ge(0);var r=Yd.getDigitCount(e.toNumber()),i=new ge(10).pow(r),a=e.div(i),o=r!==1?.05:.1,l=new ge(Math.ceil(a.div(o).toNumber())).add(n).mul(o),s=l.mul(i);return t?s:new ge(Math.ceil(s))}function MK(e,t,n){var r=1,i=new ge(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new ge(10).pow(Yd.getDigitCount(e)-1),i=new ge(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new ge(Math.floor(e)))}else e===0?i=new ge(Math.floor((t-1)/2)):n||(i=new ge(Math.floor(e)));var o=Math.floor((t-1)/2),l=_K(wK(function(s){return i.add(new ge(s-o).mul(r)).toNumber()}),xv);return l(0,t)}function fj(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new ge(0),tickMin:new ge(0),tickMax:new ge(0)};var a=cj(new ge(t).sub(e).div(n-1),r,i),o;e<=0&&t>=0?o=new ge(0):(o=new ge(e).add(t).div(2),o=o.sub(new ge(o).mod(a)));var l=Math.ceil(o.sub(e).div(a).toNumber()),s=Math.ceil(new ge(t).sub(o).div(a).toNumber()),u=l+s+1;return u>n?fj(e,t,n,r,i+1):(u<n&&(s=t>0?s+(n-u):s,l=t>0?l:l+(n-u)),{step:a,tickMin:o.sub(new ge(l).mul(a)),tickMax:o.add(new ge(s).mul(a))})}function IK(e){var t=hs(e,2),n=t[0],r=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=uj([n,r]),s=hs(l,2),u=s[0],c=s[1];if(u===-1/0||c===1/0){var f=c===1/0?[u].concat(wv(xv(0,i-1).map(function(){return 1/0}))):[].concat(wv(xv(0,i-1).map(function(){return-1/0})),[c]);return n>r?bv(f):f}if(u===c)return MK(u,i,a);var d=fj(u,c,o,a),p=d.step,h=d.tickMin,m=d.tickMax,b=Yd.rangeStep(h,m.add(new ge(.1).mul(p)),p);return n>r?bv(b):b}function RK(e,t){var n=hs(e,2),r=n[0],i=n[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=uj([r,i]),l=hs(o,2),s=l[0],u=l[1];if(s===-1/0||u===1/0)return[r,i];if(s===u)return[s];var c=Math.max(t,2),f=cj(new ge(u).sub(s).div(c-1),a,0),d=[].concat(wv(Yd.rangeStep(new ge(s),new ge(u).sub(new ge(.99).mul(f)),f)),[u]);return r>i?bv(d):d}var LK=lj(IK),DK=lj(RK),FK="Invariant failed";function io(e,t){throw new Error(FK)}var BK=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function ao(e){"@babel/helpers - typeof";return ao=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},ao(e)}function pf(){return pf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pf.apply(this,arguments)}function zK(e,t){return VK(e)||WK(e,t)||HK(e,t)||UK()}function UK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
207
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HK(e,t){if(e){if(typeof e=="string")return Dw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dw(e,t)}}function Dw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function WK(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function VK(e){if(Array.isArray(e))return e}function KK(e,t){if(e==null)return{};var n=GK(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function GK(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function qK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YK(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hj(r.key),r)}}function XK(e,t,n){return t&&YK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function QK(e,t,n){return t=hf(t),ZK(e,dj()?Reflect.construct(t,n||[],hf(e).constructor):t.apply(e,n))}function ZK(e,t){if(t&&(ao(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return JK(e)}function JK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dj=function(){return!!e})()}function hf(e){return hf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hf(e)}function eG(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&&Sv(e,t)}function Sv(e,t){return Sv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Sv(e,t)}function pj(e,t,n){return t=hj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hj(e){var t=tG(e,"string");return ao(t)=="symbol"?t:t+""}function tG(e,t){if(ao(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ao(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var O0=function(e){function t(){return qK(this,t),QK(this,t,arguments)}return eG(t,e),XK(t,[{key:"render",value:function(){var r=this.props,i=r.offset,a=r.layout,o=r.width,l=r.dataKey,s=r.data,u=r.dataPointFormatter,c=r.xAxis,f=r.yAxis,d=KK(r,BK),p=ne(d,!1);this.props.direction==="x"&&c.type!=="number"&&io();var h=s.map(function(m){var b=u(m,l),v=b.x,y=b.y,x=b.value,E=b.errorVal;if(!E)return null;var _=[],S,O;if(Array.isArray(E)){var $=zK(E,2);S=$[0],O=$[1]}else S=O=E;if(a==="vertical"){var T=c.scale,C=y+i,A=C+o,N=C-o,I=T(x-S),D=T(x+O);_.push({x1:D,y1:A,x2:D,y2:N}),_.push({x1:I,y1:C,x2:D,y2:C}),_.push({x1:I,y1:A,x2:I,y2:N})}else if(a==="horizontal"){var M=f.scale,F=v+i,R=F-o,P=F+o,k=M(x-S),B=M(x+O);_.push({x1:R,y1:B,x2:P,y2:B}),_.push({x1:F,y1:k,x2:F,y2:B}),_.push({x1:R,y1:k,x2:P,y2:k})}return j.createElement(Te,pf({className:"recharts-errorBar",key:"bar-".concat(_.map(function(L){return"".concat(L.x1,"-").concat(L.x2,"-").concat(L.y1,"-").concat(L.y2)}))},p),_.map(function(L){return j.createElement("line",pf({},L,{key:"line-".concat(L.x1,"-").concat(L.x2,"-").concat(L.y1,"-").concat(L.y2)}))}))});return j.createElement(Te,{className:"recharts-errorBars"},h)}}])}(j.Component);pj(O0,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});pj(O0,"displayName","ErrorBar");function ms(e){"@babel/helpers - typeof";return ms=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},ms(e)}function Fw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fw(Object(n),!0).forEach(function(r){nG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nG(e,t,n){return t=rG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rG(e){var t=iG(e,"string");return ms(t)=="symbol"?t:t+""}function iG(e,t){if(ms(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ms(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mj=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Jt(n,Da);if(!o)return null;var l=Da.defaultProps,s=l!==void 0?xi(xi({},l),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:a==="children"?u=(r||[]).reduce(function(c,f){var d=f.item,p=f.props,h=p.sectors||p.data||[];return c.concat(h.map(function(m){return{type:o.props.iconType||d.props.legendType,value:m.name,color:m.fill,payload:m}}))},[]):u=(r||[]).map(function(c){var f=c.item,d=f.type.defaultProps,p=d!==void 0?xi(xi({},d),f.props):{},h=p.dataKey,m=p.name,b=p.legendType,v=p.hide;return{inactive:v,dataKey:h,type:s.iconType||b||"square",color:$0(f),value:m||h,payload:p}}),xi(xi(xi({},s),Da.getWithHeight(o,i)),{},{payload:u,item:o})};function vs(e){"@babel/helpers - typeof";return vs=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},vs(e)}function Bw(e){return sG(e)||lG(e)||oG(e)||aG()}function aG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
208
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oG(e,t){if(e){if(typeof e=="string")return Ev(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ev(e,t)}}function lG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sG(e){if(Array.isArray(e))return Ev(e)}function Ev(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zw(Object(n),!0).forEach(function(r){Ba(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ba(e,t,n){return t=uG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uG(e){var t=cG(e,"string");return vs(t)=="symbol"?t:t+""}function cG(e,t){if(vs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(vs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ct(e,t,n){return le(e)||le(t)?n:Je(t)?En(e,t,n):te(t)?t(e):n}function Cl(e,t,n,r){var i=lK(e,function(l){return ct(l,t)});if(n==="number"){var a=i.filter(function(l){return G(l)||parseFloat(l)});return a.length?[Kd(a),Vd(a)]:[1/0,-1/0]}var o=r?i.filter(function(l){return!le(l)}):i;return o.map(function(l){return Je(l)||l instanceof Date?l:""})}var fG=function(t){var n,r=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=(n=r==null?void 0:r.length)!==null&&n!==void 0?n: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 s=a.range,u=0;u<l;u++){var c=u>0?i[u-1].coordinate:i[l-1].coordinate,f=i[u].coordinate,d=u>=l-1?i[0].coordinate:i[u+1].coordinate,p=void 0;if(on(f-c)!==on(d-f)){var h=[];if(on(d-f)===on(s[1]-s[0])){p=d;var m=f+s[1]-s[0];h[0]=Math.min(m,(m+c)/2),h[1]=Math.max(m,(m+c)/2)}else{p=c;var b=d+s[1]-s[0];h[0]=Math.min(f,(b+f)/2),h[1]=Math.max(f,(b+f)/2)}var v=[Math.min(f,(p+f)/2),Math.max(f,(p+f)/2)];if(t>v[0]&&t<=v[1]||t>=h[0]&&t<=h[1]){o=i[u].index;break}}else{var y=Math.min(c,d),x=Math.max(c,d);if(t>(y+f)/2&&t<=(x+f)/2){o=i[u].index;break}}}else for(var E=0;E<l;E++)if(E===0&&t<=(r[E].coordinate+r[E+1].coordinate)/2||E>0&&E<l-1&&t>(r[E].coordinate+r[E-1].coordinate)/2&&t<=(r[E].coordinate+r[E+1].coordinate)/2||E===l-1&&t>(r[E].coordinate+r[E-1].coordinate)/2){o=r[E].index;break}return o},$0=function(t){var n,r=t,i=r.type.displayName,a=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Ue(Ue({},t.type.defaultProps),t.props):t.props,o=a.stroke,l=a.fill,s;switch(i){case"Line":s=o;break;case"Area":case"Radar":s=o&&o!=="none"?o:l;break;default:s=l;break}return s},dG=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},l=Object.keys(a),s=0,u=l.length;s<u;s++)for(var c=a[l[s]].stackGroups,f=Object.keys(c),d=0,p=f.length;d<p;d++){var h=c[f[d]],m=h.items,b=h.cateAxisId,v=m.filter(function(O){return fr(O.type).indexOf("Bar")>=0});if(v&&v.length){var y=v[0].type.defaultProps,x=y!==void 0?Ue(Ue({},y),v[0].props):v[0].props,E=x.barSize,_=x[b];o[_]||(o[_]=[]);var S=le(E)?n:E;o[_].push({item:v[0],stackList:v.slice(1),barSize:le(S)?void 0:kt(S,r,0)})}}return o},pG=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,l=t.maxBarSize,s=o.length;if(s<1)return null;var u=kt(n,i,0,!0),c,f=[];if(o[0].barSize===+o[0].barSize){var d=!1,p=i/s,h=o.reduce(function(E,_){return E+_.barSize||0},0);h+=(s-1)*u,h>=i&&(h-=(s-1)*u,u=0),h>=i&&p>0&&(d=!0,p*=.9,h=s*p);var m=(i-h)/2>>0,b={offset:m-u,size:0};c=o.reduce(function(E,_){var S={item:_.item,position:{offset:b.offset+b.size+u,size:d?p:_.barSize}},O=[].concat(Bw(E),[S]);return b=O[O.length-1].position,_.stackList&&_.stackList.length&&_.stackList.forEach(function($){O.push({item:$,position:b})}),O},f)}else{var v=kt(r,i,0,!0);i-2*v-(s-1)*u<=0&&(u=0);var y=(i-2*v-(s-1)*u)/s;y>1&&(y>>=0);var x=l===+l?Math.min(y,l):y;c=o.reduce(function(E,_,S){var O=[].concat(Bw(E),[{item:_.item,position:{offset:v+(y+u)*S+(y-x)/2,size:x}}]);return _.stackList&&_.stackList.length&&_.stackList.forEach(function($){O.push({item:$,position:O[O.length-1].position})}),O},f)}return c},hG=function(t,n,r,i){var a=r.children,o=r.width,l=r.margin,s=o-(l.left||0)-(l.right||0),u=mj({children:a,legendWidth:s});if(u){var c=i||{},f=c.width,d=c.height,p=u.align,h=u.verticalAlign,m=u.layout;if((m==="vertical"||m==="horizontal"&&h==="middle")&&p!=="center"&&G(t[p]))return Ue(Ue({},t),{},Ba({},p,t[p]+(f||0)));if((m==="horizontal"||m==="vertical"&&p==="center")&&h!=="middle"&&G(t[h]))return Ue(Ue({},t),{},Ba({},h,t[h]+(d||0)))}return t},mG=function(t,n,r){return le(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},vj=function(t,n,r,i,a){var o=n.props.children,l=On(o,O0).filter(function(u){return mG(i,a,u.props.direction)});if(l&&l.length){var s=l.map(function(u){return u.props.dataKey});return t.reduce(function(u,c){var f=ct(c,r);if(le(f))return u;var d=Array.isArray(f)?[Kd(f),Vd(f)]:[f,f],p=s.reduce(function(h,m){var b=ct(c,m,0),v=d[0]-Math.abs(Array.isArray(b)?b[0]:b),y=d[1]+Math.abs(Array.isArray(b)?b[1]:b);return[Math.min(v,h[0]),Math.max(y,h[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},vG=function(t,n,r,i,a){var o=n.map(function(l){return vj(t,l,r,a,i)}).filter(function(l){return!le(l)});return o&&o.length?o.reduce(function(l,s){return[Math.min(l[0],s[0]),Math.max(l[1],s[1])]},[1/0,-1/0]):null},gj=function(t,n,r,i,a){var o=n.map(function(s){var u=s.props.dataKey;return r==="number"&&u&&vj(t,s,u,i)||Cl(t,u,r,a)});if(r==="number")return o.reduce(function(s,u){return[Math.min(s[0],u[0]),Math.max(s[1],u[1])]},[1/0,-1/0]);var l={};return o.reduce(function(s,u){for(var c=0,f=u.length;c<f;c++)l[u[c]]||(l[u[c]]=!0,s.push(u[c]));return s},[])},yj=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},gl=function(t,n,r){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,l=t.range,s=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(n||r)&&o==="category"&&i.bandwidth?i.bandwidth()/s:0;if(u=t.axisType==="angleAxis"&&(l==null?void 0:l.length)>=2?on(l[0]-l[1])*2*u:u,n&&(t.ticks||t.niceTicks)){var c=(t.ticks||t.niceTicks).map(function(f){var d=a?a.indexOf(f):f;return{coordinate:i(d)+u,value:f,offset:u}});return c.filter(function(f){return!qs(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,d){return{coordinate:i(f)+u,value:f,index:d,offset:u}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+u,value:f,offset:u}}):i.domain().map(function(f,d){return{coordinate:i(f)+u,value:a?a[f]:f,index:d,offset:u}})},gh=new WeakMap,Uu=function(t,n){if(typeof n!="function")return t;gh.has(t)||gh.set(t,new WeakMap);var r=gh.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},gG=function(t,n,r){var i=t.scale,a=t.type,o=t.layout,l=t.axisType;if(i==="auto")return o==="radial"&&l==="radiusAxis"?{scale:ss(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:sf(),realScaleType:"linear"}:a==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Al(),realScaleType:"point"}:a==="category"?{scale:ss(),realScaleType:"band"}:{scale:sf(),realScaleType:"linear"};if(Mo(i)){var s="scale".concat(Ad(i));return{scale:(Mw[s]||Al)(),realScaleType:Mw[s]?s:"point"}}return te(i)?{scale:i}:{scale:Al(),realScaleType:"point"}},Uw=1e-4,yG=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),a=Math.min(i[0],i[1])-Uw,o=Math.max(i[0],i[1])+Uw,l=t(n[0]),s=t(n[r-1]);(l<a||l>o||s<a||s>o)&&t.domain([n[0],n[r-1]])}},xG=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var a=0,o=0,l=0;l<n;++l){var s=qs(t[l][r][1])?t[l][r][0]:t[l][r][1];s>=0?(t[l][r][0]=a,t[l][r][1]=a+s,a=t[l][r][1]):(t[l][r][0]=o,t[l][r][1]=o+s,o=t[l][r][1])}},bG=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var a=0,o=0;o<n;++o){var l=qs(t[o][r][1])?t[o][r][0]:t[o][r][1];l>=0?(t[o][r][0]=a,t[o][r][1]=a+l,a=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}},wG={sign:xG,expand:XD,none:Ya,silhouette:QD,wiggle:ZD,positive:bG},_G=function(t,n,r){var i=n.map(function(l){return l.props.dataKey}),a=wG[r],o=YD().keys(i).value(function(l,s){return+ct(l,s,0)}).order(Ym).offset(a);return o(t)},SG=function(t,n,r,i,a,o){if(!t)return null;var l=o?n.reverse():n,s={},u=l.reduce(function(f,d){var p,h=(p=d.type)!==null&&p!==void 0&&p.defaultProps?Ue(Ue({},d.type.defaultProps),d.props):d.props,m=h.stackId,b=h.hide;if(b)return f;var v=h[r],y=f[v]||{hasStack:!1,stackGroups:{}};if(Je(m)){var x=y.stackGroups[m]||{numericAxisId:r,cateAxisId:i,items:[]};x.items.push(d),y.hasStack=!0,y.stackGroups[m]=x}else y.stackGroups[Td("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[d]};return Ue(Ue({},f),{},Ba({},v,y))},s),c={};return Object.keys(u).reduce(function(f,d){var p=u[d];if(p.hasStack){var h={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(m,b){var v=p.stackGroups[b];return Ue(Ue({},m),{},Ba({},b,{numericAxisId:r,cateAxisId:i,items:v.items,stackedData:_G(t,v.items,a)}))},h)}return Ue(Ue({},f),{},Ba({},d,p))},c)},EG=function(t,n){var r=n.realScaleType,i=n.type,a=n.tickCount,o=n.originalDomain,l=n.allowDecimals,s=r||n.scale;if(s!=="auto"&&s!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var c=LK(u,a,l);return t.domain([Kd(c),Vd(c)]),{niceTicks:c}}if(a&&i==="number"){var f=t.domain(),d=DK(f,a,l);return{niceTicks:d}}return null},OG=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Ue(Ue({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Je(a)){var o=n[a];if(o){var l=o.items.indexOf(t);return l>=0?o.stackedData[l]:null}}return null},$G=function(t){return t.reduce(function(n,r){return[Kd(r.concat([n[0]]).filter(G)),Vd(r.concat([n[1]]).filter(G))]},[1/0,-1/0])},xj=function(t,n,r){return Object.keys(t).reduce(function(i,a){var o=t[a],l=o.stackedData,s=l.reduce(function(u,c){var f=$G(c.slice(n,r+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(s[0],i[0]),Math.max(s[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Hw=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ww=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ov=function(t,n,r){if(te(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(G(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(Hw.test(t[0])){var a=+Hw.exec(t[0])[1];i[0]=n[0]-a}else te(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(G(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(Ww.test(t[1])){var o=+Ww.exec(t[1])[1];i[1]=n[1]+o}else te(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},$v=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var a=Zy(n,function(f){return f.coordinate}),o=1/0,l=1,s=a.length;l<s;l++){var u=a[l],c=a[l-1];o=Math.min((u.coordinate||0)-(c.coordinate||0),o)}return o===1/0?0:o}return r?void 0:0},Vw=function(t,n,r){return!t||!t.length||Gd(t,En(r,"type.defaultProps.domain"))?n:t},PG=function(t,n){var r=t.type.defaultProps?Ue(Ue({},t.type.defaultProps),t.props):t.props,i=r.dataKey,a=r.name,o=r.unit,l=r.formatter,s=r.tooltipType,u=r.chartType,c=r.hide;return Ue(Ue({},ne(t,!1)),{},{dataKey:i,unit:o,formatter:l,name:a||i,color:$0(t),value:ct(n,i),type:s,payload:n,chartType:u,hide:c})};function gs(e){"@babel/helpers - typeof";return gs=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},gs(e)}function Kw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Kw(Object(n),!0).forEach(function(r){bj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bj(e,t,n){return t=jG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jG(e){var t=TG(e,"string");return gs(t)=="symbol"?t:t+""}function TG(e,t){if(gs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(gs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AG(e,t){return MG(e)||NG(e,t)||kG(e,t)||CG()}function CG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
209
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kG(e,t){if(e){if(typeof e=="string")return Gw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gw(e,t)}}function Gw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function NG(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function MG(e){if(Array.isArray(e))return e}var mf=Math.PI/180,IG=function(t){return t*180/Math.PI},Se=function(t,n,r,i){return{x:t+Math.cos(-mf*i)*r,y:n+Math.sin(-mf*i)*r}},wj=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},RG=function(t,n,r,i,a){var o=t.width,l=t.height,s=t.startAngle,u=t.endAngle,c=kt(t.cx,o,o/2),f=kt(t.cy,l,l/2),d=wj(o,l,r),p=kt(t.innerRadius,d,0),h=kt(t.outerRadius,d,d*.8),m=Object.keys(n);return m.reduce(function(b,v){var y=n[v],x=y.domain,E=y.reversed,_;if(le(y.range))i==="angleAxis"?_=[s,u]:i==="radiusAxis"&&(_=[p,h]),E&&(_=[_[1],_[0]]);else{_=y.range;var S=_,O=AG(S,2);s=O[0],u=O[1]}var $=gG(y,a),T=$.realScaleType,C=$.scale;C.domain(x).range(_),yG(C);var A=EG(C,nr(nr({},y),{},{realScaleType:T})),N=nr(nr(nr({},y),A),{},{range:_,radius:h,realScaleType:T,scale:C,cx:c,cy:f,innerRadius:p,outerRadius:h,startAngle:s,endAngle:u});return nr(nr({},b),{},bj({},v,N))},{})},LG=function(t,n){var r=t.x,i=t.y,a=n.x,o=n.y;return Math.sqrt(Math.pow(r-a,2)+Math.pow(i-o,2))},DG=function(t,n){var r=t.x,i=t.y,a=n.cx,o=n.cy,l=LG({x:r,y:i},{x:a,y:o});if(l<=0)return{radius:l};var s=(r-a)/l,u=Math.acos(s);return i>o&&(u=2*Math.PI-u),{radius:l,angle:IG(u),angleInRadian:u}},FG=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),a=Math.floor(r/360),o=Math.min(i,a);return{startAngle:n-o*360,endAngle:r-o*360}},BG=function(t,n){var r=n.startAngle,i=n.endAngle,a=Math.floor(r/360),o=Math.floor(i/360),l=Math.min(a,o);return t+l*360},qw=function(t,n){var r=t.x,i=t.y,a=DG({x:r,y:i},n),o=a.radius,l=a.angle,s=n.innerRadius,u=n.outerRadius;if(o<s||o>u)return!1;if(o===0)return!0;var c=FG(n),f=c.startAngle,d=c.endAngle,p=l,h;if(f<=d){for(;p>d;)p-=360;for(;p<f;)p+=360;h=p>=f&&p<=d}else{for(;p>f;)p-=360;for(;p<d;)p+=360;h=p>=d&&p<=f}return h?nr(nr({},n),{},{radius:o,angle:BG(p,n)}):null},_j=function(t){return!w.isValidElement(t)&&!te(t)&&typeof t!="boolean"?t.className:""};function ys(e){"@babel/helpers - typeof";return ys=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},ys(e)}var zG=["offset"];function UG(e){return KG(e)||VG(e)||WG(e)||HG()}function HG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
210
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WG(e,t){if(e){if(typeof e=="string")return Pv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pv(e,t)}}function VG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function KG(e){if(Array.isArray(e))return Pv(e)}function Pv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function GG(e,t){if(e==null)return{};var n=qG(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qG(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Yw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ye(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yw(Object(n),!0).forEach(function(r){YG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YG(e,t,n){return t=XG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XG(e){var t=QG(e,"string");return ys(t)=="symbol"?t:t+""}function QG(e,t){if(ys(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ys(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xs(){return xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xs.apply(this,arguments)}var ZG=function(t){var n=t.value,r=t.formatter,i=le(t.children)?n:t.children;return te(r)?r(i):i},JG=function(t,n){var r=on(n-t),i=Math.min(Math.abs(n-t),360);return r*i},eq=function(t,n,r){var i=t.position,a=t.viewBox,o=t.offset,l=t.className,s=a,u=s.cx,c=s.cy,f=s.innerRadius,d=s.outerRadius,p=s.startAngle,h=s.endAngle,m=s.clockWise,b=(f+d)/2,v=JG(p,h),y=v>=0?1:-1,x,E;i==="insideStart"?(x=p+y*o,E=m):i==="insideEnd"?(x=h-y*o,E=!m):i==="end"&&(x=h+y*o,E=m),E=v<=0?E:!E;var _=Se(u,c,b,x),S=Se(u,c,b,x+(E?1:-1)*359),O="M".concat(_.x,",").concat(_.y,`
211
- A`).concat(b,",").concat(b,",0,1,").concat(E?0:1,`,
212
- `).concat(S.x,",").concat(S.y),$=le(t.id)?Td("recharts-radial-line-"):t.id;return j.createElement("text",xs({},r,{dominantBaseline:"central",className:ue("recharts-radial-bar-label",l)}),j.createElement("defs",null,j.createElement("path",{id:$,d:O})),j.createElement("textPath",{xlinkHref:"#".concat($)},n))},tq=function(t){var n=t.viewBox,r=t.offset,i=t.position,a=n,o=a.cx,l=a.cy,s=a.innerRadius,u=a.outerRadius,c=a.startAngle,f=a.endAngle,d=(c+f)/2;if(i==="outside"){var p=Se(o,l,u+r,d),h=p.x,m=p.y;return{x:h,y:m,textAnchor:h>=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 b=(s+u)/2,v=Se(o,l,b,d),y=v.x,x=v.y;return{x:y,y:x,textAnchor:"middle",verticalAnchor:"middle"}},nq=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,a=t.position,o=n,l=o.x,s=o.y,u=o.width,c=o.height,f=c>=0?1:-1,d=f*i,p=f>0?"end":"start",h=f>0?"start":"end",m=u>=0?1:-1,b=m*i,v=m>0?"end":"start",y=m>0?"start":"end";if(a==="top"){var x={x:l+u/2,y:s-f*i,textAnchor:"middle",verticalAnchor:p};return Ye(Ye({},x),r?{height:Math.max(s-r.y,0),width:u}:{})}if(a==="bottom"){var E={x:l+u/2,y:s+c+d,textAnchor:"middle",verticalAnchor:h};return Ye(Ye({},E),r?{height:Math.max(r.y+r.height-(s+c),0),width:u}:{})}if(a==="left"){var _={x:l-b,y:s+c/2,textAnchor:v,verticalAnchor:"middle"};return Ye(Ye({},_),r?{width:Math.max(_.x-r.x,0),height:c}:{})}if(a==="right"){var S={x:l+u+b,y:s+c/2,textAnchor:y,verticalAnchor:"middle"};return Ye(Ye({},S),r?{width:Math.max(r.x+r.width-S.x,0),height:c}:{})}var O=r?{width:u,height:c}:{};return a==="insideLeft"?Ye({x:l+b,y:s+c/2,textAnchor:y,verticalAnchor:"middle"},O):a==="insideRight"?Ye({x:l+u-b,y:s+c/2,textAnchor:v,verticalAnchor:"middle"},O):a==="insideTop"?Ye({x:l+u/2,y:s+d,textAnchor:"middle",verticalAnchor:h},O):a==="insideBottom"?Ye({x:l+u/2,y:s+c-d,textAnchor:"middle",verticalAnchor:p},O):a==="insideTopLeft"?Ye({x:l+b,y:s+d,textAnchor:y,verticalAnchor:h},O):a==="insideTopRight"?Ye({x:l+u-b,y:s+d,textAnchor:v,verticalAnchor:h},O):a==="insideBottomLeft"?Ye({x:l+b,y:s+c-d,textAnchor:y,verticalAnchor:p},O):a==="insideBottomRight"?Ye({x:l+u-b,y:s+c-d,textAnchor:v,verticalAnchor:p},O):Ao(a)&&(G(a.x)||ki(a.x))&&(G(a.y)||ki(a.y))?Ye({x:l+kt(a.x,u),y:s+kt(a.y,c),textAnchor:"end",verticalAnchor:"end"},O):Ye({x:l+u/2,y:s+c/2,textAnchor:"middle",verticalAnchor:"middle"},O)},rq=function(t){return"cx"in t&&G(t.cx)};function ut(e){var t=e.offset,n=t===void 0?5:t,r=GG(e,zG),i=Ye({offset:n},r),a=i.viewBox,o=i.position,l=i.value,s=i.children,u=i.content,c=i.className,f=c===void 0?"":c,d=i.textBreakAll;if(!a||le(l)&&le(s)&&!w.isValidElement(u)&&!te(u))return null;if(w.isValidElement(u))return w.cloneElement(u,i);var p;if(te(u)){if(p=w.createElement(u,i),w.isValidElement(p))return p}else p=ZG(i);var h=rq(a),m=ne(i,!0);if(h&&(o==="insideStart"||o==="insideEnd"||o==="end"))return eq(i,p,m);var b=h?tq(i):nq(i);return j.createElement(eo,xs({className:ue("recharts-label",f)},m,b,{breakAll:d}),p)}ut.displayName="Label";var Sj=function(t){var n=t.cx,r=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,l=t.r,s=t.radius,u=t.innerRadius,c=t.outerRadius,f=t.x,d=t.y,p=t.top,h=t.left,m=t.width,b=t.height,v=t.clockWise,y=t.labelViewBox;if(y)return y;if(G(m)&&G(b)){if(G(f)&&G(d))return{x:f,y:d,width:m,height:b};if(G(p)&&G(h))return{x:p,y:h,width:m,height:b}}return G(f)&&G(d)?{x:f,y:d,width:0,height:0}:G(n)&&G(r)?{cx:n,cy:r,startAngle:a||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:c||s||l||0,clockWise:v}:t.viewBox?t.viewBox:{}},iq=function(t,n){return t?t===!0?j.createElement(ut,{key:"label-implicit",viewBox:n}):Je(t)?j.createElement(ut,{key:"label-implicit",viewBox:n,value:t}):w.isValidElement(t)?t.type===ut?w.cloneElement(t,{key:"label-implicit",viewBox:n}):j.createElement(ut,{key:"label-implicit",content:t,viewBox:n}):te(t)?j.createElement(ut,{key:"label-implicit",content:t,viewBox:n}):Ao(t)?j.createElement(ut,xs({viewBox:n},t,{key:"label-implicit"})):null:null},aq=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var i=t.children,a=Sj(t),o=On(i,ut).map(function(s,u){return w.cloneElement(s,{viewBox:n||a,key:"label-".concat(u)})});if(!r)return o;var l=iq(t.label,n||a);return[l].concat(UG(o))};ut.parseViewBox=Sj;ut.renderCallByParent=aq;function oq(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Ej=oq;const lq=me(Ej);function bs(e){"@babel/helpers - typeof";return bs=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},bs(e)}var sq=["valueAccessor"],uq=["data","dataKey","clockWise","id","textBreakAll"];function cq(e){return hq(e)||pq(e)||dq(e)||fq()}function fq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
213
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dq(e,t){if(e){if(typeof e=="string")return jv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jv(e,t)}}function pq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hq(e){if(Array.isArray(e))return jv(e)}function jv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vf(){return vf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vf.apply(this,arguments)}function Xw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Qw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xw(Object(n),!0).forEach(function(r){mq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mq(e,t,n){return t=vq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vq(e){var t=gq(e,"string");return bs(t)=="symbol"?t:t+""}function gq(e,t){if(bs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(bs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zw(e,t){if(e==null)return{};var n=yq(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yq(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var xq=function(t){return Array.isArray(t.value)?lq(t.value):t.value};function Un(e){var t=e.valueAccessor,n=t===void 0?xq:t,r=Zw(e,sq),i=r.data,a=r.dataKey,o=r.clockWise,l=r.id,s=r.textBreakAll,u=Zw(r,uq);return!i||!i.length?null:j.createElement(Te,{className:"recharts-label-list"},i.map(function(c,f){var d=le(a)?n(c,f):ct(c&&c.payload,a),p=le(l)?{}:{id:"".concat(l,"-").concat(f)};return j.createElement(ut,vf({},ne(c,!0),u,p,{parentViewBox:c.parentViewBox,value:d,textBreakAll:s,viewBox:ut.parseViewBox(le(o)?c:Qw(Qw({},c),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}Un.displayName="LabelList";function bq(e,t){return e?e===!0?j.createElement(Un,{key:"labelList-implicit",data:t}):j.isValidElement(e)||te(e)?j.createElement(Un,{key:"labelList-implicit",data:t,content:e}):Ao(e)?j.createElement(Un,vf({data:t},e,{key:"labelList-implicit"})):null:null}function wq(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=On(r,Un).map(function(o,l){return w.cloneElement(o,{data:t,key:"labelList-".concat(l)})});if(!n)return i;var a=bq(e.label,t);return[a].concat(cq(i))}Un.renderCallByParent=wq;function ws(e){"@babel/helpers - typeof";return ws=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},ws(e)}function Tv(){return Tv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tv.apply(this,arguments)}function Jw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function e_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jw(Object(n),!0).forEach(function(r){_q(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _q(e,t,n){return t=Sq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sq(e){var t=Eq(e,"string");return ws(t)=="symbol"?t:t+""}function Eq(e,t){if(ws(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ws(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Oq=function(t,n){var r=on(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},Hu=function(t){var n=t.cx,r=t.cy,i=t.radius,a=t.angle,o=t.sign,l=t.isExternal,s=t.cornerRadius,u=t.cornerIsExternal,c=s*(l?1:-1)+i,f=Math.asin(s/c)/mf,d=u?a:a+o*f,p=Se(n,r,c,d),h=Se(n,r,i,d),m=u?a-o*f:a,b=Se(n,r,c*Math.cos(f*mf),m);return{center:p,circleTangency:h,lineTangency:b,theta:f}},Oj=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,l=t.endAngle,s=Oq(o,l),u=o+s,c=Se(n,r,a,o),f=Se(n,r,a,u),d="M ".concat(c.x,",").concat(c.y,`
214
- A `).concat(a,",").concat(a,`,0,
215
- `).concat(+(Math.abs(s)>180),",").concat(+(o>u),`,
210
+ height and width.`,M,F,a,s,c,f,n);var I=!Array.isArray(p)&&fr(p.type).endsWith("Chart");return j.Children.map(p,function(P){return j.isValidElement(P)?b.cloneElement(P,Lu({width:M,height:F},I?{style:Lu({height:"100%",width:"100%",maxHeight:F,maxWidth:M},P.props.style)}:{})):P})},[n,p,s,d,f,c,T,a]);return j.createElement("div",{id:w?"".concat(w):void 0,className:ue("recharts-responsive-container",g),style:Lu(Lu({},E),{},{width:a,height:s,minWidth:c,minHeight:f,maxHeight:d}),ref:_},N)}),e0=function(t){return null};e0.displayName="Cell";function as(e){"@babel/helpers - typeof";return as=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},as(e)}function L1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L1(Object(n),!0).forEach(function(r){MU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function MU(e,t,n){return t=RU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RU(e){var t=IU(e,"string");return as(t)=="symbol"?t:t+""}function IU(e,t){if(as(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(as(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fo={widthCache:{},cacheCount:0},LU=2e3,DU={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},D1="recharts_measurement_span";function FU(e){var t=cv({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var F1=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ni.isSsr)return{width:0,height:0};var r=FU(n),i=JSON.stringify({text:t,copyStyle:r});if(fo.widthCache[i])return fo.widthCache[i];try{var o=document.getElementById(D1);o||(o=document.createElement("span"),o.setAttribute("id",D1),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=cv(cv({},DU),r);Object.assign(o.style,a),o.textContent="".concat(t);var l=o.getBoundingClientRect(),s={width:l.width,height:l.height};return fo.widthCache[i]=s,++fo.cacheCount>LU&&(fo.cacheCount=0,fo.widthCache={}),s}catch{return{width:0,height:0}}},BU=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function ls(e){"@babel/helpers - typeof";return ls=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},ls(e)}function ef(e,t){return WU(e)||HU(e,t)||UU(e,t)||zU()}function zU(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
211
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UU(e,t){if(e){if(typeof e=="string")return B1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return B1(e,t)}}function B1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function HU(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}function WU(e){if(Array.isArray(e))return e}function VU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z1(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,GU(r.key),r)}}function KU(e,t,n){return t&&z1(e.prototype,t),n&&z1(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function GU(e){var t=qU(e,"string");return ls(t)=="symbol"?t:t+""}function qU(e,t){if(ls(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ls(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var U1=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,H1=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,XU=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,YU=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,y2={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},QU=Object.keys(y2),To="NaN";function ZU(e,t){return e*y2[t]}var Du=function(){function e(t,n){VU(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!XU.test(n)&&(this.num=NaN,this.unit=""),QU.includes(n)&&(this.num=ZU(t,n),this.unit="px")}return KU(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.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(n){var r,i=(r=YU.exec(n))!==null&&r!==void 0?r:[],o=ef(i,3),a=o[1],l=o[2];return new e(parseFloat(a),l??"")}}])}();function x2(e){if(e.includes(To))return To;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=U1.exec(t))!==null&&n!==void 0?n:[],i=ef(r,4),o=i[1],a=i[2],l=i[3],s=Du.parse(o??""),u=Du.parse(l??""),c=a==="*"?s.multiply(u):s.divide(u);if(c.isNaN())return To;t=t.replace(U1,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,d=(f=H1.exec(t))!==null&&f!==void 0?f:[],p=ef(d,4),h=p[1],m=p[2],w=p[3],g=Du.parse(h??""),y=Du.parse(w??""),x=m==="+"?g.add(y):g.subtract(y);if(x.isNaN())return To;t=t.replace(H1,x.toString())}return t}var W1=/\(([^()]*)\)/;function JU(e){for(var t=e;t.includes("(");){var n=W1.exec(t),r=ef(n,2),i=r[1];t=t.replace(W1,x2(i))}return t}function eH(e){var t=e.replace(/\s+/g,"");return t=JU(t),t=x2(t),t}function tH(e){try{return eH(e)}catch{return To}}function uh(e){var t=tH(e.slice(5,-1));return t===To?"":t}var nH=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],rH=["dx","dy","angle","className","breakAll"];function fv(){return fv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fv.apply(this,arguments)}function V1(e,t){if(e==null)return{};var n=iH(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iH(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function K1(e,t){return sH(e)||lH(e,t)||aH(e,t)||oH()}function oH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
212
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aH(e,t){if(e){if(typeof e=="string")return G1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return G1(e,t)}}function G1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lH(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}function sH(e){if(Array.isArray(e))return e}var b2=/[ \f\n\r\t\v\u2028\u2029]+/,w2=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var o=[];le(n)||(r?o=n.toString().split(""):o=n.toString().split(b2));var a=o.map(function(s){return{word:s,width:F1(s,i).width}}),l=r?0:F1(" ",i).width;return{wordsWithComputedWidth:a,spaceWidth:l}}catch{return null}},uH=function(t,n,r,i,o){var a=t.maxLines,l=t.children,s=t.style,u=t.breakAll,c=G(a),f=l,d=function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return M.reduce(function(F,I){var P=I.word,k=I.width,B=F[F.length-1];if(B&&(i==null||o||B.width+k+r<Number(i)))B.words.push(P),B.width+=k+r;else{var L={words:[P],width:k};F.push(L)}return F},[])},p=d(n),h=function(M){return M.reduce(function(F,I){return F.width>I.width?F:I})};if(!c)return p;for(var m="…",w=function(M){var F=f.slice(0,M),I=w2({breakAll:u,style:s,children:F+m}).wordsWithComputedWidth,P=d(I),k=P.length>a||h(P).width>Number(i);return[k,P]},g=0,y=f.length-1,x=0,E;g<=y&&x<=f.length-1;){var _=Math.floor((g+y)/2),S=_-1,O=w(S),$=K1(O,2),T=$[0],C=$[1],A=w(_),N=K1(A,1),R=N[0];if(!T&&!R&&(g=_+1),T&&R&&(y=_-1),!T&&R){E=C;break}x++}return E||p},q1=function(t){var n=le(t)?[]:t.toString().split(b2);return[{words:n}]},cH=function(t){var n=t.width,r=t.scaleToFit,i=t.children,o=t.style,a=t.breakAll,l=t.maxLines;if((n||r)&&!ni.isSsr){var s,u,c=w2({breakAll:a,children:i,style:o});if(c){var f=c.wordsWithComputedWidth,d=c.spaceWidth;s=f,u=d}else return q1(i);return uH({breakAll:a,children:i,maxLines:l,style:o},s,u,n,r)}return q1(i)},X1="#808080",ta=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,o=i===void 0?0:i,a=t.lineHeight,l=a===void 0?"1em":a,s=t.capHeight,u=s===void 0?"0.71em":s,c=t.scaleToFit,f=c===void 0?!1:c,d=t.textAnchor,p=d===void 0?"start":d,h=t.verticalAnchor,m=h===void 0?"end":h,w=t.fill,g=w===void 0?X1:w,y=V1(t,nH),x=b.useMemo(function(){return cH({breakAll:y.breakAll,children:y.children,maxLines:y.maxLines,scaleToFit:f,style:y.style,width:y.width})},[y.breakAll,y.children,y.maxLines,f,y.style,y.width]),E=y.dx,_=y.dy,S=y.angle,O=y.className,$=y.breakAll,T=V1(y,rH);if(!Je(r)||!Je(o))return null;var C=r+(G(E)?E:0),A=o+(G(_)?_:0),N;switch(m){case"start":N=uh("calc(".concat(u,")"));break;case"middle":N=uh("calc(".concat((x.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:N=uh("calc(".concat(x.length-1," * -").concat(l,")"));break}var R=[];if(f){var D=x[0].width,M=y.width;R.push("scale(".concat((G(M)?M/D:1)/D,")"))}return S&&R.push("rotate(".concat(S,", ").concat(C,", ").concat(A,")")),R.length&&(T.transform=R.join(" ")),j.createElement("text",fv({},ne(T,!0),{x:C,y:A,className:ue("recharts-text",O),textAnchor:p,fill:g.includes("url")?X1:g}),x.map(function(F,I){var P=F.words.join($?"":" ");return j.createElement("tspan",{x:C,dy:I===0?N:l,key:"".concat(P,"-").concat(I)},P)}))};function ri(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function fH(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function t0(e){let t,n,r;e.length!==2?(t=ri,n=(l,s)=>ri(e(l),s),r=(l,s)=>e(l)-s):(t=e===ri||e===fH?e:dH,n=e,r=e);function i(l,s,u=0,c=l.length){if(u<c){if(t(s,s)!==0)return c;do{const f=u+c>>>1;n(l[f],s)<0?u=f+1:c=f}while(u<c)}return u}function o(l,s,u=0,c=l.length){if(u<c){if(t(s,s)!==0)return c;do{const f=u+c>>>1;n(l[f],s)<=0?u=f+1:c=f}while(u<c)}return u}function a(l,s,u=0,c=l.length){const f=i(l,s,u,c-1);return f>u&&r(l[f-1],s)>-r(l[f],s)?f-1:f}return{left:i,center:a,right:o}}function dH(){return 0}function _2(e){return e===null?NaN:+e}function*pH(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const hH=t0(ri),Zs=hH.right;t0(_2).center;class Y1 extends Map{constructor(t,n=gH){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(Q1(this,t))}has(t){return super.has(Q1(this,t))}set(t,n){return super.set(mH(this,t),n)}delete(t){return super.delete(vH(this,t))}}function Q1({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function mH({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function vH({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function gH(e){return e!==null&&typeof e=="object"?e.valueOf():e}function yH(e=ri){if(e===ri)return S2;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function S2(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const xH=Math.sqrt(50),bH=Math.sqrt(10),wH=Math.sqrt(2);function tf(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=xH?10:o>=bH?5:o>=wH?2:1;let l,s,u;return i<0?(u=Math.pow(10,-i)/a,l=Math.round(e*u),s=Math.round(t*u),l/u<e&&++l,s/u>t&&--s,u=-u):(u=Math.pow(10,i)*a,l=Math.round(e/u),s=Math.round(t/u),l*u<e&&++l,s*u>t&&--s),s<l&&.5<=n&&n<2?tf(e,t,n*2):[l,s,u]}function dv(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,a]=r?tf(t,e,n):tf(e,t,n);if(!(o>=i))return[];const l=o-i+1,s=new Array(l);if(r)if(a<0)for(let u=0;u<l;++u)s[u]=(o-u)/-a;else for(let u=0;u<l;++u)s[u]=(o-u)*a;else if(a<0)for(let u=0;u<l;++u)s[u]=(i+u)/-a;else for(let u=0;u<l;++u)s[u]=(i+u)*a;return s}function pv(e,t,n){return t=+t,e=+e,n=+n,tf(e,t,n)[2]}function hv(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?pv(t,e,n):pv(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function Z1(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function J1(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function E2(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?S2:yH(i);r>n;){if(r-n>600){const s=r-n+1,u=t-n+1,c=Math.log(s),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(s-f)/s)*(u-s/2<0?-1:1),p=Math.max(n,Math.floor(t-u*f/s+d)),h=Math.min(r,Math.floor(t+(s-u)*f/s+d));E2(e,t,p,h,i)}const o=e[t];let a=n,l=r;for(il(e,n,t),i(e[r],o)>0&&il(e,n,r);a<l;){for(il(e,a,l),++a,--l;i(e[a],o)<0;)++a;for(;i(e[l],o)>0;)--l}i(e[n],o)===0?il(e,n,l):(++l,il(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function il(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function _H(e,t,n){if(e=Float64Array.from(pH(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return J1(e);if(t>=1)return Z1(e);var r,i=(r-1)*t,o=Math.floor(i),a=Z1(E2(e,o).subarray(0,o+1)),l=J1(e.subarray(o+1));return a+(l-a)*(i-o)}}function SH(e,t,n=_2){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e),l=+n(e[o+1],o+1,e);return a+(l-a)*(i-o)}}function EH(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function gn(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function kr(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 mv=Symbol("implicit");function n0(){var e=new Y1,t=[],n=[],r=mv;function i(o){let a=e.get(o);if(a===void 0){if(r!==mv)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new Y1;for(const a of o)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return n0(t,n).unknown(r)},gn.apply(i,arguments),i}function ss(){var e=n0().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,l=!1,s=0,u=0,c=.5;delete e.unknown;function f(){var d=t().length,p=i<r,h=p?i:r,m=p?r:i;o=(m-h)/Math.max(1,d-s+u*2),l&&(o=Math.floor(o)),h+=(m-h-o*(d-s))*c,a=o*(1-s),l&&(h=Math.round(h),a=Math.round(a));var w=EH(d).map(function(g){return h+o*g});return n(p?w.reverse():w)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([r,i]=d,r=+r,i=+i,f()):[r,i]},e.rangeRound=function(d){return[r,i]=d,r=+r,i=+i,l=!0,f()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(d){return arguments.length?(l=!!d,f()):l},e.padding=function(d){return arguments.length?(s=Math.min(1,u=+d),f()):s},e.paddingInner=function(d){return arguments.length?(s=Math.min(1,d),f()):s},e.paddingOuter=function(d){return arguments.length?(u=+d,f()):u},e.align=function(d){return arguments.length?(c=Math.max(0,Math.min(1,d)),f()):c},e.copy=function(){return ss(t(),[r,i]).round(l).paddingInner(s).paddingOuter(u).align(c)},gn.apply(f(),arguments)}function O2(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return O2(t())},e}function Al(){return O2(ss.apply(null,arguments).paddingInner(1))}function r0(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function $2(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Js(){}var us=.7,nf=1/us,Bo="\\s*([+-]?\\d+)\\s*",cs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Un="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",OH=/^#([0-9a-f]{3,8})$/,$H=new RegExp(`^rgb\\(${Bo},${Bo},${Bo}\\)$`),PH=new RegExp(`^rgb\\(${Un},${Un},${Un}\\)$`),jH=new RegExp(`^rgba\\(${Bo},${Bo},${Bo},${cs}\\)$`),TH=new RegExp(`^rgba\\(${Un},${Un},${Un},${cs}\\)$`),AH=new RegExp(`^hsl\\(${cs},${Un},${Un}\\)$`),CH=new RegExp(`^hsla\\(${cs},${Un},${Un},${cs}\\)$`),ew={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};r0(Js,fs,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:tw,formatHex:tw,formatHex8:kH,formatHsl:NH,formatRgb:nw,toString:nw});function tw(){return this.rgb().formatHex()}function kH(){return this.rgb().formatHex8()}function NH(){return P2(this).formatHsl()}function nw(){return this.rgb().formatRgb()}function fs(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=OH.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?rw(t):n===3?new Nt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Fu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Fu(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=$H.exec(e))?new Nt(t[1],t[2],t[3],1):(t=PH.exec(e))?new Nt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=jH.exec(e))?Fu(t[1],t[2],t[3],t[4]):(t=TH.exec(e))?Fu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=AH.exec(e))?aw(t[1],t[2]/100,t[3]/100,1):(t=CH.exec(e))?aw(t[1],t[2]/100,t[3]/100,t[4]):ew.hasOwnProperty(e)?rw(ew[e]):e==="transparent"?new Nt(NaN,NaN,NaN,0):null}function rw(e){return new Nt(e>>16&255,e>>8&255,e&255,1)}function Fu(e,t,n,r){return r<=0&&(e=t=n=NaN),new Nt(e,t,n,r)}function MH(e){return e instanceof Js||(e=fs(e)),e?(e=e.rgb(),new Nt(e.r,e.g,e.b,e.opacity)):new Nt}function vv(e,t,n,r){return arguments.length===1?MH(e):new Nt(e,t,n,r??1)}function Nt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}r0(Nt,vv,$2(Js,{brighter(e){return e=e==null?nf:Math.pow(nf,e),new Nt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?us:Math.pow(us,e),new Nt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Nt(Fi(this.r),Fi(this.g),Fi(this.b),rf(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:iw,formatHex:iw,formatHex8:RH,formatRgb:ow,toString:ow}));function iw(){return`#${Ni(this.r)}${Ni(this.g)}${Ni(this.b)}`}function RH(){return`#${Ni(this.r)}${Ni(this.g)}${Ni(this.b)}${Ni((isNaN(this.opacity)?1:this.opacity)*255)}`}function ow(){const e=rf(this.opacity);return`${e===1?"rgb(":"rgba("}${Fi(this.r)}, ${Fi(this.g)}, ${Fi(this.b)}${e===1?")":`, ${e})`}`}function rf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Fi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ni(e){return e=Fi(e),(e<16?"0":"")+e.toString(16)}function aw(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Sn(e,t,n,r)}function P2(e){if(e instanceof Sn)return new Sn(e.h,e.s,e.l,e.opacity);if(e instanceof Js||(e=fs(e)),!e)return new Sn;if(e instanceof Sn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,l=o-i,s=(o+i)/2;return l?(t===o?a=(n-r)/l+(n<r)*6:n===o?a=(r-t)/l+2:a=(t-n)/l+4,l/=s<.5?o+i:2-o-i,a*=60):l=s>0&&s<1?0:a,new Sn(a,l,s,e.opacity)}function IH(e,t,n,r){return arguments.length===1?P2(e):new Sn(e,t,n,r??1)}function Sn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}r0(Sn,IH,$2(Js,{brighter(e){return e=e==null?nf:Math.pow(nf,e),new Sn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?us:Math.pow(us,e),new Sn(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,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Nt(ch(e>=240?e-240:e+120,i,r),ch(e,i,r),ch(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Sn(lw(this.h),Bu(this.s),Bu(this.l),rf(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=rf(this.opacity);return`${e===1?"hsl(":"hsla("}${lw(this.h)}, ${Bu(this.s)*100}%, ${Bu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function lw(e){return e=(e||0)%360,e<0?e+360:e}function Bu(e){return Math.max(0,Math.min(1,e||0))}function ch(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const i0=e=>()=>e;function LH(e,t){return function(n){return e+n*t}}function DH(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function FH(e){return(e=+e)==1?j2:function(t,n){return n-t?DH(t,n,e):i0(isNaN(t)?n:t)}}function j2(e,t){var n=t-e;return n?LH(e,n):i0(isNaN(e)?t:e)}const sw=function e(t){var n=FH(t);function r(i,o){var a=n((i=vv(i)).r,(o=vv(o)).r),l=n(i.g,o.g),s=n(i.b,o.b),u=j2(i.opacity,o.opacity);return function(c){return i.r=a(c),i.g=l(c),i.b=s(c),i.opacity=u(c),i+""}}return r.gamma=e,r}(1);function BH(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function zH(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function UH(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=Fa(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(l){for(a=0;a<r;++a)o[a]=i[a](l);return o}}function HH(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function of(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function WH(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Fa(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var gv=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,fh=new RegExp(gv.source,"g");function VH(e){return function(){return e}}function KH(e){return function(t){return e(t)+""}}function GH(e,t){var n=gv.lastIndex=fh.lastIndex=0,r,i,o,a=-1,l=[],s=[];for(e=e+"",t=t+"";(r=gv.exec(e))&&(i=fh.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),l[a]?l[a]+=o:l[++a]=o),(r=r[0])===(i=i[0])?l[a]?l[a]+=i:l[++a]=i:(l[++a]=null,s.push({i:a,x:of(r,i)})),n=fh.lastIndex;return n<t.length&&(o=t.slice(n),l[a]?l[a]+=o:l[++a]=o),l.length<2?s[0]?KH(s[0].x):VH(t):(t=s.length,function(u){for(var c=0,f;c<t;++c)l[(f=s[c]).i]=f.x(u);return l.join("")})}function Fa(e,t){var n=typeof t,r;return t==null||n==="boolean"?i0(t):(n==="number"?of:n==="string"?(r=fs(t))?(t=r,sw):GH:t instanceof fs?sw:t instanceof Date?HH:zH(t)?BH:Array.isArray(t)?UH:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?WH:of)(e,t)}function o0(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function qH(e,t){t===void 0&&(t=e,e=Fa);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(a){var l=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return o[l](a-l)}}function XH(e){return function(){return e}}function af(e){return+e}var uw=[0,1];function St(e){return e}function yv(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:XH(isNaN(t)?NaN:.5)}function YH(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function QH(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=yv(i,r),o=n(a,o)):(r=yv(r,i),o=n(o,a)),function(l){return o(r(l))}}function ZH(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=yv(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(l){var s=Zs(e,l,1,r)-1;return o[s](i[s](l))}}function eu(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Dd(){var e=uw,t=uw,n=Fa,r,i,o,a=St,l,s,u;function c(){var d=Math.min(e.length,t.length);return a!==St&&(a=YH(e[0],e[d-1])),l=d>2?ZH:QH,s=u=null,f}function f(d){return d==null||isNaN(d=+d)?o:(s||(s=l(e.map(r),t,n)))(r(a(d)))}return f.invert=function(d){return a(i((u||(u=l(t,e.map(r),of)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,af),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),n=o0,c()},f.clamp=function(d){return arguments.length?(a=d?!0:St,c()):a!==St},f.interpolate=function(d){return arguments.length?(n=d,c()):n},f.unknown=function(d){return arguments.length?(o=d,f):o},function(d,p){return r=d,i=p,c()}}function a0(){return Dd()(St,St)}function JH(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function lf(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function na(e){return e=lf(Math.abs(e)),e?e[1]:NaN}function eW(e,t){return function(n,r){for(var i=n.length,o=[],a=0,l=e[0],s=0;i>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),o.push(n.substring(i-=l,i+l)),!((s+=l+1)>r));)l=e[a=(a+1)%e.length];return o.reverse().join(t)}}function tW(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var nW=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ds(e){if(!(t=nW.exec(e)))throw new Error("invalid format: "+e);var t;return new l0({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]})}ds.prototype=l0.prototype;function l0(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+""}l0.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 rW(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var T2;function iW(e,t){var n=lf(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(T2=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+lf(e,Math.max(0,t+o-1))[0]}function cw(e,t){var n=lf(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const fw={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:JH,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)=>cw(e*100,t),r:cw,s:iW,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function dw(e){return e}var pw=Array.prototype.map,hw=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function oW(e){var t=e.grouping===void 0||e.thousands===void 0?dw:eW(pw.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?dw:tW(pw.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function u(f){f=ds(f);var d=f.fill,p=f.align,h=f.sign,m=f.symbol,w=f.zero,g=f.width,y=f.comma,x=f.precision,E=f.trim,_=f.type;_==="n"?(y=!0,_="g"):fw[_]||(x===void 0&&(x=12),E=!0,_="g"),(w||d==="0"&&p==="=")&&(w=!0,d="0",p="=");var S=m==="$"?n:m==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",O=m==="$"?r:/[%p]/.test(_)?a:"",$=fw[_],T=/[defgprs%]/.test(_);x=x===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function C(A){var N=S,R=O,D,M,F;if(_==="c")R=$(A)+R,A="";else{A=+A;var I=A<0||1/A<0;if(A=isNaN(A)?s:$(Math.abs(A),x),E&&(A=rW(A)),I&&+A==0&&h!=="+"&&(I=!1),N=(I?h==="("?h:l:h==="-"||h==="("?"":h)+N,R=(_==="s"?hw[8+T2/3]:"")+R+(I&&h==="("?")":""),T){for(D=-1,M=A.length;++D<M;)if(F=A.charCodeAt(D),48>F||F>57){R=(F===46?i+A.slice(D+1):A.slice(D))+R,A=A.slice(0,D);break}}}y&&!w&&(A=t(A,1/0));var P=N.length+A.length+R.length,k=P<g?new Array(g-P+1).join(d):"";switch(y&&w&&(A=t(k+A,k.length?g-R.length:1/0),k=""),p){case"<":A=N+A+R+k;break;case"=":A=N+k+A+R;break;case"^":A=k.slice(0,P=k.length>>1)+N+A+R+k.slice(P);break;default:A=k+N+A+R;break}return o(A)}return C.toString=function(){return f+""},C}function c(f,d){var p=u((f=ds(f),f.type="f",f)),h=Math.max(-8,Math.min(8,Math.floor(na(d)/3)))*3,m=Math.pow(10,-h),w=hw[8+h/3];return function(g){return p(m*g)+w}}return{format:u,formatPrefix:c}}var zu,s0,A2;aW({thousands:",",grouping:[3],currency:["$",""]});function aW(e){return zu=oW(e),s0=zu.format,A2=zu.formatPrefix,zu}function lW(e){return Math.max(0,-na(Math.abs(e)))}function sW(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(na(t)/3)))*3-na(Math.abs(e)))}function uW(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,na(t)-na(e))+1}function C2(e,t,n,r){var i=hv(e,t,n),o;switch(r=ds(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=sW(i,a))&&(r.precision=o),A2(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=uW(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=lW(i))&&(r.precision=o-(r.type==="%")*2);break}}return s0(r)}function pi(e){var t=e.domain;return e.ticks=function(n){var r=t();return dv(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return C2(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],l=r[o],s,u,c=10;for(l<a&&(u=a,a=l,l=u,u=i,i=o,o=u);c-- >0;){if(u=pv(a,l,n),u===s)return r[i]=a,r[o]=l,t(r);if(u>0)a=Math.floor(a/u)*u,l=Math.ceil(l/u)*u;else if(u<0)a=Math.ceil(a*u)/u,l=Math.floor(l*u)/u;else break;s=u}return e},e}function sf(){var e=a0();return e.copy=function(){return eu(e,sf())},gn.apply(e,arguments),pi(e)}function k2(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,af),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return k2(e).unknown(t)},e=arguments.length?Array.from(e,af):[0,1],pi(n)}function N2(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),e[n]=t.floor(i),e[r]=t.ceil(o),e}function mw(e){return Math.log(e)}function vw(e){return Math.exp(e)}function cW(e){return-Math.log(-e)}function fW(e){return-Math.exp(-e)}function dW(e){return isFinite(e)?+("1e"+e):e<0?0:e}function pW(e){return e===10?dW:e===Math.E?Math.exp:t=>Math.pow(e,t)}function hW(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 gw(e){return(t,n)=>-e(-t,n)}function u0(e){const t=e(mw,vw),n=t.domain;let r=10,i,o;function a(){return i=hW(r),o=pW(r),n()[0]<0?(i=gw(i),o=gw(o),e(cW,fW)):e(mw,vw),t}return t.base=function(l){return arguments.length?(r=+l,a()):r},t.domain=function(l){return arguments.length?(n(l),a()):n()},t.ticks=l=>{const s=n();let u=s[0],c=s[s.length-1];const f=c<u;f&&([u,c]=[c,u]);let d=i(u),p=i(c),h,m;const w=l==null?10:+l;let g=[];if(!(r%1)&&p-d<w){if(d=Math.floor(d),p=Math.ceil(p),u>0){for(;d<=p;++d)for(h=1;h<r;++h)if(m=d<0?h/o(-d):h*o(d),!(m<u)){if(m>c)break;g.push(m)}}else for(;d<=p;++d)for(h=r-1;h>=1;--h)if(m=d>0?h/o(-d):h*o(d),!(m<u)){if(m>c)break;g.push(m)}g.length*2<w&&(g=dv(u,c,w))}else g=dv(d,p,Math.min(p-d,w)).map(o);return f?g.reverse():g},t.tickFormat=(l,s)=>{if(l==null&&(l=10),s==null&&(s=r===10?"s":","),typeof s!="function"&&(!(r%1)&&(s=ds(s)).precision==null&&(s.trim=!0),s=s0(s)),l===1/0)return s;const u=Math.max(1,r*l/t.ticks().length);return c=>{let f=c/o(Math.round(i(c)));return f*r<r-.5&&(f*=r),f<=u?s(c):""}},t.nice=()=>n(N2(n(),{floor:l=>o(Math.floor(i(l))),ceil:l=>o(Math.ceil(i(l)))})),t}function M2(){const e=u0(Dd()).domain([1,10]);return e.copy=()=>eu(e,M2()).base(e.base()),gn.apply(e,arguments),e}function yw(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function xw(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function c0(e){var t=1,n=e(yw(t),xw(t));return n.constant=function(r){return arguments.length?e(yw(t=+r),xw(t)):t},pi(n)}function R2(){var e=c0(Dd());return e.copy=function(){return eu(e,R2()).constant(e.constant())},gn.apply(e,arguments)}function bw(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function mW(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function vW(e){return e<0?-e*e:e*e}function f0(e){var t=e(St,St),n=1;function r(){return n===1?e(St,St):n===.5?e(mW,vW):e(bw(n),bw(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},pi(t)}function d0(){var e=f0(Dd());return e.copy=function(){return eu(e,d0()).exponent(e.exponent())},gn.apply(e,arguments),e}function gW(){return d0.apply(null,arguments).exponent(.5)}function ww(e){return Math.sign(e)*e*e}function yW(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function I2(){var e=a0(),t=[0,1],n=!1,r;function i(o){var a=yW(e(o));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(o){return e.invert(ww(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,af)).map(ww)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return I2(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},gn.apply(i,arguments),pi(i)}function L2(){var e=[],t=[],n=[],r;function i(){var a=0,l=Math.max(1,t.length);for(n=new Array(l-1);++a<l;)n[a-1]=SH(e,a/l);return o}function o(a){return a==null||isNaN(a=+a)?r:t[Zs(n,a)]}return o.invertExtent=function(a){var l=t.indexOf(a);return l<0?[NaN,NaN]:[l>0?n[l-1]:e[0],l<n.length?n[l]:e[e.length-1]]},o.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let l of a)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(ri),i()},o.range=function(a){return arguments.length?(t=Array.from(a),i()):t.slice()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return L2().domain(e).range(t).unknown(r)},gn.apply(o,arguments)}function D2(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function a(s){return s!=null&&s<=s?i[Zs(r,s,0,n)]:o}function l(){var s=-1;for(r=new Array(n);++s<n;)r[s]=((s+1)*t-(s-n)*e)/(n+1);return a}return a.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,l()):[e,t]},a.range=function(s){return arguments.length?(n=(i=Array.from(s)).length-1,l()):i.slice()},a.invertExtent=function(s){var u=i.indexOf(s);return u<0?[NaN,NaN]:u<1?[e,r[0]]:u>=n?[r[n-1],t]:[r[u-1],r[u]]},a.unknown=function(s){return arguments.length&&(o=s),a},a.thresholds=function(){return r.slice()},a.copy=function(){return D2().domain([e,t]).range(i).unknown(o)},gn.apply(pi(a),arguments)}function F2(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[Zs(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return F2().domain(e).range(t).unknown(n)},gn.apply(i,arguments)}const dh=new Date,ph=new Date;function et(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),l=i.ceil(o);return o-a<l-o?a:l},i.offset=(o,a)=>(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,l)=>{const s=[];if(o=i.ceil(o),l=l==null?1:Math.floor(l),!(o<a)||!(l>0))return s;let u;do s.push(u=new Date(+o)),t(o,l),e(o);while(u<o&&o<a);return s},i.filter=o=>et(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,l)=>{if(a>=a)if(l<0)for(;++l<=0;)for(;t(a,-1),!o(a););else for(;--l>=0;)for(;t(a,1),!o(a););}),n&&(i.count=(o,a)=>(dh.setTime(+o),ph.setTime(+a),e(dh),e(ph),Math.floor(n(dh,ph))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const uf=et(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);uf.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?et(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):uf);uf.range;const lr=1e3,ln=lr*60,sr=ln*60,Er=sr*24,p0=Er*7,_w=Er*30,hh=Er*365,Mi=et(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*lr)},(e,t)=>(t-e)/lr,e=>e.getUTCSeconds());Mi.range;const h0=et(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*lr)},(e,t)=>{e.setTime(+e+t*ln)},(e,t)=>(t-e)/ln,e=>e.getMinutes());h0.range;const m0=et(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ln)},(e,t)=>(t-e)/ln,e=>e.getUTCMinutes());m0.range;const v0=et(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*lr-e.getMinutes()*ln)},(e,t)=>{e.setTime(+e+t*sr)},(e,t)=>(t-e)/sr,e=>e.getHours());v0.range;const g0=et(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*sr)},(e,t)=>(t-e)/sr,e=>e.getUTCHours());g0.range;const tu=et(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ln)/Er,e=>e.getDate()-1);tu.range;const Fd=et(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Er,e=>e.getUTCDate()-1);Fd.range;const B2=et(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Er,e=>Math.floor(e/Er));B2.range;function oo(e){return et(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ln)/p0)}const Bd=oo(0),cf=oo(1),xW=oo(2),bW=oo(3),ra=oo(4),wW=oo(5),_W=oo(6);Bd.range;cf.range;xW.range;bW.range;ra.range;wW.range;_W.range;function ao(e){return et(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/p0)}const zd=ao(0),ff=ao(1),SW=ao(2),EW=ao(3),ia=ao(4),OW=ao(5),$W=ao(6);zd.range;ff.range;SW.range;EW.range;ia.range;OW.range;$W.range;const y0=et(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());y0.range;const x0=et(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());x0.range;const Or=et(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());Or.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:et(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Or.range;const $r=et(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());$r.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:et(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});$r.range;function z2(e,t,n,r,i,o){const a=[[Mi,1,lr],[Mi,5,5*lr],[Mi,15,15*lr],[Mi,30,30*lr],[o,1,ln],[o,5,5*ln],[o,15,15*ln],[o,30,30*ln],[i,1,sr],[i,3,3*sr],[i,6,6*sr],[i,12,12*sr],[r,1,Er],[r,2,2*Er],[n,1,p0],[t,1,_w],[t,3,3*_w],[e,1,hh]];function l(u,c,f){const d=c<u;d&&([u,c]=[c,u]);const p=f&&typeof f.range=="function"?f:s(u,c,f),h=p?p.range(u,+c+1):[];return d?h.reverse():h}function s(u,c,f){const d=Math.abs(c-u)/f,p=t0(([,,w])=>w).right(a,d);if(p===a.length)return e.every(hv(u/hh,c/hh,f));if(p===0)return uf.every(Math.max(hv(u,c,f),1));const[h,m]=a[d/a[p-1][2]<a[p][2]/d?p-1:p];return h.every(m)}return[l,s]}const[PW,jW]=z2($r,x0,zd,B2,g0,m0),[TW,AW]=z2(Or,y0,Bd,tu,v0,h0);function mh(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 vh(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 ol(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function CW(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,l=e.months,s=e.shortMonths,u=al(i),c=ll(i),f=al(o),d=ll(o),p=al(a),h=ll(a),m=al(l),w=ll(l),g=al(s),y=ll(s),x={a:I,A:P,b:k,B,c:null,d:jw,e:jw,f:eV,g:cV,G:dV,H:QW,I:ZW,j:JW,L:U2,m:tV,M:nV,p:L,q:U,Q:Cw,s:kw,S:rV,u:iV,U:oV,V:aV,w:lV,W:sV,x:null,X:null,y:uV,Y:fV,Z:pV,"%":Aw},E={a:V,A:re,b:ie,B:J,c:null,d:Tw,e:Tw,f:gV,g:PV,G:TV,H:hV,I:mV,j:vV,L:W2,m:yV,M:xV,p:Ce,q:Oe,Q:Cw,s:kw,S:bV,u:wV,U:_V,V:SV,w:EV,W:OV,x:null,X:null,y:$V,Y:jV,Z:AV,"%":Aw},_={a:C,A,b:N,B:R,c:D,d:$w,e:$w,f:GW,g:Ow,G:Ew,H:Pw,I:Pw,j:HW,L:KW,m:UW,M:WW,p:T,q:zW,Q:XW,s:YW,S:VW,u:IW,U:LW,V:DW,w:RW,W:FW,x:M,X:F,y:Ow,Y:Ew,Z:BW,"%":qW};x.x=S(n,x),x.X=S(r,x),x.c=S(t,x),E.x=S(n,E),E.X=S(r,E),E.c=S(t,E);function S(K,Z){return function(ee){var H=[],ke=-1,ae=0,He=K.length,qe,Tt,Rr;for(ee instanceof Date||(ee=new Date(+ee));++ke<He;)K.charCodeAt(ke)===37&&(H.push(K.slice(ae,ke)),(Tt=Sw[qe=K.charAt(++ke)])!=null?qe=K.charAt(++ke):Tt=qe==="e"?" ":"0",(Rr=Z[qe])&&(qe=Rr(ee,Tt)),H.push(qe),ae=ke+1);return H.push(K.slice(ae,ke)),H.join("")}}function O(K,Z){return function(ee){var H=ol(1900,void 0,1),ke=$(H,K,ee+="",0),ae,He;if(ke!=ee.length)return null;if("Q"in H)return new Date(H.Q);if("s"in H)return new Date(H.s*1e3+("L"in H?H.L:0));if(Z&&!("Z"in H)&&(H.Z=0),"p"in H&&(H.H=H.H%12+H.p*12),H.m===void 0&&(H.m="q"in H?H.q:0),"V"in H){if(H.V<1||H.V>53)return null;"w"in H||(H.w=1),"Z"in H?(ae=vh(ol(H.y,0,1)),He=ae.getUTCDay(),ae=He>4||He===0?ff.ceil(ae):ff(ae),ae=Fd.offset(ae,(H.V-1)*7),H.y=ae.getUTCFullYear(),H.m=ae.getUTCMonth(),H.d=ae.getUTCDate()+(H.w+6)%7):(ae=mh(ol(H.y,0,1)),He=ae.getDay(),ae=He>4||He===0?cf.ceil(ae):cf(ae),ae=tu.offset(ae,(H.V-1)*7),H.y=ae.getFullYear(),H.m=ae.getMonth(),H.d=ae.getDate()+(H.w+6)%7)}else("W"in H||"U"in H)&&("w"in H||(H.w="u"in H?H.u%7:"W"in H?1:0),He="Z"in H?vh(ol(H.y,0,1)).getUTCDay():mh(ol(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(He+5)%7:H.w+H.U*7-(He+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,vh(H)):mh(H)}}function $(K,Z,ee,H){for(var ke=0,ae=Z.length,He=ee.length,qe,Tt;ke<ae;){if(H>=He)return-1;if(qe=Z.charCodeAt(ke++),qe===37){if(qe=Z.charAt(ke++),Tt=_[qe in Sw?Z.charAt(ke++):qe],!Tt||(H=Tt(K,ee,H))<0)return-1}else if(qe!=ee.charCodeAt(H++))return-1}return H}function T(K,Z,ee){var H=u.exec(Z.slice(ee));return H?(K.p=c.get(H[0].toLowerCase()),ee+H[0].length):-1}function C(K,Z,ee){var H=p.exec(Z.slice(ee));return H?(K.w=h.get(H[0].toLowerCase()),ee+H[0].length):-1}function A(K,Z,ee){var H=f.exec(Z.slice(ee));return H?(K.w=d.get(H[0].toLowerCase()),ee+H[0].length):-1}function N(K,Z,ee){var H=g.exec(Z.slice(ee));return H?(K.m=y.get(H[0].toLowerCase()),ee+H[0].length):-1}function R(K,Z,ee){var H=m.exec(Z.slice(ee));return H?(K.m=w.get(H[0].toLowerCase()),ee+H[0].length):-1}function D(K,Z,ee){return $(K,t,Z,ee)}function M(K,Z,ee){return $(K,n,Z,ee)}function F(K,Z,ee){return $(K,r,Z,ee)}function I(K){return a[K.getDay()]}function P(K){return o[K.getDay()]}function k(K){return s[K.getMonth()]}function B(K){return l[K.getMonth()]}function L(K){return i[+(K.getHours()>=12)]}function U(K){return 1+~~(K.getMonth()/3)}function V(K){return a[K.getUTCDay()]}function re(K){return o[K.getUTCDay()]}function ie(K){return s[K.getUTCMonth()]}function J(K){return l[K.getUTCMonth()]}function Ce(K){return i[+(K.getUTCHours()>=12)]}function Oe(K){return 1+~~(K.getUTCMonth()/3)}return{format:function(K){var Z=S(K+="",x);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=S(K+="",E);return Z.toString=function(){return K},Z},utcParse:function(K){var Z=O(K+="",!0);return Z.toString=function(){return K},Z}}}var Sw={"-":"",_:" ",0:"0"},ot=/^\s*\d+/,kW=/^%/,NW=/[\\^$*+?|[\]().{}]/g;function ce(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function MW(e){return e.replace(NW,"\\$&")}function al(e){return new RegExp("^(?:"+e.map(MW).join("|")+")","i")}function ll(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function RW(e,t,n){var r=ot.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function IW(e,t,n){var r=ot.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function LW(e,t,n){var r=ot.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function DW(e,t,n){var r=ot.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function FW(e,t,n){var r=ot.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Ew(e,t,n){var r=ot.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Ow(e,t,n){var r=ot.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function BW(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function zW(e,t,n){var r=ot.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function UW(e,t,n){var r=ot.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function $w(e,t,n){var r=ot.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function HW(e,t,n){var r=ot.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Pw(e,t,n){var r=ot.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function WW(e,t,n){var r=ot.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function VW(e,t,n){var r=ot.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function KW(e,t,n){var r=ot.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function GW(e,t,n){var r=ot.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function qW(e,t,n){var r=kW.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function XW(e,t,n){var r=ot.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function YW(e,t,n){var r=ot.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function jw(e,t){return ce(e.getDate(),t,2)}function QW(e,t){return ce(e.getHours(),t,2)}function ZW(e,t){return ce(e.getHours()%12||12,t,2)}function JW(e,t){return ce(1+tu.count(Or(e),e),t,3)}function U2(e,t){return ce(e.getMilliseconds(),t,3)}function eV(e,t){return U2(e,t)+"000"}function tV(e,t){return ce(e.getMonth()+1,t,2)}function nV(e,t){return ce(e.getMinutes(),t,2)}function rV(e,t){return ce(e.getSeconds(),t,2)}function iV(e){var t=e.getDay();return t===0?7:t}function oV(e,t){return ce(Bd.count(Or(e)-1,e),t,2)}function H2(e){var t=e.getDay();return t>=4||t===0?ra(e):ra.ceil(e)}function aV(e,t){return e=H2(e),ce(ra.count(Or(e),e)+(Or(e).getDay()===4),t,2)}function lV(e){return e.getDay()}function sV(e,t){return ce(cf.count(Or(e)-1,e),t,2)}function uV(e,t){return ce(e.getFullYear()%100,t,2)}function cV(e,t){return e=H2(e),ce(e.getFullYear()%100,t,2)}function fV(e,t){return ce(e.getFullYear()%1e4,t,4)}function dV(e,t){var n=e.getDay();return e=n>=4||n===0?ra(e):ra.ceil(e),ce(e.getFullYear()%1e4,t,4)}function pV(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ce(t/60|0,"0",2)+ce(t%60,"0",2)}function Tw(e,t){return ce(e.getUTCDate(),t,2)}function hV(e,t){return ce(e.getUTCHours(),t,2)}function mV(e,t){return ce(e.getUTCHours()%12||12,t,2)}function vV(e,t){return ce(1+Fd.count($r(e),e),t,3)}function W2(e,t){return ce(e.getUTCMilliseconds(),t,3)}function gV(e,t){return W2(e,t)+"000"}function yV(e,t){return ce(e.getUTCMonth()+1,t,2)}function xV(e,t){return ce(e.getUTCMinutes(),t,2)}function bV(e,t){return ce(e.getUTCSeconds(),t,2)}function wV(e){var t=e.getUTCDay();return t===0?7:t}function _V(e,t){return ce(zd.count($r(e)-1,e),t,2)}function V2(e){var t=e.getUTCDay();return t>=4||t===0?ia(e):ia.ceil(e)}function SV(e,t){return e=V2(e),ce(ia.count($r(e),e)+($r(e).getUTCDay()===4),t,2)}function EV(e){return e.getUTCDay()}function OV(e,t){return ce(ff.count($r(e)-1,e),t,2)}function $V(e,t){return ce(e.getUTCFullYear()%100,t,2)}function PV(e,t){return e=V2(e),ce(e.getUTCFullYear()%100,t,2)}function jV(e,t){return ce(e.getUTCFullYear()%1e4,t,4)}function TV(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ia(e):ia.ceil(e),ce(e.getUTCFullYear()%1e4,t,4)}function AV(){return"+0000"}function Aw(){return"%"}function Cw(e){return+e}function kw(e){return Math.floor(+e/1e3)}var po,K2,G2;CV({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 CV(e){return po=CW(e),K2=po.format,po.parse,G2=po.utcFormat,po.utcParse,po}function kV(e){return new Date(e)}function NV(e){return e instanceof Date?+e:+new Date(+e)}function b0(e,t,n,r,i,o,a,l,s,u){var c=a0(),f=c.invert,d=c.domain,p=u(".%L"),h=u(":%S"),m=u("%I:%M"),w=u("%I %p"),g=u("%a %d"),y=u("%b %d"),x=u("%B"),E=u("%Y");function _(S){return(s(S)<S?p:l(S)<S?h:a(S)<S?m:o(S)<S?w:r(S)<S?i(S)<S?g:y:n(S)<S?x:E)(S)}return c.invert=function(S){return new Date(f(S))},c.domain=function(S){return arguments.length?d(Array.from(S,NV)):d().map(kV)},c.ticks=function(S){var O=d();return e(O[0],O[O.length-1],S??10)},c.tickFormat=function(S,O){return O==null?_:u(O)},c.nice=function(S){var O=d();return(!S||typeof S.range!="function")&&(S=t(O[0],O[O.length-1],S??10)),S?d(N2(O,S)):c},c.copy=function(){return eu(c,b0(e,t,n,r,i,o,a,l,s,u))},c}function MV(){return gn.apply(b0(TW,AW,Or,y0,Bd,tu,v0,h0,Mi,K2).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function RV(){return gn.apply(b0(PW,jW,$r,x0,zd,Fd,g0,m0,Mi,G2).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ud(){var e=0,t=1,n,r,i,o,a=St,l=!1,s;function u(f){return f==null||isNaN(f=+f)?s:a(i===0?.5:(f=(o(f)-n)*i,l?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(f){return arguments.length?(l=!!f,u):l},u.interpolator=function(f){return arguments.length?(a=f,u):a};function c(f){return function(d){var p,h;return arguments.length?([p,h]=d,a=f(p,h),u):[a(0),a(1)]}}return u.range=c(Fa),u.rangeRound=c(o0),u.unknown=function(f){return arguments.length?(s=f,u):s},function(f){return o=f,n=f(e),r=f(t),i=n===r?0:1/(r-n),u}}function hi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function q2(){var e=pi(Ud()(St));return e.copy=function(){return hi(e,q2())},kr.apply(e,arguments)}function X2(){var e=u0(Ud()).domain([1,10]);return e.copy=function(){return hi(e,X2()).base(e.base())},kr.apply(e,arguments)}function Y2(){var e=c0(Ud());return e.copy=function(){return hi(e,Y2()).constant(e.constant())},kr.apply(e,arguments)}function w0(){var e=f0(Ud());return e.copy=function(){return hi(e,w0()).exponent(e.exponent())},kr.apply(e,arguments)}function IV(){return w0.apply(null,arguments).exponent(.5)}function Q2(){var e=[],t=St;function n(r){if(r!=null&&!isNaN(r=+r))return t((Zs(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(ri),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>_H(e,o/r))},n.copy=function(){return Q2(t).domain(e)},kr.apply(n,arguments)}function Hd(){var e=0,t=.5,n=1,r=1,i,o,a,l,s,u=St,c,f=!1,d;function p(m){return isNaN(m=+m)?d:(m=.5+((m=+c(m))-o)*(r*m<r*o?l:s),u(f?Math.max(0,Math.min(1,m)):m))}p.domain=function(m){return arguments.length?([e,t,n]=m,i=c(e=+e),o=c(t=+t),a=c(n=+n),l=i===o?0:.5/(o-i),s=o===a?0:.5/(a-o),r=o<i?-1:1,p):[e,t,n]},p.clamp=function(m){return arguments.length?(f=!!m,p):f},p.interpolator=function(m){return arguments.length?(u=m,p):u};function h(m){return function(w){var g,y,x;return arguments.length?([g,y,x]=w,u=qH(m,[g,y,x]),p):[u(0),u(.5),u(1)]}}return p.range=h(Fa),p.rangeRound=h(o0),p.unknown=function(m){return arguments.length?(d=m,p):d},function(m){return c=m,i=m(e),o=m(t),a=m(n),l=i===o?0:.5/(o-i),s=o===a?0:.5/(a-o),r=o<i?-1:1,p}}function Z2(){var e=pi(Hd()(St));return e.copy=function(){return hi(e,Z2())},kr.apply(e,arguments)}function J2(){var e=u0(Hd()).domain([.1,1,10]);return e.copy=function(){return hi(e,J2()).base(e.base())},kr.apply(e,arguments)}function ej(){var e=c0(Hd());return e.copy=function(){return hi(e,ej()).constant(e.constant())},kr.apply(e,arguments)}function _0(){var e=f0(Hd());return e.copy=function(){return hi(e,_0()).exponent(e.exponent())},kr.apply(e,arguments)}function LV(){return _0.apply(null,arguments).exponent(.5)}const Nw=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:ss,scaleDiverging:Z2,scaleDivergingLog:J2,scaleDivergingPow:_0,scaleDivergingSqrt:LV,scaleDivergingSymlog:ej,scaleIdentity:k2,scaleImplicit:mv,scaleLinear:sf,scaleLog:M2,scaleOrdinal:n0,scalePoint:Al,scalePow:d0,scaleQuantile:L2,scaleQuantize:D2,scaleRadial:I2,scaleSequential:q2,scaleSequentialLog:X2,scaleSequentialPow:w0,scaleSequentialQuantile:Q2,scaleSequentialSqrt:IV,scaleSequentialSymlog:Y2,scaleSqrt:gW,scaleSymlog:R2,scaleThreshold:F2,scaleTime:MV,scaleUtc:RV,tickFormat:C2},Symbol.toStringTag,{value:"Module"}));var DV=Ta;function FV(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(a!=null&&(l===void 0?a===a&&!DV(a):n(a,l)))var l=a,s=o}return s}var Wd=FV;function BV(e,t){return e>t}var tj=BV,zV=Wd,UV=tj,HV=La;function WV(e){return e&&e.length?zV(e,HV,UV):void 0}var VV=WV;const Vd=me(VV);function KV(e,t){return e<t}var nj=KV,GV=Wd,qV=nj,XV=La;function YV(e){return e&&e.length?GV(e,XV,qV):void 0}var QV=YV;const Kd=me(QV);var ZV=vd,JV=di,eK=s2,tK=jt;function nK(e,t){var n=tK(e)?ZV:eK;return n(e,JV(t))}var rK=nK,iK=Yy,oK=rK;function aK(e,t){return iK(oK(e,t),1)}var lK=aK;const sK=me(lK);var uK=Xy;function cK(e,t){return uK(e,t)}var fK=cK;const Gd=me(fK);var Ba=1e9,dK={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},E0,Re=!0,pn="[DecimalError] ",Bi=pn+"Invalid argument: ",S0=pn+"Exponent out of range: ",za=Math.floor,$i=Math.pow,pK=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Bt,tt=1e7,je=7,rj=9007199254740991,df=za(rj/je),X={};X.absoluteValue=X.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};X.comparedTo=X.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1};X.decimalPlaces=X.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*je;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};X.dividedBy=X.div=function(e){return pr(this,new this.constructor(e))};X.dividedToIntegerBy=X.idiv=function(e){var t=this,n=t.constructor;return ye(pr(t,new n(e),0,1),n.precision)};X.equals=X.eq=function(e){return!this.cmp(e)};X.exponent=function(){return Ge(this)};X.greaterThan=X.gt=function(e){return this.cmp(e)>0};X.greaterThanOrEqualTo=X.gte=function(e){return this.cmp(e)>=0};X.isInteger=X.isint=function(){return this.e>this.d.length-2};X.isNegative=X.isneg=function(){return this.s<0};X.isPositive=X.ispos=function(){return this.s>0};X.isZero=function(){return this.s===0};X.lessThan=X.lt=function(e){return this.cmp(e)<0};X.lessThanOrEqualTo=X.lte=function(e){return this.cmp(e)<1};X.logarithm=X.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Bt))throw Error(pn+"NaN");if(n.s<1)throw Error(pn+(n.s?"NaN":"-Infinity"));return n.eq(Bt)?new r(0):(Re=!1,t=pr(ps(n,o),ps(e,o),o),Re=!0,ye(t,i))};X.minus=X.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?aj(t,e):ij(t,(e.s=-e.s,e))};X.modulo=X.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(pn+"NaN");return n.s?(Re=!1,t=pr(n,e,0,1).times(e),Re=!0,n.minus(t)):ye(new r(n),i)};X.naturalExponential=X.exp=function(){return oj(this)};X.naturalLogarithm=X.ln=function(){return ps(this)};X.negated=X.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};X.plus=X.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?ij(t,e):aj(t,(e.s=-e.s,e))};X.precision=X.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Bi+e);if(t=Ge(i)+1,r=i.d.length-1,n=r*je+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};X.squareRoot=X.sqrt=function(){var e,t,n,r,i,o,a,l=this,s=l.constructor;if(l.s<1){if(!l.s)return new s(0);throw Error(pn+"NaN")}for(e=Ge(l),Re=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=Fn(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=za((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),r=new s(t)):r=new s(i.toString()),n=s.precision,i=a=n+3;;)if(o=r,r=o.plus(pr(l,o,a+2)).times(.5),Fn(o.d).slice(0,a)===(t=Fn(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(ye(o,n+1,0),o.times(o).eq(l)){r=o;break}}else if(t!="9999")break;a+=4}return Re=!0,ye(r,n)};X.times=X.mul=function(e){var t,n,r,i,o,a,l,s,u,c=this,f=c.constructor,d=c.d,p=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,n=c.e+e.e,s=d.length,u=p.length,s<u&&(o=d,d=p,p=o,a=s,s=u,u=a),o=[],a=s+u,r=a;r--;)o.push(0);for(r=u;--r>=0;){for(t=0,i=s+r;i>r;)l=o[i]+p[r]*d[i-r-1]+t,o[i--]=l%tt|0,t=l/tt|0;o[i]=(o[i]+t)%tt|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,Re?ye(e,f.precision):e};X.toDecimalPlaces=X.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Xn(e,0,Ba),t===void 0?t=r.rounding:Xn(t,0,8),ye(n,e+Ge(n)+1,t))};X.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=qi(r,!0):(Xn(e,0,Ba),t===void 0?t=i.rounding:Xn(t,0,8),r=ye(new i(r),e+1,t),n=qi(r,!0,e+1)),n};X.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?qi(i):(Xn(e,0,Ba),t===void 0?t=o.rounding:Xn(t,0,8),r=ye(new o(i),e+Ge(i)+1,t),n=qi(r.abs(),!1,e+Ge(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};X.toInteger=X.toint=function(){var e=this,t=e.constructor;return ye(new t(e),Ge(e)+1,t.rounding)};X.toNumber=function(){return+this};X.toPower=X.pow=function(e){var t,n,r,i,o,a,l=this,s=l.constructor,u=12,c=+(e=new s(e));if(!e.s)return new s(Bt);if(l=new s(l),!l.s){if(e.s<1)throw Error(pn+"Infinity");return l}if(l.eq(Bt))return l;if(r=s.precision,e.eq(Bt))return ye(l,r);if(t=e.e,n=e.d.length-1,a=t>=n,o=l.s,a){if((n=c<0?-c:c)<=rj){for(i=new s(Bt),t=Math.ceil(r/je+4),Re=!1;n%2&&(i=i.times(l),Rw(i.d,t)),n=za(n/2),n!==0;)l=l.times(l),Rw(l.d,t);return Re=!0,e.s<0?new s(Bt).div(i):ye(i,r)}}else if(o<0)throw Error(pn+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,Re=!1,i=e.times(ps(l,r+u)),Re=!0,i=oj(i),i.s=o,i};X.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=Ge(i),r=qi(i,n<=o.toExpNeg||n>=o.toExpPos)):(Xn(e,1,Ba),t===void 0?t=o.rounding:Xn(t,0,8),i=ye(new o(i),e,t),n=Ge(i),r=qi(i,e<=n||n<=o.toExpNeg,e)),r};X.toSignificantDigits=X.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Xn(e,1,Ba),t===void 0?t=r.rounding:Xn(t,0,8)),ye(new r(n),e,t)};X.toString=X.valueOf=X.val=X.toJSON=X[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Ge(e),n=e.constructor;return qi(e,t<=n.toExpNeg||t>=n.toExpPos)};function ij(e,t){var n,r,i,o,a,l,s,u,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),Re?ye(t,f):t;if(s=e.d,u=t.d,a=e.e,i=t.e,s=s.slice(),o=a-i,o){for(o<0?(r=s,o=-o,l=u.length):(r=u,i=a,l=s.length),a=Math.ceil(f/je),l=a>l?a+1:l+1,o>l&&(o=l,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(l=s.length,o=u.length,l-o<0&&(o=l,r=u,u=s,s=r),n=0;o;)n=(s[--o]=s[o]+u[o]+n)/tt|0,s[o]%=tt;for(n&&(s.unshift(n),++i),l=s.length;s[--l]==0;)s.pop();return t.d=s,t.e=i,Re?ye(t,f):t}function Xn(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Bi+e)}function Fn(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)r=e[t]+"",n=je-r.length,n&&(o+=Fr(n)),o+=r;a=e[t],r=a+"",n=je-r.length,n&&(o+=Fr(n))}else if(a===0)return"0";for(;a%10===0;)a/=10;return o+a}var pr=function(){function e(r,i){var o,a=0,l=r.length;for(r=r.slice();l--;)o=r[l]*i+a,r[l]=o%tt|0,a=o/tt|0;return a&&r.unshift(a),r}function t(r,i,o,a){var l,s;if(o!=a)s=o>a?1:-1;else for(l=s=0;l<o;l++)if(r[l]!=i[l]){s=r[l]>i[l]?1:-1;break}return s}function n(r,i,o){for(var a=0;o--;)r[o]-=a,a=r[o]<i[o]?1:0,r[o]=a*tt+r[o]-i[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,o,a){var l,s,u,c,f,d,p,h,m,w,g,y,x,E,_,S,O,$,T=r.constructor,C=r.s==i.s?1:-1,A=r.d,N=i.d;if(!r.s)return new T(r);if(!i.s)throw Error(pn+"Division by zero");for(s=r.e-i.e,O=N.length,_=A.length,p=new T(C),h=p.d=[],u=0;N[u]==(A[u]||0);)++u;if(N[u]>(A[u]||0)&&--s,o==null?y=o=T.precision:a?y=o+(Ge(r)-Ge(i))+1:y=o,y<0)return new T(0);if(y=y/je+2|0,u=0,O==1)for(c=0,N=N[0],y++;(u<_||c)&&y--;u++)x=c*tt+(A[u]||0),h[u]=x/N|0,c=x%N|0;else{for(c=tt/(N[0]+1)|0,c>1&&(N=e(N,c),A=e(A,c),O=N.length,_=A.length),E=O,m=A.slice(0,O),w=m.length;w<O;)m[w++]=0;$=N.slice(),$.unshift(0),S=N[0],N[1]>=tt/2&&++S;do c=0,l=t(N,m,O,w),l<0?(g=m[0],O!=w&&(g=g*tt+(m[1]||0)),c=g/S|0,c>1?(c>=tt&&(c=tt-1),f=e(N,c),d=f.length,w=m.length,l=t(f,m,d,w),l==1&&(c--,n(f,O<d?$:N,d))):(c==0&&(l=c=1),f=N.slice()),d=f.length,d<w&&f.unshift(0),n(m,f,w),l==-1&&(w=m.length,l=t(N,m,O,w),l<1&&(c++,n(m,O<w?$:N,w))),w=m.length):l===0&&(c++,m=[0]),h[u++]=c,l&&m[0]?m[w++]=A[E]||0:(m=[A[E]],w=1);while((E++<_||m[0]!==void 0)&&y--)}return h[0]||h.shift(),p.e=s,ye(p,a?o+Ge(p)+1:o)}}();function oj(e,t){var n,r,i,o,a,l,s=0,u=0,c=e.constructor,f=c.precision;if(Ge(e)>16)throw Error(S0+Ge(e));if(!e.s)return new c(Bt);for(t==null?(Re=!1,l=f):l=t,a=new c(.03125);e.abs().gte(.1);)e=e.times(a),u+=5;for(r=Math.log($i(2,u))/Math.LN10*2+5|0,l+=r,n=i=o=new c(Bt),c.precision=l;;){if(i=ye(i.times(e),l),n=n.times(++s),a=o.plus(pr(i,n,l)),Fn(a.d).slice(0,l)===Fn(o.d).slice(0,l)){for(;u--;)o=ye(o.times(o),l);return c.precision=f,t==null?(Re=!0,ye(o,f)):o}o=a}}function Ge(e){for(var t=e.e*je,n=e.d[0];n>=10;n/=10)t++;return t}function gh(e,t,n){if(t>e.LN10.sd())throw Re=!0,n&&(e.precision=n),Error(pn+"LN10 precision limit exceeded");return ye(new e(e.LN10),t)}function Fr(e){for(var t="";e--;)t+="0";return t}function ps(e,t){var n,r,i,o,a,l,s,u,c,f=1,d=10,p=e,h=p.d,m=p.constructor,w=m.precision;if(p.s<1)throw Error(pn+(p.s?"NaN":"-Infinity"));if(p.eq(Bt))return new m(0);if(t==null?(Re=!1,u=w):u=t,p.eq(10))return t==null&&(Re=!0),gh(m,u);if(u+=d,m.precision=u,n=Fn(h),r=n.charAt(0),o=Ge(p),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=Fn(p.d),r=n.charAt(0),f++;o=Ge(p),r>1?(p=new m("0."+n),o++):p=new m(r+"."+n.slice(1))}else return s=gh(m,u+2,w).times(o+""),p=ps(new m(r+"."+n.slice(1)),u-d).plus(s),m.precision=w,t==null?(Re=!0,ye(p,w)):p;for(l=a=p=pr(p.minus(Bt),p.plus(Bt),u),c=ye(p.times(p),u),i=3;;){if(a=ye(a.times(c),u),s=l.plus(pr(a,new m(i),u)),Fn(s.d).slice(0,u)===Fn(l.d).slice(0,u))return l=l.times(2),o!==0&&(l=l.plus(gh(m,u+2,w).times(o+""))),l=pr(l,new m(f),u),m.precision=w,t==null?(Re=!0,ye(l,w)):l;l=s,i+=2}}function Mw(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=za(n/je),e.d=[],r=(n+1)%je,n<0&&(r+=je),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=je;r<i;)e.d.push(+t.slice(r,r+=je));t=t.slice(r),r=je-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),Re&&(e.e>df||e.e<-df))throw Error(S0+n)}else e.s=0,e.e=0,e.d=[0];return e}function ye(e,t,n){var r,i,o,a,l,s,u,c,f=e.d;for(a=1,o=f[0];o>=10;o/=10)a++;if(r=t-a,r<0)r+=je,i=t,u=f[c=0];else{if(c=Math.ceil((r+1)/je),o=f.length,c>=o)return e;for(u=o=f[c],a=1;o>=10;o/=10)a++;r%=je,i=r-je+a}if(n!==void 0&&(o=$i(10,a-i-1),l=u/o%10|0,s=t<0||f[c+1]!==void 0||u%o,s=n<4?(l||s)&&(n==0||n==(e.s<0?3:2)):l>5||l==5&&(n==4||s||n==6&&(r>0?i>0?u/$i(10,a-i):0:f[c-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return s?(o=Ge(e),f.length=1,t=t-o-1,f[0]=$i(10,(je-t%je)%je),e.e=za(-t/je)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(r==0?(f.length=c,o=1,c--):(f.length=c+1,o=$i(10,je-r),f[c]=i>0?(u/$i(10,a-i)%$i(10,i)|0)*o:0),s)for(;;)if(c==0){(f[0]+=o)==tt&&(f[0]=1,++e.e);break}else{if(f[c]+=o,f[c]!=tt)break;f[c--]=0,o=1}for(r=f.length;f[--r]===0;)f.pop();if(Re&&(e.e>df||e.e<-df))throw Error(S0+Ge(e));return e}function aj(e,t){var n,r,i,o,a,l,s,u,c,f,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Re?ye(t,p):t;if(s=e.d,f=t.d,r=t.e,u=e.e,s=s.slice(),a=u-r,a){for(c=a<0,c?(n=s,a=-a,l=f.length):(n=f,r=u,l=s.length),i=Math.max(Math.ceil(p/je),l)+2,a>i&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for(i=s.length,l=f.length,c=i<l,c&&(l=i),i=0;i<l;i++)if(s[i]!=f[i]){c=s[i]<f[i];break}a=0}for(c&&(n=s,s=f,f=n,t.s=-t.s),l=s.length,i=f.length-l;i>0;--i)s[l++]=0;for(i=f.length;i>a;){if(s[--i]<f[i]){for(o=i;o&&s[--o]===0;)s[o]=tt-1;--s[o],s[i]+=tt}s[i]-=f[i]}for(;s[--l]===0;)s.pop();for(;s[0]===0;s.shift())--r;return s[0]?(t.d=s,t.e=r,Re?ye(t,p):t):new d(0)}function qi(e,t,n){var r,i=Ge(e),o=Fn(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+Fr(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+Fr(-i-1)+o,n&&(r=n-a)>0&&(o+=Fr(r))):i>=a?(o+=Fr(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+Fr(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=Fr(r))),e.s<0?"-"+o:o}function Rw(e,t){if(e.length>t)return e.length=t,!0}function lj(e){var t,n,r;function i(o){var a=this;if(!(a instanceof i))return new i(o);if(a.constructor=i,o instanceof i){a.s=o.s,a.e=o.e,a.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(Bi+o);if(o>0)a.s=1;else if(o<0)o=-o,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(o===~~o&&o<1e7){a.e=0,a.d=[o];return}return Mw(a,o.toString())}else if(typeof o!="string")throw Error(Bi+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,pK.test(o))Mw(a,o);else throw Error(Bi+o)}if(i.prototype=X,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=lj,i.config=i.set=hK,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function hK(e){if(!e||typeof e!="object")throw Error(pn+"Object expected");var t,n,r,i=["precision",1,Ba,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(za(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Bi+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Bi+n+": "+r);return this}var E0=lj(dK);Bt=new E0(1);const ge=E0;function mK(e){return xK(e)||yK(e)||gK(e)||vK()}function vK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
213
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gK(e,t){if(e){if(typeof e=="string")return xv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xv(e,t)}}function yK(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function xK(e){if(Array.isArray(e))return xv(e)}function xv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var bK=function(t){return t},sj={"@@functional/placeholder":!0},uj=function(t){return t===sj},Iw=function(t){return function n(){return arguments.length===0||arguments.length===1&&uj(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},wK=function e(t,n){return t===1?n:Iw(function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i.filter(function(l){return l!==sj}).length;return a>=t?n.apply(void 0,i):e(t-a,Iw(function(){for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];var c=i.map(function(f){return uj(f)?s.shift():f});return n.apply(void 0,mK(c).concat(s))}))})},qd=function(t){return wK(t.length,t)},bv=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},_K=qd(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),SK=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return bK;var i=n.reverse(),o=i[0],a=i.slice(1);return function(){return a.reduce(function(l,s){return s(l)},o.apply(void 0,arguments))}},wv=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},cj=function(t){var n=null,r=null;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return n&&o.every(function(l,s){return l===n[s]})||(n=o,r=t.apply(void 0,o)),r}};function EK(e){var t;return e===0?t=1:t=Math.floor(new ge(e).abs().log(10).toNumber())+1,t}function OK(e,t,n){for(var r=new ge(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o}var $K=qd(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),PK=qd(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),jK=qd(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Xd={rangeStep:OK,getDigitCount:EK,interpolateNumber:$K,uninterpolateNumber:PK,uninterpolateTruncation:jK};function _v(e){return CK(e)||AK(e)||fj(e)||TK()}function TK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
214
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AK(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function CK(e){if(Array.isArray(e))return Sv(e)}function hs(e,t){return MK(e)||NK(e,t)||fj(e,t)||kK()}function kK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
215
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fj(e,t){if(e){if(typeof e=="string")return Sv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Sv(e,t)}}function Sv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function NK(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var a=e[Symbol.iterator](),l;!(r=(l=a.next()).done)&&(n.push(l.value),!(t&&n.length===t));r=!0);}catch(s){i=!0,o=s}finally{try{!r&&a.return!=null&&a.return()}finally{if(i)throw o}}return n}}function MK(e){if(Array.isArray(e))return e}function dj(e){var t=hs(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function pj(e,t,n){if(e.lte(0))return new ge(0);var r=Xd.getDigitCount(e.toNumber()),i=new ge(10).pow(r),o=e.div(i),a=r!==1?.05:.1,l=new ge(Math.ceil(o.div(a).toNumber())).add(n).mul(a),s=l.mul(i);return t?s:new ge(Math.ceil(s))}function RK(e,t,n){var r=1,i=new ge(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new ge(10).pow(Xd.getDigitCount(e)-1),i=new ge(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new ge(Math.floor(e)))}else e===0?i=new ge(Math.floor((t-1)/2)):n||(i=new ge(Math.floor(e)));var a=Math.floor((t-1)/2),l=SK(_K(function(s){return i.add(new ge(s-a).mul(r)).toNumber()}),bv);return l(0,t)}function hj(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new ge(0),tickMin:new ge(0),tickMax:new ge(0)};var o=pj(new ge(t).sub(e).div(n-1),r,i),a;e<=0&&t>=0?a=new ge(0):(a=new ge(e).add(t).div(2),a=a.sub(new ge(a).mod(o)));var l=Math.ceil(a.sub(e).div(o).toNumber()),s=Math.ceil(new ge(t).sub(a).div(o).toNumber()),u=l+s+1;return u>n?hj(e,t,n,r,i+1):(u<n&&(s=t>0?s+(n-u):s,l=t>0?l:l+(n-u)),{step:o,tickMin:a.sub(new ge(l).mul(o)),tickMax:a.add(new ge(s).mul(o))})}function IK(e){var t=hs(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(i,2),l=dj([n,r]),s=hs(l,2),u=s[0],c=s[1];if(u===-1/0||c===1/0){var f=c===1/0?[u].concat(_v(bv(0,i-1).map(function(){return 1/0}))):[].concat(_v(bv(0,i-1).map(function(){return-1/0})),[c]);return n>r?wv(f):f}if(u===c)return RK(u,i,o);var d=hj(u,c,a,o),p=d.step,h=d.tickMin,m=d.tickMax,w=Xd.rangeStep(h,m.add(new ge(.1).mul(p)),p);return n>r?wv(w):w}function LK(e,t){var n=hs(e,2),r=n[0],i=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=dj([r,i]),l=hs(a,2),s=l[0],u=l[1];if(s===-1/0||u===1/0)return[r,i];if(s===u)return[s];var c=Math.max(t,2),f=pj(new ge(u).sub(s).div(c-1),o,0),d=[].concat(_v(Xd.rangeStep(new ge(s),new ge(u).sub(new ge(.99).mul(f)),f)),[u]);return r>i?wv(d):d}var DK=cj(IK),FK=cj(LK),BK="Invariant failed";function oa(e,t){throw new Error(BK)}var zK=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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 pf(){return pf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pf.apply(this,arguments)}function UK(e,t){return KK(e)||VK(e,t)||WK(e,t)||HK()}function HK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
216
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WK(e,t){if(e){if(typeof e=="string")return Lw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lw(e,t)}}function Lw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function VK(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}function KK(e){if(Array.isArray(e))return e}function GK(e,t){if(e==null)return{};var n=qK(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qK(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function XK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YK(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gj(r.key),r)}}function QK(e,t,n){return t&&YK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZK(e,t,n){return t=hf(t),JK(e,mj()?Reflect.construct(t,n||[],hf(e).constructor):t.apply(e,n))}function JK(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 eG(e)}function eG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mj=function(){return!!e})()}function hf(e){return hf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hf(e)}function tG(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&&Ev(e,t)}function Ev(e,t){return Ev=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Ev(e,t)}function vj(e,t,n){return t=gj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gj(e){var t=nG(e,"string");return aa(t)=="symbol"?t:t+""}function nG(e,t){if(aa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(aa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var O0=function(e){function t(){return XK(this,t),ZK(this,t,arguments)}return tG(t,e),QK(t,[{key:"render",value:function(){var r=this.props,i=r.offset,o=r.layout,a=r.width,l=r.dataKey,s=r.data,u=r.dataPointFormatter,c=r.xAxis,f=r.yAxis,d=GK(r,zK),p=ne(d,!1);this.props.direction==="x"&&c.type!=="number"&&oa();var h=s.map(function(m){var w=u(m,l),g=w.x,y=w.y,x=w.value,E=w.errorVal;if(!E)return null;var _=[],S,O;if(Array.isArray(E)){var $=UK(E,2);S=$[0],O=$[1]}else S=O=E;if(o==="vertical"){var T=c.scale,C=y+i,A=C+a,N=C-a,R=T(x-S),D=T(x+O);_.push({x1:D,y1:A,x2:D,y2:N}),_.push({x1:R,y1:C,x2:D,y2:C}),_.push({x1:R,y1:A,x2:R,y2:N})}else if(o==="horizontal"){var M=f.scale,F=g+i,I=F-a,P=F+a,k=M(x-S),B=M(x+O);_.push({x1:I,y1:B,x2:P,y2:B}),_.push({x1:F,y1:k,x2:F,y2:B}),_.push({x1:I,y1:k,x2:P,y2:k})}return j.createElement(Te,pf({className:"recharts-errorBar",key:"bar-".concat(_.map(function(L){return"".concat(L.x1,"-").concat(L.x2,"-").concat(L.y1,"-").concat(L.y2)}))},p),_.map(function(L){return j.createElement("line",pf({},L,{key:"line-".concat(L.x1,"-").concat(L.x2,"-").concat(L.y1,"-").concat(L.y2)}))}))});return j.createElement(Te,{className:"recharts-errorBars"},h)}}])}(j.Component);vj(O0,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});vj(O0,"displayName","ErrorBar");function ms(e){"@babel/helpers - typeof";return ms=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},ms(e)}function Dw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dw(Object(n),!0).forEach(function(r){rG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rG(e,t,n){return t=iG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iG(e){var t=oG(e,"string");return ms(t)=="symbol"?t:t+""}function oG(e,t){if(ms(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ms(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yj=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=Jt(n,Fo);if(!a)return null;var l=Fo.defaultProps,s=l!==void 0?xi(xi({},l),a.props):{},u;return a.props&&a.props.payload?u=a.props&&a.props.payload:o==="children"?u=(r||[]).reduce(function(c,f){var d=f.item,p=f.props,h=p.sectors||p.data||[];return c.concat(h.map(function(m){return{type:a.props.iconType||d.props.legendType,value:m.name,color:m.fill,payload:m}}))},[]):u=(r||[]).map(function(c){var f=c.item,d=f.type.defaultProps,p=d!==void 0?xi(xi({},d),f.props):{},h=p.dataKey,m=p.name,w=p.legendType,g=p.hide;return{inactive:g,dataKey:h,type:s.iconType||w||"square",color:$0(f),value:m||h,payload:p}}),xi(xi(xi({},s),Fo.getWithHeight(a,i)),{},{payload:u,item:a})};function vs(e){"@babel/helpers - typeof";return vs=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},vs(e)}function Fw(e){return uG(e)||sG(e)||lG(e)||aG()}function aG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
217
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lG(e,t){if(e){if(typeof e=="string")return Ov(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ov(e,t)}}function sG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uG(e){if(Array.isArray(e))return Ov(e)}function Ov(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ue(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bw(Object(n),!0).forEach(function(r){zo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zo(e,t,n){return t=cG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cG(e){var t=fG(e,"string");return vs(t)=="symbol"?t:t+""}function fG(e,t){if(vs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(vs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ct(e,t,n){return le(e)||le(t)?n:Je(t)?$n(e,t,n):te(t)?t(e):n}function Cl(e,t,n,r){var i=sK(e,function(l){return ct(l,t)});if(n==="number"){var o=i.filter(function(l){return G(l)||parseFloat(l)});return o.length?[Kd(o),Vd(o)]:[1/0,-1/0]}var a=r?i.filter(function(l){return!le(l)}):i;return a.map(function(l){return Je(l)||l instanceof Date?l:""})}var dG=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,a=-1,l=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(l<=1)return 0;if(o&&o.axisType==="angleAxis"&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var s=o.range,u=0;u<l;u++){var c=u>0?i[u-1].coordinate:i[l-1].coordinate,f=i[u].coordinate,d=u>=l-1?i[0].coordinate:i[u+1].coordinate,p=void 0;if(an(f-c)!==an(d-f)){var h=[];if(an(d-f)===an(s[1]-s[0])){p=d;var m=f+s[1]-s[0];h[0]=Math.min(m,(m+c)/2),h[1]=Math.max(m,(m+c)/2)}else{p=c;var w=d+s[1]-s[0];h[0]=Math.min(f,(w+f)/2),h[1]=Math.max(f,(w+f)/2)}var g=[Math.min(f,(p+f)/2),Math.max(f,(p+f)/2)];if(t>g[0]&&t<=g[1]||t>=h[0]&&t<=h[1]){a=i[u].index;break}}else{var y=Math.min(c,d),x=Math.max(c,d);if(t>(y+f)/2&&t<=(x+f)/2){a=i[u].index;break}}}else for(var E=0;E<l;E++)if(E===0&&t<=(r[E].coordinate+r[E+1].coordinate)/2||E>0&&E<l-1&&t>(r[E].coordinate+r[E-1].coordinate)/2&&t<=(r[E].coordinate+r[E+1].coordinate)/2||E===l-1&&t>(r[E].coordinate+r[E-1].coordinate)/2){a=r[E].index;break}return a},$0=function(t){var n,r=t,i=r.type.displayName,o=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Ue(Ue({},t.type.defaultProps),t.props):t.props,a=o.stroke,l=o.fill,s;switch(i){case"Line":s=a;break;case"Area":case"Radar":s=a&&a!=="none"?a:l;break;default:s=l;break}return s},pG=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,o=i===void 0?{}:i;if(!o)return{};for(var a={},l=Object.keys(o),s=0,u=l.length;s<u;s++)for(var c=o[l[s]].stackGroups,f=Object.keys(c),d=0,p=f.length;d<p;d++){var h=c[f[d]],m=h.items,w=h.cateAxisId,g=m.filter(function(O){return fr(O.type).indexOf("Bar")>=0});if(g&&g.length){var y=g[0].type.defaultProps,x=y!==void 0?Ue(Ue({},y),g[0].props):g[0].props,E=x.barSize,_=x[w];a[_]||(a[_]=[]);var S=le(E)?n:E;a[_].push({item:g[0],stackList:g.slice(1),barSize:le(S)?void 0:kt(S,r,0)})}}return a},hG=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,o=t.sizeList,a=o===void 0?[]:o,l=t.maxBarSize,s=a.length;if(s<1)return null;var u=kt(n,i,0,!0),c,f=[];if(a[0].barSize===+a[0].barSize){var d=!1,p=i/s,h=a.reduce(function(E,_){return E+_.barSize||0},0);h+=(s-1)*u,h>=i&&(h-=(s-1)*u,u=0),h>=i&&p>0&&(d=!0,p*=.9,h=s*p);var m=(i-h)/2>>0,w={offset:m-u,size:0};c=a.reduce(function(E,_){var S={item:_.item,position:{offset:w.offset+w.size+u,size:d?p:_.barSize}},O=[].concat(Fw(E),[S]);return w=O[O.length-1].position,_.stackList&&_.stackList.length&&_.stackList.forEach(function($){O.push({item:$,position:w})}),O},f)}else{var g=kt(r,i,0,!0);i-2*g-(s-1)*u<=0&&(u=0);var y=(i-2*g-(s-1)*u)/s;y>1&&(y>>=0);var x=l===+l?Math.min(y,l):y;c=a.reduce(function(E,_,S){var O=[].concat(Fw(E),[{item:_.item,position:{offset:g+(y+u)*S+(y-x)/2,size:x}}]);return _.stackList&&_.stackList.length&&_.stackList.forEach(function($){O.push({item:$,position:O[O.length-1].position})}),O},f)}return c},mG=function(t,n,r,i){var o=r.children,a=r.width,l=r.margin,s=a-(l.left||0)-(l.right||0),u=yj({children:o,legendWidth:s});if(u){var c=i||{},f=c.width,d=c.height,p=u.align,h=u.verticalAlign,m=u.layout;if((m==="vertical"||m==="horizontal"&&h==="middle")&&p!=="center"&&G(t[p]))return Ue(Ue({},t),{},zo({},p,t[p]+(f||0)));if((m==="horizontal"||m==="vertical"&&p==="center")&&h!=="middle"&&G(t[h]))return Ue(Ue({},t),{},zo({},h,t[h]+(d||0)))}return t},vG=function(t,n,r){return le(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},xj=function(t,n,r,i,o){var a=n.props.children,l=Pn(a,O0).filter(function(u){return vG(i,o,u.props.direction)});if(l&&l.length){var s=l.map(function(u){return u.props.dataKey});return t.reduce(function(u,c){var f=ct(c,r);if(le(f))return u;var d=Array.isArray(f)?[Kd(f),Vd(f)]:[f,f],p=s.reduce(function(h,m){var w=ct(c,m,0),g=d[0]-Math.abs(Array.isArray(w)?w[0]:w),y=d[1]+Math.abs(Array.isArray(w)?w[1]:w);return[Math.min(g,h[0]),Math.max(y,h[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},gG=function(t,n,r,i,o){var a=n.map(function(l){return xj(t,l,r,o,i)}).filter(function(l){return!le(l)});return a&&a.length?a.reduce(function(l,s){return[Math.min(l[0],s[0]),Math.max(l[1],s[1])]},[1/0,-1/0]):null},bj=function(t,n,r,i,o){var a=n.map(function(s){var u=s.props.dataKey;return r==="number"&&u&&xj(t,s,u,i)||Cl(t,u,r,o)});if(r==="number")return a.reduce(function(s,u){return[Math.min(s[0],u[0]),Math.max(s[1],u[1])]},[1/0,-1/0]);var l={};return a.reduce(function(s,u){for(var c=0,f=u.length;c<f;c++)l[u[c]]||(l[u[c]]=!0,s.push(u[c]));return s},[])},wj=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},gl=function(t,n,r){if(!t)return null;var i=t.scale,o=t.duplicateDomain,a=t.type,l=t.range,s=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(n||r)&&a==="category"&&i.bandwidth?i.bandwidth()/s:0;if(u=t.axisType==="angleAxis"&&(l==null?void 0:l.length)>=2?an(l[0]-l[1])*2*u:u,n&&(t.ticks||t.niceTicks)){var c=(t.ticks||t.niceTicks).map(function(f){var d=o?o.indexOf(f):f;return{coordinate:i(d)+u,value:f,offset:u}});return c.filter(function(f){return!qs(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,d){return{coordinate:i(f)+u,value:f,index:d,offset:u}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+u,value:f,offset:u}}):i.domain().map(function(f,d){return{coordinate:i(f)+u,value:o?o[f]:f,index:d,offset:u}})},yh=new WeakMap,Uu=function(t,n){if(typeof n!="function")return t;yh.has(t)||yh.set(t,new WeakMap);var r=yh.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},yG=function(t,n,r){var i=t.scale,o=t.type,a=t.layout,l=t.axisType;if(i==="auto")return a==="radial"&&l==="radiusAxis"?{scale:ss(),realScaleType:"band"}:a==="radial"&&l==="angleAxis"?{scale:sf(),realScaleType:"linear"}:o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Al(),realScaleType:"point"}:o==="category"?{scale:ss(),realScaleType:"band"}:{scale:sf(),realScaleType:"linear"};if(Ma(i)){var s="scale".concat(Ad(i));return{scale:(Nw[s]||Al)(),realScaleType:Nw[s]?s:"point"}}return te(i)?{scale:i}:{scale:Al(),realScaleType:"point"}},zw=1e-4,xG=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),o=Math.min(i[0],i[1])-zw,a=Math.max(i[0],i[1])+zw,l=t(n[0]),s=t(n[r-1]);(l<o||l>a||s<o||s>a)&&t.domain([n[0],n[r-1]])}},bG=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var o=0,a=0,l=0;l<n;++l){var s=qs(t[l][r][1])?t[l][r][0]:t[l][r][1];s>=0?(t[l][r][0]=o,t[l][r][1]=o+s,o=t[l][r][1]):(t[l][r][0]=a,t[l][r][1]=a+s,a=t[l][r][1])}},wG=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var o=0,a=0;a<n;++a){var l=qs(t[a][r][1])?t[a][r][0]:t[a][r][1];l>=0?(t[a][r][0]=o,t[a][r][1]=o+l,o=t[a][r][1]):(t[a][r][0]=0,t[a][r][1]=0)}},_G={sign:bG,expand:QD,none:Yo,silhouette:ZD,wiggle:JD,positive:wG},SG=function(t,n,r){var i=n.map(function(l){return l.props.dataKey}),o=_G[r],a=YD().keys(i).value(function(l,s){return+ct(l,s,0)}).order(Ym).offset(o);return a(t)},EG=function(t,n,r,i,o,a){if(!t)return null;var l=a?n.reverse():n,s={},u=l.reduce(function(f,d){var p,h=(p=d.type)!==null&&p!==void 0&&p.defaultProps?Ue(Ue({},d.type.defaultProps),d.props):d.props,m=h.stackId,w=h.hide;if(w)return f;var g=h[r],y=f[g]||{hasStack:!1,stackGroups:{}};if(Je(m)){var x=y.stackGroups[m]||{numericAxisId:r,cateAxisId:i,items:[]};x.items.push(d),y.hasStack=!0,y.stackGroups[m]=x}else y.stackGroups[Td("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[d]};return Ue(Ue({},f),{},zo({},g,y))},s),c={};return Object.keys(u).reduce(function(f,d){var p=u[d];if(p.hasStack){var h={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(m,w){var g=p.stackGroups[w];return Ue(Ue({},m),{},zo({},w,{numericAxisId:r,cateAxisId:i,items:g.items,stackedData:SG(t,g.items,o)}))},h)}return Ue(Ue({},f),{},zo({},d,p))},c)},OG=function(t,n){var r=n.realScaleType,i=n.type,o=n.tickCount,a=n.originalDomain,l=n.allowDecimals,s=r||n.scale;if(s!=="auto"&&s!=="linear")return null;if(o&&i==="number"&&a&&(a[0]==="auto"||a[1]==="auto")){var u=t.domain();if(!u.length)return null;var c=DK(u,o,l);return t.domain([Kd(c),Vd(c)]),{niceTicks:c}}if(o&&i==="number"){var f=t.domain(),d=FK(f,o,l);return{niceTicks:d}}return null},$G=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Ue(Ue({},t.type.defaultProps),t.props):t.props,o=i.stackId;if(Je(o)){var a=n[o];if(a){var l=a.items.indexOf(t);return l>=0?a.stackedData[l]:null}}return null},PG=function(t){return t.reduce(function(n,r){return[Kd(r.concat([n[0]]).filter(G)),Vd(r.concat([n[1]]).filter(G))]},[1/0,-1/0])},_j=function(t,n,r){return Object.keys(t).reduce(function(i,o){var a=t[o],l=a.stackedData,s=l.reduce(function(u,c){var f=PG(c.slice(n,r+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(s[0],i[0]),Math.max(s[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Uw=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Hw=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,$v=function(t,n,r){if(te(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(G(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(Uw.test(t[0])){var o=+Uw.exec(t[0])[1];i[0]=n[0]-o}else te(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(G(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(Hw.test(t[1])){var a=+Hw.exec(t[1])[1];i[1]=n[1]+a}else te(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},Pv=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var o=Zy(n,function(f){return f.coordinate}),a=1/0,l=1,s=o.length;l<s;l++){var u=o[l],c=o[l-1];a=Math.min((u.coordinate||0)-(c.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0},Ww=function(t,n,r){return!t||!t.length||Gd(t,$n(r,"type.defaultProps.domain"))?n:t},jG=function(t,n){var r=t.type.defaultProps?Ue(Ue({},t.type.defaultProps),t.props):t.props,i=r.dataKey,o=r.name,a=r.unit,l=r.formatter,s=r.tooltipType,u=r.chartType,c=r.hide;return Ue(Ue({},ne(t,!1)),{},{dataKey:i,unit:a,formatter:l,name:o||i,color:$0(t),value:ct(n,i),type:s,payload:n,chartType:u,hide:c})};function gs(e){"@babel/helpers - typeof";return gs=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},gs(e)}function Vw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vw(Object(n),!0).forEach(function(r){Sj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sj(e,t,n){return t=TG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TG(e){var t=AG(e,"string");return gs(t)=="symbol"?t:t+""}function AG(e,t){if(gs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(gs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function CG(e,t){return RG(e)||MG(e,t)||NG(e,t)||kG()}function kG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
218
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NG(e,t){if(e){if(typeof e=="string")return Kw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kw(e,t)}}function Kw(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function MG(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}function RG(e){if(Array.isArray(e))return e}var mf=Math.PI/180,IG=function(t){return t*180/Math.PI},Se=function(t,n,r,i){return{x:t+Math.cos(-mf*i)*r,y:n+Math.sin(-mf*i)*r}},Ej=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},LG=function(t,n,r,i,o){var a=t.width,l=t.height,s=t.startAngle,u=t.endAngle,c=kt(t.cx,a,a/2),f=kt(t.cy,l,l/2),d=Ej(a,l,r),p=kt(t.innerRadius,d,0),h=kt(t.outerRadius,d,d*.8),m=Object.keys(n);return m.reduce(function(w,g){var y=n[g],x=y.domain,E=y.reversed,_;if(le(y.range))i==="angleAxis"?_=[s,u]:i==="radiusAxis"&&(_=[p,h]),E&&(_=[_[1],_[0]]);else{_=y.range;var S=_,O=CG(S,2);s=O[0],u=O[1]}var $=yG(y,o),T=$.realScaleType,C=$.scale;C.domain(x).range(_),xG(C);var A=OG(C,nr(nr({},y),{},{realScaleType:T})),N=nr(nr(nr({},y),A),{},{range:_,radius:h,realScaleType:T,scale:C,cx:c,cy:f,innerRadius:p,outerRadius:h,startAngle:s,endAngle:u});return nr(nr({},w),{},Sj({},g,N))},{})},DG=function(t,n){var r=t.x,i=t.y,o=n.x,a=n.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(i-a,2))},FG=function(t,n){var r=t.x,i=t.y,o=n.cx,a=n.cy,l=DG({x:r,y:i},{x:o,y:a});if(l<=0)return{radius:l};var s=(r-o)/l,u=Math.acos(s);return i>a&&(u=2*Math.PI-u),{radius:l,angle:IG(u),angleInRadian:u}},BG=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360),a=Math.min(i,o);return{startAngle:n-a*360,endAngle:r-a*360}},zG=function(t,n){var r=n.startAngle,i=n.endAngle,o=Math.floor(r/360),a=Math.floor(i/360),l=Math.min(o,a);return t+l*360},Gw=function(t,n){var r=t.x,i=t.y,o=FG({x:r,y:i},n),a=o.radius,l=o.angle,s=n.innerRadius,u=n.outerRadius;if(a<s||a>u)return!1;if(a===0)return!0;var c=BG(n),f=c.startAngle,d=c.endAngle,p=l,h;if(f<=d){for(;p>d;)p-=360;for(;p<f;)p+=360;h=p>=f&&p<=d}else{for(;p>f;)p-=360;for(;p<d;)p+=360;h=p>=d&&p<=f}return h?nr(nr({},n),{},{radius:a,angle:zG(p,n)}):null},Oj=function(t){return!b.isValidElement(t)&&!te(t)&&typeof t!="boolean"?t.className:""};function ys(e){"@babel/helpers - typeof";return ys=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},ys(e)}var UG=["offset"];function HG(e){return GG(e)||KG(e)||VG(e)||WG()}function WG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
219
+ 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 jv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jv(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 jv(e)}function jv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qG(e,t){if(e==null)return{};var n=XG(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function XG(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function qw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qw(Object(n),!0).forEach(function(r){YG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YG(e,t,n){return t=QG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QG(e){var t=ZG(e,"string");return ys(t)=="symbol"?t:t+""}function ZG(e,t){if(ys(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ys(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xs(){return xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xs.apply(this,arguments)}var JG=function(t){var n=t.value,r=t.formatter,i=le(t.children)?n:t.children;return te(r)?r(i):i},eq=function(t,n){var r=an(n-t),i=Math.min(Math.abs(n-t),360);return r*i},tq=function(t,n,r){var i=t.position,o=t.viewBox,a=t.offset,l=t.className,s=o,u=s.cx,c=s.cy,f=s.innerRadius,d=s.outerRadius,p=s.startAngle,h=s.endAngle,m=s.clockWise,w=(f+d)/2,g=eq(p,h),y=g>=0?1:-1,x,E;i==="insideStart"?(x=p+y*a,E=m):i==="insideEnd"?(x=h-y*a,E=!m):i==="end"&&(x=h+y*a,E=m),E=g<=0?E:!E;var _=Se(u,c,w,x),S=Se(u,c,w,x+(E?1:-1)*359),O="M".concat(_.x,",").concat(_.y,`
220
+ A`).concat(w,",").concat(w,",0,1,").concat(E?0:1,`,
221
+ `).concat(S.x,",").concat(S.y),$=le(t.id)?Td("recharts-radial-line-"):t.id;return j.createElement("text",xs({},r,{dominantBaseline:"central",className:ue("recharts-radial-bar-label",l)}),j.createElement("defs",null,j.createElement("path",{id:$,d:O})),j.createElement("textPath",{xlinkHref:"#".concat($)},n))},nq=function(t){var n=t.viewBox,r=t.offset,i=t.position,o=n,a=o.cx,l=o.cy,s=o.innerRadius,u=o.outerRadius,c=o.startAngle,f=o.endAngle,d=(c+f)/2;if(i==="outside"){var p=Se(a,l,u+r,d),h=p.x,m=p.y;return{x:h,y:m,textAnchor:h>=a?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:a,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:a,y:l,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:a,y:l,textAnchor:"middle",verticalAnchor:"end"};var w=(s+u)/2,g=Se(a,l,w,d),y=g.x,x=g.y;return{x:y,y:x,textAnchor:"middle",verticalAnchor:"middle"}},rq=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,o=t.position,a=n,l=a.x,s=a.y,u=a.width,c=a.height,f=c>=0?1:-1,d=f*i,p=f>0?"end":"start",h=f>0?"start":"end",m=u>=0?1:-1,w=m*i,g=m>0?"end":"start",y=m>0?"start":"end";if(o==="top"){var x={x:l+u/2,y:s-f*i,textAnchor:"middle",verticalAnchor:p};return Xe(Xe({},x),r?{height:Math.max(s-r.y,0),width:u}:{})}if(o==="bottom"){var E={x:l+u/2,y:s+c+d,textAnchor:"middle",verticalAnchor:h};return Xe(Xe({},E),r?{height:Math.max(r.y+r.height-(s+c),0),width:u}:{})}if(o==="left"){var _={x:l-w,y:s+c/2,textAnchor:g,verticalAnchor:"middle"};return Xe(Xe({},_),r?{width:Math.max(_.x-r.x,0),height:c}:{})}if(o==="right"){var S={x:l+u+w,y:s+c/2,textAnchor:y,verticalAnchor:"middle"};return Xe(Xe({},S),r?{width:Math.max(r.x+r.width-S.x,0),height:c}:{})}var O=r?{width:u,height:c}:{};return o==="insideLeft"?Xe({x:l+w,y:s+c/2,textAnchor:y,verticalAnchor:"middle"},O):o==="insideRight"?Xe({x:l+u-w,y:s+c/2,textAnchor:g,verticalAnchor:"middle"},O):o==="insideTop"?Xe({x:l+u/2,y:s+d,textAnchor:"middle",verticalAnchor:h},O):o==="insideBottom"?Xe({x:l+u/2,y:s+c-d,textAnchor:"middle",verticalAnchor:p},O):o==="insideTopLeft"?Xe({x:l+w,y:s+d,textAnchor:y,verticalAnchor:h},O):o==="insideTopRight"?Xe({x:l+u-w,y:s+d,textAnchor:g,verticalAnchor:h},O):o==="insideBottomLeft"?Xe({x:l+w,y:s+c-d,textAnchor:y,verticalAnchor:p},O):o==="insideBottomRight"?Xe({x:l+u-w,y:s+c-d,textAnchor:g,verticalAnchor:p},O):Aa(o)&&(G(o.x)||ki(o.x))&&(G(o.y)||ki(o.y))?Xe({x:l+kt(o.x,u),y:s+kt(o.y,c),textAnchor:"end",verticalAnchor:"end"},O):Xe({x:l+u/2,y:s+c/2,textAnchor:"middle",verticalAnchor:"middle"},O)},iq=function(t){return"cx"in t&&G(t.cx)};function ut(e){var t=e.offset,n=t===void 0?5:t,r=qG(e,UG),i=Xe({offset:n},r),o=i.viewBox,a=i.position,l=i.value,s=i.children,u=i.content,c=i.className,f=c===void 0?"":c,d=i.textBreakAll;if(!o||le(l)&&le(s)&&!b.isValidElement(u)&&!te(u))return null;if(b.isValidElement(u))return b.cloneElement(u,i);var p;if(te(u)){if(p=b.createElement(u,i),b.isValidElement(p))return p}else p=JG(i);var h=iq(o),m=ne(i,!0);if(h&&(a==="insideStart"||a==="insideEnd"||a==="end"))return tq(i,p,m);var w=h?nq(i):rq(i);return j.createElement(ta,xs({className:ue("recharts-label",f)},m,w,{breakAll:d}),p)}ut.displayName="Label";var $j=function(t){var n=t.cx,r=t.cy,i=t.angle,o=t.startAngle,a=t.endAngle,l=t.r,s=t.radius,u=t.innerRadius,c=t.outerRadius,f=t.x,d=t.y,p=t.top,h=t.left,m=t.width,w=t.height,g=t.clockWise,y=t.labelViewBox;if(y)return y;if(G(m)&&G(w)){if(G(f)&&G(d))return{x:f,y:d,width:m,height:w};if(G(p)&&G(h))return{x:p,y:h,width:m,height:w}}return G(f)&&G(d)?{x:f,y:d,width:0,height:0}:G(n)&&G(r)?{cx:n,cy:r,startAngle:o||i||0,endAngle:a||i||0,innerRadius:u||0,outerRadius:c||s||l||0,clockWise:g}:t.viewBox?t.viewBox:{}},oq=function(t,n){return t?t===!0?j.createElement(ut,{key:"label-implicit",viewBox:n}):Je(t)?j.createElement(ut,{key:"label-implicit",viewBox:n,value:t}):b.isValidElement(t)?t.type===ut?b.cloneElement(t,{key:"label-implicit",viewBox:n}):j.createElement(ut,{key:"label-implicit",content:t,viewBox:n}):te(t)?j.createElement(ut,{key:"label-implicit",content:t,viewBox:n}):Aa(t)?j.createElement(ut,xs({viewBox:n},t,{key:"label-implicit"})):null:null},aq=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var i=t.children,o=$j(t),a=Pn(i,ut).map(function(s,u){return b.cloneElement(s,{viewBox:n||o,key:"label-".concat(u)})});if(!r)return a;var l=oq(t.label,n||o);return[l].concat(HG(a))};ut.parseViewBox=$j;ut.renderCallByParent=aq;function lq(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Pj=lq;const sq=me(Pj);function bs(e){"@babel/helpers - typeof";return bs=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},bs(e)}var uq=["valueAccessor"],cq=["data","dataKey","clockWise","id","textBreakAll"];function fq(e){return mq(e)||hq(e)||pq(e)||dq()}function dq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
222
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pq(e,t){if(e){if(typeof e=="string")return Tv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tv(e,t)}}function hq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mq(e){if(Array.isArray(e))return Tv(e)}function Tv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vf(){return vf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vf.apply(this,arguments)}function Xw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xw(Object(n),!0).forEach(function(r){vq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vq(e,t,n){return t=gq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gq(e){var t=yq(e,"string");return bs(t)=="symbol"?t:t+""}function yq(e,t){if(bs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(bs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qw(e,t){if(e==null)return{};var n=xq(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xq(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var bq=function(t){return Array.isArray(t.value)?sq(t.value):t.value};function Hn(e){var t=e.valueAccessor,n=t===void 0?bq:t,r=Qw(e,uq),i=r.data,o=r.dataKey,a=r.clockWise,l=r.id,s=r.textBreakAll,u=Qw(r,cq);return!i||!i.length?null:j.createElement(Te,{className:"recharts-label-list"},i.map(function(c,f){var d=le(o)?n(c,f):ct(c&&c.payload,o),p=le(l)?{}:{id:"".concat(l,"-").concat(f)};return j.createElement(ut,vf({},ne(c,!0),u,p,{parentViewBox:c.parentViewBox,value:d,textBreakAll:s,viewBox:ut.parseViewBox(le(a)?c:Yw(Yw({},c),{},{clockWise:a})),key:"label-".concat(f),index:f}))}))}Hn.displayName="LabelList";function wq(e,t){return e?e===!0?j.createElement(Hn,{key:"labelList-implicit",data:t}):j.isValidElement(e)||te(e)?j.createElement(Hn,{key:"labelList-implicit",data:t,content:e}):Aa(e)?j.createElement(Hn,vf({data:t},e,{key:"labelList-implicit"})):null:null}function _q(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=Pn(r,Hn).map(function(a,l){return b.cloneElement(a,{data:t,key:"labelList-".concat(l)})});if(!n)return i;var o=wq(e.label,t);return[o].concat(fq(i))}Hn.renderCallByParent=_q;function ws(e){"@babel/helpers - typeof";return ws=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},ws(e)}function Av(){return Av=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Av.apply(this,arguments)}function Zw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Jw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zw(Object(n),!0).forEach(function(r){Sq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sq(e,t,n){return t=Eq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eq(e){var t=Oq(e,"string");return ws(t)=="symbol"?t:t+""}function Oq(e,t){if(ws(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ws(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $q=function(t,n){var r=an(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},Hu=function(t){var n=t.cx,r=t.cy,i=t.radius,o=t.angle,a=t.sign,l=t.isExternal,s=t.cornerRadius,u=t.cornerIsExternal,c=s*(l?1:-1)+i,f=Math.asin(s/c)/mf,d=u?o:o+a*f,p=Se(n,r,c,d),h=Se(n,r,i,d),m=u?o-a*f:o,w=Se(n,r,c*Math.cos(f*mf),m);return{center:p,circleTangency:h,lineTangency:w,theta:f}},jj=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.startAngle,l=t.endAngle,s=$q(a,l),u=a+s,c=Se(n,r,o,a),f=Se(n,r,o,u),d="M ".concat(c.x,",").concat(c.y,`
223
+ A `).concat(o,",").concat(o,`,0,
224
+ `).concat(+(Math.abs(s)>180),",").concat(+(a>u),`,
216
225
  `).concat(f.x,",").concat(f.y,`
217
- `);if(i>0){var p=Se(n,r,i,o),h=Se(n,r,i,u);d+="L ".concat(h.x,",").concat(h.y,`
226
+ `);if(i>0){var p=Se(n,r,i,a),h=Se(n,r,i,u);d+="L ".concat(h.x,",").concat(h.y,`
218
227
  A `).concat(i,",").concat(i,`,0,
219
- `).concat(+(Math.abs(s)>180),",").concat(+(o<=u),`,
220
- `).concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(n,",").concat(r," Z");return d},$q=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,l=t.forceCornerRadius,s=t.cornerIsExternal,u=t.startAngle,c=t.endAngle,f=on(c-u),d=Hu({cx:n,cy:r,radius:a,angle:u,sign:f,cornerRadius:o,cornerIsExternal:s}),p=d.circleTangency,h=d.lineTangency,m=d.theta,b=Hu({cx:n,cy:r,radius:a,angle:c,sign:-f,cornerRadius:o,cornerIsExternal:s}),v=b.circleTangency,y=b.lineTangency,x=b.theta,E=s?Math.abs(u-c):Math.abs(u-c)-m-x;if(E<0)return l?"M ".concat(h.x,",").concat(h.y,`
221
- a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
222
- a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
223
- `):Oj({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:u,endAngle:c});var _="M ".concat(h.x,",").concat(h.y,`
224
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(p.x,",").concat(p.y,`
225
- A`).concat(a,",").concat(a,",0,").concat(+(E>180),",").concat(+(f<0),",").concat(v.x,",").concat(v.y,`
226
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(y.x,",").concat(y.y,`
227
- `);if(i>0){var S=Hu({cx:n,cy:r,radius:i,angle:u,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),O=S.circleTangency,$=S.lineTangency,T=S.theta,C=Hu({cx:n,cy:r,radius:i,angle:c,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),A=C.circleTangency,N=C.lineTangency,I=C.theta,D=s?Math.abs(u-c):Math.abs(u-c)-T-I;if(D<0&&o===0)return"".concat(_,"L").concat(n,",").concat(r,"Z");_+="L".concat(N.x,",").concat(N.y,`
228
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(A.x,",").concat(A.y,`
228
+ `).concat(+(Math.abs(s)>180),",").concat(+(a<=u),`,
229
+ `).concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(n,",").concat(r," Z");return d},Pq=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.cornerRadius,l=t.forceCornerRadius,s=t.cornerIsExternal,u=t.startAngle,c=t.endAngle,f=an(c-u),d=Hu({cx:n,cy:r,radius:o,angle:u,sign:f,cornerRadius:a,cornerIsExternal:s}),p=d.circleTangency,h=d.lineTangency,m=d.theta,w=Hu({cx:n,cy:r,radius:o,angle:c,sign:-f,cornerRadius:a,cornerIsExternal:s}),g=w.circleTangency,y=w.lineTangency,x=w.theta,E=s?Math.abs(u-c):Math.abs(u-c)-m-x;if(E<0)return l?"M ".concat(h.x,",").concat(h.y,`
230
+ a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0
231
+ a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0
232
+ `):jj({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:u,endAngle:c});var _="M ".concat(h.x,",").concat(h.y,`
233
+ A`).concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(p.x,",").concat(p.y,`
234
+ A`).concat(o,",").concat(o,",0,").concat(+(E>180),",").concat(+(f<0),",").concat(g.x,",").concat(g.y,`
235
+ A`).concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(y.x,",").concat(y.y,`
236
+ `);if(i>0){var S=Hu({cx:n,cy:r,radius:i,angle:u,sign:f,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),O=S.circleTangency,$=S.lineTangency,T=S.theta,C=Hu({cx:n,cy:r,radius:i,angle:c,sign:-f,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),A=C.circleTangency,N=C.lineTangency,R=C.theta,D=s?Math.abs(u-c):Math.abs(u-c)-T-R;if(D<0&&a===0)return"".concat(_,"L").concat(n,",").concat(r,"Z");_+="L".concat(N.x,",").concat(N.y,`
237
+ A`).concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(A.x,",").concat(A.y,`
229
238
  A`).concat(i,",").concat(i,",0,").concat(+(D>180),",").concat(+(f>0),",").concat(O.x,",").concat(O.y,`
230
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat($.x,",").concat($.y,"Z")}else _+="L".concat(n,",").concat(r,"Z");return _},Pq={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},$j=function(t){var n=e_(e_({},Pq),t),r=n.cx,i=n.cy,a=n.innerRadius,o=n.outerRadius,l=n.cornerRadius,s=n.forceCornerRadius,u=n.cornerIsExternal,c=n.startAngle,f=n.endAngle,d=n.className;if(o<a||c===f)return null;var p=ue("recharts-sector",d),h=o-a,m=kt(l,h,0,!0),b;return m>0&&Math.abs(c-f)<360?b=$q({cx:r,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(m,h/2),forceCornerRadius:s,cornerIsExternal:u,startAngle:c,endAngle:f}):b=Oj({cx:r,cy:i,innerRadius:a,outerRadius:o,startAngle:c,endAngle:f}),j.createElement("path",Tv({},ne(n,!0),{className:p,d:b,role:"img"}))};function _s(e){"@babel/helpers - typeof";return _s=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},_s(e)}function Av(){return Av=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Av.apply(this,arguments)}function t_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function n_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t_(Object(n),!0).forEach(function(r){jq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jq(e,t,n){return t=Tq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tq(e){var t=Aq(e,"string");return _s(t)=="symbol"?t:t+""}function Aq(e,t){if(_s(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(_s(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var r_={curveBasisClosed:DD,curveBasisOpen:FD,curveBasis:LD,curveBumpX:SD,curveBumpY:ED,curveLinearClosed:BD,curveLinear:kd,curveMonotoneX:zD,curveMonotoneY:UD,curveNatural:HD,curveStep:WD,curveStepAfter:KD,curveStepBefore:VD},Wu=function(t){return t.x===+t.x&&t.y===+t.y},sl=function(t){return t.x},ul=function(t){return t.y},Cq=function(t,n){if(te(t))return t;var r="curve".concat(Ad(t));return(r==="curveMonotone"||r==="curveBump")&&n?r_["".concat(r).concat(n==="vertical"?"Y":"X")]:r_[r]||kd},kq=function(t){var n=t.type,r=n===void 0?"linear":n,i=t.points,a=i===void 0?[]:i,o=t.baseLine,l=t.layout,s=t.connectNulls,u=s===void 0?!1:s,c=Cq(r,l),f=u?a.filter(function(m){return Wu(m)}):a,d;if(Array.isArray(o)){var p=u?o.filter(function(m){return Wu(m)}):o,h=f.map(function(m,b){return n_(n_({},m),{},{base:p[b]})});return l==="vertical"?d=Mu().y(ul).x1(sl).x0(function(m){return m.base.x}):d=Mu().x(sl).y1(ul).y0(function(m){return m.base.y}),d.defined(Wu).curve(c),d(h)}return l==="vertical"&&G(o)?d=Mu().y(ul).x1(sl).x0(o):G(o)?d=Mu().x(sl).y1(ul).y0(o):d=SP().x(sl).y(ul),d.defined(Wu).curve(c),d(f)},Cv=function(t){var n=t.className,r=t.points,i=t.path,a=t.pathRef;if((!r||!r.length)&&!i)return null;var o=r&&r.length?kq(t):i;return j.createElement("path",Av({},ne(t,!1),zc(t),{className:ue("recharts-curve",n),d:o,ref:a}))},Pj={exports:{}},Nq="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Mq=Nq,Iq=Mq;function jj(){}function Tj(){}Tj.resetWarningCache=jj;var Rq=function(){function e(r,i,a,o,l,s){if(s!==Iq){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={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:Tj,resetWarningCache:jj};return n.PropTypes=n,n};Pj.exports=Rq();var Lq=Pj.exports;const fe=me(Lq);var Dq=Object.getOwnPropertyNames,Fq=Object.getOwnPropertySymbols,Bq=Object.prototype.hasOwnProperty;function i_(e,t){return function(r,i,a){return e(r,i,a)&&t(r,i,a)}}function Vu(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);var a=i.cache,o=a.get(n),l=a.get(r);if(o&&l)return o===r&&l===n;a.set(n,r),a.set(r,n);var s=e(n,r,i);return a.delete(n),a.delete(r),s}}function a_(e){return Dq(e).concat(Fq(e))}var Aj=Object.hasOwn||function(e,t){return Bq.call(e,t)};function Uo(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var Cj="_owner",o_=Object.getOwnPropertyDescriptor,l_=Object.keys;function zq(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function Uq(e,t){return Uo(e.getTime(),t.getTime())}function s_(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.entries(),a=0,o,l;(o=i.next())&&!o.done;){for(var s=t.entries(),u=!1,c=0;(l=s.next())&&!l.done;){var f=o.value,d=f[0],p=f[1],h=l.value,m=h[0],b=h[1];!u&&!r[c]&&(u=n.equals(d,m,a,c,e,t,n)&&n.equals(p,b,d,m,e,t,n))&&(r[c]=!0),c++}if(!u)return!1;a++}return!0}function Hq(e,t,n){var r=l_(e),i=r.length;if(l_(t).length!==i)return!1;for(var a;i-- >0;)if(a=r[i],a===Cj&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!Aj(t,a)||!n.equals(e[a],t[a],a,a,e,t,n))return!1;return!0}function cl(e,t,n){var r=a_(e),i=r.length;if(a_(t).length!==i)return!1;for(var a,o,l;i-- >0;)if(a=r[i],a===Cj&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!Aj(t,a)||!n.equals(e[a],t[a],a,a,e,t,n)||(o=o_(e,a),l=o_(t,a),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function Wq(e,t){return Uo(e.valueOf(),t.valueOf())}function Vq(e,t){return e.source===t.source&&e.flags===t.flags}function u_(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.values(),a,o;(a=i.next())&&!a.done;){for(var l=t.values(),s=!1,u=0;(o=l.next())&&!o.done;)!s&&!r[u]&&(s=n.equals(a.value,o.value,a.value,o.value,e,t,n))&&(r[u]=!0),u++;if(!s)return!1}return!0}function Kq(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var Gq="[object Arguments]",qq="[object Boolean]",Yq="[object Date]",Xq="[object Map]",Qq="[object Number]",Zq="[object Object]",Jq="[object RegExp]",eY="[object Set]",tY="[object String]",nY=Array.isArray,c_=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,f_=Object.assign,rY=Object.prototype.toString.call.bind(Object.prototype.toString);function iY(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,i=e.areObjectsEqual,a=e.arePrimitiveWrappersEqual,o=e.areRegExpsEqual,l=e.areSetsEqual,s=e.areTypedArraysEqual;return function(c,f,d){if(c===f)return!0;if(c==null||f==null||typeof c!="object"||typeof f!="object")return c!==c&&f!==f;var p=c.constructor;if(p!==f.constructor)return!1;if(p===Object)return i(c,f,d);if(nY(c))return t(c,f,d);if(c_!=null&&c_(c))return s(c,f,d);if(p===Date)return n(c,f,d);if(p===RegExp)return o(c,f,d);if(p===Map)return r(c,f,d);if(p===Set)return l(c,f,d);var h=rY(c);return h===Yq?n(c,f,d):h===Jq?o(c,f,d):h===Xq?r(c,f,d):h===eY?l(c,f,d):h===Zq?typeof c.then!="function"&&typeof f.then!="function"&&i(c,f,d):h===Gq?i(c,f,d):h===qq||h===Qq||h===tY?a(c,f,d):!1}}function aY(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?cl:zq,areDatesEqual:Uq,areMapsEqual:r?i_(s_,cl):s_,areObjectsEqual:r?cl:Hq,arePrimitiveWrappersEqual:Wq,areRegExpsEqual:Vq,areSetsEqual:r?i_(u_,cl):u_,areTypedArraysEqual:r?cl:Kq};if(n&&(i=f_({},i,n(i))),t){var a=Vu(i.areArraysEqual),o=Vu(i.areMapsEqual),l=Vu(i.areObjectsEqual),s=Vu(i.areSetsEqual);i=f_({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:l,areSetsEqual:s})}return i}function oY(e){return function(t,n,r,i,a,o,l){return e(t,n,l)}}function lY(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,a=e.strict;if(r)return function(s,u){var c=r(),f=c.cache,d=f===void 0?t?new WeakMap:void 0:f,p=c.meta;return n(s,u,{cache:d,equals:i,meta:p,strict:a})};if(t)return function(s,u){return n(s,u,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(s,u){return n(s,u,o)}}var sY=mi();mi({strict:!0});mi({circular:!0});mi({circular:!0,strict:!0});mi({createInternalComparator:function(){return Uo}});mi({strict:!0,createInternalComparator:function(){return Uo}});mi({circular:!0,createInternalComparator:function(){return Uo}});mi({circular:!0,createInternalComparator:function(){return Uo},strict:!0});function mi(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,l=aY(e),s=iY(l),u=r?r(s):oY(s);return lY({circular:n,comparator:s,createState:i,equals:u,strict:o})}function uY(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function d_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(a){n<0&&(n=a),a-n>t?(e(a),n=-1):uY(i)};requestAnimationFrame(r)}function kv(e){"@babel/helpers - typeof";return kv=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},kv(e)}function cY(e){return hY(e)||pY(e)||dY(e)||fY()}function fY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
231
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dY(e,t){if(e){if(typeof e=="string")return p_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p_(e,t)}}function p_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hY(e){if(Array.isArray(e))return e}function mY(){var e={},t=function(){return null},n=!1,r=function i(a){if(!n){if(Array.isArray(a)){if(!a.length)return;var o=a,l=cY(o),s=l[0],u=l.slice(1);if(typeof s=="number"){d_(i.bind(null,u),s);return}i(s),d_(i.bind(null,u));return}kv(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){n=!0},start:function(a){n=!1,r(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function Ss(e){"@babel/helpers - typeof";return Ss=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},Ss(e)}function h_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function m_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h_(Object(n),!0).forEach(function(r){kj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kj(e,t,n){return t=vY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vY(e){var t=gY(e,"string");return Ss(t)==="symbol"?t:String(t)}function gY(e,t){if(Ss(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ss(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yY=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(a){return i.includes(a)})})},xY=function(t){return t},bY=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},kl=function(t,n){return Object.keys(n).reduce(function(r,i){return m_(m_({},r),{},kj({},i,t(i,n[i])))},{})},v_=function(t,n,r){return t.map(function(i){return"".concat(bY(i)," ").concat(n,"ms ").concat(r)}).join(",")};function wY(e,t){return EY(e)||SY(e,t)||Nj(e,t)||_Y()}function _Y(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
232
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function EY(e){if(Array.isArray(e))return e}function OY(e){return jY(e)||PY(e)||Nj(e)||$Y()}function $Y(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
233
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nj(e,t){if(e){if(typeof e=="string")return Nv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nv(e,t)}}function PY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jY(e){if(Array.isArray(e))return Nv(e)}function Nv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var gf=1e-4,Mj=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},Ij=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},g_=function(t,n){return function(r){var i=Mj(t,n);return Ij(i,r)}},TY=function(t,n){return function(r){var i=Mj(t,n),a=[].concat(OY(i.map(function(o,l){return o*l}).slice(1)),[0]);return Ij(a,r)}},y_=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],a=n[1],o=n[2],l=n[3];if(n.length===1)switch(n[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 s=n[0].split("(");if(s[0]==="cubic-bezier"&&s[1].split(")")[0].split(",").length===4){var u=s[1].split(")")[0].split(",").map(function(b){return parseFloat(b)}),c=wY(u,4);i=c[0],a=c[1],o=c[2],l=c[3]}}}var f=g_(i,o),d=g_(a,l),p=TY(i,o),h=function(v){return v>1?1:v<0?0:v},m=function(v){for(var y=v>1?1:v,x=y,E=0;E<8;++E){var _=f(x)-y,S=p(x);if(Math.abs(_-y)<gf||S<gf)return d(x);x=h(x-_/S)}return d(x)};return m.isStepper=!1,m},AY=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,a=i===void 0?8:i,o=t.dt,l=o===void 0?17:o,s=function(c,f,d){var p=-(c-f)*r,h=d*a,m=d+(p-h)*l/1e3,b=d*l/1e3+c;return Math.abs(b-f)<gf&&Math.abs(m)<gf?[f,0]:[b,m]};return s.isStepper=!0,s.dt=l,s},CY=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return y_(i);case"spring":return AY();default:if(i.split("(")[0]==="cubic-bezier")return y_(i)}return typeof i=="function"?i:null};function Es(e){"@babel/helpers - typeof";return Es=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},Es(e)}function x_(e){return MY(e)||NY(e)||Rj(e)||kY()}function kY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
234
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function MY(e){if(Array.isArray(e))return Iv(e)}function b_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b_(Object(n),!0).forEach(function(r){Mv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mv(e,t,n){return t=IY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IY(e){var t=RY(e,"string");return Es(t)==="symbol"?t:String(t)}function RY(e,t){if(Es(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Es(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LY(e,t){return BY(e)||FY(e,t)||Rj(e,t)||DY()}function DY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
235
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rj(e,t){if(e){if(typeof e=="string")return Iv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Iv(e,t)}}function Iv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function FY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function BY(e){if(Array.isArray(e))return e}var yf=function(t,n,r){return t+(n-t)*r},Rv=function(t){var n=t.from,r=t.to;return n!==r},zY=function e(t,n,r){var i=kl(function(a,o){if(Rv(o)){var l=t(o.from,o.to,o.velocity),s=LY(l,2),u=s[0],c=s[1];return lt(lt({},o),{},{from:u,velocity:c})}return o},n);return r<1?kl(function(a,o){return Rv(o)?lt(lt({},o),{},{velocity:yf(o.velocity,i[a].velocity,r),from:yf(o.from,i[a].from,r)}):o},n):e(t,i,r-1)};const UY=function(e,t,n,r,i){var a=yY(e,t),o=a.reduce(function(b,v){return lt(lt({},b),{},Mv({},v,[e[v],t[v]]))},{}),l=a.reduce(function(b,v){return lt(lt({},b),{},Mv({},v,{from:e[v],velocity:0,to:t[v]}))},{}),s=-1,u,c,f=function(){return null},d=function(){return kl(function(v,y){return y.from},l)},p=function(){return!Object.values(l).filter(Rv).length},h=function(v){u||(u=v);var y=v-u,x=y/n.dt;l=zY(n,l,x),i(lt(lt(lt({},e),t),d())),u=v,p()||(s=requestAnimationFrame(f))},m=function(v){c||(c=v);var y=(v-c)/r,x=kl(function(_,S){return yf.apply(void 0,x_(S).concat([n(y)]))},o);if(i(lt(lt(lt({},e),t),x)),y<1)s=requestAnimationFrame(f);else{var E=kl(function(_,S){return yf.apply(void 0,x_(S).concat([n(1)]))},o);i(lt(lt(lt({},e),t),E))}};return f=n.isStepper?h:m,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(s)}}};function oo(e){"@babel/helpers - typeof";return oo=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},oo(e)}var HY=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function WY(e,t){if(e==null)return{};var n=VY(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function VY(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function yh(e){return YY(e)||qY(e)||GY(e)||KY()}function KY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
236
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GY(e,t){if(e){if(typeof e=="string")return Lv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lv(e,t)}}function qY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YY(e){if(Array.isArray(e))return Lv(e)}function Lv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?w_(Object(n),!0).forEach(function(r){yl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yl(e,t,n){return t=Lj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QY(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Lj(r.key),r)}}function ZY(e,t,n){return t&&QY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lj(e){var t=JY(e,"string");return oo(t)==="symbol"?t:String(t)}function JY(e,t){if(oo(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(oo(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eX(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&&Dv(e,t)}function Dv(e,t){return Dv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Dv(e,t)}function tX(e){var t=nX();return function(){var r=xf(e),i;if(t){var a=xf(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Fv(this,i)}}function Fv(e,t){if(t&&(oo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bv(e)}function Bv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nX(){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 xf(e){return xf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xf(e)}var Pr=function(e){eX(n,e);var t=tX(n);function n(r,i){var a;XY(this,n),a=t.call(this,r,i);var o=a.props,l=o.isActive,s=o.attributeName,u=o.from,c=o.to,f=o.steps,d=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Bv(a)),a.changeStyle=a.changeStyle.bind(Bv(a)),!l||p<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:c}),Fv(a);if(f&&f.length)a.state={style:f[0].style};else if(u){if(typeof d=="function")return a.state={style:u},Fv(a);a.state={style:s?yl({},s,u):u}}else a.state={style:{}};return a}return ZY(n,[{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,s=a.attributeName,u=a.shouldReAnimate,c=a.to,f=a.from,d=this.state.style;if(l){if(!o){var p={style:s?yl({},s,c):c};this.state&&d&&(s&&d[s]!==c||!s&&d!==c)&&this.setState(p);return}if(!(sY(i.to,c)&&i.canBegin&&i.isActive)){var h=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var m=h||u?f:i.to;if(this.state&&d){var b={style:s?yl({},s,m):m};(s&&d[s]!==m||!s&&d!==m)&&this.setState(b)}this.runAnimation(gn(gn({},this.props),{},{from:m,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,s=i.duration,u=i.easing,c=i.begin,f=i.onAnimationEnd,d=i.onAnimationStart,p=UY(o,l,CY(u),s,this.changeStyle),h=function(){a.stopJSAnimation=p()};this.manager.start([d,c,h,s,f])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,l=i.begin,s=i.onAnimationStart,u=o[0],c=u.style,f=u.duration,d=f===void 0?0:f,p=function(m,b,v){if(v===0)return m;var y=b.duration,x=b.easing,E=x===void 0?"ease":x,_=b.style,S=b.properties,O=b.onAnimationEnd,$=v>0?o[v-1]:b,T=S||Object.keys(_);if(typeof E=="function"||E==="spring")return[].concat(yh(m),[a.runJSAnimation.bind(a,{from:$.style,to:_,duration:y,easing:E}),y]);var C=v_(T,y,E),A=gn(gn(gn({},$.style),_),{},{transition:C});return[].concat(yh(m),[A,y,O]).filter(xY)};return this.manager.start([s].concat(yh(o.reduce(p,[c,Math.max(d,l)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=mY());var a=i.begin,o=i.duration,l=i.attributeName,s=i.to,u=i.easing,c=i.onAnimationStart,f=i.onAnimationEnd,d=i.steps,p=i.children,h=this.manager;if(this.unSubscribe=h.subscribe(this.handleStyleChange),typeof u=="function"||typeof p=="function"||u==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var m=l?yl({},l,s):s,b=v_(Object.keys(m),o,u);h.start([c,a,gn(gn({},m),{},{transition:b}),o,f])}},{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 s=WY(i,HY),u=w.Children.count(a),c=this.state.style;if(typeof a=="function")return a(c);if(!l||u===0||o<=0)return a;var f=function(p){var h=p.props,m=h.style,b=m===void 0?{}:m,v=h.className,y=w.cloneElement(p,gn(gn({},s),{},{style:gn(gn({},b),c),className:v}));return y};return u===1?f(w.Children.only(a)):j.createElement("div",null,w.Children.map(a,function(d){return f(d)}))}}]),n}(w.PureComponent);Pr.displayName="Animate";Pr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Pr.propTypes={from:fe.oneOfType([fe.object,fe.string]),to:fe.oneOfType([fe.object,fe.string]),attributeName:fe.string,duration:fe.number,begin:fe.number,easing:fe.oneOfType([fe.string,fe.func]),steps:fe.arrayOf(fe.shape({duration:fe.number.isRequired,style:fe.object.isRequired,easing:fe.oneOfType([fe.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),fe.func]),properties:fe.arrayOf("string"),onAnimationEnd:fe.func})),children:fe.oneOfType([fe.node,fe.func]),isActive:fe.bool,canBegin:fe.bool,onAnimationEnd:fe.func,shouldReAnimate:fe.bool,onAnimationStart:fe.func,onAnimationReStart:fe.func};function Os(e){"@babel/helpers - typeof";return Os=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},Os(e)}function bf(){return bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bf.apply(this,arguments)}function rX(e,t){return lX(e)||oX(e,t)||aX(e,t)||iX()}function iX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
237
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aX(e,t){if(e){if(typeof e=="string")return __(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return __(e,t)}}function __(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function lX(e){if(Array.isArray(e))return e}function S_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function E_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?S_(Object(n),!0).forEach(function(r){sX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sX(e,t,n){return t=uX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uX(e){var t=cX(e,"string");return Os(t)=="symbol"?t:t+""}function cX(e,t){if(Os(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Os(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var O_=function(t,n,r,i,a){var o=Math.min(Math.abs(r)/2,Math.abs(i)/2),l=i>=0?1:-1,s=r>=0?1:-1,u=i>=0&&r>=0||i<0&&r<0?1:0,c;if(o>0&&a instanceof Array){for(var f=[0,0,0,0],d=0,p=4;d<p;d++)f[d]=a[d]>o?o:a[d];c="M".concat(t,",").concat(n+l*f[0]),f[0]>0&&(c+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+s*f[0],",").concat(n)),c+="L ".concat(t+r-s*f[1],",").concat(n),f[1]>0&&(c+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`,
239
+ A`).concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat($.x,",").concat($.y,"Z")}else _+="L".concat(n,",").concat(r,"Z");return _},jq={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Tj=function(t){var n=Jw(Jw({},jq),t),r=n.cx,i=n.cy,o=n.innerRadius,a=n.outerRadius,l=n.cornerRadius,s=n.forceCornerRadius,u=n.cornerIsExternal,c=n.startAngle,f=n.endAngle,d=n.className;if(a<o||c===f)return null;var p=ue("recharts-sector",d),h=a-o,m=kt(l,h,0,!0),w;return m>0&&Math.abs(c-f)<360?w=Pq({cx:r,cy:i,innerRadius:o,outerRadius:a,cornerRadius:Math.min(m,h/2),forceCornerRadius:s,cornerIsExternal:u,startAngle:c,endAngle:f}):w=jj({cx:r,cy:i,innerRadius:o,outerRadius:a,startAngle:c,endAngle:f}),j.createElement("path",Av({},ne(n,!0),{className:p,d:w,role:"img"}))};function _s(e){"@babel/helpers - typeof";return _s=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},_s(e)}function Cv(){return Cv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cv.apply(this,arguments)}function e_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function t_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e_(Object(n),!0).forEach(function(r){Tq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tq(e,t,n){return t=Aq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Aq(e){var t=Cq(e,"string");return _s(t)=="symbol"?t:t+""}function Cq(e,t){if(_s(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(_s(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var n_={curveBasisClosed:FD,curveBasisOpen:BD,curveBasis:DD,curveBumpX:ED,curveBumpY:OD,curveLinearClosed:zD,curveLinear:kd,curveMonotoneX:UD,curveMonotoneY:HD,curveNatural:WD,curveStep:VD,curveStepAfter:GD,curveStepBefore:KD},Wu=function(t){return t.x===+t.x&&t.y===+t.y},sl=function(t){return t.x},ul=function(t){return t.y},kq=function(t,n){if(te(t))return t;var r="curve".concat(Ad(t));return(r==="curveMonotone"||r==="curveBump")&&n?n_["".concat(r).concat(n==="vertical"?"Y":"X")]:n_[r]||kd},Nq=function(t){var n=t.type,r=n===void 0?"linear":n,i=t.points,o=i===void 0?[]:i,a=t.baseLine,l=t.layout,s=t.connectNulls,u=s===void 0?!1:s,c=kq(r,l),f=u?o.filter(function(m){return Wu(m)}):o,d;if(Array.isArray(a)){var p=u?a.filter(function(m){return Wu(m)}):a,h=f.map(function(m,w){return t_(t_({},m),{},{base:p[w]})});return l==="vertical"?d=Mu().y(ul).x1(sl).x0(function(m){return m.base.x}):d=Mu().x(sl).y1(ul).y0(function(m){return m.base.y}),d.defined(Wu).curve(c),d(h)}return l==="vertical"&&G(a)?d=Mu().y(ul).x1(sl).x0(a):G(a)?d=Mu().x(sl).y1(ul).y0(a):d=$P().x(sl).y(ul),d.defined(Wu).curve(c),d(f)},kv=function(t){var n=t.className,r=t.points,i=t.path,o=t.pathRef;if((!r||!r.length)&&!i)return null;var a=r&&r.length?Nq(t):i;return j.createElement("path",Cv({},ne(t,!1),zc(t),{className:ue("recharts-curve",n),d:a,ref:o}))},Aj={exports:{}},Mq="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Rq=Mq,Iq=Rq;function Cj(){}function kj(){}kj.resetWarningCache=Cj;var Lq=function(){function e(r,i,o,a,l,s){if(s!==Iq){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={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:kj,resetWarningCache:Cj};return n.PropTypes=n,n};Aj.exports=Lq();var Dq=Aj.exports;const fe=me(Dq);var Fq=Object.getOwnPropertyNames,Bq=Object.getOwnPropertySymbols,zq=Object.prototype.hasOwnProperty;function r_(e,t){return function(r,i,o){return e(r,i,o)&&t(r,i,o)}}function Vu(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);var o=i.cache,a=o.get(n),l=o.get(r);if(a&&l)return a===r&&l===n;o.set(n,r),o.set(r,n);var s=e(n,r,i);return o.delete(n),o.delete(r),s}}function i_(e){return Fq(e).concat(Bq(e))}var Nj=Object.hasOwn||function(e,t){return zq.call(e,t)};function Ua(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var Mj="_owner",o_=Object.getOwnPropertyDescriptor,a_=Object.keys;function Uq(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function Hq(e,t){return Ua(e.getTime(),t.getTime())}function l_(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.entries(),o=0,a,l;(a=i.next())&&!a.done;){for(var s=t.entries(),u=!1,c=0;(l=s.next())&&!l.done;){var f=a.value,d=f[0],p=f[1],h=l.value,m=h[0],w=h[1];!u&&!r[c]&&(u=n.equals(d,m,o,c,e,t,n)&&n.equals(p,w,d,m,e,t,n))&&(r[c]=!0),c++}if(!u)return!1;o++}return!0}function Wq(e,t,n){var r=a_(e),i=r.length;if(a_(t).length!==i)return!1;for(var o;i-- >0;)if(o=r[i],o===Mj&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!Nj(t,o)||!n.equals(e[o],t[o],o,o,e,t,n))return!1;return!0}function cl(e,t,n){var r=i_(e),i=r.length;if(i_(t).length!==i)return!1;for(var o,a,l;i-- >0;)if(o=r[i],o===Mj&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!Nj(t,o)||!n.equals(e[o],t[o],o,o,e,t,n)||(a=o_(e,o),l=o_(t,o),(a||l)&&(!a||!l||a.configurable!==l.configurable||a.enumerable!==l.enumerable||a.writable!==l.writable)))return!1;return!0}function Vq(e,t){return Ua(e.valueOf(),t.valueOf())}function Kq(e,t){return e.source===t.source&&e.flags===t.flags}function s_(e,t,n){if(e.size!==t.size)return!1;for(var r={},i=e.values(),o,a;(o=i.next())&&!o.done;){for(var l=t.values(),s=!1,u=0;(a=l.next())&&!a.done;)!s&&!r[u]&&(s=n.equals(o.value,a.value,o.value,a.value,e,t,n))&&(r[u]=!0),u++;if(!s)return!1}return!0}function Gq(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}var qq="[object Arguments]",Xq="[object Boolean]",Yq="[object Date]",Qq="[object Map]",Zq="[object Number]",Jq="[object Object]",eX="[object RegExp]",tX="[object Set]",nX="[object String]",rX=Array.isArray,u_=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,c_=Object.assign,iX=Object.prototype.toString.call.bind(Object.prototype.toString);function oX(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areMapsEqual,i=e.areObjectsEqual,o=e.arePrimitiveWrappersEqual,a=e.areRegExpsEqual,l=e.areSetsEqual,s=e.areTypedArraysEqual;return function(c,f,d){if(c===f)return!0;if(c==null||f==null||typeof c!="object"||typeof f!="object")return c!==c&&f!==f;var p=c.constructor;if(p!==f.constructor)return!1;if(p===Object)return i(c,f,d);if(rX(c))return t(c,f,d);if(u_!=null&&u_(c))return s(c,f,d);if(p===Date)return n(c,f,d);if(p===RegExp)return a(c,f,d);if(p===Map)return r(c,f,d);if(p===Set)return l(c,f,d);var h=iX(c);return h===Yq?n(c,f,d):h===eX?a(c,f,d):h===Qq?r(c,f,d):h===tX?l(c,f,d):h===Jq?typeof c.then!="function"&&typeof f.then!="function"&&i(c,f,d):h===qq?i(c,f,d):h===Xq||h===Zq||h===nX?o(c,f,d):!1}}function aX(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?cl:Uq,areDatesEqual:Hq,areMapsEqual:r?r_(l_,cl):l_,areObjectsEqual:r?cl:Wq,arePrimitiveWrappersEqual:Vq,areRegExpsEqual:Kq,areSetsEqual:r?r_(s_,cl):s_,areTypedArraysEqual:r?cl:Gq};if(n&&(i=c_({},i,n(i))),t){var o=Vu(i.areArraysEqual),a=Vu(i.areMapsEqual),l=Vu(i.areObjectsEqual),s=Vu(i.areSetsEqual);i=c_({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:l,areSetsEqual:s})}return i}function lX(e){return function(t,n,r,i,o,a,l){return e(t,n,l)}}function sX(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,o=e.strict;if(r)return function(s,u){var c=r(),f=c.cache,d=f===void 0?t?new WeakMap:void 0:f,p=c.meta;return n(s,u,{cache:d,equals:i,meta:p,strict:o})};if(t)return function(s,u){return n(s,u,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(s,u){return n(s,u,a)}}var uX=mi();mi({strict:!0});mi({circular:!0});mi({circular:!0,strict:!0});mi({createInternalComparator:function(){return Ua}});mi({strict:!0,createInternalComparator:function(){return Ua}});mi({circular:!0,createInternalComparator:function(){return Ua}});mi({circular:!0,createInternalComparator:function(){return Ua},strict:!0});function mi(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,i=e.createState,o=e.strict,a=o===void 0?!1:o,l=aX(e),s=oX(l),u=r?r(s):lX(s);return sX({circular:n,comparator:s,createState:i,equals:u,strict:a})}function cX(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function f_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(o){n<0&&(n=o),o-n>t?(e(o),n=-1):cX(i)};requestAnimationFrame(r)}function Nv(e){"@babel/helpers - typeof";return Nv=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},Nv(e)}function fX(e){return mX(e)||hX(e)||pX(e)||dX()}function dX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
240
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pX(e,t){if(e){if(typeof e=="string")return d_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d_(e,t)}}function d_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mX(e){if(Array.isArray(e))return e}function vX(){var e={},t=function(){return null},n=!1,r=function i(o){if(!n){if(Array.isArray(o)){if(!o.length)return;var a=o,l=fX(a),s=l[0],u=l.slice(1);if(typeof s=="number"){f_(i.bind(null,u),s);return}i(s),f_(i.bind(null,u));return}Nv(o)==="object"&&(e=o,t(e)),typeof o=="function"&&o()}};return{stop:function(){n=!0},start:function(o){n=!1,r(o)},subscribe:function(o){return t=o,function(){t=function(){return null}}}}}function Ss(e){"@babel/helpers - typeof";return Ss=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},Ss(e)}function p_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function h_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?p_(Object(n),!0).forEach(function(r){Rj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rj(e,t,n){return t=gX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gX(e){var t=yX(e,"string");return Ss(t)==="symbol"?t:String(t)}function yX(e,t){if(Ss(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ss(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xX=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(o){return i.includes(o)})})},bX=function(t){return t},wX=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},kl=function(t,n){return Object.keys(n).reduce(function(r,i){return h_(h_({},r),{},Rj({},i,t(i,n[i])))},{})},m_=function(t,n,r){return t.map(function(i){return"".concat(wX(i)," ").concat(n,"ms ").concat(r)}).join(",")};function _X(e,t){return OX(e)||EX(e,t)||Ij(e,t)||SX()}function SX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
241
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}function OX(e){if(Array.isArray(e))return e}function $X(e){return TX(e)||jX(e)||Ij(e)||PX()}function PX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
242
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ij(e,t){if(e){if(typeof e=="string")return Mv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mv(e,t)}}function jX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function TX(e){if(Array.isArray(e))return Mv(e)}function Mv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var gf=1e-4,Lj=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},Dj=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},v_=function(t,n){return function(r){var i=Lj(t,n);return Dj(i,r)}},AX=function(t,n){return function(r){var i=Lj(t,n),o=[].concat($X(i.map(function(a,l){return a*l}).slice(1)),[0]);return Dj(o,r)}},g_=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],o=n[1],a=n[2],l=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,o=0,a=1,l=1;break;case"ease":i=.25,o=.1,a=.25,l=1;break;case"ease-in":i=.42,o=0,a=1,l=1;break;case"ease-out":i=.42,o=0,a=.58,l=1;break;case"ease-in-out":i=0,o=0,a=.58,l=1;break;default:{var s=n[0].split("(");if(s[0]==="cubic-bezier"&&s[1].split(")")[0].split(",").length===4){var u=s[1].split(")")[0].split(",").map(function(w){return parseFloat(w)}),c=_X(u,4);i=c[0],o=c[1],a=c[2],l=c[3]}}}var f=v_(i,a),d=v_(o,l),p=AX(i,a),h=function(g){return g>1?1:g<0?0:g},m=function(g){for(var y=g>1?1:g,x=y,E=0;E<8;++E){var _=f(x)-y,S=p(x);if(Math.abs(_-y)<gf||S<gf)return d(x);x=h(x-_/S)}return d(x)};return m.isStepper=!1,m},CX=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,o=i===void 0?8:i,a=t.dt,l=a===void 0?17:a,s=function(c,f,d){var p=-(c-f)*r,h=d*o,m=d+(p-h)*l/1e3,w=d*l/1e3+c;return Math.abs(w-f)<gf&&Math.abs(m)<gf?[f,0]:[w,m]};return s.isStepper=!0,s.dt=l,s},kX=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return g_(i);case"spring":return CX();default:if(i.split("(")[0]==="cubic-bezier")return g_(i)}return typeof i=="function"?i:null};function Es(e){"@babel/helpers - typeof";return Es=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},Es(e)}function y_(e){return RX(e)||MX(e)||Fj(e)||NX()}function NX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
243
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function RX(e){if(Array.isArray(e))return Iv(e)}function x_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?x_(Object(n),!0).forEach(function(r){Rv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rv(e,t,n){return t=IX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IX(e){var t=LX(e,"string");return Es(t)==="symbol"?t:String(t)}function LX(e,t){if(Es(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Es(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function DX(e,t){return zX(e)||BX(e,t)||Fj(e,t)||FX()}function FX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
244
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fj(e,t){if(e){if(typeof e=="string")return Iv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Iv(e,t)}}function Iv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function BX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}function zX(e){if(Array.isArray(e))return e}var yf=function(t,n,r){return t+(n-t)*r},Lv=function(t){var n=t.from,r=t.to;return n!==r},UX=function e(t,n,r){var i=kl(function(o,a){if(Lv(a)){var l=t(a.from,a.to,a.velocity),s=DX(l,2),u=s[0],c=s[1];return lt(lt({},a),{},{from:u,velocity:c})}return a},n);return r<1?kl(function(o,a){return Lv(a)?lt(lt({},a),{},{velocity:yf(a.velocity,i[o].velocity,r),from:yf(a.from,i[o].from,r)}):a},n):e(t,i,r-1)};const HX=function(e,t,n,r,i){var o=xX(e,t),a=o.reduce(function(w,g){return lt(lt({},w),{},Rv({},g,[e[g],t[g]]))},{}),l=o.reduce(function(w,g){return lt(lt({},w),{},Rv({},g,{from:e[g],velocity:0,to:t[g]}))},{}),s=-1,u,c,f=function(){return null},d=function(){return kl(function(g,y){return y.from},l)},p=function(){return!Object.values(l).filter(Lv).length},h=function(g){u||(u=g);var y=g-u,x=y/n.dt;l=UX(n,l,x),i(lt(lt(lt({},e),t),d())),u=g,p()||(s=requestAnimationFrame(f))},m=function(g){c||(c=g);var y=(g-c)/r,x=kl(function(_,S){return yf.apply(void 0,y_(S).concat([n(y)]))},a);if(i(lt(lt(lt({},e),t),x)),y<1)s=requestAnimationFrame(f);else{var E=kl(function(_,S){return yf.apply(void 0,y_(S).concat([n(1)]))},a);i(lt(lt(lt({},e),t),E))}};return f=n.isStepper?h:m,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(s)}}};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)}var WX=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function VX(e,t){if(e==null)return{};var n=KX(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function KX(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function xh(e){return YX(e)||XX(e)||qX(e)||GX()}function GX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
245
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qX(e,t){if(e){if(typeof e=="string")return Dv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dv(e,t)}}function XX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YX(e){if(Array.isArray(e))return Dv(e)}function Dv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b_(Object(n),!0).forEach(function(r){yl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yl(e,t,n){return t=Bj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZX(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bj(r.key),r)}}function JX(e,t,n){return t&&ZX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bj(e){var t=eY(e,"string");return la(t)==="symbol"?t:String(t)}function eY(e,t){if(la(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(la(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tY(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&&Fv(e,t)}function Fv(e,t){return Fv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Fv(e,t)}function nY(e){var t=rY();return function(){var r=xf(e),i;if(t){var o=xf(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Bv(this,i)}}function Bv(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 zv(e)}function zv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rY(){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 xf(e){return xf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xf(e)}var Pr=function(e){tY(n,e);var t=nY(n);function n(r,i){var o;QX(this,n),o=t.call(this,r,i);var a=o.props,l=a.isActive,s=a.attributeName,u=a.from,c=a.to,f=a.steps,d=a.children,p=a.duration;if(o.handleStyleChange=o.handleStyleChange.bind(zv(o)),o.changeStyle=o.changeStyle.bind(zv(o)),!l||p<=0)return o.state={style:{}},typeof d=="function"&&(o.state={style:c}),Bv(o);if(f&&f.length)o.state={style:f[0].style};else if(u){if(typeof d=="function")return o.state={style:u},Bv(o);o.state={style:s?yl({},s,u):u}}else o.state={style:{}};return o}return JX(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isActive,a=i.canBegin;this.mounted=!0,!(!o||!a)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isActive,l=o.canBegin,s=o.attributeName,u=o.shouldReAnimate,c=o.to,f=o.from,d=this.state.style;if(l){if(!a){var p={style:s?yl({},s,c):c};this.state&&d&&(s&&d[s]!==c||!s&&d!==c)&&this.setState(p);return}if(!(uX(i.to,c)&&i.canBegin&&i.isActive)){var h=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var m=h||u?f:i.to;if(this.state&&d){var w={style:s?yl({},s,m):m};(s&&d[s]!==m||!s&&d!==m)&&this.setState(w)}this.runAnimation(xn(xn({},this.props),{},{from:m,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 o=this,a=i.from,l=i.to,s=i.duration,u=i.easing,c=i.begin,f=i.onAnimationEnd,d=i.onAnimationStart,p=HX(a,l,kX(u),s,this.changeStyle),h=function(){o.stopJSAnimation=p()};this.manager.start([d,c,h,s,f])}},{key:"runStepAnimation",value:function(i){var o=this,a=i.steps,l=i.begin,s=i.onAnimationStart,u=a[0],c=u.style,f=u.duration,d=f===void 0?0:f,p=function(m,w,g){if(g===0)return m;var y=w.duration,x=w.easing,E=x===void 0?"ease":x,_=w.style,S=w.properties,O=w.onAnimationEnd,$=g>0?a[g-1]:w,T=S||Object.keys(_);if(typeof E=="function"||E==="spring")return[].concat(xh(m),[o.runJSAnimation.bind(o,{from:$.style,to:_,duration:y,easing:E}),y]);var C=m_(T,y,E),A=xn(xn(xn({},$.style),_),{},{transition:C});return[].concat(xh(m),[A,y,O]).filter(bX)};return this.manager.start([s].concat(xh(a.reduce(p,[c,Math.max(d,l)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=vX());var o=i.begin,a=i.duration,l=i.attributeName,s=i.to,u=i.easing,c=i.onAnimationStart,f=i.onAnimationEnd,d=i.steps,p=i.children,h=this.manager;if(this.unSubscribe=h.subscribe(this.handleStyleChange),typeof u=="function"||typeof p=="function"||u==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var m=l?yl({},l,s):s,w=m_(Object.keys(m),a,u);h.start([c,o,xn(xn({},m),{},{transition:w}),a,f])}},{key:"render",value:function(){var i=this.props,o=i.children;i.begin;var a=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 s=VX(i,WX),u=b.Children.count(o),c=this.state.style;if(typeof o=="function")return o(c);if(!l||u===0||a<=0)return o;var f=function(p){var h=p.props,m=h.style,w=m===void 0?{}:m,g=h.className,y=b.cloneElement(p,xn(xn({},s),{},{style:xn(xn({},w),c),className:g}));return y};return u===1?f(b.Children.only(o)):j.createElement("div",null,b.Children.map(o,function(d){return f(d)}))}}]),n}(b.PureComponent);Pr.displayName="Animate";Pr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Pr.propTypes={from:fe.oneOfType([fe.object,fe.string]),to:fe.oneOfType([fe.object,fe.string]),attributeName:fe.string,duration:fe.number,begin:fe.number,easing:fe.oneOfType([fe.string,fe.func]),steps:fe.arrayOf(fe.shape({duration:fe.number.isRequired,style:fe.object.isRequired,easing:fe.oneOfType([fe.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),fe.func]),properties:fe.arrayOf("string"),onAnimationEnd:fe.func})),children:fe.oneOfType([fe.node,fe.func]),isActive:fe.bool,canBegin:fe.bool,onAnimationEnd:fe.func,shouldReAnimate:fe.bool,onAnimationStart:fe.func,onAnimationReStart:fe.func};function Os(e){"@babel/helpers - typeof";return Os=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},Os(e)}function bf(){return bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bf.apply(this,arguments)}function iY(e,t){return sY(e)||lY(e,t)||aY(e,t)||oY()}function oY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
246
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aY(e,t){if(e){if(typeof e=="string")return w_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w_(e,t)}}function w_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}function sY(e){if(Array.isArray(e))return e}function __(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function S_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?__(Object(n),!0).forEach(function(r){uY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):__(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uY(e,t,n){return t=cY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cY(e){var t=fY(e,"string");return Os(t)=="symbol"?t:t+""}function fY(e,t){if(Os(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Os(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var E_=function(t,n,r,i,o){var a=Math.min(Math.abs(r)/2,Math.abs(i)/2),l=i>=0?1:-1,s=r>=0?1:-1,u=i>=0&&r>=0||i<0&&r<0?1:0,c;if(a>0&&o instanceof Array){for(var f=[0,0,0,0],d=0,p=4;d<p;d++)f[d]=o[d]>a?a:o[d];c="M".concat(t,",").concat(n+l*f[0]),f[0]>0&&(c+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+s*f[0],",").concat(n)),c+="L ".concat(t+r-s*f[1],",").concat(n),f[1]>0&&(c+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`,
238
247
  `).concat(t+r,",").concat(n+l*f[1])),c+="L ".concat(t+r,",").concat(n+i-l*f[2]),f[2]>0&&(c+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(u,`,
239
248
  `).concat(t+r-s*f[2],",").concat(n+i)),c+="L ".concat(t+s*f[3],",").concat(n+i),f[3]>0&&(c+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(u,`,
240
- `).concat(t,",").concat(n+i-l*f[3])),c+="Z"}else if(o>0&&a===+a&&a>0){var h=Math.min(o,a);c="M ".concat(t,",").concat(n+l*h,`
249
+ `).concat(t,",").concat(n+i-l*f[3])),c+="Z"}else if(a>0&&o===+o&&o>0){var h=Math.min(a,o);c="M ".concat(t,",").concat(n+l*h,`
241
250
  A `).concat(h,",").concat(h,",0,0,").concat(u,",").concat(t+s*h,",").concat(n,`
242
251
  L `).concat(t+r-s*h,",").concat(n,`
243
252
  A `).concat(h,",").concat(h,",0,0,").concat(u,",").concat(t+r,",").concat(n+l*h,`
244
253
  L `).concat(t+r,",").concat(n+i-l*h,`
245
254
  A `).concat(h,",").concat(h,",0,0,").concat(u,",").concat(t+r-s*h,",").concat(n+i,`
246
255
  L `).concat(t+s*h,",").concat(n+i,`
247
- A `).concat(h,",").concat(h,",0,0,").concat(u,",").concat(t,",").concat(n+i-l*h," Z")}else c="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return c},fX=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,a=n.x,o=n.y,l=n.width,s=n.height;if(Math.abs(l)>0&&Math.abs(s)>0){var u=Math.min(a,a+l),c=Math.max(a,a+l),f=Math.min(o,o+s),d=Math.max(o,o+s);return r>=u&&r<=c&&i>=f&&i<=d}return!1},dX={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},P0=function(t){var n=E_(E_({},dX),t),r=w.useRef(),i=w.useState(-1),a=rX(i,2),o=a[0],l=a[1];w.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var E=r.current.getTotalLength();E&&l(E)}catch{}},[]);var s=n.x,u=n.y,c=n.width,f=n.height,d=n.radius,p=n.className,h=n.animationEasing,m=n.animationDuration,b=n.animationBegin,v=n.isAnimationActive,y=n.isUpdateAnimationActive;if(s!==+s||u!==+u||c!==+c||f!==+f||c===0||f===0)return null;var x=ue("recharts-rectangle",p);return y?j.createElement(Pr,{canBegin:o>0,from:{width:c,height:f,x:s,y:u},to:{width:c,height:f,x:s,y:u},duration:m,animationEasing:h,isActive:y},function(E){var _=E.width,S=E.height,O=E.x,$=E.y;return j.createElement(Pr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:m,isActive:v,easing:h},j.createElement("path",bf({},ne(n,!0),{className:x,d:O_(O,$,_,S,d),ref:r})))}):j.createElement("path",bf({},ne(n,!0),{className:x,d:O_(s,u,c,f,d)}))},pX=["points","className","baseLinePoints","connectNulls"];function Ta(){return Ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ta.apply(this,arguments)}function hX(e,t){if(e==null)return{};var n=mX(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mX(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function $_(e){return xX(e)||yX(e)||gX(e)||vX()}function vX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
248
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gX(e,t){if(e){if(typeof e=="string")return zv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zv(e,t)}}function yX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xX(e){if(Array.isArray(e))return zv(e)}function zv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var P_=function(t){return t&&t.x===+t.x&&t.y===+t.y},bX=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){P_(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),P_(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},Nl=function(t,n){var r=bX(t);n&&(r=[r.reduce(function(a,o){return[].concat($_(a),$_(o))},[])]);var i=r.map(function(a){return a.reduce(function(o,l,s){return"".concat(o).concat(s===0?"M":"L").concat(l.x,",").concat(l.y)},"")}).join("");return r.length===1?"".concat(i,"Z"):i},wX=function(t,n,r){var i=Nl(t,r);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Nl(n.reverse(),r).slice(1))},_X=function(t){var n=t.points,r=t.className,i=t.baseLinePoints,a=t.connectNulls,o=hX(t,pX);if(!n||!n.length)return null;var l=ue("recharts-polygon",r);if(i&&i.length){var s=o.stroke&&o.stroke!=="none",u=wX(n,i,a);return j.createElement("g",{className:l},j.createElement("path",Ta({},ne(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),s?j.createElement("path",Ta({},ne(o,!0),{fill:"none",d:Nl(n,a)})):null,s?j.createElement("path",Ta({},ne(o,!0),{fill:"none",d:Nl(i,a)})):null)}var c=Nl(n,a);return j.createElement("path",Ta({},ne(o,!0),{fill:c.slice(-1)==="Z"?o.fill:"none",className:l,d:c}))};function Uv(){return Uv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uv.apply(this,arguments)}var j0=function(t){var n=t.cx,r=t.cy,i=t.r,a=t.className,o=ue("recharts-dot",a);return n===+n&&r===+r&&i===+i?j.createElement("circle",Uv({},ne(t,!1),zc(t),{className:o,cx:n,cy:r,r:i})):null};function $s(e){"@babel/helpers - typeof";return $s=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},$s(e)}var SX=["x","y","top","left","width","height","className"];function Hv(){return Hv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hv.apply(this,arguments)}function j_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function EX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?j_(Object(n),!0).forEach(function(r){OX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OX(e,t,n){return t=$X(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $X(e){var t=PX(e,"string");return $s(t)=="symbol"?t:t+""}function PX(e,t){if($s(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if($s(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jX(e,t){if(e==null)return{};var n=TX(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function TX(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var AX=function(t,n,r,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(n,"h").concat(r)},CX=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,o=t.top,l=o===void 0?0:o,s=t.left,u=s===void 0?0:s,c=t.width,f=c===void 0?0:c,d=t.height,p=d===void 0?0:d,h=t.className,m=jX(t,SX),b=EX({x:r,y:a,top:l,left:u,width:f,height:p},m);return!G(r)||!G(a)||!G(f)||!G(p)||!G(l)||!G(u)?null:j.createElement("path",Hv({},ne(b,!0),{className:ue("recharts-cross",h),d:AX(r,a,f,p,l,u)}))},kX=Wd,NX=Z2,MX=di;function IX(e,t){return e&&e.length?kX(e,MX(t),NX):void 0}var RX=IX;const LX=me(RX);var DX=Wd,FX=di,BX=J2;function zX(e,t){return e&&e.length?DX(e,FX(t),BX):void 0}var UX=zX;const HX=me(UX);var WX=["cx","cy","angle","ticks","axisLine"],VX=["ticks","tick","angle","tickFormatter","stroke"];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)}function Ml(){return Ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ml.apply(this,arguments)}function T_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?T_(Object(n),!0).forEach(function(r){Xd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function A_(e,t){if(e==null)return{};var n=KX(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function KX(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function GX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fj(r.key),r)}}function qX(e,t,n){return t&&C_(e.prototype,t),n&&C_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function YX(e,t,n){return t=wf(t),XX(e,Dj()?Reflect.construct(t,n||[],wf(e).constructor):t.apply(e,n))}function XX(e,t){if(t&&(lo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return QX(e)}function QX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Dj=function(){return!!e})()}function wf(e){return wf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},wf(e)}function ZX(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&&Wv(e,t)}function Wv(e,t){return Wv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Wv(e,t)}function Xd(e,t,n){return t=Fj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fj(e){var t=JX(e,"string");return lo(t)=="symbol"?t:t+""}function JX(e,t){if(lo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(lo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qd=function(e){function t(){return GX(this,t),YX(this,t,arguments)}return ZX(t,e),qX(t,[{key:"getTickValueCoord",value:function(r){var i=r.coordinate,a=this.props,o=a.angle,l=a.cx,s=a.cy;return Se(l,s,i,o)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,i;switch(r){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var r=this.props,i=r.cx,a=r.cy,o=r.angle,l=r.ticks,s=LX(l,function(c){return c.coordinate||0}),u=HX(l,function(c){return c.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:u.coordinate||0,outerRadius:s.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,a=r.cy,o=r.angle,l=r.ticks,s=r.axisLine,u=A_(r,WX),c=l.reduce(function(h,m){return[Math.min(h[0],m.coordinate),Math.max(h[1],m.coordinate)]},[1/0,-1/0]),f=Se(i,a,c[0],o),d=Se(i,a,c[1],o),p=bi(bi(bi({},ne(u,!1)),{},{fill:"none"},ne(s,!1)),{},{x1:f.x,y1:f.y,x2:d.x,y2:d.y});return j.createElement("line",Ml({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var r=this,i=this.props,a=i.ticks,o=i.tick,l=i.angle,s=i.tickFormatter,u=i.stroke,c=A_(i,VX),f=this.getTickTextAnchor(),d=ne(c,!1),p=ne(o,!1),h=a.map(function(m,b){var v=r.getTickValueCoord(m),y=bi(bi(bi(bi({textAnchor:f,transform:"rotate(".concat(90-l,", ").concat(v.x,", ").concat(v.y,")")},d),{},{stroke:"none",fill:u},p),{},{index:b},v),{},{payload:m});return j.createElement(Te,Ml({className:ue("recharts-polar-radius-axis-tick",_j(o)),key:"tick-".concat(m.coordinate)},Ys(r.props,m,b)),t.renderTickItem(o,y,s?s(m.value,b):m.value))});return j.createElement(Te,{className:"recharts-polar-radius-axis-ticks"},h)}},{key:"render",value:function(){var r=this.props,i=r.ticks,a=r.axisLine,o=r.tick;return!i||!i.length?null:j.createElement(Te,{className:ue("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),ut.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,i,a){var o;return j.isValidElement(r)?o=j.cloneElement(r,i):te(r)?o=r(i):o=j.createElement(eo,Ml({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])}(w.PureComponent);Xd(Qd,"displayName","PolarRadiusAxis");Xd(Qd,"axisType","radiusAxis");Xd(Qd,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function so(e){"@babel/helpers - typeof";return so=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},so(e)}function Pi(){return Pi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pi.apply(this,arguments)}function k_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function wi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k_(Object(n),!0).forEach(function(r){Zd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zj(r.key),r)}}function tQ(e,t,n){return t&&N_(e.prototype,t),n&&N_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nQ(e,t,n){return t=_f(t),rQ(e,Bj()?Reflect.construct(t,n||[],_f(e).constructor):t.apply(e,n))}function rQ(e,t){if(t&&(so(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iQ(e)}function iQ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bj=function(){return!!e})()}function _f(e){return _f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_f(e)}function aQ(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&&Vv(e,t)}function Vv(e,t){return Vv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Vv(e,t)}function Zd(e,t,n){return t=zj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zj(e){var t=oQ(e,"string");return so(t)=="symbol"?t:t+""}function oQ(e,t){if(so(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(so(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lQ=Math.PI/180,M_=1e-5,Jd=function(e){function t(){return eQ(this,t),nQ(this,t,arguments)}return aQ(t,e),tQ(t,[{key:"getTickLineCoord",value:function(r){var i=this.props,a=i.cx,o=i.cy,l=i.radius,s=i.orientation,u=i.tickSize,c=u||8,f=Se(a,o,l,r.coordinate),d=Se(a,o,l+(s==="inner"?-1:1)*c,r.coordinate);return{x1:f.x,y1:f.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(r){var i=this.props.orientation,a=Math.cos(-r.coordinate*lQ),o;return a>M_?o=i==="outer"?"start":"end":a<-M_?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,a=r.cy,o=r.radius,l=r.axisLine,s=r.axisLineType,u=wi(wi({},ne(this.props,!1)),{},{fill:"none"},ne(l,!1));if(s==="circle")return j.createElement(j0,Pi({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:a,r:o}));var c=this.props.ticks,f=c.map(function(d){return Se(i,a,o,d.coordinate)});return j.createElement(_X,Pi({className:"recharts-polar-angle-axis-line"},u,{points:f}))}},{key:"renderTicks",value:function(){var r=this,i=this.props,a=i.ticks,o=i.tick,l=i.tickLine,s=i.tickFormatter,u=i.stroke,c=ne(this.props,!1),f=ne(o,!1),d=wi(wi({},c),{},{fill:"none"},ne(l,!1)),p=a.map(function(h,m){var b=r.getTickLineCoord(h),v=r.getTickTextAnchor(h),y=wi(wi(wi({textAnchor:v},c),{},{stroke:"none",fill:u},f),{},{index:m,payload:h,x:b.x2,y:b.y2});return j.createElement(Te,Pi({className:ue("recharts-polar-angle-axis-tick",_j(o)),key:"tick-".concat(h.coordinate)},Ys(r.props,h,m)),l&&j.createElement("line",Pi({className:"recharts-polar-angle-axis-tick-line"},d,b)),o&&t.renderTickItem(o,y,s?s(h.value,m):h.value))});return j.createElement(Te,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var r=this.props,i=r.ticks,a=r.radius,o=r.axisLine;return a<=0||!i||!i.length?null:j.createElement(Te,{className:ue("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,i,a){var o;return j.isValidElement(r)?o=j.cloneElement(r,i):te(r)?o=r(i):o=j.createElement(eo,Pi({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(w.PureComponent);Zd(Jd,"displayName","PolarAngleAxis");Zd(Jd,"axisType","angleAxis");Zd(Jd,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var sQ=GP,uQ=sQ(Object.getPrototypeOf,Object),T0=uQ,cQ=Cr,fQ=T0,dQ=Cn,pQ="[object Object]",hQ=Function.prototype,mQ=Object.prototype,Uj=hQ.toString,vQ=mQ.hasOwnProperty,gQ=Uj.call(Object);function yQ(e){if(!dQ(e)||cQ(e)!=pQ)return!1;var t=fQ(e);if(t===null)return!0;var n=vQ.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Uj.call(n)==gQ}var Hj=yQ;const xQ=me(Hj);var bQ=Cr,wQ=Cn,_Q="[object Boolean]";function SQ(e){return e===!0||e===!1||wQ(e)&&bQ(e)==_Q}var EQ=SQ;const OQ=me(EQ);function Ps(e){"@babel/helpers - typeof";return Ps=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},Ps(e)}function Sf(){return Sf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sf.apply(this,arguments)}function $Q(e,t){return AQ(e)||TQ(e,t)||jQ(e,t)||PQ()}function PQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
249
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jQ(e,t){if(e){if(typeof e=="string")return I_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I_(e,t)}}function I_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function TQ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function AQ(e){if(Array.isArray(e))return e}function R_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function L_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R_(Object(n),!0).forEach(function(r){CQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CQ(e,t,n){return t=kQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kQ(e){var t=NQ(e,"string");return Ps(t)=="symbol"?t:t+""}function NQ(e,t){if(Ps(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ps(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var D_=function(t,n,r,i,a){var o=r-i,l;return l="M ".concat(t,",").concat(n),l+="L ".concat(t+r,",").concat(n),l+="L ".concat(t+r-o/2,",").concat(n+a),l+="L ".concat(t+r-o/2-i,",").concat(n+a),l+="L ".concat(t,",").concat(n," Z"),l},MQ={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},IQ=function(t){var n=L_(L_({},MQ),t),r=w.useRef(),i=w.useState(-1),a=$Q(i,2),o=a[0],l=a[1];w.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var x=r.current.getTotalLength();x&&l(x)}catch{}},[]);var s=n.x,u=n.y,c=n.upperWidth,f=n.lowerWidth,d=n.height,p=n.className,h=n.animationEasing,m=n.animationDuration,b=n.animationBegin,v=n.isUpdateAnimationActive;if(s!==+s||u!==+u||c!==+c||f!==+f||d!==+d||c===0&&f===0||d===0)return null;var y=ue("recharts-trapezoid",p);return v?j.createElement(Pr,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:s,y:u},to:{upperWidth:c,lowerWidth:f,height:d,x:s,y:u},duration:m,animationEasing:h,isActive:v},function(x){var E=x.upperWidth,_=x.lowerWidth,S=x.height,O=x.x,$=x.y;return j.createElement(Pr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:m,easing:h},j.createElement("path",Sf({},ne(n,!0),{className:y,d:D_(O,$,E,_,S),ref:r})))}):j.createElement("g",null,j.createElement("path",Sf({},ne(n,!0),{className:y,d:D_(s,u,c,f,d)})))},RQ=["option","shapeType","propTransformer","activeClassName","isActive"];function js(e){"@babel/helpers - typeof";return js=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},js(e)}function LQ(e,t){if(e==null)return{};var n=DQ(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function DQ(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function F_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ef(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F_(Object(n),!0).forEach(function(r){FQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function FQ(e,t,n){return t=BQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BQ(e){var t=zQ(e,"string");return js(t)=="symbol"?t:t+""}function zQ(e,t){if(js(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(js(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function UQ(e,t){return Ef(Ef({},t),e)}function HQ(e,t){return e==="symbols"}function B_(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return j.createElement(P0,n);case"trapezoid":return j.createElement(IQ,n);case"sector":return j.createElement($j,n);case"symbols":if(HQ(t))return j.createElement(Ly,n);break;default:return null}}function Wj(e){return w.isValidElement(e)?e.props:e}function Vj(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?UQ:r,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,l=e.isActive,s=LQ(e,RQ),u;if(w.isValidElement(t))u=w.cloneElement(t,Ef(Ef({},s),Wj(t)));else if(te(t))u=t(s);else if(xQ(t)&&!OQ(t)){var c=i(t,s);u=j.createElement(B_,{shapeType:n,elementProps:c})}else{var f=s;u=j.createElement(B_,{shapeType:n,elementProps:f})}return l?j.createElement(Te,{className:o},u):u}function ep(e,t){return t!=null&&"trapezoids"in e.props}function tp(e,t){return t!=null&&"sectors"in e.props}function Ts(e,t){return t!=null&&"points"in e.props}function WQ(e,t){var n,r,i=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,a=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return i&&a}function VQ(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function KQ(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function GQ(e,t){var n;return ep(e,t)?n=WQ:tp(e,t)?n=VQ:Ts(e,t)&&(n=KQ),n}function qQ(e,t){var n;return ep(e,t)?n="trapezoids":tp(e,t)?n="sectors":Ts(e,t)&&(n="points"),n}function YQ(e,t){if(ep(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}if(tp(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}return Ts(e,t)?t.payload:{}}function XQ(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=qQ(n,t),a=YQ(n,t),o=r.filter(function(s,u){var c=Gd(a,s),f=n.props[i].filter(function(h){var m=GQ(n,t);return m(h,t)}),d=n.props[i].indexOf(f[f.length-1]),p=u===d;return c&&p}),l=r.indexOf(o[o.length-1]);return l}var dc;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 Aa(){return Aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Aa.apply(this,arguments)}function z_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function be(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?z_(Object(n),!0).forEach(function(r){rn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Gj(r.key),r)}}function ZQ(e,t,n){return t&&U_(e.prototype,t),n&&U_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function JQ(e,t,n){return t=Of(t),eZ(e,Kj()?Reflect.construct(t,n||[],Of(e).constructor):t.apply(e,n))}function eZ(e,t){if(t&&(uo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tZ(e)}function tZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Kj=function(){return!!e})()}function Of(e){return Of=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Of(e)}function nZ(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&&Kv(e,t)}function Kv(e,t){return Kv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Kv(e,t)}function rn(e,t,n){return t=Gj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gj(e){var t=rZ(e,"string");return uo(t)=="symbol"?t:t+""}function rZ(e,t){if(uo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(uo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qt=function(e){function t(n){var r;return QQ(this,t),r=JQ(this,t,[n]),rn(r,"pieRef",null),rn(r,"sectorRefs",[]),rn(r,"id",Td("recharts-pie-")),rn(r,"handleAnimationEnd",function(){var i=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),te(i)&&i()}),rn(r,"handleAnimationStart",function(){var i=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),te(i)&&i()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return nZ(t,e),ZQ(t,[{key:"isActiveIndex",value:function(r){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(r)!==-1:r===i}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,l=a.labelLine,s=a.dataKey,u=a.valueKey,c=ne(this.props,!1),f=ne(o,!1),d=ne(l,!1),p=o&&o.offsetRadius||20,h=r.map(function(m,b){var v=(m.startAngle+m.endAngle)/2,y=Se(m.cx,m.cy,m.outerRadius+p,v),x=be(be(be(be({},c),m),{},{stroke:"none"},f),{},{index:b,textAnchor:t.getTextAnchor(y.x,m.cx)},y),E=be(be(be(be({},c),m),{},{fill:"none",stroke:m.fill},d),{},{index:b,points:[Se(m.cx,m.cy,m.outerRadius,v),y]}),_=s;return le(s)&&le(u)?_="value":le(s)&&(_=u),j.createElement(Te,{key:"label-".concat(m.startAngle,"-").concat(m.endAngle,"-").concat(m.midAngle,"-").concat(b)},l&&t.renderLabelLineItem(l,E,"line"),t.renderLabelItem(o,x,ct(m,_)))});return j.createElement(Te,{className:"recharts-pie-labels"},h)}},{key:"renderSectorsStatically",value:function(r){var i=this,a=this.props,o=a.activeShape,l=a.blendStroke,s=a.inactiveShape;return r.map(function(u,c){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&r.length!==1)return null;var f=i.isActiveIndex(c),d=s&&i.hasActiveIndex()?s:null,p=f?o:d,h=be(be({},u),{},{stroke:l?u.fill:u.stroke,tabIndex:-1});return j.createElement(Te,Aa({ref:function(b){b&&!i.sectorRefs.includes(b)&&i.sectorRefs.push(b)},tabIndex:-1,className:"recharts-pie-sector"},Ys(i.props,u,c),{key:"sector-".concat(u==null?void 0:u.startAngle,"-").concat(u==null?void 0:u.endAngle,"-").concat(u.midAngle,"-").concat(c)}),j.createElement(Vj,Aa({option:p,isActive:f,shapeType:"sector"},h)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,i=this.props,a=i.sectors,o=i.isAnimationActive,l=i.animationBegin,s=i.animationDuration,u=i.animationEasing,c=i.animationId,f=this.state,d=f.prevSectors,p=f.prevIsAnimationActive;return j.createElement(Pr,{begin:l,duration:s,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(c,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(h){var m=h.t,b=[],v=a&&a[0],y=v.startAngle;return a.forEach(function(x,E){var _=d&&d[E],S=E>0?En(x,"paddingAngle",0):0;if(_){var O=Zt(_.endAngle-_.startAngle,x.endAngle-x.startAngle),$=be(be({},x),{},{startAngle:y+S,endAngle:y+O(m)+S});b.push($),y=$.endAngle}else{var T=x.endAngle,C=x.startAngle,A=Zt(0,T-C),N=A(m),I=be(be({},x),{},{startAngle:y+S,endAngle:y+N+S});b.push(I),y=I.endAngle}}),j.createElement(Te,null,r.renderSectorsStatically(b))})}},{key:"attachKeyboardHandlers",value:function(r){var i=this;r.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var l=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[l].focus(),i.setState({sectorToFocus:l});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,i=r.sectors,a=r.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!Gd(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,i=this.props,a=i.hide,o=i.sectors,l=i.className,s=i.label,u=i.cx,c=i.cy,f=i.innerRadius,d=i.outerRadius,p=i.isAnimationActive,h=this.state.isAnimationFinished;if(a||!o||!o.length||!G(u)||!G(c)||!G(f)||!G(d))return null;var m=ue("recharts-pie",l);return j.createElement(Te,{tabIndex:this.props.rootTabIndex,className:m,ref:function(v){r.pieRef=v}},this.renderSectors(),s&&this.renderLabels(o),ut.renderCallByParent(this.props,null,!1),(!p||h)&&Un.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return i.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:r.sectors!==i.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,i){return r>i?"start":r<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,i,a){if(j.isValidElement(r))return j.cloneElement(r,i);if(te(r))return r(i);var o=ue("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return j.createElement(Cv,Aa({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(r,i,a){if(j.isValidElement(r))return j.cloneElement(r,i);var o=a;if(te(r)&&(o=r(i),j.isValidElement(o)))return o;var l=ue("recharts-pie-label-text",typeof r!="boolean"&&!te(r)?r.className:"");return j.createElement(eo,Aa({},i,{alignmentBaseline:"middle",className:l}),o)}}])}(w.PureComponent);dc=qt;rn(qt,"displayName","Pie");rn(qt,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!ni.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});rn(qt,"parseDeltaAngle",function(e,t){var n=on(t-e),r=Math.min(Math.abs(t-e),360);return n*r});rn(qt,"getRealPieData",function(e){var t=e.data,n=e.children,r=ne(e,!1),i=On(n,e0);return t&&t.length?t.map(function(a,o){return be(be(be({payload:a},r),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return be(be({},r),a.props)}):[]});rn(qt,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,i=t.width,a=t.height,o=wj(i,a),l=r+kt(e.cx,i,i/2),s=n+kt(e.cy,a,a/2),u=kt(e.innerRadius,o,0),c=kt(e.outerRadius,o,o*.8),f=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:l,cy:s,innerRadius:u,outerRadius:c,maxRadius:f}});rn(qt,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?be(be({},t.type.defaultProps),t.props):t.props,i=dc.getRealPieData(r);if(!i||!i.length)return null;var a=r.cornerRadius,o=r.startAngle,l=r.endAngle,s=r.paddingAngle,u=r.dataKey,c=r.nameKey,f=r.valueKey,d=r.tooltipType,p=Math.abs(r.minAngle),h=dc.parseCoordinateOfPie(r,n),m=dc.parseDeltaAngle(o,l),b=Math.abs(m),v=u;le(u)&&le(f)?(dr(!1,`Use "dataKey" to specify the value of pie,
250
- the props "valueKey" will be deprecated in 1.1.0`),v="value"):le(u)&&(dr(!1,`Use "dataKey" to specify the value of pie,
251
- the props "valueKey" will be deprecated in 1.1.0`),v=f);var y=i.filter(function($){return ct($,v,0)!==0}).length,x=(b>=360?y:y-1)*s,E=b-y*p-x,_=i.reduce(function($,T){var C=ct(T,v,0);return $+(G(C)?C:0)},0),S;if(_>0){var O;S=i.map(function($,T){var C=ct($,v,0),A=ct($,c,T),N=(G(C)?C:0)/_,I;T?I=O.endAngle+on(m)*s*(C!==0?1:0):I=o;var D=I+on(m)*((C!==0?p:0)+N*E),M=(I+D)/2,F=(h.innerRadius+h.outerRadius)/2,R=[{name:A,value:C,payload:$,dataKey:v,type:d}],P=Se(h.cx,h.cy,F,M);return O=be(be(be({percent:N,cornerRadius:a,name:A,tooltipPayload:R,midAngle:M,middleRadius:F,tooltipPosition:P},$),h),{},{value:ct($,v),startAngle:I,endAngle:D,payload:$,paddingAngle:on(m)*s}),O})}return be(be({},h),{},{sectors:S,data:i})});var iZ=Math.ceil,aZ=Math.max;function oZ(e,t,n,r){for(var i=-1,a=aZ(iZ((t-e)/(n||1)),0),o=Array(a);a--;)o[r?a:++i]=e,e+=n;return o}var lZ=oZ,sZ=p2,H_=1/0,uZ=17976931348623157e292;function cZ(e){if(!e)return e===0?e:0;if(e=sZ(e),e===H_||e===-H_){var t=e<0?-1:1;return t*uZ}return e===e?e:0}var fZ=cZ,dZ=lZ,pZ=Ld,xh=fZ;function hZ(e){return function(t,n,r){return r&&typeof r!="number"&&pZ(t,n,r)&&(n=r=void 0),t=xh(t),n===void 0?(n=t,t=0):n=xh(n),r=r===void 0?t<n?1:-1:xh(r),dZ(t,n,r,e)}}var mZ=hZ,vZ=mZ,gZ=vZ(),yZ=gZ;const $f=me(yZ);function As(e){"@babel/helpers - typeof";return As=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},As(e)}function W_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function V_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W_(Object(n),!0).forEach(function(r){qj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qj(e,t,n){return t=xZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xZ(e){var t=bZ(e,"string");return As(t)=="symbol"?t:t+""}function bZ(e,t){if(As(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(As(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wZ=["Webkit","Moz","O","ms"],_Z=function(t,n){var r=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=wZ.reduce(function(a,o){return V_(V_({},a),{},qj({},o+r,n))},{});return i[t]=n,i};function co(e){"@babel/helpers - typeof";return co=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},co(e)}function Pf(){return Pf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pf.apply(this,arguments)}function K_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K_(Object(n),!0).forEach(function(r){Dt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function SZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Xj(r.key),r)}}function EZ(e,t,n){return t&&G_(e.prototype,t),n&&G_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function OZ(e,t,n){return t=jf(t),$Z(e,Yj()?Reflect.construct(t,n||[],jf(e).constructor):t.apply(e,n))}function $Z(e,t){if(t&&(co(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PZ(e)}function PZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Yj=function(){return!!e})()}function jf(e){return jf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jf(e)}function jZ(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&&Gv(e,t)}function Gv(e,t){return Gv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Gv(e,t)}function Dt(e,t,n){return t=Xj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xj(e){var t=TZ(e,"string");return co(t)=="symbol"?t:t+""}function TZ(e,t){if(co(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(co(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var AZ=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,a=t.x,o=t.width,l=t.travellerWidth;if(!n||!n.length)return{};var s=n.length,u=Al().domain($f(0,s)).range([a,a+o-l]),c=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(i),scale:u,scaleValues:c}},q_=function(t){return t.changedTouches&&!!t.changedTouches.length},fo=function(e){function t(n){var r;return SZ(this,t),r=OZ(this,t,[n]),Dt(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),Dt(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),Dt(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,a=i.endIndex,o=i.onDragEnd,l=i.startIndex;o==null||o({endIndex:a,startIndex:l})}),r.detachDragEndListener()}),Dt(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),Dt(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),Dt(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),Dt(r,"handleSlideDragStart",function(i){var a=q_(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return jZ(t,e),EZ(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,a=r.endX,o=this.state.scaleValues,l=this.props,s=l.gap,u=l.data,c=u.length-1,f=Math.min(i,a),d=Math.max(i,a),p=t.getIndexInRange(o,f),h=t.getIndexInRange(o,d);return{startIndex:p-p%s,endIndex:h===c?c:h-h%s}}},{key:"getTextOfTick",value:function(r){var i=this.props,a=i.data,o=i.tickFormatter,l=i.dataKey,s=ct(a[r],l,r);return te(o)?o(s,r):s}},{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(r){var i=this.state,a=i.slideMoveStartX,o=i.startX,l=i.endX,s=this.props,u=s.x,c=s.width,f=s.travellerWidth,d=s.startIndex,p=s.endIndex,h=s.onChange,m=r.pageX-a;m>0?m=Math.min(m,u+c-f-l,u+c-f-o):m<0&&(m=Math.max(m,u-o,u-l));var b=this.getIndex({startX:o+m,endX:l+m});(b.startIndex!==d||b.endIndex!==p)&&h&&h(b),this.setState({startX:o+m,endX:l+m,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var a=q_(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,l=i.endX,s=i.startX,u=this.state[o],c=this.props,f=c.x,d=c.width,p=c.travellerWidth,h=c.onChange,m=c.gap,b=c.data,v={startX:this.state.startX,endX:this.state.endX},y=r.pageX-a;y>0?y=Math.min(y,f+d-p-u):y<0&&(y=Math.max(y,f-u)),v[o]=u+y;var x=this.getIndex(v),E=x.startIndex,_=x.endIndex,S=function(){var $=b.length-1;return o==="startX"&&(l>s?E%m===0:_%m===0)||l<s&&_===$||o==="endX"&&(l>s?_%m===0:E%m===0)||l>s&&_===$};this.setState(Dt(Dt({},o,u+y),"brushMoveStartX",r.pageX),function(){h&&S()&&h(x)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var a=this,o=this.state,l=o.scaleValues,s=o.startX,u=o.endX,c=this.state[i],f=l.indexOf(c);if(f!==-1){var d=f+r;if(!(d===-1||d>=l.length)){var p=l[d];i==="startX"&&p>=u||i==="endX"&&p<=s||this.setState(Dt({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,a=r.y,o=r.width,l=r.height,s=r.fill,u=r.stroke;return j.createElement("rect",{stroke:u,fill:s,x:i,y:a,width:o,height:l})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,a=r.y,o=r.width,l=r.height,s=r.data,u=r.children,c=r.padding,f=w.Children.only(u);return f?j.cloneElement(f,{x:i,y:a,width:o,height:l,margin:c,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(r,i){var a,o,l=this,s=this.props,u=s.y,c=s.travellerWidth,f=s.height,d=s.traveller,p=s.ariaLabel,h=s.data,m=s.startIndex,b=s.endIndex,v=Math.max(r,this.props.x),y=bh(bh({},ne(this.props,!1)),{},{x:v,y:u,width:c,height:f}),x=p||"Min value: ".concat((a=h[m])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=h[b])===null||o===void 0?void 0:o.name);return j.createElement(Te,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(_){["ArrowLeft","ArrowRight"].includes(_.key)&&(_.preventDefault(),_.stopPropagation(),l.handleTravellerMoveKeyboard(_.key==="ArrowRight"?1:-1,i))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,y))}},{key:"renderSlide",value:function(r,i){var a=this.props,o=a.y,l=a.height,s=a.stroke,u=a.travellerWidth,c=Math.min(r,i)+u,f=Math.max(Math.abs(i-r)-u,0);return j.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:s,fillOpacity:.2,x:c,y:o,width:f,height:l})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,a=r.endIndex,o=r.y,l=r.height,s=r.travellerWidth,u=r.stroke,c=this.state,f=c.startX,d=c.endX,p=5,h={pointerEvents:"none",fill:u};return j.createElement(Te,{className:"recharts-brush-texts"},j.createElement(eo,Pf({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,d)-p,y:o+l/2},h),this.getTextOfTick(i)),j.createElement(eo,Pf({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,d)+s+p,y:o+l/2},h),this.getTextOfTick(a)))}},{key:"render",value:function(){var r=this.props,i=r.data,a=r.className,o=r.children,l=r.x,s=r.y,u=r.width,c=r.height,f=r.alwaysShowText,d=this.state,p=d.startX,h=d.endX,m=d.isTextActive,b=d.isSlideMoving,v=d.isTravellerMoving,y=d.isTravellerFocused;if(!i||!i.length||!G(l)||!G(s)||!G(u)||!G(c)||u<=0||c<=0)return null;var x=ue("recharts-brush",a),E=j.Children.count(o)===1,_=_Z("userSelect","none");return j.createElement(Te,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:_},this.renderBackground(),E&&this.renderPanorama(),this.renderSlide(p,h),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(h,"endX"),(m||b||v||y||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,a=r.y,o=r.width,l=r.height,s=r.stroke,u=Math.floor(a+l/2)-1;return j.createElement(j.Fragment,null,j.createElement("rect",{x:i,y:a,width:o,height:l,fill:s,stroke:"none"}),j.createElement("line",{x1:i+1,y1:u,x2:i+o-1,y2:u,fill:"none",stroke:"#fff"}),j.createElement("line",{x1:i+1,y1:u+2,x2:i+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var a;return j.isValidElement(r)?a=j.cloneElement(r,i):te(r)?a=r(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(r,i){var a=r.data,o=r.width,l=r.x,s=r.travellerWidth,u=r.updateId,c=r.startIndex,f=r.endIndex;if(a!==i.prevData||u!==i.prevUpdateId)return bh({prevData:a,prevTravellerWidth:s,prevUpdateId:u,prevX:l,prevWidth:o},a&&a.length?AZ({data:a,width:o,x:l,travellerWidth:s,startIndex:c,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||l!==i.prevX||s!==i.prevTravellerWidth)){i.scale.range([l,l+o-s]);var d=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:s,prevUpdateId:u,prevX:l,prevWidth:o,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(r,i){for(var a=r.length,o=0,l=a-1;l-o>1;){var s=Math.floor((o+l)/2);r[s]>i?l=s:o=s}return i>=r[l]?l:o}}])}(w.PureComponent);Dt(fo,"displayName","Brush");Dt(fo,"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 CZ=Qy;function kZ(e,t){var n;return CZ(e,function(r,i,a){return n=t(r,i,a),!n}),!!n}var NZ=kZ,MZ=DP,IZ=di,RZ=NZ,LZ=jt,DZ=Ld;function FZ(e,t,n){var r=LZ(e)?MZ:RZ;return n&&DZ(e,t,n)&&(t=void 0),r(e,IZ(t))}var BZ=FZ;const zZ=me(BZ);var Hn=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},Y_=l2;function UZ(e,t,n){t=="__proto__"&&Y_?Y_(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var A0=UZ,HZ=A0,WZ=i2,VZ=di;function KZ(e,t){var n={};return t=VZ(t),WZ(e,function(r,i,a){HZ(n,i,t(r,i,a))}),n}var GZ=KZ;const qZ=me(GZ);function YZ(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}var XZ=YZ,QZ=Qy;function ZZ(e,t){var n=!0;return QZ(e,function(r,i,a){return n=!!t(r,i,a),n}),n}var JZ=ZZ,eJ=XZ,tJ=JZ,nJ=di,rJ=jt,iJ=Ld;function aJ(e,t,n){var r=rJ(e)?eJ:tJ;return n&&iJ(e,t,n)&&(t=void 0),r(e,nJ(t))}var oJ=aJ;const lJ=me(oJ);function Cs(e){"@babel/helpers - typeof";return Cs=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},Cs(e)}function sJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Qj(r.key),r)}}function uJ(e,t,n){return t&&X_(e.prototype,t),n&&X_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ku(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Q_(Object(n),!0).forEach(function(r){C0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function C0(e,t,n){return t=Qj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qj(e){var t=cJ(e,"string");return Cs(t)=="symbol"?t:t+""}function cJ(e,t){if(Cs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Cs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Zj=function(t,n){var r=t.x,i=t.y,a=n.x,o=n.y;return{x:Math.min(r,a),y:Math.min(i,o),width:Math.abs(a-r),height:Math.abs(o-i)}},fJ=function(t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2;return Zj({x:n,y:r},{x:i,y:a})},Jj=function(){function e(t){sJ(this,e),this.scale=t}return uJ(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(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,a=r.position;if(n!==void 0){if(a)switch(a){case"start":return this.scale(n);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+o}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(n)+l}default:return this.scale(n)}if(i){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+s}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],a=r[r.length-1];return i<=a?n>=i&&n<=a:n>=a&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])}();C0(Jj,"EPS",1e-4);var k0=function(t){var n=Object.keys(t).reduce(function(r,i){return Ku(Ku({},r),{},C0({},i,Jj.create(t[i])))},{});return Ku(Ku({},n),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,l=a.position;return qZ(i,function(s,u){return n[u].apply(s,{bandAware:o,position:l})})},isInRange:function(i){return lJ(i,function(a,o){return n[o].isInRange(a)})}})},dJ=g5(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("")}),eT=w.createContext(void 0),tT=w.createContext(void 0),nT=w.createContext(void 0),pJ=w.createContext({}),rT=w.createContext(void 0),hJ=w.createContext(0),mJ=w.createContext(0),Z_=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,a=n.offset,o=t.clipPathId,l=t.children,s=t.width,u=t.height,c=dJ(a);return j.createElement(eT.Provider,{value:r},j.createElement(tT.Provider,{value:i},j.createElement(pJ.Provider,{value:a},j.createElement(nT.Provider,{value:c},j.createElement(rT.Provider,{value:o},j.createElement(hJ.Provider,{value:u},j.createElement(mJ.Provider,{value:s},l)))))))},vJ=function(){return w.useContext(rT)},gJ=function(t){var n=w.useContext(eT);n==null&&io();var r=n[t];return r==null&&io(),r},yJ=function(t){var n=w.useContext(tT);n==null&&io();var r=n[t];return r==null&&io(),r},xJ=function(){var t=w.useContext(nT);return t};function po(e){"@babel/helpers - typeof";return po=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},po(e)}function bJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wJ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,aT(r.key),r)}}function _J(e,t,n){return t&&wJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function SJ(e,t,n){return t=Tf(t),EJ(e,iT()?Reflect.construct(t,n||[],Tf(e).constructor):t.apply(e,n))}function EJ(e,t){if(t&&(po(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return OJ(e)}function OJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iT=function(){return!!e})()}function Tf(e){return Tf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Tf(e)}function $J(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&&qv(e,t)}function qv(e,t){return qv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},qv(e,t)}function J_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J_(Object(n),!0).forEach(function(r){N0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function N0(e,t,n){return t=aT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aT(e){var t=PJ(e,"string");return po(t)=="symbol"?t:t+""}function PJ(e,t){if(po(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(po(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jJ(e,t){return kJ(e)||CJ(e,t)||AJ(e,t)||TJ()}function TJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
252
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AJ(e,t){if(e){if(typeof e=="string")return tS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tS(e,t)}}function tS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function CJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function kJ(e){if(Array.isArray(e))return e}function Yv(){return Yv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yv.apply(this,arguments)}var NJ=function(t,n){var r;return j.isValidElement(t)?r=j.cloneElement(t,n):te(t)?r=t(n):r=j.createElement("line",Yv({},n,{className:"recharts-reference-line-line"})),r},MJ=function(t,n,r,i,a,o,l,s,u){var c=a.x,f=a.y,d=a.width,p=a.height;if(r){var h=u.y,m=t.y.apply(h,{position:o});if(Hn(u,"discard")&&!t.y.isInRange(m))return null;var b=[{x:c+d,y:m},{x:c,y:m}];return s==="left"?b.reverse():b}if(n){var v=u.x,y=t.x.apply(v,{position:o});if(Hn(u,"discard")&&!t.x.isInRange(y))return null;var x=[{x:y,y:f+p},{x:y,y:f}];return l==="top"?x.reverse():x}if(i){var E=u.segment,_=E.map(function(S){return t.apply(S,{position:o})});return Hn(u,"discard")&&zZ(_,function(S){return!t.isInRange(S)})?null:_}return null};function IJ(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,l=e.className,s=e.alwaysShow,u=vJ(),c=gJ(i),f=yJ(a),d=xJ();if(!u||!d)return null;dr(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=k0({x:c.scale,y:f.scale}),h=Je(t),m=Je(n),b=r&&r.length===2,v=MJ(p,h,m,b,d,e.position,c.orientation,f.orientation,e);if(!v)return null;var y=jJ(v,2),x=y[0],E=x.x,_=x.y,S=y[1],O=S.x,$=S.y,T=Hn(e,"hidden")?"url(#".concat(u,")"):void 0,C=eS(eS({clipPath:T},ne(e,!0)),{},{x1:E,y1:_,x2:O,y2:$});return j.createElement(Te,{className:ue("recharts-reference-line",l)},NJ(o,C),ut.renderCallByParent(e,fJ({x1:E,y1:_,x2:O,y2:$})))}var M0=function(e){function t(){return bJ(this,t),SJ(this,t,arguments)}return $J(t,e),_J(t,[{key:"render",value:function(){return j.createElement(IJ,this.props)}}])}(j.Component);N0(M0,"displayName","ReferenceLine");N0(M0,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Xv(){return Xv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xv.apply(this,arguments)}function ho(e){"@babel/helpers - typeof";return ho=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},ho(e)}function nS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nS(Object(n),!0).forEach(function(r){np(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function RJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LJ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lT(r.key),r)}}function DJ(e,t,n){return t&&LJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function FJ(e,t,n){return t=Af(t),BJ(e,oT()?Reflect.construct(t,n||[],Af(e).constructor):t.apply(e,n))}function BJ(e,t){if(t&&(ho(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zJ(e)}function zJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oT=function(){return!!e})()}function Af(e){return Af=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Af(e)}function UJ(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&&Qv(e,t)}function Qv(e,t){return Qv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Qv(e,t)}function np(e,t,n){return t=lT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lT(e){var t=HJ(e,"string");return ho(t)=="symbol"?t:t+""}function HJ(e,t){if(ho(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ho(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var WJ=function(t){var n=t.x,r=t.y,i=t.xAxis,a=t.yAxis,o=k0({x:i.scale,y:a.scale}),l=o.apply({x:n,y:r},{bandAware:!0});return Hn(t,"discard")&&!o.isInRange(l)?null:l},rp=function(e){function t(){return RJ(this,t),FJ(this,t,arguments)}return UJ(t,e),DJ(t,[{key:"render",value:function(){var r=this.props,i=r.x,a=r.y,o=r.r,l=r.alwaysShow,s=r.clipPathId,u=Je(i),c=Je(a);if(dr(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!c)return null;var f=WJ(this.props);if(!f)return null;var d=f.x,p=f.y,h=this.props,m=h.shape,b=h.className,v=Hn(this.props,"hidden")?"url(#".concat(s,")"):void 0,y=rS(rS({clipPath:v},ne(this.props,!0)),{},{cx:d,cy:p});return j.createElement(Te,{className:ue("recharts-reference-dot",b)},t.renderDot(m,y),ut.renderCallByParent(this.props,{x:d-o,y:p-o,width:2*o,height:2*o}))}}])}(j.Component);np(rp,"displayName","ReferenceDot");np(rp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});np(rp,"renderDot",function(e,t){var n;return j.isValidElement(e)?n=j.cloneElement(e,t):te(e)?n=e(t):n=j.createElement(j0,Xv({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function Zv(){return Zv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zv.apply(this,arguments)}function mo(e){"@babel/helpers - typeof";return mo=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},mo(e)}function iS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function aS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iS(Object(n),!0).forEach(function(r){ip(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KJ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uT(r.key),r)}}function GJ(e,t,n){return t&&KJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function qJ(e,t,n){return t=Cf(t),YJ(e,sT()?Reflect.construct(t,n||[],Cf(e).constructor):t.apply(e,n))}function YJ(e,t){if(t&&(mo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return XJ(e)}function XJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sT=function(){return!!e})()}function Cf(e){return Cf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cf(e)}function QJ(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&&Jv(e,t)}function Jv(e,t){return Jv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Jv(e,t)}function ip(e,t,n){return t=uT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uT(e){var t=ZJ(e,"string");return mo(t)=="symbol"?t:t+""}function ZJ(e,t){if(mo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(mo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var JJ=function(t,n,r,i,a){var o=a.x1,l=a.x2,s=a.y1,u=a.y2,c=a.xAxis,f=a.yAxis;if(!c||!f)return null;var d=k0({x:c.scale,y:f.scale}),p={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:r?d.y.apply(s,{position:"start"}):d.y.rangeMin},h={x:n?d.x.apply(l,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(u,{position:"end"}):d.y.rangeMax};return Hn(a,"discard")&&(!d.isInRange(p)||!d.isInRange(h))?null:Zj(p,h)},ap=function(e){function t(){return VJ(this,t),qJ(this,t,arguments)}return QJ(t,e),GJ(t,[{key:"render",value:function(){var r=this.props,i=r.x1,a=r.x2,o=r.y1,l=r.y2,s=r.className,u=r.alwaysShow,c=r.clipPathId;dr(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=Je(i),d=Je(a),p=Je(o),h=Je(l),m=this.props.shape;if(!f&&!d&&!p&&!h&&!m)return null;var b=JJ(f,d,p,h,this.props);if(!b&&!m)return null;var v=Hn(this.props,"hidden")?"url(#".concat(c,")"):void 0;return j.createElement(Te,{className:ue("recharts-reference-area",s)},t.renderRect(m,aS(aS({clipPath:v},ne(this.props,!0)),b)),ut.renderCallByParent(this.props,b))}}])}(j.Component);ip(ap,"displayName","ReferenceArea");ip(ap,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});ip(ap,"renderRect",function(e,t){var n;return j.isValidElement(e)?n=j.cloneElement(e,t):te(e)?n=e(t):n=j.createElement(P0,Zv({},t,{className:"recharts-reference-area-rect"})),n});function oS(e){return ree(e)||nee(e)||tee(e)||eee()}function eee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
253
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tee(e,t){if(e){if(typeof e=="string")return eg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eg(e,t)}}function nee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ree(e){if(Array.isArray(e))return eg(e)}function eg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var tg=function(t,n,r,i,a){var o=On(t,M0),l=On(t,rp),s=[].concat(oS(o),oS(l)),u=On(t,ap),c="".concat(i,"Id"),f=i[0],d=n;if(s.length&&(d=s.reduce(function(m,b){if(b.props[c]===r&&Hn(b.props,"extendDomain")&&G(b.props[f])){var v=b.props[f];return[Math.min(m[0],v),Math.max(m[1],v)]}return m},d)),u.length){var p="".concat(f,"1"),h="".concat(f,"2");d=u.reduce(function(m,b){if(b.props[c]===r&&Hn(b.props,"extendDomain")&&G(b.props[p])&&G(b.props[h])){var v=b.props[p],y=b.props[h];return[Math.min(m[0],v,y),Math.max(m[1],v,y)]}return m},d)}return a&&a.length&&(d=a.reduce(function(m,b){return G(b)?[Math.min(m[0],b),Math.max(m[1],b)]:m},d)),d},cT={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(s,u,c){this.fn=s,this.context=u,this.once=c||!1}function a(s,u,c,f,d){if(typeof c!="function")throw new TypeError("The listener must be a function");var p=new i(c,f||s,d),h=n?n+u:u;return s._events[h]?s._events[h].fn?s._events[h]=[s._events[h],p]:s._events[h].push(p):(s._events[h]=p,s._eventsCount++),s}function o(s,u){--s._eventsCount===0?s._events=new r:delete s._events[u]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],c,f;if(this._eventsCount===0)return u;for(f in c=this._events)t.call(c,f)&&u.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},l.prototype.listeners=function(u){var c=n?n+u:u,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,p=f.length,h=new Array(p);d<p;d++)h[d]=f[d].fn;return h},l.prototype.listenerCount=function(u){var c=n?n+u:u,f=this._events[c];return f?f.fn?1:f.length:0},l.prototype.emit=function(u,c,f,d,p,h){var m=n?n+u:u;if(!this._events[m])return!1;var b=this._events[m],v=arguments.length,y,x;if(b.fn){switch(b.once&&this.removeListener(u,b.fn,void 0,!0),v){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,c),!0;case 3:return b.fn.call(b.context,c,f),!0;case 4:return b.fn.call(b.context,c,f,d),!0;case 5:return b.fn.call(b.context,c,f,d,p),!0;case 6:return b.fn.call(b.context,c,f,d,p,h),!0}for(x=1,y=new Array(v-1);x<v;x++)y[x-1]=arguments[x];b.fn.apply(b.context,y)}else{var E=b.length,_;for(x=0;x<E;x++)switch(b[x].once&&this.removeListener(u,b[x].fn,void 0,!0),v){case 1:b[x].fn.call(b[x].context);break;case 2:b[x].fn.call(b[x].context,c);break;case 3:b[x].fn.call(b[x].context,c,f);break;case 4:b[x].fn.call(b[x].context,c,f,d);break;default:if(!y)for(_=1,y=new Array(v-1);_<v;_++)y[_-1]=arguments[_];b[x].fn.apply(b[x].context,y)}}return!0},l.prototype.on=function(u,c,f){return a(this,u,c,f,!1)},l.prototype.once=function(u,c,f){return a(this,u,c,f,!0)},l.prototype.removeListener=function(u,c,f,d){var p=n?n+u:u;if(!this._events[p])return this;if(!c)return o(this,p),this;var h=this._events[p];if(h.fn)h.fn===c&&(!d||h.once)&&(!f||h.context===f)&&o(this,p);else{for(var m=0,b=[],v=h.length;m<v;m++)(h[m].fn!==c||d&&!h[m].once||f&&h[m].context!==f)&&b.push(h[m]);b.length?this._events[p]=b.length===1?b[0]:b:o(this,p)}return this},l.prototype.removeAllListeners=function(u){var c;return u?(c=n?n+u:u,this._events[c]&&o(this,c)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l})(cT);var iee=cT.exports;const aee=me(iee);var wh=new aee,_h="recharts.syncMouseEvents";function ks(e){"@babel/helpers - typeof";return ks=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},ks(e)}function oee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fT(r.key),r)}}function see(e,t,n){return t&&lee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sh(e,t,n){return t=fT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fT(e){var t=uee(e,"string");return ks(t)=="symbol"?t:t+""}function uee(e,t){if(ks(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ks(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var cee=function(){function e(){oee(this,e),Sh(this,"activeIndex",0),Sh(this,"coordinateList",[]),Sh(this,"layout","horizontal")}return see(e,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,a=i===void 0?null:i,o=n.container,l=o===void 0?null:o,s=n.layout,u=s===void 0?null:s,c=n.offset,f=c===void 0?null:c,d=n.mouseHandlerCallback,p=d===void 0?null:d;this.coordinateList=(r=a??this.coordinateList)!==null&&r!==void 0?r:[],this.container=l??this.container,this.layout=u??this.layout,this.offset=f??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(n){if(this.coordinateList.length!==0)switch(n.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(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,l=i.height,s=this.coordinateList[this.activeIndex].coordinate,u=((n=window)===null||n===void 0?void 0:n.scrollX)||0,c=((r=window)===null||r===void 0?void 0:r.scrollY)||0,f=a+s+u,d=o+this.offset.top+l/2+c;this.mouseHandlerCallback({pageX:f,pageY:d})}}}])}();function fee(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],i=e==null?void 0:e[1];if(r&&i&&G(r)&&G(i))return!0}return!1}function dee(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function dT(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,a=e.endAngle,o=Se(t,n,r,i),l=Se(t,n,r,a);return{points:[o,l],cx:t,cy:n,radius:r,startAngle:i,endAngle:a}}function pee(e,t,n){var r,i,a,o;if(e==="horizontal")r=t.x,a=r,i=n.top,o=n.top+n.height;else if(e==="vertical")i=t.y,o=i,r=n.left,a=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var l=t.cx,s=t.cy,u=t.innerRadius,c=t.outerRadius,f=t.angle,d=Se(l,s,u,f),p=Se(l,s,c,f);r=d.x,i=d.y,a=p.x,o=p.y}else return dT(t);return[{x:r,y:i},{x:a,y:o}]}function Ns(e){"@babel/helpers - typeof";return Ns=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},Ns(e)}function lS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lS(Object(n),!0).forEach(function(r){hee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hee(e,t,n){return t=mee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mee(e){var t=vee(e,"string");return Ns(t)=="symbol"?t:t+""}function vee(e,t){if(Ns(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ns(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gee(e){var t,n,r=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,l=e.activePayload,s=e.offset,u=e.activeTooltipIndex,c=e.tooltipAxisBandSize,f=e.layout,d=e.chartName,p=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!p||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var h,m=Cv;if(d==="ScatterChart")h=o,m=CX;else if(d==="BarChart")h=dee(f,o,s,c),m=P0;else if(f==="radial"){var b=dT(o),v=b.cx,y=b.cy,x=b.radius,E=b.startAngle,_=b.endAngle;h={cx:v,cy:y,startAngle:E,endAngle:_,innerRadius:x,outerRadius:x},m=$j}else h={points:pee(f,o,s)},m=Cv;var S=Gu(Gu(Gu(Gu({stroke:"#ccc",pointerEvents:"none"},s),h),ne(p,!1)),{},{payload:l,payloadIndex:u,className:ue("recharts-tooltip-cursor",p.className)});return w.isValidElement(p)?w.cloneElement(p,S):w.createElement(m,S)}var yee=["item"],xee=["children","className","width","height","style","compact","title","desc"];function vo(e){"@babel/helpers - typeof";return vo=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},vo(e)}function Ca(){return Ca=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ca.apply(this,arguments)}function sS(e,t){return _ee(e)||wee(e,t)||hT(e,t)||bee()}function bee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
254
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wee(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function _ee(e){if(Array.isArray(e))return e}function uS(e,t){if(e==null)return{};var n=See(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function See(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Eee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mT(r.key),r)}}function $ee(e,t,n){return t&&Oee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pee(e,t,n){return t=kf(t),jee(e,pT()?Reflect.construct(t,n||[],kf(e).constructor):t.apply(e,n))}function jee(e,t){if(t&&(vo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tee(e)}function Tee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pT=function(){return!!e})()}function kf(e){return kf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},kf(e)}function Aee(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&&ng(e,t)}function ng(e,t){return ng=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ng(e,t)}function go(e){return Nee(e)||kee(e)||hT(e)||Cee()}function Cee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
255
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hT(e,t){if(e){if(typeof e=="string")return rg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rg(e,t)}}function kee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Nee(e){if(Array.isArray(e))return rg(e)}function rg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cS(Object(n),!0).forEach(function(r){X(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function X(e,t,n){return t=mT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mT(e){var t=Mee(e,"string");return vo(t)=="symbol"?t:t+""}function Mee(e,t){if(vo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(vo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Iee={xAxis:["bottom","top"],yAxis:["left","right"]},Ree={width:"100%",height:"100%"},vT={x:0,y:0};function qu(e){return e}var Lee=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},Dee=function(t,n,r,i){var a=n.find(function(c){return c&&c.index===r});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 z(z(z({},i),Se(i.cx,i.cy,l,o)),{},{angle:o,radius:l})}var s=a.coordinate,u=i.angle;return z(z(z({},i),Se(i.cx,i.cy,s,u)),{},{angle:u,radius:s})}return vT},op=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,a=n.dataEndIndex,o=(r??[]).reduce(function(l,s){var u=s.props.data;return u&&u.length?[].concat(go(l),go(u)):l},[]);return o.length>0?o:t&&t.length&&G(i)&&G(a)?t.slice(i,a+1):[]};function gT(e){return e==="number"?[0,"auto"]:void 0}var ig=function(t,n,r,i){var a=t.graphicalItems,o=t.tooltipAxis,l=op(n,t);return r<0||!a||!a.length||r>=l.length?null:a.reduce(function(s,u){var c,f=(c=u.props.data)!==null&&c!==void 0?c:n;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var p=f===void 0?l:f;d=Lm(p,o.dataKey,i)}else d=f&&f[r]||l[r];return d?[].concat(go(s),[PG(u,d)]):s},[])},fS=function(t,n,r,i){var a=i||{x:t.chartX,y:t.chartY},o=Lee(a,r),l=t.orderedTooltipTicks,s=t.tooltipAxis,u=t.tooltipTicks,c=fG(o,l,u,s);if(c>=0&&u){var f=u[c]&&u[c].value,d=ig(t,n,c,f),p=Dee(r,l,c,a);return{activeTooltipIndex:c,activeLabel:f,activePayload:d,activeCoordinate:p}}return null},Fee=function(t,n){var r=n.axes,i=n.graphicalItems,a=n.axisType,o=n.axisIdKey,l=n.stackGroups,s=n.dataStartIndex,u=n.dataEndIndex,c=t.layout,f=t.children,d=t.stackOffset,p=yj(c,a);return r.reduce(function(h,m){var b,v=m.type.defaultProps!==void 0?z(z({},m.type.defaultProps),m.props):m.props,y=v.type,x=v.dataKey,E=v.allowDataOverflow,_=v.allowDuplicatedCategory,S=v.scale,O=v.ticks,$=v.includeHidden,T=v[o];if(h[T])return h;var C=op(t.data,{graphicalItems:i.filter(function(U){var V,re=o in U.props?U.props[o]:(V=U.type.defaultProps)===null||V===void 0?void 0:V[o];return re===T}),dataStartIndex:s,dataEndIndex:u}),A=C.length,N,I,D;fee(v.domain,E,y)&&(N=Ov(v.domain,null,E),p&&(y==="number"||S!=="auto")&&(D=Cl(C,x,"category")));var M=gT(y);if(!N||N.length===0){var F,R=(F=v.domain)!==null&&F!==void 0?F:M;if(x){if(N=Cl(C,x,y),y==="category"&&p){var P=pL(N);_&&P?(I=N,N=$f(0,A)):_||(N=Vw(R,N,m).reduce(function(U,V){return U.indexOf(V)>=0?U:[].concat(go(U),[V])},[]))}else if(y==="category")_?N=N.filter(function(U){return U!==""&&!le(U)}):N=Vw(R,N,m).reduce(function(U,V){return U.indexOf(V)>=0||V===""||le(V)?U:[].concat(go(U),[V])},[]);else if(y==="number"){var k=vG(C,i.filter(function(U){var V,re,ie=o in U.props?U.props[o]:(V=U.type.defaultProps)===null||V===void 0?void 0:V[o],J="hide"in U.props?U.props.hide:(re=U.type.defaultProps)===null||re===void 0?void 0:re.hide;return ie===T&&($||!J)}),x,a,c);k&&(N=k)}p&&(y==="number"||S!=="auto")&&(D=Cl(C,x,"category"))}else p?N=$f(0,A):l&&l[T]&&l[T].hasStack&&y==="number"?N=d==="expand"?[0,1]:xj(l[T].stackGroups,s,u):N=gj(C,i.filter(function(U){var V=o in U.props?U.props[o]:U.type.defaultProps[o],re="hide"in U.props?U.props.hide:U.type.defaultProps.hide;return V===T&&($||!re)}),y,c,!0);if(y==="number")N=tg(f,N,T,a,O),R&&(N=Ov(R,N,E));else if(y==="category"&&R){var B=R,L=N.every(function(U){return B.indexOf(U)>=0});L&&(N=B)}}return z(z({},h),{},X({},T,z(z({},v),{},{axisType:a,domain:N,categoricalDomain:D,duplicateDomain:I,originalDomain:(b=v.domain)!==null&&b!==void 0?b:M,isCategorical:p,layout:c})))},{})},Bee=function(t,n){var r=n.graphicalItems,i=n.Axis,a=n.axisType,o=n.axisIdKey,l=n.stackGroups,s=n.dataStartIndex,u=n.dataEndIndex,c=t.layout,f=t.children,d=op(t.data,{graphicalItems:r,dataStartIndex:s,dataEndIndex:u}),p=d.length,h=yj(c,a),m=-1;return r.reduce(function(b,v){var y=v.type.defaultProps!==void 0?z(z({},v.type.defaultProps),v.props):v.props,x=y[o],E=gT("number");if(!b[x]){m++;var _;return h?_=$f(0,p):l&&l[x]&&l[x].hasStack?(_=xj(l[x].stackGroups,s,u),_=tg(f,_,x,a)):(_=Ov(E,gj(d,r.filter(function(S){var O,$,T=o in S.props?S.props[o]:(O=S.type.defaultProps)===null||O===void 0?void 0:O[o],C="hide"in S.props?S.props.hide:($=S.type.defaultProps)===null||$===void 0?void 0:$.hide;return T===x&&!C}),"number",c),i.defaultProps.allowDataOverflow),_=tg(f,_,x,a)),z(z({},b),{},X({},x,z(z({axisType:a},i.defaultProps),{},{hide:!0,orientation:En(Iee,"".concat(a,".").concat(m%2),null),domain:_,originalDomain:E,isCategorical:h,layout:c})))}return b},{})},zee=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,a=n.AxisComp,o=n.graphicalItems,l=n.stackGroups,s=n.dataStartIndex,u=n.dataEndIndex,c=t.children,f="".concat(i,"Id"),d=On(c,a),p={};return d&&d.length?p=Fee(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:l,dataStartIndex:s,dataEndIndex:u}):o&&o.length&&(p=Bee(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:l,dataStartIndex:s,dataEndIndex:u})),p},Uee=function(t){var n=ha(t),r=gl(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:Zy(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:$v(n,r)}},dS=function(t){var n=t.children,r=t.defaultShowTooltip,i=Jt(n,fo),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:!!r}},Hee=function(t){return!t||!t.length?!1:t.some(function(n){var r=fr(n&&n.type);return r&&r.indexOf("Bar")>=0})},pS=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"}},Wee=function(t,n){var r=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,l=t.yAxisMap,s=l===void 0?{}:l,u=r.width,c=r.height,f=r.children,d=r.margin||{},p=Jt(f,fo),h=Jt(f,Da),m=Object.keys(s).reduce(function(_,S){var O=s[S],$=O.orientation;return!O.mirror&&!O.hide?z(z({},_),{},X({},$,_[$]+O.width)):_},{left:d.left||0,right:d.right||0}),b=Object.keys(o).reduce(function(_,S){var O=o[S],$=O.orientation;return!O.mirror&&!O.hide?z(z({},_),{},X({},$,En(_,"".concat($))+O.height)):_},{top:d.top||0,bottom:d.bottom||0}),v=z(z({},b),m),y=v.bottom;p&&(v.bottom+=p.props.height||fo.defaultProps.height),h&&n&&(v=hG(v,i,r,n));var x=u-v.left-v.right,E=c-v.top-v.bottom;return z(z({brushBottom:y},v),{},{width:Math.max(x,0),height:Math.max(E,0)})},Vee=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},yT=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,l=o===void 0?["axis"]:o,s=t.axisComponents,u=t.legendContent,c=t.formatAxisMap,f=t.defaultProps,d=function(v,y){var x=y.graphicalItems,E=y.stackGroups,_=y.offset,S=y.updateId,O=y.dataStartIndex,$=y.dataEndIndex,T=v.barSize,C=v.layout,A=v.barGap,N=v.barCategoryGap,I=v.maxBarSize,D=pS(C),M=D.numericAxisName,F=D.cateAxisName,R=Hee(x),P=[];return x.forEach(function(k,B){var L=op(v.data,{graphicalItems:[k],dataStartIndex:O,dataEndIndex:$}),U=k.type.defaultProps!==void 0?z(z({},k.type.defaultProps),k.props):k.props,V=U.dataKey,re=U.maxBarSize,ie=U["".concat(M,"Id")],J=U["".concat(F,"Id")],Ce={},Oe=s.reduce(function(gi,yi){var _p=y["".concat(yi.axisType,"Map")],sx=U["".concat(yi.axisType,"Id")];_p&&_p[sx]||yi.axisType==="zAxis"||io();var ux=_p[sx];return z(z({},gi),{},X(X({},yi.axisType,ux),"".concat(yi.axisType,"Ticks"),gl(ux)))},Ce),K=Oe[F],Z=Oe["".concat(F,"Ticks")],ee=E&&E[ie]&&E[ie].hasStack&&OG(k,E[ie].stackGroups),H=fr(k.type).indexOf("Bar")>=0,ke=$v(K,Z),oe=[],He=R&&dG({barSize:T,stackGroups:E,totalSize:Vee(Oe,F)});if(H){var qe,Tt,Ir=le(re)?I:re,ua=(qe=(Tt=$v(K,Z,!0))!==null&&Tt!==void 0?Tt:Ir)!==null&&qe!==void 0?qe:0;oe=pG({barGap:A,barCategoryGap:N,bandSize:ua!==ke?ua:ke,sizeList:He[J],maxBarSize:Ir}),ua!==ke&&(oe=oe.map(function(gi){return z(z({},gi),{},{position:z(z({},gi.position),{},{offset:gi.position.offset-ua/2})})}))}var hu=k&&k.type&&k.type.getComposedData;hu&&P.push({props:z(z({},hu(z(z({},Oe),{},{displayedData:L,props:v,dataKey:V,item:k,bandSize:ke,barPosition:oe,offset:_,stackedData:ee,layout:C,dataStartIndex:O,dataEndIndex:$}))),{},X(X(X({key:k.key||"item-".concat(B)},M,Oe[M]),F,Oe[F]),"animationId",S)),childIndex:EL(k,v.children),item:k})}),P},p=function(v,y){var x=v.props,E=v.dataStartIndex,_=v.dataEndIndex,S=v.updateId;if(!Fb({props:x}))return null;var O=x.children,$=x.layout,T=x.stackOffset,C=x.data,A=x.reverseStackOrder,N=pS($),I=N.numericAxisName,D=N.cateAxisName,M=On(O,r),F=SG(C,M,"".concat(I,"Id"),"".concat(D,"Id"),T,A),R=s.reduce(function(U,V){var re="".concat(V.axisType,"Map");return z(z({},U),{},X({},re,zee(x,z(z({},V),{},{graphicalItems:M,stackGroups:V.axisType===I&&F,dataStartIndex:E,dataEndIndex:_}))))},{}),P=Wee(z(z({},R),{},{props:x,graphicalItems:M}),y==null?void 0:y.legendBBox);Object.keys(R).forEach(function(U){R[U]=c(x,R[U],P,U.replace("Map",""),n)});var k=R["".concat(D,"Map")],B=Uee(k),L=d(x,z(z({},R),{},{dataStartIndex:E,dataEndIndex:_,updateId:S,graphicalItems:M,stackGroups:F,offset:P}));return z(z({formattedGraphicalItems:L,graphicalItems:M,offset:P,stackGroups:F},B),R)},h=function(b){function v(y){var x,E,_;return Eee(this,v),_=Pee(this,v,[y]),X(_,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),X(_,"accessibilityManager",new cee),X(_,"handleLegendBBoxUpdate",function(S){if(S){var O=_.state,$=O.dataStartIndex,T=O.dataEndIndex,C=O.updateId;_.setState(z({legendBBox:S},p({props:_.props,dataStartIndex:$,dataEndIndex:T,updateId:C},z(z({},_.state),{},{legendBBox:S}))))}}),X(_,"handleReceiveSyncEvent",function(S,O,$){if(_.props.syncId===S){if($===_.eventEmitterSymbol&&typeof _.props.syncMethod!="function")return;_.applySyncEvent(O)}}),X(_,"handleBrushChange",function(S){var O=S.startIndex,$=S.endIndex;if(O!==_.state.dataStartIndex||$!==_.state.dataEndIndex){var T=_.state.updateId;_.setState(function(){return z({dataStartIndex:O,dataEndIndex:$},p({props:_.props,dataStartIndex:O,dataEndIndex:$,updateId:T},_.state))}),_.triggerSyncEvent({dataStartIndex:O,dataEndIndex:$})}}),X(_,"handleMouseEnter",function(S){var O=_.getMouseInfo(S);if(O){var $=z(z({},O),{},{isTooltipActive:!0});_.setState($),_.triggerSyncEvent($);var T=_.props.onMouseEnter;te(T)&&T($,S)}}),X(_,"triggeredAfterMouseMove",function(S){var O=_.getMouseInfo(S),$=O?z(z({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};_.setState($),_.triggerSyncEvent($);var T=_.props.onMouseMove;te(T)&&T($,S)}),X(_,"handleItemMouseEnter",function(S){_.setState(function(){return{isTooltipActive:!0,activeItem:S,activePayload:S.tooltipPayload,activeCoordinate:S.tooltipPosition||{x:S.cx,y:S.cy}}})}),X(_,"handleItemMouseLeave",function(){_.setState(function(){return{isTooltipActive:!1}})}),X(_,"handleMouseMove",function(S){S.persist(),_.throttleTriggeredAfterMouseMove(S)}),X(_,"handleMouseLeave",function(S){_.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};_.setState(O),_.triggerSyncEvent(O);var $=_.props.onMouseLeave;te($)&&$(O,S)}),X(_,"handleOuterEvent",function(S){var O=SL(S),$=En(_.props,"".concat(O));if(O&&te($)){var T,C;/.*touch.*/i.test(O)?C=_.getMouseInfo(S.changedTouches[0]):C=_.getMouseInfo(S),$((T=C)!==null&&T!==void 0?T:{},S)}}),X(_,"handleClick",function(S){var O=_.getMouseInfo(S);if(O){var $=z(z({},O),{},{isTooltipActive:!0});_.setState($),_.triggerSyncEvent($);var T=_.props.onClick;te(T)&&T($,S)}}),X(_,"handleMouseDown",function(S){var O=_.props.onMouseDown;if(te(O)){var $=_.getMouseInfo(S);O($,S)}}),X(_,"handleMouseUp",function(S){var O=_.props.onMouseUp;if(te(O)){var $=_.getMouseInfo(S);O($,S)}}),X(_,"handleTouchMove",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&_.throttleTriggeredAfterMouseMove(S.changedTouches[0])}),X(_,"handleTouchStart",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&_.handleMouseDown(S.changedTouches[0])}),X(_,"handleTouchEnd",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&_.handleMouseUp(S.changedTouches[0])}),X(_,"handleDoubleClick",function(S){var O=_.props.onDoubleClick;if(te(O)){var $=_.getMouseInfo(S);O($,S)}}),X(_,"handleContextMenu",function(S){var O=_.props.onContextMenu;if(te(O)){var $=_.getMouseInfo(S);O($,S)}}),X(_,"triggerSyncEvent",function(S){_.props.syncId!==void 0&&wh.emit(_h,_.props.syncId,S,_.eventEmitterSymbol)}),X(_,"applySyncEvent",function(S){var O=_.props,$=O.layout,T=O.syncMethod,C=_.state.updateId,A=S.dataStartIndex,N=S.dataEndIndex;if(S.dataStartIndex!==void 0||S.dataEndIndex!==void 0)_.setState(z({dataStartIndex:A,dataEndIndex:N},p({props:_.props,dataStartIndex:A,dataEndIndex:N,updateId:C},_.state)));else if(S.activeTooltipIndex!==void 0){var I=S.chartX,D=S.chartY,M=S.activeTooltipIndex,F=_.state,R=F.offset,P=F.tooltipTicks;if(!R)return;if(typeof T=="function")M=T(P,S);else if(T==="value"){M=-1;for(var k=0;k<P.length;k++)if(P[k].value===S.activeLabel){M=k;break}}var B=z(z({},R),{},{x:R.left,y:R.top}),L=Math.min(I,B.x+B.width),U=Math.min(D,B.y+B.height),V=P[M]&&P[M].value,re=ig(_.state,_.props.data,M),ie=P[M]?{x:$==="horizontal"?P[M].coordinate:L,y:$==="horizontal"?U:P[M].coordinate}:vT;_.setState(z(z({},S),{},{activeLabel:V,activeCoordinate:ie,activePayload:re,activeTooltipIndex:M}))}else _.setState(S)}),X(_,"renderCursor",function(S){var O,$=_.state,T=$.isTooltipActive,C=$.activeCoordinate,A=$.activePayload,N=$.offset,I=$.activeTooltipIndex,D=$.tooltipAxisBandSize,M=_.getTooltipEventType(),F=(O=S.props.active)!==null&&O!==void 0?O:T,R=_.props.layout,P=S.key||"_recharts-cursor";return j.createElement(gee,{key:P,activeCoordinate:C,activePayload:A,activeTooltipIndex:I,chartName:n,element:S,isActive:F,layout:R,offset:N,tooltipAxisBandSize:D,tooltipEventType:M})}),X(_,"renderPolarAxis",function(S,O,$){var T=En(S,"type.axisType"),C=En(_.state,"".concat(T,"Map")),A=S.type.defaultProps,N=A!==void 0?z(z({},A),S.props):S.props,I=C&&C[N["".concat(T,"Id")]];return w.cloneElement(S,z(z({},I),{},{className:ue(T,I.className),key:S.key||"".concat(O,"-").concat($),ticks:gl(I,!0)}))}),X(_,"renderPolarGrid",function(S){var O=S.props,$=O.radialLines,T=O.polarAngles,C=O.polarRadius,A=_.state,N=A.radiusAxisMap,I=A.angleAxisMap,D=ha(N),M=ha(I),F=M.cx,R=M.cy,P=M.innerRadius,k=M.outerRadius;return w.cloneElement(S,{polarAngles:Array.isArray(T)?T:gl(M,!0).map(function(B){return B.coordinate}),polarRadius:Array.isArray(C)?C:gl(D,!0).map(function(B){return B.coordinate}),cx:F,cy:R,innerRadius:P,outerRadius:k,key:S.key||"polar-grid",radialLines:$})}),X(_,"renderLegend",function(){var S=_.state.formattedGraphicalItems,O=_.props,$=O.children,T=O.width,C=O.height,A=_.props.margin||{},N=T-(A.left||0)-(A.right||0),I=mj({children:$,formattedGraphicalItems:S,legendWidth:N,legendContent:u});if(!I)return null;var D=I.item,M=uS(I,yee);return w.cloneElement(D,z(z({},M),{},{chartWidth:T,chartHeight:C,margin:A,onBBoxUpdate:_.handleLegendBBoxUpdate}))}),X(_,"renderTooltip",function(){var S,O=_.props,$=O.children,T=O.accessibilityLayer,C=Jt($,tr);if(!C)return null;var A=_.state,N=A.isTooltipActive,I=A.activeCoordinate,D=A.activePayload,M=A.activeLabel,F=A.offset,R=(S=C.props.active)!==null&&S!==void 0?S:N;return w.cloneElement(C,{viewBox:z(z({},F),{},{x:F.left,y:F.top}),active:R,label:M,payload:R?D:[],coordinate:I,accessibilityLayer:T})}),X(_,"renderBrush",function(S){var O=_.props,$=O.margin,T=O.data,C=_.state,A=C.offset,N=C.dataStartIndex,I=C.dataEndIndex,D=C.updateId;return w.cloneElement(S,{key:S.key||"_recharts-brush",onChange:Uu(_.handleBrushChange,S.props.onChange),data:T,x:G(S.props.x)?S.props.x:A.left,y:G(S.props.y)?S.props.y:A.top+A.height+A.brushBottom-($.bottom||0),width:G(S.props.width)?S.props.width:A.width,startIndex:N,endIndex:I,updateId:"brush-".concat(D)})}),X(_,"renderReferenceElement",function(S,O,$){if(!S)return null;var T=_,C=T.clipPathId,A=_.state,N=A.xAxisMap,I=A.yAxisMap,D=A.offset,M=S.type.defaultProps||{},F=S.props,R=F.xAxisId,P=R===void 0?M.xAxisId:R,k=F.yAxisId,B=k===void 0?M.yAxisId:k;return w.cloneElement(S,{key:S.key||"".concat(O,"-").concat($),xAxis:N[P],yAxis:I[B],viewBox:{x:D.left,y:D.top,width:D.width,height:D.height},clipPathId:C})}),X(_,"renderActivePoints",function(S){var O=S.item,$=S.activePoint,T=S.basePoint,C=S.childIndex,A=S.isRange,N=[],I=O.props.key,D=O.item.type.defaultProps!==void 0?z(z({},O.item.type.defaultProps),O.item.props):O.item.props,M=D.activeDot,F=D.dataKey,R=z(z({index:C,dataKey:F,cx:$.x,cy:$.y,r:4,fill:$0(O.item),strokeWidth:2,stroke:"#fff",payload:$.payload,value:$.value},ne(M,!1)),zc(M));return N.push(v.renderActiveDot(M,R,"".concat(I,"-activePoint-").concat(C))),T?N.push(v.renderActiveDot(M,z(z({},R),{},{cx:T.x,cy:T.y}),"".concat(I,"-basePoint-").concat(C))):A&&N.push(null),N}),X(_,"renderGraphicChild",function(S,O,$){var T=_.filterFormatItem(S,O,$);if(!T)return null;var C=_.getTooltipEventType(),A=_.state,N=A.isTooltipActive,I=A.tooltipAxis,D=A.activeTooltipIndex,M=A.activeLabel,F=_.props.children,R=Jt(F,tr),P=T.props,k=P.points,B=P.isRange,L=P.baseLine,U=T.item.type.defaultProps!==void 0?z(z({},T.item.type.defaultProps),T.item.props):T.item.props,V=U.activeDot,re=U.hide,ie=U.activeBar,J=U.activeShape,Ce=!!(!re&&N&&R&&(V||ie||J)),Oe={};C!=="axis"&&R&&R.props.trigger==="click"?Oe={onClick:Uu(_.handleItemMouseEnter,S.props.onClick)}:C!=="axis"&&(Oe={onMouseLeave:Uu(_.handleItemMouseLeave,S.props.onMouseLeave),onMouseEnter:Uu(_.handleItemMouseEnter,S.props.onMouseEnter)});var K=w.cloneElement(S,z(z({},T.props),Oe));function Z(yi){return typeof I.dataKey=="function"?I.dataKey(yi.payload):null}if(Ce)if(D>=0){var ee,H;if(I.dataKey&&!I.allowDuplicatedCategory){var ke=typeof I.dataKey=="function"?Z:"payload.".concat(I.dataKey.toString());ee=Lm(k,ke,M),H=B&&L&&Lm(L,ke,M)}else ee=k==null?void 0:k[D],H=B&&L&&L[D];if(J||ie){var oe=S.props.activeIndex!==void 0?S.props.activeIndex:D;return[w.cloneElement(S,z(z(z({},T.props),Oe),{},{activeIndex:oe})),null,null]}if(!le(ee))return[K].concat(go(_.renderActivePoints({item:T,activePoint:ee,basePoint:H,childIndex:D,isRange:B})))}else{var He,qe=(He=_.getItemByXY(_.state.activeCoordinate))!==null&&He!==void 0?He:{graphicalItem:K},Tt=qe.graphicalItem,Ir=Tt.item,ua=Ir===void 0?S:Ir,hu=Tt.childIndex,gi=z(z(z({},T.props),Oe),{},{activeIndex:hu});return[w.cloneElement(ua,gi),null,null]}return B?[K,null,null]:[K,null]}),X(_,"renderCustomized",function(S,O,$){return w.cloneElement(S,z(z({key:"recharts-customized-".concat($)},_.props),_.state))}),X(_,"renderMap",{CartesianGrid:{handler:qu,once:!0},ReferenceArea:{handler:_.renderReferenceElement},ReferenceLine:{handler:qu},ReferenceDot:{handler:_.renderReferenceElement},XAxis:{handler:qu},YAxis:{handler:qu},Brush:{handler:_.renderBrush,once:!0},Bar:{handler:_.renderGraphicChild},Line:{handler:_.renderGraphicChild},Area:{handler:_.renderGraphicChild},Radar:{handler:_.renderGraphicChild},RadialBar:{handler:_.renderGraphicChild},Scatter:{handler:_.renderGraphicChild},Pie:{handler:_.renderGraphicChild},Funnel:{handler:_.renderGraphicChild},Tooltip:{handler:_.renderCursor,once:!0},PolarGrid:{handler:_.renderPolarGrid,once:!0},PolarAngleAxis:{handler:_.renderPolarAxis},PolarRadiusAxis:{handler:_.renderPolarAxis},Customized:{handler:_.renderCustomized}}),_.clipPathId="".concat((x=y.id)!==null&&x!==void 0?x:Td("recharts"),"-clip"),_.throttleTriggeredAfterMouseMove=h2(_.triggeredAfterMouseMove,(E=y.throttleDelay)!==null&&E!==void 0?E:1e3/60),_.state={},_}return Aee(v,b),$ee(v,[{key:"componentDidMount",value:function(){var x,E;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(E=this.props.margin.top)!==null&&E!==void 0?E:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,E=x.children,_=x.data,S=x.height,O=x.layout,$=Jt(E,tr);if($){var T=$.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var C=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,A=ig(this.state,_,T,C),N=this.state.tooltipTicks[T].coordinate,I=(this.state.offset.top+S)/2,D=O==="horizontal",M=D?{x:N,y:I}:{y:N,x:I},F=this.state.formattedGraphicalItems.find(function(P){var k=P.item;return k.type.name==="Scatter"});F&&(M=z(z({},M),F.props.points[T].tooltipPosition),A=F.props.points[T].tooltipPayload);var R={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:C,activePayload:A,activeCoordinate:M};this.setState(R),this.renderCursor($),this.accessibilityManager.setIndex(T)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,E){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==E.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var _,S;this.accessibilityManager.setDetails({offset:{left:(_=this.props.margin.left)!==null&&_!==void 0?_:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0}})}return null}},{key:"componentDidUpdate",value:function(x){Bm([Jt(x.children,tr)],[Jt(this.props.children,tr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=Jt(this.props.children,tr);if(x&&typeof x.props.shared=="boolean"){var E=x.props.shared?"axis":"item";return l.indexOf(E)>=0?E:a}return a}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var E=this.container,_=E.getBoundingClientRect(),S=FU(_),O={chartX:Math.round(x.pageX-S.left),chartY:Math.round(x.pageY-S.top)},$=_.width/E.offsetWidth||1,T=this.inRange(O.chartX,O.chartY,$);if(!T)return null;var C=this.state,A=C.xAxisMap,N=C.yAxisMap,I=this.getTooltipEventType();if(I!=="axis"&&A&&N){var D=ha(A).scale,M=ha(N).scale,F=D&&D.invert?D.invert(O.chartX):null,R=M&&M.invert?M.invert(O.chartY):null;return z(z({},O),{},{xValue:F,yValue:R})}var P=fS(this.state,this.props.data,this.props.layout,T);return P?z(z({},O),P):null}},{key:"inRange",value:function(x,E){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,S=this.props.layout,O=x/_,$=E/_;if(S==="horizontal"||S==="vertical"){var T=this.state.offset,C=O>=T.left&&O<=T.left+T.width&&$>=T.top&&$<=T.top+T.height;return C?{x:O,y:$}:null}var A=this.state,N=A.angleAxisMap,I=A.radiusAxisMap;if(N&&I){var D=ha(N);return qw({x:O,y:$},D)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,E=this.getTooltipEventType(),_=Jt(x,tr),S={};_&&E==="axis"&&(_.props.trigger==="click"?S={onClick:this.handleClick}:S={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=zc(this.props,this.handleOuterEvent);return z(z({},O),S)}},{key:"addListener",value:function(){wh.on(_h,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){wh.removeListener(_h,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,E,_){for(var S=this.state.formattedGraphicalItems,O=0,$=S.length;O<$;O++){var T=S[O];if(T.item===x||T.props.key===x.key||E===fr(T.item.type)&&_===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,E=this.state.offset,_=E.left,S=E.top,O=E.height,$=E.width;return j.createElement("defs",null,j.createElement("clipPath",{id:x},j.createElement("rect",{x:_,y:S,height:O,width:$})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(E,_){var S=sS(_,2),O=S[0],$=S[1];return z(z({},E),{},X({},O,$.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(E,_){var S=sS(_,2),O=S[0],$=S[1];return z(z({},E),{},X({},O,$.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var E;return(E=this.state.xAxisMap)===null||E===void 0||(E=E[x])===null||E===void 0?void 0:E.scale}},{key:"getYScaleByAxisId",value:function(x){var E;return(E=this.state.yAxisMap)===null||E===void 0||(E=E[x])===null||E===void 0?void 0:E.scale}},{key:"getItemByXY",value:function(x){var E=this.state,_=E.formattedGraphicalItems,S=E.activeItem;if(_&&_.length)for(var O=0,$=_.length;O<$;O++){var T=_[O],C=T.props,A=T.item,N=A.type.defaultProps!==void 0?z(z({},A.type.defaultProps),A.props):A.props,I=fr(A.type);if(I==="Bar"){var D=(C.data||[]).find(function(P){return fX(x,P)});if(D)return{graphicalItem:T,payload:D}}else if(I==="RadialBar"){var M=(C.data||[]).find(function(P){return qw(x,P)});if(M)return{graphicalItem:T,payload:M}}else if(ep(T,S)||tp(T,S)||Ts(T,S)){var F=XQ({graphicalItem:T,activeTooltipItem:S,itemData:N.data}),R=N.activeIndex===void 0?F:N.activeIndex;return{graphicalItem:z(z({},T),{},{childIndex:R}),payload:Ts(T,S)?N.data[F]:T.props.data[F]}}}return null}},{key:"render",value:function(){var x=this;if(!Fb(this))return null;var E=this.props,_=E.children,S=E.className,O=E.width,$=E.height,T=E.style,C=E.compact,A=E.title,N=E.desc,I=uS(E,xee),D=ne(I,!1);if(C)return j.createElement(Z_,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},j.createElement(Um,Ca({},D,{width:O,height:$,title:A,desc:N}),this.renderClipPath(),zb(_,this.renderMap)));if(this.props.accessibilityLayer){var M,F;D.tabIndex=(M=this.props.tabIndex)!==null&&M!==void 0?M:0,D.role=(F=this.props.role)!==null&&F!==void 0?F:"application",D.onKeyDown=function(P){x.accessibilityManager.keyboardEvent(P)},D.onFocus=function(){x.accessibilityManager.focus()}}var R=this.parseEventsOfWrapper();return j.createElement(Z_,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},j.createElement("div",Ca({className:ue("recharts-wrapper",S),style:z({position:"relative",cursor:"default",width:O,height:$},T)},R,{ref:function(k){x.container=k}}),j.createElement(Um,Ca({},D,{width:O,height:$,title:A,desc:N,style:Ree}),this.renderClipPath(),zb(_,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(w.Component);X(h,"displayName",n),X(h,"defaultProps",z({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),X(h,"getDerivedStateFromProps",function(b,v){var y=b.dataKey,x=b.data,E=b.children,_=b.width,S=b.height,O=b.layout,$=b.stackOffset,T=b.margin,C=v.dataStartIndex,A=v.dataEndIndex;if(v.updateId===void 0){var N=dS(b);return z(z(z({},N),{},{updateId:0},p(z(z({props:b},N),{},{updateId:0}),v)),{},{prevDataKey:y,prevData:x,prevWidth:_,prevHeight:S,prevLayout:O,prevStackOffset:$,prevMargin:T,prevChildren:E})}if(y!==v.prevDataKey||x!==v.prevData||_!==v.prevWidth||S!==v.prevHeight||O!==v.prevLayout||$!==v.prevStackOffset||!Dm(T,v.prevMargin)){var I=dS(b),D={chartX:v.chartX,chartY:v.chartY,isTooltipActive:v.isTooltipActive},M=z(z({},fS(v,x,O)),{},{updateId:v.updateId+1}),F=z(z(z({},I),D),M);return z(z(z({},F),p(z({props:b},F),v)),{},{prevDataKey:y,prevData:x,prevWidth:_,prevHeight:S,prevLayout:O,prevStackOffset:$,prevMargin:T,prevChildren:E})}if(!Bm(E,v.prevChildren)){var R,P,k,B,L=Jt(E,fo),U=L&&(R=(P=L.props)===null||P===void 0?void 0:P.startIndex)!==null&&R!==void 0?R:C,V=L&&(k=(B=L.props)===null||B===void 0?void 0:B.endIndex)!==null&&k!==void 0?k:A,re=U!==C||V!==A,ie=!le(x),J=ie&&!re?v.updateId:v.updateId+1;return z(z({updateId:J},p(z(z({props:b},v),{},{updateId:J,dataStartIndex:U,dataEndIndex:V}),v)),{},{prevChildren:E,dataStartIndex:U,dataEndIndex:V})}return null}),X(h,"renderActiveDot",function(b,v,y){var x;return w.isValidElement(b)?x=w.cloneElement(b,v):te(b)?x=b(v):x=j.createElement(j0,v),j.createElement(Te,{className:"recharts-active-dot",key:y},x)});var m=w.forwardRef(function(v,y){return j.createElement(h,Ca({},v,{ref:y}))});return m.displayName=h.displayName,m},nu=yT({chartName:"PieChart",GraphicalChild:qt,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Jd},{axisType:"radiusAxis",AxisComp:Qd}],formatAxisMap:RG,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});function Kee(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Gee=Kee,qee=A0,Yee=dd,Xee=Object.prototype,Qee=Xee.hasOwnProperty;function Zee(e,t,n){var r=e[t];(!(Qee.call(e,t)&&Yee(r,n))||n===void 0&&!(t in e))&&qee(e,t,n)}var xT=Zee,Jee=xT,ete=A0;function tte(e,t,n,r){var i=!n;n||(n={});for(var a=-1,o=t.length;++a<o;){var l=t[a],s=r?r(n[l],e[l],l,n,e):void 0;s===void 0&&(s=e[l]),i?ete(n,l,s):Jee(n,l,s)}return n}var ru=tte,nte=ru,rte=Qs;function ite(e,t){return e&&nte(t,rte(t),e)}var ate=ite;function ote(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var lte=ote,ste=kn,ute=qy,cte=lte,fte=Object.prototype,dte=fte.hasOwnProperty;function pte(e){if(!ste(e))return cte(e);var t=ute(e),n=[];for(var r in e)r=="constructor"&&(t||!dte.call(e,r))||n.push(r);return n}var hte=pte,mte=KP,vte=hte,gte=Xs;function yte(e){return gte(e)?mte(e,!0):vte(e)}var I0=yte,xte=ru,bte=I0;function wte(e,t){return e&&xte(t,bte(t),e)}var _te=wte,Nf={exports:{}};Nf.exports;(function(e,t){var n=An,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a?n.Buffer:void 0,l=o?o.allocUnsafe:void 0;function s(u,c){if(c)return u.slice();var f=u.length,d=l?l(f):new u.constructor(f);return u.copy(d),d}e.exports=s})(Nf,Nf.exports);var Ste=Nf.exports;function Ete(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Ote=Ete,$te=ru,Pte=Uy;function jte(e,t){return $te(e,Pte(e),t)}var Tte=jte,Ate=zy,Cte=T0,kte=Uy,Nte=HP,Mte=Object.getOwnPropertySymbols,Ite=Mte?function(e){for(var t=[];e;)Ate(t,kte(e)),e=Cte(e);return t}:Nte,bT=Ite,Rte=ru,Lte=bT;function Dte(e,t){return Rte(e,Lte(e),t)}var Fte=Dte,Bte=UP,zte=bT,Ute=I0;function Hte(e){return Bte(e,Ute,zte)}var wT=Hte,Wte=Object.prototype,Vte=Wte.hasOwnProperty;function Kte(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Vte.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Gte=Kte,hS=zP;function qte(e){var t=new e.constructor(e.byteLength);return new hS(t).set(new hS(e)),t}var R0=qte,Yte=R0;function Xte(e,t){var n=t?Yte(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Qte=Xte,Zte=/\w*$/;function Jte(e){var t=new e.constructor(e.source,Zte.exec(e));return t.lastIndex=e.lastIndex,t}var ene=Jte,mS=jo,vS=mS?mS.prototype:void 0,gS=vS?vS.valueOf:void 0;function tne(e){return gS?Object(gS.call(e)):{}}var nne=tne,rne=R0;function ine(e,t){var n=t?rne(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var ane=ine,one=R0,lne=Qte,sne=ene,une=nne,cne=ane,fne="[object Boolean]",dne="[object Date]",pne="[object Map]",hne="[object Number]",mne="[object RegExp]",vne="[object Set]",gne="[object String]",yne="[object Symbol]",xne="[object ArrayBuffer]",bne="[object DataView]",wne="[object Float32Array]",_ne="[object Float64Array]",Sne="[object Int8Array]",Ene="[object Int16Array]",One="[object Int32Array]",$ne="[object Uint8Array]",Pne="[object Uint8ClampedArray]",jne="[object Uint16Array]",Tne="[object Uint32Array]";function Ane(e,t,n){var r=e.constructor;switch(t){case xne:return one(e);case fne:case dne:return new r(+e);case bne:return lne(e,n);case wne:case _ne:case Sne:case Ene:case One:case $ne:case Pne:case jne:case Tne:return cne(e,n);case pne:return new r;case hne:case gne:return new r(e);case mne:return sne(e);case vne:return new r;case yne:return une(e)}}var Cne=Ane,kne=kn,yS=Object.create,Nne=function(){function e(){}return function(t){if(!kne(t))return{};if(yS)return yS(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Mne=Nne,Ine=Mne,Rne=T0,Lne=qy;function Dne(e){return typeof e.constructor=="function"&&!Lne(e)?Ine(Rne(e)):{}}var Fne=Dne,Bne=Id,zne=Cn,Une="[object Map]";function Hne(e){return zne(e)&&Bne(e)==Une}var Wne=Hne,Vne=Wne,Kne=Md,xS=Gy,bS=xS&&xS.isMap,Gne=bS?Kne(bS):Vne,qne=Gne,Yne=Id,Xne=Cn,Qne="[object Set]";function Zne(e){return Xne(e)&&Yne(e)==Qne}var Jne=Zne,ere=Jne,tre=Md,wS=Gy,_S=wS&&wS.isSet,nre=_S?tre(_S):ere,rre=nre,ire=Fy,are=Gee,ore=xT,lre=ate,sre=_te,ure=Ste,cre=Ote,fre=Tte,dre=Fte,pre=qP,hre=wT,mre=Id,vre=Gte,gre=Cne,yre=Fne,xre=jt,bre=Wy,wre=qne,_re=kn,Sre=rre,Ere=Qs,Ore=I0,$re=1,Pre=2,jre=4,_T="[object Arguments]",Tre="[object Array]",Are="[object Boolean]",Cre="[object Date]",kre="[object Error]",ST="[object Function]",Nre="[object GeneratorFunction]",Mre="[object Map]",Ire="[object Number]",ET="[object Object]",Rre="[object RegExp]",Lre="[object Set]",Dre="[object String]",Fre="[object Symbol]",Bre="[object WeakMap]",zre="[object ArrayBuffer]",Ure="[object DataView]",Hre="[object Float32Array]",Wre="[object Float64Array]",Vre="[object Int8Array]",Kre="[object Int16Array]",Gre="[object Int32Array]",qre="[object Uint8Array]",Yre="[object Uint8ClampedArray]",Xre="[object Uint16Array]",Qre="[object Uint32Array]",xe={};xe[_T]=xe[Tre]=xe[zre]=xe[Ure]=xe[Are]=xe[Cre]=xe[Hre]=xe[Wre]=xe[Vre]=xe[Kre]=xe[Gre]=xe[Mre]=xe[Ire]=xe[ET]=xe[Rre]=xe[Lre]=xe[Dre]=xe[Fre]=xe[qre]=xe[Yre]=xe[Xre]=xe[Qre]=!0;xe[kre]=xe[ST]=xe[Bre]=!1;function pc(e,t,n,r,i,a){var o,l=t&$re,s=t&Pre,u=t&jre;if(n&&(o=i?n(e,r,i,a):n(e)),o!==void 0)return o;if(!_re(e))return e;var c=xre(e);if(c){if(o=vre(e),!l)return cre(e,o)}else{var f=mre(e),d=f==ST||f==Nre;if(bre(e))return ure(e,l);if(f==ET||f==_T||d&&!i){if(o=s||d?{}:yre(e),!l)return s?dre(e,sre(o,e)):fre(e,lre(o,e))}else{if(!xe[f])return i?e:{};o=gre(e,f,l)}}a||(a=new ire);var p=a.get(e);if(p)return p;a.set(e,o),Sre(e)?e.forEach(function(b){o.add(pc(b,t,n,b,e,a))}):wre(e)&&e.forEach(function(b,v){o.set(v,pc(b,t,n,v,e,a))});var h=u?s?hre:pre:s?Ore:Ere,m=c?void 0:h(e);return are(m||e,function(b,v){m&&(v=b,b=e[v]),ore(o,v,pc(b,t,n,v,e,a))}),o}var Zre=pc,Jre=yd,eie=cP;function tie(e,t){return t.length<2?e:Jre(e,eie(t,0,-1))}var nie=tie,rie=gd,iie=Ej,aie=nie,oie=Gs;function lie(e,t){return t=rie(t,e),e=aie(e,t),e==null||delete e[oie(iie(t))]}var sie=lie,uie=Hj;function cie(e){return uie(e)?void 0:e}var fie=cie,die=Xy;function pie(e){var t=e==null?0:e.length;return t?die(e,1):[]}var hie=pie,mie=hie,vie=o2,gie=s2;function yie(e){return gie(vie(e,void 0,mie),e+"")}var xie=yie,bie=vd,wie=Zre,_ie=sie,Sie=gd,Eie=ru,Oie=fie,$ie=xie,Pie=wT,jie=1,Tie=2,Aie=4,Cie=$ie(function(e,t){var n={};if(e==null)return n;var r=!1;t=bie(t,function(a){return a=Sie(a,e),r||(r=a.length>1),a}),Eie(e,Pie(e),n),r&&(n=wie(n,jie|Tie|Aie,Oie));for(var i=t.length;i--;)_ie(n,t[i]);return n}),kie=Cie;const Nie=me(kie);function Ms(e){"@babel/helpers - typeof";return Ms=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},Ms(e)}function ag(){return ag=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ag.apply(this,arguments)}function SS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Eh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SS(Object(n),!0).forEach(function(r){Mie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mie(e,t,n){return t=Iie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Iie(e){var t=Rie(e,"string");return Ms(t)=="symbol"?t:t+""}function Rie(e,t){if(Ms(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ms(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Lie(e,t){var n="".concat(t.x||e.x),r=parseInt(n,10),i="".concat(t.y||e.y),a=parseInt(i,10),o="".concat((t==null?void 0:t.height)||(e==null?void 0:e.height)),l=parseInt(o,10);return Eh(Eh(Eh({},t),Wj(e)),{},{height:l,x:r,y:a})}function Die(e){return j.createElement(Vj,ag({shapeType:"trapezoid",propTransformer:Lie},e))}var og;function ES(e,t){return Uie(e)||zie(e,t)||Bie(e,t)||Fie()}function Fie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
256
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bie(e,t){if(e){if(typeof e=="string")return OS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OS(e,t)}}function OS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function Uie(e){if(Array.isArray(e))return e}function yo(e){"@babel/helpers - typeof";return yo=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},yo(e)}function Mf(){return Mf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mf.apply(this,arguments)}function $S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Qe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$S(Object(n),!0).forEach(function(r){hr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$S(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$T(r.key),r)}}function Wie(e,t,n){return t&&PS(e.prototype,t),n&&PS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vie(e,t,n){return t=If(t),Kie(e,OT()?Reflect.construct(t,n||[],If(e).constructor):t.apply(e,n))}function Kie(e,t){if(t&&(yo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gie(e)}function Gie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OT=function(){return!!e})()}function If(e){return If=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},If(e)}function qie(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&&lg(e,t)}function lg(e,t){return lg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},lg(e,t)}function hr(e,t,n){return t=$T(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $T(e){var t=Yie(e,"string");return yo(t)=="symbol"?t:t+""}function Yie(e,t){if(yo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(yo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Nr=function(e){function t(){var n;Hie(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=Vie(this,t,[].concat(i)),hr(n,"state",{isAnimationFinished:!1}),hr(n,"handleAnimationEnd",function(){var o=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),te(o)&&o()}),hr(n,"handleAnimationStart",function(){var o=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),te(o)&&o()}),n}return qie(t,e),Wie(t,[{key:"isActiveIndex",value:function(r){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(r)!==-1:r===i}},{key:"renderTrapezoidsStatically",value:function(r){var i=this,a=this.props,o=a.shape,l=a.activeShape;return r.map(function(s,u){var c=i.isActiveIndex(u)?l:o,f=Qe(Qe({},s),{},{isActive:i.isActiveIndex(u),stroke:s.stroke});return j.createElement(Te,Mf({className:"recharts-funnel-trapezoid"},Ys(i.props,s,u),{key:"trapezoid-".concat(s==null?void 0:s.x,"-").concat(s==null?void 0:s.y,"-").concat(s==null?void 0:s.name,"-").concat(s==null?void 0:s.value),role:"img"}),j.createElement(Die,Mf({option:c},f)))})}},{key:"renderTrapezoidsWithAnimation",value:function(){var r=this,i=this.props,a=i.trapezoids,o=i.isAnimationActive,l=i.animationBegin,s=i.animationDuration,u=i.animationEasing,c=i.animationId,f=this.state.prevTrapezoids;return j.createElement(Pr,{begin:l,duration:s,isActive:o,easing:u,from:{t:0},to:{t:1},key:"funnel-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(d){var p=d.t,h=a.map(function(m,b){var v=f&&f[b];if(v){var y=Zt(v.x,m.x),x=Zt(v.y,m.y),E=Zt(v.upperWidth,m.upperWidth),_=Zt(v.lowerWidth,m.lowerWidth),S=Zt(v.height,m.height);return Qe(Qe({},m),{},{x:y(p),y:x(p),upperWidth:E(p),lowerWidth:_(p),height:S(p)})}var O=Zt(m.x+m.upperWidth/2,m.x),$=Zt(m.y+m.height/2,m.y),T=Zt(0,m.upperWidth),C=Zt(0,m.lowerWidth),A=Zt(0,m.height);return Qe(Qe({},m),{},{x:O(p),y:$(p),upperWidth:T(p),lowerWidth:C(p),height:A(p)})});return j.createElement(Te,null,r.renderTrapezoidsStatically(h))})}},{key:"renderTrapezoids",value:function(){var r=this.props,i=r.trapezoids,a=r.isAnimationActive,o=this.state.prevTrapezoids;return a&&i&&i.length&&(!o||!Gd(o,i))?this.renderTrapezoidsWithAnimation():this.renderTrapezoidsStatically(i)}},{key:"render",value:function(){var r=this.props,i=r.hide,a=r.trapezoids,o=r.className,l=r.isAnimationActive,s=this.state.isAnimationFinished;if(i||!a||!a.length)return null;var u=ue("recharts-trapezoids",o);return j.createElement(Te,{className:u},this.renderTrapezoids(),(!l||s)&&Un.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curTrapezoids:r.trapezoids,prevTrapezoids:i.curTrapezoids}:r.trapezoids!==i.curTrapezoids?{curTrapezoids:r.trapezoids}:null}}])}(w.PureComponent);og=Nr;hr(Nr,"displayName","Funnel");hr(Nr,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!ni.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"});hr(Nr,"getRealFunnelData",function(e){var t=e.props,n=t.data,r=t.children,i=ne(e.props,!1),a=On(r,e0);return n&&n.length?n.map(function(o,l){return Qe(Qe(Qe({payload:o},i),o),a&&a[l]&&a[l].props)}):a&&a.length?a.map(function(o){return Qe(Qe({},i),o.props)}):[]});hr(Nr,"getRealWidthHeight",function(e,t){var n=e.props.width,r=t.width,i=t.height,a=t.left,o=t.right,l=t.top,s=t.bottom,u=i,c=r;return uP(n)?c=n:Mo(n)&&(c=c*parseFloat(n)/100),{realWidth:c-a-o-50,realHeight:u-s-l,offsetX:(r-c)/2,offsetY:(i-u)/2}});hr(Nr,"getComposedData",function(e){var t=e.item,n=e.offset,r=og.getRealFunnelData(t),i=t.props,a=i.dataKey,o=i.nameKey,l=i.tooltipType,s=i.lastShapeType,u=i.reversed,c=n.left,f=n.top,d=og.getRealWidthHeight(t,n),p=d.realHeight,h=d.realWidth,m=d.offsetX,b=d.offsetY,v=Math.max.apply(null,r.map(function(S){return ct(S,a,0)})),y=r.length,x=p/y,E={x:n.left,y:n.top,width:n.width,height:n.height},_=r.map(function(S,O){var $=ct(S,a,0),T=ct(S,o,O),C=$,A;if(O!==y-1){if(A=ct(r[O+1],a,0),A instanceof Array){var N=A,I=ES(N,1);A=I[0]}}else if($ instanceof Array&&$.length===2){var D=ES($,2);C=D[0],A=D[1]}else s==="rectangle"?A=C:A=0;var M=(v-C)*h/(2*v)+f+25+m,F=x*O+c+b,R=C/v*h,P=A/v*h,k=[{name:T,value:C,payload:S,dataKey:a,type:l}],B={x:M+R/2,y:F+x/2};return Qe(Qe({x:M,y:F,width:Math.max(R,P),upperWidth:R,lowerWidth:P,height:x,name:T,val:C,tooltipPayload:k,tooltipPosition:B},Nie(S,"width")),{},{payload:S,parentViewBox:E,labelViewBox:{x:M+(R-P)/4,y:F,width:Math.abs(R-P)/2+Math.min(R,P),height:x}})});return u&&(_=_.map(function(S,O){var $=S.y-O*x+(y-1-O)*x;return Qe(Qe({},S),{},{upperWidth:S.lowerWidth,lowerWidth:S.upperWidth,x:S.x-(S.lowerWidth-S.upperWidth)/2,y:S.y-O*x+(y-1-O)*x,tooltipPosition:Qe(Qe({},S.tooltipPosition),{},{y:$+x/2}),labelViewBox:Qe(Qe({},S.labelViewBox),{},{y:$})})})),{trapezoids:_,data:r}});var PT=yT({chartName:"FunnelChart",GraphicalChild:Nr,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}});const{size_percentile:{minimum_thresholds:sn},test_coverage:{minimum_thresholds:Rf}}=_r.project.documentation_site,In=e=>e==null?{hex:"#f3f4f6",class:"bg-gray-100"}:e>=sn.xl?{hex:"#1e3a8a",class:"bg-blue-900"}:e>=sn.l?{hex:"#1e40af",class:"bg-blue-800"}:e>=sn.m?{hex:"#2563eb",class:"bg-blue-600"}:e>=sn.s?{hex:"#3b82f6",class:"bg-blue-500"}:{hex:"#93c5fd",class:"bg-blue-300"},xo=e=>e>=sn.xl?"xl":e>=sn.l?"l":e>=sn.m?"m":e>=sn.s?"s":"xs",Is=e=>e>=sn.xl?5:e>=sn.l?4:e>=sn.m?3:e>=sn.s?2:1,bt=e=>e==null?{hex:"transparent",class:"bg-transparent"}:e>=Rf.good?{hex:"#22c55e",class:"bg-green-500"}:e>=Rf.fair?{hex:"#eab308",class:"bg-yellow-500"}:{hex:"#ef4444",class:"bg-red-500"},jT=e=>e>=Rf.good?"good":e>=Rf.fair?"fair":"poor",Xie=e=>e>=1e3?(e/1e3).toFixed(1)+"k":e,Lf=e=>!e||e.length===0?g.jsx("span",{className:"text-gray-400 italic text-sm",children:"No team assigned"}):e.length>1?g.jsxs("p",{className:"text-sm text-gray-700",children:[e[0]," + ",e.length-1]}):g.jsx("p",{className:"text-sm text-gray-700",children:e[0]});function lp(){return typeof window<"u"}function Ho(e){return TT(e)?(e.nodeName||"").toLowerCase():"#document"}function Lt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qn(e){var t;return(t=(TT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function TT(e){return lp()?e instanceof Node||e instanceof Lt(e).Node:!1}function de(e){return lp()?e instanceof Element||e instanceof Lt(e).Element:!1}function Vt(e){return lp()?e instanceof HTMLElement||e instanceof Lt(e).HTMLElement:!1}function sg(e){return!lp()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Lt(e).ShadowRoot}function iu(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=pn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Qie(e){return["table","td","th"].includes(Ho(e))}function sp(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function L0(e){const t=up(),n=de(e)?pn(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Zie(e){let t=jr(e);for(;Vt(t)&&!mr(t);){if(L0(t))return t;if(sp(t))return null;t=jr(t)}return null}function up(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function mr(e){return["html","body","#document"].includes(Ho(e))}function pn(e){return Lt(e).getComputedStyle(e)}function cp(e){return de(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function jr(e){if(Ho(e)==="html")return e;const t=e.assignedSlot||e.parentNode||sg(e)&&e.host||Qn(e);return sg(t)?t.host:t}function AT(e){const t=jr(e);return mr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Vt(t)&&iu(t)?t:AT(t)}function ii(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=AT(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),o=Lt(i);if(a){const l=ug(o);return t.concat(o,o.visualViewport||[],iu(i)?i:[],l&&n?ii(l):[])}return t.concat(i,ii(i,[],n))}function ug(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function cg(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function bo(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&sg(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function CT(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function kT(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function Jie(e){return tae()?!1:!jS()&&e.width===0&&e.height===0||jS()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function NT(){return/apple/i.test(navigator.vendor)}function jS(){const e=/android/i;return e.test(CT())||e.test(kT())}function eae(){return CT().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function tae(){return kT().includes("jsdom/")}function fg(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function nae(e){return"nativeEvent"in e}function rae(e){return e.matches("html,body")}function Kr(e){return(e==null?void 0:e.ownerDocument)||document}function Oh(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function ma(e){return"composedPath"in e?e.composedPath()[0]:e.target}const iae="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function aae(e){return Vt(e)&&e.matches(iae)}const oae=["top","right","bottom","left"],TS=["start","end"],AS=oae.reduce((e,t)=>e.concat(t,t+"-"+TS[0],t+"-"+TS[1]),[]),Yi=Math.min,vt=Math.max,Rs=Math.round,Yu=Math.floor,Wn=e=>({x:e,y:e}),lae={left:"right",right:"left",bottom:"top",top:"bottom"},sae={start:"end",end:"start"};function CS(e,t,n){return vt(e,Yi(t,n))}function la(e,t){return typeof e=="function"?e(t):e}function Yn(e){return e.split("-")[0]}function Vn(e){return e.split("-")[1]}function MT(e){return e==="x"?"y":"x"}function IT(e){return e==="y"?"height":"width"}function Xi(e){return["top","bottom"].includes(Yn(e))?"y":"x"}function RT(e){return MT(Xi(e))}function LT(e,t,n){n===void 0&&(n=!1);const r=Vn(e),i=RT(e),a=IT(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=Ff(o)),[o,Ff(o)]}function uae(e){const t=Ff(e);return[Df(e),t,Df(t)]}function Df(e){return e.replace(/start|end/g,t=>sae[t])}function cae(e,t,n){const r=["left","right"],i=["right","left"],a=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?a:o;default:return[]}}function fae(e,t,n,r){const i=Vn(e);let a=cae(Yn(e),n==="start",r);return i&&(a=a.map(o=>o+"-"+i),t&&(a=a.concat(a.map(Df)))),a}function Ff(e){return e.replace(/left|right|bottom|top/g,t=>lae[t])}function dae(e){return{top:0,right:0,bottom:0,left:0,...e}}function pae(e){return typeof e!="number"?dae(e):{top:e,right:e,bottom:e,left:e}}function Bf(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}/*!
256
+ A `).concat(h,",").concat(h,",0,0,").concat(u,",").concat(t,",").concat(n+i-l*h," Z")}else c="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return c},dY=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,o=n.x,a=n.y,l=n.width,s=n.height;if(Math.abs(l)>0&&Math.abs(s)>0){var u=Math.min(o,o+l),c=Math.max(o,o+l),f=Math.min(a,a+s),d=Math.max(a,a+s);return r>=u&&r<=c&&i>=f&&i<=d}return!1},pY={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},P0=function(t){var n=S_(S_({},pY),t),r=b.useRef(),i=b.useState(-1),o=iY(i,2),a=o[0],l=o[1];b.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var E=r.current.getTotalLength();E&&l(E)}catch{}},[]);var s=n.x,u=n.y,c=n.width,f=n.height,d=n.radius,p=n.className,h=n.animationEasing,m=n.animationDuration,w=n.animationBegin,g=n.isAnimationActive,y=n.isUpdateAnimationActive;if(s!==+s||u!==+u||c!==+c||f!==+f||c===0||f===0)return null;var x=ue("recharts-rectangle",p);return y?j.createElement(Pr,{canBegin:a>0,from:{width:c,height:f,x:s,y:u},to:{width:c,height:f,x:s,y:u},duration:m,animationEasing:h,isActive:y},function(E){var _=E.width,S=E.height,O=E.x,$=E.y;return j.createElement(Pr,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:m,isActive:g,easing:h},j.createElement("path",bf({},ne(n,!0),{className:x,d:E_(O,$,_,S,d),ref:r})))}):j.createElement("path",bf({},ne(n,!0),{className:x,d:E_(s,u,c,f,d)}))},hY=["points","className","baseLinePoints","connectNulls"];function Ao(){return Ao=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ao.apply(this,arguments)}function mY(e,t){if(e==null)return{};var n=vY(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vY(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function O_(e){return bY(e)||xY(e)||yY(e)||gY()}function gY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
257
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yY(e,t){if(e){if(typeof e=="string")return Uv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Uv(e,t)}}function xY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bY(e){if(Array.isArray(e))return Uv(e)}function Uv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var $_=function(t){return t&&t.x===+t.x&&t.y===+t.y},wY=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){$_(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),$_(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},Nl=function(t,n){var r=wY(t);n&&(r=[r.reduce(function(o,a){return[].concat(O_(o),O_(a))},[])]);var i=r.map(function(o){return o.reduce(function(a,l,s){return"".concat(a).concat(s===0?"M":"L").concat(l.x,",").concat(l.y)},"")}).join("");return r.length===1?"".concat(i,"Z"):i},_Y=function(t,n,r){var i=Nl(t,r);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Nl(n.reverse(),r).slice(1))},SY=function(t){var n=t.points,r=t.className,i=t.baseLinePoints,o=t.connectNulls,a=mY(t,hY);if(!n||!n.length)return null;var l=ue("recharts-polygon",r);if(i&&i.length){var s=a.stroke&&a.stroke!=="none",u=_Y(n,i,o);return j.createElement("g",{className:l},j.createElement("path",Ao({},ne(a,!0),{fill:u.slice(-1)==="Z"?a.fill:"none",stroke:"none",d:u})),s?j.createElement("path",Ao({},ne(a,!0),{fill:"none",d:Nl(n,o)})):null,s?j.createElement("path",Ao({},ne(a,!0),{fill:"none",d:Nl(i,o)})):null)}var c=Nl(n,o);return j.createElement("path",Ao({},ne(a,!0),{fill:c.slice(-1)==="Z"?a.fill:"none",className:l,d:c}))};function Hv(){return Hv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hv.apply(this,arguments)}var j0=function(t){var n=t.cx,r=t.cy,i=t.r,o=t.className,a=ue("recharts-dot",o);return n===+n&&r===+r&&i===+i?j.createElement("circle",Hv({},ne(t,!1),zc(t),{className:a,cx:n,cy:r,r:i})):null};function $s(e){"@babel/helpers - typeof";return $s=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},$s(e)}var EY=["x","y","top","left","width","height","className"];function Wv(){return Wv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wv.apply(this,arguments)}function P_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function OY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?P_(Object(n),!0).forEach(function(r){$Y(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $Y(e,t,n){return t=PY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PY(e){var t=jY(e,"string");return $s(t)=="symbol"?t:t+""}function jY(e,t){if($s(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if($s(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TY(e,t){if(e==null)return{};var n=AY(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function AY(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var CY=function(t,n,r,i,o,a){return"M".concat(t,",").concat(o,"v").concat(i,"M").concat(a,",").concat(n,"h").concat(r)},kY=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,o=i===void 0?0:i,a=t.top,l=a===void 0?0:a,s=t.left,u=s===void 0?0:s,c=t.width,f=c===void 0?0:c,d=t.height,p=d===void 0?0:d,h=t.className,m=TY(t,EY),w=OY({x:r,y:o,top:l,left:u,width:f,height:p},m);return!G(r)||!G(o)||!G(f)||!G(p)||!G(l)||!G(u)?null:j.createElement("path",Wv({},ne(w,!0),{className:ue("recharts-cross",h),d:CY(r,o,f,p,l,u)}))},NY=Wd,MY=tj,RY=di;function IY(e,t){return e&&e.length?NY(e,RY(t),MY):void 0}var LY=IY;const DY=me(LY);var FY=Wd,BY=di,zY=nj;function UY(e,t){return e&&e.length?FY(e,BY(t),zY):void 0}var HY=UY;const WY=me(HY);var VY=["cx","cy","angle","ticks","axisLine"],KY=["ticks","tick","angle","tickFormatter","stroke"];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 Ml(){return Ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ml.apply(this,arguments)}function j_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?j_(Object(n),!0).forEach(function(r){Yd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function T_(e,t){if(e==null)return{};var n=GY(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function GY(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function qY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Uj(r.key),r)}}function XY(e,t,n){return t&&A_(e.prototype,t),n&&A_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function YY(e,t,n){return t=wf(t),QY(e,zj()?Reflect.construct(t,n||[],wf(e).constructor):t.apply(e,n))}function QY(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 ZY(e)}function ZY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zj=function(){return!!e})()}function wf(e){return wf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},wf(e)}function JY(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&&Vv(e,t)}function Vv(e,t){return Vv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Vv(e,t)}function Yd(e,t,n){return t=Uj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uj(e){var t=eQ(e,"string");return sa(t)=="symbol"?t:t+""}function eQ(e,t){if(sa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(sa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qd=function(e){function t(){return qY(this,t),YY(this,t,arguments)}return JY(t,e),XY(t,[{key:"getTickValueCoord",value:function(r){var i=r.coordinate,o=this.props,a=o.angle,l=o.cx,s=o.cy;return Se(l,s,i,a)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,i;switch(r){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var r=this.props,i=r.cx,o=r.cy,a=r.angle,l=r.ticks,s=DY(l,function(c){return c.coordinate||0}),u=WY(l,function(c){return c.coordinate||0});return{cx:i,cy:o,startAngle:a,endAngle:a,innerRadius:u.coordinate||0,outerRadius:s.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,o=r.cy,a=r.angle,l=r.ticks,s=r.axisLine,u=T_(r,VY),c=l.reduce(function(h,m){return[Math.min(h[0],m.coordinate),Math.max(h[1],m.coordinate)]},[1/0,-1/0]),f=Se(i,o,c[0],a),d=Se(i,o,c[1],a),p=bi(bi(bi({},ne(u,!1)),{},{fill:"none"},ne(s,!1)),{},{x1:f.x,y1:f.y,x2:d.x,y2:d.y});return j.createElement("line",Ml({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var r=this,i=this.props,o=i.ticks,a=i.tick,l=i.angle,s=i.tickFormatter,u=i.stroke,c=T_(i,KY),f=this.getTickTextAnchor(),d=ne(c,!1),p=ne(a,!1),h=o.map(function(m,w){var g=r.getTickValueCoord(m),y=bi(bi(bi(bi({textAnchor:f,transform:"rotate(".concat(90-l,", ").concat(g.x,", ").concat(g.y,")")},d),{},{stroke:"none",fill:u},p),{},{index:w},g),{},{payload:m});return j.createElement(Te,Ml({className:ue("recharts-polar-radius-axis-tick",Oj(a)),key:"tick-".concat(m.coordinate)},Xs(r.props,m,w)),t.renderTickItem(a,y,s?s(m.value,w):m.value))});return j.createElement(Te,{className:"recharts-polar-radius-axis-ticks"},h)}},{key:"render",value:function(){var r=this.props,i=r.ticks,o=r.axisLine,a=r.tick;return!i||!i.length?null:j.createElement(Te,{className:ue("recharts-polar-radius-axis",this.props.className)},o&&this.renderAxisLine(),a&&this.renderTicks(),ut.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,i,o){var a;return j.isValidElement(r)?a=j.cloneElement(r,i):te(r)?a=r(i):a=j.createElement(ta,Ml({},i,{className:"recharts-polar-radius-axis-tick-value"}),o),a}}])}(b.PureComponent);Yd(Qd,"displayName","PolarRadiusAxis");Yd(Qd,"axisType","radiusAxis");Yd(Qd,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function 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 Pi(){return Pi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pi.apply(this,arguments)}function C_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function wi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?C_(Object(n),!0).forEach(function(r){Zd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wj(r.key),r)}}function nQ(e,t,n){return t&&k_(e.prototype,t),n&&k_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function rQ(e,t,n){return t=_f(t),iQ(e,Hj()?Reflect.construct(t,n||[],_f(e).constructor):t.apply(e,n))}function iQ(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 oQ(e)}function oQ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hj=function(){return!!e})()}function _f(e){return _f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_f(e)}function aQ(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&&Kv(e,t)}function Kv(e,t){return Kv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Kv(e,t)}function Zd(e,t,n){return t=Wj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wj(e){var t=lQ(e,"string");return ua(t)=="symbol"?t:t+""}function lQ(e,t){if(ua(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ua(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sQ=Math.PI/180,N_=1e-5,Jd=function(e){function t(){return tQ(this,t),rQ(this,t,arguments)}return aQ(t,e),nQ(t,[{key:"getTickLineCoord",value:function(r){var i=this.props,o=i.cx,a=i.cy,l=i.radius,s=i.orientation,u=i.tickSize,c=u||8,f=Se(o,a,l,r.coordinate),d=Se(o,a,l+(s==="inner"?-1:1)*c,r.coordinate);return{x1:f.x,y1:f.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(r){var i=this.props.orientation,o=Math.cos(-r.coordinate*sQ),a;return o>N_?a=i==="outer"?"start":"end":o<-N_?a=i==="outer"?"end":"start":a="middle",a}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,o=r.cy,a=r.radius,l=r.axisLine,s=r.axisLineType,u=wi(wi({},ne(this.props,!1)),{},{fill:"none"},ne(l,!1));if(s==="circle")return j.createElement(j0,Pi({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:o,r:a}));var c=this.props.ticks,f=c.map(function(d){return Se(i,o,a,d.coordinate)});return j.createElement(SY,Pi({className:"recharts-polar-angle-axis-line"},u,{points:f}))}},{key:"renderTicks",value:function(){var r=this,i=this.props,o=i.ticks,a=i.tick,l=i.tickLine,s=i.tickFormatter,u=i.stroke,c=ne(this.props,!1),f=ne(a,!1),d=wi(wi({},c),{},{fill:"none"},ne(l,!1)),p=o.map(function(h,m){var w=r.getTickLineCoord(h),g=r.getTickTextAnchor(h),y=wi(wi(wi({textAnchor:g},c),{},{stroke:"none",fill:u},f),{},{index:m,payload:h,x:w.x2,y:w.y2});return j.createElement(Te,Pi({className:ue("recharts-polar-angle-axis-tick",Oj(a)),key:"tick-".concat(h.coordinate)},Xs(r.props,h,m)),l&&j.createElement("line",Pi({className:"recharts-polar-angle-axis-tick-line"},d,w)),a&&t.renderTickItem(a,y,s?s(h.value,m):h.value))});return j.createElement(Te,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var r=this.props,i=r.ticks,o=r.radius,a=r.axisLine;return o<=0||!i||!i.length?null:j.createElement(Te,{className:ue("recharts-polar-angle-axis",this.props.className)},a&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,i,o){var a;return j.isValidElement(r)?a=j.cloneElement(r,i):te(r)?a=r(i):a=j.createElement(ta,Pi({},i,{className:"recharts-polar-angle-axis-tick-value"}),o),a}}])}(b.PureComponent);Zd(Jd,"displayName","PolarAngleAxis");Zd(Jd,"axisType","angleAxis");Zd(Jd,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var uQ=YP,cQ=uQ(Object.getPrototypeOf,Object),T0=cQ,fQ=Cr,dQ=T0,pQ=kn,hQ="[object Object]",mQ=Function.prototype,vQ=Object.prototype,Vj=mQ.toString,gQ=vQ.hasOwnProperty,yQ=Vj.call(Object);function xQ(e){if(!pQ(e)||fQ(e)!=hQ)return!1;var t=dQ(e);if(t===null)return!0;var n=gQ.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Vj.call(n)==yQ}var Kj=xQ;const bQ=me(Kj);var wQ=Cr,_Q=kn,SQ="[object Boolean]";function EQ(e){return e===!0||e===!1||_Q(e)&&wQ(e)==SQ}var OQ=EQ;const $Q=me(OQ);function Ps(e){"@babel/helpers - typeof";return Ps=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},Ps(e)}function Sf(){return Sf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sf.apply(this,arguments)}function PQ(e,t){return CQ(e)||AQ(e,t)||TQ(e,t)||jQ()}function jQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
258
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TQ(e,t){if(e){if(typeof e=="string")return M_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M_(e,t)}}function M_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function AQ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}function CQ(e){if(Array.isArray(e))return e}function R_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function I_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R_(Object(n),!0).forEach(function(r){kQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kQ(e,t,n){return t=NQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NQ(e){var t=MQ(e,"string");return Ps(t)=="symbol"?t:t+""}function MQ(e,t){if(Ps(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ps(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var L_=function(t,n,r,i,o){var a=r-i,l;return l="M ".concat(t,",").concat(n),l+="L ".concat(t+r,",").concat(n),l+="L ".concat(t+r-a/2,",").concat(n+o),l+="L ".concat(t+r-a/2-i,",").concat(n+o),l+="L ".concat(t,",").concat(n," Z"),l},RQ={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},IQ=function(t){var n=I_(I_({},RQ),t),r=b.useRef(),i=b.useState(-1),o=PQ(i,2),a=o[0],l=o[1];b.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var x=r.current.getTotalLength();x&&l(x)}catch{}},[]);var s=n.x,u=n.y,c=n.upperWidth,f=n.lowerWidth,d=n.height,p=n.className,h=n.animationEasing,m=n.animationDuration,w=n.animationBegin,g=n.isUpdateAnimationActive;if(s!==+s||u!==+u||c!==+c||f!==+f||d!==+d||c===0&&f===0||d===0)return null;var y=ue("recharts-trapezoid",p);return g?j.createElement(Pr,{canBegin:a>0,from:{upperWidth:0,lowerWidth:0,height:d,x:s,y:u},to:{upperWidth:c,lowerWidth:f,height:d,x:s,y:u},duration:m,animationEasing:h,isActive:g},function(x){var E=x.upperWidth,_=x.lowerWidth,S=x.height,O=x.x,$=x.y;return j.createElement(Pr,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:m,easing:h},j.createElement("path",Sf({},ne(n,!0),{className:y,d:L_(O,$,E,_,S),ref:r})))}):j.createElement("g",null,j.createElement("path",Sf({},ne(n,!0),{className:y,d:L_(s,u,c,f,d)})))},LQ=["option","shapeType","propTransformer","activeClassName","isActive"];function js(e){"@babel/helpers - typeof";return js=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},js(e)}function DQ(e,t){if(e==null)return{};var n=FQ(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function FQ(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function D_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ef(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D_(Object(n),!0).forEach(function(r){BQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function BQ(e,t,n){return t=zQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zQ(e){var t=UQ(e,"string");return js(t)=="symbol"?t:t+""}function UQ(e,t){if(js(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(js(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function HQ(e,t){return Ef(Ef({},t),e)}function WQ(e,t){return e==="symbols"}function F_(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return j.createElement(P0,n);case"trapezoid":return j.createElement(IQ,n);case"sector":return j.createElement(Tj,n);case"symbols":if(WQ(t))return j.createElement(Ly,n);break;default:return null}}function Gj(e){return b.isValidElement(e)?e.props:e}function qj(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?HQ:r,o=e.activeClassName,a=o===void 0?"recharts-active-shape":o,l=e.isActive,s=DQ(e,LQ),u;if(b.isValidElement(t))u=b.cloneElement(t,Ef(Ef({},s),Gj(t)));else if(te(t))u=t(s);else if(bQ(t)&&!$Q(t)){var c=i(t,s);u=j.createElement(F_,{shapeType:n,elementProps:c})}else{var f=s;u=j.createElement(F_,{shapeType:n,elementProps:f})}return l?j.createElement(Te,{className:a},u):u}function ep(e,t){return t!=null&&"trapezoids"in e.props}function tp(e,t){return t!=null&&"sectors"in e.props}function Ts(e,t){return t!=null&&"points"in e.props}function VQ(e,t){var n,r,i=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,o=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return i&&o}function KQ(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function GQ(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function qQ(e,t){var n;return ep(e,t)?n=VQ:tp(e,t)?n=KQ:Ts(e,t)&&(n=GQ),n}function XQ(e,t){var n;return ep(e,t)?n="trapezoids":tp(e,t)?n="sectors":Ts(e,t)&&(n="points"),n}function YQ(e,t){if(ep(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}if(tp(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}return Ts(e,t)?t.payload:{}}function QQ(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=XQ(n,t),o=YQ(n,t),a=r.filter(function(s,u){var c=Gd(o,s),f=n.props[i].filter(function(h){var m=qQ(n,t);return m(h,t)}),d=n.props[i].indexOf(f[f.length-1]),p=u===d;return c&&p}),l=r.indexOf(a[a.length-1]);return l}var dc;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 Co(){return Co=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Co.apply(this,arguments)}function B_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function be(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B_(Object(n),!0).forEach(function(r){rn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yj(r.key),r)}}function JQ(e,t,n){return t&&z_(e.prototype,t),n&&z_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function eZ(e,t,n){return t=Of(t),tZ(e,Xj()?Reflect.construct(t,n||[],Of(e).constructor):t.apply(e,n))}function tZ(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 nZ(e)}function nZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Xj=function(){return!!e})()}function Of(e){return Of=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Of(e)}function rZ(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&&Gv(e,t)}function Gv(e,t){return Gv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Gv(e,t)}function rn(e,t,n){return t=Yj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yj(e){var t=iZ(e,"string");return ca(t)=="symbol"?t:t+""}function iZ(e,t){if(ca(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ca(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qt=function(e){function t(n){var r;return ZQ(this,t),r=eZ(this,t,[n]),rn(r,"pieRef",null),rn(r,"sectorRefs",[]),rn(r,"id",Td("recharts-pie-")),rn(r,"handleAnimationEnd",function(){var i=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),te(i)&&i()}),rn(r,"handleAnimationStart",function(){var i=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),te(i)&&i()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return rZ(t,e),JQ(t,[{key:"isActiveIndex",value:function(r){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(r)!==-1:r===i}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var o=this.props,a=o.label,l=o.labelLine,s=o.dataKey,u=o.valueKey,c=ne(this.props,!1),f=ne(a,!1),d=ne(l,!1),p=a&&a.offsetRadius||20,h=r.map(function(m,w){var g=(m.startAngle+m.endAngle)/2,y=Se(m.cx,m.cy,m.outerRadius+p,g),x=be(be(be(be({},c),m),{},{stroke:"none"},f),{},{index:w,textAnchor:t.getTextAnchor(y.x,m.cx)},y),E=be(be(be(be({},c),m),{},{fill:"none",stroke:m.fill},d),{},{index:w,points:[Se(m.cx,m.cy,m.outerRadius,g),y]}),_=s;return le(s)&&le(u)?_="value":le(s)&&(_=u),j.createElement(Te,{key:"label-".concat(m.startAngle,"-").concat(m.endAngle,"-").concat(m.midAngle,"-").concat(w)},l&&t.renderLabelLineItem(l,E,"line"),t.renderLabelItem(a,x,ct(m,_)))});return j.createElement(Te,{className:"recharts-pie-labels"},h)}},{key:"renderSectorsStatically",value:function(r){var i=this,o=this.props,a=o.activeShape,l=o.blendStroke,s=o.inactiveShape;return r.map(function(u,c){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&r.length!==1)return null;var f=i.isActiveIndex(c),d=s&&i.hasActiveIndex()?s:null,p=f?a:d,h=be(be({},u),{},{stroke:l?u.fill:u.stroke,tabIndex:-1});return j.createElement(Te,Co({ref:function(w){w&&!i.sectorRefs.includes(w)&&i.sectorRefs.push(w)},tabIndex:-1,className:"recharts-pie-sector"},Xs(i.props,u,c),{key:"sector-".concat(u==null?void 0:u.startAngle,"-").concat(u==null?void 0:u.endAngle,"-").concat(u.midAngle,"-").concat(c)}),j.createElement(qj,Co({option:p,isActive:f,shapeType:"sector"},h)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,i=this.props,o=i.sectors,a=i.isAnimationActive,l=i.animationBegin,s=i.animationDuration,u=i.animationEasing,c=i.animationId,f=this.state,d=f.prevSectors,p=f.prevIsAnimationActive;return j.createElement(Pr,{begin:l,duration:s,isActive:a,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(c,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(h){var m=h.t,w=[],g=o&&o[0],y=g.startAngle;return o.forEach(function(x,E){var _=d&&d[E],S=E>0?$n(x,"paddingAngle",0):0;if(_){var O=Zt(_.endAngle-_.startAngle,x.endAngle-x.startAngle),$=be(be({},x),{},{startAngle:y+S,endAngle:y+O(m)+S});w.push($),y=$.endAngle}else{var T=x.endAngle,C=x.startAngle,A=Zt(0,T-C),N=A(m),R=be(be({},x),{},{startAngle:y+S,endAngle:y+N+S});w.push(R),y=R.endAngle}}),j.createElement(Te,null,r.renderSectorsStatically(w))})}},{key:"attachKeyboardHandlers",value:function(r){var i=this;r.onkeydown=function(o){if(!o.altKey)switch(o.key){case"ArrowLeft":{var a=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[a].focus(),i.setState({sectorToFocus:a});break}case"ArrowRight":{var l=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[l].focus(),i.setState({sectorToFocus:l});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,i=r.sectors,o=r.isAnimationActive,a=this.state.prevSectors;return o&&i&&i.length&&(!a||!Gd(a,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,i=this.props,o=i.hide,a=i.sectors,l=i.className,s=i.label,u=i.cx,c=i.cy,f=i.innerRadius,d=i.outerRadius,p=i.isAnimationActive,h=this.state.isAnimationFinished;if(o||!a||!a.length||!G(u)||!G(c)||!G(f)||!G(d))return null;var m=ue("recharts-pie",l);return j.createElement(Te,{tabIndex:this.props.rootTabIndex,className:m,ref:function(g){r.pieRef=g}},this.renderSectors(),s&&this.renderLabels(a),ut.renderCallByParent(this.props,null,!1),(!p||h)&&Hn.renderCallByParent(this.props,a,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return i.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:r.sectors!==i.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,i){return r>i?"start":r<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,i,o){if(j.isValidElement(r))return j.cloneElement(r,i);if(te(r))return r(i);var a=ue("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return j.createElement(kv,Co({},i,{key:o,type:"linear",className:a}))}},{key:"renderLabelItem",value:function(r,i,o){if(j.isValidElement(r))return j.cloneElement(r,i);var a=o;if(te(r)&&(a=r(i),j.isValidElement(a)))return a;var l=ue("recharts-pie-label-text",typeof r!="boolean"&&!te(r)?r.className:"");return j.createElement(ta,Co({},i,{alignmentBaseline:"middle",className:l}),a)}}])}(b.PureComponent);dc=qt;rn(qt,"displayName","Pie");rn(qt,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!ni.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});rn(qt,"parseDeltaAngle",function(e,t){var n=an(t-e),r=Math.min(Math.abs(t-e),360);return n*r});rn(qt,"getRealPieData",function(e){var t=e.data,n=e.children,r=ne(e,!1),i=Pn(n,e0);return t&&t.length?t.map(function(o,a){return be(be(be({payload:o},r),o),i&&i[a]&&i[a].props)}):i&&i.length?i.map(function(o){return be(be({},r),o.props)}):[]});rn(qt,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,i=t.width,o=t.height,a=Ej(i,o),l=r+kt(e.cx,i,i/2),s=n+kt(e.cy,o,o/2),u=kt(e.innerRadius,a,0),c=kt(e.outerRadius,a,a*.8),f=e.maxRadius||Math.sqrt(i*i+o*o)/2;return{cx:l,cy:s,innerRadius:u,outerRadius:c,maxRadius:f}});rn(qt,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?be(be({},t.type.defaultProps),t.props):t.props,i=dc.getRealPieData(r);if(!i||!i.length)return null;var o=r.cornerRadius,a=r.startAngle,l=r.endAngle,s=r.paddingAngle,u=r.dataKey,c=r.nameKey,f=r.valueKey,d=r.tooltipType,p=Math.abs(r.minAngle),h=dc.parseCoordinateOfPie(r,n),m=dc.parseDeltaAngle(a,l),w=Math.abs(m),g=u;le(u)&&le(f)?(dr(!1,`Use "dataKey" to specify the value of pie,
259
+ the props "valueKey" will be deprecated in 1.1.0`),g="value"):le(u)&&(dr(!1,`Use "dataKey" to specify the value of pie,
260
+ the props "valueKey" will be deprecated in 1.1.0`),g=f);var y=i.filter(function($){return ct($,g,0)!==0}).length,x=(w>=360?y:y-1)*s,E=w-y*p-x,_=i.reduce(function($,T){var C=ct(T,g,0);return $+(G(C)?C:0)},0),S;if(_>0){var O;S=i.map(function($,T){var C=ct($,g,0),A=ct($,c,T),N=(G(C)?C:0)/_,R;T?R=O.endAngle+an(m)*s*(C!==0?1:0):R=a;var D=R+an(m)*((C!==0?p:0)+N*E),M=(R+D)/2,F=(h.innerRadius+h.outerRadius)/2,I=[{name:A,value:C,payload:$,dataKey:g,type:d}],P=Se(h.cx,h.cy,F,M);return O=be(be(be({percent:N,cornerRadius:o,name:A,tooltipPayload:I,midAngle:M,middleRadius:F,tooltipPosition:P},$),h),{},{value:ct($,g),startAngle:R,endAngle:D,payload:$,paddingAngle:an(m)*s}),O})}return be(be({},h),{},{sectors:S,data:i})});var oZ=Math.ceil,aZ=Math.max;function lZ(e,t,n,r){for(var i=-1,o=aZ(oZ((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a}var sZ=lZ,uZ=v2,U_=1/0,cZ=17976931348623157e292;function fZ(e){if(!e)return e===0?e:0;if(e=uZ(e),e===U_||e===-U_){var t=e<0?-1:1;return t*cZ}return e===e?e:0}var dZ=fZ,pZ=sZ,hZ=Ld,bh=dZ;function mZ(e){return function(t,n,r){return r&&typeof r!="number"&&hZ(t,n,r)&&(n=r=void 0),t=bh(t),n===void 0?(n=t,t=0):n=bh(n),r=r===void 0?t<n?1:-1:bh(r),pZ(t,n,r,e)}}var vZ=mZ,gZ=vZ,yZ=gZ(),xZ=yZ;const $f=me(xZ);function As(e){"@babel/helpers - typeof";return As=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},As(e)}function H_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function W_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H_(Object(n),!0).forEach(function(r){Qj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qj(e,t,n){return t=bZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bZ(e){var t=wZ(e,"string");return As(t)=="symbol"?t:t+""}function wZ(e,t){if(As(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(As(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _Z=["Webkit","Moz","O","ms"],SZ=function(t,n){var r=t.replace(/(\w)/,function(o){return o.toUpperCase()}),i=_Z.reduce(function(o,a){return W_(W_({},o),{},Qj({},a+r,n))},{});return i[t]=n,i};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 Pf(){return Pf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pf.apply(this,arguments)}function V_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function wh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V_(Object(n),!0).forEach(function(r){Dt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function EZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Jj(r.key),r)}}function OZ(e,t,n){return t&&K_(e.prototype,t),n&&K_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $Z(e,t,n){return t=jf(t),PZ(e,Zj()?Reflect.construct(t,n||[],jf(e).constructor):t.apply(e,n))}function PZ(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 jZ(e)}function jZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Zj=function(){return!!e})()}function jf(e){return jf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jf(e)}function TZ(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&&qv(e,t)}function qv(e,t){return qv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},qv(e,t)}function Dt(e,t,n){return t=Jj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jj(e){var t=AZ(e,"string");return fa(t)=="symbol"?t:t+""}function AZ(e,t){if(fa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(fa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var CZ=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,o=t.x,a=t.width,l=t.travellerWidth;if(!n||!n.length)return{};var s=n.length,u=Al().domain($f(0,s)).range([o,o+a-l]),c=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(i),scale:u,scaleValues:c}},G_=function(t){return t.changedTouches&&!!t.changedTouches.length},da=function(e){function t(n){var r;return EZ(this,t),r=$Z(this,t,[n]),Dt(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),Dt(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),Dt(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,o=i.endIndex,a=i.onDragEnd,l=i.startIndex;a==null||a({endIndex:o,startIndex:l})}),r.detachDragEndListener()}),Dt(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),Dt(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),Dt(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),Dt(r,"handleSlideDragStart",function(i){var o=G_(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return TZ(t,e),OZ(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,o=r.endX,a=this.state.scaleValues,l=this.props,s=l.gap,u=l.data,c=u.length-1,f=Math.min(i,o),d=Math.max(i,o),p=t.getIndexInRange(a,f),h=t.getIndexInRange(a,d);return{startIndex:p-p%s,endIndex:h===c?c:h-h%s}}},{key:"getTextOfTick",value:function(r){var i=this.props,o=i.data,a=i.tickFormatter,l=i.dataKey,s=ct(o[r],l,r);return te(a)?a(s,r):s}},{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(r){var i=this.state,o=i.slideMoveStartX,a=i.startX,l=i.endX,s=this.props,u=s.x,c=s.width,f=s.travellerWidth,d=s.startIndex,p=s.endIndex,h=s.onChange,m=r.pageX-o;m>0?m=Math.min(m,u+c-f-l,u+c-f-a):m<0&&(m=Math.max(m,u-a,u-l));var w=this.getIndex({startX:a+m,endX:l+m});(w.startIndex!==d||w.endIndex!==p)&&h&&h(w),this.setState({startX:a+m,endX:l+m,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var o=G_(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,o=i.brushMoveStartX,a=i.movingTravellerId,l=i.endX,s=i.startX,u=this.state[a],c=this.props,f=c.x,d=c.width,p=c.travellerWidth,h=c.onChange,m=c.gap,w=c.data,g={startX:this.state.startX,endX:this.state.endX},y=r.pageX-o;y>0?y=Math.min(y,f+d-p-u):y<0&&(y=Math.max(y,f-u)),g[a]=u+y;var x=this.getIndex(g),E=x.startIndex,_=x.endIndex,S=function(){var $=w.length-1;return a==="startX"&&(l>s?E%m===0:_%m===0)||l<s&&_===$||a==="endX"&&(l>s?_%m===0:E%m===0)||l>s&&_===$};this.setState(Dt(Dt({},a,u+y),"brushMoveStartX",r.pageX),function(){h&&S()&&h(x)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var o=this,a=this.state,l=a.scaleValues,s=a.startX,u=a.endX,c=this.state[i],f=l.indexOf(c);if(f!==-1){var d=f+r;if(!(d===-1||d>=l.length)){var p=l[d];i==="startX"&&p>=u||i==="endX"&&p<=s||this.setState(Dt({},i,p),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,l=r.height,s=r.fill,u=r.stroke;return j.createElement("rect",{stroke:u,fill:s,x:i,y:o,width:a,height:l})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,o=r.y,a=r.width,l=r.height,s=r.data,u=r.children,c=r.padding,f=b.Children.only(u);return f?j.cloneElement(f,{x:i,y:o,width:a,height:l,margin:c,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(r,i){var o,a,l=this,s=this.props,u=s.y,c=s.travellerWidth,f=s.height,d=s.traveller,p=s.ariaLabel,h=s.data,m=s.startIndex,w=s.endIndex,g=Math.max(r,this.props.x),y=wh(wh({},ne(this.props,!1)),{},{x:g,y:u,width:c,height:f}),x=p||"Min value: ".concat((o=h[m])===null||o===void 0?void 0:o.name,", Max value: ").concat((a=h[w])===null||a===void 0?void 0:a.name);return j.createElement(Te,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(_){["ArrowLeft","ArrowRight"].includes(_.key)&&(_.preventDefault(),_.stopPropagation(),l.handleTravellerMoveKeyboard(_.key==="ArrowRight"?1:-1,i))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,y))}},{key:"renderSlide",value:function(r,i){var o=this.props,a=o.y,l=o.height,s=o.stroke,u=o.travellerWidth,c=Math.min(r,i)+u,f=Math.max(Math.abs(i-r)-u,0);return j.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:s,fillOpacity:.2,x:c,y:a,width:f,height:l})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,o=r.endIndex,a=r.y,l=r.height,s=r.travellerWidth,u=r.stroke,c=this.state,f=c.startX,d=c.endX,p=5,h={pointerEvents:"none",fill:u};return j.createElement(Te,{className:"recharts-brush-texts"},j.createElement(ta,Pf({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,d)-p,y:a+l/2},h),this.getTextOfTick(i)),j.createElement(ta,Pf({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,d)+s+p,y:a+l/2},h),this.getTextOfTick(o)))}},{key:"render",value:function(){var r=this.props,i=r.data,o=r.className,a=r.children,l=r.x,s=r.y,u=r.width,c=r.height,f=r.alwaysShowText,d=this.state,p=d.startX,h=d.endX,m=d.isTextActive,w=d.isSlideMoving,g=d.isTravellerMoving,y=d.isTravellerFocused;if(!i||!i.length||!G(l)||!G(s)||!G(u)||!G(c)||u<=0||c<=0)return null;var x=ue("recharts-brush",o),E=j.Children.count(a)===1,_=SZ("userSelect","none");return j.createElement(Te,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:_},this.renderBackground(),E&&this.renderPanorama(),this.renderSlide(p,h),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(h,"endX"),(m||w||g||y||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,o=r.y,a=r.width,l=r.height,s=r.stroke,u=Math.floor(o+l/2)-1;return j.createElement(j.Fragment,null,j.createElement("rect",{x:i,y:o,width:a,height:l,fill:s,stroke:"none"}),j.createElement("line",{x1:i+1,y1:u,x2:i+a-1,y2:u,fill:"none",stroke:"#fff"}),j.createElement("line",{x1:i+1,y1:u+2,x2:i+a-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var o;return j.isValidElement(r)?o=j.cloneElement(r,i):te(r)?o=r(i):o=t.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(r,i){var o=r.data,a=r.width,l=r.x,s=r.travellerWidth,u=r.updateId,c=r.startIndex,f=r.endIndex;if(o!==i.prevData||u!==i.prevUpdateId)return wh({prevData:o,prevTravellerWidth:s,prevUpdateId:u,prevX:l,prevWidth:a},o&&o.length?CZ({data:o,width:a,x:l,travellerWidth:s,startIndex:c,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(a!==i.prevWidth||l!==i.prevX||s!==i.prevTravellerWidth)){i.scale.range([l,l+a-s]);var d=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:o,prevTravellerWidth:s,prevUpdateId:u,prevX:l,prevWidth:a,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(r,i){for(var o=r.length,a=0,l=o-1;l-a>1;){var s=Math.floor((a+l)/2);r[s]>i?l=s:a=s}return i>=r[l]?l:a}}])}(b.PureComponent);Dt(da,"displayName","Brush");Dt(da,"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 kZ=Qy;function NZ(e,t){var n;return kZ(e,function(r,i,o){return n=t(r,i,o),!n}),!!n}var MZ=NZ,RZ=zP,IZ=di,LZ=MZ,DZ=jt,FZ=Ld;function BZ(e,t,n){var r=DZ(e)?RZ:LZ;return n&&FZ(e,t,n)&&(t=void 0),r(e,IZ(t))}var zZ=BZ;const UZ=me(zZ);var Wn=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},q_=c2;function HZ(e,t,n){t=="__proto__"&&q_?q_(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var A0=HZ,WZ=A0,VZ=l2,KZ=di;function GZ(e,t){var n={};return t=KZ(t),VZ(e,function(r,i,o){WZ(n,i,t(r,i,o))}),n}var qZ=GZ;const XZ=me(qZ);function YZ(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}var QZ=YZ,ZZ=Qy;function JZ(e,t){var n=!0;return ZZ(e,function(r,i,o){return n=!!t(r,i,o),n}),n}var eJ=JZ,tJ=QZ,nJ=eJ,rJ=di,iJ=jt,oJ=Ld;function aJ(e,t,n){var r=iJ(e)?tJ:nJ;return n&&oJ(e,t,n)&&(t=void 0),r(e,rJ(t))}var lJ=aJ;const sJ=me(lJ);function Cs(e){"@babel/helpers - typeof";return Cs=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},Cs(e)}function uJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,eT(r.key),r)}}function cJ(e,t,n){return t&&X_(e.prototype,t),n&&X_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Y_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ku(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Y_(Object(n),!0).forEach(function(r){C0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function C0(e,t,n){return t=eT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eT(e){var t=fJ(e,"string");return Cs(t)=="symbol"?t:t+""}function fJ(e,t){if(Cs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Cs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tT=function(t,n){var r=t.x,i=t.y,o=n.x,a=n.y;return{x:Math.min(r,o),y:Math.min(i,a),width:Math.abs(o-r),height:Math.abs(a-i)}},dJ=function(t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2;return tT({x:n,y:r},{x:i,y:o})},nT=function(){function e(t){uJ(this,e),this.scale=t}return cJ(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(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,o=r.position;if(n!==void 0){if(o)switch(o){case"start":return this.scale(n);case"middle":{var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+a}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(n)+l}default:return this.scale(n)}if(i){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+s}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],o=r[r.length-1];return i<=o?n>=i&&n<=o:n>=o&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])}();C0(nT,"EPS",1e-4);var k0=function(t){var n=Object.keys(t).reduce(function(r,i){return Ku(Ku({},r),{},C0({},i,nT.create(t[i])))},{});return Ku(Ku({},n),{},{apply:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=o.bandAware,l=o.position;return XZ(i,function(s,u){return n[u].apply(s,{bandAware:a,position:l})})},isInRange:function(i){return sJ(i,function(o,a){return n[a].isInRange(o)})}})},pJ=yL(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("")}),rT=b.createContext(void 0),iT=b.createContext(void 0),oT=b.createContext(void 0),hJ=b.createContext({}),aT=b.createContext(void 0),mJ=b.createContext(0),vJ=b.createContext(0),Q_=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,o=n.offset,a=t.clipPathId,l=t.children,s=t.width,u=t.height,c=pJ(o);return j.createElement(rT.Provider,{value:r},j.createElement(iT.Provider,{value:i},j.createElement(hJ.Provider,{value:o},j.createElement(oT.Provider,{value:c},j.createElement(aT.Provider,{value:a},j.createElement(mJ.Provider,{value:u},j.createElement(vJ.Provider,{value:s},l)))))))},gJ=function(){return b.useContext(aT)},yJ=function(t){var n=b.useContext(rT);n==null&&oa();var r=n[t];return r==null&&oa(),r},xJ=function(t){var n=b.useContext(iT);n==null&&oa();var r=n[t];return r==null&&oa(),r},bJ=function(){var t=b.useContext(oT);return t};function pa(e){"@babel/helpers - typeof";return pa=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},pa(e)}function wJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _J(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sT(r.key),r)}}function SJ(e,t,n){return t&&_J(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function EJ(e,t,n){return t=Tf(t),OJ(e,lT()?Reflect.construct(t,n||[],Tf(e).constructor):t.apply(e,n))}function OJ(e,t){if(t&&(pa(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $J(e)}function $J(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lT=function(){return!!e})()}function Tf(e){return Tf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Tf(e)}function PJ(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&&Xv(e,t)}function Xv(e,t){return Xv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Xv(e,t)}function Z_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function J_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Z_(Object(n),!0).forEach(function(r){N0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function N0(e,t,n){return t=sT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sT(e){var t=jJ(e,"string");return pa(t)=="symbol"?t:t+""}function jJ(e,t){if(pa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(pa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TJ(e,t){return NJ(e)||kJ(e,t)||CJ(e,t)||AJ()}function AJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
261
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CJ(e,t){if(e){if(typeof e=="string")return eS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eS(e,t)}}function eS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}function NJ(e){if(Array.isArray(e))return e}function Yv(){return Yv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yv.apply(this,arguments)}var MJ=function(t,n){var r;return j.isValidElement(t)?r=j.cloneElement(t,n):te(t)?r=t(n):r=j.createElement("line",Yv({},n,{className:"recharts-reference-line-line"})),r},RJ=function(t,n,r,i,o,a,l,s,u){var c=o.x,f=o.y,d=o.width,p=o.height;if(r){var h=u.y,m=t.y.apply(h,{position:a});if(Wn(u,"discard")&&!t.y.isInRange(m))return null;var w=[{x:c+d,y:m},{x:c,y:m}];return s==="left"?w.reverse():w}if(n){var g=u.x,y=t.x.apply(g,{position:a});if(Wn(u,"discard")&&!t.x.isInRange(y))return null;var x=[{x:y,y:f+p},{x:y,y:f}];return l==="top"?x.reverse():x}if(i){var E=u.segment,_=E.map(function(S){return t.apply(S,{position:a})});return Wn(u,"discard")&&UZ(_,function(S){return!t.isInRange(S)})?null:_}return null};function IJ(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,o=e.yAxisId,a=e.shape,l=e.className,s=e.alwaysShow,u=gJ(),c=yJ(i),f=xJ(o),d=bJ();if(!u||!d)return null;dr(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=k0({x:c.scale,y:f.scale}),h=Je(t),m=Je(n),w=r&&r.length===2,g=RJ(p,h,m,w,d,e.position,c.orientation,f.orientation,e);if(!g)return null;var y=TJ(g,2),x=y[0],E=x.x,_=x.y,S=y[1],O=S.x,$=S.y,T=Wn(e,"hidden")?"url(#".concat(u,")"):void 0,C=J_(J_({clipPath:T},ne(e,!0)),{},{x1:E,y1:_,x2:O,y2:$});return j.createElement(Te,{className:ue("recharts-reference-line",l)},MJ(a,C),ut.renderCallByParent(e,dJ({x1:E,y1:_,x2:O,y2:$})))}var M0=function(e){function t(){return wJ(this,t),EJ(this,t,arguments)}return PJ(t,e),SJ(t,[{key:"render",value:function(){return j.createElement(IJ,this.props)}}])}(j.Component);N0(M0,"displayName","ReferenceLine");N0(M0,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Qv(){return Qv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qv.apply(this,arguments)}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 tS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tS(Object(n),!0).forEach(function(r){np(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function LJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DJ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cT(r.key),r)}}function FJ(e,t,n){return t&&DJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function BJ(e,t,n){return t=Af(t),zJ(e,uT()?Reflect.construct(t,n||[],Af(e).constructor):t.apply(e,n))}function zJ(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 UJ(e)}function UJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uT=function(){return!!e})()}function Af(e){return Af=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Af(e)}function HJ(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&&Zv(e,t)}function Zv(e,t){return Zv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Zv(e,t)}function np(e,t,n){return t=cT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cT(e){var t=WJ(e,"string");return ha(t)=="symbol"?t:t+""}function WJ(e,t){if(ha(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ha(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var VJ=function(t){var n=t.x,r=t.y,i=t.xAxis,o=t.yAxis,a=k0({x:i.scale,y:o.scale}),l=a.apply({x:n,y:r},{bandAware:!0});return Wn(t,"discard")&&!a.isInRange(l)?null:l},rp=function(e){function t(){return LJ(this,t),BJ(this,t,arguments)}return HJ(t,e),FJ(t,[{key:"render",value:function(){var r=this.props,i=r.x,o=r.y,a=r.r,l=r.alwaysShow,s=r.clipPathId,u=Je(i),c=Je(o);if(dr(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!c)return null;var f=VJ(this.props);if(!f)return null;var d=f.x,p=f.y,h=this.props,m=h.shape,w=h.className,g=Wn(this.props,"hidden")?"url(#".concat(s,")"):void 0,y=nS(nS({clipPath:g},ne(this.props,!0)),{},{cx:d,cy:p});return j.createElement(Te,{className:ue("recharts-reference-dot",w)},t.renderDot(m,y),ut.renderCallByParent(this.props,{x:d-a,y:p-a,width:2*a,height:2*a}))}}])}(j.Component);np(rp,"displayName","ReferenceDot");np(rp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});np(rp,"renderDot",function(e,t){var n;return j.isValidElement(e)?n=j.cloneElement(e,t):te(e)?n=e(t):n=j.createElement(j0,Qv({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function Jv(){return Jv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jv.apply(this,arguments)}function ma(e){"@babel/helpers - typeof";return ma=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},ma(e)}function rS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function iS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rS(Object(n),!0).forEach(function(r){ip(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GJ(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dT(r.key),r)}}function qJ(e,t,n){return t&&GJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function XJ(e,t,n){return t=Cf(t),YJ(e,fT()?Reflect.construct(t,n||[],Cf(e).constructor):t.apply(e,n))}function YJ(e,t){if(t&&(ma(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return QJ(e)}function QJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fT=function(){return!!e})()}function Cf(e){return Cf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cf(e)}function ZJ(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&&eg(e,t)}function eg(e,t){return eg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},eg(e,t)}function ip(e,t,n){return t=dT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dT(e){var t=JJ(e,"string");return ma(t)=="symbol"?t:t+""}function JJ(e,t){if(ma(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ma(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var eee=function(t,n,r,i,o){var a=o.x1,l=o.x2,s=o.y1,u=o.y2,c=o.xAxis,f=o.yAxis;if(!c||!f)return null;var d=k0({x:c.scale,y:f.scale}),p={x:t?d.x.apply(a,{position:"start"}):d.x.rangeMin,y:r?d.y.apply(s,{position:"start"}):d.y.rangeMin},h={x:n?d.x.apply(l,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(u,{position:"end"}):d.y.rangeMax};return Wn(o,"discard")&&(!d.isInRange(p)||!d.isInRange(h))?null:tT(p,h)},op=function(e){function t(){return KJ(this,t),XJ(this,t,arguments)}return ZJ(t,e),qJ(t,[{key:"render",value:function(){var r=this.props,i=r.x1,o=r.x2,a=r.y1,l=r.y2,s=r.className,u=r.alwaysShow,c=r.clipPathId;dr(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=Je(i),d=Je(o),p=Je(a),h=Je(l),m=this.props.shape;if(!f&&!d&&!p&&!h&&!m)return null;var w=eee(f,d,p,h,this.props);if(!w&&!m)return null;var g=Wn(this.props,"hidden")?"url(#".concat(c,")"):void 0;return j.createElement(Te,{className:ue("recharts-reference-area",s)},t.renderRect(m,iS(iS({clipPath:g},ne(this.props,!0)),w)),ut.renderCallByParent(this.props,w))}}])}(j.Component);ip(op,"displayName","ReferenceArea");ip(op,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});ip(op,"renderRect",function(e,t){var n;return j.isValidElement(e)?n=j.cloneElement(e,t):te(e)?n=e(t):n=j.createElement(P0,Jv({},t,{className:"recharts-reference-area-rect"})),n});function oS(e){return iee(e)||ree(e)||nee(e)||tee()}function tee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
262
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nee(e,t){if(e){if(typeof e=="string")return tg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tg(e,t)}}function ree(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iee(e){if(Array.isArray(e))return tg(e)}function tg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ng=function(t,n,r,i,o){var a=Pn(t,M0),l=Pn(t,rp),s=[].concat(oS(a),oS(l)),u=Pn(t,op),c="".concat(i,"Id"),f=i[0],d=n;if(s.length&&(d=s.reduce(function(m,w){if(w.props[c]===r&&Wn(w.props,"extendDomain")&&G(w.props[f])){var g=w.props[f];return[Math.min(m[0],g),Math.max(m[1],g)]}return m},d)),u.length){var p="".concat(f,"1"),h="".concat(f,"2");d=u.reduce(function(m,w){if(w.props[c]===r&&Wn(w.props,"extendDomain")&&G(w.props[p])&&G(w.props[h])){var g=w.props[p],y=w.props[h];return[Math.min(m[0],g,y),Math.max(m[1],g,y)]}return m},d)}return o&&o.length&&(d=o.reduce(function(m,w){return G(w)?[Math.min(m[0],w),Math.max(m[1],w)]:m},d)),d},pT={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(s,u,c){this.fn=s,this.context=u,this.once=c||!1}function o(s,u,c,f,d){if(typeof c!="function")throw new TypeError("The listener must be a function");var p=new i(c,f||s,d),h=n?n+u:u;return s._events[h]?s._events[h].fn?s._events[h]=[s._events[h],p]:s._events[h].push(p):(s._events[h]=p,s._eventsCount++),s}function a(s,u){--s._eventsCount===0?s._events=new r:delete s._events[u]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],c,f;if(this._eventsCount===0)return u;for(f in c=this._events)t.call(c,f)&&u.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},l.prototype.listeners=function(u){var c=n?n+u:u,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,p=f.length,h=new Array(p);d<p;d++)h[d]=f[d].fn;return h},l.prototype.listenerCount=function(u){var c=n?n+u:u,f=this._events[c];return f?f.fn?1:f.length:0},l.prototype.emit=function(u,c,f,d,p,h){var m=n?n+u:u;if(!this._events[m])return!1;var w=this._events[m],g=arguments.length,y,x;if(w.fn){switch(w.once&&this.removeListener(u,w.fn,void 0,!0),g){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,c),!0;case 3:return w.fn.call(w.context,c,f),!0;case 4:return w.fn.call(w.context,c,f,d),!0;case 5:return w.fn.call(w.context,c,f,d,p),!0;case 6:return w.fn.call(w.context,c,f,d,p,h),!0}for(x=1,y=new Array(g-1);x<g;x++)y[x-1]=arguments[x];w.fn.apply(w.context,y)}else{var E=w.length,_;for(x=0;x<E;x++)switch(w[x].once&&this.removeListener(u,w[x].fn,void 0,!0),g){case 1:w[x].fn.call(w[x].context);break;case 2:w[x].fn.call(w[x].context,c);break;case 3:w[x].fn.call(w[x].context,c,f);break;case 4:w[x].fn.call(w[x].context,c,f,d);break;default:if(!y)for(_=1,y=new Array(g-1);_<g;_++)y[_-1]=arguments[_];w[x].fn.apply(w[x].context,y)}}return!0},l.prototype.on=function(u,c,f){return o(this,u,c,f,!1)},l.prototype.once=function(u,c,f){return o(this,u,c,f,!0)},l.prototype.removeListener=function(u,c,f,d){var p=n?n+u:u;if(!this._events[p])return this;if(!c)return a(this,p),this;var h=this._events[p];if(h.fn)h.fn===c&&(!d||h.once)&&(!f||h.context===f)&&a(this,p);else{for(var m=0,w=[],g=h.length;m<g;m++)(h[m].fn!==c||d&&!h[m].once||f&&h[m].context!==f)&&w.push(h[m]);w.length?this._events[p]=w.length===1?w[0]:w:a(this,p)}return this},l.prototype.removeAllListeners=function(u){var c;return u?(c=n?n+u:u,this._events[c]&&a(this,c)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l})(pT);var oee=pT.exports;const aee=me(oee);var _h=new aee,Sh="recharts.syncMouseEvents";function ks(e){"@babel/helpers - typeof";return ks=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},ks(e)}function lee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function see(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hT(r.key),r)}}function uee(e,t,n){return t&&see(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Eh(e,t,n){return t=hT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hT(e){var t=cee(e,"string");return ks(t)=="symbol"?t:t+""}function cee(e,t){if(ks(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ks(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var fee=function(){function e(){lee(this,e),Eh(this,"activeIndex",0),Eh(this,"coordinateList",[]),Eh(this,"layout","horizontal")}return uee(e,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,o=i===void 0?null:i,a=n.container,l=a===void 0?null:a,s=n.layout,u=s===void 0?null:s,c=n.offset,f=c===void 0?null:c,d=n.mouseHandlerCallback,p=d===void 0?null:d;this.coordinateList=(r=o??this.coordinateList)!==null&&r!==void 0?r:[],this.container=l??this.container,this.layout=u??this.layout,this.offset=f??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(n){if(this.coordinateList.length!==0)switch(n.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(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),o=i.x,a=i.y,l=i.height,s=this.coordinateList[this.activeIndex].coordinate,u=((n=window)===null||n===void 0?void 0:n.scrollX)||0,c=((r=window)===null||r===void 0?void 0:r.scrollY)||0,f=o+s+u,d=a+this.offset.top+l/2+c;this.mouseHandlerCallback({pageX:f,pageY:d})}}}])}();function dee(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],i=e==null?void 0:e[1];if(r&&i&&G(r)&&G(i))return!0}return!1}function pee(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function mT(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,o=e.endAngle,a=Se(t,n,r,i),l=Se(t,n,r,o);return{points:[a,l],cx:t,cy:n,radius:r,startAngle:i,endAngle:o}}function hee(e,t,n){var r,i,o,a;if(e==="horizontal")r=t.x,o=r,i=n.top,a=n.top+n.height;else if(e==="vertical")i=t.y,a=i,r=n.left,o=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var l=t.cx,s=t.cy,u=t.innerRadius,c=t.outerRadius,f=t.angle,d=Se(l,s,u,f),p=Se(l,s,c,f);r=d.x,i=d.y,o=p.x,a=p.y}else return mT(t);return[{x:r,y:i},{x:o,y:a}]}function Ns(e){"@babel/helpers - typeof";return Ns=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},Ns(e)}function aS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aS(Object(n),!0).forEach(function(r){mee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mee(e,t,n){return t=vee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vee(e){var t=gee(e,"string");return Ns(t)=="symbol"?t:t+""}function gee(e,t){if(Ns(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ns(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yee(e){var t,n,r=e.element,i=e.tooltipEventType,o=e.isActive,a=e.activeCoordinate,l=e.activePayload,s=e.offset,u=e.activeTooltipIndex,c=e.tooltipAxisBandSize,f=e.layout,d=e.chartName,p=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!p||!o||!a||d!=="ScatterChart"&&i!=="axis")return null;var h,m=kv;if(d==="ScatterChart")h=a,m=kY;else if(d==="BarChart")h=pee(f,a,s,c),m=P0;else if(f==="radial"){var w=mT(a),g=w.cx,y=w.cy,x=w.radius,E=w.startAngle,_=w.endAngle;h={cx:g,cy:y,startAngle:E,endAngle:_,innerRadius:x,outerRadius:x},m=Tj}else h={points:hee(f,a,s)},m=kv;var S=Gu(Gu(Gu(Gu({stroke:"#ccc",pointerEvents:"none"},s),h),ne(p,!1)),{},{payload:l,payloadIndex:u,className:ue("recharts-tooltip-cursor",p.className)});return b.isValidElement(p)?b.cloneElement(p,S):b.createElement(m,S)}var xee=["item"],bee=["children","className","width","height","style","compact","title","desc"];function va(e){"@babel/helpers - typeof";return va=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},va(e)}function ko(){return ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ko.apply(this,arguments)}function lS(e,t){return See(e)||_ee(e,t)||gT(e,t)||wee()}function wee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
263
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _ee(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}function See(e){if(Array.isArray(e))return e}function sS(e,t){if(e==null)return{};var n=Eee(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Eee(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Oee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yT(r.key),r)}}function Pee(e,t,n){return t&&$ee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jee(e,t,n){return t=kf(t),Tee(e,vT()?Reflect.construct(t,n||[],kf(e).constructor):t.apply(e,n))}function Tee(e,t){if(t&&(va(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Aee(e)}function Aee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vT=function(){return!!e})()}function kf(e){return kf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},kf(e)}function Cee(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&&rg(e,t)}function rg(e,t){return rg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},rg(e,t)}function ga(e){return Mee(e)||Nee(e)||gT(e)||kee()}function kee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
264
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gT(e,t){if(e){if(typeof e=="string")return ig(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ig(e,t)}}function Nee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Mee(e){if(Array.isArray(e))return ig(e)}function ig(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function uS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uS(Object(n),!0).forEach(function(r){Y(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Y(e,t,n){return t=yT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yT(e){var t=Ree(e,"string");return va(t)=="symbol"?t:t+""}function Ree(e,t){if(va(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(va(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Iee={xAxis:["bottom","top"],yAxis:["left","right"]},Lee={width:"100%",height:"100%"},xT={x:0,y:0};function qu(e){return e}var Dee=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},Fee=function(t,n,r,i){var o=n.find(function(c){return c&&c.index===r});if(o){if(t==="horizontal")return{x:o.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:o.coordinate};if(t==="centric"){var a=o.coordinate,l=i.radius;return z(z(z({},i),Se(i.cx,i.cy,l,a)),{},{angle:a,radius:l})}var s=o.coordinate,u=i.angle;return z(z(z({},i),Se(i.cx,i.cy,s,u)),{},{angle:u,radius:s})}return xT},ap=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,o=n.dataEndIndex,a=(r??[]).reduce(function(l,s){var u=s.props.data;return u&&u.length?[].concat(ga(l),ga(u)):l},[]);return a.length>0?a:t&&t.length&&G(i)&&G(o)?t.slice(i,o+1):[]};function bT(e){return e==="number"?[0,"auto"]:void 0}var og=function(t,n,r,i){var o=t.graphicalItems,a=t.tooltipAxis,l=ap(n,t);return r<0||!o||!o.length||r>=l.length?null:o.reduce(function(s,u){var c,f=(c=u.props.data)!==null&&c!==void 0?c:n;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(a.dataKey&&!a.allowDuplicatedCategory){var p=f===void 0?l:f;d=Dm(p,a.dataKey,i)}else d=f&&f[r]||l[r];return d?[].concat(ga(s),[jG(u,d)]):s},[])},cS=function(t,n,r,i){var o=i||{x:t.chartX,y:t.chartY},a=Dee(o,r),l=t.orderedTooltipTicks,s=t.tooltipAxis,u=t.tooltipTicks,c=dG(a,l,u,s);if(c>=0&&u){var f=u[c]&&u[c].value,d=og(t,n,c,f),p=Fee(r,l,c,o);return{activeTooltipIndex:c,activeLabel:f,activePayload:d,activeCoordinate:p}}return null},Bee=function(t,n){var r=n.axes,i=n.graphicalItems,o=n.axisType,a=n.axisIdKey,l=n.stackGroups,s=n.dataStartIndex,u=n.dataEndIndex,c=t.layout,f=t.children,d=t.stackOffset,p=wj(c,o);return r.reduce(function(h,m){var w,g=m.type.defaultProps!==void 0?z(z({},m.type.defaultProps),m.props):m.props,y=g.type,x=g.dataKey,E=g.allowDataOverflow,_=g.allowDuplicatedCategory,S=g.scale,O=g.ticks,$=g.includeHidden,T=g[a];if(h[T])return h;var C=ap(t.data,{graphicalItems:i.filter(function(U){var V,re=a in U.props?U.props[a]:(V=U.type.defaultProps)===null||V===void 0?void 0:V[a];return re===T}),dataStartIndex:s,dataEndIndex:u}),A=C.length,N,R,D;dee(g.domain,E,y)&&(N=$v(g.domain,null,E),p&&(y==="number"||S!=="auto")&&(D=Cl(C,x,"category")));var M=bT(y);if(!N||N.length===0){var F,I=(F=g.domain)!==null&&F!==void 0?F:M;if(x){if(N=Cl(C,x,y),y==="category"&&p){var P=h5(N);_&&P?(R=N,N=$f(0,A)):_||(N=Ww(I,N,m).reduce(function(U,V){return U.indexOf(V)>=0?U:[].concat(ga(U),[V])},[]))}else if(y==="category")_?N=N.filter(function(U){return U!==""&&!le(U)}):N=Ww(I,N,m).reduce(function(U,V){return U.indexOf(V)>=0||V===""||le(V)?U:[].concat(ga(U),[V])},[]);else if(y==="number"){var k=gG(C,i.filter(function(U){var V,re,ie=a in U.props?U.props[a]:(V=U.type.defaultProps)===null||V===void 0?void 0:V[a],J="hide"in U.props?U.props.hide:(re=U.type.defaultProps)===null||re===void 0?void 0:re.hide;return ie===T&&($||!J)}),x,o,c);k&&(N=k)}p&&(y==="number"||S!=="auto")&&(D=Cl(C,x,"category"))}else p?N=$f(0,A):l&&l[T]&&l[T].hasStack&&y==="number"?N=d==="expand"?[0,1]:_j(l[T].stackGroups,s,u):N=bj(C,i.filter(function(U){var V=a in U.props?U.props[a]:U.type.defaultProps[a],re="hide"in U.props?U.props.hide:U.type.defaultProps.hide;return V===T&&($||!re)}),y,c,!0);if(y==="number")N=ng(f,N,T,o,O),I&&(N=$v(I,N,E));else if(y==="category"&&I){var B=I,L=N.every(function(U){return B.indexOf(U)>=0});L&&(N=B)}}return z(z({},h),{},Y({},T,z(z({},g),{},{axisType:o,domain:N,categoricalDomain:D,duplicateDomain:R,originalDomain:(w=g.domain)!==null&&w!==void 0?w:M,isCategorical:p,layout:c})))},{})},zee=function(t,n){var r=n.graphicalItems,i=n.Axis,o=n.axisType,a=n.axisIdKey,l=n.stackGroups,s=n.dataStartIndex,u=n.dataEndIndex,c=t.layout,f=t.children,d=ap(t.data,{graphicalItems:r,dataStartIndex:s,dataEndIndex:u}),p=d.length,h=wj(c,o),m=-1;return r.reduce(function(w,g){var y=g.type.defaultProps!==void 0?z(z({},g.type.defaultProps),g.props):g.props,x=y[a],E=bT("number");if(!w[x]){m++;var _;return h?_=$f(0,p):l&&l[x]&&l[x].hasStack?(_=_j(l[x].stackGroups,s,u),_=ng(f,_,x,o)):(_=$v(E,bj(d,r.filter(function(S){var O,$,T=a in S.props?S.props[a]:(O=S.type.defaultProps)===null||O===void 0?void 0:O[a],C="hide"in S.props?S.props.hide:($=S.type.defaultProps)===null||$===void 0?void 0:$.hide;return T===x&&!C}),"number",c),i.defaultProps.allowDataOverflow),_=ng(f,_,x,o)),z(z({},w),{},Y({},x,z(z({axisType:o},i.defaultProps),{},{hide:!0,orientation:$n(Iee,"".concat(o,".").concat(m%2),null),domain:_,originalDomain:E,isCategorical:h,layout:c})))}return w},{})},Uee=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,o=n.AxisComp,a=n.graphicalItems,l=n.stackGroups,s=n.dataStartIndex,u=n.dataEndIndex,c=t.children,f="".concat(i,"Id"),d=Pn(c,o),p={};return d&&d.length?p=Bee(t,{axes:d,graphicalItems:a,axisType:i,axisIdKey:f,stackGroups:l,dataStartIndex:s,dataEndIndex:u}):a&&a.length&&(p=zee(t,{Axis:o,graphicalItems:a,axisType:i,axisIdKey:f,stackGroups:l,dataStartIndex:s,dataEndIndex:u})),p},Hee=function(t){var n=mo(t),r=gl(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:Zy(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Pv(n,r)}},fS=function(t){var n=t.children,r=t.defaultShowTooltip,i=Jt(n,da),o=0,a=0;return t.data&&t.data.length!==0&&(a=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(o=i.props.startIndex),i.props.endIndex>=0&&(a=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:a,activeTooltipIndex:-1,isTooltipActive:!!r}},Wee=function(t){return!t||!t.length?!1:t.some(function(n){var r=fr(n&&n.type);return r&&r.indexOf("Bar")>=0})},dS=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"}},Vee=function(t,n){var r=t.props,i=t.graphicalItems,o=t.xAxisMap,a=o===void 0?{}:o,l=t.yAxisMap,s=l===void 0?{}:l,u=r.width,c=r.height,f=r.children,d=r.margin||{},p=Jt(f,da),h=Jt(f,Fo),m=Object.keys(s).reduce(function(_,S){var O=s[S],$=O.orientation;return!O.mirror&&!O.hide?z(z({},_),{},Y({},$,_[$]+O.width)):_},{left:d.left||0,right:d.right||0}),w=Object.keys(a).reduce(function(_,S){var O=a[S],$=O.orientation;return!O.mirror&&!O.hide?z(z({},_),{},Y({},$,$n(_,"".concat($))+O.height)):_},{top:d.top||0,bottom:d.bottom||0}),g=z(z({},w),m),y=g.bottom;p&&(g.bottom+=p.props.height||da.defaultProps.height),h&&n&&(g=mG(g,i,r,n));var x=u-g.left-g.right,E=c-g.top-g.bottom;return z(z({brushBottom:y},g),{},{width:Math.max(x,0),height:Math.max(E,0)})},Kee=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},wT=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,o=i===void 0?"axis":i,a=t.validateTooltipEventTypes,l=a===void 0?["axis"]:a,s=t.axisComponents,u=t.legendContent,c=t.formatAxisMap,f=t.defaultProps,d=function(g,y){var x=y.graphicalItems,E=y.stackGroups,_=y.offset,S=y.updateId,O=y.dataStartIndex,$=y.dataEndIndex,T=g.barSize,C=g.layout,A=g.barGap,N=g.barCategoryGap,R=g.maxBarSize,D=dS(C),M=D.numericAxisName,F=D.cateAxisName,I=Wee(x),P=[];return x.forEach(function(k,B){var L=ap(g.data,{graphicalItems:[k],dataStartIndex:O,dataEndIndex:$}),U=k.type.defaultProps!==void 0?z(z({},k.type.defaultProps),k.props):k.props,V=U.dataKey,re=U.maxBarSize,ie=U["".concat(M,"Id")],J=U["".concat(F,"Id")],Ce={},Oe=s.reduce(function(gi,yi){var _p=y["".concat(yi.axisType,"Map")],sx=U["".concat(yi.axisType,"Id")];_p&&_p[sx]||yi.axisType==="zAxis"||oa();var ux=_p[sx];return z(z({},gi),{},Y(Y({},yi.axisType,ux),"".concat(yi.axisType,"Ticks"),gl(ux)))},Ce),K=Oe[F],Z=Oe["".concat(F,"Ticks")],ee=E&&E[ie]&&E[ie].hasStack&&$G(k,E[ie].stackGroups),H=fr(k.type).indexOf("Bar")>=0,ke=Pv(K,Z),ae=[],He=I&&pG({barSize:T,stackGroups:E,totalSize:Kee(Oe,F)});if(H){var qe,Tt,Rr=le(re)?R:re,uo=(qe=(Tt=Pv(K,Z,!0))!==null&&Tt!==void 0?Tt:Rr)!==null&&qe!==void 0?qe:0;ae=hG({barGap:A,barCategoryGap:N,bandSize:uo!==ke?uo:ke,sizeList:He[J],maxBarSize:Rr}),uo!==ke&&(ae=ae.map(function(gi){return z(z({},gi),{},{position:z(z({},gi.position),{},{offset:gi.position.offset-uo/2})})}))}var hu=k&&k.type&&k.type.getComposedData;hu&&P.push({props:z(z({},hu(z(z({},Oe),{},{displayedData:L,props:g,dataKey:V,item:k,bandSize:ke,barPosition:ae,offset:_,stackedData:ee,layout:C,dataStartIndex:O,dataEndIndex:$}))),{},Y(Y(Y({key:k.key||"item-".concat(B)},M,Oe[M]),F,Oe[F]),"animationId",S)),childIndex:O5(k,g.children),item:k})}),P},p=function(g,y){var x=g.props,E=g.dataStartIndex,_=g.dataEndIndex,S=g.updateId;if(!Db({props:x}))return null;var O=x.children,$=x.layout,T=x.stackOffset,C=x.data,A=x.reverseStackOrder,N=dS($),R=N.numericAxisName,D=N.cateAxisName,M=Pn(O,r),F=EG(C,M,"".concat(R,"Id"),"".concat(D,"Id"),T,A),I=s.reduce(function(U,V){var re="".concat(V.axisType,"Map");return z(z({},U),{},Y({},re,Uee(x,z(z({},V),{},{graphicalItems:M,stackGroups:V.axisType===R&&F,dataStartIndex:E,dataEndIndex:_}))))},{}),P=Vee(z(z({},I),{},{props:x,graphicalItems:M}),y==null?void 0:y.legendBBox);Object.keys(I).forEach(function(U){I[U]=c(x,I[U],P,U.replace("Map",""),n)});var k=I["".concat(D,"Map")],B=Hee(k),L=d(x,z(z({},I),{},{dataStartIndex:E,dataEndIndex:_,updateId:S,graphicalItems:M,stackGroups:F,offset:P}));return z(z({formattedGraphicalItems:L,graphicalItems:M,offset:P,stackGroups:F},B),I)},h=function(w){function g(y){var x,E,_;return Oee(this,g),_=jee(this,g,[y]),Y(_,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Y(_,"accessibilityManager",new fee),Y(_,"handleLegendBBoxUpdate",function(S){if(S){var O=_.state,$=O.dataStartIndex,T=O.dataEndIndex,C=O.updateId;_.setState(z({legendBBox:S},p({props:_.props,dataStartIndex:$,dataEndIndex:T,updateId:C},z(z({},_.state),{},{legendBBox:S}))))}}),Y(_,"handleReceiveSyncEvent",function(S,O,$){if(_.props.syncId===S){if($===_.eventEmitterSymbol&&typeof _.props.syncMethod!="function")return;_.applySyncEvent(O)}}),Y(_,"handleBrushChange",function(S){var O=S.startIndex,$=S.endIndex;if(O!==_.state.dataStartIndex||$!==_.state.dataEndIndex){var T=_.state.updateId;_.setState(function(){return z({dataStartIndex:O,dataEndIndex:$},p({props:_.props,dataStartIndex:O,dataEndIndex:$,updateId:T},_.state))}),_.triggerSyncEvent({dataStartIndex:O,dataEndIndex:$})}}),Y(_,"handleMouseEnter",function(S){var O=_.getMouseInfo(S);if(O){var $=z(z({},O),{},{isTooltipActive:!0});_.setState($),_.triggerSyncEvent($);var T=_.props.onMouseEnter;te(T)&&T($,S)}}),Y(_,"triggeredAfterMouseMove",function(S){var O=_.getMouseInfo(S),$=O?z(z({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};_.setState($),_.triggerSyncEvent($);var T=_.props.onMouseMove;te(T)&&T($,S)}),Y(_,"handleItemMouseEnter",function(S){_.setState(function(){return{isTooltipActive:!0,activeItem:S,activePayload:S.tooltipPayload,activeCoordinate:S.tooltipPosition||{x:S.cx,y:S.cy}}})}),Y(_,"handleItemMouseLeave",function(){_.setState(function(){return{isTooltipActive:!1}})}),Y(_,"handleMouseMove",function(S){S.persist(),_.throttleTriggeredAfterMouseMove(S)}),Y(_,"handleMouseLeave",function(S){_.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};_.setState(O),_.triggerSyncEvent(O);var $=_.props.onMouseLeave;te($)&&$(O,S)}),Y(_,"handleOuterEvent",function(S){var O=E5(S),$=$n(_.props,"".concat(O));if(O&&te($)){var T,C;/.*touch.*/i.test(O)?C=_.getMouseInfo(S.changedTouches[0]):C=_.getMouseInfo(S),$((T=C)!==null&&T!==void 0?T:{},S)}}),Y(_,"handleClick",function(S){var O=_.getMouseInfo(S);if(O){var $=z(z({},O),{},{isTooltipActive:!0});_.setState($),_.triggerSyncEvent($);var T=_.props.onClick;te(T)&&T($,S)}}),Y(_,"handleMouseDown",function(S){var O=_.props.onMouseDown;if(te(O)){var $=_.getMouseInfo(S);O($,S)}}),Y(_,"handleMouseUp",function(S){var O=_.props.onMouseUp;if(te(O)){var $=_.getMouseInfo(S);O($,S)}}),Y(_,"handleTouchMove",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&_.throttleTriggeredAfterMouseMove(S.changedTouches[0])}),Y(_,"handleTouchStart",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&_.handleMouseDown(S.changedTouches[0])}),Y(_,"handleTouchEnd",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&_.handleMouseUp(S.changedTouches[0])}),Y(_,"handleDoubleClick",function(S){var O=_.props.onDoubleClick;if(te(O)){var $=_.getMouseInfo(S);O($,S)}}),Y(_,"handleContextMenu",function(S){var O=_.props.onContextMenu;if(te(O)){var $=_.getMouseInfo(S);O($,S)}}),Y(_,"triggerSyncEvent",function(S){_.props.syncId!==void 0&&_h.emit(Sh,_.props.syncId,S,_.eventEmitterSymbol)}),Y(_,"applySyncEvent",function(S){var O=_.props,$=O.layout,T=O.syncMethod,C=_.state.updateId,A=S.dataStartIndex,N=S.dataEndIndex;if(S.dataStartIndex!==void 0||S.dataEndIndex!==void 0)_.setState(z({dataStartIndex:A,dataEndIndex:N},p({props:_.props,dataStartIndex:A,dataEndIndex:N,updateId:C},_.state)));else if(S.activeTooltipIndex!==void 0){var R=S.chartX,D=S.chartY,M=S.activeTooltipIndex,F=_.state,I=F.offset,P=F.tooltipTicks;if(!I)return;if(typeof T=="function")M=T(P,S);else if(T==="value"){M=-1;for(var k=0;k<P.length;k++)if(P[k].value===S.activeLabel){M=k;break}}var B=z(z({},I),{},{x:I.left,y:I.top}),L=Math.min(R,B.x+B.width),U=Math.min(D,B.y+B.height),V=P[M]&&P[M].value,re=og(_.state,_.props.data,M),ie=P[M]?{x:$==="horizontal"?P[M].coordinate:L,y:$==="horizontal"?U:P[M].coordinate}:xT;_.setState(z(z({},S),{},{activeLabel:V,activeCoordinate:ie,activePayload:re,activeTooltipIndex:M}))}else _.setState(S)}),Y(_,"renderCursor",function(S){var O,$=_.state,T=$.isTooltipActive,C=$.activeCoordinate,A=$.activePayload,N=$.offset,R=$.activeTooltipIndex,D=$.tooltipAxisBandSize,M=_.getTooltipEventType(),F=(O=S.props.active)!==null&&O!==void 0?O:T,I=_.props.layout,P=S.key||"_recharts-cursor";return j.createElement(yee,{key:P,activeCoordinate:C,activePayload:A,activeTooltipIndex:R,chartName:n,element:S,isActive:F,layout:I,offset:N,tooltipAxisBandSize:D,tooltipEventType:M})}),Y(_,"renderPolarAxis",function(S,O,$){var T=$n(S,"type.axisType"),C=$n(_.state,"".concat(T,"Map")),A=S.type.defaultProps,N=A!==void 0?z(z({},A),S.props):S.props,R=C&&C[N["".concat(T,"Id")]];return b.cloneElement(S,z(z({},R),{},{className:ue(T,R.className),key:S.key||"".concat(O,"-").concat($),ticks:gl(R,!0)}))}),Y(_,"renderPolarGrid",function(S){var O=S.props,$=O.radialLines,T=O.polarAngles,C=O.polarRadius,A=_.state,N=A.radiusAxisMap,R=A.angleAxisMap,D=mo(N),M=mo(R),F=M.cx,I=M.cy,P=M.innerRadius,k=M.outerRadius;return b.cloneElement(S,{polarAngles:Array.isArray(T)?T:gl(M,!0).map(function(B){return B.coordinate}),polarRadius:Array.isArray(C)?C:gl(D,!0).map(function(B){return B.coordinate}),cx:F,cy:I,innerRadius:P,outerRadius:k,key:S.key||"polar-grid",radialLines:$})}),Y(_,"renderLegend",function(){var S=_.state.formattedGraphicalItems,O=_.props,$=O.children,T=O.width,C=O.height,A=_.props.margin||{},N=T-(A.left||0)-(A.right||0),R=yj({children:$,formattedGraphicalItems:S,legendWidth:N,legendContent:u});if(!R)return null;var D=R.item,M=sS(R,xee);return b.cloneElement(D,z(z({},M),{},{chartWidth:T,chartHeight:C,margin:A,onBBoxUpdate:_.handleLegendBBoxUpdate}))}),Y(_,"renderTooltip",function(){var S,O=_.props,$=O.children,T=O.accessibilityLayer,C=Jt($,tr);if(!C)return null;var A=_.state,N=A.isTooltipActive,R=A.activeCoordinate,D=A.activePayload,M=A.activeLabel,F=A.offset,I=(S=C.props.active)!==null&&S!==void 0?S:N;return b.cloneElement(C,{viewBox:z(z({},F),{},{x:F.left,y:F.top}),active:I,label:M,payload:I?D:[],coordinate:R,accessibilityLayer:T})}),Y(_,"renderBrush",function(S){var O=_.props,$=O.margin,T=O.data,C=_.state,A=C.offset,N=C.dataStartIndex,R=C.dataEndIndex,D=C.updateId;return b.cloneElement(S,{key:S.key||"_recharts-brush",onChange:Uu(_.handleBrushChange,S.props.onChange),data:T,x:G(S.props.x)?S.props.x:A.left,y:G(S.props.y)?S.props.y:A.top+A.height+A.brushBottom-($.bottom||0),width:G(S.props.width)?S.props.width:A.width,startIndex:N,endIndex:R,updateId:"brush-".concat(D)})}),Y(_,"renderReferenceElement",function(S,O,$){if(!S)return null;var T=_,C=T.clipPathId,A=_.state,N=A.xAxisMap,R=A.yAxisMap,D=A.offset,M=S.type.defaultProps||{},F=S.props,I=F.xAxisId,P=I===void 0?M.xAxisId:I,k=F.yAxisId,B=k===void 0?M.yAxisId:k;return b.cloneElement(S,{key:S.key||"".concat(O,"-").concat($),xAxis:N[P],yAxis:R[B],viewBox:{x:D.left,y:D.top,width:D.width,height:D.height},clipPathId:C})}),Y(_,"renderActivePoints",function(S){var O=S.item,$=S.activePoint,T=S.basePoint,C=S.childIndex,A=S.isRange,N=[],R=O.props.key,D=O.item.type.defaultProps!==void 0?z(z({},O.item.type.defaultProps),O.item.props):O.item.props,M=D.activeDot,F=D.dataKey,I=z(z({index:C,dataKey:F,cx:$.x,cy:$.y,r:4,fill:$0(O.item),strokeWidth:2,stroke:"#fff",payload:$.payload,value:$.value},ne(M,!1)),zc(M));return N.push(g.renderActiveDot(M,I,"".concat(R,"-activePoint-").concat(C))),T?N.push(g.renderActiveDot(M,z(z({},I),{},{cx:T.x,cy:T.y}),"".concat(R,"-basePoint-").concat(C))):A&&N.push(null),N}),Y(_,"renderGraphicChild",function(S,O,$){var T=_.filterFormatItem(S,O,$);if(!T)return null;var C=_.getTooltipEventType(),A=_.state,N=A.isTooltipActive,R=A.tooltipAxis,D=A.activeTooltipIndex,M=A.activeLabel,F=_.props.children,I=Jt(F,tr),P=T.props,k=P.points,B=P.isRange,L=P.baseLine,U=T.item.type.defaultProps!==void 0?z(z({},T.item.type.defaultProps),T.item.props):T.item.props,V=U.activeDot,re=U.hide,ie=U.activeBar,J=U.activeShape,Ce=!!(!re&&N&&I&&(V||ie||J)),Oe={};C!=="axis"&&I&&I.props.trigger==="click"?Oe={onClick:Uu(_.handleItemMouseEnter,S.props.onClick)}:C!=="axis"&&(Oe={onMouseLeave:Uu(_.handleItemMouseLeave,S.props.onMouseLeave),onMouseEnter:Uu(_.handleItemMouseEnter,S.props.onMouseEnter)});var K=b.cloneElement(S,z(z({},T.props),Oe));function Z(yi){return typeof R.dataKey=="function"?R.dataKey(yi.payload):null}if(Ce)if(D>=0){var ee,H;if(R.dataKey&&!R.allowDuplicatedCategory){var ke=typeof R.dataKey=="function"?Z:"payload.".concat(R.dataKey.toString());ee=Dm(k,ke,M),H=B&&L&&Dm(L,ke,M)}else ee=k==null?void 0:k[D],H=B&&L&&L[D];if(J||ie){var ae=S.props.activeIndex!==void 0?S.props.activeIndex:D;return[b.cloneElement(S,z(z(z({},T.props),Oe),{},{activeIndex:ae})),null,null]}if(!le(ee))return[K].concat(ga(_.renderActivePoints({item:T,activePoint:ee,basePoint:H,childIndex:D,isRange:B})))}else{var He,qe=(He=_.getItemByXY(_.state.activeCoordinate))!==null&&He!==void 0?He:{graphicalItem:K},Tt=qe.graphicalItem,Rr=Tt.item,uo=Rr===void 0?S:Rr,hu=Tt.childIndex,gi=z(z(z({},T.props),Oe),{},{activeIndex:hu});return[b.cloneElement(uo,gi),null,null]}return B?[K,null,null]:[K,null]}),Y(_,"renderCustomized",function(S,O,$){return b.cloneElement(S,z(z({key:"recharts-customized-".concat($)},_.props),_.state))}),Y(_,"renderMap",{CartesianGrid:{handler:qu,once:!0},ReferenceArea:{handler:_.renderReferenceElement},ReferenceLine:{handler:qu},ReferenceDot:{handler:_.renderReferenceElement},XAxis:{handler:qu},YAxis:{handler:qu},Brush:{handler:_.renderBrush,once:!0},Bar:{handler:_.renderGraphicChild},Line:{handler:_.renderGraphicChild},Area:{handler:_.renderGraphicChild},Radar:{handler:_.renderGraphicChild},RadialBar:{handler:_.renderGraphicChild},Scatter:{handler:_.renderGraphicChild},Pie:{handler:_.renderGraphicChild},Funnel:{handler:_.renderGraphicChild},Tooltip:{handler:_.renderCursor,once:!0},PolarGrid:{handler:_.renderPolarGrid,once:!0},PolarAngleAxis:{handler:_.renderPolarAxis},PolarRadiusAxis:{handler:_.renderPolarAxis},Customized:{handler:_.renderCustomized}}),_.clipPathId="".concat((x=y.id)!==null&&x!==void 0?x:Td("recharts"),"-clip"),_.throttleTriggeredAfterMouseMove=g2(_.triggeredAfterMouseMove,(E=y.throttleDelay)!==null&&E!==void 0?E:1e3/60),_.state={},_}return Cee(g,w),Pee(g,[{key:"componentDidMount",value:function(){var x,E;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(E=this.props.margin.top)!==null&&E!==void 0?E:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,E=x.children,_=x.data,S=x.height,O=x.layout,$=Jt(E,tr);if($){var T=$.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var C=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,A=og(this.state,_,T,C),N=this.state.tooltipTicks[T].coordinate,R=(this.state.offset.top+S)/2,D=O==="horizontal",M=D?{x:N,y:R}:{y:N,x:R},F=this.state.formattedGraphicalItems.find(function(P){var k=P.item;return k.type.name==="Scatter"});F&&(M=z(z({},M),F.props.points[T].tooltipPosition),A=F.props.points[T].tooltipPayload);var I={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:C,activePayload:A,activeCoordinate:M};this.setState(I),this.renderCursor($),this.accessibilityManager.setIndex(T)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,E){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==E.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var _,S;this.accessibilityManager.setDetails({offset:{left:(_=this.props.margin.left)!==null&&_!==void 0?_:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0}})}return null}},{key:"componentDidUpdate",value:function(x){zm([Jt(x.children,tr)],[Jt(this.props.children,tr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=Jt(this.props.children,tr);if(x&&typeof x.props.shared=="boolean"){var E=x.props.shared?"axis":"item";return l.indexOf(E)>=0?E:o}return o}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var E=this.container,_=E.getBoundingClientRect(),S=BU(_),O={chartX:Math.round(x.pageX-S.left),chartY:Math.round(x.pageY-S.top)},$=_.width/E.offsetWidth||1,T=this.inRange(O.chartX,O.chartY,$);if(!T)return null;var C=this.state,A=C.xAxisMap,N=C.yAxisMap,R=this.getTooltipEventType();if(R!=="axis"&&A&&N){var D=mo(A).scale,M=mo(N).scale,F=D&&D.invert?D.invert(O.chartX):null,I=M&&M.invert?M.invert(O.chartY):null;return z(z({},O),{},{xValue:F,yValue:I})}var P=cS(this.state,this.props.data,this.props.layout,T);return P?z(z({},O),P):null}},{key:"inRange",value:function(x,E){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,S=this.props.layout,O=x/_,$=E/_;if(S==="horizontal"||S==="vertical"){var T=this.state.offset,C=O>=T.left&&O<=T.left+T.width&&$>=T.top&&$<=T.top+T.height;return C?{x:O,y:$}:null}var A=this.state,N=A.angleAxisMap,R=A.radiusAxisMap;if(N&&R){var D=mo(N);return Gw({x:O,y:$},D)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,E=this.getTooltipEventType(),_=Jt(x,tr),S={};_&&E==="axis"&&(_.props.trigger==="click"?S={onClick:this.handleClick}:S={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=zc(this.props,this.handleOuterEvent);return z(z({},O),S)}},{key:"addListener",value:function(){_h.on(Sh,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){_h.removeListener(Sh,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,E,_){for(var S=this.state.formattedGraphicalItems,O=0,$=S.length;O<$;O++){var T=S[O];if(T.item===x||T.props.key===x.key||E===fr(T.item.type)&&_===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,E=this.state.offset,_=E.left,S=E.top,O=E.height,$=E.width;return j.createElement("defs",null,j.createElement("clipPath",{id:x},j.createElement("rect",{x:_,y:S,height:O,width:$})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(E,_){var S=lS(_,2),O=S[0],$=S[1];return z(z({},E),{},Y({},O,$.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(E,_){var S=lS(_,2),O=S[0],$=S[1];return z(z({},E),{},Y({},O,$.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var E;return(E=this.state.xAxisMap)===null||E===void 0||(E=E[x])===null||E===void 0?void 0:E.scale}},{key:"getYScaleByAxisId",value:function(x){var E;return(E=this.state.yAxisMap)===null||E===void 0||(E=E[x])===null||E===void 0?void 0:E.scale}},{key:"getItemByXY",value:function(x){var E=this.state,_=E.formattedGraphicalItems,S=E.activeItem;if(_&&_.length)for(var O=0,$=_.length;O<$;O++){var T=_[O],C=T.props,A=T.item,N=A.type.defaultProps!==void 0?z(z({},A.type.defaultProps),A.props):A.props,R=fr(A.type);if(R==="Bar"){var D=(C.data||[]).find(function(P){return dY(x,P)});if(D)return{graphicalItem:T,payload:D}}else if(R==="RadialBar"){var M=(C.data||[]).find(function(P){return Gw(x,P)});if(M)return{graphicalItem:T,payload:M}}else if(ep(T,S)||tp(T,S)||Ts(T,S)){var F=QQ({graphicalItem:T,activeTooltipItem:S,itemData:N.data}),I=N.activeIndex===void 0?F:N.activeIndex;return{graphicalItem:z(z({},T),{},{childIndex:I}),payload:Ts(T,S)?N.data[F]:T.props.data[F]}}}return null}},{key:"render",value:function(){var x=this;if(!Db(this))return null;var E=this.props,_=E.children,S=E.className,O=E.width,$=E.height,T=E.style,C=E.compact,A=E.title,N=E.desc,R=sS(E,bee),D=ne(R,!1);if(C)return j.createElement(Q_,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},j.createElement(Hm,ko({},D,{width:O,height:$,title:A,desc:N}),this.renderClipPath(),Bb(_,this.renderMap)));if(this.props.accessibilityLayer){var M,F;D.tabIndex=(M=this.props.tabIndex)!==null&&M!==void 0?M:0,D.role=(F=this.props.role)!==null&&F!==void 0?F:"application",D.onKeyDown=function(P){x.accessibilityManager.keyboardEvent(P)},D.onFocus=function(){x.accessibilityManager.focus()}}var I=this.parseEventsOfWrapper();return j.createElement(Q_,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},j.createElement("div",ko({className:ue("recharts-wrapper",S),style:z({position:"relative",cursor:"default",width:O,height:$},T)},I,{ref:function(k){x.container=k}}),j.createElement(Hm,ko({},D,{width:O,height:$,title:A,desc:N,style:Lee}),this.renderClipPath(),Bb(_,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(b.Component);Y(h,"displayName",n),Y(h,"defaultProps",z({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),Y(h,"getDerivedStateFromProps",function(w,g){var y=w.dataKey,x=w.data,E=w.children,_=w.width,S=w.height,O=w.layout,$=w.stackOffset,T=w.margin,C=g.dataStartIndex,A=g.dataEndIndex;if(g.updateId===void 0){var N=fS(w);return z(z(z({},N),{},{updateId:0},p(z(z({props:w},N),{},{updateId:0}),g)),{},{prevDataKey:y,prevData:x,prevWidth:_,prevHeight:S,prevLayout:O,prevStackOffset:$,prevMargin:T,prevChildren:E})}if(y!==g.prevDataKey||x!==g.prevData||_!==g.prevWidth||S!==g.prevHeight||O!==g.prevLayout||$!==g.prevStackOffset||!Fm(T,g.prevMargin)){var R=fS(w),D={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},M=z(z({},cS(g,x,O)),{},{updateId:g.updateId+1}),F=z(z(z({},R),D),M);return z(z(z({},F),p(z({props:w},F),g)),{},{prevDataKey:y,prevData:x,prevWidth:_,prevHeight:S,prevLayout:O,prevStackOffset:$,prevMargin:T,prevChildren:E})}if(!zm(E,g.prevChildren)){var I,P,k,B,L=Jt(E,da),U=L&&(I=(P=L.props)===null||P===void 0?void 0:P.startIndex)!==null&&I!==void 0?I:C,V=L&&(k=(B=L.props)===null||B===void 0?void 0:B.endIndex)!==null&&k!==void 0?k:A,re=U!==C||V!==A,ie=!le(x),J=ie&&!re?g.updateId:g.updateId+1;return z(z({updateId:J},p(z(z({props:w},g),{},{updateId:J,dataStartIndex:U,dataEndIndex:V}),g)),{},{prevChildren:E,dataStartIndex:U,dataEndIndex:V})}return null}),Y(h,"renderActiveDot",function(w,g,y){var x;return b.isValidElement(w)?x=b.cloneElement(w,g):te(w)?x=w(g):x=j.createElement(j0,g),j.createElement(Te,{className:"recharts-active-dot",key:y},x)});var m=b.forwardRef(function(g,y){return j.createElement(h,ko({},g,{ref:y}))});return m.displayName=h.displayName,m},nu=wT({chartName:"PieChart",GraphicalChild:qt,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Jd},{axisType:"radiusAxis",AxisComp:Qd}],formatAxisMap:LG,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});function Gee(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var qee=Gee,Xee=A0,Yee=dd,Qee=Object.prototype,Zee=Qee.hasOwnProperty;function Jee(e,t,n){var r=e[t];(!(Zee.call(e,t)&&Yee(r,n))||n===void 0&&!(t in e))&&Xee(e,t,n)}var _T=Jee,ete=_T,tte=A0;function nte(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var l=t[o],s=r?r(n[l],e[l],l,n,e):void 0;s===void 0&&(s=e[l]),i?tte(n,l,s):ete(n,l,s)}return n}var ru=nte,rte=ru,ite=Qs;function ote(e,t){return e&&rte(t,ite(t),e)}var ate=ote;function lte(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var ste=lte,ute=Nn,cte=qy,fte=ste,dte=Object.prototype,pte=dte.hasOwnProperty;function hte(e){if(!ute(e))return fte(e);var t=cte(e),n=[];for(var r in e)r=="constructor"&&(t||!pte.call(e,r))||n.push(r);return n}var mte=hte,vte=XP,gte=mte,yte=Ys;function xte(e){return yte(e)?vte(e,!0):gte(e)}var R0=xte,bte=ru,wte=R0;function _te(e,t){return e&&bte(t,wte(t),e)}var Ste=_te,Nf={exports:{}};Nf.exports;(function(e,t){var n=Cn,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o?n.Buffer:void 0,l=a?a.allocUnsafe:void 0;function s(u,c){if(c)return u.slice();var f=u.length,d=l?l(f):new u.constructor(f);return u.copy(d),d}e.exports=s})(Nf,Nf.exports);var Ete=Nf.exports;function Ote(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var $te=Ote,Pte=ru,jte=Uy;function Tte(e,t){return Pte(e,jte(e),t)}var Ate=Tte,Cte=zy,kte=T0,Nte=Uy,Mte=KP,Rte=Object.getOwnPropertySymbols,Ite=Rte?function(e){for(var t=[];e;)Cte(t,Nte(e)),e=kte(e);return t}:Mte,ST=Ite,Lte=ru,Dte=ST;function Fte(e,t){return Lte(e,Dte(e),t)}var Bte=Fte,zte=VP,Ute=ST,Hte=R0;function Wte(e){return zte(e,Hte,Ute)}var ET=Wte,Vte=Object.prototype,Kte=Vte.hasOwnProperty;function Gte(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Kte.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var qte=Gte,pS=WP;function Xte(e){var t=new e.constructor(e.byteLength);return new pS(t).set(new pS(e)),t}var I0=Xte,Yte=I0;function Qte(e,t){var n=t?Yte(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Zte=Qte,Jte=/\w*$/;function ene(e){var t=new e.constructor(e.source,Jte.exec(e));return t.lastIndex=e.lastIndex,t}var tne=ene,hS=ja,mS=hS?hS.prototype:void 0,vS=mS?mS.valueOf:void 0;function nne(e){return vS?Object(vS.call(e)):{}}var rne=nne,ine=I0;function one(e,t){var n=t?ine(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var ane=one,lne=I0,sne=Zte,une=tne,cne=rne,fne=ane,dne="[object Boolean]",pne="[object Date]",hne="[object Map]",mne="[object Number]",vne="[object RegExp]",gne="[object Set]",yne="[object String]",xne="[object Symbol]",bne="[object ArrayBuffer]",wne="[object DataView]",_ne="[object Float32Array]",Sne="[object Float64Array]",Ene="[object Int8Array]",One="[object Int16Array]",$ne="[object Int32Array]",Pne="[object Uint8Array]",jne="[object Uint8ClampedArray]",Tne="[object Uint16Array]",Ane="[object Uint32Array]";function Cne(e,t,n){var r=e.constructor;switch(t){case bne:return lne(e);case dne:case pne:return new r(+e);case wne:return sne(e,n);case _ne:case Sne:case Ene:case One:case $ne:case Pne:case jne:case Tne:case Ane:return fne(e,n);case hne:return new r;case mne:case yne:return new r(e);case vne:return une(e);case gne:return new r;case xne:return cne(e)}}var kne=Cne,Nne=Nn,gS=Object.create,Mne=function(){function e(){}return function(t){if(!Nne(t))return{};if(gS)return gS(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Rne=Mne,Ine=Rne,Lne=T0,Dne=qy;function Fne(e){return typeof e.constructor=="function"&&!Dne(e)?Ine(Lne(e)):{}}var Bne=Fne,zne=Rd,Une=kn,Hne="[object Map]";function Wne(e){return Une(e)&&zne(e)==Hne}var Vne=Wne,Kne=Vne,Gne=Md,yS=Gy,xS=yS&&yS.isMap,qne=xS?Gne(xS):Kne,Xne=qne,Yne=Rd,Qne=kn,Zne="[object Set]";function Jne(e){return Qne(e)&&Yne(e)==Zne}var ere=Jne,tre=ere,nre=Md,bS=Gy,wS=bS&&bS.isSet,rre=wS?nre(wS):tre,ire=rre,ore=Fy,are=qee,lre=_T,sre=ate,ure=Ste,cre=Ete,fre=$te,dre=Ate,pre=Bte,hre=QP,mre=ET,vre=Rd,gre=qte,yre=kne,xre=Bne,bre=jt,wre=Wy,_re=Xne,Sre=Nn,Ere=ire,Ore=Qs,$re=R0,Pre=1,jre=2,Tre=4,OT="[object Arguments]",Are="[object Array]",Cre="[object Boolean]",kre="[object Date]",Nre="[object Error]",$T="[object Function]",Mre="[object GeneratorFunction]",Rre="[object Map]",Ire="[object Number]",PT="[object Object]",Lre="[object RegExp]",Dre="[object Set]",Fre="[object String]",Bre="[object Symbol]",zre="[object WeakMap]",Ure="[object ArrayBuffer]",Hre="[object DataView]",Wre="[object Float32Array]",Vre="[object Float64Array]",Kre="[object Int8Array]",Gre="[object Int16Array]",qre="[object Int32Array]",Xre="[object Uint8Array]",Yre="[object Uint8ClampedArray]",Qre="[object Uint16Array]",Zre="[object Uint32Array]",xe={};xe[OT]=xe[Are]=xe[Ure]=xe[Hre]=xe[Cre]=xe[kre]=xe[Wre]=xe[Vre]=xe[Kre]=xe[Gre]=xe[qre]=xe[Rre]=xe[Ire]=xe[PT]=xe[Lre]=xe[Dre]=xe[Fre]=xe[Bre]=xe[Xre]=xe[Yre]=xe[Qre]=xe[Zre]=!0;xe[Nre]=xe[$T]=xe[zre]=!1;function pc(e,t,n,r,i,o){var a,l=t&Pre,s=t&jre,u=t&Tre;if(n&&(a=i?n(e,r,i,o):n(e)),a!==void 0)return a;if(!Sre(e))return e;var c=bre(e);if(c){if(a=gre(e),!l)return fre(e,a)}else{var f=vre(e),d=f==$T||f==Mre;if(wre(e))return cre(e,l);if(f==PT||f==OT||d&&!i){if(a=s||d?{}:xre(e),!l)return s?pre(e,ure(a,e)):dre(e,sre(a,e))}else{if(!xe[f])return i?e:{};a=yre(e,f,l)}}o||(o=new ore);var p=o.get(e);if(p)return p;o.set(e,a),Ere(e)?e.forEach(function(w){a.add(pc(w,t,n,w,e,o))}):_re(e)&&e.forEach(function(w,g){a.set(g,pc(w,t,n,g,e,o))});var h=u?s?mre:hre:s?$re:Ore,m=c?void 0:h(e);return are(m||e,function(w,g){m&&(g=w,w=e[g]),lre(a,g,pc(w,t,n,g,e,o))}),a}var Jre=pc,eie=yd,tie=pP;function nie(e,t){return t.length<2?e:eie(e,tie(t,0,-1))}var rie=nie,iie=gd,oie=Pj,aie=rie,lie=Gs,sie=Object.prototype,uie=sie.hasOwnProperty;function cie(e,t){t=iie(t,e);var n=-1,r=t.length;if(!r)return!0;for(var i=e==null||typeof e!="object"&&typeof e!="function";++n<r;){var o=t[n];if(typeof o=="string"){if(o==="__proto__"&&!uie.call(e,"__proto__"))return!1;if(o==="constructor"&&n+1<r&&typeof t[n+1]=="string"&&t[n+1]==="prototype"){if(i&&n===0)continue;return!1}}}var a=aie(e,t);return a==null||delete a[lie(oie(t))]}var fie=cie,die=Kj;function pie(e){return die(e)?void 0:e}var hie=pie,mie=Yy;function vie(e){var t=e==null?0:e.length;return t?mie(e,1):[]}var gie=vie,yie=gie,xie=u2,bie=f2;function wie(e){return bie(xie(e,void 0,yie),e+"")}var _ie=wie,Sie=vd,Eie=Jre,Oie=fie,$ie=gd,Pie=ru,jie=hie,Tie=_ie,Aie=ET,Cie=1,kie=2,Nie=4,Mie=Tie(function(e,t){var n={};if(e==null)return n;var r=!1;t=Sie(t,function(o){return o=$ie(o,e),r||(r=o.length>1),o}),Pie(e,Aie(e),n),r&&(n=Eie(n,Cie|kie|Nie,jie));for(var i=t.length;i--;)Oie(n,t[i]);return n}),Rie=Mie;const Iie=me(Rie);function Ms(e){"@babel/helpers - typeof";return Ms=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},Ms(e)}function ag(){return ag=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ag.apply(this,arguments)}function _S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Oh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_S(Object(n),!0).forEach(function(r){Lie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_S(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lie(e,t,n){return t=Die(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Die(e){var t=Fie(e,"string");return Ms(t)=="symbol"?t:t+""}function Fie(e,t){if(Ms(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ms(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bie(e,t){var n="".concat(t.x||e.x),r=parseInt(n,10),i="".concat(t.y||e.y),o=parseInt(i,10),a="".concat((t==null?void 0:t.height)||(e==null?void 0:e.height)),l=parseInt(a,10);return Oh(Oh(Oh({},t),Gj(e)),{},{height:l,x:r,y:o})}function zie(e){return j.createElement(qj,ag({shapeType:"trapezoid",propTransformer:Bie},e))}var lg;function SS(e,t){return Vie(e)||Wie(e,t)||Hie(e,t)||Uie()}function Uie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
265
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hie(e,t){if(e){if(typeof e=="string")return ES(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ES(e,t)}}function ES(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(c){u=!0,i=c}finally{try{if(!s&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}function Vie(e){if(Array.isArray(e))return e}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 Mf(){return Mf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mf.apply(this,arguments)}function OS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Qe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OS(Object(n),!0).forEach(function(r){hr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,TT(r.key),r)}}function Gie(e,t,n){return t&&$S(e.prototype,t),n&&$S(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qie(e,t,n){return t=Rf(t),Xie(e,jT()?Reflect.construct(t,n||[],Rf(e).constructor):t.apply(e,n))}function Xie(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 Yie(e)}function Yie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jT=function(){return!!e})()}function Rf(e){return Rf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rf(e)}function Qie(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&&sg(e,t)}function sg(e,t){return sg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},sg(e,t)}function hr(e,t,n){return t=TT(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TT(e){var t=Zie(e,"string");return ya(t)=="symbol"?t:t+""}function Zie(e,t){if(ya(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ya(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Nr=function(e){function t(){var n;Kie(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=qie(this,t,[].concat(i)),hr(n,"state",{isAnimationFinished:!1}),hr(n,"handleAnimationEnd",function(){var a=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),te(a)&&a()}),hr(n,"handleAnimationStart",function(){var a=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),te(a)&&a()}),n}return Qie(t,e),Gie(t,[{key:"isActiveIndex",value:function(r){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(r)!==-1:r===i}},{key:"renderTrapezoidsStatically",value:function(r){var i=this,o=this.props,a=o.shape,l=o.activeShape;return r.map(function(s,u){var c=i.isActiveIndex(u)?l:a,f=Qe(Qe({},s),{},{isActive:i.isActiveIndex(u),stroke:s.stroke});return j.createElement(Te,Mf({className:"recharts-funnel-trapezoid"},Xs(i.props,s,u),{key:"trapezoid-".concat(s==null?void 0:s.x,"-").concat(s==null?void 0:s.y,"-").concat(s==null?void 0:s.name,"-").concat(s==null?void 0:s.value),role:"img"}),j.createElement(zie,Mf({option:c},f)))})}},{key:"renderTrapezoidsWithAnimation",value:function(){var r=this,i=this.props,o=i.trapezoids,a=i.isAnimationActive,l=i.animationBegin,s=i.animationDuration,u=i.animationEasing,c=i.animationId,f=this.state.prevTrapezoids;return j.createElement(Pr,{begin:l,duration:s,isActive:a,easing:u,from:{t:0},to:{t:1},key:"funnel-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(d){var p=d.t,h=o.map(function(m,w){var g=f&&f[w];if(g){var y=Zt(g.x,m.x),x=Zt(g.y,m.y),E=Zt(g.upperWidth,m.upperWidth),_=Zt(g.lowerWidth,m.lowerWidth),S=Zt(g.height,m.height);return Qe(Qe({},m),{},{x:y(p),y:x(p),upperWidth:E(p),lowerWidth:_(p),height:S(p)})}var O=Zt(m.x+m.upperWidth/2,m.x),$=Zt(m.y+m.height/2,m.y),T=Zt(0,m.upperWidth),C=Zt(0,m.lowerWidth),A=Zt(0,m.height);return Qe(Qe({},m),{},{x:O(p),y:$(p),upperWidth:T(p),lowerWidth:C(p),height:A(p)})});return j.createElement(Te,null,r.renderTrapezoidsStatically(h))})}},{key:"renderTrapezoids",value:function(){var r=this.props,i=r.trapezoids,o=r.isAnimationActive,a=this.state.prevTrapezoids;return o&&i&&i.length&&(!a||!Gd(a,i))?this.renderTrapezoidsWithAnimation():this.renderTrapezoidsStatically(i)}},{key:"render",value:function(){var r=this.props,i=r.hide,o=r.trapezoids,a=r.className,l=r.isAnimationActive,s=this.state.isAnimationFinished;if(i||!o||!o.length)return null;var u=ue("recharts-trapezoids",a);return j.createElement(Te,{className:u},this.renderTrapezoids(),(!l||s)&&Hn.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curTrapezoids:r.trapezoids,prevTrapezoids:i.curTrapezoids}:r.trapezoids!==i.curTrapezoids?{curTrapezoids:r.trapezoids}:null}}])}(b.PureComponent);lg=Nr;hr(Nr,"displayName","Funnel");hr(Nr,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!ni.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"});hr(Nr,"getRealFunnelData",function(e){var t=e.props,n=t.data,r=t.children,i=ne(e.props,!1),o=Pn(r,e0);return n&&n.length?n.map(function(a,l){return Qe(Qe(Qe({payload:a},i),a),o&&o[l]&&o[l].props)}):o&&o.length?o.map(function(a){return Qe(Qe({},i),a.props)}):[]});hr(Nr,"getRealWidthHeight",function(e,t){var n=e.props.width,r=t.width,i=t.height,o=t.left,a=t.right,l=t.top,s=t.bottom,u=i,c=r;return dP(n)?c=n:Ma(n)&&(c=c*parseFloat(n)/100),{realWidth:c-o-a-50,realHeight:u-s-l,offsetX:(r-c)/2,offsetY:(i-u)/2}});hr(Nr,"getComposedData",function(e){var t=e.item,n=e.offset,r=lg.getRealFunnelData(t),i=t.props,o=i.dataKey,a=i.nameKey,l=i.tooltipType,s=i.lastShapeType,u=i.reversed,c=n.left,f=n.top,d=lg.getRealWidthHeight(t,n),p=d.realHeight,h=d.realWidth,m=d.offsetX,w=d.offsetY,g=Math.max.apply(null,r.map(function(S){return ct(S,o,0)})),y=r.length,x=p/y,E={x:n.left,y:n.top,width:n.width,height:n.height},_=r.map(function(S,O){var $=ct(S,o,0),T=ct(S,a,O),C=$,A;if(O!==y-1){if(A=ct(r[O+1],o,0),A instanceof Array){var N=A,R=SS(N,1);A=R[0]}}else if($ instanceof Array&&$.length===2){var D=SS($,2);C=D[0],A=D[1]}else s==="rectangle"?A=C:A=0;var M=(g-C)*h/(2*g)+f+25+m,F=x*O+c+w,I=C/g*h,P=A/g*h,k=[{name:T,value:C,payload:S,dataKey:o,type:l}],B={x:M+I/2,y:F+x/2};return Qe(Qe({x:M,y:F,width:Math.max(I,P),upperWidth:I,lowerWidth:P,height:x,name:T,val:C,tooltipPayload:k,tooltipPosition:B},Iie(S,"width")),{},{payload:S,parentViewBox:E,labelViewBox:{x:M+(I-P)/4,y:F,width:Math.abs(I-P)/2+Math.min(I,P),height:x}})});return u&&(_=_.map(function(S,O){var $=S.y-O*x+(y-1-O)*x;return Qe(Qe({},S),{},{upperWidth:S.lowerWidth,lowerWidth:S.upperWidth,x:S.x-(S.lowerWidth-S.upperWidth)/2,y:S.y-O*x+(y-1-O)*x,tooltipPosition:Qe(Qe({},S.tooltipPosition),{},{y:$+x/2}),labelViewBox:Qe(Qe({},S.labelViewBox),{},{y:$})})})),{trapezoids:_,data:r}});var AT=wT({chartName:"FunnelChart",GraphicalChild:Nr,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}});const{size_percentile:{minimum_thresholds:sn},test_coverage:{minimum_thresholds:If}}=_r.project.documentation_site,In=e=>e==null?{hex:"#f3f4f6",class:"bg-gray-100"}:e>=sn.xl?{hex:"#1e3a8a",class:"bg-blue-900"}:e>=sn.l?{hex:"#1e40af",class:"bg-blue-800"}:e>=sn.m?{hex:"#2563eb",class:"bg-blue-600"}:e>=sn.s?{hex:"#3b82f6",class:"bg-blue-500"}:{hex:"#93c5fd",class:"bg-blue-300"},xa=e=>e>=sn.xl?"xl":e>=sn.l?"l":e>=sn.m?"m":e>=sn.s?"s":"xs",Rs=e=>e>=sn.xl?5:e>=sn.l?4:e>=sn.m?3:e>=sn.s?2:1,bt=e=>e==null?{hex:"transparent",class:"bg-transparent"}:e>=If.good?{hex:"#22c55e",class:"bg-green-500"}:e>=If.fair?{hex:"#eab308",class:"bg-yellow-500"}:{hex:"#ef4444",class:"bg-red-500"},CT=e=>e>=If.good?"good":e>=If.fair?"fair":"poor",Jie=e=>e>=1e3?(e/1e3).toFixed(1)+"k":e,Lf=e=>!e||e.length===0?v.jsx("span",{className:"text-gray-400 italic text-sm",children:"No team assigned"}):e.length>1?v.jsxs("p",{className:"text-sm text-gray-700",children:[e[0]," + ",e.length-1]}):v.jsx("p",{className:"text-sm text-gray-700",children:e[0]});function lp(){return typeof window<"u"}function Ha(e){return kT(e)?(e.nodeName||"").toLowerCase():"#document"}function Lt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Qn(e){var t;return(t=(kT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function kT(e){return lp()?e instanceof Node||e instanceof Lt(e).Node:!1}function de(e){return lp()?e instanceof Element||e instanceof Lt(e).Element:!1}function Vt(e){return lp()?e instanceof HTMLElement||e instanceof Lt(e).HTMLElement:!1}function ug(e){return!lp()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Lt(e).ShadowRoot}function iu(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=hn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function eoe(e){return["table","td","th"].includes(Ha(e))}function sp(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function L0(e){const t=up(),n=de(e)?hn(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function toe(e){let t=jr(e);for(;Vt(t)&&!mr(t);){if(L0(t))return t;if(sp(t))return null;t=jr(t)}return null}function up(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function mr(e){return["html","body","#document"].includes(Ha(e))}function hn(e){return Lt(e).getComputedStyle(e)}function cp(e){return de(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function jr(e){if(Ha(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ug(e)&&e.host||Qn(e);return ug(t)?t.host:t}function NT(e){const t=jr(e);return mr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Vt(t)&&iu(t)?t:NT(t)}function ii(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=NT(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Lt(i);if(o){const l=cg(a);return t.concat(a,a.visualViewport||[],iu(i)?i:[],l&&n?ii(l):[])}return t.concat(i,ii(i,[],n))}function cg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function fg(e){let t=e.activeElement;for(;((n=t)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;t=t.shadowRoot.activeElement}return t}function ba(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&ug(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function MT(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function RT(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}function noe(e){return ioe()?!1:!PS()&&e.width===0&&e.height===0||PS()&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType==="touch"}function IT(){return/apple/i.test(navigator.vendor)}function PS(){const e=/android/i;return e.test(MT())||e.test(RT())}function roe(){return MT().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function ioe(){return RT().includes("jsdom/")}function dg(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function ooe(e){return"nativeEvent"in e}function aoe(e){return e.matches("html,body")}function Kr(e){return(e==null?void 0:e.ownerDocument)||document}function $h(e,t){if(t==null)return!1;if("composedPath"in e)return e.composedPath().includes(t);const n=e;return n.target!=null&&t.contains(n.target)}function vo(e){return"composedPath"in e?e.composedPath()[0]:e.target}const loe="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function soe(e){return Vt(e)&&e.matches(loe)}const uoe=["top","right","bottom","left"],jS=["start","end"],TS=uoe.reduce((e,t)=>e.concat(t,t+"-"+jS[0],t+"-"+jS[1]),[]),Xi=Math.min,vt=Math.max,Is=Math.round,Xu=Math.floor,Vn=e=>({x:e,y:e}),coe={left:"right",right:"left",bottom:"top",top:"bottom"},foe={start:"end",end:"start"};function AS(e,t,n){return vt(e,Xi(t,n))}function lo(e,t){return typeof e=="function"?e(t):e}function Yn(e){return e.split("-")[0]}function Kn(e){return e.split("-")[1]}function LT(e){return e==="x"?"y":"x"}function DT(e){return e==="y"?"height":"width"}function Yi(e){return["top","bottom"].includes(Yn(e))?"y":"x"}function FT(e){return LT(Yi(e))}function BT(e,t,n){n===void 0&&(n=!1);const r=Kn(e),i=FT(e),o=DT(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Ff(a)),[a,Ff(a)]}function doe(e){const t=Ff(e);return[Df(e),t,Df(t)]}function Df(e){return e.replace(/start|end/g,t=>foe[t])}function poe(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function hoe(e,t,n,r){const i=Kn(e);let o=poe(Yn(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(Df)))),o}function Ff(e){return e.replace(/left|right|bottom|top/g,t=>coe[t])}function moe(e){return{top:0,right:0,bottom:0,left:0,...e}}function voe(e){return typeof e!="number"?moe(e):{top:e,right:e,bottom:e,left:e}}function Bf(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}/*!
257
266
  * tabbable 6.2.0
258
267
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
259
- */var hae=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],dg=hae.join(","),DT=typeof Element>"u",Ls=DT?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,zf=!DT&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},Uf=function e(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),a=i===""||i==="true",o=a||n&&t&&e(t.parentNode);return o},mae=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},vae=function(t,n,r){if(Uf(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(dg));return n&&Ls.call(t,dg)&&i.unshift(t),i=i.filter(r),i},gae=function e(t,n,r){for(var i=[],a=Array.from(t);a.length;){var o=a.shift();if(!Uf(o,!1))if(o.tagName==="SLOT"){var l=o.assignedElements(),s=l.length?l:o.children,u=e(s,!0,r);r.flatten?i.push.apply(i,u):i.push({scopeParent:o,candidates:u})}else{var c=Ls.call(o,dg);c&&r.filter(o)&&(n||!t.includes(o))&&i.push(o);var f=o.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(o),d=!Uf(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(o));if(f&&d){var p=e(f===!0?o.children:f.children,!0,r);r.flatten?i.push.apply(i,p):i.push({scopeParent:o,candidates:p})}else a.unshift.apply(a,o.children)}}return i},FT=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},BT=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||mae(t))&&!FT(t)?0:t.tabIndex},yae=function(t,n){var r=BT(t);return r<0&&n&&!FT(t)?0:r},xae=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},zT=function(t){return t.tagName==="INPUT"},bae=function(t){return zT(t)&&t.type==="hidden"},wae=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},_ae=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},Sae=function(t){if(!t.name)return!0;var n=t.form||zf(t),r=function(l){return n.querySelectorAll('input[type="radio"][name="'+l+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var a=_ae(i,t.form);return!a||a===t},Eae=function(t){return zT(t)&&t.type==="radio"},Oae=function(t){return Eae(t)&&!Sae(t)},$ae=function(t){var n,r=t&&zf(t),i=(n=r)===null||n===void 0?void 0:n.host,a=!1;if(r&&r!==t){var o,l,s;for(a=!!((o=i)!==null&&o!==void 0&&(l=o.ownerDocument)!==null&&l!==void 0&&l.contains(i)||t!=null&&(s=t.ownerDocument)!==null&&s!==void 0&&s.contains(t));!a&&i;){var u,c,f;r=zf(i),i=(u=r)===null||u===void 0?void 0:u.host,a=!!((c=i)!==null&&c!==void 0&&(f=c.ownerDocument)!==null&&f!==void 0&&f.contains(i))}}return a},kS=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},Pae=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var a=Ls.call(t,"details>summary:first-of-type"),o=a?t.parentElement:t;if(Ls.call(o,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof i=="function"){for(var l=t;t;){var s=t.parentElement,u=zf(t);if(s&&!s.shadowRoot&&i(s)===!0)return kS(t);t.assignedSlot?t=t.assignedSlot:!s&&u!==t.ownerDocument?t=u.host:t=s}t=l}if($ae(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return kS(t);return!1},jae=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var i=n.children.item(r);if(i.tagName==="LEGEND")return Ls.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},Tae=function(t,n){return!(n.disabled||Uf(n)||bae(n)||Pae(n,t)||wae(n)||jae(n))},NS=function(t,n){return!(Oae(n)||BT(n)<0||!Tae(t,n))},Aae=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Cae=function e(t){var n=[],r=[];return t.forEach(function(i,a){var o=!!i.scopeParent,l=o?i.scopeParent:i,s=yae(l,o),u=o?e(i.candidates):l;s===0?o?n.push.apply(n,u):n.push(l):r.push({documentOrder:a,tabIndex:s,item:i,isScope:o,content:u})}),r.sort(xae).reduce(function(i,a){return a.isScope?i.push.apply(i,a.content):i.push(a.content),i},[]).concat(n)},UT=function(t,n){n=n||{};var r;return n.getShadowRoot?r=gae([t],n.includeContainer,{filter:NS.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Aae}):r=vae(t,n.includeContainer,NS.bind(null,n)),Cae(r)};function MS(e,t,n){let{reference:r,floating:i}=e;const a=Xi(t),o=RT(t),l=IT(o),s=Yn(t),u=a==="y",c=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[l]/2-i[l]/2;let p;switch(s){case"top":p={x:c,y:r.y-i.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-i.width,y:f};break;default:p={x:r.x,y:r.y}}switch(Vn(t)){case"start":p[o]-=d*(n&&u?-1:1);break;case"end":p[o]+=d*(n&&u?-1:1);break}return p}const kae=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,l=a.filter(Boolean),s=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=MS(u,r,s),d=r,p={},h=0;for(let m=0;m<l.length;m++){const{name:b,fn:v}=l[m],{x:y,y:x,data:E,reset:_}=await v({x:c,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:p,rects:u,platform:o,elements:{reference:e,floating:t}});c=y??c,f=x??f,p={...p,[b]:{...p[b],...E}},_&&h<=50&&(h++,typeof _=="object"&&(_.placement&&(d=_.placement),_.rects&&(u=_.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):_.rects),{x:c,y:f}=MS(u,d,s)),m=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:p}};async function au(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:o,elements:l,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=la(t,e),h=pae(p),b=l[d?f==="floating"?"reference":"floating":f],v=Bf(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(b)))==null||n?b:b.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:s})),y=f==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,x=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),E=await(a.isElement==null?void 0:a.isElement(x))?await(a.getScale==null?void 0:a.getScale(x))||{x:1,y:1}:{x:1,y:1},_=Bf(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:x,strategy:s}):y);return{top:(v.top-_.top+h.top)/E.y,bottom:(_.bottom-v.bottom+h.bottom)/E.y,left:(v.left-_.left+h.left)/E.x,right:(_.right-v.right+h.right)/E.x}}function Nae(e,t,n){return(e?[...n.filter(i=>Vn(i)===e),...n.filter(i=>Vn(i)!==e)]:n.filter(i=>Yn(i)===i)).filter(i=>e?Vn(i)===e||(t?Df(i)!==i:!1):!0)}const Mae=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,i;const{rects:a,middlewareData:o,placement:l,platform:s,elements:u}=t,{crossAxis:c=!1,alignment:f,allowedPlacements:d=AS,autoAlignment:p=!0,...h}=la(e,t),m=f!==void 0||d===AS?Nae(f||null,p,d):d,b=await au(t,h),v=((n=o.autoPlacement)==null?void 0:n.index)||0,y=m[v];if(y==null)return{};const x=LT(y,a,await(s.isRTL==null?void 0:s.isRTL(u.floating)));if(l!==y)return{reset:{placement:m[0]}};const E=[b[Yn(y)],b[x[0]],b[x[1]]],_=[...((r=o.autoPlacement)==null?void 0:r.overflows)||[],{placement:y,overflows:E}],S=m[v+1];if(S)return{data:{index:v+1,overflows:_},reset:{placement:S}};const O=_.map(C=>{const A=Vn(C.placement);return[C.placement,A&&c?C.overflows.slice(0,2).reduce((N,I)=>N+I,0):C.overflows[0],C.overflows]}).sort((C,A)=>C[1]-A[1]),T=((i=O.filter(C=>C[2].slice(0,Vn(C[0])?2:3).every(A=>A<=0))[0])==null?void 0:i[0])||O[0][0];return T!==l?{data:{index:v+1,overflows:_},reset:{placement:T}}:{}}}},Iae=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:o,initialPlacement:l,platform:s,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...b}=la(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const v=Yn(i),y=Xi(l),x=Yn(l)===l,E=await(s.isRTL==null?void 0:s.isRTL(u.floating)),_=d||(x||!m?[Ff(l)]:uae(l)),S=h!=="none";!d&&S&&_.push(...fae(l,m,h,E));const O=[l,..._],$=await au(t,b),T=[];let C=((r=a.flip)==null?void 0:r.overflows)||[];if(c&&T.push($[v]),f){const D=LT(i,o,E);T.push($[D[0]],$[D[1]])}if(C=[...C,{placement:i,overflows:T}],!T.every(D=>D<=0)){var A,N;const D=(((A=a.flip)==null?void 0:A.index)||0)+1,M=O[D];if(M)return{data:{index:D,overflows:C},reset:{placement:M}};let F=(N=C.filter(R=>R.overflows[0]<=0).sort((R,P)=>R.overflows[1]-P.overflows[1])[0])==null?void 0:N.placement;if(!F)switch(p){case"bestFit":{var I;const R=(I=C.filter(P=>{if(S){const k=Xi(P.placement);return k===y||k==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(k=>k>0).reduce((k,B)=>k+B,0)]).sort((P,k)=>P[1]-k[1])[0])==null?void 0:I[0];R&&(F=R);break}case"initialPlacement":F=l;break}if(i!==F)return{reset:{placement:F}}}return{}}}};async function Rae(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Yn(n),l=Vn(n),s=Xi(n)==="y",u=["left","top"].includes(o)?-1:1,c=a&&s?-1:1,f=la(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof h=="number"&&(p=l==="end"?h*-1:h),s?{x:p*c,y:d*u}:{x:d*u,y:p*c}}const Lae=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:o,middlewareData:l}=t,s=await Rae(t,e);return o===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+s.x,y:a+s.y,data:{...s,placement:o}}}}},Dae=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:l={fn:b=>{let{x:v,y}=b;return{x:v,y}}},...s}=la(e,t),u={x:n,y:r},c=await au(t,s),f=Xi(Yn(i)),d=MT(f);let p=u[d],h=u[f];if(a){const b=d==="y"?"top":"left",v=d==="y"?"bottom":"right",y=p+c[b],x=p-c[v];p=CS(y,p,x)}if(o){const b=f==="y"?"top":"left",v=f==="y"?"bottom":"right",y=h+c[b],x=h-c[v];h=CS(y,h,x)}const m=l.fn({...t,[d]:p,[f]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[d]:a,[f]:o}}}}}},Fae=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:a,platform:o,elements:l}=t,{apply:s=()=>{},...u}=la(e,t),c=await au(t,u),f=Yn(i),d=Vn(i),p=Xi(i)==="y",{width:h,height:m}=a.floating;let b,v;f==="top"||f==="bottom"?(b=f,v=d===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(v=f,b=d==="end"?"top":"bottom");const y=m-c.top-c.bottom,x=h-c.left-c.right,E=Yi(m-c[b],y),_=Yi(h-c[v],x),S=!t.middlewareData.shift;let O=E,$=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&($=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(O=y),S&&!d){const C=vt(c.left,0),A=vt(c.right,0),N=vt(c.top,0),I=vt(c.bottom,0);p?$=h-2*(C!==0||A!==0?C+A:vt(c.left,c.right)):O=m-2*(N!==0||I!==0?N+I:vt(c.top,c.bottom))}await s({...t,availableWidth:$,availableHeight:O});const T=await o.getDimensions(l.floating);return h!==T.width||m!==T.height?{reset:{rects:!0}}:{}}}};function HT(e){const t=pn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Vt(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,l=Rs(n)!==a||Rs(r)!==o;return l&&(n=a,r=o),{width:n,height:r,$:l}}function D0(e){return de(e)?e:e.contextElement}function za(e){const t=D0(e);if(!Vt(t))return Wn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=HT(t);let o=(a?Rs(n.width):n.width)/r,l=(a?Rs(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const Bae=Wn(0);function WT(e){const t=Lt(e);return!up()||!t.visualViewport?Bae:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function zae(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Lt(e)?!1:t}function Qi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=D0(e);let o=Wn(1);t&&(r?de(r)&&(o=za(r)):o=za(e));const l=zae(a,n,r)?WT(a):Wn(0);let s=(i.left+l.x)/o.x,u=(i.top+l.y)/o.y,c=i.width/o.x,f=i.height/o.y;if(a){const d=Lt(a),p=r&&de(r)?Lt(r):r;let h=d,m=ug(h);for(;m&&r&&p!==h;){const b=za(m),v=m.getBoundingClientRect(),y=pn(m),x=v.left+(m.clientLeft+parseFloat(y.paddingLeft))*b.x,E=v.top+(m.clientTop+parseFloat(y.paddingTop))*b.y;s*=b.x,u*=b.y,c*=b.x,f*=b.y,s+=x,u+=E,h=Lt(m),m=ug(h)}}return Bf({width:c,height:f,x:s,y:u})}function F0(e,t){const n=cp(e).scrollLeft;return t?t.left+n:Qi(Qn(e)).left+n}function VT(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:F0(e,r)),a=r.top+t.scrollTop;return{x:i,y:a}}function Uae(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",o=Qn(r),l=t?sp(t.floating):!1;if(r===o||l&&a)return n;let s={scrollLeft:0,scrollTop:0},u=Wn(1);const c=Wn(0),f=Vt(r);if((f||!f&&!a)&&((Ho(r)!=="body"||iu(o))&&(s=cp(r)),Vt(r))){const p=Qi(r);u=za(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}const d=o&&!f&&!a?VT(o,s,!0):Wn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-s.scrollTop*u.y+c.y+d.y}}function Hae(e){return Array.from(e.getClientRects())}function Wae(e){const t=Qn(e),n=cp(e),r=e.ownerDocument.body,i=vt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=vt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+F0(e);const l=-n.scrollTop;return pn(r).direction==="rtl"&&(o+=vt(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:l}}function Vae(e,t){const n=Lt(e),r=Qn(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,l=0,s=0;if(i){a=i.width,o=i.height;const u=up();(!u||u&&t==="fixed")&&(l=i.offsetLeft,s=i.offsetTop)}return{width:a,height:o,x:l,y:s}}function Kae(e,t){const n=Qi(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Vt(e)?za(e):Wn(1),o=e.clientWidth*a.x,l=e.clientHeight*a.y,s=i*a.x,u=r*a.y;return{width:o,height:l,x:s,y:u}}function IS(e,t,n){let r;if(t==="viewport")r=Vae(e,n);else if(t==="document")r=Wae(Qn(e));else if(de(t))r=Kae(t,n);else{const i=WT(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Bf(r)}function KT(e,t){const n=jr(e);return n===t||!de(n)||mr(n)?!1:pn(n).position==="fixed"||KT(n,t)}function Gae(e,t){const n=t.get(e);if(n)return n;let r=ii(e,[],!1).filter(l=>de(l)&&Ho(l)!=="body"),i=null;const a=pn(e).position==="fixed";let o=a?jr(e):e;for(;de(o)&&!mr(o);){const l=pn(o),s=L0(o);!s&&l.position==="fixed"&&(i=null),(a?!s&&!i:!s&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||iu(o)&&!s&&KT(e,o))?r=r.filter(c=>c!==o):i=l,o=jr(o)}return t.set(e,r),r}function qae(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?sp(t)?[]:Gae(t,this._c):[].concat(n),r],l=o[0],s=o.reduce((u,c)=>{const f=IS(t,c,i);return u.top=vt(f.top,u.top),u.right=Yi(f.right,u.right),u.bottom=Yi(f.bottom,u.bottom),u.left=vt(f.left,u.left),u},IS(t,l,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function Yae(e){const{width:t,height:n}=HT(e);return{width:t,height:n}}function Xae(e,t,n){const r=Vt(t),i=Qn(t),a=n==="fixed",o=Qi(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const s=Wn(0);if(r||!r&&!a)if((Ho(t)!=="body"||iu(i))&&(l=cp(t)),r){const d=Qi(t,!0,a,t);s.x=d.x+t.clientLeft,s.y=d.y+t.clientTop}else i&&(s.x=F0(i));const u=i&&!r&&!a?VT(i,l):Wn(0),c=o.left+l.scrollLeft-s.x-u.x,f=o.top+l.scrollTop-s.y-u.y;return{x:c,y:f,width:o.width,height:o.height}}function $h(e){return pn(e).position==="static"}function RS(e,t){if(!Vt(e)||pn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Qn(e)===n&&(n=n.ownerDocument.body),n}function GT(e,t){const n=Lt(e);if(sp(e))return n;if(!Vt(e)){let i=jr(e);for(;i&&!mr(i);){if(de(i)&&!$h(i))return i;i=jr(i)}return n}let r=RS(e,t);for(;r&&Qie(r)&&$h(r);)r=RS(r,t);return r&&mr(r)&&$h(r)&&!L0(r)?n:r||Zie(e)||n}const Qae=async function(e){const t=this.getOffsetParent||GT,n=this.getDimensions,r=await n(e.floating);return{reference:Xae(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Zae(e){return pn(e).direction==="rtl"}const Jae={convertOffsetParentRelativeRectToViewportRelativeRect:Uae,getDocumentElement:Qn,getClippingRect:qae,getOffsetParent:GT,getElementRects:Qae,getClientRects:Hae,getDimensions:Yae,getScale:za,isElement:de,isRTL:Zae};function qT(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function eoe(e,t){let n=null,r;const i=Qn(e);function a(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function o(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),a();const u=e.getBoundingClientRect(),{left:c,top:f,width:d,height:p}=u;if(l||t(),!d||!p)return;const h=Yu(f),m=Yu(i.clientWidth-(c+d)),b=Yu(i.clientHeight-(f+p)),v=Yu(c),x={rootMargin:-h+"px "+-m+"px "+-b+"px "+-v+"px",threshold:vt(0,Yi(1,s))||1};let E=!0;function _(S){const O=S[0].intersectionRatio;if(O!==s){if(!E)return o();O?o(!1,O):r=setTimeout(()=>{o(!1,1e-7)},1e3)}O===1&&!qT(u,e.getBoundingClientRect())&&o(),E=!1}try{n=new IntersectionObserver(_,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(_,x)}n.observe(e)}return o(!0),a}function YT(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,u=D0(e),c=i||a?[...u?ii(u):[],...ii(t)]:[];c.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),a&&v.addEventListener("resize",n)});const f=u&&l?eoe(u,n):null;let d=-1,p=null;o&&(p=new ResizeObserver(v=>{let[y]=v;y&&y.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),u&&!s&&p.observe(u),p.observe(t));let h,m=s?Qi(e):null;s&&b();function b(){const v=Qi(e);m&&!qT(m,v)&&n(),m=v,h=requestAnimationFrame(b)}return n(),()=>{var v;c.forEach(y=>{i&&y.removeEventListener("scroll",n),a&&y.removeEventListener("resize",n)}),f==null||f(),(v=p)==null||v.disconnect(),p=null,s&&cancelAnimationFrame(h)}}const Ph=au,toe=Lae,noe=Mae,roe=Dae,ioe=Iae,aoe=Fae,ooe=(e,t,n)=>{const r=new Map,i={platform:Jae,...n},a={...i.platform,_c:r};return kae(e,t,{...i,platform:a})};var hc=typeof document<"u"?w.useLayoutEffect:w.useEffect;function Hf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Hf(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!Hf(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function XT(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function LS(e,t){const n=XT(e);return Math.round(t*n)/n}function jh(e){const t=w.useRef(e);return hc(()=>{t.current=e}),t}function QT(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:l=!0,whileElementsMounted:s,open:u}=e,[c,f]=w.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=w.useState(r);Hf(d,r)||p(r);const[h,m]=w.useState(null),[b,v]=w.useState(null),y=w.useCallback(P=>{P!==S.current&&(S.current=P,m(P))},[]),x=w.useCallback(P=>{P!==O.current&&(O.current=P,v(P))},[]),E=a||h,_=o||b,S=w.useRef(null),O=w.useRef(null),$=w.useRef(c),T=s!=null,C=jh(s),A=jh(i),N=jh(u),I=w.useCallback(()=>{if(!S.current||!O.current)return;const P={placement:t,strategy:n,middleware:d};A.current&&(P.platform=A.current),ooe(S.current,O.current,P).then(k=>{const B={...k,isPositioned:N.current!==!1};D.current&&!Hf($.current,B)&&($.current=B,Ht.flushSync(()=>{f(B)}))})},[d,t,n,A,N]);hc(()=>{u===!1&&$.current.isPositioned&&($.current.isPositioned=!1,f(P=>({...P,isPositioned:!1})))},[u]);const D=w.useRef(!1);hc(()=>(D.current=!0,()=>{D.current=!1}),[]),hc(()=>{if(E&&(S.current=E),_&&(O.current=_),E&&_){if(C.current)return C.current(E,_,I);I()}},[E,_,I,C,T]);const M=w.useMemo(()=>({reference:S,floating:O,setReference:y,setFloating:x}),[y,x]),F=w.useMemo(()=>({reference:E,floating:_}),[E,_]),R=w.useMemo(()=>{const P={position:n,left:0,top:0};if(!F.floating)return P;const k=LS(F.floating,c.x),B=LS(F.floating,c.y);return l?{...P,transform:"translate("+k+"px, "+B+"px)",...XT(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:k,top:B}},[n,l,F.floating,c.x,c.y]);return w.useMemo(()=>({...c,update:I,refs:M,elements:F,floatingStyles:R}),[c,I,M,F,R])}const B0=(e,t)=>({...toe(e),options:[e,t]}),ZT=(e,t)=>({...roe(e),options:[e,t]}),loe=(e,t)=>({...ioe(e),options:[e,t]}),soe=(e,t)=>({...aoe(e),options:[e,t]}),uoe=(e,t)=>({...noe(e),options:[e,t]}),JT={...mc},coe=JT.useInsertionEffect,foe=coe||(e=>e());function ir(e){const t=w.useRef(()=>{});return foe(()=>{t.current=e}),w.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var Kn=typeof document<"u"?w.useLayoutEffect:w.useEffect;let DS=!1,doe=0;const FS=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+doe++;function poe(){const[e,t]=w.useState(()=>DS?FS():void 0);return Kn(()=>{e==null&&t(FS())},[]),w.useEffect(()=>{DS=!0},[]),e}const hoe=JT.useId,z0=hoe||poe;function moe(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const voe=w.createContext(null),goe=w.createContext(null),U0=()=>{var e;return((e=w.useContext(voe))==null?void 0:e.id)||null},H0=()=>w.useContext(goe);function ou(e){return"data-floating-ui-"+e}function Th(e){const t=w.useRef(e);return Kn(()=>{t.current=e}),t}const BS=ou("safe-polygon");function Ah(e,t,n){return n&&!fg(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function yoe(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:a,elements:o}=e,{enabled:l=!0,delay:s=0,handleClose:u=null,mouseOnly:c=!1,restMs:f=0,move:d=!0}=t,p=H0(),h=U0(),m=Th(u),b=Th(s),v=Th(n),y=w.useRef(),x=w.useRef(-1),E=w.useRef(),_=w.useRef(-1),S=w.useRef(!0),O=w.useRef(!1),$=w.useRef(()=>{}),T=w.useRef(!1),C=w.useCallback(()=>{var R;const P=(R=i.current.openEvent)==null?void 0:R.type;return(P==null?void 0:P.includes("mouse"))&&P!=="mousedown"},[i]);w.useEffect(()=>{if(!l)return;function R(P){let{open:k}=P;k||(clearTimeout(x.current),clearTimeout(_.current),S.current=!0,T.current=!1)}return a.on("openchange",R),()=>{a.off("openchange",R)}},[l,a]),w.useEffect(()=>{if(!l||!m.current||!n)return;function R(k){C()&&r(!1,k,"hover")}const P=Kr(o.floating).documentElement;return P.addEventListener("mouseleave",R),()=>{P.removeEventListener("mouseleave",R)}},[o.floating,n,r,l,m,C]);const A=w.useCallback(function(R,P,k){P===void 0&&(P=!0),k===void 0&&(k="hover");const B=Ah(b.current,"close",y.current);B&&!E.current?(clearTimeout(x.current),x.current=window.setTimeout(()=>r(!1,R,k),B)):P&&(clearTimeout(x.current),r(!1,R,k))},[b,r]),N=ir(()=>{$.current(),E.current=void 0}),I=ir(()=>{if(O.current){const R=Kr(o.floating).body;R.style.pointerEvents="",R.removeAttribute(BS),O.current=!1}}),D=ir(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);w.useEffect(()=>{if(!l)return;function R(L){if(clearTimeout(x.current),S.current=!1,c&&!fg(y.current)||f>0&&!Ah(b.current,"open"))return;const U=Ah(b.current,"open",y.current);U?x.current=window.setTimeout(()=>{v.current||r(!0,L,"hover")},U):n||r(!0,L,"hover")}function P(L){if(D())return;$.current();const U=Kr(o.floating);if(clearTimeout(_.current),T.current=!1,m.current&&i.current.floatingContext){n||clearTimeout(x.current),E.current=m.current({...i.current.floatingContext,tree:p,x:L.clientX,y:L.clientY,onClose(){I(),N(),D()||A(L,!0,"safe-polygon")}});const re=E.current;U.addEventListener("mousemove",re),$.current=()=>{U.removeEventListener("mousemove",re)};return}(y.current==="touch"?!bo(o.floating,L.relatedTarget):!0)&&A(L)}function k(L){D()||i.current.floatingContext&&(m.current==null||m.current({...i.current.floatingContext,tree:p,x:L.clientX,y:L.clientY,onClose(){I(),N(),D()||A(L)}})(L))}if(de(o.domReference)){var B;const L=o.domReference;return n&&L.addEventListener("mouseleave",k),(B=o.floating)==null||B.addEventListener("mouseleave",k),d&&L.addEventListener("mousemove",R,{once:!0}),L.addEventListener("mouseenter",R),L.addEventListener("mouseleave",P),()=>{var U;n&&L.removeEventListener("mouseleave",k),(U=o.floating)==null||U.removeEventListener("mouseleave",k),d&&L.removeEventListener("mousemove",R),L.removeEventListener("mouseenter",R),L.removeEventListener("mouseleave",P)}}},[o,l,e,c,f,d,A,N,I,r,n,v,p,b,m,i,D]),Kn(()=>{var R;if(l&&n&&(R=m.current)!=null&&R.__options.blockPointerEvents&&C()){O.current=!0;const k=o.floating;if(de(o.domReference)&&k){var P;const B=Kr(o.floating).body;B.setAttribute(BS,"");const L=o.domReference,U=p==null||(P=p.nodesRef.current.find(V=>V.id===h))==null||(P=P.context)==null?void 0:P.elements.floating;return U&&(U.style.pointerEvents=""),B.style.pointerEvents="none",L.style.pointerEvents="auto",k.style.pointerEvents="auto",()=>{B.style.pointerEvents="",L.style.pointerEvents="",k.style.pointerEvents=""}}}},[l,n,h,o,p,m,C]),Kn(()=>{n||(y.current=void 0,T.current=!1,N(),I())},[n,N,I]),w.useEffect(()=>()=>{N(),clearTimeout(x.current),clearTimeout(_.current),I()},[l,o.domReference,N,I]);const M=w.useMemo(()=>{function R(P){y.current=P.pointerType}return{onPointerDown:R,onPointerEnter:R,onMouseMove(P){const{nativeEvent:k}=P;function B(){!S.current&&!v.current&&r(!0,k,"hover")}c&&!fg(y.current)||n||f===0||T.current&&P.movementX**2+P.movementY**2<2||(clearTimeout(_.current),y.current==="touch"?B():(T.current=!0,_.current=window.setTimeout(B,f)))}}},[c,r,n,v,f]),F=w.useMemo(()=>({onMouseEnter(){clearTimeout(x.current)},onMouseLeave(R){D()||A(R.nativeEvent,!1)}}),[A,D]);return w.useMemo(()=>l?{reference:M,floating:F}:{},[l,M,F])}function Ch(e,t){let n=e.filter(i=>{var a;return i.parentId===t&&((a=i.context)==null?void 0:a.open)}),r=n;for(;r.length;)r=e.filter(i=>{var a;return(a=r)==null?void 0:a.some(o=>{var l;return i.parentId===o.id&&((l=i.context)==null?void 0:l.open)})}),n=n.concat(r);return n}const eA=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function tA(e,t){const n=UT(e,eA());t==="prev"&&n.reverse();const r=n.indexOf(cg(Kr(e)));return n.slice(r+1)[0]}function xoe(){return tA(document.body,"next")}function boe(){return tA(document.body,"prev")}function kh(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!bo(n,r)}function woe(e){UT(e,eA()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function zS(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const nA={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let _oe;function US(e){e.key==="Tab"&&(e.target,clearTimeout(_oe))}const HS=w.forwardRef(function(t,n){const[r,i]=w.useState();Kn(()=>(NT()&&i("button"),document.addEventListener("keydown",US),()=>{document.removeEventListener("keydown",US)}),[]);const a={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[ou("focus-guard")]:"",style:nA};return g.jsx("span",{...t,...a})}),rA=w.createContext(null),WS=ou("portal");function Soe(e){e===void 0&&(e={});const{id:t,root:n}=e,r=z0(),i=Ooe(),[a,o]=w.useState(null),l=w.useRef(null);return Kn(()=>()=>{a==null||a.remove(),queueMicrotask(()=>{l.current=null})},[a]),Kn(()=>{if(!r||l.current)return;const s=t?document.getElementById(t):null;if(!s)return;const u=document.createElement("div");u.id=r,u.setAttribute(WS,""),s.appendChild(u),l.current=u,o(u)},[t,r]),Kn(()=>{if(n===null||!r||l.current)return;let s=n||(i==null?void 0:i.portalNode);s&&!de(s)&&(s=s.current),s=s||document.body;let u=null;t&&(u=document.createElement("div"),u.id=t,s.appendChild(u));const c=document.createElement("div");c.id=r,c.setAttribute(WS,""),s=u||s,s.appendChild(c),l.current=c,o(c)},[t,n,r,i]),a}function Eoe(e){const{children:t,id:n,root:r,preserveTabOrder:i=!0}=e,a=Soe({id:n,root:r}),[o,l]=w.useState(null),s=w.useRef(null),u=w.useRef(null),c=w.useRef(null),f=w.useRef(null),d=o==null?void 0:o.modal,p=o==null?void 0:o.open,h=!!o&&!o.modal&&o.open&&i&&!!(r||a);return w.useEffect(()=>{if(!a||!i||d)return;function m(b){a&&kh(b)&&(b.type==="focusin"?zS:woe)(a)}return a.addEventListener("focusin",m,!0),a.addEventListener("focusout",m,!0),()=>{a.removeEventListener("focusin",m,!0),a.removeEventListener("focusout",m,!0)}},[a,i,d]),w.useEffect(()=>{a&&(p||zS(a))},[p,a]),g.jsxs(rA.Provider,{value:w.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:s,afterOutsideRef:u,beforeInsideRef:c,afterInsideRef:f,portalNode:a,setFocusManagerState:l}),[i,a]),children:[h&&a&&g.jsx(HS,{"data-type":"outside",ref:s,onFocus:m=>{if(kh(m,a)){var b;(b=c.current)==null||b.focus()}else{const v=boe()||(o==null?void 0:o.domReference);v==null||v.focus()}}}),h&&a&&g.jsx("span",{"aria-owns":a.id,style:nA}),a&&Ht.createPortal(t,a),h&&a&&g.jsx(HS,{"data-type":"outside",ref:u,onFocus:m=>{if(kh(m,a)){var b;(b=f.current)==null||b.focus()}else{const v=xoe()||(o==null?void 0:o.domReference);v==null||v.focus(),o!=null&&o.closeOnFocusOut&&(o==null||o.onOpenChange(!1,m.nativeEvent,"focus-out"))}}})]})}const Ooe=()=>w.useContext(rA),$oe="data-floating-ui-focusable",Poe={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},joe={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},VS=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function Toe(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:a}=e,{enabled:o=!0,escapeKey:l=!0,outsidePress:s=!0,outsidePressEvent:u="pointerdown",referencePress:c=!1,referencePressEvent:f="pointerdown",ancestorScroll:d=!1,bubbles:p,capture:h}=t,m=H0(),b=ir(typeof s=="function"?s:()=>!1),v=typeof s=="function"?b:s,y=w.useRef(!1),x=w.useRef(!1),{escapeKey:E,outsidePress:_}=VS(p),{escapeKey:S,outsidePress:O}=VS(h),$=w.useRef(!1),T=ir(M=>{var F;if(!n||!o||!l||M.key!=="Escape"||$.current)return;const R=(F=a.current.floatingContext)==null?void 0:F.nodeId,P=m?Ch(m.nodesRef.current,R):[];if(!E&&(M.stopPropagation(),P.length>0)){let k=!0;if(P.forEach(B=>{var L;if((L=B.context)!=null&&L.open&&!B.context.dataRef.current.__escapeKeyBubbles){k=!1;return}}),!k)return}r(!1,nae(M)?M.nativeEvent:M,"escape-key")}),C=ir(M=>{var F;const R=()=>{var P;T(M),(P=ma(M))==null||P.removeEventListener("keydown",R)};(F=ma(M))==null||F.addEventListener("keydown",R)}),A=ir(M=>{var F;const R=y.current;y.current=!1;const P=x.current;if(x.current=!1,u==="click"&&P||R||typeof v=="function"&&!v(M))return;const k=ma(M),B="["+ou("inert")+"]",L=Kr(i.floating).querySelectorAll(B);let U=de(k)?k:null;for(;U&&!mr(U);){const J=jr(U);if(mr(J)||!de(J))break;U=J}if(L.length&&de(k)&&!rae(k)&&!bo(k,i.floating)&&Array.from(L).every(J=>!bo(U,J)))return;if(Vt(k)&&D){const J=mr(k),Ce=pn(k),Oe=/auto|scroll/,K=J||Oe.test(Ce.overflowX),Z=J||Oe.test(Ce.overflowY),ee=K&&k.clientWidth>0&&k.scrollWidth>k.clientWidth,H=Z&&k.clientHeight>0&&k.scrollHeight>k.clientHeight,ke=Ce.direction==="rtl",oe=H&&(ke?M.offsetX<=k.offsetWidth-k.clientWidth:M.offsetX>k.clientWidth),He=ee&&M.offsetY>k.clientHeight;if(oe||He)return}const V=(F=a.current.floatingContext)==null?void 0:F.nodeId,re=m&&Ch(m.nodesRef.current,V).some(J=>{var Ce;return Oh(M,(Ce=J.context)==null?void 0:Ce.elements.floating)});if(Oh(M,i.floating)||Oh(M,i.domReference)||re)return;const ie=m?Ch(m.nodesRef.current,V):[];if(ie.length>0){let J=!0;if(ie.forEach(Ce=>{var Oe;if((Oe=Ce.context)!=null&&Oe.open&&!Ce.context.dataRef.current.__outsidePressBubbles){J=!1;return}}),!J)return}r(!1,M,"outside-press")}),N=ir(M=>{var F;const R=()=>{var P;A(M),(P=ma(M))==null||P.removeEventListener(u,R)};(F=ma(M))==null||F.addEventListener(u,R)});w.useEffect(()=>{if(!n||!o)return;a.current.__escapeKeyBubbles=E,a.current.__outsidePressBubbles=_;let M=-1;function F(L){r(!1,L,"ancestor-scroll")}function R(){window.clearTimeout(M),$.current=!0}function P(){M=window.setTimeout(()=>{$.current=!1},up()?5:0)}const k=Kr(i.floating);l&&(k.addEventListener("keydown",S?C:T,S),k.addEventListener("compositionstart",R),k.addEventListener("compositionend",P)),v&&k.addEventListener(u,O?N:A,O);let B=[];return d&&(de(i.domReference)&&(B=ii(i.domReference)),de(i.floating)&&(B=B.concat(ii(i.floating))),!de(i.reference)&&i.reference&&i.reference.contextElement&&(B=B.concat(ii(i.reference.contextElement)))),B=B.filter(L=>{var U;return L!==((U=k.defaultView)==null?void 0:U.visualViewport)}),B.forEach(L=>{L.addEventListener("scroll",F,{passive:!0})}),()=>{l&&(k.removeEventListener("keydown",S?C:T,S),k.removeEventListener("compositionstart",R),k.removeEventListener("compositionend",P)),v&&k.removeEventListener(u,O?N:A,O),B.forEach(L=>{L.removeEventListener("scroll",F)}),window.clearTimeout(M)}},[a,i,l,v,u,n,r,d,o,E,_,T,S,C,A,O,N]),w.useEffect(()=>{y.current=!1},[v,u]);const I=w.useMemo(()=>({onKeyDown:T,...c&&{[Poe[f]]:M=>{r(!1,M.nativeEvent,"reference-press")},...f!=="click"&&{onClick(M){r(!1,M.nativeEvent,"reference-press")}}}}),[T,r,c,f]),D=w.useMemo(()=>({onKeyDown:T,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[joe[u]]:()=>{y.current=!0}}),[T,u]);return w.useMemo(()=>o?{reference:I,floating:D}:{},[o,I,D])}function Aoe(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=z0(),a=w.useRef({}),[o]=w.useState(()=>moe()),l=U0()!=null,[s,u]=w.useState(r.reference),c=ir((p,h,m)=>{a.current.openEvent=p?h:void 0,o.emit("openchange",{open:p,event:h,reason:m,nested:l}),n==null||n(p,h,m)}),f=w.useMemo(()=>({setPositionReference:u}),[]),d=w.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return w.useMemo(()=>({dataRef:a,open:t,onOpenChange:c,elements:d,events:o,floatingId:i,refs:f}),[t,c,d,o,i,f])}function Coe(e){e===void 0&&(e={});const{nodeId:t}=e,n=Aoe({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,o]=w.useState(null),[l,s]=w.useState(null),c=(i==null?void 0:i.domReference)||a,f=w.useRef(null),d=H0();Kn(()=>{c&&(f.current=c)},[c]);const p=QT({...e,elements:{...i,...l&&{reference:l}}}),h=w.useCallback(x=>{const E=de(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),contextElement:x}:x;s(E),p.refs.setReference(E)},[p.refs]),m=w.useCallback(x=>{(de(x)||x===null)&&(f.current=x,o(x)),(de(p.refs.reference.current)||p.refs.reference.current===null||x!==null&&!de(x))&&p.refs.setReference(x)},[p.refs]),b=w.useMemo(()=>({...p.refs,setReference:m,setPositionReference:h,domReference:f}),[p.refs,m,h]),v=w.useMemo(()=>({...p.elements,domReference:c}),[p.elements,c]),y=w.useMemo(()=>({...p,...r,refs:b,elements:v,nodeId:t}),[p,b,v,t,r]);return Kn(()=>{r.dataRef.current.floatingContext=y;const x=d==null?void 0:d.nodesRef.current.find(E=>E.id===t);x&&(x.context=y)}),w.useMemo(()=>({...p,context:y,refs:b,elements:v}),[p,b,v,y])}function koe(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:a,elements:o}=e,{enabled:l=!0,visibleOnly:s=!0}=t,u=w.useRef(!1),c=w.useRef(),f=w.useRef(!0);w.useEffect(()=>{if(!l)return;const p=Lt(o.domReference);function h(){!n&&Vt(o.domReference)&&o.domReference===cg(Kr(o.domReference))&&(u.current=!0)}function m(){f.current=!0}return p.addEventListener("blur",h),p.addEventListener("keydown",m,!0),()=>{p.removeEventListener("blur",h),p.removeEventListener("keydown",m,!0)}},[o.domReference,n,l]),w.useEffect(()=>{if(!l)return;function p(h){let{reason:m}=h;(m==="reference-press"||m==="escape-key")&&(u.current=!0)}return i.on("openchange",p),()=>{i.off("openchange",p)}},[i,l]),w.useEffect(()=>()=>{clearTimeout(c.current)},[]);const d=w.useMemo(()=>({onPointerDown(p){Jie(p.nativeEvent)||(f.current=!1)},onMouseLeave(){u.current=!1},onFocus(p){if(u.current)return;const h=ma(p.nativeEvent);if(s&&de(h))try{if(NT()&&eae())throw Error();if(!h.matches(":focus-visible"))return}catch{if(!f.current&&!aae(h))return}r(!0,p.nativeEvent,"focus")},onBlur(p){u.current=!1;const h=p.relatedTarget,m=p.nativeEvent,b=de(h)&&h.hasAttribute(ou("focus-guard"))&&h.getAttribute("data-type")==="outside";c.current=window.setTimeout(()=>{var v;const y=cg(o.domReference?o.domReference.ownerDocument:document);!h&&y===o.domReference||bo((v=a.current.floatingContext)==null?void 0:v.refs.floating.current,y)||bo(o.domReference,y)||b||r(!1,m,"focus")})}}),[a,o.domReference,r,s]);return w.useMemo(()=>l?{reference:d}:{},[l,d])}const KS="active",GS="selected";function Nh(e,t,n){const r=new Map,i=n==="item";let a=e;if(i&&e){const{[KS]:o,[GS]:l,...s}=e;a=s}return{...n==="floating"&&{tabIndex:-1,[$oe]:""},...a,...t.map(o=>{const l=o?o[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((o,l)=>(l&&Object.entries(l).forEach(s=>{let[u,c]=s;if(!(i&&[KS,GS].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof c=="function"){var f;(f=r.get(u))==null||f.push(c),o[u]=function(){for(var d,p=arguments.length,h=new Array(p),m=0;m<p;m++)h[m]=arguments[m];return(d=r.get(u))==null?void 0:d.map(b=>b(...h)).find(b=>b!==void 0)}}}else o[u]=c}),o),{})}}function Noe(e){e===void 0&&(e=[]);const t=e.map(l=>l==null?void 0:l.reference),n=e.map(l=>l==null?void 0:l.floating),r=e.map(l=>l==null?void 0:l.item),i=w.useCallback(l=>Nh(l,e,"reference"),t),a=w.useCallback(l=>Nh(l,e,"floating"),n),o=w.useCallback(l=>Nh(l,e,"item"),r);return w.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}const Moe=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Ioe(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:a=!0,role:o="dialog"}=t,l=(n=Moe.get(o))!=null?n:o,s=z0(),c=U0()!=null,f=w.useMemo(()=>l==="tooltip"||o==="label"?{["aria-"+(o==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":l==="alertdialog"?"dialog":l,"aria-controls":r?i:void 0,...l==="listbox"&&{role:"combobox"},...l==="menu"&&{id:s},...l==="menu"&&c&&{role:"menuitem"},...o==="select"&&{"aria-autocomplete":"none"},...o==="combobox"&&{"aria-autocomplete":"list"}},[l,i,c,r,s,o]),d=w.useMemo(()=>{const h={id:i,...l&&{role:l}};return l==="tooltip"||o==="label"?h:{...h,...l==="menu"&&{"aria-labelledby":s}}},[l,i,s,o]),p=w.useCallback(h=>{let{active:m,selected:b}=h;const v={role:"option",...m&&{id:i+"-option"}};switch(o){case"select":return{...v,"aria-selected":m&&b};case"combobox":return{...v,...m&&{"aria-selected":!0}}}return{}},[i,o]);return w.useMemo(()=>a?{reference:f,floating:d,item:p}:{},[a,f,d,p])}const wo=({width:e="max-w-56",className:t="bg-gray-700 text-white text-xs rounded-sm p-2",children:n})=>{const[r,i]=w.useState(!1),{refs:a,floatingStyles:o,context:l}=Coe({open:r,onOpenChange:i,placement:"bottom",whileElementsMounted:YT,middleware:[B0(5),uoe({fallbackAxisSideDirection:"start"}),ZT()]}),s=yoe(l,{move:!1}),u=koe(l),c=Toe(l),f=Ioe(l,{role:"tooltip"}),{getReferenceProps:d,getFloatingProps:p}=Noe([s,u,c,f]),h=j.Children.toArray(n).find(b=>b.type===si),m=j.Children.toArray(n).find(b=>b.type===Zi);return g.jsxs(g.Fragment,{children:[h&&g.jsx("div",{ref:a.setReference,...d(),className:"relative",children:w.cloneElement(h,{ref:a.setReference})}),g.jsx(Eoe,{children:r&&m&&g.jsx("div",{className:`${e} ${t}`,ref:a.setFloating,style:o,...p(),children:m})})]})},si=w.forwardRef(({children:e,...t},n)=>g.jsx("button",{ref:n,...t,children:e}));si.displayName="TooltipButton";const Zi=({children:e,...t})=>g.jsx("div",{...t,children:e}),Roe=({features:e})=>{const t=Object.values(e).reduce((i,a)=>{const o=a.additional_metrics.feature_size.percent_of_max||0;if(o!=null){const l=xo(o);i[l]++}return i},{xs:0,s:0,m:0,l:0,xl:0}),{minimum_thresholds:n}=_r.project.documentation_site.size_percentile,r=Object.entries(t).map(([i,a],o)=>({name:i,value:a,fill:[In(n.xs).hex,In(n.s).hex,In(n.m).hex,In(n.l).hex,In(n.xl).hex][o]})).filter(({value:i})=>i>0);return g.jsxs("div",{className:"flex flex-col gap-6",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[g.jsx("div",{className:"shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:g.jsx(Y$,{className:"size-5"})}),g.jsx("span",{className:"flex pl-2",children:"Feature Size"})]}),g.jsxs(wo,{width:"w-72",children:[g.jsx(si,{children:g.jsx(Sr,{className:"size-4 text-gray-400"})}),g.jsx(Zi,{children:"Feature size is determined by analyzing the total number of files and lines of code associated with each feature. Each feature is then grouped into different size bins, which can be configured in the config.yaml file."})]})]}),g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx("div",{className:"relative h-28 w-28",children:g.jsx(Do,{width:"100%",height:"100%",children:g.jsx(nu,{children:g.jsx(qt,{data:r,dataKey:"value",nameKey:"name",innerRadius:"70%",outerRadius:"100%",paddingAngle:2})})})}),g.jsxs("ul",{className:"flex flex-col flex-1 gap-y-1",children:[g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${In(n.xs).class}`,children:g.jsx("span",{className:"font-semibold text-white text-xs",children:t.xs})}),g.jsx("p",{className:"text-xs text-gray-500",children:"X-Small Features"})]}),g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${In(n.s).class}`,children:g.jsx("span",{className:"font-semibold text-white text-xs",children:t.s})}),g.jsx("p",{className:"text-xs text-gray-500",children:"Small Features"})]}),g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${In(n.m).class}`,children:g.jsx("span",{className:"font-semibold text-white text-xs",children:t.m})}),g.jsx("p",{className:"text-xs text-gray-500",children:"Medium Features"})]}),g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${In(n.l).class}`,children:g.jsx("span",{className:"font-semibold text-white text-xs",children:t.l})}),g.jsx("p",{className:"text-xs text-gray-500",children:"Large Features"})]}),g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${In(n.xl).class}`,children:g.jsx("span",{className:"font-semibold text-white text-xs",children:t.xl})}),g.jsx("p",{className:"text-xs text-gray-500",children:"X-Large Features"})]})]})]})]})},rt={needsAttention:50,needsImprovement:80,healthy:100},wt=e=>e?e<=rt.needsAttention?{hex:"#ef4444",class:"bg-red-500"}:e<=rt.needsImprovement?{hex:"#eab308",class:"bg-yellow-500"}:{hex:"#22c55e",class:"bg-green-500"}:{hex:"transparent",class:"bg-transparent"},iA=e=>e<rt.needsAttention?"needsAttention":e<rt.needsImprovement?"needsImprovement":"healthy",aA=e=>e?e<rt.needsAttention?"bg-red-100/60":e<rt.needsImprovement?"bg-yellow-100/60":"bg-green-100/60":"bg-gray-100",Loe=({features:e})=>{const t=Object.values(e).reduce((r,i)=>{const a=i.additional_metrics.health.overall||0;if(a!=null){const o=iA(a);r[o]++}return r},{needsAttention:0,needsImprovement:0,healthy:0}),n=Object.entries(t).map(([r,i],a)=>({name:r,value:i,fill:[wt(rt.needsAttention).hex,wt(rt.needsImprovement).hex,wt(rt.healthy).hex][a]})).filter(({value:r})=>r>0);return g.jsxs("div",{className:"flex flex-col gap-6",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[g.jsx("div",{className:"shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:g.jsx(Ey,{className:"size-5"})}),g.jsx("span",{className:"flex pl-2",children:"Health Score"})]}),g.jsxs(wo,{children:[g.jsx(si,{children:g.jsx(Sr,{className:"size-4 text-gray-400"})}),g.jsx(Zi,{children:"Feature health is determined by combining a weighted score for test coverage, code complexity, and encapsulation into a composite score from 0-100%. Each feature is then grouped into a categories ranging from low (needs attention) to good (healthy), which can be managed via `.feature_map/config.yml`."})]})]}),g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx("div",{className:"relative h-28 w-28",children:g.jsx(Do,{width:"100%",height:"100%",children:g.jsx(nu,{children:g.jsx(qt,{data:n,dataKey:"value",nameKey:"name",innerRadius:"70%",outerRadius:"100%",paddingAngle:2})})})}),g.jsxs("ul",{className:"flex flex-col flex-1 gap-y-1",children:[g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${wt(rt.needsAttention).class}`,children:g.jsx("span",{className:"font-semibold text-white text-xs",children:t.needsAttention})}),g.jsxs("p",{className:"text-xs text-gray-500",children:[g.jsx("span",{className:"lg:hidden xl:inline-block",children:"Features"})," need attention"]})]}),g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${wt(rt.needsImprovement).class}`,children:g.jsx("span",{className:"font-semibold text-white text-xs",children:t.needsImprovement})}),g.jsxs("p",{className:"text-xs text-gray-500",children:[g.jsx("span",{className:"lg:hidden xl:inline-block",children:"Features"})," need improvement"]})]}),g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${wt(rt.healthy).class}`,children:g.jsx("span",{className:"font-semibold text-white text-xs",children:t.healthy})}),g.jsx("p",{className:"text-xs text-gray-500",children:"Healthy Features"})]})]})]})]})},Doe=({features:e})=>{const t=Object.values(e).reduce((i,a)=>{const o=a.additional_metrics.test_coverage.score||0;if(o!=null){const l=jT(o);i[l]++}return i},{poor:0,fair:0,good:0}),{minimum_thresholds:n}=_r.project.documentation_site.test_coverage,r=Object.entries(t).map(([i,a],o)=>({name:i,value:a,fill:[bt(n.poor).hex,bt(n.fair).hex,bt(n.good).hex][o]})).filter(({value:i})=>i>0);return g.jsxs("div",{className:"flex flex-col gap-6",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[g.jsx("div",{className:"shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:g.jsx(_y,{className:"size-5"})}),g.jsx("span",{className:"flex pl-2",children:"Test Coverage"})]}),g.jsxs(wo,{children:[g.jsx(si,{children:g.jsx(Sr,{className:"size-4 text-gray-400"})}),g.jsx(Zi,{children:"Test coverage is determined by using CodeCov data (lines, hits, misses) to calculate a percentage score, from 0-100%, relative to the other features in the codebase. A qualitative coverage ranking is assigned to each feature, which can be managed which can be managed via `.feature_map/config.yml`."})]})]}),g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx("div",{className:"relative h-28 w-28",children:g.jsx(Do,{width:"100%",height:"100%",children:g.jsx(nu,{children:g.jsx(qt,{data:r,dataKey:"value",nameKey:"name",innerRadius:"70%",outerRadius:"100%",paddingAngle:2})})})}),g.jsxs("ul",{className:"flex flex-col flex-1 gap-y-1",children:[g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${bt(n.poor).class}`,children:g.jsx("span",{className:"font-semibold text-white text-xs",children:t.poor})}),g.jsx("p",{className:"text-xs text-gray-500",children:"Features with poor test coverage"})]}),g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${bt(n.fair).class}`,children:g.jsx("span",{className:"font-semibold text-white text-xs",children:t.fair})}),g.jsx("p",{className:"text-xs text-gray-500",children:"Features with acceptable test coverage"})]}),g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${bt(n.good).class}`,children:g.jsx("span",{className:"font-semibold text-white text-xs",children:t.good})}),g.jsx("p",{className:"text-xs text-gray-500",children:"Features with great test coverage"})]})]})]})]})};function Foe({features:e,searchTerm:t=""}){const[n,r]=w.useState({key:null,direction:"asc"}),i=j.useMemo(()=>Object.entries(e).filter(([s,u])=>{var f,d;const c=t.toLowerCase();return s.toLowerCase().includes(c)||((d=(f=u.assignments)==null?void 0:f.teams)==null?void 0:d.some(p=>p.toLowerCase().includes(c)))}).sort((s,u)=>{var b,v,y,x,E,_,S,O,$,T,C,A,N,I,D,M;const[c,f]=s,[d,p]=u;if(!n.key)return 0;let h,m;switch(n.key){case"team":h=((v=(b=f==null?void 0:f.assignments)==null?void 0:b.teams)==null?void 0:v[0])||"",m=((x=(y=p==null?void 0:p.assignments)==null?void 0:y.teams)==null?void 0:x[0])||"";break;case"size":h=((_=(E=f==null?void 0:f.additional_metrics)==null?void 0:E.feature_size)==null?void 0:_.percent_of_max)||0,m=((O=(S=p==null?void 0:p.additional_metrics)==null?void 0:S.feature_size)==null?void 0:O.percent_of_max)||0;break;case"health_score":h=((T=($=f==null?void 0:f.additional_metrics)==null?void 0:$.health)==null?void 0:T.overall)||0,m=((A=(C=p==null?void 0:p.additional_metrics)==null?void 0:C.health)==null?void 0:A.overall)||0;break;case"test_coverage":h=((I=(N=f==null?void 0:f.additional_metrics)==null?void 0:N.test_coverage)==null?void 0:I.score)??-1,m=((M=(D=p==null?void 0:p.additional_metrics)==null?void 0:D.test_coverage)==null?void 0:M.score)??-1;break;default:h=c,m=d}return h<m?n.direction==="asc"?-1:1:h>m?n.direction==="asc"?1:-1:0}),[e,n,t]),a=l=>{r(s=>({key:l,direction:s.key===l&&s.direction==="asc"?"desc":"asc"}))},o=({title:l,sortKey:s,className:u="",hideOn:c=""})=>g.jsx("th",{scope:"col",className:`px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider ${c} ${u}`,onClick:()=>a(s),children:g.jsxs("div",{className:"flex items-center gap-x-2 group cursor-pointer",children:[l,g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-4 text-gray-400 group-hover:text-gray-600",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 7.5 7.5 3m0 0L12 7.5M7.5 3v13.5m13.5 0L16.5 21m0 0L12 16.5m4.5 4.5V7.5"})})]})});return g.jsx("div",{className:"overflow-scroll shadow-xs border border-gray-200 rounded-lg relative",children:g.jsxs("table",{className:"min-w-full",children:[g.jsx("thead",{className:"bg-gray-50 border-b border-gray-200 sticky top-0",children:g.jsxs("tr",{children:[g.jsx(o,{title:"Feature",sortKey:"name"}),g.jsx(o,{title:"Team",sortKey:"team",hideOn:"hidden lg:table-cell"}),g.jsx(o,{title:"Size",sortKey:"size",hideOn:"hidden md:table-cell"}),g.jsx(o,{title:"Health Score",sortKey:"health_score",hideOn:"hidden lg:table-cell"}),g.jsx(o,{title:"Test Coverage",sortKey:"test_coverage",hideOn:"hidden md:table-cell"}),g.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider"})]})}),g.jsx("tbody",{className:"divide-y divide-gray-200 bg-white",children:i.map(([l,s])=>{var p,h,m,b,v,y;const u=((h=(p=s==null?void 0:s.additional_metrics)==null?void 0:p.feature_size)==null?void 0:h.percent_of_max)||0,c=xo(u),f=((b=(m=s==null?void 0:s.additional_metrics)==null?void 0:m.health)==null?void 0:b.overall)||0,d=((y=(v=s==null?void 0:s.additional_metrics)==null?void 0:v.test_coverage)==null?void 0:y.score)||0;return g.jsxs("tr",{children:[g.jsx("td",{className:"w-full max-w-0 py-4 px-4 text-sm font-medium text-gray-900 sm:w-auto sm:max-w-none",children:g.jsx("div",{className:"flex items-center gap-x-3",children:g.jsxs("div",{children:[g.jsx("p",{className:"font-medium text-gray-900 text-sm mb-1",children:l.length>2?l:s.name}),g.jsxs("div",{className:"flex items-center gap-1 lg:hidden",children:[g.jsx("p",{className:"text-sm lg:text-xs font-normal text-gray-500",children:"Team: "}),g.jsx("div",{className:"flex items-center gap-1",children:s.assignments.teams&&s.assignments.teams.map((x,E)=>g.jsxs(j.Fragment,{children:[g.jsx("span",{className:"text-sm lg:text-xs font-normal text-gray-500",children:x}),E<s.assignments.teams.length-1&&g.jsx("svg",{viewBox:"0 0 2 2",className:"size-1 fill-current text-gray-400",children:g.jsx("circle",{cx:"1",cy:"1",r:"1"})})]},x))})]})]})})}),g.jsx("td",{className:"hidden px-4 py-4 text-sm text-gray-500 lg:table-cell",children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Gi,{className:"size-4 text-gray-500"}),Lf(s.assignments.teams||[])]})}),g.jsx("td",{className:"hidden px-4 py-4 text-sm text-gray-500 md:table-cell",children:g.jsxs("div",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:"flex gap-1.5 items-center",children:[1,2,3,4,5].map(x=>g.jsx("div",{className:`h-5 w-1.5 rounded ${x<=Is(u)?"bg-blue-500":"bg-gray-200"}`},x))}),g.jsx("span",{className:"text-xs text-gray-500 uppercase",children:c})]})}),g.jsx("td",{className:"hidden px-4 py-4 text-sm text-gray-500 lg:table-cell",children:g.jsxs("div",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`w-4 h-4 rounded-full flex items-center justify-center ${aA(f)}`,children:g.jsx("div",{className:`w-2 h-2 rounded-full ${wt(f).class}`})}),g.jsxs("span",{className:"text-gray-600",children:[f.toFixed(0),"%"]})]})}),g.jsx("td",{className:"hidden px-4 py-4 text-sm md:table-cell",children:g.jsxs("div",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:"grow h-2 rounded-full bg-gray-100 overflow-hidden",children:g.jsx("div",{className:`h-full rounded-full ${bt(d).class}`,style:{width:`${d}%`}})}),g.jsx("span",{className:"text-sm text-gray-500",children:d?`${d.toFixed(0)}%`:"No Data"})]})}),g.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:g.jsx("div",{className:"flex items-center gap-x-3",children:g.jsx("div",{children:g.jsx(wr,{to:`/${encodeURIComponent(l)}`,className:"flex items-center justify-center shrink-0 font-medium text-gray-900 text-sm mb-1 hover:bg-gray-100 rounded-full h-6 w-6",children:g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5",children:g.jsx("path",{fillRule:"evenodd",d:"M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})})})})})})]},l)})})]})})}const oA=typeof document<"u"?j.useLayoutEffect:()=>{};function Boe(e){const t=w.useRef(null);return oA(()=>{t.current=e},[e]),w.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const lu=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Ii=e=>e&&"window"in e&&e.window===e?e:lu(e).defaultView||window;function zoe(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Uoe(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function lA(e){let t=null;return()=>(t==null&&(t=e()),t)}const Hoe=lA(function(){return Uoe(/^Mac/i)}),Woe=lA(function(){return zoe(/Android/i)});function Voe(e){return e.mozInputSource===0&&e.isTrusted?!0:Woe()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class Koe{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function sA(e){let t=w.useRef({isFocused:!1,observer:null});oA(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Boe(r=>{e==null||e(r)});return w.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,a=o=>{t.current.isFocused=!1,i.disabled&&n(new Koe("blur",o)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var o;(o=t.current.observer)===null||o===void 0||o.disconnect();let l=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Goe(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=w.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),i&&i(!1),!0},[r,i]),o=sA(a),l=w.useCallback(s=>{const u=lu(s.target);s.target===s.currentTarget&&u.activeElement===s.target&&(n&&n(s),i&&i(!0),o(s))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?l:void 0,onBlur:!t&&(r||i)?a:void 0}}}let su=null,pg=new Set,Il=new Map,Ji=!1,hg=!1;const qoe={Tab:!0,Escape:!0};function W0(e,t){for(let n of pg)n(e,t)}function Yoe(e){return!(e.metaKey||!Hoe()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Wf(e){Ji=!0,Yoe(e)&&(su="keyboard",W0("keyboard",e))}function nn(e){su="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Ji=!0,W0("pointer",e))}function uA(e){Voe(e)&&(Ji=!0,su="virtual")}function cA(e){e.target===window||e.target===document||(!Ji&&!hg&&(su="virtual",W0("virtual",e)),Ji=!1,hg=!1)}function fA(){Ji=!1,hg=!0}function mg(e){if(typeof window>"u"||Il.get(Ii(e)))return;const t=Ii(e),n=lu(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Ji=!0,r.apply(this,arguments)},n.addEventListener("keydown",Wf,!0),n.addEventListener("keyup",Wf,!0),n.addEventListener("click",uA,!0),t.addEventListener("focus",cA,!0),t.addEventListener("blur",fA,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",nn,!0),n.addEventListener("pointermove",nn,!0),n.addEventListener("pointerup",nn,!0)):(n.addEventListener("mousedown",nn,!0),n.addEventListener("mousemove",nn,!0),n.addEventListener("mouseup",nn,!0)),t.addEventListener("beforeunload",()=>{dA(e)},{once:!0}),Il.set(t,{focus:r})}const dA=(e,t)=>{const n=Ii(e),r=lu(e);t&&r.removeEventListener("DOMContentLoaded",t),Il.has(n)&&(n.HTMLElement.prototype.focus=Il.get(n).focus,r.removeEventListener("keydown",Wf,!0),r.removeEventListener("keyup",Wf,!0),r.removeEventListener("click",uA,!0),n.removeEventListener("focus",cA,!0),n.removeEventListener("blur",fA,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",nn,!0),r.removeEventListener("pointermove",nn,!0),r.removeEventListener("pointerup",nn,!0)):(r.removeEventListener("mousedown",nn,!0),r.removeEventListener("mousemove",nn,!0),r.removeEventListener("mouseup",nn,!0)),Il.delete(n))};function Xoe(e){const t=lu(e);let n;return t.readyState!=="loading"?mg(e):(n=()=>{mg(e)},t.addEventListener("DOMContentLoaded",n)),()=>dA(e,n)}typeof document<"u"&&Xoe();function pA(){return su!=="pointer"}const Qoe=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Zoe(e,t,n){var r;const i=typeof window<"u"?Ii(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?Ii(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,o=typeof window<"u"?Ii(n==null?void 0:n.target).HTMLElement:HTMLElement,l=typeof window<"u"?Ii(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!Qoe.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof a||(n==null?void 0:n.target)instanceof o&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof l&&!qoe[n.key])}function Joe(e,t,n){mg(),w.useEffect(()=>{let r=(i,a)=>{Zoe(!!(n!=null&&n.isTextInput),i,a)&&e(pA())};return pg.add(r),()=>{pg.delete(r)}},t)}function ele(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=w.useRef({isFocusWithin:!1}),o=w.useCallback(u=>{a.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,a]),l=sA(o),s=w.useCallback(u=>{!a.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),a.current.isFocusWithin=!0,l(u))},[r,i,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:s,onBlur:o}}}let Vf=!1,Mh=0;function vg(){Vf=!0,setTimeout(()=>{Vf=!1},50)}function qS(e){e.pointerType==="touch"&&vg()}function tle(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",qS):document.addEventListener("touchend",vg),Mh++,()=>{Mh--,!(Mh>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",qS):document.removeEventListener("touchend",vg))}}function V0(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,o]=w.useState(!1),l=w.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;w.useEffect(tle,[]);let{hoverProps:s,triggerHoverEnd:u}=w.useMemo(()=>{let c=(p,h)=>{if(l.pointerType=h,i||h==="touch"||l.isHovered||!p.currentTarget.contains(p.target))return;l.isHovered=!0;let m=p.currentTarget;l.target=m,t&&t({type:"hoverstart",target:m,pointerType:h}),n&&n(!0),o(!0)},f=(p,h)=>{if(l.pointerType="",l.target=null,h==="touch"||!l.isHovered)return;l.isHovered=!1;let m=p.currentTarget;r&&r({type:"hoverend",target:m,pointerType:h}),n&&n(!1),o(!1)},d={};return typeof PointerEvent<"u"?(d.onPointerEnter=p=>{Vf&&p.pointerType==="mouse"||c(p,p.pointerType)},d.onPointerLeave=p=>{!i&&p.currentTarget.contains(p.target)&&f(p,p.pointerType)}):(d.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},d.onMouseEnter=p=>{!l.ignoreEmulatedMouseEvents&&!Vf&&c(p,"mouse"),l.ignoreEmulatedMouseEvents=!1},d.onMouseLeave=p=>{!i&&p.currentTarget.contains(p.target)&&f(p,"mouse")}),{hoverProps:d,triggerHoverEnd:f}},[t,n,r,i,l]);return w.useEffect(()=>{i&&u({currentTarget:l.target},l.pointerType)},[i]),{hoverProps:s,isHovered:a}}function K0(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=w.useRef({isFocused:!1,isFocusVisible:t||pA()}),[a,o]=w.useState(!1),[l,s]=w.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=w.useCallback(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),c=w.useCallback(p=>{i.current.isFocused=p,o(p),u()},[u]);Joe(p=>{i.current.isFocusVisible=p,u()},[],{isTextInput:n});let{focusProps:f}=Goe({isDisabled:r,onFocusChange:c}),{focusWithinProps:d}=ele({isDisabled:!r,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:l,focusProps:r?d:f}}var nle=Object.defineProperty,rle=(e,t,n)=>t in e?nle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ih=(e,t,n)=>(rle(e,typeof t!="symbol"?t+"":t,n),n);let ile=class{constructor(){Ih(this,"current",this.detect()),Ih(this,"handoffState","pending"),Ih(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},zi=new ile;function vi(e){return zi.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function fp(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Zn(){let e=[],t={addEventListener(n,r,i,a){return n.addEventListener(r,i,a),t.add(()=>n.removeEventListener(r,i,a))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return fp(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let a=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:a})})},group(n){let r=Zn();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function sa(){let[e]=w.useState(Zn);return w.useEffect(()=>()=>e.dispose(),[e]),e}let he=(e,t)=>{zi.isServer?w.useEffect(e,t):w.useLayoutEffect(e,t)};function Mr(e){let t=w.useRef(e);return he(()=>{t.current=e},[e]),t}let Q=function(e){let t=Mr(e);return j.useCallback((...n)=>t.current(...n),[t])};function ale(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function ole(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function lle({disabled:e=!1}={}){let t=w.useRef(null),[n,r]=w.useState(!1),i=sa(),a=Q(()=>{t.current=null,r(!1),i.dispose()}),o=Q(l=>{if(i.dispose(),t.current===null){t.current=l.currentTarget,r(!0);{let s=vi(l.currentTarget);i.addEventListener(s,"pointerup",a,!1),i.addEventListener(s,"pointermove",u=>{if(t.current){let c=ale(u);r(ole(c,t.current.getBoundingClientRect()))}},!1),i.addEventListener(s,"pointercancel",a,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:o,onPointerUp:a,onClick:a}}}let hA=w.createContext(void 0);function uu(){return w.useContext(hA)}function sle({value:e,children:t}){return j.createElement(hA.Provider,{value:e},t)}function gg(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function jn(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,jn),r}var _o=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(_o||{}),Gr=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Gr||{});function Re(){let e=cle();return w.useCallback(t=>ule({mergeRefs:e,...t}),[e])}function ule({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:a=!0,name:o,mergeRefs:l}){l=l??fle;let s=mA(t,e);if(a)return Xu(s,n,r,o,l);let u=i??0;if(u&2){let{static:c=!1,...f}=s;if(c)return Xu(f,n,r,o,l)}if(u&1){let{unmount:c=!0,...f}=s;return jn(c?0:1,{0(){return null},1(){return Xu({...f,hidden:!0,style:{display:"none"}},n,r,o,l)}})}return Xu(s,n,r,o,l)}function Xu(e,t={},n,r,i){let{as:a=n,children:o,refName:l="ref",...s}=Rh(e,["unmount","static"]),u=e.ref!==void 0?{[l]:e.ref}:{},c=typeof o=="function"?o(t):o;"className"in s&&s.className&&typeof s.className=="function"&&(s.className=s.className(t)),s["aria-labelledby"]&&s["aria-labelledby"]===s.id&&(s["aria-labelledby"]=void 0);let f={};if(t){let d=!1,p=[];for(let[h,m]of Object.entries(t))typeof m=="boolean"&&(d=!0),m===!0&&p.push(h.replace(/([A-Z])/g,b=>`-${b.toLowerCase()}`));if(d){f["data-headlessui-state"]=p.join(" ");for(let h of p)f[`data-${h}`]=""}}if(a===w.Fragment&&(Object.keys(Br(s)).length>0||Object.keys(Br(f)).length>0))if(!w.isValidElement(c)||Array.isArray(c)&&c.length>1){if(Object.keys(Br(s)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Br(s)).concat(Object.keys(Br(f))).map(d=>` - ${d}`).join(`
268
+ */var goe=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],pg=goe.join(","),zT=typeof Element>"u",Ls=zT?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,zf=!zT&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},Uf=function e(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),o=i===""||i==="true",a=o||n&&t&&e(t.parentNode);return a},yoe=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},xoe=function(t,n,r){if(Uf(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(pg));return n&&Ls.call(t,pg)&&i.unshift(t),i=i.filter(r),i},boe=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if(!Uf(a,!1))if(a.tagName==="SLOT"){var l=a.assignedElements(),s=l.length?l:a.children,u=e(s,!0,r);r.flatten?i.push.apply(i,u):i.push({scopeParent:a,candidates:u})}else{var c=Ls.call(a,pg);c&&r.filter(a)&&(n||!t.includes(a))&&i.push(a);var f=a.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(a),d=!Uf(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(f&&d){var p=e(f===!0?a.children:f.children,!0,r);r.flatten?i.push.apply(i,p):i.push({scopeParent:a,candidates:p})}else o.unshift.apply(o,a.children)}}return i},UT=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},HT=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||yoe(t))&&!UT(t)?0:t.tabIndex},woe=function(t,n){var r=HT(t);return r<0&&n&&!UT(t)?0:r},_oe=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},WT=function(t){return t.tagName==="INPUT"},Soe=function(t){return WT(t)&&t.type==="hidden"},Eoe=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},Ooe=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},$oe=function(t){if(!t.name)return!0;var n=t.form||zf(t),r=function(l){return n.querySelectorAll('input[type="radio"][name="'+l+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var o=Ooe(i,t.form);return!o||o===t},Poe=function(t){return WT(t)&&t.type==="radio"},joe=function(t){return Poe(t)&&!$oe(t)},Toe=function(t){var n,r=t&&zf(t),i=(n=r)===null||n===void 0?void 0:n.host,o=!1;if(r&&r!==t){var a,l,s;for(o=!!((a=i)!==null&&a!==void 0&&(l=a.ownerDocument)!==null&&l!==void 0&&l.contains(i)||t!=null&&(s=t.ownerDocument)!==null&&s!==void 0&&s.contains(t));!o&&i;){var u,c,f;r=zf(i),i=(u=r)===null||u===void 0?void 0:u.host,o=!!((c=i)!==null&&c!==void 0&&(f=c.ownerDocument)!==null&&f!==void 0&&f.contains(i))}}return o},CS=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},Aoe=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=Ls.call(t,"details>summary:first-of-type"),a=o?t.parentElement:t;if(Ls.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof i=="function"){for(var l=t;t;){var s=t.parentElement,u=zf(t);if(s&&!s.shadowRoot&&i(s)===!0)return CS(t);t.assignedSlot?t=t.assignedSlot:!s&&u!==t.ownerDocument?t=u.host:t=s}t=l}if(Toe(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return CS(t);return!1},Coe=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var i=n.children.item(r);if(i.tagName==="LEGEND")return Ls.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},koe=function(t,n){return!(n.disabled||Uf(n)||Soe(n)||Aoe(n,t)||Eoe(n)||Coe(n))},kS=function(t,n){return!(joe(n)||HT(n)<0||!koe(t,n))},Noe=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Moe=function e(t){var n=[],r=[];return t.forEach(function(i,o){var a=!!i.scopeParent,l=a?i.scopeParent:i,s=woe(l,a),u=a?e(i.candidates):l;s===0?a?n.push.apply(n,u):n.push(l):r.push({documentOrder:o,tabIndex:s,item:i,isScope:a,content:u})}),r.sort(_oe).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(n)},VT=function(t,n){n=n||{};var r;return n.getShadowRoot?r=boe([t],n.includeContainer,{filter:kS.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Noe}):r=xoe(t,n.includeContainer,kS.bind(null,n)),Moe(r)};function NS(e,t,n){let{reference:r,floating:i}=e;const o=Yi(t),a=FT(t),l=DT(a),s=Yn(t),u=o==="y",c=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[l]/2-i[l]/2;let p;switch(s){case"top":p={x:c,y:r.y-i.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-i.width,y:f};break;default:p={x:r.x,y:r.y}}switch(Kn(t)){case"start":p[a]-=d*(n&&u?-1:1);break;case"end":p[a]+=d*(n&&u?-1:1);break}return p}const Roe=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,l=o.filter(Boolean),s=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=NS(u,r,s),d=r,p={},h=0;for(let m=0;m<l.length;m++){const{name:w,fn:g}=l[m],{x:y,y:x,data:E,reset:_}=await g({x:c,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=y??c,f=x??f,p={...p,[w]:{...p[w],...E}},_&&h<=50&&(h++,typeof _=="object"&&(_.placement&&(d=_.placement),_.rects&&(u=_.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):_.rects),{x:c,y:f}=NS(u,d,s)),m=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:p}};async function ou(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:l,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=lo(t,e),h=voe(p),w=l[d?f==="floating"?"reference":"floating":f],g=Bf(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(w)))==null||n?w:w.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:s})),y=f==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),E=await(o.isElement==null?void 0:o.isElement(x))?await(o.getScale==null?void 0:o.getScale(x))||{x:1,y:1}:{x:1,y:1},_=Bf(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:y,offsetParent:x,strategy:s}):y);return{top:(g.top-_.top+h.top)/E.y,bottom:(_.bottom-g.bottom+h.bottom)/E.y,left:(g.left-_.left+h.left)/E.x,right:(_.right-g.right+h.right)/E.x}}function Ioe(e,t,n){return(e?[...n.filter(i=>Kn(i)===e),...n.filter(i=>Kn(i)!==e)]:n.filter(i=>Yn(i)===i)).filter(i=>e?Kn(i)===e||(t?Df(i)!==i:!1):!0)}const Loe=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,i;const{rects:o,middlewareData:a,placement:l,platform:s,elements:u}=t,{crossAxis:c=!1,alignment:f,allowedPlacements:d=TS,autoAlignment:p=!0,...h}=lo(e,t),m=f!==void 0||d===TS?Ioe(f||null,p,d):d,w=await ou(t,h),g=((n=a.autoPlacement)==null?void 0:n.index)||0,y=m[g];if(y==null)return{};const x=BT(y,o,await(s.isRTL==null?void 0:s.isRTL(u.floating)));if(l!==y)return{reset:{placement:m[0]}};const E=[w[Yn(y)],w[x[0]],w[x[1]]],_=[...((r=a.autoPlacement)==null?void 0:r.overflows)||[],{placement:y,overflows:E}],S=m[g+1];if(S)return{data:{index:g+1,overflows:_},reset:{placement:S}};const O=_.map(C=>{const A=Kn(C.placement);return[C.placement,A&&c?C.overflows.slice(0,2).reduce((N,R)=>N+R,0):C.overflows[0],C.overflows]}).sort((C,A)=>C[1]-A[1]),T=((i=O.filter(C=>C[2].slice(0,Kn(C[0])?2:3).every(A=>A<=0))[0])==null?void 0:i[0])||O[0][0];return T!==l?{data:{index:g+1,overflows:_},reset:{placement:T}}:{}}}},Doe=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:l,platform:s,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...w}=lo(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const g=Yn(i),y=Yi(l),x=Yn(l)===l,E=await(s.isRTL==null?void 0:s.isRTL(u.floating)),_=d||(x||!m?[Ff(l)]:doe(l)),S=h!=="none";!d&&S&&_.push(...hoe(l,m,h,E));const O=[l,..._],$=await ou(t,w),T=[];let C=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&T.push($[g]),f){const D=BT(i,a,E);T.push($[D[0]],$[D[1]])}if(C=[...C,{placement:i,overflows:T}],!T.every(D=>D<=0)){var A,N;const D=(((A=o.flip)==null?void 0:A.index)||0)+1,M=O[D];if(M)return{data:{index:D,overflows:C},reset:{placement:M}};let F=(N=C.filter(I=>I.overflows[0]<=0).sort((I,P)=>I.overflows[1]-P.overflows[1])[0])==null?void 0:N.placement;if(!F)switch(p){case"bestFit":{var R;const I=(R=C.filter(P=>{if(S){const k=Yi(P.placement);return k===y||k==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(k=>k>0).reduce((k,B)=>k+B,0)]).sort((P,k)=>P[1]-k[1])[0])==null?void 0:R[0];I&&(F=I);break}case"initialPlacement":F=l;break}if(i!==F)return{reset:{placement:F}}}return{}}}};async function Foe(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Yn(n),l=Kn(n),s=Yi(n)==="y",u=["left","top"].includes(a)?-1:1,c=o&&s?-1:1,f=lo(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof h=="number"&&(p=l==="end"?h*-1:h),s?{x:p*c,y:d*u}:{x:d*u,y:p*c}}const Boe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:l}=t,s=await Foe(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+s.x,y:o+s.y,data:{...s,placement:a}}}}},zoe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:w=>{let{x:g,y}=w;return{x:g,y}}},...s}=lo(e,t),u={x:n,y:r},c=await ou(t,s),f=Yi(Yn(i)),d=LT(f);let p=u[d],h=u[f];if(o){const w=d==="y"?"top":"left",g=d==="y"?"bottom":"right",y=p+c[w],x=p-c[g];p=AS(y,p,x)}if(a){const w=f==="y"?"top":"left",g=f==="y"?"bottom":"right",y=h+c[w],x=h-c[g];h=AS(y,h,x)}const m=l.fn({...t,[d]:p,[f]:h});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[d]:o,[f]:a}}}}}},Uoe=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:l}=t,{apply:s=()=>{},...u}=lo(e,t),c=await ou(t,u),f=Yn(i),d=Kn(i),p=Yi(i)==="y",{width:h,height:m}=o.floating;let w,g;f==="top"||f==="bottom"?(w=f,g=d===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(g=f,w=d==="end"?"top":"bottom");const y=m-c.top-c.bottom,x=h-c.left-c.right,E=Xi(m-c[w],y),_=Xi(h-c[g],x),S=!t.middlewareData.shift;let O=E,$=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&($=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(O=y),S&&!d){const C=vt(c.left,0),A=vt(c.right,0),N=vt(c.top,0),R=vt(c.bottom,0);p?$=h-2*(C!==0||A!==0?C+A:vt(c.left,c.right)):O=m-2*(N!==0||R!==0?N+R:vt(c.top,c.bottom))}await s({...t,availableWidth:$,availableHeight:O});const T=await a.getDimensions(l.floating);return h!==T.width||m!==T.height?{reset:{rects:!0}}:{}}}};function KT(e){const t=hn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Vt(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=Is(n)!==o||Is(r)!==a;return l&&(n=o,r=a),{width:n,height:r,$:l}}function D0(e){return de(e)?e:e.contextElement}function Uo(e){const t=D0(e);if(!Vt(t))return Vn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=KT(t);let a=(o?Is(n.width):n.width)/r,l=(o?Is(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const Hoe=Vn(0);function GT(e){const t=Lt(e);return!up()||!t.visualViewport?Hoe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Woe(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Lt(e)?!1:t}function Qi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=D0(e);let a=Vn(1);t&&(r?de(r)&&(a=Uo(r)):a=Uo(e));const l=Woe(o,n,r)?GT(o):Vn(0);let s=(i.left+l.x)/a.x,u=(i.top+l.y)/a.y,c=i.width/a.x,f=i.height/a.y;if(o){const d=Lt(o),p=r&&de(r)?Lt(r):r;let h=d,m=cg(h);for(;m&&r&&p!==h;){const w=Uo(m),g=m.getBoundingClientRect(),y=hn(m),x=g.left+(m.clientLeft+parseFloat(y.paddingLeft))*w.x,E=g.top+(m.clientTop+parseFloat(y.paddingTop))*w.y;s*=w.x,u*=w.y,c*=w.x,f*=w.y,s+=x,u+=E,h=Lt(m),m=cg(h)}}return Bf({width:c,height:f,x:s,y:u})}function F0(e,t){const n=cp(e).scrollLeft;return t?t.left+n:Qi(Qn(e)).left+n}function qT(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:F0(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function Voe(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=Qn(r),l=t?sp(t.floating):!1;if(r===a||l&&o)return n;let s={scrollLeft:0,scrollTop:0},u=Vn(1);const c=Vn(0),f=Vt(r);if((f||!f&&!o)&&((Ha(r)!=="body"||iu(a))&&(s=cp(r)),Vt(r))){const p=Qi(r);u=Uo(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}const d=a&&!f&&!o?qT(a,s,!0):Vn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-s.scrollTop*u.y+c.y+d.y}}function Koe(e){return Array.from(e.getClientRects())}function Goe(e){const t=Qn(e),n=cp(e),r=e.ownerDocument.body,i=vt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=vt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+F0(e);const l=-n.scrollTop;return hn(r).direction==="rtl"&&(a+=vt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:l}}function qoe(e,t){const n=Lt(e),r=Qn(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,l=0,s=0;if(i){o=i.width,a=i.height;const u=up();(!u||u&&t==="fixed")&&(l=i.offsetLeft,s=i.offsetTop)}return{width:o,height:a,x:l,y:s}}function Xoe(e,t){const n=Qi(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Vt(e)?Uo(e):Vn(1),a=e.clientWidth*o.x,l=e.clientHeight*o.y,s=i*o.x,u=r*o.y;return{width:a,height:l,x:s,y:u}}function MS(e,t,n){let r;if(t==="viewport")r=qoe(e,n);else if(t==="document")r=Goe(Qn(e));else if(de(t))r=Xoe(t,n);else{const i=GT(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Bf(r)}function XT(e,t){const n=jr(e);return n===t||!de(n)||mr(n)?!1:hn(n).position==="fixed"||XT(n,t)}function Yoe(e,t){const n=t.get(e);if(n)return n;let r=ii(e,[],!1).filter(l=>de(l)&&Ha(l)!=="body"),i=null;const o=hn(e).position==="fixed";let a=o?jr(e):e;for(;de(a)&&!mr(a);){const l=hn(a),s=L0(a);!s&&l.position==="fixed"&&(i=null),(o?!s&&!i:!s&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||iu(a)&&!s&&XT(e,a))?r=r.filter(c=>c!==a):i=l,a=jr(a)}return t.set(e,r),r}function Qoe(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?sp(t)?[]:Yoe(t,this._c):[].concat(n),r],l=a[0],s=a.reduce((u,c)=>{const f=MS(t,c,i);return u.top=vt(f.top,u.top),u.right=Xi(f.right,u.right),u.bottom=Xi(f.bottom,u.bottom),u.left=vt(f.left,u.left),u},MS(t,l,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function Zoe(e){const{width:t,height:n}=KT(e);return{width:t,height:n}}function Joe(e,t,n){const r=Vt(t),i=Qn(t),o=n==="fixed",a=Qi(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const s=Vn(0);if(r||!r&&!o)if((Ha(t)!=="body"||iu(i))&&(l=cp(t)),r){const d=Qi(t,!0,o,t);s.x=d.x+t.clientLeft,s.y=d.y+t.clientTop}else i&&(s.x=F0(i));const u=i&&!r&&!o?qT(i,l):Vn(0),c=a.left+l.scrollLeft-s.x-u.x,f=a.top+l.scrollTop-s.y-u.y;return{x:c,y:f,width:a.width,height:a.height}}function Ph(e){return hn(e).position==="static"}function RS(e,t){if(!Vt(e)||hn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Qn(e)===n&&(n=n.ownerDocument.body),n}function YT(e,t){const n=Lt(e);if(sp(e))return n;if(!Vt(e)){let i=jr(e);for(;i&&!mr(i);){if(de(i)&&!Ph(i))return i;i=jr(i)}return n}let r=RS(e,t);for(;r&&eoe(r)&&Ph(r);)r=RS(r,t);return r&&mr(r)&&Ph(r)&&!L0(r)?n:r||toe(e)||n}const eae=async function(e){const t=this.getOffsetParent||YT,n=this.getDimensions,r=await n(e.floating);return{reference:Joe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function tae(e){return hn(e).direction==="rtl"}const nae={convertOffsetParentRelativeRectToViewportRelativeRect:Voe,getDocumentElement:Qn,getClippingRect:Qoe,getOffsetParent:YT,getElementRects:eae,getClientRects:Koe,getDimensions:Zoe,getScale:Uo,isElement:de,isRTL:tae};function QT(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function rae(e,t){let n=null,r;const i=Qn(e);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,s){l===void 0&&(l=!1),s===void 0&&(s=1),o();const u=e.getBoundingClientRect(),{left:c,top:f,width:d,height:p}=u;if(l||t(),!d||!p)return;const h=Xu(f),m=Xu(i.clientWidth-(c+d)),w=Xu(i.clientHeight-(f+p)),g=Xu(c),x={rootMargin:-h+"px "+-m+"px "+-w+"px "+-g+"px",threshold:vt(0,Xi(1,s))||1};let E=!0;function _(S){const O=S[0].intersectionRatio;if(O!==s){if(!E)return a();O?a(!1,O):r=setTimeout(()=>{a(!1,1e-7)},1e3)}O===1&&!QT(u,e.getBoundingClientRect())&&a(),E=!1}try{n=new IntersectionObserver(_,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(_,x)}n.observe(e)}return a(!0),o}function ZT(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:s=!1}=r,u=D0(e),c=i||o?[...u?ii(u):[],...ii(t)]:[];c.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),o&&g.addEventListener("resize",n)});const f=u&&l?rae(u,n):null;let d=-1,p=null;a&&(p=new ResizeObserver(g=>{let[y]=g;y&&y.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),u&&!s&&p.observe(u),p.observe(t));let h,m=s?Qi(e):null;s&&w();function w(){const g=Qi(e);m&&!QT(m,g)&&n(),m=g,h=requestAnimationFrame(w)}return n(),()=>{var g;c.forEach(y=>{i&&y.removeEventListener("scroll",n),o&&y.removeEventListener("resize",n)}),f==null||f(),(g=p)==null||g.disconnect(),p=null,s&&cancelAnimationFrame(h)}}const jh=ou,iae=Boe,oae=Loe,aae=zoe,lae=Doe,sae=Uoe,uae=(e,t,n)=>{const r=new Map,i={platform:nae,...n},o={...i.platform,_c:r};return Roe(e,t,{...i,platform:o})};var hc=typeof document<"u"?b.useLayoutEffect:b.useEffect;function Hf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Hf(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Hf(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function JT(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function IS(e,t){const n=JT(e);return Math.round(t*n)/n}function Th(e){const t=b.useRef(e);return hc(()=>{t.current=e}),t}function eA(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:l=!0,whileElementsMounted:s,open:u}=e,[c,f]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=b.useState(r);Hf(d,r)||p(r);const[h,m]=b.useState(null),[w,g]=b.useState(null),y=b.useCallback(P=>{P!==S.current&&(S.current=P,m(P))},[]),x=b.useCallback(P=>{P!==O.current&&(O.current=P,g(P))},[]),E=o||h,_=a||w,S=b.useRef(null),O=b.useRef(null),$=b.useRef(c),T=s!=null,C=Th(s),A=Th(i),N=Th(u),R=b.useCallback(()=>{if(!S.current||!O.current)return;const P={placement:t,strategy:n,middleware:d};A.current&&(P.platform=A.current),uae(S.current,O.current,P).then(k=>{const B={...k,isPositioned:N.current!==!1};D.current&&!Hf($.current,B)&&($.current=B,Ht.flushSync(()=>{f(B)}))})},[d,t,n,A,N]);hc(()=>{u===!1&&$.current.isPositioned&&($.current.isPositioned=!1,f(P=>({...P,isPositioned:!1})))},[u]);const D=b.useRef(!1);hc(()=>(D.current=!0,()=>{D.current=!1}),[]),hc(()=>{if(E&&(S.current=E),_&&(O.current=_),E&&_){if(C.current)return C.current(E,_,R);R()}},[E,_,R,C,T]);const M=b.useMemo(()=>({reference:S,floating:O,setReference:y,setFloating:x}),[y,x]),F=b.useMemo(()=>({reference:E,floating:_}),[E,_]),I=b.useMemo(()=>{const P={position:n,left:0,top:0};if(!F.floating)return P;const k=IS(F.floating,c.x),B=IS(F.floating,c.y);return l?{...P,transform:"translate("+k+"px, "+B+"px)",...JT(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:k,top:B}},[n,l,F.floating,c.x,c.y]);return b.useMemo(()=>({...c,update:R,refs:M,elements:F,floatingStyles:I}),[c,R,M,F,I])}const B0=(e,t)=>({...iae(e),options:[e,t]}),tA=(e,t)=>({...aae(e),options:[e,t]}),cae=(e,t)=>({...lae(e),options:[e,t]}),fae=(e,t)=>({...sae(e),options:[e,t]}),dae=(e,t)=>({...oae(e),options:[e,t]}),nA={...mc},pae=nA.useInsertionEffect,hae=pae||(e=>e());function ir(e){const t=b.useRef(()=>{});return hae(()=>{t.current=e}),b.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var Gn=typeof document<"u"?b.useLayoutEffect:b.useEffect;let LS=!1,mae=0;const DS=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+mae++;function vae(){const[e,t]=b.useState(()=>LS?DS():void 0);return Gn(()=>{e==null&&t(DS())},[]),b.useEffect(()=>{LS=!0},[]),e}const gae=nA.useId,z0=gae||vae;function yae(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const xae=b.createContext(null),bae=b.createContext(null),U0=()=>{var e;return((e=b.useContext(xae))==null?void 0:e.id)||null},H0=()=>b.useContext(bae);function au(e){return"data-floating-ui-"+e}function Ah(e){const t=b.useRef(e);return Gn(()=>{t.current=e}),t}const FS=au("safe-polygon");function Ch(e,t,n){return n&&!dg(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function wae(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:o,elements:a}=e,{enabled:l=!0,delay:s=0,handleClose:u=null,mouseOnly:c=!1,restMs:f=0,move:d=!0}=t,p=H0(),h=U0(),m=Ah(u),w=Ah(s),g=Ah(n),y=b.useRef(),x=b.useRef(-1),E=b.useRef(),_=b.useRef(-1),S=b.useRef(!0),O=b.useRef(!1),$=b.useRef(()=>{}),T=b.useRef(!1),C=b.useCallback(()=>{var I;const P=(I=i.current.openEvent)==null?void 0:I.type;return(P==null?void 0:P.includes("mouse"))&&P!=="mousedown"},[i]);b.useEffect(()=>{if(!l)return;function I(P){let{open:k}=P;k||(clearTimeout(x.current),clearTimeout(_.current),S.current=!0,T.current=!1)}return o.on("openchange",I),()=>{o.off("openchange",I)}},[l,o]),b.useEffect(()=>{if(!l||!m.current||!n)return;function I(k){C()&&r(!1,k,"hover")}const P=Kr(a.floating).documentElement;return P.addEventListener("mouseleave",I),()=>{P.removeEventListener("mouseleave",I)}},[a.floating,n,r,l,m,C]);const A=b.useCallback(function(I,P,k){P===void 0&&(P=!0),k===void 0&&(k="hover");const B=Ch(w.current,"close",y.current);B&&!E.current?(clearTimeout(x.current),x.current=window.setTimeout(()=>r(!1,I,k),B)):P&&(clearTimeout(x.current),r(!1,I,k))},[w,r]),N=ir(()=>{$.current(),E.current=void 0}),R=ir(()=>{if(O.current){const I=Kr(a.floating).body;I.style.pointerEvents="",I.removeAttribute(FS),O.current=!1}}),D=ir(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);b.useEffect(()=>{if(!l)return;function I(L){if(clearTimeout(x.current),S.current=!1,c&&!dg(y.current)||f>0&&!Ch(w.current,"open"))return;const U=Ch(w.current,"open",y.current);U?x.current=window.setTimeout(()=>{g.current||r(!0,L,"hover")},U):n||r(!0,L,"hover")}function P(L){if(D())return;$.current();const U=Kr(a.floating);if(clearTimeout(_.current),T.current=!1,m.current&&i.current.floatingContext){n||clearTimeout(x.current),E.current=m.current({...i.current.floatingContext,tree:p,x:L.clientX,y:L.clientY,onClose(){R(),N(),D()||A(L,!0,"safe-polygon")}});const re=E.current;U.addEventListener("mousemove",re),$.current=()=>{U.removeEventListener("mousemove",re)};return}(y.current==="touch"?!ba(a.floating,L.relatedTarget):!0)&&A(L)}function k(L){D()||i.current.floatingContext&&(m.current==null||m.current({...i.current.floatingContext,tree:p,x:L.clientX,y:L.clientY,onClose(){R(),N(),D()||A(L)}})(L))}if(de(a.domReference)){var B;const L=a.domReference;return n&&L.addEventListener("mouseleave",k),(B=a.floating)==null||B.addEventListener("mouseleave",k),d&&L.addEventListener("mousemove",I,{once:!0}),L.addEventListener("mouseenter",I),L.addEventListener("mouseleave",P),()=>{var U;n&&L.removeEventListener("mouseleave",k),(U=a.floating)==null||U.removeEventListener("mouseleave",k),d&&L.removeEventListener("mousemove",I),L.removeEventListener("mouseenter",I),L.removeEventListener("mouseleave",P)}}},[a,l,e,c,f,d,A,N,R,r,n,g,p,w,m,i,D]),Gn(()=>{var I;if(l&&n&&(I=m.current)!=null&&I.__options.blockPointerEvents&&C()){O.current=!0;const k=a.floating;if(de(a.domReference)&&k){var P;const B=Kr(a.floating).body;B.setAttribute(FS,"");const L=a.domReference,U=p==null||(P=p.nodesRef.current.find(V=>V.id===h))==null||(P=P.context)==null?void 0:P.elements.floating;return U&&(U.style.pointerEvents=""),B.style.pointerEvents="none",L.style.pointerEvents="auto",k.style.pointerEvents="auto",()=>{B.style.pointerEvents="",L.style.pointerEvents="",k.style.pointerEvents=""}}}},[l,n,h,a,p,m,C]),Gn(()=>{n||(y.current=void 0,T.current=!1,N(),R())},[n,N,R]),b.useEffect(()=>()=>{N(),clearTimeout(x.current),clearTimeout(_.current),R()},[l,a.domReference,N,R]);const M=b.useMemo(()=>{function I(P){y.current=P.pointerType}return{onPointerDown:I,onPointerEnter:I,onMouseMove(P){const{nativeEvent:k}=P;function B(){!S.current&&!g.current&&r(!0,k,"hover")}c&&!dg(y.current)||n||f===0||T.current&&P.movementX**2+P.movementY**2<2||(clearTimeout(_.current),y.current==="touch"?B():(T.current=!0,_.current=window.setTimeout(B,f)))}}},[c,r,n,g,f]),F=b.useMemo(()=>({onMouseEnter(){clearTimeout(x.current)},onMouseLeave(I){D()||A(I.nativeEvent,!1)}}),[A,D]);return b.useMemo(()=>l?{reference:M,floating:F}:{},[l,M,F])}function kh(e,t){let n=e.filter(i=>{var o;return i.parentId===t&&((o=i.context)==null?void 0:o.open)}),r=n;for(;r.length;)r=e.filter(i=>{var o;return(o=r)==null?void 0:o.some(a=>{var l;return i.parentId===a.id&&((l=i.context)==null?void 0:l.open)})}),n=n.concat(r);return n}const rA=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function iA(e,t){const n=VT(e,rA());t==="prev"&&n.reverse();const r=n.indexOf(fg(Kr(e)));return n.slice(r+1)[0]}function _ae(){return iA(document.body,"next")}function Sae(){return iA(document.body,"prev")}function Nh(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!ba(n,r)}function Eae(e){VT(e,rA()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function BS(e){e.querySelectorAll("[data-tabindex]").forEach(n=>{const r=n.dataset.tabindex;delete n.dataset.tabindex,r?n.setAttribute("tabindex",r):n.removeAttribute("tabindex")})}const oA={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let Oae;function zS(e){e.key==="Tab"&&(e.target,clearTimeout(Oae))}const US=b.forwardRef(function(t,n){const[r,i]=b.useState();Gn(()=>(IT()&&i("button"),document.addEventListener("keydown",zS),()=>{document.removeEventListener("keydown",zS)}),[]);const o={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[au("focus-guard")]:"",style:oA};return v.jsx("span",{...t,...o})}),aA=b.createContext(null),HS=au("portal");function $ae(e){e===void 0&&(e={});const{id:t,root:n}=e,r=z0(),i=jae(),[o,a]=b.useState(null),l=b.useRef(null);return Gn(()=>()=>{o==null||o.remove(),queueMicrotask(()=>{l.current=null})},[o]),Gn(()=>{if(!r||l.current)return;const s=t?document.getElementById(t):null;if(!s)return;const u=document.createElement("div");u.id=r,u.setAttribute(HS,""),s.appendChild(u),l.current=u,a(u)},[t,r]),Gn(()=>{if(n===null||!r||l.current)return;let s=n||(i==null?void 0:i.portalNode);s&&!de(s)&&(s=s.current),s=s||document.body;let u=null;t&&(u=document.createElement("div"),u.id=t,s.appendChild(u));const c=document.createElement("div");c.id=r,c.setAttribute(HS,""),s=u||s,s.appendChild(c),l.current=c,a(c)},[t,n,r,i]),o}function Pae(e){const{children:t,id:n,root:r,preserveTabOrder:i=!0}=e,o=$ae({id:n,root:r}),[a,l]=b.useState(null),s=b.useRef(null),u=b.useRef(null),c=b.useRef(null),f=b.useRef(null),d=a==null?void 0:a.modal,p=a==null?void 0:a.open,h=!!a&&!a.modal&&a.open&&i&&!!(r||o);return b.useEffect(()=>{if(!o||!i||d)return;function m(w){o&&Nh(w)&&(w.type==="focusin"?BS:Eae)(o)}return o.addEventListener("focusin",m,!0),o.addEventListener("focusout",m,!0),()=>{o.removeEventListener("focusin",m,!0),o.removeEventListener("focusout",m,!0)}},[o,i,d]),b.useEffect(()=>{o&&(p||BS(o))},[p,o]),v.jsxs(aA.Provider,{value:b.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:s,afterOutsideRef:u,beforeInsideRef:c,afterInsideRef:f,portalNode:o,setFocusManagerState:l}),[i,o]),children:[h&&o&&v.jsx(US,{"data-type":"outside",ref:s,onFocus:m=>{if(Nh(m,o)){var w;(w=c.current)==null||w.focus()}else{const g=Sae()||(a==null?void 0:a.domReference);g==null||g.focus()}}}),h&&o&&v.jsx("span",{"aria-owns":o.id,style:oA}),o&&Ht.createPortal(t,o),h&&o&&v.jsx(US,{"data-type":"outside",ref:u,onFocus:m=>{if(Nh(m,o)){var w;(w=f.current)==null||w.focus()}else{const g=_ae()||(a==null?void 0:a.domReference);g==null||g.focus(),a!=null&&a.closeOnFocusOut&&(a==null||a.onOpenChange(!1,m.nativeEvent,"focus-out"))}}})]})}const jae=()=>b.useContext(aA),Tae="data-floating-ui-focusable",Aae={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Cae={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},WS=e=>{var t,n;return{escapeKey:typeof e=="boolean"?e:(t=e==null?void 0:e.escapeKey)!=null?t:!1,outsidePress:typeof e=="boolean"?e:(n=e==null?void 0:e.outsidePress)!=null?n:!0}};function kae(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,elements:i,dataRef:o}=e,{enabled:a=!0,escapeKey:l=!0,outsidePress:s=!0,outsidePressEvent:u="pointerdown",referencePress:c=!1,referencePressEvent:f="pointerdown",ancestorScroll:d=!1,bubbles:p,capture:h}=t,m=H0(),w=ir(typeof s=="function"?s:()=>!1),g=typeof s=="function"?w:s,y=b.useRef(!1),x=b.useRef(!1),{escapeKey:E,outsidePress:_}=WS(p),{escapeKey:S,outsidePress:O}=WS(h),$=b.useRef(!1),T=ir(M=>{var F;if(!n||!a||!l||M.key!=="Escape"||$.current)return;const I=(F=o.current.floatingContext)==null?void 0:F.nodeId,P=m?kh(m.nodesRef.current,I):[];if(!E&&(M.stopPropagation(),P.length>0)){let k=!0;if(P.forEach(B=>{var L;if((L=B.context)!=null&&L.open&&!B.context.dataRef.current.__escapeKeyBubbles){k=!1;return}}),!k)return}r(!1,ooe(M)?M.nativeEvent:M,"escape-key")}),C=ir(M=>{var F;const I=()=>{var P;T(M),(P=vo(M))==null||P.removeEventListener("keydown",I)};(F=vo(M))==null||F.addEventListener("keydown",I)}),A=ir(M=>{var F;const I=y.current;y.current=!1;const P=x.current;if(x.current=!1,u==="click"&&P||I||typeof g=="function"&&!g(M))return;const k=vo(M),B="["+au("inert")+"]",L=Kr(i.floating).querySelectorAll(B);let U=de(k)?k:null;for(;U&&!mr(U);){const J=jr(U);if(mr(J)||!de(J))break;U=J}if(L.length&&de(k)&&!aoe(k)&&!ba(k,i.floating)&&Array.from(L).every(J=>!ba(U,J)))return;if(Vt(k)&&D){const J=mr(k),Ce=hn(k),Oe=/auto|scroll/,K=J||Oe.test(Ce.overflowX),Z=J||Oe.test(Ce.overflowY),ee=K&&k.clientWidth>0&&k.scrollWidth>k.clientWidth,H=Z&&k.clientHeight>0&&k.scrollHeight>k.clientHeight,ke=Ce.direction==="rtl",ae=H&&(ke?M.offsetX<=k.offsetWidth-k.clientWidth:M.offsetX>k.clientWidth),He=ee&&M.offsetY>k.clientHeight;if(ae||He)return}const V=(F=o.current.floatingContext)==null?void 0:F.nodeId,re=m&&kh(m.nodesRef.current,V).some(J=>{var Ce;return $h(M,(Ce=J.context)==null?void 0:Ce.elements.floating)});if($h(M,i.floating)||$h(M,i.domReference)||re)return;const ie=m?kh(m.nodesRef.current,V):[];if(ie.length>0){let J=!0;if(ie.forEach(Ce=>{var Oe;if((Oe=Ce.context)!=null&&Oe.open&&!Ce.context.dataRef.current.__outsidePressBubbles){J=!1;return}}),!J)return}r(!1,M,"outside-press")}),N=ir(M=>{var F;const I=()=>{var P;A(M),(P=vo(M))==null||P.removeEventListener(u,I)};(F=vo(M))==null||F.addEventListener(u,I)});b.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=E,o.current.__outsidePressBubbles=_;let M=-1;function F(L){r(!1,L,"ancestor-scroll")}function I(){window.clearTimeout(M),$.current=!0}function P(){M=window.setTimeout(()=>{$.current=!1},up()?5:0)}const k=Kr(i.floating);l&&(k.addEventListener("keydown",S?C:T,S),k.addEventListener("compositionstart",I),k.addEventListener("compositionend",P)),g&&k.addEventListener(u,O?N:A,O);let B=[];return d&&(de(i.domReference)&&(B=ii(i.domReference)),de(i.floating)&&(B=B.concat(ii(i.floating))),!de(i.reference)&&i.reference&&i.reference.contextElement&&(B=B.concat(ii(i.reference.contextElement)))),B=B.filter(L=>{var U;return L!==((U=k.defaultView)==null?void 0:U.visualViewport)}),B.forEach(L=>{L.addEventListener("scroll",F,{passive:!0})}),()=>{l&&(k.removeEventListener("keydown",S?C:T,S),k.removeEventListener("compositionstart",I),k.removeEventListener("compositionend",P)),g&&k.removeEventListener(u,O?N:A,O),B.forEach(L=>{L.removeEventListener("scroll",F)}),window.clearTimeout(M)}},[o,i,l,g,u,n,r,d,a,E,_,T,S,C,A,O,N]),b.useEffect(()=>{y.current=!1},[g,u]);const R=b.useMemo(()=>({onKeyDown:T,...c&&{[Aae[f]]:M=>{r(!1,M.nativeEvent,"reference-press")},...f!=="click"&&{onClick(M){r(!1,M.nativeEvent,"reference-press")}}}}),[T,r,c,f]),D=b.useMemo(()=>({onKeyDown:T,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[Cae[u]]:()=>{y.current=!0}}),[T,u]);return b.useMemo(()=>a?{reference:R,floating:D}:{},[a,R,D])}function Nae(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=z0(),o=b.useRef({}),[a]=b.useState(()=>yae()),l=U0()!=null,[s,u]=b.useState(r.reference),c=ir((p,h,m)=>{o.current.openEvent=p?h:void 0,a.emit("openchange",{open:p,event:h,reason:m,nested:l}),n==null||n(p,h,m)}),f=b.useMemo(()=>({setPositionReference:u}),[]),d=b.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return b.useMemo(()=>({dataRef:o,open:t,onOpenChange:c,elements:d,events:a,floatingId:i,refs:f}),[t,c,d,a,i,f])}function Mae(e){e===void 0&&(e={});const{nodeId:t}=e,n=Nae({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=b.useState(null),[l,s]=b.useState(null),c=(i==null?void 0:i.domReference)||o,f=b.useRef(null),d=H0();Gn(()=>{c&&(f.current=c)},[c]);const p=eA({...e,elements:{...i,...l&&{reference:l}}}),h=b.useCallback(x=>{const E=de(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),contextElement:x}:x;s(E),p.refs.setReference(E)},[p.refs]),m=b.useCallback(x=>{(de(x)||x===null)&&(f.current=x,a(x)),(de(p.refs.reference.current)||p.refs.reference.current===null||x!==null&&!de(x))&&p.refs.setReference(x)},[p.refs]),w=b.useMemo(()=>({...p.refs,setReference:m,setPositionReference:h,domReference:f}),[p.refs,m,h]),g=b.useMemo(()=>({...p.elements,domReference:c}),[p.elements,c]),y=b.useMemo(()=>({...p,...r,refs:w,elements:g,nodeId:t}),[p,w,g,t,r]);return Gn(()=>{r.dataRef.current.floatingContext=y;const x=d==null?void 0:d.nodesRef.current.find(E=>E.id===t);x&&(x.context=y)}),b.useMemo(()=>({...p,context:y,refs:w,elements:g}),[p,w,g,y])}function Rae(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,events:i,dataRef:o,elements:a}=e,{enabled:l=!0,visibleOnly:s=!0}=t,u=b.useRef(!1),c=b.useRef(),f=b.useRef(!0);b.useEffect(()=>{if(!l)return;const p=Lt(a.domReference);function h(){!n&&Vt(a.domReference)&&a.domReference===fg(Kr(a.domReference))&&(u.current=!0)}function m(){f.current=!0}return p.addEventListener("blur",h),p.addEventListener("keydown",m,!0),()=>{p.removeEventListener("blur",h),p.removeEventListener("keydown",m,!0)}},[a.domReference,n,l]),b.useEffect(()=>{if(!l)return;function p(h){let{reason:m}=h;(m==="reference-press"||m==="escape-key")&&(u.current=!0)}return i.on("openchange",p),()=>{i.off("openchange",p)}},[i,l]),b.useEffect(()=>()=>{clearTimeout(c.current)},[]);const d=b.useMemo(()=>({onPointerDown(p){noe(p.nativeEvent)||(f.current=!1)},onMouseLeave(){u.current=!1},onFocus(p){if(u.current)return;const h=vo(p.nativeEvent);if(s&&de(h))try{if(IT()&&roe())throw Error();if(!h.matches(":focus-visible"))return}catch{if(!f.current&&!soe(h))return}r(!0,p.nativeEvent,"focus")},onBlur(p){u.current=!1;const h=p.relatedTarget,m=p.nativeEvent,w=de(h)&&h.hasAttribute(au("focus-guard"))&&h.getAttribute("data-type")==="outside";c.current=window.setTimeout(()=>{var g;const y=fg(a.domReference?a.domReference.ownerDocument:document);!h&&y===a.domReference||ba((g=o.current.floatingContext)==null?void 0:g.refs.floating.current,y)||ba(a.domReference,y)||w||r(!1,m,"focus")})}}),[o,a.domReference,r,s]);return b.useMemo(()=>l?{reference:d}:{},[l,d])}const VS="active",KS="selected";function Mh(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[VS]:a,[KS]:l,...s}=e;o=s}return{...n==="floating"&&{tabIndex:-1,[Tae]:""},...o,...t.map(a=>{const l=a?a[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((a,l)=>(l&&Object.entries(l).forEach(s=>{let[u,c]=s;if(!(i&&[VS,KS].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof c=="function"){var f;(f=r.get(u))==null||f.push(c),a[u]=function(){for(var d,p=arguments.length,h=new Array(p),m=0;m<p;m++)h[m]=arguments[m];return(d=r.get(u))==null?void 0:d.map(w=>w(...h)).find(w=>w!==void 0)}}}else a[u]=c}),a),{})}}function Iae(e){e===void 0&&(e=[]);const t=e.map(l=>l==null?void 0:l.reference),n=e.map(l=>l==null?void 0:l.floating),r=e.map(l=>l==null?void 0:l.item),i=b.useCallback(l=>Mh(l,e,"reference"),t),o=b.useCallback(l=>Mh(l,e,"floating"),n),a=b.useCallback(l=>Mh(l,e,"item"),r);return b.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}const Lae=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Dae(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:a="dialog"}=t,l=(n=Lae.get(a))!=null?n:a,s=z0(),c=U0()!=null,f=b.useMemo(()=>l==="tooltip"||a==="label"?{["aria-"+(a==="label"?"labelledby":"describedby")]:r?i:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":l==="alertdialog"?"dialog":l,"aria-controls":r?i:void 0,...l==="listbox"&&{role:"combobox"},...l==="menu"&&{id:s},...l==="menu"&&c&&{role:"menuitem"},...a==="select"&&{"aria-autocomplete":"none"},...a==="combobox"&&{"aria-autocomplete":"list"}},[l,i,c,r,s,a]),d=b.useMemo(()=>{const h={id:i,...l&&{role:l}};return l==="tooltip"||a==="label"?h:{...h,...l==="menu"&&{"aria-labelledby":s}}},[l,i,s,a]),p=b.useCallback(h=>{let{active:m,selected:w}=h;const g={role:"option",...m&&{id:i+"-option"}};switch(a){case"select":return{...g,"aria-selected":m&&w};case"combobox":return{...g,...m&&{"aria-selected":!0}}}return{}},[i,a]);return b.useMemo(()=>o?{reference:f,floating:d,item:p}:{},[o,f,d,p])}const wa=({width:e="max-w-56",className:t="bg-gray-700 text-white text-xs rounded-sm p-2",children:n})=>{const[r,i]=b.useState(!1),{refs:o,floatingStyles:a,context:l}=Mae({open:r,onOpenChange:i,placement:"bottom",whileElementsMounted:ZT,middleware:[B0(5),dae({fallbackAxisSideDirection:"start"}),tA()]}),s=wae(l,{move:!1}),u=Rae(l),c=kae(l),f=Dae(l,{role:"tooltip"}),{getReferenceProps:d,getFloatingProps:p}=Iae([s,u,c,f]),h=j.Children.toArray(n).find(w=>w.type===si),m=j.Children.toArray(n).find(w=>w.type===Zi);return v.jsxs(v.Fragment,{children:[h&&v.jsx("div",{ref:o.setReference,...d(),className:"relative",children:b.cloneElement(h,{ref:o.setReference})}),v.jsx(Pae,{children:r&&m&&v.jsx("div",{className:`${e} ${t}`,ref:o.setFloating,style:a,...p(),children:m})})]})},si=b.forwardRef(({children:e,...t},n)=>v.jsx("button",{ref:n,...t,children:e}));si.displayName="TooltipButton";const Zi=({children:e,...t})=>v.jsx("div",{...t,children:e}),Fae=({features:e})=>{const t=Object.values(e).reduce((i,o)=>{const a=o.additional_metrics.feature_size.percent_of_max||0;if(a!=null){const l=xa(a);i[l]++}return i},{xs:0,s:0,m:0,l:0,xl:0}),{minimum_thresholds:n}=_r.project.documentation_site.size_percentile,r=Object.entries(t).map(([i,o],a)=>({name:i,value:o,fill:[In(n.xs).hex,In(n.s).hex,In(n.m).hex,In(n.l).hex,In(n.xl).hex][a]})).filter(({value:i})=>i>0);return v.jsxs("div",{className:"flex flex-col gap-6",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[v.jsx("div",{className:"shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:v.jsx(Z$,{className:"size-5"})}),v.jsx("span",{className:"flex pl-2",children:"Feature Size"})]}),v.jsxs(wa,{width:"w-72",children:[v.jsx(si,{children:v.jsx(Sr,{className:"size-4 text-gray-400"})}),v.jsx(Zi,{children:"Feature size is determined by analyzing the total number of files and lines of code associated with each feature. Each feature is then grouped into different size bins, which can be configured in the config.yaml file."})]})]}),v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx("div",{className:"relative h-28 w-28",children:v.jsx(Da,{width:"100%",height:"100%",children:v.jsx(nu,{children:v.jsx(qt,{data:r,dataKey:"value",nameKey:"name",innerRadius:"70%",outerRadius:"100%",paddingAngle:2})})})}),v.jsxs("ul",{className:"flex flex-col flex-1 gap-y-1",children:[v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${In(n.xs).class}`,children:v.jsx("span",{className:"font-semibold text-white text-xs",children:t.xs})}),v.jsx("p",{className:"text-xs text-gray-500",children:"X-Small Features"})]}),v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${In(n.s).class}`,children:v.jsx("span",{className:"font-semibold text-white text-xs",children:t.s})}),v.jsx("p",{className:"text-xs text-gray-500",children:"Small Features"})]}),v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${In(n.m).class}`,children:v.jsx("span",{className:"font-semibold text-white text-xs",children:t.m})}),v.jsx("p",{className:"text-xs text-gray-500",children:"Medium Features"})]}),v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${In(n.l).class}`,children:v.jsx("span",{className:"font-semibold text-white text-xs",children:t.l})}),v.jsx("p",{className:"text-xs text-gray-500",children:"Large Features"})]}),v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${In(n.xl).class}`,children:v.jsx("span",{className:"font-semibold text-white text-xs",children:t.xl})}),v.jsx("p",{className:"text-xs text-gray-500",children:"X-Large Features"})]})]})]})]})},rt={needsAttention:50,needsImprovement:80,healthy:100},wt=e=>e?e<=rt.needsAttention?{hex:"#ef4444",class:"bg-red-500"}:e<=rt.needsImprovement?{hex:"#eab308",class:"bg-yellow-500"}:{hex:"#22c55e",class:"bg-green-500"}:{hex:"transparent",class:"bg-transparent"},lA=e=>e<rt.needsAttention?"needsAttention":e<rt.needsImprovement?"needsImprovement":"healthy",sA=e=>e?e<rt.needsAttention?"bg-red-100/60":e<rt.needsImprovement?"bg-yellow-100/60":"bg-green-100/60":"bg-gray-100",Bae=({features:e})=>{const t=Object.values(e).reduce((r,i)=>{const o=i.additional_metrics.health.overall||0;if(o!=null){const a=lA(o);r[a]++}return r},{needsAttention:0,needsImprovement:0,healthy:0}),n=Object.entries(t).map(([r,i],o)=>({name:r,value:i,fill:[wt(rt.needsAttention).hex,wt(rt.needsImprovement).hex,wt(rt.healthy).hex][o]})).filter(({value:r})=>r>0);return v.jsxs("div",{className:"flex flex-col gap-6",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[v.jsx("div",{className:"shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:v.jsx(Ey,{className:"size-5"})}),v.jsx("span",{className:"flex pl-2",children:"Health Score"})]}),v.jsxs(wa,{children:[v.jsx(si,{children:v.jsx(Sr,{className:"size-4 text-gray-400"})}),v.jsx(Zi,{children:"Feature health is determined by combining a weighted score for test coverage, code complexity, and encapsulation into a composite score from 0-100%. Each feature is then grouped into a categories ranging from low (needs attention) to good (healthy), which can be managed via `.feature_map/config.yml`."})]})]}),v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx("div",{className:"relative h-28 w-28",children:v.jsx(Da,{width:"100%",height:"100%",children:v.jsx(nu,{children:v.jsx(qt,{data:n,dataKey:"value",nameKey:"name",innerRadius:"70%",outerRadius:"100%",paddingAngle:2})})})}),v.jsxs("ul",{className:"flex flex-col flex-1 gap-y-1",children:[v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${wt(rt.needsAttention).class}`,children:v.jsx("span",{className:"font-semibold text-white text-xs",children:t.needsAttention})}),v.jsxs("p",{className:"text-xs text-gray-500",children:[v.jsx("span",{className:"lg:hidden xl:inline-block",children:"Features"})," need attention"]})]}),v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${wt(rt.needsImprovement).class}`,children:v.jsx("span",{className:"font-semibold text-white text-xs",children:t.needsImprovement})}),v.jsxs("p",{className:"text-xs text-gray-500",children:[v.jsx("span",{className:"lg:hidden xl:inline-block",children:"Features"})," need improvement"]})]}),v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${wt(rt.healthy).class}`,children:v.jsx("span",{className:"font-semibold text-white text-xs",children:t.healthy})}),v.jsx("p",{className:"text-xs text-gray-500",children:"Healthy Features"})]})]})]})]})},zae=({features:e})=>{const t=Object.values(e).reduce((i,o)=>{const a=o.additional_metrics.test_coverage.score||0;if(a!=null){const l=CT(a);i[l]++}return i},{poor:0,fair:0,good:0}),{minimum_thresholds:n}=_r.project.documentation_site.test_coverage,r=Object.entries(t).map(([i,o],a)=>({name:i,value:o,fill:[bt(n.poor).hex,bt(n.fair).hex,bt(n.good).hex][a]})).filter(({value:i})=>i>0);return v.jsxs("div",{className:"flex flex-col gap-6",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[v.jsx("div",{className:"shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:v.jsx(_y,{className:"size-5"})}),v.jsx("span",{className:"flex pl-2",children:"Test Coverage"})]}),v.jsxs(wa,{children:[v.jsx(si,{children:v.jsx(Sr,{className:"size-4 text-gray-400"})}),v.jsx(Zi,{children:"Test coverage is determined by using CodeCov data (lines, hits, misses) to calculate a percentage score, from 0-100%, relative to the other features in the codebase. A qualitative coverage ranking is assigned to each feature, which can be managed which can be managed via `.feature_map/config.yml`."})]})]}),v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx("div",{className:"relative h-28 w-28",children:v.jsx(Da,{width:"100%",height:"100%",children:v.jsx(nu,{children:v.jsx(qt,{data:r,dataKey:"value",nameKey:"name",innerRadius:"70%",outerRadius:"100%",paddingAngle:2})})})}),v.jsxs("ul",{className:"flex flex-col flex-1 gap-y-1",children:[v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${bt(n.poor).class}`,children:v.jsx("span",{className:"font-semibold text-white text-xs",children:t.poor})}),v.jsx("p",{className:"text-xs text-gray-500",children:"Features with poor test coverage"})]}),v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${bt(n.fair).class}`,children:v.jsx("span",{className:"font-semibold text-white text-xs",children:t.fair})}),v.jsx("p",{className:"text-xs text-gray-500",children:"Features with acceptable test coverage"})]}),v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-5 flex items-center justify-center ${bt(n.good).class}`,children:v.jsx("span",{className:"font-semibold text-white text-xs",children:t.good})}),v.jsx("p",{className:"text-xs text-gray-500",children:"Features with great test coverage"})]})]})]})]})};function Uae({features:e,searchTerm:t=""}){const[n,r]=b.useState({key:null,direction:"asc"}),i=j.useMemo(()=>Object.entries(e).filter(([s,u])=>{var f,d;const c=t.toLowerCase();return s.toLowerCase().includes(c)||((d=(f=u.assignments)==null?void 0:f.teams)==null?void 0:d.some(p=>p.toLowerCase().includes(c)))}).sort((s,u)=>{var w,g,y,x,E,_,S,O,$,T,C,A,N,R,D,M;const[c,f]=s,[d,p]=u;if(!n.key)return 0;let h,m;switch(n.key){case"team":h=((g=(w=f==null?void 0:f.assignments)==null?void 0:w.teams)==null?void 0:g[0])||"",m=((x=(y=p==null?void 0:p.assignments)==null?void 0:y.teams)==null?void 0:x[0])||"";break;case"size":h=((_=(E=f==null?void 0:f.additional_metrics)==null?void 0:E.feature_size)==null?void 0:_.percent_of_max)||0,m=((O=(S=p==null?void 0:p.additional_metrics)==null?void 0:S.feature_size)==null?void 0:O.percent_of_max)||0;break;case"health_score":h=((T=($=f==null?void 0:f.additional_metrics)==null?void 0:$.health)==null?void 0:T.overall)||0,m=((A=(C=p==null?void 0:p.additional_metrics)==null?void 0:C.health)==null?void 0:A.overall)||0;break;case"test_coverage":h=((R=(N=f==null?void 0:f.additional_metrics)==null?void 0:N.test_coverage)==null?void 0:R.score)??-1,m=((M=(D=p==null?void 0:p.additional_metrics)==null?void 0:D.test_coverage)==null?void 0:M.score)??-1;break;default:h=c,m=d}return h<m?n.direction==="asc"?-1:1:h>m?n.direction==="asc"?1:-1:0}),[e,n,t]),o=l=>{r(s=>({key:l,direction:s.key===l&&s.direction==="asc"?"desc":"asc"}))},a=({title:l,sortKey:s,className:u="",hideOn:c=""})=>v.jsx("th",{scope:"col",className:`px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider ${c} ${u}`,onClick:()=>o(s),children:v.jsxs("div",{className:"flex items-center gap-x-2 group cursor-pointer",children:[l,v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-4 text-gray-400 group-hover:text-gray-600",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 7.5 7.5 3m0 0L12 7.5M7.5 3v13.5m13.5 0L16.5 21m0 0L12 16.5m4.5 4.5V7.5"})})]})});return v.jsx("div",{className:"overflow-scroll shadow-xs border border-gray-200 rounded-lg relative",children:v.jsxs("table",{className:"min-w-full",children:[v.jsx("thead",{className:"bg-gray-50 border-b border-gray-200 sticky top-0",children:v.jsxs("tr",{children:[v.jsx(a,{title:"Feature",sortKey:"name"}),v.jsx(a,{title:"Team",sortKey:"team",hideOn:"hidden lg:table-cell"}),v.jsx(a,{title:"Size",sortKey:"size",hideOn:"hidden md:table-cell"}),v.jsx(a,{title:"Health Score",sortKey:"health_score",hideOn:"hidden lg:table-cell"}),v.jsx(a,{title:"Test Coverage",sortKey:"test_coverage",hideOn:"hidden md:table-cell"}),v.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider"})]})}),v.jsx("tbody",{className:"divide-y divide-gray-200 bg-white",children:i.map(([l,s])=>{var p,h,m,w,g,y;const u=((h=(p=s==null?void 0:s.additional_metrics)==null?void 0:p.feature_size)==null?void 0:h.percent_of_max)||0,c=xa(u),f=((w=(m=s==null?void 0:s.additional_metrics)==null?void 0:m.health)==null?void 0:w.overall)||0,d=((y=(g=s==null?void 0:s.additional_metrics)==null?void 0:g.test_coverage)==null?void 0:y.score)||0;return v.jsxs("tr",{children:[v.jsx("td",{className:"w-full max-w-0 py-4 px-4 text-sm font-medium text-gray-900 sm:w-auto sm:max-w-none",children:v.jsx("div",{className:"flex items-center gap-x-3",children:v.jsxs("div",{children:[v.jsx("p",{className:"font-medium text-gray-900 text-sm mb-1",children:l.length>2?l:s.name}),v.jsxs("div",{className:"flex items-center gap-1 lg:hidden",children:[v.jsx("p",{className:"text-sm lg:text-xs font-normal text-gray-500",children:"Team: "}),v.jsx("div",{className:"flex items-center gap-1",children:s.assignments.teams&&s.assignments.teams.map((x,E)=>v.jsxs(j.Fragment,{children:[v.jsx("span",{className:"text-sm lg:text-xs font-normal text-gray-500",children:x}),E<s.assignments.teams.length-1&&v.jsx("svg",{viewBox:"0 0 2 2",className:"size-1 fill-current text-gray-400",children:v.jsx("circle",{cx:"1",cy:"1",r:"1"})})]},x))})]})]})})}),v.jsx("td",{className:"hidden px-4 py-4 text-sm text-gray-500 lg:table-cell",children:v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Gi,{className:"size-4 text-gray-500"}),Lf(s.assignments.teams||[])]})}),v.jsx("td",{className:"hidden px-4 py-4 text-sm text-gray-500 md:table-cell",children:v.jsxs("div",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:"flex gap-1.5 items-center",children:[1,2,3,4,5].map(x=>v.jsx("div",{className:`h-5 w-1.5 rounded ${x<=Rs(u)?"bg-blue-500":"bg-gray-200"}`},x))}),v.jsx("span",{className:"text-xs text-gray-500 uppercase",children:c})]})}),v.jsx("td",{className:"hidden px-4 py-4 text-sm text-gray-500 lg:table-cell",children:v.jsxs("div",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`w-4 h-4 rounded-full flex items-center justify-center ${sA(f)}`,children:v.jsx("div",{className:`w-2 h-2 rounded-full ${wt(f).class}`})}),v.jsxs("span",{className:"text-gray-600",children:[f.toFixed(0),"%"]})]})}),v.jsx("td",{className:"hidden px-4 py-4 text-sm md:table-cell",children:v.jsxs("div",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:"grow h-2 rounded-full bg-gray-100 overflow-hidden",children:v.jsx("div",{className:`h-full rounded-full ${bt(d).class}`,style:{width:`${d}%`}})}),v.jsx("span",{className:"text-sm text-gray-500",children:d?`${d.toFixed(0)}%`:"No Data"})]})}),v.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:v.jsx("div",{className:"flex items-center gap-x-3",children:v.jsx("div",{children:v.jsx(wr,{to:`/${encodeURIComponent(l)}`,className:"flex items-center justify-center shrink-0 font-medium text-gray-900 text-sm mb-1 hover:bg-gray-100 rounded-full h-6 w-6",children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5",children:v.jsx("path",{fillRule:"evenodd",d:"M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})})})})})})]},l)})})]})})}const uA=typeof document<"u"?j.useLayoutEffect:()=>{};function Hae(e){const t=b.useRef(null);return uA(()=>{t.current=e},[e]),b.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const lu=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Ri=e=>e&&"window"in e&&e.window===e?e:lu(e).defaultView||window;function Wae(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Vae(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function cA(e){let t=null;return()=>(t==null&&(t=e()),t)}const Kae=cA(function(){return Vae(/^Mac/i)}),Gae=cA(function(){return Wae(/Android/i)});function qae(e){return e.mozInputSource===0&&e.isTrusted?!0:Gae()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class Xae{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function fA(e){let t=b.useRef({isFocused:!1,observer:null});uA(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Hae(r=>{e==null||e(r)});return b.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,o=a=>{t.current.isFocused=!1,i.disabled&&n(new Xae("blur",a)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let l=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Yae(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=b.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),i&&i(!1),!0},[r,i]),a=fA(o),l=b.useCallback(s=>{const u=lu(s.target);s.target===s.currentTarget&&u.activeElement===s.target&&(n&&n(s),i&&i(!0),a(s))},[i,n,a]);return{focusProps:{onFocus:!t&&(n||i||r)?l:void 0,onBlur:!t&&(r||i)?o:void 0}}}let su=null,hg=new Set,Rl=new Map,Ji=!1,mg=!1;const Qae={Tab:!0,Escape:!0};function W0(e,t){for(let n of hg)n(e,t)}function Zae(e){return!(e.metaKey||!Kae()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Wf(e){Ji=!0,Zae(e)&&(su="keyboard",W0("keyboard",e))}function nn(e){su="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Ji=!0,W0("pointer",e))}function dA(e){qae(e)&&(Ji=!0,su="virtual")}function pA(e){e.target===window||e.target===document||(!Ji&&!mg&&(su="virtual",W0("virtual",e)),Ji=!1,mg=!1)}function hA(){Ji=!1,mg=!0}function vg(e){if(typeof window>"u"||Rl.get(Ri(e)))return;const t=Ri(e),n=lu(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Ji=!0,r.apply(this,arguments)},n.addEventListener("keydown",Wf,!0),n.addEventListener("keyup",Wf,!0),n.addEventListener("click",dA,!0),t.addEventListener("focus",pA,!0),t.addEventListener("blur",hA,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",nn,!0),n.addEventListener("pointermove",nn,!0),n.addEventListener("pointerup",nn,!0)):(n.addEventListener("mousedown",nn,!0),n.addEventListener("mousemove",nn,!0),n.addEventListener("mouseup",nn,!0)),t.addEventListener("beforeunload",()=>{mA(e)},{once:!0}),Rl.set(t,{focus:r})}const mA=(e,t)=>{const n=Ri(e),r=lu(e);t&&r.removeEventListener("DOMContentLoaded",t),Rl.has(n)&&(n.HTMLElement.prototype.focus=Rl.get(n).focus,r.removeEventListener("keydown",Wf,!0),r.removeEventListener("keyup",Wf,!0),r.removeEventListener("click",dA,!0),n.removeEventListener("focus",pA,!0),n.removeEventListener("blur",hA,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",nn,!0),r.removeEventListener("pointermove",nn,!0),r.removeEventListener("pointerup",nn,!0)):(r.removeEventListener("mousedown",nn,!0),r.removeEventListener("mousemove",nn,!0),r.removeEventListener("mouseup",nn,!0)),Rl.delete(n))};function Jae(e){const t=lu(e);let n;return t.readyState!=="loading"?vg(e):(n=()=>{vg(e)},t.addEventListener("DOMContentLoaded",n)),()=>mA(e,n)}typeof document<"u"&&Jae();function vA(){return su!=="pointer"}const ele=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function tle(e,t,n){var r;const i=typeof window<"u"?Ri(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?Ri(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?Ri(n==null?void 0:n.target).HTMLElement:HTMLElement,l=typeof window<"u"?Ri(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!ele.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof o||(n==null?void 0:n.target)instanceof a&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof l&&!Qae[n.key])}function nle(e,t,n){vg(),b.useEffect(()=>{let r=(i,o)=>{tle(!!(n!=null&&n.isTextInput),i,o)&&e(vA())};return hg.add(r),()=>{hg.delete(r)}},t)}function rle(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=b.useRef({isFocusWithin:!1}),a=b.useCallback(u=>{o.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,o]),l=fA(a),s=b.useCallback(u=>{!o.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),o.current.isFocusWithin=!0,l(u))},[r,i,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:s,onBlur:a}}}let Vf=!1,Rh=0;function gg(){Vf=!0,setTimeout(()=>{Vf=!1},50)}function GS(e){e.pointerType==="touch"&&gg()}function ile(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",GS):document.addEventListener("touchend",gg),Rh++,()=>{Rh--,!(Rh>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",GS):document.removeEventListener("touchend",gg))}}function V0(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,a]=b.useState(!1),l=b.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;b.useEffect(ile,[]);let{hoverProps:s,triggerHoverEnd:u}=b.useMemo(()=>{let c=(p,h)=>{if(l.pointerType=h,i||h==="touch"||l.isHovered||!p.currentTarget.contains(p.target))return;l.isHovered=!0;let m=p.currentTarget;l.target=m,t&&t({type:"hoverstart",target:m,pointerType:h}),n&&n(!0),a(!0)},f=(p,h)=>{if(l.pointerType="",l.target=null,h==="touch"||!l.isHovered)return;l.isHovered=!1;let m=p.currentTarget;r&&r({type:"hoverend",target:m,pointerType:h}),n&&n(!1),a(!1)},d={};return typeof PointerEvent<"u"?(d.onPointerEnter=p=>{Vf&&p.pointerType==="mouse"||c(p,p.pointerType)},d.onPointerLeave=p=>{!i&&p.currentTarget.contains(p.target)&&f(p,p.pointerType)}):(d.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},d.onMouseEnter=p=>{!l.ignoreEmulatedMouseEvents&&!Vf&&c(p,"mouse"),l.ignoreEmulatedMouseEvents=!1},d.onMouseLeave=p=>{!i&&p.currentTarget.contains(p.target)&&f(p,"mouse")}),{hoverProps:d,triggerHoverEnd:f}},[t,n,r,i,l]);return b.useEffect(()=>{i&&u({currentTarget:l.target},l.pointerType)},[i]),{hoverProps:s,isHovered:o}}function K0(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=b.useRef({isFocused:!1,isFocusVisible:t||vA()}),[o,a]=b.useState(!1),[l,s]=b.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=b.useCallback(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),c=b.useCallback(p=>{i.current.isFocused=p,a(p),u()},[u]);nle(p=>{i.current.isFocusVisible=p,u()},[],{isTextInput:n});let{focusProps:f}=Yae({isDisabled:r,onFocusChange:c}),{focusWithinProps:d}=rle({isDisabled:!r,onFocusWithinChange:c});return{isFocused:o,isFocusVisible:l,focusProps:r?d:f}}var ole=Object.defineProperty,ale=(e,t,n)=>t in e?ole(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ih=(e,t,n)=>(ale(e,typeof t!="symbol"?t+"":t,n),n);let lle=class{constructor(){Ih(this,"current",this.detect()),Ih(this,"handoffState","pending"),Ih(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},zi=new lle;function vi(e){return zi.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function fp(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Zn(){let e=[],t={addEventListener(n,r,i,o){return n.addEventListener(r,i,o),t.add(()=>n.removeEventListener(r,i,o))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return fp(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let o=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:o})})},group(n){let r=Zn();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function so(){let[e]=b.useState(Zn);return b.useEffect(()=>()=>e.dispose(),[e]),e}let he=(e,t)=>{zi.isServer?b.useEffect(e,t):b.useLayoutEffect(e,t)};function Mr(e){let t=b.useRef(e);return he(()=>{t.current=e},[e]),t}let Q=function(e){let t=Mr(e);return j.useCallback((...n)=>t.current(...n),[t])};function sle(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function ule(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function cle({disabled:e=!1}={}){let t=b.useRef(null),[n,r]=b.useState(!1),i=so(),o=Q(()=>{t.current=null,r(!1),i.dispose()}),a=Q(l=>{if(i.dispose(),t.current===null){t.current=l.currentTarget,r(!0);{let s=vi(l.currentTarget);i.addEventListener(s,"pointerup",o,!1),i.addEventListener(s,"pointermove",u=>{if(t.current){let c=sle(u);r(ule(c,t.current.getBoundingClientRect()))}},!1),i.addEventListener(s,"pointercancel",o,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:a,onPointerUp:o,onClick:o}}}let gA=b.createContext(void 0);function uu(){return b.useContext(gA)}function fle({value:e,children:t}){return j.createElement(gA.Provider,{value:e},t)}function yg(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function Tn(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Tn),r}var _a=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(_a||{}),Gr=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Gr||{});function Ie(){let e=ple();return b.useCallback(t=>dle({mergeRefs:e,...t}),[e])}function dle({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:a,mergeRefs:l}){l=l??hle;let s=yA(t,e);if(o)return Yu(s,n,r,a,l);let u=i??0;if(u&2){let{static:c=!1,...f}=s;if(c)return Yu(f,n,r,a,l)}if(u&1){let{unmount:c=!0,...f}=s;return Tn(c?0:1,{0(){return null},1(){return Yu({...f,hidden:!0,style:{display:"none"}},n,r,a,l)}})}return Yu(s,n,r,a,l)}function Yu(e,t={},n,r,i){let{as:o=n,children:a,refName:l="ref",...s}=Lh(e,["unmount","static"]),u=e.ref!==void 0?{[l]:e.ref}:{},c=typeof a=="function"?a(t):a;"className"in s&&s.className&&typeof s.className=="function"&&(s.className=s.className(t)),s["aria-labelledby"]&&s["aria-labelledby"]===s.id&&(s["aria-labelledby"]=void 0);let f={};if(t){let d=!1,p=[];for(let[h,m]of Object.entries(t))typeof m=="boolean"&&(d=!0),m===!0&&p.push(h.replace(/([A-Z])/g,w=>`-${w.toLowerCase()}`));if(d){f["data-headlessui-state"]=p.join(" ");for(let h of p)f[`data-${h}`]=""}}if(o===b.Fragment&&(Object.keys(Br(s)).length>0||Object.keys(Br(f)).length>0))if(!b.isValidElement(c)||Array.isArray(c)&&c.length>1){if(Object.keys(Br(s)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Br(s)).concat(Object.keys(Br(f))).map(d=>` - ${d}`).join(`
260
269
  `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(d=>` - ${d}`).join(`
261
270
  `)].join(`
262
- `))}else{let d=c.props,p=d==null?void 0:d.className,h=typeof p=="function"?(...v)=>gg(p(...v),s.className):gg(p,s.className),m=h?{className:h}:{},b=mA(c.props,Br(Rh(s,["ref"])));for(let v in f)v in b&&delete f[v];return w.cloneElement(c,Object.assign({},b,f,u,{ref:i(dle(c),u.ref)},m))}return w.createElement(a,Object.assign({},Rh(s,["ref"]),a!==w.Fragment&&u,a!==w.Fragment&&f),c)}function cle(){let e=w.useRef([]),t=w.useCallback(n=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(n):r.current=n)},[]);return(...n)=>{if(!n.every(r=>r==null))return e.current=n,t}}function fle(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function mA(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[i=>{var a;return(a=i==null?void 0:i.preventDefault)==null?void 0:a.call(i)}]);for(let r in n)Object.assign(t,{[r](i,...a){let o=n[r];for(let l of o){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;l(i,...a)}}});return t}function dp(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];for(let r in n)Object.assign(t,{[r](...i){let a=n[r];for(let o of a)o==null||o(...i)}});return t}function Ee(e){var t;return Object.assign(w.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Br(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Rh(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function dle(e){return j.version.split(".")[0]>="19"?e.props.ref:e.ref}function ple(e,t,n){let[r,i]=w.useState(n),a=e!==void 0,o=w.useRef(a),l=w.useRef(!1),s=w.useRef(!1);return a&&!o.current&&!l.current?(l.current=!0,o.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!a&&o.current&&!s.current&&(s.current=!0,o.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[a?e:r,Q(u=>(a||i(u),t==null?void 0:t(u)))]}function hle(e){let[t]=w.useState(e);return t}function vA(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))yA(n,gA(t,r),i);return n}function gA(e,t){return e?e+"["+t+"]":t}function yA(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())yA(e,gA(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):vA(n,t,e)}function mle(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let i of r.elements)if(i!==e&&(i.tagName==="INPUT"&&i.type==="submit"||i.tagName==="BUTTON"&&i.type==="submit"||i.nodeName==="INPUT"&&i.type==="image")){i.click();return}(n=r.requestSubmit)==null||n.call(r)}}let vle="span";var ea=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ea||{});function gle(e,t){var n;let{features:r=1,...i}=e,a={ref:t,"aria-hidden":(r&2)===2?!0:(n=i["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return Re()({ourProps:a,theirProps:i,slot:{},defaultTag:vle,name:"Hidden"})}let So=Ee(gle),xA=w.createContext(null);function yle(e){let[t,n]=w.useState(null);return j.createElement(xA.Provider,{value:{target:t}},e.children,j.createElement(So,{features:ea.Hidden,ref:n}))}function xle({children:e}){let t=w.useContext(xA);if(!t)return j.createElement(j.Fragment,null,e);let{target:n}=t;return n?Ht.createPortal(j.createElement(j.Fragment,null,e),n):null}function ble({data:e,form:t,disabled:n,onReset:r,overrides:i}){let[a,o]=w.useState(null),l=sa();return w.useEffect(()=>{if(r&&a)return l.addEventListener(a,"reset",r)},[a,t,r]),j.createElement(xle,null,j.createElement(wle,{setForm:o,formId:t}),vA(e).map(([s,u])=>j.createElement(So,{features:ea.Hidden,...Br({key:s,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:s,value:u,...i})})))}function wle({setForm:e,formId:t}){return w.useEffect(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:j.createElement(So,{features:ea.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let r=n.closest("form");r&&e(r)}})}let bA=w.createContext(void 0);function wA(){return w.useContext(bA)}function _le({id:e,children:t}){return j.createElement(bA.Provider,{value:e},t)}function G0(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&Sle(n)?!1:r}function Sle(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let _A=Symbol();function Ele(e,t=!0){return Object.assign(e,{[_A]:t})}function ot(...e){let t=w.useRef(e);w.useEffect(()=>{t.current=e},[e]);let n=Q(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[_A]))?void 0:n}let pp=w.createContext(null);pp.displayName="DescriptionContext";function SA(){let e=w.useContext(pp);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,SA),t}return e}function Ole(){var e,t;return(t=(e=w.useContext(pp))==null?void 0:e.value)!=null?t:void 0}function cu(){let[e,t]=w.useState([]);return[e.length>0?e.join(" "):void 0,w.useMemo(()=>function(n){let r=Q(a=>(t(o=>[...o,a]),()=>t(o=>{let l=o.slice(),s=l.indexOf(a);return s!==-1&&l.splice(s,1),l}))),i=w.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return j.createElement(pp.Provider,{value:i},n.children)},[t])]}let $le="p";function Ple(e,t){let n=w.useId(),r=uu(),{id:i=`headlessui-description-${n}`,...a}=e,o=SA(),l=ot(t);he(()=>o.register(i),[i,o.register]);let s=r||!1,u=w.useMemo(()=>({...o.slot,disabled:s}),[o.slot,s]),c={ref:l,...o.props,id:i};return Re()({ourProps:c,theirProps:a,slot:u,defaultTag:$le,name:o.name||"Description"})}let jle=Ee(Ple),EA=Object.assign(jle,{});var Ne=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Ne||{});let hp=w.createContext(null);hp.displayName="LabelContext";function q0(){let e=w.useContext(hp);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,q0),t}return e}function OA(e){var t,n,r;let i=(n=(t=w.useContext(hp))==null?void 0:t.value)!=null?n:void 0;return((r=void 0)!=null?r:0)>0?[i,...e].filter(Boolean).join(" "):i}function fu({inherit:e=!1}={}){let t=OA(),[n,r]=w.useState([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,w.useMemo(()=>function(a){let o=Q(s=>(r(u=>[...u,s]),()=>r(u=>{let c=u.slice(),f=c.indexOf(s);return f!==-1&&c.splice(f,1),c}))),l=w.useMemo(()=>({register:o,slot:a.slot,name:a.name,props:a.props,value:a.value}),[o,a.slot,a.name,a.props,a.value]);return j.createElement(hp.Provider,{value:l},a.children)},[r])]}let Tle="label";function Ale(e,t){var n;let r=w.useId(),i=q0(),a=wA(),o=uu(),{id:l=`headlessui-label-${r}`,htmlFor:s=a??((n=i.props)==null?void 0:n.htmlFor),passive:u=!1,...c}=e,f=ot(t);he(()=>i.register(l),[l,i.register]);let d=Q(b=>{let v=b.currentTarget;if(v instanceof HTMLLabelElement&&b.preventDefault(),i.props&&"onClick"in i.props&&typeof i.props.onClick=="function"&&i.props.onClick(b),v instanceof HTMLLabelElement){let y=document.getElementById(v.htmlFor);if(y){let x=y.getAttribute("disabled");if(x==="true"||x==="")return;let E=y.getAttribute("aria-disabled");if(E==="true"||E==="")return;(y instanceof HTMLInputElement&&(y.type==="radio"||y.type==="checkbox")||y.role==="radio"||y.role==="checkbox"||y.role==="switch")&&y.click(),y.focus({preventScroll:!0})}}}),p=o||!1,h=w.useMemo(()=>({...i.slot,disabled:p}),[i.slot,p]),m={ref:f,...i.props,id:l,htmlFor:s,onClick:d};return u&&("onClick"in m&&(delete m.htmlFor,delete m.onClick),"onClick"in c&&delete c.onClick),Re()({ourProps:m,theirProps:c,slot:h,defaultTag:s?Tle:"div",name:i.name||"Label"})}let Cle=Ee(Ale),kle=Object.assign(Cle,{}),Nle=w.createContext(()=>{});function Mle({value:e,children:t}){return j.createElement(Nle.Provider,{value:e},t)}function Ile(e,t){return e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"&&"id"in e&&"id"in t?e.id===t.id:e===t}function Rle(e=Ile){return w.useCallback((t,n)=>{if(typeof e=="string"){let r=e;return(t==null?void 0:t[r])===(n==null?void 0:n[r])}return e(t,n)},[e])}function Lle(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function Dle(e,t=!1){let[n,r]=w.useReducer(()=>({}),{}),i=w.useMemo(()=>Lle(e),[e,n]);return he(()=>{if(!e)return;let a=new ResizeObserver(r);return a.observe(e),()=>{a.disconnect()}},[e]),t?{width:`${i.width}px`,height:`${i.height}px`}:i}let Fle=class extends Map{constructor(t){super(),this.factory=t}get(t){let n=super.get(t);return n===void 0&&(n=this.factory(t),this.set(t,n)),n}};function $A(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(i){return r.add(i),()=>r.delete(i)},dispatch(i,...a){let o=t[i].call(n,...a);o&&(n=o,r.forEach(l=>l()))}}}function PA(e){return w.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}let Ble=new Fle(()=>$A(()=>[],{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(t===-1)return this;let n=this.slice();return n.splice(t,1),n}}));function Wo(e,t){let n=Ble.get(t),r=w.useId(),i=PA(n);if(he(()=>{if(e)return n.dispatch("ADD",r),()=>n.dispatch("REMOVE",r)},[n,e]),!e)return!1;let a=i.indexOf(r),o=i.length;return a===-1&&(a=o,o+=1),a===o-1}let yg=new Map,Rl=new Map;function YS(e){var t;let n=(t=Rl.get(e))!=null?t:0;return Rl.set(e,n+1),n!==0?()=>XS(e):(yg.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>XS(e))}function XS(e){var t;let n=(t=Rl.get(e))!=null?t:1;if(n===1?Rl.delete(e):Rl.set(e,n-1),n!==1)return;let r=yg.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,yg.delete(e))}function jA(e,{allowed:t,disallowed:n}={}){let r=Wo(e,"inert-others");he(()=>{var i,a;if(!r)return;let o=Zn();for(let s of(i=n==null?void 0:n())!=null?i:[])s&&o.add(YS(s));let l=(a=t==null?void 0:t())!=null?a:[];for(let s of l){if(!s)continue;let u=vi(s);if(!u)continue;let c=s.parentElement;for(;c&&c!==u.body;){for(let f of c.children)l.some(d=>f.contains(d))||o.add(YS(f));c=c.parentElement}}return o.dispose},[r,t,n])}function TA(e,t,n){let r=Mr(i=>{let a=i.getBoundingClientRect();a.x===0&&a.y===0&&a.width===0&&a.height===0&&n()});w.useEffect(()=>{if(!e)return;let i=t===null?null:t instanceof HTMLElement?t:t.current;if(!i)return;let a=Zn();if(typeof ResizeObserver<"u"){let o=new ResizeObserver(()=>r.current(i));o.observe(i),a.add(()=>o.disconnect())}if(typeof IntersectionObserver<"u"){let o=new IntersectionObserver(()=>r.current(i));o.observe(i),a.add(()=>o.disconnect())}return()=>a.dispose()},[t,r,e])}let Kf=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),zle=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var _t=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(_t||{}),Ds=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Ds||{}),Ule=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Ule||{});function AA(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Kf)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function Hle(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(zle)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Y0=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Y0||{});function X0(e,t=0){var n;return e===((n=vi(e))==null?void 0:n.body)?!1:jn(t,{0(){return e.matches(Kf)},1(){let r=e;for(;r!==null;){if(r.matches(Kf))return!0;r=r.parentElement}return!1}})}function CA(e){let t=vi(e);Zn().nextFrame(()=>{t&&!X0(t.activeElement,0)&&Gn(e)})}var Wle=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Wle||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function Gn(e){e==null||e.focus({preventScroll:!0})}let Vle=["textarea","input"].join(",");function Kle(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,Vle))!=null?n:!1}function Q0(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),a=t(r);if(i===null||a===null)return 0;let o=i.compareDocumentPosition(a);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Gle(e,t){return ai(AA(),t,{relativeTo:e})}function ai(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){let a=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,o=Array.isArray(e)?n?Q0(e):e:t&64?Hle(e):AA(e);i.length>0&&o.length>1&&(o=o.filter(p=>!i.some(h=>h!=null&&"current"in h?(h==null?void 0:h.current)===p:h===p))),r=r??a.activeElement;let l=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),s=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,o.indexOf(r))-1;if(t&4)return Math.max(0,o.indexOf(r))+1;if(t&8)return o.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},c=0,f=o.length,d;do{if(c>=f||c+f<=0)return 0;let p=s+c;if(t&16)p=(p+f)%f;else{if(p<0)return 3;if(p>=f)return 1}d=o[p],d==null||d.focus(u),c+=l}while(d!==a.activeElement);return t&6&&Kle(d)&&d.select(),2}function kA(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function qle(){return/Android/gi.test(window.navigator.userAgent)}function Yle(){return kA()||qle()}function fl(e,t,n,r){let i=Mr(n);w.useEffect(()=>{if(!e)return;function a(o){i.current(o)}return document.addEventListener(t,a,r),()=>document.removeEventListener(t,a,r)},[e,t,r])}function NA(e,t,n,r){let i=Mr(n);w.useEffect(()=>{if(!e)return;function a(o){i.current(o)}return window.addEventListener(t,a,r),()=>window.removeEventListener(t,a,r)},[e,t,r])}const QS=30;function MA(e,t,n){let r=Wo(e,"outside-click"),i=Mr(n),a=w.useCallback(function(s,u){if(s.defaultPrevented)return;let c=u(s);if(c===null||!c.getRootNode().contains(c)||!c.isConnected)return;let f=function d(p){return typeof p=="function"?d(p()):Array.isArray(p)||p instanceof Set?p:[p]}(t);for(let d of f)if(d!==null&&(d.contains(c)||s.composed&&s.composedPath().includes(d)))return;return!X0(c,Y0.Loose)&&c.tabIndex!==-1&&s.preventDefault(),i.current(s,c)},[i,t]),o=w.useRef(null);fl(r,"pointerdown",s=>{var u,c;o.current=((c=(u=s.composedPath)==null?void 0:u.call(s))==null?void 0:c[0])||s.target},!0),fl(r,"mousedown",s=>{var u,c;o.current=((c=(u=s.composedPath)==null?void 0:u.call(s))==null?void 0:c[0])||s.target},!0),fl(r,"click",s=>{Yle()||o.current&&(a(s,()=>o.current),o.current=null)},!0);let l=w.useRef({x:0,y:0});fl(r,"touchstart",s=>{l.current.x=s.touches[0].clientX,l.current.y=s.touches[0].clientY},!0),fl(r,"touchend",s=>{let u={x:s.changedTouches[0].clientX,y:s.changedTouches[0].clientY};if(!(Math.abs(u.x-l.current.x)>=QS||Math.abs(u.y-l.current.y)>=QS))return a(s,()=>s.target instanceof HTMLElement?s.target:null)},!0),NA(r,"blur",s=>a(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Vo(...e){return w.useMemo(()=>vi(...e),[...e])}function IA(e,t,n,r){let i=Mr(n);w.useEffect(()=>{e=e??window;function a(o){i.current(o)}return e.addEventListener(t,a,r),()=>e.removeEventListener(t,a,r)},[e,t,r])}function Xle(e,t){return w.useMemo(()=>{var n;if(e.type)return e.type;let r=(n=e.as)!=null?n:"button";if(typeof r=="string"&&r.toLowerCase()==="button"||(t==null?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}function Qle(){let e;return{before({doc:t}){var n;let r=t.documentElement,i=(n=t.defaultView)!=null?n:window;e=Math.max(0,i.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,i=Math.max(0,r.clientWidth-r.offsetWidth),a=Math.max(0,e-i);n.style(r,"paddingRight",`${a}px`)}}}function Zle(){return kA()?{before({doc:e,d:t,meta:n}){function r(i){return n.containers.flatMap(a=>a()).some(a=>a.contains(i))}t.microTask(()=>{var i;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let l=Zn();l.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>l.dispose()))}let a=(i=window.scrollY)!=null?i:window.pageYOffset,o=null;t.addEventListener(e,"click",l=>{if(l.target instanceof HTMLElement)try{let s=l.target.closest("a");if(!s)return;let{hash:u}=new URL(s.href),c=e.querySelector(u);c&&!r(c)&&(o=c)}catch{}},!0),t.addEventListener(e,"touchstart",l=>{if(l.target instanceof HTMLElement)if(r(l.target)){let s=l.target;for(;s.parentElement&&r(s.parentElement);)s=s.parentElement;t.style(s,"overscrollBehavior","contain")}else t.style(l.target,"touchAction","none")}),t.addEventListener(e,"touchmove",l=>{if(l.target instanceof HTMLElement){if(l.target.tagName==="INPUT")return;if(r(l.target)){let s=l.target;for(;s.parentElement&&s.dataset.headlessuiPortal!==""&&!(s.scrollHeight>s.clientHeight||s.scrollWidth>s.clientWidth);)s=s.parentElement;s.dataset.headlessuiPortal===""&&l.preventDefault()}else l.preventDefault()}},{passive:!1}),t.add(()=>{var l;let s=(l=window.scrollY)!=null?l:window.pageYOffset;a!==s&&window.scrollTo(0,a),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})})}}:{}}function Jle(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function ese(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Ri=$A(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Zn(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:ese(n)},i=[Zle(),Qle(),Jle()];i.forEach(({before:a})=>a==null?void 0:a(r)),i.forEach(({after:a})=>a==null?void 0:a(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Ri.subscribe(()=>{let e=Ri.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",i=n.count!==0;(i&&!r||!i&&r)&&Ri.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Ri.dispatch("TEARDOWN",n)}});function tse(e,t,n=()=>({containers:[]})){let r=PA(Ri),i=t?r.get(t):void 0,a=i?i.count>0:!1;return he(()=>{if(!(!t||!e))return Ri.dispatch("PUSH",t,n),()=>Ri.dispatch("POP",t,n)},[e,t]),a}function RA(e,t,n=()=>[document.body]){let r=Wo(e,"scroll-lock");tse(r,t,i=>{var a;return{containers:[...(a=i.containers)!=null?a:[],n]}})}function ZS(e){return[e.screenX,e.screenY]}function nse(){let e=w.useRef([-1,-1]);return{wasMoved(t){let n=ZS(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=ZS(t)}}}function rse(e=0){let[t,n]=w.useState(e),r=w.useCallback(s=>n(s),[t]),i=w.useCallback(s=>n(u=>u|s),[t]),a=w.useCallback(s=>(t&s)===s,[t]),o=w.useCallback(s=>n(u=>u&~s),[n]),l=w.useCallback(s=>n(u=>u^s),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:a,removeFlag:o,toggleFlag:l}}var ise={},JS,eE;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((JS=process==null?void 0:ise)==null?void 0:JS.NODE_ENV)==="test"&&typeof((eE=Element==null?void 0:Element.prototype)==null?void 0:eE.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
263
- `)),[]});var ase=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(ase||{});function LA(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function DA(e,t,n,r){let[i,a]=w.useState(n),{hasFlag:o,addFlag:l,removeFlag:s}=rse(e&&i?3:0),u=w.useRef(!1),c=w.useRef(!1),f=sa();return he(()=>{var d;if(e){if(n&&a(!0),!t){n&&l(3);return}return(d=r==null?void 0:r.start)==null||d.call(r,n),ose(t,{inFlight:u,prepare(){c.current?c.current=!1:c.current=u.current,u.current=!0,!c.current&&(n?(l(3),s(4)):(l(4),s(2)))},run(){c.current?n?(s(3),l(4)):(s(4),l(3)):n?s(1):l(1)},done(){var p;c.current&&typeof t.getAnimations=="function"&&t.getAnimations().length>0||(u.current=!1,s(7),n||a(!1),(p=r==null?void 0:r.end)==null||p.call(r,n))}})}},[e,n,t,f]),e?[i,{closed:o(1),enter:o(2),leave:o(4),transition:o(2)||o(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function ose(e,{prepare:t,run:n,done:r,inFlight:i}){let a=Zn();return sse(e,{prepare:t,inFlight:i}),a.nextFrame(()=>{n(),a.requestAnimationFrame(()=>{a.add(lse(e,r))})}),a.dispose}function lse(e,t){var n,r;let i=Zn();if(!e)return i.dispose;let a=!1;i.add(()=>{a=!0});let o=(r=(n=e.getAnimations)==null?void 0:n.call(e).filter(l=>l instanceof CSSTransition))!=null?r:[];return o.length===0?(t(),i.dispose):(Promise.allSettled(o.map(l=>l.finished)).then(()=>{a||t()}),i.dispose)}function sse(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}function use(e,{container:t,accept:n,walk:r}){let i=w.useRef(n),a=w.useRef(r);w.useEffect(()=>{i.current=n,a.current=r},[n,r]),he(()=>{if(!t||!e)return;let o=vi(t);if(!o)return;let l=i.current,s=a.current,u=Object.assign(f=>l(f),{acceptNode:l}),c=o.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,u,!1);for(;c.nextNode();)s(c.currentNode)},[t,e,i,a])}function Z0(e,t){let n=w.useRef([]),r=Q(e);w.useEffect(()=>{let i=[...n.current];for(let[a,o]of t.entries())if(n.current[a]!==o){let l=r(t,i);return n.current=t,l}},[r,...t])}function cse(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}const FA={...mc},fse=FA.useInsertionEffect,dse=fse||(e=>e());function BA(e){const t=w.useRef(()=>{});return dse(()=>{t.current=e}),w.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var xg=typeof document<"u"?w.useLayoutEffect:w.useEffect;let tE=!1,pse=0;const nE=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+pse++;function hse(){const[e,t]=w.useState(()=>tE?nE():void 0);return xg(()=>{e==null&&t(nE())},[]),w.useEffect(()=>{tE=!0},[]),e}const mse=FA.useId,vse=mse||hse;function gse(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const yse=w.createContext(null),xse=w.createContext(null),bse=()=>{var e;return((e=w.useContext(yse))==null?void 0:e.id)||null},wse=()=>w.useContext(xse),_se="data-floating-ui-focusable";function Sse(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=vse(),a=w.useRef({}),[o]=w.useState(()=>gse()),l=bse()!=null,[s,u]=w.useState(r.reference),c=BA((p,h,m)=>{a.current.openEvent=p?h:void 0,o.emit("openchange",{open:p,event:h,reason:m,nested:l}),n==null||n(p,h,m)}),f=w.useMemo(()=>({setPositionReference:u}),[]),d=w.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return w.useMemo(()=>({dataRef:a,open:t,onOpenChange:c,elements:d,events:o,floatingId:i,refs:f}),[t,c,d,o,i,f])}function Ese(e){e===void 0&&(e={});const{nodeId:t}=e,n=Sse({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,o]=w.useState(null),[l,s]=w.useState(null),c=(i==null?void 0:i.domReference)||a,f=w.useRef(null),d=wse();xg(()=>{c&&(f.current=c)},[c]);const p=QT({...e,elements:{...i,...l&&{reference:l}}}),h=w.useCallback(x=>{const E=de(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),contextElement:x}:x;s(E),p.refs.setReference(E)},[p.refs]),m=w.useCallback(x=>{(de(x)||x===null)&&(f.current=x,o(x)),(de(p.refs.reference.current)||p.refs.reference.current===null||x!==null&&!de(x))&&p.refs.setReference(x)},[p.refs]),b=w.useMemo(()=>({...p.refs,setReference:m,setPositionReference:h,domReference:f}),[p.refs,m,h]),v=w.useMemo(()=>({...p.elements,domReference:c}),[p.elements,c]),y=w.useMemo(()=>({...p,...r,refs:b,elements:v,nodeId:t}),[p,b,v,t,r]);return xg(()=>{r.dataRef.current.floatingContext=y;const x=d==null?void 0:d.nodesRef.current.find(E=>E.id===t);x&&(x.context=y)}),w.useMemo(()=>({...p,context:y,refs:b,elements:v}),[p,b,v,y])}const rE="active",iE="selected";function Lh(e,t,n){const r=new Map,i=n==="item";let a=e;if(i&&e){const{[rE]:o,[iE]:l,...s}=e;a=s}return{...n==="floating"&&{tabIndex:-1,[_se]:""},...a,...t.map(o=>{const l=o?o[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((o,l)=>(l&&Object.entries(l).forEach(s=>{let[u,c]=s;if(!(i&&[rE,iE].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof c=="function"){var f;(f=r.get(u))==null||f.push(c),o[u]=function(){for(var d,p=arguments.length,h=new Array(p),m=0;m<p;m++)h[m]=arguments[m];return(d=r.get(u))==null?void 0:d.map(b=>b(...h)).find(b=>b!==void 0)}}}else o[u]=c}),o),{})}}function Ose(e){e===void 0&&(e=[]);const t=e.map(l=>l==null?void 0:l.reference),n=e.map(l=>l==null?void 0:l.floating),r=e.map(l=>l==null?void 0:l.item),i=w.useCallback(l=>Lh(l,e,"reference"),t),a=w.useCallback(l=>Lh(l,e,"floating"),n),o=w.useCallback(l=>Lh(l,e,"item"),r);return w.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}function aE(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const $se=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:i,offset:a=0,index:o=0,minItemsVisible:l=4,referenceOverflowThreshold:s=0,scrollRef:u,...c}=la(e,t),{rects:f,elements:{floating:d}}=t,p=n.current[o],h=(u==null?void 0:u.current)||d,m=d.clientTop||h.clientTop,b=d.clientTop!==0,v=h.clientTop!==0,y=d===h;if(!p)return{};const x={...t,...await B0(-p.offsetTop-d.clientTop-f.reference.height/2-p.offsetHeight/2-a).fn(t)},E=await Ph(aE(x,h.scrollHeight+m+d.clientTop),c),_=await Ph(x,{...c,elementContext:"reference"}),S=vt(0,E.top),O=x.y+S,C=(h.scrollHeight>h.clientHeight?A=>A:Rs)(vt(0,h.scrollHeight+(b&&y||v?m*2:0)-S-vt(0,E.bottom)));if(h.style.maxHeight=C+"px",h.scrollTop=S,i){const A=h.offsetHeight<p.offsetHeight*Yi(l,n.current.length)-1||_.top>=-s||_.bottom>=-s;Ht.flushSync(()=>i(A))}return r&&(r.current=await Ph(aE({...x,y:O},h.offsetHeight+m+d.clientTop),c)),{y:O}}});function Pse(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:a,scrollRef:o,onChange:l}=t,s=BA(l),u=w.useRef(!1),c=w.useRef(null),f=w.useRef(null);w.useEffect(()=>{if(!i)return;function p(m){if(m.ctrlKey||!h||a.current==null)return;const b=m.deltaY,v=a.current.top>=-.5,y=a.current.bottom>=-.5,x=h.scrollHeight-h.clientHeight,E=b<0?-1:1,_=b<0?"max":"min";h.scrollHeight<=h.clientHeight||(!v&&b>0||!y&&b<0?(m.preventDefault(),Ht.flushSync(()=>{s(S=>S+Math[_](b,x*E))})):/firefox/i.test(cse())&&(h.scrollTop+=b))}const h=(o==null?void 0:o.current)||r.floating;if(n&&h)return h.addEventListener("wheel",p),requestAnimationFrame(()=>{c.current=h.scrollTop,a.current!=null&&(f.current={...a.current})}),()=>{c.current=null,f.current=null,h.removeEventListener("wheel",p)}},[i,n,r.floating,a,o,s]);const d=w.useMemo(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const p=(o==null?void 0:o.current)||r.floating;if(!(!a.current||!p||!u.current)){if(c.current!==null){const h=p.scrollTop-c.current;(a.current.bottom<-.5&&h<-1||a.current.top<-.5&&h>1)&&Ht.flushSync(()=>s(m=>m+h))}requestAnimationFrame(()=>{c.current=p.scrollTop})}}}),[r.floating,s,a,o]);return w.useMemo(()=>i?{floating:d}:{},[i,d])}let Ko=w.createContext({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Ko.displayName="FloatingContext";let J0=w.createContext(null);J0.displayName="PlacementContext";function jse(e){return w.useMemo(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function Tse(){return w.useContext(Ko).setReference}function Ase(){return w.useContext(Ko).getReferenceProps}function Cse(){let{getFloatingProps:e,slot:t}=w.useContext(Ko);return w.useCallback((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function kse(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=w.useContext(J0),n=w.useMemo(()=>e,[JSON.stringify(e,(i,a)=>{var o;return(o=a==null?void 0:a.outerHTML)!=null?o:a})]);he(()=>{t==null||t(n??null)},[t,n]);let r=w.useContext(Ko);return w.useMemo(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}let oE=4;function Nse({children:e,enabled:t=!0}){let[n,r]=w.useState(null),[i,a]=w.useState(0),o=w.useRef(null),[l,s]=w.useState(null);Mse(l);let u=t&&n!==null&&l!==null,{to:c="bottom",gap:f=0,offset:d=0,padding:p=0,inner:h}=Ise(n,l),[m,b="center"]=c.split(" ");he(()=>{u&&a(0)},[u]);let{refs:v,floatingStyles:y,context:x}=Ese({open:u,placement:m==="selection"?b==="center"?"bottom":`bottom-${b}`:b==="center"?`${m}`:`${m}-${b}`,strategy:"absolute",transform:!1,middleware:[B0({mainAxis:m==="selection"?0:f,crossAxis:d}),ZT({padding:p}),m!=="selection"&&loe({padding:p}),m==="selection"&&h?$se({...h,padding:p,overflowRef:o,offset:i,minItemsVisible:oE,referenceOverflowThreshold:p,onFallbackChange(A){var N,I;if(!A)return;let D=x.elements.floating;if(!D)return;let M=parseFloat(getComputedStyle(D).scrollPaddingBottom)||0,F=Math.min(oE,D.childElementCount),R=0,P=0;for(let k of(I=(N=x.elements.floating)==null?void 0:N.childNodes)!=null?I:[])if(k instanceof HTMLElement){let B=k.offsetTop,L=B+k.clientHeight+M,U=D.scrollTop,V=U+D.clientHeight;if(B>=U&&L<=V)F--;else{P=Math.max(0,Math.min(L,V)-Math.max(B,U)),R=k.clientHeight;break}}F>=1&&a(k=>{let B=R*F-P+M;return k>=B?k:B})}}):null,soe({padding:p,apply({availableWidth:A,availableHeight:N,elements:I}){Object.assign(I.floating.style,{overflow:"auto",maxWidth:`${A}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${N}px)`})}})].filter(Boolean),whileElementsMounted:YT}),[E=m,_=b]=x.placement.split("-");m==="selection"&&(E="selection");let S=w.useMemo(()=>({anchor:[E,_].filter(Boolean).join(" ")}),[E,_]),O=Pse(x,{overflowRef:o,onChange:a}),{getReferenceProps:$,getFloatingProps:T}=Ose([O]),C=Q(A=>{s(A),v.setFloating(A)});return w.createElement(J0.Provider,{value:r},w.createElement(Ko.Provider,{value:{setFloating:C,setReference:v.setReference,styles:y,getReferenceProps:$,getFloatingProps:T,slot:S}},e))}function Mse(e){he(()=>{if(!e)return;let t=new MutationObserver(()=>{let n=window.getComputedStyle(e).maxHeight,r=parseFloat(n);if(isNaN(r))return;let i=parseInt(n);isNaN(i)||r!==i&&(e.style.maxHeight=`${Math.ceil(r)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function Ise(e,t){var n,r,i;let a=Dh((n=e==null?void 0:e.gap)!=null?n:"var(--anchor-gap, 0)",t),o=Dh((r=e==null?void 0:e.offset)!=null?r:"var(--anchor-offset, 0)",t),l=Dh((i=e==null?void 0:e.padding)!=null?i:"var(--anchor-padding, 0)",t);return{...e,gap:a,offset:o,padding:l}}function Dh(e,t,n=void 0){let r=sa(),i=Q((s,u)=>{if(s==null)return[n,null];if(typeof s=="number")return[s,null];if(typeof s=="string"){if(!u)return[n,null];let c=lE(s,u);return[c,f=>{let d=zA(s);{let p=d.map(h=>window.getComputedStyle(u).getPropertyValue(h));r.requestAnimationFrame(function h(){r.nextFrame(h);let m=!1;for(let[v,y]of d.entries()){let x=window.getComputedStyle(u).getPropertyValue(y);if(p[v]!==x){p[v]=x,m=!0;break}}if(!m)return;let b=lE(s,u);c!==b&&(f(b),c=b)})}return r.dispose}]}return[n,null]}),a=w.useMemo(()=>i(e,t)[0],[e,t]),[o=a,l]=w.useState();return he(()=>{let[s,u]=i(e,t);if(l(s),!!u)return u(l)},[e,t]),o}function zA(e){let t=/var\((.*)\)/.exec(e);if(t){let n=t[1].indexOf(",");if(n===-1)return[t[1]];let r=t[1].slice(0,n).trim(),i=t[1].slice(n+1).trim();return i?[r,...zA(i)]:[r]}return[]}function lE(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}let mp=w.createContext(null);mp.displayName="OpenClosedContext";var Et=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Et||{});function du(){return w.useContext(mp)}function UA({value:e,children:t}){return j.createElement(mp.Provider,{value:e},t)}function Rse({children:e}){return j.createElement(mp.Provider,{value:null},e)}function Lse(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Hr=[];Lse(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||Hr[0]===t.target)return;let n=t.target;n=n.closest(Kf),Hr.unshift(n??t.target),Hr=Hr.filter(r=>r!=null&&r.isConnected),Hr.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Dse(e){throw new Error("Unexpected object: "+e)}var gt=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(gt||{});function Fh(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1;switch(e.focus){case 0:{for(let a=0;a<n.length;++a)if(!t.resolveDisabled(n[a],a,n))return a;return r}case 1:{i===-1&&(i=n.length);for(let a=i-1;a>=0;--a)if(!t.resolveDisabled(n[a],a,n))return a;return r}case 2:{for(let a=i+1;a<n.length;++a)if(!t.resolveDisabled(n[a],a,n))return a;return r}case 3:{for(let a=n.length-1;a>=0;--a)if(!t.resolveDisabled(n[a],a,n))return a;return r}case 4:{for(let a=0;a<n.length;++a)if(t.resolveId(n[a],a,n)===e.id)return a;return r}case 5:return null;default:Dse(e)}}function HA(e){let t=Q(e),n=w.useRef(!1);w.useEffect(()=>(n.current=!1,()=>{n.current=!0,fp(()=>{n.current&&t()})}),[t])}function Fse(){let e=typeof document>"u";return"useSyncExternalStore"in mc?(t=>t.useSyncExternalStore)(mc)(()=>()=>{},()=>!1,()=>!e):!1}function pu(){let e=Fse(),[t,n]=w.useState(zi.isHandoffComplete);return t&&zi.isHandoffComplete===!1&&n(!1),w.useEffect(()=>{t!==!0&&n(!0)},[t]),w.useEffect(()=>zi.handoff(),[]),e?!1:t}let WA=w.createContext(!1);function Bse(){return w.useContext(WA)}function sE(e){return j.createElement(WA.Provider,{value:e.force},e.children)}function zse(e){let t=Bse(),n=w.useContext(KA),r=Vo(e),[i,a]=w.useState(()=>{var o;if(!t&&n!==null)return(o=n.current)!=null?o:null;if(zi.isServer)return null;let l=r==null?void 0:r.getElementById("headlessui-portal-root");if(l)return l;if(r===null)return null;let s=r.createElement("div");return s.setAttribute("id","headlessui-portal-root"),r.body.appendChild(s)});return w.useEffect(()=>{i!==null&&(r!=null&&r.body.contains(i)||r==null||r.body.appendChild(i))},[i,r]),w.useEffect(()=>{t||n!==null&&a(n.current)},[n,a,t]),i}let VA=w.Fragment,Use=Ee(function(e,t){let n=e,r=w.useRef(null),i=ot(Ele(f=>{r.current=f}),t),a=Vo(r),o=zse(r),[l]=w.useState(()=>{var f;return zi.isServer?null:(f=a==null?void 0:a.createElement("div"))!=null?f:null}),s=w.useContext(bg),u=pu();he(()=>{!o||!l||o.contains(l)||(l.setAttribute("data-headlessui-portal",""),o.appendChild(l))},[o,l]),he(()=>{if(l&&s)return s.register(l)},[s,l]),HA(()=>{var f;!o||!l||(l instanceof Node&&o.contains(l)&&o.removeChild(l),o.childNodes.length<=0&&((f=o.parentElement)==null||f.removeChild(o)))});let c=Re();return u?!o||!l?null:Ht.createPortal(c({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:VA,name:"Portal"}),l):null});function Hse(e,t){let n=ot(t),{enabled:r=!0,...i}=e,a=Re();return r?j.createElement(Use,{...i,ref:n}):a({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:VA,name:"Portal"})}let Wse=w.Fragment,KA=w.createContext(null);function Vse(e,t){let{target:n,...r}=e,i={ref:ot(t)},a=Re();return j.createElement(KA.Provider,{value:n},a({ourProps:i,theirProps:r,defaultTag:Wse,name:"Popover.Group"}))}let bg=w.createContext(null);function Kse(){let e=w.useContext(bg),t=w.useRef([]),n=Q(a=>(t.current.push(a),e&&e.register(a),()=>r(a))),r=Q(a=>{let o=t.current.indexOf(a);o!==-1&&t.current.splice(o,1),e&&e.unregister(a)}),i=w.useMemo(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,w.useMemo(()=>function({children:a}){return j.createElement(bg.Provider,{value:i},a)},[i])]}let Gse=Ee(Hse),GA=Ee(Vse),qA=Object.assign(Gse,{Group:GA});function qse(e,t=typeof document<"u"?document.defaultView:null,n){let r=Wo(e,"escape");IA(t,"keydown",i=>{r&&(i.defaultPrevented||i.key===Ne.Escape&&n(i))})}function Yse(){var e;let[t]=w.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=w.useState((e=t==null?void 0:t.matches)!=null?e:!1);return he(()=>{if(!t)return;function i(a){r(a.matches)}return t.addEventListener("change",i),()=>t.removeEventListener("change",i)},[t]),n}function Xse({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=Vo(n),i=Q(()=>{var a,o;let l=[];for(let s of e)s!==null&&(s instanceof HTMLElement?l.push(s):"current"in s&&s.current instanceof HTMLElement&&l.push(s.current));if(t!=null&&t.current)for(let s of t.current)l.push(s);for(let s of(a=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?a:[])s!==document.body&&s!==document.head&&s instanceof HTMLElement&&s.id!=="headlessui-portal-root"&&(n&&(s.contains(n)||s.contains((o=n==null?void 0:n.getRootNode())==null?void 0:o.host))||l.some(u=>s.contains(u))||l.push(s));return l});return{resolveContainers:i,contains:Q(a=>i().some(o=>o.contains(a)))}}let YA=w.createContext(null);function uE({children:e,node:t}){let[n,r]=w.useState(null),i=XA(t??n);return j.createElement(YA.Provider,{value:i},e,i===null&&j.createElement(So,{features:ea.Hidden,ref:a=>{var o,l;if(a){for(let s of(l=(o=vi(a))==null?void 0:o.querySelectorAll("html > *, body > *"))!=null?l:[])if(s!==document.body&&s!==document.head&&s instanceof HTMLElement&&s!=null&&s.contains(a)){r(s);break}}}}))}function XA(e=null){var t;return(t=w.useContext(YA))!=null?t:e}function ex(){let e=w.useRef(!1);return he(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var xl=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(xl||{});function Qse(){let e=w.useRef(0);return NA(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function QA(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let Zse="div";var ji=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(ji||{});function Jse(e,t){let n=w.useRef(null),r=ot(n,t),{initialFocus:i,initialFocusFallback:a,containers:o,features:l=15,...s}=e;pu()||(l=0);let u=Vo(n);rue(l,{ownerDocument:u});let c=iue(l,{ownerDocument:u,container:n,initialFocus:i,initialFocusFallback:a});aue(l,{ownerDocument:u,container:n,containers:o,previousActiveElement:c});let f=Qse(),d=Q(y=>{let x=n.current;x&&(E=>E())(()=>{jn(f.current,{[xl.Forwards]:()=>{ai(x,_t.First,{skipElements:[y.relatedTarget,a]})},[xl.Backwards]:()=>{ai(x,_t.Last,{skipElements:[y.relatedTarget,a]})}})})}),p=Wo(!!(l&2),"focus-trap#tab-lock"),h=sa(),m=w.useRef(!1),b={ref:r,onKeyDown(y){y.key=="Tab"&&(m.current=!0,h.requestAnimationFrame(()=>{m.current=!1}))},onBlur(y){if(!(l&4))return;let x=QA(o);n.current instanceof HTMLElement&&x.add(n.current);let E=y.relatedTarget;E instanceof HTMLElement&&E.dataset.headlessuiFocusGuard!=="true"&&(ZA(x,E)||(m.current?ai(n.current,jn(f.current,{[xl.Forwards]:()=>_t.Next,[xl.Backwards]:()=>_t.Previous})|_t.WrapAround,{relativeTo:y.target}):y.target instanceof HTMLElement&&Gn(y.target)))}},v=Re();return j.createElement(j.Fragment,null,p&&j.createElement(So,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:ea.Focusable}),v({ourProps:b,theirProps:s,defaultTag:Zse,name:"FocusTrap"}),p&&j.createElement(So,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:ea.Focusable}))}let eue=Ee(Jse),tue=Object.assign(eue,{features:ji});function nue(e=!0){let t=w.useRef(Hr.slice());return Z0(([n],[r])=>{r===!0&&n===!1&&fp(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=Hr.slice())},[e,Hr,t]),Q(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function rue(e,{ownerDocument:t}){let n=!!(e&8),r=nue(n);Z0(()=>{n||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&Gn(r())},[n]),HA(()=>{n&&Gn(r())})}function iue(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:i}){let a=w.useRef(null),o=Wo(!!(e&1),"focus-trap#initial-focus"),l=ex();return Z0(()=>{if(e===0)return;if(!o){i!=null&&i.current&&Gn(i.current);return}let s=n.current;s&&fp(()=>{if(!l.current)return;let u=t==null?void 0:t.activeElement;if(r!=null&&r.current){if((r==null?void 0:r.current)===u){a.current=u;return}}else if(s.contains(u)){a.current=u;return}if(r!=null&&r.current)Gn(r.current);else{if(e&16){if(ai(s,_t.First|_t.AutoFocus)!==Ds.Error)return}else if(ai(s,_t.First)!==Ds.Error)return;if(i!=null&&i.current&&(Gn(i.current),(t==null?void 0:t.activeElement)===i.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}a.current=t==null?void 0:t.activeElement})},[i,o,e]),a}function aue(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:i}){let a=ex(),o=!!(e&4);IA(t==null?void 0:t.defaultView,"focus",l=>{if(!o||!a.current)return;let s=QA(r);n.current instanceof HTMLElement&&s.add(n.current);let u=i.current;if(!u)return;let c=l.target;c&&c instanceof HTMLElement?ZA(s,c)?(i.current=c,Gn(c)):(l.preventDefault(),l.stopPropagation(),Gn(u)):Gn(i.current)},!0)}function ZA(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function JA(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:tC)!==w.Fragment||j.Children.count(e.children)===1}let vp=w.createContext(null);vp.displayName="TransitionContext";var oue=(e=>(e.Visible="visible",e.Hidden="hidden",e))(oue||{});function lue(){let e=w.useContext(vp);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function sue(){let e=w.useContext(gp);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let gp=w.createContext(null);gp.displayName="NestingContext";function yp(e){return"children"in e?yp(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function eC(e,t){let n=Mr(e),r=w.useRef([]),i=ex(),a=sa(),o=Q((p,h=Gr.Hidden)=>{let m=r.current.findIndex(({el:b})=>b===p);m!==-1&&(jn(h,{[Gr.Unmount](){r.current.splice(m,1)},[Gr.Hidden](){r.current[m].state="hidden"}}),a.microTask(()=>{var b;!yp(r)&&i.current&&((b=n.current)==null||b.call(n))}))}),l=Q(p=>{let h=r.current.find(({el:m})=>m===p);return h?h.state!=="visible"&&(h.state="visible"):r.current.push({el:p,state:"visible"}),()=>o(p,Gr.Unmount)}),s=w.useRef([]),u=w.useRef(Promise.resolve()),c=w.useRef({enter:[],leave:[]}),f=Q((p,h,m)=>{s.current.splice(0),t&&(t.chains.current[h]=t.chains.current[h].filter(([b])=>b!==p)),t==null||t.chains.current[h].push([p,new Promise(b=>{s.current.push(b)})]),t==null||t.chains.current[h].push([p,new Promise(b=>{Promise.all(c.current[h].map(([v,y])=>y)).then(()=>b())})]),h==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>m(h)):m(h)}),d=Q((p,h,m)=>{Promise.all(c.current[h].splice(0).map(([b,v])=>v)).then(()=>{var b;(b=s.current.shift())==null||b()}).then(()=>m(h))});return w.useMemo(()=>({children:r,register:l,unregister:o,onStart:f,onStop:d,wait:u,chains:c}),[l,o,r,f,d,c,u])}let tC=w.Fragment,nC=_o.RenderStrategy;function uue(e,t){var n,r;let{transition:i=!0,beforeEnter:a,afterEnter:o,beforeLeave:l,afterLeave:s,enter:u,enterFrom:c,enterTo:f,entered:d,leave:p,leaveFrom:h,leaveTo:m,...b}=e,[v,y]=w.useState(null),x=w.useRef(null),E=JA(e),_=ot(...E?[x,t,y]:t===null?[]:[t]),S=(n=b.unmount)==null||n?Gr.Unmount:Gr.Hidden,{show:O,appear:$,initial:T}=lue(),[C,A]=w.useState(O?"visible":"hidden"),N=sue(),{register:I,unregister:D}=N;he(()=>I(x),[I,x]),he(()=>{if(S===Gr.Hidden&&x.current){if(O&&C!=="visible"){A("visible");return}return jn(C,{hidden:()=>D(x),visible:()=>I(x)})}},[C,x,I,D,O,S]);let M=pu();he(()=>{if(E&&M&&C==="visible"&&x.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[x,C,M,E]);let F=T&&!$,R=$&&O&&T,P=w.useRef(!1),k=eC(()=>{P.current||(A("hidden"),D(x))},N),B=Q(Ce=>{P.current=!0;let Oe=Ce?"enter":"leave";k.onStart(x,Oe,K=>{K==="enter"?a==null||a():K==="leave"&&(l==null||l())})}),L=Q(Ce=>{let Oe=Ce?"enter":"leave";P.current=!1,k.onStop(x,Oe,K=>{K==="enter"?o==null||o():K==="leave"&&(s==null||s())}),Oe==="leave"&&!yp(k)&&(A("hidden"),D(x))});w.useEffect(()=>{E&&i||(B(O),L(O))},[O,E,i]);let U=!(!i||!E||!M||F),[,V]=DA(U,v,O,{start:B,end:L}),re=Br({ref:_,className:((r=gg(b.className,R&&u,R&&c,V.enter&&u,V.enter&&V.closed&&c,V.enter&&!V.closed&&f,V.leave&&p,V.leave&&!V.closed&&h,V.leave&&V.closed&&m,!V.transition&&O&&d))==null?void 0:r.trim())||void 0,...LA(V)}),ie=0;C==="visible"&&(ie|=Et.Open),C==="hidden"&&(ie|=Et.Closed),V.enter&&(ie|=Et.Opening),V.leave&&(ie|=Et.Closing);let J=Re();return j.createElement(gp.Provider,{value:k},j.createElement(UA,{value:ie},J({ourProps:re,theirProps:b,defaultTag:tC,features:nC,visible:C==="visible",name:"Transition.Child"})))}function cue(e,t){let{show:n,appear:r=!1,unmount:i=!0,...a}=e,o=w.useRef(null),l=JA(e),s=ot(...l?[o,t]:t===null?[]:[t]);pu();let u=du();if(n===void 0&&u!==null&&(n=(u&Et.Open)===Et.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,f]=w.useState(n?"visible":"hidden"),d=eC(()=>{n||f("hidden")}),[p,h]=w.useState(!0),m=w.useRef([n]);he(()=>{p!==!1&&m.current[m.current.length-1]!==n&&(m.current.push(n),h(!1))},[m,n]);let b=w.useMemo(()=>({show:n,appear:r,initial:p}),[n,r,p]);he(()=>{n?f("visible"):!yp(d)&&o.current!==null&&f("hidden")},[n,d]);let v={unmount:i},y=Q(()=>{var _;p&&h(!1),(_=e.beforeEnter)==null||_.call(e)}),x=Q(()=>{var _;p&&h(!1),(_=e.beforeLeave)==null||_.call(e)}),E=Re();return j.createElement(gp.Provider,{value:d},j.createElement(vp.Provider,{value:b},E({ourProps:{...v,as:w.Fragment,children:j.createElement(rC,{ref:s,...v,...a,beforeEnter:y,beforeLeave:x})},theirProps:{},defaultTag:w.Fragment,features:nC,visible:c==="visible",name:"Transition"})))}function fue(e,t){let n=w.useContext(vp)!==null,r=du()!==null;return j.createElement(j.Fragment,null,!n&&r?j.createElement(wg,{ref:t,...e}):j.createElement(rC,{ref:t,...e}))}let wg=Ee(cue),rC=Ee(uue),xp=Ee(fue),due=Object.assign(wg,{Child:xp,Root:wg});var pue=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(pue||{}),hue=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(hue||{});let mue={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},tx=w.createContext(null);tx.displayName="DialogContext";function bp(e){let t=w.useContext(tx);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,bp),n}return t}function vue(e,t){return jn(t.type,mue,e,t)}let cE=Ee(function(e,t){let n=w.useId(),{id:r=`headlessui-dialog-${n}`,open:i,onClose:a,initialFocus:o,role:l="dialog",autoFocus:s=!0,__demoMode:u=!1,unmount:c=!1,...f}=e,d=w.useRef(!1);l=function(){return l==="dialog"||l==="alertdialog"?l:(d.current||(d.current=!0,console.warn(`Invalid role [${l}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let p=du();i===void 0&&p!==null&&(i=(p&Et.Open)===Et.Open);let h=w.useRef(null),m=ot(h,t),b=Vo(h),v=i?0:1,[y,x]=w.useReducer(vue,{titleId:null,descriptionId:null,panelRef:w.createRef()}),E=Q(()=>a(!1)),_=Q(L=>x({type:0,id:L})),S=pu()?v===0:!1,[O,$]=Kse(),T={get current(){var L;return(L=y.panelRef.current)!=null?L:h.current}},C=XA(),{resolveContainers:A}=Xse({mainTreeNode:C,portals:O,defaultContainers:[T]}),N=p!==null?(p&Et.Closing)===Et.Closing:!1;jA(u||N?!1:S,{allowed:Q(()=>{var L,U;return[(U=(L=h.current)==null?void 0:L.closest("[data-headlessui-portal]"))!=null?U:null]}),disallowed:Q(()=>{var L;return[(L=C==null?void 0:C.closest("body > *:not(#headlessui-portal-root)"))!=null?L:null]})}),MA(S,A,L=>{L.preventDefault(),E()}),qse(S,b==null?void 0:b.defaultView,L=>{L.preventDefault(),L.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),E()}),RA(u||N?!1:S,b,A),TA(S,h,E);let[I,D]=cu(),M=w.useMemo(()=>[{dialogState:v,close:E,setTitleId:_,unmount:c},y],[v,y,E,_,c]),F=w.useMemo(()=>({open:v===0}),[v]),R={ref:m,id:r,role:l,tabIndex:-1,"aria-modal":u?void 0:v===0?!0:void 0,"aria-labelledby":y.titleId,"aria-describedby":I,unmount:c},P=!Yse(),k=ji.None;S&&!u&&(k|=ji.RestoreFocus,k|=ji.TabLock,s&&(k|=ji.AutoFocus),P&&(k|=ji.InitialFocus));let B=Re();return j.createElement(Rse,null,j.createElement(sE,{force:!0},j.createElement(qA,null,j.createElement(tx.Provider,{value:M},j.createElement(GA,{target:h},j.createElement(sE,{force:!1},j.createElement(D,{slot:F},j.createElement($,null,j.createElement(tue,{initialFocus:o,initialFocusFallback:h,containers:A,features:k},j.createElement(Mle,{value:E},B({ourProps:R,theirProps:f,slot:F,defaultTag:gue,features:yue,visible:v===0,name:"Dialog"})))))))))))}),gue="div",yue=_o.RenderStrategy|_o.Static;function xue(e,t){let{transition:n=!1,open:r,...i}=e,a=du(),o=e.hasOwnProperty("open")||a!==null,l=e.hasOwnProperty("onClose");if(!o&&!l)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!o)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!l)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!a&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(r!==void 0||n)&&!i.static?j.createElement(uE,null,j.createElement(due,{show:r,transition:n,unmount:i.unmount},j.createElement(cE,{ref:t,...i}))):j.createElement(uE,null,j.createElement(cE,{ref:t,open:r,...i}))}let bue="div";function wue(e,t){let n=w.useId(),{id:r=`headlessui-dialog-panel-${n}`,transition:i=!1,...a}=e,[{dialogState:o,unmount:l},s]=bp("Dialog.Panel"),u=ot(t,s.panelRef),c=w.useMemo(()=>({open:o===0}),[o]),f=Q(b=>{b.stopPropagation()}),d={ref:u,id:r,onClick:f},p=i?xp:w.Fragment,h=i?{unmount:l}:{},m=Re();return j.createElement(p,{...h},m({ourProps:d,theirProps:a,slot:c,defaultTag:bue,name:"Dialog.Panel"}))}let _ue="div";function Sue(e,t){let{transition:n=!1,...r}=e,[{dialogState:i,unmount:a}]=bp("Dialog.Backdrop"),o=w.useMemo(()=>({open:i===0}),[i]),l={ref:t,"aria-hidden":!0},s=n?xp:w.Fragment,u=n?{unmount:a}:{},c=Re();return j.createElement(s,{...u},c({ourProps:l,theirProps:r,slot:o,defaultTag:_ue,name:"Dialog.Backdrop"}))}let Eue="h2";function Oue(e,t){let n=w.useId(),{id:r=`headlessui-dialog-title-${n}`,...i}=e,[{dialogState:a,setTitleId:o}]=bp("Dialog.Title"),l=ot(t);w.useEffect(()=>(o(r),()=>o(null)),[r,o]);let s=w.useMemo(()=>({open:a===0}),[a]),u={ref:l,id:r};return Re()({ourProps:u,theirProps:i,slot:s,defaultTag:Eue,name:"Dialog.Title"})}let $ue=Ee(xue),iC=Ee(wue),Pue=Ee(Sue),jue=Ee(Oue),Tue=Object.assign($ue,{Panel:iC,Title:jue,Description:EA}),Aue="div";function Cue(e,t){let n=`headlessui-control-${w.useId()}`,[r,i]=fu(),[a,o]=cu(),l=uu(),{disabled:s=l||!1,...u}=e,c=w.useMemo(()=>({disabled:s}),[s]),f={ref:t,disabled:s||void 0,"aria-disabled":s||void 0},d=Re();return j.createElement(sle,{value:s},j.createElement(i,{value:r},j.createElement(o,{value:a},j.createElement(_le,{id:n},d({ourProps:f,theirProps:{...u,children:j.createElement(yle,null,typeof u.children=="function"?u.children(c):u.children)},slot:c,defaultTag:Aue,name:"Field"})))))}let kue=Ee(Cue);function Nue(e,t){let n=w.useRef({left:0,top:0});if(he(()=>{if(!t)return;let i=t.getBoundingClientRect();i&&(n.current=i)},[e,t]),t==null||!e||t===document.activeElement)return!1;let r=t.getBoundingClientRect();return r.top!==n.current.top||r.left!==n.current.left}let fE=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function dE(e){var t,n;let r=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let a=!1;for(let l of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))l.remove(),a=!0;let o=a?(n=i.innerText)!=null?n:"":r;return fE.test(o)&&(o=o.replace(fE,"")),o}function Mue(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(i=>{let a=document.getElementById(i);if(a){let o=a.getAttribute("aria-label");return typeof o=="string"?o.trim():dE(a).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return dE(e).trim()}function Iue(e){let t=w.useRef(""),n=w.useRef("");return Q(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let a=Mue(r).trim().toLowerCase();return t.current=i,n.current=a,a})}var Rue=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Rue||{}),Lue=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Lue||{}),Due=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetItemsElement=8]="SetItemsElement",e))(Due||{});function Bh(e,t=n=>n){let n=e.activeItemIndex!==null?e.items[e.activeItemIndex]:null,r=Q0(t(e.items.slice()),a=>a.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return i===-1&&(i=null),{items:r,activeItemIndex:i}}let Fue={1(e){return e.menuState===1?e:{...e,activeItemIndex:null,menuState:1}},0(e){return e.menuState===0?e:{...e,__demoMode:!1,menuState:0}},2:(e,t)=>{var n,r,i,a,o;if(e.menuState===1)return e;let l={...e,searchQuery:"",activationTrigger:(n=t.trigger)!=null?n:1,__demoMode:!1};if(t.focus===gt.Nothing)return{...l,activeItemIndex:null};if(t.focus===gt.Specific)return{...l,activeItemIndex:e.items.findIndex(c=>c.id===t.id)};if(t.focus===gt.Previous){let c=e.activeItemIndex;if(c!==null){let f=e.items[c].dataRef.current.domRef,d=Fh(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:p=>p.id,resolveDisabled:p=>p.dataRef.current.disabled});if(d!==null){let p=e.items[d].dataRef.current.domRef;if(((r=f.current)==null?void 0:r.previousElementSibling)===p.current||((i=p.current)==null?void 0:i.previousElementSibling)===null)return{...l,activeItemIndex:d}}}}else if(t.focus===gt.Next){let c=e.activeItemIndex;if(c!==null){let f=e.items[c].dataRef.current.domRef,d=Fh(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:p=>p.id,resolveDisabled:p=>p.dataRef.current.disabled});if(d!==null){let p=e.items[d].dataRef.current.domRef;if(((a=f.current)==null?void 0:a.nextElementSibling)===p.current||((o=p.current)==null?void 0:o.nextElementSibling)===null)return{...l,activeItemIndex:d}}}}let s=Bh(e),u=Fh(t,{resolveItems:()=>s.items,resolveActiveIndex:()=>s.activeItemIndex,resolveId:c=>c.id,resolveDisabled:c=>c.dataRef.current.disabled});return{...l,...s,activeItemIndex:u}},3:(e,t)=>{let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(e.activeItemIndex!==null?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find(o=>{var l;return((l=o.dataRef.current.textValue)==null?void 0:l.startsWith(r))&&!o.dataRef.current.disabled}),a=i?e.items.indexOf(i):-1;return a===-1||a===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:a,activationTrigger:1}},4(e){return e.searchQuery===""?e:{...e,searchQuery:"",searchActiveItemIndex:null}},5:(e,t)=>{let n=Bh(e,r=>[...r,{id:t.id,dataRef:t.dataRef}]);return{...e,...n}},6:(e,t)=>{let n=Bh(e,r=>{let i=r.findIndex(a=>a.id===t.id);return i!==-1&&r.splice(i,1),r});return{...e,...n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.itemsElement===t.element?e:{...e,itemsElement:t.element}},nx=w.createContext(null);nx.displayName="MenuContext";function wp(e){let t=w.useContext(nx);if(t===null){let n=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,wp),n}return t}function Bue(e,t){return jn(t.type,Fue,e,t)}let zue=w.Fragment;function Uue(e,t){let{__demoMode:n=!1,...r}=e,i=w.useReducer(Bue,{__demoMode:n,menuState:n?0:1,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:a,itemsElement:o,buttonElement:l},s]=i,u=ot(t);MA(a===0,[l,o],(h,m)=>{s({type:1}),X0(m,Y0.Loose)||(h.preventDefault(),l==null||l.focus())});let c=Q(()=>{s({type:1})}),f=w.useMemo(()=>({open:a===0,close:c}),[a,c]),d={ref:u},p=Re();return j.createElement(Nse,null,j.createElement(nx.Provider,{value:i},j.createElement(UA,{value:jn(a,{0:Et.Open,1:Et.Closed})},p({ourProps:d,theirProps:r,slot:f,defaultTag:zue,name:"Menu"}))))}let Hue="button";function Wue(e,t){var n;let r=w.useId(),{id:i=`headlessui-menu-button-${r}`,disabled:a=!1,autoFocus:o=!1,...l}=e,[s,u]=wp("Menu.Button"),c=Ase(),f=ot(t,Tse(),Q(O=>u({type:7,element:O}))),d=Q(O=>{switch(O.key){case Ne.Space:case Ne.Enter:case Ne.ArrowDown:O.preventDefault(),O.stopPropagation(),Ht.flushSync(()=>u({type:0})),u({type:2,focus:gt.First});break;case Ne.ArrowUp:O.preventDefault(),O.stopPropagation(),Ht.flushSync(()=>u({type:0})),u({type:2,focus:gt.Last});break}}),p=Q(O=>{switch(O.key){case Ne.Space:O.preventDefault();break}}),h=Q(O=>{var $;if(G0(O.currentTarget))return O.preventDefault();a||(s.menuState===0?(Ht.flushSync(()=>u({type:1})),($=s.buttonElement)==null||$.focus({preventScroll:!0})):(O.preventDefault(),u({type:0})))}),{isFocusVisible:m,focusProps:b}=K0({autoFocus:o}),{isHovered:v,hoverProps:y}=V0({isDisabled:a}),{pressed:x,pressProps:E}=lle({disabled:a}),_=w.useMemo(()=>({open:s.menuState===0,active:x||s.menuState===0,disabled:a,hover:v,focus:m,autofocus:o}),[s,v,m,x,a,o]),S=dp(c(),{ref:f,id:i,type:Xle(e,s.buttonElement),"aria-haspopup":"menu","aria-controls":(n=s.itemsElement)==null?void 0:n.id,"aria-expanded":s.menuState===0,disabled:a||void 0,autoFocus:o,onKeyDown:d,onKeyUp:p,onClick:h},b,y,E);return Re()({ourProps:S,theirProps:l,slot:_,defaultTag:Hue,name:"Menu.Button"})}let Vue="div",Kue=_o.RenderStrategy|_o.Static;function Gue(e,t){var n,r;let i=w.useId(),{id:a=`headlessui-menu-items-${i}`,anchor:o,portal:l=!1,modal:s=!0,transition:u=!1,...c}=e,f=jse(o),[d,p]=wp("Menu.Items"),[h,m]=kse(f),b=Cse(),[v,y]=w.useState(null),x=ot(t,f?h:null,Q(P=>p({type:8,element:P})),y),E=Vo(d.itemsElement);f&&(l=!0);let _=du(),[S,O]=DA(u,v,_!==null?(_&Et.Open)===Et.Open:d.menuState===0);TA(S,d.buttonElement,()=>{p({type:1})});let $=d.__demoMode?!1:s&&d.menuState===0;RA($,E);let T=d.__demoMode?!1:s&&d.menuState===0;jA(T,{allowed:w.useCallback(()=>[d.buttonElement,d.itemsElement],[d.buttonElement,d.itemsElement])});let C=d.menuState!==0,A=Nue(C,d.buttonElement)?!1:S;w.useEffect(()=>{let P=d.itemsElement;P&&d.menuState===0&&P!==(E==null?void 0:E.activeElement)&&P.focus({preventScroll:!0})},[d.menuState,d.itemsElement,E]),use(d.menuState===0,{container:d.itemsElement,accept(P){return P.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:P.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(P){P.setAttribute("role","none")}});let N=sa(),I=Q(P=>{var k,B,L;switch(N.dispose(),P.key){case Ne.Space:if(d.searchQuery!=="")return P.preventDefault(),P.stopPropagation(),p({type:3,value:P.key});case Ne.Enter:if(P.preventDefault(),P.stopPropagation(),p({type:1}),d.activeItemIndex!==null){let{dataRef:U}=d.items[d.activeItemIndex];(B=(k=U.current)==null?void 0:k.domRef.current)==null||B.click()}CA(d.buttonElement);break;case Ne.ArrowDown:return P.preventDefault(),P.stopPropagation(),p({type:2,focus:gt.Next});case Ne.ArrowUp:return P.preventDefault(),P.stopPropagation(),p({type:2,focus:gt.Previous});case Ne.Home:case Ne.PageUp:return P.preventDefault(),P.stopPropagation(),p({type:2,focus:gt.First});case Ne.End:case Ne.PageDown:return P.preventDefault(),P.stopPropagation(),p({type:2,focus:gt.Last});case Ne.Escape:P.preventDefault(),P.stopPropagation(),Ht.flushSync(()=>p({type:1})),(L=d.buttonElement)==null||L.focus({preventScroll:!0});break;case Ne.Tab:P.preventDefault(),P.stopPropagation(),Ht.flushSync(()=>p({type:1})),Gle(d.buttonElement,P.shiftKey?_t.Previous:_t.Next);break;default:P.key.length===1&&(p({type:3,value:P.key}),N.setTimeout(()=>p({type:4}),350));break}}),D=Q(P=>{switch(P.key){case Ne.Space:P.preventDefault();break}}),M=w.useMemo(()=>({open:d.menuState===0}),[d.menuState]),F=dp(f?b():{},{"aria-activedescendant":d.activeItemIndex===null||(n=d.items[d.activeItemIndex])==null?void 0:n.id,"aria-labelledby":(r=d.buttonElement)==null?void 0:r.id,id:a,onKeyDown:I,onKeyUp:D,role:"menu",tabIndex:d.menuState===0?0:void 0,ref:x,style:{...c.style,...m,"--button-width":Dle(d.buttonElement,!0).width},...LA(O)}),R=Re();return j.createElement(qA,{enabled:l?e.static||S:!1},R({ourProps:F,theirProps:c,slot:M,defaultTag:Vue,features:Kue,visible:A,name:"Menu.Items"}))}let que=w.Fragment;function Yue(e,t){let n=w.useId(),{id:r=`headlessui-menu-item-${n}`,disabled:i=!1,...a}=e,[o,l]=wp("Menu.Item"),s=o.activeItemIndex!==null?o.items[o.activeItemIndex].id===r:!1,u=w.useRef(null),c=ot(t,u);he(()=>{if(!o.__demoMode&&o.menuState===0&&s&&o.activationTrigger!==0)return Zn().requestAnimationFrame(()=>{var A,N;(N=(A=u.current)==null?void 0:A.scrollIntoView)==null||N.call(A,{block:"nearest"})})},[o.__demoMode,u,s,o.menuState,o.activationTrigger,o.activeItemIndex]);let f=Iue(u),d=w.useRef({disabled:i,domRef:u,get textValue(){return f()}});he(()=>{d.current.disabled=i},[d,i]),he(()=>(l({type:5,id:r,dataRef:d}),()=>l({type:6,id:r})),[d,r]);let p=Q(()=>{l({type:1})}),h=Q(A=>{if(i)return A.preventDefault();l({type:1}),CA(o.buttonElement)}),m=Q(()=>{if(i)return l({type:2,focus:gt.Nothing});l({type:2,focus:gt.Specific,id:r})}),b=nse(),v=Q(A=>{b.update(A),!i&&(s||l({type:2,focus:gt.Specific,id:r,trigger:0}))}),y=Q(A=>{b.wasMoved(A)&&(i||s||l({type:2,focus:gt.Specific,id:r,trigger:0}))}),x=Q(A=>{b.wasMoved(A)&&(i||s&&l({type:2,focus:gt.Nothing}))}),[E,_]=fu(),[S,O]=cu(),$=w.useMemo(()=>({active:s,focus:s,disabled:i,close:p}),[s,i,p]),T={id:r,ref:c,role:"menuitem",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-labelledby":E,"aria-describedby":S,disabled:void 0,onClick:h,onFocus:m,onPointerEnter:v,onMouseEnter:v,onPointerMove:y,onMouseMove:y,onPointerLeave:x,onMouseLeave:x},C=Re();return j.createElement(_,null,j.createElement(O,null,C({ourProps:T,theirProps:a,slot:$,defaultTag:que,name:"Menu.Item"})))}let Xue="div";function Que(e,t){let[n,r]=fu(),i=e,a={ref:t,"aria-labelledby":n,role:"group"},o=Re();return j.createElement(r,null,o({ourProps:a,theirProps:i,slot:{},defaultTag:Xue,name:"Menu.Section"}))}let Zue="header";function Jue(e,t){let n=w.useId(),{id:r=`headlessui-menu-heading-${n}`,...i}=e,a=q0();he(()=>a.register(r),[r,a.register]);let o={id:r,ref:t,role:"presentation",...a.props};return Re()({ourProps:o,theirProps:i,slot:{},defaultTag:Zue,name:"Menu.Heading"})}let ece="div";function tce(e,t){let n=e,r={ref:t,role:"separator"};return Re()({ourProps:r,theirProps:n,slot:{},defaultTag:ece,name:"Menu.Separator"})}let nce=Ee(Uue),aC=Ee(Wue),oC=Ee(Gue),lC=Ee(Yue),rce=Ee(Que),ice=Ee(Jue),ace=Ee(tce),oce=Object.assign(nce,{Button:aC,Items:oC,Item:lC,Section:rce,Heading:ice,Separator:ace});var lce=(e=>(e[e.RegisterOption=0]="RegisterOption",e[e.UnregisterOption=1]="UnregisterOption",e))(lce||{});let sce={0(e,t){let n=[...e.options,{id:t.id,element:t.element,propsRef:t.propsRef}];return{...e,options:Q0(n,r=>r.element.current)}},1(e,t){let n=e.options.slice(),r=e.options.findIndex(i=>i.id===t.id);return r===-1?e:(n.splice(r,1),{...e,options:n})}},rx=w.createContext(null);rx.displayName="RadioGroupDataContext";function ix(e){let t=w.useContext(rx);if(t===null){let n=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ix),n}return t}let ax=w.createContext(null);ax.displayName="RadioGroupActionsContext";function ox(e){let t=w.useContext(ax);if(t===null){let n=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ox),n}return t}function uce(e,t){return jn(t.type,sce,e,t)}let cce="div";function fce(e,t){let n=w.useId(),r=uu(),{id:i=`headlessui-radiogroup-${n}`,value:a,form:o,name:l,onChange:s,by:u,disabled:c=r||!1,defaultValue:f,...d}=e,p=Rle(u),[h,m]=w.useReducer(uce,{options:[]}),b=h.options,[v,y]=fu(),[x,E]=cu(),_=w.useRef(null),S=ot(_,t),O=hle(f),[$,T]=ple(a,s,O),C=w.useMemo(()=>b.find(L=>!L.propsRef.current.disabled),[b]),A=w.useMemo(()=>b.some(L=>p(L.propsRef.current.value,$)),[b,$]),N=Q(L=>{var U;if(c||p(L,$))return!1;let V=(U=b.find(re=>p(re.propsRef.current.value,L)))==null?void 0:U.propsRef.current;return V!=null&&V.disabled?!1:(T==null||T(L),!0)}),I=Q(L=>{let U=_.current;if(!U)return;let V=vi(U),re=b.filter(ie=>ie.propsRef.current.disabled===!1).map(ie=>ie.element.current);switch(L.key){case Ne.Enter:mle(L.currentTarget);break;case Ne.ArrowLeft:case Ne.ArrowUp:if(L.preventDefault(),L.stopPropagation(),ai(re,_t.Previous|_t.WrapAround)===Ds.Success){let ie=b.find(J=>J.element.current===(V==null?void 0:V.activeElement));ie&&N(ie.propsRef.current.value)}break;case Ne.ArrowRight:case Ne.ArrowDown:if(L.preventDefault(),L.stopPropagation(),ai(re,_t.Next|_t.WrapAround)===Ds.Success){let ie=b.find(J=>J.element.current===(V==null?void 0:V.activeElement));ie&&N(ie.propsRef.current.value)}break;case Ne.Space:{L.preventDefault(),L.stopPropagation();let ie=b.find(J=>J.element.current===(V==null?void 0:V.activeElement));ie&&N(ie.propsRef.current.value)}break}}),D=Q(L=>(m({type:0,...L}),()=>m({type:1,id:L.id}))),M=w.useMemo(()=>({value:$,firstOption:C,containsCheckedOption:A,disabled:c,compare:p,...h}),[$,C,A,c,p,h]),F=w.useMemo(()=>({registerOption:D,change:N}),[D,N]),R={ref:S,id:i,role:"radiogroup","aria-labelledby":v,"aria-describedby":x,onKeyDown:I},P=w.useMemo(()=>({value:$}),[$]),k=w.useCallback(()=>{if(O!==void 0)return N(O)},[N,O]),B=Re();return j.createElement(E,{name:"RadioGroup.Description"},j.createElement(y,{name:"RadioGroup.Label"},j.createElement(ax.Provider,{value:F},j.createElement(rx.Provider,{value:M},l!=null&&j.createElement(ble,{disabled:c,data:{[l]:$||"on"},overrides:{type:"radio",checked:$!=null},form:o,onReset:k}),B({ourProps:R,theirProps:d,slot:P,defaultTag:cce,name:"RadioGroup"})))))}let dce="div";function pce(e,t){var n;let r=ix("RadioGroup.Option"),i=ox("RadioGroup.Option"),a=w.useId(),{id:o=`headlessui-radiogroup-option-${a}`,value:l,disabled:s=r.disabled||!1,autoFocus:u=!1,...c}=e,f=w.useRef(null),d=ot(f,t),[p,h]=fu(),[m,b]=cu(),v=Mr({value:l,disabled:s});he(()=>i.registerOption({id:o,element:f,propsRef:v}),[o,i,f,v]);let y=Q(N=>{var I;if(G0(N.currentTarget))return N.preventDefault();i.change(l)&&((I=f.current)==null||I.focus())}),x=((n=r.firstOption)==null?void 0:n.id)===o,{isFocusVisible:E,focusProps:_}=K0({autoFocus:u}),{isHovered:S,hoverProps:O}=V0({isDisabled:s}),$=r.compare(r.value,l),T=dp({ref:d,id:o,role:"radio","aria-checked":$?"true":"false","aria-labelledby":p,"aria-describedby":m,"aria-disabled":s?!0:void 0,tabIndex:s?-1:$||!r.containsCheckedOption&&x?0:-1,onClick:s?void 0:y,autoFocus:u},_,O),C=w.useMemo(()=>({checked:$,disabled:s,active:E,hover:S,focus:E,autofocus:u}),[$,s,S,E,u]),A=Re();return j.createElement(b,{name:"RadioGroup.Description"},j.createElement(h,{name:"RadioGroup.Label"},A({ourProps:T,theirProps:c,slot:C,defaultTag:dce,name:"RadioGroup.Option"})))}let hce="span";function mce(e,t){var n;let r=ix("Radio"),i=ox("Radio"),a=w.useId(),o=wA(),l=uu(),{id:s=o||`headlessui-radio-${a}`,value:u,disabled:c=r.disabled||l||!1,autoFocus:f=!1,...d}=e,p=w.useRef(null),h=ot(p,t),m=OA(),b=Ole(),v=Mr({value:u,disabled:c});he(()=>i.registerOption({id:s,element:p,propsRef:v}),[s,i,p,v]);let y=Q(A=>{var N;if(G0(A.currentTarget))return A.preventDefault();i.change(u)&&((N=p.current)==null||N.focus())}),{isFocusVisible:x,focusProps:E}=K0({autoFocus:f}),{isHovered:_,hoverProps:S}=V0({isDisabled:c}),O=((n=r.firstOption)==null?void 0:n.id)===s,$=r.compare(r.value,u),T=dp({ref:h,id:s,role:"radio","aria-checked":$?"true":"false","aria-labelledby":m,"aria-describedby":b,"aria-disabled":c?!0:void 0,tabIndex:c?-1:$||!r.containsCheckedOption&&O?0:-1,autoFocus:f,onClick:c?void 0:y},E,S),C=w.useMemo(()=>({checked:$,disabled:c,hover:_,focus:x,autofocus:f}),[$,c,_,x,f]);return Re()({ourProps:T,theirProps:d,slot:C,defaultTag:hce,name:"Radio"})}let vce=Ee(fce),gce=Ee(pce),sC=Ee(mce),yce=kle,xce=EA,bce=Object.assign(vce,{Option:gce,Radio:sC,Label:yce,Description:xce});const lx=({items:e,selectedItem:t,onItemSelect:n,size:r="sm"})=>g.jsx("div",{className:"relative h-full",children:g.jsxs(oce,{children:[g.jsxs(aC,{className:`inline-flex h-full w-48 justify-between items-center gap-x-1.5 rounded-md bg-white px-3 text-${r} font-medium text-gray-900 shadow-xs ring-1 ring-gray-300 hover:bg-gray-50`,children:[t,g.jsx(q$,{className:"size-4 text-gray-400","aria-hidden":"true"})]}),g.jsx(oC,{className:"absolute right-0 z-10 mt-2 w-48 origin-top-right rounded-md bg-white shadow-lg ring-1 ring-black/5 focus:outline-hidden",children:g.jsx("div",{className:"py-1",children:e.map(i=>g.jsx(lC,{children:g.jsx("button",{onClick:()=>n(i),className:`block w-full px-4 py-2 text-left text-${r} data-focus:bg-gray-100 data-focus:text-gray-900 text-gray-700`,children:i})},i))})})]})}),wce=({items:e,selectedItem:t,onItemSelect:n,size:r="sm"})=>g.jsx(bce,{value:t,onChange:n,className:`inline-flex justify-between items-center rounded-md bg-white text-${r} font-medium text-gray-900 shadow-xs ring-1 ring-gray-300`,children:e.map(i=>g.jsx(kue,{className:"flex h-full first:rounded-l-md last:rounded-r-md overflow-hidden",children:g.jsx(sC,{value:i,className:"cursor-pointer h-full data-checked:bg-gray-200 hover:bg-gray-50 flex items-center px-4 shadow-xs",children:i})},i))});function _ce({onSearch:e}){return g.jsxs("div",{className:"relative w-full md:w-[26rem] rounded-md",children:[g.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"w-5 h-5 text-gray-400",children:g.jsx("path",{fillRule:"evenodd",d:"M9 3.5a5.5 5.5 0 100 11 5.5 5.5 0 000-11zM2 9a7 7 0 1112.452 4.391l3.328 3.329a.75.75 0 11-1.06 1.06l-3.329-3.328A7 7 0 012 9z",clipRule:"evenodd"})})}),g.jsx("input",{type:"text",className:"block w-full pl-10 px-3 py-3 text-sm font-medium bg-white text-gray-900 shadow-xs rounded-md outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:-outline-offset-2 focus:outline-blue-600 w-",placeholder:"Search features...",onChange:t=>e(t.target.value)})]})}const Sce=({features:e})=>{const[t,n]=w.useState("All Teams"),[r,i]=w.useState(""),a=w.useMemo(()=>{const l=new Set;return l.add("All Teams"),Object.values(e).forEach(s=>{var u;(u=s.assignments)!=null&&u.teams&&s.assignments.teams.forEach(c=>l.add(c))}),Array.from(l)},[e]),o=w.useMemo(()=>t==="All Teams"?e:Object.fromEntries(Object.entries(e).filter(([l,s])=>{var u,c;return(c=(u=s.assignments)==null?void 0:u.teams)==null?void 0:c.includes(t)})),[e,t]);return g.jsxs("div",{className:"h-screen max-w-7xl mx-auto flex flex-col gap-8 p-4 md:p-8",children:[g.jsxs("div",{className:"flex justify-between items-center",children:[g.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:"Dashboard"}),g.jsx(lx,{items:a,selectedItem:t,onItemSelect:n})]}),g.jsx("div",{children:g.jsxs("ul",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-1 xl:grid-cols-3 gap-6",children:[g.jsx("li",{className:"px-4 py-6 border border-gray-200 shadow-xs bg-white rounded-lg",children:g.jsx(Roe,{features:o})}),g.jsx("li",{className:"px-4 py-6 border border-gray-200 shadow-xs bg-white rounded-lg",children:g.jsx(Loe,{features:o})}),g.jsx("li",{className:"px-4 py-6 border border-gray-200 shadow-xs bg-white rounded-lg",children:g.jsx(Doe,{features:o})})]})}),g.jsxs("div",{className:"flex-1 flex flex-col gap-6 h-full overflow-scroll",children:[g.jsxs("div",{className:"flex items-center justify-between gap-12",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Gi,{className:"w-5 h-5 text-gray-600","aria-hidden":"true"}),g.jsxs("span",{className:"text-sm text-gray-600 font-medium",children:["Features: ",Object.entries(o).length]})]}),g.jsx("div",{children:g.jsx(_ce,{onSearch:i})})]}),g.jsx(Foe,{features:o,searchTerm:r,teamContext:t!=="All Teams"?t:null})]})]})},Ece=({features:e})=>{const t=Object.values(e).reduce((r,i)=>{const a=i.additional_metrics.health.overall;if(a!=null){const o=iA(a);r[o]++}return r},{needsAttention:0,needsImprovement:0,healthy:0}),n=Object.entries(t).map(([r,i],a)=>({name:r,value:i,fill:[wt(rt.needsAttention).hex,wt(rt.needsImprovement).hex,wt(rt.healthy).hex][a]})).filter(({value:r})=>r>0);return g.jsxs("div",{className:"flex flex-col gap-6",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[g.jsx("div",{className:"shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:g.jsx(Ey,{className:"size-5"})}),g.jsx("span",{className:"flex pl-2",children:"Health Score"})]}),g.jsxs("div",{className:"relative shrink-0 group",children:[g.jsx(Sr,{className:"size-4 text-gray-400"}),g.jsx("div",{className:"absolute whitespace-wrap bottom-full left-1/2 transform -translate-x-1/2 mb-2 hidden group-hover:block bg-gray-700 text-white text-xs rounded-sm py-1 px-2 w-48",children:"Health Score distribution by category: shows how many features fall into each level from low (needs attention) to good (healthy)"})]})]}),g.jsxs("div",{className:"flex flex-col items-center gap-6",children:[g.jsx("div",{className:"relative size-48",children:g.jsx(Do,{width:"100%",height:"100%",children:g.jsx(nu,{children:g.jsx(qt,{data:n,dataKey:"value",nameKey:"name",innerRadius:"70%",outerRadius:"100%",paddingAngle:2})})})}),g.jsxs("ul",{className:"flex flex-col flex-1 gap-y-2",children:[g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`shrink-0 rounded-sm size-6 flex items-center justify-center ${wt(rt.needsAttention).class}`,children:g.jsx("span",{className:"font-semibold text-white text-sm",children:t.needsAttention})}),g.jsx("p",{className:"text-sm text-gray-500",children:"Features needing attention"})]}),g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`shrink-0 rounded-sm size-6 flex items-center justify-center ${wt(rt.needsImprovement).class}`,children:g.jsx("span",{className:"font-semibold text-white text-sm",children:t.needsImprovement})}),g.jsx("p",{className:"text-sm text-gray-500",children:"Features needing improvement"})]}),g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`shrink-0 rounded-sm size-6 flex items-center justify-center ${wt(rt.healthy).class}`,children:g.jsx("span",{className:"font-semibold text-white text-sm",children:t.healthy})}),g.jsx("p",{className:"text-sm text-gray-500",children:"Healthy Features"})]})]})]})]})},Oce=({features:e})=>{const t=Object.values(e).reduce((i,a)=>{const o=a.additional_metrics.test_coverage.score;if(o!=null){const l=jT(o);i[l]++}return i},{poor:0,fair:0,good:0}),{minimum_thresholds:n}=_r.project.documentation_site.test_coverage,r=Object.entries(t).map(([i,a],o)=>({name:i,value:a,fill:[bt(n.poor).hex,bt(n.fair).hex,bt(n.good).hex][o]})).filter(({value:i})=>i>0);return g.jsxs("div",{className:"flex flex-col gap-6",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[g.jsx("div",{className:"shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:g.jsx(_y,{className:"size-5"})}),g.jsx("span",{className:"flex pl-2",children:"Test Coverage"})]}),g.jsxs("div",{className:"relative shrink-0 group",children:[g.jsx(Sr,{className:"size-4 text-gray-400"}),g.jsx("div",{className:"absolute whitespace-wrap bottom-full left-1/2 transform -translate-x-1/2 mb-2 hidden group-hover:block bg-gray-700 text-white text-xs rounded-sm py-1 px-2 w-48",children:"Test Coverage distribution by category: shows how many features fall into each level from poor to good"})]})]}),g.jsxs("div",{className:"flex flex-col items-center gap-6",children:[g.jsx("div",{className:"relative size-48",children:g.jsx(Do,{width:"100%",height:"100%",children:g.jsx(nu,{children:g.jsx(qt,{data:r,dataKey:"value",nameKey:"name",innerRadius:"70%",outerRadius:"100%",paddingAngle:2})})})}),g.jsxs("ul",{className:"flex flex-col flex-1 gap-y-2",children:[g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`shrink-0 rounded-sm size-6 flex items-center justify-center ${bt(n.poor).class}`,children:g.jsx("span",{className:"font-semibold text-white text-sm",children:t.poor})}),g.jsxs("p",{className:"text-sm text-gray-500",children:[g.jsx("span",{className:"",children:"Features with"})," poor coverage"]})]}),g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`shrink-0 rounded-sm size-6 flex items-center justify-center ${bt(n.fair).class}`,children:g.jsx("span",{className:"font-semibold text-white text-sm",children:t.fair})}),g.jsxs("p",{className:"text-sm text-gray-500",children:[g.jsx("span",{className:"",children:"Features with"})," fair coverage"]})]}),g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`shrink-0 rounded-sm size-6 flex items-center justify-center ${bt(n.good).class}`,children:g.jsx("span",{className:"font-semibold text-white text-sm",children:t.good})}),g.jsxs("p",{className:"text-sm text-gray-500",children:[g.jsx("span",{className:"",children:"Features with"})," good coverage"]})]})]})]})]})},$ce=({features:e})=>{const t=Object.entries(e).reduce((r,[i,a])=>{const{integration_count:o,integration_pending:l,regression_count:s,regression_pending:u,unit_count:c,unit_pending:f}=a.test_pyramid||{};return{unit_count:r.unit_count+(c||0),unit_pending:r.unit_pending+(f||0),integration_count:r.integration_count+(o||0),integration_pending:r.integration_pending+(l||0),regression_count:r.regression_count+(s||0),regression_pending:r.regression_pending+(u||0)}},{unit_count:0,unit_pending:0,integration_count:0,integration_pending:0,regression_count:0,regression_pending:0}),n=[{value:Math.max(Math.log(t.unit_count+t.unit_pending),0),fill:"#1d4ed8"},{value:Math.max(Math.log(t.integration_count+t.integration_pending),0),fill:"#2563eb"},{value:Math.max(Math.log(t.regression_count+t.regression_pending),0),fill:"#3b82f6"}];return g.jsxs("div",{className:"flex flex-col gap-6",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[g.jsx("div",{className:"shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:g.jsx(X$,{className:"size-5"})}),g.jsx("span",{className:"flex pl-2",children:"Test Pyramid"})]}),g.jsxs("div",{className:"relative shrink-0 group",children:[g.jsx(Sr,{className:"size-4 text-gray-400"}),g.jsx("div",{className:"absolute whitespace-wrap bottom-full left-1/2 transform -translate-x-1/2 mb-2 hidden group-hover:block bg-gray-700 text-white text-xs rounded-sm py-1 px-2 w-48",children:"Test pyramid distribution by category: shows features which are missing coverage in a given level of the pyramid, or which have a large number of pending tests."})]})]}),g.jsxs("div",{className:"flex flex-col items-center gap-6",children:[g.jsx("div",{className:"relative h-48 w-72",children:g.jsx(Do,{width:"100%",height:"100%",children:g.jsx(PT,{width:730,height:250,children:g.jsx(Nr,{dataKey:"value",data:n,reversed:!0,children:g.jsx(Un,{position:"right",fill:"#000",stroke:"none",dataKey:"name"})})})})}),g.jsxs("ul",{className:"flex flex-col flex-1 gap-y-2",children:[g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:"shrink-0 rounded-sm h-6 w-16 size-x-12 flex items-center justify-center bg-blue-500",children:g.jsx("span",{className:"font-semibold text-white text-sm",children:t.regression_count})}),g.jsxs("p",{className:"text-sm text-gray-500",children:["Regression Tests (",t.regression_pending," pending)"]})]}),g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:"shrink-0 rounded-sm h-6 w-16 flex items-center justify-center bg-blue-600",children:g.jsx("span",{className:"font-semibold text-white text-sm",children:t.integration_count})}),g.jsxs("p",{className:"text-sm text-gray-500",children:["Integration Tests (",t.integration_pending," pending)"]})]}),g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:"shrink-0 rounded-sm h-6 w-16 flex items-center justify-center bg-blue-700",children:g.jsx("span",{className:"font-semibold text-white text-sm",children:t.unit_count})}),g.jsxs("p",{className:"text-sm text-gray-500",children:["Unit Tests (",t.unit_pending," pending)"]})]})]})]})]})},Qu=({title:e})=>g.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider",children:g.jsx("div",{className:"flex items-center gap-x-2",children:e})}),pE=({features:e,metric:t,sortDirection:n="ASC"})=>Object.entries(e).sort(([r,i],[a,o])=>{const l=i.test_pyramid&&i.test_pyramid[t]||0,s=o.test_pyramid&&o.test_pyramid[t]||0;return l===s?o.additional_metrics.feature_size.score-i.additional_metrics.feature_size.score:n==="ASC"?l-s:s-l}).slice(0,5).map(([r,i])=>({featureName:r,score:i.test_pyramid&&i.test_pyramid[t]||0,feature:i})),hE=["Regression","Integration","Unit"],mE=["Missing","Pending"],vE={Pending:{Unit:"unit_pending",Integration:"integration_pending",Regression:"regression_pending"},Missing:{Unit:"unit_count",Integration:"integration_count",Regression:"regression_count"}},Pce={Pending:{Unit:"Top 5 features with pending unit tests",Integration:"Top 5 features with pending integration tests",Regression:"Top 5 features with pending regression tests"},Missing:{Unit:"Bottom 5 features missing unit test coverage",Integration:"Bottom 5 features missing integration tests",Regression:"Bottom 5 features missing regression tests"}},jce=({features:e})=>{const[t,n]=w.useState(mE[0]),[r,i]=w.useState(hE[0]),[a,o]=w.useState(pE({features:e,metric:vE[t][r],sortDirection:t==="Missing"?"ASC":""}));return w.useEffect(()=>{o(pE({features:e,metric:vE[t][r],sortDirection:t==="Missing"?"ASC":""}))},[e,t,r]),g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"flex items-center justify-between px-4 py-6 bg-gray-50 rounded-md",children:[g.jsx("h3",{className:"flex items-center text-xs font-semibold text-gray-800 uppercase h-8",children:Pce[t][r]}),g.jsxs("div",{className:"flex h-8",children:[g.jsx(wce,{items:mE,selectedItem:t,onItemSelect:n,size:"xs"}),g.jsx("span",{className:"mx-2"}),g.jsx(lx,{items:hE,selectedItem:r,onItemSelect:i,size:"xs"})]})]}),g.jsx("div",{className:"flow-root",children:g.jsx("div",{className:"min-w-full align-middle",children:g.jsx("div",{className:"overflow-hidden rounded-md",children:g.jsxs("table",{className:"min-w-full",children:[g.jsx("thead",{className:"bg-gray-50 border-b border-gray-200",children:g.jsxs("tr",{children:[g.jsx(Qu,{title:"Feature"}),g.jsx(Qu,{title:"Team"}),g.jsx(Qu,{title:"Size"}),g.jsx(Qu,{title:t==="Missing"?`${r} Test Count`:"Pending Test Count"}),g.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider"})]})}),g.jsx("tbody",{className:"divide-y divide-gray-200 bg-white",children:a.map(({featureName:l,feature:s,score:u})=>{const c=s.additional_metrics.feature_size.percent_of_max,f=xo(c);return g.jsxs("tr",{children:[g.jsx("td",{className:"w-full max-w-0 py-4 px-4 text-sm font-medium text-gray-900 sm:w-auto sm:max-w-none",children:g.jsx("div",{className:"",children:l})}),g.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Gi,{className:"size-4 text-gray-500"}),Lf(s.assignments.teams)]})}),g.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:g.jsxs("div",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:"flex gap-1.5 items-center",children:[1,2,3,4,5].map(d=>g.jsx("div",{className:`h-5 w-1.5 rounded ${d<=Is(c)?"bg-blue-500":"bg-gray-200"}`},d))}),g.jsx("span",{className:"text-xs text-gray-500 uppercase",children:f})]})}),g.jsx("td",{className:"px-4 py-4 text-sm",children:g.jsx("div",{className:"flex items-center gap-x-2",children:u})}),g.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:g.jsx("div",{className:"flex items-center gap-x-3",children:g.jsx("div",{children:g.jsx(wr,{to:`/${encodeURIComponent(l)}`,className:"flex items-center justify-center shrink-0 font-medium text-gray-900 text-sm mb-1 hover:bg-gray-100 rounded-full h-6 w-6",children:g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5",children:g.jsx("path",{fillRule:"evenodd",d:"M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})})})})})})]},l)})})]})})})})]})};function Tce({features:e}){const[t,n]=w.useState("All Teams"),r=w.useMemo(()=>{const s=new Set;return s.add("All Teams"),Object.values(e).forEach(u=>{var c;(c=u.assignments)!=null&&c.teams&&u.assignments.teams.forEach(f=>s.add(f))}),Array.from(s)},[e]),i=w.useMemo(()=>t==="All Teams"?e:Object.fromEntries(Object.entries(e).filter(([s,u])=>{var c,f;return(f=(c=u.assignments)==null?void 0:c.teams)==null?void 0:f.includes(t)})),[e,t]),a=w.useMemo(()=>Object.entries(i).map(([s,u])=>({name:s,data:u||0,health:u.additional_metrics.health.overall||0})).sort((s,u)=>s.health-u.health).slice(0,5),[i]),o=w.useMemo(()=>Object.entries(i).map(([s,u])=>({name:s,data:u||0,score:u.additional_metrics.test_coverage.score||0})).sort((s,u)=>s.score-u.score).slice(0,5),[i]),l=({title:s})=>g.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider",children:g.jsx("div",{className:"flex items-center gap-x-2",children:s})});return g.jsxs("div",{className:"h-screen max-w-7xl mx-auto flex flex-col gap-8 p-4 md:p-8",children:[g.jsxs("div",{className:"flex justify-between items-center",children:[g.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:"Digest"}),g.jsx(lx,{items:r,selectedItem:t,onItemSelect:n})]}),g.jsx("div",{className:"flow-root",children:g.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[g.jsx("div",{className:"col-span-1 border border-gray-200 shadow-xs bg-white rounded-lg h-full",children:g.jsx("div",{className:"px-4 py-6 h-fit",children:g.jsx(Ece,{features:i})})}),g.jsxs("div",{className:"col-span-2 h-full shadow-xs border border-gray-200 rounded-lg bg-white",children:[g.jsx("div",{className:"flex items-center justify-between px-4 py-6 bg-gray-50 rounded-md",children:g.jsx("h3",{className:"flex items-center text-xs font-semibold text-gray-800 uppercase h-8",children:"Bottom 5 Features by Health Score"})}),g.jsx("div",{className:"flow-root",children:g.jsx("div",{className:"min-w-full align-middle",children:g.jsx("div",{className:"overflow-hidden rounded-md",children:g.jsxs("table",{className:"min-w-full",children:[g.jsx("thead",{className:"bg-gray-50 border-b border-gray-200",children:g.jsxs("tr",{children:[g.jsx(l,{title:"Feature"}),g.jsx(l,{title:"Team"}),g.jsx(l,{title:"Size"}),g.jsx(l,{title:"Health Score"}),g.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider"})]})}),g.jsx("tbody",{className:"divide-y divide-gray-200 bg-white",children:a.map(s=>{const u=s.data.additional_metrics.feature_size.percent_of_max,c=xo(u),f=s.data.additional_metrics.health.overall||0;return g.jsxs("tr",{children:[g.jsx("td",{className:"w-full max-w-0 py-4 px-4 text-sm font-medium text-gray-900 sm:w-auto sm:max-w-none",children:g.jsx("div",{className:"",children:s.name})}),g.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Gi,{className:"size-4 text-gray-500"}),Lf(s.data.assignments.teams)]})}),g.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:g.jsxs("div",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:"flex gap-1.5 items-center",children:[1,2,3,4,5].map(d=>g.jsx("div",{className:`h-5 w-1.5 rounded ${d<=Is(u)?"bg-blue-500":"bg-gray-200"}`},d))}),g.jsx("span",{className:"text-xs text-gray-500 uppercase",children:c})]})}),g.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:g.jsxs("div",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`w-4 h-4 rounded-full flex items-center justify-center ${aA(f)}`,children:g.jsx("div",{className:`w-2 h-2 rounded-full ${wt(f).class}`})}),g.jsxs("span",{className:"text-gray-600",children:[f.toFixed(0),"%"]})]})}),g.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:g.jsx("div",{className:"flex items-center gap-x-3",children:g.jsx("div",{children:g.jsx(wr,{to:`/${encodeURIComponent(s.name)}`,className:"flex items-center justify-center shrink-0 font-medium text-gray-900 text-sm mb-1 hover:bg-gray-100 rounded-full h-6 w-6",children:g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5",children:g.jsx("path",{fillRule:"evenodd",d:"M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})})})})})})]},s.name)})})]})})})})]})]})}),g.jsx("div",{className:"flow-root",children:g.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[g.jsx("div",{className:"col-span-1 border border-gray-200 shadow-xs bg-white rounded-lg",children:g.jsx("div",{className:"px-4 py-6",children:g.jsx(Oce,{features:i})})}),g.jsxs("div",{className:"col-span-2 h-full shadow-xs border border-gray-200 rounded-lg bg-white",children:[g.jsx("div",{className:"flex items-center justify-between px-4 py-6 bg-gray-50 rounded-md",children:g.jsx("h3",{className:"flex items-center text-xs font-semibold text-gray-800 uppercase h-8",children:"Bottom 5 Features by Test Coverage"})}),g.jsx("div",{className:"flow-root",children:g.jsx("div",{className:"min-w-full align-middle",children:g.jsx("div",{className:"overflow-hidden rounded-md",children:g.jsxs("table",{className:"min-w-full",children:[g.jsx("thead",{className:"bg-gray-50 border-b border-gray-200",children:g.jsxs("tr",{children:[g.jsx(l,{title:"Feature"}),g.jsx(l,{title:"Team"}),g.jsx(l,{title:"Size"}),g.jsx(l,{title:"Test Coverage"}),g.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider"})]})}),g.jsx("tbody",{className:"divide-y divide-gray-200 bg-white",children:o.map(s=>{const u=s.data.additional_metrics.feature_size.percent_of_max,c=xo(u),f=s.data.additional_metrics.test_coverage.score||0;return g.jsxs("tr",{children:[g.jsx("td",{className:"w-full max-w-0 py-4 px-4 text-sm font-medium text-gray-900 sm:w-auto sm:max-w-none",children:g.jsx("div",{className:"",children:s.name})}),g.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx(Gi,{className:"size-4 text-gray-500"}),Lf(s.data.assignments.teams)]})}),g.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:g.jsxs("div",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:"flex gap-1.5 items-center",children:[1,2,3,4,5].map(d=>g.jsx("div",{className:`h-5 w-1.5 rounded ${d<=Is(u)?"bg-blue-500":"bg-gray-200"}`},d))}),g.jsx("span",{className:"text-xs text-gray-500 uppercase",children:c})]})}),g.jsx("td",{className:"px-4 py-4 text-sm",children:g.jsxs("div",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:"grow h-2 rounded-full bg-gray-100 overflow-hidden",children:g.jsx("div",{className:`h-full rounded-full ${bt(f).class}`,style:{width:`${f}%`}})}),g.jsx("span",{className:"text-sm text-gray-500",children:f?`${f.toFixed(0)}%`:"No Data"})]})}),g.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:g.jsx("div",{className:"flex items-center gap-x-3",children:g.jsx("div",{children:g.jsx(wr,{to:`/${encodeURIComponent(s.name)}`,className:"flex items-center justify-center shrink-0 font-medium text-gray-900 text-sm mb-1 hover:bg-gray-100 rounded-full h-6 w-6",children:g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5",children:g.jsx("path",{fillRule:"evenodd",d:"M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})})})})})})]},s.name)})})]})})})})]})]})}),g.jsx("div",{className:"flow-root",children:g.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[g.jsx("div",{className:"col-span-1 border border-gray-200 shadow-xs bg-white rounded-lg",children:g.jsx("div",{className:"px-4 py-6",children:g.jsx($ce,{features:i})})}),g.jsx("div",{className:"col-span-2 h-full shadow-xs border border-gray-200 rounded-lg bg-white",children:g.jsx(jce,{features:i})})]})})]})}const Ace=({files:e})=>{const{project:t,environment:n}=_r,r=`${t.repository.url}/blob/${n.git_ref}`,{fileTree:i,directoryCounts:a}=w.useMemo(()=>{const y={},x={};return e.forEach(E=>{const _=E.split("/");let S=y;_.forEach((O,$)=>{if($===_.length-1){S[O]={type:"file",path:E};let T="";_.slice(0,-1).forEach(C=>{T=T?`${T}/${C}`:C,x[T]=(x[T]||0)+1})}else S[O]=S[O]||{type:"directory",children:{}},S=S[O].children})}),{fileTree:y,directoryCounts:x}},[e]),o=w.useMemo(()=>{const y=new Set;return e.forEach(x=>{const E=x.split("/");let _="";E.slice(0,-1).forEach(S=>{_=_?`${_}/${S}`:S,y.add(_)})}),y},[e]),[l,s]=w.useState("tree"),[u,c]=w.useState(o),[f,d]=w.useState({key:null,direction:"asc"}),p=w.useMemo(()=>[...e].sort((y,x)=>f.key?y<x?f.direction==="asc"?-1:1:y>x?f.direction==="asc"?1:-1:0:0),[e,f]),h=y=>{c(x=>{const E=new Set(x);return E.has(y)?E.delete(y):E.add(y),E})},m=y=>{d(x=>({key:y,direction:x.key===y&&x.direction==="asc"?"desc":"asc"}))},b=(y,x="",E=0)=>y?Object.entries(y).map(([_,S])=>{const O=x?`${x}/${_}`:_,$=u.has(O),T=a[O]||0;return S.type==="directory"?g.jsxs(j.Fragment,{children:[g.jsx("tr",{className:"hover:bg-gray-50",children:g.jsx("td",{className:"px-4 py-2 text-sm text-gray-900",children:g.jsx("div",{className:"flex items-center justify-between",children:g.jsxs("button",{onClick:()=>h(O),className:"flex items-center group gap-x-2",style:{paddingLeft:`${E*16}px`},children:[g.jsxs("div",{className:"flex items-center group",children:[$?g.jsx(q$,{className:"size-4 text-gray-400 mr-1 shrink-0"}):g.jsx(EI,{className:"size-4 text-gray-400 mr-1 shrink-0"}),g.jsx(PI,{className:"size-4 text-gray-400 mr-2 shrink-0"}),g.jsx("span",{className:"font-medium text-gray-600 group-hover:text-gray-900",children:_})]}),g.jsx("span",{className:"flex items-center justify-center text-xs font-medium text-gray-500 bg-gray-200 rounded-full h-5 w-5",children:T})]})})})}),$&&b(S.children,O,E+1)]},O):g.jsx("tr",{className:"hover:bg-gray-50",children:g.jsx("td",{className:"px-4 py-2 text-sm text-gray-900",children:g.jsxs("div",{className:"flex items-center",style:{paddingLeft:`${E*16+20}px`},children:[g.jsx(Rm,{className:"size-4 text-gray-400 mr-2 shrink-0"}),g.jsx("a",{href:`${r}/${O}`,className:"truncate underline",target:"_blank",rel:"noopener noreferrer",children:_})]})})},O)}):null,v=({title:y,sortKey:x,className:E=""})=>g.jsx("th",{scope:"col",className:`px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider cursor-pointer ${E}`,onClick:()=>m(x),children:g.jsxs("div",{className:"flex items-center gap-x-2 group",children:[y,g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-4 text-gray-400 group-hover:text-gray-600",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 7.5 7.5 3m0 0L12 7.5M7.5 3v13.5m13.5 0L16.5 21m0 0L12 16.5m4.5 4.5V7.5"})})]})});return g.jsx("div",{className:"bg-white rounded-lg border border-gray-200",children:g.jsx("div",{className:"overflow-hidden rounded-lg",children:g.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[g.jsx("thead",{className:"bg-gray-50",children:g.jsxs("tr",{children:[g.jsx(v,{title:l==="tree"?"File Path":"Name",sortKey:"path"}),g.jsx("th",{scope:"col",className:"px-4 py-3 text-center text-xs font-medium text-gray-800 uppercase tracking-wider",children:g.jsxs("div",{className:"flex items-center justify-end gap-2",children:[g.jsx("button",{onClick:()=>s("tree"),className:`p-1 rounded ${l==="tree"?"text-blue-600 bg-blue-100":"text-gray-500 hover:text-gray-700 hover:bg-gray-50"}`,children:g.jsx(Sy,{className:"size-4"})}),g.jsx("button",{onClick:()=>s("list"),className:`p-1 rounded ${l==="list"?"text-blue-600 bg-blue-100":"text-gray-500 hover:text-gray-700 hover:bg-gray-50"}`,children:g.jsx(CI,{className:"size-4"})})]})})]})}),g.jsx("tbody",{className:"divide-y divide-gray-200",children:l==="list"?p.map(y=>g.jsx("tr",{className:"hover:bg-gray-50",children:g.jsx("td",{className:"px-4 py-3 text-sm font-medium text-gray-900 flex-1",children:g.jsxs("div",{className:"flex items-center",children:[g.jsx(Rm,{className:"size-4 text-gray-400 mr-2 shrink-0"}),g.jsx("a",{href:`${r}/${y}`,className:"truncate underline",target:"_blank",rel:"noopener noreferrer",children:y})]})})},y)):b(i)})]})})})};function Cce({feature:e}){const{project:t}=_r,n=`is:pr label:"${e.label}"`,r=encodeURIComponent(n),i=`${t.repository.url}/pulls?q=${r}`;return g.jsxs("div",{className:"bg-white p-4 rounded-lg border border-gray-200 h-fit",children:[g.jsxs("div",{className:"mb-6",children:[g.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-3",children:"Description"}),e.description&&g.jsx("p",{className:"text-sm md:text-base text-gray-600",children:e.description})]}),g.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-3",children:"Metrics"}),g.jsxs("ul",{className:"mb-6 space-y-2",children:[g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx("div",{className:"shrink-0",children:g.jsx(Sy,{className:"size-4 text-gray-500"})}),g.jsxs("p",{className:"text-sm text-gray-700",children:[e.assignments.files?e.assignments.files.length:0," Total Files"]})]}),g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx("div",{className:"shrink-0",children:g.jsx(NI,{className:"size-4 text-gray-500"})}),g.jsxs("p",{className:"text-sm text-gray-700",children:[(e.metrics.abc_size||0).toFixed(2)," ABC Size"]})]}),g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx("div",{className:"shrink-0",children:g.jsx(Rm,{className:"size-4 text-gray-500"})}),g.jsxs("p",{className:"text-sm text-gray-700",children:[e.metrics.lines_of_code||0," Lines of Code"]})]}),g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx("div",{className:"shrink-0",children:g.jsx(jI,{className:"size-4 text-gray-500"})}),g.jsxs("p",{className:"text-sm text-gray-700",children:[e.metrics.cyclomatic_complexity||0," Cyclomatic Complexity"]})]}),g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx("div",{className:"shrink-0",children:g.jsx(TI,{className:"size-4 text-gray-500"})}),g.jsxs("p",{className:"text-sm text-gray-700",children:[e.metrics.todo_locations?Object.keys(e.metrics.todo_locations).length:0," ","TODO Comments"]})]})]}),g.jsx("div",{className:"space-y-4 mb-6",children:g.jsxs("div",{children:[g.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-3",children:"Teams"}),g.jsx("ul",{className:"flex flex-col gap-y-1",children:e.assignments.teams?e.assignments.teams.map(a=>g.jsxs("li",{className:"text-sm text-gray-700 flex gap-2",children:[g.jsx("div",{className:"flex items-center justify-center shrink-0",children:g.jsx(Gi,{className:"size-4 text-gray-500"})}),a]},a)):g.jsxs("li",{className:"text-sm text-gray-700 flex gap-2",children:[g.jsx("div",{className:"flex items-center justify-center shrink-0",children:g.jsx(Gi,{className:"size-4 text-gray-500"})}),g.jsx("span",{className:"text-gray-400 italic text-sm",children:"No teams assigned"})]})})]})}),g.jsxs("div",{className:"mb",children:[g.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-3",children:"Resources"}),g.jsxs("ul",{className:"mb-6 space-y-2",children:[g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx("div",{className:"shrink-0",children:g.jsx(Tl,{className:"size-4 text-gray-500"})}),g.jsx("a",{href:i,target:"_blank",className:"text-sm text-gray-700 hover:underline",rel:"noreferrer",children:"Feature Pull Requests"})]}),g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx("div",{className:"shrink-0",children:g.jsx(Tl,{className:"size-4 text-gray-500"})}),e.documentation_link?g.jsx("a",{href:e.documentation_link,target:"_blank",className:"text-sm text-gray-700 hover:underline",rel:"noreferrer",children:"Feature Documentation"}):g.jsx("span",{className:"text-gray-400 italic text-sm",children:"Missing documentation link"})]}),g.jsxs("li",{className:"flex items-center gap-2",children:[g.jsx("div",{className:"shrink-0",children:g.jsx(Tl,{className:"size-4 text-gray-500"})}),e.dashboard_link?g.jsx("a",{href:e.dashboard_link,target:"_blank",className:"text-sm text-gray-700 hover:underline",rel:"noreferrer",children:"New Relic Dashboard"}):g.jsx("span",{className:"text-gray-400 italic text-sm",children:"Missing New Relic Dashboard"})]})]})]})]})}const kce=({value:e,suffix:t="",color:n="#ef4444"})=>{const r=e===0?"transparent":n;return g.jsxs("div",{className:"relative h-20 w-20",children:[g.jsxs("svg",{className:"h-full w-full -rotate-90",viewBox:"0 0 36 36",children:[g.jsx("path",{d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831",fill:"none",stroke:"#eee",strokeWidth:"2"}),g.jsx("path",{d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831",fill:"none",stroke:r,strokeWidth:"2",strokeDasharray:`${e}, 100`})]}),g.jsxs("div",{className:"absolute inset-0 flex items-center justify-center",children:[g.jsx("span",{className:"text-2xl font-bold",children:Math.round(e)}),g.jsx("span",{className:"text-sm",children:t})]})]})},gE=({children:e,title:t,value:n,suffix:r="",icon:i,tooltip:a,color:o})=>g.jsxs("div",{className:"flex flex-col gap-6 px-4 py-6 border border-gray-200 shadow-xs bg-white rounded-lg",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[g.jsx("div",{className:"shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:i}),g.jsx("span",{className:"flex pl-2",children:t})]}),a&&g.jsxs(wo,{children:[g.jsx(si,{children:g.jsx(Sr,{className:"size-4 text-gray-400"})}),g.jsx(Zi,{children:a})]})]}),g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx(kce,{value:n,suffix:r,color:o}),g.jsx("div",{className:"flex flex-col flex-1",children:e})]})]}),Nce=({feature:e})=>{const{integration_count:t=0,integration_pending:n=0,regression_count:r=0,regression_pending:i=0,unit_count:a=0,unit_pending:o=0}=(e==null?void 0:e.test_pyramid)||{},l=[{type:"Unit Tests",count:a,pending:o,color:"blue-700",fill:"#1d4ed8"},{type:"Integration Tests",count:t,pending:n,color:"blue-500",fill:"#3b82f6"},{type:"Regression Tests",count:r,pending:i,color:"blue-300",fill:"#93c5fd"}],s=l.map(u=>({value:Math.max(Math.log(u.count+u.pending),0),fill:u.fill}));return g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx("div",{className:"relative h-20 w-20",children:s.every(u=>u.value===0)?g.jsx("div",{className:"flex flex-col shrink-0 items-center justify-center size-full bg-gray-100 rounded-full shadow-sm text-gray-500 mb-4",children:g.jsx(MI,{})}):g.jsx("div",{className:"absolute left-[-31px] top-0 bottom-0",children:g.jsx(PT,{width:150,height:80,children:g.jsx(Nr,{dataKey:"value",data:s,reversed:!0,isAnimationActive:!1,children:g.jsx(Un,{position:"right",fill:"#000",stroke:"none",dataKey:"name"})})})})}),g.jsx("ul",{className:"flex flex-col flex-1 gap-y-1",children:l.reverse().map((u,c)=>g.jsxs("li",{className:"flex items-center gap-x-2",children:[g.jsx("div",{className:`w-3 h-3 rounded-full bg-${u.color}`}),g.jsxs("p",{className:"text-xs text-gray-500",children:[u.type,": ",g.jsx("span",{className:"font-medium",children:u.count})," (",u.pending," ","pending)"]})]},c))})]})};function Mce({features:e}){const{name:t}=_M(),n=e[t];if(!n)return g.jsx("div",{className:"max-w-7xl mx-auto p-4 md:p-8",children:g.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[g.jsx("h1",{className:"text-xl font-bold text-red-600",children:"Feature Not Found"}),g.jsxs("p",{className:"mt-2",children:["Could not find feature: ",t]}),g.jsx(wr,{to:"/",className:"text-blue-600 hover:text-blue-800 mt-4 inline-block",children:"← Back to Features"})]})});const r=n.additional_metrics.health.overall,i=n.additional_metrics.feature_size.percent_of_max,a=Is(i);return g.jsxs("div",{className:"h-screen max-w-7xl mx-auto flex flex-col gap-6 py-4 md:py-8",children:[g.jsx("div",{className:"flex justify-between items-center",children:g.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:t})}),g.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-12 gap-6",children:[g.jsx("div",{className:"col-span-1 xl:col-span-3",children:g.jsx(Cce,{feature:n})}),g.jsxs("div",{className:"col-span-1 xl:col-span-9",children:[g.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-6 mb-8",children:[g.jsx(gE,{title:"Health Score",value:r.toFixed(0),suffix:"%",tooltip:"Feature health is determined by combining a weighted score for test coverage, code complexity, and encapsulation into a composite score from 0-100%. Each feature is then grouped into a categories ranging from low (needs attention) to good (healthy), which can be managed via `.feature_map/config.yml`.",icon:g.jsx(Ey,{}),color:wt(r).hex,children:g.jsxs("ul",{className:"flex flex-col gap-y-1",children:[g.jsxs("li",{className:"text-xs text-gray-500",children:["Coverage:"," ",n.additional_metrics.health.test_coverage_component.health_score.toFixed(0)," ","/ ",n.additional_metrics.health.test_coverage_component.awardable_points]}),g.jsxs("li",{className:"text-xs text-gray-500",children:["Complexity:"," ",n.additional_metrics.health.cyclomatic_complexity_component.health_score.toFixed(0)," ","/"," ",n.additional_metrics.health.cyclomatic_complexity_component.awardable_points]}),g.jsxs("li",{className:"text-xs text-gray-500",children:["Encapsulation:"," ",n.additional_metrics.health.encapsulation_component.health_score.toFixed(0)," ","/ ",n.additional_metrics.health.encapsulation_component.awardable_points]}),g.jsxs("li",{className:"text-xs text-gray-500",children:["Todos:"," ",n.additional_metrics.health.todo_count_component.health_score.toFixed(0)," /"," ",n.additional_metrics.health.todo_count_component.awardable_points]})]})}),g.jsx(gE,{title:"Test Coverage",value:n.additional_metrics.test_coverage.score,suffix:"%",tooltip:"Test coverage is determined by using CodeCov data (lines, hits, misses) to calculate a percentage score, from 0-100%, relative to the other features in the codebase. A qualitative coverage ranking is assigned to each feature, which can be managed which can be managed via `.feature_map/config.yml`.",icon:g.jsx(_y,{}),color:bt(n.additional_metrics.test_coverage.score).hex,children:g.jsxs("ul",{className:"flex flex-col gap-y-1",children:[g.jsxs("li",{className:"text-xs text-gray-500",children:["Hits: ",n.test_coverage?n.test_coverage.hits:0]}),g.jsxs("li",{className:"text-xs text-gray-500",children:["Lines: ",n.test_coverage?n.test_coverage.lines:0]}),g.jsxs("li",{className:"text-xs text-gray-500",children:["Misses: ",n.test_coverage?n.test_coverage.misses:0]})]})}),g.jsxs("div",{className:"flex flex-col gap-6 px-4 py-6 border border-gray-200 shadow-xs bg-white rounded-lg",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[g.jsx("div",{className:"shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:g.jsx(Y$,{})}),g.jsx("span",{className:"flex pl-2",children:"Feature Size"})]}),g.jsxs(wo,{children:[g.jsx(si,{children:g.jsx(Sr,{className:"size-4 text-gray-400"})}),g.jsx(Zi,{children:"Feature size is determined by analyzing the total number of files and lines of code associated with each feature. Each feature is then grouped into different size bins, which can be configured in the config.yaml file."})]})]}),g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx("div",{className:"relative h-20 flex items-center",children:g.jsx("div",{className:"text-2xl font-bold uppercase",children:xo(i)})}),g.jsx("div",{className:"flex flex-col gap-y-2",children:g.jsx("div",{className:"flex gap-1.5 items-center",children:[1,2,3,4,5].map(o=>g.jsx("div",{className:`h-6 w-1.5 rounded-sm ${o<=a?"bg-blue-500":"bg-gray-300"}`},o))})}),g.jsxs("div",{children:[g.jsxs("div",{className:"text-[10px] text-gray-500",children:[n.assignments.files?n.assignments.files.length:0," files"]}),g.jsxs("div",{className:"text-[10px] text-gray-500",children:[Xie(n.metrics.lines_of_code)," lines"]})]})]})]}),g.jsxs("div",{className:"flex flex-col gap-6 px-4 py-6 border border-gray-200 shadow-xs bg-white rounded-lg",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[g.jsx("div",{className:"shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:g.jsx(X$,{})}),g.jsx("span",{className:"flex pl-2",children:"Test Pyramid"})]}),g.jsxs(wo,{children:[g.jsx(si,{children:g.jsx(Sr,{className:"size-4 text-gray-400"})}),g.jsx(Zi,{children:"Test pyramid distribution by category: shows features which are missing coverage in a given level of the pyramid, or which have a large number of pending tests."})]})]}),g.jsx(Nce,{feature:n})]})]}),n.assignments.files&&n.assignments.files.length>0?g.jsx(g.Fragment,{children:g.jsx(Ace,{files:n.assignments.files})}):g.jsx("div",{className:"h-[300px] bg-white rounded-lg border border-gray-200 shadow-xs mb-8",children:g.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-gray-500",children:[g.jsx("div",{className:"flex items-center justify-center shrink-0 h-16 w-16 bg-gray-100 rounded-full shadow-sm text-gray-500 mb-4",children:g.jsx(Sy,{})}),g.jsx("p",{children:"No files found for this feature"})]})})]})]})]})}const Ice=[{name:"Dashboard",pathname:"",icon:AI},{name:"Digest",pathname:"Digest",icon:$I}];function pa(...e){return e.filter(Boolean).join(" ")}function yE(){const e=Ar(),{linked_sites:t,title:n}=_r.project.documentation_site,{internal_resources:r}=_r.project.documentation_site;return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"flex h-16 shrink-0 items-center",children:g.jsx(wr,{to:"/",children:"Feature Documentation"})}),g.jsx("nav",{className:"flex flex-1 flex-col",children:g.jsxs("ul",{role:"list",className:"flex flex-1 flex-col gap-y-7",children:[g.jsxs("li",{children:[g.jsx("div",{className:"text-xs/6 font-semibold text-gray-400",children:n}),g.jsx("ul",{role:"list",className:"-mx-2 mt-2 space-y-2",children:Ice.map(i=>g.jsx("li",{children:g.jsxs(wr,{to:i.pathname,className:pa(e.pathname===`/${i.pathname}`?"text-blue-600":"text-gray-700 hover:text-blue-600","group flex gap-x-3 rounded-md px-2 text-sm/6 font-semibold items-center"),children:[g.jsx(i.icon,{"aria-hidden":"true",className:pa("text-gray-400 group-hover:text-blue-600","size-5 shrink-0")}),i.name]})},i.name))})]}),t&&t.length>0&&g.jsxs("li",{children:[g.jsx("div",{className:"text-xs/6 font-semibold text-gray-400",children:"Linked Feature Documentation"}),g.jsx("ul",{role:"list",className:"-mx-2 mt-2 space-y-2",children:t.map(i=>g.jsx("li",{children:g.jsxs("a",{href:i.url,target:"_blank",className:pa("text-gray-700 hover:text-blue-600","group flex gap-x-3 rounded-md px-2 text-sm/6 font-semibold items-center"),rel:"noreferrer",children:[g.jsx(Tl,{"aria-hidden":"true",className:pa("text-gray-400 group-hover:text-blue-600","size-5 shrink-0")}),i.name]})},i.name))})]}),r&&r.length>0&&g.jsxs("li",{children:[g.jsx("div",{className:"text-xs/6 font-semibold text-gray-400",children:"Internal Resources"}),g.jsx("ul",{role:"list",className:"-mx-2 mt-2 space-y-2",children:r.map(i=>g.jsx("li",{children:g.jsxs("a",{href:i.url,target:"_blank",className:pa("text-gray-700 hover:text-blue-600","group flex gap-x-3 rounded-md px-2 text-sm/6 font-semibold items-center"),rel:"noreferrer",children:[g.jsx(Tl,{"aria-hidden":"true",className:pa("text-gray-400 group-hover:text-blue-600","size-5 shrink-0")}),i.name]})},i.name))})]})]})})]})}function Rce(){const[e,t]=w.useState(!1);return g.jsxs("div",{children:[g.jsxs(Tue,{open:e,onClose:t,className:"relative z-50 lg:hidden",children:[g.jsx(Pue,{transition:!0,className:"fixed inset-0 bg-gray-900/80 transition-opacity duration-300 ease-linear data-closed:opacity-0"}),g.jsx("div",{className:"fixed inset-0 flex",children:g.jsxs(iC,{transition:!0,className:"relative mr-16 flex w-full max-w-xs flex-1 transform transition duration-300 ease-in-out data-closed:-translate-x-full",children:[g.jsx(xp,{children:g.jsx("div",{className:"absolute left-full top-0 flex w-16 justify-center pt-5 duration-300 ease-in-out data-closed:opacity-0",children:g.jsxs("button",{type:"button",onClick:()=>t(!1),className:"-m-2.5 p-2.5",children:[g.jsx("span",{className:"sr-only",children:"Close sidebar"}),g.jsx(OI,{"aria-hidden":"true",className:"size-6 text-white"})]})})}),g.jsx("div",{className:"flex grow flex-col gap-y-5 overflow-y-auto bg-white px-6 pb-4",children:g.jsx(yE,{})})]})})]}),g.jsx("div",{className:"hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-72 lg:flex-col",children:g.jsx("div",{className:"flex grow flex-col overflow-y-auto border-r border-gray-200 bg-white px-6 pb-4",children:g.jsx(yE,{})})}),g.jsxs("div",{className:"lg:pl-72",children:[g.jsx("div",{className:"sticky top-0 z-40 flex h-16 shrink-0 items-center gap-x-4 border-b border-gray-200 bg-white lg:hidden px-4 shadow-xs sm:gap-x-6 sm:px-6 lg:px-8",children:g.jsxs("button",{type:"button",onClick:()=>t(!0),className:"-m-2.5 p-2.5 text-gray-700 lg:hidden",children:[g.jsx("span",{className:"sr-only",children:"Open sidebar"}),g.jsx(kI,{"aria-hidden":"true",className:"size-6"})]})}),g.jsx("main",{className:"",children:g.jsx("div",{className:"px-4 sm:px-6 lg:px-8",children:g.jsx(RM,{})})})]})]})}function Lce(){const{features:e}=_r,t=Ar();return w.useEffect(()=>{window.scrollTo(0,0)},[t]),g.jsx(DM,{children:g.jsxs(vl,{element:g.jsx(Rce,{}),children:[g.jsx(vl,{path:"",element:g.jsx(Sce,{features:e})}),g.jsx(vl,{path:"digest",element:g.jsx(Tce,{features:e})}),g.jsx(vl,{path:":name",element:g.jsx(Mce,{features:e})})]})})}zh.createRoot(document.getElementById("root")).render(g.jsx(j.StrictMode,{children:g.jsx(sI,{children:g.jsx(Lce,{})})}));
271
+ `))}else{let d=c.props,p=d==null?void 0:d.className,h=typeof p=="function"?(...g)=>yg(p(...g),s.className):yg(p,s.className),m=h?{className:h}:{},w=yA(c.props,Br(Lh(s,["ref"])));for(let g in f)g in w&&delete f[g];return b.cloneElement(c,Object.assign({},w,f,u,{ref:i(mle(c),u.ref)},m))}return b.createElement(o,Object.assign({},Lh(s,["ref"]),o!==b.Fragment&&u,o!==b.Fragment&&f),c)}function ple(){let e=b.useRef([]),t=b.useCallback(n=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(n):r.current=n)},[]);return(...n)=>{if(!n.every(r=>r==null))return e.current=n,t}}function hle(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function yA(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[i=>{var o;return(o=i==null?void 0:i.preventDefault)==null?void 0:o.call(i)}]);for(let r in n)Object.assign(t,{[r](i,...o){let a=n[r];for(let l of a){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;l(i,...o)}}});return t}function dp(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];for(let r in n)Object.assign(t,{[r](...i){let o=n[r];for(let a of o)a==null||a(...i)}});return t}function Ee(e){var t;return Object.assign(b.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Br(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Lh(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function mle(e){return j.version.split(".")[0]>="19"?e.props.ref:e.ref}function vle(e,t,n){let[r,i]=b.useState(n),o=e!==void 0,a=b.useRef(o),l=b.useRef(!1),s=b.useRef(!1);return o&&!a.current&&!l.current?(l.current=!0,a.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!o&&a.current&&!s.current&&(s.current=!0,a.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[o?e:r,Q(u=>(o||i(u),t==null?void 0:t(u)))]}function gle(e){let[t]=b.useState(e);return t}function xA(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))wA(n,bA(t,r),i);return n}function bA(e,t){return e?e+"["+t+"]":t}function wA(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())wA(e,bA(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):xA(n,t,e)}function yle(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let i of r.elements)if(i!==e&&(i.tagName==="INPUT"&&i.type==="submit"||i.tagName==="BUTTON"&&i.type==="submit"||i.nodeName==="INPUT"&&i.type==="image")){i.click();return}(n=r.requestSubmit)==null||n.call(r)}}let xle="span";var eo=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(eo||{});function ble(e,t){var n;let{features:r=1,...i}=e,o={ref:t,"aria-hidden":(r&2)===2?!0:(n=i["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return Ie()({ourProps:o,theirProps:i,slot:{},defaultTag:xle,name:"Hidden"})}let Sa=Ee(ble),_A=b.createContext(null);function wle(e){let[t,n]=b.useState(null);return j.createElement(_A.Provider,{value:{target:t}},e.children,j.createElement(Sa,{features:eo.Hidden,ref:n}))}function _le({children:e}){let t=b.useContext(_A);if(!t)return j.createElement(j.Fragment,null,e);let{target:n}=t;return n?Ht.createPortal(j.createElement(j.Fragment,null,e),n):null}function Sle({data:e,form:t,disabled:n,onReset:r,overrides:i}){let[o,a]=b.useState(null),l=so();return b.useEffect(()=>{if(r&&o)return l.addEventListener(o,"reset",r)},[o,t,r]),j.createElement(_le,null,j.createElement(Ele,{setForm:a,formId:t}),xA(e).map(([s,u])=>j.createElement(Sa,{features:eo.Hidden,...Br({key:s,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:s,value:u,...i})})))}function Ele({setForm:e,formId:t}){return b.useEffect(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:j.createElement(Sa,{features:eo.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let r=n.closest("form");r&&e(r)}})}let SA=b.createContext(void 0);function EA(){return b.useContext(SA)}function Ole({id:e,children:t}){return j.createElement(SA.Provider,{value:e},t)}function G0(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&$le(n)?!1:r}function $le(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let OA=Symbol();function Ple(e,t=!0){return Object.assign(e,{[OA]:t})}function at(...e){let t=b.useRef(e);b.useEffect(()=>{t.current=e},[e]);let n=Q(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[OA]))?void 0:n}let pp=b.createContext(null);pp.displayName="DescriptionContext";function $A(){let e=b.useContext(pp);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,$A),t}return e}function jle(){var e,t;return(t=(e=b.useContext(pp))==null?void 0:e.value)!=null?t:void 0}function cu(){let[e,t]=b.useState([]);return[e.length>0?e.join(" "):void 0,b.useMemo(()=>function(n){let r=Q(o=>(t(a=>[...a,o]),()=>t(a=>{let l=a.slice(),s=l.indexOf(o);return s!==-1&&l.splice(s,1),l}))),i=b.useMemo(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return j.createElement(pp.Provider,{value:i},n.children)},[t])]}let Tle="p";function Ale(e,t){let n=b.useId(),r=uu(),{id:i=`headlessui-description-${n}`,...o}=e,a=$A(),l=at(t);he(()=>a.register(i),[i,a.register]);let s=r||!1,u=b.useMemo(()=>({...a.slot,disabled:s}),[a.slot,s]),c={ref:l,...a.props,id:i};return Ie()({ourProps:c,theirProps:o,slot:u,defaultTag:Tle,name:a.name||"Description"})}let Cle=Ee(Ale),PA=Object.assign(Cle,{});var Ne=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Ne||{});let hp=b.createContext(null);hp.displayName="LabelContext";function q0(){let e=b.useContext(hp);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,q0),t}return e}function jA(e){var t,n,r;let i=(n=(t=b.useContext(hp))==null?void 0:t.value)!=null?n:void 0;return((r=void 0)!=null?r:0)>0?[i,...e].filter(Boolean).join(" "):i}function fu({inherit:e=!1}={}){let t=jA(),[n,r]=b.useState([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,b.useMemo(()=>function(o){let a=Q(s=>(r(u=>[...u,s]),()=>r(u=>{let c=u.slice(),f=c.indexOf(s);return f!==-1&&c.splice(f,1),c}))),l=b.useMemo(()=>({register:a,slot:o.slot,name:o.name,props:o.props,value:o.value}),[a,o.slot,o.name,o.props,o.value]);return j.createElement(hp.Provider,{value:l},o.children)},[r])]}let kle="label";function Nle(e,t){var n;let r=b.useId(),i=q0(),o=EA(),a=uu(),{id:l=`headlessui-label-${r}`,htmlFor:s=o??((n=i.props)==null?void 0:n.htmlFor),passive:u=!1,...c}=e,f=at(t);he(()=>i.register(l),[l,i.register]);let d=Q(w=>{let g=w.currentTarget;if(g instanceof HTMLLabelElement&&w.preventDefault(),i.props&&"onClick"in i.props&&typeof i.props.onClick=="function"&&i.props.onClick(w),g instanceof HTMLLabelElement){let y=document.getElementById(g.htmlFor);if(y){let x=y.getAttribute("disabled");if(x==="true"||x==="")return;let E=y.getAttribute("aria-disabled");if(E==="true"||E==="")return;(y instanceof HTMLInputElement&&(y.type==="radio"||y.type==="checkbox")||y.role==="radio"||y.role==="checkbox"||y.role==="switch")&&y.click(),y.focus({preventScroll:!0})}}}),p=a||!1,h=b.useMemo(()=>({...i.slot,disabled:p}),[i.slot,p]),m={ref:f,...i.props,id:l,htmlFor:s,onClick:d};return u&&("onClick"in m&&(delete m.htmlFor,delete m.onClick),"onClick"in c&&delete c.onClick),Ie()({ourProps:m,theirProps:c,slot:h,defaultTag:s?kle:"div",name:i.name||"Label"})}let Mle=Ee(Nle),Rle=Object.assign(Mle,{}),Ile=b.createContext(()=>{});function Lle({value:e,children:t}){return j.createElement(Ile.Provider,{value:e},t)}function Dle(e,t){return e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"&&"id"in e&&"id"in t?e.id===t.id:e===t}function Fle(e=Dle){return b.useCallback((t,n)=>{if(typeof e=="string"){let r=e;return(t==null?void 0:t[r])===(n==null?void 0:n[r])}return e(t,n)},[e])}function Ble(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function zle(e,t=!1){let[n,r]=b.useReducer(()=>({}),{}),i=b.useMemo(()=>Ble(e),[e,n]);return he(()=>{if(!e)return;let o=new ResizeObserver(r);return o.observe(e),()=>{o.disconnect()}},[e]),t?{width:`${i.width}px`,height:`${i.height}px`}:i}let Ule=class extends Map{constructor(t){super(),this.factory=t}get(t){let n=super.get(t);return n===void 0&&(n=this.factory(t),this.set(t,n)),n}};function TA(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(i){return r.add(i),()=>r.delete(i)},dispatch(i,...o){let a=t[i].call(n,...o);a&&(n=a,r.forEach(l=>l()))}}}function AA(e){return b.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}let Hle=new Ule(()=>TA(()=>[],{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(t===-1)return this;let n=this.slice();return n.splice(t,1),n}}));function Wa(e,t){let n=Hle.get(t),r=b.useId(),i=AA(n);if(he(()=>{if(e)return n.dispatch("ADD",r),()=>n.dispatch("REMOVE",r)},[n,e]),!e)return!1;let o=i.indexOf(r),a=i.length;return o===-1&&(o=a,a+=1),o===a-1}let xg=new Map,Il=new Map;function qS(e){var t;let n=(t=Il.get(e))!=null?t:0;return Il.set(e,n+1),n!==0?()=>XS(e):(xg.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>XS(e))}function XS(e){var t;let n=(t=Il.get(e))!=null?t:1;if(n===1?Il.delete(e):Il.set(e,n-1),n!==1)return;let r=xg.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,xg.delete(e))}function CA(e,{allowed:t,disallowed:n}={}){let r=Wa(e,"inert-others");he(()=>{var i,o;if(!r)return;let a=Zn();for(let s of(i=n==null?void 0:n())!=null?i:[])s&&a.add(qS(s));let l=(o=t==null?void 0:t())!=null?o:[];for(let s of l){if(!s)continue;let u=vi(s);if(!u)continue;let c=s.parentElement;for(;c&&c!==u.body;){for(let f of c.children)l.some(d=>f.contains(d))||a.add(qS(f));c=c.parentElement}}return a.dispose},[r,t,n])}function kA(e,t,n){let r=Mr(i=>{let o=i.getBoundingClientRect();o.x===0&&o.y===0&&o.width===0&&o.height===0&&n()});b.useEffect(()=>{if(!e)return;let i=t===null?null:t instanceof HTMLElement?t:t.current;if(!i)return;let o=Zn();if(typeof ResizeObserver<"u"){let a=new ResizeObserver(()=>r.current(i));a.observe(i),o.add(()=>a.disconnect())}if(typeof IntersectionObserver<"u"){let a=new IntersectionObserver(()=>r.current(i));a.observe(i),o.add(()=>a.disconnect())}return()=>o.dispose()},[t,r,e])}let Kf=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),Wle=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var _t=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(_t||{}),Ds=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Ds||{}),Vle=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Vle||{});function NA(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Kf)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function Kle(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Wle)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var X0=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(X0||{});function Y0(e,t=0){var n;return e===((n=vi(e))==null?void 0:n.body)?!1:Tn(t,{0(){return e.matches(Kf)},1(){let r=e;for(;r!==null;){if(r.matches(Kf))return!0;r=r.parentElement}return!1}})}function MA(e){let t=vi(e);Zn().nextFrame(()=>{t&&!Y0(t.activeElement,0)&&qn(e)})}var Gle=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Gle||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function qn(e){e==null||e.focus({preventScroll:!0})}let qle=["textarea","input"].join(",");function Xle(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,qle))!=null?n:!1}function Q0(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),o=t(r);if(i===null||o===null)return 0;let a=i.compareDocumentPosition(o);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Yle(e,t){return oi(NA(),t,{relativeTo:e})}function oi(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?Q0(e):e:t&64?Kle(e):NA(e);i.length>0&&a.length>1&&(a=a.filter(p=>!i.some(h=>h!=null&&"current"in h?(h==null?void 0:h.current)===p:h===p))),r=r??o.activeElement;let l=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),s=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,a.indexOf(r))-1;if(t&4)return Math.max(0,a.indexOf(r))+1;if(t&8)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},c=0,f=a.length,d;do{if(c>=f||c+f<=0)return 0;let p=s+c;if(t&16)p=(p+f)%f;else{if(p<0)return 3;if(p>=f)return 1}d=a[p],d==null||d.focus(u),c+=l}while(d!==o.activeElement);return t&6&&Xle(d)&&d.select(),2}function RA(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Qle(){return/Android/gi.test(window.navigator.userAgent)}function Zle(){return RA()||Qle()}function fl(e,t,n,r){let i=Mr(n);b.useEffect(()=>{if(!e)return;function o(a){i.current(a)}return document.addEventListener(t,o,r),()=>document.removeEventListener(t,o,r)},[e,t,r])}function IA(e,t,n,r){let i=Mr(n);b.useEffect(()=>{if(!e)return;function o(a){i.current(a)}return window.addEventListener(t,o,r),()=>window.removeEventListener(t,o,r)},[e,t,r])}const YS=30;function LA(e,t,n){let r=Wa(e,"outside-click"),i=Mr(n),o=b.useCallback(function(s,u){if(s.defaultPrevented)return;let c=u(s);if(c===null||!c.getRootNode().contains(c)||!c.isConnected)return;let f=function d(p){return typeof p=="function"?d(p()):Array.isArray(p)||p instanceof Set?p:[p]}(t);for(let d of f)if(d!==null&&(d.contains(c)||s.composed&&s.composedPath().includes(d)))return;return!Y0(c,X0.Loose)&&c.tabIndex!==-1&&s.preventDefault(),i.current(s,c)},[i,t]),a=b.useRef(null);fl(r,"pointerdown",s=>{var u,c;a.current=((c=(u=s.composedPath)==null?void 0:u.call(s))==null?void 0:c[0])||s.target},!0),fl(r,"mousedown",s=>{var u,c;a.current=((c=(u=s.composedPath)==null?void 0:u.call(s))==null?void 0:c[0])||s.target},!0),fl(r,"click",s=>{Zle()||a.current&&(o(s,()=>a.current),a.current=null)},!0);let l=b.useRef({x:0,y:0});fl(r,"touchstart",s=>{l.current.x=s.touches[0].clientX,l.current.y=s.touches[0].clientY},!0),fl(r,"touchend",s=>{let u={x:s.changedTouches[0].clientX,y:s.changedTouches[0].clientY};if(!(Math.abs(u.x-l.current.x)>=YS||Math.abs(u.y-l.current.y)>=YS))return o(s,()=>s.target instanceof HTMLElement?s.target:null)},!0),IA(r,"blur",s=>o(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Va(...e){return b.useMemo(()=>vi(...e),[...e])}function DA(e,t,n,r){let i=Mr(n);b.useEffect(()=>{e=e??window;function o(a){i.current(a)}return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)},[e,t,r])}function Jle(e,t){return b.useMemo(()=>{var n;if(e.type)return e.type;let r=(n=e.as)!=null?n:"button";if(typeof r=="string"&&r.toLowerCase()==="button"||(t==null?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}function ese(){let e;return{before({doc:t}){var n;let r=t.documentElement,i=(n=t.defaultView)!=null?n:window;e=Math.max(0,i.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,i=Math.max(0,r.clientWidth-r.offsetWidth),o=Math.max(0,e-i);n.style(r,"paddingRight",`${o}px`)}}}function tse(){return RA()?{before({doc:e,d:t,meta:n}){function r(i){return n.containers.flatMap(o=>o()).some(o=>o.contains(i))}t.microTask(()=>{var i;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let l=Zn();l.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>l.dispose()))}let o=(i=window.scrollY)!=null?i:window.pageYOffset,a=null;t.addEventListener(e,"click",l=>{if(l.target instanceof HTMLElement)try{let s=l.target.closest("a");if(!s)return;let{hash:u}=new URL(s.href),c=e.querySelector(u);c&&!r(c)&&(a=c)}catch{}},!0),t.addEventListener(e,"touchstart",l=>{if(l.target instanceof HTMLElement)if(r(l.target)){let s=l.target;for(;s.parentElement&&r(s.parentElement);)s=s.parentElement;t.style(s,"overscrollBehavior","contain")}else t.style(l.target,"touchAction","none")}),t.addEventListener(e,"touchmove",l=>{if(l.target instanceof HTMLElement){if(l.target.tagName==="INPUT")return;if(r(l.target)){let s=l.target;for(;s.parentElement&&s.dataset.headlessuiPortal!==""&&!(s.scrollHeight>s.clientHeight||s.scrollWidth>s.clientWidth);)s=s.parentElement;s.dataset.headlessuiPortal===""&&l.preventDefault()}else l.preventDefault()}},{passive:!1}),t.add(()=>{var l;let s=(l=window.scrollY)!=null?l:window.pageYOffset;o!==s&&window.scrollTo(0,o),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})})}}:{}}function nse(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function rse(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Ii=TA(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Zn(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:rse(n)},i=[tse(),ese(),nse()];i.forEach(({before:o})=>o==null?void 0:o(r)),i.forEach(({after:o})=>o==null?void 0:o(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Ii.subscribe(()=>{let e=Ii.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",i=n.count!==0;(i&&!r||!i&&r)&&Ii.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Ii.dispatch("TEARDOWN",n)}});function ise(e,t,n=()=>({containers:[]})){let r=AA(Ii),i=t?r.get(t):void 0,o=i?i.count>0:!1;return he(()=>{if(!(!t||!e))return Ii.dispatch("PUSH",t,n),()=>Ii.dispatch("POP",t,n)},[e,t]),o}function FA(e,t,n=()=>[document.body]){let r=Wa(e,"scroll-lock");ise(r,t,i=>{var o;return{containers:[...(o=i.containers)!=null?o:[],n]}})}function QS(e){return[e.screenX,e.screenY]}function ose(){let e=b.useRef([-1,-1]);return{wasMoved(t){let n=QS(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=QS(t)}}}function ase(e=0){let[t,n]=b.useState(e),r=b.useCallback(s=>n(s),[t]),i=b.useCallback(s=>n(u=>u|s),[t]),o=b.useCallback(s=>(t&s)===s,[t]),a=b.useCallback(s=>n(u=>u&~s),[n]),l=b.useCallback(s=>n(u=>u^s),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:a,toggleFlag:l}}var lse={},ZS,JS;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((ZS=process==null?void 0:lse)==null?void 0:ZS.NODE_ENV)==="test"&&typeof((JS=Element==null?void 0:Element.prototype)==null?void 0:JS.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
272
+ `)),[]});var sse=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(sse||{});function BA(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function zA(e,t,n,r){let[i,o]=b.useState(n),{hasFlag:a,addFlag:l,removeFlag:s}=ase(e&&i?3:0),u=b.useRef(!1),c=b.useRef(!1),f=so();return he(()=>{var d;if(e){if(n&&o(!0),!t){n&&l(3);return}return(d=r==null?void 0:r.start)==null||d.call(r,n),use(t,{inFlight:u,prepare(){c.current?c.current=!1:c.current=u.current,u.current=!0,!c.current&&(n?(l(3),s(4)):(l(4),s(2)))},run(){c.current?n?(s(3),l(4)):(s(4),l(3)):n?s(1):l(1)},done(){var p;c.current&&typeof t.getAnimations=="function"&&t.getAnimations().length>0||(u.current=!1,s(7),n||o(!1),(p=r==null?void 0:r.end)==null||p.call(r,n))}})}},[e,n,t,f]),e?[i,{closed:a(1),enter:a(2),leave:a(4),transition:a(2)||a(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function use(e,{prepare:t,run:n,done:r,inFlight:i}){let o=Zn();return fse(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(cse(e,r))})}),o.dispose}function cse(e,t){var n,r;let i=Zn();if(!e)return i.dispose;let o=!1;i.add(()=>{o=!0});let a=(r=(n=e.getAnimations)==null?void 0:n.call(e).filter(l=>l instanceof CSSTransition))!=null?r:[];return a.length===0?(t(),i.dispose):(Promise.allSettled(a.map(l=>l.finished)).then(()=>{o||t()}),i.dispose)}function fse(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}function dse(e,{container:t,accept:n,walk:r}){let i=b.useRef(n),o=b.useRef(r);b.useEffect(()=>{i.current=n,o.current=r},[n,r]),he(()=>{if(!t||!e)return;let a=vi(t);if(!a)return;let l=i.current,s=o.current,u=Object.assign(f=>l(f),{acceptNode:l}),c=a.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,u,!1);for(;c.nextNode();)s(c.currentNode)},[t,e,i,o])}function Z0(e,t){let n=b.useRef([]),r=Q(e);b.useEffect(()=>{let i=[...n.current];for(let[o,a]of t.entries())if(n.current[o]!==a){let l=r(t,i);return n.current=t,l}},[r,...t])}function pse(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}const UA={...mc},hse=UA.useInsertionEffect,mse=hse||(e=>e());function HA(e){const t=b.useRef(()=>{});return mse(()=>{t.current=e}),b.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var bg=typeof document<"u"?b.useLayoutEffect:b.useEffect;let eE=!1,vse=0;const tE=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+vse++;function gse(){const[e,t]=b.useState(()=>eE?tE():void 0);return bg(()=>{e==null&&t(tE())},[]),b.useEffect(()=>{eE=!0},[]),e}const yse=UA.useId,xse=yse||gse;function bse(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const wse=b.createContext(null),_se=b.createContext(null),Sse=()=>{var e;return((e=b.useContext(wse))==null?void 0:e.id)||null},Ese=()=>b.useContext(_se),Ose="data-floating-ui-focusable";function $se(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=xse(),o=b.useRef({}),[a]=b.useState(()=>bse()),l=Sse()!=null,[s,u]=b.useState(r.reference),c=HA((p,h,m)=>{o.current.openEvent=p?h:void 0,a.emit("openchange",{open:p,event:h,reason:m,nested:l}),n==null||n(p,h,m)}),f=b.useMemo(()=>({setPositionReference:u}),[]),d=b.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return b.useMemo(()=>({dataRef:o,open:t,onOpenChange:c,elements:d,events:a,floatingId:i,refs:f}),[t,c,d,a,i,f])}function Pse(e){e===void 0&&(e={});const{nodeId:t}=e,n=$se({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=b.useState(null),[l,s]=b.useState(null),c=(i==null?void 0:i.domReference)||o,f=b.useRef(null),d=Ese();bg(()=>{c&&(f.current=c)},[c]);const p=eA({...e,elements:{...i,...l&&{reference:l}}}),h=b.useCallback(x=>{const E=de(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),contextElement:x}:x;s(E),p.refs.setReference(E)},[p.refs]),m=b.useCallback(x=>{(de(x)||x===null)&&(f.current=x,a(x)),(de(p.refs.reference.current)||p.refs.reference.current===null||x!==null&&!de(x))&&p.refs.setReference(x)},[p.refs]),w=b.useMemo(()=>({...p.refs,setReference:m,setPositionReference:h,domReference:f}),[p.refs,m,h]),g=b.useMemo(()=>({...p.elements,domReference:c}),[p.elements,c]),y=b.useMemo(()=>({...p,...r,refs:w,elements:g,nodeId:t}),[p,w,g,t,r]);return bg(()=>{r.dataRef.current.floatingContext=y;const x=d==null?void 0:d.nodesRef.current.find(E=>E.id===t);x&&(x.context=y)}),b.useMemo(()=>({...p,context:y,refs:w,elements:g}),[p,w,g,y])}const nE="active",rE="selected";function Dh(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[nE]:a,[rE]:l,...s}=e;o=s}return{...n==="floating"&&{tabIndex:-1,[Ose]:""},...o,...t.map(a=>{const l=a?a[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((a,l)=>(l&&Object.entries(l).forEach(s=>{let[u,c]=s;if(!(i&&[nE,rE].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof c=="function"){var f;(f=r.get(u))==null||f.push(c),a[u]=function(){for(var d,p=arguments.length,h=new Array(p),m=0;m<p;m++)h[m]=arguments[m];return(d=r.get(u))==null?void 0:d.map(w=>w(...h)).find(w=>w!==void 0)}}}else a[u]=c}),a),{})}}function jse(e){e===void 0&&(e=[]);const t=e.map(l=>l==null?void 0:l.reference),n=e.map(l=>l==null?void 0:l.floating),r=e.map(l=>l==null?void 0:l.item),i=b.useCallback(l=>Dh(l,e,"reference"),t),o=b.useCallback(l=>Dh(l,e,"floating"),n),a=b.useCallback(l=>Dh(l,e,"item"),r);return b.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}function iE(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const Tse=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:i,offset:o=0,index:a=0,minItemsVisible:l=4,referenceOverflowThreshold:s=0,scrollRef:u,...c}=lo(e,t),{rects:f,elements:{floating:d}}=t,p=n.current[a],h=(u==null?void 0:u.current)||d,m=d.clientTop||h.clientTop,w=d.clientTop!==0,g=h.clientTop!==0,y=d===h;if(!p)return{};const x={...t,...await B0(-p.offsetTop-d.clientTop-f.reference.height/2-p.offsetHeight/2-o).fn(t)},E=await jh(iE(x,h.scrollHeight+m+d.clientTop),c),_=await jh(x,{...c,elementContext:"reference"}),S=vt(0,E.top),O=x.y+S,C=(h.scrollHeight>h.clientHeight?A=>A:Is)(vt(0,h.scrollHeight+(w&&y||g?m*2:0)-S-vt(0,E.bottom)));if(h.style.maxHeight=C+"px",h.scrollTop=S,i){const A=h.offsetHeight<p.offsetHeight*Xi(l,n.current.length)-1||_.top>=-s||_.bottom>=-s;Ht.flushSync(()=>i(A))}return r&&(r.current=await jh(iE({...x,y:O},h.offsetHeight+m+d.clientTop),c)),{y:O}}});function Ase(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:a,onChange:l}=t,s=HA(l),u=b.useRef(!1),c=b.useRef(null),f=b.useRef(null);b.useEffect(()=>{if(!i)return;function p(m){if(m.ctrlKey||!h||o.current==null)return;const w=m.deltaY,g=o.current.top>=-.5,y=o.current.bottom>=-.5,x=h.scrollHeight-h.clientHeight,E=w<0?-1:1,_=w<0?"max":"min";h.scrollHeight<=h.clientHeight||(!g&&w>0||!y&&w<0?(m.preventDefault(),Ht.flushSync(()=>{s(S=>S+Math[_](w,x*E))})):/firefox/i.test(pse())&&(h.scrollTop+=w))}const h=(a==null?void 0:a.current)||r.floating;if(n&&h)return h.addEventListener("wheel",p),requestAnimationFrame(()=>{c.current=h.scrollTop,o.current!=null&&(f.current={...o.current})}),()=>{c.current=null,f.current=null,h.removeEventListener("wheel",p)}},[i,n,r.floating,o,a,s]);const d=b.useMemo(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const p=(a==null?void 0:a.current)||r.floating;if(!(!o.current||!p||!u.current)){if(c.current!==null){const h=p.scrollTop-c.current;(o.current.bottom<-.5&&h<-1||o.current.top<-.5&&h>1)&&Ht.flushSync(()=>s(m=>m+h))}requestAnimationFrame(()=>{c.current=p.scrollTop})}}}),[r.floating,s,o,a]);return b.useMemo(()=>i?{floating:d}:{},[i,d])}let Ka=b.createContext({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Ka.displayName="FloatingContext";let J0=b.createContext(null);J0.displayName="PlacementContext";function Cse(e){return b.useMemo(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function kse(){return b.useContext(Ka).setReference}function Nse(){return b.useContext(Ka).getReferenceProps}function Mse(){let{getFloatingProps:e,slot:t}=b.useContext(Ka);return b.useCallback((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function Rse(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=b.useContext(J0),n=b.useMemo(()=>e,[JSON.stringify(e,(i,o)=>{var a;return(a=o==null?void 0:o.outerHTML)!=null?a:o})]);he(()=>{t==null||t(n??null)},[t,n]);let r=b.useContext(Ka);return b.useMemo(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}let oE=4;function Ise({children:e,enabled:t=!0}){let[n,r]=b.useState(null),[i,o]=b.useState(0),a=b.useRef(null),[l,s]=b.useState(null);Lse(l);let u=t&&n!==null&&l!==null,{to:c="bottom",gap:f=0,offset:d=0,padding:p=0,inner:h}=Dse(n,l),[m,w="center"]=c.split(" ");he(()=>{u&&o(0)},[u]);let{refs:g,floatingStyles:y,context:x}=Pse({open:u,placement:m==="selection"?w==="center"?"bottom":`bottom-${w}`:w==="center"?`${m}`:`${m}-${w}`,strategy:"absolute",transform:!1,middleware:[B0({mainAxis:m==="selection"?0:f,crossAxis:d}),tA({padding:p}),m!=="selection"&&cae({padding:p}),m==="selection"&&h?Tse({...h,padding:p,overflowRef:a,offset:i,minItemsVisible:oE,referenceOverflowThreshold:p,onFallbackChange(A){var N,R;if(!A)return;let D=x.elements.floating;if(!D)return;let M=parseFloat(getComputedStyle(D).scrollPaddingBottom)||0,F=Math.min(oE,D.childElementCount),I=0,P=0;for(let k of(R=(N=x.elements.floating)==null?void 0:N.childNodes)!=null?R:[])if(k instanceof HTMLElement){let B=k.offsetTop,L=B+k.clientHeight+M,U=D.scrollTop,V=U+D.clientHeight;if(B>=U&&L<=V)F--;else{P=Math.max(0,Math.min(L,V)-Math.max(B,U)),I=k.clientHeight;break}}F>=1&&o(k=>{let B=I*F-P+M;return k>=B?k:B})}}):null,fae({padding:p,apply({availableWidth:A,availableHeight:N,elements:R}){Object.assign(R.floating.style,{overflow:"auto",maxWidth:`${A}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${N}px)`})}})].filter(Boolean),whileElementsMounted:ZT}),[E=m,_=w]=x.placement.split("-");m==="selection"&&(E="selection");let S=b.useMemo(()=>({anchor:[E,_].filter(Boolean).join(" ")}),[E,_]),O=Ase(x,{overflowRef:a,onChange:o}),{getReferenceProps:$,getFloatingProps:T}=jse([O]),C=Q(A=>{s(A),g.setFloating(A)});return b.createElement(J0.Provider,{value:r},b.createElement(Ka.Provider,{value:{setFloating:C,setReference:g.setReference,styles:y,getReferenceProps:$,getFloatingProps:T,slot:S}},e))}function Lse(e){he(()=>{if(!e)return;let t=new MutationObserver(()=>{let n=window.getComputedStyle(e).maxHeight,r=parseFloat(n);if(isNaN(r))return;let i=parseInt(n);isNaN(i)||r!==i&&(e.style.maxHeight=`${Math.ceil(r)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function Dse(e,t){var n,r,i;let o=Fh((n=e==null?void 0:e.gap)!=null?n:"var(--anchor-gap, 0)",t),a=Fh((r=e==null?void 0:e.offset)!=null?r:"var(--anchor-offset, 0)",t),l=Fh((i=e==null?void 0:e.padding)!=null?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:a,padding:l}}function Fh(e,t,n=void 0){let r=so(),i=Q((s,u)=>{if(s==null)return[n,null];if(typeof s=="number")return[s,null];if(typeof s=="string"){if(!u)return[n,null];let c=aE(s,u);return[c,f=>{let d=WA(s);{let p=d.map(h=>window.getComputedStyle(u).getPropertyValue(h));r.requestAnimationFrame(function h(){r.nextFrame(h);let m=!1;for(let[g,y]of d.entries()){let x=window.getComputedStyle(u).getPropertyValue(y);if(p[g]!==x){p[g]=x,m=!0;break}}if(!m)return;let w=aE(s,u);c!==w&&(f(w),c=w)})}return r.dispose}]}return[n,null]}),o=b.useMemo(()=>i(e,t)[0],[e,t]),[a=o,l]=b.useState();return he(()=>{let[s,u]=i(e,t);if(l(s),!!u)return u(l)},[e,t]),a}function WA(e){let t=/var\((.*)\)/.exec(e);if(t){let n=t[1].indexOf(",");if(n===-1)return[t[1]];let r=t[1].slice(0,n).trim(),i=t[1].slice(n+1).trim();return i?[r,...WA(i)]:[r]}return[]}function aE(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}let mp=b.createContext(null);mp.displayName="OpenClosedContext";var Et=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Et||{});function du(){return b.useContext(mp)}function VA({value:e,children:t}){return j.createElement(mp.Provider,{value:e},t)}function Fse({children:e}){return j.createElement(mp.Provider,{value:null},e)}function Bse(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Hr=[];Bse(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||Hr[0]===t.target)return;let n=t.target;n=n.closest(Kf),Hr.unshift(n??t.target),Hr=Hr.filter(r=>r!=null&&r.isConnected),Hr.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function zse(e){throw new Error("Unexpected object: "+e)}var gt=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(gt||{});function Bh(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1;switch(e.focus){case 0:{for(let o=0;o<n.length;++o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 1:{i===-1&&(i=n.length);for(let o=i-1;o>=0;--o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 2:{for(let o=i+1;o<n.length;++o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 3:{for(let o=n.length-1;o>=0;--o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 4:{for(let o=0;o<n.length;++o)if(t.resolveId(n[o],o,n)===e.id)return o;return r}case 5:return null;default:zse(e)}}function KA(e){let t=Q(e),n=b.useRef(!1);b.useEffect(()=>(n.current=!1,()=>{n.current=!0,fp(()=>{n.current&&t()})}),[t])}function Use(){let e=typeof document>"u";return"useSyncExternalStore"in mc?(t=>t.useSyncExternalStore)(mc)(()=>()=>{},()=>!1,()=>!e):!1}function pu(){let e=Use(),[t,n]=b.useState(zi.isHandoffComplete);return t&&zi.isHandoffComplete===!1&&n(!1),b.useEffect(()=>{t!==!0&&n(!0)},[t]),b.useEffect(()=>zi.handoff(),[]),e?!1:t}let GA=b.createContext(!1);function Hse(){return b.useContext(GA)}function lE(e){return j.createElement(GA.Provider,{value:e.force},e.children)}function Wse(e){let t=Hse(),n=b.useContext(XA),r=Va(e),[i,o]=b.useState(()=>{var a;if(!t&&n!==null)return(a=n.current)!=null?a:null;if(zi.isServer)return null;let l=r==null?void 0:r.getElementById("headlessui-portal-root");if(l)return l;if(r===null)return null;let s=r.createElement("div");return s.setAttribute("id","headlessui-portal-root"),r.body.appendChild(s)});return b.useEffect(()=>{i!==null&&(r!=null&&r.body.contains(i)||r==null||r.body.appendChild(i))},[i,r]),b.useEffect(()=>{t||n!==null&&o(n.current)},[n,o,t]),i}let qA=b.Fragment,Vse=Ee(function(e,t){let n=e,r=b.useRef(null),i=at(Ple(f=>{r.current=f}),t),o=Va(r),a=Wse(r),[l]=b.useState(()=>{var f;return zi.isServer?null:(f=o==null?void 0:o.createElement("div"))!=null?f:null}),s=b.useContext(wg),u=pu();he(()=>{!a||!l||a.contains(l)||(l.setAttribute("data-headlessui-portal",""),a.appendChild(l))},[a,l]),he(()=>{if(l&&s)return s.register(l)},[s,l]),KA(()=>{var f;!a||!l||(l instanceof Node&&a.contains(l)&&a.removeChild(l),a.childNodes.length<=0&&((f=a.parentElement)==null||f.removeChild(a)))});let c=Ie();return u?!a||!l?null:Ht.createPortal(c({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:qA,name:"Portal"}),l):null});function Kse(e,t){let n=at(t),{enabled:r=!0,...i}=e,o=Ie();return r?j.createElement(Vse,{...i,ref:n}):o({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:qA,name:"Portal"})}let Gse=b.Fragment,XA=b.createContext(null);function qse(e,t){let{target:n,...r}=e,i={ref:at(t)},o=Ie();return j.createElement(XA.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:Gse,name:"Popover.Group"}))}let wg=b.createContext(null);function Xse(){let e=b.useContext(wg),t=b.useRef([]),n=Q(o=>(t.current.push(o),e&&e.register(o),()=>r(o))),r=Q(o=>{let a=t.current.indexOf(o);a!==-1&&t.current.splice(a,1),e&&e.unregister(o)}),i=b.useMemo(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,b.useMemo(()=>function({children:o}){return j.createElement(wg.Provider,{value:i},o)},[i])]}let Yse=Ee(Kse),YA=Ee(qse),QA=Object.assign(Yse,{Group:YA});function Qse(e,t=typeof document<"u"?document.defaultView:null,n){let r=Wa(e,"escape");DA(t,"keydown",i=>{r&&(i.defaultPrevented||i.key===Ne.Escape&&n(i))})}function Zse(){var e;let[t]=b.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=b.useState((e=t==null?void 0:t.matches)!=null?e:!1);return he(()=>{if(!t)return;function i(o){r(o.matches)}return t.addEventListener("change",i),()=>t.removeEventListener("change",i)},[t]),n}function Jse({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=Va(n),i=Q(()=>{var o,a;let l=[];for(let s of e)s!==null&&(s instanceof HTMLElement?l.push(s):"current"in s&&s.current instanceof HTMLElement&&l.push(s.current));if(t!=null&&t.current)for(let s of t.current)l.push(s);for(let s of(o=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?o:[])s!==document.body&&s!==document.head&&s instanceof HTMLElement&&s.id!=="headlessui-portal-root"&&(n&&(s.contains(n)||s.contains((a=n==null?void 0:n.getRootNode())==null?void 0:a.host))||l.some(u=>s.contains(u))||l.push(s));return l});return{resolveContainers:i,contains:Q(o=>i().some(a=>a.contains(o)))}}let ZA=b.createContext(null);function sE({children:e,node:t}){let[n,r]=b.useState(null),i=JA(t??n);return j.createElement(ZA.Provider,{value:i},e,i===null&&j.createElement(Sa,{features:eo.Hidden,ref:o=>{var a,l;if(o){for(let s of(l=(a=vi(o))==null?void 0:a.querySelectorAll("html > *, body > *"))!=null?l:[])if(s!==document.body&&s!==document.head&&s instanceof HTMLElement&&s!=null&&s.contains(o)){r(s);break}}}}))}function JA(e=null){var t;return(t=b.useContext(ZA))!=null?t:e}function ex(){let e=b.useRef(!1);return he(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var xl=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(xl||{});function eue(){let e=b.useRef(0);return IA(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function eC(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let tue="div";var ji=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(ji||{});function nue(e,t){let n=b.useRef(null),r=at(n,t),{initialFocus:i,initialFocusFallback:o,containers:a,features:l=15,...s}=e;pu()||(l=0);let u=Va(n);aue(l,{ownerDocument:u});let c=lue(l,{ownerDocument:u,container:n,initialFocus:i,initialFocusFallback:o});sue(l,{ownerDocument:u,container:n,containers:a,previousActiveElement:c});let f=eue(),d=Q(y=>{let x=n.current;x&&(E=>E())(()=>{Tn(f.current,{[xl.Forwards]:()=>{oi(x,_t.First,{skipElements:[y.relatedTarget,o]})},[xl.Backwards]:()=>{oi(x,_t.Last,{skipElements:[y.relatedTarget,o]})}})})}),p=Wa(!!(l&2),"focus-trap#tab-lock"),h=so(),m=b.useRef(!1),w={ref:r,onKeyDown(y){y.key=="Tab"&&(m.current=!0,h.requestAnimationFrame(()=>{m.current=!1}))},onBlur(y){if(!(l&4))return;let x=eC(a);n.current instanceof HTMLElement&&x.add(n.current);let E=y.relatedTarget;E instanceof HTMLElement&&E.dataset.headlessuiFocusGuard!=="true"&&(tC(x,E)||(m.current?oi(n.current,Tn(f.current,{[xl.Forwards]:()=>_t.Next,[xl.Backwards]:()=>_t.Previous})|_t.WrapAround,{relativeTo:y.target}):y.target instanceof HTMLElement&&qn(y.target)))}},g=Ie();return j.createElement(j.Fragment,null,p&&j.createElement(Sa,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:eo.Focusable}),g({ourProps:w,theirProps:s,defaultTag:tue,name:"FocusTrap"}),p&&j.createElement(Sa,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:eo.Focusable}))}let rue=Ee(nue),iue=Object.assign(rue,{features:ji});function oue(e=!0){let t=b.useRef(Hr.slice());return Z0(([n],[r])=>{r===!0&&n===!1&&fp(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=Hr.slice())},[e,Hr,t]),Q(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function aue(e,{ownerDocument:t}){let n=!!(e&8),r=oue(n);Z0(()=>{n||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&qn(r())},[n]),KA(()=>{n&&qn(r())})}function lue(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:i}){let o=b.useRef(null),a=Wa(!!(e&1),"focus-trap#initial-focus"),l=ex();return Z0(()=>{if(e===0)return;if(!a){i!=null&&i.current&&qn(i.current);return}let s=n.current;s&&fp(()=>{if(!l.current)return;let u=t==null?void 0:t.activeElement;if(r!=null&&r.current){if((r==null?void 0:r.current)===u){o.current=u;return}}else if(s.contains(u)){o.current=u;return}if(r!=null&&r.current)qn(r.current);else{if(e&16){if(oi(s,_t.First|_t.AutoFocus)!==Ds.Error)return}else if(oi(s,_t.First)!==Ds.Error)return;if(i!=null&&i.current&&(qn(i.current),(t==null?void 0:t.activeElement)===i.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}o.current=t==null?void 0:t.activeElement})},[i,a,e]),o}function sue(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:i}){let o=ex(),a=!!(e&4);DA(t==null?void 0:t.defaultView,"focus",l=>{if(!a||!o.current)return;let s=eC(r);n.current instanceof HTMLElement&&s.add(n.current);let u=i.current;if(!u)return;let c=l.target;c&&c instanceof HTMLElement?tC(s,c)?(i.current=c,qn(c)):(l.preventDefault(),l.stopPropagation(),qn(u)):qn(i.current)},!0)}function tC(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function nC(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:iC)!==b.Fragment||j.Children.count(e.children)===1}let vp=b.createContext(null);vp.displayName="TransitionContext";var uue=(e=>(e.Visible="visible",e.Hidden="hidden",e))(uue||{});function cue(){let e=b.useContext(vp);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function fue(){let e=b.useContext(gp);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let gp=b.createContext(null);gp.displayName="NestingContext";function yp(e){return"children"in e?yp(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function rC(e,t){let n=Mr(e),r=b.useRef([]),i=ex(),o=so(),a=Q((p,h=Gr.Hidden)=>{let m=r.current.findIndex(({el:w})=>w===p);m!==-1&&(Tn(h,{[Gr.Unmount](){r.current.splice(m,1)},[Gr.Hidden](){r.current[m].state="hidden"}}),o.microTask(()=>{var w;!yp(r)&&i.current&&((w=n.current)==null||w.call(n))}))}),l=Q(p=>{let h=r.current.find(({el:m})=>m===p);return h?h.state!=="visible"&&(h.state="visible"):r.current.push({el:p,state:"visible"}),()=>a(p,Gr.Unmount)}),s=b.useRef([]),u=b.useRef(Promise.resolve()),c=b.useRef({enter:[],leave:[]}),f=Q((p,h,m)=>{s.current.splice(0),t&&(t.chains.current[h]=t.chains.current[h].filter(([w])=>w!==p)),t==null||t.chains.current[h].push([p,new Promise(w=>{s.current.push(w)})]),t==null||t.chains.current[h].push([p,new Promise(w=>{Promise.all(c.current[h].map(([g,y])=>y)).then(()=>w())})]),h==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>m(h)):m(h)}),d=Q((p,h,m)=>{Promise.all(c.current[h].splice(0).map(([w,g])=>g)).then(()=>{var w;(w=s.current.shift())==null||w()}).then(()=>m(h))});return b.useMemo(()=>({children:r,register:l,unregister:a,onStart:f,onStop:d,wait:u,chains:c}),[l,a,r,f,d,c,u])}let iC=b.Fragment,oC=_a.RenderStrategy;function due(e,t){var n,r;let{transition:i=!0,beforeEnter:o,afterEnter:a,beforeLeave:l,afterLeave:s,enter:u,enterFrom:c,enterTo:f,entered:d,leave:p,leaveFrom:h,leaveTo:m,...w}=e,[g,y]=b.useState(null),x=b.useRef(null),E=nC(e),_=at(...E?[x,t,y]:t===null?[]:[t]),S=(n=w.unmount)==null||n?Gr.Unmount:Gr.Hidden,{show:O,appear:$,initial:T}=cue(),[C,A]=b.useState(O?"visible":"hidden"),N=fue(),{register:R,unregister:D}=N;he(()=>R(x),[R,x]),he(()=>{if(S===Gr.Hidden&&x.current){if(O&&C!=="visible"){A("visible");return}return Tn(C,{hidden:()=>D(x),visible:()=>R(x)})}},[C,x,R,D,O,S]);let M=pu();he(()=>{if(E&&M&&C==="visible"&&x.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[x,C,M,E]);let F=T&&!$,I=$&&O&&T,P=b.useRef(!1),k=rC(()=>{P.current||(A("hidden"),D(x))},N),B=Q(Ce=>{P.current=!0;let Oe=Ce?"enter":"leave";k.onStart(x,Oe,K=>{K==="enter"?o==null||o():K==="leave"&&(l==null||l())})}),L=Q(Ce=>{let Oe=Ce?"enter":"leave";P.current=!1,k.onStop(x,Oe,K=>{K==="enter"?a==null||a():K==="leave"&&(s==null||s())}),Oe==="leave"&&!yp(k)&&(A("hidden"),D(x))});b.useEffect(()=>{E&&i||(B(O),L(O))},[O,E,i]);let U=!(!i||!E||!M||F),[,V]=zA(U,g,O,{start:B,end:L}),re=Br({ref:_,className:((r=yg(w.className,I&&u,I&&c,V.enter&&u,V.enter&&V.closed&&c,V.enter&&!V.closed&&f,V.leave&&p,V.leave&&!V.closed&&h,V.leave&&V.closed&&m,!V.transition&&O&&d))==null?void 0:r.trim())||void 0,...BA(V)}),ie=0;C==="visible"&&(ie|=Et.Open),C==="hidden"&&(ie|=Et.Closed),V.enter&&(ie|=Et.Opening),V.leave&&(ie|=Et.Closing);let J=Ie();return j.createElement(gp.Provider,{value:k},j.createElement(VA,{value:ie},J({ourProps:re,theirProps:w,defaultTag:iC,features:oC,visible:C==="visible",name:"Transition.Child"})))}function pue(e,t){let{show:n,appear:r=!1,unmount:i=!0,...o}=e,a=b.useRef(null),l=nC(e),s=at(...l?[a,t]:t===null?[]:[t]);pu();let u=du();if(n===void 0&&u!==null&&(n=(u&Et.Open)===Et.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,f]=b.useState(n?"visible":"hidden"),d=rC(()=>{n||f("hidden")}),[p,h]=b.useState(!0),m=b.useRef([n]);he(()=>{p!==!1&&m.current[m.current.length-1]!==n&&(m.current.push(n),h(!1))},[m,n]);let w=b.useMemo(()=>({show:n,appear:r,initial:p}),[n,r,p]);he(()=>{n?f("visible"):!yp(d)&&a.current!==null&&f("hidden")},[n,d]);let g={unmount:i},y=Q(()=>{var _;p&&h(!1),(_=e.beforeEnter)==null||_.call(e)}),x=Q(()=>{var _;p&&h(!1),(_=e.beforeLeave)==null||_.call(e)}),E=Ie();return j.createElement(gp.Provider,{value:d},j.createElement(vp.Provider,{value:w},E({ourProps:{...g,as:b.Fragment,children:j.createElement(aC,{ref:s,...g,...o,beforeEnter:y,beforeLeave:x})},theirProps:{},defaultTag:b.Fragment,features:oC,visible:c==="visible",name:"Transition"})))}function hue(e,t){let n=b.useContext(vp)!==null,r=du()!==null;return j.createElement(j.Fragment,null,!n&&r?j.createElement(_g,{ref:t,...e}):j.createElement(aC,{ref:t,...e}))}let _g=Ee(pue),aC=Ee(due),xp=Ee(hue),mue=Object.assign(_g,{Child:xp,Root:_g});var vue=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(vue||{}),gue=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(gue||{});let yue={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},tx=b.createContext(null);tx.displayName="DialogContext";function bp(e){let t=b.useContext(tx);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,bp),n}return t}function xue(e,t){return Tn(t.type,yue,e,t)}let uE=Ee(function(e,t){let n=b.useId(),{id:r=`headlessui-dialog-${n}`,open:i,onClose:o,initialFocus:a,role:l="dialog",autoFocus:s=!0,__demoMode:u=!1,unmount:c=!1,...f}=e,d=b.useRef(!1);l=function(){return l==="dialog"||l==="alertdialog"?l:(d.current||(d.current=!0,console.warn(`Invalid role [${l}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let p=du();i===void 0&&p!==null&&(i=(p&Et.Open)===Et.Open);let h=b.useRef(null),m=at(h,t),w=Va(h),g=i?0:1,[y,x]=b.useReducer(xue,{titleId:null,descriptionId:null,panelRef:b.createRef()}),E=Q(()=>o(!1)),_=Q(L=>x({type:0,id:L})),S=pu()?g===0:!1,[O,$]=Xse(),T={get current(){var L;return(L=y.panelRef.current)!=null?L:h.current}},C=JA(),{resolveContainers:A}=Jse({mainTreeNode:C,portals:O,defaultContainers:[T]}),N=p!==null?(p&Et.Closing)===Et.Closing:!1;CA(u||N?!1:S,{allowed:Q(()=>{var L,U;return[(U=(L=h.current)==null?void 0:L.closest("[data-headlessui-portal]"))!=null?U:null]}),disallowed:Q(()=>{var L;return[(L=C==null?void 0:C.closest("body > *:not(#headlessui-portal-root)"))!=null?L:null]})}),LA(S,A,L=>{L.preventDefault(),E()}),Qse(S,w==null?void 0:w.defaultView,L=>{L.preventDefault(),L.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),E()}),FA(u||N?!1:S,w,A),kA(S,h,E);let[R,D]=cu(),M=b.useMemo(()=>[{dialogState:g,close:E,setTitleId:_,unmount:c},y],[g,y,E,_,c]),F=b.useMemo(()=>({open:g===0}),[g]),I={ref:m,id:r,role:l,tabIndex:-1,"aria-modal":u?void 0:g===0?!0:void 0,"aria-labelledby":y.titleId,"aria-describedby":R,unmount:c},P=!Zse(),k=ji.None;S&&!u&&(k|=ji.RestoreFocus,k|=ji.TabLock,s&&(k|=ji.AutoFocus),P&&(k|=ji.InitialFocus));let B=Ie();return j.createElement(Fse,null,j.createElement(lE,{force:!0},j.createElement(QA,null,j.createElement(tx.Provider,{value:M},j.createElement(YA,{target:h},j.createElement(lE,{force:!1},j.createElement(D,{slot:F},j.createElement($,null,j.createElement(iue,{initialFocus:a,initialFocusFallback:h,containers:A,features:k},j.createElement(Lle,{value:E},B({ourProps:I,theirProps:f,slot:F,defaultTag:bue,features:wue,visible:g===0,name:"Dialog"})))))))))))}),bue="div",wue=_a.RenderStrategy|_a.Static;function _ue(e,t){let{transition:n=!1,open:r,...i}=e,o=du(),a=e.hasOwnProperty("open")||o!==null,l=e.hasOwnProperty("onClose");if(!a&&!l)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!a)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!l)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!o&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(r!==void 0||n)&&!i.static?j.createElement(sE,null,j.createElement(mue,{show:r,transition:n,unmount:i.unmount},j.createElement(uE,{ref:t,...i}))):j.createElement(sE,null,j.createElement(uE,{ref:t,open:r,...i}))}let Sue="div";function Eue(e,t){let n=b.useId(),{id:r=`headlessui-dialog-panel-${n}`,transition:i=!1,...o}=e,[{dialogState:a,unmount:l},s]=bp("Dialog.Panel"),u=at(t,s.panelRef),c=b.useMemo(()=>({open:a===0}),[a]),f=Q(w=>{w.stopPropagation()}),d={ref:u,id:r,onClick:f},p=i?xp:b.Fragment,h=i?{unmount:l}:{},m=Ie();return j.createElement(p,{...h},m({ourProps:d,theirProps:o,slot:c,defaultTag:Sue,name:"Dialog.Panel"}))}let Oue="div";function $ue(e,t){let{transition:n=!1,...r}=e,[{dialogState:i,unmount:o}]=bp("Dialog.Backdrop"),a=b.useMemo(()=>({open:i===0}),[i]),l={ref:t,"aria-hidden":!0},s=n?xp:b.Fragment,u=n?{unmount:o}:{},c=Ie();return j.createElement(s,{...u},c({ourProps:l,theirProps:r,slot:a,defaultTag:Oue,name:"Dialog.Backdrop"}))}let Pue="h2";function jue(e,t){let n=b.useId(),{id:r=`headlessui-dialog-title-${n}`,...i}=e,[{dialogState:o,setTitleId:a}]=bp("Dialog.Title"),l=at(t);b.useEffect(()=>(a(r),()=>a(null)),[r,a]);let s=b.useMemo(()=>({open:o===0}),[o]),u={ref:l,id:r};return Ie()({ourProps:u,theirProps:i,slot:s,defaultTag:Pue,name:"Dialog.Title"})}let Tue=Ee(_ue),lC=Ee(Eue),Aue=Ee($ue),Cue=Ee(jue),kue=Object.assign(Tue,{Panel:lC,Title:Cue,Description:PA}),Nue="div";function Mue(e,t){let n=`headlessui-control-${b.useId()}`,[r,i]=fu(),[o,a]=cu(),l=uu(),{disabled:s=l||!1,...u}=e,c=b.useMemo(()=>({disabled:s}),[s]),f={ref:t,disabled:s||void 0,"aria-disabled":s||void 0},d=Ie();return j.createElement(fle,{value:s},j.createElement(i,{value:r},j.createElement(a,{value:o},j.createElement(Ole,{id:n},d({ourProps:f,theirProps:{...u,children:j.createElement(wle,null,typeof u.children=="function"?u.children(c):u.children)},slot:c,defaultTag:Nue,name:"Field"})))))}let Rue=Ee(Mue);function Iue(e,t){let n=b.useRef({left:0,top:0});if(he(()=>{if(!t)return;let i=t.getBoundingClientRect();i&&(n.current=i)},[e,t]),t==null||!e||t===document.activeElement)return!1;let r=t.getBoundingClientRect();return r.top!==n.current.top||r.left!==n.current.left}let cE=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function fE(e){var t,n;let r=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let o=!1;for(let l of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))l.remove(),o=!0;let a=o?(n=i.innerText)!=null?n:"":r;return cE.test(a)&&(a=a.replace(cE,"")),a}function Lue(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(i=>{let o=document.getElementById(i);if(o){let a=o.getAttribute("aria-label");return typeof a=="string"?a.trim():fE(o).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return fE(e).trim()}function Due(e){let t=b.useRef(""),n=b.useRef("");return Q(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let o=Lue(r).trim().toLowerCase();return t.current=i,n.current=o,o})}var Fue=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Fue||{}),Bue=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Bue||{}),zue=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetItemsElement=8]="SetItemsElement",e))(zue||{});function zh(e,t=n=>n){let n=e.activeItemIndex!==null?e.items[e.activeItemIndex]:null,r=Q0(t(e.items.slice()),o=>o.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return i===-1&&(i=null),{items:r,activeItemIndex:i}}let Uue={1(e){return e.menuState===1?e:{...e,activeItemIndex:null,menuState:1}},0(e){return e.menuState===0?e:{...e,__demoMode:!1,menuState:0}},2:(e,t)=>{var n,r,i,o,a;if(e.menuState===1)return e;let l={...e,searchQuery:"",activationTrigger:(n=t.trigger)!=null?n:1,__demoMode:!1};if(t.focus===gt.Nothing)return{...l,activeItemIndex:null};if(t.focus===gt.Specific)return{...l,activeItemIndex:e.items.findIndex(c=>c.id===t.id)};if(t.focus===gt.Previous){let c=e.activeItemIndex;if(c!==null){let f=e.items[c].dataRef.current.domRef,d=Bh(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:p=>p.id,resolveDisabled:p=>p.dataRef.current.disabled});if(d!==null){let p=e.items[d].dataRef.current.domRef;if(((r=f.current)==null?void 0:r.previousElementSibling)===p.current||((i=p.current)==null?void 0:i.previousElementSibling)===null)return{...l,activeItemIndex:d}}}}else if(t.focus===gt.Next){let c=e.activeItemIndex;if(c!==null){let f=e.items[c].dataRef.current.domRef,d=Bh(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:p=>p.id,resolveDisabled:p=>p.dataRef.current.disabled});if(d!==null){let p=e.items[d].dataRef.current.domRef;if(((o=f.current)==null?void 0:o.nextElementSibling)===p.current||((a=p.current)==null?void 0:a.nextElementSibling)===null)return{...l,activeItemIndex:d}}}}let s=zh(e),u=Bh(t,{resolveItems:()=>s.items,resolveActiveIndex:()=>s.activeItemIndex,resolveId:c=>c.id,resolveDisabled:c=>c.dataRef.current.disabled});return{...l,...s,activeItemIndex:u}},3:(e,t)=>{let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(e.activeItemIndex!==null?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find(a=>{var l;return((l=a.dataRef.current.textValue)==null?void 0:l.startsWith(r))&&!a.dataRef.current.disabled}),o=i?e.items.indexOf(i):-1;return o===-1||o===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:o,activationTrigger:1}},4(e){return e.searchQuery===""?e:{...e,searchQuery:"",searchActiveItemIndex:null}},5:(e,t)=>{let n=zh(e,r=>[...r,{id:t.id,dataRef:t.dataRef}]);return{...e,...n}},6:(e,t)=>{let n=zh(e,r=>{let i=r.findIndex(o=>o.id===t.id);return i!==-1&&r.splice(i,1),r});return{...e,...n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.itemsElement===t.element?e:{...e,itemsElement:t.element}},nx=b.createContext(null);nx.displayName="MenuContext";function wp(e){let t=b.useContext(nx);if(t===null){let n=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,wp),n}return t}function Hue(e,t){return Tn(t.type,Uue,e,t)}let Wue=b.Fragment;function Vue(e,t){let{__demoMode:n=!1,...r}=e,i=b.useReducer(Hue,{__demoMode:n,menuState:n?0:1,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:o,itemsElement:a,buttonElement:l},s]=i,u=at(t);LA(o===0,[l,a],(h,m)=>{s({type:1}),Y0(m,X0.Loose)||(h.preventDefault(),l==null||l.focus())});let c=Q(()=>{s({type:1})}),f=b.useMemo(()=>({open:o===0,close:c}),[o,c]),d={ref:u},p=Ie();return j.createElement(Ise,null,j.createElement(nx.Provider,{value:i},j.createElement(VA,{value:Tn(o,{0:Et.Open,1:Et.Closed})},p({ourProps:d,theirProps:r,slot:f,defaultTag:Wue,name:"Menu"}))))}let Kue="button";function Gue(e,t){var n;let r=b.useId(),{id:i=`headlessui-menu-button-${r}`,disabled:o=!1,autoFocus:a=!1,...l}=e,[s,u]=wp("Menu.Button"),c=Nse(),f=at(t,kse(),Q(O=>u({type:7,element:O}))),d=Q(O=>{switch(O.key){case Ne.Space:case Ne.Enter:case Ne.ArrowDown:O.preventDefault(),O.stopPropagation(),Ht.flushSync(()=>u({type:0})),u({type:2,focus:gt.First});break;case Ne.ArrowUp:O.preventDefault(),O.stopPropagation(),Ht.flushSync(()=>u({type:0})),u({type:2,focus:gt.Last});break}}),p=Q(O=>{switch(O.key){case Ne.Space:O.preventDefault();break}}),h=Q(O=>{var $;if(G0(O.currentTarget))return O.preventDefault();o||(s.menuState===0?(Ht.flushSync(()=>u({type:1})),($=s.buttonElement)==null||$.focus({preventScroll:!0})):(O.preventDefault(),u({type:0})))}),{isFocusVisible:m,focusProps:w}=K0({autoFocus:a}),{isHovered:g,hoverProps:y}=V0({isDisabled:o}),{pressed:x,pressProps:E}=cle({disabled:o}),_=b.useMemo(()=>({open:s.menuState===0,active:x||s.menuState===0,disabled:o,hover:g,focus:m,autofocus:a}),[s,g,m,x,o,a]),S=dp(c(),{ref:f,id:i,type:Jle(e,s.buttonElement),"aria-haspopup":"menu","aria-controls":(n=s.itemsElement)==null?void 0:n.id,"aria-expanded":s.menuState===0,disabled:o||void 0,autoFocus:a,onKeyDown:d,onKeyUp:p,onClick:h},w,y,E);return Ie()({ourProps:S,theirProps:l,slot:_,defaultTag:Kue,name:"Menu.Button"})}let que="div",Xue=_a.RenderStrategy|_a.Static;function Yue(e,t){var n,r;let i=b.useId(),{id:o=`headlessui-menu-items-${i}`,anchor:a,portal:l=!1,modal:s=!0,transition:u=!1,...c}=e,f=Cse(a),[d,p]=wp("Menu.Items"),[h,m]=Rse(f),w=Mse(),[g,y]=b.useState(null),x=at(t,f?h:null,Q(P=>p({type:8,element:P})),y),E=Va(d.itemsElement);f&&(l=!0);let _=du(),[S,O]=zA(u,g,_!==null?(_&Et.Open)===Et.Open:d.menuState===0);kA(S,d.buttonElement,()=>{p({type:1})});let $=d.__demoMode?!1:s&&d.menuState===0;FA($,E);let T=d.__demoMode?!1:s&&d.menuState===0;CA(T,{allowed:b.useCallback(()=>[d.buttonElement,d.itemsElement],[d.buttonElement,d.itemsElement])});let C=d.menuState!==0,A=Iue(C,d.buttonElement)?!1:S;b.useEffect(()=>{let P=d.itemsElement;P&&d.menuState===0&&P!==(E==null?void 0:E.activeElement)&&P.focus({preventScroll:!0})},[d.menuState,d.itemsElement,E]),dse(d.menuState===0,{container:d.itemsElement,accept(P){return P.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:P.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(P){P.setAttribute("role","none")}});let N=so(),R=Q(P=>{var k,B,L;switch(N.dispose(),P.key){case Ne.Space:if(d.searchQuery!=="")return P.preventDefault(),P.stopPropagation(),p({type:3,value:P.key});case Ne.Enter:if(P.preventDefault(),P.stopPropagation(),p({type:1}),d.activeItemIndex!==null){let{dataRef:U}=d.items[d.activeItemIndex];(B=(k=U.current)==null?void 0:k.domRef.current)==null||B.click()}MA(d.buttonElement);break;case Ne.ArrowDown:return P.preventDefault(),P.stopPropagation(),p({type:2,focus:gt.Next});case Ne.ArrowUp:return P.preventDefault(),P.stopPropagation(),p({type:2,focus:gt.Previous});case Ne.Home:case Ne.PageUp:return P.preventDefault(),P.stopPropagation(),p({type:2,focus:gt.First});case Ne.End:case Ne.PageDown:return P.preventDefault(),P.stopPropagation(),p({type:2,focus:gt.Last});case Ne.Escape:P.preventDefault(),P.stopPropagation(),Ht.flushSync(()=>p({type:1})),(L=d.buttonElement)==null||L.focus({preventScroll:!0});break;case Ne.Tab:P.preventDefault(),P.stopPropagation(),Ht.flushSync(()=>p({type:1})),Yle(d.buttonElement,P.shiftKey?_t.Previous:_t.Next);break;default:P.key.length===1&&(p({type:3,value:P.key}),N.setTimeout(()=>p({type:4}),350));break}}),D=Q(P=>{switch(P.key){case Ne.Space:P.preventDefault();break}}),M=b.useMemo(()=>({open:d.menuState===0}),[d.menuState]),F=dp(f?w():{},{"aria-activedescendant":d.activeItemIndex===null||(n=d.items[d.activeItemIndex])==null?void 0:n.id,"aria-labelledby":(r=d.buttonElement)==null?void 0:r.id,id:o,onKeyDown:R,onKeyUp:D,role:"menu",tabIndex:d.menuState===0?0:void 0,ref:x,style:{...c.style,...m,"--button-width":zle(d.buttonElement,!0).width},...BA(O)}),I=Ie();return j.createElement(QA,{enabled:l?e.static||S:!1},I({ourProps:F,theirProps:c,slot:M,defaultTag:que,features:Xue,visible:A,name:"Menu.Items"}))}let Que=b.Fragment;function Zue(e,t){let n=b.useId(),{id:r=`headlessui-menu-item-${n}`,disabled:i=!1,...o}=e,[a,l]=wp("Menu.Item"),s=a.activeItemIndex!==null?a.items[a.activeItemIndex].id===r:!1,u=b.useRef(null),c=at(t,u);he(()=>{if(!a.__demoMode&&a.menuState===0&&s&&a.activationTrigger!==0)return Zn().requestAnimationFrame(()=>{var A,N;(N=(A=u.current)==null?void 0:A.scrollIntoView)==null||N.call(A,{block:"nearest"})})},[a.__demoMode,u,s,a.menuState,a.activationTrigger,a.activeItemIndex]);let f=Due(u),d=b.useRef({disabled:i,domRef:u,get textValue(){return f()}});he(()=>{d.current.disabled=i},[d,i]),he(()=>(l({type:5,id:r,dataRef:d}),()=>l({type:6,id:r})),[d,r]);let p=Q(()=>{l({type:1})}),h=Q(A=>{if(i)return A.preventDefault();l({type:1}),MA(a.buttonElement)}),m=Q(()=>{if(i)return l({type:2,focus:gt.Nothing});l({type:2,focus:gt.Specific,id:r})}),w=ose(),g=Q(A=>{w.update(A),!i&&(s||l({type:2,focus:gt.Specific,id:r,trigger:0}))}),y=Q(A=>{w.wasMoved(A)&&(i||s||l({type:2,focus:gt.Specific,id:r,trigger:0}))}),x=Q(A=>{w.wasMoved(A)&&(i||s&&l({type:2,focus:gt.Nothing}))}),[E,_]=fu(),[S,O]=cu(),$=b.useMemo(()=>({active:s,focus:s,disabled:i,close:p}),[s,i,p]),T={id:r,ref:c,role:"menuitem",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-labelledby":E,"aria-describedby":S,disabled:void 0,onClick:h,onFocus:m,onPointerEnter:g,onMouseEnter:g,onPointerMove:y,onMouseMove:y,onPointerLeave:x,onMouseLeave:x},C=Ie();return j.createElement(_,null,j.createElement(O,null,C({ourProps:T,theirProps:o,slot:$,defaultTag:Que,name:"Menu.Item"})))}let Jue="div";function ece(e,t){let[n,r]=fu(),i=e,o={ref:t,"aria-labelledby":n,role:"group"},a=Ie();return j.createElement(r,null,a({ourProps:o,theirProps:i,slot:{},defaultTag:Jue,name:"Menu.Section"}))}let tce="header";function nce(e,t){let n=b.useId(),{id:r=`headlessui-menu-heading-${n}`,...i}=e,o=q0();he(()=>o.register(r),[r,o.register]);let a={id:r,ref:t,role:"presentation",...o.props};return Ie()({ourProps:a,theirProps:i,slot:{},defaultTag:tce,name:"Menu.Heading"})}let rce="div";function ice(e,t){let n=e,r={ref:t,role:"separator"};return Ie()({ourProps:r,theirProps:n,slot:{},defaultTag:rce,name:"Menu.Separator"})}let oce=Ee(Vue),sC=Ee(Gue),uC=Ee(Yue),cC=Ee(Zue),ace=Ee(ece),lce=Ee(nce),sce=Ee(ice),uce=Object.assign(oce,{Button:sC,Items:uC,Item:cC,Section:ace,Heading:lce,Separator:sce});var cce=(e=>(e[e.RegisterOption=0]="RegisterOption",e[e.UnregisterOption=1]="UnregisterOption",e))(cce||{});let fce={0(e,t){let n=[...e.options,{id:t.id,element:t.element,propsRef:t.propsRef}];return{...e,options:Q0(n,r=>r.element.current)}},1(e,t){let n=e.options.slice(),r=e.options.findIndex(i=>i.id===t.id);return r===-1?e:(n.splice(r,1),{...e,options:n})}},rx=b.createContext(null);rx.displayName="RadioGroupDataContext";function ix(e){let t=b.useContext(rx);if(t===null){let n=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ix),n}return t}let ox=b.createContext(null);ox.displayName="RadioGroupActionsContext";function ax(e){let t=b.useContext(ox);if(t===null){let n=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ax),n}return t}function dce(e,t){return Tn(t.type,fce,e,t)}let pce="div";function hce(e,t){let n=b.useId(),r=uu(),{id:i=`headlessui-radiogroup-${n}`,value:o,form:a,name:l,onChange:s,by:u,disabled:c=r||!1,defaultValue:f,...d}=e,p=Fle(u),[h,m]=b.useReducer(dce,{options:[]}),w=h.options,[g,y]=fu(),[x,E]=cu(),_=b.useRef(null),S=at(_,t),O=gle(f),[$,T]=vle(o,s,O),C=b.useMemo(()=>w.find(L=>!L.propsRef.current.disabled),[w]),A=b.useMemo(()=>w.some(L=>p(L.propsRef.current.value,$)),[w,$]),N=Q(L=>{var U;if(c||p(L,$))return!1;let V=(U=w.find(re=>p(re.propsRef.current.value,L)))==null?void 0:U.propsRef.current;return V!=null&&V.disabled?!1:(T==null||T(L),!0)}),R=Q(L=>{let U=_.current;if(!U)return;let V=vi(U),re=w.filter(ie=>ie.propsRef.current.disabled===!1).map(ie=>ie.element.current);switch(L.key){case Ne.Enter:yle(L.currentTarget);break;case Ne.ArrowLeft:case Ne.ArrowUp:if(L.preventDefault(),L.stopPropagation(),oi(re,_t.Previous|_t.WrapAround)===Ds.Success){let ie=w.find(J=>J.element.current===(V==null?void 0:V.activeElement));ie&&N(ie.propsRef.current.value)}break;case Ne.ArrowRight:case Ne.ArrowDown:if(L.preventDefault(),L.stopPropagation(),oi(re,_t.Next|_t.WrapAround)===Ds.Success){let ie=w.find(J=>J.element.current===(V==null?void 0:V.activeElement));ie&&N(ie.propsRef.current.value)}break;case Ne.Space:{L.preventDefault(),L.stopPropagation();let ie=w.find(J=>J.element.current===(V==null?void 0:V.activeElement));ie&&N(ie.propsRef.current.value)}break}}),D=Q(L=>(m({type:0,...L}),()=>m({type:1,id:L.id}))),M=b.useMemo(()=>({value:$,firstOption:C,containsCheckedOption:A,disabled:c,compare:p,...h}),[$,C,A,c,p,h]),F=b.useMemo(()=>({registerOption:D,change:N}),[D,N]),I={ref:S,id:i,role:"radiogroup","aria-labelledby":g,"aria-describedby":x,onKeyDown:R},P=b.useMemo(()=>({value:$}),[$]),k=b.useCallback(()=>{if(O!==void 0)return N(O)},[N,O]),B=Ie();return j.createElement(E,{name:"RadioGroup.Description"},j.createElement(y,{name:"RadioGroup.Label"},j.createElement(ox.Provider,{value:F},j.createElement(rx.Provider,{value:M},l!=null&&j.createElement(Sle,{disabled:c,data:{[l]:$||"on"},overrides:{type:"radio",checked:$!=null},form:a,onReset:k}),B({ourProps:I,theirProps:d,slot:P,defaultTag:pce,name:"RadioGroup"})))))}let mce="div";function vce(e,t){var n;let r=ix("RadioGroup.Option"),i=ax("RadioGroup.Option"),o=b.useId(),{id:a=`headlessui-radiogroup-option-${o}`,value:l,disabled:s=r.disabled||!1,autoFocus:u=!1,...c}=e,f=b.useRef(null),d=at(f,t),[p,h]=fu(),[m,w]=cu(),g=Mr({value:l,disabled:s});he(()=>i.registerOption({id:a,element:f,propsRef:g}),[a,i,f,g]);let y=Q(N=>{var R;if(G0(N.currentTarget))return N.preventDefault();i.change(l)&&((R=f.current)==null||R.focus())}),x=((n=r.firstOption)==null?void 0:n.id)===a,{isFocusVisible:E,focusProps:_}=K0({autoFocus:u}),{isHovered:S,hoverProps:O}=V0({isDisabled:s}),$=r.compare(r.value,l),T=dp({ref:d,id:a,role:"radio","aria-checked":$?"true":"false","aria-labelledby":p,"aria-describedby":m,"aria-disabled":s?!0:void 0,tabIndex:s?-1:$||!r.containsCheckedOption&&x?0:-1,onClick:s?void 0:y,autoFocus:u},_,O),C=b.useMemo(()=>({checked:$,disabled:s,active:E,hover:S,focus:E,autofocus:u}),[$,s,S,E,u]),A=Ie();return j.createElement(w,{name:"RadioGroup.Description"},j.createElement(h,{name:"RadioGroup.Label"},A({ourProps:T,theirProps:c,slot:C,defaultTag:mce,name:"RadioGroup.Option"})))}let gce="span";function yce(e,t){var n;let r=ix("Radio"),i=ax("Radio"),o=b.useId(),a=EA(),l=uu(),{id:s=a||`headlessui-radio-${o}`,value:u,disabled:c=r.disabled||l||!1,autoFocus:f=!1,...d}=e,p=b.useRef(null),h=at(p,t),m=jA(),w=jle(),g=Mr({value:u,disabled:c});he(()=>i.registerOption({id:s,element:p,propsRef:g}),[s,i,p,g]);let y=Q(A=>{var N;if(G0(A.currentTarget))return A.preventDefault();i.change(u)&&((N=p.current)==null||N.focus())}),{isFocusVisible:x,focusProps:E}=K0({autoFocus:f}),{isHovered:_,hoverProps:S}=V0({isDisabled:c}),O=((n=r.firstOption)==null?void 0:n.id)===s,$=r.compare(r.value,u),T=dp({ref:h,id:s,role:"radio","aria-checked":$?"true":"false","aria-labelledby":m,"aria-describedby":w,"aria-disabled":c?!0:void 0,tabIndex:c?-1:$||!r.containsCheckedOption&&O?0:-1,autoFocus:f,onClick:c?void 0:y},E,S),C=b.useMemo(()=>({checked:$,disabled:c,hover:_,focus:x,autofocus:f}),[$,c,_,x,f]);return Ie()({ourProps:T,theirProps:d,slot:C,defaultTag:gce,name:"Radio"})}let xce=Ee(hce),bce=Ee(vce),fC=Ee(yce),wce=Rle,_ce=PA,Sce=Object.assign(xce,{Option:bce,Radio:fC,Label:wce,Description:_ce});const lx=({items:e,selectedItem:t,onItemSelect:n,size:r="sm"})=>v.jsx("div",{className:"relative h-full",children:v.jsxs(uce,{children:[v.jsxs(sC,{className:`inline-flex h-full w-48 justify-between items-center gap-x-1.5 rounded-md bg-white px-3 text-${r} font-medium text-gray-900 shadow-xs ring-1 ring-gray-300 hover:bg-gray-50`,children:[t,v.jsx(Q$,{className:"size-4 text-gray-400","aria-hidden":"true"})]}),v.jsx(uC,{className:"absolute right-0 z-10 mt-2 w-48 origin-top-right rounded-md bg-white shadow-lg ring-1 ring-black/5 focus:outline-hidden",children:v.jsx("div",{className:"py-1",children:e.map(i=>v.jsx(cC,{children:v.jsx("button",{onClick:()=>n(i),className:`block w-full px-4 py-2 text-left text-${r} data-focus:bg-gray-100 data-focus:text-gray-900 text-gray-700`,children:i})},i))})})]})}),Ece=({items:e,selectedItem:t,onItemSelect:n,size:r="sm"})=>v.jsx(Sce,{value:t,onChange:n,className:`inline-flex justify-between items-center rounded-md bg-white text-${r} font-medium text-gray-900 shadow-xs ring-1 ring-gray-300`,children:e.map(i=>v.jsx(Rue,{className:"flex h-full first:rounded-l-md last:rounded-r-md overflow-hidden",children:v.jsx(fC,{value:i,className:"cursor-pointer h-full data-checked:bg-gray-200 hover:bg-gray-50 flex items-center px-4 shadow-xs",children:i})},i))});function Oce({onSearch:e}){return v.jsxs("div",{className:"relative w-full md:w-[26rem] rounded-md",children:[v.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"w-5 h-5 text-gray-400",children:v.jsx("path",{fillRule:"evenodd",d:"M9 3.5a5.5 5.5 0 100 11 5.5 5.5 0 000-11zM2 9a7 7 0 1112.452 4.391l3.328 3.329a.75.75 0 11-1.06 1.06l-3.329-3.328A7 7 0 012 9z",clipRule:"evenodd"})})}),v.jsx("input",{type:"text",className:"block w-full pl-10 px-3 py-3 text-sm font-medium bg-white text-gray-900 shadow-xs rounded-md outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline-2 focus:-outline-offset-2 focus:outline-blue-600 w-",placeholder:"Search features...",onChange:t=>e(t.target.value)})]})}const $ce=({features:e})=>{const[t,n]=b.useState("All Teams"),[r,i]=b.useState(""),o=b.useMemo(()=>{const l=new Set;return l.add("All Teams"),Object.values(e).forEach(s=>{var u;(u=s.assignments)!=null&&u.teams&&s.assignments.teams.forEach(c=>l.add(c))}),Array.from(l)},[e]),a=b.useMemo(()=>t==="All Teams"?e:Object.fromEntries(Object.entries(e).filter(([l,s])=>{var u,c;return(c=(u=s.assignments)==null?void 0:u.teams)==null?void 0:c.includes(t)})),[e,t]);return v.jsxs("div",{className:"h-screen max-w-7xl mx-auto flex flex-col gap-8 p-4 md:p-8",children:[v.jsxs("div",{className:"flex justify-between items-center",children:[v.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:"Dashboard"}),v.jsx(lx,{items:o,selectedItem:t,onItemSelect:n})]}),v.jsx("div",{children:v.jsxs("ul",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-1 xl:grid-cols-3 gap-6",children:[v.jsx("li",{className:"px-4 py-6 border border-gray-200 shadow-xs bg-white rounded-lg",children:v.jsx(Fae,{features:a})}),v.jsx("li",{className:"px-4 py-6 border border-gray-200 shadow-xs bg-white rounded-lg",children:v.jsx(Bae,{features:a})}),v.jsx("li",{className:"px-4 py-6 border border-gray-200 shadow-xs bg-white rounded-lg",children:v.jsx(zae,{features:a})})]})}),v.jsxs("div",{className:"flex-1 flex flex-col gap-6 h-full overflow-scroll",children:[v.jsxs("div",{className:"flex items-center justify-between gap-12",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Gi,{className:"w-5 h-5 text-gray-600","aria-hidden":"true"}),v.jsxs("span",{className:"text-sm text-gray-600 font-medium",children:["Features: ",Object.entries(a).length]})]}),v.jsx("div",{children:v.jsx(Oce,{onSearch:i})})]}),v.jsx(Uae,{features:a,searchTerm:r,teamContext:t!=="All Teams"?t:null})]})]})},Pce=({features:e})=>{const t=Object.values(e).reduce((r,i)=>{const o=i.additional_metrics.health.overall;if(o!=null){const a=lA(o);r[a]++}return r},{needsAttention:0,needsImprovement:0,healthy:0}),n=Object.entries(t).map(([r,i],o)=>({name:r,value:i,fill:[wt(rt.needsAttention).hex,wt(rt.needsImprovement).hex,wt(rt.healthy).hex][o]})).filter(({value:r})=>r>0);return v.jsxs("div",{className:"flex flex-col gap-6",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[v.jsx("div",{className:"shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:v.jsx(Ey,{className:"size-5"})}),v.jsx("span",{className:"flex pl-2",children:"Health Score"})]}),v.jsxs("div",{className:"relative shrink-0 group",children:[v.jsx(Sr,{className:"size-4 text-gray-400"}),v.jsx("div",{className:"absolute whitespace-wrap bottom-full left-1/2 transform -translate-x-1/2 mb-2 hidden group-hover:block bg-gray-700 text-white text-xs rounded-sm py-1 px-2 w-48",children:"Health Score distribution by category: shows how many features fall into each level from low (needs attention) to good (healthy)"})]})]}),v.jsxs("div",{className:"flex flex-col items-center gap-6",children:[v.jsx("div",{className:"relative size-48",children:v.jsx(Da,{width:"100%",height:"100%",children:v.jsx(nu,{children:v.jsx(qt,{data:n,dataKey:"value",nameKey:"name",innerRadius:"70%",outerRadius:"100%",paddingAngle:2})})})}),v.jsxs("ul",{className:"flex flex-col flex-1 gap-y-2",children:[v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-6 flex items-center justify-center ${wt(rt.needsAttention).class}`,children:v.jsx("span",{className:"font-semibold text-white text-sm",children:t.needsAttention})}),v.jsx("p",{className:"text-sm text-gray-500",children:"Features needing attention"})]}),v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-6 flex items-center justify-center ${wt(rt.needsImprovement).class}`,children:v.jsx("span",{className:"font-semibold text-white text-sm",children:t.needsImprovement})}),v.jsx("p",{className:"text-sm text-gray-500",children:"Features needing improvement"})]}),v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-6 flex items-center justify-center ${wt(rt.healthy).class}`,children:v.jsx("span",{className:"font-semibold text-white text-sm",children:t.healthy})}),v.jsx("p",{className:"text-sm text-gray-500",children:"Healthy Features"})]})]})]})]})},jce=({features:e})=>{const t=Object.values(e).reduce((i,o)=>{const a=o.additional_metrics.test_coverage.score;if(a!=null){const l=CT(a);i[l]++}return i},{poor:0,fair:0,good:0}),{minimum_thresholds:n}=_r.project.documentation_site.test_coverage,r=Object.entries(t).map(([i,o],a)=>({name:i,value:o,fill:[bt(n.poor).hex,bt(n.fair).hex,bt(n.good).hex][a]})).filter(({value:i})=>i>0);return v.jsxs("div",{className:"flex flex-col gap-6",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[v.jsx("div",{className:"shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:v.jsx(_y,{className:"size-5"})}),v.jsx("span",{className:"flex pl-2",children:"Test Coverage"})]}),v.jsxs("div",{className:"relative shrink-0 group",children:[v.jsx(Sr,{className:"size-4 text-gray-400"}),v.jsx("div",{className:"absolute whitespace-wrap bottom-full left-1/2 transform -translate-x-1/2 mb-2 hidden group-hover:block bg-gray-700 text-white text-xs rounded-sm py-1 px-2 w-48",children:"Test Coverage distribution by category: shows how many features fall into each level from poor to good"})]})]}),v.jsxs("div",{className:"flex flex-col items-center gap-6",children:[v.jsx("div",{className:"relative size-48",children:v.jsx(Da,{width:"100%",height:"100%",children:v.jsx(nu,{children:v.jsx(qt,{data:r,dataKey:"value",nameKey:"name",innerRadius:"70%",outerRadius:"100%",paddingAngle:2})})})}),v.jsxs("ul",{className:"flex flex-col flex-1 gap-y-2",children:[v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-6 flex items-center justify-center ${bt(n.poor).class}`,children:v.jsx("span",{className:"font-semibold text-white text-sm",children:t.poor})}),v.jsxs("p",{className:"text-sm text-gray-500",children:[v.jsx("span",{className:"",children:"Features with"})," poor coverage"]})]}),v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-6 flex items-center justify-center ${bt(n.fair).class}`,children:v.jsx("span",{className:"font-semibold text-white text-sm",children:t.fair})}),v.jsxs("p",{className:"text-sm text-gray-500",children:[v.jsx("span",{className:"",children:"Features with"})," fair coverage"]})]}),v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`shrink-0 rounded-sm size-6 flex items-center justify-center ${bt(n.good).class}`,children:v.jsx("span",{className:"font-semibold text-white text-sm",children:t.good})}),v.jsxs("p",{className:"text-sm text-gray-500",children:[v.jsx("span",{className:"",children:"Features with"})," good coverage"]})]})]})]})]})},Tce=({features:e})=>{const t=Object.entries(e).reduce((r,[i,o])=>{const{integration_count:a,integration_pending:l,regression_count:s,regression_pending:u,unit_count:c,unit_pending:f}=o.test_pyramid||{};return{unit_count:r.unit_count+(c||0),unit_pending:r.unit_pending+(f||0),integration_count:r.integration_count+(a||0),integration_pending:r.integration_pending+(l||0),regression_count:r.regression_count+(s||0),regression_pending:r.regression_pending+(u||0)}},{unit_count:0,unit_pending:0,integration_count:0,integration_pending:0,regression_count:0,regression_pending:0}),n=[{value:Math.max(Math.log(t.unit_count+t.unit_pending),0),fill:"#1d4ed8"},{value:Math.max(Math.log(t.integration_count+t.integration_pending),0),fill:"#2563eb"},{value:Math.max(Math.log(t.regression_count+t.regression_pending),0),fill:"#3b82f6"}];return v.jsxs("div",{className:"flex flex-col gap-6",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[v.jsx("div",{className:"shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:v.jsx(J$,{className:"size-5"})}),v.jsx("span",{className:"flex pl-2",children:"Test Pyramid"})]}),v.jsxs("div",{className:"relative shrink-0 group",children:[v.jsx(Sr,{className:"size-4 text-gray-400"}),v.jsx("div",{className:"absolute whitespace-wrap bottom-full left-1/2 transform -translate-x-1/2 mb-2 hidden group-hover:block bg-gray-700 text-white text-xs rounded-sm py-1 px-2 w-48",children:"Test pyramid distribution by category: shows features which are missing coverage in a given level of the pyramid, or which have a large number of pending tests."})]})]}),v.jsxs("div",{className:"flex flex-col items-center gap-6",children:[v.jsx("div",{className:"relative h-48 w-72",children:v.jsx(Da,{width:"100%",height:"100%",children:v.jsx(AT,{width:730,height:250,children:v.jsx(Nr,{dataKey:"value",data:n,reversed:!0,children:v.jsx(Hn,{position:"right",fill:"#000",stroke:"none",dataKey:"name"})})})})}),v.jsxs("ul",{className:"flex flex-col flex-1 gap-y-2",children:[v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:"shrink-0 rounded-sm h-6 w-16 size-x-12 flex items-center justify-center bg-blue-500",children:v.jsx("span",{className:"font-semibold text-white text-sm",children:t.regression_count})}),v.jsxs("p",{className:"text-sm text-gray-500",children:["Regression Tests (",t.regression_pending," pending)"]})]}),v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:"shrink-0 rounded-sm h-6 w-16 flex items-center justify-center bg-blue-600",children:v.jsx("span",{className:"font-semibold text-white text-sm",children:t.integration_count})}),v.jsxs("p",{className:"text-sm text-gray-500",children:["Integration Tests (",t.integration_pending," pending)"]})]}),v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:"shrink-0 rounded-sm h-6 w-16 flex items-center justify-center bg-blue-700",children:v.jsx("span",{className:"font-semibold text-white text-sm",children:t.unit_count})}),v.jsxs("p",{className:"text-sm text-gray-500",children:["Unit Tests (",t.unit_pending," pending)"]})]})]})]})]})},Qu=({title:e})=>v.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider",children:v.jsx("div",{className:"flex items-center gap-x-2",children:e})}),dE=({features:e,metric:t,sortDirection:n="ASC"})=>Object.entries(e).sort(([r,i],[o,a])=>{const l=i.test_pyramid&&i.test_pyramid[t]||0,s=a.test_pyramid&&a.test_pyramid[t]||0;return l===s?a.additional_metrics.feature_size.score-i.additional_metrics.feature_size.score:n==="ASC"?l-s:s-l}).slice(0,5).map(([r,i])=>({featureName:r,score:i.test_pyramid&&i.test_pyramid[t]||0,feature:i})),pE=["Regression","Integration","Unit"],hE=["Missing","Pending"],mE={Pending:{Unit:"unit_pending",Integration:"integration_pending",Regression:"regression_pending"},Missing:{Unit:"unit_count",Integration:"integration_count",Regression:"regression_count"}},Ace={Pending:{Unit:"Top 5 features with pending unit tests",Integration:"Top 5 features with pending integration tests",Regression:"Top 5 features with pending regression tests"},Missing:{Unit:"Bottom 5 features missing unit test coverage",Integration:"Bottom 5 features missing integration tests",Regression:"Bottom 5 features missing regression tests"}},Cce=({features:e})=>{const[t,n]=b.useState(hE[0]),[r,i]=b.useState(pE[0]),[o,a]=b.useState(dE({features:e,metric:mE[t][r],sortDirection:t==="Missing"?"ASC":""}));return b.useEffect(()=>{a(dE({features:e,metric:mE[t][r],sortDirection:t==="Missing"?"ASC":""}))},[e,t,r]),v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"flex items-center justify-between px-4 py-6 bg-gray-50 rounded-md",children:[v.jsx("h3",{className:"flex items-center text-xs font-semibold text-gray-800 uppercase h-8",children:Ace[t][r]}),v.jsxs("div",{className:"flex h-8",children:[v.jsx(Ece,{items:hE,selectedItem:t,onItemSelect:n,size:"xs"}),v.jsx("span",{className:"mx-2"}),v.jsx(lx,{items:pE,selectedItem:r,onItemSelect:i,size:"xs"})]})]}),v.jsx("div",{className:"flow-root",children:v.jsx("div",{className:"min-w-full align-middle",children:v.jsx("div",{className:"overflow-hidden rounded-md",children:v.jsxs("table",{className:"min-w-full",children:[v.jsx("thead",{className:"bg-gray-50 border-b border-gray-200",children:v.jsxs("tr",{children:[v.jsx(Qu,{title:"Feature"}),v.jsx(Qu,{title:"Team"}),v.jsx(Qu,{title:"Size"}),v.jsx(Qu,{title:t==="Missing"?`${r} Test Count`:"Pending Test Count"}),v.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider"})]})}),v.jsx("tbody",{className:"divide-y divide-gray-200 bg-white",children:o.map(({featureName:l,feature:s,score:u})=>{const c=s.additional_metrics.feature_size.percent_of_max,f=xa(c);return v.jsxs("tr",{children:[v.jsx("td",{className:"w-full max-w-0 py-4 px-4 text-sm font-medium text-gray-900 sm:w-auto sm:max-w-none",children:v.jsx("div",{className:"",children:l})}),v.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Gi,{className:"size-4 text-gray-500"}),Lf(s.assignments.teams)]})}),v.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:v.jsxs("div",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:"flex gap-1.5 items-center",children:[1,2,3,4,5].map(d=>v.jsx("div",{className:`h-5 w-1.5 rounded ${d<=Rs(c)?"bg-blue-500":"bg-gray-200"}`},d))}),v.jsx("span",{className:"text-xs text-gray-500 uppercase",children:f})]})}),v.jsx("td",{className:"px-4 py-4 text-sm",children:v.jsx("div",{className:"flex items-center gap-x-2",children:u})}),v.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:v.jsx("div",{className:"flex items-center gap-x-3",children:v.jsx("div",{children:v.jsx(wr,{to:`/${encodeURIComponent(l)}`,className:"flex items-center justify-center shrink-0 font-medium text-gray-900 text-sm mb-1 hover:bg-gray-100 rounded-full h-6 w-6",children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5",children:v.jsx("path",{fillRule:"evenodd",d:"M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})})})})})})]},l)})})]})})})})]})};function kce({features:e}){const[t,n]=b.useState("All Teams"),r=b.useMemo(()=>{const s=new Set;return s.add("All Teams"),Object.values(e).forEach(u=>{var c;(c=u.assignments)!=null&&c.teams&&u.assignments.teams.forEach(f=>s.add(f))}),Array.from(s)},[e]),i=b.useMemo(()=>t==="All Teams"?e:Object.fromEntries(Object.entries(e).filter(([s,u])=>{var c,f;return(f=(c=u.assignments)==null?void 0:c.teams)==null?void 0:f.includes(t)})),[e,t]),o=b.useMemo(()=>Object.entries(i).map(([s,u])=>({name:s,data:u||0,health:u.additional_metrics.health.overall||0})).sort((s,u)=>s.health-u.health).slice(0,5),[i]),a=b.useMemo(()=>Object.entries(i).map(([s,u])=>({name:s,data:u||0,score:u.additional_metrics.test_coverage.score||0})).sort((s,u)=>s.score-u.score).slice(0,5),[i]),l=({title:s})=>v.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider",children:v.jsx("div",{className:"flex items-center gap-x-2",children:s})});return v.jsxs("div",{className:"h-screen max-w-7xl mx-auto flex flex-col gap-8 p-4 md:p-8",children:[v.jsxs("div",{className:"flex justify-between items-center",children:[v.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:"Digest"}),v.jsx(lx,{items:r,selectedItem:t,onItemSelect:n})]}),v.jsx("div",{className:"flow-root",children:v.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[v.jsx("div",{className:"col-span-1 border border-gray-200 shadow-xs bg-white rounded-lg h-full",children:v.jsx("div",{className:"px-4 py-6 h-fit",children:v.jsx(Pce,{features:i})})}),v.jsxs("div",{className:"col-span-2 h-full shadow-xs border border-gray-200 rounded-lg bg-white",children:[v.jsx("div",{className:"flex items-center justify-between px-4 py-6 bg-gray-50 rounded-md",children:v.jsx("h3",{className:"flex items-center text-xs font-semibold text-gray-800 uppercase h-8",children:"Bottom 5 Features by Health Score"})}),v.jsx("div",{className:"flow-root",children:v.jsx("div",{className:"min-w-full align-middle",children:v.jsx("div",{className:"overflow-hidden rounded-md",children:v.jsxs("table",{className:"min-w-full",children:[v.jsx("thead",{className:"bg-gray-50 border-b border-gray-200",children:v.jsxs("tr",{children:[v.jsx(l,{title:"Feature"}),v.jsx(l,{title:"Team"}),v.jsx(l,{title:"Size"}),v.jsx(l,{title:"Health Score"}),v.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider"})]})}),v.jsx("tbody",{className:"divide-y divide-gray-200 bg-white",children:o.map(s=>{const u=s.data.additional_metrics.feature_size.percent_of_max,c=xa(u),f=s.data.additional_metrics.health.overall||0;return v.jsxs("tr",{children:[v.jsx("td",{className:"w-full max-w-0 py-4 px-4 text-sm font-medium text-gray-900 sm:w-auto sm:max-w-none",children:v.jsx("div",{className:"",children:s.name})}),v.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Gi,{className:"size-4 text-gray-500"}),Lf(s.data.assignments.teams)]})}),v.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:v.jsxs("div",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:"flex gap-1.5 items-center",children:[1,2,3,4,5].map(d=>v.jsx("div",{className:`h-5 w-1.5 rounded ${d<=Rs(u)?"bg-blue-500":"bg-gray-200"}`},d))}),v.jsx("span",{className:"text-xs text-gray-500 uppercase",children:c})]})}),v.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:v.jsxs("div",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`w-4 h-4 rounded-full flex items-center justify-center ${sA(f)}`,children:v.jsx("div",{className:`w-2 h-2 rounded-full ${wt(f).class}`})}),v.jsxs("span",{className:"text-gray-600",children:[f.toFixed(0),"%"]})]})}),v.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:v.jsx("div",{className:"flex items-center gap-x-3",children:v.jsx("div",{children:v.jsx(wr,{to:`/${encodeURIComponent(s.name)}`,className:"flex items-center justify-center shrink-0 font-medium text-gray-900 text-sm mb-1 hover:bg-gray-100 rounded-full h-6 w-6",children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5",children:v.jsx("path",{fillRule:"evenodd",d:"M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})})})})})})]},s.name)})})]})})})})]})]})}),v.jsx("div",{className:"flow-root",children:v.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[v.jsx("div",{className:"col-span-1 border border-gray-200 shadow-xs bg-white rounded-lg",children:v.jsx("div",{className:"px-4 py-6",children:v.jsx(jce,{features:i})})}),v.jsxs("div",{className:"col-span-2 h-full shadow-xs border border-gray-200 rounded-lg bg-white",children:[v.jsx("div",{className:"flex items-center justify-between px-4 py-6 bg-gray-50 rounded-md",children:v.jsx("h3",{className:"flex items-center text-xs font-semibold text-gray-800 uppercase h-8",children:"Bottom 5 Features by Test Coverage"})}),v.jsx("div",{className:"flow-root",children:v.jsx("div",{className:"min-w-full align-middle",children:v.jsx("div",{className:"overflow-hidden rounded-md",children:v.jsxs("table",{className:"min-w-full",children:[v.jsx("thead",{className:"bg-gray-50 border-b border-gray-200",children:v.jsxs("tr",{children:[v.jsx(l,{title:"Feature"}),v.jsx(l,{title:"Team"}),v.jsx(l,{title:"Size"}),v.jsx(l,{title:"Test Coverage"}),v.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider"})]})}),v.jsx("tbody",{className:"divide-y divide-gray-200 bg-white",children:a.map(s=>{const u=s.data.additional_metrics.feature_size.percent_of_max,c=xa(u),f=s.data.additional_metrics.test_coverage.score||0;return v.jsxs("tr",{children:[v.jsx("td",{className:"w-full max-w-0 py-4 px-4 text-sm font-medium text-gray-900 sm:w-auto sm:max-w-none",children:v.jsx("div",{className:"",children:s.name})}),v.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(Gi,{className:"size-4 text-gray-500"}),Lf(s.data.assignments.teams)]})}),v.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:v.jsxs("div",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:"flex gap-1.5 items-center",children:[1,2,3,4,5].map(d=>v.jsx("div",{className:`h-5 w-1.5 rounded ${d<=Rs(u)?"bg-blue-500":"bg-gray-200"}`},d))}),v.jsx("span",{className:"text-xs text-gray-500 uppercase",children:c})]})}),v.jsx("td",{className:"px-4 py-4 text-sm",children:v.jsxs("div",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:"grow h-2 rounded-full bg-gray-100 overflow-hidden",children:v.jsx("div",{className:`h-full rounded-full ${bt(f).class}`,style:{width:`${f}%`}})}),v.jsx("span",{className:"text-sm text-gray-500",children:f?`${f.toFixed(0)}%`:"No Data"})]})}),v.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:v.jsx("div",{className:"flex items-center gap-x-3",children:v.jsx("div",{children:v.jsx(wr,{to:`/${encodeURIComponent(s.name)}`,className:"flex items-center justify-center shrink-0 font-medium text-gray-900 text-sm mb-1 hover:bg-gray-100 rounded-full h-6 w-6",children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5",children:v.jsx("path",{fillRule:"evenodd",d:"M8.22 5.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.75.75 0 0 1-1.06-1.06L11.94 10 8.22 6.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"})})})})})})]},s.name)})})]})})})})]})]})}),v.jsx("div",{className:"flow-root",children:v.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[v.jsx("div",{className:"col-span-1 border border-gray-200 shadow-xs bg-white rounded-lg",children:v.jsx("div",{className:"px-4 py-6",children:v.jsx(Tce,{features:i})})}),v.jsx("div",{className:"col-span-2 h-full shadow-xs border border-gray-200 rounded-lg bg-white",children:v.jsx(Cce,{features:i})})]})})]})}const Nce=({files:e})=>{const{project:t,environment:n}=_r,r=`${t.repository.url}/blob/${n.git_ref}`,{fileTree:i,directoryCounts:o}=b.useMemo(()=>{const y={},x={};return e.forEach(E=>{const _=E.split("/");let S=y;_.forEach((O,$)=>{if($===_.length-1){S[O]={type:"file",path:E};let T="";_.slice(0,-1).forEach(C=>{T=T?`${T}/${C}`:C,x[T]=(x[T]||0)+1})}else S[O]=S[O]||{type:"directory",children:{}},S=S[O].children})}),{fileTree:y,directoryCounts:x}},[e]),a=b.useMemo(()=>{const y=new Set;return e.forEach(x=>{const E=x.split("/");let _="";E.slice(0,-1).forEach(S=>{_=_?`${_}/${S}`:S,y.add(_)})}),y},[e]),[l,s]=b.useState("tree"),[u,c]=b.useState(a),[f,d]=b.useState({key:null,direction:"asc"}),p=b.useMemo(()=>[...e].sort((y,x)=>f.key?y<x?f.direction==="asc"?-1:1:y>x?f.direction==="asc"?1:-1:0:0),[e,f]),h=y=>{c(x=>{const E=new Set(x);return E.has(y)?E.delete(y):E.add(y),E})},m=y=>{d(x=>({key:y,direction:x.key===y&&x.direction==="asc"?"desc":"asc"}))},w=(y,x="",E=0)=>y?Object.entries(y).map(([_,S])=>{const O=x?`${x}/${_}`:_,$=u.has(O),T=o[O]||0;return S.type==="directory"?v.jsxs(j.Fragment,{children:[v.jsx("tr",{className:"hover:bg-gray-50",children:v.jsx("td",{className:"px-4 py-2 text-sm text-gray-900",children:v.jsx("div",{className:"flex items-center justify-between",children:v.jsxs("button",{onClick:()=>h(O),className:"flex items-center group gap-x-2",style:{paddingLeft:`${E*16}px`},children:[v.jsxs("div",{className:"flex items-center group",children:[$?v.jsx(Q$,{className:"size-4 text-gray-400 mr-1 shrink-0"}):v.jsx(OR,{className:"size-4 text-gray-400 mr-1 shrink-0"}),v.jsx(jR,{className:"size-4 text-gray-400 mr-2 shrink-0"}),v.jsx("span",{className:"font-medium text-gray-600 group-hover:text-gray-900",children:_})]}),v.jsx("span",{className:"flex items-center justify-center text-xs font-medium text-gray-500 bg-gray-200 rounded-full h-5 w-5",children:T})]})})})}),$&&w(S.children,O,E+1)]},O):v.jsx("tr",{className:"hover:bg-gray-50",children:v.jsx("td",{className:"px-4 py-2 text-sm text-gray-900",children:v.jsxs("div",{className:"flex items-center",style:{paddingLeft:`${E*16+20}px`},children:[v.jsx(Lm,{className:"size-4 text-gray-400 mr-2 shrink-0"}),v.jsx("a",{href:`${r}/${O}`,className:"truncate underline",target:"_blank",rel:"noopener noreferrer",children:_})]})})},O)}):null,g=({title:y,sortKey:x,className:E=""})=>v.jsx("th",{scope:"col",className:`px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider cursor-pointer ${E}`,onClick:()=>m(x),children:v.jsxs("div",{className:"flex items-center gap-x-2 group",children:[y,v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"size-4 text-gray-400 group-hover:text-gray-600",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 7.5 7.5 3m0 0L12 7.5M7.5 3v13.5m13.5 0L16.5 21m0 0L12 16.5m4.5 4.5V7.5"})})]})});return v.jsx("div",{className:"bg-white rounded-lg border border-gray-200",children:v.jsx("div",{className:"overflow-hidden rounded-lg",children:v.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[v.jsx("thead",{className:"bg-gray-50",children:v.jsxs("tr",{children:[v.jsx(g,{title:l==="tree"?"File Path":"Name",sortKey:"path"}),v.jsx("th",{scope:"col",className:"px-4 py-3 text-center text-xs font-medium text-gray-800 uppercase tracking-wider",children:v.jsxs("div",{className:"flex items-center justify-end gap-2",children:[v.jsx("button",{onClick:()=>s("tree"),className:`p-1 rounded ${l==="tree"?"text-blue-600 bg-blue-100":"text-gray-500 hover:text-gray-700 hover:bg-gray-50"}`,children:v.jsx(Sy,{className:"size-4"})}),v.jsx("button",{onClick:()=>s("list"),className:`p-1 rounded ${l==="list"?"text-blue-600 bg-blue-100":"text-gray-500 hover:text-gray-700 hover:bg-gray-50"}`,children:v.jsx(kR,{className:"size-4"})})]})})]})}),v.jsx("tbody",{className:"divide-y divide-gray-200",children:l==="list"?p.map(y=>v.jsx("tr",{className:"hover:bg-gray-50",children:v.jsx("td",{className:"px-4 py-3 text-sm font-medium text-gray-900 flex-1",children:v.jsxs("div",{className:"flex items-center",children:[v.jsx(Lm,{className:"size-4 text-gray-400 mr-2 shrink-0"}),v.jsx("a",{href:`${r}/${y}`,className:"truncate underline",target:"_blank",rel:"noopener noreferrer",children:y})]})})},y)):w(i)})]})})})};function Mce({feature:e}){const{project:t}=_r,n=`is:pr label:"${e.label}"`,r=encodeURIComponent(n),i=`${t.repository.url}/pulls?q=${r}`;return v.jsxs("div",{className:"bg-white p-4 rounded-lg border border-gray-200 h-fit",children:[v.jsxs("div",{className:"mb-6",children:[v.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-3",children:"Description"}),e.description&&v.jsx("p",{className:"text-sm md:text-base text-gray-600",children:e.description})]}),v.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-3",children:"Metrics"}),v.jsxs("ul",{className:"mb-6 space-y-2",children:[v.jsxs("li",{className:"flex items-center gap-2",children:[v.jsx("div",{className:"shrink-0",children:v.jsx(Sy,{className:"size-4 text-gray-500"})}),v.jsxs("p",{className:"text-sm text-gray-700",children:[e.assignments.files?e.assignments.files.length:0," Total Files"]})]}),v.jsxs("li",{className:"flex items-center gap-2",children:[v.jsx("div",{className:"shrink-0",children:v.jsx(MR,{className:"size-4 text-gray-500"})}),v.jsxs("p",{className:"text-sm text-gray-700",children:[(e.metrics.abc_size||0).toFixed(2)," ABC Size"]})]}),v.jsxs("li",{className:"flex items-center gap-2",children:[v.jsx("div",{className:"shrink-0",children:v.jsx(Lm,{className:"size-4 text-gray-500"})}),v.jsxs("p",{className:"text-sm text-gray-700",children:[e.metrics.lines_of_code||0," Lines of Code"]})]}),v.jsxs("li",{className:"flex items-center gap-2",children:[v.jsx("div",{className:"shrink-0",children:v.jsx(TR,{className:"size-4 text-gray-500"})}),v.jsxs("p",{className:"text-sm text-gray-700",children:[e.metrics.cyclomatic_complexity||0," Cyclomatic Complexity"]})]}),v.jsxs("li",{className:"flex items-center gap-2",children:[v.jsx("div",{className:"shrink-0",children:v.jsx(AR,{className:"size-4 text-gray-500"})}),v.jsxs("p",{className:"text-sm text-gray-700",children:[e.metrics.todo_locations?Object.keys(e.metrics.todo_locations).length:0," ","TODO Comments"]})]})]}),v.jsx("div",{className:"space-y-4 mb-6",children:v.jsxs("div",{children:[v.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-3",children:"Teams"}),v.jsx("ul",{className:"flex flex-col gap-y-1",children:e.assignments.teams?e.assignments.teams.map(o=>v.jsxs("li",{className:"text-sm text-gray-700 flex gap-2",children:[v.jsx("div",{className:"flex items-center justify-center shrink-0",children:v.jsx(Gi,{className:"size-4 text-gray-500"})}),o]},o)):v.jsxs("li",{className:"text-sm text-gray-700 flex gap-2",children:[v.jsx("div",{className:"flex items-center justify-center shrink-0",children:v.jsx(Gi,{className:"size-4 text-gray-500"})}),v.jsx("span",{className:"text-gray-400 italic text-sm",children:"No teams assigned"})]})})]})}),v.jsxs("div",{className:"mb",children:[v.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-3",children:"Resources"}),v.jsxs("ul",{className:"mb-6 space-y-2",children:[v.jsxs("li",{className:"flex items-center gap-2",children:[v.jsx("div",{className:"shrink-0",children:v.jsx(Tl,{className:"size-4 text-gray-500"})}),v.jsx("a",{href:i,target:"_blank",className:"text-sm text-gray-700 hover:underline",rel:"noreferrer",children:"Feature Pull Requests"})]}),v.jsxs("li",{className:"flex items-center gap-2",children:[v.jsx("div",{className:"shrink-0",children:v.jsx(Tl,{className:"size-4 text-gray-500"})}),e.documentation_link?v.jsx("a",{href:e.documentation_link,target:"_blank",className:"text-sm text-gray-700 hover:underline",rel:"noreferrer",children:"Feature Documentation"}):v.jsx("span",{className:"text-gray-400 italic text-sm",children:"Missing documentation link"})]}),v.jsxs("li",{className:"flex items-center gap-2",children:[v.jsx("div",{className:"shrink-0",children:v.jsx(Tl,{className:"size-4 text-gray-500"})}),e.dashboard_link?v.jsx("a",{href:e.dashboard_link,target:"_blank",className:"text-sm text-gray-700 hover:underline",rel:"noreferrer",children:"New Relic Dashboard"}):v.jsx("span",{className:"text-gray-400 italic text-sm",children:"Missing New Relic Dashboard"})]})]})]})]})}const Rce=({value:e,suffix:t="",color:n="#ef4444"})=>{const r=e===0?"transparent":n;return v.jsxs("div",{className:"relative h-20 w-20",children:[v.jsxs("svg",{className:"h-full w-full -rotate-90",viewBox:"0 0 36 36",children:[v.jsx("path",{d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831",fill:"none",stroke:"#eee",strokeWidth:"2"}),v.jsx("path",{d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831",fill:"none",stroke:r,strokeWidth:"2",strokeDasharray:`${e}, 100`})]}),v.jsxs("div",{className:"absolute inset-0 flex items-center justify-center",children:[v.jsx("span",{className:"text-2xl font-bold",children:Math.round(e)}),v.jsx("span",{className:"text-sm",children:t})]})]})},vE=({children:e,title:t,value:n,suffix:r="",icon:i,tooltip:o,color:a})=>v.jsxs("div",{className:"flex flex-col gap-6 px-4 py-6 border border-gray-200 shadow-xs bg-white rounded-lg",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[v.jsx("div",{className:"shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:i}),v.jsx("span",{className:"flex pl-2",children:t})]}),o&&v.jsxs(wa,{children:[v.jsx(si,{children:v.jsx(Sr,{className:"size-4 text-gray-400"})}),v.jsx(Zi,{children:o})]})]}),v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx(Rce,{value:n,suffix:r,color:a}),v.jsx("div",{className:"flex flex-col flex-1",children:e})]})]}),Ice=({feature:e})=>{const{integration_count:t=0,integration_pending:n=0,regression_count:r=0,regression_pending:i=0,unit_count:o=0,unit_pending:a=0}=(e==null?void 0:e.test_pyramid)||{},l=[{type:"Unit Tests",count:o,pending:a,color:"blue-700",fill:"#1d4ed8"},{type:"Integration Tests",count:t,pending:n,color:"blue-500",fill:"#3b82f6"},{type:"Regression Tests",count:r,pending:i,color:"blue-300",fill:"#93c5fd"}],s=l.map(u=>({value:Math.max(Math.log(u.count+u.pending),0),fill:u.fill}));return v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx("div",{className:"relative h-20 w-20",children:s.every(u=>u.value===0)?v.jsx("div",{className:"flex flex-col shrink-0 items-center justify-center size-full bg-gray-100 rounded-full shadow-sm text-gray-500 mb-4",children:v.jsx(RR,{})}):v.jsx("div",{className:"absolute left-[-31px] top-0 bottom-0",children:v.jsx(AT,{width:150,height:80,children:v.jsx(Nr,{dataKey:"value",data:s,reversed:!0,isAnimationActive:!1,children:v.jsx(Hn,{position:"right",fill:"#000",stroke:"none",dataKey:"name"})})})})}),v.jsx("ul",{className:"flex flex-col flex-1 gap-y-1",children:l.reverse().map((u,c)=>v.jsxs("li",{className:"flex items-center gap-x-2",children:[v.jsx("div",{className:`w-3 h-3 rounded-full bg-${u.color}`}),v.jsxs("p",{className:"text-xs text-gray-500",children:[u.type,": ",v.jsx("span",{className:"font-medium",children:u.count})," (",u.pending," ","pending)"]})]},c))})]})};function Lce({features:e}){const{name:t}=SM(),n=e[t];if(!n)return v.jsx("div",{className:"max-w-7xl mx-auto p-4 md:p-8",children:v.jsxs("div",{className:"bg-white rounded-lg shadow-sm p-6",children:[v.jsx("h1",{className:"text-xl font-bold text-red-600",children:"Feature Not Found"}),v.jsxs("p",{className:"mt-2",children:["Could not find feature: ",t]}),v.jsx(wr,{to:"/",className:"text-blue-600 hover:text-blue-800 mt-4 inline-block",children:"← Back to Features"})]})});const r=n.additional_metrics.health.overall,i=n.additional_metrics.feature_size.percent_of_max,o=Rs(i);return v.jsxs("div",{className:"h-screen max-w-7xl mx-auto flex flex-col gap-6 py-4 md:py-8",children:[v.jsx("div",{className:"flex justify-between items-center",children:v.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:t})}),v.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-12 gap-6",children:[v.jsx("div",{className:"col-span-1 xl:col-span-3",children:v.jsx(Mce,{feature:n})}),v.jsxs("div",{className:"col-span-1 xl:col-span-9",children:[v.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-6 mb-8",children:[v.jsx(vE,{title:"Health Score",value:r.toFixed(0),suffix:"%",tooltip:"Feature health is determined by combining a weighted score for test coverage, code complexity, and encapsulation into a composite score from 0-100%. Each feature is then grouped into a categories ranging from low (needs attention) to good (healthy), which can be managed via `.feature_map/config.yml`.",icon:v.jsx(Ey,{}),color:wt(r).hex,children:v.jsxs("ul",{className:"flex flex-col gap-y-1",children:[v.jsxs("li",{className:"text-xs text-gray-500",children:["Coverage:"," ",n.additional_metrics.health.test_coverage_component.health_score.toFixed(0)," ","/ ",n.additional_metrics.health.test_coverage_component.awardable_points]}),v.jsxs("li",{className:"text-xs text-gray-500",children:["Complexity:"," ",n.additional_metrics.health.cyclomatic_complexity_component.health_score.toFixed(0)," ","/"," ",n.additional_metrics.health.cyclomatic_complexity_component.awardable_points]}),v.jsxs("li",{className:"text-xs text-gray-500",children:["Encapsulation:"," ",n.additional_metrics.health.encapsulation_component.health_score.toFixed(0)," ","/ ",n.additional_metrics.health.encapsulation_component.awardable_points]}),v.jsxs("li",{className:"text-xs text-gray-500",children:["Todos:"," ",n.additional_metrics.health.todo_count_component.health_score.toFixed(0)," /"," ",n.additional_metrics.health.todo_count_component.awardable_points]})]})}),v.jsx(vE,{title:"Test Coverage",value:n.additional_metrics.test_coverage.score,suffix:"%",tooltip:"Test coverage is determined by using CodeCov data (lines, hits, misses) to calculate a percentage score, from 0-100%, relative to the other features in the codebase. A qualitative coverage ranking is assigned to each feature, which can be managed which can be managed via `.feature_map/config.yml`.",icon:v.jsx(_y,{}),color:bt(n.additional_metrics.test_coverage.score).hex,children:v.jsxs("ul",{className:"flex flex-col gap-y-1",children:[v.jsxs("li",{className:"text-xs text-gray-500",children:["Hits: ",n.test_coverage?n.test_coverage.hits:0]}),v.jsxs("li",{className:"text-xs text-gray-500",children:["Lines: ",n.test_coverage?n.test_coverage.lines:0]}),v.jsxs("li",{className:"text-xs text-gray-500",children:["Misses: ",n.test_coverage?n.test_coverage.misses:0]})]})}),v.jsxs("div",{className:"flex flex-col gap-6 px-4 py-6 border border-gray-200 shadow-xs bg-white rounded-lg",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[v.jsx("div",{className:"shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:v.jsx(Z$,{})}),v.jsx("span",{className:"flex pl-2",children:"Feature Size"})]}),v.jsxs(wa,{children:[v.jsx(si,{children:v.jsx(Sr,{className:"size-4 text-gray-400"})}),v.jsx(Zi,{children:"Feature size is determined by analyzing the total number of files and lines of code associated with each feature. Each feature is then grouped into different size bins, which can be configured in the config.yaml file."})]})]}),v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx("div",{className:"relative h-20 flex items-center",children:v.jsx("div",{className:"text-2xl font-bold uppercase",children:xa(i)})}),v.jsx("div",{className:"flex flex-col gap-y-2",children:v.jsx("div",{className:"flex gap-1.5 items-center",children:[1,2,3,4,5].map(a=>v.jsx("div",{className:`h-6 w-1.5 rounded-sm ${a<=o?"bg-blue-500":"bg-gray-300"}`},a))})}),v.jsxs("div",{children:[v.jsxs("div",{className:"text-[10px] text-gray-500",children:[n.assignments.files?n.assignments.files.length:0," files"]}),v.jsxs("div",{className:"text-[10px] text-gray-500",children:[Jie(n.metrics.lines_of_code)," lines"]})]})]})]}),v.jsxs("div",{className:"flex flex-col gap-6 px-4 py-6 border border-gray-200 shadow-xs bg-white rounded-lg",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[v.jsx("div",{className:"shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:v.jsx(J$,{})}),v.jsx("span",{className:"flex pl-2",children:"Test Pyramid"})]}),v.jsxs(wa,{children:[v.jsx(si,{children:v.jsx(Sr,{className:"size-4 text-gray-400"})}),v.jsx(Zi,{children:"Test pyramid distribution by category: shows features which are missing coverage in a given level of the pyramid, or which have a large number of pending tests."})]})]}),v.jsx(Ice,{feature:n})]})]}),n.assignments.files&&n.assignments.files.length>0?v.jsx(v.Fragment,{children:v.jsx(Nce,{files:n.assignments.files})}):v.jsx("div",{className:"h-[300px] bg-white rounded-lg border border-gray-200 shadow-xs mb-8",children:v.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-gray-500",children:[v.jsx("div",{className:"flex items-center justify-center shrink-0 h-16 w-16 bg-gray-100 rounded-full shadow-sm text-gray-500 mb-4",children:v.jsx(Sy,{})}),v.jsx("p",{children:"No files found for this feature"})]})})]})]})]})}const Dce=[{name:"Dashboard",pathname:"",icon:CR},{name:"Digest",pathname:"Digest",icon:PR}];function ho(...e){return e.filter(Boolean).join(" ")}function gE(){const e=Ar(),{linked_sites:t,title:n}=_r.project.documentation_site,{internal_resources:r}=_r.project.documentation_site;return v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"flex h-16 shrink-0 items-center",children:v.jsx(wr,{to:"/",children:"Feature Documentation"})}),v.jsx("nav",{className:"flex flex-1 flex-col",children:v.jsxs("ul",{role:"list",className:"flex flex-1 flex-col gap-y-7",children:[v.jsxs("li",{children:[v.jsx("div",{className:"text-xs/6 font-semibold text-gray-400",children:n}),v.jsx("ul",{role:"list",className:"-mx-2 mt-2 space-y-2",children:Dce.map(i=>v.jsx("li",{children:v.jsxs(wr,{to:i.pathname,className:ho(e.pathname===`/${i.pathname}`?"text-blue-600":"text-gray-700 hover:text-blue-600","group flex gap-x-3 rounded-md px-2 text-sm/6 font-semibold items-center"),children:[v.jsx(i.icon,{"aria-hidden":"true",className:ho("text-gray-400 group-hover:text-blue-600","size-5 shrink-0")}),i.name]})},i.name))})]}),t&&t.length>0&&v.jsxs("li",{children:[v.jsx("div",{className:"text-xs/6 font-semibold text-gray-400",children:"Linked Feature Documentation"}),v.jsx("ul",{role:"list",className:"-mx-2 mt-2 space-y-2",children:t.map(i=>v.jsx("li",{children:v.jsxs("a",{href:i.url,target:"_blank",className:ho("text-gray-700 hover:text-blue-600","group flex gap-x-3 rounded-md px-2 text-sm/6 font-semibold items-center"),rel:"noreferrer",children:[v.jsx(Tl,{"aria-hidden":"true",className:ho("text-gray-400 group-hover:text-blue-600","size-5 shrink-0")}),i.name]})},i.name))})]}),r&&r.length>0&&v.jsxs("li",{children:[v.jsx("div",{className:"text-xs/6 font-semibold text-gray-400",children:"Internal Resources"}),v.jsx("ul",{role:"list",className:"-mx-2 mt-2 space-y-2",children:r.map(i=>v.jsx("li",{children:v.jsxs("a",{href:i.url,target:"_blank",className:ho("text-gray-700 hover:text-blue-600","group flex gap-x-3 rounded-md px-2 text-sm/6 font-semibold items-center"),rel:"noreferrer",children:[v.jsx(Tl,{"aria-hidden":"true",className:ho("text-gray-400 group-hover:text-blue-600","size-5 shrink-0")}),i.name]})},i.name))})]})]})})]})}function Fce(){const[e,t]=b.useState(!1);return v.jsxs("div",{children:[v.jsxs(kue,{open:e,onClose:t,className:"relative z-50 lg:hidden",children:[v.jsx(Aue,{transition:!0,className:"fixed inset-0 bg-gray-900/80 transition-opacity duration-300 ease-linear data-closed:opacity-0"}),v.jsx("div",{className:"fixed inset-0 flex",children:v.jsxs(lC,{transition:!0,className:"relative mr-16 flex w-full max-w-xs flex-1 transform transition duration-300 ease-in-out data-closed:-translate-x-full",children:[v.jsx(xp,{children:v.jsx("div",{className:"absolute left-full top-0 flex w-16 justify-center pt-5 duration-300 ease-in-out data-closed:opacity-0",children:v.jsxs("button",{type:"button",onClick:()=>t(!1),className:"-m-2.5 p-2.5",children:[v.jsx("span",{className:"sr-only",children:"Close sidebar"}),v.jsx($R,{"aria-hidden":"true",className:"size-6 text-white"})]})})}),v.jsx("div",{className:"flex grow flex-col gap-y-5 overflow-y-auto bg-white px-6 pb-4",children:v.jsx(gE,{})})]})})]}),v.jsx("div",{className:"hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-72 lg:flex-col",children:v.jsx("div",{className:"flex grow flex-col overflow-y-auto border-r border-gray-200 bg-white px-6 pb-4",children:v.jsx(gE,{})})}),v.jsxs("div",{className:"lg:pl-72",children:[v.jsx("div",{className:"sticky top-0 z-40 flex h-16 shrink-0 items-center gap-x-4 border-b border-gray-200 bg-white lg:hidden px-4 shadow-xs sm:gap-x-6 sm:px-6 lg:px-8",children:v.jsxs("button",{type:"button",onClick:()=>t(!0),className:"-m-2.5 p-2.5 text-gray-700 lg:hidden",children:[v.jsx("span",{className:"sr-only",children:"Open sidebar"}),v.jsx(NR,{"aria-hidden":"true",className:"size-6"})]})}),v.jsx("main",{className:"",children:v.jsx("div",{className:"px-4 sm:px-6 lg:px-8",children:v.jsx(LM,{})})})]})]})}function Bce(){const{features:e}=_r,t=Ar();return b.useEffect(()=>{window.scrollTo(0,0)},[t]),v.jsx(FM,{children:v.jsxs(vl,{element:v.jsx(Fce,{}),children:[v.jsx(vl,{path:"",element:v.jsx($ce,{features:e})}),v.jsx(vl,{path:"digest",element:v.jsx(kce,{features:e})}),v.jsx(vl,{path:":name",element:v.jsx(Lce,{features:e})})]})})}Uh.createRoot(document.getElementById("root")).render(v.jsx(j.StrictMode,{children:v.jsx(uR,{children:v.jsx(Bce,{})})}));
264
273
  </script>
265
274
  </body>
266
275
  </html>