feature_map 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,7 +15,7 @@
15
15
  </head>
16
16
  <body class="bg-gray-100">
17
17
  <div id="root"></div>
18
- <script>function CC(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 hu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function he(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var UO={exports:{}},nd={},HO={exports:{}},re={};/**
18
+ <script>function TC(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 hu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function he(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var BE={exports:{}},td={},zE={exports:{}},re={};/**
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 Ds=Symbol.for("react.element"),kC=Symbol.for("react.portal"),NC=Symbol.for("react.fragment"),MC=Symbol.for("react.strict_mode"),IC=Symbol.for("react.profiler"),RC=Symbol.for("react.provider"),LC=Symbol.for("react.context"),DC=Symbol.for("react.forward_ref"),FC=Symbol.for("react.suspense"),BC=Symbol.for("react.memo"),zC=Symbol.for("react.lazy"),jx=Symbol.iterator;function UC(e){return e===null||typeof e!="object"?null:(e=jx&&e[jx]||e["@@iterator"],typeof e=="function"?e:null)}var WO={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},VO=Object.assign,KO={};function xa(e,t,n){this.props=e,this.context=t,this.refs=KO,this.updater=n||WO}xa.prototype.isReactComponent={};xa.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")};xa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function qO(){}qO.prototype=xa.prototype;function Lg(e,t,n){this.props=e,this.context=t,this.refs=KO,this.updater=n||WO}var Dg=Lg.prototype=new qO;Dg.constructor=Lg;VO(Dg,xa.prototype);Dg.isPureReactComponent=!0;var Cx=Array.isArray,GO=Object.prototype.hasOwnProperty,Fg={current:null},XO={key:!0,ref:!0,__self:!0,__source:!0};function YO(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)GO.call(t,r)&&!XO.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:Ds,type:e,key:o,ref:a,props:i,_owner:Fg.current}}function HC(e,t){return{$$typeof:Ds,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Bg(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ds}function WC(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var kx=/\/+/g;function jp(e,t){return typeof e=="object"&&e!==null&&e.key!=null?WC(""+e.key):t.toString(36)}function Ju(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 Ds:case kC:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+jp(a,0):r,Cx(i)?(n="",e!=null&&(n=e.replace(kx,"$&/")+"/"),Ju(i,t,n,"",function(u){return u})):i!=null&&(Bg(i)&&(i=HC(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(kx,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",Cx(e))for(var l=0;l<e.length;l++){o=e[l];var s=r+jp(o,l);a+=Ju(o,t,n,s,i)}else if(s=UC(e),typeof s=="function")for(e=s.call(e),l=0;!(o=e.next()).done;)o=o.value,s=r+jp(o,l++),a+=Ju(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 mu(e,t,n){if(e==null)return e;var r=[],i=0;return Ju(e,r,"","",function(o){return t.call(n,o,i++)}),r}function VC(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},ec={transition:null},KC={ReactCurrentDispatcher:_t,ReactCurrentBatchConfig:ec,ReactCurrentOwner:Fg};function QO(){throw Error("act(...) is not supported in production builds of React.")}re.Children={map:mu,forEach:function(e,t,n){mu(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return mu(e,function(){t++}),t},toArray:function(e){return mu(e,function(t){return t})||[]},only:function(e){if(!Bg(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};re.Component=xa;re.Fragment=NC;re.Profiler=IC;re.PureComponent=Lg;re.StrictMode=MC;re.Suspense=FC;re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=KC;re.act=QO;re.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=VO({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=Fg.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)GO.call(t,s)&&!XO.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:Ds,type:e.type,key:i,ref:o,props:r,_owner:a}};re.createContext=function(e){return e={$$typeof:LC,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:RC,_context:e},e.Consumer=e};re.createElement=YO;re.createFactory=function(e){var t=YO.bind(null,e);return t.type=e,t};re.createRef=function(){return{current:null}};re.forwardRef=function(e){return{$$typeof:DC,render:e}};re.isValidElement=Bg;re.lazy=function(e){return{$$typeof:zC,_payload:{_status:-1,_result:e},_init:VC}};re.memo=function(e,t){return{$$typeof:BC,type:e,compare:t===void 0?null:t}};re.startTransition=function(e){var t=ec.transition;ec.transition={};try{e()}finally{ec.transition=t}};re.unstable_act=QO;re.useCallback=function(e,t){return _t.current.useCallback(e,t)};re.useContext=function(e){return _t.current.useContext(e)};re.useDebugValue=function(){};re.useDeferredValue=function(e){return _t.current.useDeferredValue(e)};re.useEffect=function(e,t){return _t.current.useEffect(e,t)};re.useId=function(){return _t.current.useId()};re.useImperativeHandle=function(e,t,n){return _t.current.useImperativeHandle(e,t,n)};re.useInsertionEffect=function(e,t){return _t.current.useInsertionEffect(e,t)};re.useLayoutEffect=function(e,t){return _t.current.useLayoutEffect(e,t)};re.useMemo=function(e,t){return _t.current.useMemo(e,t)};re.useReducer=function(e,t,n){return _t.current.useReducer(e,t,n)};re.useRef=function(e){return _t.current.useRef(e)};re.useState=function(e){return _t.current.useState(e)};re.useSyncExternalStore=function(e,t,n){return _t.current.useSyncExternalStore(e,t,n)};re.useTransition=function(){return _t.current.useTransition()};re.version="18.3.1";HO.exports=re;var S=HO.exports;const j=he(S),bc=CC({__proto__:null,default:j},[S]);/**
26
+ */var Ds=Symbol.for("react.element"),jC=Symbol.for("react.portal"),CC=Symbol.for("react.fragment"),kC=Symbol.for("react.strict_mode"),NC=Symbol.for("react.profiler"),MC=Symbol.for("react.provider"),IC=Symbol.for("react.context"),RC=Symbol.for("react.forward_ref"),LC=Symbol.for("react.suspense"),DC=Symbol.for("react.memo"),FC=Symbol.for("react.lazy"),Ax=Symbol.iterator;function BC(e){return e===null||typeof e!="object"?null:(e=Ax&&e[Ax]||e["@@iterator"],typeof e=="function"?e:null)}var UE={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},HE=Object.assign,WE={};function xa(e,t,n){this.props=e,this.context=t,this.refs=WE,this.updater=n||UE}xa.prototype.isReactComponent={};xa.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")};xa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function VE(){}VE.prototype=xa.prototype;function Ig(e,t,n){this.props=e,this.context=t,this.refs=WE,this.updater=n||UE}var Rg=Ig.prototype=new VE;Rg.constructor=Ig;HE(Rg,xa.prototype);Rg.isPureReactComponent=!0;var Tx=Array.isArray,KE=Object.prototype.hasOwnProperty,Lg={current:null},qE={key:!0,ref:!0,__self:!0,__source:!0};function GE(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)KE.call(t,r)&&!qE.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:Ds,type:e,key:o,ref:a,props:i,_owner:Lg.current}}function zC(e,t){return{$$typeof:Ds,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Dg(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ds}function UC(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var jx=/\/+/g;function Tp(e,t){return typeof e=="object"&&e!==null&&e.key!=null?UC(""+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 Ds:case jC:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+Tp(a,0):r,Tx(i)?(n="",e!=null&&(n=e.replace(jx,"$&/")+"/"),Zu(i,t,n,"",function(u){return u})):i!=null&&(Dg(i)&&(i=zC(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(jx,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",Tx(e))for(var l=0;l<e.length;l++){o=e[l];var s=r+Tp(o,l);a+=Zu(o,t,n,s,i)}else if(s=BC(e),typeof s=="function")for(e=s.call(e),l=0;!(o=e.next()).done;)o=o.value,s=r+Tp(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 mu(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 HC(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 St={current:null},Ju={transition:null},WC={ReactCurrentDispatcher:St,ReactCurrentBatchConfig:Ju,ReactCurrentOwner:Lg};function XE(){throw Error("act(...) is not supported in production builds of React.")}re.Children={map:mu,forEach:function(e,t,n){mu(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return mu(e,function(){t++}),t},toArray:function(e){return mu(e,function(t){return t})||[]},only:function(e){if(!Dg(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};re.Component=xa;re.Fragment=CC;re.Profiler=NC;re.PureComponent=Ig;re.StrictMode=kC;re.Suspense=LC;re.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=WC;re.act=XE;re.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=HE({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=Lg.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)KE.call(t,s)&&!qE.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:Ds,type:e.type,key:i,ref:o,props:r,_owner:a}};re.createContext=function(e){return e={$$typeof:IC,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:MC,_context:e},e.Consumer=e};re.createElement=GE;re.createFactory=function(e){var t=GE.bind(null,e);return t.type=e,t};re.createRef=function(){return{current:null}};re.forwardRef=function(e){return{$$typeof:RC,render:e}};re.isValidElement=Dg;re.lazy=function(e){return{$$typeof:FC,_payload:{_status:-1,_result:e},_init:HC}};re.memo=function(e,t){return{$$typeof:DC,type:e,compare:t===void 0?null:t}};re.startTransition=function(e){var t=Ju.transition;Ju.transition={};try{e()}finally{Ju.transition=t}};re.unstable_act=XE;re.useCallback=function(e,t){return St.current.useCallback(e,t)};re.useContext=function(e){return St.current.useContext(e)};re.useDebugValue=function(){};re.useDeferredValue=function(e){return St.current.useDeferredValue(e)};re.useEffect=function(e,t){return St.current.useEffect(e,t)};re.useId=function(){return St.current.useId()};re.useImperativeHandle=function(e,t,n){return St.current.useImperativeHandle(e,t,n)};re.useInsertionEffect=function(e,t){return St.current.useInsertionEffect(e,t)};re.useLayoutEffect=function(e,t){return St.current.useLayoutEffect(e,t)};re.useMemo=function(e,t){return St.current.useMemo(e,t)};re.useReducer=function(e,t,n){return St.current.useReducer(e,t,n)};re.useRef=function(e){return St.current.useRef(e)};re.useState=function(e){return St.current.useState(e)};re.useSyncExternalStore=function(e,t,n){return St.current.useSyncExternalStore(e,t,n)};re.useTransition=function(){return St.current.useTransition()};re.version="18.3.1";zE.exports=re;var _=zE.exports;const j=he(_),xc=TC({__proto__:null,default:j},[_]);/**
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 qC=S,GC=Symbol.for("react.element"),XC=Symbol.for("react.fragment"),YC=Object.prototype.hasOwnProperty,QC=qC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ZC={key:!0,ref:!0,__self:!0,__source:!0};function ZO(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)YC.call(t,r)&&!ZC.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:GC,type:e,key:o,ref:a,props:i,_owner:QC.current}}nd.Fragment=XC;nd.jsx=ZO;nd.jsxs=ZO;UO.exports=nd;var b=UO.exports,Yh={},JO={exports:{}},Wt={},eE={exports:{}},tE={};/**
34
+ */var VC=_,KC=Symbol.for("react.element"),qC=Symbol.for("react.fragment"),GC=Object.prototype.hasOwnProperty,XC=VC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,YC={key:!0,ref:!0,__self:!0,__source:!0};function YE(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)GC.call(t,r)&&!YC.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:KC,type:e,key:o,ref:a,props:i,_owner:XC.current}}td.Fragment=qC;td.jsx=YE;td.jsxs=YE;BE.exports=td;var b=BE.exports,Gh={},QE={exports:{}},Wt={},ZE={exports:{}},JE={};/**
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 F=P.length;P.push(k);e:for(;0<F;){var B=F-1>>>1,U=P[B];if(0<i(U,k))P[B]=k,P[F]=U,F=B;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],F=P.pop();if(F!==k){P[0]=F;e:for(var B=0,U=P.length,X=U>>>1;B<X;){var ne=2*(B+1)-1,ae=P[ne],te=ne+1,ze=P[te];if(0>i(ae,F))te<U&&0>i(ze,ae)?(P[B]=ze,P[te]=F,B=te):(P[B]=ae,P[ne]=F,B=ne);else if(te<U&&0>i(ze,F))P[B]=ze,P[te]=F,B=te;else break e}}return k}function i(P,k){var F=P.sortIndex-k.sortIndex;return F!==0?F: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,m=!1,v=!1,y=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,g=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 O(P){if(v=!1,x(P),!m)if(n(s)!==null)m=!0,L(w);else{var k=n(u);k!==null&&I(O,k.startTime-P)}}function w(P,k){m=!1,v&&(v=!1,h($),$=-1),p=!0;var F=d;try{for(x(k),f=n(s);f!==null&&(!(f.expirationTime>k)||P&&!T());){var B=f.callback;if(typeof B=="function"){f.callback=null,d=f.priorityLevel;var U=B(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 X=!0;else{var ne=n(u);ne!==null&&I(O,ne.startTime-k),X=!1}return X}finally{f=null,d=F,p=!1}}var _=!1,E=null,$=-1,A=5,C=-1;function T(){return!(e.unstable_now()-C<A)}function N(){if(E!==null){var P=e.unstable_now();C=P;var k=!0;try{k=E(!0,P)}finally{k?R():(_=!1,E=null)}}else _=!1}var R;if(typeof g=="function")R=function(){g(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(){y(N,0)};function L(P){E=P,_||(_=!0,R())}function I(P,k){$=y(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(){m||p||(m=!0,L(w))},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"):A=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 F=d;d=k;try{return P()}finally{d=F}},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 F=d;d=P;try{return k()}finally{d=F}},e.unstable_scheduleCallback=function(P,k,F){var B=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?B+F:B):F=B,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=F+U,P={id:c++,callback:k,priorityLevel:P,startTime:F,expirationTime:U,sortIndex:-1},F>B?(P.sortIndex=F,t(u,P),n(s)===null&&P===n(u)&&(v?(h($),$=-1):v=!0,I(O,F-B))):(P.sortIndex=U,t(s,P),m||p||(m=!0,L(w))),P},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(P){var k=d;return function(){var F=d;d=k;try{return P.apply(this,arguments)}finally{d=F}}}})(tE);eE.exports=tE;var JC=eE.exports;/**
42
+ */(function(e){function t(P,k){var F=P.length;P.push(k);e:for(;0<F;){var B=F-1>>>1,U=P[B];if(0<i(U,k))P[B]=k,P[F]=U,F=B;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],F=P.pop();if(F!==k){P[0]=F;e:for(var B=0,U=P.length,X=U>>>1;B<X;){var ne=2*(B+1)-1,ae=P[ne],te=ne+1,ze=P[te];if(0>i(ae,F))te<U&&0>i(ze,ae)?(P[B]=ze,P[te]=F,B=te):(P[B]=ae,P[ne]=F,B=ne);else if(te<U&&0>i(ze,F))P[B]=ze,P[te]=F,B=te;else break e}}return k}function i(P,k){var F=P.sortIndex-k.sortIndex;return F!==0?F: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,m=!1,v=!1,y=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,g=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(v=!1,x(P),!m)if(n(s)!==null)m=!0,L(w);else{var k=n(u);k!==null&&I(E,k.startTime-P)}}function w(P,k){m=!1,v&&(v=!1,h($),$=-1),p=!0;var F=d;try{for(x(k),f=n(s);f!==null&&(!(f.expirationTime>k)||P&&!T());){var B=f.callback;if(typeof B=="function"){f.callback=null,d=f.priorityLevel;var U=B(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 X=!0;else{var ne=n(u);ne!==null&&I(E,ne.startTime-k),X=!1}return X}finally{f=null,d=F,p=!1}}var S=!1,O=null,$=-1,A=5,C=-1;function T(){return!(e.unstable_now()-C<A)}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 g=="function")R=function(){g(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(){y(N,0)};function L(P){O=P,S||(S=!0,R())}function I(P,k){$=y(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(){m||p||(m=!0,L(w))},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"):A=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 F=d;d=k;try{return P()}finally{d=F}},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 F=d;d=P;try{return k()}finally{d=F}},e.unstable_scheduleCallback=function(P,k,F){var B=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?B+F:B):F=B,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=F+U,P={id:c++,callback:k,priorityLevel:P,startTime:F,expirationTime:U,sortIndex:-1},F>B?(P.sortIndex=F,t(u,P),n(s)===null&&P===n(u)&&(v?(h($),$=-1):v=!0,I(E,F-B))):(P.sortIndex=U,t(s,P),m||p||(m=!0,L(w))),P},e.unstable_shouldYield=T,e.unstable_wrapCallback=function(P){var k=d;return function(){var F=d;d=k;try{return P.apply(this,arguments)}finally{d=F}}}})(JE);ZE.exports=JE;var QC=ZE.exports;/**
43
43
  * @license React
44
44
  * react-dom.production.min.js
45
45
  *
@@ -47,14 +47,14 @@
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 ek=S,zt=JC;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,Rl={};function Qi(e,t){Fo(e,t),Fo(e+"Capture",t)}function Fo(e,t){for(Rl[e]=t,e=0;e<t.length;e++)nE.add(t[e])}var yr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qh=Object.prototype.hasOwnProperty,tk=/^[: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]*$/,Nx={},Mx={};function nk(e){return Qh.call(Mx,e)?!0:Qh.call(Nx,e)?!1:tk.test(e)?Mx[e]=!0:(Nx[e]=!0,!1)}function rk(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 ik(e,t,n,r){if(t===null||typeof t>"u"||rk(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 Ot(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 st={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){st[e]=new Ot(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];st[t]=new Ot(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){st[e]=new Ot(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){st[e]=new Ot(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){st[e]=new Ot(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){st[e]=new Ot(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){st[e]=new Ot(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){st[e]=new Ot(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){st[e]=new Ot(e,5,!1,e.toLowerCase(),null,!1,!1)});var zg=/[\-:]([a-z])/g;function Ug(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(zg,Ug);st[t]=new Ot(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(zg,Ug);st[t]=new Ot(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(zg,Ug);st[t]=new Ot(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){st[e]=new Ot(e,1,!1,e.toLowerCase(),null,!1,!1)});st.xlinkHref=new Ot("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){st[e]=new Ot(e,1,!1,e.toLowerCase(),null,!0,!0)});function Hg(e,t,n,r){var i=st.hasOwnProperty(t)?st[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(ik(t,n,i,r)&&(n=null),r||i===null?nk(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 Ar=ek.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,vu=Symbol.for("react.element"),po=Symbol.for("react.portal"),ho=Symbol.for("react.fragment"),Wg=Symbol.for("react.strict_mode"),Zh=Symbol.for("react.profiler"),rE=Symbol.for("react.provider"),iE=Symbol.for("react.context"),Vg=Symbol.for("react.forward_ref"),Jh=Symbol.for("react.suspense"),em=Symbol.for("react.suspense_list"),Kg=Symbol.for("react.memo"),Nr=Symbol.for("react.lazy"),oE=Symbol.for("react.offscreen"),Ix=Symbol.iterator;function Ha(e){return e===null||typeof e!="object"?null:(e=Ix&&e[Ix]||e["@@iterator"],typeof e=="function"?e:null)}var Ie=Object.assign,Cp;function fl(e){if(Cp===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Cp=t&&t[1]||""}return`
51
- `+Cp+e}var kp=!1;function Np(e,t){if(!e||kp)return"";kp=!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(`
50
+ */var ZC=_,zt=QC;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 eO=new Set,Rl={};function Yi(e,t){Fo(e,t),Fo(e+"Capture",t)}function Fo(e,t){for(Rl[e]=t,e=0;e<t.length;e++)eO.add(t[e])}var yr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xh=Object.prototype.hasOwnProperty,JC=/^[: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]*$/,Cx={},kx={};function ek(e){return Xh.call(kx,e)?!0:Xh.call(Cx,e)?!1:JC.test(e)?kx[e]=!0:(Cx[e]=!0,!1)}function tk(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 nk(e,t,n,r){if(t===null||typeof t>"u"||tk(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 Et(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 st={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){st[e]=new Et(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];st[t]=new Et(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){st[e]=new Et(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){st[e]=new Et(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){st[e]=new Et(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){st[e]=new Et(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){st[e]=new Et(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){st[e]=new Et(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){st[e]=new Et(e,5,!1,e.toLowerCase(),null,!1,!1)});var Fg=/[\-:]([a-z])/g;function Bg(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(Fg,Bg);st[t]=new Et(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(Fg,Bg);st[t]=new Et(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(Fg,Bg);st[t]=new Et(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){st[e]=new Et(e,1,!1,e.toLowerCase(),null,!1,!1)});st.xlinkHref=new Et("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){st[e]=new Et(e,1,!1,e.toLowerCase(),null,!0,!0)});function zg(e,t,n,r){var i=st.hasOwnProperty(t)?st[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(nk(t,n,i,r)&&(n=null),r||i===null?ek(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 Ar=ZC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,vu=Symbol.for("react.element"),po=Symbol.for("react.portal"),ho=Symbol.for("react.fragment"),Ug=Symbol.for("react.strict_mode"),Yh=Symbol.for("react.profiler"),tO=Symbol.for("react.provider"),nO=Symbol.for("react.context"),Hg=Symbol.for("react.forward_ref"),Qh=Symbol.for("react.suspense"),Zh=Symbol.for("react.suspense_list"),Wg=Symbol.for("react.memo"),Nr=Symbol.for("react.lazy"),rO=Symbol.for("react.offscreen"),Nx=Symbol.iterator;function Ha(e){return e===null||typeof e!="object"?null:(e=Nx&&e[Nx]||e["@@iterator"],typeof e=="function"?e:null)}var Ie=Object.assign,jp;function fl(e){if(jp===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);jp=t&&t[1]||""}return`
51
+ `+jp+e}var Cp=!1;function kp(e,t){if(!e||Cp)return"";Cp=!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
52
  `),o=r.stack.split(`
53
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{kp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?fl(e):""}function ok(e){switch(e.tag){case 5:return fl(e.type);case 16:return fl("Lazy");case 13:return fl("Suspense");case 19:return fl("SuspenseList");case 0:case 2:case 15:return e=Np(e.type,!1),e;case 11:return e=Np(e.type.render,!1),e;case 1:return e=Np(e.type,!0),e;default:return""}}function tm(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 ho:return"Fragment";case po:return"Portal";case Zh:return"Profiler";case Wg:return"StrictMode";case Jh:return"Suspense";case em:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case iE:return(e.displayName||"Context")+".Consumer";case rE:return(e._context.displayName||"Context")+".Provider";case Vg: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:tm(e.type)||"Memo";case Nr:t=e._payload,e=e._init;try{return tm(e(t))}catch{}}return null}function ak(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 tm(t);case 8:return t===Wg?"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 Zr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function aE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function lk(e){var t=aE(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 gu(e){e._valueTracker||(e._valueTracker=lk(e))}function lE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=aE(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function wc(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 nm(e,t){var n=t.checked;return Ie({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Rx(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Zr(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 sE(e,t){t=t.checked,t!=null&&Hg(e,"checked",t,!1)}function rm(e,t){sE(e,t);var n=Zr(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")?im(e,t.type,n):t.hasOwnProperty("defaultValue")&&im(e,t.type,Zr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Lx(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 im(e,t,n){(t!=="number"||wc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var dl=Array.isArray;function To(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=""+Zr(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 om(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(W(91));return Ie({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Dx(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(dl(n)){if(1<n.length)throw Error(W(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Zr(n)}}function uE(e,t){var n=Zr(t.value),r=Zr(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 Fx(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function cE(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 am(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?cE(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var yu,fE=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(yu=yu||document.createElement("div"),yu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=yu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ll(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},sk=["Webkit","ms","Moz","O"];Object.keys(bl).forEach(function(e){sk.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),bl[t]=bl[e]})});function dE(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 pE(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=dE(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var uk=Ie({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 lm(e,t){if(t){if(uk[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 sm(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 um=null;function qg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var cm=null,jo=null,Co=null;function Bx(e){if(e=zs(e)){if(typeof cm!="function")throw Error(W(280));var t=e.stateNode;t&&(t=ld(t),cm(e.stateNode,e.type,t))}}function hE(e){jo?Co?Co.push(e):Co=[e]:jo=e}function mE(){if(jo){var e=jo,t=Co;if(Co=jo=null,Bx(e),t)for(e=0;e<t.length;e++)Bx(t[e])}}function vE(e,t){return e(t)}function gE(){}var Mp=!1;function yE(e,t,n){if(Mp)return e(t,n);Mp=!0;try{return vE(e,t,n)}finally{Mp=!1,(jo!==null||Co!==null)&&(gE(),mE())}}function Dl(e,t){var n=e.stateNode;if(n===null)return null;var r=ld(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 fm=!1;if(yr)try{var Wa={};Object.defineProperty(Wa,"passive",{get:function(){fm=!0}}),window.addEventListener("test",Wa,Wa),window.removeEventListener("test",Wa,Wa)}catch{fm=!1}function ck(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,Sc=null,_c=!1,dm=null,fk={onError:function(e){wl=!0,Sc=e}};function dk(e,t,n,r,i,o,a,l,s){wl=!1,Sc=null,ck.apply(fk,arguments)}function pk(e,t,n,r,i,o,a,l,s){if(dk.apply(this,arguments),wl){if(wl){var u=Sc;wl=!1,Sc=null}else throw Error(W(198));_c||(_c=!0,dm=u)}}function Zi(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 zx(e){if(Zi(e)!==e)throw Error(W(188))}function hk(e){var t=e.alternate;if(!t){if(t=Zi(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 zx(i),e;if(o===r)return zx(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 bE(e){return e=hk(e),e!==null?wE(e):null}function wE(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=wE(e);if(t!==null)return t;e=e.sibling}return null}var SE=zt.unstable_scheduleCallback,Ux=zt.unstable_cancelCallback,mk=zt.unstable_shouldYield,vk=zt.unstable_requestPaint,Be=zt.unstable_now,gk=zt.unstable_getCurrentPriorityLevel,Gg=zt.unstable_ImmediatePriority,_E=zt.unstable_UserBlockingPriority,Oc=zt.unstable_NormalPriority,yk=zt.unstable_LowPriority,OE=zt.unstable_IdlePriority,rd=null,Dn=null;function xk(e){if(Dn&&typeof Dn.onCommitFiberRoot=="function")try{Dn.onCommitFiberRoot(rd,e,void 0,(e.current.flags&128)===128)}catch{}}var Sn=Math.clz32?Math.clz32:Sk,bk=Math.log,wk=Math.LN2;function Sk(e){return e>>>=0,e===0?32:31-(bk(e)/wk|0)|0}var xu=64,bu=4194304;function pl(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 Ec(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=pl(l):(o&=a,o!==0&&(r=pl(o)))}else a=n&~i,a!==0?r=pl(a):o!==0&&(r=pl(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-Sn(t),i=1<<n,r|=e[n],t&=~i;return r}function _k(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-Sn(o),l=1<<a,s=i[a];s===-1?(!(l&n)||l&r)&&(i[a]=_k(l,t)):s<=t&&(e.expiredLanes|=l),o&=~l}}function pm(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function EE(){var e=xu;return xu<<=1,!(xu&4194240)&&(xu=64),e}function Ip(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Fs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Sn(t),e[t]=n}function Ek(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-Sn(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Xg(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Sn(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var pe=0;function $E(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var PE,Yg,AE,TE,jE,hm=!1,wu=[],zr=null,Ur=null,Hr=null,Fl=new Map,Bl=new Map,Rr=[],$k="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 Hx(e,t){switch(e){case"focusin":case"focusout":zr=null;break;case"dragenter":case"dragleave":Ur=null;break;case"mouseover":case"mouseout":Hr=null;break;case"pointerover":case"pointerout":Fl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bl.delete(t.pointerId)}}function Va(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=zs(t),t!==null&&Yg(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Pk(e,t,n,r,i){switch(t){case"focusin":return zr=Va(zr,e,t,n,r,i),!0;case"dragenter":return Ur=Va(Ur,e,t,n,r,i),!0;case"mouseover":return Hr=Va(Hr,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Fl.set(o,Va(Fl.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Bl.set(o,Va(Bl.get(o)||null,e,t,n,r,i)),!0}return!1}function CE(e){var t=Oi(e.target);if(t!==null){var n=Zi(t);if(n!==null){if(t=n.tag,t===13){if(t=xE(n),t!==null){e.blockedOn=t,jE(e.priority,function(){AE(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 tc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=mm(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);um=r,n.target.dispatchEvent(r),um=null}else return t=zs(n),t!==null&&Yg(t),e.blockedOn=n,!1;t.shift()}return!0}function Wx(e,t,n){tc(e)&&n.delete(t)}function Ak(){hm=!1,zr!==null&&tc(zr)&&(zr=null),Ur!==null&&tc(Ur)&&(Ur=null),Hr!==null&&tc(Hr)&&(Hr=null),Fl.forEach(Wx),Bl.forEach(Wx)}function Ka(e,t){e.blockedOn===t&&(e.blockedOn=null,hm||(hm=!0,zt.unstable_scheduleCallback(zt.unstable_NormalPriority,Ak)))}function zl(e){function t(i){return Ka(i,e)}if(0<wu.length){Ka(wu[0],e);for(var n=1;n<wu.length;n++){var r=wu[n];r.blockedOn===e&&(r.blockedOn=null)}}for(zr!==null&&Ka(zr,e),Ur!==null&&Ka(Ur,e),Hr!==null&&Ka(Hr,e),Fl.forEach(t),Bl.forEach(t),n=0;n<Rr.length;n++)r=Rr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Rr.length&&(n=Rr[0],n.blockedOn===null);)CE(n),n.blockedOn===null&&Rr.shift()}var ko=Ar.ReactCurrentBatchConfig,$c=!0;function Tk(e,t,n,r){var i=pe,o=ko.transition;ko.transition=null;try{pe=1,Qg(e,t,n,r)}finally{pe=i,ko.transition=o}}function jk(e,t,n,r){var i=pe,o=ko.transition;ko.transition=null;try{pe=4,Qg(e,t,n,r)}finally{pe=i,ko.transition=o}}function Qg(e,t,n,r){if($c){var i=mm(e,t,n,r);if(i===null)Vp(e,t,r,Pc,n),Hx(e,r);else if(Pk(i,e,t,n,r))r.stopPropagation();else if(Hx(e,r),t&4&&-1<$k.indexOf(e)){for(;i!==null;){var o=zs(i);if(o!==null&&PE(o),o=mm(e,t,n,r),o===null&&Vp(e,t,r,Pc,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Vp(e,t,r,null,n)}}var Pc=null;function mm(e,t,n,r){if(Pc=null,e=qg(r),e=Oi(e),e!==null)if(t=Zi(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 Pc=e,null}function kE(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(gk()){case Gg:return 1;case _E:return 4;case Oc:case yk:return 16;case OE:return 536870912;default:return 16}default:return 16}}var Dr=null,Zg=null,nc=null;function NE(){if(nc)return nc;var e,t=Zg,n=t.length,r,i="value"in Dr?Dr.value:Dr.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 nc=i.slice(e,1<r?1-r:void 0)}function rc(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 Vx(){return!1}function Vt(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:Vx,this.isPropagationStopped=Vx,this}return Ie(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 ba={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Jg=Vt(ba),Bs=Ie({},ba,{view:0,detail:0}),Ck=Vt(Bs),Rp,Lp,qa,id=Ie({},Bs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ey,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"?(Rp=e.screenX-qa.screenX,Lp=e.screenY-qa.screenY):Lp=Rp=0,qa=e),Rp)},movementY:function(e){return"movementY"in e?e.movementY:Lp}}),Kx=Vt(id),kk=Ie({},id,{dataTransfer:0}),Nk=Vt(kk),Mk=Ie({},Bs,{relatedTarget:0}),Dp=Vt(Mk),Ik=Ie({},ba,{animationName:0,elapsedTime:0,pseudoElement:0}),Rk=Vt(Ik),Lk=Ie({},ba,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Dk=Vt(Lk),Fk=Ie({},ba,{data:0}),qx=Vt(Fk),Bk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zk={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"},Uk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Hk(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Uk[e])?!!t[e]:!1}function ey(){return Hk}var Wk=Ie({},Bs,{key:function(e){if(e.key){var t=Bk[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=rc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?zk[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ey,charCode:function(e){return e.type==="keypress"?rc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?rc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Vk=Vt(Wk),Kk=Ie({},id,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Gx=Vt(Kk),qk=Ie({},Bs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ey}),Gk=Vt(qk),Xk=Ie({},ba,{propertyName:0,elapsedTime:0,pseudoElement:0}),Yk=Vt(Xk),Qk=Ie({},id,{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}),Zk=Vt(Qk),Jk=[9,13,27,32],ty=yr&&"CompositionEvent"in window,Sl=null;yr&&"documentMode"in document&&(Sl=document.documentMode);var eN=yr&&"TextEvent"in window&&!Sl,ME=yr&&(!ty||Sl&&8<Sl&&11>=Sl),Xx=" ",Yx=!1;function IE(e,t){switch(e){case"keyup":return Jk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function RE(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var mo=!1;function tN(e,t){switch(e){case"compositionend":return RE(t);case"keypress":return t.which!==32?null:(Yx=!0,Xx);case"textInput":return e=t.data,e===Xx&&Yx?null:e;default:return null}}function nN(e,t){if(mo)return e==="compositionend"||!ty&&IE(e,t)?(e=NE(),nc=Zg=Dr=null,mo=!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 ME&&t.locale!=="ko"?null:t.data;default:return null}}var rN={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 Qx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!rN[e.type]:t==="textarea"}function LE(e,t,n,r){hE(r),t=Ac(t,"onChange"),0<t.length&&(n=new Jg("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var _l=null,Ul=null;function iN(e){GE(e,0)}function od(e){var t=yo(e);if(lE(t))return e}function oN(e,t){if(e==="change")return t}var DE=!1;if(yr){var Fp;if(yr){var Bp="oninput"in document;if(!Bp){var Zx=document.createElement("div");Zx.setAttribute("oninput","return;"),Bp=typeof Zx.oninput=="function"}Fp=Bp}else Fp=!1;DE=Fp&&(!document.documentMode||9<document.documentMode)}function Jx(){_l&&(_l.detachEvent("onpropertychange",FE),Ul=_l=null)}function FE(e){if(e.propertyName==="value"&&od(Ul)){var t=[];LE(t,Ul,e,qg(e)),yE(iN,t)}}function aN(e,t,n){e==="focusin"?(Jx(),_l=t,Ul=n,_l.attachEvent("onpropertychange",FE)):e==="focusout"&&Jx()}function lN(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return od(Ul)}function sN(e,t){if(e==="click")return od(t)}function uN(e,t){if(e==="input"||e==="change")return od(t)}function cN(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $n=typeof Object.is=="function"?Object.is:cN;function Hl(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(!Qh.call(t,i)||!$n(e[i],t[i]))return!1}return!0}function eb(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tb(e,t){var n=eb(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=eb(n)}}function BE(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?BE(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function zE(){for(var e=window,t=wc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=wc(e.document)}return t}function ny(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 fN(e){var t=zE(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&BE(n.ownerDocument.documentElement,n)){if(r!==null&&ny(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=tb(n,o);var a=tb(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 dN=yr&&"documentMode"in document&&11>=document.documentMode,vo=null,vm=null,Ol=null,gm=!1;function nb(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;gm||vo==null||vo!==wc(r)||(r=vo,"selectionStart"in r&&ny(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}),Ol&&Hl(Ol,r)||(Ol=r,r=Ac(vm,"onSelect"),0<r.length&&(t=new Jg("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vo)))}function _u(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var go={animationend:_u("Animation","AnimationEnd"),animationiteration:_u("Animation","AnimationIteration"),animationstart:_u("Animation","AnimationStart"),transitionend:_u("Transition","TransitionEnd")},zp={},UE={};yr&&(UE=document.createElement("div").style,"AnimationEvent"in window||(delete go.animationend.animation,delete go.animationiteration.animation,delete go.animationstart.animation),"TransitionEvent"in window||delete go.transitionend.transition);function ad(e){if(zp[e])return zp[e];if(!go[e])return e;var t=go[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in UE)return zp[e]=t[n];return e}var HE=ad("animationend"),WE=ad("animationiteration"),VE=ad("animationstart"),KE=ad("transitionend"),qE=new Map,rb="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 ti(e,t){qE.set(e,t),Qi(t,[e])}for(var Up=0;Up<rb.length;Up++){var Hp=rb[Up],pN=Hp.toLowerCase(),hN=Hp[0].toUpperCase()+Hp.slice(1);ti(pN,"on"+hN)}ti(HE,"onAnimationEnd");ti(WE,"onAnimationIteration");ti(VE,"onAnimationStart");ti("dblclick","onDoubleClick");ti("focusin","onFocus");ti("focusout","onBlur");ti(KE,"onTransitionEnd");Fo("onMouseEnter",["mouseout","mouseover"]);Fo("onMouseLeave",["mouseout","mouseover"]);Fo("onPointerEnter",["pointerout","pointerover"]);Fo("onPointerLeave",["pointerout","pointerover"]);Qi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Qi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Qi("onBeforeInput",["compositionend","keypress","textInput","paste"]);Qi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Qi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Qi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hl="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(" "),mN=new Set("cancel close invalid load scroll toggle".split(" ").concat(hl));function ib(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,pk(r,t,void 0,e),e.currentTarget=null}function GE(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;ib(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;ib(i,l,u),o=s}}}if(_c)throw e=dm,_c=!1,dm=null,e}function _e(e,t){var n=t[Sm];n===void 0&&(n=t[Sm]=new Set);var r=e+"__bubble";n.has(r)||(XE(t,e,2,!1),n.add(r))}function Wp(e,t,n){var r=0;t&&(r|=4),XE(n,e,r,t)}var Ou="_reactListening"+Math.random().toString(36).slice(2);function Wl(e){if(!e[Ou]){e[Ou]=!0,nE.forEach(function(n){n!=="selectionchange"&&(mN.has(n)||Wp(n,!1,e),Wp(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ou]||(t[Ou]=!0,Wp("selectionchange",!1,t))}}function XE(e,t,n,r){switch(kE(t)){case 1:var i=Tk;break;case 4:i=jk;break;default:i=Qg}n=i.bind(null,t,n,e),i=void 0,!fm||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 Vp(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=Oi(l),a===null)return;if(s=a.tag,s===5||s===6){r=o=a;continue e}l=l.parentNode}}r=r.return}yE(function(){var u=o,c=qg(n),f=[];e:{var d=qE.get(e);if(d!==void 0){var p=Jg,m=e;switch(e){case"keypress":if(rc(n)===0)break e;case"keydown":case"keyup":p=Vk;break;case"focusin":m="focus",p=Dp;break;case"focusout":m="blur",p=Dp;break;case"beforeblur":case"afterblur":p=Dp;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=Kx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Nk;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=Gk;break;case HE:case WE:case VE:p=Rk;break;case KE:p=Yk;break;case"scroll":p=Ck;break;case"wheel":p=Zk;break;case"copy":case"cut":case"paste":p=Dk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Gx}var v=(t&4)!==0,y=!v&&e==="scroll",h=v?d!==null?d+"Capture":null:d;v=[];for(var g=u,x;g!==null;){x=g;var O=x.stateNode;if(x.tag===5&&O!==null&&(x=O,h!==null&&(O=Dl(g,h),O!=null&&v.push(Vl(g,O,x)))),y)break;g=g.return}0<v.length&&(d=new p(d,m,null,n,c),f.push({event:d,listeners:v}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",d&&n!==um&&(m=n.relatedTarget||n.fromElement)&&(Oi(m)||m[xr]))break e;if((p||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,p?(m=n.relatedTarget||n.toElement,p=u,m=m?Oi(m):null,m!==null&&(y=Zi(m),m!==y||m.tag!==5&&m.tag!==6)&&(m=null)):(p=null,m=u),p!==m)){if(v=Kx,O="onMouseLeave",h="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(v=Gx,O="onPointerLeave",h="onPointerEnter",g="pointer"),y=p==null?d:yo(p),x=m==null?d:yo(m),d=new v(O,g+"leave",p,n,c),d.target=y,d.relatedTarget=x,O=null,Oi(c)===u&&(v=new v(h,g+"enter",m,n,c),v.target=x,v.relatedTarget=y,O=v),y=O,p&&m)t:{for(v=p,h=m,g=0,x=v;x;x=lo(x))g++;for(x=0,O=h;O;O=lo(O))x++;for(;0<g-x;)v=lo(v),g--;for(;0<x-g;)h=lo(h),x--;for(;g--;){if(v===h||h!==null&&v===h.alternate)break t;v=lo(v),h=lo(h)}v=null}else v=null;p!==null&&ob(f,d,p,v,!1),m!==null&&y!==null&&ob(f,y,m,v,!0)}}e:{if(d=u?yo(u):window,p=d.nodeName&&d.nodeName.toLowerCase(),p==="select"||p==="input"&&d.type==="file")var w=oN;else if(Qx(d))if(DE)w=uN;else{w=lN;var _=aN}else(p=d.nodeName)&&p.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(w=sN);if(w&&(w=w(e,u))){LE(f,w,n,c);break e}_&&_(e,d,u),e==="focusout"&&(_=d._wrapperState)&&_.controlled&&d.type==="number"&&im(d,"number",d.value)}switch(_=u?yo(u):window,e){case"focusin":(Qx(_)||_.contentEditable==="true")&&(vo=_,vm=u,Ol=null);break;case"focusout":Ol=vm=vo=null;break;case"mousedown":gm=!0;break;case"contextmenu":case"mouseup":case"dragend":gm=!1,nb(f,n,c);break;case"selectionchange":if(dN)break;case"keydown":case"keyup":nb(f,n,c)}var E;if(ty)e:{switch(e){case"compositionstart":var $="onCompositionStart";break e;case"compositionend":$="onCompositionEnd";break e;case"compositionupdate":$="onCompositionUpdate";break e}$=void 0}else mo?IE(e,n)&&($="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&($="onCompositionStart");$&&(ME&&n.locale!=="ko"&&(mo||$!=="onCompositionStart"?$==="onCompositionEnd"&&mo&&(E=NE()):(Dr=c,Zg="value"in Dr?Dr.value:Dr.textContent,mo=!0)),_=Ac(u,$),0<_.length&&($=new qx($,e,null,n,c),f.push({event:$,listeners:_}),E?$.data=E:(E=RE(n),E!==null&&($.data=E)))),(E=eN?tN(e,n):nN(e,n))&&(u=Ac(u,"onBeforeInput"),0<u.length&&(c=new qx("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=E))}GE(f,t)})}function Vl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ac(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Dl(e,n),o!=null&&r.unshift(Vl(e,o,i)),o=Dl(e,t),o!=null&&r.push(Vl(e,o,i))),e=e.return}return r}function lo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ob(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=Dl(n,o),s!=null&&a.unshift(Vl(n,s,l))):i||(s=Dl(n,o),s!=null&&a.push(Vl(n,s,l)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var vN=/\r\n?/g,gN=/\u0000|\uFFFD/g;function ab(e){return(typeof e=="string"?e:""+e).replace(vN,`
55
- `).replace(gN,"")}function Eu(e,t,n){if(t=ab(t),ab(e)!==t&&n)throw Error(W(425))}function Tc(){}var ym=null,xm=null;function bm(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 wm=typeof setTimeout=="function"?setTimeout:void 0,yN=typeof clearTimeout=="function"?clearTimeout:void 0,lb=typeof Promise=="function"?Promise:void 0,xN=typeof queueMicrotask=="function"?queueMicrotask:typeof lb<"u"?function(e){return lb.resolve(null).then(e).catch(bN)}:wm;function bN(e){setTimeout(function(){throw e})}function Kp(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),zl(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);zl(t)}function Wr(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 sb(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 wa=Math.random().toString(36).slice(2),Rn="__reactFiber$"+wa,Kl="__reactProps$"+wa,xr="__reactContainer$"+wa,Sm="__reactEvents$"+wa,wN="__reactListeners$"+wa,SN="__reactHandles$"+wa;function Oi(e){var t=e[Rn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[xr]||n[Rn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=sb(e);e!==null;){if(n=e[Rn])return n;e=sb(e)}return t}e=n,n=e.parentNode}return null}function zs(e){return e=e[Rn]||e[xr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function yo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(W(33))}function ld(e){return e[Kl]||null}var _m=[],xo=-1;function ni(e){return{current:e}}function Pe(e){0>xo||(e.current=_m[xo],_m[xo]=null,xo--)}function we(e,t){xo++,_m[xo]=e.current,e.current=t}var Jr={},vt=ni(Jr),Ct=ni(!1),Di=Jr;function Bo(e,t){var n=e.type.contextTypes;if(!n)return Jr;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 kt(e){return e=e.childContextTypes,e!=null}function jc(){Pe(Ct),Pe(vt)}function ub(e,t,n){if(vt.current!==Jr)throw Error(W(168));we(vt,t),we(Ct,n)}function YE(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,ak(e)||"Unknown",i));return Ie({},n,r)}function Cc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Jr,Di=vt.current,we(vt,e),we(Ct,Ct.current),!0}function cb(e,t,n){var r=e.stateNode;if(!r)throw Error(W(169));n?(e=YE(e,t,Di),r.__reactInternalMemoizedMergedChildContext=e,Pe(Ct),Pe(vt),we(vt,e)):Pe(Ct),we(Ct,n)}var rr=null,sd=!1,qp=!1;function QE(e){rr===null?rr=[e]:rr.push(e)}function _N(e){sd=!0,QE(e)}function ri(){if(!qp&&rr!==null){qp=!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,sd=!1}catch(i){throw rr!==null&&(rr=rr.slice(e+1)),SE(Gg,ri),i}finally{pe=t,qp=!1}}return null}var bo=[],wo=0,kc=null,Nc=0,Zt=[],Jt=0,Fi=null,or=1,ar="";function gi(e,t){bo[wo++]=Nc,bo[wo++]=kc,kc=e,Nc=t}function ZE(e,t,n){Zt[Jt++]=or,Zt[Jt++]=ar,Zt[Jt++]=Fi,Fi=e;var r=or;e=ar;var i=32-Sn(r)-1;r&=~(1<<i),n+=1;var o=32-Sn(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,or=1<<32-Sn(t)+i|n<<i|r,ar=o+e}else or=1<<o|n<<i|r,ar=e}function ry(e){e.return!==null&&(gi(e,1),ZE(e,1,0))}function iy(e){for(;e===kc;)kc=bo[--wo],bo[wo]=null,Nc=bo[--wo],bo[wo]=null;for(;e===Fi;)Fi=Zt[--Jt],Zt[Jt]=null,ar=Zt[--Jt],Zt[Jt]=null,or=Zt[--Jt],Zt[Jt]=null}var Ft=null,Dt=null,Te=!1,xn=null;function JE(e,t){var n=nn(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 fb(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,Ft=e,Dt=Wr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ft=e,Dt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Fi!==null?{id:or,overflow:ar}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=nn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ft=e,Dt=null,!0):!1;default:return!1}}function Om(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Em(e){if(Te){var t=Dt;if(t){var n=t;if(!fb(e,t)){if(Om(e))throw Error(W(418));t=Wr(n.nextSibling);var r=Ft;t&&fb(e,t)?JE(r,n):(e.flags=e.flags&-4097|2,Te=!1,Ft=e)}}else{if(Om(e))throw Error(W(418));e.flags=e.flags&-4097|2,Te=!1,Ft=e}}}function db(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ft=e}function $u(e){if(e!==Ft)return!1;if(!Te)return db(e),Te=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!bm(e.type,e.memoizedProps)),t&&(t=Dt)){if(Om(e))throw e$(),Error(W(418));for(;t;)JE(e,t),t=Wr(t.nextSibling)}if(db(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){Dt=Wr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Dt=null}}else Dt=Ft?Wr(e.stateNode.nextSibling):null;return!0}function e$(){for(var e=Dt;e;)e=Wr(e.nextSibling)}function zo(){Dt=Ft=null,Te=!1}function oy(e){xn===null?xn=[e]:xn.push(e)}var ON=Ar.ReactCurrentBatchConfig;function Ga(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 Pu(e,t){throw e=Object.prototype.toString.call(t),Error(W(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function pb(e){var t=e._init;return t(e._payload)}function t$(e){function t(h,g){if(e){var x=h.deletions;x===null?(h.deletions=[g],h.flags|=16):x.push(g)}}function n(h,g){if(!e)return null;for(;g!==null;)t(h,g),g=g.sibling;return null}function r(h,g){for(h=new Map;g!==null;)g.key!==null?h.set(g.key,g):h.set(g.index,g),g=g.sibling;return h}function i(h,g){return h=Gr(h,g),h.index=0,h.sibling=null,h}function o(h,g,x){return h.index=x,e?(x=h.alternate,x!==null?(x=x.index,x<g?(h.flags|=2,g):x):(h.flags|=2,g)):(h.flags|=1048576,g)}function a(h){return e&&h.alternate===null&&(h.flags|=2),h}function l(h,g,x,O){return g===null||g.tag!==6?(g=eh(x,h.mode,O),g.return=h,g):(g=i(g,x),g.return=h,g)}function s(h,g,x,O){var w=x.type;return w===ho?c(h,g,x.props.children,O,x.key):g!==null&&(g.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Nr&&pb(w)===g.type)?(O=i(g,x.props),O.ref=Ga(h,g,x),O.return=h,O):(O=cc(x.type,x.key,x.props,null,h.mode,O),O.ref=Ga(h,g,x),O.return=h,O)}function u(h,g,x,O){return g===null||g.tag!==4||g.stateNode.containerInfo!==x.containerInfo||g.stateNode.implementation!==x.implementation?(g=th(x,h.mode,O),g.return=h,g):(g=i(g,x.children||[]),g.return=h,g)}function c(h,g,x,O,w){return g===null||g.tag!==7?(g=Mi(x,h.mode,O,w),g.return=h,g):(g=i(g,x),g.return=h,g)}function f(h,g,x){if(typeof g=="string"&&g!==""||typeof g=="number")return g=eh(""+g,h.mode,x),g.return=h,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case vu:return x=cc(g.type,g.key,g.props,null,h.mode,x),x.ref=Ga(h,null,g),x.return=h,x;case po:return g=th(g,h.mode,x),g.return=h,g;case Nr:var O=g._init;return f(h,O(g._payload),x)}if(dl(g)||Ha(g))return g=Mi(g,h.mode,x,null),g.return=h,g;Pu(h,g)}return null}function d(h,g,x,O){var w=g!==null?g.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return w!==null?null:l(h,g,""+x,O);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case vu:return x.key===w?s(h,g,x,O):null;case po:return x.key===w?u(h,g,x,O):null;case Nr:return w=x._init,d(h,g,w(x._payload),O)}if(dl(x)||Ha(x))return w!==null?null:c(h,g,x,O,null);Pu(h,x)}return null}function p(h,g,x,O,w){if(typeof O=="string"&&O!==""||typeof O=="number")return h=h.get(x)||null,l(g,h,""+O,w);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case vu:return h=h.get(O.key===null?x:O.key)||null,s(g,h,O,w);case po:return h=h.get(O.key===null?x:O.key)||null,u(g,h,O,w);case Nr:var _=O._init;return p(h,g,x,_(O._payload),w)}if(dl(O)||Ha(O))return h=h.get(x)||null,c(g,h,O,w,null);Pu(g,O)}return null}function m(h,g,x,O){for(var w=null,_=null,E=g,$=g=0,A=null;E!==null&&$<x.length;$++){E.index>$?(A=E,E=null):A=E.sibling;var C=d(h,E,x[$],O);if(C===null){E===null&&(E=A);break}e&&E&&C.alternate===null&&t(h,E),g=o(C,g,$),_===null?w=C:_.sibling=C,_=C,E=A}if($===x.length)return n(h,E),Te&&gi(h,$),w;if(E===null){for(;$<x.length;$++)E=f(h,x[$],O),E!==null&&(g=o(E,g,$),_===null?w=E:_.sibling=E,_=E);return Te&&gi(h,$),w}for(E=r(h,E);$<x.length;$++)A=p(E,h,$,x[$],O),A!==null&&(e&&A.alternate!==null&&E.delete(A.key===null?$:A.key),g=o(A,g,$),_===null?w=A:_.sibling=A,_=A);return e&&E.forEach(function(T){return t(h,T)}),Te&&gi(h,$),w}function v(h,g,x,O){var w=Ha(x);if(typeof w!="function")throw Error(W(150));if(x=w.call(x),x==null)throw Error(W(151));for(var _=w=null,E=g,$=g=0,A=null,C=x.next();E!==null&&!C.done;$++,C=x.next()){E.index>$?(A=E,E=null):A=E.sibling;var T=d(h,E,C.value,O);if(T===null){E===null&&(E=A);break}e&&E&&T.alternate===null&&t(h,E),g=o(T,g,$),_===null?w=T:_.sibling=T,_=T,E=A}if(C.done)return n(h,E),Te&&gi(h,$),w;if(E===null){for(;!C.done;$++,C=x.next())C=f(h,C.value,O),C!==null&&(g=o(C,g,$),_===null?w=C:_.sibling=C,_=C);return Te&&gi(h,$),w}for(E=r(h,E);!C.done;$++,C=x.next())C=p(E,h,$,C.value,O),C!==null&&(e&&C.alternate!==null&&E.delete(C.key===null?$:C.key),g=o(C,g,$),_===null?w=C:_.sibling=C,_=C);return e&&E.forEach(function(N){return t(h,N)}),Te&&gi(h,$),w}function y(h,g,x,O){if(typeof x=="object"&&x!==null&&x.type===ho&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case vu:e:{for(var w=x.key,_=g;_!==null;){if(_.key===w){if(w=x.type,w===ho){if(_.tag===7){n(h,_.sibling),g=i(_,x.props.children),g.return=h,h=g;break e}}else if(_.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Nr&&pb(w)===_.type){n(h,_.sibling),g=i(_,x.props),g.ref=Ga(h,_,x),g.return=h,h=g;break e}n(h,_);break}else t(h,_);_=_.sibling}x.type===ho?(g=Mi(x.props.children,h.mode,O,x.key),g.return=h,h=g):(O=cc(x.type,x.key,x.props,null,h.mode,O),O.ref=Ga(h,g,x),O.return=h,h=O)}return a(h);case po:e:{for(_=x.key;g!==null;){if(g.key===_)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){n(h,g.sibling),g=i(g,x.children||[]),g.return=h,h=g;break e}else{n(h,g);break}else t(h,g);g=g.sibling}g=th(x,h.mode,O),g.return=h,h=g}return a(h);case Nr:return _=x._init,y(h,g,_(x._payload),O)}if(dl(x))return m(h,g,x,O);if(Ha(x))return v(h,g,x,O);Pu(h,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,g!==null&&g.tag===6?(n(h,g.sibling),g=i(g,x),g.return=h,h=g):(n(h,g),g=eh(x,h.mode,O),g.return=h,h=g),a(h)):n(h,g)}return y}var Uo=t$(!0),n$=t$(!1),Mc=ni(null),Ic=null,So=null,ay=null;function ly(){ay=So=Ic=null}function sy(e){var t=Mc.current;Pe(Mc),e._currentValue=t}function $m(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 No(e,t){Ic=e,ay=So=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(At=!0),e.firstContext=null)}function sn(e){var t=e._currentValue;if(ay!==e)if(e={context:e,memoizedValue:t,next:null},So===null){if(Ic===null)throw Error(W(308));So=e,Ic.dependencies={lanes:0,firstContext:e}}else So=So.next=e;return t}var Ei=null;function uy(e){Ei===null?Ei=[e]:Ei.push(e)}function r$(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,uy(t)):(n.next=i.next,i.next=n),t.interleaved=n,br(e,r)}function br(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 Mr=!1;function cy(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function i$(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 Vr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,le&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,br(e,n)}return i=r.interleaved,i===null?(t.next=t,uy(r)):(t.next=i.next,i.next=t),r.interleaved=t,br(e,n)}function ic(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,Xg(e,n)}}function hb(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 Rc(e,t,n,r){var i=e.updateQueue;Mr=!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 m=e,v=l;switch(d=t,p=n,v.tag){case 1:if(m=v.payload,typeof m=="function"){f=m.call(p,f,d);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=v.payload,d=typeof m=="function"?m.call(p,f,d):m,d==null)break e;f=Ie({},f,d);break e;case 2:Mr=!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);zi|=a,e.lanes=a,e.memoizedState=f}}function mb(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 Us={},Fn=ni(Us),ql=ni(Us),Gl=ni(Us);function $i(e){if(e===Us)throw Error(W(174));return e}function fy(e,t){switch(we(Gl,t),we(ql,e),we(Fn,Us),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:am(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=am(t,e)}Pe(Fn),we(Fn,t)}function Ho(){Pe(Fn),Pe(ql),Pe(Gl)}function o$(e){$i(Gl.current);var t=$i(Fn.current),n=am(t,e.type);t!==n&&(we(ql,e),we(Fn,n))}function dy(e){ql.current===e&&(Pe(Fn),Pe(ql))}var ke=ni(0);function Lc(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 Gp=[];function py(){for(var e=0;e<Gp.length;e++)Gp[e]._workInProgressVersionPrimary=null;Gp.length=0}var oc=Ar.ReactCurrentDispatcher,Xp=Ar.ReactCurrentBatchConfig,Bi=0,Ne=null,qe=null,Je=null,Dc=!1,El=!1,Xl=0,EN=0;function ft(){throw Error(W(321))}function hy(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 my(e,t,n,r,i,o){if(Bi=o,Ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oc.current=e===null||e.memoizedState===null?TN:jN,e=n(r,i),El){o=0;do{if(El=!1,Xl=0,25<=o)throw Error(W(301));o+=1,Je=qe=null,t.updateQueue=null,oc.current=CN,e=n(r,i)}while(El)}if(oc.current=Fc,t=qe!==null&&qe.next!==null,Bi=0,Je=qe=Ne=null,Dc=!1,t)throw Error(W(300));return e}function vy(){var e=Xl!==0;return Xl=0,e}function In(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?Ne.memoizedState=Je=e:Je=Je.next=e,Je}function un(){if(qe===null){var e=Ne.alternate;e=e!==null?e.memoizedState:null}else e=qe.next;var t=Je===null?Ne.memoizedState:Je.next;if(t!==null)Je=t,qe=e;else{if(e===null)throw Error(W(310));qe=e,e={memoizedState:qe.memoizedState,baseState:qe.baseState,baseQueue:qe.baseQueue,queue:qe.queue,next:null},Je===null?Ne.memoizedState=Je=e:Je=Je.next=e}return Je}function Yl(e,t){return typeof t=="function"?t(e):t}function Yp(e){var t=un(),n=t.queue;if(n===null)throw Error(W(311));n.lastRenderedReducer=e;var r=qe,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((Bi&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,Ne.lanes|=c,zi|=c}u=u.next}while(u!==null&&u!==o);s===null?a=r:s.next=l,$n(r,t.memoizedState)||(At=!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,Ne.lanes|=o,zi|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Qp(e){var t=un(),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);$n(o,t.memoizedState)||(At=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function a$(){}function l$(e,t){var n=Ne,r=un(),i=t(),o=!$n(r.memoizedState,i);if(o&&(r.memoizedState=i,At=!0),r=r.queue,gy(c$.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Je!==null&&Je.memoizedState.tag&1){if(n.flags|=2048,Ql(9,u$.bind(null,n,r,i,t),void 0,null),tt===null)throw Error(W(349));Bi&30||s$(n,t,i)}return i}function s$(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ne.updateQueue,t===null?(t={lastEffect:null,stores:null},Ne.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function u$(e,t,n,r){t.value=n,t.getSnapshot=r,f$(t)&&d$(e)}function c$(e,t,n){return n(function(){f$(t)&&d$(e)})}function f$(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$n(e,n)}catch{return!0}}function d$(e){var t=br(e,1);t!==null&&_n(t,e,1,-1)}function vb(e){var t=In();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Yl,lastRenderedState:e},t.queue=e,e=e.dispatch=AN.bind(null,Ne,e),[t.memoizedState,e]}function Ql(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ne.updateQueue,t===null?(t={lastEffect:null,stores:null},Ne.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 p$(){return un().memoizedState}function ac(e,t,n,r){var i=In();Ne.flags|=e,i.memoizedState=Ql(1|t,n,void 0,r===void 0?null:r)}function ud(e,t,n,r){var i=un();r=r===void 0?null:r;var o=void 0;if(qe!==null){var a=qe.memoizedState;if(o=a.destroy,r!==null&&hy(r,a.deps)){i.memoizedState=Ql(t,n,o,r);return}}Ne.flags|=e,i.memoizedState=Ql(1|t,n,o,r)}function gb(e,t){return ac(8390656,8,e,t)}function gy(e,t){return ud(2048,8,e,t)}function h$(e,t){return ud(4,2,e,t)}function m$(e,t){return ud(4,4,e,t)}function v$(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 g$(e,t,n){return n=n!=null?n.concat([e]):null,ud(4,4,v$.bind(null,t,e),n)}function yy(){}function y$(e,t){var n=un();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&hy(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function x$(e,t){var n=un();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&hy(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function b$(e,t,n){return Bi&21?($n(n,t)||(n=EE(),Ne.lanes|=n,zi|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,At=!0),e.memoizedState=n)}function $N(e,t){var n=pe;pe=n!==0&&4>n?n:4,e(!0);var r=Xp.transition;Xp.transition={};try{e(!1),t()}finally{pe=n,Xp.transition=r}}function w$(){return un().memoizedState}function PN(e,t,n){var r=qr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},S$(e))_$(t,n);else if(n=r$(e,t,n,r),n!==null){var i=St();_n(n,e,r,i),O$(n,t,r)}}function AN(e,t,n){var r=qr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(S$(e))_$(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,$n(l,a)){var s=t.interleaved;s===null?(i.next=i,uy(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=r$(e,t,i,r),n!==null&&(i=St(),_n(n,e,r,i),O$(n,t,r))}}function S$(e){var t=e.alternate;return e===Ne||t!==null&&t===Ne}function _$(e,t){El=Dc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function O$(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xg(e,n)}}var Fc={readContext:sn,useCallback:ft,useContext:ft,useEffect:ft,useImperativeHandle:ft,useInsertionEffect:ft,useLayoutEffect:ft,useMemo:ft,useReducer:ft,useRef:ft,useState:ft,useDebugValue:ft,useDeferredValue:ft,useTransition:ft,useMutableSource:ft,useSyncExternalStore:ft,useId:ft,unstable_isNewReconciler:!1},TN={readContext:sn,useCallback:function(e,t){return In().memoizedState=[e,t===void 0?null:t],e},useContext:sn,useEffect:gb,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,ac(4194308,4,v$.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=In();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=In();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=PN.bind(null,Ne,e),[r.memoizedState,e]},useRef:function(e){var t=In();return e={current:e},t.memoizedState=e},useState:vb,useDebugValue:yy,useDeferredValue:function(e){return In().memoizedState=e},useTransition:function(){var e=vb(!1),t=e[0];return e=$N.bind(null,e[1]),In().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ne,i=In();if(Te){if(n===void 0)throw Error(W(407));n=n()}else{if(n=t(),tt===null)throw Error(W(349));Bi&30||s$(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,gb(c$.bind(null,r,o,e),[e]),r.flags|=2048,Ql(9,u$.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=In(),t=tt.identifierPrefix;if(Te){var n=ar,r=or;n=(r&~(1<<32-Sn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Xl++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=EN++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},jN={readContext:sn,useCallback:y$,useContext:sn,useEffect:gy,useImperativeHandle:g$,useInsertionEffect:h$,useLayoutEffect:m$,useMemo:x$,useReducer:Yp,useRef:p$,useState:function(){return Yp(Yl)},useDebugValue:yy,useDeferredValue:function(e){var t=un();return b$(t,qe.memoizedState,e)},useTransition:function(){var e=Yp(Yl)[0],t=un().memoizedState;return[e,t]},useMutableSource:a$,useSyncExternalStore:l$,useId:w$,unstable_isNewReconciler:!1},CN={readContext:sn,useCallback:y$,useContext:sn,useEffect:gy,useImperativeHandle:g$,useInsertionEffect:h$,useLayoutEffect:m$,useMemo:x$,useReducer:Qp,useRef:p$,useState:function(){return Qp(Yl)},useDebugValue:yy,useDeferredValue:function(e){var t=un();return qe===null?t.memoizedState=e:b$(t,qe.memoizedState,e)},useTransition:function(){var e=Qp(Yl)[0],t=un().memoizedState;return[e,t]},useMutableSource:a$,useSyncExternalStore:l$,useId:w$,unstable_isNewReconciler:!1};function gn(e,t){if(e&&e.defaultProps){t=Ie({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Pm(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ie({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var cd={isMounted:function(e){return(e=e._reactInternals)?Zi(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=St(),i=qr(e),o=ur(r,i);o.payload=t,n!=null&&(o.callback=n),t=Vr(e,o,i),t!==null&&(_n(t,e,i,r),ic(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=St(),i=qr(e),o=ur(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Vr(e,o,i),t!==null&&(_n(t,e,i,r),ic(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=St(),r=qr(e),i=ur(n,r);i.tag=2,t!=null&&(i.callback=t),t=Vr(e,i,r),t!==null&&(_n(t,e,r,n),ic(t,e,r))}};function yb(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?!Hl(n,r)||!Hl(i,o):!0}function E$(e,t,n){var r=!1,i=Jr,o=t.contextType;return typeof o=="object"&&o!==null?o=sn(o):(i=kt(t)?Di:vt.current,r=t.contextTypes,o=(r=r!=null)?Bo(e,i):Jr),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=cd,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function xb(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&&cd.enqueueReplaceState(t,t.state,null)}function Am(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},cy(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=sn(o):(o=kt(t)?Di:vt.current,i.context=Bo(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Pm(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&&cd.enqueueReplaceState(i,i.state,null),Rc(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Wo(e,t){try{var n="",r=t;do n+=ok(r),r=r.return;while(r);var i=n}catch(o){i=`
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{Cp=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?fl(e):""}function rk(e){switch(e.tag){case 5:return fl(e.type);case 16:return fl("Lazy");case 13:return fl("Suspense");case 19:return fl("SuspenseList");case 0:case 2:case 15:return e=kp(e.type,!1),e;case 11:return e=kp(e.type.render,!1),e;case 1:return e=kp(e.type,!0),e;default:return""}}function Jh(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 ho:return"Fragment";case po:return"Portal";case Yh:return"Profiler";case Ug:return"StrictMode";case Qh:return"Suspense";case Zh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case nO:return(e.displayName||"Context")+".Consumer";case tO:return(e._context.displayName||"Context")+".Provider";case Hg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Wg:return t=e.displayName||null,t!==null?t:Jh(e.type)||"Memo";case Nr:t=e._payload,e=e._init;try{return Jh(e(t))}catch{}}return null}function ik(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 Jh(t);case 8:return t===Ug?"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 Zr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function iO(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ok(e){var t=iO(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 gu(e){e._valueTracker||(e._valueTracker=ok(e))}function oO(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=iO(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function bc(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 em(e,t){var n=t.checked;return Ie({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Mx(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Zr(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 aO(e,t){t=t.checked,t!=null&&zg(e,"checked",t,!1)}function tm(e,t){aO(e,t);var n=Zr(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")?nm(e,t.type,n):t.hasOwnProperty("defaultValue")&&nm(e,t.type,Zr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ix(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 nm(e,t,n){(t!=="number"||bc(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var dl=Array.isArray;function To(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=""+Zr(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 rm(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(W(91));return Ie({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Rx(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(dl(n)){if(1<n.length)throw Error(W(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Zr(n)}}function lO(e,t){var n=Zr(t.value),r=Zr(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 Lx(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function sO(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 im(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?sO(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var yu,uO=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(yu=yu||document.createElement("div"),yu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=yu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ll(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},ak=["Webkit","ms","Moz","O"];Object.keys(bl).forEach(function(e){ak.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),bl[t]=bl[e]})});function cO(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 fO(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=cO(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var lk=Ie({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 om(e,t){if(t){if(lk[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 am(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 lm=null;function Vg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sm=null,jo=null,Co=null;function Dx(e){if(e=zs(e)){if(typeof sm!="function")throw Error(W(280));var t=e.stateNode;t&&(t=ad(t),sm(e.stateNode,e.type,t))}}function dO(e){jo?Co?Co.push(e):Co=[e]:jo=e}function pO(){if(jo){var e=jo,t=Co;if(Co=jo=null,Dx(e),t)for(e=0;e<t.length;e++)Dx(t[e])}}function hO(e,t){return e(t)}function mO(){}var Np=!1;function vO(e,t,n){if(Np)return e(t,n);Np=!0;try{return hO(e,t,n)}finally{Np=!1,(jo!==null||Co!==null)&&(mO(),pO())}}function Dl(e,t){var n=e.stateNode;if(n===null)return null;var r=ad(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 um=!1;if(yr)try{var Wa={};Object.defineProperty(Wa,"passive",{get:function(){um=!0}}),window.addEventListener("test",Wa,Wa),window.removeEventListener("test",Wa,Wa)}catch{um=!1}function sk(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,wc=null,_c=!1,cm=null,uk={onError:function(e){wl=!0,wc=e}};function ck(e,t,n,r,i,o,a,l,s){wl=!1,wc=null,sk.apply(uk,arguments)}function fk(e,t,n,r,i,o,a,l,s){if(ck.apply(this,arguments),wl){if(wl){var u=wc;wl=!1,wc=null}else throw Error(W(198));_c||(_c=!0,cm=u)}}function Qi(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 gO(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 Fx(e){if(Qi(e)!==e)throw Error(W(188))}function dk(e){var t=e.alternate;if(!t){if(t=Qi(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 Fx(i),e;if(o===r)return Fx(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 yO(e){return e=dk(e),e!==null?xO(e):null}function xO(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=xO(e);if(t!==null)return t;e=e.sibling}return null}var bO=zt.unstable_scheduleCallback,Bx=zt.unstable_cancelCallback,pk=zt.unstable_shouldYield,hk=zt.unstable_requestPaint,Be=zt.unstable_now,mk=zt.unstable_getCurrentPriorityLevel,Kg=zt.unstable_ImmediatePriority,wO=zt.unstable_UserBlockingPriority,Sc=zt.unstable_NormalPriority,vk=zt.unstable_LowPriority,_O=zt.unstable_IdlePriority,nd=null,Dn=null;function gk(e){if(Dn&&typeof Dn.onCommitFiberRoot=="function")try{Dn.onCommitFiberRoot(nd,e,void 0,(e.current.flags&128)===128)}catch{}}var _n=Math.clz32?Math.clz32:bk,yk=Math.log,xk=Math.LN2;function bk(e){return e>>>=0,e===0?32:31-(yk(e)/xk|0)|0}var xu=64,bu=4194304;function pl(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 Ec(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=pl(l):(o&=a,o!==0&&(r=pl(o)))}else a=n&~i,a!==0?r=pl(a):o!==0&&(r=pl(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-_n(t),i=1<<n,r|=e[n],t&=~i;return r}function wk(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 _k(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-_n(o),l=1<<a,s=i[a];s===-1?(!(l&n)||l&r)&&(i[a]=wk(l,t)):s<=t&&(e.expiredLanes|=l),o&=~l}}function fm(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function SO(){var e=xu;return xu<<=1,!(xu&4194240)&&(xu=64),e}function Mp(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Fs(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 Sk(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),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function qg(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 EO(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var OO,Gg,$O,PO,AO,dm=!1,wu=[],zr=null,Ur=null,Hr=null,Fl=new Map,Bl=new Map,Rr=[],Ek="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 zx(e,t){switch(e){case"focusin":case"focusout":zr=null;break;case"dragenter":case"dragleave":Ur=null;break;case"mouseover":case"mouseout":Hr=null;break;case"pointerover":case"pointerout":Fl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bl.delete(t.pointerId)}}function Va(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=zs(t),t!==null&&Gg(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ok(e,t,n,r,i){switch(t){case"focusin":return zr=Va(zr,e,t,n,r,i),!0;case"dragenter":return Ur=Va(Ur,e,t,n,r,i),!0;case"mouseover":return Hr=Va(Hr,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Fl.set(o,Va(Fl.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Bl.set(o,Va(Bl.get(o)||null,e,t,n,r,i)),!0}return!1}function TO(e){var t=Si(e.target);if(t!==null){var n=Qi(t);if(n!==null){if(t=n.tag,t===13){if(t=gO(n),t!==null){e.blockedOn=t,AO(e.priority,function(){$O(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=pm(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);lm=r,n.target.dispatchEvent(r),lm=null}else return t=zs(n),t!==null&&Gg(t),e.blockedOn=n,!1;t.shift()}return!0}function Ux(e,t,n){ec(e)&&n.delete(t)}function $k(){dm=!1,zr!==null&&ec(zr)&&(zr=null),Ur!==null&&ec(Ur)&&(Ur=null),Hr!==null&&ec(Hr)&&(Hr=null),Fl.forEach(Ux),Bl.forEach(Ux)}function Ka(e,t){e.blockedOn===t&&(e.blockedOn=null,dm||(dm=!0,zt.unstable_scheduleCallback(zt.unstable_NormalPriority,$k)))}function zl(e){function t(i){return Ka(i,e)}if(0<wu.length){Ka(wu[0],e);for(var n=1;n<wu.length;n++){var r=wu[n];r.blockedOn===e&&(r.blockedOn=null)}}for(zr!==null&&Ka(zr,e),Ur!==null&&Ka(Ur,e),Hr!==null&&Ka(Hr,e),Fl.forEach(t),Bl.forEach(t),n=0;n<Rr.length;n++)r=Rr[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Rr.length&&(n=Rr[0],n.blockedOn===null);)TO(n),n.blockedOn===null&&Rr.shift()}var ko=Ar.ReactCurrentBatchConfig,Oc=!0;function Pk(e,t,n,r){var i=pe,o=ko.transition;ko.transition=null;try{pe=1,Xg(e,t,n,r)}finally{pe=i,ko.transition=o}}function Ak(e,t,n,r){var i=pe,o=ko.transition;ko.transition=null;try{pe=4,Xg(e,t,n,r)}finally{pe=i,ko.transition=o}}function Xg(e,t,n,r){if(Oc){var i=pm(e,t,n,r);if(i===null)Wp(e,t,r,$c,n),zx(e,r);else if(Ok(i,e,t,n,r))r.stopPropagation();else if(zx(e,r),t&4&&-1<Ek.indexOf(e)){for(;i!==null;){var o=zs(i);if(o!==null&&OO(o),o=pm(e,t,n,r),o===null&&Wp(e,t,r,$c,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Wp(e,t,r,null,n)}}var $c=null;function pm(e,t,n,r){if($c=null,e=Vg(r),e=Si(e),e!==null)if(t=Qi(e),t===null)e=null;else if(n=t.tag,n===13){if(e=gO(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 jO(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(mk()){case Kg:return 1;case wO:return 4;case Sc:case vk:return 16;case _O:return 536870912;default:return 16}default:return 16}}var Dr=null,Yg=null,tc=null;function CO(){if(tc)return tc;var e,t=Yg,n=t.length,r,i="value"in Dr?Dr.value:Dr.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 _u(){return!0}function Hx(){return!1}function Vt(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)?_u:Hx,this.isPropagationStopped=Hx,this}return Ie(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=_u)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=_u)},persist:function(){},isPersistent:_u}),t}var ba={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qg=Vt(ba),Bs=Ie({},ba,{view:0,detail:0}),Tk=Vt(Bs),Ip,Rp,qa,rd=Ie({},Bs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zg,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"?(Ip=e.screenX-qa.screenX,Rp=e.screenY-qa.screenY):Rp=Ip=0,qa=e),Ip)},movementY:function(e){return"movementY"in e?e.movementY:Rp}}),Wx=Vt(rd),jk=Ie({},rd,{dataTransfer:0}),Ck=Vt(jk),kk=Ie({},Bs,{relatedTarget:0}),Lp=Vt(kk),Nk=Ie({},ba,{animationName:0,elapsedTime:0,pseudoElement:0}),Mk=Vt(Nk),Ik=Ie({},ba,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Rk=Vt(Ik),Lk=Ie({},ba,{data:0}),Vx=Vt(Lk),Dk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Fk={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 zk(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Bk[e])?!!t[e]:!1}function Zg(){return zk}var Uk=Ie({},Bs,{key:function(e){if(e.key){var t=Dk[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"?Fk[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zg,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}}),Hk=Vt(Uk),Wk=Ie({},rd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Kx=Vt(Wk),Vk=Ie({},Bs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zg}),Kk=Vt(Vk),qk=Ie({},ba,{propertyName:0,elapsedTime:0,pseudoElement:0}),Gk=Vt(qk),Xk=Ie({},rd,{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}),Yk=Vt(Xk),Qk=[9,13,27,32],Jg=yr&&"CompositionEvent"in window,_l=null;yr&&"documentMode"in document&&(_l=document.documentMode);var Zk=yr&&"TextEvent"in window&&!_l,kO=yr&&(!Jg||_l&&8<_l&&11>=_l),qx=" ",Gx=!1;function NO(e,t){switch(e){case"keyup":return Qk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function MO(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var mo=!1;function Jk(e,t){switch(e){case"compositionend":return MO(t);case"keypress":return t.which!==32?null:(Gx=!0,qx);case"textInput":return e=t.data,e===qx&&Gx?null:e;default:return null}}function eN(e,t){if(mo)return e==="compositionend"||!Jg&&NO(e,t)?(e=CO(),tc=Yg=Dr=null,mo=!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 kO&&t.locale!=="ko"?null:t.data;default:return null}}var tN={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 Xx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!tN[e.type]:t==="textarea"}function IO(e,t,n,r){dO(r),t=Pc(t,"onChange"),0<t.length&&(n=new Qg("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Sl=null,Ul=null;function nN(e){KO(e,0)}function id(e){var t=yo(e);if(oO(t))return e}function rN(e,t){if(e==="change")return t}var RO=!1;if(yr){var Dp;if(yr){var Fp="oninput"in document;if(!Fp){var Yx=document.createElement("div");Yx.setAttribute("oninput","return;"),Fp=typeof Yx.oninput=="function"}Dp=Fp}else Dp=!1;RO=Dp&&(!document.documentMode||9<document.documentMode)}function Qx(){Sl&&(Sl.detachEvent("onpropertychange",LO),Ul=Sl=null)}function LO(e){if(e.propertyName==="value"&&id(Ul)){var t=[];IO(t,Ul,e,Vg(e)),vO(nN,t)}}function iN(e,t,n){e==="focusin"?(Qx(),Sl=t,Ul=n,Sl.attachEvent("onpropertychange",LO)):e==="focusout"&&Qx()}function oN(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return id(Ul)}function aN(e,t){if(e==="click")return id(t)}function lN(e,t){if(e==="input"||e==="change")return id(t)}function sN(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var $n=typeof Object.is=="function"?Object.is:sN;function Hl(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(!Xh.call(t,i)||!$n(e[i],t[i]))return!1}return!0}function Zx(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Jx(e,t){var n=Zx(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=Zx(n)}}function DO(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?DO(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function FO(){for(var e=window,t=bc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=bc(e.document)}return t}function ey(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 uN(e){var t=FO(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&DO(n.ownerDocument.documentElement,n)){if(r!==null&&ey(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=Jx(n,o);var a=Jx(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 cN=yr&&"documentMode"in document&&11>=document.documentMode,vo=null,hm=null,El=null,mm=!1;function eb(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;mm||vo==null||vo!==bc(r)||(r=vo,"selectionStart"in r&&ey(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&&Hl(El,r)||(El=r,r=Pc(hm,"onSelect"),0<r.length&&(t=new Qg("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vo)))}function Su(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var go={animationend:Su("Animation","AnimationEnd"),animationiteration:Su("Animation","AnimationIteration"),animationstart:Su("Animation","AnimationStart"),transitionend:Su("Transition","TransitionEnd")},Bp={},BO={};yr&&(BO=document.createElement("div").style,"AnimationEvent"in window||(delete go.animationend.animation,delete go.animationiteration.animation,delete go.animationstart.animation),"TransitionEvent"in window||delete go.transitionend.transition);function od(e){if(Bp[e])return Bp[e];if(!go[e])return e;var t=go[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in BO)return Bp[e]=t[n];return e}var zO=od("animationend"),UO=od("animationiteration"),HO=od("animationstart"),WO=od("transitionend"),VO=new Map,tb="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 ti(e,t){VO.set(e,t),Yi(t,[e])}for(var zp=0;zp<tb.length;zp++){var Up=tb[zp],fN=Up.toLowerCase(),dN=Up[0].toUpperCase()+Up.slice(1);ti(fN,"on"+dN)}ti(zO,"onAnimationEnd");ti(UO,"onAnimationIteration");ti(HO,"onAnimationStart");ti("dblclick","onDoubleClick");ti("focusin","onFocus");ti("focusout","onBlur");ti(WO,"onTransitionEnd");Fo("onMouseEnter",["mouseout","mouseover"]);Fo("onMouseLeave",["mouseout","mouseover"]);Fo("onPointerEnter",["pointerout","pointerover"]);Fo("onPointerLeave",["pointerout","pointerover"]);Yi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Yi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Yi("onBeforeInput",["compositionend","keypress","textInput","paste"]);Yi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Yi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Yi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hl="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(" "),pN=new Set("cancel close invalid load scroll toggle".split(" ").concat(hl));function nb(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,fk(r,t,void 0,e),e.currentTarget=null}function KO(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;nb(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;nb(i,l,u),o=s}}}if(_c)throw e=cm,_c=!1,cm=null,e}function Se(e,t){var n=t[bm];n===void 0&&(n=t[bm]=new Set);var r=e+"__bubble";n.has(r)||(qO(t,e,2,!1),n.add(r))}function Hp(e,t,n){var r=0;t&&(r|=4),qO(n,e,r,t)}var Eu="_reactListening"+Math.random().toString(36).slice(2);function Wl(e){if(!e[Eu]){e[Eu]=!0,eO.forEach(function(n){n!=="selectionchange"&&(pN.has(n)||Hp(n,!1,e),Hp(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Eu]||(t[Eu]=!0,Hp("selectionchange",!1,t))}}function qO(e,t,n,r){switch(jO(t)){case 1:var i=Pk;break;case 4:i=Ak;break;default:i=Xg}n=i.bind(null,t,n,e),i=void 0,!um||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 Wp(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=Si(l),a===null)return;if(s=a.tag,s===5||s===6){r=o=a;continue e}l=l.parentNode}}r=r.return}vO(function(){var u=o,c=Vg(n),f=[];e:{var d=VO.get(e);if(d!==void 0){var p=Qg,m=e;switch(e){case"keypress":if(nc(n)===0)break e;case"keydown":case"keyup":p=Hk;break;case"focusin":m="focus",p=Lp;break;case"focusout":m="blur",p=Lp;break;case"beforeblur":case"afterblur":p=Lp;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=Wx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Ck;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=Kk;break;case zO:case UO:case HO:p=Mk;break;case WO:p=Gk;break;case"scroll":p=Tk;break;case"wheel":p=Yk;break;case"copy":case"cut":case"paste":p=Rk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Kx}var v=(t&4)!==0,y=!v&&e==="scroll",h=v?d!==null?d+"Capture":null:d;v=[];for(var g=u,x;g!==null;){x=g;var E=x.stateNode;if(x.tag===5&&E!==null&&(x=E,h!==null&&(E=Dl(g,h),E!=null&&v.push(Vl(g,E,x)))),y)break;g=g.return}0<v.length&&(d=new p(d,m,null,n,c),f.push({event:d,listeners:v}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",d&&n!==lm&&(m=n.relatedTarget||n.fromElement)&&(Si(m)||m[xr]))break e;if((p||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,p?(m=n.relatedTarget||n.toElement,p=u,m=m?Si(m):null,m!==null&&(y=Qi(m),m!==y||m.tag!==5&&m.tag!==6)&&(m=null)):(p=null,m=u),p!==m)){if(v=Wx,E="onMouseLeave",h="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(v=Kx,E="onPointerLeave",h="onPointerEnter",g="pointer"),y=p==null?d:yo(p),x=m==null?d:yo(m),d=new v(E,g+"leave",p,n,c),d.target=y,d.relatedTarget=x,E=null,Si(c)===u&&(v=new v(h,g+"enter",m,n,c),v.target=x,v.relatedTarget=y,E=v),y=E,p&&m)t:{for(v=p,h=m,g=0,x=v;x;x=lo(x))g++;for(x=0,E=h;E;E=lo(E))x++;for(;0<g-x;)v=lo(v),g--;for(;0<x-g;)h=lo(h),x--;for(;g--;){if(v===h||h!==null&&v===h.alternate)break t;v=lo(v),h=lo(h)}v=null}else v=null;p!==null&&rb(f,d,p,v,!1),m!==null&&y!==null&&rb(f,y,m,v,!0)}}e:{if(d=u?yo(u):window,p=d.nodeName&&d.nodeName.toLowerCase(),p==="select"||p==="input"&&d.type==="file")var w=rN;else if(Xx(d))if(RO)w=lN;else{w=oN;var S=iN}else(p=d.nodeName)&&p.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(w=aN);if(w&&(w=w(e,u))){IO(f,w,n,c);break e}S&&S(e,d,u),e==="focusout"&&(S=d._wrapperState)&&S.controlled&&d.type==="number"&&nm(d,"number",d.value)}switch(S=u?yo(u):window,e){case"focusin":(Xx(S)||S.contentEditable==="true")&&(vo=S,hm=u,El=null);break;case"focusout":El=hm=vo=null;break;case"mousedown":mm=!0;break;case"contextmenu":case"mouseup":case"dragend":mm=!1,eb(f,n,c);break;case"selectionchange":if(cN)break;case"keydown":case"keyup":eb(f,n,c)}var O;if(Jg)e:{switch(e){case"compositionstart":var $="onCompositionStart";break e;case"compositionend":$="onCompositionEnd";break e;case"compositionupdate":$="onCompositionUpdate";break e}$=void 0}else mo?NO(e,n)&&($="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&($="onCompositionStart");$&&(kO&&n.locale!=="ko"&&(mo||$!=="onCompositionStart"?$==="onCompositionEnd"&&mo&&(O=CO()):(Dr=c,Yg="value"in Dr?Dr.value:Dr.textContent,mo=!0)),S=Pc(u,$),0<S.length&&($=new Vx($,e,null,n,c),f.push({event:$,listeners:S}),O?$.data=O:(O=MO(n),O!==null&&($.data=O)))),(O=Zk?Jk(e,n):eN(e,n))&&(u=Pc(u,"onBeforeInput"),0<u.length&&(c=new Vx("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=O))}KO(f,t)})}function Vl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Pc(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Dl(e,n),o!=null&&r.unshift(Vl(e,o,i)),o=Dl(e,t),o!=null&&r.push(Vl(e,o,i))),e=e.return}return r}function lo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function rb(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=Dl(n,o),s!=null&&a.unshift(Vl(n,s,l))):i||(s=Dl(n,o),s!=null&&a.push(Vl(n,s,l)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var hN=/\r\n?/g,mN=/\u0000|\uFFFD/g;function ib(e){return(typeof e=="string"?e:""+e).replace(hN,`
55
+ `).replace(mN,"")}function Ou(e,t,n){if(t=ib(t),ib(e)!==t&&n)throw Error(W(425))}function Ac(){}var vm=null,gm=null;function ym(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 xm=typeof setTimeout=="function"?setTimeout:void 0,vN=typeof clearTimeout=="function"?clearTimeout:void 0,ob=typeof Promise=="function"?Promise:void 0,gN=typeof queueMicrotask=="function"?queueMicrotask:typeof ob<"u"?function(e){return ob.resolve(null).then(e).catch(yN)}:xm;function yN(e){setTimeout(function(){throw e})}function Vp(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),zl(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);zl(t)}function Wr(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 ab(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 wa=Math.random().toString(36).slice(2),Rn="__reactFiber$"+wa,Kl="__reactProps$"+wa,xr="__reactContainer$"+wa,bm="__reactEvents$"+wa,xN="__reactListeners$"+wa,bN="__reactHandles$"+wa;function Si(e){var t=e[Rn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[xr]||n[Rn]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ab(e);e!==null;){if(n=e[Rn])return n;e=ab(e)}return t}e=n,n=e.parentNode}return null}function zs(e){return e=e[Rn]||e[xr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function yo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(W(33))}function ad(e){return e[Kl]||null}var wm=[],xo=-1;function ni(e){return{current:e}}function Pe(e){0>xo||(e.current=wm[xo],wm[xo]=null,xo--)}function we(e,t){xo++,wm[xo]=e.current,e.current=t}var Jr={},vt=ni(Jr),Ct=ni(!1),Li=Jr;function Bo(e,t){var n=e.type.contextTypes;if(!n)return Jr;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 kt(e){return e=e.childContextTypes,e!=null}function Tc(){Pe(Ct),Pe(vt)}function lb(e,t,n){if(vt.current!==Jr)throw Error(W(168));we(vt,t),we(Ct,n)}function GO(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,ik(e)||"Unknown",i));return Ie({},n,r)}function jc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Jr,Li=vt.current,we(vt,e),we(Ct,Ct.current),!0}function sb(e,t,n){var r=e.stateNode;if(!r)throw Error(W(169));n?(e=GO(e,t,Li),r.__reactInternalMemoizedMergedChildContext=e,Pe(Ct),Pe(vt),we(vt,e)):Pe(Ct),we(Ct,n)}var rr=null,ld=!1,Kp=!1;function XO(e){rr===null?rr=[e]:rr.push(e)}function wN(e){ld=!0,XO(e)}function ri(){if(!Kp&&rr!==null){Kp=!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,ld=!1}catch(i){throw rr!==null&&(rr=rr.slice(e+1)),bO(Kg,ri),i}finally{pe=t,Kp=!1}}return null}var bo=[],wo=0,Cc=null,kc=0,Zt=[],Jt=0,Di=null,or=1,ar="";function vi(e,t){bo[wo++]=kc,bo[wo++]=Cc,Cc=e,kc=t}function YO(e,t,n){Zt[Jt++]=or,Zt[Jt++]=ar,Zt[Jt++]=Di,Di=e;var r=or;e=ar;var i=32-_n(r)-1;r&=~(1<<i),n+=1;var o=32-_n(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,or=1<<32-_n(t)+i|n<<i|r,ar=o+e}else or=1<<o|n<<i|r,ar=e}function ty(e){e.return!==null&&(vi(e,1),YO(e,1,0))}function ny(e){for(;e===Cc;)Cc=bo[--wo],bo[wo]=null,kc=bo[--wo],bo[wo]=null;for(;e===Di;)Di=Zt[--Jt],Zt[Jt]=null,ar=Zt[--Jt],Zt[Jt]=null,or=Zt[--Jt],Zt[Jt]=null}var Ft=null,Dt=null,Te=!1,xn=null;function QO(e,t){var n=nn(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 ub(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,Ft=e,Dt=Wr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Ft=e,Dt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Di!==null?{id:or,overflow:ar}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=nn(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ft=e,Dt=null,!0):!1;default:return!1}}function _m(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Sm(e){if(Te){var t=Dt;if(t){var n=t;if(!ub(e,t)){if(_m(e))throw Error(W(418));t=Wr(n.nextSibling);var r=Ft;t&&ub(e,t)?QO(r,n):(e.flags=e.flags&-4097|2,Te=!1,Ft=e)}}else{if(_m(e))throw Error(W(418));e.flags=e.flags&-4097|2,Te=!1,Ft=e}}}function cb(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ft=e}function $u(e){if(e!==Ft)return!1;if(!Te)return cb(e),Te=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ym(e.type,e.memoizedProps)),t&&(t=Dt)){if(_m(e))throw ZO(),Error(W(418));for(;t;)QO(e,t),t=Wr(t.nextSibling)}if(cb(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){Dt=Wr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Dt=null}}else Dt=Ft?Wr(e.stateNode.nextSibling):null;return!0}function ZO(){for(var e=Dt;e;)e=Wr(e.nextSibling)}function zo(){Dt=Ft=null,Te=!1}function ry(e){xn===null?xn=[e]:xn.push(e)}var _N=Ar.ReactCurrentBatchConfig;function Ga(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 Pu(e,t){throw e=Object.prototype.toString.call(t),Error(W(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function fb(e){var t=e._init;return t(e._payload)}function JO(e){function t(h,g){if(e){var x=h.deletions;x===null?(h.deletions=[g],h.flags|=16):x.push(g)}}function n(h,g){if(!e)return null;for(;g!==null;)t(h,g),g=g.sibling;return null}function r(h,g){for(h=new Map;g!==null;)g.key!==null?h.set(g.key,g):h.set(g.index,g),g=g.sibling;return h}function i(h,g){return h=Gr(h,g),h.index=0,h.sibling=null,h}function o(h,g,x){return h.index=x,e?(x=h.alternate,x!==null?(x=x.index,x<g?(h.flags|=2,g):x):(h.flags|=2,g)):(h.flags|=1048576,g)}function a(h){return e&&h.alternate===null&&(h.flags|=2),h}function l(h,g,x,E){return g===null||g.tag!==6?(g=Jp(x,h.mode,E),g.return=h,g):(g=i(g,x),g.return=h,g)}function s(h,g,x,E){var w=x.type;return w===ho?c(h,g,x.props.children,E,x.key):g!==null&&(g.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Nr&&fb(w)===g.type)?(E=i(g,x.props),E.ref=Ga(h,g,x),E.return=h,E):(E=uc(x.type,x.key,x.props,null,h.mode,E),E.ref=Ga(h,g,x),E.return=h,E)}function u(h,g,x,E){return g===null||g.tag!==4||g.stateNode.containerInfo!==x.containerInfo||g.stateNode.implementation!==x.implementation?(g=eh(x,h.mode,E),g.return=h,g):(g=i(g,x.children||[]),g.return=h,g)}function c(h,g,x,E,w){return g===null||g.tag!==7?(g=Ni(x,h.mode,E,w),g.return=h,g):(g=i(g,x),g.return=h,g)}function f(h,g,x){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Jp(""+g,h.mode,x),g.return=h,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case vu:return x=uc(g.type,g.key,g.props,null,h.mode,x),x.ref=Ga(h,null,g),x.return=h,x;case po:return g=eh(g,h.mode,x),g.return=h,g;case Nr:var E=g._init;return f(h,E(g._payload),x)}if(dl(g)||Ha(g))return g=Ni(g,h.mode,x,null),g.return=h,g;Pu(h,g)}return null}function d(h,g,x,E){var w=g!==null?g.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return w!==null?null:l(h,g,""+x,E);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case vu:return x.key===w?s(h,g,x,E):null;case po:return x.key===w?u(h,g,x,E):null;case Nr:return w=x._init,d(h,g,w(x._payload),E)}if(dl(x)||Ha(x))return w!==null?null:c(h,g,x,E,null);Pu(h,x)}return null}function p(h,g,x,E,w){if(typeof E=="string"&&E!==""||typeof E=="number")return h=h.get(x)||null,l(g,h,""+E,w);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case vu:return h=h.get(E.key===null?x:E.key)||null,s(g,h,E,w);case po:return h=h.get(E.key===null?x:E.key)||null,u(g,h,E,w);case Nr:var S=E._init;return p(h,g,x,S(E._payload),w)}if(dl(E)||Ha(E))return h=h.get(x)||null,c(g,h,E,w,null);Pu(g,E)}return null}function m(h,g,x,E){for(var w=null,S=null,O=g,$=g=0,A=null;O!==null&&$<x.length;$++){O.index>$?(A=O,O=null):A=O.sibling;var C=d(h,O,x[$],E);if(C===null){O===null&&(O=A);break}e&&O&&C.alternate===null&&t(h,O),g=o(C,g,$),S===null?w=C:S.sibling=C,S=C,O=A}if($===x.length)return n(h,O),Te&&vi(h,$),w;if(O===null){for(;$<x.length;$++)O=f(h,x[$],E),O!==null&&(g=o(O,g,$),S===null?w=O:S.sibling=O,S=O);return Te&&vi(h,$),w}for(O=r(h,O);$<x.length;$++)A=p(O,h,$,x[$],E),A!==null&&(e&&A.alternate!==null&&O.delete(A.key===null?$:A.key),g=o(A,g,$),S===null?w=A:S.sibling=A,S=A);return e&&O.forEach(function(T){return t(h,T)}),Te&&vi(h,$),w}function v(h,g,x,E){var w=Ha(x);if(typeof w!="function")throw Error(W(150));if(x=w.call(x),x==null)throw Error(W(151));for(var S=w=null,O=g,$=g=0,A=null,C=x.next();O!==null&&!C.done;$++,C=x.next()){O.index>$?(A=O,O=null):A=O.sibling;var T=d(h,O,C.value,E);if(T===null){O===null&&(O=A);break}e&&O&&T.alternate===null&&t(h,O),g=o(T,g,$),S===null?w=T:S.sibling=T,S=T,O=A}if(C.done)return n(h,O),Te&&vi(h,$),w;if(O===null){for(;!C.done;$++,C=x.next())C=f(h,C.value,E),C!==null&&(g=o(C,g,$),S===null?w=C:S.sibling=C,S=C);return Te&&vi(h,$),w}for(O=r(h,O);!C.done;$++,C=x.next())C=p(O,h,$,C.value,E),C!==null&&(e&&C.alternate!==null&&O.delete(C.key===null?$:C.key),g=o(C,g,$),S===null?w=C:S.sibling=C,S=C);return e&&O.forEach(function(N){return t(h,N)}),Te&&vi(h,$),w}function y(h,g,x,E){if(typeof x=="object"&&x!==null&&x.type===ho&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case vu:e:{for(var w=x.key,S=g;S!==null;){if(S.key===w){if(w=x.type,w===ho){if(S.tag===7){n(h,S.sibling),g=i(S,x.props.children),g.return=h,h=g;break e}}else if(S.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Nr&&fb(w)===S.type){n(h,S.sibling),g=i(S,x.props),g.ref=Ga(h,S,x),g.return=h,h=g;break e}n(h,S);break}else t(h,S);S=S.sibling}x.type===ho?(g=Ni(x.props.children,h.mode,E,x.key),g.return=h,h=g):(E=uc(x.type,x.key,x.props,null,h.mode,E),E.ref=Ga(h,g,x),E.return=h,h=E)}return a(h);case po:e:{for(S=x.key;g!==null;){if(g.key===S)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){n(h,g.sibling),g=i(g,x.children||[]),g.return=h,h=g;break e}else{n(h,g);break}else t(h,g);g=g.sibling}g=eh(x,h.mode,E),g.return=h,h=g}return a(h);case Nr:return S=x._init,y(h,g,S(x._payload),E)}if(dl(x))return m(h,g,x,E);if(Ha(x))return v(h,g,x,E);Pu(h,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,g!==null&&g.tag===6?(n(h,g.sibling),g=i(g,x),g.return=h,h=g):(n(h,g),g=Jp(x,h.mode,E),g.return=h,h=g),a(h)):n(h,g)}return y}var Uo=JO(!0),e$=JO(!1),Nc=ni(null),Mc=null,_o=null,iy=null;function oy(){iy=_o=Mc=null}function ay(e){var t=Nc.current;Pe(Nc),e._currentValue=t}function Em(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 No(e,t){Mc=e,iy=_o=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(At=!0),e.firstContext=null)}function sn(e){var t=e._currentValue;if(iy!==e)if(e={context:e,memoizedValue:t,next:null},_o===null){if(Mc===null)throw Error(W(308));_o=e,Mc.dependencies={lanes:0,firstContext:e}}else _o=_o.next=e;return t}var Ei=null;function ly(e){Ei===null?Ei=[e]:Ei.push(e)}function t$(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,ly(t)):(n.next=i.next,i.next=n),t.interleaved=n,br(e,r)}function br(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 Mr=!1;function sy(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function n$(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 Vr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,le&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,br(e,n)}return i=r.interleaved,i===null?(t.next=t,ly(r)):(t.next=i.next,i.next=t),r.interleaved=t,br(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,qg(e,n)}}function db(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 Ic(e,t,n,r){var i=e.updateQueue;Mr=!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 m=e,v=l;switch(d=t,p=n,v.tag){case 1:if(m=v.payload,typeof m=="function"){f=m.call(p,f,d);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=v.payload,d=typeof m=="function"?m.call(p,f,d):m,d==null)break e;f=Ie({},f,d);break e;case 2:Mr=!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);Bi|=a,e.lanes=a,e.memoizedState=f}}function pb(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 Us={},Fn=ni(Us),ql=ni(Us),Gl=ni(Us);function Oi(e){if(e===Us)throw Error(W(174));return e}function uy(e,t){switch(we(Gl,t),we(ql,e),we(Fn,Us),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:im(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=im(t,e)}Pe(Fn),we(Fn,t)}function Ho(){Pe(Fn),Pe(ql),Pe(Gl)}function r$(e){Oi(Gl.current);var t=Oi(Fn.current),n=im(t,e.type);t!==n&&(we(ql,e),we(Fn,n))}function cy(e){ql.current===e&&(Pe(Fn),Pe(ql))}var ke=ni(0);function Rc(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 qp=[];function fy(){for(var e=0;e<qp.length;e++)qp[e]._workInProgressVersionPrimary=null;qp.length=0}var ic=Ar.ReactCurrentDispatcher,Gp=Ar.ReactCurrentBatchConfig,Fi=0,Ne=null,qe=null,Je=null,Lc=!1,Ol=!1,Xl=0,SN=0;function ft(){throw Error(W(321))}function dy(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 py(e,t,n,r,i,o){if(Fi=o,Ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ic.current=e===null||e.memoizedState===null?PN:AN,e=n(r,i),Ol){o=0;do{if(Ol=!1,Xl=0,25<=o)throw Error(W(301));o+=1,Je=qe=null,t.updateQueue=null,ic.current=TN,e=n(r,i)}while(Ol)}if(ic.current=Dc,t=qe!==null&&qe.next!==null,Fi=0,Je=qe=Ne=null,Lc=!1,t)throw Error(W(300));return e}function hy(){var e=Xl!==0;return Xl=0,e}function In(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?Ne.memoizedState=Je=e:Je=Je.next=e,Je}function un(){if(qe===null){var e=Ne.alternate;e=e!==null?e.memoizedState:null}else e=qe.next;var t=Je===null?Ne.memoizedState:Je.next;if(t!==null)Je=t,qe=e;else{if(e===null)throw Error(W(310));qe=e,e={memoizedState:qe.memoizedState,baseState:qe.baseState,baseQueue:qe.baseQueue,queue:qe.queue,next:null},Je===null?Ne.memoizedState=Je=e:Je=Je.next=e}return Je}function Yl(e,t){return typeof t=="function"?t(e):t}function Xp(e){var t=un(),n=t.queue;if(n===null)throw Error(W(311));n.lastRenderedReducer=e;var r=qe,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((Fi&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,Ne.lanes|=c,Bi|=c}u=u.next}while(u!==null&&u!==o);s===null?a=r:s.next=l,$n(r,t.memoizedState)||(At=!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,Ne.lanes|=o,Bi|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Yp(e){var t=un(),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);$n(o,t.memoizedState)||(At=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function i$(){}function o$(e,t){var n=Ne,r=un(),i=t(),o=!$n(r.memoizedState,i);if(o&&(r.memoizedState=i,At=!0),r=r.queue,my(s$.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Je!==null&&Je.memoizedState.tag&1){if(n.flags|=2048,Ql(9,l$.bind(null,n,r,i,t),void 0,null),tt===null)throw Error(W(349));Fi&30||a$(n,t,i)}return i}function a$(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ne.updateQueue,t===null?(t={lastEffect:null,stores:null},Ne.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function l$(e,t,n,r){t.value=n,t.getSnapshot=r,u$(t)&&c$(e)}function s$(e,t,n){return n(function(){u$(t)&&c$(e)})}function u$(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!$n(e,n)}catch{return!0}}function c$(e){var t=br(e,1);t!==null&&Sn(t,e,1,-1)}function hb(e){var t=In();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Yl,lastRenderedState:e},t.queue=e,e=e.dispatch=$N.bind(null,Ne,e),[t.memoizedState,e]}function Ql(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ne.updateQueue,t===null?(t={lastEffect:null,stores:null},Ne.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 f$(){return un().memoizedState}function oc(e,t,n,r){var i=In();Ne.flags|=e,i.memoizedState=Ql(1|t,n,void 0,r===void 0?null:r)}function sd(e,t,n,r){var i=un();r=r===void 0?null:r;var o=void 0;if(qe!==null){var a=qe.memoizedState;if(o=a.destroy,r!==null&&dy(r,a.deps)){i.memoizedState=Ql(t,n,o,r);return}}Ne.flags|=e,i.memoizedState=Ql(1|t,n,o,r)}function mb(e,t){return oc(8390656,8,e,t)}function my(e,t){return sd(2048,8,e,t)}function d$(e,t){return sd(4,2,e,t)}function p$(e,t){return sd(4,4,e,t)}function h$(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 m$(e,t,n){return n=n!=null?n.concat([e]):null,sd(4,4,h$.bind(null,t,e),n)}function vy(){}function v$(e,t){var n=un();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&dy(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function g$(e,t){var n=un();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&dy(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function y$(e,t,n){return Fi&21?($n(n,t)||(n=SO(),Ne.lanes|=n,Bi|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,At=!0),e.memoizedState=n)}function EN(e,t){var n=pe;pe=n!==0&&4>n?n:4,e(!0);var r=Gp.transition;Gp.transition={};try{e(!1),t()}finally{pe=n,Gp.transition=r}}function x$(){return un().memoizedState}function ON(e,t,n){var r=qr(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},b$(e))w$(t,n);else if(n=t$(e,t,n,r),n!==null){var i=_t();Sn(n,e,r,i),_$(n,t,r)}}function $N(e,t,n){var r=qr(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(b$(e))w$(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,$n(l,a)){var s=t.interleaved;s===null?(i.next=i,ly(t)):(i.next=s.next,s.next=i),t.interleaved=i;return}}catch{}finally{}n=t$(e,t,i,r),n!==null&&(i=_t(),Sn(n,e,r,i),_$(n,t,r))}}function b$(e){var t=e.alternate;return e===Ne||t!==null&&t===Ne}function w$(e,t){Ol=Lc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _$(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,qg(e,n)}}var Dc={readContext:sn,useCallback:ft,useContext:ft,useEffect:ft,useImperativeHandle:ft,useInsertionEffect:ft,useLayoutEffect:ft,useMemo:ft,useReducer:ft,useRef:ft,useState:ft,useDebugValue:ft,useDeferredValue:ft,useTransition:ft,useMutableSource:ft,useSyncExternalStore:ft,useId:ft,unstable_isNewReconciler:!1},PN={readContext:sn,useCallback:function(e,t){return In().memoizedState=[e,t===void 0?null:t],e},useContext:sn,useEffect:mb,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,oc(4194308,4,h$.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=In();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=In();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=ON.bind(null,Ne,e),[r.memoizedState,e]},useRef:function(e){var t=In();return e={current:e},t.memoizedState=e},useState:hb,useDebugValue:vy,useDeferredValue:function(e){return In().memoizedState=e},useTransition:function(){var e=hb(!1),t=e[0];return e=EN.bind(null,e[1]),In().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ne,i=In();if(Te){if(n===void 0)throw Error(W(407));n=n()}else{if(n=t(),tt===null)throw Error(W(349));Fi&30||a$(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,mb(s$.bind(null,r,o,e),[e]),r.flags|=2048,Ql(9,l$.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=In(),t=tt.identifierPrefix;if(Te){var n=ar,r=or;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=SN++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},AN={readContext:sn,useCallback:v$,useContext:sn,useEffect:my,useImperativeHandle:m$,useInsertionEffect:d$,useLayoutEffect:p$,useMemo:g$,useReducer:Xp,useRef:f$,useState:function(){return Xp(Yl)},useDebugValue:vy,useDeferredValue:function(e){var t=un();return y$(t,qe.memoizedState,e)},useTransition:function(){var e=Xp(Yl)[0],t=un().memoizedState;return[e,t]},useMutableSource:i$,useSyncExternalStore:o$,useId:x$,unstable_isNewReconciler:!1},TN={readContext:sn,useCallback:v$,useContext:sn,useEffect:my,useImperativeHandle:m$,useInsertionEffect:d$,useLayoutEffect:p$,useMemo:g$,useReducer:Yp,useRef:f$,useState:function(){return Yp(Yl)},useDebugValue:vy,useDeferredValue:function(e){var t=un();return qe===null?t.memoizedState=e:y$(t,qe.memoizedState,e)},useTransition:function(){var e=Yp(Yl)[0],t=un().memoizedState;return[e,t]},useMutableSource:i$,useSyncExternalStore:o$,useId:x$,unstable_isNewReconciler:!1};function gn(e,t){if(e&&e.defaultProps){t=Ie({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Om(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Ie({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ud={isMounted:function(e){return(e=e._reactInternals)?Qi(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=_t(),i=qr(e),o=ur(r,i);o.payload=t,n!=null&&(o.callback=n),t=Vr(e,o,i),t!==null&&(Sn(t,e,i,r),rc(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=_t(),i=qr(e),o=ur(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Vr(e,o,i),t!==null&&(Sn(t,e,i,r),rc(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=_t(),r=qr(e),i=ur(n,r);i.tag=2,t!=null&&(i.callback=t),t=Vr(e,i,r),t!==null&&(Sn(t,e,r,n),rc(t,e,r))}};function vb(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?!Hl(n,r)||!Hl(i,o):!0}function S$(e,t,n){var r=!1,i=Jr,o=t.contextType;return typeof o=="object"&&o!==null?o=sn(o):(i=kt(t)?Li:vt.current,r=t.contextTypes,o=(r=r!=null)?Bo(e,i):Jr),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ud,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function gb(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&&ud.enqueueReplaceState(t,t.state,null)}function $m(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},sy(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=sn(o):(o=kt(t)?Li:vt.current,i.context=Bo(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Om(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&&ud.enqueueReplaceState(i,i.state,null),Ic(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Wo(e,t){try{var n="",r=t;do n+=rk(r),r=r.return;while(r);var i=n}catch(o){i=`
56
56
  Error generating stack: `+o.message+`
57
- `+o.stack}return{value:e,source:t,stack:i,digest:null}}function Zp(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Tm(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var kN=typeof WeakMap=="function"?WeakMap:Map;function $$(e,t,n){n=ur(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){zc||(zc=!0,Fm=r),Tm(e,t)},n}function P$(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(){Tm(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Tm(e,t),typeof r!="function"&&(Kr===null?Kr=new Set([this]):Kr.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function bb(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new kN;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=KN.bind(null,e,t,n),t.then(e,e))}function wb(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 Sb(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,Vr(n,t,1))),n.lanes|=1),e)}var NN=Ar.ReactCurrentOwner,At=!1;function yt(e,t,n,r){t.child=e===null?n$(t,null,n,r):Uo(t,e.child,n,r)}function _b(e,t,n,r,i){n=n.render;var o=t.ref;return No(t,i),r=my(e,t,n,r,o,i),n=vy(),e!==null&&!At?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,wr(e,t,i)):(Te&&n&&ry(t),t.flags|=1,yt(e,t,r,i),t.child)}function Ob(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!$y(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,A$(e,t,o,r,i)):(e=cc(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:Hl,n(a,r)&&e.ref===t.ref)return wr(e,t,i)}return t.flags|=1,e=Gr(o,r),e.ref=t.ref,e.return=t,t.child=e}function A$(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Hl(o,r)&&e.ref===t.ref)if(At=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(At=!0);else return t.lanes=e.lanes,wr(e,t,i)}return jm(e,t,n,r,i)}function T$(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},we(Oo,Rt),Rt|=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,we(Oo,Rt),Rt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,we(Oo,Rt),Rt|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,we(Oo,Rt),Rt|=r;return yt(e,t,i,n),t.child}function j$(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function jm(e,t,n,r,i){var o=kt(n)?Di:vt.current;return o=Bo(t,o),No(t,i),n=my(e,t,n,r,o,i),r=vy(),e!==null&&!At?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,wr(e,t,i)):(Te&&r&&ry(t),t.flags|=1,yt(e,t,n,i),t.child)}function Eb(e,t,n,r,i){if(kt(n)){var o=!0;Cc(t)}else o=!1;if(No(t,i),t.stateNode===null)lc(e,t),E$(t,n,r),Am(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=sn(u):(u=kt(n)?Di:vt.current,u=Bo(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)&&xb(t,a,r,u),Mr=!1;var d=t.memoizedState;a.state=d,Rc(t,r,a,i),s=t.memoizedState,l!==r||d!==s||Ct.current||Mr?(typeof c=="function"&&(Pm(t,n,c,r),s=t.memoizedState),(l=Mr||yb(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,i$(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:gn(t.type,l),a.props=u,f=t.pendingProps,d=a.context,s=n.contextType,typeof s=="object"&&s!==null?s=sn(s):(s=kt(n)?Di:vt.current,s=Bo(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)&&xb(t,a,r,s),Mr=!1,d=t.memoizedState,a.state=d,Rc(t,r,a,i);var m=t.memoizedState;l!==f||d!==m||Ct.current||Mr?(typeof p=="function"&&(Pm(t,n,p,r),m=t.memoizedState),(u=Mr||yb(t,n,u,r,d,m,s)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,m,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,m,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=m),a.props=r,a.state=m,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 Cm(e,t,n,r,o,i)}function Cm(e,t,n,r,i,o){j$(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&cb(t,n,!1),wr(e,t,o);r=t.stateNode,NN.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Uo(t,e.child,null,o),t.child=Uo(t,null,l,o)):yt(e,t,l,o),t.memoizedState=r.state,i&&cb(t,n,!0),t.child}function C$(e){var t=e.stateNode;t.pendingContext?ub(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ub(e,t.context,!1),fy(e,t.containerInfo)}function $b(e,t,n,r,i){return zo(),oy(i),t.flags|=256,yt(e,t,n,r),t.child}var km={dehydrated:null,treeContext:null,retryLane:0};function Nm(e){return{baseLanes:e,cachePool:null,transitions:null}}function k$(e,t,n){var r=t.pendingProps,i=ke.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),we(ke,i&1),e===null)return Em(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=pd(a,r,0,null),e=Mi(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Nm(n),t.memoizedState=km,e):xy(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=Gr(i,s),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=Gr(l,o):(o=Mi(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?Nm(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=km,r}return o=e.child,e=o.sibling,r=Gr(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 xy(e,t){return t=pd({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Au(e,t,n,r){return r!==null&&oy(r),Uo(t,e.child,null,n),e=xy(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=Zp(Error(W(422))),Au(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=pd({mode:"visible",children:r.children},i,0,null),o=Mi(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Uo(t,e.child,null,a),t.child.memoizedState=Nm(a),t.memoizedState=km,o);if(!(t.mode&1))return Au(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=Zp(o,r,void 0),Au(e,t,a,r)}if(l=(a&e.childLanes)!==0,At||l){if(r=tt,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,br(e,i),_n(r,e,i,-1))}return Ey(),r=Zp(Error(W(421))),Au(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=qN.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Dt=Wr(i.nextSibling),Ft=t,Te=!0,xn=null,e!==null&&(Zt[Jt++]=or,Zt[Jt++]=ar,Zt[Jt++]=Fi,or=e.id,ar=e.overflow,Fi=t),t=xy(t,r.children),t.flags|=4096,t)}function Pb(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),$m(e.return,t,n)}function Jp(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 N$(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(yt(e,t,r.children,n),r=ke.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&&Pb(e,n,t);else if(e.tag===19)Pb(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(we(ke,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&&Lc(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Jp(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&&Lc(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Jp(t,!0,n,null,o);break;case"together":Jp(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function lc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function wr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),zi|=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=Gr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Gr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function IN(e,t,n){switch(t.tag){case 3:C$(t),zo();break;case 5:o$(t);break;case 1:kt(t.type)&&Cc(t);break;case 4:fy(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;we(Mc,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(we(ke,ke.current&1),t.flags|=128,null):n&t.child.childLanes?k$(e,t,n):(we(ke,ke.current&1),e=wr(e,t,n),e!==null?e.sibling:null);we(ke,ke.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return N$(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),we(ke,ke.current),r)break;return null;case 22:case 23:return t.lanes=0,T$(e,t,n)}return wr(e,t,n)}var M$,Mm,I$,R$;M$=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}};Mm=function(){};I$=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,$i(Fn.current);var o=null;switch(n){case"input":i=nm(e,i),r=nm(e,r),o=[];break;case"select":i=Ie({},i,{value:void 0}),r=Ie({},r,{value:void 0}),o=[];break;case"textarea":i=om(e,i),r=om(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Tc)}lm(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"&&(Rl.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"&&(Rl.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)}};R$=function(e,t,n,r){n!==r&&(t.flags|=4)};function Xa(e,t){if(!Te)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 dt(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 RN(e,t,n){var r=t.pendingProps;switch(iy(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return dt(t),null;case 1:return kt(t.type)&&jc(),dt(t),null;case 3:return r=t.stateNode,Ho(),Pe(Ct),Pe(vt),py(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&($u(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,xn!==null&&(Um(xn),xn=null))),Mm(e,t),dt(t),null;case 5:dy(t);var i=$i(Gl.current);if(n=t.type,e!==null&&t.stateNode!=null)I$(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 dt(t),null}if(e=$i(Fn.current),$u(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Rn]=t,r[Kl]=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<hl.length;i++)_e(hl[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":Rx(r,o),_e("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},_e("invalid",r);break;case"textarea":Dx(r,o),_e("invalid",r)}lm(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&&Eu(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&Eu(r.textContent,l,e),i=["children",""+l]):Rl.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&_e("scroll",r)}switch(n){case"input":gu(r),Lx(r,o,!0);break;case"textarea":gu(r),Fx(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Tc)}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=cE(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[Rn]=t,e[Kl]=r,M$(e,t,!1,!1),t.stateNode=e;e:{switch(a=sm(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<hl.length;i++)_e(hl[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":Rx(e,r),i=nm(e,r),_e("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Ie({},r,{value:void 0}),_e("invalid",e);break;case"textarea":Dx(e,r),i=om(e,r),_e("invalid",e);break;default:i=r}lm(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var s=l[o];o==="style"?pE(e,s):o==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&fE(e,s)):o==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&Ll(e,s):typeof s=="number"&&Ll(e,""+s):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Rl.hasOwnProperty(o)?s!=null&&o==="onScroll"&&_e("scroll",e):s!=null&&Hg(e,o,s,a))}switch(n){case"input":gu(e),Lx(e,r,!1);break;case"textarea":gu(e),Fx(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Zr(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?To(e,!!r.multiple,o,!1):r.defaultValue!=null&&To(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Tc)}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 dt(t),null;case 6:if(e&&t.stateNode!=null)R$(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(W(166));if(n=$i(Gl.current),$i(Fn.current),$u(t)){if(r=t.stateNode,n=t.memoizedProps,r[Rn]=t,(o=r.nodeValue!==n)&&(e=Ft,e!==null))switch(e.tag){case 3:Eu(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Eu(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Rn]=t,t.stateNode=r}return dt(t),null;case 13:if(Pe(ke),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Te&&Dt!==null&&t.mode&1&&!(t.flags&128))e$(),zo(),t.flags|=98560,o=!1;else if(o=$u(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[Rn]=t}else zo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;dt(t),o=!1}else xn!==null&&(Um(xn),xn=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||ke.current&1?Xe===0&&(Xe=3):Ey())),t.updateQueue!==null&&(t.flags|=4),dt(t),null);case 4:return Ho(),Mm(e,t),e===null&&Wl(t.stateNode.containerInfo),dt(t),null;case 10:return sy(t.type._context),dt(t),null;case 17:return kt(t.type)&&jc(),dt(t),null;case 19:if(Pe(ke),o=t.memoizedState,o===null)return dt(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)Xa(o,!1);else{if(Xe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Lc(e),a!==null){for(t.flags|=128,Xa(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 we(ke,ke.current&1|2),t.child}e=e.sibling}o.tail!==null&&Be()>Vo&&(t.flags|=128,r=!0,Xa(o,!1),t.lanes=4194304)}else{if(!r)if(e=Lc(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Xa(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Te)return dt(t),null}else 2*Be()-o.renderingStartTime>Vo&&n!==1073741824&&(t.flags|=128,r=!0,Xa(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=Be(),t.sibling=null,n=ke.current,we(ke,r?n&1|2:n&1),t):(dt(t),null);case 22:case 23:return Oy(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Rt&1073741824&&(dt(t),t.subtreeFlags&6&&(t.flags|=8192)):dt(t),null;case 24:return null;case 25:return null}throw Error(W(156,t.tag))}function LN(e,t){switch(iy(t),t.tag){case 1:return kt(t.type)&&jc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ho(),Pe(Ct),Pe(vt),py(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return dy(t),null;case 13:if(Pe(ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(W(340));zo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Pe(ke),null;case 4:return Ho(),null;case 10:return sy(t.type._context),null;case 22:case 23:return Oy(),null;case 24:return null;default:return null}}var Tu=!1,pt=!1,DN=typeof WeakSet=="function"?WeakSet:Set,q=null;function _o(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Re(e,t,r)}else n.current=null}function Im(e,t,n){try{n()}catch(r){Re(e,t,r)}}var Ab=!1;function FN(e,t){if(ym=$c,e=zE(),ny(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(xm={focusedElem:e,selectionRange:n},$c=!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 m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var v=m.memoizedProps,y=m.memoizedState,h=t.stateNode,g=h.getSnapshotBeforeUpdate(t.elementType===t.type?v:gn(t.type,v),y);h.__reactInternalSnapshotBeforeUpdate=g}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(O){Re(t,t.return,O)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return m=Ab,Ab=!1,m}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&&Im(t,n,o)}i=i.next}while(i!==r)}}function fd(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 Rm(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 L$(e){var t=e.alternate;t!==null&&(e.alternate=null,L$(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Rn],delete t[Kl],delete t[Sm],delete t[wN],delete t[SN])),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 D$(e){return e.tag===5||e.tag===3||e.tag===4}function Tb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||D$(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 Lm(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=Tc));else if(r!==4&&(e=e.child,e!==null))for(Lm(e,t,n),e=e.sibling;e!==null;)Lm(e,t,n),e=e.sibling}function Dm(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(Dm(e,t,n),e=e.sibling;e!==null;)Dm(e,t,n),e=e.sibling}var it=null,yn=!1;function kr(e,t,n){for(n=n.child;n!==null;)F$(e,t,n),n=n.sibling}function F$(e,t,n){if(Dn&&typeof Dn.onCommitFiberUnmount=="function")try{Dn.onCommitFiberUnmount(rd,n)}catch{}switch(n.tag){case 5:pt||_o(n,t);case 6:var r=it,i=yn;it=null,kr(e,t,n),it=r,yn=i,it!==null&&(yn?(e=it,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):it.removeChild(n.stateNode));break;case 18:it!==null&&(yn?(e=it,n=n.stateNode,e.nodeType===8?Kp(e.parentNode,n):e.nodeType===1&&Kp(e,n),zl(e)):Kp(it,n.stateNode));break;case 4:r=it,i=yn,it=n.stateNode.containerInfo,yn=!0,kr(e,t,n),it=r,yn=i;break;case 0:case 11:case 14:case 15:if(!pt&&(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)&&Im(n,t,a),i=i.next}while(i!==r)}kr(e,t,n);break;case 1:if(!pt&&(_o(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Re(n,t,l)}kr(e,t,n);break;case 21:kr(e,t,n);break;case 22:n.mode&1?(pt=(r=pt)||n.memoizedState!==null,kr(e,t,n),pt=r):kr(e,t,n);break;default:kr(e,t,n)}}function jb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new DN),t.forEach(function(r){var i=GN.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function mn(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:it=l.stateNode,yn=!1;break e;case 3:it=l.stateNode.containerInfo,yn=!0;break e;case 4:it=l.stateNode.containerInfo,yn=!0;break e}l=l.return}if(it===null)throw Error(W(160));F$(o,a,i),it=null,yn=!1;var s=i.alternate;s!==null&&(s.return=null),i.return=null}catch(u){Re(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)B$(t,e),t=t.sibling}function B$(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(mn(t,e),Nn(e),r&4){try{$l(3,e,e.return),fd(3,e)}catch(v){Re(e,e.return,v)}try{$l(5,e,e.return)}catch(v){Re(e,e.return,v)}}break;case 1:mn(t,e),Nn(e),r&512&&n!==null&&_o(n,n.return);break;case 5:if(mn(t,e),Nn(e),r&512&&n!==null&&_o(n,n.return),e.flags&32){var i=e.stateNode;try{Ll(i,"")}catch(v){Re(e,e.return,v)}}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&&sE(i,o),sm(l,a);var u=sm(l,o);for(a=0;a<s.length;a+=2){var c=s[a],f=s[a+1];c==="style"?pE(i,f):c==="dangerouslySetInnerHTML"?fE(i,f):c==="children"?Ll(i,f):Hg(i,c,f,u)}switch(l){case"input":rm(i,o);break;case"textarea":uE(i,o);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?To(i,!!o.multiple,p,!1):d!==!!o.multiple&&(o.defaultValue!=null?To(i,!!o.multiple,o.defaultValue,!0):To(i,!!o.multiple,o.multiple?[]:"",!1))}i[Kl]=o}catch(v){Re(e,e.return,v)}}break;case 6:if(mn(t,e),Nn(e),r&4){if(e.stateNode===null)throw Error(W(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(v){Re(e,e.return,v)}}break;case 3:if(mn(t,e),Nn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{zl(t.containerInfo)}catch(v){Re(e,e.return,v)}break;case 4:mn(t,e),Nn(e);break;case 13:mn(t,e),Nn(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Sy=Be())),r&4&&jb(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(pt=(u=pt)||c,mn(t,e),pt=u):mn(t,e),Nn(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:_o(d,d.return);var m=d.stateNode;if(typeof m.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(v){Re(r,n,v)}}break;case 5:_o(d,d.return);break;case 22:if(d.memoizedState!==null){kb(f);continue}}p!==null?(p.return=d,q=p):kb(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=dE("display",a))}catch(v){Re(e,e.return,v)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){Re(e,e.return,v)}}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:mn(t,e),Nn(e),r&4&&jb(e);break;case 21:break;default:mn(t,e),Nn(e)}}function Nn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(D$(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&&(Ll(i,""),r.flags&=-33);var o=Tb(e);Dm(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,l=Tb(e);Lm(e,l,a);break;default:throw Error(W(161))}}catch(s){Re(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function BN(e,t,n){q=e,z$(e)}function z$(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||Tu;if(!a){var l=i.alternate,s=l!==null&&l.memoizedState!==null||pt;l=Tu;var u=pt;if(Tu=a,(pt=s)&&!u)for(q=i;q!==null;)a=q,s=a.child,a.tag===22&&a.memoizedState!==null?Nb(i):s!==null?(s.return=a,q=s):Nb(i);for(;o!==null;)q=o,z$(o),o=o.sibling;q=i,Tu=l,pt=u}Cb(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,q=o):Cb(e)}}function Cb(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:pt||fd(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!pt)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:gn(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&mb(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}mb(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&&zl(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(W(163))}pt||t.flags&512&&Rm(t)}catch(d){Re(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 kb(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 Nb(e){for(;q!==null;){var t=q;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{fd(4,t)}catch(s){Re(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(s){Re(t,i,s)}}var o=t.return;try{Rm(t)}catch(s){Re(t,o,s)}break;case 5:var a=t.return;try{Rm(t)}catch(s){Re(t,a,s)}}}catch(s){Re(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 zN=Math.ceil,Bc=Ar.ReactCurrentDispatcher,by=Ar.ReactCurrentOwner,ln=Ar.ReactCurrentBatchConfig,le=0,tt=null,He=null,lt=0,Rt=0,Oo=ni(0),Xe=0,Zl=null,zi=0,dd=0,wy=0,Pl=null,Pt=null,Sy=0,Vo=1/0,er=null,zc=!1,Fm=null,Kr=null,ju=!1,Fr=null,Uc=0,Al=0,Bm=null,sc=-1,uc=0;function St(){return le&6?Be():sc!==-1?sc:sc=Be()}function qr(e){return e.mode&1?le&2&&lt!==0?lt&-lt:ON.transition!==null?(uc===0&&(uc=EE()),uc):(e=pe,e!==0||(e=window.event,e=e===void 0?16:kE(e.type)),e):1}function _n(e,t,n,r){if(50<Al)throw Al=0,Bm=null,Error(W(185));Fs(e,n,r),(!(le&2)||e!==tt)&&(e===tt&&(!(le&2)&&(dd|=n),Xe===4&&Lr(e,lt)),Nt(e,r),n===1&&le===0&&!(t.mode&1)&&(Vo=Be()+500,sd&&ri()))}function Nt(e,t){var n=e.callbackNode;Ok(e,t);var r=Ec(e,e===tt?lt:0);if(r===0)n!==null&&Ux(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Ux(n),t===1)e.tag===0?_N(Mb.bind(null,e)):QE(Mb.bind(null,e)),xN(function(){!(le&6)&&ri()}),n=null;else{switch($E(r)){case 1:n=Gg;break;case 4:n=_E;break;case 16:n=Oc;break;case 536870912:n=OE;break;default:n=Oc}n=X$(n,U$.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function U$(e,t){if(sc=-1,uc=0,le&6)throw Error(W(327));var n=e.callbackNode;if(Mo()&&e.callbackNode!==n)return null;var r=Ec(e,e===tt?lt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Hc(e,r);else{t=r;var i=le;le|=2;var o=W$();(tt!==e||lt!==t)&&(er=null,Vo=Be()+500,Ni(e,t));do try{WN();break}catch(l){H$(e,l)}while(!0);ly(),Bc.current=o,le=i,He!==null?t=0:(tt=null,lt=0,t=Xe)}if(t!==0){if(t===2&&(i=pm(e),i!==0&&(r=i,t=zm(e,i))),t===1)throw n=Zl,Ni(e,0),Lr(e,r),Nt(e,Be()),n;if(t===6)Lr(e,r);else{if(i=e.current.alternate,!(r&30)&&!UN(i)&&(t=Hc(e,r),t===2&&(o=pm(e),o!==0&&(r=o,t=zm(e,o))),t===1))throw n=Zl,Ni(e,0),Lr(e,r),Nt(e,Be()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(W(345));case 2:yi(e,Pt,er);break;case 3:if(Lr(e,r),(r&130023424)===r&&(t=Sy+500-Be(),10<t)){if(Ec(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){St(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=wm(yi.bind(null,e,Pt,er),t);break}yi(e,Pt,er);break;case 4:if(Lr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-Sn(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=Be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*zN(r/1960))-r,10<r){e.timeoutHandle=wm(yi.bind(null,e,Pt,er),r);break}yi(e,Pt,er);break;case 5:yi(e,Pt,er);break;default:throw Error(W(329))}}}return Nt(e,Be()),e.callbackNode===n?U$.bind(null,e):null}function zm(e,t){var n=Pl;return e.current.memoizedState.isDehydrated&&(Ni(e,t).flags|=256),e=Hc(e,t),e!==2&&(t=Pt,Pt=n,t!==null&&Um(t)),e}function Um(e){Pt===null?Pt=e:Pt.push.apply(Pt,e)}function UN(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(!$n(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 Lr(e,t){for(t&=~wy,t&=~dd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Sn(t),r=1<<n;e[n]=-1,t&=~r}}function Mb(e){if(le&6)throw Error(W(327));Mo();var t=Ec(e,0);if(!(t&1))return Nt(e,Be()),null;var n=Hc(e,t);if(e.tag!==0&&n===2){var r=pm(e);r!==0&&(t=r,n=zm(e,r))}if(n===1)throw n=Zl,Ni(e,0),Lr(e,t),Nt(e,Be()),n;if(n===6)throw Error(W(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,yi(e,Pt,er),Nt(e,Be()),null}function _y(e,t){var n=le;le|=1;try{return e(t)}finally{le=n,le===0&&(Vo=Be()+500,sd&&ri())}}function Ui(e){Fr!==null&&Fr.tag===0&&!(le&6)&&Mo();var t=le;le|=1;var n=ln.transition,r=pe;try{if(ln.transition=null,pe=1,e)return e()}finally{pe=r,ln.transition=n,le=t,!(le&6)&&ri()}}function Oy(){Rt=Oo.current,Pe(Oo)}function Ni(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,yN(n)),He!==null)for(n=He.return;n!==null;){var r=n;switch(iy(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&jc();break;case 3:Ho(),Pe(Ct),Pe(vt),py();break;case 5:dy(r);break;case 4:Ho();break;case 13:Pe(ke);break;case 19:Pe(ke);break;case 10:sy(r.type._context);break;case 22:case 23:Oy()}n=n.return}if(tt=e,He=e=Gr(e.current,null),lt=Rt=t,Xe=0,Zl=null,wy=dd=zi=0,Pt=Pl=null,Ei!==null){for(t=0;t<Ei.length;t++)if(n=Ei[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}Ei=null}return e}function H$(e,t){do{var n=He;try{if(ly(),oc.current=Fc,Dc){for(var r=Ne.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Dc=!1}if(Bi=0,Je=qe=Ne=null,El=!1,Xl=0,by.current=null,n===null||n.return===null){Xe=1,Zl=t,He=null;break}e:{var o=e,a=n.return,l=n,s=t;if(t=lt,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=wb(a);if(p!==null){p.flags&=-257,Sb(p,a,l,o,t),p.mode&1&&bb(o,u,t),t=p,s=u;var m=t.updateQueue;if(m===null){var v=new Set;v.add(s),t.updateQueue=v}else m.add(s);break e}else{if(!(t&1)){bb(o,u,t),Ey();break e}s=Error(W(426))}}else if(Te&&l.mode&1){var y=wb(a);if(y!==null){!(y.flags&65536)&&(y.flags|=256),Sb(y,a,l,o,t),oy(Wo(s,l));break e}}o=s=Wo(s,l),Xe!==4&&(Xe=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 h=$$(o,s,t);hb(o,h);break e;case 1:l=s;var g=o.type,x=o.stateNode;if(!(o.flags&128)&&(typeof g.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Kr===null||!Kr.has(x)))){o.flags|=65536,t&=-t,o.lanes|=t;var O=P$(o,l,t);hb(o,O);break e}}o=o.return}while(o!==null)}K$(n)}catch(w){t=w,He===n&&n!==null&&(He=n=n.return);continue}break}while(!0)}function W$(){var e=Bc.current;return Bc.current=Fc,e===null?Fc:e}function Ey(){(Xe===0||Xe===3||Xe===2)&&(Xe=4),tt===null||!(zi&268435455)&&!(dd&268435455)||Lr(tt,lt)}function Hc(e,t){var n=le;le|=2;var r=W$();(tt!==e||lt!==t)&&(er=null,Ni(e,t));do try{HN();break}catch(i){H$(e,i)}while(!0);if(ly(),le=n,Bc.current=r,He!==null)throw Error(W(261));return tt=null,lt=0,Xe}function HN(){for(;He!==null;)V$(He)}function WN(){for(;He!==null&&!mk();)V$(He)}function V$(e){var t=G$(e.alternate,e,Rt);e.memoizedProps=e.pendingProps,t===null?K$(e):He=t,by.current=null}function K$(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=LN(n,t),n!==null){n.flags&=32767,He=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Xe=6,He=null;return}}else if(n=RN(n,t,Rt),n!==null){He=n;return}if(t=t.sibling,t!==null){He=t;return}He=t=e}while(t!==null);Xe===0&&(Xe=5)}function yi(e,t,n){var r=pe,i=ln.transition;try{ln.transition=null,pe=1,VN(e,t,n,r)}finally{ln.transition=i,pe=r}return null}function VN(e,t,n,r){do Mo();while(Fr!==null);if(le&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(Ek(e,o),e===tt&&(He=tt=null,lt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ju||(ju=!0,X$(Oc,function(){return Mo(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=ln.transition,ln.transition=null;var a=pe;pe=1;var l=le;le|=4,by.current=null,FN(e,n),B$(n,e),fN(xm),$c=!!ym,xm=ym=null,e.current=n,BN(n),vk(),le=l,pe=a,ln.transition=o}else e.current=n;if(ju&&(ju=!1,Fr=e,Uc=i),o=e.pendingLanes,o===0&&(Kr=null),xk(n.stateNode),Nt(e,Be()),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(zc)throw zc=!1,e=Fm,Fm=null,e;return Uc&1&&e.tag!==0&&Mo(),o=e.pendingLanes,o&1?e===Bm?Al++:(Al=0,Bm=e):Al=0,ri(),null}function Mo(){if(Fr!==null){var e=$E(Uc),t=ln.transition,n=pe;try{if(ln.transition=null,pe=16>e?16:e,Fr===null)var r=!1;else{if(e=Fr,Fr=null,Uc=0,le&6)throw Error(W(331));var i=le;for(le|=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(L$(c),c===u){q=null;break}if(d!==null){d.return=p,q=d;break}q=p}}}var m=o.alternate;if(m!==null){var v=m.child;if(v!==null){m.child=null;do{var y=v.sibling;v.sibling=null,v=y}while(v!==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 h=o.sibling;if(h!==null){h.return=o.return,q=h;break e}q=o.return}}var g=e.current;for(q=g;q!==null;){a=q;var x=a.child;if(a.subtreeFlags&2064&&x!==null)x.return=a,q=x;else e:for(a=g;q!==null;){if(l=q,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:fd(9,l)}}catch(w){Re(l,l.return,w)}if(l===a){q=null;break e}var O=l.sibling;if(O!==null){O.return=l.return,q=O;break e}q=l.return}}if(le=i,ri(),Dn&&typeof Dn.onPostCommitFiberRoot=="function")try{Dn.onPostCommitFiberRoot(rd,e)}catch{}r=!0}return r}finally{pe=n,ln.transition=t}}return!1}function Ib(e,t,n){t=Wo(n,t),t=$$(e,t,1),e=Vr(e,t,1),t=St(),e!==null&&(Fs(e,1,t),Nt(e,t))}function Re(e,t,n){if(e.tag===3)Ib(e,e,n);else for(;t!==null;){if(t.tag===3){Ib(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Kr===null||!Kr.has(r))){e=Wo(n,e),e=P$(t,e,1),t=Vr(t,e,1),e=St(),t!==null&&(Fs(t,1,e),Nt(t,e));break}}t=t.return}}function KN(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=St(),e.pingedLanes|=e.suspendedLanes&n,tt===e&&(lt&n)===n&&(Xe===4||Xe===3&&(lt&130023424)===lt&&500>Be()-Sy?Ni(e,0):wy|=n),Nt(e,t)}function q$(e,t){t===0&&(e.mode&1?(t=bu,bu<<=1,!(bu&130023424)&&(bu=4194304)):t=1);var n=St();e=br(e,t),e!==null&&(Fs(e,t,n),Nt(e,n))}function qN(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),q$(e,n)}function GN(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),q$(e,n)}var G$;G$=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ct.current)At=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return At=!1,IN(e,t,n);At=!!(e.flags&131072)}else At=!1,Te&&t.flags&1048576&&ZE(t,Nc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;lc(e,t),e=t.pendingProps;var i=Bo(t,vt.current);No(t,n),i=my(null,t,r,e,i,n);var o=vy();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,kt(r)?(o=!0,Cc(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,cy(t),i.updater=cd,t.stateNode=i,i._reactInternals=t,Am(t,r,e,n),t=Cm(null,t,r,!0,o,n)):(t.tag=0,Te&&o&&ry(t),yt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(lc(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=YN(r),e=gn(r,e),i){case 0:t=jm(null,t,r,e,n);break e;case 1:t=Eb(null,t,r,e,n);break e;case 11:t=_b(null,t,r,e,n);break e;case 14:t=Ob(null,t,r,gn(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:gn(r,i),jm(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gn(r,i),Eb(e,t,r,i,n);case 3:e:{if(C$(t),e===null)throw Error(W(387));r=t.pendingProps,o=t.memoizedState,i=o.element,i$(e,t),Rc(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=Wo(Error(W(423)),t),t=$b(e,t,r,n,i);break e}else if(r!==i){i=Wo(Error(W(424)),t),t=$b(e,t,r,n,i);break e}else for(Dt=Wr(t.stateNode.containerInfo.firstChild),Ft=t,Te=!0,xn=null,n=n$(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(zo(),r===i){t=wr(e,t,n);break e}yt(e,t,r,n)}t=t.child}return t;case 5:return o$(t),e===null&&Em(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,bm(r,i)?a=null:o!==null&&bm(r,o)&&(t.flags|=32),j$(e,t),yt(e,t,a,n),t.child;case 6:return e===null&&Em(t),null;case 13:return k$(e,t,n);case 4:return fy(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Uo(t,null,r,n):yt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gn(r,i),_b(e,t,r,i,n);case 7:return yt(e,t,t.pendingProps,n),t.child;case 8:return yt(e,t,t.pendingProps.children,n),t.child;case 12:return yt(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,we(Mc,r._currentValue),r._currentValue=a,o!==null)if($n(o.value,a)){if(o.children===i.children&&!Ct.current){t=wr(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),$m(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),$m(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}yt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,No(t,n),i=sn(i),r=r(i),t.flags|=1,yt(e,t,r,n),t.child;case 14:return r=t.type,i=gn(r,t.pendingProps),i=gn(r.type,i),Ob(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:gn(r,i),lc(e,t),t.tag=1,kt(r)?(e=!0,Cc(t)):e=!1,No(t,n),E$(t,r,i),Am(t,r,i,n),Cm(null,t,r,!0,e,n);case 19:return N$(e,t,n);case 22:return T$(e,t,n)}throw Error(W(156,t.tag))};function X$(e,t){return SE(e,t)}function XN(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 nn(e,t,n,r){return new XN(e,t,n,r)}function $y(e){return e=e.prototype,!(!e||!e.isReactComponent)}function YN(e){if(typeof e=="function")return $y(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Vg)return 11;if(e===Kg)return 14}return 2}function Gr(e,t){var n=e.alternate;return n===null?(n=nn(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 cc(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")$y(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ho:return Mi(n.children,i,o,t);case Wg:a=8,i|=8;break;case Zh:return e=nn(12,n,t,i|2),e.elementType=Zh,e.lanes=o,e;case Jh:return e=nn(13,n,t,i),e.elementType=Jh,e.lanes=o,e;case em:return e=nn(19,n,t,i),e.elementType=em,e.lanes=o,e;case oE:return pd(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case rE:a=10;break e;case iE:a=9;break e;case Vg:a=11;break e;case Kg:a=14;break e;case Nr:a=16,r=null;break e}throw Error(W(130,e==null?e:typeof e,""))}return t=nn(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Mi(e,t,n,r){return e=nn(7,e,r,t),e.lanes=n,e}function pd(e,t,n,r){return e=nn(22,e,r,t),e.elementType=oE,e.lanes=n,e.stateNode={isHidden:!1},e}function eh(e,t,n){return e=nn(6,e,null,t),e.lanes=n,e}function th(e,t,n){return t=nn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function QN(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=Ip(0),this.expirationTimes=Ip(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ip(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Py(e,t,n,r,i,o,a,l,s){return e=new QN(e,t,n,l,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=nn(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},cy(o),e}function ZN(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:po,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Y$(e){if(!e)return Jr;e=e._reactInternals;e:{if(Zi(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(kt(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(kt(n))return YE(e,n,t)}return t}function Q$(e,t,n,r,i,o,a,l,s){return e=Py(n,r,!0,e,i,o,a,l,s),e.context=Y$(null),n=e.current,r=St(),i=qr(n),o=ur(r,i),o.callback=t??null,Vr(n,o,i),e.current.lanes=i,Fs(e,i,r),Nt(e,r),e}function hd(e,t,n,r){var i=t.current,o=St(),a=qr(i);return n=Y$(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=Vr(i,t,a),e!==null&&(_n(e,i,a,o),ic(e,i,a)),a}function Wc(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 Rb(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ay(e,t){Rb(e,t),(e=e.alternate)&&Rb(e,t)}function JN(){return null}var Z$=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ty(e){this._internalRoot=e}md.prototype.render=Ty.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(W(409));hd(e,t,null,null)};md.prototype.unmount=Ty.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ui(function(){hd(null,e,null,null)}),t[xr]=null}};function md(e){this._internalRoot=e}md.prototype.unstable_scheduleHydration=function(e){if(e){var t=TE();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rr.length&&t!==0&&t<Rr[n].priority;n++);Rr.splice(n,0,e),n===0&&CE(e)}};function jy(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function vd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Lb(){}function eM(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=Wc(a);o.call(u)}}var a=Q$(t,r,e,0,null,!1,!1,"",Lb);return e._reactRootContainer=a,e[xr]=a.current,Wl(e.nodeType===8?e.parentNode:e),Ui(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=Wc(s);l.call(u)}}var s=Py(e,0,!1,null,null,!1,!1,"",Lb);return e._reactRootContainer=s,e[xr]=s.current,Wl(e.nodeType===8?e.parentNode:e),Ui(function(){hd(t,s,n,r)}),s}function gd(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=Wc(a);l.call(s)}}hd(t,a,e,i)}else a=eM(n,t,e,i,r);return Wc(a)}PE=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=pl(t.pendingLanes);n!==0&&(Xg(t,n|1),Nt(t,Be()),!(le&6)&&(Vo=Be()+500,ri()))}break;case 13:Ui(function(){var r=br(e,1);if(r!==null){var i=St();_n(r,e,1,i)}}),Ay(e,1)}};Yg=function(e){if(e.tag===13){var t=br(e,134217728);if(t!==null){var n=St();_n(t,e,134217728,n)}Ay(e,134217728)}};AE=function(e){if(e.tag===13){var t=qr(e),n=br(e,t);if(n!==null){var r=St();_n(n,e,t,r)}Ay(e,t)}};TE=function(){return pe};jE=function(e,t){var n=pe;try{return pe=e,t()}finally{pe=n}};cm=function(e,t,n){switch(t){case"input":if(rm(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=ld(r);if(!i)throw Error(W(90));lE(r),rm(r,i)}}}break;case"textarea":uE(e,n);break;case"select":t=n.value,t!=null&&To(e,!!n.multiple,t,!1)}};vE=_y;gE=Ui;var tM={usingClientEntryPoint:!1,Events:[zs,yo,ld,hE,mE,_y]},Ya={findFiberByHostInstance:Oi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nM={bundleType:Ya.bundleType,version:Ya.version,rendererPackageName:Ya.rendererPackageName,rendererConfig:Ya.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ar.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=bE(e),e===null?null:e.stateNode},findFiberByHostInstance:Ya.findFiberByHostInstance||JN,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 Cu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cu.isDisabled&&Cu.supportsFiber)try{rd=Cu.inject(nM),Dn=Cu}catch{}}Wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tM;Wt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!jy(t))throw Error(W(200));return ZN(e,t,null,n)};Wt.createRoot=function(e,t){if(!jy(e))throw Error(W(299));var n=!1,r="",i=Z$;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[xr]=t.current,Wl(e.nodeType===8?e.parentNode:e),new Ty(t)};Wt.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=bE(t),e=e===null?null:e.stateNode,e};Wt.flushSync=function(e){return Ui(e)};Wt.hydrate=function(e,t,n){if(!vd(t))throw Error(W(200));return gd(null,e,t,!0,n)};Wt.hydrateRoot=function(e,t,n){if(!jy(e))throw Error(W(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=Z$;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=Q$(t,null,e,1,n??null,i,!1,o,a),e[xr]=t.current,Wl(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 md(t)};Wt.render=function(e,t,n){if(!vd(t))throw Error(W(200));return gd(null,e,t,!1,n)};Wt.unmountComponentAtNode=function(e){if(!vd(e))throw Error(W(40));return e._reactRootContainer?(Ui(function(){gd(null,null,e,!1,function(){e._reactRootContainer=null,e[xr]=null})}),!0):!1};Wt.unstable_batchedUpdates=_y;Wt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!vd(n))throw Error(W(200));if(e==null||e._reactInternals===void 0)throw Error(W(38));return gd(e,t,n,!1,r)};Wt.version="18.3.1-next-f1338f8080-20240426";function J$(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(J$)}catch(e){console.error(e)}}J$(),JO.exports=Wt;var Bt=JO.exports,Db=Bt;Yh.createRoot=Db.createRoot,Yh.hydrateRoot=Db.hydrateRoot;var Cy={};Object.defineProperty(Cy,"__esModule",{value:!0});Cy.parse=uM;Cy.serialize=cM;const rM=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,iM=/^[\u0021-\u003A\u003C-\u007E]*$/,oM=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,aM=/^[\u0020-\u003A\u003D-\u007E]*$/,lM=Object.prototype.toString,sM=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function uM(e,t){const n=new sM,r=e.length;if(r<2)return n;const i=(t==null?void 0:t.decode)||fM;let o=0;do{const a=e.indexOf("=",o);if(a===-1)break;const l=e.indexOf(";",o),s=l===-1?r:l;if(a>s){o=e.lastIndexOf(";",a-1)+1;continue}const u=Fb(e,o,a),c=Bb(e,a,u),f=e.slice(u,c);if(n[f]===void 0){let d=Fb(e,a+1,s),p=Bb(e,s,d);const m=i(e.slice(d,p));n[f]=m}o=s+1}while(o<r);return n}function Fb(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 cM(e,t,n){const r=(n==null?void 0:n.encode)||encodeURIComponent;if(!rM.test(e))throw new TypeError(`argument name is invalid: ${e}`);const i=r(t);if(!iM.test(i))throw new TypeError(`argument val is invalid: ${t}`);let o=e+"="+i;if(!n)return o;if(n.maxAge!==void 0){if(!Number.isInteger(n.maxAge))throw new TypeError(`option maxAge is invalid: ${n.maxAge}`);o+="; Max-Age="+n.maxAge}if(n.domain){if(!oM.test(n.domain))throw new TypeError(`option domain is invalid: ${n.domain}`);o+="; Domain="+n.domain}if(n.path){if(!aM.test(n.path))throw new TypeError(`option path is invalid: ${n.path}`);o+="; Path="+n.path}if(n.expires){if(!dM(n.expires)||!Number.isFinite(n.expires.valueOf()))throw new TypeError(`option expires is invalid: ${n.expires}`);o+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(o+="; HttpOnly"),n.secure&&(o+="; Secure"),n.partitioned&&(o+="; Partitioned"),n.priority)switch(typeof n.priority=="string"?n.priority.toLowerCase():void 0){case"low":o+="; Priority=Low";break;case"medium":o+="; Priority=Medium";break;case"high":o+="; 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":o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"none":o+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${n.sameSite}`)}return o}function fM(e){if(e.indexOf("%")===-1)return e;try{return decodeURIComponent(e)}catch{return e}}function dM(e){return lM.call(e)==="[object Date]"}/**
57
+ `+o.stack}return{value:e,source:t,stack:i,digest:null}}function Qp(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Pm(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var jN=typeof WeakMap=="function"?WeakMap:Map;function E$(e,t,n){n=ur(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Bc||(Bc=!0,Lm=r),Pm(e,t)},n}function O$(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(){Pm(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Pm(e,t),typeof r!="function"&&(Kr===null?Kr=new Set([this]):Kr.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function yb(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new jN;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=WN.bind(null,e,t,n),t.then(e,e))}function xb(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 bb(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,Vr(n,t,1))),n.lanes|=1),e)}var CN=Ar.ReactCurrentOwner,At=!1;function yt(e,t,n,r){t.child=e===null?e$(t,null,n,r):Uo(t,e.child,n,r)}function wb(e,t,n,r,i){n=n.render;var o=t.ref;return No(t,i),r=py(e,t,n,r,o,i),n=hy(),e!==null&&!At?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,wr(e,t,i)):(Te&&n&&ty(t),t.flags|=1,yt(e,t,r,i),t.child)}function _b(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Ey(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,$$(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:Hl,n(a,r)&&e.ref===t.ref)return wr(e,t,i)}return t.flags|=1,e=Gr(o,r),e.ref=t.ref,e.return=t,t.child=e}function $$(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Hl(o,r)&&e.ref===t.ref)if(At=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(At=!0);else return t.lanes=e.lanes,wr(e,t,i)}return Am(e,t,n,r,i)}function P$(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},we(Eo,Rt),Rt|=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,we(Eo,Rt),Rt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,we(Eo,Rt),Rt|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,we(Eo,Rt),Rt|=r;return yt(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 Am(e,t,n,r,i){var o=kt(n)?Li:vt.current;return o=Bo(t,o),No(t,i),n=py(e,t,n,r,o,i),r=hy(),e!==null&&!At?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,wr(e,t,i)):(Te&&r&&ty(t),t.flags|=1,yt(e,t,n,i),t.child)}function Sb(e,t,n,r,i){if(kt(n)){var o=!0;jc(t)}else o=!1;if(No(t,i),t.stateNode===null)ac(e,t),S$(t,n,r),$m(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=sn(u):(u=kt(n)?Li:vt.current,u=Bo(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)&&gb(t,a,r,u),Mr=!1;var d=t.memoizedState;a.state=d,Ic(t,r,a,i),s=t.memoizedState,l!==r||d!==s||Ct.current||Mr?(typeof c=="function"&&(Om(t,n,c,r),s=t.memoizedState),(l=Mr||vb(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,n$(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:gn(t.type,l),a.props=u,f=t.pendingProps,d=a.context,s=n.contextType,typeof s=="object"&&s!==null?s=sn(s):(s=kt(n)?Li:vt.current,s=Bo(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)&&gb(t,a,r,s),Mr=!1,d=t.memoizedState,a.state=d,Ic(t,r,a,i);var m=t.memoizedState;l!==f||d!==m||Ct.current||Mr?(typeof p=="function"&&(Om(t,n,p,r),m=t.memoizedState),(u=Mr||vb(t,n,u,r,d,m,s)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,m,s),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,m,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=m),a.props=r,a.state=m,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 Tm(e,t,n,r,o,i)}function Tm(e,t,n,r,i,o){A$(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&sb(t,n,!1),wr(e,t,o);r=t.stateNode,CN.current=t;var l=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Uo(t,e.child,null,o),t.child=Uo(t,null,l,o)):yt(e,t,l,o),t.memoizedState=r.state,i&&sb(t,n,!0),t.child}function T$(e){var t=e.stateNode;t.pendingContext?lb(e,t.pendingContext,t.pendingContext!==t.context):t.context&&lb(e,t.context,!1),uy(e,t.containerInfo)}function Eb(e,t,n,r,i){return zo(),ry(i),t.flags|=256,yt(e,t,n,r),t.child}var jm={dehydrated:null,treeContext:null,retryLane:0};function Cm(e){return{baseLanes:e,cachePool:null,transitions:null}}function j$(e,t,n){var r=t.pendingProps,i=ke.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),we(ke,i&1),e===null)return Sm(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=dd(a,r,0,null),e=Ni(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Cm(n),t.memoizedState=jm,e):gy(t,a));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return kN(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=Gr(i,s),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=Gr(l,o):(o=Ni(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?Cm(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=jm,r}return o=e.child,e=o.sibling,r=Gr(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 gy(e,t){return t=dd({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Au(e,t,n,r){return r!==null&&ry(r),Uo(t,e.child,null,n),e=gy(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function kN(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=Qp(Error(W(422))),Au(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=dd({mode:"visible",children:r.children},i,0,null),o=Ni(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Uo(t,e.child,null,a),t.child.memoizedState=Cm(a),t.memoizedState=jm,o);if(!(t.mode&1))return Au(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=Qp(o,r,void 0),Au(e,t,a,r)}if(l=(a&e.childLanes)!==0,At||l){if(r=tt,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,br(e,i),Sn(r,e,i,-1))}return Sy(),r=Qp(Error(W(421))),Au(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=VN.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Dt=Wr(i.nextSibling),Ft=t,Te=!0,xn=null,e!==null&&(Zt[Jt++]=or,Zt[Jt++]=ar,Zt[Jt++]=Di,or=e.id,ar=e.overflow,Di=t),t=gy(t,r.children),t.flags|=4096,t)}function Ob(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Em(e.return,t,n)}function Zp(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 C$(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(yt(e,t,r.children,n),r=ke.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&&Ob(e,n,t);else if(e.tag===19)Ob(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(we(ke,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&&Rc(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Zp(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&&Rc(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Zp(t,!0,n,null,o);break;case"together":Zp(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 wr(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Bi|=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=Gr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Gr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function NN(e,t,n){switch(t.tag){case 3:T$(t),zo();break;case 5:r$(t);break;case 1:kt(t.type)&&jc(t);break;case 4:uy(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;we(Nc,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(we(ke,ke.current&1),t.flags|=128,null):n&t.child.childLanes?j$(e,t,n):(we(ke,ke.current&1),e=wr(e,t,n),e!==null?e.sibling:null);we(ke,ke.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),we(ke,ke.current),r)break;return null;case 22:case 23:return t.lanes=0,P$(e,t,n)}return wr(e,t,n)}var k$,km,N$,M$;k$=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}};km=function(){};N$=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Oi(Fn.current);var o=null;switch(n){case"input":i=em(e,i),r=em(e,r),o=[];break;case"select":i=Ie({},i,{value:void 0}),r=Ie({},r,{value:void 0}),o=[];break;case"textarea":i=rm(e,i),r=rm(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ac)}om(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"&&(Rl.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"&&(Rl.hasOwnProperty(u)?(s!=null&&u==="onScroll"&&Se("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)}};M$=function(e,t,n,r){n!==r&&(t.flags|=4)};function Xa(e,t){if(!Te)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 dt(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 MN(e,t,n){var r=t.pendingProps;switch(ny(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return dt(t),null;case 1:return kt(t.type)&&Tc(),dt(t),null;case 3:return r=t.stateNode,Ho(),Pe(Ct),Pe(vt),fy(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&($u(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,xn!==null&&(Bm(xn),xn=null))),km(e,t),dt(t),null;case 5:cy(t);var i=Oi(Gl.current);if(n=t.type,e!==null&&t.stateNode!=null)N$(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 dt(t),null}if(e=Oi(Fn.current),$u(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Rn]=t,r[Kl]=o,e=(t.mode&1)!==0,n){case"dialog":Se("cancel",r),Se("close",r);break;case"iframe":case"object":case"embed":Se("load",r);break;case"video":case"audio":for(i=0;i<hl.length;i++)Se(hl[i],r);break;case"source":Se("error",r);break;case"img":case"image":case"link":Se("error",r),Se("load",r);break;case"details":Se("toggle",r);break;case"input":Mx(r,o),Se("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Se("invalid",r);break;case"textarea":Rx(r,o),Se("invalid",r)}om(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&&Ou(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&Ou(r.textContent,l,e),i=["children",""+l]):Rl.hasOwnProperty(a)&&l!=null&&a==="onScroll"&&Se("scroll",r)}switch(n){case"input":gu(r),Ix(r,o,!0);break;case"textarea":gu(r),Lx(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Ac)}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=sO(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[Rn]=t,e[Kl]=r,k$(e,t,!1,!1),t.stateNode=e;e:{switch(a=am(n,r),n){case"dialog":Se("cancel",e),Se("close",e),i=r;break;case"iframe":case"object":case"embed":Se("load",e),i=r;break;case"video":case"audio":for(i=0;i<hl.length;i++)Se(hl[i],e);i=r;break;case"source":Se("error",e),i=r;break;case"img":case"image":case"link":Se("error",e),Se("load",e),i=r;break;case"details":Se("toggle",e),i=r;break;case"input":Mx(e,r),i=em(e,r),Se("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Ie({},r,{value:void 0}),Se("invalid",e);break;case"textarea":Rx(e,r),i=rm(e,r),Se("invalid",e);break;default:i=r}om(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var s=l[o];o==="style"?fO(e,s):o==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&uO(e,s)):o==="children"?typeof s=="string"?(n!=="textarea"||s!=="")&&Ll(e,s):typeof s=="number"&&Ll(e,""+s):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Rl.hasOwnProperty(o)?s!=null&&o==="onScroll"&&Se("scroll",e):s!=null&&zg(e,o,s,a))}switch(n){case"input":gu(e),Ix(e,r,!1);break;case"textarea":gu(e),Lx(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Zr(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?To(e,!!r.multiple,o,!1):r.defaultValue!=null&&To(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Ac)}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 dt(t),null;case 6:if(e&&t.stateNode!=null)M$(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(W(166));if(n=Oi(Gl.current),Oi(Fn.current),$u(t)){if(r=t.stateNode,n=t.memoizedProps,r[Rn]=t,(o=r.nodeValue!==n)&&(e=Ft,e!==null))switch(e.tag){case 3:Ou(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ou(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Rn]=t,t.stateNode=r}return dt(t),null;case 13:if(Pe(ke),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Te&&Dt!==null&&t.mode&1&&!(t.flags&128))ZO(),zo(),t.flags|=98560,o=!1;else if(o=$u(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[Rn]=t}else zo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;dt(t),o=!1}else xn!==null&&(Bm(xn),xn=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||ke.current&1?Xe===0&&(Xe=3):Sy())),t.updateQueue!==null&&(t.flags|=4),dt(t),null);case 4:return Ho(),km(e,t),e===null&&Wl(t.stateNode.containerInfo),dt(t),null;case 10:return ay(t.type._context),dt(t),null;case 17:return kt(t.type)&&Tc(),dt(t),null;case 19:if(Pe(ke),o=t.memoizedState,o===null)return dt(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)Xa(o,!1);else{if(Xe!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Rc(e),a!==null){for(t.flags|=128,Xa(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 we(ke,ke.current&1|2),t.child}e=e.sibling}o.tail!==null&&Be()>Vo&&(t.flags|=128,r=!0,Xa(o,!1),t.lanes=4194304)}else{if(!r)if(e=Rc(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Xa(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Te)return dt(t),null}else 2*Be()-o.renderingStartTime>Vo&&n!==1073741824&&(t.flags|=128,r=!0,Xa(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=Be(),t.sibling=null,n=ke.current,we(ke,r?n&1|2:n&1),t):(dt(t),null);case 22:case 23:return _y(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Rt&1073741824&&(dt(t),t.subtreeFlags&6&&(t.flags|=8192)):dt(t),null;case 24:return null;case 25:return null}throw Error(W(156,t.tag))}function IN(e,t){switch(ny(t),t.tag){case 1:return kt(t.type)&&Tc(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ho(),Pe(Ct),Pe(vt),fy(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return cy(t),null;case 13:if(Pe(ke),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(W(340));zo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Pe(ke),null;case 4:return Ho(),null;case 10:return ay(t.type._context),null;case 22:case 23:return _y(),null;case 24:return null;default:return null}}var Tu=!1,pt=!1,RN=typeof WeakSet=="function"?WeakSet:Set,q=null;function So(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Re(e,t,r)}else n.current=null}function Nm(e,t,n){try{n()}catch(r){Re(e,t,r)}}var $b=!1;function LN(e,t){if(vm=Oc,e=FO(),ey(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(gm={focusedElem:e,selectionRange:n},Oc=!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 m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var v=m.memoizedProps,y=m.memoizedState,h=t.stateNode,g=h.getSnapshotBeforeUpdate(t.elementType===t.type?v:gn(t.type,v),y);h.__reactInternalSnapshotBeforeUpdate=g}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){Re(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return m=$b,$b=!1,m}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&&Nm(t,n,o)}i=i.next}while(i!==r)}}function cd(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 Mm(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 I$(e){var t=e.alternate;t!==null&&(e.alternate=null,I$(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Rn],delete t[Kl],delete t[bm],delete t[xN],delete t[bN])),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 R$(e){return e.tag===5||e.tag===3||e.tag===4}function Pb(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||R$(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 Im(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=Ac));else if(r!==4&&(e=e.child,e!==null))for(Im(e,t,n),e=e.sibling;e!==null;)Im(e,t,n),e=e.sibling}function Rm(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(Rm(e,t,n),e=e.sibling;e!==null;)Rm(e,t,n),e=e.sibling}var it=null,yn=!1;function kr(e,t,n){for(n=n.child;n!==null;)L$(e,t,n),n=n.sibling}function L$(e,t,n){if(Dn&&typeof Dn.onCommitFiberUnmount=="function")try{Dn.onCommitFiberUnmount(nd,n)}catch{}switch(n.tag){case 5:pt||So(n,t);case 6:var r=it,i=yn;it=null,kr(e,t,n),it=r,yn=i,it!==null&&(yn?(e=it,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):it.removeChild(n.stateNode));break;case 18:it!==null&&(yn?(e=it,n=n.stateNode,e.nodeType===8?Vp(e.parentNode,n):e.nodeType===1&&Vp(e,n),zl(e)):Vp(it,n.stateNode));break;case 4:r=it,i=yn,it=n.stateNode.containerInfo,yn=!0,kr(e,t,n),it=r,yn=i;break;case 0:case 11:case 14:case 15:if(!pt&&(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)&&Nm(n,t,a),i=i.next}while(i!==r)}kr(e,t,n);break;case 1:if(!pt&&(So(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Re(n,t,l)}kr(e,t,n);break;case 21:kr(e,t,n);break;case 22:n.mode&1?(pt=(r=pt)||n.memoizedState!==null,kr(e,t,n),pt=r):kr(e,t,n);break;default:kr(e,t,n)}}function Ab(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new RN),t.forEach(function(r){var i=KN.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function mn(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:it=l.stateNode,yn=!1;break e;case 3:it=l.stateNode.containerInfo,yn=!0;break e;case 4:it=l.stateNode.containerInfo,yn=!0;break e}l=l.return}if(it===null)throw Error(W(160));L$(o,a,i),it=null,yn=!1;var s=i.alternate;s!==null&&(s.return=null),i.return=null}catch(u){Re(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)D$(t,e),t=t.sibling}function D$(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(mn(t,e),Nn(e),r&4){try{$l(3,e,e.return),cd(3,e)}catch(v){Re(e,e.return,v)}try{$l(5,e,e.return)}catch(v){Re(e,e.return,v)}}break;case 1:mn(t,e),Nn(e),r&512&&n!==null&&So(n,n.return);break;case 5:if(mn(t,e),Nn(e),r&512&&n!==null&&So(n,n.return),e.flags&32){var i=e.stateNode;try{Ll(i,"")}catch(v){Re(e,e.return,v)}}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&&aO(i,o),am(l,a);var u=am(l,o);for(a=0;a<s.length;a+=2){var c=s[a],f=s[a+1];c==="style"?fO(i,f):c==="dangerouslySetInnerHTML"?uO(i,f):c==="children"?Ll(i,f):zg(i,c,f,u)}switch(l){case"input":tm(i,o);break;case"textarea":lO(i,o);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?To(i,!!o.multiple,p,!1):d!==!!o.multiple&&(o.defaultValue!=null?To(i,!!o.multiple,o.defaultValue,!0):To(i,!!o.multiple,o.multiple?[]:"",!1))}i[Kl]=o}catch(v){Re(e,e.return,v)}}break;case 6:if(mn(t,e),Nn(e),r&4){if(e.stateNode===null)throw Error(W(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(v){Re(e,e.return,v)}}break;case 3:if(mn(t,e),Nn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{zl(t.containerInfo)}catch(v){Re(e,e.return,v)}break;case 4:mn(t,e),Nn(e);break;case 13:mn(t,e),Nn(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(by=Be())),r&4&&Ab(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(pt=(u=pt)||c,mn(t,e),pt=u):mn(t,e),Nn(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:So(d,d.return);var m=d.stateNode;if(typeof m.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(v){Re(r,n,v)}}break;case 5:So(d,d.return);break;case 22:if(d.memoizedState!==null){jb(f);continue}}p!==null?(p.return=d,q=p):jb(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=cO("display",a))}catch(v){Re(e,e.return,v)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(v){Re(e,e.return,v)}}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:mn(t,e),Nn(e),r&4&&Ab(e);break;case 21:break;default:mn(t,e),Nn(e)}}function Nn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(R$(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&&(Ll(i,""),r.flags&=-33);var o=Pb(e);Rm(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,l=Pb(e);Im(e,l,a);break;default:throw Error(W(161))}}catch(s){Re(e,e.return,s)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function DN(e,t,n){q=e,F$(e)}function F$(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||Tu;if(!a){var l=i.alternate,s=l!==null&&l.memoizedState!==null||pt;l=Tu;var u=pt;if(Tu=a,(pt=s)&&!u)for(q=i;q!==null;)a=q,s=a.child,a.tag===22&&a.memoizedState!==null?Cb(i):s!==null?(s.return=a,q=s):Cb(i);for(;o!==null;)q=o,F$(o),o=o.sibling;q=i,Tu=l,pt=u}Tb(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,q=o):Tb(e)}}function Tb(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:pt||cd(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!pt)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:gn(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&pb(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}pb(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&&zl(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(W(163))}pt||t.flags&512&&Mm(t)}catch(d){Re(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 jb(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 Cb(e){for(;q!==null;){var t=q;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{cd(4,t)}catch(s){Re(t,n,s)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(s){Re(t,i,s)}}var o=t.return;try{Mm(t)}catch(s){Re(t,o,s)}break;case 5:var a=t.return;try{Mm(t)}catch(s){Re(t,a,s)}}}catch(s){Re(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 FN=Math.ceil,Fc=Ar.ReactCurrentDispatcher,yy=Ar.ReactCurrentOwner,ln=Ar.ReactCurrentBatchConfig,le=0,tt=null,He=null,lt=0,Rt=0,Eo=ni(0),Xe=0,Zl=null,Bi=0,fd=0,xy=0,Pl=null,Pt=null,by=0,Vo=1/0,er=null,Bc=!1,Lm=null,Kr=null,ju=!1,Fr=null,zc=0,Al=0,Dm=null,lc=-1,sc=0;function _t(){return le&6?Be():lc!==-1?lc:lc=Be()}function qr(e){return e.mode&1?le&2&&lt!==0?lt&-lt:_N.transition!==null?(sc===0&&(sc=SO()),sc):(e=pe,e!==0||(e=window.event,e=e===void 0?16:jO(e.type)),e):1}function Sn(e,t,n,r){if(50<Al)throw Al=0,Dm=null,Error(W(185));Fs(e,n,r),(!(le&2)||e!==tt)&&(e===tt&&(!(le&2)&&(fd|=n),Xe===4&&Lr(e,lt)),Nt(e,r),n===1&&le===0&&!(t.mode&1)&&(Vo=Be()+500,ld&&ri()))}function Nt(e,t){var n=e.callbackNode;_k(e,t);var r=Ec(e,e===tt?lt:0);if(r===0)n!==null&&Bx(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Bx(n),t===1)e.tag===0?wN(kb.bind(null,e)):XO(kb.bind(null,e)),gN(function(){!(le&6)&&ri()}),n=null;else{switch(EO(r)){case 1:n=Kg;break;case 4:n=wO;break;case 16:n=Sc;break;case 536870912:n=_O;break;default:n=Sc}n=q$(n,B$.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function B$(e,t){if(lc=-1,sc=0,le&6)throw Error(W(327));var n=e.callbackNode;if(Mo()&&e.callbackNode!==n)return null;var r=Ec(e,e===tt?lt:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Uc(e,r);else{t=r;var i=le;le|=2;var o=U$();(tt!==e||lt!==t)&&(er=null,Vo=Be()+500,ki(e,t));do try{UN();break}catch(l){z$(e,l)}while(!0);oy(),Fc.current=o,le=i,He!==null?t=0:(tt=null,lt=0,t=Xe)}if(t!==0){if(t===2&&(i=fm(e),i!==0&&(r=i,t=Fm(e,i))),t===1)throw n=Zl,ki(e,0),Lr(e,r),Nt(e,Be()),n;if(t===6)Lr(e,r);else{if(i=e.current.alternate,!(r&30)&&!BN(i)&&(t=Uc(e,r),t===2&&(o=fm(e),o!==0&&(r=o,t=Fm(e,o))),t===1))throw n=Zl,ki(e,0),Lr(e,r),Nt(e,Be()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(W(345));case 2:gi(e,Pt,er);break;case 3:if(Lr(e,r),(r&130023424)===r&&(t=by+500-Be(),10<t)){if(Ec(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){_t(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=xm(gi.bind(null,e,Pt,er),t);break}gi(e,Pt,er);break;case 4:if(Lr(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-_n(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=Be()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*FN(r/1960))-r,10<r){e.timeoutHandle=xm(gi.bind(null,e,Pt,er),r);break}gi(e,Pt,er);break;case 5:gi(e,Pt,er);break;default:throw Error(W(329))}}}return Nt(e,Be()),e.callbackNode===n?B$.bind(null,e):null}function Fm(e,t){var n=Pl;return e.current.memoizedState.isDehydrated&&(ki(e,t).flags|=256),e=Uc(e,t),e!==2&&(t=Pt,Pt=n,t!==null&&Bm(t)),e}function Bm(e){Pt===null?Pt=e:Pt.push.apply(Pt,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],o=i.getSnapshot;i=i.value;try{if(!$n(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 Lr(e,t){for(t&=~xy,t&=~fd,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 kb(e){if(le&6)throw Error(W(327));Mo();var t=Ec(e,0);if(!(t&1))return Nt(e,Be()),null;var n=Uc(e,t);if(e.tag!==0&&n===2){var r=fm(e);r!==0&&(t=r,n=Fm(e,r))}if(n===1)throw n=Zl,ki(e,0),Lr(e,t),Nt(e,Be()),n;if(n===6)throw Error(W(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,gi(e,Pt,er),Nt(e,Be()),null}function wy(e,t){var n=le;le|=1;try{return e(t)}finally{le=n,le===0&&(Vo=Be()+500,ld&&ri())}}function zi(e){Fr!==null&&Fr.tag===0&&!(le&6)&&Mo();var t=le;le|=1;var n=ln.transition,r=pe;try{if(ln.transition=null,pe=1,e)return e()}finally{pe=r,ln.transition=n,le=t,!(le&6)&&ri()}}function _y(){Rt=Eo.current,Pe(Eo)}function ki(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,vN(n)),He!==null)for(n=He.return;n!==null;){var r=n;switch(ny(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Tc();break;case 3:Ho(),Pe(Ct),Pe(vt),fy();break;case 5:cy(r);break;case 4:Ho();break;case 13:Pe(ke);break;case 19:Pe(ke);break;case 10:ay(r.type._context);break;case 22:case 23:_y()}n=n.return}if(tt=e,He=e=Gr(e.current,null),lt=Rt=t,Xe=0,Zl=null,xy=fd=Bi=0,Pt=Pl=null,Ei!==null){for(t=0;t<Ei.length;t++)if(n=Ei[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}Ei=null}return e}function z$(e,t){do{var n=He;try{if(oy(),ic.current=Dc,Lc){for(var r=Ne.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Lc=!1}if(Fi=0,Je=qe=Ne=null,Ol=!1,Xl=0,yy.current=null,n===null||n.return===null){Xe=1,Zl=t,He=null;break}e:{var o=e,a=n.return,l=n,s=t;if(t=lt,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=xb(a);if(p!==null){p.flags&=-257,bb(p,a,l,o,t),p.mode&1&&yb(o,u,t),t=p,s=u;var m=t.updateQueue;if(m===null){var v=new Set;v.add(s),t.updateQueue=v}else m.add(s);break e}else{if(!(t&1)){yb(o,u,t),Sy();break e}s=Error(W(426))}}else if(Te&&l.mode&1){var y=xb(a);if(y!==null){!(y.flags&65536)&&(y.flags|=256),bb(y,a,l,o,t),ry(Wo(s,l));break e}}o=s=Wo(s,l),Xe!==4&&(Xe=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 h=E$(o,s,t);db(o,h);break e;case 1:l=s;var g=o.type,x=o.stateNode;if(!(o.flags&128)&&(typeof g.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Kr===null||!Kr.has(x)))){o.flags|=65536,t&=-t,o.lanes|=t;var E=O$(o,l,t);db(o,E);break e}}o=o.return}while(o!==null)}W$(n)}catch(w){t=w,He===n&&n!==null&&(He=n=n.return);continue}break}while(!0)}function U$(){var e=Fc.current;return Fc.current=Dc,e===null?Dc:e}function Sy(){(Xe===0||Xe===3||Xe===2)&&(Xe=4),tt===null||!(Bi&268435455)&&!(fd&268435455)||Lr(tt,lt)}function Uc(e,t){var n=le;le|=2;var r=U$();(tt!==e||lt!==t)&&(er=null,ki(e,t));do try{zN();break}catch(i){z$(e,i)}while(!0);if(oy(),le=n,Fc.current=r,He!==null)throw Error(W(261));return tt=null,lt=0,Xe}function zN(){for(;He!==null;)H$(He)}function UN(){for(;He!==null&&!pk();)H$(He)}function H$(e){var t=K$(e.alternate,e,Rt);e.memoizedProps=e.pendingProps,t===null?W$(e):He=t,yy.current=null}function W$(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=IN(n,t),n!==null){n.flags&=32767,He=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Xe=6,He=null;return}}else if(n=MN(n,t,Rt),n!==null){He=n;return}if(t=t.sibling,t!==null){He=t;return}He=t=e}while(t!==null);Xe===0&&(Xe=5)}function gi(e,t,n){var r=pe,i=ln.transition;try{ln.transition=null,pe=1,HN(e,t,n,r)}finally{ln.transition=i,pe=r}return null}function HN(e,t,n,r){do Mo();while(Fr!==null);if(le&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(Sk(e,o),e===tt&&(He=tt=null,lt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ju||(ju=!0,q$(Sc,function(){return Mo(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=ln.transition,ln.transition=null;var a=pe;pe=1;var l=le;le|=4,yy.current=null,LN(e,n),D$(n,e),uN(gm),Oc=!!vm,gm=vm=null,e.current=n,DN(n),hk(),le=l,pe=a,ln.transition=o}else e.current=n;if(ju&&(ju=!1,Fr=e,zc=i),o=e.pendingLanes,o===0&&(Kr=null),gk(n.stateNode),Nt(e,Be()),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(Bc)throw Bc=!1,e=Lm,Lm=null,e;return zc&1&&e.tag!==0&&Mo(),o=e.pendingLanes,o&1?e===Dm?Al++:(Al=0,Dm=e):Al=0,ri(),null}function Mo(){if(Fr!==null){var e=EO(zc),t=ln.transition,n=pe;try{if(ln.transition=null,pe=16>e?16:e,Fr===null)var r=!1;else{if(e=Fr,Fr=null,zc=0,le&6)throw Error(W(331));var i=le;for(le|=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(I$(c),c===u){q=null;break}if(d!==null){d.return=p,q=d;break}q=p}}}var m=o.alternate;if(m!==null){var v=m.child;if(v!==null){m.child=null;do{var y=v.sibling;v.sibling=null,v=y}while(v!==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 h=o.sibling;if(h!==null){h.return=o.return,q=h;break e}q=o.return}}var g=e.current;for(q=g;q!==null;){a=q;var x=a.child;if(a.subtreeFlags&2064&&x!==null)x.return=a,q=x;else e:for(a=g;q!==null;){if(l=q,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:cd(9,l)}}catch(w){Re(l,l.return,w)}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(le=i,ri(),Dn&&typeof Dn.onPostCommitFiberRoot=="function")try{Dn.onPostCommitFiberRoot(nd,e)}catch{}r=!0}return r}finally{pe=n,ln.transition=t}}return!1}function Nb(e,t,n){t=Wo(n,t),t=E$(e,t,1),e=Vr(e,t,1),t=_t(),e!==null&&(Fs(e,1,t),Nt(e,t))}function Re(e,t,n){if(e.tag===3)Nb(e,e,n);else for(;t!==null;){if(t.tag===3){Nb(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Kr===null||!Kr.has(r))){e=Wo(n,e),e=O$(t,e,1),t=Vr(t,e,1),e=_t(),t!==null&&(Fs(t,1,e),Nt(t,e));break}}t=t.return}}function WN(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=_t(),e.pingedLanes|=e.suspendedLanes&n,tt===e&&(lt&n)===n&&(Xe===4||Xe===3&&(lt&130023424)===lt&&500>Be()-by?ki(e,0):xy|=n),Nt(e,t)}function V$(e,t){t===0&&(e.mode&1?(t=bu,bu<<=1,!(bu&130023424)&&(bu=4194304)):t=1);var n=_t();e=br(e,t),e!==null&&(Fs(e,t,n),Nt(e,n))}function VN(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),V$(e,n)}function KN(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),V$(e,n)}var K$;K$=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ct.current)At=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return At=!1,NN(e,t,n);At=!!(e.flags&131072)}else At=!1,Te&&t.flags&1048576&&YO(t,kc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ac(e,t),e=t.pendingProps;var i=Bo(t,vt.current);No(t,n),i=py(null,t,r,e,i,n);var o=hy();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,kt(r)?(o=!0,jc(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,sy(t),i.updater=ud,t.stateNode=i,i._reactInternals=t,$m(t,r,e,n),t=Tm(null,t,r,!0,o,n)):(t.tag=0,Te&&o&&ty(t),yt(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=GN(r),e=gn(r,e),i){case 0:t=Am(null,t,r,e,n);break e;case 1:t=Sb(null,t,r,e,n);break e;case 11:t=wb(null,t,r,e,n);break e;case 14:t=_b(null,t,r,gn(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:gn(r,i),Am(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gn(r,i),Sb(e,t,r,i,n);case 3:e:{if(T$(t),e===null)throw Error(W(387));r=t.pendingProps,o=t.memoizedState,i=o.element,n$(e,t),Ic(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=Wo(Error(W(423)),t),t=Eb(e,t,r,n,i);break e}else if(r!==i){i=Wo(Error(W(424)),t),t=Eb(e,t,r,n,i);break e}else for(Dt=Wr(t.stateNode.containerInfo.firstChild),Ft=t,Te=!0,xn=null,n=e$(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(zo(),r===i){t=wr(e,t,n);break e}yt(e,t,r,n)}t=t.child}return t;case 5:return r$(t),e===null&&Sm(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,ym(r,i)?a=null:o!==null&&ym(r,o)&&(t.flags|=32),A$(e,t),yt(e,t,a,n),t.child;case 6:return e===null&&Sm(t),null;case 13:return j$(e,t,n);case 4:return uy(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Uo(t,null,r,n):yt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gn(r,i),wb(e,t,r,i,n);case 7:return yt(e,t,t.pendingProps,n),t.child;case 8:return yt(e,t,t.pendingProps.children,n),t.child;case 12:return yt(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,we(Nc,r._currentValue),r._currentValue=a,o!==null)if($n(o.value,a)){if(o.children===i.children&&!Ct.current){t=wr(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),Em(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),Em(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}yt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,No(t,n),i=sn(i),r=r(i),t.flags|=1,yt(e,t,r,n),t.child;case 14:return r=t.type,i=gn(r,t.pendingProps),i=gn(r.type,i),_b(e,t,r,i,n);case 15:return $$(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:gn(r,i),ac(e,t),t.tag=1,kt(r)?(e=!0,jc(t)):e=!1,No(t,n),S$(t,r,i),$m(t,r,i,n),Tm(null,t,r,!0,e,n);case 19:return C$(e,t,n);case 22:return P$(e,t,n)}throw Error(W(156,t.tag))};function q$(e,t){return bO(e,t)}function qN(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 nn(e,t,n,r){return new qN(e,t,n,r)}function Ey(e){return e=e.prototype,!(!e||!e.isReactComponent)}function GN(e){if(typeof e=="function")return Ey(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Hg)return 11;if(e===Wg)return 14}return 2}function Gr(e,t){var n=e.alternate;return n===null?(n=nn(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")Ey(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case ho:return Ni(n.children,i,o,t);case Ug:a=8,i|=8;break;case Yh:return e=nn(12,n,t,i|2),e.elementType=Yh,e.lanes=o,e;case Qh:return e=nn(13,n,t,i),e.elementType=Qh,e.lanes=o,e;case Zh:return e=nn(19,n,t,i),e.elementType=Zh,e.lanes=o,e;case rO:return dd(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case tO:a=10;break e;case nO:a=9;break e;case Hg:a=11;break e;case Wg:a=14;break e;case Nr:a=16,r=null;break e}throw Error(W(130,e==null?e:typeof e,""))}return t=nn(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Ni(e,t,n,r){return e=nn(7,e,r,t),e.lanes=n,e}function dd(e,t,n,r){return e=nn(22,e,r,t),e.elementType=rO,e.lanes=n,e.stateNode={isHidden:!1},e}function Jp(e,t,n){return e=nn(6,e,null,t),e.lanes=n,e}function eh(e,t,n){return t=nn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function XN(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=Mp(0),this.expirationTimes=Mp(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mp(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Oy(e,t,n,r,i,o,a,l,s){return e=new XN(e,t,n,l,s),t===1?(t=1,o===!0&&(t|=8)):t=0,o=nn(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},sy(o),e}function YN(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:po,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function G$(e){if(!e)return Jr;e=e._reactInternals;e:{if(Qi(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(kt(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(kt(n))return GO(e,n,t)}return t}function X$(e,t,n,r,i,o,a,l,s){return e=Oy(n,r,!0,e,i,o,a,l,s),e.context=G$(null),n=e.current,r=_t(),i=qr(n),o=ur(r,i),o.callback=t??null,Vr(n,o,i),e.current.lanes=i,Fs(e,i,r),Nt(e,r),e}function pd(e,t,n,r){var i=t.current,o=_t(),a=qr(i);return n=G$(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=Vr(i,t,a),e!==null&&(Sn(e,i,a,o),rc(e,i,a)),a}function Hc(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 Mb(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function $y(e,t){Mb(e,t),(e=e.alternate)&&Mb(e,t)}function QN(){return null}var Y$=typeof reportError=="function"?reportError:function(e){console.error(e)};function Py(e){this._internalRoot=e}hd.prototype.render=Py.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(W(409));pd(e,t,null,null)};hd.prototype.unmount=Py.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;zi(function(){pd(null,e,null,null)}),t[xr]=null}};function hd(e){this._internalRoot=e}hd.prototype.unstable_scheduleHydration=function(e){if(e){var t=PO();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rr.length&&t!==0&&t<Rr[n].priority;n++);Rr.splice(n,0,e),n===0&&TO(e)}};function Ay(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function md(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Ib(){}function ZN(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=Hc(a);o.call(u)}}var a=X$(t,r,e,0,null,!1,!1,"",Ib);return e._reactRootContainer=a,e[xr]=a.current,Wl(e.nodeType===8?e.parentNode:e),zi(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=Hc(s);l.call(u)}}var s=Oy(e,0,!1,null,null,!1,!1,"",Ib);return e._reactRootContainer=s,e[xr]=s.current,Wl(e.nodeType===8?e.parentNode:e),zi(function(){pd(t,s,n,r)}),s}function vd(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=Hc(a);l.call(s)}}pd(t,a,e,i)}else a=ZN(n,t,e,i,r);return Hc(a)}OO=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=pl(t.pendingLanes);n!==0&&(qg(t,n|1),Nt(t,Be()),!(le&6)&&(Vo=Be()+500,ri()))}break;case 13:zi(function(){var r=br(e,1);if(r!==null){var i=_t();Sn(r,e,1,i)}}),$y(e,1)}};Gg=function(e){if(e.tag===13){var t=br(e,134217728);if(t!==null){var n=_t();Sn(t,e,134217728,n)}$y(e,134217728)}};$O=function(e){if(e.tag===13){var t=qr(e),n=br(e,t);if(n!==null){var r=_t();Sn(n,e,t,r)}$y(e,t)}};PO=function(){return pe};AO=function(e,t){var n=pe;try{return pe=e,t()}finally{pe=n}};sm=function(e,t,n){switch(t){case"input":if(tm(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=ad(r);if(!i)throw Error(W(90));oO(r),tm(r,i)}}}break;case"textarea":lO(e,n);break;case"select":t=n.value,t!=null&&To(e,!!n.multiple,t,!1)}};hO=wy;mO=zi;var JN={usingClientEntryPoint:!1,Events:[zs,yo,ad,dO,pO,wy]},Ya={findFiberByHostInstance:Si,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},eM={bundleType:Ya.bundleType,version:Ya.version,rendererPackageName:Ya.rendererPackageName,rendererConfig:Ya.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ar.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=yO(e),e===null?null:e.stateNode},findFiberByHostInstance:Ya.findFiberByHostInstance||QN,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 Cu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cu.isDisabled&&Cu.supportsFiber)try{nd=Cu.inject(eM),Dn=Cu}catch{}}Wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=JN;Wt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ay(t))throw Error(W(200));return YN(e,t,null,n)};Wt.createRoot=function(e,t){if(!Ay(e))throw Error(W(299));var n=!1,r="",i=Y$;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Oy(e,1,!1,null,null,n,!1,r,i),e[xr]=t.current,Wl(e.nodeType===8?e.parentNode:e),new Py(t)};Wt.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=yO(t),e=e===null?null:e.stateNode,e};Wt.flushSync=function(e){return zi(e)};Wt.hydrate=function(e,t,n){if(!md(t))throw Error(W(200));return vd(null,e,t,!0,n)};Wt.hydrateRoot=function(e,t,n){if(!Ay(e))throw Error(W(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=Y$;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=X$(t,null,e,1,n??null,i,!1,o,a),e[xr]=t.current,Wl(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 hd(t)};Wt.render=function(e,t,n){if(!md(t))throw Error(W(200));return vd(null,e,t,!1,n)};Wt.unmountComponentAtNode=function(e){if(!md(e))throw Error(W(40));return e._reactRootContainer?(zi(function(){vd(null,null,e,!1,function(){e._reactRootContainer=null,e[xr]=null})}),!0):!1};Wt.unstable_batchedUpdates=wy;Wt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!md(n))throw Error(W(200));if(e==null||e._reactInternals===void 0)throw Error(W(38));return vd(e,t,n,!1,r)};Wt.version="18.3.1-next-f1338f8080-20240426";function Q$(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Q$)}catch(e){console.error(e)}}Q$(),QE.exports=Wt;var Bt=QE.exports,Rb=Bt;Gh.createRoot=Rb.createRoot,Gh.hydrateRoot=Rb.hydrateRoot;var Ty={};Object.defineProperty(Ty,"__esModule",{value:!0});Ty.parse=lM;Ty.serialize=sM;const tM=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,nM=/^[\u0021-\u003A\u003C-\u007E]*$/,rM=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,iM=/^[\u0020-\u003A\u003D-\u007E]*$/,oM=Object.prototype.toString,aM=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function lM(e,t){const n=new aM,r=e.length;if(r<2)return n;const i=(t==null?void 0:t.decode)||uM;let o=0;do{const a=e.indexOf("=",o);if(a===-1)break;const l=e.indexOf(";",o),s=l===-1?r:l;if(a>s){o=e.lastIndexOf(";",a-1)+1;continue}const u=Lb(e,o,a),c=Db(e,a,u),f=e.slice(u,c);if(n[f]===void 0){let d=Lb(e,a+1,s),p=Db(e,s,d);const m=i(e.slice(d,p));n[f]=m}o=s+1}while(o<r);return n}function Lb(e,t,n){do{const r=e.charCodeAt(t);if(r!==32&&r!==9)return t}while(++t<n);return n}function Db(e,t,n){for(;t>n;){const r=e.charCodeAt(--t);if(r!==32&&r!==9)return t+1}return n}function sM(e,t,n){const r=(n==null?void 0:n.encode)||encodeURIComponent;if(!tM.test(e))throw new TypeError(`argument name is invalid: ${e}`);const i=r(t);if(!nM.test(i))throw new TypeError(`argument val is invalid: ${t}`);let o=e+"="+i;if(!n)return o;if(n.maxAge!==void 0){if(!Number.isInteger(n.maxAge))throw new TypeError(`option maxAge is invalid: ${n.maxAge}`);o+="; Max-Age="+n.maxAge}if(n.domain){if(!rM.test(n.domain))throw new TypeError(`option domain is invalid: ${n.domain}`);o+="; Domain="+n.domain}if(n.path){if(!iM.test(n.path))throw new TypeError(`option path is invalid: ${n.path}`);o+="; Path="+n.path}if(n.expires){if(!cM(n.expires)||!Number.isFinite(n.expires.valueOf()))throw new TypeError(`option expires is invalid: ${n.expires}`);o+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(o+="; HttpOnly"),n.secure&&(o+="; Secure"),n.partitioned&&(o+="; Partitioned"),n.priority)switch(typeof n.priority=="string"?n.priority.toLowerCase():void 0){case"low":o+="; Priority=Low";break;case"medium":o+="; Priority=Medium";break;case"high":o+="; 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":o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"none":o+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${n.sameSite}`)}return o}function uM(e){if(e.indexOf("%")===-1)return e;try{return decodeURIComponent(e)}catch{return e}}function cM(e){return oM.call(e)==="[object Date]"}/**
58
58
  * react-router v7.0.2
59
59
  *
60
60
  * Copyright (c) Remix Software Inc.
@@ -63,109 +63,109 @@ Error generating stack: `+o.message+`
63
63
  * LICENSE.md file in the root directory of this source tree.
64
64
  *
65
65
  * @license MIT
66
- */var zb="popstate";function pM(e={}){function t(i,o){let{pathname:a="/",search:l="",hash:s=""}=Ji(i.location.hash.substring(1));return!a.startsWith("/")&&!a.startsWith(".")&&(a="/"+a),Hm("",{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:Jl(o))}function r(i,o){Pn(i.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(o)})`)}return mM(t,n,r,e)}function Me(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 hM(){return Math.random().toString(36).substring(2,10)}function Ub(e,t){return{usr:e.state,key:e.key,idx:t}}function Hm(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ji(t):t,state:n,key:t&&t.key||r||hM()}}function Jl({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 Ji(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 mM(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 y=c(),h=y==null?null:y-u;u=y,s&&s({action:l,location:v.location,delta:h})}function d(y,h){l="PUSH";let g=Hm(v.location,y,h);n&&n(g,y),u=c()+1;let x=Ub(g,u),O=v.createHref(g);try{a.pushState(x,"",O)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;i.location.assign(O)}o&&s&&s({action:l,location:v.location,delta:1})}function p(y,h){l="REPLACE";let g=Hm(v.location,y,h);n&&n(g,y),u=c();let x=Ub(g,u),O=v.createHref(g);a.replaceState(x,"",O),o&&s&&s({action:l,location:v.location,delta:0})}function m(y){let h=i.location.origin!=="null"?i.location.origin:i.location.href,g=typeof y=="string"?y:Jl(y);return g=g.replace(/ $/,"%20"),Me(h,`No window.location.(origin|href) available to create URL for href: ${g}`),new URL(g,h)}let v={get action(){return l},get location(){return e(i,a)},listen(y){if(s)throw new Error("A history only accepts one active listener");return i.addEventListener(zb,f),s=y,()=>{i.removeEventListener(zb,f),s=null}},createHref(y){return t(i,y)},createURL:m,encodeLocation(y){let h=m(y);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:d,replace:p,go(y){return a.go(y)}};return v}function eP(e,t,n="/"){return vM(e,t,n,!1)}function vM(e,t,n,r){let i=typeof t=="string"?Ji(t):t,o=ei(i.pathname||"/",n);if(o==null)return null;let a=tP(e);gM(a);let l=null;for(let s=0;l==null&&s<a.length;++s){let u=AM(o);l=$M(a[s],u,r)}return l}function tP(e,t=[],n=[],r=""){let i=(o,a,l)=>{let s={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};s.relativePath.startsWith("/")&&(Me(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);o.children&&o.children.length>0&&(Me(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),tP(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:OM(u,o.index),routesMeta:c})};return e.forEach((o,a)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,a);else for(let s of nP(o.path))i(o,a,s)}),t}function nP(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=nP(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 gM(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:EM(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var yM=/^:[\w-]+$/,xM=3,bM=2,wM=1,SM=10,_M=-2,Hb=e=>e==="*";function OM(e,t){let n=e.split("/"),r=n.length;return n.some(Hb)&&(r+=_M),t&&(r+=bM),n.filter(i=>!Hb(i)).reduce((i,o)=>i+(yM.test(o)?xM:o===""?wM:SM),r)}function EM(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 $M(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=Vc({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},c),d=s.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=Vc({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:kM(cr([o,f.pathnameBase])),route:d}),f.pathnameBase!=="/"&&(o=cr([o,f.pathnameBase]))}return a}function Vc(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=PM(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 m=l[d]||"";a=o.slice(0,o.length-m.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 PM(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,(a,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 AM(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 is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function ei(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 TM(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ji(e):e;return{pathname:n?n.startsWith("/")?n:jM(n,t):t,search:NM(r),hash:MM(i)}}function jM(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 nh(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 CM(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function rP(e){let t=CM(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function iP(e,t,n,r=!1){let i;typeof e=="string"?i=Ji(e):(i={...e},Me(!i.pathname||!i.pathname.includes("?"),nh("?","pathname","search",i)),Me(!i.pathname||!i.pathname.includes("#"),nh("#","pathname","hash",i)),Me(!i.search||!i.search.includes("#"),nh("#","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=TM(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,"/"),kM=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),NM=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,MM=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function IM(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var oP=["POST","PUT","PATCH","DELETE"];new Set(oP);var RM=["GET",...oP];new Set(RM);var Sa=S.createContext(null);Sa.displayName="DataRouter";var yd=S.createContext(null);yd.displayName="DataRouterState";var aP=S.createContext({isTransitioning:!1});aP.displayName="ViewTransition";var LM=S.createContext(new Map);LM.displayName="Fetchers";var DM=S.createContext(null);DM.displayName="Await";var qn=S.createContext(null);qn.displayName="Navigation";var Hs=S.createContext(null);Hs.displayName="Location";var Gn=S.createContext({outlet:null,matches:[],isDataRoute:!1});Gn.displayName="Route";var ky=S.createContext(null);ky.displayName="RouteError";function FM(e,{relative:t}={}){Me(Ws(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=S.useContext(qn),{hash:i,pathname:o,search:a}=Vs(e,{relative:t}),l=o;return n!=="/"&&(l=o==="/"?n:cr([n,o])),r.createHref({pathname:l,search:a,hash:i})}function Ws(){return S.useContext(Hs)!=null}function ii(){return Me(Ws(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Hs).location}var lP="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function sP(e){S.useContext(qn).static||S.useLayoutEffect(e)}function BM(){let{isDataRoute:e}=S.useContext(Gn);return e?eI():zM()}function zM(){Me(Ws(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(Sa),{basename:t,navigator:n}=S.useContext(qn),{matches:r}=S.useContext(Gn),{pathname:i}=ii(),o=JSON.stringify(rP(r)),a=S.useRef(!1);return sP(()=>{a.current=!0}),S.useCallback((s,u={})=>{if(Pn(a.current,lP),!a.current)return;if(typeof s=="number"){n.go(s);return}let c=iP(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])}S.createContext(null);function UM(){let{matches:e}=S.useContext(Gn),t=e[e.length-1];return t?t.params:{}}function Vs(e,{relative:t}={}){let{matches:n}=S.useContext(Gn),{pathname:r}=ii(),i=JSON.stringify(rP(n));return S.useMemo(()=>iP(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function HM(e,t){return uP(e,t)}function uP(e,t,n,r){var h;Me(Ws(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=S.useContext(qn),{matches:o}=S.useContext(Gn),a=o[o.length-1],l=a?a.params:{},s=a?a.pathname:"/",u=a?a.pathnameBase:"/",c=a&&a.route;{let g=c&&c.path||"";cP(s,!c||g.endsWith("*")||g.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${g}">) 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.
66
+ */var Fb="popstate";function fM(e={}){function t(i,o){let{pathname:a="/",search:l="",hash:s=""}=Zi(i.location.hash.substring(1));return!a.startsWith("/")&&!a.startsWith(".")&&(a="/"+a),zm("",{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:Jl(o))}function r(i,o){Pn(i.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(o)})`)}return pM(t,n,r,e)}function Me(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 dM(){return Math.random().toString(36).substring(2,10)}function Bb(e,t){return{usr:e.state,key:e.key,idx:t}}function zm(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Zi(t):t,state:n,key:t&&t.key||r||dM()}}function Jl({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 Zi(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 pM(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 y=c(),h=y==null?null:y-u;u=y,s&&s({action:l,location:v.location,delta:h})}function d(y,h){l="PUSH";let g=zm(v.location,y,h);n&&n(g,y),u=c()+1;let x=Bb(g,u),E=v.createHref(g);try{a.pushState(x,"",E)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;i.location.assign(E)}o&&s&&s({action:l,location:v.location,delta:1})}function p(y,h){l="REPLACE";let g=zm(v.location,y,h);n&&n(g,y),u=c();let x=Bb(g,u),E=v.createHref(g);a.replaceState(x,"",E),o&&s&&s({action:l,location:v.location,delta:0})}function m(y){let h=i.location.origin!=="null"?i.location.origin:i.location.href,g=typeof y=="string"?y:Jl(y);return g=g.replace(/ $/,"%20"),Me(h,`No window.location.(origin|href) available to create URL for href: ${g}`),new URL(g,h)}let v={get action(){return l},get location(){return e(i,a)},listen(y){if(s)throw new Error("A history only accepts one active listener");return i.addEventListener(Fb,f),s=y,()=>{i.removeEventListener(Fb,f),s=null}},createHref(y){return t(i,y)},createURL:m,encodeLocation(y){let h=m(y);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:d,replace:p,go(y){return a.go(y)}};return v}function Z$(e,t,n="/"){return hM(e,t,n,!1)}function hM(e,t,n,r){let i=typeof t=="string"?Zi(t):t,o=ei(i.pathname||"/",n);if(o==null)return null;let a=J$(e);mM(a);let l=null;for(let s=0;l==null&&s<a.length;++s){let u=$M(o);l=EM(a[s],u,r)}return l}function J$(e,t=[],n=[],r=""){let i=(o,a,l)=>{let s={relativePath:l===void 0?o.path||"":l,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};s.relativePath.startsWith("/")&&(Me(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);o.children&&o.children.length>0&&(Me(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),J$(o.children,t,c,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:_M(u,o.index),routesMeta:c})};return e.forEach((o,a)=>{var l;if(o.path===""||!((l=o.path)!=null&&l.includes("?")))i(o,a);else for(let s of eP(o.path))i(o,a,s)}),t}function eP(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=eP(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 mM(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:SM(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var vM=/^:[\w-]+$/,gM=3,yM=2,xM=1,bM=10,wM=-2,zb=e=>e==="*";function _M(e,t){let n=e.split("/"),r=n.length;return n.some(zb)&&(r+=wM),t&&(r+=yM),n.filter(i=>!zb(i)).reduce((i,o)=>i+(vM.test(o)?gM:o===""?xM:bM),r)}function SM(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 EM(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=Wc({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},c),d=s.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=Wc({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:jM(cr([o,f.pathnameBase])),route:d}),f.pathnameBase!=="/"&&(o=cr([o,f.pathnameBase]))}return a}function Wc(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=OM(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 m=l[d]||"";a=o.slice(0,o.length-m.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 OM(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,(a,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 $M(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 is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function ei(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 PM(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Zi(e):e;return{pathname:n?n.startsWith("/")?n:AM(n,t):t,search:CM(r),hash:kM(i)}}function AM(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 th(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 TM(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function tP(e){let t=TM(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function nP(e,t,n,r=!1){let i;typeof e=="string"?i=Zi(e):(i={...e},Me(!i.pathname||!i.pathname.includes("?"),th("?","pathname","search",i)),Me(!i.pathname||!i.pathname.includes("#"),th("#","pathname","hash",i)),Me(!i.search||!i.search.includes("#"),th("#","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=PM(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,"/"),jM=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),CM=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,kM=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function NM(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var rP=["POST","PUT","PATCH","DELETE"];new Set(rP);var MM=["GET",...rP];new Set(MM);var _a=_.createContext(null);_a.displayName="DataRouter";var gd=_.createContext(null);gd.displayName="DataRouterState";var iP=_.createContext({isTransitioning:!1});iP.displayName="ViewTransition";var IM=_.createContext(new Map);IM.displayName="Fetchers";var RM=_.createContext(null);RM.displayName="Await";var qn=_.createContext(null);qn.displayName="Navigation";var Hs=_.createContext(null);Hs.displayName="Location";var Gn=_.createContext({outlet:null,matches:[],isDataRoute:!1});Gn.displayName="Route";var jy=_.createContext(null);jy.displayName="RouteError";function LM(e,{relative:t}={}){Me(Ws(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=_.useContext(qn),{hash:i,pathname:o,search:a}=Vs(e,{relative:t}),l=o;return n!=="/"&&(l=o==="/"?n:cr([n,o])),r.createHref({pathname:l,search:a,hash:i})}function Ws(){return _.useContext(Hs)!=null}function ii(){return Me(Ws(),"useLocation() may be used only in the context of a <Router> component."),_.useContext(Hs).location}var oP="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function aP(e){_.useContext(qn).static||_.useLayoutEffect(e)}function DM(){let{isDataRoute:e}=_.useContext(Gn);return e?ZM():FM()}function FM(){Me(Ws(),"useNavigate() may be used only in the context of a <Router> component.");let e=_.useContext(_a),{basename:t,navigator:n}=_.useContext(qn),{matches:r}=_.useContext(Gn),{pathname:i}=ii(),o=JSON.stringify(tP(r)),a=_.useRef(!1);return aP(()=>{a.current=!0}),_.useCallback((s,u={})=>{if(Pn(a.current,oP),!a.current)return;if(typeof s=="number"){n.go(s);return}let c=nP(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])}_.createContext(null);function BM(){let{matches:e}=_.useContext(Gn),t=e[e.length-1];return t?t.params:{}}function Vs(e,{relative:t}={}){let{matches:n}=_.useContext(Gn),{pathname:r}=ii(),i=JSON.stringify(tP(n));return _.useMemo(()=>nP(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function zM(e,t){return lP(e,t)}function lP(e,t,n,r){var h;Me(Ws(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=_.useContext(qn),{matches:o}=_.useContext(Gn),a=o[o.length-1],l=a?a.params:{},s=a?a.pathname:"/",u=a?a.pathnameBase:"/",c=a&&a.route;{let g=c&&c.path||"";sP(s,!c||g.endsWith("*")||g.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${g}">) 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.
67
67
 
68
- Please change the parent <Route path="${g}"> to <Route path="${g==="/"?"*":`${g}/*`}">.`)}let f=ii(),d;if(t){let g=typeof t=="string"?Ji(t):t;Me(u==="/"||((h=g.pathname)==null?void 0:h.startsWith(u)),`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 "${u}" but pathname "${g.pathname}" was given in the \`location\` prop.`),d=g}else d=f;let p=d.pathname||"/",m=p;if(u!=="/"){let g=u.replace(/^\//,"").split("/");m="/"+p.replace(/^\//,"").split("/").slice(g.length).join("/")}let v=eP(e,{pathname:m});Pn(c||v!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),Pn(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.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 y=GM(v&&v.map(g=>Object.assign({},g,{params:Object.assign({},l,g.params),pathname:cr([u,i.encodeLocation?i.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?u:cr([u,i.encodeLocation?i.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,n,r);return t&&y?S.createElement(Hs.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...d},navigationType:"POP"}},y):y}function WM(){let e=JM(),t=IM(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=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:o},"ErrorBoundary")," or"," ",S.createElement("code",{style:o},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:i},n):null,a)}var VM=S.createElement(WM,null),KM=class extends S.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?S.createElement(Gn.Provider,{value:this.props.routeContext},S.createElement(ky.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function qM({routeContext:e,match:t,children:n}){let r=S.useContext(Sa);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(Gn.Provider,{value:e},n)}function GM(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,o=n==null?void 0:n.errors;if(o!=null){let s=i.findIndex(u=>u.route.id&&(o==null?void 0:o[u.route.id])!==void 0);Me(s>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),i=i.slice(0,Math.min(i.length,s+1))}let a=!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){a=!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,m=null;n&&(f=o&&u.route.id?o[u.route.id]:void 0,p=u.route.errorElement||VM,a&&(l<0&&c===0?(cP("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,m=null):l===c&&(d=!0,m=u.route.hydrateFallbackElement||null)));let v=t.concat(i.slice(0,c+1)),y=()=>{let h;return f?h=p:d?h=m:u.route.Component?h=S.createElement(u.route.Component,null):u.route.element?h=u.route.element:h=s,S.createElement(qM,{match:u,routeContext:{outlet:s,matches:v,isDataRoute:n!=null},children:h})};return n&&(u.route.ErrorBoundary||u.route.errorElement||c===0)?S.createElement(KM,{location:n.location,revalidation:n.revalidation,component:p,error:f,children:y(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):y()},null)}function Ny(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function XM(e){let t=S.useContext(Sa);return Me(t,Ny(e)),t}function YM(e){let t=S.useContext(yd);return Me(t,Ny(e)),t}function QM(e){let t=S.useContext(Gn);return Me(t,Ny(e)),t}function My(e){let t=QM(e),n=t.matches[t.matches.length-1];return Me(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function ZM(){return My("useRouteId")}function JM(){var r;let e=S.useContext(ky),t=YM("useRouteError"),n=My("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function eI(){let{router:e}=XM("useNavigate"),t=My("useNavigate"),n=S.useRef(!1);return sP(()=>{n.current=!0}),S.useCallback(async(i,o={})=>{Pn(n.current,lP),n.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...o}))},[e,t])}var Wb={};function cP(e,t,n){!t&&!Wb[e]&&(Wb[e]=!0,Pn(!1,n))}S.memo(tI);function tI({routes:e,future:t,state:n}){return uP(e,void 0,n,t)}function fc(e){Me(!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 nI({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:o=!1}){Me(!Ws(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),l=S.useMemo(()=>({basename:a,navigator:i,static:o,future:{}}),[a,i,o]);typeof n=="string"&&(n=Ji(n));let{pathname:s="/",search:u="",hash:c="",state:f=null,key:d="default"}=n,p=S.useMemo(()=>{let m=ei(s,a);return m==null?null:{location:{pathname:m,search:u,hash:c,state:f,key:d},navigationType:r}},[a,s,u,c,f,d,r]);return Pn(p!=null,`<Router basename="${a}"> 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:S.createElement(qn.Provider,{value:l},S.createElement(Hs.Provider,{children:t,value:p}))}function rI({children:e,location:t}){return HM(Wm(e),t)}function Wm(e,t=[]){let n=[];return S.Children.forEach(e,(r,i)=>{if(!S.isValidElement(r))return;let o=[...t,i];if(r.type===S.Fragment){n.push.apply(n,Wm(r.props.children,o));return}Me(r.type===fc,`[${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>`),Me(!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,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=Wm(r.props.children,o)),n.push(a)}),n}var dc="get",pc="application/x-www-form-urlencoded";function xd(e){return e!=null&&typeof e.tagName=="string"}function iI(e){return xd(e)&&e.tagName.toLowerCase()==="button"}function oI(e){return xd(e)&&e.tagName.toLowerCase()==="form"}function aI(e){return xd(e)&&e.tagName.toLowerCase()==="input"}function lI(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function sI(e,t){return e.button===0&&(!t||t==="_self")&&!lI(e)}var ku=null;function uI(){if(ku===null)try{new FormData(document.createElement("form"),0),ku=!1}catch{ku=!0}return ku}var cI=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function rh(e){return e!=null&&!cI.has(e)?(Pn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${pc}"`),null):e}function fI(e,t){let n,r,i,o,a;if(oI(e)){let l=e.getAttribute("action");r=l?ei(l,t):null,n=e.getAttribute("method")||dc,i=rh(e.getAttribute("enctype"))||pc,o=new FormData(e)}else if(iI(e)||aI(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?ei(s,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||dc,i=rh(e.getAttribute("formenctype"))||rh(l.getAttribute("enctype"))||pc,o=new FormData(l,e),!uI()){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(xd(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=dc,r=null,i=pc,a=e}return o&&i==="text/plain"&&(a=o,o=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:o,body:a}}function Iy(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function dI(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 pI(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 hI(e,t,n){let r=await Promise.all(e.map(async i=>{let o=t.routes[i.route.id];if(o){let a=await dI(o,n);return a.links?a.links():[]}return[]}));return yI(r.flat(1).filter(pI).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function Vb(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 mI(e,t){return vI(e.map(n=>{let r=t.routes[n.route.id];if(!r)return[];let i=[r.module];return r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function vI(e){return[...new Set(e)]}function gI(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function yI(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let o=JSON.stringify(gI(i));return n.has(o)||(n.add(o),r.push({key:o,link:i})),r},[])}function xI(e){let t=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return t.pathname==="/"?t.pathname="_root.data":t.pathname=`${t.pathname.replace(/\/$/,"")}.data`,t}function bI(){let e=S.useContext(Sa);return Iy(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function wI(){let e=S.useContext(yd);return Iy(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Ry=S.createContext(void 0);Ry.displayName="FrameworkContext";function fP(){let e=S.useContext(Ry);return Iy(e,"You must render this element inside a <HydratedRouter> element"),e}function SI(e,t){let n=S.useContext(Ry),[r,i]=S.useState(!1),[o,a]=S.useState(!1),{onFocus:l,onBlur:s,onMouseEnter:u,onMouseLeave:c,onTouchStart:f}=t,d=S.useRef(null);S.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let v=h=>{h.forEach(g=>{a(g.isIntersecting)})},y=new IntersectionObserver(v,{threshold:.5});return d.current&&y.observe(d.current),()=>{y.disconnect()}}},[e]),S.useEffect(()=>{if(r){let v=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(v)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),a(!1)};return n?e!=="intent"?[o,d,{}]:[o,d,{onFocus:Qa(l,p),onBlur:Qa(s,m),onMouseEnter:Qa(u,p),onMouseLeave:Qa(c,m),onTouchStart:Qa(f,p)}]:[!1,d,{}]}function Qa(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function _I({page:e,...t}){let{router:n}=bI(),r=S.useMemo(()=>eP(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?S.createElement(EI,{page:e,matches:r,...t}):(console.warn(`Tried to prefetch ${e} but no routes matched.`),null)}function OI(e){let{manifest:t,routeModules:n}=fP(),[r,i]=S.useState([]);return S.useEffect(()=>{let o=!1;return hI(e,t,n).then(a=>{o||i(a)}),()=>{o=!0}},[e,t,n]),r}function EI({page:e,matches:t,...n}){let r=ii(),{manifest:i,routeModules:o}=fP(),{loaderData:a,matches:l}=wI(),s=S.useMemo(()=>Vb(e,t,l,i,r,"data"),[e,t,l,i,r]),u=S.useMemo(()=>Vb(e,t,l,i,r,"assets"),[e,t,l,i,r]),c=S.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let p=new Set,m=!1;if(t.forEach(y=>{var g;let h=i.routes[y.route.id];!h||!h.hasLoader||(!s.some(x=>x.route.id===y.route.id)&&y.route.id in a&&((g=o[y.route.id])!=null&&g.shouldRevalidate)||h.hasClientLoader?m=!0:p.add(y.route.id))}),p.size===0)return[];let v=xI(e);return m&&p.size>0&&v.searchParams.set("_routes",t.filter(y=>p.has(y.route.id)).map(y=>y.route.id).join(",")),[v.pathname+v.search]},[a,r,i,s,t,e,o]),f=S.useMemo(()=>mI(u,i),[u,i]),d=OI(u);return S.createElement(S.Fragment,null,c.map(p=>S.createElement("link",{key:p,rel:"prefetch",as:"fetch",href:p,...n})),f.map(p=>S.createElement("link",{key:p,rel:"modulepreload",href:p,...n})),d.map(({key:p,link:m})=>S.createElement("link",{key:p,...m})))}function $I(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var dP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{dP&&(window.__reactRouterVersion="7.0.2")}catch{}function PI({basename:e,children:t,window:n}){let r=S.useRef();r.current==null&&(r.current=pM({window:n,v5Compat:!0}));let i=r.current,[o,a]=S.useState({action:i.action,location:i.location}),l=S.useCallback(s=>{S.startTransition(()=>a(s))},[a]);return S.useLayoutEffect(()=>i.listen(l),[i,l]),S.createElement(nI,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:i})}var pP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fr=S.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,...d},p){let{basename:m}=S.useContext(qn),v=typeof u=="string"&&pP.test(u),y,h=!1;if(typeof u=="string"&&v&&(y=u,dP))try{let A=new URL(window.location.href),C=u.startsWith("//")?new URL(A.protocol+u):new URL(u),T=ei(C.pathname,m);C.origin===A.origin&&T!=null?u=T+C.search+C.hash:h=!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 g=FM(u,{relative:i}),[x,O,w]=SI(r,d),_=CI(u,{replace:a,state:l,target:s,preventScrollReset:c,relative:i,viewTransition:f});function E(A){t&&t(A),A.defaultPrevented||_(A)}let $=S.createElement("a",{...d,...w,href:y||g,onClick:h||o?t:E,ref:$I(p,O),target:s,"data-discover":!v&&n==="render"?"true":void 0});return x&&!v?S.createElement(S.Fragment,null,$,S.createElement(_I,{page:g})):$});fr.displayName="Link";var AI=S.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=Vs(a,{relative:u.relative}),d=ii(),p=S.useContext(yd),{navigator:m,basename:v}=S.useContext(qn),y=p!=null&&RI(f)&&l===!0,h=m.encodeLocation?m.encodeLocation(f).pathname:f.pathname,g=d.pathname,x=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(g=g.toLowerCase(),x=x?x.toLowerCase():null,h=h.toLowerCase()),x&&v&&(x=ei(x,v)||x);const O=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let w=g===h||!i&&g.startsWith(h)&&g.charAt(O)==="/",_=x!=null&&(x===h||!i&&x.startsWith(h)&&x.charAt(h.length)==="/"),E={isActive:w,isPending:_,isTransitioning:y},$=w?t:void 0,A;typeof r=="function"?A=r(E):A=[r,w?"active":null,_?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let C=typeof o=="function"?o(E):o;return S.createElement(fr,{...u,"aria-current":$,className:A,ref:c,style:C,to:a,viewTransition:l},typeof s=="function"?s(E):s)});AI.displayName="NavLink";var TI=S.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:o,method:a=dc,action:l,onSubmit:s,relative:u,preventScrollReset:c,viewTransition:f,...d},p)=>{let m=MI(),v=II(l,{relative:u}),y=a.toLowerCase()==="get"?"get":"post",h=typeof l=="string"&&pP.test(l),g=x=>{if(s&&s(x),x.defaultPrevented)return;x.preventDefault();let O=x.nativeEvent.submitter,w=(O==null?void 0:O.getAttribute("formmethod"))||a;m(O||x.currentTarget,{fetcherKey:t,method:w,navigate:n,replace:i,state:o,relative:u,preventScrollReset:c,viewTransition:f})};return S.createElement("form",{ref:p,method:y,action:v,onSubmit:r?s:g,...d,"data-discover":!h&&e==="render"?"true":void 0})});TI.displayName="Form";function jI(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function hP(e){let t=S.useContext(Sa);return Me(t,jI(e)),t}function CI(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:o,viewTransition:a}={}){let l=BM(),s=ii(),u=Vs(e,{relative:o});return S.useCallback(c=>{if(sI(c,t)){c.preventDefault();let f=n!==void 0?n:Jl(s)===Jl(u);l(e,{replace:f,state:r,preventScrollReset:i,relative:o,viewTransition:a})}},[s,l,u,n,r,t,e,i,o,a])}var kI=0,NI=()=>`__${String(++kI)}__`;function MI(){let{router:e}=hP("useSubmit"),{basename:t}=S.useContext(qn),n=ZM();return S.useCallback(async(r,i={})=>{let{action:o,method:a,encType:l,formData:s,body:u}=fI(r,t);if(i.navigate===!1){let c=i.fetcherKey||NI();await e.fetch(c,n,i.action||o,{preventScrollReset:i.preventScrollReset,formData:s,body:u,formMethod:i.method||a,formEncType:i.encType||l,flushSync:i.flushSync})}else await e.navigate(i.action||o,{preventScrollReset:i.preventScrollReset,formData:s,body:u,formMethod:i.method||a,formEncType:i.encType||l,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,n])}function II(e,{relative:t}={}){let{basename:n}=S.useContext(qn),r=S.useContext(Gn);Me(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),o={...Vs(e||".",{relative:t})},a=ii();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])),Jl(o)}function RI(e,t={}){let n=S.useContext(aP);Me(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=hP("useViewTransitionState"),i=Vs(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=ei(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=ei(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Vc(i.pathname,a)!=null||Vc(i.pathname,o)!=null}new TextEncoder;const LI={environment:{GITHUB_SHA_URL:"https://example.com/blob/abcd"},features:{Authentication:{assignments:{files:["src/auth/controllers/login_controller.rb","src/auth/services/oauth_service.rb","src/auth/jobs/token_cleanup_job.rb","src/auth/models/user.rb","src/auth/middleware/auth_middleware.rb"],teams:["Identity & Access"]},description:"Core authentication system handling user login, OAuth integration, and session management",documentation_link:"https://internal-docs.company.com/auth/overview",metrics:{abc_size:890.8100000000001,lines_of_code:1200,cyclomatic_complexity:400,todo_locations:{"src/auth/services/oauth_service.rb:124":"Refactor this method","src/auth/middleware/auth_middleware.rb:45":"Add documentation for this class"}},test_coverage:{lines:1200,hits:1140,misses:60},test_pyramid:{unit_count:100,unit_pending:5,integration_count:20,integration_pending:2,regression_count:5,regression_pending:1}},"Payment Processing":{assignments:{files:["src/payments/controllers/charges_controller.rb","src/payments/services/stripe_service.rb","src/payments/jobs/payment_reconciliation_job.rb","src/payments/models/payment.rb","src/payments/models/refund.rb","src/payments/workers/payment_worker.rb","src/payments/validators/payment_validator.rb"],teams:["Payments","Revenue"]},description:"Payment processing system integrating with Stripe for charges, refunds and reconciliation",documentation_link:"https://internal-docs.company.com/payments/overview",metrics:{abc_size:502.78,lines_of_code:5582,cyclomatic_complexity:500},test_coverage:{lines:2582,hits:2530,misses:52},test_pyramid:{unit_count:100,unit_pending:5,integration_count:20,integration_pending:2,regression_count:5,regression_pending:1}},"User Management":{assignments:{files:["src/users/controllers/users_controller.rb","src/users/services/user_service.rb","src/users/jobs/user_cleanup_job.rb","src/users/models/profile.rb","src/users/workers/profile_worker.rb"],teams:["Identity & Access"]},description:"User profile and account management system",documentation_link:"https://internal-docs.company.com/users/overview",metrics:{abc_size:1202.78,lines_of_code:1582,cyclomatic_complexity:300},test_coverage:{lines:1582,hits:1108,misses:474},test_pyramid:{unit_count:100,unit_pending:5,integration_count:20,integration_pending:2,regression_count:5,regression_pending:1}},"Email Service":{assignments:{files:["src/email/services/email_service.rb","src/email/jobs/email_sender_job.rb","src/email/templates/welcome_email.rb","src/email/templates/reset_password.rb"],teams:["Communications"]},description:"Transactional email service handling all system notifications",documentation_link:"https://internal-docs.company.com/email/overview",metrics:{abc_size:156.92,lines_of_code:289,cyclomatic_complexity:22},test_coverage:{lines:289,hits:286,misses:3},test_pyramid:{unit_count:100,unit_pending:5,integration_count:20,integration_pending:2,regression_count:5,regression_pending:1}},"Data Sync":{assignments:{files:["src/sync/controllers/sync_controller.rb","src/sync/services/sync_service.rb","src/sync/jobs/sync_job.rb","src/sync/models/sync_record.rb","src/sync/workers/sync_worker.rb","src/sync/validators/sync_validator.rb"],teams:["Platform","Data Infrastructure"]},description:"Real-time data synchronization system between services",documentation_link:"https://internal-docs.company.com/sync/overview",metrics:{abc_size:764.23,lines_of_code:1124,cyclomatic_complexity:82},test_coverage:null},Analytics:{assignments:{files:["src/analytics/services/tracking_service.rb","src/analytics/jobs/event_processor_job.rb","src/analytics/models/event.rb","src/analytics/workers/analytics_worker.rb"],teams:["Data Science"]},description:"User behavior tracking and analytics processing pipeline",documentation_link:"https://internal-docs.company.com/analytics/overview",metrics:{abc_size:234.56,lines_of_code:412,cyclomatic_complexity:28},test_coverage:{lines:412,hits:324,misses:88},test_pyramid:{unit_count:100,unit_pending:5,integration_count:20,integration_pending:2,regression_count:5,regression_pending:1}},"API Gateway":{assignments:{files:["src/gateway/controllers/api_controller.rb","src/gateway/services/rate_limiter.rb","src/gateway/middleware/api_middleware.rb","src/gateway/models/api_key.rb"],teams:["Platform"]},description:"API Gateway handling authentication, rate limiting and request routing",documentation_link:"https://internal-docs.company.com/gateway/overview",metrics:{abc_size:423.67,lines_of_code:678,cyclomatic_complexity:52},test_coverage:{lines:678,hits:671,misses:7},test_pyramid:{unit_count:100,unit_pending:5,integration_count:20,integration_pending:2,regression_count:5,regression_pending:1}},"Document Processing":{assignments:{files:["src/documents/services/document_service.rb","src/documents/jobs/document_processor_job.rb","src/documents/models/document.rb","src/documents/workers/pdf_worker.rb","src/documents/validators/document_validator.rb"],teams:["Content Management"]},description:"Document processing system for PDF generation and manipulation",documentation_link:"https://internal-docs.company.com/documents/overview",metrics:{abc_size:534.89,lines_of_code:892,cyclomatic_complexity:64},test_coverage:{lines:892,hits:534,misses:358},test_pyramid:{unit_count:100,unit_pending:5,integration_count:20,integration_pending:2,regression_count:5,regression_pending:1}},"Notification System":{assignments:{files:["src/notifications/services/notification_service.rb","src/notifications/jobs/notification_sender_job.rb","src/notifications/models/notification.rb","src/notifications/workers/push_notification_worker.rb"],teams:["Communications"]},description:"Push notification system for mobile and web clients",documentation_link:"https://internal-docs.company.com/notifications/overview",metrics:{abc_size:780.34,lines_of_code:1456,cyclomatic_complexity:241},test_coverage:{lines:1456,hits:998,misses:458},test_pyramid:{unit_count:100,unit_pending:5,integration_count:20,integration_pending:2,regression_count:5,regression_pending:1}},"Search Engine":{assignments:{files:["src/search/controllers/search_controller.rb","src/search/services/elasticsearch_service.rb","src/search/jobs/index_job.rb","src/search/models/search_index.rb","src/search/workers/indexing_worker.rb"],teams:["Search & Discovery","Platform","Communications","Admin"]},description:"Elasticsearch-based full-text search engine",documentation_link:"https://internal-docs.company.com/search/overview",metrics:{abc_size:645.78,lines_of_code:934,cyclomatic_complexity:76},test_coverage:{lines:567,hits:489,misses:78},test_pyramid:{unit_count:100,unit_pending:5,integration_count:20,integration_pending:2,regression_count:5,regression_pending:1}},"Cache Management":{assignments:{files:null,teams:null},description:null,documentation_link:null,metrics:{abc_size:null,lines_of_code:null,cyclomatic_complexity:null},test_coverage:null}}},DI={assigned_globs:["app/**/*.rb"],unassigned_globs:["app/models/**/*","app/controllers/admin/**/*"],require_assignment_for_teams:["Onboarding"],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://example.com"},documentation_site:{health:{minimum_thresholds:{good:95,fair:80,poor:0},components:{cyclomatic_complexity:{weight:15,minimum_variance:10,score_threshold:100},encapsulation:{weight:15,minimum_variance:10,score_threshold:100},test_coverage:{weight:70,score_threshold:98}}},size_percentile:{minimum_thresholds:{xl:95,l:75,m:25,s:5,xs:0}},test_coverage:{minimum_thresholds:{good:98,fair:95,poor:0}}}},FI={...LI,project:DI,environment:{git_ref:"main"}},oi=window.FEATURE_MAP_CONFIG||FI,Nu=({collection:e,score:t})=>{const n=Math.max(...e),r=VI(e,t),i=Math.round(t/n*100);return{percentile:r,percentOfMax:i,score:t}},BI=({metrics:e})=>e.lines_of_code===null||e.cyclomatic_complexity===null?null:e.lines_of_code/e.cyclomatic_complexity,zI=({assignments:e,metrics:t})=>e.files===null||t.lines_of_code===null?null:e.files.length/t.lines_of_code,UI=({assignments:e,metrics:t})=>t.lines_of_code,ih=({awardablePoints:e,score:t,scoreThreshold:n,percentOfMax:r=0,percentOfMaxThreshold:i=100})=>{const o=r>=i,a=t>=n;return o||a?{awardablePoints:e,healthScore:e,closeToMaximumScore:o,exceedsScoreThreshold:a}:{awardablePoints:e,healthScore:t/n*e,closeToMaximumScore:o,exceedsScoreThreshold:a}},HI=({encapsulation:e,cyclomaticComplexity:t,testCoverage:n})=>{const{cyclomatic_complexity:r,encapsulation:i,test_coverage:o}=oi.project.documentation_site.health.components,a=ih({awardablePoints:o.weight,score:n.score,scoreThreshold:o.score_threshold}),l=ih({awardablePoints:r.weight,score:t.percentile,scoreThreshold:r.score_threshold,percentOfMax:t.percentOfMax,percentOfMaxThreshold:100-r.minimum_variance}),s=ih({awardablePoints:i.weight,score:e.percentile,scoreThreshold:i.score_threshold,percentOfMax:e.percentOfMax,percentOfMaxThreshold:100-i.minimum_variance}),u=a.healthScore+l.healthScore+s.healthScore;return{testCoverageComponent:a,cyclomaticComplexityComponent:l,encapsulationComponent:s,overall:u}},WI=({features:e})=>{const t=Object.entries(e).map(([a,l])=>{const{assignments:s,metrics:u,test_coverage:c}=l;return{featureName:a,cyclomaticComplexity:BI({metrics:u}),encapsulation:zI({assignments:s,metrics:u}),featureSize:UI({assignments:s,metrics:u}),testCoverage:KI({test_coverage:c})}},{}),n=t.map(({cyclomaticComplexity:a})=>a).filter(a=>!!a),r=t.map(({encapsulation:a})=>a).filter(a=>!!a),i=t.map(({featureSize:a})=>a).filter(a=>!!a),o=t.map(({testCoverage:a})=>a).filter(a=>!!a);return t.reduce((a,l)=>({...a,[l.featureName]:{cyclomaticComplexity:Nu({collection:n,score:l.cyclomaticComplexity}),encapsulation:Nu({collection:r,score:l.encapsulation}),featureSize:Nu({collection:i,score:l.featureSize}),testCoverage:Nu({collection:o,score:l.testCoverage})}}),{})},VI=(e,t)=>{const n=e.map(o=>parseFloat(o,10)),r=parseFloat(t,10);return 100*n.reduce((o,a)=>a<r?o+1:a===r?o+.5:o,0)/n.length},KI=({test_coverage:e})=>e===null||e.hits===null||e.lines===null?null:Math.round(e.hits/e.lines*100),qI=({features:e})=>{const t=WI({features:e});return Object.entries(e).reduce((n,[r,i])=>{const{cyclomaticComplexity:o,encapsulation:a,featureSize:l,testCoverage:s}=t[r],u=HI({cyclomaticComplexity:o,encapsulation:a,testCoverage:s});return{...n,[r]:{...i,metrics:{...i.metrics,encapsulation:a,featureSize:l,health:u,cyclomaticComplexity:o,testCoverage:s}}}},{})};/**
68
+ Please change the parent <Route path="${g}"> to <Route path="${g==="/"?"*":`${g}/*`}">.`)}let f=ii(),d;if(t){let g=typeof t=="string"?Zi(t):t;Me(u==="/"||((h=g.pathname)==null?void 0:h.startsWith(u)),`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 "${u}" but pathname "${g.pathname}" was given in the \`location\` prop.`),d=g}else d=f;let p=d.pathname||"/",m=p;if(u!=="/"){let g=u.replace(/^\//,"").split("/");m="/"+p.replace(/^\//,"").split("/").slice(g.length).join("/")}let v=Z$(e,{pathname:m});Pn(c||v!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),Pn(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.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 y=KM(v&&v.map(g=>Object.assign({},g,{params:Object.assign({},l,g.params),pathname:cr([u,i.encodeLocation?i.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?u:cr([u,i.encodeLocation?i.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,n,r);return t&&y?_.createElement(Hs.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...d},navigationType:"POP"}},y):y}function UM(){let e=QM(),t=NM(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=_.createElement(_.Fragment,null,_.createElement("p",null,"💿 Hey developer 👋"),_.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",_.createElement("code",{style:o},"ErrorBoundary")," or"," ",_.createElement("code",{style:o},"errorElement")," prop on your route.")),_.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),n?_.createElement("pre",{style:i},n):null,a)}var HM=_.createElement(UM,null),WM=class extends _.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?_.createElement(Gn.Provider,{value:this.props.routeContext},_.createElement(jy.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function VM({routeContext:e,match:t,children:n}){let r=_.useContext(_a);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),_.createElement(Gn.Provider,{value:e},n)}function KM(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,o=n==null?void 0:n.errors;if(o!=null){let s=i.findIndex(u=>u.route.id&&(o==null?void 0:o[u.route.id])!==void 0);Me(s>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),i=i.slice(0,Math.min(i.length,s+1))}let a=!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){a=!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,m=null;n&&(f=o&&u.route.id?o[u.route.id]:void 0,p=u.route.errorElement||HM,a&&(l<0&&c===0?(sP("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,m=null):l===c&&(d=!0,m=u.route.hydrateFallbackElement||null)));let v=t.concat(i.slice(0,c+1)),y=()=>{let h;return f?h=p:d?h=m:u.route.Component?h=_.createElement(u.route.Component,null):u.route.element?h=u.route.element:h=s,_.createElement(VM,{match:u,routeContext:{outlet:s,matches:v,isDataRoute:n!=null},children:h})};return n&&(u.route.ErrorBoundary||u.route.errorElement||c===0)?_.createElement(WM,{location:n.location,revalidation:n.revalidation,component:p,error:f,children:y(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):y()},null)}function Cy(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function qM(e){let t=_.useContext(_a);return Me(t,Cy(e)),t}function GM(e){let t=_.useContext(gd);return Me(t,Cy(e)),t}function XM(e){let t=_.useContext(Gn);return Me(t,Cy(e)),t}function ky(e){let t=XM(e),n=t.matches[t.matches.length-1];return Me(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function YM(){return ky("useRouteId")}function QM(){var r;let e=_.useContext(jy),t=GM("useRouteError"),n=ky("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function ZM(){let{router:e}=qM("useNavigate"),t=ky("useNavigate"),n=_.useRef(!1);return aP(()=>{n.current=!0}),_.useCallback(async(i,o={})=>{Pn(n.current,oP),n.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...o}))},[e,t])}var Ub={};function sP(e,t,n){!t&&!Ub[e]&&(Ub[e]=!0,Pn(!1,n))}_.memo(JM);function JM({routes:e,future:t,state:n}){return lP(e,void 0,n,t)}function cc(e){Me(!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 eI({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:o=!1}){Me(!Ws(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),l=_.useMemo(()=>({basename:a,navigator:i,static:o,future:{}}),[a,i,o]);typeof n=="string"&&(n=Zi(n));let{pathname:s="/",search:u="",hash:c="",state:f=null,key:d="default"}=n,p=_.useMemo(()=>{let m=ei(s,a);return m==null?null:{location:{pathname:m,search:u,hash:c,state:f,key:d},navigationType:r}},[a,s,u,c,f,d,r]);return Pn(p!=null,`<Router basename="${a}"> 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:_.createElement(qn.Provider,{value:l},_.createElement(Hs.Provider,{children:t,value:p}))}function tI({children:e,location:t}){return zM(Um(e),t)}function Um(e,t=[]){let n=[];return _.Children.forEach(e,(r,i)=>{if(!_.isValidElement(r))return;let o=[...t,i];if(r.type===_.Fragment){n.push.apply(n,Um(r.props.children,o));return}Me(r.type===cc,`[${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>`),Me(!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,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=Um(r.props.children,o)),n.push(a)}),n}var fc="get",dc="application/x-www-form-urlencoded";function yd(e){return e!=null&&typeof e.tagName=="string"}function nI(e){return yd(e)&&e.tagName.toLowerCase()==="button"}function rI(e){return yd(e)&&e.tagName.toLowerCase()==="form"}function iI(e){return yd(e)&&e.tagName.toLowerCase()==="input"}function oI(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function aI(e,t){return e.button===0&&(!t||t==="_self")&&!oI(e)}var ku=null;function lI(){if(ku===null)try{new FormData(document.createElement("form"),0),ku=!1}catch{ku=!0}return ku}var sI=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function nh(e){return e!=null&&!sI.has(e)?(Pn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${dc}"`),null):e}function uI(e,t){let n,r,i,o,a;if(rI(e)){let l=e.getAttribute("action");r=l?ei(l,t):null,n=e.getAttribute("method")||fc,i=nh(e.getAttribute("enctype"))||dc,o=new FormData(e)}else if(nI(e)||iI(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?ei(s,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||fc,i=nh(e.getAttribute("formenctype"))||nh(l.getAttribute("enctype"))||dc,o=new FormData(l,e),!lI()){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(yd(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=fc,r=null,i=dc,a=e}return o&&i==="text/plain"&&(a=o,o=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:o,body:a}}function Ny(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function cI(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 fI(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 dI(e,t,n){let r=await Promise.all(e.map(async i=>{let o=t.routes[i.route.id];if(o){let a=await cI(o,n);return a.links?a.links():[]}return[]}));return vI(r.flat(1).filter(fI).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function Hb(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 pI(e,t){return hI(e.map(n=>{let r=t.routes[n.route.id];if(!r)return[];let i=[r.module];return r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function hI(e){return[...new Set(e)]}function mI(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function vI(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let o=JSON.stringify(mI(i));return n.has(o)||(n.add(o),r.push({key:o,link:i})),r},[])}function gI(e){let t=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return t.pathname==="/"?t.pathname="_root.data":t.pathname=`${t.pathname.replace(/\/$/,"")}.data`,t}function yI(){let e=_.useContext(_a);return Ny(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function xI(){let e=_.useContext(gd);return Ny(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var My=_.createContext(void 0);My.displayName="FrameworkContext";function uP(){let e=_.useContext(My);return Ny(e,"You must render this element inside a <HydratedRouter> element"),e}function bI(e,t){let n=_.useContext(My),[r,i]=_.useState(!1),[o,a]=_.useState(!1),{onFocus:l,onBlur:s,onMouseEnter:u,onMouseLeave:c,onTouchStart:f}=t,d=_.useRef(null);_.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let v=h=>{h.forEach(g=>{a(g.isIntersecting)})},y=new IntersectionObserver(v,{threshold:.5});return d.current&&y.observe(d.current),()=>{y.disconnect()}}},[e]),_.useEffect(()=>{if(r){let v=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(v)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),a(!1)};return n?e!=="intent"?[o,d,{}]:[o,d,{onFocus:Qa(l,p),onBlur:Qa(s,m),onMouseEnter:Qa(u,p),onMouseLeave:Qa(c,m),onTouchStart:Qa(f,p)}]:[!1,d,{}]}function Qa(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function wI({page:e,...t}){let{router:n}=yI(),r=_.useMemo(()=>Z$(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?_.createElement(SI,{page:e,matches:r,...t}):(console.warn(`Tried to prefetch ${e} but no routes matched.`),null)}function _I(e){let{manifest:t,routeModules:n}=uP(),[r,i]=_.useState([]);return _.useEffect(()=>{let o=!1;return dI(e,t,n).then(a=>{o||i(a)}),()=>{o=!0}},[e,t,n]),r}function SI({page:e,matches:t,...n}){let r=ii(),{manifest:i,routeModules:o}=uP(),{loaderData:a,matches:l}=xI(),s=_.useMemo(()=>Hb(e,t,l,i,r,"data"),[e,t,l,i,r]),u=_.useMemo(()=>Hb(e,t,l,i,r,"assets"),[e,t,l,i,r]),c=_.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let p=new Set,m=!1;if(t.forEach(y=>{var g;let h=i.routes[y.route.id];!h||!h.hasLoader||(!s.some(x=>x.route.id===y.route.id)&&y.route.id in a&&((g=o[y.route.id])!=null&&g.shouldRevalidate)||h.hasClientLoader?m=!0:p.add(y.route.id))}),p.size===0)return[];let v=gI(e);return m&&p.size>0&&v.searchParams.set("_routes",t.filter(y=>p.has(y.route.id)).map(y=>y.route.id).join(",")),[v.pathname+v.search]},[a,r,i,s,t,e,o]),f=_.useMemo(()=>pI(u,i),[u,i]),d=_I(u);return _.createElement(_.Fragment,null,c.map(p=>_.createElement("link",{key:p,rel:"prefetch",as:"fetch",href:p,...n})),f.map(p=>_.createElement("link",{key:p,rel:"modulepreload",href:p,...n})),d.map(({key:p,link:m})=>_.createElement("link",{key:p,...m})))}function EI(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var cP=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{cP&&(window.__reactRouterVersion="7.0.2")}catch{}function OI({basename:e,children:t,window:n}){let r=_.useRef();r.current==null&&(r.current=fM({window:n,v5Compat:!0}));let i=r.current,[o,a]=_.useState({action:i.action,location:i.location}),l=_.useCallback(s=>{_.startTransition(()=>a(s))},[a]);return _.useLayoutEffect(()=>i.listen(l),[i,l]),_.createElement(eI,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:i})}var fP=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fr=_.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,...d},p){let{basename:m}=_.useContext(qn),v=typeof u=="string"&&fP.test(u),y,h=!1;if(typeof u=="string"&&v&&(y=u,cP))try{let A=new URL(window.location.href),C=u.startsWith("//")?new URL(A.protocol+u):new URL(u),T=ei(C.pathname,m);C.origin===A.origin&&T!=null?u=T+C.search+C.hash:h=!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 g=LM(u,{relative:i}),[x,E,w]=bI(r,d),S=TI(u,{replace:a,state:l,target:s,preventScrollReset:c,relative:i,viewTransition:f});function O(A){t&&t(A),A.defaultPrevented||S(A)}let $=_.createElement("a",{...d,...w,href:y||g,onClick:h||o?t:O,ref:EI(p,E),target:s,"data-discover":!v&&n==="render"?"true":void 0});return x&&!v?_.createElement(_.Fragment,null,$,_.createElement(wI,{page:g})):$});fr.displayName="Link";var $I=_.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=Vs(a,{relative:u.relative}),d=ii(),p=_.useContext(gd),{navigator:m,basename:v}=_.useContext(qn),y=p!=null&&MI(f)&&l===!0,h=m.encodeLocation?m.encodeLocation(f).pathname:f.pathname,g=d.pathname,x=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(g=g.toLowerCase(),x=x?x.toLowerCase():null,h=h.toLowerCase()),x&&v&&(x=ei(x,v)||x);const E=h!=="/"&&h.endsWith("/")?h.length-1:h.length;let w=g===h||!i&&g.startsWith(h)&&g.charAt(E)==="/",S=x!=null&&(x===h||!i&&x.startsWith(h)&&x.charAt(h.length)==="/"),O={isActive:w,isPending:S,isTransitioning:y},$=w?t:void 0,A;typeof r=="function"?A=r(O):A=[r,w?"active":null,S?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let C=typeof o=="function"?o(O):o;return _.createElement(fr,{...u,"aria-current":$,className:A,ref:c,style:C,to:a,viewTransition:l},typeof s=="function"?s(O):s)});$I.displayName="NavLink";var PI=_.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:o,method:a=fc,action:l,onSubmit:s,relative:u,preventScrollReset:c,viewTransition:f,...d},p)=>{let m=kI(),v=NI(l,{relative:u}),y=a.toLowerCase()==="get"?"get":"post",h=typeof l=="string"&&fP.test(l),g=x=>{if(s&&s(x),x.defaultPrevented)return;x.preventDefault();let E=x.nativeEvent.submitter,w=(E==null?void 0:E.getAttribute("formmethod"))||a;m(E||x.currentTarget,{fetcherKey:t,method:w,navigate:n,replace:i,state:o,relative:u,preventScrollReset:c,viewTransition:f})};return _.createElement("form",{ref:p,method:y,action:v,onSubmit:r?s:g,...d,"data-discover":!h&&e==="render"?"true":void 0})});PI.displayName="Form";function AI(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function dP(e){let t=_.useContext(_a);return Me(t,AI(e)),t}function TI(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:o,viewTransition:a}={}){let l=DM(),s=ii(),u=Vs(e,{relative:o});return _.useCallback(c=>{if(aI(c,t)){c.preventDefault();let f=n!==void 0?n:Jl(s)===Jl(u);l(e,{replace:f,state:r,preventScrollReset:i,relative:o,viewTransition:a})}},[s,l,u,n,r,t,e,i,o,a])}var jI=0,CI=()=>`__${String(++jI)}__`;function kI(){let{router:e}=dP("useSubmit"),{basename:t}=_.useContext(qn),n=YM();return _.useCallback(async(r,i={})=>{let{action:o,method:a,encType:l,formData:s,body:u}=uI(r,t);if(i.navigate===!1){let c=i.fetcherKey||CI();await e.fetch(c,n,i.action||o,{preventScrollReset:i.preventScrollReset,formData:s,body:u,formMethod:i.method||a,formEncType:i.encType||l,flushSync:i.flushSync})}else await e.navigate(i.action||o,{preventScrollReset:i.preventScrollReset,formData:s,body:u,formMethod:i.method||a,formEncType:i.encType||l,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,n])}function NI(e,{relative:t}={}){let{basename:n}=_.useContext(qn),r=_.useContext(Gn);Me(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),o={...Vs(e||".",{relative:t})},a=ii();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])),Jl(o)}function MI(e,t={}){let n=_.useContext(iP);Me(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=dP("useViewTransitionState"),i=Vs(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=ei(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=ei(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Wc(i.pathname,a)!=null||Wc(i.pathname,o)!=null}new TextEncoder;const II={environment:{GITHUB_SHA_URL:"https://example.com/blob/abcd"},features:{Authentication:{assignments:{files:["src/auth/controllers/login_controller.rb","src/auth/services/oauth_service.rb","src/auth/jobs/token_cleanup_job.rb","src/auth/models/user.rb","src/auth/middleware/auth_middleware.rb"],teams:["Identity & Access"]},description:"Core authentication system handling user login, OAuth integration, and session management",documentation_link:"https://internal-docs.company.com/auth/overview",metrics:{abc_size:890.8100000000001,lines_of_code:1200,cyclomatic_complexity:400,todo_locations:{"src/auth/services/oauth_service.rb:124":"Refactor this method","src/auth/middleware/auth_middleware.rb:45":"Add documentation for this class"}},additional_metrics:{cyclomatic_complexity:{percentile:35.5,percent_of_max:80,score:12},encapsulation:{percentile:65.2,percent_of_max:75,score:10},feature_size:{percentile:46.3,percent_of_max:13,score:1500},test_coverage:{percentile:88.4,percent_of_max:95,score:85},health:{test_coverage_component:{awardable_points:70,health_score:66.5,close_to_maximum_score:!0,exceeds_score_threshold:!0},cyclomatic_complexity_component:{awardable_points:15,health_score:12,close_to_maximum_score:!0,exceeds_score_threshold:!0},encapsulation_component:{awardable_points:15,health_score:11.25,close_to_maximum_score:!0,exceeds_score_threshold:!0},overall:89.75}},test_coverage:{lines:1200,hits:1140,misses:60},test_pyramid:{unit_count:100,unit_pending:5,integration_count:20,integration_pending:2,regression_count:5,regression_pending:1}},"Payment Processing":{assignments:{files:["src/payments/controllers/charges_controller.rb","src/payments/services/stripe_service.rb","src/payments/jobs/payment_reconciliation_job.rb","src/payments/models/payment.rb","src/payments/models/refund.rb","src/payments/workers/payment_worker.rb","src/payments/validators/payment_validator.rb"],teams:["Payments","Revenue"]},description:"Payment processing system integrating with Stripe for charges, refunds and reconciliation",documentation_link:"https://internal-docs.company.com/payments/overview",metrics:{abc_size:502.78,lines_of_code:5582,cyclomatic_complexity:500},additional_metrics:{cyclomatic_complexity:{percentile:78.2,percent_of_max:65,score:14},encapsulation:{percentile:92.1,percent_of_max:88,score:13},feature_size:{percentile:82.5,percent_of_max:45,score:2500},test_coverage:{percentile:95.8,percent_of_max:98,score:90},health:{test_coverage_component:{awardable_points:70,health_score:68.6,close_to_maximum_score:!0,exceeds_score_threshold:!0},cyclomatic_complexity_component:{awardable_points:15,health_score:13.2,close_to_maximum_score:!0,exceeds_score_threshold:!0},encapsulation_component:{awardable_points:15,health_score:13.8,close_to_maximum_score:!0,exceeds_score_threshold:!0},overall:95.6}},test_coverage:{lines:2582,hits:2530,misses:52},test_pyramid:{unit_count:100,unit_pending:5,integration_count:20,integration_pending:2,regression_count:5,regression_pending:1}},"User Management":{assignments:{files:["src/users/controllers/users_controller.rb","src/users/services/user_service.rb","src/users/jobs/user_cleanup_job.rb","src/users/models/profile.rb","src/users/workers/profile_worker.rb"],teams:["Identity & Access"]},description:"User profile and account management system",documentation_link:"https://internal-docs.company.com/users/overview",metrics:{abc_size:1202.78,lines_of_code:1582,cyclomatic_complexity:300},additional_metrics:{cyclomatic_complexity:{percentile:45.6,percent_of_max:42,score:10},encapsulation:{percentile:58.3,percent_of_max:55,score:9},feature_size:{percentile:63.2,percent_of_max:28,score:1800},test_coverage:{percentile:70.1,percent_of_max:70,score:75},health:{test_coverage_component:{awardable_points:70,health_score:49,close_to_maximum_score:!1,exceeds_score_threshold:!0},cyclomatic_complexity_component:{awardable_points:15,health_score:8.25,close_to_maximum_score:!1,exceeds_score_threshold:!0},encapsulation_component:{awardable_points:15,health_score:8.25,close_to_maximum_score:!1,exceeds_score_threshold:!0},overall:65.5}},test_coverage:{lines:1582,hits:1108,misses:474},test_pyramid:{unit_count:100,unit_pending:5,integration_count:20,integration_pending:2,regression_count:5,regression_pending:1}},"Email Service":{assignments:{files:["src/email/services/email_service.rb","src/email/jobs/email_sender_job.rb","src/email/templates/welcome_email.rb","src/email/templates/reset_password.rb"],teams:["Communications"]},description:"Transactional email service handling all system notifications",documentation_link:"https://internal-docs.company.com/email/overview",metrics:{abc_size:156.92,lines_of_code:289,cyclomatic_complexity:22},additional_metrics:{cyclomatic_complexity:{percentile:92.3,percent_of_max:95,score:15},encapsulation:{percentile:88.7,percent_of_max:85,score:14},feature_size:{percentile:25.4,percent_of_max:8,score:500},test_coverage:{percentile:98.9,percent_of_max:99,score:95},health:{test_coverage_component:{awardable_points:70,health_score:69.3,close_to_maximum_score:!0,exceeds_score_threshold:!0},cyclomatic_complexity_component:{awardable_points:15,health_score:14.25,close_to_maximum_score:!0,exceeds_score_threshold:!0},encapsulation_component:{awardable_points:15,health_score:13.5,close_to_maximum_score:!0,exceeds_score_threshold:!0},overall:97.05}},test_coverage:{lines:289,hits:286,misses:3},test_pyramid:{unit_count:100,unit_pending:5,integration_count:20,integration_pending:2,regression_count:5,regression_pending:1}},"Data Sync":{assignments:{files:["src/sync/controllers/sync_controller.rb","src/sync/services/sync_service.rb","src/sync/jobs/sync_job.rb","src/sync/models/sync_record.rb","src/sync/workers/sync_worker.rb","src/sync/validators/sync_validator.rb"],teams:["Platform","Data Infrastructure"]},description:"Real-time data synchronization system between services",documentation_link:"https://internal-docs.company.com/sync/overview",metrics:{abc_size:764.23,lines_of_code:1124,cyclomatic_complexity:82},test_coverage:null,additional_metrics:{cyclomatic_complexity:{percentile:68.4,percent_of_max:72,score:13},encapsulation:{percentile:75.6,percent_of_max:70,score:12},feature_size:{percentile:55.8,percent_of_max:35,score:2e3},test_coverage:{percentile:82.3,percent_of_max:85,score:80},health:{test_coverage_component:{awardable_points:70,health_score:59.5,close_to_maximum_score:!0,exceeds_score_threshold:!0},cyclomatic_complexity_component:{awardable_points:15,health_score:10.8,close_to_maximum_score:!0,exceeds_score_threshold:!0},encapsulation_component:{awardable_points:15,health_score:10.5,close_to_maximum_score:!0,exceeds_score_threshold:!0},overall:80.8}}},Analytics:{assignments:{files:["src/analytics/services/tracking_service.rb","src/analytics/jobs/event_processor_job.rb","src/analytics/models/event.rb","src/analytics/workers/analytics_worker.rb"],teams:["Data Science"]},description:"User behavior tracking and analytics processing pipeline",documentation_link:"https://internal-docs.company.com/analytics/overview",metrics:{abc_size:234.56,lines_of_code:412,cyclomatic_complexity:28},test_coverage:{lines:412,hits:324,misses:88},test_pyramid:{unit_count:100,unit_pending:5,integration_count:20,integration_pending:2,regression_count:5,regression_pending:1},additional_metrics:{cyclomatic_complexity:{percentile:85.2,percent_of_max:82,score:14},encapsulation:{percentile:78.9,percent_of_max:75,score:13},feature_size:{percentile:42.1,percent_of_max:25,score:1200},test_coverage:{percentile:78.6,percent_of_max:80,score:70},health:{test_coverage_component:{awardable_points:70,health_score:55,close_to_maximum_score:!0,exceeds_score_threshold:!0},cyclomatic_complexity_component:{awardable_points:15,health_score:12.3,close_to_maximum_score:!0,exceeds_score_threshold:!0},encapsulation_component:{awardable_points:15,health_score:11.25,close_to_maximum_score:!0,exceeds_score_threshold:!0},overall:78.55}}},"API Gateway":{assignments:{files:["src/gateway/controllers/api_controller.rb","src/gateway/services/rate_limiter.rb","src/gateway/middleware/api_middleware.rb","src/gateway/models/api_key.rb"],teams:["Platform"]},description:"API Gateway handling authentication, rate limiting and request routing",documentation_link:"https://internal-docs.company.com/gateway/overview",metrics:{abc_size:423.67,lines_of_code:678,cyclomatic_complexity:52},test_coverage:{lines:678,hits:671,misses:7},test_pyramid:{unit_count:100,unit_pending:5,integration_count:20,integration_pending:2,regression_count:5,regression_pending:1},additional_metrics:{cyclomatic_complexity:{percentile:89.5,percent_of_max:88,score:15},encapsulation:{percentile:92.3,percent_of_max:90,score:14},feature_size:{percentile:58.7,percent_of_max:42,score:2200},test_coverage:{percentile:98.2,percent_of_max:99,score:90},health:{test_coverage_component:{awardable_points:70,health_score:68.6,close_to_maximum_score:!0,exceeds_score_threshold:!0},cyclomatic_complexity_component:{awardable_points:15,health_score:13.5,close_to_maximum_score:!0,exceeds_score_threshold:!0},encapsulation_component:{awardable_points:15,health_score:13.8,close_to_maximum_score:!0,exceeds_score_threshold:!0},overall:95.9}}},"Document Processing":{assignments:{files:["src/documents/services/document_service.rb","src/documents/jobs/document_processor_job.rb","src/documents/models/document.rb","src/documents/workers/pdf_worker.rb","src/documents/validators/document_validator.rb"],teams:["Content Management"]},description:"Document processing system for PDF generation and manipulation",documentation_link:"https://internal-docs.company.com/documents/overview",metrics:{abc_size:534.89,lines_of_code:892,cyclomatic_complexity:64},test_coverage:{lines:892,hits:534,misses:358},test_pyramid:{unit_count:100,unit_pending:5,integration_count:20,integration_pending:2,regression_count:5,regression_pending:1},additional_metrics:{cyclomatic_complexity:{percentile:72.4,percent_of_max:68,score:12},encapsulation:{percentile:65.8,percent_of_max:62,score:11},feature_size:{percentile:68.9,percent_of_max:55,score:2500},test_coverage:{percentile:59.8,percent_of_max:60,score:60},health:{test_coverage_component:{awardable_points:70,health_score:42,close_to_maximum_score:!1,exceeds_score_threshold:!0},cyclomatic_complexity_component:{awardable_points:15,health_score:10.2,close_to_maximum_score:!0,exceeds_score_threshold:!0},encapsulation_component:{awardable_points:15,health_score:9.3,close_to_maximum_score:!1,exceeds_score_threshold:!0},overall:61.5}}},"Notification System":{assignments:{files:["src/notifications/services/notification_service.rb","src/notifications/jobs/notification_sender_job.rb","src/notifications/models/notification.rb","src/notifications/workers/push_notification_worker.rb"],teams:["Communications"]},description:"Push notification system for mobile and web clients",documentation_link:"https://internal-docs.company.com/notifications/overview",metrics:{abc_size:780.34,lines_of_code:1456,cyclomatic_complexity:241},additional_metrics:{cyclomatic_complexity:{percentile:62.8,percent_of_max:58,score:11},encapsulation:{percentile:71.2,percent_of_max:65,score:10},feature_size:{percentile:82.4,percent_of_max:75,score:2700},test_coverage:{percentile:68.5,percent_of_max:70,score:65},health:{test_coverage_component:{awardable_points:70,health_score:49,close_to_maximum_score:!1,exceeds_score_threshold:!0},cyclomatic_complexity_component:{awardable_points:15,health_score:8.7,close_to_maximum_score:!1,exceeds_score_threshold:!0},encapsulation_component:{awardable_points:15,health_score:9.75,close_to_maximum_score:!1,exceeds_score_threshold:!0},overall:67.45}},test_coverage:{lines:1456,hits:998,misses:458},test_pyramid:{unit_count:100,unit_pending:5,integration_count:20,integration_pending:2,regression_count:5,regression_pending:1}},"Search Engine":{assignments:{files:["src/search/controllers/search_controller.rb","src/search/services/elasticsearch_service.rb","src/search/jobs/index_job.rb","src/search/models/search_index.rb","src/search/workers/indexing_worker.rb"],teams:["Search & Discovery","Platform","Communications","Admin"]},description:"Elasticsearch-based full-text search engine",documentation_link:"https://internal-docs.company.com/search/overview",metrics:{abc_size:645.78,lines_of_code:934,cyclomatic_complexity:76},additional_metrics:{cyclomatic_complexity:{percentile:75,percent_of_max:70,score:13},encapsulation:{percentile:80,percent_of_max:75,score:12},feature_size:{percentile:60,percent_of_max:50,score:1800},test_coverage:{percentile:85,percent_of_max:80,score:75},health:{test_coverage_component:{awardable_points:70,health_score:68,close_to_maximum_score:!0,exceeds_score_threshold:!0},cyclomatic_complexity_component:{awardable_points:15,health_score:10.5,close_to_maximum_score:!0,exceeds_score_threshold:!0},encapsulation_component:{awardable_points:15,health_score:11.25,close_to_maximum_score:!0,exceeds_score_threshold:!0},overall:89.75}},test_coverage:{lines:567,hits:489,misses:78},test_pyramid:{unit_count:100,unit_pending:5,integration_count:20,integration_pending:2,regression_count:5,regression_pending:1}},"Cache Management":{assignments:{files:null,teams:null},description:null,documentation_link:null,metrics:{abc_size:null,lines_of_code:null,cyclomatic_complexity:null},additional_metrics:{cyclomatic_complexity:{percentile:0,percent_of_max:0,score:0},encapsulation:{percentile:0,percent_of_max:0,score:0},feature_size:{percentile:0,percent_of_max:0,score:0},test_coverage:{percentile:0,percent_of_max:0,score:0},health:{test_coverage_component:{awardable_points:70,health_score:0,close_to_maximum_score:!1,exceeds_score_threshold:!1},cyclomatic_complexity_component:{awardable_points:15,health_score:0,close_to_maximum_score:!1,exceeds_score_threshold:!1},encapsulation_component:{awardable_points:15,health_score:0,close_to_maximum_score:!1,exceeds_score_threshold:!1},overall:0}},test_coverage:null}}},RI={assigned_globs:["app/**/*.rb"],unassigned_globs:["app/models/**/*","app/controllers/admin/**/*"],require_assignment_for_teams:["Onboarding"],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://example.com"},documentation_site:{health:{minimum_thresholds:{good:95,fair:80,poor:0},components:{cyclomatic_complexity:{weight:15,minimum_variance:10,score_threshold:100},encapsulation:{weight:15,minimum_variance:10,score_threshold:100},test_coverage:{weight:70,score_threshold:98}}},size_percentile:{minimum_thresholds:{xl:95,l:75,m:25,s:5,xs:0}},test_coverage:{minimum_thresholds:{good:98,fair:95,poor:0}}}},LI={...II,project:RI,environment:{git_ref:"main"}},Ji=window.FEATURE_MAP_CONFIG||LI;/**
69
69
  * @license lucide-react v0.468.0 - ISC
70
70
  *
71
71
  * This source code is licensed under the ISC license.
72
72
  * See the LICENSE file in the root directory of this source tree.
73
- */const GI=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mP=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
73
+ */const DI=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),pP=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
74
74
  * @license lucide-react v0.468.0 - ISC
75
75
  *
76
76
  * This source code is licensed under the ISC license.
77
77
  * See the LICENSE file in the root directory of this source tree.
78
- */var XI={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 FI={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"};/**
79
79
  * @license lucide-react v0.468.0 - ISC
80
80
  *
81
81
  * This source code is licensed under the ISC license.
82
82
  * See the LICENSE file in the root directory of this source tree.
83
- */const YI=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:a,...l},s)=>S.createElement("svg",{ref:s,...XI,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:mP("lucide",i),...l},[...a.map(([u,c])=>S.createElement(u,c)),...Array.isArray(o)?o:[o]]));/**
83
+ */const BI=_.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:a,...l},s)=>_.createElement("svg",{ref:s,...FI,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:pP("lucide",i),...l},[...a.map(([u,c])=>_.createElement(u,c)),...Array.isArray(o)?o:[o]]));/**
84
84
  * @license lucide-react v0.468.0 - ISC
85
85
  *
86
86
  * This source code is licensed under the ISC license.
87
87
  * See the LICENSE file in the root directory of this source tree.
88
- */const gt=(e,t)=>{const n=S.forwardRef(({className:r,...i},o)=>S.createElement(YI,{ref:o,iconNode:t,className:mP(`lucide-${GI(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
88
+ */const gt=(e,t)=>{const n=_.forwardRef(({className:r,...i},o)=>_.createElement(BI,{ref:o,iconNode:t,className:pP(`lucide-${DI(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
89
89
  * @license lucide-react v0.468.0 - ISC
90
90
  *
91
91
  * This source code is licensed under the ISC license.
92
92
  * See the LICENSE file in the root directory of this source tree.
93
- */const vP=gt("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
93
+ */const hP=gt("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
94
94
  * @license lucide-react v0.468.0 - ISC
95
95
  *
96
96
  * This source code is licensed under the ISC license.
97
97
  * See the LICENSE file in the root directory of this source tree.
98
- */const QI=gt("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
98
+ */const zI=gt("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
99
99
  * @license lucide-react v0.468.0 - ISC
100
100
  *
101
101
  * This source code is licensed under the ISC license.
102
102
  * See the LICENSE file in the root directory of this source tree.
103
- */const oh=gt("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
103
+ */const rh=gt("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
104
104
  * @license lucide-react v0.468.0 - ISC
105
105
  *
106
106
  * This source code is licensed under the ISC license.
107
107
  * See the LICENSE file in the root directory of this source tree.
108
- */const Vm=gt("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"}]]);/**
108
+ */const Hm=gt("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"}]]);/**
109
109
  * @license lucide-react v0.468.0 - ISC
110
110
  *
111
111
  * This source code is licensed under the ISC license.
112
112
  * See the LICENSE file in the root directory of this source tree.
113
- */const Ly=gt("FlaskConical",[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]]);/**
113
+ */const Iy=gt("FlaskConical",[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]]);/**
114
114
  * @license lucide-react v0.468.0 - ISC
115
115
  *
116
116
  * This source code is licensed under the ISC license.
117
117
  * See the LICENSE file in the root directory of this source tree.
118
- */const gP=gt("FolderTree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]);/**
118
+ */const mP=gt("FolderTree",[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]]);/**
119
119
  * @license lucide-react v0.468.0 - ISC
120
120
  *
121
121
  * This source code is licensed under the ISC license.
122
122
  * See the LICENSE file in the root directory of this source tree.
123
- */const ZI=gt("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"}]]);/**
123
+ */const UI=gt("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"}]]);/**
124
124
  * @license lucide-react v0.468.0 - ISC
125
125
  *
126
126
  * This source code is licensed under the ISC license.
127
127
  * See the LICENSE file in the root directory of this source tree.
128
- */const Dy=gt("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
128
+ */const Ry=gt("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
129
129
  * @license lucide-react v0.468.0 - ISC
130
130
  *
131
131
  * This source code is licensed under the ISC license.
132
132
  * See the LICENSE file in the root directory of this source tree.
133
- */const JI=gt("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"}]]);/**
133
+ */const HI=gt("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"}]]);/**
134
134
  * @license lucide-react v0.468.0 - ISC
135
135
  *
136
136
  * This source code is licensed under the ISC license.
137
137
  * See the LICENSE file in the root directory of this source tree.
138
- */const eR=gt("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"}]]);/**
138
+ */const WI=gt("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"}]]);/**
139
139
  * @license lucide-react v0.468.0 - ISC
140
140
  *
141
141
  * This source code is licensed under the ISC license.
142
142
  * See the LICENSE file in the root directory of this source tree.
143
- */const ai=gt("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
143
+ */const oi=gt("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
144
144
  * @license lucide-react v0.468.0 - ISC
145
145
  *
146
146
  * This source code is licensed under the ISC license.
147
147
  * See the LICENSE file in the root directory of this source tree.
148
- */const tR=gt("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"}]]);/**
148
+ */const VI=gt("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"}]]);/**
149
149
  * @license lucide-react v0.468.0 - ISC
150
150
  *
151
151
  * This source code is licensed under the ISC license.
152
152
  * See the LICENSE file in the root directory of this source tree.
153
- */const yP=gt("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"}]]);/**
153
+ */const vP=gt("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"}]]);/**
154
154
  * @license lucide-react v0.468.0 - ISC
155
155
  *
156
156
  * This source code is licensed under the ISC license.
157
157
  * See the LICENSE file in the root directory of this source tree.
158
- */const nR=gt("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"}]]);/**
158
+ */const KI=gt("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"}]]);/**
159
159
  * @license lucide-react v0.468.0 - ISC
160
160
  *
161
161
  * This source code is licensed under the ISC license.
162
162
  * See the LICENSE file in the root directory of this source tree.
163
- */const rR=gt("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"}]]);/**
163
+ */const qI=gt("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"}]]);/**
164
164
  * @license lucide-react v0.468.0 - ISC
165
165
  *
166
166
  * This source code is licensed under the ISC license.
167
167
  * See the LICENSE file in the root directory of this source tree.
168
- */const Hi=gt("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 xP(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=xP(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function se(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=xP(e))&&(r&&(r+=" "),r+=t);return r}var iR=Array.isArray,Et=iR,oR=typeof hu=="object"&&hu&&hu.Object===Object&&hu,bP=oR,aR=bP,lR=typeof self=="object"&&self&&self.Object===Object&&self,sR=aR||lR||Function("return this")(),An=sR,uR=An,cR=uR.Symbol,_a=cR,Kb=_a,wP=Object.prototype,fR=wP.hasOwnProperty,dR=wP.toString,Za=Kb?Kb.toStringTag:void 0;function pR(e){var t=fR.call(e,Za),n=e[Za];try{e[Za]=void 0;var r=!0}catch{}var i=dR.call(e);return r&&(t?e[Za]=n:delete e[Za]),i}var hR=pR,mR=Object.prototype,vR=mR.toString;function gR(e){return vR.call(e)}var yR=gR,qb=_a,xR=hR,bR=yR,wR="[object Null]",SR="[object Undefined]",Gb=qb?qb.toStringTag:void 0;function _R(e){return e==null?e===void 0?SR:wR:Gb&&Gb in Object(e)?xR(e):bR(e)}var Tr=_R;function OR(e){return e!=null&&typeof e=="object"}var Tn=OR,ER=Tr,$R=Tn,PR="[object Symbol]";function AR(e){return typeof e=="symbol"||$R(e)&&ER(e)==PR}var Oa=AR,TR=Et,jR=Oa,CR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,kR=/^\w*$/;function NR(e,t){if(TR(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||jR(e)?!0:kR.test(e)||!CR.test(e)||t!=null&&e in Object(t)}var Fy=NR;function MR(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var jn=MR;const Ea=he(jn);var IR=Tr,RR=jn,LR="[object AsyncFunction]",DR="[object Function]",FR="[object GeneratorFunction]",BR="[object Proxy]";function zR(e){if(!RR(e))return!1;var t=IR(e);return t==DR||t==FR||t==LR||t==BR}var By=zR;const J=he(By);var UR=An,HR=UR["__core-js_shared__"],WR=HR,ah=WR,Xb=function(){var e=/[^.]+$/.exec(ah&&ah.keys&&ah.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function VR(e){return!!Xb&&Xb in e}var KR=VR,qR=Function.prototype,GR=qR.toString;function XR(e){if(e!=null){try{return GR.call(e)}catch{}try{return e+""}catch{}}return""}var SP=XR,YR=By,QR=KR,ZR=jn,JR=SP,eL=/[\\^$.*+?()[\]{}|]/g,tL=/^\[object .+?Constructor\]$/,nL=Function.prototype,rL=Object.prototype,iL=nL.toString,oL=rL.hasOwnProperty,aL=RegExp("^"+iL.call(oL).replace(eL,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function lL(e){if(!ZR(e)||QR(e))return!1;var t=YR(e)?aL:tL;return t.test(JR(e))}var sL=lL;function uL(e,t){return e==null?void 0:e[t]}var cL=uL,fL=sL,dL=cL;function pL(e,t){var n=dL(e,t);return fL(n)?n:void 0}var eo=pL,hL=eo,mL=hL(Object,"create"),bd=mL,Yb=bd;function vL(){this.__data__=Yb?Yb(null):{},this.size=0}var gL=vL;function yL(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var xL=yL,bL=bd,wL="__lodash_hash_undefined__",SL=Object.prototype,_L=SL.hasOwnProperty;function OL(e){var t=this.__data__;if(bL){var n=t[e];return n===wL?void 0:n}return _L.call(t,e)?t[e]:void 0}var EL=OL,$L=bd,PL=Object.prototype,AL=PL.hasOwnProperty;function TL(e){var t=this.__data__;return $L?t[e]!==void 0:AL.call(t,e)}var jL=TL,CL=bd,kL="__lodash_hash_undefined__";function NL(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=CL&&t===void 0?kL:t,this}var ML=NL,IL=gL,RL=xL,LL=EL,DL=jL,FL=ML;function $a(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])}}$a.prototype.clear=IL;$a.prototype.delete=RL;$a.prototype.get=LL;$a.prototype.has=DL;$a.prototype.set=FL;var BL=$a;function zL(){this.__data__=[],this.size=0}var UL=zL;function HL(e,t){return e===t||e!==e&&t!==t}var wd=HL,WL=wd;function VL(e,t){for(var n=e.length;n--;)if(WL(e[n][0],t))return n;return-1}var Sd=VL,KL=Sd,qL=Array.prototype,GL=qL.splice;function XL(e){var t=this.__data__,n=KL(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():GL.call(t,n,1),--this.size,!0}var YL=XL,QL=Sd;function ZL(e){var t=this.__data__,n=QL(t,e);return n<0?void 0:t[n][1]}var JL=ZL,eD=Sd;function tD(e){return eD(this.__data__,e)>-1}var nD=tD,rD=Sd;function iD(e,t){var n=this.__data__,r=rD(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var oD=iD,aD=UL,lD=YL,sD=JL,uD=nD,cD=oD;function Pa(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])}}Pa.prototype.clear=aD;Pa.prototype.delete=lD;Pa.prototype.get=sD;Pa.prototype.has=uD;Pa.prototype.set=cD;var _d=Pa,fD=eo,dD=An,pD=fD(dD,"Map"),zy=pD,Qb=BL,hD=_d,mD=zy;function vD(){this.size=0,this.__data__={hash:new Qb,map:new(mD||hD),string:new Qb}}var gD=vD;function yD(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var xD=yD,bD=xD;function wD(e,t){var n=e.__data__;return bD(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Od=wD,SD=Od;function _D(e){var t=SD(this,e).delete(e);return this.size-=t?1:0,t}var OD=_D,ED=Od;function $D(e){return ED(this,e).get(e)}var PD=$D,AD=Od;function TD(e){return AD(this,e).has(e)}var jD=TD,CD=Od;function kD(e,t){var n=CD(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var ND=kD,MD=gD,ID=OD,RD=PD,LD=jD,DD=ND;function Aa(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])}}Aa.prototype.clear=MD;Aa.prototype.delete=ID;Aa.prototype.get=RD;Aa.prototype.has=LD;Aa.prototype.set=DD;var Uy=Aa,_P=Uy,FD="Expected a function";function Hy(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(FD);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(Hy.Cache||_P),n}Hy.Cache=_P;var OP=Hy;const BD=he(OP);var zD=OP,UD=500;function HD(e){var t=zD(e,function(r){return n.size===UD&&n.clear(),r}),n=t.cache;return t}var WD=HD,VD=WD,KD=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qD=/\\(\\)?/g,GD=VD(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(KD,function(n,r,i,o){t.push(i?o.replace(qD,"$1"):r||n)}),t}),XD=GD;function YD(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 Ed=YD,Zb=_a,QD=Ed,ZD=Et,JD=Oa,e3=1/0,Jb=Zb?Zb.prototype:void 0,e1=Jb?Jb.toString:void 0;function EP(e){if(typeof e=="string")return e;if(ZD(e))return QD(e,EP)+"";if(JD(e))return e1?e1.call(e):"";var t=e+"";return t=="0"&&1/e==-e3?"-0":t}var t3=EP,n3=t3;function r3(e){return e==null?"":n3(e)}var $P=r3,i3=Et,o3=Fy,a3=XD,l3=$P;function s3(e,t){return i3(e)?e:o3(e,t)?[e]:a3(l3(e))}var $d=s3,u3=Oa,c3=1/0;function f3(e){if(typeof e=="string"||u3(e))return e;var t=e+"";return t=="0"&&1/e==-c3?"-0":t}var Ks=f3,d3=$d,p3=Ks;function h3(e,t){t=d3(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[p3(t[n++])];return n&&n==r?e:void 0}var Pd=h3,m3=Pd;function v3(e,t,n){var r=e==null?void 0:m3(e,t);return r===void 0?n:r}var PP=v3;const On=he(PP);function g3(e){return e==null}var y3=g3;const oe=he(y3);var x3=Tr,b3=Et,w3=Tn,S3="[object String]";function _3(e){return typeof e=="string"||!b3(e)&&w3(e)&&x3(e)==S3}var O3=_3;const Ta=he(O3);var AP={exports:{}},me={};/**
168
+ */const Ui=gt("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 gP(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=gP(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function se(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=gP(e))&&(r&&(r+=" "),r+=t);return r}var GI=Array.isArray,Ot=GI,XI=typeof hu=="object"&&hu&&hu.Object===Object&&hu,yP=XI,YI=yP,QI=typeof self=="object"&&self&&self.Object===Object&&self,ZI=YI||QI||Function("return this")(),An=ZI,JI=An,eR=JI.Symbol,Sa=eR,Wb=Sa,xP=Object.prototype,tR=xP.hasOwnProperty,nR=xP.toString,Za=Wb?Wb.toStringTag:void 0;function rR(e){var t=tR.call(e,Za),n=e[Za];try{e[Za]=void 0;var r=!0}catch{}var i=nR.call(e);return r&&(t?e[Za]=n:delete e[Za]),i}var iR=rR,oR=Object.prototype,aR=oR.toString;function lR(e){return aR.call(e)}var sR=lR,Vb=Sa,uR=iR,cR=sR,fR="[object Null]",dR="[object Undefined]",Kb=Vb?Vb.toStringTag:void 0;function pR(e){return e==null?e===void 0?dR:fR:Kb&&Kb in Object(e)?uR(e):cR(e)}var Tr=pR;function hR(e){return e!=null&&typeof e=="object"}var Tn=hR,mR=Tr,vR=Tn,gR="[object Symbol]";function yR(e){return typeof e=="symbol"||vR(e)&&mR(e)==gR}var Ea=yR,xR=Ot,bR=Ea,wR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_R=/^\w*$/;function SR(e,t){if(xR(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||bR(e)?!0:_R.test(e)||!wR.test(e)||t!=null&&e in Object(t)}var Ly=SR;function ER(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var jn=ER;const Oa=he(jn);var OR=Tr,$R=jn,PR="[object AsyncFunction]",AR="[object Function]",TR="[object GeneratorFunction]",jR="[object Proxy]";function CR(e){if(!$R(e))return!1;var t=OR(e);return t==AR||t==TR||t==PR||t==jR}var Dy=CR;const J=he(Dy);var kR=An,NR=kR["__core-js_shared__"],MR=NR,ih=MR,qb=function(){var e=/[^.]+$/.exec(ih&&ih.keys&&ih.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function IR(e){return!!qb&&qb in e}var RR=IR,LR=Function.prototype,DR=LR.toString;function FR(e){if(e!=null){try{return DR.call(e)}catch{}try{return e+""}catch{}}return""}var bP=FR,BR=Dy,zR=RR,UR=jn,HR=bP,WR=/[\\^$.*+?()[\]{}|]/g,VR=/^\[object .+?Constructor\]$/,KR=Function.prototype,qR=Object.prototype,GR=KR.toString,XR=qR.hasOwnProperty,YR=RegExp("^"+GR.call(XR).replace(WR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function QR(e){if(!UR(e)||zR(e))return!1;var t=BR(e)?YR:VR;return t.test(HR(e))}var ZR=QR;function JR(e,t){return e==null?void 0:e[t]}var eL=JR,tL=ZR,nL=eL;function rL(e,t){var n=nL(e,t);return tL(n)?n:void 0}var eo=rL,iL=eo,oL=iL(Object,"create"),xd=oL,Gb=xd;function aL(){this.__data__=Gb?Gb(null):{},this.size=0}var lL=aL;function sL(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var uL=sL,cL=xd,fL="__lodash_hash_undefined__",dL=Object.prototype,pL=dL.hasOwnProperty;function hL(e){var t=this.__data__;if(cL){var n=t[e];return n===fL?void 0:n}return pL.call(t,e)?t[e]:void 0}var mL=hL,vL=xd,gL=Object.prototype,yL=gL.hasOwnProperty;function xL(e){var t=this.__data__;return vL?t[e]!==void 0:yL.call(t,e)}var bL=xL,wL=xd,_L="__lodash_hash_undefined__";function SL(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=wL&&t===void 0?_L:t,this}var EL=SL,OL=lL,$L=uL,PL=mL,AL=bL,TL=EL;function $a(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])}}$a.prototype.clear=OL;$a.prototype.delete=$L;$a.prototype.get=PL;$a.prototype.has=AL;$a.prototype.set=TL;var jL=$a;function CL(){this.__data__=[],this.size=0}var kL=CL;function NL(e,t){return e===t||e!==e&&t!==t}var bd=NL,ML=bd;function IL(e,t){for(var n=e.length;n--;)if(ML(e[n][0],t))return n;return-1}var wd=IL,RL=wd,LL=Array.prototype,DL=LL.splice;function FL(e){var t=this.__data__,n=RL(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():DL.call(t,n,1),--this.size,!0}var BL=FL,zL=wd;function UL(e){var t=this.__data__,n=zL(t,e);return n<0?void 0:t[n][1]}var HL=UL,WL=wd;function VL(e){return WL(this.__data__,e)>-1}var KL=VL,qL=wd;function GL(e,t){var n=this.__data__,r=qL(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var XL=GL,YL=kL,QL=BL,ZL=HL,JL=KL,eD=XL;function Pa(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])}}Pa.prototype.clear=YL;Pa.prototype.delete=QL;Pa.prototype.get=ZL;Pa.prototype.has=JL;Pa.prototype.set=eD;var _d=Pa,tD=eo,nD=An,rD=tD(nD,"Map"),Fy=rD,Xb=jL,iD=_d,oD=Fy;function aD(){this.size=0,this.__data__={hash:new Xb,map:new(oD||iD),string:new Xb}}var lD=aD;function sD(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var uD=sD,cD=uD;function fD(e,t){var n=e.__data__;return cD(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Sd=fD,dD=Sd;function pD(e){var t=dD(this,e).delete(e);return this.size-=t?1:0,t}var hD=pD,mD=Sd;function vD(e){return mD(this,e).get(e)}var gD=vD,yD=Sd;function xD(e){return yD(this,e).has(e)}var bD=xD,wD=Sd;function _D(e,t){var n=wD(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var SD=_D,ED=lD,OD=hD,$D=gD,PD=bD,AD=SD;function Aa(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])}}Aa.prototype.clear=ED;Aa.prototype.delete=OD;Aa.prototype.get=$D;Aa.prototype.has=PD;Aa.prototype.set=AD;var By=Aa,wP=By,TD="Expected a function";function zy(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(TD);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(zy.Cache||wP),n}zy.Cache=wP;var _P=zy;const jD=he(_P);var CD=_P,kD=500;function ND(e){var t=CD(e,function(r){return n.size===kD&&n.clear(),r}),n=t.cache;return t}var MD=ND,ID=MD,RD=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,LD=/\\(\\)?/g,DD=ID(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(RD,function(n,r,i,o){t.push(i?o.replace(LD,"$1"):r||n)}),t}),FD=DD;function BD(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 Ed=BD,Yb=Sa,zD=Ed,UD=Ot,HD=Ea,WD=1/0,Qb=Yb?Yb.prototype:void 0,Zb=Qb?Qb.toString:void 0;function SP(e){if(typeof e=="string")return e;if(UD(e))return zD(e,SP)+"";if(HD(e))return Zb?Zb.call(e):"";var t=e+"";return t=="0"&&1/e==-WD?"-0":t}var VD=SP,KD=VD;function qD(e){return e==null?"":KD(e)}var EP=qD,GD=Ot,XD=Ly,YD=FD,QD=EP;function ZD(e,t){return GD(e)?e:XD(e,t)?[e]:YD(QD(e))}var Od=ZD,JD=Ea,e3=1/0;function t3(e){if(typeof e=="string"||JD(e))return e;var t=e+"";return t=="0"&&1/e==-e3?"-0":t}var Ks=t3,n3=Od,r3=Ks;function i3(e,t){t=n3(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[r3(t[n++])];return n&&n==r?e:void 0}var $d=i3,o3=$d;function a3(e,t,n){var r=e==null?void 0:o3(e,t);return r===void 0?n:r}var OP=a3;const En=he(OP);function l3(e){return e==null}var s3=l3;const oe=he(s3);var u3=Tr,c3=Ot,f3=Tn,d3="[object String]";function p3(e){return typeof e=="string"||!c3(e)&&f3(e)&&u3(e)==d3}var h3=p3;const Ta=he(h3);var $P={exports:{}},me={};/**
169
169
  * @license React
170
170
  * react-is.production.min.js
171
171
  *
@@ -173,52 +173,52 @@ Please change the parent <Route path="${g}"> to <Route path="${g==="/"?"*":`${g}
173
173
  *
174
174
  * This source code is licensed under the MIT license found in the
175
175
  * LICENSE file in the root directory of this source tree.
176
- */var Wy=Symbol.for("react.element"),Vy=Symbol.for("react.portal"),Ad=Symbol.for("react.fragment"),Td=Symbol.for("react.strict_mode"),jd=Symbol.for("react.profiler"),Cd=Symbol.for("react.provider"),kd=Symbol.for("react.context"),E3=Symbol.for("react.server_context"),Nd=Symbol.for("react.forward_ref"),Md=Symbol.for("react.suspense"),Id=Symbol.for("react.suspense_list"),Rd=Symbol.for("react.memo"),Ld=Symbol.for("react.lazy"),$3=Symbol.for("react.offscreen"),TP;TP=Symbol.for("react.module.reference");function dn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Wy:switch(e=e.type,e){case Ad:case jd:case Td:case Md:case Id:return e;default:switch(e=e&&e.$$typeof,e){case E3:case kd:case Nd:case Ld:case Rd:case Cd:return e;default:return t}}case Vy:return t}}}me.ContextConsumer=kd;me.ContextProvider=Cd;me.Element=Wy;me.ForwardRef=Nd;me.Fragment=Ad;me.Lazy=Ld;me.Memo=Rd;me.Portal=Vy;me.Profiler=jd;me.StrictMode=Td;me.Suspense=Md;me.SuspenseList=Id;me.isAsyncMode=function(){return!1};me.isConcurrentMode=function(){return!1};me.isContextConsumer=function(e){return dn(e)===kd};me.isContextProvider=function(e){return dn(e)===Cd};me.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Wy};me.isForwardRef=function(e){return dn(e)===Nd};me.isFragment=function(e){return dn(e)===Ad};me.isLazy=function(e){return dn(e)===Ld};me.isMemo=function(e){return dn(e)===Rd};me.isPortal=function(e){return dn(e)===Vy};me.isProfiler=function(e){return dn(e)===jd};me.isStrictMode=function(e){return dn(e)===Td};me.isSuspense=function(e){return dn(e)===Md};me.isSuspenseList=function(e){return dn(e)===Id};me.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ad||e===jd||e===Td||e===Md||e===Id||e===$3||typeof e=="object"&&e!==null&&(e.$$typeof===Ld||e.$$typeof===Rd||e.$$typeof===Cd||e.$$typeof===kd||e.$$typeof===Nd||e.$$typeof===TP||e.getModuleId!==void 0)};me.typeOf=dn;AP.exports=me;var P3=AP.exports,A3=Tr,T3=Tn,j3="[object Number]";function C3(e){return typeof e=="number"||T3(e)&&A3(e)==j3}var jP=C3;const CP=he(jP);var k3=jP;function N3(e){return k3(e)&&e!=+e}var M3=N3;const qs=he(M3);var rn=function(t){return t===0?0:t>0?1:-1},Pi=function(t){return Ta(t)&&t.indexOf("%")===t.length-1},K=function(t){return CP(t)&&!qs(t)},Ye=function(t){return K(t)||Ta(t)},I3=0,Dd=function(t){var n=++I3;return"".concat(t||"").concat(n)},Tt=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(!K(t)&&!Ta(t))return r;var o;if(Pi(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},co=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},R3=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},Yt=function(t,n){return K(t)&&K(n)?function(r){return t+r*(n-t)}:function(){return n}};function Km(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):On(r,t))===n})}function qm(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 Gm(e){"@babel/helpers - typeof";return Gm=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},Gm(e)}var L3=["viewBox","children"],D3=["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"],t1=["points","pathLength"],lh={svg:L3,polygon:t1,polyline:t1},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"],Kc=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(S.isValidElement(t)&&(r=t.props),!Ea(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},F3=function(t,n,r){return function(i){return t(n,r,i),null}},Gs=function(t,n,r){if(!Ea(t)||Gm(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]=F3(a,n,r))}),i},B3=["children"],z3=["children"];function n1(e,t){if(e==null)return{};var n=U3(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 U3(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 r1={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"},dr=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},i1=null,sh=null,qy=function e(t){if(t===i1&&Array.isArray(sh))return sh;var n=[];return S.Children.forEach(t,function(r){oe(r)||(P3.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),sh=n,i1=t,n};function En(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return dr(i)}):r=[dr(t)],qy(e).forEach(function(i){var o=On(i,"type.displayName")||On(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}function Qt(e,t){var n=En(e,t);return n&&n[0]}var o1=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!K(r)||r<=0||!K(i)||i<=0)},H3=["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"],W3=function(t){return t&&t.type&&Ta(t.type)&&H3.indexOf(t.type)>=0},V3=function(t,n,r,i){var o,a=(o=lh==null?void 0:lh[i])!==null&&o!==void 0?o:[];return!J(t)&&(i&&a.includes(n)||D3.includes(n))||r&&Ky.includes(n)},ee=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(S.isValidElement(t)&&(i=t.props),!Ea(i))return null;var o={};return Object.keys(i).forEach(function(a){var l;V3((l=i)===null||l===void 0?void 0:l[a],a,n,r)&&(o[a]=i[a])}),o},Xm=function e(t,n){if(t===n)return!0;var r=S.Children.count(t);if(r!==S.Children.count(n))return!1;if(r===0)return!0;if(r===1)return a1(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(!a1(o,a))return!1}return!0},a1=function(t,n){if(oe(t)&&oe(n))return!0;if(!oe(t)&&!oe(n)){var r=t.props||{},i=r.children,o=n1(r,B3),a=n.props||{},l=a.children,s=n1(a,z3);return i&&l?qm(o,s)&&Xm(i,l):!i&&!l?qm(o,s):!1}return!1},l1=function(t,n){var r=[],i={};return qy(t).forEach(function(o,a){if(W3(o))r.push(o);else if(o){var l=dr(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},K3=function(t){var n=t&&t.type;return n&&r1[n]?r1[n]:null},q3=function(t,n){return qy(n).indexOf(t)},G3=["children","width","height","viewBox","className","style","title","desc"];function Ym(){return Ym=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},Ym.apply(this,arguments)}function X3(e,t){if(e==null)return{};var n=Y3(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 Y3(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 Qm(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=X3(e,G3),c=i||{width:n,height:r,x:0,y:0},f=se("recharts-surface",o);return j.createElement("svg",Ym({},ee(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 Q3=["children","className"];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 Z3(e,t){if(e==null)return{};var n=J3(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 J3(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 $e=j.forwardRef(function(e,t){var n=e.children,r=e.className,i=Z3(e,Q3),o=se("recharts-layer",r);return j.createElement("g",Zm({className:o},ee(i,!0),{ref:t}),n)}),pr=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 e5(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 kP=e5,t5=kP;function n5(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:t5(e,t,n)}var r5=n5,i5="\\ud800-\\udfff",o5="\\u0300-\\u036f",a5="\\ufe20-\\ufe2f",l5="\\u20d0-\\u20ff",s5=o5+a5+l5,u5="\\ufe0e\\ufe0f",c5="\\u200d",f5=RegExp("["+c5+i5+s5+u5+"]");function d5(e){return f5.test(e)}var NP=d5;function p5(e){return e.split("")}var h5=p5,MP="\\ud800-\\udfff",m5="\\u0300-\\u036f",v5="\\ufe20-\\ufe2f",g5="\\u20d0-\\u20ff",y5=m5+v5+g5,x5="\\ufe0e\\ufe0f",b5="["+MP+"]",Jm="["+y5+"]",ev="\\ud83c[\\udffb-\\udfff]",w5="(?:"+Jm+"|"+ev+")",IP="[^"+MP+"]",RP="(?:\\ud83c[\\udde6-\\uddff]){2}",LP="[\\ud800-\\udbff][\\udc00-\\udfff]",S5="\\u200d",DP=w5+"?",FP="["+x5+"]?",_5="(?:"+S5+"(?:"+[IP,RP,LP].join("|")+")"+FP+DP+")*",O5=FP+DP+_5,E5="(?:"+[IP+Jm+"?",Jm,RP,LP,b5].join("|")+")",$5=RegExp(ev+"(?="+ev+")|"+E5+O5,"g");function P5(e){return e.match($5)||[]}var A5=P5,T5=h5,j5=NP,C5=A5;function k5(e){return j5(e)?C5(e):T5(e)}var N5=k5,M5=r5,I5=NP,R5=N5,L5=$P;function D5(e){return function(t){t=L5(t);var n=I5(t)?R5(t):void 0,r=n?n[0]:t.charAt(0),i=n?M5(n,1).join(""):t.slice(1);return r[e]()+i}}var F5=D5,B5=F5,z5=B5("toUpperCase"),U5=z5;const Fd=he(U5);function be(e){return function(){return e}}const BP=Math.cos,qc=Math.sin,Cn=Math.sqrt,Gc=Math.PI,Bd=2*Gc,tv=Math.PI,nv=2*tv,xi=1e-6,H5=nv-xi;function zP(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function W5(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return zP;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 V5{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?zP:W5(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>xi)if(!(Math.abs(f*s-u*c)>xi)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-a,m=i-l,v=s*s+u*u,y=p*p+m*m,h=Math.sqrt(v),g=Math.sqrt(d),x=o*Math.tan((tv-Math.acos((v+d-y)/(2*h*g)))/2),O=x/g,w=x/h;Math.abs(O-1)>xi&&this._append`L${t+O*c},${n+O*f}`,this._append`A${o},${o},0,0,${+(f*p>c*m)},${this._x1=t+w*s},${this._y1=n+w*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)>xi||Math.abs(this._y1-c)>xi)&&this._append`L${u},${c}`,r&&(d<0&&(d=d%nv+nv),d>H5?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>xi&&this._append`A${r},${r},0,${+(d>=tv)},${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 Gy(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 V5(t)}function Xy(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function UP(e){this._context=e}UP.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 zd(e){return new UP(e)}function HP(e){return e[0]}function WP(e){return e[1]}function VP(e,t){var n=be(!0),r=null,i=zd,o=null,a=Gy(l);e=typeof e=="function"?e:e===void 0?HP:be(e),t=typeof t=="function"?t:t===void 0?WP:be(t);function l(s){var u,c=(s=Xy(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:be(+s),l):e},l.y=function(s){return arguments.length?(t=typeof s=="function"?s:be(+s),l):t},l.defined=function(s){return arguments.length?(n=typeof s=="function"?s:be(!!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=be(!0),o=null,a=zd,l=null,s=Gy(u);e=typeof e=="function"?e:e===void 0?HP:be(+e),t=typeof t=="function"?t:be(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?WP:be(+n);function u(f){var d,p,m,v=(f=Xy(f)).length,y,h=!1,g,x=new Array(v),O=new Array(v);for(o==null&&(l=a(g=s())),d=0;d<=v;++d){if(!(d<v&&i(y=f[d],d,f))===h)if(h=!h)p=d,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),m=d-1;m>=p;--m)l.point(x[m],O[m]);l.lineEnd(),l.areaEnd()}h&&(x[d]=+e(y,d,f),O[d]=+t(y,d,f),l.point(r?+r(y,d,f):x[d],n?+n(y,d,f):O[d]))}if(g)return l=null,g+""||null}function c(){return VP().defined(i).curve(a).context(o)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:be(+f),r=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:be(+f),u):e},u.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:be(+f),u):r},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:be(+f),n=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:be(+f),u):t},u.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:be(+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:be(!!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 KP{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 K5(e){return new KP(e,!0)}function q5(e){return new KP(e,!1)}const Yy={draw(e,t){const n=Cn(t/Gc);e.moveTo(n,0),e.arc(0,0,n,0,Bd)}},G5={draw(e,t){const n=Cn(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()}},qP=Cn(1/3),X5=qP*2,Y5={draw(e,t){const n=Cn(t/X5),r=n*qP;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Q5={draw(e,t){const n=Cn(t),r=-n/2;e.rect(r,r,n,n)}},Z5=.8908130915292852,GP=qc(Gc/10)/qc(7*Gc/10),J5=qc(Bd/10)*GP,e4=-BP(Bd/10)*GP,t4={draw(e,t){const n=Cn(t*Z5),r=J5*n,i=e4*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const a=Bd*o/5,l=BP(a),s=qc(a);e.lineTo(s*n,-l*n),e.lineTo(l*r-s*i,s*r+l*i)}e.closePath()}},uh=Cn(3),n4={draw(e,t){const n=-Cn(t/(uh*3));e.moveTo(0,n*2),e.lineTo(-uh*n,-n),e.lineTo(uh*n,-n),e.closePath()}},qt=-.5,Gt=Cn(3)/2,rv=1/Cn(12),r4=(rv/2+1)*3,i4={draw(e,t){const n=Cn(t/r4),r=n/2,i=n*rv,o=r,a=n*rv+n,l=-o,s=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(l,s),e.lineTo(qt*r-Gt*i,Gt*r+qt*i),e.lineTo(qt*o-Gt*a,Gt*o+qt*a),e.lineTo(qt*l-Gt*s,Gt*l+qt*s),e.lineTo(qt*r+Gt*i,qt*i-Gt*r),e.lineTo(qt*o+Gt*a,qt*a-Gt*o),e.lineTo(qt*l+Gt*s,qt*s-Gt*l),e.closePath()}};function o4(e,t){let n=null,r=Gy(i);e=typeof e=="function"?e:be(e||Yy),t=typeof t=="function"?t:be(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:be(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:be(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function Xc(){}function Yc(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 XP(e){this._context=e}XP.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:Yc(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:Yc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function a4(e){return new XP(e)}function YP(e){this._context=e}YP.prototype={areaStart:Xc,areaEnd:Xc,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:Yc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function l4(e){return new YP(e)}function QP(e){this._context=e}QP.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:Yc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function s4(e){return new QP(e)}function ZP(e){this._context=e}ZP.prototype={areaStart:Xc,areaEnd:Xc,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 u4(e){return new ZP(e)}function s1(e){return e<0?-1:1}function u1(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(s1(o)+s1(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(l))||0}function c1(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function ch(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 Qc(e){this._context=e}Qc.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:ch(this,this._t0,c1(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,ch(this,c1(this,n=u1(this,e,t)),n);break;default:ch(this,this._t0,n=u1(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function JP(e){this._context=new eA(e)}(JP.prototype=Object.create(Qc.prototype)).point=function(e,t){Qc.prototype.point.call(this,t,e)};function eA(e){this._context=e}eA.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 c4(e){return new Qc(e)}function f4(e){return new JP(e)}function tA(e){this._context=e}tA.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=f1(e),i=f1(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 f1(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 d4(e){return new tA(e)}function Ud(e,t){this._context=e,this._t=t}Ud.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 p4(e){return new Ud(e,.5)}function h4(e){return new Ud(e,0)}function m4(e){return new Ud(e,1)}function Ko(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 iv(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function v4(e,t){return e[t]}function g4(e){const t=[];return t.key=e,t}function y4(){var e=be([]),t=iv,n=Ko,r=v4;function i(o){var a=Array.from(e.apply(this,arguments),g4),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=Xy(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:be(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:be(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?iv:typeof o=="function"?o:be(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??Ko,i):n},i}function x4(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}Ko(e,t)}}function b4(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}Ko(e,t)}}function w4(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,m=0;m<l;++m){var v=e[t[m]],y=v[r][1]||0,h=v[r-1][1]||0;p+=y-h}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,Ko(e,t)}}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)}var S4=["type","size","sizeType"];function ov(){return ov=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},ov.apply(this,arguments)}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 p1(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){_4(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 _4(e,t,n){return t=O4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O4(e){var t=E4(e,"string");return es(t)=="symbol"?t:t+""}function E4(e,t){if(es(e)!="object"||!e)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 $4(e,t){if(e==null)return{};var n=P4(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 P4(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 nA={symbolCircle:Yy,symbolCross:G5,symbolDiamond:Y5,symbolSquare:Q5,symbolStar:t4,symbolTriangle:n4,symbolWye:i4},A4=Math.PI/180,T4=function(t){var n="symbol".concat(Fd(t));return nA[n]||Yy},j4=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}},C4=function(t,n){nA["symbol".concat(Fd(t))]=n},Qy=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=$4(t,S4),u=p1(p1({},s),{},{type:r,size:o,sizeType:l}),c=function(){var y=T4(r),h=o4().type(y).size(j4(o,l,r));return h()},f=u.className,d=u.cx,p=u.cy,m=ee(u,!0);return d===+d&&p===+p&&o===+o?j.createElement("path",ov({},m,{className:se("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(p,")"),d:c()})):null};Qy.registerSymbol=C4;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 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 h1(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 k4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h1(Object(n),!0).forEach(function(r){ts(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function N4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M4(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,iA(r.key),r)}}function I4(e,t,n){return t&&M4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function R4(e,t,n){return t=Zc(t),L4(e,rA()?Reflect.construct(t,n||[],Zc(e).constructor):t.apply(e,n))}function L4(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 D4(e)}function D4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rA=function(){return!!e})()}function Zc(e){return Zc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Zc(e)}function F4(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 ts(e,t,n){return t=iA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iA(e){var t=B4(e,"string");return qo(t)=="symbol"?t:t+""}function B4(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 Xt=32,Zy=function(e){function t(){return N4(this,t),R4(this,t,arguments)}return F4(t,e),I4(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,o=Xt/2,a=Xt/6,l=Xt/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:Xt,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,`
176
+ */var Uy=Symbol.for("react.element"),Hy=Symbol.for("react.portal"),Pd=Symbol.for("react.fragment"),Ad=Symbol.for("react.strict_mode"),Td=Symbol.for("react.profiler"),jd=Symbol.for("react.provider"),Cd=Symbol.for("react.context"),m3=Symbol.for("react.server_context"),kd=Symbol.for("react.forward_ref"),Nd=Symbol.for("react.suspense"),Md=Symbol.for("react.suspense_list"),Id=Symbol.for("react.memo"),Rd=Symbol.for("react.lazy"),v3=Symbol.for("react.offscreen"),PP;PP=Symbol.for("react.module.reference");function dn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Uy:switch(e=e.type,e){case Pd:case Td:case Ad:case Nd:case Md:return e;default:switch(e=e&&e.$$typeof,e){case m3:case Cd:case kd:case Rd:case Id:case jd:return e;default:return t}}case Hy:return t}}}me.ContextConsumer=Cd;me.ContextProvider=jd;me.Element=Uy;me.ForwardRef=kd;me.Fragment=Pd;me.Lazy=Rd;me.Memo=Id;me.Portal=Hy;me.Profiler=Td;me.StrictMode=Ad;me.Suspense=Nd;me.SuspenseList=Md;me.isAsyncMode=function(){return!1};me.isConcurrentMode=function(){return!1};me.isContextConsumer=function(e){return dn(e)===Cd};me.isContextProvider=function(e){return dn(e)===jd};me.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Uy};me.isForwardRef=function(e){return dn(e)===kd};me.isFragment=function(e){return dn(e)===Pd};me.isLazy=function(e){return dn(e)===Rd};me.isMemo=function(e){return dn(e)===Id};me.isPortal=function(e){return dn(e)===Hy};me.isProfiler=function(e){return dn(e)===Td};me.isStrictMode=function(e){return dn(e)===Ad};me.isSuspense=function(e){return dn(e)===Nd};me.isSuspenseList=function(e){return dn(e)===Md};me.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Pd||e===Td||e===Ad||e===Nd||e===Md||e===v3||typeof e=="object"&&e!==null&&(e.$$typeof===Rd||e.$$typeof===Id||e.$$typeof===jd||e.$$typeof===Cd||e.$$typeof===kd||e.$$typeof===PP||e.getModuleId!==void 0)};me.typeOf=dn;$P.exports=me;var g3=$P.exports,y3=Tr,x3=Tn,b3="[object Number]";function w3(e){return typeof e=="number"||x3(e)&&y3(e)==b3}var AP=w3;const TP=he(AP);var _3=AP;function S3(e){return _3(e)&&e!=+e}var E3=S3;const qs=he(E3);var rn=function(t){return t===0?0:t>0?1:-1},$i=function(t){return Ta(t)&&t.indexOf("%")===t.length-1},K=function(t){return TP(t)&&!qs(t)},Ye=function(t){return K(t)||Ta(t)},O3=0,Ld=function(t){var n=++O3;return"".concat(t||"").concat(n)},Tt=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(!K(t)&&!Ta(t))return r;var o;if($i(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},co=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},$3=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},Yt=function(t,n){return K(t)&&K(n)?function(r){return t+r*(n-t)}:function(){return n}};function Wm(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):En(r,t))===n})}function Vm(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 Km(e){"@babel/helpers - typeof";return Km=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},Km(e)}var P3=["viewBox","children"],A3=["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"],Jb=["points","pathLength"],oh={svg:P3,polygon:Jb,polyline:Jb},Wy=["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"],Vc=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(_.isValidElement(t)&&(r=t.props),!Oa(r))return null;var i={};return Object.keys(r).forEach(function(o){Wy.includes(o)&&(i[o]=n||function(a){return r[o](r,a)})}),i},T3=function(t,n,r){return function(i){return t(n,r,i),null}},Gs=function(t,n,r){if(!Oa(t)||Km(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(o){var a=t[o];Wy.includes(o)&&typeof a=="function"&&(i||(i={}),i[o]=T3(a,n,r))}),i},j3=["children"],C3=["children"];function e1(e,t){if(e==null)return{};var n=k3(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 k3(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 t1={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"},dr=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},n1=null,ah=null,Vy=function e(t){if(t===n1&&Array.isArray(ah))return ah;var n=[];return _.Children.forEach(t,function(r){oe(r)||(g3.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),ah=n,n1=t,n};function On(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return dr(i)}):r=[dr(t)],Vy(e).forEach(function(i){var o=En(i,"type.displayName")||En(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}function Qt(e,t){var n=On(e,t);return n&&n[0]}var r1=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!K(r)||r<=0||!K(i)||i<=0)},N3=["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"],M3=function(t){return t&&t.type&&Ta(t.type)&&N3.indexOf(t.type)>=0},I3=function(t,n,r,i){var o,a=(o=oh==null?void 0:oh[i])!==null&&o!==void 0?o:[];return!J(t)&&(i&&a.includes(n)||A3.includes(n))||r&&Wy.includes(n)},ee=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(_.isValidElement(t)&&(i=t.props),!Oa(i))return null;var o={};return Object.keys(i).forEach(function(a){var l;I3((l=i)===null||l===void 0?void 0:l[a],a,n,r)&&(o[a]=i[a])}),o},qm=function e(t,n){if(t===n)return!0;var r=_.Children.count(t);if(r!==_.Children.count(n))return!1;if(r===0)return!0;if(r===1)return i1(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(!i1(o,a))return!1}return!0},i1=function(t,n){if(oe(t)&&oe(n))return!0;if(!oe(t)&&!oe(n)){var r=t.props||{},i=r.children,o=e1(r,j3),a=n.props||{},l=a.children,s=e1(a,C3);return i&&l?Vm(o,s)&&qm(i,l):!i&&!l?Vm(o,s):!1}return!1},o1=function(t,n){var r=[],i={};return Vy(t).forEach(function(o,a){if(M3(o))r.push(o);else if(o){var l=dr(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},R3=function(t){var n=t&&t.type;return n&&t1[n]?t1[n]:null},L3=function(t,n){return Vy(n).indexOf(t)},D3=["children","width","height","viewBox","className","style","title","desc"];function Gm(){return Gm=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},Gm.apply(this,arguments)}function F3(e,t){if(e==null)return{};var n=B3(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 B3(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 Xm(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=F3(e,D3),c=i||{width:n,height:r,x:0,y:0},f=se("recharts-surface",o);return j.createElement("svg",Gm({},ee(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 z3=["children","className"];function Ym(){return Ym=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},Ym.apply(this,arguments)}function U3(e,t){if(e==null)return{};var n=H3(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 H3(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 $e=j.forwardRef(function(e,t){var n=e.children,r=e.className,i=U3(e,z3),o=se("recharts-layer",r);return j.createElement("g",Ym({className:o},ee(i,!0),{ref:t}),n)}),pr=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 W3(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 jP=W3,V3=jP;function K3(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:V3(e,t,n)}var q3=K3,G3="\\ud800-\\udfff",X3="\\u0300-\\u036f",Y3="\\ufe20-\\ufe2f",Q3="\\u20d0-\\u20ff",Z3=X3+Y3+Q3,J3="\\ufe0e\\ufe0f",e5="\\u200d",t5=RegExp("["+e5+G3+Z3+J3+"]");function n5(e){return t5.test(e)}var CP=n5;function r5(e){return e.split("")}var i5=r5,kP="\\ud800-\\udfff",o5="\\u0300-\\u036f",a5="\\ufe20-\\ufe2f",l5="\\u20d0-\\u20ff",s5=o5+a5+l5,u5="\\ufe0e\\ufe0f",c5="["+kP+"]",Qm="["+s5+"]",Zm="\\ud83c[\\udffb-\\udfff]",f5="(?:"+Qm+"|"+Zm+")",NP="[^"+kP+"]",MP="(?:\\ud83c[\\udde6-\\uddff]){2}",IP="[\\ud800-\\udbff][\\udc00-\\udfff]",d5="\\u200d",RP=f5+"?",LP="["+u5+"]?",p5="(?:"+d5+"(?:"+[NP,MP,IP].join("|")+")"+LP+RP+")*",h5=LP+RP+p5,m5="(?:"+[NP+Qm+"?",Qm,MP,IP,c5].join("|")+")",v5=RegExp(Zm+"(?="+Zm+")|"+m5+h5,"g");function g5(e){return e.match(v5)||[]}var y5=g5,x5=i5,b5=CP,w5=y5;function _5(e){return b5(e)?w5(e):x5(e)}var S5=_5,E5=q3,O5=CP,$5=S5,P5=EP;function A5(e){return function(t){t=P5(t);var n=O5(t)?$5(t):void 0,r=n?n[0]:t.charAt(0),i=n?E5(n,1).join(""):t.slice(1);return r[e]()+i}}var T5=A5,j5=T5,C5=j5("toUpperCase"),k5=C5;const Dd=he(k5);function be(e){return function(){return e}}const DP=Math.cos,Kc=Math.sin,Cn=Math.sqrt,qc=Math.PI,Fd=2*qc,Jm=Math.PI,ev=2*Jm,yi=1e-6,N5=ev-yi;function FP(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function M5(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return FP;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 I5{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?FP:M5(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>yi)if(!(Math.abs(f*s-u*c)>yi)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-a,m=i-l,v=s*s+u*u,y=p*p+m*m,h=Math.sqrt(v),g=Math.sqrt(d),x=o*Math.tan((Jm-Math.acos((v+d-y)/(2*h*g)))/2),E=x/g,w=x/h;Math.abs(E-1)>yi&&this._append`L${t+E*c},${n+E*f}`,this._append`A${o},${o},0,0,${+(f*p>c*m)},${this._x1=t+w*s},${this._y1=n+w*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)>yi||Math.abs(this._y1-c)>yi)&&this._append`L${u},${c}`,r&&(d<0&&(d=d%ev+ev),d>N5?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>yi&&this._append`A${r},${r},0,${+(d>=Jm)},${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 Ky(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 I5(t)}function qy(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 Bd(e){return new BP(e)}function zP(e){return e[0]}function UP(e){return e[1]}function HP(e,t){var n=be(!0),r=null,i=Bd,o=null,a=Ky(l);e=typeof e=="function"?e:e===void 0?zP:be(e),t=typeof t=="function"?t:t===void 0?UP:be(t);function l(s){var u,c=(s=qy(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:be(+s),l):e},l.y=function(s){return arguments.length?(t=typeof s=="function"?s:be(+s),l):t},l.defined=function(s){return arguments.length?(n=typeof s=="function"?s:be(!!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 Nu(e,t,n){var r=null,i=be(!0),o=null,a=Bd,l=null,s=Ky(u);e=typeof e=="function"?e:e===void 0?zP:be(+e),t=typeof t=="function"?t:be(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?UP:be(+n);function u(f){var d,p,m,v=(f=qy(f)).length,y,h=!1,g,x=new Array(v),E=new Array(v);for(o==null&&(l=a(g=s())),d=0;d<=v;++d){if(!(d<v&&i(y=f[d],d,f))===h)if(h=!h)p=d,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),m=d-1;m>=p;--m)l.point(x[m],E[m]);l.lineEnd(),l.areaEnd()}h&&(x[d]=+e(y,d,f),E[d]=+t(y,d,f),l.point(r?+r(y,d,f):x[d],n?+n(y,d,f):E[d]))}if(g)return l=null,g+""||null}function c(){return HP().defined(i).curve(a).context(o)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:be(+f),r=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:be(+f),u):e},u.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:be(+f),u):r},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:be(+f),n=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:be(+f),u):t},u.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:be(+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:be(!!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 WP{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 R5(e){return new WP(e,!0)}function L5(e){return new WP(e,!1)}const Gy={draw(e,t){const n=Cn(t/qc);e.moveTo(n,0),e.arc(0,0,n,0,Fd)}},D5={draw(e,t){const n=Cn(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()}},VP=Cn(1/3),F5=VP*2,B5={draw(e,t){const n=Cn(t/F5),r=n*VP;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},z5={draw(e,t){const n=Cn(t),r=-n/2;e.rect(r,r,n,n)}},U5=.8908130915292852,KP=Kc(qc/10)/Kc(7*qc/10),H5=Kc(Fd/10)*KP,W5=-DP(Fd/10)*KP,V5={draw(e,t){const n=Cn(t*U5),r=H5*n,i=W5*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const a=Fd*o/5,l=DP(a),s=Kc(a);e.lineTo(s*n,-l*n),e.lineTo(l*r-s*i,s*r+l*i)}e.closePath()}},lh=Cn(3),K5={draw(e,t){const n=-Cn(t/(lh*3));e.moveTo(0,n*2),e.lineTo(-lh*n,-n),e.lineTo(lh*n,-n),e.closePath()}},qt=-.5,Gt=Cn(3)/2,tv=1/Cn(12),q5=(tv/2+1)*3,G5={draw(e,t){const n=Cn(t/q5),r=n/2,i=n*tv,o=r,a=n*tv+n,l=-o,s=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(l,s),e.lineTo(qt*r-Gt*i,Gt*r+qt*i),e.lineTo(qt*o-Gt*a,Gt*o+qt*a),e.lineTo(qt*l-Gt*s,Gt*l+qt*s),e.lineTo(qt*r+Gt*i,qt*i-Gt*r),e.lineTo(qt*o+Gt*a,qt*a-Gt*o),e.lineTo(qt*l+Gt*s,qt*s-Gt*l),e.closePath()}};function X5(e,t){let n=null,r=Ky(i);e=typeof e=="function"?e:be(e||Gy),t=typeof t=="function"?t:be(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:be(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:be(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function Gc(){}function Xc(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 qP(e){this._context=e}qP.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:Xc(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:Xc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Y5(e){return new qP(e)}function GP(e){this._context=e}GP.prototype={areaStart:Gc,areaEnd:Gc,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:Xc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Q5(e){return new GP(e)}function XP(e){this._context=e}XP.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:Xc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Z5(e){return new XP(e)}function YP(e){this._context=e}YP.prototype={areaStart:Gc,areaEnd:Gc,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 J5(e){return new YP(e)}function a1(e){return e<0?-1:1}function l1(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(a1(o)+a1(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(l))||0}function s1(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function sh(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 Yc(e){this._context=e}Yc.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:sh(this,this._t0,s1(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,sh(this,s1(this,n=l1(this,e,t)),n);break;default:sh(this,this._t0,n=l1(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function QP(e){this._context=new ZP(e)}(QP.prototype=Object.create(Yc.prototype)).point=function(e,t){Yc.prototype.point.call(this,t,e)};function ZP(e){this._context=e}ZP.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 e4(e){return new Yc(e)}function t4(e){return new QP(e)}function JP(e){this._context=e}JP.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=u1(e),i=u1(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 u1(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 n4(e){return new JP(e)}function zd(e,t){this._context=e,this._t=t}zd.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 r4(e){return new zd(e,.5)}function i4(e){return new zd(e,0)}function o4(e){return new zd(e,1)}function Ko(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 nv(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function a4(e,t){return e[t]}function l4(e){const t=[];return t.key=e,t}function s4(){var e=be([]),t=nv,n=Ko,r=a4;function i(o){var a=Array.from(e.apply(this,arguments),l4),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=qy(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:be(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:be(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?nv:typeof o=="function"?o:be(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??Ko,i):n},i}function u4(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}Ko(e,t)}}function c4(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}Ko(e,t)}}function f4(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,m=0;m<l;++m){var v=e[t[m]],y=v[r][1]||0,h=v[r-1][1]||0;p+=y-h}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,Ko(e,t)}}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)}var d4=["type","size","sizeType"];function rv(){return rv=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},rv.apply(this,arguments)}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 f1(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){p4(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 p4(e,t,n){return t=h4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h4(e){var t=m4(e,"string");return es(t)=="symbol"?t:t+""}function m4(e,t){if(es(e)!="object"||!e)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 v4(e,t){if(e==null)return{};var n=g4(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 g4(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 eA={symbolCircle:Gy,symbolCross:D5,symbolDiamond:B5,symbolSquare:z5,symbolStar:V5,symbolTriangle:K5,symbolWye:G5},y4=Math.PI/180,x4=function(t){var n="symbol".concat(Dd(t));return eA[n]||Gy},b4=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*y4;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}},w4=function(t,n){eA["symbol".concat(Dd(t))]=n},Xy=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=v4(t,d4),u=f1(f1({},s),{},{type:r,size:o,sizeType:l}),c=function(){var y=x4(r),h=X5().type(y).size(b4(o,l,r));return h()},f=u.className,d=u.cx,p=u.cy,m=ee(u,!0);return d===+d&&p===+p&&o===+o?j.createElement("path",rv({},m,{className:se("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(p,")"),d:c()})):null};Xy.registerSymbol=w4;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 iv(){return iv=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},iv.apply(this,arguments)}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 _4(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){ts(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 S4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E4(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,nA(r.key),r)}}function O4(e,t,n){return t&&E4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $4(e,t,n){return t=Qc(t),P4(e,tA()?Reflect.construct(t,n||[],Qc(e).constructor):t.apply(e,n))}function P4(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 A4(e)}function A4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tA=function(){return!!e})()}function Qc(e){return Qc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qc(e)}function T4(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 ts(e,t,n){return t=nA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nA(e){var t=j4(e,"string");return qo(t)=="symbol"?t:t+""}function j4(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 Xt=32,Yy=function(e){function t(){return S4(this,t),$4(this,t,arguments)}return T4(t,e),O4(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,o=Xt/2,a=Xt/6,l=Xt/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:Xt,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,`
177
177
  A`).concat(a,",").concat(a,",0,1,1,").concat(2*l,",").concat(o,`
178
178
  H`).concat(Xt,"M").concat(2*l,",").concat(o,`
179
- 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(Xt/8,"h").concat(Xt,"v").concat(Xt*3/4,"h").concat(-Xt,"z"),className:"recharts-legend-icon"});if(j.isValidElement(r.legendIcon)){var u=k4({},r);return delete u.legendIcon,j.cloneElement(r.legendIcon,u)}return j.createElement(Qy,{fill:s,cx:o,cy:o,size:Xt,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:Xt,height:Xt},f={display:l==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(p,m){var v=p.formatter||s,y=se(ts(ts({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",p.inactive));if(p.type==="none")return null;var h=J(p.value)?null:p.value;pr(!J(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 g=p.inactive?u:p.color;return j.createElement("li",av({className:y,style:f,key:"legend-item-".concat(m)},Gs(r.props,p,m)),j.createElement(Qm,{width:a,height:a,viewBox:c,style:d},r.renderIcon(p)),j.createElement("span",{className:"recharts-legend-item-text",style:{color:g}},v?v(h,p,m):h))})}},{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())}}])}(S.PureComponent);ts(Zy,"displayName","Legend");ts(Zy,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var z4=_d;function U4(){this.__data__=new z4,this.size=0}var H4=U4;function W4(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var V4=W4;function K4(e){return this.__data__.get(e)}var q4=K4;function G4(e){return this.__data__.has(e)}var X4=G4,Y4=_d,Q4=zy,Z4=Uy,J4=200;function eF(e,t){var n=this.__data__;if(n instanceof Y4){var r=n.__data__;if(!Q4||r.length<J4-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Z4(r)}return n.set(e,t),this.size=n.size,this}var tF=eF,nF=_d,rF=H4,iF=V4,oF=q4,aF=X4,lF=tF;function ja(e){var t=this.__data__=new nF(e);this.size=t.size}ja.prototype.clear=rF;ja.prototype.delete=iF;ja.prototype.get=oF;ja.prototype.has=aF;ja.prototype.set=lF;var Jy=ja,sF="__lodash_hash_undefined__";function uF(e){return this.__data__.set(e,sF),this}var cF=uF;function fF(e){return this.__data__.has(e)}var dF=fF,pF=Uy,hF=cF,mF=dF;function Jc(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new pF;++t<n;)this.add(e[t])}Jc.prototype.add=Jc.prototype.push=hF;Jc.prototype.has=mF;var oA=Jc;function vF(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 aA=vF;function gF(e,t){return e.has(t)}var lA=gF,yF=oA,xF=aA,bF=lA,wF=1,SF=2;function _F(e,t,n,r,i,o){var a=n&wF,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&SF?new yF:void 0;for(o.set(e,t),o.set(t,e);++f<l;){var m=e[f],v=t[f];if(r)var y=a?r(v,m,f,t,e,o):r(m,v,f,e,t,o);if(y!==void 0){if(y)continue;d=!1;break}if(p){if(!xF(t,function(h,g){if(!bF(p,g)&&(m===h||i(m,h,n,r,o)))return p.push(g)})){d=!1;break}}else if(!(m===v||i(m,v,n,r,o))){d=!1;break}}return o.delete(e),o.delete(t),d}var sA=_F,OF=An,EF=OF.Uint8Array,uA=EF;function $F(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var PF=$F;function AF(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var e0=AF,m1=_a,v1=uA,TF=wd,jF=sA,CF=PF,kF=e0,NF=1,MF=2,IF="[object Boolean]",RF="[object Date]",LF="[object Error]",DF="[object Map]",FF="[object Number]",BF="[object RegExp]",zF="[object Set]",UF="[object String]",HF="[object Symbol]",WF="[object ArrayBuffer]",VF="[object DataView]",g1=m1?m1.prototype:void 0,fh=g1?g1.valueOf:void 0;function KF(e,t,n,r,i,o,a){switch(n){case VF:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case WF:return!(e.byteLength!=t.byteLength||!o(new v1(e),new v1(t)));case IF:case RF:case FF:return TF(+e,+t);case LF:return e.name==t.name&&e.message==t.message;case BF:case UF:return e==t+"";case DF:var l=CF;case zF:var s=r&NF;if(l||(l=kF),e.size!=t.size&&!s)return!1;var u=a.get(e);if(u)return u==t;r|=MF,a.set(e,t);var c=jF(l(e),l(t),r,i,o,a);return a.delete(e),c;case HF:if(fh)return fh.call(e)==fh.call(t)}return!1}var qF=KF;function GF(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var t0=GF,XF=t0,YF=Et;function QF(e,t,n){var r=t(e);return YF(e)?r:XF(r,n(e))}var cA=QF;function ZF(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 JF=ZF;function eB(){return[]}var fA=eB,tB=JF,nB=fA,rB=Object.prototype,iB=rB.propertyIsEnumerable,y1=Object.getOwnPropertySymbols,oB=y1?function(e){return e==null?[]:(e=Object(e),tB(y1(e),function(t){return iB.call(e,t)}))}:nB,n0=oB;function aB(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var lB=aB,sB=Tr,uB=Tn,cB="[object Arguments]";function fB(e){return uB(e)&&sB(e)==cB}var dB=fB,x1=dB,pB=Tn,dA=Object.prototype,hB=dA.hasOwnProperty,mB=dA.propertyIsEnumerable,vB=x1(function(){return arguments}())?x1:function(e){return pB(e)&&hB.call(e,"callee")&&!mB.call(e,"callee")},r0=vB,ef={exports:{}};function gB(){return!1}var yB=gB;ef.exports;(function(e,t){var n=An,r=yB,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})(ef,ef.exports);var i0=ef.exports,xB=9007199254740991,bB=/^(?:0|[1-9]\d*)$/;function wB(e,t){var n=typeof e;return t=t??xB,!!t&&(n=="number"||n!="symbol"&&bB.test(e))&&e>-1&&e%1==0&&e<t}var o0=wB,SB=9007199254740991;function _B(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=SB}var a0=_B,OB=Tr,EB=a0,$B=Tn,PB="[object Arguments]",AB="[object Array]",TB="[object Boolean]",jB="[object Date]",CB="[object Error]",kB="[object Function]",NB="[object Map]",MB="[object Number]",IB="[object Object]",RB="[object RegExp]",LB="[object Set]",DB="[object String]",FB="[object WeakMap]",BB="[object ArrayBuffer]",zB="[object DataView]",UB="[object Float32Array]",HB="[object Float64Array]",WB="[object Int8Array]",VB="[object Int16Array]",KB="[object Int32Array]",qB="[object Uint8Array]",GB="[object Uint8ClampedArray]",XB="[object Uint16Array]",YB="[object Uint32Array]",Oe={};Oe[UB]=Oe[HB]=Oe[WB]=Oe[VB]=Oe[KB]=Oe[qB]=Oe[GB]=Oe[XB]=Oe[YB]=!0;Oe[PB]=Oe[AB]=Oe[BB]=Oe[TB]=Oe[zB]=Oe[jB]=Oe[CB]=Oe[kB]=Oe[NB]=Oe[MB]=Oe[IB]=Oe[RB]=Oe[LB]=Oe[DB]=Oe[FB]=!1;function QB(e){return $B(e)&&EB(e.length)&&!!Oe[OB(e)]}var ZB=QB;function JB(e){return function(t){return e(t)}}var Hd=JB,tf={exports:{}};tf.exports;(function(e,t){var n=bP,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})(tf,tf.exports);var l0=tf.exports,e6=ZB,t6=Hd,b1=l0,w1=b1&&b1.isTypedArray,n6=w1?t6(w1):e6,pA=n6,r6=lB,i6=r0,o6=Et,a6=i0,l6=o0,s6=pA,u6=Object.prototype,c6=u6.hasOwnProperty;function f6(e,t){var n=o6(e),r=!n&&i6(e),i=!n&&!r&&a6(e),o=!n&&!r&&!i&&s6(e),a=n||r||i||o,l=a?r6(e.length,String):[],s=l.length;for(var u in e)(t||c6.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||l6(u,s)))&&l.push(u);return l}var hA=f6,d6=Object.prototype;function p6(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||d6;return e===n}var s0=p6;function h6(e,t){return function(n){return e(t(n))}}var mA=h6,m6=mA,v6=m6(Object.keys,Object),g6=v6,y6=s0,x6=g6,b6=Object.prototype,w6=b6.hasOwnProperty;function S6(e){if(!y6(e))return x6(e);var t=[];for(var n in Object(e))w6.call(e,n)&&n!="constructor"&&t.push(n);return t}var _6=S6,O6=By,E6=a0;function $6(e){return e!=null&&E6(e.length)&&!O6(e)}var Xs=$6,P6=hA,A6=_6,T6=Xs;function j6(e){return T6(e)?P6(e):A6(e)}var Ys=j6,C6=cA,k6=n0,N6=Ys;function M6(e){return C6(e,N6,k6)}var vA=M6,S1=vA,I6=1,R6=Object.prototype,L6=R6.hasOwnProperty;function D6(e,t,n,r,i,o){var a=n&I6,l=S1(e),s=l.length,u=S1(t),c=u.length;if(s!=c&&!a)return!1;for(var f=s;f--;){var d=l[f];if(!(a?d in t:L6.call(t,d)))return!1}var p=o.get(e),m=o.get(t);if(p&&m)return p==t&&m==e;var v=!0;o.set(e,t),o.set(t,e);for(var y=a;++f<s;){d=l[f];var h=e[d],g=t[d];if(r)var x=a?r(g,h,d,t,e,o):r(h,g,d,e,t,o);if(!(x===void 0?h===g||i(h,g,n,r,o):x)){v=!1;break}y||(y=d=="constructor")}if(v&&!y){var O=e.constructor,w=t.constructor;O!=w&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof w=="function"&&w instanceof w)&&(v=!1)}return o.delete(e),o.delete(t),v}var F6=D6,B6=eo,z6=An,U6=B6(z6,"DataView"),H6=U6,W6=eo,V6=An,K6=W6(V6,"Promise"),q6=K6,G6=eo,X6=An,Y6=G6(X6,"Set"),gA=Y6,Q6=eo,Z6=An,J6=Q6(Z6,"WeakMap"),e8=J6,sv=H6,uv=zy,cv=q6,fv=gA,dv=e8,yA=Tr,Ca=SP,_1="[object Map]",t8="[object Object]",O1="[object Promise]",E1="[object Set]",$1="[object WeakMap]",P1="[object DataView]",n8=Ca(sv),r8=Ca(uv),i8=Ca(cv),o8=Ca(fv),a8=Ca(dv),bi=yA;(sv&&bi(new sv(new ArrayBuffer(1)))!=P1||uv&&bi(new uv)!=_1||cv&&bi(cv.resolve())!=O1||fv&&bi(new fv)!=E1||dv&&bi(new dv)!=$1)&&(bi=function(e){var t=yA(e),n=t==t8?e.constructor:void 0,r=n?Ca(n):"";if(r)switch(r){case n8:return P1;case r8:return _1;case i8:return O1;case o8:return E1;case a8:return $1}return t});var Wd=bi,dh=Jy,l8=sA,s8=qF,u8=F6,A1=Wd,T1=Et,j1=i0,c8=pA,f8=1,C1="[object Arguments]",k1="[object Array]",Iu="[object Object]",d8=Object.prototype,N1=d8.hasOwnProperty;function p8(e,t,n,r,i,o){var a=T1(e),l=T1(t),s=a?k1:A1(e),u=l?k1:A1(t);s=s==C1?Iu:s,u=u==C1?Iu:u;var c=s==Iu,f=u==Iu,d=s==u;if(d&&j1(e)){if(!j1(t))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new dh),a||c8(e)?l8(e,t,n,r,i,o):s8(e,t,s,n,r,i,o);if(!(n&f8)){var p=c&&N1.call(e,"__wrapped__"),m=f&&N1.call(t,"__wrapped__");if(p||m){var v=p?e.value():e,y=m?t.value():t;return o||(o=new dh),i(v,y,n,r,o)}}return d?(o||(o=new dh),u8(e,t,n,r,i,o)):!1}var h8=p8,m8=h8,M1=Tn;function xA(e,t,n,r,i){return e===t?!0:e==null||t==null||!M1(e)&&!M1(t)?e!==e&&t!==t:m8(e,t,n,r,xA,i)}var u0=xA,v8=Jy,g8=u0,y8=1,x8=2;function b8(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 v8;if(r)var d=r(u,c,s,e,t,f);if(!(d===void 0?g8(c,u,y8|x8,r,f):d))return!1}}return!0}var w8=b8,S8=jn;function _8(e){return e===e&&!S8(e)}var bA=_8,O8=bA,E8=Ys;function $8(e){for(var t=E8(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,O8(i)]}return t}var P8=$8;function A8(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var wA=A8,T8=w8,j8=P8,C8=wA;function k8(e){var t=j8(e);return t.length==1&&t[0][2]?C8(t[0][0],t[0][1]):function(n){return n===e||T8(n,e,t)}}var N8=k8;function M8(e,t){return e!=null&&t in Object(e)}var I8=M8,R8=$d,L8=r0,D8=Et,F8=o0,B8=a0,z8=Ks;function U8(e,t,n){t=R8(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=z8(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&&B8(i)&&F8(a,i)&&(D8(e)||L8(e)))}var H8=U8,W8=I8,V8=H8;function K8(e,t){return e!=null&&V8(e,t,W8)}var q8=K8,G8=u0,X8=PP,Y8=q8,Q8=Fy,Z8=bA,J8=wA,ez=Ks,tz=1,nz=2;function rz(e,t){return Q8(e)&&Z8(t)?J8(ez(e),t):function(n){var r=X8(n,e);return r===void 0&&r===t?Y8(n,e):G8(t,r,tz|nz)}}var iz=rz;function oz(e){return e}var ka=oz;function az(e){return function(t){return t==null?void 0:t[e]}}var lz=az,sz=Pd;function uz(e){return function(t){return sz(t,e)}}var cz=uz,fz=lz,dz=cz,pz=Fy,hz=Ks;function mz(e){return pz(e)?fz(hz(e)):dz(e)}var vz=mz,gz=N8,yz=iz,xz=ka,bz=Et,wz=vz;function Sz(e){return typeof e=="function"?e:e==null?xz:typeof e=="object"?bz(e)?yz(e[0],e[1]):gz(e):wz(e)}var li=Sz;function _z(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 Oz=_z;function Ez(e){return e!==e}var $z=Ez;function Pz(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var Az=Pz,Tz=Oz,jz=$z,Cz=Az;function kz(e,t,n){return t===t?Cz(e,t,n):Tz(e,jz,n)}var Nz=kz,Mz=Nz;function Iz(e,t){var n=e==null?0:e.length;return!!n&&Mz(e,t,0)>-1}var Rz=Iz;function Lz(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 Dz=Lz;function Fz(){}var Bz=Fz,ph=gA,zz=Bz,Uz=e0,Hz=1/0,Wz=ph&&1/Uz(new ph([,-0]))[1]==Hz?function(e){return new ph(e)}:zz,Vz=Wz,Kz=oA,qz=Rz,Gz=Dz,Xz=lA,Yz=Vz,Qz=e0,Zz=200;function Jz(e,t,n){var r=-1,i=qz,o=e.length,a=!0,l=[],s=l;if(n)a=!1,i=Gz;else if(o>=Zz){var u=t?null:Yz(e);if(u)return Qz(u);a=!1,i=Xz,s=new Kz}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 eU=Jz,tU=li,nU=eU;function rU(e,t){return e&&e.length?nU(e,tU(t)):[]}var iU=rU;const I1=he(iU);function SA(e,t,n){return t===!0?I1(e,n):J(t)?I1(e,t):e}function Go(e){"@babel/helpers - typeof";return Go=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},Go(e)}var oU=["ref"];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 Zn(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){Vd(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 aU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L1(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,OA(r.key),r)}}function lU(e,t,n){return t&&L1(e.prototype,t),n&&L1(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function sU(e,t,n){return t=nf(t),uU(e,_A()?Reflect.construct(t,n||[],nf(e).constructor):t.apply(e,n))}function uU(e,t){if(t&&(Go(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cU(e)}function cU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _A(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_A=function(){return!!e})()}function nf(e){return nf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},nf(e)}function fU(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&&pv(e,t)}function pv(e,t){return pv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},pv(e,t)}function Vd(e,t,n){return t=OA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OA(e){var t=dU(e,"string");return Go(t)=="symbol"?t:t+""}function dU(e,t){if(Go(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Go(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pU(e,t){if(e==null)return{};var n=hU(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 hU(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 mU(e){return e.value}function vU(e,t){if(j.isValidElement(e))return j.cloneElement(e,t);if(typeof e=="function")return j.createElement(e,t);t.ref;var n=pU(t,oU);return j.createElement(Zy,n)}var D1=1,Io=function(e){function t(){var n;aU(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=sU(this,t,[].concat(i)),Vd(n,"lastBoundingBox",{width:-1,height:-1}),n}return fU(t,e),lU(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)>D1||Math.abs(i.height-this.lastBoundingBox.height)>D1)&&(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?Zn({},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 m=this.getBBoxSnapshot();d={top:((c||0)-m.height)/2}}else d=l==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return Zn(Zn({},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=Zn(Zn({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}},vU(o,Zn(Zn({},this.props),{},{payload:SA(c,u,mU)})))}}],[{key:"getWithHeight",value:function(r,i){var o=Zn(Zn({},this.defaultProps),r.props),a=o.layout;return a==="vertical"&&K(r.props.height)?{height:r.props.height}:a==="horizontal"?{width:r.props.width||i}:null}}])}(S.PureComponent);Vd(Io,"displayName","Legend");Vd(Io,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var F1=_a,gU=r0,yU=Et,B1=F1?F1.isConcatSpreadable:void 0;function xU(e){return yU(e)||gU(e)||!!(B1&&e&&e[B1])}var bU=xU,wU=t0,SU=bU;function EA(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=SU),i||(i=[]);++o<a;){var l=e[o];t>0&&n(l)?t>1?EA(l,t-1,n,r,i):wU(i,l):r||(i[i.length]=l)}return i}var c0=EA;function _U(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 OU=_U,EU=OU,$U=EU(),PU=$U,AU=PU,TU=Ys;function jU(e,t){return e&&AU(e,t,TU)}var $A=jU,CU=Xs;function kU(e,t){return function(n,r){if(n==null)return n;if(!CU(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 NU=kU,MU=$A,IU=NU,RU=IU(MU),f0=RU,LU=f0,DU=Xs;function FU(e,t){var n=-1,r=DU(e)?Array(e.length):[];return LU(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var PA=FU;function BU(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var zU=BU,z1=Oa;function UU(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=z1(e),a=t!==void 0,l=t===null,s=t===t,u=z1(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 HU=UU,WU=HU;function VU(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,l=n.length;++r<a;){var s=WU(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 KU=VU,hh=Ed,qU=Pd,GU=li,XU=PA,YU=zU,QU=Hd,ZU=KU,JU=ka,eH=Et;function tH(e,t,n){t.length?t=hh(t,function(o){return eH(o)?function(a){return qU(a,o.length===1?o[0]:o)}:o}):t=[JU];var r=-1;t=hh(t,QU(GU));var i=XU(e,function(o,a,l){var s=hh(t,function(u){return u(o)});return{criteria:s,index:++r,value:o}});return YU(i,function(o,a){return ZU(o,a,n)})}var nH=tH;function rH(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 iH=rH,oH=iH,U1=Math.max;function aH(e,t,n){return t=U1(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=U1(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),oH(e,this,l)}}var AA=aH;function lH(e){return function(){return e}}var sH=lH,uH=eo,cH=function(){try{var e=uH(Object,"defineProperty");return e({},"",{}),e}catch{}}(),TA=cH,fH=sH,H1=TA,dH=ka,pH=H1?function(e,t){return H1(e,"toString",{configurable:!0,enumerable:!1,value:fH(t),writable:!0})}:dH,hH=pH,mH=800,vH=16,gH=Date.now;function yH(e){var t=0,n=0;return function(){var r=gH(),i=vH-(r-n);if(n=r,i>0){if(++t>=mH)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var xH=yH,bH=hH,wH=xH,SH=wH(bH),jA=SH,_H=ka,OH=AA,EH=jA;function $H(e,t){return EH(OH(e,t,_H),e+"")}var PH=$H,AH=wd,TH=Xs,jH=o0,CH=jn;function kH(e,t,n){if(!CH(n))return!1;var r=typeof t;return(r=="number"?TH(n)&&jH(t,n.length):r=="string"&&t in n)?AH(n[t],e):!1}var Kd=kH,NH=c0,MH=nH,IH=PH,W1=Kd,RH=IH(function(e,t){if(e==null)return[];var n=t.length;return n>1&&W1(e,t[0],t[1])?t=[]:n>2&&W1(t[0],t[1],t[2])&&(t=[t[0]]),MH(e,NH(t,1),[])}),LH=RH;const d0=he(LH);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 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 DH(e,t){return UH(e)||zH(e,t)||BH(e,t)||FH()}function FH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
180
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BH(e,t){if(e){if(typeof e=="string")return V1(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 V1(e,t)}}function V1(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 zH(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 UH(e){if(Array.isArray(e))return e}function K1(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 mh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K1(Object(n),!0).forEach(function(r){HH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HH(e,t,n){return t=WH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WH(e){var t=VH(e,"string");return ns(t)=="symbol"?t:t+""}function VH(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 KH(e){return Array.isArray(e)&&Ye(e[0])&&Ye(e[1])?e.join(" ~ "):e}var qH=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,m=t.labelClassName,v=t.label,y=t.labelFormatter,h=t.accessibilityLayer,g=h===void 0?!1:h,x=function(){if(c&&c.length){var N={padding:0,margin:0},R=(d?d0(c,d):c).map(function(D,M){if(D.type==="none")return null;var L=mh({display:"block",paddingTop:4,paddingBottom:4,color:D.color||"#000"},l),I=D.formatter||f||KH,P=D.value,k=D.name,F=P,B=k;if(I&&F!=null&&B!=null){var U=I(P,k,D,M,c);if(Array.isArray(U)){var X=DH(U,2);F=X[0],B=X[1]}else F=U}return j.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(M),style:L},Ye(B)?j.createElement("span",{className:"recharts-tooltip-item-name"},B):null,Ye(B)?j.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,j.createElement("span",{className:"recharts-tooltip-item-value"},F),j.createElement("span",{className:"recharts-tooltip-item-unit"},D.unit||""))});return j.createElement("ul",{className:"recharts-tooltip-item-list",style:N},R)}return null},O=mh({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),w=mh({margin:0},u),_=!oe(v),E=_?v:"",$=se("recharts-default-tooltip",p),A=se("recharts-tooltip-label",m);_&&y&&c!==void 0&&c!==null&&(E=y(v,c));var C=g?{role:"status","aria-live":"assertive"}:{};return j.createElement("div",hv({className:$,style:O},C),j.createElement("p",{className:A,style:w},j.isValidElement(E)?E:"".concat(E)),x())};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 Ru(e,t,n){return t=GH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GH(e){var t=XH(e,"string");return rs(t)=="symbol"?t:t+""}function XH(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)}var Ja="recharts-tooltip-wrapper",YH={visibility:"hidden"};function QH(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return se(Ja,Ru(Ru(Ru(Ru({},"".concat(Ja,"-right"),K(n)&&t&&K(t.x)&&n>=t.x),"".concat(Ja,"-left"),K(n)&&t&&K(t.x)&&n<t.x),"".concat(Ja,"-bottom"),K(r)&&t&&K(t.y)&&r>=t.y),"".concat(Ja,"-top"),K(r)&&t&&K(t.y)&&r<t.y))}function q1(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&&K(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 m=f+l,v=s[r]+u;return m>v?Math.max(c,s[r]):Math.max(f,s[r])}function ZH(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 JH(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=q1({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:s,viewBoxDimension:s.width}),f=q1({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:s,viewBoxDimension:s.height}),u=ZH({translateX:c,translateY:f,useTranslate3d:l})):u=YH,{cssProperties:u,cssClasses:QH({translateX:c,translateY:f,coordinate:n})}}function Xo(e){"@babel/helpers - typeof";return Xo=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},Xo(e)}function G1(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 X1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G1(Object(n),!0).forEach(function(r){vv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function e7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t7(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,kA(r.key),r)}}function n7(e,t,n){return t&&t7(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function r7(e,t,n){return t=rf(t),i7(e,CA()?Reflect.construct(t,n||[],rf(e).constructor):t.apply(e,n))}function i7(e,t){if(t&&(Xo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return o7(e)}function o7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(CA=function(){return!!e})()}function rf(e){return rf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rf(e)}function a7(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&&mv(e,t)}function mv(e,t){return mv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},mv(e,t)}function vv(e,t,n){return t=kA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kA(e){var t=l7(e,"string");return Xo(t)=="symbol"?t:t+""}function l7(e,t){if(Xo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Xo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Y1=1,s7=function(e){function t(){var n;e7(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=r7(this,t,[].concat(i)),vv(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),vv(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 a7(t,e),n7(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>Y1||Math.abs(r.height-this.state.lastBoundingBox.height)>Y1)&&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,m=i.position,v=i.reverseDirection,y=i.useTranslate3d,h=i.viewBox,g=i.wrapperStyle,x=JH({allowEscapeViewBox:a,coordinate:c,offsetTopLeft:p,position:m,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:y,viewBox:h}),O=x.cssClasses,w=x.cssProperties,_=X1(X1({transition:d&&o?"transform ".concat(l,"ms ").concat(s):void 0},w),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&f?"visible":"hidden",position:"absolute",top:0,left:0},g);return j.createElement("div",{tabIndex:-1,className:O,style:_,ref:function($){r.wrapperNode=$}},u)}}])}(S.PureComponent),u7=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Xr={isSsr:u7(),get:function(t){return Xr[t]},set:function(t,n){if(typeof t=="string")Xr[t]=n;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(i){Xr[i]=t[i]})}}};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 Q1(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 Z1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Q1(Object(n),!0).forEach(function(r){p0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function c7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f7(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,MA(r.key),r)}}function d7(e,t,n){return t&&f7(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function p7(e,t,n){return t=of(t),h7(e,NA()?Reflect.construct(t,n||[],of(e).constructor):t.apply(e,n))}function h7(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 m7(e)}function m7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NA=function(){return!!e})()}function of(e){return of=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},of(e)}function v7(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 p0(e,t,n){return t=MA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MA(e){var t=g7(e,"string");return Yo(t)=="symbol"?t:t+""}function g7(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)}function y7(e){return e.dataKey}function x7(e,t){return j.isValidElement(e)?j.cloneElement(e,t):typeof e=="function"?j.createElement(e,t):j.createElement(qH,t)}var tr=function(e){function t(){return c7(this,t),p7(this,t,arguments)}return v7(t,e),d7(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,m=i.payload,v=i.payloadUniqBy,y=i.position,h=i.reverseDirection,g=i.useTranslate3d,x=i.viewBox,O=i.wrapperStyle,w=m??[];f&&w.length&&(w=SA(m.filter(function(E){return E.value!=null&&(E.hide!==!0||r.props.includeHidden)}),v,y7));var _=w.length>0;return j.createElement(s7,{allowEscapeViewBox:a,animationDuration:l,animationEasing:s,isAnimationActive:d,active:o,coordinate:c,hasPayload:_,offset:p,position:y,reverseDirection:h,useTranslate3d:g,viewBox:x,wrapperStyle:O},x7(u,Z1(Z1({},this.props),{},{payload:w})))}}])}(S.PureComponent);p0(tr,"displayName","Tooltip");p0(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:!Xr.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 b7=An,w7=function(){return b7.Date.now()},S7=w7,_7=/\s/;function O7(e){for(var t=e.length;t--&&_7.test(e.charAt(t)););return t}var E7=O7,$7=E7,P7=/^\s+/;function A7(e){return e&&e.slice(0,$7(e)+1).replace(P7,"")}var T7=A7,j7=T7,J1=jn,C7=Oa,ew=NaN,k7=/^[-+]0x[0-9a-f]+$/i,N7=/^0b[01]+$/i,M7=/^0o[0-7]+$/i,I7=parseInt;function R7(e){if(typeof e=="number")return e;if(C7(e))return ew;if(J1(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=J1(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=j7(e);var n=N7.test(e);return n||M7.test(e)?I7(e.slice(2),n?2:8):k7.test(e)?ew:+e}var IA=R7,L7=jn,vh=S7,tw=IA,D7="Expected a function",F7=Math.max,B7=Math.min;function z7(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(D7);t=tw(t)||0,L7(n)&&(c=!!n.leading,f="maxWait"in n,o=f?F7(tw(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d);function p(_){var E=r,$=i;return r=i=void 0,u=_,a=e.apply($,E),a}function m(_){return u=_,l=setTimeout(h,t),c?p(_):a}function v(_){var E=_-s,$=_-u,A=t-E;return f?B7(A,o-$):A}function y(_){var E=_-s,$=_-u;return s===void 0||E>=t||E<0||f&&$>=o}function h(){var _=vh();if(y(_))return g(_);l=setTimeout(h,v(_))}function g(_){return l=void 0,d&&r?p(_):(r=i=void 0,a)}function x(){l!==void 0&&clearTimeout(l),u=0,r=s=i=l=void 0}function O(){return l===void 0?a:g(vh())}function w(){var _=vh(),E=y(_);if(r=arguments,i=this,s=_,E){if(l===void 0)return m(s);if(f)return clearTimeout(l),l=setTimeout(h,t),p(s)}return l===void 0&&(l=setTimeout(h,t)),a}return w.cancel=x,w.flush=O,w}var U7=z7,H7=U7,W7=jn,V7="Expected a function";function K7(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(V7);return W7(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),H7(e,t,{leading:r,maxWait:t,trailing:i})}var q7=K7;const RA=he(q7);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 nw(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?nw(Object(n),!0).forEach(function(r){G7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function G7(e,t,n){return t=X7(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X7(e){var t=Y7(e,"string");return is(t)=="symbol"?t:t+""}function Y7(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)}function Q7(e,t){return tW(e)||eW(e,t)||J7(e,t)||Z7()}function Z7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
181
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J7(e,t){if(e){if(typeof e=="string")return rw(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 rw(e,t)}}function rw(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 eW(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 tW(e){if(Array.isArray(e))return e}var Na=S.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,m=e.debounce,v=m===void 0?0:m,y=e.id,h=e.className,g=e.onResize,x=e.style,O=x===void 0?{}:x,w=S.useRef(null),_=S.useRef();_.current=g,S.useImperativeHandle(t,function(){return Object.defineProperty(w.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),w.current},configurable:!0})});var E=S.useState({containerWidth:i.width,containerHeight:i.height}),$=Q7(E,2),A=$[0],C=$[1],T=S.useCallback(function(R,D){C(function(M){var L=Math.round(R),I=Math.round(D);return M.containerWidth===L&&M.containerHeight===I?M:{containerWidth:L,containerHeight:I}})},[]);S.useEffect(function(){var R=function(k){var F,B=k[0].contentRect,U=B.width,X=B.height;T(U,X),(F=_.current)===null||F===void 0||F.call(_,U,X)};v>0&&(R=RA(R,v,{trailing:!0,leading:!1}));var D=new ResizeObserver(R),M=w.current.getBoundingClientRect(),L=M.width,I=M.height;return T(L,I),D.observe(w.current),function(){D.disconnect()}},[T,v]);var N=S.useMemo(function(){var R=A.containerWidth,D=A.containerHeight;if(R<0||D<0)return null;pr(Pi(a)||Pi(s),`The width(%s) and height(%s) are both fixed numbers,
182
- maybe you don't need to use a ResponsiveContainer.`,a,s),pr(!n||n>0,"The aspect(%s) must be greater than zero.",n);var M=Pi(a)?R:a,L=Pi(s)?D:s;n&&n>0&&(M?L=M/n:L&&(M=L*n),d&&L>d&&(L=d)),pr(M>0||L>0,`The width(%s) and height(%s) of chart should be greater than 0,
179
+ 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(Xt/8,"h").concat(Xt,"v").concat(Xt*3/4,"h").concat(-Xt,"z"),className:"recharts-legend-icon"});if(j.isValidElement(r.legendIcon)){var u=_4({},r);return delete u.legendIcon,j.cloneElement(r.legendIcon,u)}return j.createElement(Xy,{fill:s,cx:o,cy:o,size:Xt,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:Xt,height:Xt},f={display:l==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(p,m){var v=p.formatter||s,y=se(ts(ts({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",p.inactive));if(p.type==="none")return null;var h=J(p.value)?null:p.value;pr(!J(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 g=p.inactive?u:p.color;return j.createElement("li",iv({className:y,style:f,key:"legend-item-".concat(m)},Gs(r.props,p,m)),j.createElement(Xm,{width:a,height:a,viewBox:c,style:d},r.renderIcon(p)),j.createElement("span",{className:"recharts-legend-item-text",style:{color:g}},v?v(h,p,m):h))})}},{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())}}])}(_.PureComponent);ts(Yy,"displayName","Legend");ts(Yy,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var C4=_d;function k4(){this.__data__=new C4,this.size=0}var N4=k4;function M4(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var I4=M4;function R4(e){return this.__data__.get(e)}var L4=R4;function D4(e){return this.__data__.has(e)}var F4=D4,B4=_d,z4=Fy,U4=By,H4=200;function W4(e,t){var n=this.__data__;if(n instanceof B4){var r=n.__data__;if(!z4||r.length<H4-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new U4(r)}return n.set(e,t),this.size=n.size,this}var V4=W4,K4=_d,q4=N4,G4=I4,X4=L4,Y4=F4,Q4=V4;function ja(e){var t=this.__data__=new K4(e);this.size=t.size}ja.prototype.clear=q4;ja.prototype.delete=G4;ja.prototype.get=X4;ja.prototype.has=Y4;ja.prototype.set=Q4;var Qy=ja,Z4="__lodash_hash_undefined__";function J4(e){return this.__data__.set(e,Z4),this}var eF=J4;function tF(e){return this.__data__.has(e)}var nF=tF,rF=By,iF=eF,oF=nF;function Zc(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new rF;++t<n;)this.add(e[t])}Zc.prototype.add=Zc.prototype.push=iF;Zc.prototype.has=oF;var rA=Zc;function aF(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 iA=aF;function lF(e,t){return e.has(t)}var oA=lF,sF=rA,uF=iA,cF=oA,fF=1,dF=2;function pF(e,t,n,r,i,o){var a=n&fF,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&dF?new sF:void 0;for(o.set(e,t),o.set(t,e);++f<l;){var m=e[f],v=t[f];if(r)var y=a?r(v,m,f,t,e,o):r(m,v,f,e,t,o);if(y!==void 0){if(y)continue;d=!1;break}if(p){if(!uF(t,function(h,g){if(!cF(p,g)&&(m===h||i(m,h,n,r,o)))return p.push(g)})){d=!1;break}}else if(!(m===v||i(m,v,n,r,o))){d=!1;break}}return o.delete(e),o.delete(t),d}var aA=pF,hF=An,mF=hF.Uint8Array,lA=mF;function vF(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var gF=vF;function yF(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Zy=yF,p1=Sa,h1=lA,xF=bd,bF=aA,wF=gF,_F=Zy,SF=1,EF=2,OF="[object Boolean]",$F="[object Date]",PF="[object Error]",AF="[object Map]",TF="[object Number]",jF="[object RegExp]",CF="[object Set]",kF="[object String]",NF="[object Symbol]",MF="[object ArrayBuffer]",IF="[object DataView]",m1=p1?p1.prototype:void 0,uh=m1?m1.valueOf:void 0;function RF(e,t,n,r,i,o,a){switch(n){case IF:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case MF:return!(e.byteLength!=t.byteLength||!o(new h1(e),new h1(t)));case OF:case $F:case TF:return xF(+e,+t);case PF:return e.name==t.name&&e.message==t.message;case jF:case kF:return e==t+"";case AF:var l=wF;case CF:var s=r&SF;if(l||(l=_F),e.size!=t.size&&!s)return!1;var u=a.get(e);if(u)return u==t;r|=EF,a.set(e,t);var c=bF(l(e),l(t),r,i,o,a);return a.delete(e),c;case NF:if(uh)return uh.call(e)==uh.call(t)}return!1}var LF=RF;function DF(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Jy=DF,FF=Jy,BF=Ot;function zF(e,t,n){var r=t(e);return BF(e)?r:FF(r,n(e))}var sA=zF;function UF(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 HF=UF;function WF(){return[]}var uA=WF,VF=HF,KF=uA,qF=Object.prototype,GF=qF.propertyIsEnumerable,v1=Object.getOwnPropertySymbols,XF=v1?function(e){return e==null?[]:(e=Object(e),VF(v1(e),function(t){return GF.call(e,t)}))}:KF,e0=XF;function YF(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var QF=YF,ZF=Tr,JF=Tn,e8="[object Arguments]";function t8(e){return JF(e)&&ZF(e)==e8}var n8=t8,g1=n8,r8=Tn,cA=Object.prototype,i8=cA.hasOwnProperty,o8=cA.propertyIsEnumerable,a8=g1(function(){return arguments}())?g1:function(e){return r8(e)&&i8.call(e,"callee")&&!o8.call(e,"callee")},t0=a8,Jc={exports:{}};function l8(){return!1}var s8=l8;Jc.exports;(function(e,t){var n=An,r=s8,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})(Jc,Jc.exports);var n0=Jc.exports,u8=9007199254740991,c8=/^(?:0|[1-9]\d*)$/;function f8(e,t){var n=typeof e;return t=t??u8,!!t&&(n=="number"||n!="symbol"&&c8.test(e))&&e>-1&&e%1==0&&e<t}var r0=f8,d8=9007199254740991;function p8(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=d8}var i0=p8,h8=Tr,m8=i0,v8=Tn,g8="[object Arguments]",y8="[object Array]",x8="[object Boolean]",b8="[object Date]",w8="[object Error]",_8="[object Function]",S8="[object Map]",E8="[object Number]",O8="[object Object]",$8="[object RegExp]",P8="[object Set]",A8="[object String]",T8="[object WeakMap]",j8="[object ArrayBuffer]",C8="[object DataView]",k8="[object Float32Array]",N8="[object Float64Array]",M8="[object Int8Array]",I8="[object Int16Array]",R8="[object Int32Array]",L8="[object Uint8Array]",D8="[object Uint8ClampedArray]",F8="[object Uint16Array]",B8="[object Uint32Array]",Ee={};Ee[k8]=Ee[N8]=Ee[M8]=Ee[I8]=Ee[R8]=Ee[L8]=Ee[D8]=Ee[F8]=Ee[B8]=!0;Ee[g8]=Ee[y8]=Ee[j8]=Ee[x8]=Ee[C8]=Ee[b8]=Ee[w8]=Ee[_8]=Ee[S8]=Ee[E8]=Ee[O8]=Ee[$8]=Ee[P8]=Ee[A8]=Ee[T8]=!1;function z8(e){return v8(e)&&m8(e.length)&&!!Ee[h8(e)]}var U8=z8;function H8(e){return function(t){return e(t)}}var Ud=H8,ef={exports:{}};ef.exports;(function(e,t){var n=yP,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})(ef,ef.exports);var o0=ef.exports,W8=U8,V8=Ud,y1=o0,x1=y1&&y1.isTypedArray,K8=x1?V8(x1):W8,fA=K8,q8=QF,G8=t0,X8=Ot,Y8=n0,Q8=r0,Z8=fA,J8=Object.prototype,e6=J8.hasOwnProperty;function t6(e,t){var n=X8(e),r=!n&&G8(e),i=!n&&!r&&Y8(e),o=!n&&!r&&!i&&Z8(e),a=n||r||i||o,l=a?q8(e.length,String):[],s=l.length;for(var u in e)(t||e6.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Q8(u,s)))&&l.push(u);return l}var dA=t6,n6=Object.prototype;function r6(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||n6;return e===n}var a0=r6;function i6(e,t){return function(n){return e(t(n))}}var pA=i6,o6=pA,a6=o6(Object.keys,Object),l6=a6,s6=a0,u6=l6,c6=Object.prototype,f6=c6.hasOwnProperty;function d6(e){if(!s6(e))return u6(e);var t=[];for(var n in Object(e))f6.call(e,n)&&n!="constructor"&&t.push(n);return t}var p6=d6,h6=Dy,m6=i0;function v6(e){return e!=null&&m6(e.length)&&!h6(e)}var Xs=v6,g6=dA,y6=p6,x6=Xs;function b6(e){return x6(e)?g6(e):y6(e)}var Ys=b6,w6=sA,_6=e0,S6=Ys;function E6(e){return w6(e,S6,_6)}var hA=E6,b1=hA,O6=1,$6=Object.prototype,P6=$6.hasOwnProperty;function A6(e,t,n,r,i,o){var a=n&O6,l=b1(e),s=l.length,u=b1(t),c=u.length;if(s!=c&&!a)return!1;for(var f=s;f--;){var d=l[f];if(!(a?d in t:P6.call(t,d)))return!1}var p=o.get(e),m=o.get(t);if(p&&m)return p==t&&m==e;var v=!0;o.set(e,t),o.set(t,e);for(var y=a;++f<s;){d=l[f];var h=e[d],g=t[d];if(r)var x=a?r(g,h,d,t,e,o):r(h,g,d,e,t,o);if(!(x===void 0?h===g||i(h,g,n,r,o):x)){v=!1;break}y||(y=d=="constructor")}if(v&&!y){var E=e.constructor,w=t.constructor;E!=w&&"constructor"in e&&"constructor"in t&&!(typeof E=="function"&&E instanceof E&&typeof w=="function"&&w instanceof w)&&(v=!1)}return o.delete(e),o.delete(t),v}var T6=A6,j6=eo,C6=An,k6=j6(C6,"DataView"),N6=k6,M6=eo,I6=An,R6=M6(I6,"Promise"),L6=R6,D6=eo,F6=An,B6=D6(F6,"Set"),mA=B6,z6=eo,U6=An,H6=z6(U6,"WeakMap"),W6=H6,av=N6,lv=Fy,sv=L6,uv=mA,cv=W6,vA=Tr,Ca=bP,w1="[object Map]",V6="[object Object]",_1="[object Promise]",S1="[object Set]",E1="[object WeakMap]",O1="[object DataView]",K6=Ca(av),q6=Ca(lv),G6=Ca(sv),X6=Ca(uv),Y6=Ca(cv),xi=vA;(av&&xi(new av(new ArrayBuffer(1)))!=O1||lv&&xi(new lv)!=w1||sv&&xi(sv.resolve())!=_1||uv&&xi(new uv)!=S1||cv&&xi(new cv)!=E1)&&(xi=function(e){var t=vA(e),n=t==V6?e.constructor:void 0,r=n?Ca(n):"";if(r)switch(r){case K6:return O1;case q6:return w1;case G6:return _1;case X6:return S1;case Y6:return E1}return t});var Hd=xi,ch=Qy,Q6=aA,Z6=LF,J6=T6,$1=Hd,P1=Ot,A1=n0,eB=fA,tB=1,T1="[object Arguments]",j1="[object Array]",Mu="[object Object]",nB=Object.prototype,C1=nB.hasOwnProperty;function rB(e,t,n,r,i,o){var a=P1(e),l=P1(t),s=a?j1:$1(e),u=l?j1:$1(t);s=s==T1?Mu:s,u=u==T1?Mu:u;var c=s==Mu,f=u==Mu,d=s==u;if(d&&A1(e)){if(!A1(t))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new ch),a||eB(e)?Q6(e,t,n,r,i,o):Z6(e,t,s,n,r,i,o);if(!(n&tB)){var p=c&&C1.call(e,"__wrapped__"),m=f&&C1.call(t,"__wrapped__");if(p||m){var v=p?e.value():e,y=m?t.value():t;return o||(o=new ch),i(v,y,n,r,o)}}return d?(o||(o=new ch),J6(e,t,n,r,i,o)):!1}var iB=rB,oB=iB,k1=Tn;function gA(e,t,n,r,i){return e===t?!0:e==null||t==null||!k1(e)&&!k1(t)?e!==e&&t!==t:oB(e,t,n,r,gA,i)}var l0=gA,aB=Qy,lB=l0,sB=1,uB=2;function cB(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 aB;if(r)var d=r(u,c,s,e,t,f);if(!(d===void 0?lB(c,u,sB|uB,r,f):d))return!1}}return!0}var fB=cB,dB=jn;function pB(e){return e===e&&!dB(e)}var yA=pB,hB=yA,mB=Ys;function vB(e){for(var t=mB(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,hB(i)]}return t}var gB=vB;function yB(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var xA=yB,xB=fB,bB=gB,wB=xA;function _B(e){var t=bB(e);return t.length==1&&t[0][2]?wB(t[0][0],t[0][1]):function(n){return n===e||xB(n,e,t)}}var SB=_B;function EB(e,t){return e!=null&&t in Object(e)}var OB=EB,$B=Od,PB=t0,AB=Ot,TB=r0,jB=i0,CB=Ks;function kB(e,t,n){t=$B(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=CB(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&&jB(i)&&TB(a,i)&&(AB(e)||PB(e)))}var NB=kB,MB=OB,IB=NB;function RB(e,t){return e!=null&&IB(e,t,MB)}var LB=RB,DB=l0,FB=OP,BB=LB,zB=Ly,UB=yA,HB=xA,WB=Ks,VB=1,KB=2;function qB(e,t){return zB(e)&&UB(t)?HB(WB(e),t):function(n){var r=FB(n,e);return r===void 0&&r===t?BB(n,e):DB(t,r,VB|KB)}}var GB=qB;function XB(e){return e}var ka=XB;function YB(e){return function(t){return t==null?void 0:t[e]}}var QB=YB,ZB=$d;function JB(e){return function(t){return ZB(t,e)}}var ez=JB,tz=QB,nz=ez,rz=Ly,iz=Ks;function oz(e){return rz(e)?tz(iz(e)):nz(e)}var az=oz,lz=SB,sz=GB,uz=ka,cz=Ot,fz=az;function dz(e){return typeof e=="function"?e:e==null?uz:typeof e=="object"?cz(e)?sz(e[0],e[1]):lz(e):fz(e)}var ai=dz;function pz(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 hz=pz;function mz(e){return e!==e}var vz=mz;function gz(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var yz=gz,xz=hz,bz=vz,wz=yz;function _z(e,t,n){return t===t?wz(e,t,n):xz(e,bz,n)}var Sz=_z,Ez=Sz;function Oz(e,t){var n=e==null?0:e.length;return!!n&&Ez(e,t,0)>-1}var $z=Oz;function Pz(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 Az=Pz;function Tz(){}var jz=Tz,fh=mA,Cz=jz,kz=Zy,Nz=1/0,Mz=fh&&1/kz(new fh([,-0]))[1]==Nz?function(e){return new fh(e)}:Cz,Iz=Mz,Rz=rA,Lz=$z,Dz=Az,Fz=oA,Bz=Iz,zz=Zy,Uz=200;function Hz(e,t,n){var r=-1,i=Lz,o=e.length,a=!0,l=[],s=l;if(n)a=!1,i=Dz;else if(o>=Uz){var u=t?null:Bz(e);if(u)return zz(u);a=!1,i=Fz,s=new Rz}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 Wz=Hz,Vz=ai,Kz=Wz;function qz(e,t){return e&&e.length?Kz(e,Vz(t)):[]}var Gz=qz;const N1=he(Gz);function bA(e,t,n){return t===!0?N1(e,n):J(t)?N1(e,t):e}function Go(e){"@babel/helpers - typeof";return Go=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},Go(e)}var Xz=["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 Zn(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){Wd(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 Yz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I1(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,_A(r.key),r)}}function Qz(e,t,n){return t&&I1(e.prototype,t),n&&I1(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zz(e,t,n){return t=tf(t),Jz(e,wA()?Reflect.construct(t,n||[],tf(e).constructor):t.apply(e,n))}function Jz(e,t){if(t&&(Go(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return e7(e)}function e7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wA=function(){return!!e})()}function tf(e){return tf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},tf(e)}function t7(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 Wd(e,t,n){return t=_A(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _A(e){var t=n7(e,"string");return Go(t)=="symbol"?t:t+""}function n7(e,t){if(Go(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Go(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function r7(e,t){if(e==null)return{};var n=i7(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 i7(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 o7(e){return e.value}function a7(e,t){if(j.isValidElement(e))return j.cloneElement(e,t);if(typeof e=="function")return j.createElement(e,t);t.ref;var n=r7(t,Xz);return j.createElement(Yy,n)}var R1=1,Io=function(e){function t(){var n;Yz(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=Zz(this,t,[].concat(i)),Wd(n,"lastBoundingBox",{width:-1,height:-1}),n}return t7(t,e),Qz(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)>R1||Math.abs(i.height-this.lastBoundingBox.height)>R1)&&(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?Zn({},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 m=this.getBBoxSnapshot();d={top:((c||0)-m.height)/2}}else d=l==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return Zn(Zn({},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=Zn(Zn({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}},a7(o,Zn(Zn({},this.props),{},{payload:bA(c,u,o7)})))}}],[{key:"getWithHeight",value:function(r,i){var o=Zn(Zn({},this.defaultProps),r.props),a=o.layout;return a==="vertical"&&K(r.props.height)?{height:r.props.height}:a==="horizontal"?{width:r.props.width||i}:null}}])}(_.PureComponent);Wd(Io,"displayName","Legend");Wd(Io,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var L1=Sa,l7=t0,s7=Ot,D1=L1?L1.isConcatSpreadable:void 0;function u7(e){return s7(e)||l7(e)||!!(D1&&e&&e[D1])}var c7=u7,f7=Jy,d7=c7;function SA(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=d7),i||(i=[]);++o<a;){var l=e[o];t>0&&n(l)?t>1?SA(l,t-1,n,r,i):f7(i,l):r||(i[i.length]=l)}return i}var s0=SA;function p7(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 h7=p7,m7=h7,v7=m7(),g7=v7,y7=g7,x7=Ys;function b7(e,t){return e&&y7(e,t,x7)}var EA=b7,w7=Xs;function _7(e,t){return function(n,r){if(n==null)return n;if(!w7(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 S7=_7,E7=EA,O7=S7,$7=O7(E7),u0=$7,P7=u0,A7=Xs;function T7(e,t){var n=-1,r=A7(e)?Array(e.length):[];return P7(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var OA=T7;function j7(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var C7=j7,F1=Ea;function k7(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=F1(e),a=t!==void 0,l=t===null,s=t===t,u=F1(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 N7=k7,M7=N7;function I7(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,l=n.length;++r<a;){var s=M7(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 R7=I7,dh=Ed,L7=$d,D7=ai,F7=OA,B7=C7,z7=Ud,U7=R7,H7=ka,W7=Ot;function V7(e,t,n){t.length?t=dh(t,function(o){return W7(o)?function(a){return L7(a,o.length===1?o[0]:o)}:o}):t=[H7];var r=-1;t=dh(t,z7(D7));var i=F7(e,function(o,a,l){var s=dh(t,function(u){return u(o)});return{criteria:s,index:++r,value:o}});return B7(i,function(o,a){return U7(o,a,n)})}var K7=V7;function q7(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 G7=q7,X7=G7,B1=Math.max;function Y7(e,t,n){return t=B1(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=B1(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),X7(e,this,l)}}var $A=Y7;function Q7(e){return function(){return e}}var Z7=Q7,J7=eo,eU=function(){try{var e=J7(Object,"defineProperty");return e({},"",{}),e}catch{}}(),PA=eU,tU=Z7,z1=PA,nU=ka,rU=z1?function(e,t){return z1(e,"toString",{configurable:!0,enumerable:!1,value:tU(t),writable:!0})}:nU,iU=rU,oU=800,aU=16,lU=Date.now;function sU(e){var t=0,n=0;return function(){var r=lU(),i=aU-(r-n);if(n=r,i>0){if(++t>=oU)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var uU=sU,cU=iU,fU=uU,dU=fU(cU),AA=dU,pU=ka,hU=$A,mU=AA;function vU(e,t){return mU(hU(e,t,pU),e+"")}var gU=vU,yU=bd,xU=Xs,bU=r0,wU=jn;function _U(e,t,n){if(!wU(n))return!1;var r=typeof t;return(r=="number"?xU(n)&&bU(t,n.length):r=="string"&&t in n)?yU(n[t],e):!1}var Vd=_U,SU=s0,EU=K7,OU=gU,U1=Vd,$U=OU(function(e,t){if(e==null)return[];var n=t.length;return n>1&&U1(e,t[0],t[1])?t=[]:n>2&&U1(t[0],t[1],t[2])&&(t=[t[0]]),EU(e,SU(t,1),[])}),PU=$U;const c0=he(PU);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 dv(){return dv=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},dv.apply(this,arguments)}function AU(e,t){return kU(e)||CU(e,t)||jU(e,t)||TU()}function TU(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
180
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jU(e,t){if(e){if(typeof e=="string")return H1(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 H1(e,t)}}function H1(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,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 kU(e){if(Array.isArray(e))return e}function W1(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 ph(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W1(Object(n),!0).forEach(function(r){NU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W1(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 ns(t)=="symbol"?t:t+""}function IU(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 RU(e){return Array.isArray(e)&&Ye(e[0])&&Ye(e[1])?e.join(" ~ "):e}var LU=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,m=t.labelClassName,v=t.label,y=t.labelFormatter,h=t.accessibilityLayer,g=h===void 0?!1:h,x=function(){if(c&&c.length){var N={padding:0,margin:0},R=(d?c0(c,d):c).map(function(D,M){if(D.type==="none")return null;var L=ph({display:"block",paddingTop:4,paddingBottom:4,color:D.color||"#000"},l),I=D.formatter||f||RU,P=D.value,k=D.name,F=P,B=k;if(I&&F!=null&&B!=null){var U=I(P,k,D,M,c);if(Array.isArray(U)){var X=AU(U,2);F=X[0],B=X[1]}else F=U}return j.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(M),style:L},Ye(B)?j.createElement("span",{className:"recharts-tooltip-item-name"},B):null,Ye(B)?j.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,j.createElement("span",{className:"recharts-tooltip-item-value"},F),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=ph({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},o),w=ph({margin:0},u),S=!oe(v),O=S?v:"",$=se("recharts-default-tooltip",p),A=se("recharts-tooltip-label",m);S&&y&&c!==void 0&&c!==null&&(O=y(v,c));var C=g?{role:"status","aria-live":"assertive"}:{};return j.createElement("div",dv({className:$,style:E},C),j.createElement("p",{className:A,style:w},j.isValidElement(O)?O:"".concat(O)),x())};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 Iu(e,t,n){return t=DU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DU(e){var t=FU(e,"string");return rs(t)=="symbol"?t:t+""}function FU(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)}var Ja="recharts-tooltip-wrapper",BU={visibility:"hidden"};function zU(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return se(Ja,Iu(Iu(Iu(Iu({},"".concat(Ja,"-right"),K(n)&&t&&K(t.x)&&n>=t.x),"".concat(Ja,"-left"),K(n)&&t&&K(t.x)&&n<t.x),"".concat(Ja,"-bottom"),K(r)&&t&&K(t.y)&&r>=t.y),"".concat(Ja,"-top"),K(r)&&t&&K(t.y)&&r<t.y))}function V1(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&&K(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 m=f+l,v=s[r]+u;return m>v?Math.max(c,s[r]):Math.max(f,s[r])}function UU(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 HU(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=V1({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.width,viewBox:s,viewBoxDimension:s.width}),f=V1({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:a.height,viewBox:s,viewBoxDimension:s.height}),u=UU({translateX:c,translateY:f,useTranslate3d:l})):u=BU,{cssProperties:u,cssClasses:zU({translateX:c,translateY:f,coordinate:n})}}function Xo(e){"@babel/helpers - typeof";return Xo=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},Xo(e)}function K1(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 q1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K1(Object(n),!0).forEach(function(r){hv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VU(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,jA(r.key),r)}}function KU(e,t,n){return t&&VU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function qU(e,t,n){return t=nf(t),GU(e,TA()?Reflect.construct(t,n||[],nf(e).constructor):t.apply(e,n))}function GU(e,t){if(t&&(Xo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return XU(e)}function XU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(TA=function(){return!!e})()}function nf(e){return nf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},nf(e)}function YU(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&&pv(e,t)}function pv(e,t){return pv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},pv(e,t)}function hv(e,t,n){return t=jA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jA(e){var t=QU(e,"string");return Xo(t)=="symbol"?t:t+""}function QU(e,t){if(Xo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Xo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var G1=1,ZU=function(e){function t(){var n;WU(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=qU(this,t,[].concat(i)),hv(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),hv(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 YU(t,e),KU(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>G1||Math.abs(r.height-this.state.lastBoundingBox.height)>G1)&&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,m=i.position,v=i.reverseDirection,y=i.useTranslate3d,h=i.viewBox,g=i.wrapperStyle,x=HU({allowEscapeViewBox:a,coordinate:c,offsetTopLeft:p,position:m,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:y,viewBox:h}),E=x.cssClasses,w=x.cssProperties,S=q1(q1({transition:d&&o?"transform ".concat(l,"ms ").concat(s):void 0},w),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&f?"visible":"hidden",position:"absolute",top:0,left:0},g);return j.createElement("div",{tabIndex:-1,className:E,style:S,ref:function($){r.wrapperNode=$}},u)}}])}(_.PureComponent),JU=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Xr={isSsr:JU(),get:function(t){return Xr[t]},set:function(t,n){if(typeof t=="string")Xr[t]=n;else{var r=Object.keys(t);r&&r.length&&r.forEach(function(i){Xr[i]=t[i]})}}};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 X1(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 Y1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?X1(Object(n),!0).forEach(function(r){f0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tH(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,kA(r.key),r)}}function nH(e,t,n){return t&&tH(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rH(e,t,n){return t=rf(t),iH(e,CA()?Reflect.construct(t,n||[],rf(e).constructor):t.apply(e,n))}function iH(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 oH(e)}function oH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(CA=function(){return!!e})()}function rf(e){return rf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rf(e)}function aH(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&&mv(e,t)}function mv(e,t){return mv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},mv(e,t)}function f0(e,t,n){return t=kA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kA(e){var t=lH(e,"string");return Yo(t)=="symbol"?t:t+""}function lH(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)}function sH(e){return e.dataKey}function uH(e,t){return j.isValidElement(e)?j.cloneElement(e,t):typeof e=="function"?j.createElement(e,t):j.createElement(LU,t)}var tr=function(e){function t(){return eH(this,t),rH(this,t,arguments)}return aH(t,e),nH(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,m=i.payload,v=i.payloadUniqBy,y=i.position,h=i.reverseDirection,g=i.useTranslate3d,x=i.viewBox,E=i.wrapperStyle,w=m??[];f&&w.length&&(w=bA(m.filter(function(O){return O.value!=null&&(O.hide!==!0||r.props.includeHidden)}),v,sH));var S=w.length>0;return j.createElement(ZU,{allowEscapeViewBox:a,animationDuration:l,animationEasing:s,isAnimationActive:d,active:o,coordinate:c,hasPayload:S,offset:p,position:y,reverseDirection:h,useTranslate3d:g,viewBox:x,wrapperStyle:E},uH(u,Y1(Y1({},this.props),{},{payload:w})))}}])}(_.PureComponent);f0(tr,"displayName","Tooltip");f0(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:!Xr.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 cH=An,fH=function(){return cH.Date.now()},dH=fH,pH=/\s/;function hH(e){for(var t=e.length;t--&&pH.test(e.charAt(t)););return t}var mH=hH,vH=mH,gH=/^\s+/;function yH(e){return e&&e.slice(0,vH(e)+1).replace(gH,"")}var xH=yH,bH=xH,Q1=jn,wH=Ea,Z1=NaN,_H=/^[-+]0x[0-9a-f]+$/i,SH=/^0b[01]+$/i,EH=/^0o[0-7]+$/i,OH=parseInt;function $H(e){if(typeof e=="number")return e;if(wH(e))return Z1;if(Q1(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Q1(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=bH(e);var n=SH.test(e);return n||EH.test(e)?OH(e.slice(2),n?2:8):_H.test(e)?Z1:+e}var NA=$H,PH=jn,hh=dH,J1=NA,AH="Expected a function",TH=Math.max,jH=Math.min;function CH(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(AH);t=J1(t)||0,PH(n)&&(c=!!n.leading,f="maxWait"in n,o=f?TH(J1(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 m(S){return u=S,l=setTimeout(h,t),c?p(S):a}function v(S){var O=S-s,$=S-u,A=t-O;return f?jH(A,o-$):A}function y(S){var O=S-s,$=S-u;return s===void 0||O>=t||O<0||f&&$>=o}function h(){var S=hh();if(y(S))return g(S);l=setTimeout(h,v(S))}function g(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:g(hh())}function w(){var S=hh(),O=y(S);if(r=arguments,i=this,s=S,O){if(l===void 0)return m(s);if(f)return clearTimeout(l),l=setTimeout(h,t),p(s)}return l===void 0&&(l=setTimeout(h,t)),a}return w.cancel=x,w.flush=E,w}var kH=CH,NH=kH,MH=jn,IH="Expected a function";function RH(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(IH);return MH(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),NH(e,t,{leading:r,maxWait:t,trailing:i})}var LH=RH;const MA=he(LH);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 ew(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 Ru(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ew(Object(n),!0).forEach(function(r){DH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ew(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DH(e,t,n){return t=FH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FH(e){var t=BH(e,"string");return is(t)=="symbol"?t:t+""}function BH(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)}function zH(e,t){return VH(e)||WH(e,t)||HH(e,t)||UH()}function UH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
181
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HH(e,t){if(e){if(typeof e=="string")return tw(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 tw(e,t)}}function tw(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 WH(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 VH(e){if(Array.isArray(e))return e}var Na=_.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,m=e.debounce,v=m===void 0?0:m,y=e.id,h=e.className,g=e.onResize,x=e.style,E=x===void 0?{}:x,w=_.useRef(null),S=_.useRef();S.current=g,_.useImperativeHandle(t,function(){return Object.defineProperty(w.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),w.current},configurable:!0})});var O=_.useState({containerWidth:i.width,containerHeight:i.height}),$=zH(O,2),A=$[0],C=$[1],T=_.useCallback(function(R,D){C(function(M){var L=Math.round(R),I=Math.round(D);return M.containerWidth===L&&M.containerHeight===I?M:{containerWidth:L,containerHeight:I}})},[]);_.useEffect(function(){var R=function(k){var F,B=k[0].contentRect,U=B.width,X=B.height;T(U,X),(F=S.current)===null||F===void 0||F.call(S,U,X)};v>0&&(R=MA(R,v,{trailing:!0,leading:!1}));var D=new ResizeObserver(R),M=w.current.getBoundingClientRect(),L=M.width,I=M.height;return T(L,I),D.observe(w.current),function(){D.disconnect()}},[T,v]);var N=_.useMemo(function(){var R=A.containerWidth,D=A.containerHeight;if(R<0||D<0)return null;pr($i(a)||$i(s),`The width(%s) and height(%s) are both fixed numbers,
182
+ maybe you don't need to use a ResponsiveContainer.`,a,s),pr(!n||n>0,"The aspect(%s) must be greater than zero.",n);var M=$i(a)?R:a,L=$i(s)?D:s;n&&n>0&&(M?L=M/n:L&&(M=L*n),d&&L>d&&(L=d)),pr(M>0||L>0,`The width(%s) and height(%s) of chart should be greater than 0,
183
183
  please check the style of container, or the props width(%s) and height(%s),
184
184
  or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
185
- height and width.`,M,L,a,s,c,f,n);var I=!Array.isArray(p)&&dr(p.type).endsWith("Chart");return j.Children.map(p,function(P){return j.isValidElement(P)?S.cloneElement(P,Lu({width:M,height:L},I?{style:Lu({height:"100%",width:"100%",maxHeight:L,maxWidth:M},P.props.style)}:{})):P})},[n,p,s,d,f,c,A,a]);return j.createElement("div",{id:y?"".concat(y):void 0,className:se("recharts-responsive-container",h),style:Lu(Lu({},O),{},{width:a,height:s,minWidth:c,minHeight:f,maxHeight:d}),ref:w},N)}),h0=function(t){return null};h0.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 iw(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 yv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iw(Object(n),!0).forEach(function(r){nW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nW(e,t,n){return t=rW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rW(e){var t=iW(e,"string");return os(t)=="symbol"?t:t+""}function iW(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 so={widthCache:{},cacheCount:0},oW=2e3,aW={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},ow="recharts_measurement_span";function lW(e){var t=yv({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var aw=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Xr.isSsr)return{width:0,height:0};var r=lW(n),i=JSON.stringify({text:t,copyStyle:r});if(so.widthCache[i])return so.widthCache[i];try{var o=document.getElementById(ow);o||(o=document.createElement("span"),o.setAttribute("id",ow),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=yv(yv({},aW),r);Object.assign(o.style,a),o.textContent="".concat(t);var l=o.getBoundingClientRect(),s={width:l.width,height:l.height};return so.widthCache[i]=s,++so.cacheCount>oW&&(so.cacheCount=0,so.widthCache={}),s}catch{return{width:0,height:0}}},sW=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 af(e,t){return dW(e)||fW(e,t)||cW(e,t)||uW()}function uW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
186
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cW(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 fW(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 dW(e){if(Array.isArray(e))return e}function pW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sw(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,mW(r.key),r)}}function hW(e,t,n){return t&&sw(e.prototype,t),n&&sw(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function mW(e){var t=vW(e,"string");return as(t)=="symbol"?t:t+""}function vW(e,t){if(as(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(as(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var uw=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,cw=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,gW=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,yW=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,LA={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},xW=Object.keys(LA),Eo="NaN";function bW(e,t){return e*LA[t]}var Du=function(){function e(t,n){pW(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!gW.test(n)&&(this.num=NaN,this.unit=""),xW.includes(n)&&(this.num=bW(t,n),this.unit="px")}return hW(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=yW.exec(n))!==null&&r!==void 0?r:[],o=af(i,3),a=o[1],l=o[2];return new e(parseFloat(a),l??"")}}])}();function DA(e){if(e.includes(Eo))return Eo;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=uw.exec(t))!==null&&n!==void 0?n:[],i=af(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 Eo;t=t.replace(uw,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,d=(f=cw.exec(t))!==null&&f!==void 0?f:[],p=af(d,4),m=p[1],v=p[2],y=p[3],h=Du.parse(m??""),g=Du.parse(y??""),x=v==="+"?h.add(g):h.subtract(g);if(x.isNaN())return Eo;t=t.replace(cw,x.toString())}return t}var fw=/\(([^()]*)\)/;function wW(e){for(var t=e;t.includes("(");){var n=fw.exec(t),r=af(n,2),i=r[1];t=t.replace(fw,DA(i))}return t}function SW(e){var t=e.replace(/\s+/g,"");return t=wW(t),t=DA(t),t}function _W(e){try{return SW(e)}catch{return Eo}}function gh(e){var t=_W(e.slice(5,-1));return t===Eo?"":t}var OW=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],EW=["dx","dy","angle","className","breakAll"];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 dw(e,t){if(e==null)return{};var n=$W(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 $W(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 pw(e,t){return jW(e)||TW(e,t)||AW(e,t)||PW()}function PW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
187
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AW(e,t){if(e){if(typeof e=="string")return hw(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 hw(e,t)}}function hw(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 TW(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 jW(e){if(Array.isArray(e))return e}var FA=/[ \f\n\r\t\v\u2028\u2029]+/,BA=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var o=[];oe(n)||(r?o=n.toString().split(""):o=n.toString().split(FA));var a=o.map(function(s){return{word:s,width:aw(s,i).width}}),l=r?0:aw(" ",i).width;return{wordsWithComputedWidth:a,spaceWidth:l}}catch{return null}},CW=function(t,n,r,i,o){var a=t.maxLines,l=t.children,s=t.style,u=t.breakAll,c=K(a),f=l,d=function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return M.reduce(function(L,I){var P=I.word,k=I.width,F=L[L.length-1];if(F&&(i==null||o||F.width+k+r<Number(i)))F.words.push(P),F.width+=k+r;else{var B={words:[P],width:k};L.push(B)}return L},[])},p=d(n),m=function(M){return M.reduce(function(L,I){return L.width>I.width?L:I})};if(!c)return p;for(var v="…",y=function(M){var L=f.slice(0,M),I=BA({breakAll:u,style:s,children:L+v}).wordsWithComputedWidth,P=d(I),k=P.length>a||m(P).width>Number(i);return[k,P]},h=0,g=f.length-1,x=0,O;h<=g&&x<=f.length-1;){var w=Math.floor((h+g)/2),_=w-1,E=y(_),$=pw(E,2),A=$[0],C=$[1],T=y(w),N=pw(T,1),R=N[0];if(!A&&!R&&(h=w+1),A&&R&&(g=w-1),!A&&R){O=C;break}x++}return O||p},mw=function(t){var n=oe(t)?[]:t.toString().split(FA);return[{words:n}]},kW=function(t){var n=t.width,r=t.scaleToFit,i=t.children,o=t.style,a=t.breakAll,l=t.maxLines;if((n||r)&&!Xr.isSsr){var s,u,c=BA({breakAll:a,children:i,style:o});if(c){var f=c.wordsWithComputedWidth,d=c.spaceWidth;s=f,u=d}else return mw(i);return CW({breakAll:a,children:i,maxLines:l,style:o},s,u,n,r)}return mw(i)},vw="#808080",Qo=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,m=t.verticalAnchor,v=m===void 0?"end":m,y=t.fill,h=y===void 0?vw:y,g=dw(t,OW),x=S.useMemo(function(){return kW({breakAll:g.breakAll,children:g.children,maxLines:g.maxLines,scaleToFit:f,style:g.style,width:g.width})},[g.breakAll,g.children,g.maxLines,f,g.style,g.width]),O=g.dx,w=g.dy,_=g.angle,E=g.className,$=g.breakAll,A=dw(g,EW);if(!Ye(r)||!Ye(o))return null;var C=r+(K(O)?O:0),T=o+(K(w)?w:0),N;switch(v){case"start":N=gh("calc(".concat(u,")"));break;case"middle":N=gh("calc(".concat((x.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:N=gh("calc(".concat(x.length-1," * -").concat(l,")"));break}var R=[];if(f){var D=x[0].width,M=g.width;R.push("scale(".concat((K(M)?M/D:1)/D,")"))}return _&&R.push("rotate(".concat(_,", ").concat(C,", ").concat(T,")")),R.length&&(A.transform=R.join(" ")),j.createElement("text",xv({},ee(A,!0),{x:C,y:T,className:se("recharts-text",E),textAnchor:p,fill:h.includes("url")?vw:h}),x.map(function(L,I){var P=L.words.join($?"":" ");return j.createElement("tspan",{x:C,dy:I===0?N:l,key:"".concat(P,"-").concat(I)},P)}))};function Yr(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function NW(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function m0(e){let t,n,r;e.length!==2?(t=Yr,n=(l,s)=>Yr(e(l),s),r=(l,s)=>e(l)-s):(t=e===Yr||e===NW?e:MW,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 MW(){return 0}function zA(e){return e===null?NaN:+e}function*IW(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const RW=m0(Yr),Qs=RW.right;m0(zA).center;class gw extends Map{constructor(t,n=FW){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(yw(this,t))}has(t){return super.has(yw(this,t))}set(t,n){return super.set(LW(this,t),n)}delete(t){return super.delete(DW(this,t))}}function yw({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function LW({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function DW({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function FW(e){return e!==null&&typeof e=="object"?e.valueOf():e}function BW(e=Yr){if(e===Yr)return UA;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 UA(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const zW=Math.sqrt(50),UW=Math.sqrt(10),HW=Math.sqrt(2);function lf(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>=zW?10:o>=UW?5:o>=HW?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?lf(e,t,n*2):[l,s,u]}function bv(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?lf(t,e,n):lf(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 wv(e,t,n){return t=+t,e=+e,n=+n,lf(e,t,n)[2]}function Sv(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?wv(t,e,n):wv(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function xw(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function bw(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function HA(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?UA:BW(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)),m=Math.min(r,Math.floor(t+(s-u)*f/s+d));HA(e,t,p,m,i)}const o=e[t];let a=n,l=r;for(el(e,n,t),i(e[r],o)>0&&el(e,n,r);a<l;){for(el(e,a,l),++a,--l;i(e[a],o)<0;)++a;for(;i(e[l],o)>0;)--l}i(e[n],o)===0?el(e,n,l):(++l,el(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function el(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function WW(e,t,n){if(e=Float64Array.from(IW(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return bw(e);if(t>=1)return xw(e);var r,i=(r-1)*t,o=Math.floor(i),a=xw(HA(e,o).subarray(0,o+1)),l=bw(e.subarray(o+1));return a+(l-a)*(i-o)}}function VW(e,t,n=zA){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 KW(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 pn(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function jr(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 _v=Symbol("implicit");function v0(){var e=new gw,t=[],n=[],r=_v;function i(o){let a=e.get(o);if(a===void 0){if(r!==_v)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 gw;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 v0(t,n).unknown(r)},pn.apply(i,arguments),i}function ls(){var e=v0().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,m=p?i:r,v=p?r:i;o=(v-m)/Math.max(1,d-s+u*2),l&&(o=Math.floor(o)),m+=(v-m-o*(d-s))*c,a=o*(1-s),l&&(m=Math.round(m),a=Math.round(a));var y=KW(d).map(function(h){return m+o*h});return n(p?y.reverse():y)}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 ls(t(),[r,i]).round(l).paddingInner(s).paddingOuter(u).align(c)},pn.apply(f(),arguments)}function WA(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return WA(t())},e}function Tl(){return WA(ls.apply(null,arguments).paddingInner(1))}function g0(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function VA(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Zs(){}var ss=.7,sf=1/ss,Ro="\\s*([+-]?\\d+)\\s*",us="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Bn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qW=/^#([0-9a-f]{3,8})$/,GW=new RegExp(`^rgb\\(${Ro},${Ro},${Ro}\\)$`),XW=new RegExp(`^rgb\\(${Bn},${Bn},${Bn}\\)$`),YW=new RegExp(`^rgba\\(${Ro},${Ro},${Ro},${us}\\)$`),QW=new RegExp(`^rgba\\(${Bn},${Bn},${Bn},${us}\\)$`),ZW=new RegExp(`^hsl\\(${us},${Bn},${Bn}\\)$`),JW=new RegExp(`^hsla\\(${us},${Bn},${Bn},${us}\\)$`),ww={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};g0(Zs,Wi,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Sw,formatHex:Sw,formatHex8:e9,formatHsl:t9,formatRgb:_w,toString:_w});function Sw(){return this.rgb().formatHex()}function e9(){return this.rgb().formatHex8()}function t9(){return KA(this).formatHsl()}function _w(){return this.rgb().formatRgb()}function Wi(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=qW.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Ow(t):n===3?new jt(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=GW.exec(e))?new jt(t[1],t[2],t[3],1):(t=XW.exec(e))?new jt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=YW.exec(e))?Fu(t[1],t[2],t[3],t[4]):(t=QW.exec(e))?Fu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ZW.exec(e))?Pw(t[1],t[2]/100,t[3]/100,1):(t=JW.exec(e))?Pw(t[1],t[2]/100,t[3]/100,t[4]):ww.hasOwnProperty(e)?Ow(ww[e]):e==="transparent"?new jt(NaN,NaN,NaN,0):null}function Ow(e){return new jt(e>>16&255,e>>8&255,e&255,1)}function Fu(e,t,n,r){return r<=0&&(e=t=n=NaN),new jt(e,t,n,r)}function n9(e){return e instanceof Zs||(e=Wi(e)),e?(e=e.rgb(),new jt(e.r,e.g,e.b,e.opacity)):new jt}function Ov(e,t,n,r){return arguments.length===1?n9(e):new jt(e,t,n,r??1)}function jt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}g0(jt,Ov,VA(Zs,{brighter(e){return e=e==null?sf:Math.pow(sf,e),new jt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ss:Math.pow(ss,e),new jt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new jt(Ii(this.r),Ii(this.g),Ii(this.b),uf(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:Ew,formatHex:Ew,formatHex8:r9,formatRgb:$w,toString:$w}));function Ew(){return`#${Ai(this.r)}${Ai(this.g)}${Ai(this.b)}`}function r9(){return`#${Ai(this.r)}${Ai(this.g)}${Ai(this.b)}${Ai((isNaN(this.opacity)?1:this.opacity)*255)}`}function $w(){const e=uf(this.opacity);return`${e===1?"rgb(":"rgba("}${Ii(this.r)}, ${Ii(this.g)}, ${Ii(this.b)}${e===1?")":`, ${e})`}`}function uf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ii(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ai(e){return e=Ii(e),(e<16?"0":"")+e.toString(16)}function Pw(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 KA(e){if(e instanceof wn)return new wn(e.h,e.s,e.l,e.opacity);if(e instanceof Zs||(e=Wi(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),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 wn(a,l,s,e.opacity)}function i9(e,t,n,r){return arguments.length===1?KA(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}g0(wn,i9,VA(Zs,{brighter(e){return e=e==null?sf:Math.pow(sf,e),new wn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ss:Math.pow(ss,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 jt(yh(e>=240?e-240:e+120,i,r),yh(e,i,r),yh(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new wn(Aw(this.h),Bu(this.s),Bu(this.l),uf(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=uf(this.opacity);return`${e===1?"hsl(":"hsla("}${Aw(this.h)}, ${Bu(this.s)*100}%, ${Bu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Aw(e){return e=(e||0)%360,e<0?e+360:e}function Bu(e){return Math.max(0,Math.min(1,e||0))}function yh(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 y0=e=>()=>e;function o9(e,t){return function(n){return e+n*t}}function a9(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 l9(e){return(e=+e)==1?qA:function(t,n){return n-t?a9(t,n,e):y0(isNaN(t)?n:t)}}function qA(e,t){var n=t-e;return n?o9(e,n):y0(isNaN(e)?t:e)}const cf=function e(t){var n=l9(t);function r(i,o){var a=n((i=Ov(i)).r,(o=Ov(o)).r),l=n(i.g,o.g),s=n(i.b,o.b),u=qA(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 s9(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 u9(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function c9(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]=Ma(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 f9(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function bn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function d9(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]=Ma(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Ev=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,xh=new RegExp(Ev.source,"g");function p9(e){return function(){return e}}function h9(e){return function(t){return e(t)+""}}function GA(e,t){var n=Ev.lastIndex=xh.lastIndex=0,r,i,o,a=-1,l=[],s=[];for(e=e+"",t=t+"";(r=Ev.exec(e))&&(i=xh.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:bn(r,i)})),n=xh.lastIndex;return n<t.length&&(o=t.slice(n),l[a]?l[a]+=o:l[++a]=o),l.length<2?s[0]?h9(s[0].x):p9(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 Ma(e,t){var n=typeof t,r;return t==null||n==="boolean"?y0(t):(n==="number"?bn:n==="string"?(r=Wi(t))?(t=r,cf):GA:t instanceof Wi?cf:t instanceof Date?f9:u9(t)?s9:Array.isArray(t)?c9:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?d9:bn)(e,t)}function x0(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var Tw=180/Math.PI,$v={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function XA(e,t,n,r,i,o){var a,l,s;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(s=e*n+t*r)&&(n-=e*s,r-=t*s),(l=Math.sqrt(n*n+r*r))&&(n/=l,r/=l,s/=l),e*r<t*n&&(e=-e,t=-t,s=-s,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*Tw,skewX:Math.atan(s)*Tw,scaleX:a,scaleY:l}}var zu;function m9(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?$v:XA(t.a,t.b,t.c,t.d,t.e,t.f)}function v9(e){return e==null||(zu||(zu=document.createElementNS("http://www.w3.org/2000/svg","g")),zu.setAttribute("transform",e),!(e=zu.transform.baseVal.consolidate()))?$v:(e=e.matrix,XA(e.a,e.b,e.c,e.d,e.e,e.f))}function YA(e,t,n,r){function i(u){return u.length?u.pop()+" ":""}function o(u,c,f,d,p,m){if(u!==f||c!==d){var v=p.push("translate(",null,t,null,n);m.push({i:v-4,x:bn(u,f)},{i:v-2,x:bn(c,d)})}else(f||d)&&p.push("translate("+f+t+d+n)}function a(u,c,f,d){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),d.push({i:f.push(i(f)+"rotate(",null,r)-2,x:bn(u,c)})):c&&f.push(i(f)+"rotate("+c+r)}function l(u,c,f,d){u!==c?d.push({i:f.push(i(f)+"skewX(",null,r)-2,x:bn(u,c)}):c&&f.push(i(f)+"skewX("+c+r)}function s(u,c,f,d,p,m){if(u!==f||c!==d){var v=p.push(i(p)+"scale(",null,",",null,")");m.push({i:v-4,x:bn(u,f)},{i:v-2,x:bn(c,d)})}else(f!==1||d!==1)&&p.push(i(p)+"scale("+f+","+d+")")}return function(u,c){var f=[],d=[];return u=e(u),c=e(c),o(u.translateX,u.translateY,c.translateX,c.translateY,f,d),a(u.rotate,c.rotate,f,d),l(u.skewX,c.skewX,f,d),s(u.scaleX,u.scaleY,c.scaleX,c.scaleY,f,d),u=c=null,function(p){for(var m=-1,v=d.length,y;++m<v;)f[(y=d[m]).i]=y.x(p);return f.join("")}}}var g9=YA(m9,"px, ","px)","deg)"),y9=YA(v9,", ",")",")");function x9(e,t){t===void 0&&(t=e,e=Ma);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 b9(e){return function(){return e}}function ff(e){return+e}var jw=[0,1];function wt(e){return e}function Pv(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:b9(isNaN(t)?NaN:.5)}function w9(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function S9(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=Pv(i,r),o=n(a,o)):(r=Pv(r,i),o=n(o,a)),function(l){return o(r(l))}}function _9(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]=Pv(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(l){var s=Qs(e,l,1,r)-1;return o[s](i[s](l))}}function Js(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function qd(){var e=jw,t=jw,n=Ma,r,i,o,a=wt,l,s,u;function c(){var d=Math.min(e.length,t.length);return a!==wt&&(a=w9(e[0],e[d-1])),l=d>2?_9:S9,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),bn)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,ff),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=x0,c()},f.clamp=function(d){return arguments.length?(a=d?!0:wt,c()):a!==wt},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 b0(){return qd()(wt,wt)}function O9(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function df(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 Zo(e){return e=df(Math.abs(e)),e?e[1]:NaN}function E9(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 $9(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var P9=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function cs(e){if(!(t=P9.exec(e)))throw new Error("invalid format: "+e);var t;return new w0({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]})}cs.prototype=w0.prototype;function w0(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+""}w0.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 A9(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 QA;function T9(e,t){var n=df(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(QA=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")+df(e,Math.max(0,t+o-1))[0]}function Cw(e,t){var n=df(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 kw={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:O9,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:T9,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Nw(e){return e}var Mw=Array.prototype.map,Iw=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function j9(e){var t=e.grouping===void 0||e.thousands===void 0?Nw:E9(Mw.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?Nw:$9(Mw.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=cs(f);var d=f.fill,p=f.align,m=f.sign,v=f.symbol,y=f.zero,h=f.width,g=f.comma,x=f.precision,O=f.trim,w=f.type;w==="n"?(g=!0,w="g"):kw[w]||(x===void 0&&(x=12),O=!0,w="g"),(y||d==="0"&&p==="=")&&(y=!0,d="0",p="=");var _=v==="$"?n:v==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",E=v==="$"?r:/[%p]/.test(w)?a:"",$=kw[w],A=/[defgprs%]/.test(w);x=x===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function C(T){var N=_,R=E,D,M,L;if(w==="c")R=$(T)+R,T="";else{T=+T;var I=T<0||1/T<0;if(T=isNaN(T)?s:$(Math.abs(T),x),O&&(T=A9(T)),I&&+T==0&&m!=="+"&&(I=!1),N=(I?m==="("?m:l:m==="-"||m==="("?"":m)+N,R=(w==="s"?Iw[8+QA/3]:"")+R+(I&&m==="("?")":""),A){for(D=-1,M=T.length;++D<M;)if(L=T.charCodeAt(D),48>L||L>57){R=(L===46?i+T.slice(D+1):T.slice(D))+R,T=T.slice(0,D);break}}}g&&!y&&(T=t(T,1/0));var P=N.length+T.length+R.length,k=P<h?new Array(h-P+1).join(d):"";switch(g&&y&&(T=t(k+T,k.length?h-R.length:1/0),k=""),p){case"<":T=N+T+R+k;break;case"=":T=N+k+T+R;break;case"^":T=k.slice(0,P=k.length>>1)+N+T+R+k.slice(P);break;default:T=k+N+T+R;break}return o(T)}return C.toString=function(){return f+""},C}function c(f,d){var p=u((f=cs(f),f.type="f",f)),m=Math.max(-8,Math.min(8,Math.floor(Zo(d)/3)))*3,v=Math.pow(10,-m),y=Iw[8+m/3];return function(h){return p(v*h)+y}}return{format:u,formatPrefix:c}}var Uu,S0,ZA;C9({thousands:",",grouping:[3],currency:["$",""]});function C9(e){return Uu=j9(e),S0=Uu.format,ZA=Uu.formatPrefix,Uu}function k9(e){return Math.max(0,-Zo(Math.abs(e)))}function N9(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Zo(t)/3)))*3-Zo(Math.abs(e)))}function M9(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Zo(t)-Zo(e))+1}function JA(e,t,n,r){var i=Sv(e,t,n),o;switch(r=cs(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=N9(i,a))&&(r.precision=o),ZA(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=M9(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=k9(i))&&(r.precision=o-(r.type==="%")*2);break}}return S0(r)}function si(e){var t=e.domain;return e.ticks=function(n){var r=t();return bv(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return JA(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=wv(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 pf(){var e=b0();return e.copy=function(){return Js(e,pf())},pn.apply(e,arguments),si(e)}function eT(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,ff),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return eT(e).unknown(t)},e=arguments.length?Array.from(e,ff):[0,1],si(n)}function tT(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 Rw(e){return Math.log(e)}function Lw(e){return Math.exp(e)}function I9(e){return-Math.log(-e)}function R9(e){return-Math.exp(-e)}function L9(e){return isFinite(e)?+("1e"+e):e<0?0:e}function D9(e){return e===10?L9:e===Math.E?Math.exp:t=>Math.pow(e,t)}function F9(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 Dw(e){return(t,n)=>-e(-t,n)}function _0(e){const t=e(Rw,Lw),n=t.domain;let r=10,i,o;function a(){return i=F9(r),o=D9(r),n()[0]<0?(i=Dw(i),o=Dw(o),e(I9,R9)):e(Rw,Lw),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),m,v;const y=l==null?10:+l;let h=[];if(!(r%1)&&p-d<y){if(d=Math.floor(d),p=Math.ceil(p),u>0){for(;d<=p;++d)for(m=1;m<r;++m)if(v=d<0?m/o(-d):m*o(d),!(v<u)){if(v>c)break;h.push(v)}}else for(;d<=p;++d)for(m=r-1;m>=1;--m)if(v=d>0?m/o(-d):m*o(d),!(v<u)){if(v>c)break;h.push(v)}h.length*2<y&&(h=bv(u,c,y))}else h=bv(d,p,Math.min(p-d,y)).map(o);return f?h.reverse():h},t.tickFormat=(l,s)=>{if(l==null&&(l=10),s==null&&(s=r===10?"s":","),typeof s!="function"&&(!(r%1)&&(s=cs(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(tT(n(),{floor:l=>o(Math.floor(i(l))),ceil:l=>o(Math.ceil(i(l)))})),t}function nT(){const e=_0(qd()).domain([1,10]);return e.copy=()=>Js(e,nT()).base(e.base()),pn.apply(e,arguments),e}function Fw(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 O0(e){var t=1,n=e(Fw(t),Bw(t));return n.constant=function(r){return arguments.length?e(Fw(t=+r),Bw(t)):t},si(n)}function rT(){var e=O0(qd());return e.copy=function(){return Js(e,rT()).constant(e.constant())},pn.apply(e,arguments)}function zw(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function B9(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function z9(e){return e<0?-e*e:e*e}function E0(e){var t=e(wt,wt),n=1;function r(){return n===1?e(wt,wt):n===.5?e(B9,z9):e(zw(n),zw(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},si(t)}function $0(){var e=E0(qd());return e.copy=function(){return Js(e,$0()).exponent(e.exponent())},pn.apply(e,arguments),e}function U9(){return $0.apply(null,arguments).exponent(.5)}function Uw(e){return Math.sign(e)*e*e}function H9(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function iT(){var e=b0(),t=[0,1],n=!1,r;function i(o){var a=H9(e(o));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(o){return e.invert(Uw(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,ff)).map(Uw)),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 iT(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},pn.apply(i,arguments),si(i)}function oT(){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]=VW(e,a/l);return o}function o(a){return a==null||isNaN(a=+a)?r:t[Qs(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(Yr),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 oT().domain(e).range(t).unknown(r)},pn.apply(o,arguments)}function aT(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function a(s){return s!=null&&s<=s?i[Qs(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 aT().domain([e,t]).range(i).unknown(o)},pn.apply(si(a),arguments)}function lT(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[Qs(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 lT().domain(e).range(t).unknown(n)},pn.apply(i,arguments)}const bh=new Date,wh=new Date;function Qe(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=>Qe(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)=>(bh.setTime(+o),wh.setTime(+a),e(bh),e(wh),Math.floor(n(bh,wh))),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 hf=Qe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);hf.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Qe(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):hf);hf.range;const lr=1e3,on=lr*60,sr=on*60,Sr=sr*24,P0=Sr*7,Hw=Sr*30,Sh=Sr*365,Ti=Qe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*lr)},(e,t)=>(t-e)/lr,e=>e.getUTCSeconds());Ti.range;const A0=Qe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*lr)},(e,t)=>{e.setTime(+e+t*on)},(e,t)=>(t-e)/on,e=>e.getMinutes());A0.range;const T0=Qe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*on)},(e,t)=>(t-e)/on,e=>e.getUTCMinutes());T0.range;const j0=Qe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*lr-e.getMinutes()*on)},(e,t)=>{e.setTime(+e+t*sr)},(e,t)=>(t-e)/sr,e=>e.getHours());j0.range;const C0=Qe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*sr)},(e,t)=>(t-e)/sr,e=>e.getUTCHours());C0.range;const eu=Qe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*on)/Sr,e=>e.getDate()-1);eu.range;const Gd=Qe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Sr,e=>e.getUTCDate()-1);Gd.range;const sT=Qe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Sr,e=>Math.floor(e/Sr));sT.range;function to(e){return Qe(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())*on)/P0)}const Xd=to(0),mf=to(1),W9=to(2),V9=to(3),Jo=to(4),K9=to(5),q9=to(6);Xd.range;mf.range;W9.range;V9.range;Jo.range;K9.range;q9.range;function no(e){return Qe(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 Yd=no(0),vf=no(1),G9=no(2),X9=no(3),ea=no(4),Y9=no(5),Q9=no(6);Yd.range;vf.range;G9.range;X9.range;ea.range;Y9.range;Q9.range;const k0=Qe(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());k0.range;const N0=Qe(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());N0.range;const _r=Qe(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());_r.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Qe(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)});_r.range;const Or=Qe(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());Or.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Qe(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)});Or.range;function uT(e,t,n,r,i,o){const a=[[Ti,1,lr],[Ti,5,5*lr],[Ti,15,15*lr],[Ti,30,30*lr],[o,1,on],[o,5,5*on],[o,15,15*on],[o,30,30*on],[i,1,sr],[i,3,3*sr],[i,6,6*sr],[i,12,12*sr],[r,1,Sr],[r,2,2*Sr],[n,1,P0],[t,1,Hw],[t,3,3*Hw],[e,1,Sh]];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),m=p?p.range(u,+c+1):[];return d?m.reverse():m}function s(u,c,f){const d=Math.abs(c-u)/f,p=m0(([,,y])=>y).right(a,d);if(p===a.length)return e.every(Sv(u/Sh,c/Sh,f));if(p===0)return hf.every(Math.max(Sv(u,c,f),1));const[m,v]=a[d/a[p-1][2]<a[p][2]/d?p-1:p];return m.every(v)}return[l,s]}const[Z9,J9]=uT(Or,N0,Yd,sT,C0,T0),[eV,tV]=uT(_r,k0,Xd,eu,j0,A0);function _h(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 Oh(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 tl(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function nV(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=nl(i),c=rl(i),f=nl(o),d=rl(o),p=nl(a),m=rl(a),v=nl(l),y=rl(l),h=nl(s),g=rl(s),x={a:I,A:P,b:k,B:F,c:null,d:Xw,e:Xw,f:EV,g:IV,G:LV,H:SV,I:_V,j:OV,L:cT,m:$V,M:PV,p:B,q:U,Q:Zw,s:Jw,S:AV,u:TV,U:jV,V:CV,w:kV,W:NV,x:null,X:null,y:MV,Y:RV,Z:DV,"%":Qw},O={a:X,A:ne,b:ae,B:te,c:null,d:Yw,e:Yw,f:UV,g:ZV,G:eK,H:FV,I:BV,j:zV,L:dT,m:HV,M:WV,p:ze,q:Ue,Q:Zw,s:Jw,S:VV,u:KV,U:qV,V:GV,w:XV,W:YV,x:null,X:null,y:QV,Y:JV,Z:tK,"%":Qw},w={a:C,A:T,b:N,B:R,c:D,d:qw,e:qw,f:yV,g:Kw,G:Vw,H:Gw,I:Gw,j:hV,L:gV,m:pV,M:mV,p:A,q:dV,Q:bV,s:wV,S:vV,u:lV,U:sV,V:uV,w:aV,W:cV,x:M,X:L,y:Kw,Y:Vw,Z:fV,"%":xV};x.x=_(n,x),x.X=_(r,x),x.c=_(t,x),O.x=_(n,O),O.X=_(r,O),O.c=_(t,O);function _(V,Q){return function(Z){var H=[],Ae=-1,ie=0,Fe=V.length,Ve,$t,Cr;for(Z instanceof Date||(Z=new Date(+Z));++Ae<Fe;)V.charCodeAt(Ae)===37&&(H.push(V.slice(ie,Ae)),($t=Ww[Ve=V.charAt(++Ae)])!=null?Ve=V.charAt(++Ae):$t=Ve==="e"?" ":"0",(Cr=Q[Ve])&&(Ve=Cr(Z,$t)),H.push(Ve),ie=Ae+1);return H.push(V.slice(ie,Ae)),H.join("")}}function E(V,Q){return function(Z){var H=tl(1900,void 0,1),Ae=$(H,V,Z+="",0),ie,Fe;if(Ae!=Z.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(Q&&!("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?(ie=Oh(tl(H.y,0,1)),Fe=ie.getUTCDay(),ie=Fe>4||Fe===0?vf.ceil(ie):vf(ie),ie=Gd.offset(ie,(H.V-1)*7),H.y=ie.getUTCFullYear(),H.m=ie.getUTCMonth(),H.d=ie.getUTCDate()+(H.w+6)%7):(ie=_h(tl(H.y,0,1)),Fe=ie.getDay(),ie=Fe>4||Fe===0?mf.ceil(ie):mf(ie),ie=eu.offset(ie,(H.V-1)*7),H.y=ie.getFullYear(),H.m=ie.getMonth(),H.d=ie.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),Fe="Z"in H?Oh(tl(H.y,0,1)).getUTCDay():_h(tl(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(Fe+5)%7:H.w+H.U*7-(Fe+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,Oh(H)):_h(H)}}function $(V,Q,Z,H){for(var Ae=0,ie=Q.length,Fe=Z.length,Ve,$t;Ae<ie;){if(H>=Fe)return-1;if(Ve=Q.charCodeAt(Ae++),Ve===37){if(Ve=Q.charAt(Ae++),$t=w[Ve in Ww?Q.charAt(Ae++):Ve],!$t||(H=$t(V,Z,H))<0)return-1}else if(Ve!=Z.charCodeAt(H++))return-1}return H}function A(V,Q,Z){var H=u.exec(Q.slice(Z));return H?(V.p=c.get(H[0].toLowerCase()),Z+H[0].length):-1}function C(V,Q,Z){var H=p.exec(Q.slice(Z));return H?(V.w=m.get(H[0].toLowerCase()),Z+H[0].length):-1}function T(V,Q,Z){var H=f.exec(Q.slice(Z));return H?(V.w=d.get(H[0].toLowerCase()),Z+H[0].length):-1}function N(V,Q,Z){var H=h.exec(Q.slice(Z));return H?(V.m=g.get(H[0].toLowerCase()),Z+H[0].length):-1}function R(V,Q,Z){var H=v.exec(Q.slice(Z));return H?(V.m=y.get(H[0].toLowerCase()),Z+H[0].length):-1}function D(V,Q,Z){return $(V,t,Q,Z)}function M(V,Q,Z){return $(V,n,Q,Z)}function L(V,Q,Z){return $(V,r,Q,Z)}function I(V){return a[V.getDay()]}function P(V){return o[V.getDay()]}function k(V){return s[V.getMonth()]}function F(V){return l[V.getMonth()]}function B(V){return i[+(V.getHours()>=12)]}function U(V){return 1+~~(V.getMonth()/3)}function X(V){return a[V.getUTCDay()]}function ne(V){return o[V.getUTCDay()]}function ae(V){return s[V.getUTCMonth()]}function te(V){return l[V.getUTCMonth()]}function ze(V){return i[+(V.getUTCHours()>=12)]}function Ue(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var Q=_(V+="",x);return Q.toString=function(){return V},Q},parse:function(V){var Q=E(V+="",!1);return Q.toString=function(){return V},Q},utcFormat:function(V){var Q=_(V+="",O);return Q.toString=function(){return V},Q},utcParse:function(V){var Q=E(V+="",!0);return Q.toString=function(){return V},Q}}}var Ww={"-":"",_:" ",0:"0"},nt=/^\s*\d+/,rV=/^%/,iV=/[\\^$*+?|[\]().{}]/g;function ue(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 oV(e){return e.replace(iV,"\\$&")}function nl(e){return new RegExp("^(?:"+e.map(oV).join("|")+")","i")}function rl(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function aV(e,t,n){var r=nt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function lV(e,t,n){var r=nt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function sV(e,t,n){var r=nt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function uV(e,t,n){var r=nt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function cV(e,t,n){var r=nt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Vw(e,t,n){var r=nt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Kw(e,t,n){var r=nt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function fV(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 dV(e,t,n){var r=nt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function pV(e,t,n){var r=nt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function qw(e,t,n){var r=nt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function hV(e,t,n){var r=nt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Gw(e,t,n){var r=nt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function mV(e,t,n){var r=nt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function vV(e,t,n){var r=nt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function gV(e,t,n){var r=nt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function yV(e,t,n){var r=nt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function xV(e,t,n){var r=rV.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function bV(e,t,n){var r=nt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function wV(e,t,n){var r=nt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Xw(e,t){return ue(e.getDate(),t,2)}function SV(e,t){return ue(e.getHours(),t,2)}function _V(e,t){return ue(e.getHours()%12||12,t,2)}function OV(e,t){return ue(1+eu.count(_r(e),e),t,3)}function cT(e,t){return ue(e.getMilliseconds(),t,3)}function EV(e,t){return cT(e,t)+"000"}function $V(e,t){return ue(e.getMonth()+1,t,2)}function PV(e,t){return ue(e.getMinutes(),t,2)}function AV(e,t){return ue(e.getSeconds(),t,2)}function TV(e){var t=e.getDay();return t===0?7:t}function jV(e,t){return ue(Xd.count(_r(e)-1,e),t,2)}function fT(e){var t=e.getDay();return t>=4||t===0?Jo(e):Jo.ceil(e)}function CV(e,t){return e=fT(e),ue(Jo.count(_r(e),e)+(_r(e).getDay()===4),t,2)}function kV(e){return e.getDay()}function NV(e,t){return ue(mf.count(_r(e)-1,e),t,2)}function MV(e,t){return ue(e.getFullYear()%100,t,2)}function IV(e,t){return e=fT(e),ue(e.getFullYear()%100,t,2)}function RV(e,t){return ue(e.getFullYear()%1e4,t,4)}function LV(e,t){var n=e.getDay();return e=n>=4||n===0?Jo(e):Jo.ceil(e),ue(e.getFullYear()%1e4,t,4)}function DV(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ue(t/60|0,"0",2)+ue(t%60,"0",2)}function Yw(e,t){return ue(e.getUTCDate(),t,2)}function FV(e,t){return ue(e.getUTCHours(),t,2)}function BV(e,t){return ue(e.getUTCHours()%12||12,t,2)}function zV(e,t){return ue(1+Gd.count(Or(e),e),t,3)}function dT(e,t){return ue(e.getUTCMilliseconds(),t,3)}function UV(e,t){return dT(e,t)+"000"}function HV(e,t){return ue(e.getUTCMonth()+1,t,2)}function WV(e,t){return ue(e.getUTCMinutes(),t,2)}function VV(e,t){return ue(e.getUTCSeconds(),t,2)}function KV(e){var t=e.getUTCDay();return t===0?7:t}function qV(e,t){return ue(Yd.count(Or(e)-1,e),t,2)}function pT(e){var t=e.getUTCDay();return t>=4||t===0?ea(e):ea.ceil(e)}function GV(e,t){return e=pT(e),ue(ea.count(Or(e),e)+(Or(e).getUTCDay()===4),t,2)}function XV(e){return e.getUTCDay()}function YV(e,t){return ue(vf.count(Or(e)-1,e),t,2)}function QV(e,t){return ue(e.getUTCFullYear()%100,t,2)}function ZV(e,t){return e=pT(e),ue(e.getUTCFullYear()%100,t,2)}function JV(e,t){return ue(e.getUTCFullYear()%1e4,t,4)}function eK(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ea(e):ea.ceil(e),ue(e.getUTCFullYear()%1e4,t,4)}function tK(){return"+0000"}function Qw(){return"%"}function Zw(e){return+e}function Jw(e){return Math.floor(+e/1e3)}var uo,hT,mT;nK({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 nK(e){return uo=nV(e),hT=uo.format,uo.parse,mT=uo.utcFormat,uo.utcParse,uo}function rK(e){return new Date(e)}function iK(e){return e instanceof Date?+e:+new Date(+e)}function M0(e,t,n,r,i,o,a,l,s,u){var c=b0(),f=c.invert,d=c.domain,p=u(".%L"),m=u(":%S"),v=u("%I:%M"),y=u("%I %p"),h=u("%a %d"),g=u("%b %d"),x=u("%B"),O=u("%Y");function w(_){return(s(_)<_?p:l(_)<_?m:a(_)<_?v:o(_)<_?y:r(_)<_?i(_)<_?h:g:n(_)<_?x:O)(_)}return c.invert=function(_){return new Date(f(_))},c.domain=function(_){return arguments.length?d(Array.from(_,iK)):d().map(rK)},c.ticks=function(_){var E=d();return e(E[0],E[E.length-1],_??10)},c.tickFormat=function(_,E){return E==null?w:u(E)},c.nice=function(_){var E=d();return(!_||typeof _.range!="function")&&(_=t(E[0],E[E.length-1],_??10)),_?d(tT(E,_)):c},c.copy=function(){return Js(c,M0(e,t,n,r,i,o,a,l,s,u))},c}function oK(){return pn.apply(M0(eV,tV,_r,k0,Xd,eu,j0,A0,Ti,hT).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function aK(){return pn.apply(M0(Z9,J9,Or,N0,Yd,Gd,C0,T0,Ti,mT).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Qd(){var e=0,t=1,n,r,i,o,a=wt,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,m;return arguments.length?([p,m]=d,a=f(p,m),u):[a(0),a(1)]}}return u.range=c(Ma),u.rangeRound=c(x0),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 ui(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function vT(){var e=si(Qd()(wt));return e.copy=function(){return ui(e,vT())},jr.apply(e,arguments)}function gT(){var e=_0(Qd()).domain([1,10]);return e.copy=function(){return ui(e,gT()).base(e.base())},jr.apply(e,arguments)}function yT(){var e=O0(Qd());return e.copy=function(){return ui(e,yT()).constant(e.constant())},jr.apply(e,arguments)}function I0(){var e=E0(Qd());return e.copy=function(){return ui(e,I0()).exponent(e.exponent())},jr.apply(e,arguments)}function lK(){return I0.apply(null,arguments).exponent(.5)}function xT(){var e=[],t=wt;function n(r){if(r!=null&&!isNaN(r=+r))return t((Qs(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(Yr),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)=>WW(e,o/r))},n.copy=function(){return xT(t).domain(e)},jr.apply(n,arguments)}function Zd(){var e=0,t=.5,n=1,r=1,i,o,a,l,s,u=wt,c,f=!1,d;function p(v){return isNaN(v=+v)?d:(v=.5+((v=+c(v))-o)*(r*v<r*o?l:s),u(f?Math.max(0,Math.min(1,v)):v))}p.domain=function(v){return arguments.length?([e,t,n]=v,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(v){return arguments.length?(f=!!v,p):f},p.interpolator=function(v){return arguments.length?(u=v,p):u};function m(v){return function(y){var h,g,x;return arguments.length?([h,g,x]=y,u=x9(v,[h,g,x]),p):[u(0),u(.5),u(1)]}}return p.range=m(Ma),p.rangeRound=m(x0),p.unknown=function(v){return arguments.length?(d=v,p):d},function(v){return c=v,i=v(e),o=v(t),a=v(n),l=i===o?0:.5/(o-i),s=o===a?0:.5/(a-o),r=o<i?-1:1,p}}function bT(){var e=si(Zd()(wt));return e.copy=function(){return ui(e,bT())},jr.apply(e,arguments)}function wT(){var e=_0(Zd()).domain([.1,1,10]);return e.copy=function(){return ui(e,wT()).base(e.base())},jr.apply(e,arguments)}function ST(){var e=O0(Zd());return e.copy=function(){return ui(e,ST()).constant(e.constant())},jr.apply(e,arguments)}function R0(){var e=E0(Zd());return e.copy=function(){return ui(e,R0()).exponent(e.exponent())},jr.apply(e,arguments)}function sK(){return R0.apply(null,arguments).exponent(.5)}const eS=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:ls,scaleDiverging:bT,scaleDivergingLog:wT,scaleDivergingPow:R0,scaleDivergingSqrt:sK,scaleDivergingSymlog:ST,scaleIdentity:eT,scaleImplicit:_v,scaleLinear:pf,scaleLog:nT,scaleOrdinal:v0,scalePoint:Tl,scalePow:$0,scaleQuantile:oT,scaleQuantize:aT,scaleRadial:iT,scaleSequential:vT,scaleSequentialLog:gT,scaleSequentialPow:I0,scaleSequentialQuantile:xT,scaleSequentialSqrt:lK,scaleSequentialSymlog:yT,scaleSqrt:U9,scaleSymlog:rT,scaleThreshold:lT,scaleTime:oK,scaleUtc:aK,tickFormat:JA},Symbol.toStringTag,{value:"Module"}));var uK=Oa;function cK(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&&!uK(a):n(a,l)))var l=a,s=o}return s}var Jd=cK;function fK(e,t){return e>t}var _T=fK,dK=Jd,pK=_T,hK=ka;function mK(e){return e&&e.length?dK(e,hK,pK):void 0}var vK=mK;const ep=he(vK);function gK(e,t){return e<t}var OT=gK,yK=Jd,xK=OT,bK=ka;function wK(e){return e&&e.length?yK(e,bK,xK):void 0}var SK=wK;const tp=he(SK);var _K=Ed,OK=li,EK=PA,$K=Et;function PK(e,t){var n=$K(e)?_K:EK;return n(e,OK(t))}var AK=PK,TK=c0,jK=AK;function CK(e,t){return TK(jK(e,t),1)}var kK=CK;const NK=he(kK);var MK=u0;function IK(e,t){return MK(e,t)}var RK=IK;const np=he(RK);var Ia=1e9,LK={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},D0,je=!0,cn="[DecimalError] ",Ri=cn+"Invalid argument: ",L0=cn+"Exponent out of range: ",Ra=Math.floor,wi=Math.pow,DK=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Lt,Ze=1e7,Ee=7,ET=9007199254740991,gf=Ra(ET/Ee),G={};G.absoluteValue=G.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};G.comparedTo=G.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};G.decimalPlaces=G.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Ee;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};G.dividedBy=G.div=function(e){return hr(this,new this.constructor(e))};G.dividedToIntegerBy=G.idiv=function(e){var t=this,n=t.constructor;return ge(hr(t,new n(e),0,1),n.precision)};G.equals=G.eq=function(e){return!this.cmp(e)};G.exponent=function(){return We(this)};G.greaterThan=G.gt=function(e){return this.cmp(e)>0};G.greaterThanOrEqualTo=G.gte=function(e){return this.cmp(e)>=0};G.isInteger=G.isint=function(){return this.e>this.d.length-2};G.isNegative=G.isneg=function(){return this.s<0};G.isPositive=G.ispos=function(){return this.s>0};G.isZero=function(){return this.s===0};G.lessThan=G.lt=function(e){return this.cmp(e)<0};G.lessThanOrEqualTo=G.lte=function(e){return this.cmp(e)<1};G.logarithm=G.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(Lt))throw Error(cn+"NaN");if(n.s<1)throw Error(cn+(n.s?"NaN":"-Infinity"));return n.eq(Lt)?new r(0):(je=!1,t=hr(fs(n,o),fs(e,o),o),je=!0,ge(t,i))};G.minus=G.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?AT(t,e):$T(t,(e.s=-e.s,e))};G.modulo=G.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(cn+"NaN");return n.s?(je=!1,t=hr(n,e,0,1).times(e),je=!0,n.minus(t)):ge(new r(n),i)};G.naturalExponential=G.exp=function(){return PT(this)};G.naturalLogarithm=G.ln=function(){return fs(this)};G.negated=G.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};G.plus=G.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?$T(t,e):AT(t,(e.s=-e.s,e))};G.precision=G.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Ri+e);if(t=We(i)+1,r=i.d.length-1,n=r*Ee+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};G.squareRoot=G.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(cn+"NaN")}for(e=We(l),je=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=Ln(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Ra((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(hr(l,o,a+2)).times(.5),Ln(o.d).slice(0,a)===(t=Ln(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(ge(o,n+1,0),o.times(o).eq(l)){r=o;break}}else if(t!="9999")break;a+=4}return je=!0,ge(r,n)};G.times=G.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%Ze|0,t=l/Ze|0;o[i]=(o[i]+t)%Ze|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,je?ge(e,f.precision):e};G.toDecimalPlaces=G.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Vn(e,0,Ia),t===void 0?t=r.rounding:Vn(t,0,8),ge(n,e+We(n)+1,t))};G.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=Vi(r,!0):(Vn(e,0,Ia),t===void 0?t=i.rounding:Vn(t,0,8),r=ge(new i(r),e+1,t),n=Vi(r,!0,e+1)),n};G.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?Vi(i):(Vn(e,0,Ia),t===void 0?t=o.rounding:Vn(t,0,8),r=ge(new o(i),e+We(i)+1,t),n=Vi(r.abs(),!1,e+We(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};G.toInteger=G.toint=function(){var e=this,t=e.constructor;return ge(new t(e),We(e)+1,t.rounding)};G.toNumber=function(){return+this};G.toPower=G.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(Lt);if(l=new s(l),!l.s){if(e.s<1)throw Error(cn+"Infinity");return l}if(l.eq(Lt))return l;if(r=s.precision,e.eq(Lt))return ge(l,r);if(t=e.e,n=e.d.length-1,a=t>=n,o=l.s,a){if((n=c<0?-c:c)<=ET){for(i=new s(Lt),t=Math.ceil(r/Ee+4),je=!1;n%2&&(i=i.times(l),nS(i.d,t)),n=Ra(n/2),n!==0;)l=l.times(l),nS(l.d,t);return je=!0,e.s<0?new s(Lt).div(i):ge(i,r)}}else if(o<0)throw Error(cn+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,je=!1,i=e.times(fs(l,r+u)),je=!0,i=PT(i),i.s=o,i};G.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=We(i),r=Vi(i,n<=o.toExpNeg||n>=o.toExpPos)):(Vn(e,1,Ia),t===void 0?t=o.rounding:Vn(t,0,8),i=ge(new o(i),e,t),n=We(i),r=Vi(i,e<=n||n<=o.toExpNeg,e)),r};G.toSignificantDigits=G.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Vn(e,1,Ia),t===void 0?t=r.rounding:Vn(t,0,8)),ge(new r(n),e,t)};G.toString=G.valueOf=G.val=G.toJSON=G[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=We(e),n=e.constructor;return Vi(e,t<=n.toExpNeg||t>=n.toExpPos)};function $T(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)),je?ge(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/Ee),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)/Ze|0,s[o]%=Ze;for(n&&(s.unshift(n),++i),l=s.length;s[--l]==0;)s.pop();return t.d=s,t.e=i,je?ge(t,f):t}function Vn(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Ri+e)}function Ln(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=Ee-r.length,n&&(o+=Ir(n)),o+=r;a=e[t],r=a+"",n=Ee-r.length,n&&(o+=Ir(n))}else if(a===0)return"0";for(;a%10===0;)a/=10;return o+a}var hr=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%Ze|0,a=o/Ze|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*Ze+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,m,v,y,h,g,x,O,w,_,E,$,A=r.constructor,C=r.s==i.s?1:-1,T=r.d,N=i.d;if(!r.s)return new A(r);if(!i.s)throw Error(cn+"Division by zero");for(s=r.e-i.e,E=N.length,w=T.length,p=new A(C),m=p.d=[],u=0;N[u]==(T[u]||0);)++u;if(N[u]>(T[u]||0)&&--s,o==null?g=o=A.precision:a?g=o+(We(r)-We(i))+1:g=o,g<0)return new A(0);if(g=g/Ee+2|0,u=0,E==1)for(c=0,N=N[0],g++;(u<w||c)&&g--;u++)x=c*Ze+(T[u]||0),m[u]=x/N|0,c=x%N|0;else{for(c=Ze/(N[0]+1)|0,c>1&&(N=e(N,c),T=e(T,c),E=N.length,w=T.length),O=E,v=T.slice(0,E),y=v.length;y<E;)v[y++]=0;$=N.slice(),$.unshift(0),_=N[0],N[1]>=Ze/2&&++_;do c=0,l=t(N,v,E,y),l<0?(h=v[0],E!=y&&(h=h*Ze+(v[1]||0)),c=h/_|0,c>1?(c>=Ze&&(c=Ze-1),f=e(N,c),d=f.length,y=v.length,l=t(f,v,d,y),l==1&&(c--,n(f,E<d?$:N,d))):(c==0&&(l=c=1),f=N.slice()),d=f.length,d<y&&f.unshift(0),n(v,f,y),l==-1&&(y=v.length,l=t(N,v,E,y),l<1&&(c++,n(v,E<y?$:N,y))),y=v.length):l===0&&(c++,v=[0]),m[u++]=c,l&&v[0]?v[y++]=T[O]||0:(v=[T[O]],y=1);while((O++<w||v[0]!==void 0)&&g--)}return m[0]||m.shift(),p.e=s,ge(p,a?o+We(p)+1:o)}}();function PT(e,t){var n,r,i,o,a,l,s=0,u=0,c=e.constructor,f=c.precision;if(We(e)>16)throw Error(L0+We(e));if(!e.s)return new c(Lt);for(t==null?(je=!1,l=f):l=t,a=new c(.03125);e.abs().gte(.1);)e=e.times(a),u+=5;for(r=Math.log(wi(2,u))/Math.LN10*2+5|0,l+=r,n=i=o=new c(Lt),c.precision=l;;){if(i=ge(i.times(e),l),n=n.times(++s),a=o.plus(hr(i,n,l)),Ln(a.d).slice(0,l)===Ln(o.d).slice(0,l)){for(;u--;)o=ge(o.times(o),l);return c.precision=f,t==null?(je=!0,ge(o,f)):o}o=a}}function We(e){for(var t=e.e*Ee,n=e.d[0];n>=10;n/=10)t++;return t}function Eh(e,t,n){if(t>e.LN10.sd())throw je=!0,n&&(e.precision=n),Error(cn+"LN10 precision limit exceeded");return ge(new e(e.LN10),t)}function Ir(e){for(var t="";e--;)t+="0";return t}function fs(e,t){var n,r,i,o,a,l,s,u,c,f=1,d=10,p=e,m=p.d,v=p.constructor,y=v.precision;if(p.s<1)throw Error(cn+(p.s?"NaN":"-Infinity"));if(p.eq(Lt))return new v(0);if(t==null?(je=!1,u=y):u=t,p.eq(10))return t==null&&(je=!0),Eh(v,u);if(u+=d,v.precision=u,n=Ln(m),r=n.charAt(0),o=We(p),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=Ln(p.d),r=n.charAt(0),f++;o=We(p),r>1?(p=new v("0."+n),o++):p=new v(r+"."+n.slice(1))}else return s=Eh(v,u+2,y).times(o+""),p=fs(new v(r+"."+n.slice(1)),u-d).plus(s),v.precision=y,t==null?(je=!0,ge(p,y)):p;for(l=a=p=hr(p.minus(Lt),p.plus(Lt),u),c=ge(p.times(p),u),i=3;;){if(a=ge(a.times(c),u),s=l.plus(hr(a,new v(i),u)),Ln(s.d).slice(0,u)===Ln(l.d).slice(0,u))return l=l.times(2),o!==0&&(l=l.plus(Eh(v,u+2,y).times(o+""))),l=hr(l,new v(f),u),v.precision=y,t==null?(je=!0,ge(l,y)):l;l=s,i+=2}}function tS(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=Ra(n/Ee),e.d=[],r=(n+1)%Ee,n<0&&(r+=Ee),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=Ee;r<i;)e.d.push(+t.slice(r,r+=Ee));t=t.slice(r),r=Ee-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),je&&(e.e>gf||e.e<-gf))throw Error(L0+n)}else e.s=0,e.e=0,e.d=[0];return e}function ge(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+=Ee,i=t,u=f[c=0];else{if(c=Math.ceil((r+1)/Ee),o=f.length,c>=o)return e;for(u=o=f[c],a=1;o>=10;o/=10)a++;r%=Ee,i=r-Ee+a}if(n!==void 0&&(o=wi(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/wi(10,a-i):0:f[c-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return s?(o=We(e),f.length=1,t=t-o-1,f[0]=wi(10,(Ee-t%Ee)%Ee),e.e=Ra(-t/Ee)||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=wi(10,Ee-r),f[c]=i>0?(u/wi(10,a-i)%wi(10,i)|0)*o:0),s)for(;;)if(c==0){(f[0]+=o)==Ze&&(f[0]=1,++e.e);break}else{if(f[c]+=o,f[c]!=Ze)break;f[c--]=0,o=1}for(r=f.length;f[--r]===0;)f.pop();if(je&&(e.e>gf||e.e<-gf))throw Error(L0+We(e));return e}function AT(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),je?ge(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/Ee),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]=Ze-1;--s[o],s[i]+=Ze}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,je?ge(t,p):t):new d(0)}function Vi(e,t,n){var r,i=We(e),o=Ln(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+Ir(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+Ir(-i-1)+o,n&&(r=n-a)>0&&(o+=Ir(r))):i>=a?(o+=Ir(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+Ir(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=Ir(r))),e.s<0?"-"+o:o}function nS(e,t){if(e.length>t)return e.length=t,!0}function TT(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(Ri+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 tS(a,o.toString())}else if(typeof o!="string")throw Error(Ri+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,DK.test(o))tS(a,o);else throw Error(Ri+o)}if(i.prototype=G,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=TT,i.config=i.set=FK,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 FK(e){if(!e||typeof e!="object")throw Error(cn+"Object expected");var t,n,r,i=["precision",1,Ia,"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(Ra(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Ri+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Ri+n+": "+r);return this}var D0=TT(LK);Lt=new D0(1);const ve=D0;function BK(e){return WK(e)||HK(e)||UK(e)||zK()}function zK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
188
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UK(e,t){if(e){if(typeof e=="string")return Av(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 Av(e,t)}}function HK(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function WK(e){if(Array.isArray(e))return Av(e)}function Av(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 VK=function(t){return t},jT={"@@functional/placeholder":!0},CT=function(t){return t===jT},rS=function(t){return function n(){return arguments.length===0||arguments.length===1&&CT(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},KK=function e(t,n){return t===1?n:rS(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!==jT}).length;return a>=t?n.apply(void 0,i):e(t-a,rS(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 CT(f)?s.shift():f});return n.apply(void 0,BK(c).concat(s))}))})},rp=function(t){return KK(t.length,t)},Tv=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},qK=rp(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),GK=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return VK;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))}},jv=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},kT=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 XK(e){var t;return e===0?t=1:t=Math.floor(new ve(e).abs().log(10).toNumber())+1,t}function YK(e,t,n){for(var r=new ve(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o}var QK=rp(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),ZK=rp(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),JK=rp(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const ip={rangeStep:YK,getDigitCount:XK,interpolateNumber:QK,uninterpolateNumber:ZK,uninterpolateTruncation:JK};function Cv(e){return nq(e)||tq(e)||NT(e)||eq()}function eq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
189
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tq(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function nq(e){if(Array.isArray(e))return kv(e)}function ds(e,t){return oq(e)||iq(e,t)||NT(e,t)||rq()}function rq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
190
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NT(e,t){if(e){if(typeof e=="string")return kv(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 kv(e,t)}}function kv(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 iq(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 oq(e){if(Array.isArray(e))return e}function MT(e){var t=ds(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function IT(e,t,n){if(e.lte(0))return new ve(0);var r=ip.getDigitCount(e.toNumber()),i=new ve(10).pow(r),o=e.div(i),a=r!==1?.05:.1,l=new ve(Math.ceil(o.div(a).toNumber())).add(n).mul(a),s=l.mul(i);return t?s:new ve(Math.ceil(s))}function aq(e,t,n){var r=1,i=new ve(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new ve(10).pow(ip.getDigitCount(e)-1),i=new ve(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new ve(Math.floor(e)))}else e===0?i=new ve(Math.floor((t-1)/2)):n||(i=new ve(Math.floor(e)));var a=Math.floor((t-1)/2),l=GK(qK(function(s){return i.add(new ve(s-a).mul(r)).toNumber()}),Tv);return l(0,t)}function RT(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 ve(0),tickMin:new ve(0),tickMax:new ve(0)};var o=IT(new ve(t).sub(e).div(n-1),r,i),a;e<=0&&t>=0?a=new ve(0):(a=new ve(e).add(t).div(2),a=a.sub(new ve(a).mod(o)));var l=Math.ceil(a.sub(e).div(o).toNumber()),s=Math.ceil(new ve(t).sub(a).div(o).toNumber()),u=l+s+1;return u>n?RT(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 ve(l).mul(o)),tickMax:a.add(new ve(s).mul(o))})}function lq(e){var t=ds(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=MT([n,r]),s=ds(l,2),u=s[0],c=s[1];if(u===-1/0||c===1/0){var f=c===1/0?[u].concat(Cv(Tv(0,i-1).map(function(){return 1/0}))):[].concat(Cv(Tv(0,i-1).map(function(){return-1/0})),[c]);return n>r?jv(f):f}if(u===c)return aq(u,i,o);var d=RT(u,c,a,o),p=d.step,m=d.tickMin,v=d.tickMax,y=ip.rangeStep(m,v.add(new ve(.1).mul(p)),p);return n>r?jv(y):y}function sq(e,t){var n=ds(e,2),r=n[0],i=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=MT([r,i]),l=ds(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=IT(new ve(u).sub(s).div(c-1),o,0),d=[].concat(Cv(ip.rangeStep(new ve(s),new ve(u).sub(new ve(.99).mul(f)),f)),[u]);return r>i?jv(d):d}var uq=kT(lq),cq=kT(sq),fq="Invariant failed";function ta(e,t){throw new Error(fq)}var dq=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function na(e){"@babel/helpers - typeof";return na=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},na(e)}function yf(){return yf=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},yf.apply(this,arguments)}function pq(e,t){return gq(e)||vq(e,t)||mq(e,t)||hq()}function hq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
191
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mq(e,t){if(e){if(typeof e=="string")return iS(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 iS(e,t)}}function iS(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 vq(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 gq(e){if(Array.isArray(e))return e}function yq(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}function bq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wq(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 Sq(e,t,n){return t&&wq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _q(e,t,n){return t=xf(t),Oq(e,LT()?Reflect.construct(t,n||[],xf(e).constructor):t.apply(e,n))}function Oq(e,t){if(t&&(na(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Eq(e)}function Eq(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 xf(e){return xf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xf(e)}function $q(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&&Nv(e,t)}function Nv(e,t){return Nv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Nv(e,t)}function DT(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=Pq(e,"string");return na(t)=="symbol"?t:t+""}function Pq(e,t){if(na(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(na(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var F0=function(e){function t(){return bq(this,t),_q(this,t,arguments)}return $q(t,e),Sq(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=yq(r,dq),p=ee(d,!1);this.props.direction==="x"&&c.type!=="number"&&ta();var m=s.map(function(v){var y=u(v,l),h=y.x,g=y.y,x=y.value,O=y.errorVal;if(!O)return null;var w=[],_,E;if(Array.isArray(O)){var $=pq(O,2);_=$[0],E=$[1]}else _=E=O;if(o==="vertical"){var A=c.scale,C=g+i,T=C+a,N=C-a,R=A(x-_),D=A(x+E);w.push({x1:D,y1:T,x2:D,y2:N}),w.push({x1:R,y1:C,x2:D,y2:C}),w.push({x1:R,y1:T,x2:R,y2:N})}else if(o==="horizontal"){var M=f.scale,L=h+i,I=L-a,P=L+a,k=M(x-_),F=M(x+E);w.push({x1:I,y1:F,x2:P,y2:F}),w.push({x1:L,y1:k,x2:L,y2:F}),w.push({x1:I,y1:k,x2:P,y2:k})}return j.createElement($e,yf({className:"recharts-errorBar",key:"bar-".concat(w.map(function(B){return"".concat(B.x1,"-").concat(B.x2,"-").concat(B.y1,"-").concat(B.y2)}))},p),w.map(function(B){return j.createElement("line",yf({},B,{key:"line-".concat(B.x1,"-").concat(B.x2,"-").concat(B.y1,"-").concat(B.y2)}))}))});return j.createElement($e,{className:"recharts-errorBars"},m)}}])}(j.Component);DT(F0,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});DT(F0,"displayName","ErrorBar");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 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 hi(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){Aq(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 Aq(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=jq(e,"string");return ps(t)=="symbol"?t:t+""}function jq(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 BT=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=Qt(n,Io);if(!a)return null;var l=Io.defaultProps,s=l!==void 0?hi(hi({},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,m=p.sectors||p.data||[];return c.concat(m.map(function(v){return{type:a.props.iconType||d.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):u=(r||[]).map(function(c){var f=c.item,d=f.type.defaultProps,p=d!==void 0?hi(hi({},d),f.props):{},m=p.dataKey,v=p.name,y=p.legendType,h=p.hide;return{inactive:h,dataKey:m,type:s.iconType||y||"square",color:B0(f),value:v||m,payload:p}}),hi(hi(hi({},s),Io.getWithHeight(a,i)),{},{payload:u,item:a})};function hs(e){"@babel/helpers - typeof";return hs=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},hs(e)}function aS(e){return Mq(e)||Nq(e)||kq(e)||Cq()}function Cq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
192
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kq(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 Nq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Mq(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}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 Le(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){Lo(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 Lo(e,t,n){return t=Iq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Iq(e){var t=Rq(e,"string");return hs(t)=="symbol"?t:t+""}function Rq(e,t){if(hs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(hs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function at(e,t,n){return oe(e)||oe(t)?n:Ye(t)?On(e,t,n):J(t)?t(e):n}function jl(e,t,n,r){var i=NK(e,function(l){return at(l,t)});if(n==="number"){var o=i.filter(function(l){return K(l)||parseFloat(l)});return o.length?[tp(o),ep(o)]:[1/0,-1/0]}var a=r?i.filter(function(l){return!oe(l)}):i;return a.map(function(l){return Ye(l)||l instanceof Date?l:""})}var Lq=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(rn(f-c)!==rn(d-f)){var m=[];if(rn(d-f)===rn(s[1]-s[0])){p=d;var v=f+s[1]-s[0];m[0]=Math.min(v,(v+c)/2),m[1]=Math.max(v,(v+c)/2)}else{p=c;var y=d+s[1]-s[0];m[0]=Math.min(f,(y+f)/2),m[1]=Math.max(f,(y+f)/2)}var h=[Math.min(f,(p+f)/2),Math.max(f,(p+f)/2)];if(t>h[0]&&t<=h[1]||t>=m[0]&&t<=m[1]){a=i[u].index;break}}else{var g=Math.min(c,d),x=Math.max(c,d);if(t>(g+f)/2&&t<=(x+f)/2){a=i[u].index;break}}}else for(var O=0;O<l;O++)if(O===0&&t<=(r[O].coordinate+r[O+1].coordinate)/2||O>0&&O<l-1&&t>(r[O].coordinate+r[O-1].coordinate)/2&&t<=(r[O].coordinate+r[O+1].coordinate)/2||O===l-1&&t>(r[O].coordinate+r[O-1].coordinate)/2){a=r[O].index;break}return a},B0=function(t){var n,r=t,i=r.type.displayName,o=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Le(Le({},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},Dq=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 m=c[f[d]],v=m.items,y=m.cateAxisId,h=v.filter(function(E){return dr(E.type).indexOf("Bar")>=0});if(h&&h.length){var g=h[0].type.defaultProps,x=g!==void 0?Le(Le({},g),h[0].props):h[0].props,O=x.barSize,w=x[y];a[w]||(a[w]=[]);var _=oe(O)?n:O;a[w].push({item:h[0],stackList:h.slice(1),barSize:oe(_)?void 0:Tt(_,r,0)})}}return a},Fq=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=Tt(n,i,0,!0),c,f=[];if(a[0].barSize===+a[0].barSize){var d=!1,p=i/s,m=a.reduce(function(O,w){return O+w.barSize||0},0);m+=(s-1)*u,m>=i&&(m-=(s-1)*u,u=0),m>=i&&p>0&&(d=!0,p*=.9,m=s*p);var v=(i-m)/2>>0,y={offset:v-u,size:0};c=a.reduce(function(O,w){var _={item:w.item,position:{offset:y.offset+y.size+u,size:d?p:w.barSize}},E=[].concat(aS(O),[_]);return y=E[E.length-1].position,w.stackList&&w.stackList.length&&w.stackList.forEach(function($){E.push({item:$,position:y})}),E},f)}else{var h=Tt(r,i,0,!0);i-2*h-(s-1)*u<=0&&(u=0);var g=(i-2*h-(s-1)*u)/s;g>1&&(g>>=0);var x=l===+l?Math.min(g,l):g;c=a.reduce(function(O,w,_){var E=[].concat(aS(O),[{item:w.item,position:{offset:h+(g+u)*_+(g-x)/2,size:x}}]);return w.stackList&&w.stackList.length&&w.stackList.forEach(function($){E.push({item:$,position:E[E.length-1].position})}),E},f)}return c},Bq=function(t,n,r,i){var o=r.children,a=r.width,l=r.margin,s=a-(l.left||0)-(l.right||0),u=BT({children:o,legendWidth:s});if(u){var c=i||{},f=c.width,d=c.height,p=u.align,m=u.verticalAlign,v=u.layout;if((v==="vertical"||v==="horizontal"&&m==="middle")&&p!=="center"&&K(t[p]))return Le(Le({},t),{},Lo({},p,t[p]+(f||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&m!=="middle"&&K(t[m]))return Le(Le({},t),{},Lo({},m,t[m]+(d||0)))}return t},zq=function(t,n,r){return oe(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},zT=function(t,n,r,i,o){var a=n.props.children,l=En(a,F0).filter(function(u){return zq(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=at(c,r);if(oe(f))return u;var d=Array.isArray(f)?[tp(f),ep(f)]:[f,f],p=s.reduce(function(m,v){var y=at(c,v,0),h=d[0]-Math.abs(Array.isArray(y)?y[0]:y),g=d[1]+Math.abs(Array.isArray(y)?y[1]:y);return[Math.min(h,m[0]),Math.max(g,m[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},Uq=function(t,n,r,i,o){var a=n.map(function(l){return zT(t,l,r,o,i)}).filter(function(l){return!oe(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},UT=function(t,n,r,i,o){var a=n.map(function(s){var u=s.props.dataKey;return r==="number"&&u&&zT(t,s,u,i)||jl(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},[])},HT=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},ml=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?rn(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}})},$h=new WeakMap,Hu=function(t,n){if(typeof n!="function")return t;$h.has(t)||$h.set(t,new WeakMap);var r=$h.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},Hq=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:ls(),realScaleType:"band"}:a==="radial"&&l==="angleAxis"?{scale:pf(),realScaleType:"linear"}:o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Tl(),realScaleType:"point"}:o==="category"?{scale:ls(),realScaleType:"band"}:{scale:pf(),realScaleType:"linear"};if(Ta(i)){var s="scale".concat(Fd(i));return{scale:(eS[s]||Tl)(),realScaleType:eS[s]?s:"point"}}return J(i)?{scale:i}:{scale:Tl(),realScaleType:"point"}},sS=1e-4,Wq=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])-sS,a=Math.max(i[0],i[1])+sS,l=t(n[0]),s=t(n[r-1]);(l<o||l>a||s<o||s>a)&&t.domain([n[0],n[r-1]])}},Vq=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])}},Kq=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)}},qq={sign:Vq,expand:x4,none:Ko,silhouette:b4,wiggle:w4,positive:Kq},Gq=function(t,n,r){var i=n.map(function(l){return l.props.dataKey}),o=qq[r],a=y4().keys(i).value(function(l,s){return+at(l,s,0)}).order(iv).offset(o);return a(t)},Xq=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,m=(p=d.type)!==null&&p!==void 0&&p.defaultProps?Le(Le({},d.type.defaultProps),d.props):d.props,v=m.stackId,y=m.hide;if(y)return f;var h=m[r],g=f[h]||{hasStack:!1,stackGroups:{}};if(Ye(v)){var x=g.stackGroups[v]||{numericAxisId:r,cateAxisId:i,items:[]};x.items.push(d),g.hasStack=!0,g.stackGroups[v]=x}else g.stackGroups[Dd("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[d]};return Le(Le({},f),{},Lo({},h,g))},s),c={};return Object.keys(u).reduce(function(f,d){var p=u[d];if(p.hasStack){var m={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(v,y){var h=p.stackGroups[y];return Le(Le({},v),{},Lo({},y,{numericAxisId:r,cateAxisId:i,items:h.items,stackedData:Gq(t,h.items,o)}))},m)}return Le(Le({},f),{},Lo({},d,p))},c)},Yq=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=uq(u,o,l);return t.domain([tp(c),ep(c)]),{niceTicks:c}}if(o&&i==="number"){var f=t.domain(),d=cq(f,o,l);return{niceTicks:d}}return null},Qq=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Le(Le({},t.type.defaultProps),t.props):t.props,o=i.stackId;if(Ye(o)){var a=n[o];if(a){var l=a.items.indexOf(t);return l>=0?a.stackedData[l]:null}}return null},Zq=function(t){return t.reduce(function(n,r){return[tp(r.concat([n[0]]).filter(K)),ep(r.concat([n[1]]).filter(K))]},[1/0,-1/0])},WT=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=Zq(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})},uS=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cS=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Iv=function(t,n,r){if(J(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(K(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(uS.test(t[0])){var o=+uS.exec(t[0])[1];i[0]=n[0]-o}else J(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(K(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(cS.test(t[1])){var a=+cS.exec(t[1])[1];i[1]=n[1]+a}else J(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},Rv=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=d0(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},fS=function(t,n,r){return!t||!t.length||np(t,On(r,"type.defaultProps.domain"))?n:t},Jq=function(t,n){var r=t.type.defaultProps?Le(Le({},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 Le(Le({},ee(t,!1)),{},{dataKey:i,unit:a,formatter:l,name:o||i,color:B0(t),value:at(n,i),type:s,payload:n,chartType:u,hide:c})};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 dS(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?dS(Object(n),!0).forEach(function(r){VT(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VT(e,t,n){return t=eG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eG(e){var t=tG(e,"string");return ms(t)=="symbol"?t:t+""}function tG(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 nG(e,t){return aG(e)||oG(e,t)||iG(e,t)||rG()}function rG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
193
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iG(e,t){if(e){if(typeof e=="string")return pS(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 pS(e,t)}}function pS(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 oG(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 aG(e){if(Array.isArray(e))return e}var bf=Math.PI/180,lG=function(t){return t*180/Math.PI},Se=function(t,n,r,i){return{x:t+Math.cos(-bf*i)*r,y:n+Math.sin(-bf*i)*r}},KT=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},sG=function(t,n,r,i,o){var a=t.width,l=t.height,s=t.startAngle,u=t.endAngle,c=Tt(t.cx,a,a/2),f=Tt(t.cy,l,l/2),d=KT(a,l,r),p=Tt(t.innerRadius,d,0),m=Tt(t.outerRadius,d,d*.8),v=Object.keys(n);return v.reduce(function(y,h){var g=n[h],x=g.domain,O=g.reversed,w;if(oe(g.range))i==="angleAxis"?w=[s,u]:i==="radiusAxis"&&(w=[p,m]),O&&(w=[w[1],w[0]]);else{w=g.range;var _=w,E=nG(_,2);s=E[0],u=E[1]}var $=Hq(g,o),A=$.realScaleType,C=$.scale;C.domain(x).range(w),Wq(C);var T=Yq(C,nr(nr({},g),{},{realScaleType:A})),N=nr(nr(nr({},g),T),{},{range:w,radius:m,realScaleType:A,scale:C,cx:c,cy:f,innerRadius:p,outerRadius:m,startAngle:s,endAngle:u});return nr(nr({},y),{},VT({},h,N))},{})},uG=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))},cG=function(t,n){var r=t.x,i=t.y,o=n.cx,a=n.cy,l=uG({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:lG(u),angleInRadian:u}},fG=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}},dG=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},hS=function(t,n){var r=t.x,i=t.y,o=cG({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=fG(n),f=c.startAngle,d=c.endAngle,p=l,m;if(f<=d){for(;p>d;)p-=360;for(;p<f;)p+=360;m=p>=f&&p<=d}else{for(;p>f;)p-=360;for(;p<d;)p+=360;m=p>=d&&p<=f}return m?nr(nr({},n),{},{radius:a,angle:dG(p,n)}):null},qT=function(t){return!S.isValidElement(t)&&!J(t)&&typeof t!="boolean"?t.className:""};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)}var pG=["offset"];function hG(e){return yG(e)||gG(e)||vG(e)||mG()}function mG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
194
- 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 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 gG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yG(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 xG(e,t){if(e==null)return{};var n=bG(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 bG(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 mS(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 Ke(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mS(Object(n),!0).forEach(function(r){wG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wG(e,t,n){return t=SG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SG(e){var t=_G(e,"string");return vs(t)=="symbol"?t:t+""}function _G(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 gs(){return gs=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},gs.apply(this,arguments)}var OG=function(t){var n=t.value,r=t.formatter,i=oe(t.children)?n:t.children;return J(r)?r(i):i},EG=function(t,n){var r=rn(n-t),i=Math.min(Math.abs(n-t),360);return r*i},$G=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,m=s.endAngle,v=s.clockWise,y=(f+d)/2,h=EG(p,m),g=h>=0?1:-1,x,O;i==="insideStart"?(x=p+g*a,O=v):i==="insideEnd"?(x=m-g*a,O=!v):i==="end"&&(x=m+g*a,O=v),O=h<=0?O:!O;var w=Se(u,c,y,x),_=Se(u,c,y,x+(O?1:-1)*359),E="M".concat(w.x,",").concat(w.y,`
195
- A`).concat(y,",").concat(y,",0,1,").concat(O?0:1,`,
196
- `).concat(_.x,",").concat(_.y),$=oe(t.id)?Dd("recharts-radial-line-"):t.id;return j.createElement("text",gs({},r,{dominantBaseline:"central",className:se("recharts-radial-bar-label",l)}),j.createElement("defs",null,j.createElement("path",{id:$,d:E})),j.createElement("textPath",{xlinkHref:"#".concat($)},n))},PG=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),m=p.x,v=p.y;return{x:m,y:v,textAnchor:m>=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 y=(s+u)/2,h=Se(a,l,y,d),g=h.x,x=h.y;return{x:g,y:x,textAnchor:"middle",verticalAnchor:"middle"}},AG=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",m=f>0?"start":"end",v=u>=0?1:-1,y=v*i,h=v>0?"end":"start",g=v>0?"start":"end";if(o==="top"){var x={x:l+u/2,y:s-f*i,textAnchor:"middle",verticalAnchor:p};return Ke(Ke({},x),r?{height:Math.max(s-r.y,0),width:u}:{})}if(o==="bottom"){var O={x:l+u/2,y:s+c+d,textAnchor:"middle",verticalAnchor:m};return Ke(Ke({},O),r?{height:Math.max(r.y+r.height-(s+c),0),width:u}:{})}if(o==="left"){var w={x:l-y,y:s+c/2,textAnchor:h,verticalAnchor:"middle"};return Ke(Ke({},w),r?{width:Math.max(w.x-r.x,0),height:c}:{})}if(o==="right"){var _={x:l+u+y,y:s+c/2,textAnchor:g,verticalAnchor:"middle"};return Ke(Ke({},_),r?{width:Math.max(r.x+r.width-_.x,0),height:c}:{})}var E=r?{width:u,height:c}:{};return o==="insideLeft"?Ke({x:l+y,y:s+c/2,textAnchor:g,verticalAnchor:"middle"},E):o==="insideRight"?Ke({x:l+u-y,y:s+c/2,textAnchor:h,verticalAnchor:"middle"},E):o==="insideTop"?Ke({x:l+u/2,y:s+d,textAnchor:"middle",verticalAnchor:m},E):o==="insideBottom"?Ke({x:l+u/2,y:s+c-d,textAnchor:"middle",verticalAnchor:p},E):o==="insideTopLeft"?Ke({x:l+y,y:s+d,textAnchor:g,verticalAnchor:m},E):o==="insideTopRight"?Ke({x:l+u-y,y:s+d,textAnchor:h,verticalAnchor:m},E):o==="insideBottomLeft"?Ke({x:l+y,y:s+c-d,textAnchor:g,verticalAnchor:p},E):o==="insideBottomRight"?Ke({x:l+u-y,y:s+c-d,textAnchor:h,verticalAnchor:p},E):Ea(o)&&(K(o.x)||Pi(o.x))&&(K(o.y)||Pi(o.y))?Ke({x:l+Tt(o.x,u),y:s+Tt(o.y,c),textAnchor:"end",verticalAnchor:"end"},E):Ke({x:l+u/2,y:s+c/2,textAnchor:"middle",verticalAnchor:"middle"},E)},TG=function(t){return"cx"in t&&K(t.cx)};function ot(e){var t=e.offset,n=t===void 0?5:t,r=xG(e,pG),i=Ke({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||oe(l)&&oe(s)&&!S.isValidElement(u)&&!J(u))return null;if(S.isValidElement(u))return S.cloneElement(u,i);var p;if(J(u)){if(p=S.createElement(u,i),S.isValidElement(p))return p}else p=OG(i);var m=TG(o),v=ee(i,!0);if(m&&(a==="insideStart"||a==="insideEnd"||a==="end"))return $G(i,p,v);var y=m?PG(i):AG(i);return j.createElement(Qo,gs({className:se("recharts-label",f)},v,y,{breakAll:d}),p)}ot.displayName="Label";var GT=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,m=t.left,v=t.width,y=t.height,h=t.clockWise,g=t.labelViewBox;if(g)return g;if(K(v)&&K(y)){if(K(f)&&K(d))return{x:f,y:d,width:v,height:y};if(K(p)&&K(m))return{x:p,y:m,width:v,height:y}}return K(f)&&K(d)?{x:f,y:d,width:0,height:0}:K(n)&&K(r)?{cx:n,cy:r,startAngle:o||i||0,endAngle:a||i||0,innerRadius:u||0,outerRadius:c||s||l||0,clockWise:h}:t.viewBox?t.viewBox:{}},jG=function(t,n){return t?t===!0?j.createElement(ot,{key:"label-implicit",viewBox:n}):Ye(t)?j.createElement(ot,{key:"label-implicit",viewBox:n,value:t}):S.isValidElement(t)?t.type===ot?S.cloneElement(t,{key:"label-implicit",viewBox:n}):j.createElement(ot,{key:"label-implicit",content:t,viewBox:n}):J(t)?j.createElement(ot,{key:"label-implicit",content:t,viewBox:n}):Ea(t)?j.createElement(ot,gs({viewBox:n},t,{key:"label-implicit"})):null:null},CG=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=GT(t),a=En(i,ot).map(function(s,u){return S.cloneElement(s,{viewBox:n||o,key:"label-".concat(u)})});if(!r)return a;var l=jG(t.label,n||o);return[l].concat(hG(a))};ot.parseViewBox=GT;ot.renderCallByParent=CG;function kG(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var XT=kG;const NG=he(XT);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 MG=["valueAccessor"],IG=["data","dataKey","clockWise","id","textBreakAll"];function RG(e){return BG(e)||FG(e)||DG(e)||LG()}function LG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
197
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DG(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 FG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function BG(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 wf(){return wf=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},wf.apply(this,arguments)}function vS(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 gS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vS(Object(n),!0).forEach(function(r){zG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zG(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=HG(e,"string");return ys(t)=="symbol"?t:t+""}function HG(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 yS(e,t){if(e==null)return{};var n=WG(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 WG(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 VG=function(t){return Array.isArray(t.value)?NG(t.value):t.value};function mr(e){var t=e.valueAccessor,n=t===void 0?VG:t,r=yS(e,MG),i=r.data,o=r.dataKey,a=r.clockWise,l=r.id,s=r.textBreakAll,u=yS(r,IG);return!i||!i.length?null:j.createElement($e,{className:"recharts-label-list"},i.map(function(c,f){var d=oe(o)?n(c,f):at(c&&c.payload,o),p=oe(l)?{}:{id:"".concat(l,"-").concat(f)};return j.createElement(ot,wf({},ee(c,!0),u,p,{parentViewBox:c.parentViewBox,value:d,textBreakAll:s,viewBox:ot.parseViewBox(oe(a)?c:gS(gS({},c),{},{clockWise:a})),key:"label-".concat(f),index:f}))}))}mr.displayName="LabelList";function KG(e,t){return e?e===!0?j.createElement(mr,{key:"labelList-implicit",data:t}):j.isValidElement(e)||J(e)?j.createElement(mr,{key:"labelList-implicit",data:t,content:e}):Ea(e)?j.createElement(mr,wf({data:t},e,{key:"labelList-implicit"})):null:null}function qG(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=En(r,mr).map(function(a,l){return S.cloneElement(a,{data:t,key:"labelList-".concat(l)})});if(!n)return i;var o=KG(e.label,t);return[o].concat(RG(i))}mr.renderCallByParent=qG;function xs(e){"@babel/helpers - typeof";return xs=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},xs(e)}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 xS(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 bS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xS(Object(n),!0).forEach(function(r){GG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function GG(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=YG(e,"string");return xs(t)=="symbol"?t:t+""}function YG(e,t){if(xs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(xs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var QG=function(t,n){var r=rn(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},Wu=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)/bf,d=u?o:o+a*f,p=Se(n,r,c,d),m=Se(n,r,i,d),v=u?o-a*f:o,y=Se(n,r,c*Math.cos(f*bf),v);return{center:p,circleTangency:m,lineTangency:y,theta:f}},YT=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.startAngle,l=t.endAngle,s=QG(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,`
185
+ height and width.`,M,L,a,s,c,f,n);var I=!Array.isArray(p)&&dr(p.type).endsWith("Chart");return j.Children.map(p,function(P){return j.isValidElement(P)?_.cloneElement(P,Ru({width:M,height:L},I?{style:Ru({height:"100%",width:"100%",maxHeight:L,maxWidth:M},P.props.style)}:{})):P})},[n,p,s,d,f,c,A,a]);return j.createElement("div",{id:y?"".concat(y):void 0,className:se("recharts-responsive-container",h),style:Ru(Ru({},E),{},{width:a,height:s,minWidth:c,minHeight:f,maxHeight:d}),ref:w},N)}),d0=function(t){return null};d0.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 nw(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 vv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nw(Object(n),!0).forEach(function(r){KH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KH(e,t,n){return t=qH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qH(e){var t=GH(e,"string");return os(t)=="symbol"?t:t+""}function GH(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 so={widthCache:{},cacheCount:0},XH=2e3,YH={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},rw="recharts_measurement_span";function QH(e){var t=vv({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var iw=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Xr.isSsr)return{width:0,height:0};var r=QH(n),i=JSON.stringify({text:t,copyStyle:r});if(so.widthCache[i])return so.widthCache[i];try{var o=document.getElementById(rw);o||(o=document.createElement("span"),o.setAttribute("id",rw),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=vv(vv({},YH),r);Object.assign(o.style,a),o.textContent="".concat(t);var l=o.getBoundingClientRect(),s={width:l.width,height:l.height};return so.widthCache[i]=s,++so.cacheCount>XH&&(so.cacheCount=0,so.widthCache={}),s}catch{return{width:0,height:0}}},ZH=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 of(e,t){return nW(e)||tW(e,t)||eW(e,t)||JH()}function JH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
186
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eW(e,t){if(e){if(typeof e=="string")return ow(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 ow(e,t)}}function ow(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 tW(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 nW(e){if(Array.isArray(e))return e}function rW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aw(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,oW(r.key),r)}}function iW(e,t,n){return t&&aw(e.prototype,t),n&&aw(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function oW(e){var t=aW(e,"string");return as(t)=="symbol"?t:t+""}function aW(e,t){if(as(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(as(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var lw=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,sw=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,lW=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,sW=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,IA={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},uW=Object.keys(IA),Oo="NaN";function cW(e,t){return e*IA[t]}var Lu=function(){function e(t,n){rW(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!lW.test(n)&&(this.num=NaN,this.unit=""),uW.includes(n)&&(this.num=cW(t,n),this.unit="px")}return iW(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=sW.exec(n))!==null&&r!==void 0?r:[],o=of(i,3),a=o[1],l=o[2];return new e(parseFloat(a),l??"")}}])}();function RA(e){if(e.includes(Oo))return Oo;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=lw.exec(t))!==null&&n!==void 0?n:[],i=of(r,4),o=i[1],a=i[2],l=i[3],s=Lu.parse(o??""),u=Lu.parse(l??""),c=a==="*"?s.multiply(u):s.divide(u);if(c.isNaN())return Oo;t=t.replace(lw,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,d=(f=sw.exec(t))!==null&&f!==void 0?f:[],p=of(d,4),m=p[1],v=p[2],y=p[3],h=Lu.parse(m??""),g=Lu.parse(y??""),x=v==="+"?h.add(g):h.subtract(g);if(x.isNaN())return Oo;t=t.replace(sw,x.toString())}return t}var uw=/\(([^()]*)\)/;function fW(e){for(var t=e;t.includes("(");){var n=uw.exec(t),r=of(n,2),i=r[1];t=t.replace(uw,RA(i))}return t}function dW(e){var t=e.replace(/\s+/g,"");return t=fW(t),t=RA(t),t}function pW(e){try{return dW(e)}catch{return Oo}}function mh(e){var t=pW(e.slice(5,-1));return t===Oo?"":t}var hW=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],mW=["dx","dy","angle","className","breakAll"];function gv(){return gv=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},gv.apply(this,arguments)}function cw(e,t){if(e==null)return{};var n=vW(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 vW(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 fw(e,t){return bW(e)||xW(e,t)||yW(e,t)||gW()}function gW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
187
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yW(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 xW(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 bW(e){if(Array.isArray(e))return e}var LA=/[ \f\n\r\t\v\u2028\u2029]+/,DA=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var o=[];oe(n)||(r?o=n.toString().split(""):o=n.toString().split(LA));var a=o.map(function(s){return{word:s,width:iw(s,i).width}}),l=r?0:iw(" ",i).width;return{wordsWithComputedWidth:a,spaceWidth:l}}catch{return null}},wW=function(t,n,r,i,o){var a=t.maxLines,l=t.children,s=t.style,u=t.breakAll,c=K(a),f=l,d=function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return M.reduce(function(L,I){var P=I.word,k=I.width,F=L[L.length-1];if(F&&(i==null||o||F.width+k+r<Number(i)))F.words.push(P),F.width+=k+r;else{var B={words:[P],width:k};L.push(B)}return L},[])},p=d(n),m=function(M){return M.reduce(function(L,I){return L.width>I.width?L:I})};if(!c)return p;for(var v="…",y=function(M){var L=f.slice(0,M),I=DA({breakAll:u,style:s,children:L+v}).wordsWithComputedWidth,P=d(I),k=P.length>a||m(P).width>Number(i);return[k,P]},h=0,g=f.length-1,x=0,E;h<=g&&x<=f.length-1;){var w=Math.floor((h+g)/2),S=w-1,O=y(S),$=fw(O,2),A=$[0],C=$[1],T=y(w),N=fw(T,1),R=N[0];if(!A&&!R&&(h=w+1),A&&R&&(g=w-1),!A&&R){E=C;break}x++}return E||p},pw=function(t){var n=oe(t)?[]:t.toString().split(LA);return[{words:n}]},_W=function(t){var n=t.width,r=t.scaleToFit,i=t.children,o=t.style,a=t.breakAll,l=t.maxLines;if((n||r)&&!Xr.isSsr){var s,u,c=DA({breakAll:a,children:i,style:o});if(c){var f=c.wordsWithComputedWidth,d=c.spaceWidth;s=f,u=d}else return pw(i);return wW({breakAll:a,children:i,maxLines:l,style:o},s,u,n,r)}return pw(i)},hw="#808080",Qo=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,m=t.verticalAnchor,v=m===void 0?"end":m,y=t.fill,h=y===void 0?hw:y,g=cw(t,hW),x=_.useMemo(function(){return _W({breakAll:g.breakAll,children:g.children,maxLines:g.maxLines,scaleToFit:f,style:g.style,width:g.width})},[g.breakAll,g.children,g.maxLines,f,g.style,g.width]),E=g.dx,w=g.dy,S=g.angle,O=g.className,$=g.breakAll,A=cw(g,mW);if(!Ye(r)||!Ye(o))return null;var C=r+(K(E)?E:0),T=o+(K(w)?w:0),N;switch(v){case"start":N=mh("calc(".concat(u,")"));break;case"middle":N=mh("calc(".concat((x.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:N=mh("calc(".concat(x.length-1," * -").concat(l,")"));break}var R=[];if(f){var D=x[0].width,M=g.width;R.push("scale(".concat((K(M)?M/D:1)/D,")"))}return S&&R.push("rotate(".concat(S,", ").concat(C,", ").concat(T,")")),R.length&&(A.transform=R.join(" ")),j.createElement("text",gv({},ee(A,!0),{x:C,y:T,className:se("recharts-text",O),textAnchor:p,fill:h.includes("url")?hw:h}),x.map(function(L,I){var P=L.words.join($?"":" ");return j.createElement("tspan",{x:C,dy:I===0?N:l,key:"".concat(P,"-").concat(I)},P)}))};function Yr(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function SW(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function p0(e){let t,n,r;e.length!==2?(t=Yr,n=(l,s)=>Yr(e(l),s),r=(l,s)=>e(l)-s):(t=e===Yr||e===SW?e:EW,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 EW(){return 0}function FA(e){return e===null?NaN:+e}function*OW(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const $W=p0(Yr),Qs=$W.right;p0(FA).center;class mw extends Map{constructor(t,n=TW){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(vw(this,t))}has(t){return super.has(vw(this,t))}set(t,n){return super.set(PW(this,t),n)}delete(t){return super.delete(AW(this,t))}}function vw({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function PW({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function AW({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function TW(e){return e!==null&&typeof e=="object"?e.valueOf():e}function jW(e=Yr){if(e===Yr)return BA;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 BA(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const CW=Math.sqrt(50),kW=Math.sqrt(10),NW=Math.sqrt(2);function af(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>=CW?10:o>=kW?5:o>=NW?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?af(e,t,n*2):[l,s,u]}function yv(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?af(t,e,n):af(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 xv(e,t,n){return t=+t,e=+e,n=+n,af(e,t,n)[2]}function bv(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?xv(t,e,n):xv(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function gw(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function yw(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function zA(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?BA:jW(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)),m=Math.min(r,Math.floor(t+(s-u)*f/s+d));zA(e,t,p,m,i)}const o=e[t];let a=n,l=r;for(el(e,n,t),i(e[r],o)>0&&el(e,n,r);a<l;){for(el(e,a,l),++a,--l;i(e[a],o)<0;)++a;for(;i(e[l],o)>0;)--l}i(e[n],o)===0?el(e,n,l):(++l,el(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function el(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function MW(e,t,n){if(e=Float64Array.from(OW(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return yw(e);if(t>=1)return gw(e);var r,i=(r-1)*t,o=Math.floor(i),a=gw(zA(e,o).subarray(0,o+1)),l=yw(e.subarray(o+1));return a+(l-a)*(i-o)}}function IW(e,t,n=FA){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 RW(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 pn(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function jr(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 wv=Symbol("implicit");function h0(){var e=new mw,t=[],n=[],r=wv;function i(o){let a=e.get(o);if(a===void 0){if(r!==wv)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 mw;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 h0(t,n).unknown(r)},pn.apply(i,arguments),i}function ls(){var e=h0().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,m=p?i:r,v=p?r:i;o=(v-m)/Math.max(1,d-s+u*2),l&&(o=Math.floor(o)),m+=(v-m-o*(d-s))*c,a=o*(1-s),l&&(m=Math.round(m),a=Math.round(a));var y=RW(d).map(function(h){return m+o*h});return n(p?y.reverse():y)}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 ls(t(),[r,i]).round(l).paddingInner(s).paddingOuter(u).align(c)},pn.apply(f(),arguments)}function UA(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return UA(t())},e}function Tl(){return UA(ls.apply(null,arguments).paddingInner(1))}function m0(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function HA(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Zs(){}var ss=.7,lf=1/ss,Ro="\\s*([+-]?\\d+)\\s*",us="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Bn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",LW=/^#([0-9a-f]{3,8})$/,DW=new RegExp(`^rgb\\(${Ro},${Ro},${Ro}\\)$`),FW=new RegExp(`^rgb\\(${Bn},${Bn},${Bn}\\)$`),BW=new RegExp(`^rgba\\(${Ro},${Ro},${Ro},${us}\\)$`),zW=new RegExp(`^rgba\\(${Bn},${Bn},${Bn},${us}\\)$`),UW=new RegExp(`^hsl\\(${us},${Bn},${Bn}\\)$`),HW=new RegExp(`^hsla\\(${us},${Bn},${Bn},${us}\\)$`),xw={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};m0(Zs,Hi,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:bw,formatHex:bw,formatHex8:WW,formatHsl:VW,formatRgb:ww,toString:ww});function bw(){return this.rgb().formatHex()}function WW(){return this.rgb().formatHex8()}function VW(){return WA(this).formatHsl()}function ww(){return this.rgb().formatRgb()}function Hi(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=LW.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?_w(t):n===3?new jt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Du(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Du(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=DW.exec(e))?new jt(t[1],t[2],t[3],1):(t=FW.exec(e))?new jt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=BW.exec(e))?Du(t[1],t[2],t[3],t[4]):(t=zW.exec(e))?Du(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=UW.exec(e))?Ow(t[1],t[2]/100,t[3]/100,1):(t=HW.exec(e))?Ow(t[1],t[2]/100,t[3]/100,t[4]):xw.hasOwnProperty(e)?_w(xw[e]):e==="transparent"?new jt(NaN,NaN,NaN,0):null}function _w(e){return new jt(e>>16&255,e>>8&255,e&255,1)}function Du(e,t,n,r){return r<=0&&(e=t=n=NaN),new jt(e,t,n,r)}function KW(e){return e instanceof Zs||(e=Hi(e)),e?(e=e.rgb(),new jt(e.r,e.g,e.b,e.opacity)):new jt}function _v(e,t,n,r){return arguments.length===1?KW(e):new jt(e,t,n,r??1)}function jt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}m0(jt,_v,HA(Zs,{brighter(e){return e=e==null?lf:Math.pow(lf,e),new jt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ss:Math.pow(ss,e),new jt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new jt(Mi(this.r),Mi(this.g),Mi(this.b),sf(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:Sw,formatHex:Sw,formatHex8:qW,formatRgb:Ew,toString:Ew}));function Sw(){return`#${Pi(this.r)}${Pi(this.g)}${Pi(this.b)}`}function qW(){return`#${Pi(this.r)}${Pi(this.g)}${Pi(this.b)}${Pi((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ew(){const e=sf(this.opacity);return`${e===1?"rgb(":"rgba("}${Mi(this.r)}, ${Mi(this.g)}, ${Mi(this.b)}${e===1?")":`, ${e})`}`}function sf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Mi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Pi(e){return e=Mi(e),(e<16?"0":"")+e.toString(16)}function Ow(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 WA(e){if(e instanceof wn)return new wn(e.h,e.s,e.l,e.opacity);if(e instanceof Zs||(e=Hi(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),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 wn(a,l,s,e.opacity)}function GW(e,t,n,r){return arguments.length===1?WA(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}m0(wn,GW,HA(Zs,{brighter(e){return e=e==null?lf:Math.pow(lf,e),new wn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ss:Math.pow(ss,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 jt(vh(e>=240?e-240:e+120,i,r),vh(e,i,r),vh(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new wn($w(this.h),Fu(this.s),Fu(this.l),sf(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=sf(this.opacity);return`${e===1?"hsl(":"hsla("}${$w(this.h)}, ${Fu(this.s)*100}%, ${Fu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function $w(e){return e=(e||0)%360,e<0?e+360:e}function Fu(e){return Math.max(0,Math.min(1,e||0))}function vh(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 v0=e=>()=>e;function XW(e,t){return function(n){return e+n*t}}function YW(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 QW(e){return(e=+e)==1?VA:function(t,n){return n-t?YW(t,n,e):v0(isNaN(t)?n:t)}}function VA(e,t){var n=t-e;return n?XW(e,n):v0(isNaN(e)?t:e)}const uf=function e(t){var n=QW(t);function r(i,o){var a=n((i=_v(i)).r,(o=_v(o)).r),l=n(i.g,o.g),s=n(i.b,o.b),u=VA(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 ZW(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 JW(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function e9(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]=Ma(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 t9(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function bn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function n9(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]=Ma(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Sv=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,gh=new RegExp(Sv.source,"g");function r9(e){return function(){return e}}function i9(e){return function(t){return e(t)+""}}function KA(e,t){var n=Sv.lastIndex=gh.lastIndex=0,r,i,o,a=-1,l=[],s=[];for(e=e+"",t=t+"";(r=Sv.exec(e))&&(i=gh.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:bn(r,i)})),n=gh.lastIndex;return n<t.length&&(o=t.slice(n),l[a]?l[a]+=o:l[++a]=o),l.length<2?s[0]?i9(s[0].x):r9(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 Ma(e,t){var n=typeof t,r;return t==null||n==="boolean"?v0(t):(n==="number"?bn:n==="string"?(r=Hi(t))?(t=r,uf):KA:t instanceof Hi?uf:t instanceof Date?t9:JW(t)?ZW:Array.isArray(t)?e9:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?n9:bn)(e,t)}function g0(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var Pw=180/Math.PI,Ev={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function qA(e,t,n,r,i,o){var a,l,s;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(s=e*n+t*r)&&(n-=e*s,r-=t*s),(l=Math.sqrt(n*n+r*r))&&(n/=l,r/=l,s/=l),e*r<t*n&&(e=-e,t=-t,s=-s,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*Pw,skewX:Math.atan(s)*Pw,scaleX:a,scaleY:l}}var Bu;function o9(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Ev:qA(t.a,t.b,t.c,t.d,t.e,t.f)}function a9(e){return e==null||(Bu||(Bu=document.createElementNS("http://www.w3.org/2000/svg","g")),Bu.setAttribute("transform",e),!(e=Bu.transform.baseVal.consolidate()))?Ev:(e=e.matrix,qA(e.a,e.b,e.c,e.d,e.e,e.f))}function GA(e,t,n,r){function i(u){return u.length?u.pop()+" ":""}function o(u,c,f,d,p,m){if(u!==f||c!==d){var v=p.push("translate(",null,t,null,n);m.push({i:v-4,x:bn(u,f)},{i:v-2,x:bn(c,d)})}else(f||d)&&p.push("translate("+f+t+d+n)}function a(u,c,f,d){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),d.push({i:f.push(i(f)+"rotate(",null,r)-2,x:bn(u,c)})):c&&f.push(i(f)+"rotate("+c+r)}function l(u,c,f,d){u!==c?d.push({i:f.push(i(f)+"skewX(",null,r)-2,x:bn(u,c)}):c&&f.push(i(f)+"skewX("+c+r)}function s(u,c,f,d,p,m){if(u!==f||c!==d){var v=p.push(i(p)+"scale(",null,",",null,")");m.push({i:v-4,x:bn(u,f)},{i:v-2,x:bn(c,d)})}else(f!==1||d!==1)&&p.push(i(p)+"scale("+f+","+d+")")}return function(u,c){var f=[],d=[];return u=e(u),c=e(c),o(u.translateX,u.translateY,c.translateX,c.translateY,f,d),a(u.rotate,c.rotate,f,d),l(u.skewX,c.skewX,f,d),s(u.scaleX,u.scaleY,c.scaleX,c.scaleY,f,d),u=c=null,function(p){for(var m=-1,v=d.length,y;++m<v;)f[(y=d[m]).i]=y.x(p);return f.join("")}}}var l9=GA(o9,"px, ","px)","deg)"),s9=GA(a9,", ",")",")");function u9(e,t){t===void 0&&(t=e,e=Ma);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 c9(e){return function(){return e}}function cf(e){return+e}var Aw=[0,1];function wt(e){return e}function Ov(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:c9(isNaN(t)?NaN:.5)}function f9(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function d9(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=Ov(i,r),o=n(a,o)):(r=Ov(r,i),o=n(o,a)),function(l){return o(r(l))}}function p9(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]=Ov(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(l){var s=Qs(e,l,1,r)-1;return o[s](i[s](l))}}function Js(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Kd(){var e=Aw,t=Aw,n=Ma,r,i,o,a=wt,l,s,u;function c(){var d=Math.min(e.length,t.length);return a!==wt&&(a=f9(e[0],e[d-1])),l=d>2?p9:d9,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),bn)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,cf),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=g0,c()},f.clamp=function(d){return arguments.length?(a=d?!0:wt,c()):a!==wt},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 y0(){return Kd()(wt,wt)}function h9(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ff(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 Zo(e){return e=ff(Math.abs(e)),e?e[1]:NaN}function m9(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 v9(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var g9=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function cs(e){if(!(t=g9.exec(e)))throw new Error("invalid format: "+e);var t;return new x0({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]})}cs.prototype=x0.prototype;function x0(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+""}x0.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 y9(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 XA;function x9(e,t){var n=ff(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(XA=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")+ff(e,Math.max(0,t+o-1))[0]}function Tw(e,t){var n=ff(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 jw={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:h9,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)=>Tw(e*100,t),r:Tw,s:x9,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Cw(e){return e}var kw=Array.prototype.map,Nw=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function b9(e){var t=e.grouping===void 0||e.thousands===void 0?Cw:m9(kw.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?Cw:v9(kw.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=cs(f);var d=f.fill,p=f.align,m=f.sign,v=f.symbol,y=f.zero,h=f.width,g=f.comma,x=f.precision,E=f.trim,w=f.type;w==="n"?(g=!0,w="g"):jw[w]||(x===void 0&&(x=12),E=!0,w="g"),(y||d==="0"&&p==="=")&&(y=!0,d="0",p="=");var S=v==="$"?n:v==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",O=v==="$"?r:/[%p]/.test(w)?a:"",$=jw[w],A=/[defgprs%]/.test(w);x=x===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function C(T){var N=S,R=O,D,M,L;if(w==="c")R=$(T)+R,T="";else{T=+T;var I=T<0||1/T<0;if(T=isNaN(T)?s:$(Math.abs(T),x),E&&(T=y9(T)),I&&+T==0&&m!=="+"&&(I=!1),N=(I?m==="("?m:l:m==="-"||m==="("?"":m)+N,R=(w==="s"?Nw[8+XA/3]:"")+R+(I&&m==="("?")":""),A){for(D=-1,M=T.length;++D<M;)if(L=T.charCodeAt(D),48>L||L>57){R=(L===46?i+T.slice(D+1):T.slice(D))+R,T=T.slice(0,D);break}}}g&&!y&&(T=t(T,1/0));var P=N.length+T.length+R.length,k=P<h?new Array(h-P+1).join(d):"";switch(g&&y&&(T=t(k+T,k.length?h-R.length:1/0),k=""),p){case"<":T=N+T+R+k;break;case"=":T=N+k+T+R;break;case"^":T=k.slice(0,P=k.length>>1)+N+T+R+k.slice(P);break;default:T=k+N+T+R;break}return o(T)}return C.toString=function(){return f+""},C}function c(f,d){var p=u((f=cs(f),f.type="f",f)),m=Math.max(-8,Math.min(8,Math.floor(Zo(d)/3)))*3,v=Math.pow(10,-m),y=Nw[8+m/3];return function(h){return p(v*h)+y}}return{format:u,formatPrefix:c}}var zu,b0,YA;w9({thousands:",",grouping:[3],currency:["$",""]});function w9(e){return zu=b9(e),b0=zu.format,YA=zu.formatPrefix,zu}function _9(e){return Math.max(0,-Zo(Math.abs(e)))}function S9(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Zo(t)/3)))*3-Zo(Math.abs(e)))}function E9(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Zo(t)-Zo(e))+1}function QA(e,t,n,r){var i=bv(e,t,n),o;switch(r=cs(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=S9(i,a))&&(r.precision=o),YA(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=E9(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=_9(i))&&(r.precision=o-(r.type==="%")*2);break}}return b0(r)}function li(e){var t=e.domain;return e.ticks=function(n){var r=t();return yv(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return QA(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=xv(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 df(){var e=y0();return e.copy=function(){return Js(e,df())},pn.apply(e,arguments),li(e)}function ZA(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,cf),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return ZA(e).unknown(t)},e=arguments.length?Array.from(e,cf):[0,1],li(n)}function JA(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 Iw(e){return Math.exp(e)}function O9(e){return-Math.log(-e)}function $9(e){return-Math.exp(-e)}function P9(e){return isFinite(e)?+("1e"+e):e<0?0:e}function A9(e){return e===10?P9:e===Math.E?Math.exp:t=>Math.pow(e,t)}function T9(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 Rw(e){return(t,n)=>-e(-t,n)}function w0(e){const t=e(Mw,Iw),n=t.domain;let r=10,i,o;function a(){return i=T9(r),o=A9(r),n()[0]<0?(i=Rw(i),o=Rw(o),e(O9,$9)):e(Mw,Iw),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),m,v;const y=l==null?10:+l;let h=[];if(!(r%1)&&p-d<y){if(d=Math.floor(d),p=Math.ceil(p),u>0){for(;d<=p;++d)for(m=1;m<r;++m)if(v=d<0?m/o(-d):m*o(d),!(v<u)){if(v>c)break;h.push(v)}}else for(;d<=p;++d)for(m=r-1;m>=1;--m)if(v=d>0?m/o(-d):m*o(d),!(v<u)){if(v>c)break;h.push(v)}h.length*2<y&&(h=yv(u,c,y))}else h=yv(d,p,Math.min(p-d,y)).map(o);return f?h.reverse():h},t.tickFormat=(l,s)=>{if(l==null&&(l=10),s==null&&(s=r===10?"s":","),typeof s!="function"&&(!(r%1)&&(s=cs(s)).precision==null&&(s.trim=!0),s=b0(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(JA(n(),{floor:l=>o(Math.floor(i(l))),ceil:l=>o(Math.ceil(i(l)))})),t}function eT(){const e=w0(Kd()).domain([1,10]);return e.copy=()=>Js(e,eT()).base(e.base()),pn.apply(e,arguments),e}function Lw(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Dw(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function _0(e){var t=1,n=e(Lw(t),Dw(t));return n.constant=function(r){return arguments.length?e(Lw(t=+r),Dw(t)):t},li(n)}function tT(){var e=_0(Kd());return e.copy=function(){return Js(e,tT()).constant(e.constant())},pn.apply(e,arguments)}function Fw(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function j9(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function C9(e){return e<0?-e*e:e*e}function S0(e){var t=e(wt,wt),n=1;function r(){return n===1?e(wt,wt):n===.5?e(j9,C9):e(Fw(n),Fw(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},li(t)}function E0(){var e=S0(Kd());return e.copy=function(){return Js(e,E0()).exponent(e.exponent())},pn.apply(e,arguments),e}function k9(){return E0.apply(null,arguments).exponent(.5)}function Bw(e){return Math.sign(e)*e*e}function N9(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function nT(){var e=y0(),t=[0,1],n=!1,r;function i(o){var a=N9(e(o));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(o){return e.invert(Bw(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,cf)).map(Bw)),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 nT(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},pn.apply(i,arguments),li(i)}function rT(){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]=IW(e,a/l);return o}function o(a){return a==null||isNaN(a=+a)?r:t[Qs(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(Yr),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 rT().domain(e).range(t).unknown(r)},pn.apply(o,arguments)}function iT(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function a(s){return s!=null&&s<=s?i[Qs(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 iT().domain([e,t]).range(i).unknown(o)},pn.apply(li(a),arguments)}function oT(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[Qs(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 oT().domain(e).range(t).unknown(n)},pn.apply(i,arguments)}const yh=new Date,xh=new Date;function Qe(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=>Qe(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)=>(yh.setTime(+o),xh.setTime(+a),e(yh),e(xh),Math.floor(n(yh,xh))),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 pf=Qe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);pf.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Qe(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):pf);pf.range;const lr=1e3,on=lr*60,sr=on*60,_r=sr*24,O0=_r*7,zw=_r*30,bh=_r*365,Ai=Qe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*lr)},(e,t)=>(t-e)/lr,e=>e.getUTCSeconds());Ai.range;const $0=Qe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*lr)},(e,t)=>{e.setTime(+e+t*on)},(e,t)=>(t-e)/on,e=>e.getMinutes());$0.range;const P0=Qe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*on)},(e,t)=>(t-e)/on,e=>e.getUTCMinutes());P0.range;const A0=Qe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*lr-e.getMinutes()*on)},(e,t)=>{e.setTime(+e+t*sr)},(e,t)=>(t-e)/sr,e=>e.getHours());A0.range;const T0=Qe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*sr)},(e,t)=>(t-e)/sr,e=>e.getUTCHours());T0.range;const eu=Qe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*on)/_r,e=>e.getDate()-1);eu.range;const qd=Qe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/_r,e=>e.getUTCDate()-1);qd.range;const aT=Qe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/_r,e=>Math.floor(e/_r));aT.range;function to(e){return Qe(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())*on)/O0)}const Gd=to(0),hf=to(1),M9=to(2),I9=to(3),Jo=to(4),R9=to(5),L9=to(6);Gd.range;hf.range;M9.range;I9.range;Jo.range;R9.range;L9.range;function no(e){return Qe(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)/O0)}const Xd=no(0),mf=no(1),D9=no(2),F9=no(3),ea=no(4),B9=no(5),z9=no(6);Xd.range;mf.range;D9.range;F9.range;ea.range;B9.range;z9.range;const j0=Qe(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());j0.range;const C0=Qe(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());C0.range;const Sr=Qe(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());Sr.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Qe(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)});Sr.range;const Er=Qe(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());Er.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Qe(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)});Er.range;function lT(e,t,n,r,i,o){const a=[[Ai,1,lr],[Ai,5,5*lr],[Ai,15,15*lr],[Ai,30,30*lr],[o,1,on],[o,5,5*on],[o,15,15*on],[o,30,30*on],[i,1,sr],[i,3,3*sr],[i,6,6*sr],[i,12,12*sr],[r,1,_r],[r,2,2*_r],[n,1,O0],[t,1,zw],[t,3,3*zw],[e,1,bh]];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),m=p?p.range(u,+c+1):[];return d?m.reverse():m}function s(u,c,f){const d=Math.abs(c-u)/f,p=p0(([,,y])=>y).right(a,d);if(p===a.length)return e.every(bv(u/bh,c/bh,f));if(p===0)return pf.every(Math.max(bv(u,c,f),1));const[m,v]=a[d/a[p-1][2]<a[p][2]/d?p-1:p];return m.every(v)}return[l,s]}const[U9,H9]=lT(Er,C0,Xd,aT,T0,P0),[W9,V9]=lT(Sr,j0,Gd,eu,A0,$0);function wh(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 _h(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 tl(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function K9(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=nl(i),c=rl(i),f=nl(o),d=rl(o),p=nl(a),m=rl(a),v=nl(l),y=rl(l),h=nl(s),g=rl(s),x={a:I,A:P,b:k,B:F,c:null,d:qw,e:qw,f:mV,g:OV,G:PV,H:dV,I:pV,j:hV,L:sT,m:vV,M:gV,p:B,q:U,Q:Yw,s:Qw,S:yV,u:xV,U:bV,V:wV,w:_V,W:SV,x:null,X:null,y:EV,Y:$V,Z:AV,"%":Xw},E={a:X,A:ne,b:ae,B:te,c:null,d:Gw,e:Gw,f:kV,g:UV,G:WV,H:TV,I:jV,j:CV,L:cT,m:NV,M:MV,p:ze,q:Ue,Q:Yw,s:Qw,S:IV,u:RV,U:LV,V:DV,w:FV,W:BV,x:null,X:null,y:zV,Y:HV,Z:VV,"%":Xw},w={a:C,A:T,b:N,B:R,c:D,d:Vw,e:Vw,f:sV,g:Ww,G:Hw,H:Kw,I:Kw,j:iV,L:lV,m:rV,M:oV,p:A,q:nV,Q:cV,s:fV,S:aV,u:Q9,U:Z9,V:J9,w:Y9,W:eV,x:M,X:L,y:Ww,Y:Hw,Z:tV,"%":uV};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(V,Q){return function(Z){var H=[],Ae=-1,ie=0,Fe=V.length,Ve,$t,Cr;for(Z instanceof Date||(Z=new Date(+Z));++Ae<Fe;)V.charCodeAt(Ae)===37&&(H.push(V.slice(ie,Ae)),($t=Uw[Ve=V.charAt(++Ae)])!=null?Ve=V.charAt(++Ae):$t=Ve==="e"?" ":"0",(Cr=Q[Ve])&&(Ve=Cr(Z,$t)),H.push(Ve),ie=Ae+1);return H.push(V.slice(ie,Ae)),H.join("")}}function O(V,Q){return function(Z){var H=tl(1900,void 0,1),Ae=$(H,V,Z+="",0),ie,Fe;if(Ae!=Z.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(Q&&!("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?(ie=_h(tl(H.y,0,1)),Fe=ie.getUTCDay(),ie=Fe>4||Fe===0?mf.ceil(ie):mf(ie),ie=qd.offset(ie,(H.V-1)*7),H.y=ie.getUTCFullYear(),H.m=ie.getUTCMonth(),H.d=ie.getUTCDate()+(H.w+6)%7):(ie=wh(tl(H.y,0,1)),Fe=ie.getDay(),ie=Fe>4||Fe===0?hf.ceil(ie):hf(ie),ie=eu.offset(ie,(H.V-1)*7),H.y=ie.getFullYear(),H.m=ie.getMonth(),H.d=ie.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),Fe="Z"in H?_h(tl(H.y,0,1)).getUTCDay():wh(tl(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(Fe+5)%7:H.w+H.U*7-(Fe+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,_h(H)):wh(H)}}function $(V,Q,Z,H){for(var Ae=0,ie=Q.length,Fe=Z.length,Ve,$t;Ae<ie;){if(H>=Fe)return-1;if(Ve=Q.charCodeAt(Ae++),Ve===37){if(Ve=Q.charAt(Ae++),$t=w[Ve in Uw?Q.charAt(Ae++):Ve],!$t||(H=$t(V,Z,H))<0)return-1}else if(Ve!=Z.charCodeAt(H++))return-1}return H}function A(V,Q,Z){var H=u.exec(Q.slice(Z));return H?(V.p=c.get(H[0].toLowerCase()),Z+H[0].length):-1}function C(V,Q,Z){var H=p.exec(Q.slice(Z));return H?(V.w=m.get(H[0].toLowerCase()),Z+H[0].length):-1}function T(V,Q,Z){var H=f.exec(Q.slice(Z));return H?(V.w=d.get(H[0].toLowerCase()),Z+H[0].length):-1}function N(V,Q,Z){var H=h.exec(Q.slice(Z));return H?(V.m=g.get(H[0].toLowerCase()),Z+H[0].length):-1}function R(V,Q,Z){var H=v.exec(Q.slice(Z));return H?(V.m=y.get(H[0].toLowerCase()),Z+H[0].length):-1}function D(V,Q,Z){return $(V,t,Q,Z)}function M(V,Q,Z){return $(V,n,Q,Z)}function L(V,Q,Z){return $(V,r,Q,Z)}function I(V){return a[V.getDay()]}function P(V){return o[V.getDay()]}function k(V){return s[V.getMonth()]}function F(V){return l[V.getMonth()]}function B(V){return i[+(V.getHours()>=12)]}function U(V){return 1+~~(V.getMonth()/3)}function X(V){return a[V.getUTCDay()]}function ne(V){return o[V.getUTCDay()]}function ae(V){return s[V.getUTCMonth()]}function te(V){return l[V.getUTCMonth()]}function ze(V){return i[+(V.getUTCHours()>=12)]}function Ue(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var Q=S(V+="",x);return Q.toString=function(){return V},Q},parse:function(V){var Q=O(V+="",!1);return Q.toString=function(){return V},Q},utcFormat:function(V){var Q=S(V+="",E);return Q.toString=function(){return V},Q},utcParse:function(V){var Q=O(V+="",!0);return Q.toString=function(){return V},Q}}}var Uw={"-":"",_:" ",0:"0"},nt=/^\s*\d+/,q9=/^%/,G9=/[\\^$*+?|[\]().{}]/g;function ue(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 X9(e){return e.replace(G9,"\\$&")}function nl(e){return new RegExp("^(?:"+e.map(X9).join("|")+")","i")}function rl(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Y9(e,t,n){var r=nt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Q9(e,t,n){var r=nt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Z9(e,t,n){var r=nt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function J9(e,t,n){var r=nt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function eV(e,t,n){var r=nt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Hw(e,t,n){var r=nt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Ww(e,t,n){var r=nt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function tV(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 nV(e,t,n){var r=nt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function rV(e,t,n){var r=nt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Vw(e,t,n){var r=nt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function iV(e,t,n){var r=nt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Kw(e,t,n){var r=nt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function oV(e,t,n){var r=nt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function aV(e,t,n){var r=nt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function lV(e,t,n){var r=nt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function sV(e,t,n){var r=nt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function uV(e,t,n){var r=q9.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function cV(e,t,n){var r=nt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function fV(e,t,n){var r=nt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function qw(e,t){return ue(e.getDate(),t,2)}function dV(e,t){return ue(e.getHours(),t,2)}function pV(e,t){return ue(e.getHours()%12||12,t,2)}function hV(e,t){return ue(1+eu.count(Sr(e),e),t,3)}function sT(e,t){return ue(e.getMilliseconds(),t,3)}function mV(e,t){return sT(e,t)+"000"}function vV(e,t){return ue(e.getMonth()+1,t,2)}function gV(e,t){return ue(e.getMinutes(),t,2)}function yV(e,t){return ue(e.getSeconds(),t,2)}function xV(e){var t=e.getDay();return t===0?7:t}function bV(e,t){return ue(Gd.count(Sr(e)-1,e),t,2)}function uT(e){var t=e.getDay();return t>=4||t===0?Jo(e):Jo.ceil(e)}function wV(e,t){return e=uT(e),ue(Jo.count(Sr(e),e)+(Sr(e).getDay()===4),t,2)}function _V(e){return e.getDay()}function SV(e,t){return ue(hf.count(Sr(e)-1,e),t,2)}function EV(e,t){return ue(e.getFullYear()%100,t,2)}function OV(e,t){return e=uT(e),ue(e.getFullYear()%100,t,2)}function $V(e,t){return ue(e.getFullYear()%1e4,t,4)}function PV(e,t){var n=e.getDay();return e=n>=4||n===0?Jo(e):Jo.ceil(e),ue(e.getFullYear()%1e4,t,4)}function AV(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ue(t/60|0,"0",2)+ue(t%60,"0",2)}function Gw(e,t){return ue(e.getUTCDate(),t,2)}function TV(e,t){return ue(e.getUTCHours(),t,2)}function jV(e,t){return ue(e.getUTCHours()%12||12,t,2)}function CV(e,t){return ue(1+qd.count(Er(e),e),t,3)}function cT(e,t){return ue(e.getUTCMilliseconds(),t,3)}function kV(e,t){return cT(e,t)+"000"}function NV(e,t){return ue(e.getUTCMonth()+1,t,2)}function MV(e,t){return ue(e.getUTCMinutes(),t,2)}function IV(e,t){return ue(e.getUTCSeconds(),t,2)}function RV(e){var t=e.getUTCDay();return t===0?7:t}function LV(e,t){return ue(Xd.count(Er(e)-1,e),t,2)}function fT(e){var t=e.getUTCDay();return t>=4||t===0?ea(e):ea.ceil(e)}function DV(e,t){return e=fT(e),ue(ea.count(Er(e),e)+(Er(e).getUTCDay()===4),t,2)}function FV(e){return e.getUTCDay()}function BV(e,t){return ue(mf.count(Er(e)-1,e),t,2)}function zV(e,t){return ue(e.getUTCFullYear()%100,t,2)}function UV(e,t){return e=fT(e),ue(e.getUTCFullYear()%100,t,2)}function HV(e,t){return ue(e.getUTCFullYear()%1e4,t,4)}function WV(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ea(e):ea.ceil(e),ue(e.getUTCFullYear()%1e4,t,4)}function VV(){return"+0000"}function Xw(){return"%"}function Yw(e){return+e}function Qw(e){return Math.floor(+e/1e3)}var uo,dT,pT;KV({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 KV(e){return uo=K9(e),dT=uo.format,uo.parse,pT=uo.utcFormat,uo.utcParse,uo}function qV(e){return new Date(e)}function GV(e){return e instanceof Date?+e:+new Date(+e)}function k0(e,t,n,r,i,o,a,l,s,u){var c=y0(),f=c.invert,d=c.domain,p=u(".%L"),m=u(":%S"),v=u("%I:%M"),y=u("%I %p"),h=u("%a %d"),g=u("%b %d"),x=u("%B"),E=u("%Y");function w(S){return(s(S)<S?p:l(S)<S?m:a(S)<S?v:o(S)<S?y:r(S)<S?i(S)<S?h:g: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,GV)):d().map(qV)},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?w: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(JA(O,S)):c},c.copy=function(){return Js(c,k0(e,t,n,r,i,o,a,l,s,u))},c}function XV(){return pn.apply(k0(W9,V9,Sr,j0,Gd,eu,A0,$0,Ai,dT).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function YV(){return pn.apply(k0(U9,H9,Er,C0,Xd,qd,T0,P0,Ai,pT).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Yd(){var e=0,t=1,n,r,i,o,a=wt,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,m;return arguments.length?([p,m]=d,a=f(p,m),u):[a(0),a(1)]}}return u.range=c(Ma),u.rangeRound=c(g0),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 si(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function hT(){var e=li(Yd()(wt));return e.copy=function(){return si(e,hT())},jr.apply(e,arguments)}function mT(){var e=w0(Yd()).domain([1,10]);return e.copy=function(){return si(e,mT()).base(e.base())},jr.apply(e,arguments)}function vT(){var e=_0(Yd());return e.copy=function(){return si(e,vT()).constant(e.constant())},jr.apply(e,arguments)}function N0(){var e=S0(Yd());return e.copy=function(){return si(e,N0()).exponent(e.exponent())},jr.apply(e,arguments)}function QV(){return N0.apply(null,arguments).exponent(.5)}function gT(){var e=[],t=wt;function n(r){if(r!=null&&!isNaN(r=+r))return t((Qs(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(Yr),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)=>MW(e,o/r))},n.copy=function(){return gT(t).domain(e)},jr.apply(n,arguments)}function Qd(){var e=0,t=.5,n=1,r=1,i,o,a,l,s,u=wt,c,f=!1,d;function p(v){return isNaN(v=+v)?d:(v=.5+((v=+c(v))-o)*(r*v<r*o?l:s),u(f?Math.max(0,Math.min(1,v)):v))}p.domain=function(v){return arguments.length?([e,t,n]=v,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(v){return arguments.length?(f=!!v,p):f},p.interpolator=function(v){return arguments.length?(u=v,p):u};function m(v){return function(y){var h,g,x;return arguments.length?([h,g,x]=y,u=u9(v,[h,g,x]),p):[u(0),u(.5),u(1)]}}return p.range=m(Ma),p.rangeRound=m(g0),p.unknown=function(v){return arguments.length?(d=v,p):d},function(v){return c=v,i=v(e),o=v(t),a=v(n),l=i===o?0:.5/(o-i),s=o===a?0:.5/(a-o),r=o<i?-1:1,p}}function yT(){var e=li(Qd()(wt));return e.copy=function(){return si(e,yT())},jr.apply(e,arguments)}function xT(){var e=w0(Qd()).domain([.1,1,10]);return e.copy=function(){return si(e,xT()).base(e.base())},jr.apply(e,arguments)}function bT(){var e=_0(Qd());return e.copy=function(){return si(e,bT()).constant(e.constant())},jr.apply(e,arguments)}function M0(){var e=S0(Qd());return e.copy=function(){return si(e,M0()).exponent(e.exponent())},jr.apply(e,arguments)}function ZV(){return M0.apply(null,arguments).exponent(.5)}const Zw=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:ls,scaleDiverging:yT,scaleDivergingLog:xT,scaleDivergingPow:M0,scaleDivergingSqrt:ZV,scaleDivergingSymlog:bT,scaleIdentity:ZA,scaleImplicit:wv,scaleLinear:df,scaleLog:eT,scaleOrdinal:h0,scalePoint:Tl,scalePow:E0,scaleQuantile:rT,scaleQuantize:iT,scaleRadial:nT,scaleSequential:hT,scaleSequentialLog:mT,scaleSequentialPow:N0,scaleSequentialQuantile:gT,scaleSequentialSqrt:QV,scaleSequentialSymlog:vT,scaleSqrt:k9,scaleSymlog:tT,scaleThreshold:oT,scaleTime:XV,scaleUtc:YV,tickFormat:QA},Symbol.toStringTag,{value:"Module"}));var JV=Ea;function eK(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&&!JV(a):n(a,l)))var l=a,s=o}return s}var Zd=eK;function tK(e,t){return e>t}var wT=tK,nK=Zd,rK=wT,iK=ka;function oK(e){return e&&e.length?nK(e,iK,rK):void 0}var aK=oK;const Jd=he(aK);function lK(e,t){return e<t}var _T=lK,sK=Zd,uK=_T,cK=ka;function fK(e){return e&&e.length?sK(e,cK,uK):void 0}var dK=fK;const ep=he(dK);var pK=Ed,hK=ai,mK=OA,vK=Ot;function gK(e,t){var n=vK(e)?pK:mK;return n(e,hK(t))}var yK=gK,xK=s0,bK=yK;function wK(e,t){return xK(bK(e,t),1)}var _K=wK;const SK=he(_K);var EK=l0;function OK(e,t){return EK(e,t)}var $K=OK;const tp=he($K);var Ia=1e9,PK={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},R0,je=!0,cn="[DecimalError] ",Ii=cn+"Invalid argument: ",I0=cn+"Exponent out of range: ",Ra=Math.floor,bi=Math.pow,AK=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Lt,Ze=1e7,Oe=7,ST=9007199254740991,vf=Ra(ST/Oe),G={};G.absoluteValue=G.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};G.comparedTo=G.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};G.decimalPlaces=G.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Oe;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};G.dividedBy=G.div=function(e){return hr(this,new this.constructor(e))};G.dividedToIntegerBy=G.idiv=function(e){var t=this,n=t.constructor;return ge(hr(t,new n(e),0,1),n.precision)};G.equals=G.eq=function(e){return!this.cmp(e)};G.exponent=function(){return We(this)};G.greaterThan=G.gt=function(e){return this.cmp(e)>0};G.greaterThanOrEqualTo=G.gte=function(e){return this.cmp(e)>=0};G.isInteger=G.isint=function(){return this.e>this.d.length-2};G.isNegative=G.isneg=function(){return this.s<0};G.isPositive=G.ispos=function(){return this.s>0};G.isZero=function(){return this.s===0};G.lessThan=G.lt=function(e){return this.cmp(e)<0};G.lessThanOrEqualTo=G.lte=function(e){return this.cmp(e)<1};G.logarithm=G.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(Lt))throw Error(cn+"NaN");if(n.s<1)throw Error(cn+(n.s?"NaN":"-Infinity"));return n.eq(Lt)?new r(0):(je=!1,t=hr(fs(n,o),fs(e,o),o),je=!0,ge(t,i))};G.minus=G.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?$T(t,e):ET(t,(e.s=-e.s,e))};G.modulo=G.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(cn+"NaN");return n.s?(je=!1,t=hr(n,e,0,1).times(e),je=!0,n.minus(t)):ge(new r(n),i)};G.naturalExponential=G.exp=function(){return OT(this)};G.naturalLogarithm=G.ln=function(){return fs(this)};G.negated=G.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};G.plus=G.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?ET(t,e):$T(t,(e.s=-e.s,e))};G.precision=G.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Ii+e);if(t=We(i)+1,r=i.d.length-1,n=r*Oe+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};G.squareRoot=G.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(cn+"NaN")}for(e=We(l),je=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=Ln(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Ra((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(hr(l,o,a+2)).times(.5),Ln(o.d).slice(0,a)===(t=Ln(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(ge(o,n+1,0),o.times(o).eq(l)){r=o;break}}else if(t!="9999")break;a+=4}return je=!0,ge(r,n)};G.times=G.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%Ze|0,t=l/Ze|0;o[i]=(o[i]+t)%Ze|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,je?ge(e,f.precision):e};G.toDecimalPlaces=G.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Vn(e,0,Ia),t===void 0?t=r.rounding:Vn(t,0,8),ge(n,e+We(n)+1,t))};G.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=Wi(r,!0):(Vn(e,0,Ia),t===void 0?t=i.rounding:Vn(t,0,8),r=ge(new i(r),e+1,t),n=Wi(r,!0,e+1)),n};G.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?Wi(i):(Vn(e,0,Ia),t===void 0?t=o.rounding:Vn(t,0,8),r=ge(new o(i),e+We(i)+1,t),n=Wi(r.abs(),!1,e+We(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};G.toInteger=G.toint=function(){var e=this,t=e.constructor;return ge(new t(e),We(e)+1,t.rounding)};G.toNumber=function(){return+this};G.toPower=G.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(Lt);if(l=new s(l),!l.s){if(e.s<1)throw Error(cn+"Infinity");return l}if(l.eq(Lt))return l;if(r=s.precision,e.eq(Lt))return ge(l,r);if(t=e.e,n=e.d.length-1,a=t>=n,o=l.s,a){if((n=c<0?-c:c)<=ST){for(i=new s(Lt),t=Math.ceil(r/Oe+4),je=!1;n%2&&(i=i.times(l),e_(i.d,t)),n=Ra(n/2),n!==0;)l=l.times(l),e_(l.d,t);return je=!0,e.s<0?new s(Lt).div(i):ge(i,r)}}else if(o<0)throw Error(cn+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,je=!1,i=e.times(fs(l,r+u)),je=!0,i=OT(i),i.s=o,i};G.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=We(i),r=Wi(i,n<=o.toExpNeg||n>=o.toExpPos)):(Vn(e,1,Ia),t===void 0?t=o.rounding:Vn(t,0,8),i=ge(new o(i),e,t),n=We(i),r=Wi(i,e<=n||n<=o.toExpNeg,e)),r};G.toSignificantDigits=G.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Vn(e,1,Ia),t===void 0?t=r.rounding:Vn(t,0,8)),ge(new r(n),e,t)};G.toString=G.valueOf=G.val=G.toJSON=G[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=We(e),n=e.constructor;return Wi(e,t<=n.toExpNeg||t>=n.toExpPos)};function ET(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)),je?ge(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/Oe),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)/Ze|0,s[o]%=Ze;for(n&&(s.unshift(n),++i),l=s.length;s[--l]==0;)s.pop();return t.d=s,t.e=i,je?ge(t,f):t}function Vn(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Ii+e)}function Ln(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=Oe-r.length,n&&(o+=Ir(n)),o+=r;a=e[t],r=a+"",n=Oe-r.length,n&&(o+=Ir(n))}else if(a===0)return"0";for(;a%10===0;)a/=10;return o+a}var hr=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%Ze|0,a=o/Ze|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*Ze+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,m,v,y,h,g,x,E,w,S,O,$,A=r.constructor,C=r.s==i.s?1:-1,T=r.d,N=i.d;if(!r.s)return new A(r);if(!i.s)throw Error(cn+"Division by zero");for(s=r.e-i.e,O=N.length,w=T.length,p=new A(C),m=p.d=[],u=0;N[u]==(T[u]||0);)++u;if(N[u]>(T[u]||0)&&--s,o==null?g=o=A.precision:a?g=o+(We(r)-We(i))+1:g=o,g<0)return new A(0);if(g=g/Oe+2|0,u=0,O==1)for(c=0,N=N[0],g++;(u<w||c)&&g--;u++)x=c*Ze+(T[u]||0),m[u]=x/N|0,c=x%N|0;else{for(c=Ze/(N[0]+1)|0,c>1&&(N=e(N,c),T=e(T,c),O=N.length,w=T.length),E=O,v=T.slice(0,O),y=v.length;y<O;)v[y++]=0;$=N.slice(),$.unshift(0),S=N[0],N[1]>=Ze/2&&++S;do c=0,l=t(N,v,O,y),l<0?(h=v[0],O!=y&&(h=h*Ze+(v[1]||0)),c=h/S|0,c>1?(c>=Ze&&(c=Ze-1),f=e(N,c),d=f.length,y=v.length,l=t(f,v,d,y),l==1&&(c--,n(f,O<d?$:N,d))):(c==0&&(l=c=1),f=N.slice()),d=f.length,d<y&&f.unshift(0),n(v,f,y),l==-1&&(y=v.length,l=t(N,v,O,y),l<1&&(c++,n(v,O<y?$:N,y))),y=v.length):l===0&&(c++,v=[0]),m[u++]=c,l&&v[0]?v[y++]=T[E]||0:(v=[T[E]],y=1);while((E++<w||v[0]!==void 0)&&g--)}return m[0]||m.shift(),p.e=s,ge(p,a?o+We(p)+1:o)}}();function OT(e,t){var n,r,i,o,a,l,s=0,u=0,c=e.constructor,f=c.precision;if(We(e)>16)throw Error(I0+We(e));if(!e.s)return new c(Lt);for(t==null?(je=!1,l=f):l=t,a=new c(.03125);e.abs().gte(.1);)e=e.times(a),u+=5;for(r=Math.log(bi(2,u))/Math.LN10*2+5|0,l+=r,n=i=o=new c(Lt),c.precision=l;;){if(i=ge(i.times(e),l),n=n.times(++s),a=o.plus(hr(i,n,l)),Ln(a.d).slice(0,l)===Ln(o.d).slice(0,l)){for(;u--;)o=ge(o.times(o),l);return c.precision=f,t==null?(je=!0,ge(o,f)):o}o=a}}function We(e){for(var t=e.e*Oe,n=e.d[0];n>=10;n/=10)t++;return t}function Sh(e,t,n){if(t>e.LN10.sd())throw je=!0,n&&(e.precision=n),Error(cn+"LN10 precision limit exceeded");return ge(new e(e.LN10),t)}function Ir(e){for(var t="";e--;)t+="0";return t}function fs(e,t){var n,r,i,o,a,l,s,u,c,f=1,d=10,p=e,m=p.d,v=p.constructor,y=v.precision;if(p.s<1)throw Error(cn+(p.s?"NaN":"-Infinity"));if(p.eq(Lt))return new v(0);if(t==null?(je=!1,u=y):u=t,p.eq(10))return t==null&&(je=!0),Sh(v,u);if(u+=d,v.precision=u,n=Ln(m),r=n.charAt(0),o=We(p),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=Ln(p.d),r=n.charAt(0),f++;o=We(p),r>1?(p=new v("0."+n),o++):p=new v(r+"."+n.slice(1))}else return s=Sh(v,u+2,y).times(o+""),p=fs(new v(r+"."+n.slice(1)),u-d).plus(s),v.precision=y,t==null?(je=!0,ge(p,y)):p;for(l=a=p=hr(p.minus(Lt),p.plus(Lt),u),c=ge(p.times(p),u),i=3;;){if(a=ge(a.times(c),u),s=l.plus(hr(a,new v(i),u)),Ln(s.d).slice(0,u)===Ln(l.d).slice(0,u))return l=l.times(2),o!==0&&(l=l.plus(Sh(v,u+2,y).times(o+""))),l=hr(l,new v(f),u),v.precision=y,t==null?(je=!0,ge(l,y)):l;l=s,i+=2}}function Jw(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=Ra(n/Oe),e.d=[],r=(n+1)%Oe,n<0&&(r+=Oe),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=Oe;r<i;)e.d.push(+t.slice(r,r+=Oe));t=t.slice(r),r=Oe-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),je&&(e.e>vf||e.e<-vf))throw Error(I0+n)}else e.s=0,e.e=0,e.d=[0];return e}function ge(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+=Oe,i=t,u=f[c=0];else{if(c=Math.ceil((r+1)/Oe),o=f.length,c>=o)return e;for(u=o=f[c],a=1;o>=10;o/=10)a++;r%=Oe,i=r-Oe+a}if(n!==void 0&&(o=bi(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/bi(10,a-i):0:f[c-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return s?(o=We(e),f.length=1,t=t-o-1,f[0]=bi(10,(Oe-t%Oe)%Oe),e.e=Ra(-t/Oe)||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=bi(10,Oe-r),f[c]=i>0?(u/bi(10,a-i)%bi(10,i)|0)*o:0),s)for(;;)if(c==0){(f[0]+=o)==Ze&&(f[0]=1,++e.e);break}else{if(f[c]+=o,f[c]!=Ze)break;f[c--]=0,o=1}for(r=f.length;f[--r]===0;)f.pop();if(je&&(e.e>vf||e.e<-vf))throw Error(I0+We(e));return e}function $T(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),je?ge(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/Oe),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]=Ze-1;--s[o],s[i]+=Ze}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,je?ge(t,p):t):new d(0)}function Wi(e,t,n){var r,i=We(e),o=Ln(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+Ir(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+Ir(-i-1)+o,n&&(r=n-a)>0&&(o+=Ir(r))):i>=a?(o+=Ir(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+Ir(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=Ir(r))),e.s<0?"-"+o:o}function e_(e,t){if(e.length>t)return e.length=t,!0}function PT(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(Ii+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 Jw(a,o.toString())}else if(typeof o!="string")throw Error(Ii+o);if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,AK.test(o))Jw(a,o);else throw Error(Ii+o)}if(i.prototype=G,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=PT,i.config=i.set=TK,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 TK(e){if(!e||typeof e!="object")throw Error(cn+"Object expected");var t,n,r,i=["precision",1,Ia,"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(Ra(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Ii+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Ii+n+": "+r);return this}var R0=PT(PK);Lt=new R0(1);const ve=R0;function jK(e){return MK(e)||NK(e)||kK(e)||CK()}function CK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
188
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kK(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 NK(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function MK(e){if(Array.isArray(e))return $v(e)}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}var IK=function(t){return t},AT={"@@functional/placeholder":!0},TT=function(t){return t===AT},t_=function(t){return function n(){return arguments.length===0||arguments.length===1&&TT(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},RK=function e(t,n){return t===1?n:t_(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!==AT}).length;return a>=t?n.apply(void 0,i):e(t-a,t_(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 TT(f)?s.shift():f});return n.apply(void 0,jK(c).concat(s))}))})},np=function(t){return RK(t.length,t)},Pv=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},LK=np(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),DK=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return IK;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))}},Av=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},jT=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 FK(e){var t;return e===0?t=1:t=Math.floor(new ve(e).abs().log(10).toNumber())+1,t}function BK(e,t,n){for(var r=new ve(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o}var zK=np(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),UK=np(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),HK=np(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const rp={rangeStep:BK,getDigitCount:FK,interpolateNumber:zK,uninterpolateNumber:UK,uninterpolateTruncation:HK};function Tv(e){return KK(e)||VK(e)||CT(e)||WK()}function WK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
189
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VK(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function KK(e){if(Array.isArray(e))return jv(e)}function ds(e,t){return XK(e)||GK(e,t)||CT(e,t)||qK()}function qK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
190
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CT(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 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 GK(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 XK(e){if(Array.isArray(e))return e}function kT(e){var t=ds(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function NT(e,t,n){if(e.lte(0))return new ve(0);var r=rp.getDigitCount(e.toNumber()),i=new ve(10).pow(r),o=e.div(i),a=r!==1?.05:.1,l=new ve(Math.ceil(o.div(a).toNumber())).add(n).mul(a),s=l.mul(i);return t?s:new ve(Math.ceil(s))}function YK(e,t,n){var r=1,i=new ve(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new ve(10).pow(rp.getDigitCount(e)-1),i=new ve(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new ve(Math.floor(e)))}else e===0?i=new ve(Math.floor((t-1)/2)):n||(i=new ve(Math.floor(e)));var a=Math.floor((t-1)/2),l=DK(LK(function(s){return i.add(new ve(s-a).mul(r)).toNumber()}),Pv);return l(0,t)}function MT(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 ve(0),tickMin:new ve(0),tickMax:new ve(0)};var o=NT(new ve(t).sub(e).div(n-1),r,i),a;e<=0&&t>=0?a=new ve(0):(a=new ve(e).add(t).div(2),a=a.sub(new ve(a).mod(o)));var l=Math.ceil(a.sub(e).div(o).toNumber()),s=Math.ceil(new ve(t).sub(a).div(o).toNumber()),u=l+s+1;return u>n?MT(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 ve(l).mul(o)),tickMax:a.add(new ve(s).mul(o))})}function QK(e){var t=ds(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=kT([n,r]),s=ds(l,2),u=s[0],c=s[1];if(u===-1/0||c===1/0){var f=c===1/0?[u].concat(Tv(Pv(0,i-1).map(function(){return 1/0}))):[].concat(Tv(Pv(0,i-1).map(function(){return-1/0})),[c]);return n>r?Av(f):f}if(u===c)return YK(u,i,o);var d=MT(u,c,a,o),p=d.step,m=d.tickMin,v=d.tickMax,y=rp.rangeStep(m,v.add(new ve(.1).mul(p)),p);return n>r?Av(y):y}function ZK(e,t){var n=ds(e,2),r=n[0],i=n[1],o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=kT([r,i]),l=ds(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=NT(new ve(u).sub(s).div(c-1),o,0),d=[].concat(Tv(rp.rangeStep(new ve(s),new ve(u).sub(new ve(.99).mul(f)),f)),[u]);return r>i?Av(d):d}var JK=jT(QK),eq=jT(ZK),tq="Invariant failed";function ta(e,t){throw new Error(tq)}var nq=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function na(e){"@babel/helpers - typeof";return na=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},na(e)}function gf(){return gf=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},gf.apply(this,arguments)}function rq(e,t){return lq(e)||aq(e,t)||oq(e,t)||iq()}function iq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
191
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oq(e,t){if(e){if(typeof e=="string")return n_(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 n_(e,t)}}function n_(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 lq(e){if(Array.isArray(e))return e}function sq(e,t){if(e==null)return{};var n=uq(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 uq(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 cq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fq(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 dq(e,t,n){return t&&fq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pq(e,t,n){return t=yf(t),hq(e,IT()?Reflect.construct(t,n||[],yf(e).constructor):t.apply(e,n))}function hq(e,t){if(t&&(na(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mq(e)}function mq(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 yf(e){return yf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},yf(e)}function vq(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&&Cv(e,t)}function Cv(e,t){return Cv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Cv(e,t)}function RT(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=gq(e,"string");return na(t)=="symbol"?t:t+""}function gq(e,t){if(na(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(na(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var L0=function(e){function t(){return cq(this,t),pq(this,t,arguments)}return vq(t,e),dq(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=sq(r,nq),p=ee(d,!1);this.props.direction==="x"&&c.type!=="number"&&ta();var m=s.map(function(v){var y=u(v,l),h=y.x,g=y.y,x=y.value,E=y.errorVal;if(!E)return null;var w=[],S,O;if(Array.isArray(E)){var $=rq(E,2);S=$[0],O=$[1]}else S=O=E;if(o==="vertical"){var A=c.scale,C=g+i,T=C+a,N=C-a,R=A(x-S),D=A(x+O);w.push({x1:D,y1:T,x2:D,y2:N}),w.push({x1:R,y1:C,x2:D,y2:C}),w.push({x1:R,y1:T,x2:R,y2:N})}else if(o==="horizontal"){var M=f.scale,L=h+i,I=L-a,P=L+a,k=M(x-S),F=M(x+O);w.push({x1:I,y1:F,x2:P,y2:F}),w.push({x1:L,y1:k,x2:L,y2:F}),w.push({x1:I,y1:k,x2:P,y2:k})}return j.createElement($e,gf({className:"recharts-errorBar",key:"bar-".concat(w.map(function(B){return"".concat(B.x1,"-").concat(B.x2,"-").concat(B.y1,"-").concat(B.y2)}))},p),w.map(function(B){return j.createElement("line",gf({},B,{key:"line-".concat(B.x1,"-").concat(B.x2,"-").concat(B.y1,"-").concat(B.y2)}))}))});return j.createElement($e,{className:"recharts-errorBars"},m)}}])}(j.Component);RT(L0,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});RT(L0,"displayName","ErrorBar");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 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 pi(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){yq(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 yq(e,t,n){return t=xq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xq(e){var t=bq(e,"string");return ps(t)=="symbol"?t:t+""}function bq(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 DT=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=Qt(n,Io);if(!a)return null;var l=Io.defaultProps,s=l!==void 0?pi(pi({},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,m=p.sectors||p.data||[];return c.concat(m.map(function(v){return{type:a.props.iconType||d.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):u=(r||[]).map(function(c){var f=c.item,d=f.type.defaultProps,p=d!==void 0?pi(pi({},d),f.props):{},m=p.dataKey,v=p.name,y=p.legendType,h=p.hide;return{inactive:h,dataKey:m,type:s.iconType||y||"square",color:D0(f),value:v||m,payload:p}}),pi(pi(pi({},s),Io.getWithHeight(a,i)),{},{payload:u,item:a})};function hs(e){"@babel/helpers - typeof";return hs=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},hs(e)}function i_(e){return Eq(e)||Sq(e)||_q(e)||wq()}function wq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
192
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _q(e,t){if(e){if(typeof e=="string")return kv(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 kv(e,t)}}function Sq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Eq(e){if(Array.isArray(e))return kv(e)}function kv(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 o_(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 Le(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o_(Object(n),!0).forEach(function(r){Lo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lo(e,t,n){return t=Oq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oq(e){var t=$q(e,"string");return hs(t)=="symbol"?t:t+""}function $q(e,t){if(hs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(hs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function at(e,t,n){return oe(e)||oe(t)?n:Ye(t)?En(e,t,n):J(t)?t(e):n}function jl(e,t,n,r){var i=SK(e,function(l){return at(l,t)});if(n==="number"){var o=i.filter(function(l){return K(l)||parseFloat(l)});return o.length?[ep(o),Jd(o)]:[1/0,-1/0]}var a=r?i.filter(function(l){return!oe(l)}):i;return a.map(function(l){return Ye(l)||l instanceof Date?l:""})}var Pq=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(rn(f-c)!==rn(d-f)){var m=[];if(rn(d-f)===rn(s[1]-s[0])){p=d;var v=f+s[1]-s[0];m[0]=Math.min(v,(v+c)/2),m[1]=Math.max(v,(v+c)/2)}else{p=c;var y=d+s[1]-s[0];m[0]=Math.min(f,(y+f)/2),m[1]=Math.max(f,(y+f)/2)}var h=[Math.min(f,(p+f)/2),Math.max(f,(p+f)/2)];if(t>h[0]&&t<=h[1]||t>=m[0]&&t<=m[1]){a=i[u].index;break}}else{var g=Math.min(c,d),x=Math.max(c,d);if(t>(g+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},D0=function(t){var n,r=t,i=r.type.displayName,o=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Le(Le({},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},Aq=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 m=c[f[d]],v=m.items,y=m.cateAxisId,h=v.filter(function(O){return dr(O.type).indexOf("Bar")>=0});if(h&&h.length){var g=h[0].type.defaultProps,x=g!==void 0?Le(Le({},g),h[0].props):h[0].props,E=x.barSize,w=x[y];a[w]||(a[w]=[]);var S=oe(E)?n:E;a[w].push({item:h[0],stackList:h.slice(1),barSize:oe(S)?void 0:Tt(S,r,0)})}}return a},Tq=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=Tt(n,i,0,!0),c,f=[];if(a[0].barSize===+a[0].barSize){var d=!1,p=i/s,m=a.reduce(function(E,w){return E+w.barSize||0},0);m+=(s-1)*u,m>=i&&(m-=(s-1)*u,u=0),m>=i&&p>0&&(d=!0,p*=.9,m=s*p);var v=(i-m)/2>>0,y={offset:v-u,size:0};c=a.reduce(function(E,w){var S={item:w.item,position:{offset:y.offset+y.size+u,size:d?p:w.barSize}},O=[].concat(i_(E),[S]);return y=O[O.length-1].position,w.stackList&&w.stackList.length&&w.stackList.forEach(function($){O.push({item:$,position:y})}),O},f)}else{var h=Tt(r,i,0,!0);i-2*h-(s-1)*u<=0&&(u=0);var g=(i-2*h-(s-1)*u)/s;g>1&&(g>>=0);var x=l===+l?Math.min(g,l):g;c=a.reduce(function(E,w,S){var O=[].concat(i_(E),[{item:w.item,position:{offset:h+(g+u)*S+(g-x)/2,size:x}}]);return w.stackList&&w.stackList.length&&w.stackList.forEach(function($){O.push({item:$,position:O[O.length-1].position})}),O},f)}return c},jq=function(t,n,r,i){var o=r.children,a=r.width,l=r.margin,s=a-(l.left||0)-(l.right||0),u=DT({children:o,legendWidth:s});if(u){var c=i||{},f=c.width,d=c.height,p=u.align,m=u.verticalAlign,v=u.layout;if((v==="vertical"||v==="horizontal"&&m==="middle")&&p!=="center"&&K(t[p]))return Le(Le({},t),{},Lo({},p,t[p]+(f||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&m!=="middle"&&K(t[m]))return Le(Le({},t),{},Lo({},m,t[m]+(d||0)))}return t},Cq=function(t,n,r){return oe(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},FT=function(t,n,r,i,o){var a=n.props.children,l=On(a,L0).filter(function(u){return Cq(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=at(c,r);if(oe(f))return u;var d=Array.isArray(f)?[ep(f),Jd(f)]:[f,f],p=s.reduce(function(m,v){var y=at(c,v,0),h=d[0]-Math.abs(Array.isArray(y)?y[0]:y),g=d[1]+Math.abs(Array.isArray(y)?y[1]:y);return[Math.min(h,m[0]),Math.max(g,m[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},kq=function(t,n,r,i,o){var a=n.map(function(l){return FT(t,l,r,o,i)}).filter(function(l){return!oe(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},BT=function(t,n,r,i,o){var a=n.map(function(s){var u=s.props.dataKey;return r==="number"&&u&&FT(t,s,u,i)||jl(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},[])},zT=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},ml=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?rn(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}})},Eh=new WeakMap,Uu=function(t,n){if(typeof n!="function")return t;Eh.has(t)||Eh.set(t,new WeakMap);var r=Eh.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},Nq=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:ls(),realScaleType:"band"}:a==="radial"&&l==="angleAxis"?{scale:df(),realScaleType:"linear"}:o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Tl(),realScaleType:"point"}:o==="category"?{scale:ls(),realScaleType:"band"}:{scale:df(),realScaleType:"linear"};if(Ta(i)){var s="scale".concat(Dd(i));return{scale:(Zw[s]||Tl)(),realScaleType:Zw[s]?s:"point"}}return J(i)?{scale:i}:{scale:Tl(),realScaleType:"point"}},a_=1e-4,Mq=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])-a_,a=Math.max(i[0],i[1])+a_,l=t(n[0]),s=t(n[r-1]);(l<o||l>a||s<o||s>a)&&t.domain([n[0],n[r-1]])}},Iq=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])}},Rq=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)}},Lq={sign:Iq,expand:u4,none:Ko,silhouette:c4,wiggle:f4,positive:Rq},Dq=function(t,n,r){var i=n.map(function(l){return l.props.dataKey}),o=Lq[r],a=s4().keys(i).value(function(l,s){return+at(l,s,0)}).order(nv).offset(o);return a(t)},Fq=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,m=(p=d.type)!==null&&p!==void 0&&p.defaultProps?Le(Le({},d.type.defaultProps),d.props):d.props,v=m.stackId,y=m.hide;if(y)return f;var h=m[r],g=f[h]||{hasStack:!1,stackGroups:{}};if(Ye(v)){var x=g.stackGroups[v]||{numericAxisId:r,cateAxisId:i,items:[]};x.items.push(d),g.hasStack=!0,g.stackGroups[v]=x}else g.stackGroups[Ld("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[d]};return Le(Le({},f),{},Lo({},h,g))},s),c={};return Object.keys(u).reduce(function(f,d){var p=u[d];if(p.hasStack){var m={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(v,y){var h=p.stackGroups[y];return Le(Le({},v),{},Lo({},y,{numericAxisId:r,cateAxisId:i,items:h.items,stackedData:Dq(t,h.items,o)}))},m)}return Le(Le({},f),{},Lo({},d,p))},c)},Bq=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=JK(u,o,l);return t.domain([ep(c),Jd(c)]),{niceTicks:c}}if(o&&i==="number"){var f=t.domain(),d=eq(f,o,l);return{niceTicks:d}}return null},zq=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Le(Le({},t.type.defaultProps),t.props):t.props,o=i.stackId;if(Ye(o)){var a=n[o];if(a){var l=a.items.indexOf(t);return l>=0?a.stackedData[l]:null}}return null},Uq=function(t){return t.reduce(function(n,r){return[ep(r.concat([n[0]]).filter(K)),Jd(r.concat([n[1]]).filter(K))]},[1/0,-1/0])},UT=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=Uq(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})},l_=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,s_=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Nv=function(t,n,r){if(J(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(K(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(l_.test(t[0])){var o=+l_.exec(t[0])[1];i[0]=n[0]-o}else J(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(K(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(s_.test(t[1])){var a=+s_.exec(t[1])[1];i[1]=n[1]+a}else J(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},Mv=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=c0(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},u_=function(t,n,r){return!t||!t.length||tp(t,En(r,"type.defaultProps.domain"))?n:t},Hq=function(t,n){var r=t.type.defaultProps?Le(Le({},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 Le(Le({},ee(t,!1)),{},{dataKey:i,unit:a,formatter:l,name:o||i,color:D0(t),value:at(n,i),type:s,payload:n,chartType:u,hide:c})};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 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 nr(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){HT(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 HT(e,t,n){return t=Wq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wq(e){var t=Vq(e,"string");return ms(t)=="symbol"?t:t+""}function Vq(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 Kq(e,t){return Yq(e)||Xq(e,t)||Gq(e,t)||qq()}function qq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
193
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gq(e,t){if(e){if(typeof e=="string")return f_(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 f_(e,t)}}function f_(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 Xq(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 Yq(e){if(Array.isArray(e))return e}var xf=Math.PI/180,Qq=function(t){return t*180/Math.PI},_e=function(t,n,r,i){return{x:t+Math.cos(-xf*i)*r,y:n+Math.sin(-xf*i)*r}},WT=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},Zq=function(t,n,r,i,o){var a=t.width,l=t.height,s=t.startAngle,u=t.endAngle,c=Tt(t.cx,a,a/2),f=Tt(t.cy,l,l/2),d=WT(a,l,r),p=Tt(t.innerRadius,d,0),m=Tt(t.outerRadius,d,d*.8),v=Object.keys(n);return v.reduce(function(y,h){var g=n[h],x=g.domain,E=g.reversed,w;if(oe(g.range))i==="angleAxis"?w=[s,u]:i==="radiusAxis"&&(w=[p,m]),E&&(w=[w[1],w[0]]);else{w=g.range;var S=w,O=Kq(S,2);s=O[0],u=O[1]}var $=Nq(g,o),A=$.realScaleType,C=$.scale;C.domain(x).range(w),Mq(C);var T=Bq(C,nr(nr({},g),{},{realScaleType:A})),N=nr(nr(nr({},g),T),{},{range:w,radius:m,realScaleType:A,scale:C,cx:c,cy:f,innerRadius:p,outerRadius:m,startAngle:s,endAngle:u});return nr(nr({},y),{},HT({},h,N))},{})},Jq=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))},eG=function(t,n){var r=t.x,i=t.y,o=n.cx,a=n.cy,l=Jq({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:Qq(u),angleInRadian:u}},tG=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}},nG=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},d_=function(t,n){var r=t.x,i=t.y,o=eG({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=tG(n),f=c.startAngle,d=c.endAngle,p=l,m;if(f<=d){for(;p>d;)p-=360;for(;p<f;)p+=360;m=p>=f&&p<=d}else{for(;p>f;)p-=360;for(;p<d;)p+=360;m=p>=d&&p<=f}return m?nr(nr({},n),{},{radius:a,angle:nG(p,n)}):null},VT=function(t){return!_.isValidElement(t)&&!J(t)&&typeof t!="boolean"?t.className:""};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)}var rG=["offset"];function iG(e){return sG(e)||lG(e)||aG(e)||oG()}function oG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
194
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aG(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 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 Iv(e)}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 uG(e,t){if(e==null)return{};var n=cG(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 cG(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 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 Ke(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){fG(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 fG(e,t,n){return t=dG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dG(e){var t=pG(e,"string");return vs(t)=="symbol"?t:t+""}function pG(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 gs(){return gs=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},gs.apply(this,arguments)}var hG=function(t){var n=t.value,r=t.formatter,i=oe(t.children)?n:t.children;return J(r)?r(i):i},mG=function(t,n){var r=rn(n-t),i=Math.min(Math.abs(n-t),360);return r*i},vG=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,m=s.endAngle,v=s.clockWise,y=(f+d)/2,h=mG(p,m),g=h>=0?1:-1,x,E;i==="insideStart"?(x=p+g*a,E=v):i==="insideEnd"?(x=m-g*a,E=!v):i==="end"&&(x=m+g*a,E=v),E=h<=0?E:!E;var w=_e(u,c,y,x),S=_e(u,c,y,x+(E?1:-1)*359),O="M".concat(w.x,",").concat(w.y,`
195
+ A`).concat(y,",").concat(y,",0,1,").concat(E?0:1,`,
196
+ `).concat(S.x,",").concat(S.y),$=oe(t.id)?Ld("recharts-radial-line-"):t.id;return j.createElement("text",gs({},r,{dominantBaseline:"central",className:se("recharts-radial-bar-label",l)}),j.createElement("defs",null,j.createElement("path",{id:$,d:O})),j.createElement("textPath",{xlinkHref:"#".concat($)},n))},gG=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=_e(a,l,u+r,d),m=p.x,v=p.y;return{x:m,y:v,textAnchor:m>=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 y=(s+u)/2,h=_e(a,l,y,d),g=h.x,x=h.y;return{x:g,y:x,textAnchor:"middle",verticalAnchor:"middle"}},yG=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",m=f>0?"start":"end",v=u>=0?1:-1,y=v*i,h=v>0?"end":"start",g=v>0?"start":"end";if(o==="top"){var x={x:l+u/2,y:s-f*i,textAnchor:"middle",verticalAnchor:p};return Ke(Ke({},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:m};return Ke(Ke({},E),r?{height:Math.max(r.y+r.height-(s+c),0),width:u}:{})}if(o==="left"){var w={x:l-y,y:s+c/2,textAnchor:h,verticalAnchor:"middle"};return Ke(Ke({},w),r?{width:Math.max(w.x-r.x,0),height:c}:{})}if(o==="right"){var S={x:l+u+y,y:s+c/2,textAnchor:g,verticalAnchor:"middle"};return Ke(Ke({},S),r?{width:Math.max(r.x+r.width-S.x,0),height:c}:{})}var O=r?{width:u,height:c}:{};return o==="insideLeft"?Ke({x:l+y,y:s+c/2,textAnchor:g,verticalAnchor:"middle"},O):o==="insideRight"?Ke({x:l+u-y,y:s+c/2,textAnchor:h,verticalAnchor:"middle"},O):o==="insideTop"?Ke({x:l+u/2,y:s+d,textAnchor:"middle",verticalAnchor:m},O):o==="insideBottom"?Ke({x:l+u/2,y:s+c-d,textAnchor:"middle",verticalAnchor:p},O):o==="insideTopLeft"?Ke({x:l+y,y:s+d,textAnchor:g,verticalAnchor:m},O):o==="insideTopRight"?Ke({x:l+u-y,y:s+d,textAnchor:h,verticalAnchor:m},O):o==="insideBottomLeft"?Ke({x:l+y,y:s+c-d,textAnchor:g,verticalAnchor:p},O):o==="insideBottomRight"?Ke({x:l+u-y,y:s+c-d,textAnchor:h,verticalAnchor:p},O):Oa(o)&&(K(o.x)||$i(o.x))&&(K(o.y)||$i(o.y))?Ke({x:l+Tt(o.x,u),y:s+Tt(o.y,c),textAnchor:"end",verticalAnchor:"end"},O):Ke({x:l+u/2,y:s+c/2,textAnchor:"middle",verticalAnchor:"middle"},O)},xG=function(t){return"cx"in t&&K(t.cx)};function ot(e){var t=e.offset,n=t===void 0?5:t,r=uG(e,rG),i=Ke({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||oe(l)&&oe(s)&&!_.isValidElement(u)&&!J(u))return null;if(_.isValidElement(u))return _.cloneElement(u,i);var p;if(J(u)){if(p=_.createElement(u,i),_.isValidElement(p))return p}else p=hG(i);var m=xG(o),v=ee(i,!0);if(m&&(a==="insideStart"||a==="insideEnd"||a==="end"))return vG(i,p,v);var y=m?gG(i):yG(i);return j.createElement(Qo,gs({className:se("recharts-label",f)},v,y,{breakAll:d}),p)}ot.displayName="Label";var KT=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,m=t.left,v=t.width,y=t.height,h=t.clockWise,g=t.labelViewBox;if(g)return g;if(K(v)&&K(y)){if(K(f)&&K(d))return{x:f,y:d,width:v,height:y};if(K(p)&&K(m))return{x:p,y:m,width:v,height:y}}return K(f)&&K(d)?{x:f,y:d,width:0,height:0}:K(n)&&K(r)?{cx:n,cy:r,startAngle:o||i||0,endAngle:a||i||0,innerRadius:u||0,outerRadius:c||s||l||0,clockWise:h}:t.viewBox?t.viewBox:{}},bG=function(t,n){return t?t===!0?j.createElement(ot,{key:"label-implicit",viewBox:n}):Ye(t)?j.createElement(ot,{key:"label-implicit",viewBox:n,value:t}):_.isValidElement(t)?t.type===ot?_.cloneElement(t,{key:"label-implicit",viewBox:n}):j.createElement(ot,{key:"label-implicit",content:t,viewBox:n}):J(t)?j.createElement(ot,{key:"label-implicit",content:t,viewBox:n}):Oa(t)?j.createElement(ot,gs({viewBox:n},t,{key:"label-implicit"})):null:null},wG=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=KT(t),a=On(i,ot).map(function(s,u){return _.cloneElement(s,{viewBox:n||o,key:"label-".concat(u)})});if(!r)return a;var l=bG(t.label,n||o);return[l].concat(iG(a))};ot.parseViewBox=KT;ot.renderCallByParent=wG;function _G(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var qT=_G;const SG=he(qT);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 EG=["valueAccessor"],OG=["data","dataKey","clockWise","id","textBreakAll"];function $G(e){return jG(e)||TG(e)||AG(e)||PG()}function PG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
197
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AG(e,t){if(e){if(typeof e=="string")return Rv(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 Rv(e,t)}}function TG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jG(e){if(Array.isArray(e))return Rv(e)}function Rv(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 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 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){CG(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 CG(e,t,n){return t=kG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kG(e){var t=NG(e,"string");return ys(t)=="symbol"?t:t+""}function NG(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 v_(e,t){if(e==null)return{};var n=MG(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 MG(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 IG=function(t){return Array.isArray(t.value)?SG(t.value):t.value};function mr(e){var t=e.valueAccessor,n=t===void 0?IG:t,r=v_(e,EG),i=r.data,o=r.dataKey,a=r.clockWise,l=r.id,s=r.textBreakAll,u=v_(r,OG);return!i||!i.length?null:j.createElement($e,{className:"recharts-label-list"},i.map(function(c,f){var d=oe(o)?n(c,f):at(c&&c.payload,o),p=oe(l)?{}:{id:"".concat(l,"-").concat(f)};return j.createElement(ot,bf({},ee(c,!0),u,p,{parentViewBox:c.parentViewBox,value:d,textBreakAll:s,viewBox:ot.parseViewBox(oe(a)?c:m_(m_({},c),{},{clockWise:a})),key:"label-".concat(f),index:f}))}))}mr.displayName="LabelList";function RG(e,t){return e?e===!0?j.createElement(mr,{key:"labelList-implicit",data:t}):j.isValidElement(e)||J(e)?j.createElement(mr,{key:"labelList-implicit",data:t,content:e}):Oa(e)?j.createElement(mr,bf({data:t},e,{key:"labelList-implicit"})):null:null}function LG(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,mr).map(function(a,l){return _.cloneElement(a,{data:t,key:"labelList-".concat(l)})});if(!n)return i;var o=RG(e.label,t);return[o].concat($G(i))}mr.renderCallByParent=LG;function xs(e){"@babel/helpers - typeof";return xs=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},xs(e)}function Lv(){return Lv=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},Lv.apply(this,arguments)}function g_(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 y_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?g_(Object(n),!0).forEach(function(r){DG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DG(e,t,n){return t=FG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FG(e){var t=BG(e,"string");return xs(t)=="symbol"?t:t+""}function BG(e,t){if(xs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(xs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zG=function(t,n){var r=rn(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)/xf,d=u?o:o+a*f,p=_e(n,r,c,d),m=_e(n,r,i,d),v=u?o-a*f:o,y=_e(n,r,c*Math.cos(f*xf),v);return{center:p,circleTangency:m,lineTangency:y,theta:f}},GT=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.startAngle,l=t.endAngle,s=zG(a,l),u=a+s,c=_e(n,r,o,a),f=_e(n,r,o,u),d="M ".concat(c.x,",").concat(c.y,`
198
198
  A `).concat(o,",").concat(o,`,0,
199
199
  `).concat(+(Math.abs(s)>180),",").concat(+(a>u),`,
200
200
  `).concat(f.x,",").concat(f.y,`
201
- `);if(i>0){var p=Se(n,r,i,a),m=Se(n,r,i,u);d+="L ".concat(m.x,",").concat(m.y,`
201
+ `);if(i>0){var p=_e(n,r,i,a),m=_e(n,r,i,u);d+="L ".concat(m.x,",").concat(m.y,`
202
202
  A `).concat(i,",").concat(i,`,0,
203
203
  `).concat(+(Math.abs(s)>180),",").concat(+(a<=u),`,
204
- `).concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(n,",").concat(r," Z");return d},ZG=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=rn(c-u),d=Wu({cx:n,cy:r,radius:o,angle:u,sign:f,cornerRadius:a,cornerIsExternal:s}),p=d.circleTangency,m=d.lineTangency,v=d.theta,y=Wu({cx:n,cy:r,radius:o,angle:c,sign:-f,cornerRadius:a,cornerIsExternal:s}),h=y.circleTangency,g=y.lineTangency,x=y.theta,O=s?Math.abs(u-c):Math.abs(u-c)-v-x;if(O<0)return l?"M ".concat(m.x,",").concat(m.y,`
204
+ `).concat(p.x,",").concat(p.y," Z")}else d+="L ".concat(n,",").concat(r," Z");return d},UG=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=rn(c-u),d=Hu({cx:n,cy:r,radius:o,angle:u,sign:f,cornerRadius:a,cornerIsExternal:s}),p=d.circleTangency,m=d.lineTangency,v=d.theta,y=Hu({cx:n,cy:r,radius:o,angle:c,sign:-f,cornerRadius:a,cornerIsExternal:s}),h=y.circleTangency,g=y.lineTangency,x=y.theta,E=s?Math.abs(u-c):Math.abs(u-c)-v-x;if(E<0)return l?"M ".concat(m.x,",").concat(m.y,`
205
205
  a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0
206
206
  a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0
207
- `):YT({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:u,endAngle:c});var w="M ".concat(m.x,",").concat(m.y,`
207
+ `):GT({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:u,endAngle:c});var w="M ".concat(m.x,",").concat(m.y,`
208
208
  A`).concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(p.x,",").concat(p.y,`
209
- A`).concat(o,",").concat(o,",0,").concat(+(O>180),",").concat(+(f<0),",").concat(h.x,",").concat(h.y,`
209
+ A`).concat(o,",").concat(o,",0,").concat(+(E>180),",").concat(+(f<0),",").concat(h.x,",").concat(h.y,`
210
210
  A`).concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(g.x,",").concat(g.y,`
211
- `);if(i>0){var _=Wu({cx:n,cy:r,radius:i,angle:u,sign:f,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),E=_.circleTangency,$=_.lineTangency,A=_.theta,C=Wu({cx:n,cy:r,radius:i,angle:c,sign:-f,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),T=C.circleTangency,N=C.lineTangency,R=C.theta,D=s?Math.abs(u-c):Math.abs(u-c)-A-R;if(D<0&&a===0)return"".concat(w,"L").concat(n,",").concat(r,"Z");w+="L".concat(N.x,",").concat(N.y,`
211
+ `);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,A=S.theta,C=Hu({cx:n,cy:r,radius:i,angle:c,sign:-f,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),T=C.circleTangency,N=C.lineTangency,R=C.theta,D=s?Math.abs(u-c):Math.abs(u-c)-A-R;if(D<0&&a===0)return"".concat(w,"L").concat(n,",").concat(r,"Z");w+="L".concat(N.x,",").concat(N.y,`
212
212
  A`).concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat(T.x,",").concat(T.y,`
213
- A`).concat(i,",").concat(i,",0,").concat(+(D>180),",").concat(+(f>0),",").concat(E.x,",").concat(E.y,`
214
- A`).concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat($.x,",").concat($.y,"Z")}else w+="L".concat(n,",").concat(r,"Z");return w},JG={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},QT=function(t){var n=bS(bS({},JG),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=se("recharts-sector",d),m=a-o,v=Tt(l,m,0,!0),y;return v>0&&Math.abs(c-f)<360?y=ZG({cx:r,cy:i,innerRadius:o,outerRadius:a,cornerRadius:Math.min(v,m/2),forceCornerRadius:s,cornerIsExternal:u,startAngle:c,endAngle:f}):y=YT({cx:r,cy:i,innerRadius:o,outerRadius:a,startAngle:c,endAngle:f}),j.createElement("path",Fv({},ee(n,!0),{className:p,d:y,role:"img"}))};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)}function Bv(){return Bv=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},Bv.apply(this,arguments)}function wS(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 SS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wS(Object(n),!0).forEach(function(r){eX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eX(e,t,n){return t=tX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tX(e){var t=nX(e,"string");return bs(t)=="symbol"?t:t+""}function nX(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)}var _S={curveBasisClosed:l4,curveBasisOpen:s4,curveBasis:a4,curveBumpX:K5,curveBumpY:q5,curveLinearClosed:u4,curveLinear:zd,curveMonotoneX:c4,curveMonotoneY:f4,curveNatural:d4,curveStep:p4,curveStepAfter:m4,curveStepBefore:h4},Vu=function(t){return t.x===+t.x&&t.y===+t.y},il=function(t){return t.x},ol=function(t){return t.y},rX=function(t,n){if(J(t))return t;var r="curve".concat(Fd(t));return(r==="curveMonotone"||r==="curveBump")&&n?_S["".concat(r).concat(n==="vertical"?"Y":"X")]:_S[r]||zd},iX=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=rX(r,l),f=u?o.filter(function(v){return Vu(v)}):o,d;if(Array.isArray(a)){var p=u?a.filter(function(v){return Vu(v)}):a,m=f.map(function(v,y){return SS(SS({},v),{},{base:p[y]})});return l==="vertical"?d=Mu().y(ol).x1(il).x0(function(v){return v.base.x}):d=Mu().x(il).y1(ol).y0(function(v){return v.base.y}),d.defined(Vu).curve(c),d(m)}return l==="vertical"&&K(a)?d=Mu().y(ol).x1(il).x0(a):K(a)?d=Mu().x(il).y1(ol).y0(a):d=VP().x(il).y(ol),d.defined(Vu).curve(c),d(f)},zv=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?iX(t):i;return j.createElement("path",Bv({},ee(t,!1),Kc(t),{className:se("recharts-curve",n),d:a,ref:o}))},ZT={exports:{}},oX="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",aX=oX,lX=aX;function JT(){}function ej(){}ej.resetWarningCache=JT;var sX=function(){function e(r,i,o,a,l,s){if(s!==lX){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:ej,resetWarningCache:JT};return n.PropTypes=n,n};ZT.exports=sX();var uX=ZT.exports;const ce=he(uX);var cX=Object.getOwnPropertyNames,fX=Object.getOwnPropertySymbols,dX=Object.prototype.hasOwnProperty;function OS(e,t){return function(r,i,o){return e(r,i,o)&&t(r,i,o)}}function Ku(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 ES(e){return cX(e).concat(fX(e))}var tj=Object.hasOwn||function(e,t){return dX.call(e,t)};function La(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var nj="_owner",$S=Object.getOwnPropertyDescriptor,PS=Object.keys;function pX(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 hX(e,t){return La(e.getTime(),t.getTime())}function AS(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],m=l.value,v=m[0],y=m[1];!u&&!r[c]&&(u=n.equals(d,v,o,c,e,t,n)&&n.equals(p,y,d,v,e,t,n))&&(r[c]=!0),c++}if(!u)return!1;o++}return!0}function mX(e,t,n){var r=PS(e),i=r.length;if(PS(t).length!==i)return!1;for(var o;i-- >0;)if(o=r[i],o===nj&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!tj(t,o)||!n.equals(e[o],t[o],o,o,e,t,n))return!1;return!0}function al(e,t,n){var r=ES(e),i=r.length;if(ES(t).length!==i)return!1;for(var o,a,l;i-- >0;)if(o=r[i],o===nj&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!tj(t,o)||!n.equals(e[o],t[o],o,o,e,t,n)||(a=$S(e,o),l=$S(t,o),(a||l)&&(!a||!l||a.configurable!==l.configurable||a.enumerable!==l.enumerable||a.writable!==l.writable)))return!1;return!0}function vX(e,t){return La(e.valueOf(),t.valueOf())}function gX(e,t){return e.source===t.source&&e.flags===t.flags}function TS(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 yX(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 xX="[object Arguments]",bX="[object Boolean]",wX="[object Date]",SX="[object Map]",_X="[object Number]",OX="[object Object]",EX="[object RegExp]",$X="[object Set]",PX="[object String]",AX=Array.isArray,jS=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,CS=Object.assign,TX=Object.prototype.toString.call.bind(Object.prototype.toString);function jX(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(AX(c))return t(c,f,d);if(jS!=null&&jS(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 m=TX(c);return m===wX?n(c,f,d):m===EX?a(c,f,d):m===SX?r(c,f,d):m===$X?l(c,f,d):m===OX?typeof c.then!="function"&&typeof f.then!="function"&&i(c,f,d):m===xX?i(c,f,d):m===bX||m===_X||m===PX?o(c,f,d):!1}}function CX(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?al:pX,areDatesEqual:hX,areMapsEqual:r?OS(AS,al):AS,areObjectsEqual:r?al:mX,arePrimitiveWrappersEqual:vX,areRegExpsEqual:gX,areSetsEqual:r?OS(TS,al):TS,areTypedArraysEqual:r?al:yX};if(n&&(i=CS({},i,n(i))),t){var o=Ku(i.areArraysEqual),a=Ku(i.areMapsEqual),l=Ku(i.areObjectsEqual),s=Ku(i.areSetsEqual);i=CS({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:l,areSetsEqual:s})}return i}function kX(e){return function(t,n,r,i,o,a,l){return e(t,n,l)}}function NX(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 MX=ci();ci({strict:!0});ci({circular:!0});ci({circular:!0,strict:!0});ci({createInternalComparator:function(){return La}});ci({strict:!0,createInternalComparator:function(){return La}});ci({circular:!0,createInternalComparator:function(){return La}});ci({circular:!0,createInternalComparator:function(){return La},strict:!0});function ci(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=CX(e),s=jX(l),u=r?r(s):kX(s);return NX({circular:n,comparator:s,createState:i,equals:u,strict:a})}function IX(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function kS(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):IX(i)};requestAnimationFrame(r)}function Uv(e){"@babel/helpers - typeof";return Uv=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},Uv(e)}function RX(e){return BX(e)||FX(e)||DX(e)||LX()}function LX(){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 DX(e,t){if(e){if(typeof e=="string")return NS(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 NS(e,t)}}function NS(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 FX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function BX(e){if(Array.isArray(e))return e}function zX(){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=RX(a),s=l[0],u=l.slice(1);if(typeof s=="number"){kS(i.bind(null,u),s);return}i(s),kS(i.bind(null,u));return}Uv(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 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 MS(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?MS(Object(n),!0).forEach(function(r){rj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rj(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=HX(e,"string");return ws(t)==="symbol"?t:String(t)}function HX(e,t){if(ws(e)!=="object"||e===null)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 WX=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(o){return i.includes(o)})})},VX=function(t){return t},KX=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Cl=function(t,n){return Object.keys(n).reduce(function(r,i){return IS(IS({},r),{},rj({},i,t(i,n[i])))},{})},RS=function(t,n,r){return t.map(function(i){return"".concat(KX(i)," ").concat(n,"ms ").concat(r)}).join(",")};function qX(e,t){return YX(e)||XX(e,t)||ij(e,t)||GX()}function GX(){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 XX(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 YX(e){if(Array.isArray(e))return e}function QX(e){return eY(e)||JX(e)||ij(e)||ZX()}function ZX(){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 ij(e,t){if(e){if(typeof e=="string")return Hv(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 Hv(e,t)}}function JX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eY(e){if(Array.isArray(e))return Hv(e)}function Hv(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 Sf=1e-4,oj=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},aj=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},LS=function(t,n){return function(r){var i=oj(t,n);return aj(i,r)}},tY=function(t,n){return function(r){var i=oj(t,n),o=[].concat(QX(i.map(function(a,l){return a*l}).slice(1)),[0]);return aj(o,r)}},DS=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(y){return parseFloat(y)}),c=qX(u,4);i=c[0],o=c[1],a=c[2],l=c[3]}}}var f=LS(i,a),d=LS(o,l),p=tY(i,a),m=function(h){return h>1?1:h<0?0:h},v=function(h){for(var g=h>1?1:h,x=g,O=0;O<8;++O){var w=f(x)-g,_=p(x);if(Math.abs(w-g)<Sf||_<Sf)return d(x);x=m(x-w/_)}return d(x)};return v.isStepper=!1,v},nY=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,m=d*o,v=d+(p-m)*l/1e3,y=d*l/1e3+c;return Math.abs(y-f)<Sf&&Math.abs(v)<Sf?[f,0]:[y,v]};return s.isStepper=!0,s.dt=l,s},rY=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 DS(i);case"spring":return nY();default:if(i.split("(")[0]==="cubic-bezier")return DS(i)}return typeof i=="function"?i: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 FS(e){return aY(e)||oY(e)||lj(e)||iY()}function iY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
218
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aY(e){if(Array.isArray(e))return Vv(e)}function BS(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 rt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BS(Object(n),!0).forEach(function(r){Wv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wv(e,t,n){return t=lY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lY(e){var t=sY(e,"string");return Ss(t)==="symbol"?t:String(t)}function sY(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)}function uY(e,t){return dY(e)||fY(e,t)||lj(e,t)||cY()}function cY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
219
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lj(e,t){if(e){if(typeof e=="string")return Vv(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 Vv(e,t)}}function Vv(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,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 dY(e){if(Array.isArray(e))return e}var _f=function(t,n,r){return t+(n-t)*r},Kv=function(t){var n=t.from,r=t.to;return n!==r},pY=function e(t,n,r){var i=Cl(function(o,a){if(Kv(a)){var l=t(a.from,a.to,a.velocity),s=uY(l,2),u=s[0],c=s[1];return rt(rt({},a),{},{from:u,velocity:c})}return a},n);return r<1?Cl(function(o,a){return Kv(a)?rt(rt({},a),{},{velocity:_f(a.velocity,i[o].velocity,r),from:_f(a.from,i[o].from,r)}):a},n):e(t,i,r-1)};const hY=function(e,t,n,r,i){var o=WX(e,t),a=o.reduce(function(y,h){return rt(rt({},y),{},Wv({},h,[e[h],t[h]]))},{}),l=o.reduce(function(y,h){return rt(rt({},y),{},Wv({},h,{from:e[h],velocity:0,to:t[h]}))},{}),s=-1,u,c,f=function(){return null},d=function(){return Cl(function(h,g){return g.from},l)},p=function(){return!Object.values(l).filter(Kv).length},m=function(h){u||(u=h);var g=h-u,x=g/n.dt;l=pY(n,l,x),i(rt(rt(rt({},e),t),d())),u=h,p()||(s=requestAnimationFrame(f))},v=function(h){c||(c=h);var g=(h-c)/r,x=Cl(function(w,_){return _f.apply(void 0,FS(_).concat([n(g)]))},a);if(i(rt(rt(rt({},e),t),x)),g<1)s=requestAnimationFrame(f);else{var O=Cl(function(w,_){return _f.apply(void 0,FS(_).concat([n(1)]))},a);i(rt(rt(rt({},e),t),O))}};return f=n.isStepper?m:v,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(s)}}};function ra(e){"@babel/helpers - typeof";return ra=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ra(e)}var mY=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function vY(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={},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 Ph(e){return wY(e)||bY(e)||xY(e)||yY()}function yY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
220
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xY(e,t){if(e){if(typeof e=="string")return qv(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 qv(e,t)}}function bY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wY(e){if(Array.isArray(e))return qv(e)}function qv(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 zS(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 vn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zS(Object(n),!0).forEach(function(r){vl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vl(e,t,n){return t=sj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _Y(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,sj(r.key),r)}}function OY(e,t,n){return t&&_Y(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sj(e){var t=EY(e,"string");return ra(t)==="symbol"?t:String(t)}function EY(e,t){if(ra(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ra(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $Y(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 PY(e){var t=AY();return function(){var r=Of(e),i;if(t){var o=Of(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Xv(this,i)}}function Xv(e,t){if(t&&(ra(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yv(e)}function Yv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AY(){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 Of(e){return Of=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Of(e)}var Er=function(e){$Y(n,e);var t=PY(n);function n(r,i){var o;SY(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(Yv(o)),o.changeStyle=o.changeStyle.bind(Yv(o)),!l||p<=0)return o.state={style:{}},typeof d=="function"&&(o.state={style:c}),Xv(o);if(f&&f.length)o.state={style:f[0].style};else if(u){if(typeof d=="function")return o.state={style:u},Xv(o);o.state={style:s?vl({},s,u):u}}else o.state={style:{}};return o}return OY(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?vl({},s,c):c};this.state&&d&&(s&&d[s]!==c||!s&&d!==c)&&this.setState(p);return}if(!(MX(i.to,c)&&i.canBegin&&i.isActive)){var m=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=m||u?f:i.to;if(this.state&&d){var y={style:s?vl({},s,v):v};(s&&d[s]!==v||!s&&d!==v)&&this.setState(y)}this.runAnimation(vn(vn({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var o=this,a=i.from,l=i.to,s=i.duration,u=i.easing,c=i.begin,f=i.onAnimationEnd,d=i.onAnimationStart,p=hY(a,l,rY(u),s,this.changeStyle),m=function(){o.stopJSAnimation=p()};this.manager.start([d,c,m,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(v,y,h){if(h===0)return v;var g=y.duration,x=y.easing,O=x===void 0?"ease":x,w=y.style,_=y.properties,E=y.onAnimationEnd,$=h>0?a[h-1]:y,A=_||Object.keys(w);if(typeof O=="function"||O==="spring")return[].concat(Ph(v),[o.runJSAnimation.bind(o,{from:$.style,to:w,duration:g,easing:O}),g]);var C=RS(A,g,O),T=vn(vn(vn({},$.style),w),{},{transition:C});return[].concat(Ph(v),[T,g,E]).filter(VX)};return this.manager.start([s].concat(Ph(a.reduce(p,[c,Math.max(d,l)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=zX());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,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof u=="function"||typeof p=="function"||u==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var v=l?vl({},l,s):s,y=RS(Object.keys(v),a,u);m.start([c,o,vn(vn({},v),{},{transition:y}),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=vY(i,mY),u=S.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 m=p.props,v=m.style,y=v===void 0?{}:v,h=m.className,g=S.cloneElement(p,vn(vn({},s),{},{style:vn(vn({},y),c),className:h}));return g};return u===1?f(S.Children.only(o)):j.createElement("div",null,S.Children.map(o,function(d){return f(d)}))}}]),n}(S.PureComponent);Er.displayName="Animate";Er.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Er.propTypes={from:ce.oneOfType([ce.object,ce.string]),to:ce.oneOfType([ce.object,ce.string]),attributeName:ce.string,duration:ce.number,begin:ce.number,easing:ce.oneOfType([ce.string,ce.func]),steps:ce.arrayOf(ce.shape({duration:ce.number.isRequired,style:ce.object.isRequired,easing:ce.oneOfType([ce.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ce.func]),properties:ce.arrayOf("string"),onAnimationEnd:ce.func})),children:ce.oneOfType([ce.node,ce.func]),isActive:ce.bool,canBegin:ce.bool,onAnimationEnd:ce.func,shouldReAnimate:ce.bool,onAnimationStart:ce.func,onAnimationReStart:ce.func};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 Ef(){return Ef=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},Ef.apply(this,arguments)}function TY(e,t){return NY(e)||kY(e,t)||CY(e,t)||jY()}function jY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
221
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CY(e,t){if(e){if(typeof e=="string")return US(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 US(e,t)}}function US(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 kY(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 NY(e){if(Array.isArray(e))return e}function HS(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 WS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HS(Object(n),!0).forEach(function(r){MY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function MY(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 _s(t)=="symbol"?t:t+""}function RY(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 VS=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,`,
213
+ A`).concat(i,",").concat(i,",0,").concat(+(D>180),",").concat(+(f>0),",").concat(O.x,",").concat(O.y,`
214
+ A`).concat(a,",").concat(a,",0,0,").concat(+(f<0),",").concat($.x,",").concat($.y,"Z")}else w+="L".concat(n,",").concat(r,"Z");return w},HG={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},XT=function(t){var n=y_(y_({},HG),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=se("recharts-sector",d),m=a-o,v=Tt(l,m,0,!0),y;return v>0&&Math.abs(c-f)<360?y=UG({cx:r,cy:i,innerRadius:o,outerRadius:a,cornerRadius:Math.min(v,m/2),forceCornerRadius:s,cornerIsExternal:u,startAngle:c,endAngle:f}):y=GT({cx:r,cy:i,innerRadius:o,outerRadius:a,startAngle:c,endAngle:f}),j.createElement("path",Lv({},ee(n,!0),{className:p,d:y,role:"img"}))};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)}function Dv(){return Dv=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},Dv.apply(this,arguments)}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 b_(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){WG(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 WG(e,t,n){return t=VG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VG(e){var t=KG(e,"string");return bs(t)=="symbol"?t:t+""}function KG(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)}var w_={curveBasisClosed:Q5,curveBasisOpen:Z5,curveBasis:Y5,curveBumpX:R5,curveBumpY:L5,curveLinearClosed:J5,curveLinear:Bd,curveMonotoneX:e4,curveMonotoneY:t4,curveNatural:n4,curveStep:r4,curveStepAfter:o4,curveStepBefore:i4},Wu=function(t){return t.x===+t.x&&t.y===+t.y},il=function(t){return t.x},ol=function(t){return t.y},qG=function(t,n){if(J(t))return t;var r="curve".concat(Dd(t));return(r==="curveMonotone"||r==="curveBump")&&n?w_["".concat(r).concat(n==="vertical"?"Y":"X")]:w_[r]||Bd},GG=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=qG(r,l),f=u?o.filter(function(v){return Wu(v)}):o,d;if(Array.isArray(a)){var p=u?a.filter(function(v){return Wu(v)}):a,m=f.map(function(v,y){return b_(b_({},v),{},{base:p[y]})});return l==="vertical"?d=Nu().y(ol).x1(il).x0(function(v){return v.base.x}):d=Nu().x(il).y1(ol).y0(function(v){return v.base.y}),d.defined(Wu).curve(c),d(m)}return l==="vertical"&&K(a)?d=Nu().y(ol).x1(il).x0(a):K(a)?d=Nu().x(il).y1(ol).y0(a):d=HP().x(il).y(ol),d.defined(Wu).curve(c),d(f)},Fv=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?GG(t):i;return j.createElement("path",Dv({},ee(t,!1),Vc(t),{className:se("recharts-curve",n),d:a,ref:o}))},YT={exports:{}},XG="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",YG=XG,QG=YG;function QT(){}function ZT(){}ZT.resetWarningCache=QT;var ZG=function(){function e(r,i,o,a,l,s){if(s!==QG){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:ZT,resetWarningCache:QT};return n.PropTypes=n,n};YT.exports=ZG();var JG=YT.exports;const ce=he(JG);var eX=Object.getOwnPropertyNames,tX=Object.getOwnPropertySymbols,nX=Object.prototype.hasOwnProperty;function __(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 S_(e){return eX(e).concat(tX(e))}var JT=Object.hasOwn||function(e,t){return nX.call(e,t)};function La(e,t){return e||t?e===t:e===t||e!==e&&t!==t}var e2="_owner",E_=Object.getOwnPropertyDescriptor,O_=Object.keys;function rX(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 iX(e,t){return La(e.getTime(),t.getTime())}function $_(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],m=l.value,v=m[0],y=m[1];!u&&!r[c]&&(u=n.equals(d,v,o,c,e,t,n)&&n.equals(p,y,d,v,e,t,n))&&(r[c]=!0),c++}if(!u)return!1;o++}return!0}function oX(e,t,n){var r=O_(e),i=r.length;if(O_(t).length!==i)return!1;for(var o;i-- >0;)if(o=r[i],o===e2&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!JT(t,o)||!n.equals(e[o],t[o],o,o,e,t,n))return!1;return!0}function al(e,t,n){var r=S_(e),i=r.length;if(S_(t).length!==i)return!1;for(var o,a,l;i-- >0;)if(o=r[i],o===e2&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!JT(t,o)||!n.equals(e[o],t[o],o,o,e,t,n)||(a=E_(e,o),l=E_(t,o),(a||l)&&(!a||!l||a.configurable!==l.configurable||a.enumerable!==l.enumerable||a.writable!==l.writable)))return!1;return!0}function aX(e,t){return La(e.valueOf(),t.valueOf())}function lX(e,t){return e.source===t.source&&e.flags===t.flags}function P_(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 sX(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 uX="[object Arguments]",cX="[object Boolean]",fX="[object Date]",dX="[object Map]",pX="[object Number]",hX="[object Object]",mX="[object RegExp]",vX="[object Set]",gX="[object String]",yX=Array.isArray,A_=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,T_=Object.assign,xX=Object.prototype.toString.call.bind(Object.prototype.toString);function bX(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(yX(c))return t(c,f,d);if(A_!=null&&A_(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 m=xX(c);return m===fX?n(c,f,d):m===mX?a(c,f,d):m===dX?r(c,f,d):m===vX?l(c,f,d):m===hX?typeof c.then!="function"&&typeof f.then!="function"&&i(c,f,d):m===uX?i(c,f,d):m===cX||m===pX||m===gX?o(c,f,d):!1}}function wX(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?al:rX,areDatesEqual:iX,areMapsEqual:r?__($_,al):$_,areObjectsEqual:r?al:oX,arePrimitiveWrappersEqual:aX,areRegExpsEqual:lX,areSetsEqual:r?__(P_,al):P_,areTypedArraysEqual:r?al:sX};if(n&&(i=T_({},i,n(i))),t){var o=Vu(i.areArraysEqual),a=Vu(i.areMapsEqual),l=Vu(i.areObjectsEqual),s=Vu(i.areSetsEqual);i=T_({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:l,areSetsEqual:s})}return i}function _X(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 EX=ui();ui({strict:!0});ui({circular:!0});ui({circular:!0,strict:!0});ui({createInternalComparator:function(){return La}});ui({strict:!0,createInternalComparator:function(){return La}});ui({circular:!0,createInternalComparator:function(){return La}});ui({circular:!0,createInternalComparator:function(){return La},strict:!0});function ui(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=wX(e),s=bX(l),u=r?r(s):_X(s);return SX({circular:n,comparator:s,createState:i,equals:u,strict:a})}function OX(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function j_(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):OX(i)};requestAnimationFrame(r)}function Bv(e){"@babel/helpers - typeof";return Bv=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},Bv(e)}function $X(e){return jX(e)||TX(e)||AX(e)||PX()}function PX(){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 AX(e,t){if(e){if(typeof e=="string")return C_(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 C_(e,t)}}function C_(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 TX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jX(e){if(Array.isArray(e))return e}function CX(){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=$X(a),s=l[0],u=l.slice(1);if(typeof s=="number"){j_(i.bind(null,u),s);return}i(s),j_(i.bind(null,u));return}Bv(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 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 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 N_(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){t2(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 t2(e,t,n){return t=kX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kX(e){var t=NX(e,"string");return ws(t)==="symbol"?t:String(t)}function NX(e,t){if(ws(e)!=="object"||e===null)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 MX=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(o){return i.includes(o)})})},IX=function(t){return t},RX=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Cl=function(t,n){return Object.keys(n).reduce(function(r,i){return N_(N_({},r),{},t2({},i,t(i,n[i])))},{})},M_=function(t,n,r){return t.map(function(i){return"".concat(RX(i)," ").concat(n,"ms ").concat(r)}).join(",")};function LX(e,t){return BX(e)||FX(e,t)||n2(e,t)||DX()}function DX(){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 FX(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 BX(e){if(Array.isArray(e))return e}function zX(e){return WX(e)||HX(e)||n2(e)||UX()}function UX(){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 n2(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 HX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WX(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 wf=1e-4,r2=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},i2=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},I_=function(t,n){return function(r){var i=r2(t,n);return i2(i,r)}},VX=function(t,n){return function(r){var i=r2(t,n),o=[].concat(zX(i.map(function(a,l){return a*l}).slice(1)),[0]);return i2(o,r)}},R_=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(y){return parseFloat(y)}),c=LX(u,4);i=c[0],o=c[1],a=c[2],l=c[3]}}}var f=I_(i,a),d=I_(o,l),p=VX(i,a),m=function(h){return h>1?1:h<0?0:h},v=function(h){for(var g=h>1?1:h,x=g,E=0;E<8;++E){var w=f(x)-g,S=p(x);if(Math.abs(w-g)<wf||S<wf)return d(x);x=m(x-w/S)}return d(x)};return v.isStepper=!1,v},KX=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,m=d*o,v=d+(p-m)*l/1e3,y=d*l/1e3+c;return Math.abs(y-f)<wf&&Math.abs(v)<wf?[f,0]:[y,v]};return s.isStepper=!0,s.dt=l,s},qX=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 R_(i);case"spring":return KX();default:if(i.split("(")[0]==="cubic-bezier")return R_(i)}return typeof i=="function"?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)}function L_(e){return YX(e)||XX(e)||o2(e)||GX()}function GX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
218
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}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 Hv(e)}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 rt(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){Uv(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 Uv(e,t,n){return t=QX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QX(e){var t=ZX(e,"string");return _s(t)==="symbol"?t:String(t)}function ZX(e,t){if(_s(e)!=="object"||e===null)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){return nY(e)||tY(e,t)||o2(e,t)||eY()}function eY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
219
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o2(e,t){if(e){if(typeof e=="string")return Hv(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 Hv(e,t)}}function Hv(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 tY(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 nY(e){if(Array.isArray(e))return e}var _f=function(t,n,r){return t+(n-t)*r},Wv=function(t){var n=t.from,r=t.to;return n!==r},rY=function e(t,n,r){var i=Cl(function(o,a){if(Wv(a)){var l=t(a.from,a.to,a.velocity),s=JX(l,2),u=s[0],c=s[1];return rt(rt({},a),{},{from:u,velocity:c})}return a},n);return r<1?Cl(function(o,a){return Wv(a)?rt(rt({},a),{},{velocity:_f(a.velocity,i[o].velocity,r),from:_f(a.from,i[o].from,r)}):a},n):e(t,i,r-1)};const iY=function(e,t,n,r,i){var o=MX(e,t),a=o.reduce(function(y,h){return rt(rt({},y),{},Uv({},h,[e[h],t[h]]))},{}),l=o.reduce(function(y,h){return rt(rt({},y),{},Uv({},h,{from:e[h],velocity:0,to:t[h]}))},{}),s=-1,u,c,f=function(){return null},d=function(){return Cl(function(h,g){return g.from},l)},p=function(){return!Object.values(l).filter(Wv).length},m=function(h){u||(u=h);var g=h-u,x=g/n.dt;l=rY(n,l,x),i(rt(rt(rt({},e),t),d())),u=h,p()||(s=requestAnimationFrame(f))},v=function(h){c||(c=h);var g=(h-c)/r,x=Cl(function(w,S){return _f.apply(void 0,L_(S).concat([n(g)]))},a);if(i(rt(rt(rt({},e),t),x)),g<1)s=requestAnimationFrame(f);else{var E=Cl(function(w,S){return _f.apply(void 0,L_(S).concat([n(1)]))},a);i(rt(rt(rt({},e),t),E))}};return f=n.isStepper?m:v,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(s)}}};function ra(e){"@babel/helpers - typeof";return ra=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ra(e)}var oY=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function aY(e,t){if(e==null)return{};var n=lY(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 lY(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 Oh(e){return fY(e)||cY(e)||uY(e)||sY()}function sY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
220
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uY(e,t){if(e){if(typeof e=="string")return Vv(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 Vv(e,t)}}function cY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fY(e){if(Array.isArray(e))return Vv(e)}function Vv(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 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 vn(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){vl(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 vl(e,t,n){return t=a2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pY(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,a2(r.key),r)}}function hY(e,t,n){return t&&pY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function a2(e){var t=mY(e,"string");return ra(t)==="symbol"?t:String(t)}function mY(e,t){if(ra(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ra(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vY(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 gY(e){var t=yY();return function(){var r=Sf(e),i;if(t){var o=Sf(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return qv(this,i)}}function qv(e,t){if(t&&(ra(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gv(e)}function Gv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yY(){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 Sf(e){return Sf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Sf(e)}var Or=function(e){vY(n,e);var t=gY(n);function n(r,i){var o;dY(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(Gv(o)),o.changeStyle=o.changeStyle.bind(Gv(o)),!l||p<=0)return o.state={style:{}},typeof d=="function"&&(o.state={style:c}),qv(o);if(f&&f.length)o.state={style:f[0].style};else if(u){if(typeof d=="function")return o.state={style:u},qv(o);o.state={style:s?vl({},s,u):u}}else o.state={style:{}};return o}return hY(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?vl({},s,c):c};this.state&&d&&(s&&d[s]!==c||!s&&d!==c)&&this.setState(p);return}if(!(EX(i.to,c)&&i.canBegin&&i.isActive)){var m=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=m||u?f:i.to;if(this.state&&d){var y={style:s?vl({},s,v):v};(s&&d[s]!==v||!s&&d!==v)&&this.setState(y)}this.runAnimation(vn(vn({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var o=this,a=i.from,l=i.to,s=i.duration,u=i.easing,c=i.begin,f=i.onAnimationEnd,d=i.onAnimationStart,p=iY(a,l,qX(u),s,this.changeStyle),m=function(){o.stopJSAnimation=p()};this.manager.start([d,c,m,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(v,y,h){if(h===0)return v;var g=y.duration,x=y.easing,E=x===void 0?"ease":x,w=y.style,S=y.properties,O=y.onAnimationEnd,$=h>0?a[h-1]:y,A=S||Object.keys(w);if(typeof E=="function"||E==="spring")return[].concat(Oh(v),[o.runJSAnimation.bind(o,{from:$.style,to:w,duration:g,easing:E}),g]);var C=M_(A,g,E),T=vn(vn(vn({},$.style),w),{},{transition:C});return[].concat(Oh(v),[T,g,O]).filter(IX)};return this.manager.start([s].concat(Oh(a.reduce(p,[c,Math.max(d,l)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=CX());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,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof u=="function"||typeof p=="function"||u==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var v=l?vl({},l,s):s,y=M_(Object.keys(v),a,u);m.start([c,o,vn(vn({},v),{},{transition:y}),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=aY(i,oY),u=_.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 m=p.props,v=m.style,y=v===void 0?{}:v,h=m.className,g=_.cloneElement(p,vn(vn({},s),{},{style:vn(vn({},y),c),className:h}));return g};return u===1?f(_.Children.only(o)):j.createElement("div",null,_.Children.map(o,function(d){return f(d)}))}}]),n}(_.PureComponent);Or.displayName="Animate";Or.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Or.propTypes={from:ce.oneOfType([ce.object,ce.string]),to:ce.oneOfType([ce.object,ce.string]),attributeName:ce.string,duration:ce.number,begin:ce.number,easing:ce.oneOfType([ce.string,ce.func]),steps:ce.arrayOf(ce.shape({duration:ce.number.isRequired,style:ce.object.isRequired,easing:ce.oneOfType([ce.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ce.func]),properties:ce.arrayOf("string"),onAnimationEnd:ce.func})),children:ce.oneOfType([ce.node,ce.func]),isActive:ce.bool,canBegin:ce.bool,onAnimationEnd:ce.func,shouldReAnimate:ce.bool,onAnimationStart:ce.func,onAnimationReStart:ce.func};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 Ef(){return Ef=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},Ef.apply(this,arguments)}function xY(e,t){return SY(e)||_Y(e,t)||wY(e,t)||bY()}function bY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
221
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wY(e,t){if(e){if(typeof e=="string")return B_(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 B_(e,t)}}function B_(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 _Y(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 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 U_(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){EY(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 EY(e,t,n){return t=OY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OY(e){var t=$Y(e,"string");return Ss(t)=="symbol"?t:t+""}function $Y(e,t){if(Ss(e)!="object"||!e)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 H_=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,`,
222
222
  `).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,`,
223
223
  `).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,`,
224
224
  `).concat(t,",").concat(n+i-l*f[3])),c+="Z"}else if(a>0&&o===+o&&o>0){var m=Math.min(a,o);c="M ".concat(t,",").concat(n+l*m,`
@@ -228,23 +228,23 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
228
228
  L `).concat(t+r,",").concat(n+i-l*m,`
229
229
  A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t+r-s*m,",").concat(n+i,`
230
230
  L `).concat(t+s*m,",").concat(n+i,`
231
- A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t,",").concat(n+i-l*m," Z")}else c="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return c},LY=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},DY={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},z0=function(t){var n=WS(WS({},DY),t),r=S.useRef(),i=S.useState(-1),o=TY(i,2),a=o[0],l=o[1];S.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var O=r.current.getTotalLength();O&&l(O)}catch{}},[]);var s=n.x,u=n.y,c=n.width,f=n.height,d=n.radius,p=n.className,m=n.animationEasing,v=n.animationDuration,y=n.animationBegin,h=n.isAnimationActive,g=n.isUpdateAnimationActive;if(s!==+s||u!==+u||c!==+c||f!==+f||c===0||f===0)return null;var x=se("recharts-rectangle",p);return g?j.createElement(Er,{canBegin:a>0,from:{width:c,height:f,x:s,y:u},to:{width:c,height:f,x:s,y:u},duration:v,animationEasing:m,isActive:g},function(O){var w=O.width,_=O.height,E=O.x,$=O.y;return j.createElement(Er,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:v,isActive:h,easing:m},j.createElement("path",Ef({},ee(n,!0),{className:x,d:VS(E,$,w,_,d),ref:r})))}):j.createElement("path",Ef({},ee(n,!0),{className:x,d:VS(s,u,c,f,d)}))},FY=["points","className","baseLinePoints","connectNulls"];function $o(){return $o=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},$o.apply(this,arguments)}function BY(e,t){if(e==null)return{};var n=zY(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 zY(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 KS(e){return VY(e)||WY(e)||HY(e)||UY()}function UY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
232
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HY(e,t){if(e){if(typeof e=="string")return Qv(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 Qv(e,t)}}function WY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function VY(e){if(Array.isArray(e))return Qv(e)}function Qv(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 qS=function(t){return t&&t.x===+t.x&&t.y===+t.y},KY=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){qS(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),qS(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},kl=function(t,n){var r=KY(t);n&&(r=[r.reduce(function(o,a){return[].concat(KS(o),KS(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},qY=function(t,n,r){var i=kl(t,r);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(kl(n.reverse(),r).slice(1))},GY=function(t){var n=t.points,r=t.className,i=t.baseLinePoints,o=t.connectNulls,a=BY(t,FY);if(!n||!n.length)return null;var l=se("recharts-polygon",r);if(i&&i.length){var s=a.stroke&&a.stroke!=="none",u=qY(n,i,o);return j.createElement("g",{className:l},j.createElement("path",$o({},ee(a,!0),{fill:u.slice(-1)==="Z"?a.fill:"none",stroke:"none",d:u})),s?j.createElement("path",$o({},ee(a,!0),{fill:"none",d:kl(n,o)})):null,s?j.createElement("path",$o({},ee(a,!0),{fill:"none",d:kl(i,o)})):null)}var c=kl(n,o);return j.createElement("path",$o({},ee(a,!0),{fill:c.slice(-1)==="Z"?a.fill:"none",className:l,d:c}))};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)}var U0=function(t){var n=t.cx,r=t.cy,i=t.r,o=t.className,a=se("recharts-dot",o);return n===+n&&r===+r&&i===+i?j.createElement("circle",Zv({},ee(t,!1),Kc(t),{className:a,cx:n,cy:r,r:i})):null};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)}var XY=["x","y","top","left","width","height","className"];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 GS(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 YY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GS(Object(n),!0).forEach(function(r){QY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QY(e,t,n){return t=ZY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZY(e){var t=JY(e,"string");return Os(t)=="symbol"?t:t+""}function JY(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 eQ(e,t){if(e==null)return{};var n=tQ(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 tQ(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 nQ=function(t,n,r,i,o,a){return"M".concat(t,",").concat(o,"v").concat(i,"M").concat(a,",").concat(n,"h").concat(r)},rQ=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,m=t.className,v=eQ(t,XY),y=YY({x:r,y:o,top:l,left:u,width:f,height:p},v);return!K(r)||!K(o)||!K(f)||!K(p)||!K(l)||!K(u)?null:j.createElement("path",Jv({},ee(y,!0),{className:se("recharts-cross",m),d:nQ(r,o,f,p,l,u)}))},iQ=Jd,oQ=_T,aQ=li;function lQ(e,t){return e&&e.length?iQ(e,aQ(t),oQ):void 0}var sQ=lQ;const uQ=he(sQ);var cQ=Jd,fQ=li,dQ=OT;function pQ(e,t){return e&&e.length?cQ(e,fQ(t),dQ):void 0}var hQ=pQ;const mQ=he(hQ);var vQ=["cx","cy","angle","ticks","axisLine"],gQ=["ticks","tick","angle","tickFormatter","stroke"];function ia(e){"@babel/helpers - typeof";return ia=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},ia(e)}function Nl(){return Nl=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},Nl.apply(this,arguments)}function XS(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 mi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XS(Object(n),!0).forEach(function(r){op(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YS(e,t){if(e==null)return{};var n=yQ(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 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}function xQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QS(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,cj(r.key),r)}}function bQ(e,t,n){return t&&QS(e.prototype,t),n&&QS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function wQ(e,t,n){return t=$f(t),SQ(e,uj()?Reflect.construct(t,n||[],$f(e).constructor):t.apply(e,n))}function SQ(e,t){if(t&&(ia(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _Q(e)}function _Q(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uj=function(){return!!e})()}function $f(e){return $f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$f(e)}function OQ(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 op(e,t,n){return t=cj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cj(e){var t=EQ(e,"string");return ia(t)=="symbol"?t:t+""}function EQ(e,t){if(ia(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ia(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ap=function(e){function t(){return xQ(this,t),wQ(this,t,arguments)}return OQ(t,e),bQ(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=uQ(l,function(c){return c.coordinate||0}),u=mQ(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=YS(r,vQ),c=l.reduce(function(m,v){return[Math.min(m[0],v.coordinate),Math.max(m[1],v.coordinate)]},[1/0,-1/0]),f=Se(i,o,c[0],a),d=Se(i,o,c[1],a),p=mi(mi(mi({},ee(u,!1)),{},{fill:"none"},ee(s,!1)),{},{x1:f.x,y1:f.y,x2:d.x,y2:d.y});return j.createElement("line",Nl({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=YS(i,gQ),f=this.getTickTextAnchor(),d=ee(c,!1),p=ee(a,!1),m=o.map(function(v,y){var h=r.getTickValueCoord(v),g=mi(mi(mi(mi({textAnchor:f,transform:"rotate(".concat(90-l,", ").concat(h.x,", ").concat(h.y,")")},d),{},{stroke:"none",fill:u},p),{},{index:y},h),{},{payload:v});return j.createElement($e,Nl({className:se("recharts-polar-radius-axis-tick",qT(a)),key:"tick-".concat(v.coordinate)},Gs(r.props,v,y)),t.renderTickItem(a,g,s?s(v.value,y):v.value))});return j.createElement($e,{className:"recharts-polar-radius-axis-ticks"},m)}},{key:"render",value:function(){var r=this.props,i=r.ticks,o=r.axisLine,a=r.tick;return!i||!i.length?null:j.createElement($e,{className:se("recharts-polar-radius-axis",this.props.className)},o&&this.renderAxisLine(),a&&this.renderTicks(),ot.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,i,o){var a;return j.isValidElement(r)?a=j.cloneElement(r,i):J(r)?a=r(i):a=j.createElement(Qo,Nl({},i,{className:"recharts-polar-radius-axis-tick-value"}),o),a}}])}(S.PureComponent);op(ap,"displayName","PolarRadiusAxis");op(ap,"axisType","radiusAxis");op(ap,"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 oa(e){"@babel/helpers - typeof";return oa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oa(e)}function _i(){return _i=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},_i.apply(this,arguments)}function ZS(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 vi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZS(Object(n),!0).forEach(function(r){lp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $Q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JS(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,dj(r.key),r)}}function PQ(e,t,n){return t&&JS(e.prototype,t),n&&JS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function AQ(e,t,n){return t=Pf(t),TQ(e,fj()?Reflect.construct(t,n||[],Pf(e).constructor):t.apply(e,n))}function TQ(e,t){if(t&&(oa(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jQ(e)}function jQ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fj=function(){return!!e})()}function Pf(e){return Pf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Pf(e)}function CQ(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&&tg(e,t)}function tg(e,t){return tg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},tg(e,t)}function lp(e,t,n){return t=dj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dj(e){var t=kQ(e,"string");return oa(t)=="symbol"?t:t+""}function kQ(e,t){if(oa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(oa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var NQ=Math.PI/180,e_=1e-5,sp=function(e){function t(){return $Q(this,t),AQ(this,t,arguments)}return CQ(t,e),PQ(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*NQ),a;return o>e_?a=i==="outer"?"start":"end":o<-e_?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=vi(vi({},ee(this.props,!1)),{},{fill:"none"},ee(l,!1));if(s==="circle")return j.createElement(U0,_i({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(GY,_i({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=ee(this.props,!1),f=ee(a,!1),d=vi(vi({},c),{},{fill:"none"},ee(l,!1)),p=o.map(function(m,v){var y=r.getTickLineCoord(m),h=r.getTickTextAnchor(m),g=vi(vi(vi({textAnchor:h},c),{},{stroke:"none",fill:u},f),{},{index:v,payload:m,x:y.x2,y:y.y2});return j.createElement($e,_i({className:se("recharts-polar-angle-axis-tick",qT(a)),key:"tick-".concat(m.coordinate)},Gs(r.props,m,v)),l&&j.createElement("line",_i({className:"recharts-polar-angle-axis-tick-line"},d,y)),a&&t.renderTickItem(a,g,s?s(m.value,v):m.value))});return j.createElement($e,{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($e,{className:se("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):J(r)?a=r(i):a=j.createElement(Qo,_i({},i,{className:"recharts-polar-angle-axis-tick-value"}),o),a}}])}(S.PureComponent);lp(sp,"displayName","PolarAngleAxis");lp(sp,"axisType","angleAxis");lp(sp,"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 MQ=mA,IQ=MQ(Object.getPrototypeOf,Object),H0=IQ,RQ=Tr,LQ=H0,DQ=Tn,FQ="[object Object]",BQ=Function.prototype,zQ=Object.prototype,pj=BQ.toString,UQ=zQ.hasOwnProperty,HQ=pj.call(Object);function WQ(e){if(!DQ(e)||RQ(e)!=FQ)return!1;var t=LQ(e);if(t===null)return!0;var n=UQ.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&pj.call(n)==HQ}var hj=WQ;const VQ=he(hj);var KQ=Tr,qQ=Tn,GQ="[object Boolean]";function XQ(e){return e===!0||e===!1||qQ(e)&&KQ(e)==GQ}var YQ=XQ;const QQ=he(YQ);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 Af(){return Af=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},Af.apply(this,arguments)}function ZQ(e,t){return nZ(e)||tZ(e,t)||eZ(e,t)||JQ()}function JQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
233
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eZ(e,t){if(e){if(typeof e=="string")return t_(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 t_(e,t)}}function t_(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 tZ(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 nZ(e){if(Array.isArray(e))return e}function n_(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 r_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?n_(Object(n),!0).forEach(function(r){rZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rZ(e,t,n){return t=iZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iZ(e){var t=oZ(e,"string");return Es(t)=="symbol"?t:t+""}function oZ(e,t){if(Es(e)!="object"||!e)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)}var i_=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},aZ={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},lZ=function(t){var n=r_(r_({},aZ),t),r=S.useRef(),i=S.useState(-1),o=ZQ(i,2),a=o[0],l=o[1];S.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,m=n.animationEasing,v=n.animationDuration,y=n.animationBegin,h=n.isUpdateAnimationActive;if(s!==+s||u!==+u||c!==+c||f!==+f||d!==+d||c===0&&f===0||d===0)return null;var g=se("recharts-trapezoid",p);return h?j.createElement(Er,{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:v,animationEasing:m,isActive:h},function(x){var O=x.upperWidth,w=x.lowerWidth,_=x.height,E=x.x,$=x.y;return j.createElement(Er,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:v,easing:m},j.createElement("path",Af({},ee(n,!0),{className:g,d:i_(E,$,O,w,_),ref:r})))}):j.createElement("g",null,j.createElement("path",Af({},ee(n,!0),{className:g,d:i_(s,u,c,f,d)})))},sZ=["option","shapeType","propTransformer","activeClassName","isActive"];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 uZ(e,t){if(e==null)return{};var n=cZ(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 cZ(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,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 Tf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o_(Object(n),!0).forEach(function(r){fZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fZ(e,t,n){return t=dZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dZ(e){var t=pZ(e,"string");return $s(t)=="symbol"?t:t+""}function pZ(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 hZ(e,t){return Tf(Tf({},t),e)}function mZ(e,t){return e==="symbols"}function a_(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return j.createElement(z0,n);case"trapezoid":return j.createElement(lZ,n);case"sector":return j.createElement(QT,n);case"symbols":if(mZ(t))return j.createElement(Qy,n);break;default:return null}}function mj(e){return S.isValidElement(e)?e.props:e}function vj(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?hZ:r,o=e.activeClassName,a=o===void 0?"recharts-active-shape":o,l=e.isActive,s=uZ(e,sZ),u;if(S.isValidElement(t))u=S.cloneElement(t,Tf(Tf({},s),mj(t)));else if(J(t))u=t(s);else if(VQ(t)&&!QQ(t)){var c=i(t,s);u=j.createElement(a_,{shapeType:n,elementProps:c})}else{var f=s;u=j.createElement(a_,{shapeType:n,elementProps:f})}return l?j.createElement($e,{className:a},u):u}function up(e,t){return t!=null&&"trapezoids"in e.props}function cp(e,t){return t!=null&&"sectors"in e.props}function Ps(e,t){return t!=null&&"points"in e.props}function vZ(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 gZ(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function yZ(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function xZ(e,t){var n;return up(e,t)?n=vZ:cp(e,t)?n=gZ:Ps(e,t)&&(n=yZ),n}function bZ(e,t){var n;return up(e,t)?n="trapezoids":cp(e,t)?n="sectors":Ps(e,t)&&(n="points"),n}function wZ(e,t){if(up(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(cp(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 Ps(e,t)?t.payload:{}}function SZ(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=bZ(n,t),o=wZ(n,t),a=r.filter(function(s,u){var c=np(o,s),f=n.props[i].filter(function(m){var v=xZ(n,t);return v(m,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 hc;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 Po(){return Po=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},Po.apply(this,arguments)}function l_(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?l_(Object(n),!0).forEach(function(r){tn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _Z(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,yj(r.key),r)}}function OZ(e,t,n){return t&&s_(e.prototype,t),n&&s_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function EZ(e,t,n){return t=jf(t),$Z(e,gj()?Reflect.construct(t,n||[],jf(e).constructor):t.apply(e,n))}function $Z(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 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 gj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gj=function(){return!!e})()}function jf(e){return jf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jf(e)}function AZ(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 tn(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=TZ(e,"string");return aa(t)=="symbol"?t:t+""}function TZ(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 Kt=function(e){function t(n){var r;return _Z(this,t),r=EZ(this,t,[n]),tn(r,"pieRef",null),tn(r,"sectorRefs",[]),tn(r,"id",Dd("recharts-pie-")),tn(r,"handleAnimationEnd",function(){var i=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),J(i)&&i()}),tn(r,"handleAnimationStart",function(){var i=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),J(i)&&i()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return AZ(t,e),OZ(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=ee(this.props,!1),f=ee(a,!1),d=ee(l,!1),p=a&&a.offsetRadius||20,m=r.map(function(v,y){var h=(v.startAngle+v.endAngle)/2,g=Se(v.cx,v.cy,v.outerRadius+p,h),x=xe(xe(xe(xe({},c),v),{},{stroke:"none"},f),{},{index:y,textAnchor:t.getTextAnchor(g.x,v.cx)},g),O=xe(xe(xe(xe({},c),v),{},{fill:"none",stroke:v.fill},d),{},{index:y,points:[Se(v.cx,v.cy,v.outerRadius,h),g]}),w=s;return oe(s)&&oe(u)?w="value":oe(s)&&(w=u),j.createElement($e,{key:"label-".concat(v.startAngle,"-").concat(v.endAngle,"-").concat(v.midAngle,"-").concat(y)},l&&t.renderLabelLineItem(l,O,"line"),t.renderLabelItem(a,x,at(v,w)))});return j.createElement($e,{className:"recharts-pie-labels"},m)}},{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,m=xe(xe({},u),{},{stroke:l?u.fill:u.stroke,tabIndex:-1});return j.createElement($e,Po({ref:function(y){y&&!i.sectorRefs.includes(y)&&i.sectorRefs.push(y)},tabIndex:-1,className:"recharts-pie-sector"},Gs(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,Po({option:p,isActive:f,shapeType:"sector"},m)))})}},{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(Er,{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(m){var v=m.t,y=[],h=o&&o[0],g=h.startAngle;return o.forEach(function(x,O){var w=d&&d[O],_=O>0?On(x,"paddingAngle",0):0;if(w){var E=Yt(w.endAngle-w.startAngle,x.endAngle-x.startAngle),$=xe(xe({},x),{},{startAngle:g+_,endAngle:g+E(v)+_});y.push($),g=$.endAngle}else{var A=x.endAngle,C=x.startAngle,T=Yt(0,A-C),N=T(v),R=xe(xe({},x),{},{startAngle:g+_,endAngle:g+N+_});y.push(R),g=R.endAngle}}),j.createElement($e,null,r.renderSectorsStatically(y))})}},{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||!np(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,m=this.state.isAnimationFinished;if(o||!a||!a.length||!K(u)||!K(c)||!K(f)||!K(d))return null;var v=se("recharts-pie",l);return j.createElement($e,{tabIndex:this.props.rootTabIndex,className:v,ref:function(h){r.pieRef=h}},this.renderSectors(),s&&this.renderLabels(a),ot.renderCallByParent(this.props,null,!1),(!p||m)&&mr.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(J(r))return r(i);var a=se("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return j.createElement(zv,Po({},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(J(r)&&(a=r(i),j.isValidElement(a)))return a;var l=se("recharts-pie-label-text",typeof r!="boolean"&&!J(r)?r.className:"");return j.createElement(Qo,Po({},i,{alignmentBaseline:"middle",className:l}),a)}}])}(S.PureComponent);hc=Kt;tn(Kt,"displayName","Pie");tn(Kt,"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:!Xr.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});tn(Kt,"parseDeltaAngle",function(e,t){var n=rn(t-e),r=Math.min(Math.abs(t-e),360);return n*r});tn(Kt,"getRealPieData",function(e){var t=e.data,n=e.children,r=ee(e,!1),i=En(n,h0);return t&&t.length?t.map(function(o,a){return xe(xe(xe({payload:o},r),o),i&&i[a]&&i[a].props)}):i&&i.length?i.map(function(o){return xe(xe({},r),o.props)}):[]});tn(Kt,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,i=t.width,o=t.height,a=KT(i,o),l=r+Tt(e.cx,i,i/2),s=n+Tt(e.cy,o,o/2),u=Tt(e.innerRadius,a,0),c=Tt(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}});tn(Kt,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?xe(xe({},t.type.defaultProps),t.props):t.props,i=hc.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),m=hc.parseCoordinateOfPie(r,n),v=hc.parseDeltaAngle(a,l),y=Math.abs(v),h=u;oe(u)&&oe(f)?(pr(!1,`Use "dataKey" to specify the value of pie,
231
+ A `).concat(m,",").concat(m,",0,0,").concat(u,",").concat(t,",").concat(n+i-l*m," Z")}else c="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return c},PY=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},AY={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},F0=function(t){var n=U_(U_({},AY),t),r=_.useRef(),i=_.useState(-1),o=xY(i,2),a=o[0],l=o[1];_.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,m=n.animationEasing,v=n.animationDuration,y=n.animationBegin,h=n.isAnimationActive,g=n.isUpdateAnimationActive;if(s!==+s||u!==+u||c!==+c||f!==+f||c===0||f===0)return null;var x=se("recharts-rectangle",p);return g?j.createElement(Or,{canBegin:a>0,from:{width:c,height:f,x:s,y:u},to:{width:c,height:f,x:s,y:u},duration:v,animationEasing:m,isActive:g},function(E){var w=E.width,S=E.height,O=E.x,$=E.y;return j.createElement(Or,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:v,isActive:h,easing:m},j.createElement("path",Ef({},ee(n,!0),{className:x,d:H_(O,$,w,S,d),ref:r})))}):j.createElement("path",Ef({},ee(n,!0),{className:x,d:H_(s,u,c,f,d)}))},TY=["points","className","baseLinePoints","connectNulls"];function $o(){return $o=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},$o.apply(this,arguments)}function jY(e,t){if(e==null)return{};var n=CY(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 CY(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 W_(e){return IY(e)||MY(e)||NY(e)||kY()}function kY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
232
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NY(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 MY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function IY(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 V_=function(t){return t&&t.x===+t.x&&t.y===+t.y},RY=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){V_(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),V_(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},kl=function(t,n){var r=RY(t);n&&(r=[r.reduce(function(o,a){return[].concat(W_(o),W_(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},LY=function(t,n,r){var i=kl(t,r);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(kl(n.reverse(),r).slice(1))},DY=function(t){var n=t.points,r=t.className,i=t.baseLinePoints,o=t.connectNulls,a=jY(t,TY);if(!n||!n.length)return null;var l=se("recharts-polygon",r);if(i&&i.length){var s=a.stroke&&a.stroke!=="none",u=LY(n,i,o);return j.createElement("g",{className:l},j.createElement("path",$o({},ee(a,!0),{fill:u.slice(-1)==="Z"?a.fill:"none",stroke:"none",d:u})),s?j.createElement("path",$o({},ee(a,!0),{fill:"none",d:kl(n,o)})):null,s?j.createElement("path",$o({},ee(a,!0),{fill:"none",d:kl(i,o)})):null)}var c=kl(n,o);return j.createElement("path",$o({},ee(a,!0),{fill:c.slice(-1)==="Z"?a.fill:"none",className:l,d:c}))};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 B0=function(t){var n=t.cx,r=t.cy,i=t.r,o=t.className,a=se("recharts-dot",o);return n===+n&&r===+r&&i===+i?j.createElement("circle",Yv({},ee(t,!1),Vc(t),{className:a,cx:n,cy:r,r: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)}var FY=["x","y","top","left","width","height","className"];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 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 BY(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){zY(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 zY(e,t,n){return t=UY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UY(e){var t=HY(e,"string");return Es(t)=="symbol"?t:t+""}function HY(e,t){if(Es(e)!="object"||!e)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 WY(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}var KY=function(t,n,r,i,o,a){return"M".concat(t,",").concat(o,"v").concat(i,"M").concat(a,",").concat(n,"h").concat(r)},qY=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,m=t.className,v=WY(t,FY),y=BY({x:r,y:o,top:l,left:u,width:f,height:p},v);return!K(r)||!K(o)||!K(f)||!K(p)||!K(l)||!K(u)?null:j.createElement("path",Qv({},ee(y,!0),{className:se("recharts-cross",m),d:KY(r,o,f,p,l,u)}))},GY=Zd,XY=wT,YY=ai;function QY(e,t){return e&&e.length?GY(e,YY(t),XY):void 0}var ZY=QY;const JY=he(ZY);var eQ=Zd,tQ=ai,nQ=_T;function rQ(e,t){return e&&e.length?eQ(e,tQ(t),nQ):void 0}var iQ=rQ;const oQ=he(iQ);var aQ=["cx","cy","angle","ticks","axisLine"],lQ=["ticks","tick","angle","tickFormatter","stroke"];function ia(e){"@babel/helpers - typeof";return ia=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},ia(e)}function Nl(){return Nl=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},Nl.apply(this,arguments)}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 hi(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){ip(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 G_(e,t){if(e==null)return{};var n=sQ(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 sQ(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 uQ(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,s2(r.key),r)}}function cQ(e,t,n){return t&&X_(e.prototype,t),n&&X_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function fQ(e,t,n){return t=Of(t),dQ(e,l2()?Reflect.construct(t,n||[],Of(e).constructor):t.apply(e,n))}function dQ(e,t){if(t&&(ia(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pQ(e)}function pQ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l2=function(){return!!e})()}function Of(e){return Of=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Of(e)}function hQ(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 ip(e,t,n){return t=s2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s2(e){var t=mQ(e,"string");return ia(t)=="symbol"?t:t+""}function mQ(e,t){if(ia(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ia(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var op=function(e){function t(){return uQ(this,t),fQ(this,t,arguments)}return hQ(t,e),cQ(t,[{key:"getTickValueCoord",value:function(r){var i=r.coordinate,o=this.props,a=o.angle,l=o.cx,s=o.cy;return _e(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=JY(l,function(c){return c.coordinate||0}),u=oQ(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=G_(r,aQ),c=l.reduce(function(m,v){return[Math.min(m[0],v.coordinate),Math.max(m[1],v.coordinate)]},[1/0,-1/0]),f=_e(i,o,c[0],a),d=_e(i,o,c[1],a),p=hi(hi(hi({},ee(u,!1)),{},{fill:"none"},ee(s,!1)),{},{x1:f.x,y1:f.y,x2:d.x,y2:d.y});return j.createElement("line",Nl({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=G_(i,lQ),f=this.getTickTextAnchor(),d=ee(c,!1),p=ee(a,!1),m=o.map(function(v,y){var h=r.getTickValueCoord(v),g=hi(hi(hi(hi({textAnchor:f,transform:"rotate(".concat(90-l,", ").concat(h.x,", ").concat(h.y,")")},d),{},{stroke:"none",fill:u},p),{},{index:y},h),{},{payload:v});return j.createElement($e,Nl({className:se("recharts-polar-radius-axis-tick",VT(a)),key:"tick-".concat(v.coordinate)},Gs(r.props,v,y)),t.renderTickItem(a,g,s?s(v.value,y):v.value))});return j.createElement($e,{className:"recharts-polar-radius-axis-ticks"},m)}},{key:"render",value:function(){var r=this.props,i=r.ticks,o=r.axisLine,a=r.tick;return!i||!i.length?null:j.createElement($e,{className:se("recharts-polar-radius-axis",this.props.className)},o&&this.renderAxisLine(),a&&this.renderTicks(),ot.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,i,o){var a;return j.isValidElement(r)?a=j.cloneElement(r,i):J(r)?a=r(i):a=j.createElement(Qo,Nl({},i,{className:"recharts-polar-radius-axis-tick-value"}),o),a}}])}(_.PureComponent);ip(op,"displayName","PolarRadiusAxis");ip(op,"axisType","radiusAxis");ip(op,"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 oa(e){"@babel/helpers - typeof";return oa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oa(e)}function _i(){return _i=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},_i.apply(this,arguments)}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 mi(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){ap(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 vQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q_(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 gQ(e,t,n){return t&&Q_(e.prototype,t),n&&Q_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yQ(e,t,n){return t=$f(t),xQ(e,u2()?Reflect.construct(t,n||[],$f(e).constructor):t.apply(e,n))}function xQ(e,t){if(t&&(oa(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bQ(e)}function bQ(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 $f(e){return $f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$f(e)}function wQ(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 ap(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=_Q(e,"string");return oa(t)=="symbol"?t:t+""}function _Q(e,t){if(oa(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(oa(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var SQ=Math.PI/180,Z_=1e-5,lp=function(e){function t(){return vQ(this,t),yQ(this,t,arguments)}return wQ(t,e),gQ(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=_e(o,a,l,r.coordinate),d=_e(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>Z_?a=i==="outer"?"start":"end":o<-Z_?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=mi(mi({},ee(this.props,!1)),{},{fill:"none"},ee(l,!1));if(s==="circle")return j.createElement(B0,_i({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:o,r:a}));var c=this.props.ticks,f=c.map(function(d){return _e(i,o,a,d.coordinate)});return j.createElement(DY,_i({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=ee(this.props,!1),f=ee(a,!1),d=mi(mi({},c),{},{fill:"none"},ee(l,!1)),p=o.map(function(m,v){var y=r.getTickLineCoord(m),h=r.getTickTextAnchor(m),g=mi(mi(mi({textAnchor:h},c),{},{stroke:"none",fill:u},f),{},{index:v,payload:m,x:y.x2,y:y.y2});return j.createElement($e,_i({className:se("recharts-polar-angle-axis-tick",VT(a)),key:"tick-".concat(m.coordinate)},Gs(r.props,m,v)),l&&j.createElement("line",_i({className:"recharts-polar-angle-axis-tick-line"},d,y)),a&&t.renderTickItem(a,g,s?s(m.value,v):m.value))});return j.createElement($e,{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($e,{className:se("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):J(r)?a=r(i):a=j.createElement(Qo,_i({},i,{className:"recharts-polar-angle-axis-tick-value"}),o),a}}])}(_.PureComponent);ap(lp,"displayName","PolarAngleAxis");ap(lp,"axisType","angleAxis");ap(lp,"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 EQ=pA,OQ=EQ(Object.getPrototypeOf,Object),z0=OQ,$Q=Tr,PQ=z0,AQ=Tn,TQ="[object Object]",jQ=Function.prototype,CQ=Object.prototype,f2=jQ.toString,kQ=CQ.hasOwnProperty,NQ=f2.call(Object);function MQ(e){if(!AQ(e)||$Q(e)!=TQ)return!1;var t=PQ(e);if(t===null)return!0;var n=kQ.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&f2.call(n)==NQ}var d2=MQ;const IQ=he(d2);var RQ=Tr,LQ=Tn,DQ="[object Boolean]";function FQ(e){return e===!0||e===!1||LQ(e)&&RQ(e)==DQ}var BQ=FQ;const zQ=he(BQ);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 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 UQ(e,t){return KQ(e)||VQ(e,t)||WQ(e,t)||HQ()}function HQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
233
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WQ(e,t){if(e){if(typeof e=="string")return J_(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 J_(e,t)}}function J_(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 VQ(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 KQ(e){if(Array.isArray(e))return e}function eS(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 tS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eS(Object(n),!0).forEach(function(r){qQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qQ(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=XQ(e,"string");return Os(t)=="symbol"?t:t+""}function XQ(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 nS=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},YQ={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},QQ=function(t){var n=tS(tS({},YQ),t),r=_.useRef(),i=_.useState(-1),o=UQ(i,2),a=o[0],l=o[1];_.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,m=n.animationEasing,v=n.animationDuration,y=n.animationBegin,h=n.isUpdateAnimationActive;if(s!==+s||u!==+u||c!==+c||f!==+f||d!==+d||c===0&&f===0||d===0)return null;var g=se("recharts-trapezoid",p);return h?j.createElement(Or,{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:v,animationEasing:m,isActive:h},function(x){var E=x.upperWidth,w=x.lowerWidth,S=x.height,O=x.x,$=x.y;return j.createElement(Or,{canBegin:a>0,from:"0px ".concat(a===-1?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:v,easing:m},j.createElement("path",Pf({},ee(n,!0),{className:g,d:nS(O,$,E,w,S),ref:r})))}):j.createElement("g",null,j.createElement("path",Pf({},ee(n,!0),{className:g,d:nS(s,u,c,f,d)})))},ZQ=["option","shapeType","propTransformer","activeClassName","isActive"];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 JQ(e,t){if(e==null)return{};var n=eZ(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 eZ(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 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 Af(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){tZ(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 tZ(e,t,n){return t=nZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nZ(e){var t=rZ(e,"string");return $s(t)=="symbol"?t:t+""}function rZ(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 iZ(e,t){return Af(Af({},t),e)}function oZ(e,t){return e==="symbols"}function iS(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return j.createElement(F0,n);case"trapezoid":return j.createElement(QQ,n);case"sector":return j.createElement(XT,n);case"symbols":if(oZ(t))return j.createElement(Xy,n);break;default:return null}}function p2(e){return _.isValidElement(e)?e.props:e}function h2(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?iZ:r,o=e.activeClassName,a=o===void 0?"recharts-active-shape":o,l=e.isActive,s=JQ(e,ZQ),u;if(_.isValidElement(t))u=_.cloneElement(t,Af(Af({},s),p2(t)));else if(J(t))u=t(s);else if(IQ(t)&&!zQ(t)){var c=i(t,s);u=j.createElement(iS,{shapeType:n,elementProps:c})}else{var f=s;u=j.createElement(iS,{shapeType:n,elementProps:f})}return l?j.createElement($e,{className:a},u):u}function sp(e,t){return t!=null&&"trapezoids"in e.props}function up(e,t){return t!=null&&"sectors"in e.props}function Ps(e,t){return t!=null&&"points"in e.props}function aZ(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 lZ(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function sZ(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function uZ(e,t){var n;return sp(e,t)?n=aZ:up(e,t)?n=lZ:Ps(e,t)&&(n=sZ),n}function cZ(e,t){var n;return sp(e,t)?n="trapezoids":up(e,t)?n="sectors":Ps(e,t)&&(n="points"),n}function fZ(e,t){if(sp(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(up(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 Ps(e,t)?t.payload:{}}function dZ(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=cZ(n,t),o=fZ(n,t),a=r.filter(function(s,u){var c=tp(o,s),f=n.props[i].filter(function(m){var v=uZ(n,t);return v(m,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 pc;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 Po(){return Po=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},Po.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 xe(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){tn(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 pZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aS(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,v2(r.key),r)}}function hZ(e,t,n){return t&&aS(e.prototype,t),n&&aS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function mZ(e,t,n){return t=Tf(t),vZ(e,m2()?Reflect.construct(t,n||[],Tf(e).constructor):t.apply(e,n))}function vZ(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 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 m2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(m2=function(){return!!e})()}function Tf(e){return Tf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Tf(e)}function yZ(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 tn(e,t,n){return t=v2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v2(e){var t=xZ(e,"string");return aa(t)=="symbol"?t:t+""}function xZ(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 Kt=function(e){function t(n){var r;return pZ(this,t),r=mZ(this,t,[n]),tn(r,"pieRef",null),tn(r,"sectorRefs",[]),tn(r,"id",Ld("recharts-pie-")),tn(r,"handleAnimationEnd",function(){var i=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),J(i)&&i()}),tn(r,"handleAnimationStart",function(){var i=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),J(i)&&i()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return yZ(t,e),hZ(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=ee(this.props,!1),f=ee(a,!1),d=ee(l,!1),p=a&&a.offsetRadius||20,m=r.map(function(v,y){var h=(v.startAngle+v.endAngle)/2,g=_e(v.cx,v.cy,v.outerRadius+p,h),x=xe(xe(xe(xe({},c),v),{},{stroke:"none"},f),{},{index:y,textAnchor:t.getTextAnchor(g.x,v.cx)},g),E=xe(xe(xe(xe({},c),v),{},{fill:"none",stroke:v.fill},d),{},{index:y,points:[_e(v.cx,v.cy,v.outerRadius,h),g]}),w=s;return oe(s)&&oe(u)?w="value":oe(s)&&(w=u),j.createElement($e,{key:"label-".concat(v.startAngle,"-").concat(v.endAngle,"-").concat(v.midAngle,"-").concat(y)},l&&t.renderLabelLineItem(l,E,"line"),t.renderLabelItem(a,x,at(v,w)))});return j.createElement($e,{className:"recharts-pie-labels"},m)}},{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,m=xe(xe({},u),{},{stroke:l?u.fill:u.stroke,tabIndex:-1});return j.createElement($e,Po({ref:function(y){y&&!i.sectorRefs.includes(y)&&i.sectorRefs.push(y)},tabIndex:-1,className:"recharts-pie-sector"},Gs(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(h2,Po({option:p,isActive:f,shapeType:"sector"},m)))})}},{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(Or,{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(m){var v=m.t,y=[],h=o&&o[0],g=h.startAngle;return o.forEach(function(x,E){var w=d&&d[E],S=E>0?En(x,"paddingAngle",0):0;if(w){var O=Yt(w.endAngle-w.startAngle,x.endAngle-x.startAngle),$=xe(xe({},x),{},{startAngle:g+S,endAngle:g+O(v)+S});y.push($),g=$.endAngle}else{var A=x.endAngle,C=x.startAngle,T=Yt(0,A-C),N=T(v),R=xe(xe({},x),{},{startAngle:g+S,endAngle:g+N+S});y.push(R),g=R.endAngle}}),j.createElement($e,null,r.renderSectorsStatically(y))})}},{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||!tp(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,m=this.state.isAnimationFinished;if(o||!a||!a.length||!K(u)||!K(c)||!K(f)||!K(d))return null;var v=se("recharts-pie",l);return j.createElement($e,{tabIndex:this.props.rootTabIndex,className:v,ref:function(h){r.pieRef=h}},this.renderSectors(),s&&this.renderLabels(a),ot.renderCallByParent(this.props,null,!1),(!p||m)&&mr.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(J(r))return r(i);var a=se("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return j.createElement(Fv,Po({},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(J(r)&&(a=r(i),j.isValidElement(a)))return a;var l=se("recharts-pie-label-text",typeof r!="boolean"&&!J(r)?r.className:"");return j.createElement(Qo,Po({},i,{alignmentBaseline:"middle",className:l}),a)}}])}(_.PureComponent);pc=Kt;tn(Kt,"displayName","Pie");tn(Kt,"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:!Xr.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});tn(Kt,"parseDeltaAngle",function(e,t){var n=rn(t-e),r=Math.min(Math.abs(t-e),360);return n*r});tn(Kt,"getRealPieData",function(e){var t=e.data,n=e.children,r=ee(e,!1),i=On(n,d0);return t&&t.length?t.map(function(o,a){return xe(xe(xe({payload:o},r),o),i&&i[a]&&i[a].props)}):i&&i.length?i.map(function(o){return xe(xe({},r),o.props)}):[]});tn(Kt,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,i=t.width,o=t.height,a=WT(i,o),l=r+Tt(e.cx,i,i/2),s=n+Tt(e.cy,o,o/2),u=Tt(e.innerRadius,a,0),c=Tt(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}});tn(Kt,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?xe(xe({},t.type.defaultProps),t.props):t.props,i=pc.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),m=pc.parseCoordinateOfPie(r,n),v=pc.parseDeltaAngle(a,l),y=Math.abs(v),h=u;oe(u)&&oe(f)?(pr(!1,`Use "dataKey" to specify the value of pie,
234
234
  the props "valueKey" will be deprecated in 1.1.0`),h="value"):oe(u)&&(pr(!1,`Use "dataKey" to specify the value of pie,
235
- the props "valueKey" will be deprecated in 1.1.0`),h=f);var g=i.filter(function($){return at($,h,0)!==0}).length,x=(y>=360?g:g-1)*s,O=y-g*p-x,w=i.reduce(function($,A){var C=at(A,h,0);return $+(K(C)?C:0)},0),_;if(w>0){var E;_=i.map(function($,A){var C=at($,h,0),T=at($,c,A),N=(K(C)?C:0)/w,R;A?R=E.endAngle+rn(v)*s*(C!==0?1:0):R=a;var D=R+rn(v)*((C!==0?p:0)+N*O),M=(R+D)/2,L=(m.innerRadius+m.outerRadius)/2,I=[{name:T,value:C,payload:$,dataKey:h,type:d}],P=Se(m.cx,m.cy,L,M);return E=xe(xe(xe({percent:N,cornerRadius:o,name:T,tooltipPayload:I,midAngle:M,middleRadius:L,tooltipPosition:P},$),m),{},{value:at($,h),startAngle:R,endAngle:D,payload:$,paddingAngle:rn(v)*s}),E})}return xe(xe({},m),{},{sectors:_,data:i})});var jZ=Math.ceil,CZ=Math.max;function kZ(e,t,n,r){for(var i=-1,o=CZ(jZ((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a}var NZ=kZ,MZ=IA,u_=1/0,IZ=17976931348623157e292;function RZ(e){if(!e)return e===0?e:0;if(e=MZ(e),e===u_||e===-u_){var t=e<0?-1:1;return t*IZ}return e===e?e:0}var LZ=RZ,DZ=NZ,FZ=Kd,Ah=LZ;function BZ(e){return function(t,n,r){return r&&typeof r!="number"&&FZ(t,n,r)&&(n=r=void 0),t=Ah(t),n===void 0?(n=t,t=0):n=Ah(n),r=r===void 0?t<n?1:-1:Ah(r),DZ(t,n,r,e)}}var zZ=BZ,UZ=zZ,HZ=UZ(),WZ=HZ;const Cf=he(WZ);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 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 f_(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){xj(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 xj(e,t,n){return t=VZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VZ(e){var t=KZ(e,"string");return As(t)=="symbol"?t:t+""}function KZ(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 qZ=["Webkit","Moz","O","ms"],GZ=function(t,n){var r=t.replace(/(\w)/,function(o){return o.toUpperCase()}),i=qZ.reduce(function(o,a){return f_(f_({},o),{},xj({},a+r,n))},{});return i[t]=n,i};function la(e){"@babel/helpers - typeof";return la=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},la(e)}function kf(){return kf=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},kf.apply(this,arguments)}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 Th(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){It(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 XZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p_(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 YZ(e,t,n){return t&&p_(e.prototype,t),n&&p_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function QZ(e,t,n){return t=Nf(t),ZZ(e,bj()?Reflect.construct(t,n||[],Nf(e).constructor):t.apply(e,n))}function ZZ(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 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 bj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bj=function(){return!!e})()}function Nf(e){return Nf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Nf(e)}function eJ(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 It(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=tJ(e,"string");return la(t)=="symbol"?t:t+""}function tJ(e,t){if(la(e)!="object"||!e)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)}var nJ=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=Tl().domain(Cf(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}},h_=function(t){return t.changedTouches&&!!t.changedTouches.length},sa=function(e){function t(n){var r;return XZ(this,t),r=QZ(this,t,[n]),It(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),It(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),It(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()}),It(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),It(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),It(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),It(r,"handleSlideDragStart",function(i){var o=h_(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 eJ(t,e),YZ(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),m=t.getIndexInRange(a,d);return{startIndex:p-p%s,endIndex:m===c?c:m-m%s}}},{key:"getTextOfTick",value:function(r){var i=this.props,o=i.data,a=i.tickFormatter,l=i.dataKey,s=at(o[r],l,r);return J(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,m=s.onChange,v=r.pageX-o;v>0?v=Math.min(v,u+c-f-l,u+c-f-a):v<0&&(v=Math.max(v,u-a,u-l));var y=this.getIndex({startX:a+v,endX:l+v});(y.startIndex!==d||y.endIndex!==p)&&m&&m(y),this.setState({startX:a+v,endX:l+v,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var o=h_(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,m=c.onChange,v=c.gap,y=c.data,h={startX:this.state.startX,endX:this.state.endX},g=r.pageX-o;g>0?g=Math.min(g,f+d-p-u):g<0&&(g=Math.max(g,f-u)),h[a]=u+g;var x=this.getIndex(h),O=x.startIndex,w=x.endIndex,_=function(){var $=y.length-1;return a==="startX"&&(l>s?O%v===0:w%v===0)||l<s&&w===$||a==="endX"&&(l>s?w%v===0:O%v===0)||l>s&&w===$};this.setState(It(It({},a,u+g),"brushMoveStartX",r.pageX),function(){m&&_()&&m(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(It({},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=S.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,m=s.data,v=s.startIndex,y=s.endIndex,h=Math.max(r,this.props.x),g=Th(Th({},ee(this.props,!1)),{},{x:h,y:u,width:c,height:f}),x=p||"Min value: ".concat((o=m[v])===null||o===void 0?void 0:o.name,", Max value: ").concat((a=m[y])===null||a===void 0?void 0:a.name);return j.createElement($e,{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(w){["ArrowLeft","ArrowRight"].includes(w.key)&&(w.preventDefault(),w.stopPropagation(),l.handleTravellerMoveKeyboard(w.key==="ArrowRight"?1:-1,i))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,g))}},{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,m={pointerEvents:"none",fill:u};return j.createElement($e,{className:"recharts-brush-texts"},j.createElement(Qo,kf({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,d)-p,y:a+l/2},m),this.getTextOfTick(i)),j.createElement(Qo,kf({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,d)+s+p,y:a+l/2},m),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,m=d.endX,v=d.isTextActive,y=d.isSlideMoving,h=d.isTravellerMoving,g=d.isTravellerFocused;if(!i||!i.length||!K(l)||!K(s)||!K(u)||!K(c)||u<=0||c<=0)return null;var x=se("recharts-brush",o),O=j.Children.count(a)===1,w=GZ("userSelect","none");return j.createElement($e,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:w},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(p,m),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(m,"endX"),(v||y||h||g||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):J(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 Th({prevData:o,prevTravellerWidth:s,prevUpdateId:u,prevX:l,prevWidth:a},o&&o.length?nJ({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}}])}(S.PureComponent);It(sa,"displayName","Brush");It(sa,"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 rJ=f0;function iJ(e,t){var n;return rJ(e,function(r,i,o){return n=t(r,i,o),!n}),!!n}var oJ=iJ,aJ=aA,lJ=li,sJ=oJ,uJ=Et,cJ=Kd;function fJ(e,t,n){var r=uJ(e)?aJ:sJ;return n&&cJ(e,t,n)&&(t=void 0),r(e,lJ(t))}var dJ=fJ;const pJ=he(dJ);var zn=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},m_=TA;function hJ(e,t,n){t=="__proto__"&&m_?m_(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var W0=hJ,mJ=W0,vJ=$A,gJ=li;function yJ(e,t){var n={};return t=gJ(t),vJ(e,function(r,i,o){mJ(n,i,t(r,i,o))}),n}var xJ=yJ;const bJ=he(xJ);function wJ(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 SJ=wJ,_J=f0;function OJ(e,t){var n=!0;return _J(e,function(r,i,o){return n=!!t(r,i,o),n}),n}var EJ=OJ,$J=SJ,PJ=EJ,AJ=li,TJ=Et,jJ=Kd;function CJ(e,t,n){var r=TJ(e)?$J:PJ;return n&&jJ(e,t,n)&&(t=void 0),r(e,AJ(t))}var kJ=CJ;const NJ=he(kJ);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)}function MJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v_(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,Sj(r.key),r)}}function IJ(e,t,n){return t&&v_(e.prototype,t),n&&v_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function g_(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 qu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?g_(Object(n),!0).forEach(function(r){V0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function V0(e,t,n){return t=Sj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sj(e){var t=RJ(e,"string");return Ts(t)=="symbol"?t:t+""}function RJ(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)}var _j=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)}},LJ=function(t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2;return _j({x:n,y:r},{x:i,y:o})},Oj=function(){function e(t){MJ(this,e),this.scale=t}return IJ(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)}}])}();V0(Oj,"EPS",1e-4);var K0=function(t){var n=Object.keys(t).reduce(function(r,i){return qu(qu({},r),{},V0({},i,Oj.create(t[i])))},{});return qu(qu({},n),{},{apply:function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=o.bandAware,l=o.position;return bJ(i,function(s,u){return n[u].apply(s,{bandAware:a,position:l})})},isInRange:function(i){return NJ(i,function(o,a){return n[a].isInRange(o)})}})},DJ=BD(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("")}),Ej=S.createContext(void 0),$j=S.createContext(void 0),Pj=S.createContext(void 0),FJ=S.createContext({}),Aj=S.createContext(void 0),BJ=S.createContext(0),zJ=S.createContext(0),y_=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=DJ(o);return j.createElement(Ej.Provider,{value:r},j.createElement($j.Provider,{value:i},j.createElement(FJ.Provider,{value:o},j.createElement(Pj.Provider,{value:c},j.createElement(Aj.Provider,{value:a},j.createElement(BJ.Provider,{value:u},j.createElement(zJ.Provider,{value:s},l)))))))},UJ=function(){return S.useContext(Aj)},HJ=function(t){var n=S.useContext(Ej);n==null&&ta();var r=n[t];return r==null&&ta(),r},WJ=function(t){var n=S.useContext($j);n==null&&ta();var r=n[t];return r==null&&ta(),r},VJ=function(){var t=S.useContext(Pj);return t};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 KJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qJ(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 GJ(e,t,n){return t&&qJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function XJ(e,t,n){return t=Mf(t),YJ(e,Tj()?Reflect.construct(t,n||[],Mf(e).constructor):t.apply(e,n))}function YJ(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 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 Tj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Tj=function(){return!!e})()}function Mf(e){return Mf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mf(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&&ig(e,t)}function ig(e,t){return ig=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ig(e,t)}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 b_(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){q0(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 q0(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=JJ(e,"string");return ua(t)=="symbol"?t:t+""}function JJ(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)}function eee(e,t){return iee(e)||ree(e,t)||nee(e,t)||tee()}function tee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
236
- 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 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 ree(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 iee(e){if(Array.isArray(e))return e}function og(){return og=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},og.apply(this,arguments)}var oee=function(t,n){var r;return j.isValidElement(t)?r=j.cloneElement(t,n):J(t)?r=t(n):r=j.createElement("line",og({},n,{className:"recharts-reference-line-line"})),r},aee=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 m=u.y,v=t.y.apply(m,{position:a});if(zn(u,"discard")&&!t.y.isInRange(v))return null;var y=[{x:c+d,y:v},{x:c,y:v}];return s==="left"?y.reverse():y}if(n){var h=u.x,g=t.x.apply(h,{position:a});if(zn(u,"discard")&&!t.x.isInRange(g))return null;var x=[{x:g,y:f+p},{x:g,y:f}];return l==="top"?x.reverse():x}if(i){var O=u.segment,w=O.map(function(_){return t.apply(_,{position:a})});return zn(u,"discard")&&pJ(w,function(_){return!t.isInRange(_)})?null:w}return null};function lee(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=UJ(),c=HJ(i),f=WJ(o),d=VJ();if(!u||!d)return null;pr(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=K0({x:c.scale,y:f.scale}),m=Ye(t),v=Ye(n),y=r&&r.length===2,h=aee(p,m,v,y,d,e.position,c.orientation,f.orientation,e);if(!h)return null;var g=eee(h,2),x=g[0],O=x.x,w=x.y,_=g[1],E=_.x,$=_.y,A=zn(e,"hidden")?"url(#".concat(u,")"):void 0,C=b_(b_({clipPath:A},ee(e,!0)),{},{x1:O,y1:w,x2:E,y2:$});return j.createElement($e,{className:se("recharts-reference-line",l)},oee(a,C),ot.renderCallByParent(e,LJ({x1:O,y1:w,x2:E,y2:$})))}var G0=function(e){function t(){return KJ(this,t),XJ(this,t,arguments)}return ZJ(t,e),GJ(t,[{key:"render",value:function(){return j.createElement(lee,this.props)}}])}(j.Component);q0(G0,"displayName","ReferenceLine");q0(G0,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});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 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 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){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?S_(Object(n),!0).forEach(function(r){fp(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 see(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uee(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,kj(r.key),r)}}function cee(e,t,n){return t&&uee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fee(e,t,n){return t=If(t),dee(e,Cj()?Reflect.construct(t,n||[],If(e).constructor):t.apply(e,n))}function dee(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 pee(e)}function pee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Cj=function(){return!!e})()}function If(e){return If=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},If(e)}function hee(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 fp(e,t,n){return t=kj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kj(e){var t=mee(e,"string");return ca(t)=="symbol"?t:t+""}function mee(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 vee=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 zn(t,"discard")&&!a.isInRange(l)?null:l},dp=function(e){function t(){return see(this,t),fee(this,t,arguments)}return hee(t,e),cee(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=Ye(i),c=Ye(o);if(pr(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!c)return null;var f=vee(this.props);if(!f)return null;var d=f.x,p=f.y,m=this.props,v=m.shape,y=m.className,h=zn(this.props,"hidden")?"url(#".concat(s,")"):void 0,g=__(__({clipPath:h},ee(this.props,!0)),{},{cx:d,cy:p});return j.createElement($e,{className:se("recharts-reference-dot",y)},t.renderDot(v,g),ot.renderCallByParent(this.props,{x:d-a,y:p-a,width:2*a,height:2*a}))}}])}(j.Component);fp(dp,"displayName","ReferenceDot");fp(dp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});fp(dp,"renderDot",function(e,t){var n;return j.isValidElement(e)?n=j.cloneElement(e,t):J(e)?n=e(t):n=j.createElement(U0,ag({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function sg(){return sg=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},sg.apply(this,arguments)}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 O_(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?O_(Object(n),!0).forEach(function(r){pp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yee(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,Mj(r.key),r)}}function xee(e,t,n){return t&&yee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bee(e,t,n){return t=Rf(t),wee(e,Nj()?Reflect.construct(t,n||[],Rf(e).constructor):t.apply(e,n))}function wee(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 See(e)}function See(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Nj=function(){return!!e})()}function Rf(e){return Rf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rf(e)}function _ee(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&&ug(e,t)}function ug(e,t){return ug=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ug(e,t)}function pp(e,t,n){return t=Mj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mj(e){var t=Oee(e,"string");return fa(t)=="symbol"?t:t+""}function Oee(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 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},m={x:n?d.x.apply(l,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(u,{position:"end"}):d.y.rangeMax};return zn(o,"discard")&&(!d.isInRange(p)||!d.isInRange(m))?null:_j(p,m)},hp=function(e){function t(){return gee(this,t),bee(this,t,arguments)}return _ee(t,e),xee(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;pr(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=Ye(i),d=Ye(o),p=Ye(a),m=Ye(l),v=this.props.shape;if(!f&&!d&&!p&&!m&&!v)return null;var y=Eee(f,d,p,m,this.props);if(!y&&!v)return null;var h=zn(this.props,"hidden")?"url(#".concat(c,")"):void 0;return j.createElement($e,{className:se("recharts-reference-area",s)},t.renderRect(v,E_(E_({clipPath:h},ee(this.props,!0)),y)),ot.renderCallByParent(this.props,y))}}])}(j.Component);pp(hp,"displayName","ReferenceArea");pp(hp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});pp(hp,"renderRect",function(e,t){var n;return j.isValidElement(e)?n=j.cloneElement(e,t):J(e)?n=e(t):n=j.createElement(z0,sg({},t,{className:"recharts-reference-area-rect"})),n});function $_(e){return Tee(e)||Aee(e)||Pee(e)||$ee()}function $ee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
237
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pee(e,t){if(e){if(typeof e=="string")return cg(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 cg(e,t)}}function Aee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Tee(e){if(Array.isArray(e))return cg(e)}function cg(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 fg=function(t,n,r,i,o){var a=En(t,G0),l=En(t,dp),s=[].concat($_(a),$_(l)),u=En(t,hp),c="".concat(i,"Id"),f=i[0],d=n;if(s.length&&(d=s.reduce(function(v,y){if(y.props[c]===r&&zn(y.props,"extendDomain")&&K(y.props[f])){var h=y.props[f];return[Math.min(v[0],h),Math.max(v[1],h)]}return v},d)),u.length){var p="".concat(f,"1"),m="".concat(f,"2");d=u.reduce(function(v,y){if(y.props[c]===r&&zn(y.props,"extendDomain")&&K(y.props[p])&&K(y.props[m])){var h=y.props[p],g=y.props[m];return[Math.min(v[0],h,g),Math.max(v[1],h,g)]}return v},d)}return o&&o.length&&(d=o.reduce(function(v,y){return K(y)?[Math.min(v[0],y),Math.max(v[1],y)]:v},d)),d},Ij={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),m=n?n+u:u;return s._events[m]?s._events[m].fn?s._events[m]=[s._events[m],p]:s._events[m].push(p):(s._events[m]=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,m=new Array(p);d<p;d++)m[d]=f[d].fn;return m},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,m){var v=n?n+u:u;if(!this._events[v])return!1;var y=this._events[v],h=arguments.length,g,x;if(y.fn){switch(y.once&&this.removeListener(u,y.fn,void 0,!0),h){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,c),!0;case 3:return y.fn.call(y.context,c,f),!0;case 4:return y.fn.call(y.context,c,f,d),!0;case 5:return y.fn.call(y.context,c,f,d,p),!0;case 6:return y.fn.call(y.context,c,f,d,p,m),!0}for(x=1,g=new Array(h-1);x<h;x++)g[x-1]=arguments[x];y.fn.apply(y.context,g)}else{var O=y.length,w;for(x=0;x<O;x++)switch(y[x].once&&this.removeListener(u,y[x].fn,void 0,!0),h){case 1:y[x].fn.call(y[x].context);break;case 2:y[x].fn.call(y[x].context,c);break;case 3:y[x].fn.call(y[x].context,c,f);break;case 4:y[x].fn.call(y[x].context,c,f,d);break;default:if(!g)for(w=1,g=new Array(h-1);w<h;w++)g[w-1]=arguments[w];y[x].fn.apply(y[x].context,g)}}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 m=this._events[p];if(m.fn)m.fn===c&&(!d||m.once)&&(!f||m.context===f)&&a(this,p);else{for(var v=0,y=[],h=m.length;v<h;v++)(m[v].fn!==c||d&&!m[v].once||f&&m[v].context!==f)&&y.push(m[v]);y.length?this._events[p]=y.length===1?y[0]:y: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})(Ij);var jee=Ij.exports;const Cee=he(jee);var jh=new Cee,Ch="recharts.syncMouseEvents";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 kee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nee(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,Rj(r.key),r)}}function Mee(e,t,n){return t&&Nee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function kh(e,t,n){return t=Rj(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rj(e){var t=Iee(e,"string");return js(t)=="symbol"?t:t+""}function Iee(e,t){if(js(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(js(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ree=function(){function e(){kee(this,e),kh(this,"activeIndex",0),kh(this,"coordinateList",[]),kh(this,"layout","horizontal")}return Mee(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 Lee(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&&K(r)&&K(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 Lj(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 Fee(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 Lj(t);return[{x:r,y:i},{x:o,y:a}]}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 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 Gu(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){Bee(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 Bee(e,t,n){return t=zee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zee(e){var t=Uee(e,"string");return Cs(t)=="symbol"?t:t+""}function Uee(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)}function Hee(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 m,v=zv;if(d==="ScatterChart")m=a,v=rQ;else if(d==="BarChart")m=Dee(f,a,s,c),v=z0;else if(f==="radial"){var y=Lj(a),h=y.cx,g=y.cy,x=y.radius,O=y.startAngle,w=y.endAngle;m={cx:h,cy:g,startAngle:O,endAngle:w,innerRadius:x,outerRadius:x},v=QT}else m={points:Fee(f,a,s)},v=zv;var _=Gu(Gu(Gu(Gu({stroke:"#ccc",pointerEvents:"none"},s),m),ee(p,!1)),{},{payload:l,payloadIndex:u,className:se("recharts-tooltip-cursor",p.className)});return S.isValidElement(p)?S.cloneElement(p,_):S.createElement(v,_)}var Wee=["item"],Vee=["children","className","width","height","style","compact","title","desc"];function da(e){"@babel/helpers - typeof";return da=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},da(e)}function 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 A_(e,t){return Gee(e)||qee(e,t)||Fj(e,t)||Kee()}function Kee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
238
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qee(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 Gee(e){if(Array.isArray(e))return e}function T_(e,t){if(e==null)return{};var n=Xee(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 Xee(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 Yee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qee(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 Zee(e,t,n){return t&&Qee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jee(e,t,n){return t=Lf(t),ete(e,Dj()?Reflect.construct(t,n||[],Lf(e).constructor):t.apply(e,n))}function ete(e,t){if(t&&(da(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tte(e)}function tte(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 Lf(e){return Lf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Lf(e)}function nte(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&&dg(e,t)}function dg(e,t){return dg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},dg(e,t)}function pa(e){return ote(e)||ite(e)||Fj(e)||rte()}function rte(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
239
- 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 pg(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 pg(e,t)}}function ite(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ote(e){if(Array.isArray(e))return pg(e)}function pg(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 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 z(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){Y(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 Y(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 Bj(e){var t=ate(e,"string");return da(t)=="symbol"?t:t+""}function ate(e,t){if(da(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(da(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lte={xAxis:["bottom","top"],yAxis:["left","right"]},ste={width:"100%",height:"100%"},zj={x:0,y:0};function Xu(e){return e}var ute=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},cte=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 zj},mp=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(pa(l),pa(u)):l},[]);return a.length>0?a:t&&t.length&&K(i)&&K(o)?t.slice(i,o+1):[]};function Uj(e){return e==="number"?[0,"auto"]:void 0}var hg=function(t,n,r,i){var o=t.graphicalItems,a=t.tooltipAxis,l=mp(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=Km(p,a.dataKey,i)}else d=f&&f[r]||l[r];return d?[].concat(pa(s),[Jq(u,d)]):s},[])},C_=function(t,n,r,i){var o=i||{x:t.chartX,y:t.chartY},a=ute(o,r),l=t.orderedTooltipTicks,s=t.tooltipAxis,u=t.tooltipTicks,c=Lq(a,l,u,s);if(c>=0&&u){var f=u[c]&&u[c].value,d=hg(t,n,c,f),p=cte(r,l,c,o);return{activeTooltipIndex:c,activeLabel:f,activePayload:d,activeCoordinate:p}}return null},fte=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=HT(c,o);return r.reduce(function(m,v){var y,h=v.type.defaultProps!==void 0?z(z({},v.type.defaultProps),v.props):v.props,g=h.type,x=h.dataKey,O=h.allowDataOverflow,w=h.allowDuplicatedCategory,_=h.scale,E=h.ticks,$=h.includeHidden,A=h[a];if(m[A])return m;var C=mp(t.data,{graphicalItems:i.filter(function(U){var X,ne=a in U.props?U.props[a]:(X=U.type.defaultProps)===null||X===void 0?void 0:X[a];return ne===A}),dataStartIndex:s,dataEndIndex:u}),T=C.length,N,R,D;Lee(h.domain,O,g)&&(N=Iv(h.domain,null,O),p&&(g==="number"||_!=="auto")&&(D=jl(C,x,"category")));var M=Uj(g);if(!N||N.length===0){var L,I=(L=h.domain)!==null&&L!==void 0?L:M;if(x){if(N=jl(C,x,g),g==="category"&&p){var P=R3(N);w&&P?(R=N,N=Cf(0,T)):w||(N=fS(I,N,v).reduce(function(U,X){return U.indexOf(X)>=0?U:[].concat(pa(U),[X])},[]))}else if(g==="category")w?N=N.filter(function(U){return U!==""&&!oe(U)}):N=fS(I,N,v).reduce(function(U,X){return U.indexOf(X)>=0||X===""||oe(X)?U:[].concat(pa(U),[X])},[]);else if(g==="number"){var k=Uq(C,i.filter(function(U){var X,ne,ae=a in U.props?U.props[a]:(X=U.type.defaultProps)===null||X===void 0?void 0:X[a],te="hide"in U.props?U.props.hide:(ne=U.type.defaultProps)===null||ne===void 0?void 0:ne.hide;return ae===A&&($||!te)}),x,o,c);k&&(N=k)}p&&(g==="number"||_!=="auto")&&(D=jl(C,x,"category"))}else p?N=Cf(0,T):l&&l[A]&&l[A].hasStack&&g==="number"?N=d==="expand"?[0,1]:WT(l[A].stackGroups,s,u):N=UT(C,i.filter(function(U){var X=a in U.props?U.props[a]:U.type.defaultProps[a],ne="hide"in U.props?U.props.hide:U.type.defaultProps.hide;return X===A&&($||!ne)}),g,c,!0);if(g==="number")N=fg(f,N,A,o,E),I&&(N=Iv(I,N,O));else if(g==="category"&&I){var F=I,B=N.every(function(U){return F.indexOf(U)>=0});B&&(N=F)}}return z(z({},m),{},Y({},A,z(z({},h),{},{axisType:o,domain:N,categoricalDomain:D,duplicateDomain:R,originalDomain:(y=h.domain)!==null&&y!==void 0?y:M,isCategorical:p,layout:c})))},{})},dte=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=mp(t.data,{graphicalItems:r,dataStartIndex:s,dataEndIndex:u}),p=d.length,m=HT(c,o),v=-1;return r.reduce(function(y,h){var g=h.type.defaultProps!==void 0?z(z({},h.type.defaultProps),h.props):h.props,x=g[a],O=Uj("number");if(!y[x]){v++;var w;return m?w=Cf(0,p):l&&l[x]&&l[x].hasStack?(w=WT(l[x].stackGroups,s,u),w=fg(f,w,x,o)):(w=Iv(O,UT(d,r.filter(function(_){var E,$,A=a in _.props?_.props[a]:(E=_.type.defaultProps)===null||E===void 0?void 0:E[a],C="hide"in _.props?_.props.hide:($=_.type.defaultProps)===null||$===void 0?void 0:$.hide;return A===x&&!C}),"number",c),i.defaultProps.allowDataOverflow),w=fg(f,w,x,o)),z(z({},y),{},Y({},x,z(z({axisType:o},i.defaultProps),{},{hide:!0,orientation:On(lte,"".concat(o,".").concat(v%2),null),domain:w,originalDomain:O,isCategorical:m,layout:c})))}return y},{})},pte=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=En(c,o),p={};return d&&d.length?p=fte(t,{axes:d,graphicalItems:a,axisType:i,axisIdKey:f,stackGroups:l,dataStartIndex:s,dataEndIndex:u}):a&&a.length&&(p=dte(t,{Axis:o,graphicalItems:a,axisType:i,axisIdKey:f,stackGroups:l,dataStartIndex:s,dataEndIndex:u})),p},hte=function(t){var n=co(t),r=ml(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:d0(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Rv(n,r)}},k_=function(t){var n=t.children,r=t.defaultShowTooltip,i=Qt(n,sa),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}},mte=function(t){return!t||!t.length?!1:t.some(function(n){var r=dr(n&&n.type);return r&&r.indexOf("Bar")>=0})},N_=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"}},vte=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=Qt(f,sa),m=Qt(f,Io),v=Object.keys(s).reduce(function(w,_){var E=s[_],$=E.orientation;return!E.mirror&&!E.hide?z(z({},w),{},Y({},$,w[$]+E.width)):w},{left:d.left||0,right:d.right||0}),y=Object.keys(a).reduce(function(w,_){var E=a[_],$=E.orientation;return!E.mirror&&!E.hide?z(z({},w),{},Y({},$,On(w,"".concat($))+E.height)):w},{top:d.top||0,bottom:d.bottom||0}),h=z(z({},y),v),g=h.bottom;p&&(h.bottom+=p.props.height||sa.defaultProps.height),m&&n&&(h=Bq(h,i,r,n));var x=u-h.left-h.right,O=c-h.top-h.bottom;return z(z({brushBottom:g},h),{},{width:Math.max(x,0),height:Math.max(O,0)})},gte=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},Hj=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(h,g){var x=g.graphicalItems,O=g.stackGroups,w=g.offset,_=g.updateId,E=g.dataStartIndex,$=g.dataEndIndex,A=h.barSize,C=h.layout,T=h.barGap,N=h.barCategoryGap,R=h.maxBarSize,D=N_(C),M=D.numericAxisName,L=D.cateAxisName,I=mte(x),P=[];return x.forEach(function(k,F){var B=mp(h.data,{graphicalItems:[k],dataStartIndex:E,dataEndIndex:$}),U=k.type.defaultProps!==void 0?z(z({},k.type.defaultProps),k.props):k.props,X=U.dataKey,ne=U.maxBarSize,ae=U["".concat(M,"Id")],te=U["".concat(L,"Id")],ze={},Ue=s.reduce(function(di,pi){var Tp=g["".concat(pi.axisType,"Map")],Ax=U["".concat(pi.axisType,"Id")];Tp&&Tp[Ax]||pi.axisType==="zAxis"||ta();var Tx=Tp[Ax];return z(z({},di),{},Y(Y({},pi.axisType,Tx),"".concat(pi.axisType,"Ticks"),ml(Tx)))},ze),V=Ue[L],Q=Ue["".concat(L,"Ticks")],Z=O&&O[ae]&&O[ae].hasStack&&Qq(k,O[ae].stackGroups),H=dr(k.type).indexOf("Bar")>=0,Ae=Rv(V,Q),ie=[],Fe=I&&Dq({barSize:A,stackGroups:O,totalSize:gte(Ue,L)});if(H){var Ve,$t,Cr=oe(ne)?R:ne,ao=(Ve=($t=Rv(V,Q,!0))!==null&&$t!==void 0?$t:Cr)!==null&&Ve!==void 0?Ve:0;ie=Fq({barGap:T,barCategoryGap:N,bandSize:ao!==Ae?ao:Ae,sizeList:Fe[te],maxBarSize:Cr}),ao!==Ae&&(ie=ie.map(function(di){return z(z({},di),{},{position:z(z({},di.position),{},{offset:di.position.offset-ao/2})})}))}var pu=k&&k.type&&k.type.getComposedData;pu&&P.push({props:z(z({},pu(z(z({},Ue),{},{displayedData:B,props:h,dataKey:X,item:k,bandSize:Ae,barPosition:ie,offset:w,stackedData:Z,layout:C,dataStartIndex:E,dataEndIndex:$}))),{},Y(Y(Y({key:k.key||"item-".concat(F)},M,Ue[M]),L,Ue[L]),"animationId",_)),childIndex:q3(k,h.children),item:k})}),P},p=function(h,g){var x=h.props,O=h.dataStartIndex,w=h.dataEndIndex,_=h.updateId;if(!o1({props:x}))return null;var E=x.children,$=x.layout,A=x.stackOffset,C=x.data,T=x.reverseStackOrder,N=N_($),R=N.numericAxisName,D=N.cateAxisName,M=En(E,r),L=Xq(C,M,"".concat(R,"Id"),"".concat(D,"Id"),A,T),I=s.reduce(function(U,X){var ne="".concat(X.axisType,"Map");return z(z({},U),{},Y({},ne,pte(x,z(z({},X),{},{graphicalItems:M,stackGroups:X.axisType===R&&L,dataStartIndex:O,dataEndIndex:w}))))},{}),P=vte(z(z({},I),{},{props:x,graphicalItems:M}),g==null?void 0:g.legendBBox);Object.keys(I).forEach(function(U){I[U]=c(x,I[U],P,U.replace("Map",""),n)});var k=I["".concat(D,"Map")],F=hte(k),B=d(x,z(z({},I),{},{dataStartIndex:O,dataEndIndex:w,updateId:_,graphicalItems:M,stackGroups:L,offset:P}));return z(z({formattedGraphicalItems:B,graphicalItems:M,offset:P,stackGroups:L},F),I)},m=function(y){function h(g){var x,O,w;return Yee(this,h),w=Jee(this,h,[g]),Y(w,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Y(w,"accessibilityManager",new Ree),Y(w,"handleLegendBBoxUpdate",function(_){if(_){var E=w.state,$=E.dataStartIndex,A=E.dataEndIndex,C=E.updateId;w.setState(z({legendBBox:_},p({props:w.props,dataStartIndex:$,dataEndIndex:A,updateId:C},z(z({},w.state),{},{legendBBox:_}))))}}),Y(w,"handleReceiveSyncEvent",function(_,E,$){if(w.props.syncId===_){if($===w.eventEmitterSymbol&&typeof w.props.syncMethod!="function")return;w.applySyncEvent(E)}}),Y(w,"handleBrushChange",function(_){var E=_.startIndex,$=_.endIndex;if(E!==w.state.dataStartIndex||$!==w.state.dataEndIndex){var A=w.state.updateId;w.setState(function(){return z({dataStartIndex:E,dataEndIndex:$},p({props:w.props,dataStartIndex:E,dataEndIndex:$,updateId:A},w.state))}),w.triggerSyncEvent({dataStartIndex:E,dataEndIndex:$})}}),Y(w,"handleMouseEnter",function(_){var E=w.getMouseInfo(_);if(E){var $=z(z({},E),{},{isTooltipActive:!0});w.setState($),w.triggerSyncEvent($);var A=w.props.onMouseEnter;J(A)&&A($,_)}}),Y(w,"triggeredAfterMouseMove",function(_){var E=w.getMouseInfo(_),$=E?z(z({},E),{},{isTooltipActive:!0}):{isTooltipActive:!1};w.setState($),w.triggerSyncEvent($);var A=w.props.onMouseMove;J(A)&&A($,_)}),Y(w,"handleItemMouseEnter",function(_){w.setState(function(){return{isTooltipActive:!0,activeItem:_,activePayload:_.tooltipPayload,activeCoordinate:_.tooltipPosition||{x:_.cx,y:_.cy}}})}),Y(w,"handleItemMouseLeave",function(){w.setState(function(){return{isTooltipActive:!1}})}),Y(w,"handleMouseMove",function(_){_.persist(),w.throttleTriggeredAfterMouseMove(_)}),Y(w,"handleMouseLeave",function(_){w.throttleTriggeredAfterMouseMove.cancel();var E={isTooltipActive:!1};w.setState(E),w.triggerSyncEvent(E);var $=w.props.onMouseLeave;J($)&&$(E,_)}),Y(w,"handleOuterEvent",function(_){var E=K3(_),$=On(w.props,"".concat(E));if(E&&J($)){var A,C;/.*touch.*/i.test(E)?C=w.getMouseInfo(_.changedTouches[0]):C=w.getMouseInfo(_),$((A=C)!==null&&A!==void 0?A:{},_)}}),Y(w,"handleClick",function(_){var E=w.getMouseInfo(_);if(E){var $=z(z({},E),{},{isTooltipActive:!0});w.setState($),w.triggerSyncEvent($);var A=w.props.onClick;J(A)&&A($,_)}}),Y(w,"handleMouseDown",function(_){var E=w.props.onMouseDown;if(J(E)){var $=w.getMouseInfo(_);E($,_)}}),Y(w,"handleMouseUp",function(_){var E=w.props.onMouseUp;if(J(E)){var $=w.getMouseInfo(_);E($,_)}}),Y(w,"handleTouchMove",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&w.throttleTriggeredAfterMouseMove(_.changedTouches[0])}),Y(w,"handleTouchStart",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&w.handleMouseDown(_.changedTouches[0])}),Y(w,"handleTouchEnd",function(_){_.changedTouches!=null&&_.changedTouches.length>0&&w.handleMouseUp(_.changedTouches[0])}),Y(w,"handleDoubleClick",function(_){var E=w.props.onDoubleClick;if(J(E)){var $=w.getMouseInfo(_);E($,_)}}),Y(w,"handleContextMenu",function(_){var E=w.props.onContextMenu;if(J(E)){var $=w.getMouseInfo(_);E($,_)}}),Y(w,"triggerSyncEvent",function(_){w.props.syncId!==void 0&&jh.emit(Ch,w.props.syncId,_,w.eventEmitterSymbol)}),Y(w,"applySyncEvent",function(_){var E=w.props,$=E.layout,A=E.syncMethod,C=w.state.updateId,T=_.dataStartIndex,N=_.dataEndIndex;if(_.dataStartIndex!==void 0||_.dataEndIndex!==void 0)w.setState(z({dataStartIndex:T,dataEndIndex:N},p({props:w.props,dataStartIndex:T,dataEndIndex:N,updateId:C},w.state)));else if(_.activeTooltipIndex!==void 0){var R=_.chartX,D=_.chartY,M=_.activeTooltipIndex,L=w.state,I=L.offset,P=L.tooltipTicks;if(!I)return;if(typeof A=="function")M=A(P,_);else if(A==="value"){M=-1;for(var k=0;k<P.length;k++)if(P[k].value===_.activeLabel){M=k;break}}var F=z(z({},I),{},{x:I.left,y:I.top}),B=Math.min(R,F.x+F.width),U=Math.min(D,F.y+F.height),X=P[M]&&P[M].value,ne=hg(w.state,w.props.data,M),ae=P[M]?{x:$==="horizontal"?P[M].coordinate:B,y:$==="horizontal"?U:P[M].coordinate}:zj;w.setState(z(z({},_),{},{activeLabel:X,activeCoordinate:ae,activePayload:ne,activeTooltipIndex:M}))}else w.setState(_)}),Y(w,"renderCursor",function(_){var E,$=w.state,A=$.isTooltipActive,C=$.activeCoordinate,T=$.activePayload,N=$.offset,R=$.activeTooltipIndex,D=$.tooltipAxisBandSize,M=w.getTooltipEventType(),L=(E=_.props.active)!==null&&E!==void 0?E:A,I=w.props.layout,P=_.key||"_recharts-cursor";return j.createElement(Hee,{key:P,activeCoordinate:C,activePayload:T,activeTooltipIndex:R,chartName:n,element:_,isActive:L,layout:I,offset:N,tooltipAxisBandSize:D,tooltipEventType:M})}),Y(w,"renderPolarAxis",function(_,E,$){var A=On(_,"type.axisType"),C=On(w.state,"".concat(A,"Map")),T=_.type.defaultProps,N=T!==void 0?z(z({},T),_.props):_.props,R=C&&C[N["".concat(A,"Id")]];return S.cloneElement(_,z(z({},R),{},{className:se(A,R.className),key:_.key||"".concat(E,"-").concat($),ticks:ml(R,!0)}))}),Y(w,"renderPolarGrid",function(_){var E=_.props,$=E.radialLines,A=E.polarAngles,C=E.polarRadius,T=w.state,N=T.radiusAxisMap,R=T.angleAxisMap,D=co(N),M=co(R),L=M.cx,I=M.cy,P=M.innerRadius,k=M.outerRadius;return S.cloneElement(_,{polarAngles:Array.isArray(A)?A:ml(M,!0).map(function(F){return F.coordinate}),polarRadius:Array.isArray(C)?C:ml(D,!0).map(function(F){return F.coordinate}),cx:L,cy:I,innerRadius:P,outerRadius:k,key:_.key||"polar-grid",radialLines:$})}),Y(w,"renderLegend",function(){var _=w.state.formattedGraphicalItems,E=w.props,$=E.children,A=E.width,C=E.height,T=w.props.margin||{},N=A-(T.left||0)-(T.right||0),R=BT({children:$,formattedGraphicalItems:_,legendWidth:N,legendContent:u});if(!R)return null;var D=R.item,M=T_(R,Wee);return S.cloneElement(D,z(z({},M),{},{chartWidth:A,chartHeight:C,margin:T,onBBoxUpdate:w.handleLegendBBoxUpdate}))}),Y(w,"renderTooltip",function(){var _,E=w.props,$=E.children,A=E.accessibilityLayer,C=Qt($,tr);if(!C)return null;var T=w.state,N=T.isTooltipActive,R=T.activeCoordinate,D=T.activePayload,M=T.activeLabel,L=T.offset,I=(_=C.props.active)!==null&&_!==void 0?_:N;return S.cloneElement(C,{viewBox:z(z({},L),{},{x:L.left,y:L.top}),active:I,label:M,payload:I?D:[],coordinate:R,accessibilityLayer:A})}),Y(w,"renderBrush",function(_){var E=w.props,$=E.margin,A=E.data,C=w.state,T=C.offset,N=C.dataStartIndex,R=C.dataEndIndex,D=C.updateId;return S.cloneElement(_,{key:_.key||"_recharts-brush",onChange:Hu(w.handleBrushChange,_.props.onChange),data:A,x:K(_.props.x)?_.props.x:T.left,y:K(_.props.y)?_.props.y:T.top+T.height+T.brushBottom-($.bottom||0),width:K(_.props.width)?_.props.width:T.width,startIndex:N,endIndex:R,updateId:"brush-".concat(D)})}),Y(w,"renderReferenceElement",function(_,E,$){if(!_)return null;var A=w,C=A.clipPathId,T=w.state,N=T.xAxisMap,R=T.yAxisMap,D=T.offset,M=_.type.defaultProps||{},L=_.props,I=L.xAxisId,P=I===void 0?M.xAxisId:I,k=L.yAxisId,F=k===void 0?M.yAxisId:k;return S.cloneElement(_,{key:_.key||"".concat(E,"-").concat($),xAxis:N[P],yAxis:R[F],viewBox:{x:D.left,y:D.top,width:D.width,height:D.height},clipPathId:C})}),Y(w,"renderActivePoints",function(_){var E=_.item,$=_.activePoint,A=_.basePoint,C=_.childIndex,T=_.isRange,N=[],R=E.props.key,D=E.item.type.defaultProps!==void 0?z(z({},E.item.type.defaultProps),E.item.props):E.item.props,M=D.activeDot,L=D.dataKey,I=z(z({index:C,dataKey:L,cx:$.x,cy:$.y,r:4,fill:B0(E.item),strokeWidth:2,stroke:"#fff",payload:$.payload,value:$.value},ee(M,!1)),Kc(M));return N.push(h.renderActiveDot(M,I,"".concat(R,"-activePoint-").concat(C))),A?N.push(h.renderActiveDot(M,z(z({},I),{},{cx:A.x,cy:A.y}),"".concat(R,"-basePoint-").concat(C))):T&&N.push(null),N}),Y(w,"renderGraphicChild",function(_,E,$){var A=w.filterFormatItem(_,E,$);if(!A)return null;var C=w.getTooltipEventType(),T=w.state,N=T.isTooltipActive,R=T.tooltipAxis,D=T.activeTooltipIndex,M=T.activeLabel,L=w.props.children,I=Qt(L,tr),P=A.props,k=P.points,F=P.isRange,B=P.baseLine,U=A.item.type.defaultProps!==void 0?z(z({},A.item.type.defaultProps),A.item.props):A.item.props,X=U.activeDot,ne=U.hide,ae=U.activeBar,te=U.activeShape,ze=!!(!ne&&N&&I&&(X||ae||te)),Ue={};C!=="axis"&&I&&I.props.trigger==="click"?Ue={onClick:Hu(w.handleItemMouseEnter,_.props.onClick)}:C!=="axis"&&(Ue={onMouseLeave:Hu(w.handleItemMouseLeave,_.props.onMouseLeave),onMouseEnter:Hu(w.handleItemMouseEnter,_.props.onMouseEnter)});var V=S.cloneElement(_,z(z({},A.props),Ue));function Q(pi){return typeof R.dataKey=="function"?R.dataKey(pi.payload):null}if(ze)if(D>=0){var Z,H;if(R.dataKey&&!R.allowDuplicatedCategory){var Ae=typeof R.dataKey=="function"?Q:"payload.".concat(R.dataKey.toString());Z=Km(k,Ae,M),H=F&&B&&Km(B,Ae,M)}else Z=k==null?void 0:k[D],H=F&&B&&B[D];if(te||ae){var ie=_.props.activeIndex!==void 0?_.props.activeIndex:D;return[S.cloneElement(_,z(z(z({},A.props),Ue),{},{activeIndex:ie})),null,null]}if(!oe(Z))return[V].concat(pa(w.renderActivePoints({item:A,activePoint:Z,basePoint:H,childIndex:D,isRange:F})))}else{var Fe,Ve=(Fe=w.getItemByXY(w.state.activeCoordinate))!==null&&Fe!==void 0?Fe:{graphicalItem:V},$t=Ve.graphicalItem,Cr=$t.item,ao=Cr===void 0?_:Cr,pu=$t.childIndex,di=z(z(z({},A.props),Ue),{},{activeIndex:pu});return[S.cloneElement(ao,di),null,null]}return F?[V,null,null]:[V,null]}),Y(w,"renderCustomized",function(_,E,$){return S.cloneElement(_,z(z({key:"recharts-customized-".concat($)},w.props),w.state))}),Y(w,"renderMap",{CartesianGrid:{handler:Xu,once:!0},ReferenceArea:{handler:w.renderReferenceElement},ReferenceLine:{handler:Xu},ReferenceDot:{handler:w.renderReferenceElement},XAxis:{handler:Xu},YAxis:{handler:Xu},Brush:{handler:w.renderBrush,once:!0},Bar:{handler:w.renderGraphicChild},Line:{handler:w.renderGraphicChild},Area:{handler:w.renderGraphicChild},Radar:{handler:w.renderGraphicChild},RadialBar:{handler:w.renderGraphicChild},Scatter:{handler:w.renderGraphicChild},Pie:{handler:w.renderGraphicChild},Funnel:{handler:w.renderGraphicChild},Tooltip:{handler:w.renderCursor,once:!0},PolarGrid:{handler:w.renderPolarGrid,once:!0},PolarAngleAxis:{handler:w.renderPolarAxis},PolarRadiusAxis:{handler:w.renderPolarAxis},Customized:{handler:w.renderCustomized}}),w.clipPathId="".concat((x=g.id)!==null&&x!==void 0?x:Dd("recharts"),"-clip"),w.throttleTriggeredAfterMouseMove=RA(w.triggeredAfterMouseMove,(O=g.throttleDelay)!==null&&O!==void 0?O:1e3/60),w.state={},w}return nte(h,y),Zee(h,[{key:"componentDidMount",value:function(){var x,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,O=x.children,w=x.data,_=x.height,E=x.layout,$=Qt(O,tr);if($){var A=$.props.defaultIndex;if(!(typeof A!="number"||A<0||A>this.state.tooltipTicks.length-1)){var C=this.state.tooltipTicks[A]&&this.state.tooltipTicks[A].value,T=hg(this.state,w,A,C),N=this.state.tooltipTicks[A].coordinate,R=(this.state.offset.top+_)/2,D=E==="horizontal",M=D?{x:N,y:R}:{y:N,x:R},L=this.state.formattedGraphicalItems.find(function(P){var k=P.item;return k.type.name==="Scatter"});L&&(M=z(z({},M),L.props.points[A].tooltipPosition),T=L.props.points[A].tooltipPayload);var I={activeTooltipIndex:A,isTooltipActive:!0,activeLabel:C,activePayload:T,activeCoordinate:M};this.setState(I),this.renderCursor($),this.accessibilityManager.setIndex(A)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.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 w,_;this.accessibilityManager.setDetails({offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(_=this.props.margin.top)!==null&&_!==void 0?_:0}})}return null}},{key:"componentDidUpdate",value:function(x){Xm([Qt(x.children,tr)],[Qt(this.props.children,tr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=Qt(this.props.children,tr);if(x&&typeof x.props.shared=="boolean"){var O=x.props.shared?"axis":"item";return l.indexOf(O)>=0?O:o}return o}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var O=this.container,w=O.getBoundingClientRect(),_=sW(w),E={chartX:Math.round(x.pageX-_.left),chartY:Math.round(x.pageY-_.top)},$=w.width/O.offsetWidth||1,A=this.inRange(E.chartX,E.chartY,$);if(!A)return null;var C=this.state,T=C.xAxisMap,N=C.yAxisMap,R=this.getTooltipEventType();if(R!=="axis"&&T&&N){var D=co(T).scale,M=co(N).scale,L=D&&D.invert?D.invert(E.chartX):null,I=M&&M.invert?M.invert(E.chartY):null;return z(z({},E),{},{xValue:L,yValue:I})}var P=C_(this.state,this.props.data,this.props.layout,A);return P?z(z({},E),P):null}},{key:"inRange",value:function(x,O){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,_=this.props.layout,E=x/w,$=O/w;if(_==="horizontal"||_==="vertical"){var A=this.state.offset,C=E>=A.left&&E<=A.left+A.width&&$>=A.top&&$<=A.top+A.height;return C?{x:E,y:$}:null}var T=this.state,N=T.angleAxisMap,R=T.radiusAxisMap;if(N&&R){var D=co(N);return hS({x:E,y:$},D)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,O=this.getTooltipEventType(),w=Qt(x,tr),_={};w&&O==="axis"&&(w.props.trigger==="click"?_={onClick:this.handleClick}:_={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var E=Kc(this.props,this.handleOuterEvent);return z(z({},E),_)}},{key:"addListener",value:function(){jh.on(Ch,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){jh.removeListener(Ch,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,O,w){for(var _=this.state.formattedGraphicalItems,E=0,$=_.length;E<$;E++){var A=_[E];if(A.item===x||A.props.key===x.key||O===dr(A.item.type)&&w===A.childIndex)return A}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,O=this.state.offset,w=O.left,_=O.top,E=O.height,$=O.width;return j.createElement("defs",null,j.createElement("clipPath",{id:x},j.createElement("rect",{x:w,y:_,height:E,width:$})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(O,w){var _=A_(w,2),E=_[0],$=_[1];return z(z({},O),{},Y({},E,$.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(O,w){var _=A_(w,2),E=_[0],$=_[1];return z(z({},O),{},Y({},E,$.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[x])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(x){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[x])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(x){var O=this.state,w=O.formattedGraphicalItems,_=O.activeItem;if(w&&w.length)for(var E=0,$=w.length;E<$;E++){var A=w[E],C=A.props,T=A.item,N=T.type.defaultProps!==void 0?z(z({},T.type.defaultProps),T.props):T.props,R=dr(T.type);if(R==="Bar"){var D=(C.data||[]).find(function(P){return LY(x,P)});if(D)return{graphicalItem:A,payload:D}}else if(R==="RadialBar"){var M=(C.data||[]).find(function(P){return hS(x,P)});if(M)return{graphicalItem:A,payload:M}}else if(up(A,_)||cp(A,_)||Ps(A,_)){var L=SZ({graphicalItem:A,activeTooltipItem:_,itemData:N.data}),I=N.activeIndex===void 0?L:N.activeIndex;return{graphicalItem:z(z({},A),{},{childIndex:I}),payload:Ps(A,_)?N.data[L]:A.props.data[L]}}}return null}},{key:"render",value:function(){var x=this;if(!o1(this))return null;var O=this.props,w=O.children,_=O.className,E=O.width,$=O.height,A=O.style,C=O.compact,T=O.title,N=O.desc,R=T_(O,Vee),D=ee(R,!1);if(C)return j.createElement(y_,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},j.createElement(Qm,Ao({},D,{width:E,height:$,title:T,desc:N}),this.renderClipPath(),l1(w,this.renderMap)));if(this.props.accessibilityLayer){var M,L;D.tabIndex=(M=this.props.tabIndex)!==null&&M!==void 0?M:0,D.role=(L=this.props.role)!==null&&L!==void 0?L:"application",D.onKeyDown=function(P){x.accessibilityManager.keyboardEvent(P)},D.onFocus=function(){x.accessibilityManager.focus()}}var I=this.parseEventsOfWrapper();return j.createElement(y_,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},j.createElement("div",Ao({className:se("recharts-wrapper",_),style:z({position:"relative",cursor:"default",width:E,height:$},A)},I,{ref:function(k){x.container=k}}),j.createElement(Qm,Ao({},D,{width:E,height:$,title:T,desc:N,style:ste}),this.renderClipPath(),l1(w,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(S.Component);Y(m,"displayName",n),Y(m,"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(m,"getDerivedStateFromProps",function(y,h){var g=y.dataKey,x=y.data,O=y.children,w=y.width,_=y.height,E=y.layout,$=y.stackOffset,A=y.margin,C=h.dataStartIndex,T=h.dataEndIndex;if(h.updateId===void 0){var N=k_(y);return z(z(z({},N),{},{updateId:0},p(z(z({props:y},N),{},{updateId:0}),h)),{},{prevDataKey:g,prevData:x,prevWidth:w,prevHeight:_,prevLayout:E,prevStackOffset:$,prevMargin:A,prevChildren:O})}if(g!==h.prevDataKey||x!==h.prevData||w!==h.prevWidth||_!==h.prevHeight||E!==h.prevLayout||$!==h.prevStackOffset||!qm(A,h.prevMargin)){var R=k_(y),D={chartX:h.chartX,chartY:h.chartY,isTooltipActive:h.isTooltipActive},M=z(z({},C_(h,x,E)),{},{updateId:h.updateId+1}),L=z(z(z({},R),D),M);return z(z(z({},L),p(z({props:y},L),h)),{},{prevDataKey:g,prevData:x,prevWidth:w,prevHeight:_,prevLayout:E,prevStackOffset:$,prevMargin:A,prevChildren:O})}if(!Xm(O,h.prevChildren)){var I,P,k,F,B=Qt(O,sa),U=B&&(I=(P=B.props)===null||P===void 0?void 0:P.startIndex)!==null&&I!==void 0?I:C,X=B&&(k=(F=B.props)===null||F===void 0?void 0:F.endIndex)!==null&&k!==void 0?k:T,ne=U!==C||X!==T,ae=!oe(x),te=ae&&!ne?h.updateId:h.updateId+1;return z(z({updateId:te},p(z(z({props:y},h),{},{updateId:te,dataStartIndex:U,dataEndIndex:X}),h)),{},{prevChildren:O,dataStartIndex:U,dataEndIndex:X})}return null}),Y(m,"renderActiveDot",function(y,h,g){var x;return S.isValidElement(y)?x=S.cloneElement(y,h):J(y)?x=y(h):x=j.createElement(U0,h),j.createElement($e,{className:"recharts-active-dot",key:g},x)});var v=S.forwardRef(function(h,g){return j.createElement(m,Ao({},h,{ref:g}))});return v.displayName=m.displayName,v},tu=Hj({chartName:"PieChart",GraphicalChild:Kt,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:sp},{axisType:"radiusAxis",AxisComp:ap}],formatAxisMap:sG,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});function yte(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var xte=yte,bte=W0,wte=wd,Ste=Object.prototype,_te=Ste.hasOwnProperty;function Ote(e,t,n){var r=e[t];(!(_te.call(e,t)&&wte(r,n))||n===void 0&&!(t in e))&&bte(e,t,n)}var Wj=Ote,Ete=Wj,$te=W0;function Pte(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?$te(n,l,s):Ete(n,l,s)}return n}var nu=Pte,Ate=nu,Tte=Ys;function jte(e,t){return e&&Ate(t,Tte(t),e)}var Cte=jte;function kte(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Nte=kte,Mte=jn,Ite=s0,Rte=Nte,Lte=Object.prototype,Dte=Lte.hasOwnProperty;function Fte(e){if(!Mte(e))return Rte(e);var t=Ite(e),n=[];for(var r in e)r=="constructor"&&(t||!Dte.call(e,r))||n.push(r);return n}var Bte=Fte,zte=hA,Ute=Bte,Hte=Xs;function Wte(e){return Hte(e)?zte(e,!0):Ute(e)}var X0=Wte,Vte=nu,Kte=X0;function qte(e,t){return e&&Vte(t,Kte(t),e)}var Gte=qte,Df={exports:{}};Df.exports;(function(e,t){var n=An,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})(Df,Df.exports);var Xte=Df.exports;function Yte(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var Qte=Yte,Zte=nu,Jte=n0;function ene(e,t){return Zte(e,Jte(e),t)}var tne=ene,nne=t0,rne=H0,ine=n0,one=fA,ane=Object.getOwnPropertySymbols,lne=ane?function(e){for(var t=[];e;)nne(t,ine(e)),e=rne(e);return t}:one,Vj=lne,sne=nu,une=Vj;function cne(e,t){return sne(e,une(e),t)}var fne=cne,dne=cA,pne=Vj,hne=X0;function mne(e){return dne(e,hne,pne)}var Kj=mne,vne=Object.prototype,gne=vne.hasOwnProperty;function yne(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&gne.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var xne=yne,M_=uA;function bne(e){var t=new e.constructor(e.byteLength);return new M_(t).set(new M_(e)),t}var Y0=bne,wne=Y0;function Sne(e,t){var n=t?wne(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var _ne=Sne,One=/\w*$/;function Ene(e){var t=new e.constructor(e.source,One.exec(e));return t.lastIndex=e.lastIndex,t}var $ne=Ene,I_=_a,R_=I_?I_.prototype:void 0,L_=R_?R_.valueOf:void 0;function Pne(e){return L_?Object(L_.call(e)):{}}var Ane=Pne,Tne=Y0;function jne(e,t){var n=t?Tne(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Cne=jne,kne=Y0,Nne=_ne,Mne=$ne,Ine=Ane,Rne=Cne,Lne="[object Boolean]",Dne="[object Date]",Fne="[object Map]",Bne="[object Number]",zne="[object RegExp]",Une="[object Set]",Hne="[object String]",Wne="[object Symbol]",Vne="[object ArrayBuffer]",Kne="[object DataView]",qne="[object Float32Array]",Gne="[object Float64Array]",Xne="[object Int8Array]",Yne="[object Int16Array]",Qne="[object Int32Array]",Zne="[object Uint8Array]",Jne="[object Uint8ClampedArray]",ere="[object Uint16Array]",tre="[object Uint32Array]";function nre(e,t,n){var r=e.constructor;switch(t){case Vne:return kne(e);case Lne:case Dne:return new r(+e);case Kne:return Nne(e,n);case qne:case Gne:case Xne:case Yne:case Qne:case Zne:case Jne:case ere:case tre:return Rne(e,n);case Fne:return new r;case Bne:case Hne:return new r(e);case zne:return Mne(e);case Une:return new r;case Wne:return Ine(e)}}var rre=nre,ire=jn,D_=Object.create,ore=function(){function e(){}return function(t){if(!ire(t))return{};if(D_)return D_(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),are=ore,lre=are,sre=H0,ure=s0;function cre(e){return typeof e.constructor=="function"&&!ure(e)?lre(sre(e)):{}}var fre=cre,dre=Wd,pre=Tn,hre="[object Map]";function mre(e){return pre(e)&&dre(e)==hre}var vre=mre,gre=vre,yre=Hd,F_=l0,B_=F_&&F_.isMap,xre=B_?yre(B_):gre,bre=xre,wre=Wd,Sre=Tn,_re="[object Set]";function Ore(e){return Sre(e)&&wre(e)==_re}var Ere=Ore,$re=Ere,Pre=Hd,z_=l0,U_=z_&&z_.isSet,Are=U_?Pre(U_):$re,Tre=Are,jre=Jy,Cre=xte,kre=Wj,Nre=Cte,Mre=Gte,Ire=Xte,Rre=Qte,Lre=tne,Dre=fne,Fre=vA,Bre=Kj,zre=Wd,Ure=xne,Hre=rre,Wre=fre,Vre=Et,Kre=i0,qre=bre,Gre=jn,Xre=Tre,Yre=Ys,Qre=X0,Zre=1,Jre=2,eie=4,qj="[object Arguments]",tie="[object Array]",nie="[object Boolean]",rie="[object Date]",iie="[object Error]",Gj="[object Function]",oie="[object GeneratorFunction]",aie="[object Map]",lie="[object Number]",Xj="[object Object]",sie="[object RegExp]",uie="[object Set]",cie="[object String]",fie="[object Symbol]",die="[object WeakMap]",pie="[object ArrayBuffer]",hie="[object DataView]",mie="[object Float32Array]",vie="[object Float64Array]",gie="[object Int8Array]",yie="[object Int16Array]",xie="[object Int32Array]",bie="[object Uint8Array]",wie="[object Uint8ClampedArray]",Sie="[object Uint16Array]",_ie="[object Uint32Array]",ye={};ye[qj]=ye[tie]=ye[pie]=ye[hie]=ye[nie]=ye[rie]=ye[mie]=ye[vie]=ye[gie]=ye[yie]=ye[xie]=ye[aie]=ye[lie]=ye[Xj]=ye[sie]=ye[uie]=ye[cie]=ye[fie]=ye[bie]=ye[wie]=ye[Sie]=ye[_ie]=!0;ye[iie]=ye[Gj]=ye[die]=!1;function mc(e,t,n,r,i,o){var a,l=t&Zre,s=t&Jre,u=t&eie;if(n&&(a=i?n(e,r,i,o):n(e)),a!==void 0)return a;if(!Gre(e))return e;var c=Vre(e);if(c){if(a=Ure(e),!l)return Rre(e,a)}else{var f=zre(e),d=f==Gj||f==oie;if(Kre(e))return Ire(e,l);if(f==Xj||f==qj||d&&!i){if(a=s||d?{}:Wre(e),!l)return s?Dre(e,Mre(a,e)):Lre(e,Nre(a,e))}else{if(!ye[f])return i?e:{};a=Hre(e,f,l)}}o||(o=new jre);var p=o.get(e);if(p)return p;o.set(e,a),Xre(e)?e.forEach(function(y){a.add(mc(y,t,n,y,e,o))}):qre(e)&&e.forEach(function(y,h){a.set(h,mc(y,t,n,h,e,o))});var m=u?s?Bre:Fre:s?Qre:Yre,v=c?void 0:m(e);return Cre(v||e,function(y,h){v&&(h=y,y=e[h]),kre(a,h,mc(y,t,n,h,e,o))}),a}var Oie=mc,Eie=Pd,$ie=kP;function Pie(e,t){return t.length<2?e:Eie(e,$ie(t,0,-1))}var Aie=Pie,Tie=$d,jie=XT,Cie=Aie,kie=Ks;function Nie(e,t){return t=Tie(t,e),e=Cie(e,t),e==null||delete e[kie(jie(t))]}var Mie=Nie,Iie=hj;function Rie(e){return Iie(e)?void 0:e}var Lie=Rie,Die=c0;function Fie(e){var t=e==null?0:e.length;return t?Die(e,1):[]}var Bie=Fie,zie=Bie,Uie=AA,Hie=jA;function Wie(e){return Hie(Uie(e,void 0,zie),e+"")}var Vie=Wie,Kie=Ed,qie=Oie,Gie=Mie,Xie=$d,Yie=nu,Qie=Lie,Zie=Vie,Jie=Kj,eoe=1,toe=2,noe=4,roe=Zie(function(e,t){var n={};if(e==null)return n;var r=!1;t=Kie(t,function(o){return o=Xie(o,e),r||(r=o.length>1),o}),Yie(e,Jie(e),n),r&&(n=qie(n,eoe|toe|noe,Qie));for(var i=t.length;i--;)Gie(n,t[i]);return n}),ioe=roe;const ooe=he(ioe);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 mg(){return mg=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},mg.apply(this,arguments)}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 Nh(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){aoe(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 aoe(e,t,n){return t=loe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function loe(e){var t=soe(e,"string");return ks(t)=="symbol"?t:t+""}function soe(e,t){if(ks(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ks(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uoe(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 Nh(Nh(Nh({},t),mj(e)),{},{height:l,x:r,y:o})}function coe(e){return j.createElement(vj,mg({shapeType:"trapezoid",propTransformer:uoe},e))}var vg;function W_(e,t){return hoe(e)||poe(e,t)||doe(e,t)||foe()}function foe(){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 doe(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 poe(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 hoe(e){if(Array.isArray(e))return e}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 Ff(){return Ff=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},Ff.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 Ge(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){vr(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 moe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q_(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 voe(e,t,n){return t&&q_(e.prototype,t),n&&q_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function goe(e,t,n){return t=Bf(t),yoe(e,Yj()?Reflect.construct(t,n||[],Bf(e).constructor):t.apply(e,n))}function yoe(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 xoe(e)}function xoe(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 Bf(e){return Bf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bf(e)}function boe(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&&gg(e,t)}function gg(e,t){return gg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},gg(e,t)}function vr(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=woe(e,"string");return ha(t)=="symbol"?t:t+""}function woe(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 fi=function(e){function t(){var n;moe(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=goe(this,t,[].concat(i)),vr(n,"state",{isAnimationFinished:!1}),vr(n,"handleAnimationEnd",function(){var a=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),J(a)&&a()}),vr(n,"handleAnimationStart",function(){var a=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),J(a)&&a()}),n}return boe(t,e),voe(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=Ge(Ge({},s),{},{isActive:i.isActiveIndex(u),stroke:s.stroke});return j.createElement($e,Ff({className:"recharts-funnel-trapezoid"},Gs(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(coe,Ff({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(Er,{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,m=o.map(function(v,y){var h=f&&f[y];if(h){var g=Yt(h.x,v.x),x=Yt(h.y,v.y),O=Yt(h.upperWidth,v.upperWidth),w=Yt(h.lowerWidth,v.lowerWidth),_=Yt(h.height,v.height);return Ge(Ge({},v),{},{x:g(p),y:x(p),upperWidth:O(p),lowerWidth:w(p),height:_(p)})}var E=Yt(v.x+v.upperWidth/2,v.x),$=Yt(v.y+v.height/2,v.y),A=Yt(0,v.upperWidth),C=Yt(0,v.lowerWidth),T=Yt(0,v.height);return Ge(Ge({},v),{},{x:E(p),y:$(p),upperWidth:A(p),lowerWidth:C(p),height:T(p)})});return j.createElement($e,null,r.renderTrapezoidsStatically(m))})}},{key:"renderTrapezoids",value:function(){var r=this.props,i=r.trapezoids,o=r.isAnimationActive,a=this.state.prevTrapezoids;return o&&i&&i.length&&(!a||!np(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=se("recharts-trapezoids",a);return j.createElement($e,{className:u},this.renderTrapezoids(),(!l||s)&&mr.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}}])}(S.PureComponent);vg=fi;vr(fi,"displayName","Funnel");vr(fi,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!Xr.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"});vr(fi,"getRealFunnelData",function(e){var t=e.props,n=t.data,r=t.children,i=ee(e.props,!1),o=En(r,h0);return n&&n.length?n.map(function(a,l){return Ge(Ge(Ge({payload:a},i),a),o&&o[l]&&o[l].props)}):o&&o.length?o.map(function(a){return Ge(Ge({},i),a.props)}):[]});vr(fi,"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 CP(n)?c=n:Ta(n)&&(c=c*parseFloat(n)/100),{realWidth:c-o-a-50,realHeight:u-s-l,offsetX:(r-c)/2,offsetY:(i-u)/2}});vr(fi,"getComposedData",function(e){var t=e.item,n=e.offset,r=vg.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=vg.getRealWidthHeight(t,n),p=d.realHeight,m=d.realWidth,v=d.offsetX,y=d.offsetY,h=Math.max.apply(null,r.map(function(_){return at(_,o,0)})),g=r.length,x=p/g,O={x:n.left,y:n.top,width:n.width,height:n.height},w=r.map(function(_,E){var $=at(_,o,0),A=at(_,a,E),C=$,T;if(E!==g-1){if(T=at(r[E+1],o,0),T instanceof Array){var N=T,R=W_(N,1);T=R[0]}}else if($ instanceof Array&&$.length===2){var D=W_($,2);C=D[0],T=D[1]}else s==="rectangle"?T=C:T=0;var M=(h-C)*m/(2*h)+f+25+v,L=x*E+c+y,I=C/h*m,P=T/h*m,k=[{name:A,value:C,payload:_,dataKey:o,type:l}],F={x:M+I/2,y:L+x/2};return Ge(Ge({x:M,y:L,width:Math.max(I,P),upperWidth:I,lowerWidth:P,height:x,name:A,val:C,tooltipPayload:k,tooltipPosition:F},ooe(_,"width")),{},{payload:_,parentViewBox:O,labelViewBox:{x:M+(I-P)/4,y:L,width:Math.abs(I-P)/2+Math.min(I,P),height:x}})});return u&&(w=w.map(function(_,E){var $=_.y-E*x+(g-1-E)*x;return Ge(Ge({},_),{},{upperWidth:_.lowerWidth,lowerWidth:_.upperWidth,x:_.x-(_.lowerWidth-_.upperWidth)/2,y:_.y-E*x+(g-1-E)*x,tooltipPosition:Ge(Ge({},_.tooltipPosition),{},{y:$+x/2}),labelViewBox:Ge(Ge({},_.labelViewBox),{},{y:$})})})),{trapezoids:w,data:r}});var Soe=Hj({chartName:"FunnelChart",GraphicalChild:fi,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}});const{size_percentile:{minimum_thresholds:an},test_coverage:{minimum_thresholds:zf}}=oi.project.documentation_site,Mn=e=>e==null?{hex:"#f3f4f6",class:"bg-gray-100"}:e>=an.xl?{hex:"#1e3a8a",class:"bg-blue-900"}:e>=an.l?{hex:"#1e40af",class:"bg-blue-800"}:e>=an.m?{hex:"#2563eb",class:"bg-blue-600"}:e>=an.s?{hex:"#3b82f6",class:"bg-blue-500"}:{hex:"#93c5fd",class:"bg-blue-300"},ma=e=>e>=an.xl?"xl":e>=an.l?"l":e>=an.m?"m":e>=an.s?"s":"xs",Ns=e=>e>=an.xl?5:e>=an.l?4:e>=an.m?3:e>=an.s?2:1,xt=e=>e==null?{hex:"transparent",class:"bg-transparent"}:e>=zf.good?{hex:"#22c55e",class:"bg-green-500"}:e>=zf.fair?{hex:"#eab308",class:"bg-yellow-500"}:{hex:"#ef4444",class:"bg-red-500"},Zj=e=>e>=zf.good?"good":e>=zf.fair?"fair":"poor",_oe=e=>e>=1e3?(e/1e3).toFixed(1)+"k":e,Uf=e=>!e||e.length===0?b.jsx("span",{className:"text-gray-400 italic text-sm",children:"No team assigned"}):e.length>1?b.jsxs("p",{className:"text-sm text-gray-700",children:[e[0]," + ",e.length-1]}):b.jsx("p",{className:"text-sm text-gray-700",children:e[0]});function vp(){return typeof window<"u"}function Da(e){return Jj(e)?(e.nodeName||"").toLowerCase():"#document"}function Mt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xn(e){var t;return(t=(Jj(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Jj(e){return vp()?e instanceof Node||e instanceof Mt(e).Node:!1}function fe(e){return vp()?e instanceof Element||e instanceof Mt(e).Element:!1}function Ut(e){return vp()?e instanceof HTMLElement||e instanceof Mt(e).HTMLElement:!1}function yg(e){return!vp()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Mt(e).ShadowRoot}function ru(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=fn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Ooe(e){return["table","td","th"].includes(Da(e))}function gp(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Q0(e){const t=yp(),n=fe(e)?fn(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 Eoe(e){let t=$r(e);for(;Ut(t)&&!gr(t);){if(Q0(t))return t;if(gp(t))return null;t=$r(t)}return null}function yp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function gr(e){return["html","body","#document"].includes(Da(e))}function fn(e){return Mt(e).getComputedStyle(e)}function xp(e){return fe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $r(e){if(Da(e)==="html")return e;const t=e.assignedSlot||e.parentNode||yg(e)&&e.host||Xn(e);return yg(t)?t.host:t}function e2(e){const t=$r(e);return gr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ut(t)&&ru(t)?t:e2(t)}function Qr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=e2(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Mt(i);if(o){const l=xg(a);return t.concat(a,a.visualViewport||[],ru(i)?i:[],l&&n?Qr(l):[])}return t.concat(i,Qr(i,[],n))}function xg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bg(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 va(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&yg(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function t2(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function n2(){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 $oe(e){return Aoe()?!1:!G_()&&e.width===0&&e.height===0||G_()&&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 r2(){return/apple/i.test(navigator.vendor)}function G_(){const e=/android/i;return e.test(t2())||e.test(n2())}function Poe(){return t2().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Aoe(){return n2().includes("jsdom/")}function wg(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function Toe(e){return"nativeEvent"in e}function joe(e){return e.matches("html,body")}function Br(e){return(e==null?void 0:e.ownerDocument)||document}function Mh(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 fo(e){return"composedPath"in e?e.composedPath()[0]:e.target}const Coe="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function koe(e){return Ut(e)&&e.matches(Coe)}const Noe=["top","right","bottom","left"],X_=["start","end"],Y_=Noe.reduce((e,t)=>e.concat(t,t+"-"+X_[0],t+"-"+X_[1]),[]),Ki=Math.min,ht=Math.max,Ms=Math.round,Yu=Math.floor,Un=e=>({x:e,y:e}),Moe={left:"right",right:"left",bottom:"top",top:"bottom"},Ioe={start:"end",end:"start"};function Q_(e,t,n){return ht(e,Ki(t,n))}function ro(e,t){return typeof e=="function"?e(t):e}function Kn(e){return e.split("-")[0]}function Hn(e){return e.split("-")[1]}function i2(e){return e==="x"?"y":"x"}function o2(e){return e==="y"?"height":"width"}function qi(e){return["top","bottom"].includes(Kn(e))?"y":"x"}function a2(e){return i2(qi(e))}function l2(e,t,n){n===void 0&&(n=!1);const r=Hn(e),i=a2(e),o=o2(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Wf(a)),[a,Wf(a)]}function Roe(e){const t=Wf(e);return[Hf(e),t,Hf(t)]}function Hf(e){return e.replace(/start|end/g,t=>Ioe[t])}function Loe(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 Doe(e,t,n,r){const i=Hn(e);let o=Loe(Kn(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(Hf)))),o}function Wf(e){return e.replace(/left|right|bottom|top/g,t=>Moe[t])}function Foe(e){return{top:0,right:0,bottom:0,left:0,...e}}function Boe(e){return typeof e!="number"?Foe(e):{top:e,right:e,bottom:e,left:e}}function Vf(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}}/*!
235
+ the props "valueKey" will be deprecated in 1.1.0`),h=f);var g=i.filter(function($){return at($,h,0)!==0}).length,x=(y>=360?g:g-1)*s,E=y-g*p-x,w=i.reduce(function($,A){var C=at(A,h,0);return $+(K(C)?C:0)},0),S;if(w>0){var O;S=i.map(function($,A){var C=at($,h,0),T=at($,c,A),N=(K(C)?C:0)/w,R;A?R=O.endAngle+rn(v)*s*(C!==0?1:0):R=a;var D=R+rn(v)*((C!==0?p:0)+N*E),M=(R+D)/2,L=(m.innerRadius+m.outerRadius)/2,I=[{name:T,value:C,payload:$,dataKey:h,type:d}],P=_e(m.cx,m.cy,L,M);return O=xe(xe(xe({percent:N,cornerRadius:o,name:T,tooltipPayload:I,midAngle:M,middleRadius:L,tooltipPosition:P},$),m),{},{value:at($,h),startAngle:R,endAngle:D,payload:$,paddingAngle:rn(v)*s}),O})}return xe(xe({},m),{},{sectors:S,data:i})});var bZ=Math.ceil,wZ=Math.max;function _Z(e,t,n,r){for(var i=-1,o=wZ(bZ((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a}var SZ=_Z,EZ=NA,lS=1/0,OZ=17976931348623157e292;function $Z(e){if(!e)return e===0?e:0;if(e=EZ(e),e===lS||e===-lS){var t=e<0?-1:1;return t*OZ}return e===e?e:0}var PZ=$Z,AZ=SZ,TZ=Vd,$h=PZ;function jZ(e){return function(t,n,r){return r&&typeof r!="number"&&TZ(t,n,r)&&(n=r=void 0),t=$h(t),n===void 0?(n=t,t=0):n=$h(n),r=r===void 0?t<n?1:-1:$h(r),AZ(t,n,r,e)}}var CZ=jZ,kZ=CZ,NZ=kZ(),MZ=NZ;const jf=he(MZ);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 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 uS(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){g2(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 g2(e,t,n){return t=IZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IZ(e){var t=RZ(e,"string");return As(t)=="symbol"?t:t+""}function RZ(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 LZ=["Webkit","Moz","O","ms"],DZ=function(t,n){var r=t.replace(/(\w)/,function(o){return o.toUpperCase()}),i=LZ.reduce(function(o,a){return uS(uS({},o),{},g2({},a+r,n))},{});return i[t]=n,i};function la(e){"@babel/helpers - typeof";return la=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},la(e)}function Cf(){return Cf=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},Cf.apply(this,arguments)}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 Ph(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){It(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 FZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fS(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,x2(r.key),r)}}function BZ(e,t,n){return t&&fS(e.prototype,t),n&&fS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zZ(e,t,n){return t=kf(t),UZ(e,y2()?Reflect.construct(t,n||[],kf(e).constructor):t.apply(e,n))}function UZ(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 HZ(e)}function HZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(y2=function(){return!!e})()}function kf(e){return kf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},kf(e)}function WZ(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&&tg(e,t)}function tg(e,t){return tg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},tg(e,t)}function It(e,t,n){return t=x2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x2(e){var t=VZ(e,"string");return la(t)=="symbol"?t:t+""}function VZ(e,t){if(la(e)!="object"||!e)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)}var KZ=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=Tl().domain(jf(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}},dS=function(t){return t.changedTouches&&!!t.changedTouches.length},sa=function(e){function t(n){var r;return FZ(this,t),r=zZ(this,t,[n]),It(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),It(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),It(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()}),It(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),It(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),It(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),It(r,"handleSlideDragStart",function(i){var o=dS(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 WZ(t,e),BZ(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),m=t.getIndexInRange(a,d);return{startIndex:p-p%s,endIndex:m===c?c:m-m%s}}},{key:"getTextOfTick",value:function(r){var i=this.props,o=i.data,a=i.tickFormatter,l=i.dataKey,s=at(o[r],l,r);return J(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,m=s.onChange,v=r.pageX-o;v>0?v=Math.min(v,u+c-f-l,u+c-f-a):v<0&&(v=Math.max(v,u-a,u-l));var y=this.getIndex({startX:a+v,endX:l+v});(y.startIndex!==d||y.endIndex!==p)&&m&&m(y),this.setState({startX:a+v,endX:l+v,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var o=dS(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,m=c.onChange,v=c.gap,y=c.data,h={startX:this.state.startX,endX:this.state.endX},g=r.pageX-o;g>0?g=Math.min(g,f+d-p-u):g<0&&(g=Math.max(g,f-u)),h[a]=u+g;var x=this.getIndex(h),E=x.startIndex,w=x.endIndex,S=function(){var $=y.length-1;return a==="startX"&&(l>s?E%v===0:w%v===0)||l<s&&w===$||a==="endX"&&(l>s?w%v===0:E%v===0)||l>s&&w===$};this.setState(It(It({},a,u+g),"brushMoveStartX",r.pageX),function(){m&&S()&&m(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(It({},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=_.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,m=s.data,v=s.startIndex,y=s.endIndex,h=Math.max(r,this.props.x),g=Ph(Ph({},ee(this.props,!1)),{},{x:h,y:u,width:c,height:f}),x=p||"Min value: ".concat((o=m[v])===null||o===void 0?void 0:o.name,", Max value: ").concat((a=m[y])===null||a===void 0?void 0:a.name);return j.createElement($e,{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(w){["ArrowLeft","ArrowRight"].includes(w.key)&&(w.preventDefault(),w.stopPropagation(),l.handleTravellerMoveKeyboard(w.key==="ArrowRight"?1:-1,i))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,g))}},{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,m={pointerEvents:"none",fill:u};return j.createElement($e,{className:"recharts-brush-texts"},j.createElement(Qo,Cf({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,d)-p,y:a+l/2},m),this.getTextOfTick(i)),j.createElement(Qo,Cf({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,d)+s+p,y:a+l/2},m),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,m=d.endX,v=d.isTextActive,y=d.isSlideMoving,h=d.isTravellerMoving,g=d.isTravellerFocused;if(!i||!i.length||!K(l)||!K(s)||!K(u)||!K(c)||u<=0||c<=0)return null;var x=se("recharts-brush",o),E=j.Children.count(a)===1,w=DZ("userSelect","none");return j.createElement($e,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:w},this.renderBackground(),E&&this.renderPanorama(),this.renderSlide(p,m),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(m,"endX"),(v||y||h||g||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):J(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 Ph({prevData:o,prevTravellerWidth:s,prevUpdateId:u,prevX:l,prevWidth:a},o&&o.length?KZ({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}}])}(_.PureComponent);It(sa,"displayName","Brush");It(sa,"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 qZ=u0;function GZ(e,t){var n;return qZ(e,function(r,i,o){return n=t(r,i,o),!n}),!!n}var XZ=GZ,YZ=iA,QZ=ai,ZZ=XZ,JZ=Ot,eJ=Vd;function tJ(e,t,n){var r=JZ(e)?YZ:ZZ;return n&&eJ(e,t,n)&&(t=void 0),r(e,QZ(t))}var nJ=tJ;const rJ=he(nJ);var zn=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},pS=PA;function iJ(e,t,n){t=="__proto__"&&pS?pS(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var U0=iJ,oJ=U0,aJ=EA,lJ=ai;function sJ(e,t){var n={};return t=lJ(t),aJ(e,function(r,i,o){oJ(n,i,t(r,i,o))}),n}var uJ=sJ;const cJ=he(uJ);function fJ(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 dJ=fJ,pJ=u0;function hJ(e,t){var n=!0;return pJ(e,function(r,i,o){return n=!!t(r,i,o),n}),n}var mJ=hJ,vJ=dJ,gJ=mJ,yJ=ai,xJ=Ot,bJ=Vd;function wJ(e,t,n){var r=xJ(e)?vJ:gJ;return n&&bJ(e,t,n)&&(t=void 0),r(e,yJ(t))}var _J=wJ;const SJ=he(_J);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)}function EJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hS(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,b2(r.key),r)}}function OJ(e,t,n){return t&&hS(e.prototype,t),n&&hS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function mS(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?mS(Object(n),!0).forEach(function(r){H0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function H0(e,t,n){return t=b2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b2(e){var t=$J(e,"string");return Ts(t)=="symbol"?t:t+""}function $J(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)}var w2=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)}},PJ=function(t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2;return w2({x:n,y:r},{x:i,y:o})},_2=function(){function e(t){EJ(this,e),this.scale=t}return OJ(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)}}])}();H0(_2,"EPS",1e-4);var W0=function(t){var n=Object.keys(t).reduce(function(r,i){return Ku(Ku({},r),{},H0({},i,_2.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 cJ(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)})}})},AJ=jD(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("")}),S2=_.createContext(void 0),E2=_.createContext(void 0),O2=_.createContext(void 0),TJ=_.createContext({}),$2=_.createContext(void 0),jJ=_.createContext(0),CJ=_.createContext(0),vS=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=AJ(o);return j.createElement(S2.Provider,{value:r},j.createElement(E2.Provider,{value:i},j.createElement(TJ.Provider,{value:o},j.createElement(O2.Provider,{value:c},j.createElement($2.Provider,{value:a},j.createElement(jJ.Provider,{value:u},j.createElement(CJ.Provider,{value:s},l)))))))},kJ=function(){return _.useContext($2)},NJ=function(t){var n=_.useContext(S2);n==null&&ta();var r=n[t];return r==null&&ta(),r},MJ=function(t){var n=_.useContext(E2);n==null&&ta();var r=n[t];return r==null&&ta(),r},IJ=function(){var t=_.useContext(O2);return t};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 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,A2(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=Nf(t),BJ(e,P2()?Reflect.construct(t,n||[],Nf(e).constructor):t.apply(e,n))}function BJ(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 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 P2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(P2=function(){return!!e})()}function Nf(e){return Nf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Nf(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&&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 gS(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 yS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gS(Object(n),!0).forEach(function(r){V0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function V0(e,t,n){return t=A2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A2(e){var t=HJ(e,"string");return ua(t)=="symbol"?t:t+""}function HJ(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)}function WJ(e,t){return GJ(e)||qJ(e,t)||KJ(e,t)||VJ()}function VJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
236
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KJ(e,t){if(e){if(typeof e=="string")return xS(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 xS(e,t)}}function xS(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 qJ(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 GJ(e){if(Array.isArray(e))return e}function rg(){return rg=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},rg.apply(this,arguments)}var XJ=function(t,n){var r;return j.isValidElement(t)?r=j.cloneElement(t,n):J(t)?r=t(n):r=j.createElement("line",rg({},n,{className:"recharts-reference-line-line"})),r},YJ=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 m=u.y,v=t.y.apply(m,{position:a});if(zn(u,"discard")&&!t.y.isInRange(v))return null;var y=[{x:c+d,y:v},{x:c,y:v}];return s==="left"?y.reverse():y}if(n){var h=u.x,g=t.x.apply(h,{position:a});if(zn(u,"discard")&&!t.x.isInRange(g))return null;var x=[{x:g,y:f+p},{x:g,y:f}];return l==="top"?x.reverse():x}if(i){var E=u.segment,w=E.map(function(S){return t.apply(S,{position:a})});return zn(u,"discard")&&rJ(w,function(S){return!t.isInRange(S)})?null:w}return null};function QJ(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=kJ(),c=NJ(i),f=MJ(o),d=IJ();if(!u||!d)return null;pr(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=W0({x:c.scale,y:f.scale}),m=Ye(t),v=Ye(n),y=r&&r.length===2,h=YJ(p,m,v,y,d,e.position,c.orientation,f.orientation,e);if(!h)return null;var g=WJ(h,2),x=g[0],E=x.x,w=x.y,S=g[1],O=S.x,$=S.y,A=zn(e,"hidden")?"url(#".concat(u,")"):void 0,C=yS(yS({clipPath:A},ee(e,!0)),{},{x1:E,y1:w,x2:O,y2:$});return j.createElement($e,{className:se("recharts-reference-line",l)},XJ(a,C),ot.renderCallByParent(e,PJ({x1:E,y1:w,x2:O,y2:$})))}var K0=function(e){function t(){return RJ(this,t),FJ(this,t,arguments)}return UJ(t,e),DJ(t,[{key:"render",value:function(){return j.createElement(QJ,this.props)}}])}(j.Component);V0(K0,"displayName","ReferenceLine");V0(K0,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function ig(){return ig=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},ig.apply(this,arguments)}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 bS(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 wS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bS(Object(n),!0).forEach(function(r){cp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JJ(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,j2(r.key),r)}}function eee(e,t,n){return t&&JJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tee(e,t,n){return t=Mf(t),nee(e,T2()?Reflect.construct(t,n||[],Mf(e).constructor):t.apply(e,n))}function nee(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 ree(e)}function ree(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 Mf(e){return Mf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mf(e)}function iee(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&&og(e,t)}function og(e,t){return og=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},og(e,t)}function cp(e,t,n){return t=j2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j2(e){var t=oee(e,"string");return ca(t)=="symbol"?t:t+""}function oee(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 aee=function(t){var n=t.x,r=t.y,i=t.xAxis,o=t.yAxis,a=W0({x:i.scale,y:o.scale}),l=a.apply({x:n,y:r},{bandAware:!0});return zn(t,"discard")&&!a.isInRange(l)?null:l},fp=function(e){function t(){return ZJ(this,t),tee(this,t,arguments)}return iee(t,e),eee(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=Ye(i),c=Ye(o);if(pr(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!c)return null;var f=aee(this.props);if(!f)return null;var d=f.x,p=f.y,m=this.props,v=m.shape,y=m.className,h=zn(this.props,"hidden")?"url(#".concat(s,")"):void 0,g=wS(wS({clipPath:h},ee(this.props,!0)),{},{cx:d,cy:p});return j.createElement($e,{className:se("recharts-reference-dot",y)},t.renderDot(v,g),ot.renderCallByParent(this.props,{x:d-a,y:p-a,width:2*a,height:2*a}))}}])}(j.Component);cp(fp,"displayName","ReferenceDot");cp(fp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});cp(fp,"renderDot",function(e,t){var n;return j.isValidElement(e)?n=j.cloneElement(e,t):J(e)?n=e(t):n=j.createElement(B0,ig({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});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 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 _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 SS(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){dp(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 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,k2(r.key),r)}}function uee(e,t,n){return t&&see(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cee(e,t,n){return t=If(t),fee(e,C2()?Reflect.construct(t,n||[],If(e).constructor):t.apply(e,n))}function fee(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 dee(e)}function dee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(C2=function(){return!!e})()}function If(e){return If=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},If(e)}function pee(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 dp(e,t,n){return t=k2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k2(e){var t=hee(e,"string");return fa(t)=="symbol"?t:t+""}function hee(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 mee=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=W0({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},m={x:n?d.x.apply(l,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(u,{position:"end"}):d.y.rangeMax};return zn(o,"discard")&&(!d.isInRange(p)||!d.isInRange(m))?null:w2(p,m)},pp=function(e){function t(){return lee(this,t),cee(this,t,arguments)}return pee(t,e),uee(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;pr(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=Ye(i),d=Ye(o),p=Ye(a),m=Ye(l),v=this.props.shape;if(!f&&!d&&!p&&!m&&!v)return null;var y=mee(f,d,p,m,this.props);if(!y&&!v)return null;var h=zn(this.props,"hidden")?"url(#".concat(c,")"):void 0;return j.createElement($e,{className:se("recharts-reference-area",s)},t.renderRect(v,SS(SS({clipPath:h},ee(this.props,!0)),y)),ot.renderCallByParent(this.props,y))}}])}(j.Component);dp(pp,"displayName","ReferenceArea");dp(pp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});dp(pp,"renderRect",function(e,t){var n;return j.isValidElement(e)?n=j.cloneElement(e,t):J(e)?n=e(t):n=j.createElement(F0,ag({},t,{className:"recharts-reference-area-rect"})),n});function ES(e){return xee(e)||yee(e)||gee(e)||vee()}function vee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
237
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gee(e,t){if(e){if(typeof e=="string")return sg(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 sg(e,t)}}function yee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xee(e){if(Array.isArray(e))return sg(e)}function sg(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 ug=function(t,n,r,i,o){var a=On(t,K0),l=On(t,fp),s=[].concat(ES(a),ES(l)),u=On(t,pp),c="".concat(i,"Id"),f=i[0],d=n;if(s.length&&(d=s.reduce(function(v,y){if(y.props[c]===r&&zn(y.props,"extendDomain")&&K(y.props[f])){var h=y.props[f];return[Math.min(v[0],h),Math.max(v[1],h)]}return v},d)),u.length){var p="".concat(f,"1"),m="".concat(f,"2");d=u.reduce(function(v,y){if(y.props[c]===r&&zn(y.props,"extendDomain")&&K(y.props[p])&&K(y.props[m])){var h=y.props[p],g=y.props[m];return[Math.min(v[0],h,g),Math.max(v[1],h,g)]}return v},d)}return o&&o.length&&(d=o.reduce(function(v,y){return K(y)?[Math.min(v[0],y),Math.max(v[1],y)]:v},d)),d},N2={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),m=n?n+u:u;return s._events[m]?s._events[m].fn?s._events[m]=[s._events[m],p]:s._events[m].push(p):(s._events[m]=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,m=new Array(p);d<p;d++)m[d]=f[d].fn;return m},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,m){var v=n?n+u:u;if(!this._events[v])return!1;var y=this._events[v],h=arguments.length,g,x;if(y.fn){switch(y.once&&this.removeListener(u,y.fn,void 0,!0),h){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,c),!0;case 3:return y.fn.call(y.context,c,f),!0;case 4:return y.fn.call(y.context,c,f,d),!0;case 5:return y.fn.call(y.context,c,f,d,p),!0;case 6:return y.fn.call(y.context,c,f,d,p,m),!0}for(x=1,g=new Array(h-1);x<h;x++)g[x-1]=arguments[x];y.fn.apply(y.context,g)}else{var E=y.length,w;for(x=0;x<E;x++)switch(y[x].once&&this.removeListener(u,y[x].fn,void 0,!0),h){case 1:y[x].fn.call(y[x].context);break;case 2:y[x].fn.call(y[x].context,c);break;case 3:y[x].fn.call(y[x].context,c,f);break;case 4:y[x].fn.call(y[x].context,c,f,d);break;default:if(!g)for(w=1,g=new Array(h-1);w<h;w++)g[w-1]=arguments[w];y[x].fn.apply(y[x].context,g)}}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 m=this._events[p];if(m.fn)m.fn===c&&(!d||m.once)&&(!f||m.context===f)&&a(this,p);else{for(var v=0,y=[],h=m.length;v<h;v++)(m[v].fn!==c||d&&!m[v].once||f&&m[v].context!==f)&&y.push(m[v]);y.length?this._events[p]=y.length===1?y[0]:y: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})(N2);var bee=N2.exports;const wee=he(bee);var Ah=new wee,Th="recharts.syncMouseEvents";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 _ee(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,M2(r.key),r)}}function Eee(e,t,n){return t&&See(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jh(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=Oee(e,"string");return js(t)=="symbol"?t:t+""}function Oee(e,t){if(js(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(js(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $ee=function(){function e(){_ee(this,e),jh(this,"activeIndex",0),jh(this,"coordinateList",[]),jh(this,"layout","horizontal")}return Eee(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 Pee(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&&K(r)&&K(i))return!0}return!1}function Aee(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 I2(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,o=e.endAngle,a=_e(t,n,r,i),l=_e(t,n,r,o);return{points:[a,l],cx:t,cy:n,radius:r,startAngle:i,endAngle:o}}function Tee(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=_e(l,s,u,f),p=_e(l,s,c,f);r=d.x,i=d.y,o=p.x,a=p.y}else return I2(t);return[{x:r,y:i},{x:o,y:a}]}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 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 qu(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){jee(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 jee(e,t,n){return t=Cee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cee(e){var t=kee(e,"string");return Cs(t)=="symbol"?t:t+""}function kee(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)}function Nee(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 m,v=Fv;if(d==="ScatterChart")m=a,v=qY;else if(d==="BarChart")m=Aee(f,a,s,c),v=F0;else if(f==="radial"){var y=I2(a),h=y.cx,g=y.cy,x=y.radius,E=y.startAngle,w=y.endAngle;m={cx:h,cy:g,startAngle:E,endAngle:w,innerRadius:x,outerRadius:x},v=XT}else m={points:Tee(f,a,s)},v=Fv;var S=qu(qu(qu(qu({stroke:"#ccc",pointerEvents:"none"},s),m),ee(p,!1)),{},{payload:l,payloadIndex:u,className:se("recharts-tooltip-cursor",p.className)});return _.isValidElement(p)?_.cloneElement(p,S):_.createElement(v,S)}var Mee=["item"],Iee=["children","className","width","height","style","compact","title","desc"];function da(e){"@babel/helpers - typeof";return da=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},da(e)}function 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 $S(e,t){return Dee(e)||Lee(e,t)||L2(e,t)||Ree()}function Ree(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
238
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lee(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 Dee(e){if(Array.isArray(e))return e}function PS(e,t){if(e==null)return{};var n=Fee(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 Fee(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 Bee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zee(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 Uee(e,t,n){return t&&zee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hee(e,t,n){return t=Rf(t),Wee(e,R2()?Reflect.construct(t,n||[],Rf(e).constructor):t.apply(e,n))}function Wee(e,t){if(t&&(da(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vee(e)}function Vee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(R2=function(){return!!e})()}function Rf(e){return Rf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rf(e)}function Kee(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&&cg(e,t)}function cg(e,t){return cg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},cg(e,t)}function pa(e){return Xee(e)||Gee(e)||L2(e)||qee()}function qee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
239
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L2(e,t){if(e){if(typeof e=="string")return fg(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 fg(e,t)}}function Gee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Xee(e){if(Array.isArray(e))return fg(e)}function fg(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 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 z(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){Y(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 Y(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=Yee(e,"string");return da(t)=="symbol"?t:t+""}function Yee(e,t){if(da(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(da(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qee={xAxis:["bottom","top"],yAxis:["left","right"]},Zee={width:"100%",height:"100%"},F2={x:0,y:0};function Gu(e){return e}var Jee=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},ete=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),_e(i.cx,i.cy,l,a)),{},{angle:a,radius:l})}var s=o.coordinate,u=i.angle;return z(z(z({},i),_e(i.cx,i.cy,s,u)),{},{angle:u,radius:s})}return F2},hp=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(pa(l),pa(u)):l},[]);return a.length>0?a:t&&t.length&&K(i)&&K(o)?t.slice(i,o+1):[]};function B2(e){return e==="number"?[0,"auto"]:void 0}var dg=function(t,n,r,i){var o=t.graphicalItems,a=t.tooltipAxis,l=hp(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=Wm(p,a.dataKey,i)}else d=f&&f[r]||l[r];return d?[].concat(pa(s),[Hq(u,d)]):s},[])},TS=function(t,n,r,i){var o=i||{x:t.chartX,y:t.chartY},a=Jee(o,r),l=t.orderedTooltipTicks,s=t.tooltipAxis,u=t.tooltipTicks,c=Pq(a,l,u,s);if(c>=0&&u){var f=u[c]&&u[c].value,d=dg(t,n,c,f),p=ete(r,l,c,o);return{activeTooltipIndex:c,activeLabel:f,activePayload:d,activeCoordinate:p}}return null},tte=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=zT(c,o);return r.reduce(function(m,v){var y,h=v.type.defaultProps!==void 0?z(z({},v.type.defaultProps),v.props):v.props,g=h.type,x=h.dataKey,E=h.allowDataOverflow,w=h.allowDuplicatedCategory,S=h.scale,O=h.ticks,$=h.includeHidden,A=h[a];if(m[A])return m;var C=hp(t.data,{graphicalItems:i.filter(function(U){var X,ne=a in U.props?U.props[a]:(X=U.type.defaultProps)===null||X===void 0?void 0:X[a];return ne===A}),dataStartIndex:s,dataEndIndex:u}),T=C.length,N,R,D;Pee(h.domain,E,g)&&(N=Nv(h.domain,null,E),p&&(g==="number"||S!=="auto")&&(D=jl(C,x,"category")));var M=B2(g);if(!N||N.length===0){var L,I=(L=h.domain)!==null&&L!==void 0?L:M;if(x){if(N=jl(C,x,g),g==="category"&&p){var P=$3(N);w&&P?(R=N,N=jf(0,T)):w||(N=u_(I,N,v).reduce(function(U,X){return U.indexOf(X)>=0?U:[].concat(pa(U),[X])},[]))}else if(g==="category")w?N=N.filter(function(U){return U!==""&&!oe(U)}):N=u_(I,N,v).reduce(function(U,X){return U.indexOf(X)>=0||X===""||oe(X)?U:[].concat(pa(U),[X])},[]);else if(g==="number"){var k=kq(C,i.filter(function(U){var X,ne,ae=a in U.props?U.props[a]:(X=U.type.defaultProps)===null||X===void 0?void 0:X[a],te="hide"in U.props?U.props.hide:(ne=U.type.defaultProps)===null||ne===void 0?void 0:ne.hide;return ae===A&&($||!te)}),x,o,c);k&&(N=k)}p&&(g==="number"||S!=="auto")&&(D=jl(C,x,"category"))}else p?N=jf(0,T):l&&l[A]&&l[A].hasStack&&g==="number"?N=d==="expand"?[0,1]:UT(l[A].stackGroups,s,u):N=BT(C,i.filter(function(U){var X=a in U.props?U.props[a]:U.type.defaultProps[a],ne="hide"in U.props?U.props.hide:U.type.defaultProps.hide;return X===A&&($||!ne)}),g,c,!0);if(g==="number")N=ug(f,N,A,o,O),I&&(N=Nv(I,N,E));else if(g==="category"&&I){var F=I,B=N.every(function(U){return F.indexOf(U)>=0});B&&(N=F)}}return z(z({},m),{},Y({},A,z(z({},h),{},{axisType:o,domain:N,categoricalDomain:D,duplicateDomain:R,originalDomain:(y=h.domain)!==null&&y!==void 0?y:M,isCategorical:p,layout:c})))},{})},nte=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=hp(t.data,{graphicalItems:r,dataStartIndex:s,dataEndIndex:u}),p=d.length,m=zT(c,o),v=-1;return r.reduce(function(y,h){var g=h.type.defaultProps!==void 0?z(z({},h.type.defaultProps),h.props):h.props,x=g[a],E=B2("number");if(!y[x]){v++;var w;return m?w=jf(0,p):l&&l[x]&&l[x].hasStack?(w=UT(l[x].stackGroups,s,u),w=ug(f,w,x,o)):(w=Nv(E,BT(d,r.filter(function(S){var O,$,A=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 A===x&&!C}),"number",c),i.defaultProps.allowDataOverflow),w=ug(f,w,x,o)),z(z({},y),{},Y({},x,z(z({axisType:o},i.defaultProps),{},{hide:!0,orientation:En(Qee,"".concat(o,".").concat(v%2),null),domain:w,originalDomain:E,isCategorical:m,layout:c})))}return y},{})},rte=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=On(c,o),p={};return d&&d.length?p=tte(t,{axes:d,graphicalItems:a,axisType:i,axisIdKey:f,stackGroups:l,dataStartIndex:s,dataEndIndex:u}):a&&a.length&&(p=nte(t,{Axis:o,graphicalItems:a,axisType:i,axisIdKey:f,stackGroups:l,dataStartIndex:s,dataEndIndex:u})),p},ite=function(t){var n=co(t),r=ml(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:c0(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Mv(n,r)}},jS=function(t){var n=t.children,r=t.defaultShowTooltip,i=Qt(n,sa),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}},ote=function(t){return!t||!t.length?!1:t.some(function(n){var r=dr(n&&n.type);return r&&r.indexOf("Bar")>=0})},CS=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"}},ate=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=Qt(f,sa),m=Qt(f,Io),v=Object.keys(s).reduce(function(w,S){var O=s[S],$=O.orientation;return!O.mirror&&!O.hide?z(z({},w),{},Y({},$,w[$]+O.width)):w},{left:d.left||0,right:d.right||0}),y=Object.keys(a).reduce(function(w,S){var O=a[S],$=O.orientation;return!O.mirror&&!O.hide?z(z({},w),{},Y({},$,En(w,"".concat($))+O.height)):w},{top:d.top||0,bottom:d.bottom||0}),h=z(z({},y),v),g=h.bottom;p&&(h.bottom+=p.props.height||sa.defaultProps.height),m&&n&&(h=jq(h,i,r,n));var x=u-h.left-h.right,E=c-h.top-h.bottom;return z(z({brushBottom:g},h),{},{width:Math.max(x,0),height:Math.max(E,0)})},lte=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},z2=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(h,g){var x=g.graphicalItems,E=g.stackGroups,w=g.offset,S=g.updateId,O=g.dataStartIndex,$=g.dataEndIndex,A=h.barSize,C=h.layout,T=h.barGap,N=h.barCategoryGap,R=h.maxBarSize,D=CS(C),M=D.numericAxisName,L=D.cateAxisName,I=ote(x),P=[];return x.forEach(function(k,F){var B=hp(h.data,{graphicalItems:[k],dataStartIndex:O,dataEndIndex:$}),U=k.type.defaultProps!==void 0?z(z({},k.type.defaultProps),k.props):k.props,X=U.dataKey,ne=U.maxBarSize,ae=U["".concat(M,"Id")],te=U["".concat(L,"Id")],ze={},Ue=s.reduce(function(fi,di){var Ap=g["".concat(di.axisType,"Map")],$x=U["".concat(di.axisType,"Id")];Ap&&Ap[$x]||di.axisType==="zAxis"||ta();var Px=Ap[$x];return z(z({},fi),{},Y(Y({},di.axisType,Px),"".concat(di.axisType,"Ticks"),ml(Px)))},ze),V=Ue[L],Q=Ue["".concat(L,"Ticks")],Z=E&&E[ae]&&E[ae].hasStack&&zq(k,E[ae].stackGroups),H=dr(k.type).indexOf("Bar")>=0,Ae=Mv(V,Q),ie=[],Fe=I&&Aq({barSize:A,stackGroups:E,totalSize:lte(Ue,L)});if(H){var Ve,$t,Cr=oe(ne)?R:ne,ao=(Ve=($t=Mv(V,Q,!0))!==null&&$t!==void 0?$t:Cr)!==null&&Ve!==void 0?Ve:0;ie=Tq({barGap:T,barCategoryGap:N,bandSize:ao!==Ae?ao:Ae,sizeList:Fe[te],maxBarSize:Cr}),ao!==Ae&&(ie=ie.map(function(fi){return z(z({},fi),{},{position:z(z({},fi.position),{},{offset:fi.position.offset-ao/2})})}))}var pu=k&&k.type&&k.type.getComposedData;pu&&P.push({props:z(z({},pu(z(z({},Ue),{},{displayedData:B,props:h,dataKey:X,item:k,bandSize:Ae,barPosition:ie,offset:w,stackedData:Z,layout:C,dataStartIndex:O,dataEndIndex:$}))),{},Y(Y(Y({key:k.key||"item-".concat(F)},M,Ue[M]),L,Ue[L]),"animationId",S)),childIndex:L3(k,h.children),item:k})}),P},p=function(h,g){var x=h.props,E=h.dataStartIndex,w=h.dataEndIndex,S=h.updateId;if(!r1({props:x}))return null;var O=x.children,$=x.layout,A=x.stackOffset,C=x.data,T=x.reverseStackOrder,N=CS($),R=N.numericAxisName,D=N.cateAxisName,M=On(O,r),L=Fq(C,M,"".concat(R,"Id"),"".concat(D,"Id"),A,T),I=s.reduce(function(U,X){var ne="".concat(X.axisType,"Map");return z(z({},U),{},Y({},ne,rte(x,z(z({},X),{},{graphicalItems:M,stackGroups:X.axisType===R&&L,dataStartIndex:E,dataEndIndex:w}))))},{}),P=ate(z(z({},I),{},{props:x,graphicalItems:M}),g==null?void 0:g.legendBBox);Object.keys(I).forEach(function(U){I[U]=c(x,I[U],P,U.replace("Map",""),n)});var k=I["".concat(D,"Map")],F=ite(k),B=d(x,z(z({},I),{},{dataStartIndex:E,dataEndIndex:w,updateId:S,graphicalItems:M,stackGroups:L,offset:P}));return z(z({formattedGraphicalItems:B,graphicalItems:M,offset:P,stackGroups:L},F),I)},m=function(y){function h(g){var x,E,w;return Bee(this,h),w=Hee(this,h,[g]),Y(w,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Y(w,"accessibilityManager",new $ee),Y(w,"handleLegendBBoxUpdate",function(S){if(S){var O=w.state,$=O.dataStartIndex,A=O.dataEndIndex,C=O.updateId;w.setState(z({legendBBox:S},p({props:w.props,dataStartIndex:$,dataEndIndex:A,updateId:C},z(z({},w.state),{},{legendBBox:S}))))}}),Y(w,"handleReceiveSyncEvent",function(S,O,$){if(w.props.syncId===S){if($===w.eventEmitterSymbol&&typeof w.props.syncMethod!="function")return;w.applySyncEvent(O)}}),Y(w,"handleBrushChange",function(S){var O=S.startIndex,$=S.endIndex;if(O!==w.state.dataStartIndex||$!==w.state.dataEndIndex){var A=w.state.updateId;w.setState(function(){return z({dataStartIndex:O,dataEndIndex:$},p({props:w.props,dataStartIndex:O,dataEndIndex:$,updateId:A},w.state))}),w.triggerSyncEvent({dataStartIndex:O,dataEndIndex:$})}}),Y(w,"handleMouseEnter",function(S){var O=w.getMouseInfo(S);if(O){var $=z(z({},O),{},{isTooltipActive:!0});w.setState($),w.triggerSyncEvent($);var A=w.props.onMouseEnter;J(A)&&A($,S)}}),Y(w,"triggeredAfterMouseMove",function(S){var O=w.getMouseInfo(S),$=O?z(z({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};w.setState($),w.triggerSyncEvent($);var A=w.props.onMouseMove;J(A)&&A($,S)}),Y(w,"handleItemMouseEnter",function(S){w.setState(function(){return{isTooltipActive:!0,activeItem:S,activePayload:S.tooltipPayload,activeCoordinate:S.tooltipPosition||{x:S.cx,y:S.cy}}})}),Y(w,"handleItemMouseLeave",function(){w.setState(function(){return{isTooltipActive:!1}})}),Y(w,"handleMouseMove",function(S){S.persist(),w.throttleTriggeredAfterMouseMove(S)}),Y(w,"handleMouseLeave",function(S){w.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};w.setState(O),w.triggerSyncEvent(O);var $=w.props.onMouseLeave;J($)&&$(O,S)}),Y(w,"handleOuterEvent",function(S){var O=R3(S),$=En(w.props,"".concat(O));if(O&&J($)){var A,C;/.*touch.*/i.test(O)?C=w.getMouseInfo(S.changedTouches[0]):C=w.getMouseInfo(S),$((A=C)!==null&&A!==void 0?A:{},S)}}),Y(w,"handleClick",function(S){var O=w.getMouseInfo(S);if(O){var $=z(z({},O),{},{isTooltipActive:!0});w.setState($),w.triggerSyncEvent($);var A=w.props.onClick;J(A)&&A($,S)}}),Y(w,"handleMouseDown",function(S){var O=w.props.onMouseDown;if(J(O)){var $=w.getMouseInfo(S);O($,S)}}),Y(w,"handleMouseUp",function(S){var O=w.props.onMouseUp;if(J(O)){var $=w.getMouseInfo(S);O($,S)}}),Y(w,"handleTouchMove",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&w.throttleTriggeredAfterMouseMove(S.changedTouches[0])}),Y(w,"handleTouchStart",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&w.handleMouseDown(S.changedTouches[0])}),Y(w,"handleTouchEnd",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&w.handleMouseUp(S.changedTouches[0])}),Y(w,"handleDoubleClick",function(S){var O=w.props.onDoubleClick;if(J(O)){var $=w.getMouseInfo(S);O($,S)}}),Y(w,"handleContextMenu",function(S){var O=w.props.onContextMenu;if(J(O)){var $=w.getMouseInfo(S);O($,S)}}),Y(w,"triggerSyncEvent",function(S){w.props.syncId!==void 0&&Ah.emit(Th,w.props.syncId,S,w.eventEmitterSymbol)}),Y(w,"applySyncEvent",function(S){var O=w.props,$=O.layout,A=O.syncMethod,C=w.state.updateId,T=S.dataStartIndex,N=S.dataEndIndex;if(S.dataStartIndex!==void 0||S.dataEndIndex!==void 0)w.setState(z({dataStartIndex:T,dataEndIndex:N},p({props:w.props,dataStartIndex:T,dataEndIndex:N,updateId:C},w.state)));else if(S.activeTooltipIndex!==void 0){var R=S.chartX,D=S.chartY,M=S.activeTooltipIndex,L=w.state,I=L.offset,P=L.tooltipTicks;if(!I)return;if(typeof A=="function")M=A(P,S);else if(A==="value"){M=-1;for(var k=0;k<P.length;k++)if(P[k].value===S.activeLabel){M=k;break}}var F=z(z({},I),{},{x:I.left,y:I.top}),B=Math.min(R,F.x+F.width),U=Math.min(D,F.y+F.height),X=P[M]&&P[M].value,ne=dg(w.state,w.props.data,M),ae=P[M]?{x:$==="horizontal"?P[M].coordinate:B,y:$==="horizontal"?U:P[M].coordinate}:F2;w.setState(z(z({},S),{},{activeLabel:X,activeCoordinate:ae,activePayload:ne,activeTooltipIndex:M}))}else w.setState(S)}),Y(w,"renderCursor",function(S){var O,$=w.state,A=$.isTooltipActive,C=$.activeCoordinate,T=$.activePayload,N=$.offset,R=$.activeTooltipIndex,D=$.tooltipAxisBandSize,M=w.getTooltipEventType(),L=(O=S.props.active)!==null&&O!==void 0?O:A,I=w.props.layout,P=S.key||"_recharts-cursor";return j.createElement(Nee,{key:P,activeCoordinate:C,activePayload:T,activeTooltipIndex:R,chartName:n,element:S,isActive:L,layout:I,offset:N,tooltipAxisBandSize:D,tooltipEventType:M})}),Y(w,"renderPolarAxis",function(S,O,$){var A=En(S,"type.axisType"),C=En(w.state,"".concat(A,"Map")),T=S.type.defaultProps,N=T!==void 0?z(z({},T),S.props):S.props,R=C&&C[N["".concat(A,"Id")]];return _.cloneElement(S,z(z({},R),{},{className:se(A,R.className),key:S.key||"".concat(O,"-").concat($),ticks:ml(R,!0)}))}),Y(w,"renderPolarGrid",function(S){var O=S.props,$=O.radialLines,A=O.polarAngles,C=O.polarRadius,T=w.state,N=T.radiusAxisMap,R=T.angleAxisMap,D=co(N),M=co(R),L=M.cx,I=M.cy,P=M.innerRadius,k=M.outerRadius;return _.cloneElement(S,{polarAngles:Array.isArray(A)?A:ml(M,!0).map(function(F){return F.coordinate}),polarRadius:Array.isArray(C)?C:ml(D,!0).map(function(F){return F.coordinate}),cx:L,cy:I,innerRadius:P,outerRadius:k,key:S.key||"polar-grid",radialLines:$})}),Y(w,"renderLegend",function(){var S=w.state.formattedGraphicalItems,O=w.props,$=O.children,A=O.width,C=O.height,T=w.props.margin||{},N=A-(T.left||0)-(T.right||0),R=DT({children:$,formattedGraphicalItems:S,legendWidth:N,legendContent:u});if(!R)return null;var D=R.item,M=PS(R,Mee);return _.cloneElement(D,z(z({},M),{},{chartWidth:A,chartHeight:C,margin:T,onBBoxUpdate:w.handleLegendBBoxUpdate}))}),Y(w,"renderTooltip",function(){var S,O=w.props,$=O.children,A=O.accessibilityLayer,C=Qt($,tr);if(!C)return null;var T=w.state,N=T.isTooltipActive,R=T.activeCoordinate,D=T.activePayload,M=T.activeLabel,L=T.offset,I=(S=C.props.active)!==null&&S!==void 0?S:N;return _.cloneElement(C,{viewBox:z(z({},L),{},{x:L.left,y:L.top}),active:I,label:M,payload:I?D:[],coordinate:R,accessibilityLayer:A})}),Y(w,"renderBrush",function(S){var O=w.props,$=O.margin,A=O.data,C=w.state,T=C.offset,N=C.dataStartIndex,R=C.dataEndIndex,D=C.updateId;return _.cloneElement(S,{key:S.key||"_recharts-brush",onChange:Uu(w.handleBrushChange,S.props.onChange),data:A,x:K(S.props.x)?S.props.x:T.left,y:K(S.props.y)?S.props.y:T.top+T.height+T.brushBottom-($.bottom||0),width:K(S.props.width)?S.props.width:T.width,startIndex:N,endIndex:R,updateId:"brush-".concat(D)})}),Y(w,"renderReferenceElement",function(S,O,$){if(!S)return null;var A=w,C=A.clipPathId,T=w.state,N=T.xAxisMap,R=T.yAxisMap,D=T.offset,M=S.type.defaultProps||{},L=S.props,I=L.xAxisId,P=I===void 0?M.xAxisId:I,k=L.yAxisId,F=k===void 0?M.yAxisId:k;return _.cloneElement(S,{key:S.key||"".concat(O,"-").concat($),xAxis:N[P],yAxis:R[F],viewBox:{x:D.left,y:D.top,width:D.width,height:D.height},clipPathId:C})}),Y(w,"renderActivePoints",function(S){var O=S.item,$=S.activePoint,A=S.basePoint,C=S.childIndex,T=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,L=D.dataKey,I=z(z({index:C,dataKey:L,cx:$.x,cy:$.y,r:4,fill:D0(O.item),strokeWidth:2,stroke:"#fff",payload:$.payload,value:$.value},ee(M,!1)),Vc(M));return N.push(h.renderActiveDot(M,I,"".concat(R,"-activePoint-").concat(C))),A?N.push(h.renderActiveDot(M,z(z({},I),{},{cx:A.x,cy:A.y}),"".concat(R,"-basePoint-").concat(C))):T&&N.push(null),N}),Y(w,"renderGraphicChild",function(S,O,$){var A=w.filterFormatItem(S,O,$);if(!A)return null;var C=w.getTooltipEventType(),T=w.state,N=T.isTooltipActive,R=T.tooltipAxis,D=T.activeTooltipIndex,M=T.activeLabel,L=w.props.children,I=Qt(L,tr),P=A.props,k=P.points,F=P.isRange,B=P.baseLine,U=A.item.type.defaultProps!==void 0?z(z({},A.item.type.defaultProps),A.item.props):A.item.props,X=U.activeDot,ne=U.hide,ae=U.activeBar,te=U.activeShape,ze=!!(!ne&&N&&I&&(X||ae||te)),Ue={};C!=="axis"&&I&&I.props.trigger==="click"?Ue={onClick:Uu(w.handleItemMouseEnter,S.props.onClick)}:C!=="axis"&&(Ue={onMouseLeave:Uu(w.handleItemMouseLeave,S.props.onMouseLeave),onMouseEnter:Uu(w.handleItemMouseEnter,S.props.onMouseEnter)});var V=_.cloneElement(S,z(z({},A.props),Ue));function Q(di){return typeof R.dataKey=="function"?R.dataKey(di.payload):null}if(ze)if(D>=0){var Z,H;if(R.dataKey&&!R.allowDuplicatedCategory){var Ae=typeof R.dataKey=="function"?Q:"payload.".concat(R.dataKey.toString());Z=Wm(k,Ae,M),H=F&&B&&Wm(B,Ae,M)}else Z=k==null?void 0:k[D],H=F&&B&&B[D];if(te||ae){var ie=S.props.activeIndex!==void 0?S.props.activeIndex:D;return[_.cloneElement(S,z(z(z({},A.props),Ue),{},{activeIndex:ie})),null,null]}if(!oe(Z))return[V].concat(pa(w.renderActivePoints({item:A,activePoint:Z,basePoint:H,childIndex:D,isRange:F})))}else{var Fe,Ve=(Fe=w.getItemByXY(w.state.activeCoordinate))!==null&&Fe!==void 0?Fe:{graphicalItem:V},$t=Ve.graphicalItem,Cr=$t.item,ao=Cr===void 0?S:Cr,pu=$t.childIndex,fi=z(z(z({},A.props),Ue),{},{activeIndex:pu});return[_.cloneElement(ao,fi),null,null]}return F?[V,null,null]:[V,null]}),Y(w,"renderCustomized",function(S,O,$){return _.cloneElement(S,z(z({key:"recharts-customized-".concat($)},w.props),w.state))}),Y(w,"renderMap",{CartesianGrid:{handler:Gu,once:!0},ReferenceArea:{handler:w.renderReferenceElement},ReferenceLine:{handler:Gu},ReferenceDot:{handler:w.renderReferenceElement},XAxis:{handler:Gu},YAxis:{handler:Gu},Brush:{handler:w.renderBrush,once:!0},Bar:{handler:w.renderGraphicChild},Line:{handler:w.renderGraphicChild},Area:{handler:w.renderGraphicChild},Radar:{handler:w.renderGraphicChild},RadialBar:{handler:w.renderGraphicChild},Scatter:{handler:w.renderGraphicChild},Pie:{handler:w.renderGraphicChild},Funnel:{handler:w.renderGraphicChild},Tooltip:{handler:w.renderCursor,once:!0},PolarGrid:{handler:w.renderPolarGrid,once:!0},PolarAngleAxis:{handler:w.renderPolarAxis},PolarRadiusAxis:{handler:w.renderPolarAxis},Customized:{handler:w.renderCustomized}}),w.clipPathId="".concat((x=g.id)!==null&&x!==void 0?x:Ld("recharts"),"-clip"),w.throttleTriggeredAfterMouseMove=MA(w.triggeredAfterMouseMove,(E=g.throttleDelay)!==null&&E!==void 0?E:1e3/60),w.state={},w}return Kee(h,y),Uee(h,[{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,w=x.data,S=x.height,O=x.layout,$=Qt(E,tr);if($){var A=$.props.defaultIndex;if(!(typeof A!="number"||A<0||A>this.state.tooltipTicks.length-1)){var C=this.state.tooltipTicks[A]&&this.state.tooltipTicks[A].value,T=dg(this.state,w,A,C),N=this.state.tooltipTicks[A].coordinate,R=(this.state.offset.top+S)/2,D=O==="horizontal",M=D?{x:N,y:R}:{y:N,x:R},L=this.state.formattedGraphicalItems.find(function(P){var k=P.item;return k.type.name==="Scatter"});L&&(M=z(z({},M),L.props.points[A].tooltipPosition),T=L.props.points[A].tooltipPayload);var I={activeTooltipIndex:A,isTooltipActive:!0,activeLabel:C,activePayload:T,activeCoordinate:M};this.setState(I),this.renderCursor($),this.accessibilityManager.setIndex(A)}}}},{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 w,S;this.accessibilityManager.setDetails({offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0}})}return null}},{key:"componentDidUpdate",value:function(x){qm([Qt(x.children,tr)],[Qt(this.props.children,tr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=Qt(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,w=E.getBoundingClientRect(),S=ZH(w),O={chartX:Math.round(x.pageX-S.left),chartY:Math.round(x.pageY-S.top)},$=w.width/E.offsetWidth||1,A=this.inRange(O.chartX,O.chartY,$);if(!A)return null;var C=this.state,T=C.xAxisMap,N=C.yAxisMap,R=this.getTooltipEventType();if(R!=="axis"&&T&&N){var D=co(T).scale,M=co(N).scale,L=D&&D.invert?D.invert(O.chartX):null,I=M&&M.invert?M.invert(O.chartY):null;return z(z({},O),{},{xValue:L,yValue:I})}var P=TS(this.state,this.props.data,this.props.layout,A);return P?z(z({},O),P):null}},{key:"inRange",value:function(x,E){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,S=this.props.layout,O=x/w,$=E/w;if(S==="horizontal"||S==="vertical"){var A=this.state.offset,C=O>=A.left&&O<=A.left+A.width&&$>=A.top&&$<=A.top+A.height;return C?{x:O,y:$}:null}var T=this.state,N=T.angleAxisMap,R=T.radiusAxisMap;if(N&&R){var D=co(N);return d_({x:O,y:$},D)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,E=this.getTooltipEventType(),w=Qt(x,tr),S={};w&&E==="axis"&&(w.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=Vc(this.props,this.handleOuterEvent);return z(z({},O),S)}},{key:"addListener",value:function(){Ah.on(Th,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Ah.removeListener(Th,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,E,w){for(var S=this.state.formattedGraphicalItems,O=0,$=S.length;O<$;O++){var A=S[O];if(A.item===x||A.props.key===x.key||E===dr(A.item.type)&&w===A.childIndex)return A}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,E=this.state.offset,w=E.left,S=E.top,O=E.height,$=E.width;return j.createElement("defs",null,j.createElement("clipPath",{id:x},j.createElement("rect",{x:w,y:S,height:O,width:$})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(E,w){var S=$S(w,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,w){var S=$S(w,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,w=E.formattedGraphicalItems,S=E.activeItem;if(w&&w.length)for(var O=0,$=w.length;O<$;O++){var A=w[O],C=A.props,T=A.item,N=T.type.defaultProps!==void 0?z(z({},T.type.defaultProps),T.props):T.props,R=dr(T.type);if(R==="Bar"){var D=(C.data||[]).find(function(P){return PY(x,P)});if(D)return{graphicalItem:A,payload:D}}else if(R==="RadialBar"){var M=(C.data||[]).find(function(P){return d_(x,P)});if(M)return{graphicalItem:A,payload:M}}else if(sp(A,S)||up(A,S)||Ps(A,S)){var L=dZ({graphicalItem:A,activeTooltipItem:S,itemData:N.data}),I=N.activeIndex===void 0?L:N.activeIndex;return{graphicalItem:z(z({},A),{},{childIndex:I}),payload:Ps(A,S)?N.data[L]:A.props.data[L]}}}return null}},{key:"render",value:function(){var x=this;if(!r1(this))return null;var E=this.props,w=E.children,S=E.className,O=E.width,$=E.height,A=E.style,C=E.compact,T=E.title,N=E.desc,R=PS(E,Iee),D=ee(R,!1);if(C)return j.createElement(vS,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},j.createElement(Xm,Ao({},D,{width:O,height:$,title:T,desc:N}),this.renderClipPath(),o1(w,this.renderMap)));if(this.props.accessibilityLayer){var M,L;D.tabIndex=(M=this.props.tabIndex)!==null&&M!==void 0?M:0,D.role=(L=this.props.role)!==null&&L!==void 0?L:"application",D.onKeyDown=function(P){x.accessibilityManager.keyboardEvent(P)},D.onFocus=function(){x.accessibilityManager.focus()}}var I=this.parseEventsOfWrapper();return j.createElement(vS,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},j.createElement("div",Ao({className:se("recharts-wrapper",S),style:z({position:"relative",cursor:"default",width:O,height:$},A)},I,{ref:function(k){x.container=k}}),j.createElement(Xm,Ao({},D,{width:O,height:$,title:T,desc:N,style:Zee}),this.renderClipPath(),o1(w,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(_.Component);Y(m,"displayName",n),Y(m,"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(m,"getDerivedStateFromProps",function(y,h){var g=y.dataKey,x=y.data,E=y.children,w=y.width,S=y.height,O=y.layout,$=y.stackOffset,A=y.margin,C=h.dataStartIndex,T=h.dataEndIndex;if(h.updateId===void 0){var N=jS(y);return z(z(z({},N),{},{updateId:0},p(z(z({props:y},N),{},{updateId:0}),h)),{},{prevDataKey:g,prevData:x,prevWidth:w,prevHeight:S,prevLayout:O,prevStackOffset:$,prevMargin:A,prevChildren:E})}if(g!==h.prevDataKey||x!==h.prevData||w!==h.prevWidth||S!==h.prevHeight||O!==h.prevLayout||$!==h.prevStackOffset||!Vm(A,h.prevMargin)){var R=jS(y),D={chartX:h.chartX,chartY:h.chartY,isTooltipActive:h.isTooltipActive},M=z(z({},TS(h,x,O)),{},{updateId:h.updateId+1}),L=z(z(z({},R),D),M);return z(z(z({},L),p(z({props:y},L),h)),{},{prevDataKey:g,prevData:x,prevWidth:w,prevHeight:S,prevLayout:O,prevStackOffset:$,prevMargin:A,prevChildren:E})}if(!qm(E,h.prevChildren)){var I,P,k,F,B=Qt(E,sa),U=B&&(I=(P=B.props)===null||P===void 0?void 0:P.startIndex)!==null&&I!==void 0?I:C,X=B&&(k=(F=B.props)===null||F===void 0?void 0:F.endIndex)!==null&&k!==void 0?k:T,ne=U!==C||X!==T,ae=!oe(x),te=ae&&!ne?h.updateId:h.updateId+1;return z(z({updateId:te},p(z(z({props:y},h),{},{updateId:te,dataStartIndex:U,dataEndIndex:X}),h)),{},{prevChildren:E,dataStartIndex:U,dataEndIndex:X})}return null}),Y(m,"renderActiveDot",function(y,h,g){var x;return _.isValidElement(y)?x=_.cloneElement(y,h):J(y)?x=y(h):x=j.createElement(B0,h),j.createElement($e,{className:"recharts-active-dot",key:g},x)});var v=_.forwardRef(function(h,g){return j.createElement(m,Ao({},h,{ref:g}))});return v.displayName=m.displayName,v},tu=z2({chartName:"PieChart",GraphicalChild:Kt,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:lp},{axisType:"radiusAxis",AxisComp:op}],formatAxisMap:Zq,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});function ste(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var ute=ste,cte=U0,fte=bd,dte=Object.prototype,pte=dte.hasOwnProperty;function hte(e,t,n){var r=e[t];(!(pte.call(e,t)&&fte(r,n))||n===void 0&&!(t in e))&&cte(e,t,n)}var U2=hte,mte=U2,vte=U0;function gte(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?vte(n,l,s):mte(n,l,s)}return n}var nu=gte,yte=nu,xte=Ys;function bte(e,t){return e&&yte(t,xte(t),e)}var wte=bte;function _te(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Ste=_te,Ete=jn,Ote=a0,$te=Ste,Pte=Object.prototype,Ate=Pte.hasOwnProperty;function Tte(e){if(!Ete(e))return $te(e);var t=Ote(e),n=[];for(var r in e)r=="constructor"&&(t||!Ate.call(e,r))||n.push(r);return n}var jte=Tte,Cte=dA,kte=jte,Nte=Xs;function Mte(e){return Nte(e)?Cte(e,!0):kte(e)}var q0=Mte,Ite=nu,Rte=q0;function Lte(e,t){return e&&Ite(t,Rte(t),e)}var Dte=Lte,Lf={exports:{}};Lf.exports;(function(e,t){var n=An,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})(Lf,Lf.exports);var Fte=Lf.exports;function Bte(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var zte=Bte,Ute=nu,Hte=e0;function Wte(e,t){return Ute(e,Hte(e),t)}var Vte=Wte,Kte=Jy,qte=z0,Gte=e0,Xte=uA,Yte=Object.getOwnPropertySymbols,Qte=Yte?function(e){for(var t=[];e;)Kte(t,Gte(e)),e=qte(e);return t}:Xte,H2=Qte,Zte=nu,Jte=H2;function ene(e,t){return Zte(e,Jte(e),t)}var tne=ene,nne=sA,rne=H2,ine=q0;function one(e){return nne(e,ine,rne)}var W2=one,ane=Object.prototype,lne=ane.hasOwnProperty;function sne(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&lne.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var une=sne,kS=lA;function cne(e){var t=new e.constructor(e.byteLength);return new kS(t).set(new kS(e)),t}var G0=cne,fne=G0;function dne(e,t){var n=t?fne(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var pne=dne,hne=/\w*$/;function mne(e){var t=new e.constructor(e.source,hne.exec(e));return t.lastIndex=e.lastIndex,t}var vne=mne,NS=Sa,MS=NS?NS.prototype:void 0,IS=MS?MS.valueOf:void 0;function gne(e){return IS?Object(IS.call(e)):{}}var yne=gne,xne=G0;function bne(e,t){var n=t?xne(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var wne=bne,_ne=G0,Sne=pne,Ene=vne,One=yne,$ne=wne,Pne="[object Boolean]",Ane="[object Date]",Tne="[object Map]",jne="[object Number]",Cne="[object RegExp]",kne="[object Set]",Nne="[object String]",Mne="[object Symbol]",Ine="[object ArrayBuffer]",Rne="[object DataView]",Lne="[object Float32Array]",Dne="[object Float64Array]",Fne="[object Int8Array]",Bne="[object Int16Array]",zne="[object Int32Array]",Une="[object Uint8Array]",Hne="[object Uint8ClampedArray]",Wne="[object Uint16Array]",Vne="[object Uint32Array]";function Kne(e,t,n){var r=e.constructor;switch(t){case Ine:return _ne(e);case Pne:case Ane:return new r(+e);case Rne:return Sne(e,n);case Lne:case Dne:case Fne:case Bne:case zne:case Une:case Hne:case Wne:case Vne:return $ne(e,n);case Tne:return new r;case jne:case Nne:return new r(e);case Cne:return Ene(e);case kne:return new r;case Mne:return One(e)}}var qne=Kne,Gne=jn,RS=Object.create,Xne=function(){function e(){}return function(t){if(!Gne(t))return{};if(RS)return RS(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Yne=Xne,Qne=Yne,Zne=z0,Jne=a0;function ere(e){return typeof e.constructor=="function"&&!Jne(e)?Qne(Zne(e)):{}}var tre=ere,nre=Hd,rre=Tn,ire="[object Map]";function ore(e){return rre(e)&&nre(e)==ire}var are=ore,lre=are,sre=Ud,LS=o0,DS=LS&&LS.isMap,ure=DS?sre(DS):lre,cre=ure,fre=Hd,dre=Tn,pre="[object Set]";function hre(e){return dre(e)&&fre(e)==pre}var mre=hre,vre=mre,gre=Ud,FS=o0,BS=FS&&FS.isSet,yre=BS?gre(BS):vre,xre=yre,bre=Qy,wre=ute,_re=U2,Sre=wte,Ere=Dte,Ore=Fte,$re=zte,Pre=Vte,Are=tne,Tre=hA,jre=W2,Cre=Hd,kre=une,Nre=qne,Mre=tre,Ire=Ot,Rre=n0,Lre=cre,Dre=jn,Fre=xre,Bre=Ys,zre=q0,Ure=1,Hre=2,Wre=4,V2="[object Arguments]",Vre="[object Array]",Kre="[object Boolean]",qre="[object Date]",Gre="[object Error]",K2="[object Function]",Xre="[object GeneratorFunction]",Yre="[object Map]",Qre="[object Number]",q2="[object Object]",Zre="[object RegExp]",Jre="[object Set]",eie="[object String]",tie="[object Symbol]",nie="[object WeakMap]",rie="[object ArrayBuffer]",iie="[object DataView]",oie="[object Float32Array]",aie="[object Float64Array]",lie="[object Int8Array]",sie="[object Int16Array]",uie="[object Int32Array]",cie="[object Uint8Array]",fie="[object Uint8ClampedArray]",die="[object Uint16Array]",pie="[object Uint32Array]",ye={};ye[V2]=ye[Vre]=ye[rie]=ye[iie]=ye[Kre]=ye[qre]=ye[oie]=ye[aie]=ye[lie]=ye[sie]=ye[uie]=ye[Yre]=ye[Qre]=ye[q2]=ye[Zre]=ye[Jre]=ye[eie]=ye[tie]=ye[cie]=ye[fie]=ye[die]=ye[pie]=!0;ye[Gre]=ye[K2]=ye[nie]=!1;function hc(e,t,n,r,i,o){var a,l=t&Ure,s=t&Hre,u=t&Wre;if(n&&(a=i?n(e,r,i,o):n(e)),a!==void 0)return a;if(!Dre(e))return e;var c=Ire(e);if(c){if(a=kre(e),!l)return $re(e,a)}else{var f=Cre(e),d=f==K2||f==Xre;if(Rre(e))return Ore(e,l);if(f==q2||f==V2||d&&!i){if(a=s||d?{}:Mre(e),!l)return s?Are(e,Ere(a,e)):Pre(e,Sre(a,e))}else{if(!ye[f])return i?e:{};a=Nre(e,f,l)}}o||(o=new bre);var p=o.get(e);if(p)return p;o.set(e,a),Fre(e)?e.forEach(function(y){a.add(hc(y,t,n,y,e,o))}):Lre(e)&&e.forEach(function(y,h){a.set(h,hc(y,t,n,h,e,o))});var m=u?s?jre:Tre:s?zre:Bre,v=c?void 0:m(e);return wre(v||e,function(y,h){v&&(h=y,y=e[h]),_re(a,h,hc(y,t,n,h,e,o))}),a}var hie=hc,mie=$d,vie=jP;function gie(e,t){return t.length<2?e:mie(e,vie(t,0,-1))}var yie=gie,xie=Od,bie=qT,wie=yie,_ie=Ks;function Sie(e,t){return t=xie(t,e),e=wie(e,t),e==null||delete e[_ie(bie(t))]}var Eie=Sie,Oie=d2;function $ie(e){return Oie(e)?void 0:e}var Pie=$ie,Aie=s0;function Tie(e){var t=e==null?0:e.length;return t?Aie(e,1):[]}var jie=Tie,Cie=jie,kie=$A,Nie=AA;function Mie(e){return Nie(kie(e,void 0,Cie),e+"")}var Iie=Mie,Rie=Ed,Lie=hie,Die=Eie,Fie=Od,Bie=nu,zie=Pie,Uie=Iie,Hie=W2,Wie=1,Vie=2,Kie=4,qie=Uie(function(e,t){var n={};if(e==null)return n;var r=!1;t=Rie(t,function(o){return o=Fie(o,e),r||(r=o.length>1),o}),Bie(e,Hie(e),n),r&&(n=Lie(n,Wie|Vie|Kie,zie));for(var i=t.length;i--;)Die(n,t[i]);return n}),Gie=qie;const Xie=he(Gie);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 pg(){return pg=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},pg.apply(this,arguments)}function zS(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 Ch(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zS(Object(n),!0).forEach(function(r){Yie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yie(e,t,n){return t=Qie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qie(e){var t=Zie(e,"string");return ks(t)=="symbol"?t:t+""}function Zie(e,t){if(ks(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(ks(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jie(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 Ch(Ch(Ch({},t),p2(e)),{},{height:l,x:r,y:o})}function eoe(e){return j.createElement(h2,pg({shapeType:"trapezoid",propTransformer:Jie},e))}var hg;function US(e,t){return ioe(e)||roe(e,t)||noe(e,t)||toe()}function toe(){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 noe(e,t){if(e){if(typeof e=="string")return HS(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 HS(e,t)}}function HS(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 roe(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 ioe(e){if(Array.isArray(e))return e}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 Df(){return Df=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},Df.apply(this,arguments)}function WS(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 Ge(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WS(Object(n),!0).forEach(function(r){vr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ooe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VS(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,X2(r.key),r)}}function aoe(e,t,n){return t&&VS(e.prototype,t),n&&VS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function loe(e,t,n){return t=Ff(t),soe(e,G2()?Reflect.construct(t,n||[],Ff(e).constructor):t.apply(e,n))}function soe(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 uoe(e)}function uoe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function G2(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(G2=function(){return!!e})()}function Ff(e){return Ff=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ff(e)}function coe(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&&mg(e,t)}function mg(e,t){return mg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},mg(e,t)}function vr(e,t,n){return t=X2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X2(e){var t=foe(e,"string");return ha(t)=="symbol"?t:t+""}function foe(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 ci=function(e){function t(){var n;ooe(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=loe(this,t,[].concat(i)),vr(n,"state",{isAnimationFinished:!1}),vr(n,"handleAnimationEnd",function(){var a=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),J(a)&&a()}),vr(n,"handleAnimationStart",function(){var a=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),J(a)&&a()}),n}return coe(t,e),aoe(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=Ge(Ge({},s),{},{isActive:i.isActiveIndex(u),stroke:s.stroke});return j.createElement($e,Df({className:"recharts-funnel-trapezoid"},Gs(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(eoe,Df({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(Or,{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,m=o.map(function(v,y){var h=f&&f[y];if(h){var g=Yt(h.x,v.x),x=Yt(h.y,v.y),E=Yt(h.upperWidth,v.upperWidth),w=Yt(h.lowerWidth,v.lowerWidth),S=Yt(h.height,v.height);return Ge(Ge({},v),{},{x:g(p),y:x(p),upperWidth:E(p),lowerWidth:w(p),height:S(p)})}var O=Yt(v.x+v.upperWidth/2,v.x),$=Yt(v.y+v.height/2,v.y),A=Yt(0,v.upperWidth),C=Yt(0,v.lowerWidth),T=Yt(0,v.height);return Ge(Ge({},v),{},{x:O(p),y:$(p),upperWidth:A(p),lowerWidth:C(p),height:T(p)})});return j.createElement($e,null,r.renderTrapezoidsStatically(m))})}},{key:"renderTrapezoids",value:function(){var r=this.props,i=r.trapezoids,o=r.isAnimationActive,a=this.state.prevTrapezoids;return o&&i&&i.length&&(!a||!tp(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=se("recharts-trapezoids",a);return j.createElement($e,{className:u},this.renderTrapezoids(),(!l||s)&&mr.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}}])}(_.PureComponent);hg=ci;vr(ci,"displayName","Funnel");vr(ci,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!Xr.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"});vr(ci,"getRealFunnelData",function(e){var t=e.props,n=t.data,r=t.children,i=ee(e.props,!1),o=On(r,d0);return n&&n.length?n.map(function(a,l){return Ge(Ge(Ge({payload:a},i),a),o&&o[l]&&o[l].props)}):o&&o.length?o.map(function(a){return Ge(Ge({},i),a.props)}):[]});vr(ci,"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 TP(n)?c=n:Ta(n)&&(c=c*parseFloat(n)/100),{realWidth:c-o-a-50,realHeight:u-s-l,offsetX:(r-c)/2,offsetY:(i-u)/2}});vr(ci,"getComposedData",function(e){var t=e.item,n=e.offset,r=hg.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=hg.getRealWidthHeight(t,n),p=d.realHeight,m=d.realWidth,v=d.offsetX,y=d.offsetY,h=Math.max.apply(null,r.map(function(S){return at(S,o,0)})),g=r.length,x=p/g,E={x:n.left,y:n.top,width:n.width,height:n.height},w=r.map(function(S,O){var $=at(S,o,0),A=at(S,a,O),C=$,T;if(O!==g-1){if(T=at(r[O+1],o,0),T instanceof Array){var N=T,R=US(N,1);T=R[0]}}else if($ instanceof Array&&$.length===2){var D=US($,2);C=D[0],T=D[1]}else s==="rectangle"?T=C:T=0;var M=(h-C)*m/(2*h)+f+25+v,L=x*O+c+y,I=C/h*m,P=T/h*m,k=[{name:A,value:C,payload:S,dataKey:o,type:l}],F={x:M+I/2,y:L+x/2};return Ge(Ge({x:M,y:L,width:Math.max(I,P),upperWidth:I,lowerWidth:P,height:x,name:A,val:C,tooltipPayload:k,tooltipPosition:F},Xie(S,"width")),{},{payload:S,parentViewBox:E,labelViewBox:{x:M+(I-P)/4,y:L,width:Math.abs(I-P)/2+Math.min(I,P),height:x}})});return u&&(w=w.map(function(S,O){var $=S.y-O*x+(g-1-O)*x;return Ge(Ge({},S),{},{upperWidth:S.lowerWidth,lowerWidth:S.upperWidth,x:S.x-(S.lowerWidth-S.upperWidth)/2,y:S.y-O*x+(g-1-O)*x,tooltipPosition:Ge(Ge({},S.tooltipPosition),{},{y:$+x/2}),labelViewBox:Ge(Ge({},S.labelViewBox),{},{y:$})})})),{trapezoids:w,data:r}});var doe=z2({chartName:"FunnelChart",GraphicalChild:ci,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}});const{size_percentile:{minimum_thresholds:an},test_coverage:{minimum_thresholds:Bf}}=Ji.project.documentation_site,Mn=e=>e==null?{hex:"#f3f4f6",class:"bg-gray-100"}:e>=an.xl?{hex:"#1e3a8a",class:"bg-blue-900"}:e>=an.l?{hex:"#1e40af",class:"bg-blue-800"}:e>=an.m?{hex:"#2563eb",class:"bg-blue-600"}:e>=an.s?{hex:"#3b82f6",class:"bg-blue-500"}:{hex:"#93c5fd",class:"bg-blue-300"},ma=e=>e>=an.xl?"xl":e>=an.l?"l":e>=an.m?"m":e>=an.s?"s":"xs",Ns=e=>e>=an.xl?5:e>=an.l?4:e>=an.m?3:e>=an.s?2:1,xt=e=>e==null?{hex:"transparent",class:"bg-transparent"}:e>=Bf.good?{hex:"#22c55e",class:"bg-green-500"}:e>=Bf.fair?{hex:"#eab308",class:"bg-yellow-500"}:{hex:"#ef4444",class:"bg-red-500"},Y2=e=>e>=Bf.good?"good":e>=Bf.fair?"fair":"poor",poe=e=>e>=1e3?(e/1e3).toFixed(1)+"k":e,zf=e=>!e||e.length===0?b.jsx("span",{className:"text-gray-400 italic text-sm",children:"No team assigned"}):e.length>1?b.jsxs("p",{className:"text-sm text-gray-700",children:[e[0]," + ",e.length-1]}):b.jsx("p",{className:"text-sm text-gray-700",children:e[0]});function mp(){return typeof window<"u"}function Da(e){return Q2(e)?(e.nodeName||"").toLowerCase():"#document"}function Mt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xn(e){var t;return(t=(Q2(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Q2(e){return mp()?e instanceof Node||e instanceof Mt(e).Node:!1}function fe(e){return mp()?e instanceof Element||e instanceof Mt(e).Element:!1}function Ut(e){return mp()?e instanceof HTMLElement||e instanceof Mt(e).HTMLElement:!1}function vg(e){return!mp()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Mt(e).ShadowRoot}function ru(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=fn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function hoe(e){return["table","td","th"].includes(Da(e))}function vp(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function X0(e){const t=gp(),n=fe(e)?fn(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 moe(e){let t=$r(e);for(;Ut(t)&&!gr(t);){if(X0(t))return t;if(vp(t))return null;t=$r(t)}return null}function gp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function gr(e){return["html","body","#document"].includes(Da(e))}function fn(e){return Mt(e).getComputedStyle(e)}function yp(e){return fe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $r(e){if(Da(e)==="html")return e;const t=e.assignedSlot||e.parentNode||vg(e)&&e.host||Xn(e);return vg(t)?t.host:t}function Z2(e){const t=$r(e);return gr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ut(t)&&ru(t)?t:Z2(t)}function Qr(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Z2(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Mt(i);if(o){const l=gg(a);return t.concat(a,a.visualViewport||[],ru(i)?i:[],l&&n?Qr(l):[])}return t.concat(i,Qr(i,[],n))}function gg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yg(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 va(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&vg(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function J2(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function ej(){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 voe(e){return yoe()?!1:!KS()&&e.width===0&&e.height===0||KS()&&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 tj(){return/apple/i.test(navigator.vendor)}function KS(){const e=/android/i;return e.test(J2())||e.test(ej())}function goe(){return J2().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function yoe(){return ej().includes("jsdom/")}function xg(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}function xoe(e){return"nativeEvent"in e}function boe(e){return e.matches("html,body")}function Br(e){return(e==null?void 0:e.ownerDocument)||document}function kh(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 fo(e){return"composedPath"in e?e.composedPath()[0]:e.target}const woe="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function _oe(e){return Ut(e)&&e.matches(woe)}const Soe=["top","right","bottom","left"],qS=["start","end"],GS=Soe.reduce((e,t)=>e.concat(t,t+"-"+qS[0],t+"-"+qS[1]),[]),Vi=Math.min,ht=Math.max,Ms=Math.round,Xu=Math.floor,Un=e=>({x:e,y:e}),Eoe={left:"right",right:"left",bottom:"top",top:"bottom"},Ooe={start:"end",end:"start"};function XS(e,t,n){return ht(e,Vi(t,n))}function ro(e,t){return typeof e=="function"?e(t):e}function Kn(e){return e.split("-")[0]}function Hn(e){return e.split("-")[1]}function nj(e){return e==="x"?"y":"x"}function rj(e){return e==="y"?"height":"width"}function Ki(e){return["top","bottom"].includes(Kn(e))?"y":"x"}function ij(e){return nj(Ki(e))}function oj(e,t,n){n===void 0&&(n=!1);const r=Hn(e),i=ij(e),o=rj(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Hf(a)),[a,Hf(a)]}function $oe(e){const t=Hf(e);return[Uf(e),t,Uf(t)]}function Uf(e){return e.replace(/start|end/g,t=>Ooe[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 Aoe(e,t,n,r){const i=Hn(e);let o=Poe(Kn(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(Uf)))),o}function Hf(e){return e.replace(/left|right|bottom|top/g,t=>Eoe[t])}function Toe(e){return{top:0,right:0,bottom:0,left:0,...e}}function joe(e){return typeof e!="number"?Toe(e):{top:e,right:e,bottom:e,left:e}}function Wf(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}}/*!
241
241
  * tabbable 6.2.0
242
242
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
243
- */var zoe=["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])"],Sg=zoe.join(","),s2=typeof Element>"u",Is=s2?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Kf=!s2&&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},qf=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},Uoe=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},Hoe=function(t,n,r){if(qf(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(Sg));return n&&Is.call(t,Sg)&&i.unshift(t),i=i.filter(r),i},Woe=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if(!qf(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=Is.call(a,Sg);c&&r.filter(a)&&(n||!t.includes(a))&&i.push(a);var f=a.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(a),d=!qf(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},u2=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},c2=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Uoe(t))&&!u2(t)?0:t.tabIndex},Voe=function(t,n){var r=c2(t);return r<0&&n&&!u2(t)?0:r},Koe=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},f2=function(t){return t.tagName==="INPUT"},qoe=function(t){return f2(t)&&t.type==="hidden"},Goe=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},Xoe=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},Yoe=function(t){if(!t.name)return!0;var n=t.form||Kf(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=Xoe(i,t.form);return!o||o===t},Qoe=function(t){return f2(t)&&t.type==="radio"},Zoe=function(t){return Qoe(t)&&!Yoe(t)},Joe=function(t){var n,r=t&&Kf(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=Kf(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},Z_=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},eae=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=Is.call(t,"details>summary:first-of-type"),a=o?t.parentElement:t;if(Is.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=Kf(t);if(s&&!s.shadowRoot&&i(s)===!0)return Z_(t);t.assignedSlot?t=t.assignedSlot:!s&&u!==t.ownerDocument?t=u.host:t=s}t=l}if(Joe(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Z_(t);return!1},tae=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 Is.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},nae=function(t,n){return!(n.disabled||qf(n)||qoe(n)||eae(n,t)||Goe(n)||tae(n))},J_=function(t,n){return!(Zoe(n)||c2(n)<0||!nae(t,n))},rae=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},iae=function e(t){var n=[],r=[];return t.forEach(function(i,o){var a=!!i.scopeParent,l=a?i.scopeParent:i,s=Voe(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(Koe).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(n)},d2=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Woe([t],n.includeContainer,{filter:J_.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:rae}):r=Hoe(t,n.includeContainer,J_.bind(null,n)),iae(r)};function eO(e,t,n){let{reference:r,floating:i}=e;const o=qi(t),a=a2(t),l=o2(a),s=Kn(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(Hn(t)){case"start":p[a]-=d*(n&&u?-1:1);break;case"end":p[a]+=d*(n&&u?-1:1);break}return p}const oae=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}=eO(u,r,s),d=r,p={},m=0;for(let v=0;v<l.length;v++){const{name:y,fn:h}=l[v],{x:g,y:x,data:O,reset:w}=await h({x:c,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=g??c,f=x??f,p={...p,[y]:{...p[y],...O}},w&&m<=50&&(m++,typeof w=="object"&&(w.placement&&(d=w.placement),w.rects&&(u=w.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:c,y:f}=eO(u,d,s)),v=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:p}};async function iu(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}=ro(t,e),m=Boe(p),y=l[d?f==="floating"?"reference":"floating":f],h=Vf(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(y)))==null||n?y:y.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:s})),g=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)),O=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},w=Vf(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:x,strategy:s}):g);return{top:(h.top-w.top+m.top)/O.y,bottom:(w.bottom-h.bottom+m.bottom)/O.y,left:(h.left-w.left+m.left)/O.x,right:(w.right-h.right+m.right)/O.x}}function aae(e,t,n){return(e?[...n.filter(i=>Hn(i)===e),...n.filter(i=>Hn(i)!==e)]:n.filter(i=>Kn(i)===i)).filter(i=>e?Hn(i)===e||(t?Hf(i)!==i:!1):!0)}const lae=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=Y_,autoAlignment:p=!0,...m}=ro(e,t),v=f!==void 0||d===Y_?aae(f||null,p,d):d,y=await iu(t,m),h=((n=a.autoPlacement)==null?void 0:n.index)||0,g=v[h];if(g==null)return{};const x=l2(g,o,await(s.isRTL==null?void 0:s.isRTL(u.floating)));if(l!==g)return{reset:{placement:v[0]}};const O=[y[Kn(g)],y[x[0]],y[x[1]]],w=[...((r=a.autoPlacement)==null?void 0:r.overflows)||[],{placement:g,overflows:O}],_=v[h+1];if(_)return{data:{index:h+1,overflows:w},reset:{placement:_}};const E=w.map(C=>{const T=Hn(C.placement);return[C.placement,T&&c?C.overflows.slice(0,2).reduce((N,R)=>N+R,0):C.overflows[0],C.overflows]}).sort((C,T)=>C[1]-T[1]),A=((i=E.filter(C=>C[2].slice(0,Hn(C[0])?2:3).every(T=>T<=0))[0])==null?void 0:i[0])||E[0][0];return A!==l?{data:{index:h+1,overflows:w},reset:{placement:A}}:{}}}},sae=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:m="none",flipAlignment:v=!0,...y}=ro(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const h=Kn(i),g=qi(l),x=Kn(l)===l,O=await(s.isRTL==null?void 0:s.isRTL(u.floating)),w=d||(x||!v?[Wf(l)]:Roe(l)),_=m!=="none";!d&&_&&w.push(...Doe(l,v,m,O));const E=[l,...w],$=await iu(t,y),A=[];let C=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&A.push($[h]),f){const D=l2(i,a,O);A.push($[D[0]],$[D[1]])}if(C=[...C,{placement:i,overflows:A}],!A.every(D=>D<=0)){var T,N;const D=(((T=o.flip)==null?void 0:T.index)||0)+1,M=E[D];if(M)return{data:{index:D,overflows:C},reset:{placement:M}};let L=(N=C.filter(I=>I.overflows[0]<=0).sort((I,P)=>I.overflows[1]-P.overflows[1])[0])==null?void 0:N.placement;if(!L)switch(p){case"bestFit":{var R;const I=(R=C.filter(P=>{if(_){const k=qi(P.placement);return k===g||k==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(k=>k>0).reduce((k,F)=>k+F,0)]).sort((P,k)=>P[1]-k[1])[0])==null?void 0:R[0];I&&(L=I);break}case"initialPlacement":L=l;break}if(i!==L)return{reset:{placement:L}}}return{}}}};async function uae(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Kn(n),l=Hn(n),s=qi(n)==="y",u=["left","top"].includes(a)?-1:1,c=o&&s?-1:1,f=ro(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof m=="number"&&(p=l==="end"?m*-1:m),s?{x:p*c,y:d*u}:{x:d*u,y:p*c}}const cae=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 uae(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}}}}},fae=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:y=>{let{x:h,y:g}=y;return{x:h,y:g}}},...s}=ro(e,t),u={x:n,y:r},c=await iu(t,s),f=qi(Kn(i)),d=i2(f);let p=u[d],m=u[f];if(o){const y=d==="y"?"top":"left",h=d==="y"?"bottom":"right",g=p+c[y],x=p-c[h];p=Q_(g,p,x)}if(a){const y=f==="y"?"top":"left",h=f==="y"?"bottom":"right",g=m+c[y],x=m-c[h];m=Q_(g,m,x)}const v=l.fn({...t,[d]:p,[f]:m});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[d]:o,[f]:a}}}}}},dae=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}=ro(e,t),c=await iu(t,u),f=Kn(i),d=Hn(i),p=qi(i)==="y",{width:m,height:v}=o.floating;let y,h;f==="top"||f==="bottom"?(y=f,h=d===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(h=f,y=d==="end"?"top":"bottom");const g=v-c.top-c.bottom,x=m-c.left-c.right,O=Ki(v-c[y],g),w=Ki(m-c[h],x),_=!t.middlewareData.shift;let E=O,$=w;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&($=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=g),_&&!d){const C=ht(c.left,0),T=ht(c.right,0),N=ht(c.top,0),R=ht(c.bottom,0);p?$=m-2*(C!==0||T!==0?C+T:ht(c.left,c.right)):E=v-2*(N!==0||R!==0?N+R:ht(c.top,c.bottom))}await s({...t,availableWidth:$,availableHeight:E});const A=await a.getDimensions(l.floating);return m!==A.width||v!==A.height?{reset:{rects:!0}}:{}}}};function p2(e){const t=fn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ut(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=Ms(n)!==o||Ms(r)!==a;return l&&(n=o,r=a),{width:n,height:r,$:l}}function Z0(e){return fe(e)?e:e.contextElement}function Do(e){const t=Z0(e);if(!Ut(t))return Un(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=p2(t);let a=(o?Ms(n.width):n.width)/r,l=(o?Ms(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const pae=Un(0);function h2(e){const t=Mt(e);return!yp()||!t.visualViewport?pae:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function hae(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Mt(e)?!1:t}function Gi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Z0(e);let a=Un(1);t&&(r?fe(r)&&(a=Do(r)):a=Do(e));const l=hae(o,n,r)?h2(o):Un(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=Mt(o),p=r&&fe(r)?Mt(r):r;let m=d,v=xg(m);for(;v&&r&&p!==m;){const y=Do(v),h=v.getBoundingClientRect(),g=fn(v),x=h.left+(v.clientLeft+parseFloat(g.paddingLeft))*y.x,O=h.top+(v.clientTop+parseFloat(g.paddingTop))*y.y;s*=y.x,u*=y.y,c*=y.x,f*=y.y,s+=x,u+=O,m=Mt(v),v=xg(m)}}return Vf({width:c,height:f,x:s,y:u})}function J0(e,t){const n=xp(e).scrollLeft;return t?t.left+n:Gi(Xn(e)).left+n}function m2(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:J0(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function mae(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=Xn(r),l=t?gp(t.floating):!1;if(r===a||l&&o)return n;let s={scrollLeft:0,scrollTop:0},u=Un(1);const c=Un(0),f=Ut(r);if((f||!f&&!o)&&((Da(r)!=="body"||ru(a))&&(s=xp(r)),Ut(r))){const p=Gi(r);u=Do(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}const d=a&&!f&&!o?m2(a,s,!0):Un(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 vae(e){return Array.from(e.getClientRects())}function gae(e){const t=Xn(e),n=xp(e),r=e.ownerDocument.body,i=ht(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=ht(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+J0(e);const l=-n.scrollTop;return fn(r).direction==="rtl"&&(a+=ht(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:l}}function yae(e,t){const n=Mt(e),r=Xn(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=yp();(!u||u&&t==="fixed")&&(l=i.offsetLeft,s=i.offsetTop)}return{width:o,height:a,x:l,y:s}}function xae(e,t){const n=Gi(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Ut(e)?Do(e):Un(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 tO(e,t,n){let r;if(t==="viewport")r=yae(e,n);else if(t==="document")r=gae(Xn(e));else if(fe(t))r=xae(t,n);else{const i=h2(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Vf(r)}function v2(e,t){const n=$r(e);return n===t||!fe(n)||gr(n)?!1:fn(n).position==="fixed"||v2(n,t)}function bae(e,t){const n=t.get(e);if(n)return n;let r=Qr(e,[],!1).filter(l=>fe(l)&&Da(l)!=="body"),i=null;const o=fn(e).position==="fixed";let a=o?$r(e):e;for(;fe(a)&&!gr(a);){const l=fn(a),s=Q0(a);!s&&l.position==="fixed"&&(i=null),(o?!s&&!i:!s&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||ru(a)&&!s&&v2(e,a))?r=r.filter(c=>c!==a):i=l,a=$r(a)}return t.set(e,r),r}function wae(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?gp(t)?[]:bae(t,this._c):[].concat(n),r],l=a[0],s=a.reduce((u,c)=>{const f=tO(t,c,i);return u.top=ht(f.top,u.top),u.right=Ki(f.right,u.right),u.bottom=Ki(f.bottom,u.bottom),u.left=ht(f.left,u.left),u},tO(t,l,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function Sae(e){const{width:t,height:n}=p2(e);return{width:t,height:n}}function _ae(e,t,n){const r=Ut(t),i=Xn(t),o=n==="fixed",a=Gi(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const s=Un(0);if(r||!r&&!o)if((Da(t)!=="body"||ru(i))&&(l=xp(t)),r){const d=Gi(t,!0,o,t);s.x=d.x+t.clientLeft,s.y=d.y+t.clientTop}else i&&(s.x=J0(i));const u=i&&!r&&!o?m2(i,l):Un(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 Ih(e){return fn(e).position==="static"}function nO(e,t){if(!Ut(e)||fn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Xn(e)===n&&(n=n.ownerDocument.body),n}function g2(e,t){const n=Mt(e);if(gp(e))return n;if(!Ut(e)){let i=$r(e);for(;i&&!gr(i);){if(fe(i)&&!Ih(i))return i;i=$r(i)}return n}let r=nO(e,t);for(;r&&Ooe(r)&&Ih(r);)r=nO(r,t);return r&&gr(r)&&Ih(r)&&!Q0(r)?n:r||Eoe(e)||n}const Oae=async function(e){const t=this.getOffsetParent||g2,n=this.getDimensions,r=await n(e.floating);return{reference:_ae(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Eae(e){return fn(e).direction==="rtl"}const $ae={convertOffsetParentRelativeRectToViewportRelativeRect:mae,getDocumentElement:Xn,getClippingRect:wae,getOffsetParent:g2,getElementRects:Oae,getClientRects:vae,getDimensions:Sae,getScale:Do,isElement:fe,isRTL:Eae};function y2(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Pae(e,t){let n=null,r;const i=Xn(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 m=Yu(f),v=Yu(i.clientWidth-(c+d)),y=Yu(i.clientHeight-(f+p)),h=Yu(c),x={rootMargin:-m+"px "+-v+"px "+-y+"px "+-h+"px",threshold:ht(0,Ki(1,s))||1};let O=!0;function w(_){const E=_[0].intersectionRatio;if(E!==s){if(!O)return a();E?a(!1,E):r=setTimeout(()=>{a(!1,1e-7)},1e3)}E===1&&!y2(u,e.getBoundingClientRect())&&a(),O=!1}try{n=new IntersectionObserver(w,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(w,x)}n.observe(e)}return a(!0),o}function x2(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=Z0(e),c=i||o?[...u?Qr(u):[],...Qr(t)]:[];c.forEach(h=>{i&&h.addEventListener("scroll",n,{passive:!0}),o&&h.addEventListener("resize",n)});const f=u&&l?Pae(u,n):null;let d=-1,p=null;a&&(p=new ResizeObserver(h=>{let[g]=h;g&&g.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 m,v=s?Gi(e):null;s&&y();function y(){const h=Gi(e);v&&!y2(v,h)&&n(),v=h,m=requestAnimationFrame(y)}return n(),()=>{var h;c.forEach(g=>{i&&g.removeEventListener("scroll",n),o&&g.removeEventListener("resize",n)}),f==null||f(),(h=p)==null||h.disconnect(),p=null,s&&cancelAnimationFrame(m)}}const Rh=iu,Aae=cae,Tae=lae,jae=fae,Cae=sae,kae=dae,Nae=(e,t,n)=>{const r=new Map,i={platform:$ae,...n},o={...i.platform,_c:r};return oae(e,t,{...i,platform:o})};var vc=typeof document<"u"?S.useLayoutEffect:S.useEffect;function Gf(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(!Gf(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)&&!Gf(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function b2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rO(e,t){const n=b2(e);return Math.round(t*n)/n}function Lh(e){const t=S.useRef(e);return vc(()=>{t.current=e}),t}function w2(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]=S.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=S.useState(r);Gf(d,r)||p(r);const[m,v]=S.useState(null),[y,h]=S.useState(null),g=S.useCallback(P=>{P!==_.current&&(_.current=P,v(P))},[]),x=S.useCallback(P=>{P!==E.current&&(E.current=P,h(P))},[]),O=o||m,w=a||y,_=S.useRef(null),E=S.useRef(null),$=S.useRef(c),A=s!=null,C=Lh(s),T=Lh(i),N=Lh(u),R=S.useCallback(()=>{if(!_.current||!E.current)return;const P={placement:t,strategy:n,middleware:d};T.current&&(P.platform=T.current),Nae(_.current,E.current,P).then(k=>{const F={...k,isPositioned:N.current!==!1};D.current&&!Gf($.current,F)&&($.current=F,Bt.flushSync(()=>{f(F)}))})},[d,t,n,T,N]);vc(()=>{u===!1&&$.current.isPositioned&&($.current.isPositioned=!1,f(P=>({...P,isPositioned:!1})))},[u]);const D=S.useRef(!1);vc(()=>(D.current=!0,()=>{D.current=!1}),[]),vc(()=>{if(O&&(_.current=O),w&&(E.current=w),O&&w){if(C.current)return C.current(O,w,R);R()}},[O,w,R,C,A]);const M=S.useMemo(()=>({reference:_,floating:E,setReference:g,setFloating:x}),[g,x]),L=S.useMemo(()=>({reference:O,floating:w}),[O,w]),I=S.useMemo(()=>{const P={position:n,left:0,top:0};if(!L.floating)return P;const k=rO(L.floating,c.x),F=rO(L.floating,c.y);return l?{...P,transform:"translate("+k+"px, "+F+"px)",...b2(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:k,top:F}},[n,l,L.floating,c.x,c.y]);return S.useMemo(()=>({...c,update:R,refs:M,elements:L,floatingStyles:I}),[c,R,M,L,I])}const ex=(e,t)=>({...Aae(e),options:[e,t]}),S2=(e,t)=>({...jae(e),options:[e,t]}),Mae=(e,t)=>({...Cae(e),options:[e,t]}),Iae=(e,t)=>({...kae(e),options:[e,t]}),Rae=(e,t)=>({...Tae(e),options:[e,t]}),_2={...bc},Lae=_2.useInsertionEffect,Dae=Lae||(e=>e());function ir(e){const t=S.useRef(()=>{});return Dae(()=>{t.current=e}),S.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 Wn=typeof document<"u"?S.useLayoutEffect:S.useEffect;let iO=!1,Fae=0;const oO=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Fae++;function Bae(){const[e,t]=S.useState(()=>iO?oO():void 0);return Wn(()=>{e==null&&t(oO())},[]),S.useEffect(()=>{iO=!0},[]),e}const zae=_2.useId,tx=zae||Bae;function Uae(){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 Hae=S.createContext(null),Wae=S.createContext(null),nx=()=>{var e;return((e=S.useContext(Hae))==null?void 0:e.id)||null},rx=()=>S.useContext(Wae);function ou(e){return"data-floating-ui-"+e}function Dh(e){const t=S.useRef(e);return Wn(()=>{t.current=e}),t}const aO=ou("safe-polygon");function Fh(e,t,n){return n&&!wg(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function Vae(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=rx(),m=nx(),v=Dh(u),y=Dh(s),h=Dh(n),g=S.useRef(),x=S.useRef(-1),O=S.useRef(),w=S.useRef(-1),_=S.useRef(!0),E=S.useRef(!1),$=S.useRef(()=>{}),A=S.useRef(!1),C=S.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]);S.useEffect(()=>{if(!l)return;function I(P){let{open:k}=P;k||(clearTimeout(x.current),clearTimeout(w.current),_.current=!0,A.current=!1)}return o.on("openchange",I),()=>{o.off("openchange",I)}},[l,o]),S.useEffect(()=>{if(!l||!v.current||!n)return;function I(k){C()&&r(!1,k,"hover")}const P=Br(a.floating).documentElement;return P.addEventListener("mouseleave",I),()=>{P.removeEventListener("mouseleave",I)}},[a.floating,n,r,l,v,C]);const T=S.useCallback(function(I,P,k){P===void 0&&(P=!0),k===void 0&&(k="hover");const F=Fh(y.current,"close",g.current);F&&!O.current?(clearTimeout(x.current),x.current=window.setTimeout(()=>r(!1,I,k),F)):P&&(clearTimeout(x.current),r(!1,I,k))},[y,r]),N=ir(()=>{$.current(),O.current=void 0}),R=ir(()=>{if(E.current){const I=Br(a.floating).body;I.style.pointerEvents="",I.removeAttribute(aO),E.current=!1}}),D=ir(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);S.useEffect(()=>{if(!l)return;function I(B){if(clearTimeout(x.current),_.current=!1,c&&!wg(g.current)||f>0&&!Fh(y.current,"open"))return;const U=Fh(y.current,"open",g.current);U?x.current=window.setTimeout(()=>{h.current||r(!0,B,"hover")},U):n||r(!0,B,"hover")}function P(B){if(D())return;$.current();const U=Br(a.floating);if(clearTimeout(w.current),A.current=!1,v.current&&i.current.floatingContext){n||clearTimeout(x.current),O.current=v.current({...i.current.floatingContext,tree:p,x:B.clientX,y:B.clientY,onClose(){R(),N(),D()||T(B,!0,"safe-polygon")}});const ne=O.current;U.addEventListener("mousemove",ne),$.current=()=>{U.removeEventListener("mousemove",ne)};return}(g.current==="touch"?!va(a.floating,B.relatedTarget):!0)&&T(B)}function k(B){D()||i.current.floatingContext&&(v.current==null||v.current({...i.current.floatingContext,tree:p,x:B.clientX,y:B.clientY,onClose(){R(),N(),D()||T(B)}})(B))}if(fe(a.domReference)){var F;const B=a.domReference;return n&&B.addEventListener("mouseleave",k),(F=a.floating)==null||F.addEventListener("mouseleave",k),d&&B.addEventListener("mousemove",I,{once:!0}),B.addEventListener("mouseenter",I),B.addEventListener("mouseleave",P),()=>{var U;n&&B.removeEventListener("mouseleave",k),(U=a.floating)==null||U.removeEventListener("mouseleave",k),d&&B.removeEventListener("mousemove",I),B.removeEventListener("mouseenter",I),B.removeEventListener("mouseleave",P)}}},[a,l,e,c,f,d,T,N,R,r,n,h,p,y,v,i,D]),Wn(()=>{var I;if(l&&n&&(I=v.current)!=null&&I.__options.blockPointerEvents&&C()){E.current=!0;const k=a.floating;if(fe(a.domReference)&&k){var P;const F=Br(a.floating).body;F.setAttribute(aO,"");const B=a.domReference,U=p==null||(P=p.nodesRef.current.find(X=>X.id===m))==null||(P=P.context)==null?void 0:P.elements.floating;return U&&(U.style.pointerEvents=""),F.style.pointerEvents="none",B.style.pointerEvents="auto",k.style.pointerEvents="auto",()=>{F.style.pointerEvents="",B.style.pointerEvents="",k.style.pointerEvents=""}}}},[l,n,m,a,p,v,C]),Wn(()=>{n||(g.current=void 0,A.current=!1,N(),R())},[n,N,R]),S.useEffect(()=>()=>{N(),clearTimeout(x.current),clearTimeout(w.current),R()},[l,a.domReference,N,R]);const M=S.useMemo(()=>{function I(P){g.current=P.pointerType}return{onPointerDown:I,onPointerEnter:I,onMouseMove(P){const{nativeEvent:k}=P;function F(){!_.current&&!h.current&&r(!0,k,"hover")}c&&!wg(g.current)||n||f===0||A.current&&P.movementX**2+P.movementY**2<2||(clearTimeout(w.current),g.current==="touch"?F():(A.current=!0,w.current=window.setTimeout(F,f)))}}},[c,r,n,h,f]),L=S.useMemo(()=>({onMouseEnter(){clearTimeout(x.current)},onMouseLeave(I){D()||T(I.nativeEvent,!1)}}),[T,D]);return S.useMemo(()=>l?{reference:M,floating:L}:{},[l,M,L])}function Bh(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 O2=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function E2(e,t){const n=d2(e,O2());t==="prev"&&n.reverse();const r=n.indexOf(bg(Br(e)));return n.slice(r+1)[0]}function Kae(){return E2(document.body,"next")}function qae(){return E2(document.body,"prev")}function zh(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!va(n,r)}function Gae(e){d2(e,O2()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function lO(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 $2={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 Xae;function sO(e){e.key==="Tab"&&(e.target,clearTimeout(Xae))}const uO=S.forwardRef(function(t,n){const[r,i]=S.useState();Wn(()=>(r2()&&i("button"),document.addEventListener("keydown",sO),()=>{document.removeEventListener("keydown",sO)}),[]);const o={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[ou("focus-guard")]:"",style:$2};return b.jsx("span",{...t,...o})}),P2=S.createContext(null),cO=ou("portal");function Yae(e){e===void 0&&(e={});const{id:t,root:n}=e,r=tx(),i=Zae(),[o,a]=S.useState(null),l=S.useRef(null);return Wn(()=>()=>{o==null||o.remove(),queueMicrotask(()=>{l.current=null})},[o]),Wn(()=>{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(cO,""),s.appendChild(u),l.current=u,a(u)},[t,r]),Wn(()=>{if(n===null||!r||l.current)return;let s=n||(i==null?void 0:i.portalNode);s&&!fe(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(cO,""),s=u||s,s.appendChild(c),l.current=c,a(c)},[t,n,r,i]),o}function Qae(e){const{children:t,id:n,root:r,preserveTabOrder:i=!0}=e,o=Yae({id:n,root:r}),[a,l]=S.useState(null),s=S.useRef(null),u=S.useRef(null),c=S.useRef(null),f=S.useRef(null),d=a==null?void 0:a.modal,p=a==null?void 0:a.open,m=!!a&&!a.modal&&a.open&&i&&!!(r||o);return S.useEffect(()=>{if(!o||!i||d)return;function v(y){o&&zh(y)&&(y.type==="focusin"?lO:Gae)(o)}return o.addEventListener("focusin",v,!0),o.addEventListener("focusout",v,!0),()=>{o.removeEventListener("focusin",v,!0),o.removeEventListener("focusout",v,!0)}},[o,i,d]),S.useEffect(()=>{o&&(p||lO(o))},[p,o]),b.jsxs(P2.Provider,{value:S.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:s,afterOutsideRef:u,beforeInsideRef:c,afterInsideRef:f,portalNode:o,setFocusManagerState:l}),[i,o]),children:[m&&o&&b.jsx(uO,{"data-type":"outside",ref:s,onFocus:v=>{if(zh(v,o)){var y;(y=c.current)==null||y.focus()}else{const h=qae()||(a==null?void 0:a.domReference);h==null||h.focus()}}}),m&&o&&b.jsx("span",{"aria-owns":o.id,style:$2}),o&&Bt.createPortal(t,o),m&&o&&b.jsx(uO,{"data-type":"outside",ref:u,onFocus:v=>{if(zh(v,o)){var y;(y=f.current)==null||y.focus()}else{const h=Kae()||(a==null?void 0:a.domReference);h==null||h.focus(),a!=null&&a.closeOnFocusOut&&(a==null||a.onOpenChange(!1,v.nativeEvent,"focus-out"))}}})]})}const Zae=()=>S.useContext(P2),Jae="data-floating-ui-focusable",ele={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},tle={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},fO=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 nle(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:m}=t,v=rx(),y=ir(typeof s=="function"?s:()=>!1),h=typeof s=="function"?y:s,g=S.useRef(!1),x=S.useRef(!1),{escapeKey:O,outsidePress:w}=fO(p),{escapeKey:_,outsidePress:E}=fO(m),$=S.useRef(!1),A=ir(M=>{var L;if(!n||!a||!l||M.key!=="Escape"||$.current)return;const I=(L=o.current.floatingContext)==null?void 0:L.nodeId,P=v?Bh(v.nodesRef.current,I):[];if(!O&&(M.stopPropagation(),P.length>0)){let k=!0;if(P.forEach(F=>{var B;if((B=F.context)!=null&&B.open&&!F.context.dataRef.current.__escapeKeyBubbles){k=!1;return}}),!k)return}r(!1,Toe(M)?M.nativeEvent:M,"escape-key")}),C=ir(M=>{var L;const I=()=>{var P;A(M),(P=fo(M))==null||P.removeEventListener("keydown",I)};(L=fo(M))==null||L.addEventListener("keydown",I)}),T=ir(M=>{var L;const I=g.current;g.current=!1;const P=x.current;if(x.current=!1,u==="click"&&P||I||typeof h=="function"&&!h(M))return;const k=fo(M),F="["+ou("inert")+"]",B=Br(i.floating).querySelectorAll(F);let U=fe(k)?k:null;for(;U&&!gr(U);){const te=$r(U);if(gr(te)||!fe(te))break;U=te}if(B.length&&fe(k)&&!joe(k)&&!va(k,i.floating)&&Array.from(B).every(te=>!va(U,te)))return;if(Ut(k)&&D){const te=gr(k),ze=fn(k),Ue=/auto|scroll/,V=te||Ue.test(ze.overflowX),Q=te||Ue.test(ze.overflowY),Z=V&&k.clientWidth>0&&k.scrollWidth>k.clientWidth,H=Q&&k.clientHeight>0&&k.scrollHeight>k.clientHeight,Ae=ze.direction==="rtl",ie=H&&(Ae?M.offsetX<=k.offsetWidth-k.clientWidth:M.offsetX>k.clientWidth),Fe=Z&&M.offsetY>k.clientHeight;if(ie||Fe)return}const X=(L=o.current.floatingContext)==null?void 0:L.nodeId,ne=v&&Bh(v.nodesRef.current,X).some(te=>{var ze;return Mh(M,(ze=te.context)==null?void 0:ze.elements.floating)});if(Mh(M,i.floating)||Mh(M,i.domReference)||ne)return;const ae=v?Bh(v.nodesRef.current,X):[];if(ae.length>0){let te=!0;if(ae.forEach(ze=>{var Ue;if((Ue=ze.context)!=null&&Ue.open&&!ze.context.dataRef.current.__outsidePressBubbles){te=!1;return}}),!te)return}r(!1,M,"outside-press")}),N=ir(M=>{var L;const I=()=>{var P;T(M),(P=fo(M))==null||P.removeEventListener(u,I)};(L=fo(M))==null||L.addEventListener(u,I)});S.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=O,o.current.__outsidePressBubbles=w;let M=-1;function L(B){r(!1,B,"ancestor-scroll")}function I(){window.clearTimeout(M),$.current=!0}function P(){M=window.setTimeout(()=>{$.current=!1},yp()?5:0)}const k=Br(i.floating);l&&(k.addEventListener("keydown",_?C:A,_),k.addEventListener("compositionstart",I),k.addEventListener("compositionend",P)),h&&k.addEventListener(u,E?N:T,E);let F=[];return d&&(fe(i.domReference)&&(F=Qr(i.domReference)),fe(i.floating)&&(F=F.concat(Qr(i.floating))),!fe(i.reference)&&i.reference&&i.reference.contextElement&&(F=F.concat(Qr(i.reference.contextElement)))),F=F.filter(B=>{var U;return B!==((U=k.defaultView)==null?void 0:U.visualViewport)}),F.forEach(B=>{B.addEventListener("scroll",L,{passive:!0})}),()=>{l&&(k.removeEventListener("keydown",_?C:A,_),k.removeEventListener("compositionstart",I),k.removeEventListener("compositionend",P)),h&&k.removeEventListener(u,E?N:T,E),F.forEach(B=>{B.removeEventListener("scroll",L)}),window.clearTimeout(M)}},[o,i,l,h,u,n,r,d,a,O,w,A,_,C,T,E,N]),S.useEffect(()=>{g.current=!1},[h,u]);const R=S.useMemo(()=>({onKeyDown:A,...c&&{[ele[f]]:M=>{r(!1,M.nativeEvent,"reference-press")},...f!=="click"&&{onClick(M){r(!1,M.nativeEvent,"reference-press")}}}}),[A,r,c,f]),D=S.useMemo(()=>({onKeyDown:A,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[tle[u]]:()=>{g.current=!0}}),[A,u]);return S.useMemo(()=>a?{reference:R,floating:D}:{},[a,R,D])}function rle(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=tx(),o=S.useRef({}),[a]=S.useState(()=>Uae()),l=nx()!=null,[s,u]=S.useState(r.reference),c=ir((p,m,v)=>{o.current.openEvent=p?m:void 0,a.emit("openchange",{open:p,event:m,reason:v,nested:l}),n==null||n(p,m,v)}),f=S.useMemo(()=>({setPositionReference:u}),[]),d=S.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return S.useMemo(()=>({dataRef:o,open:t,onOpenChange:c,elements:d,events:a,floatingId:i,refs:f}),[t,c,d,a,i,f])}function ile(e){e===void 0&&(e={});const{nodeId:t}=e,n=rle({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=S.useState(null),[l,s]=S.useState(null),c=(i==null?void 0:i.domReference)||o,f=S.useRef(null),d=rx();Wn(()=>{c&&(f.current=c)},[c]);const p=w2({...e,elements:{...i,...l&&{reference:l}}}),m=S.useCallback(x=>{const O=fe(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),contextElement:x}:x;s(O),p.refs.setReference(O)},[p.refs]),v=S.useCallback(x=>{(fe(x)||x===null)&&(f.current=x,a(x)),(fe(p.refs.reference.current)||p.refs.reference.current===null||x!==null&&!fe(x))&&p.refs.setReference(x)},[p.refs]),y=S.useMemo(()=>({...p.refs,setReference:v,setPositionReference:m,domReference:f}),[p.refs,v,m]),h=S.useMemo(()=>({...p.elements,domReference:c}),[p.elements,c]),g=S.useMemo(()=>({...p,...r,refs:y,elements:h,nodeId:t}),[p,y,h,t,r]);return Wn(()=>{r.dataRef.current.floatingContext=g;const x=d==null?void 0:d.nodesRef.current.find(O=>O.id===t);x&&(x.context=g)}),S.useMemo(()=>({...p,context:g,refs:y,elements:h}),[p,y,h,g])}function ole(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=S.useRef(!1),c=S.useRef(),f=S.useRef(!0);S.useEffect(()=>{if(!l)return;const p=Mt(a.domReference);function m(){!n&&Ut(a.domReference)&&a.domReference===bg(Br(a.domReference))&&(u.current=!0)}function v(){f.current=!0}return p.addEventListener("blur",m),p.addEventListener("keydown",v,!0),()=>{p.removeEventListener("blur",m),p.removeEventListener("keydown",v,!0)}},[a.domReference,n,l]),S.useEffect(()=>{if(!l)return;function p(m){let{reason:v}=m;(v==="reference-press"||v==="escape-key")&&(u.current=!0)}return i.on("openchange",p),()=>{i.off("openchange",p)}},[i,l]),S.useEffect(()=>()=>{clearTimeout(c.current)},[]);const d=S.useMemo(()=>({onPointerDown(p){$oe(p.nativeEvent)||(f.current=!1)},onMouseLeave(){u.current=!1},onFocus(p){if(u.current)return;const m=fo(p.nativeEvent);if(s&&fe(m))try{if(r2()&&Poe())throw Error();if(!m.matches(":focus-visible"))return}catch{if(!f.current&&!koe(m))return}r(!0,p.nativeEvent,"focus")},onBlur(p){u.current=!1;const m=p.relatedTarget,v=p.nativeEvent,y=fe(m)&&m.hasAttribute(ou("focus-guard"))&&m.getAttribute("data-type")==="outside";c.current=window.setTimeout(()=>{var h;const g=bg(a.domReference?a.domReference.ownerDocument:document);!m&&g===a.domReference||va((h=o.current.floatingContext)==null?void 0:h.refs.floating.current,g)||va(a.domReference,g)||y||r(!1,v,"focus")})}}),[o,a.domReference,r,s]);return S.useMemo(()=>l?{reference:d}:{},[l,d])}const dO="active",pO="selected";function Uh(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[dO]:a,[pO]:l,...s}=e;o=s}return{...n==="floating"&&{tabIndex:-1,[Jae]:""},...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&&[dO,pO].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,m=new Array(p),v=0;v<p;v++)m[v]=arguments[v];return(d=r.get(u))==null?void 0:d.map(y=>y(...m)).find(y=>y!==void 0)}}}else a[u]=c}),a),{})}}function ale(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=S.useCallback(l=>Uh(l,e,"reference"),t),o=S.useCallback(l=>Uh(l,e,"floating"),n),a=S.useCallback(l=>Uh(l,e,"item"),r);return S.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}const lle=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function sle(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:a="dialog"}=t,l=(n=lle.get(a))!=null?n:a,s=tx(),c=nx()!=null,f=S.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=S.useMemo(()=>{const m={id:i,...l&&{role:l}};return l==="tooltip"||a==="label"?m:{...m,...l==="menu"&&{"aria-labelledby":s}}},[l,i,s,a]),p=S.useCallback(m=>{let{active:v,selected:y}=m;const h={role:"option",...v&&{id:i+"-option"}};switch(a){case"select":return{...h,"aria-selected":v&&y};case"combobox":return{...h,...v&&{"aria-selected":!0}}}return{}},[i,a]);return S.useMemo(()=>o?{reference:f,floating:d,item:p}:{},[o,f,d,p])}const au=({width:e="max-w-56",className:t="bg-gray-700 text-white text-xs rounded p-2",children:n})=>{const[r,i]=S.useState(!1),{refs:o,floatingStyles:a,context:l}=ile({open:r,onOpenChange:i,placement:"bottom",whileElementsMounted:x2,middleware:[ex(5),Rae({fallbackAxisSideDirection:"start"}),S2()]}),s=Vae(l,{move:!1}),u=ole(l),c=nle(l),f=sle(l,{role:"tooltip"}),{getReferenceProps:d,getFloatingProps:p}=ale([s,u,c,f]),m=j.Children.toArray(n).find(y=>y.type===Fa),v=j.Children.toArray(n).find(y=>y.type===Ba);return b.jsxs(b.Fragment,{children:[m&&b.jsx("div",{ref:o.setReference,...d(),className:"relative",children:S.cloneElement(m,{ref:o.setReference})}),b.jsx(Qae,{children:r&&v&&b.jsx("div",{className:`${e} ${t}`,ref:o.setFloating,style:a,...p(),children:v})})]})},Fa=S.forwardRef(({children:e,...t},n)=>b.jsx("button",{ref:n,...t,children:e})),Ba=({children:e,...t})=>b.jsx("div",{...t,children:e}),ule=({features:e})=>{const t=Object.values(e).reduce((i,o)=>{const a=o.metrics.featureSize.percentOfMax;if(a!=null){const l=ma(a);i[l]++}return i},{xs:0,s:0,m:0,l:0,xl:0}),{minimum_thresholds:n}=oi.project.documentation_site.size_percentile,r=Object.entries(t).map(([i,o],a)=>({name:i,value:o,fill:[Mn(n.xs).hex,Mn(n.s).hex,Mn(n.m).hex,Mn(n.l).hex,Mn(n.xl).hex][a]})).filter(({value:i})=>i>0);return b.jsxs("div",{className:"flex flex-col gap-6",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[b.jsx("div",{className:"flex-shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:b.jsx(yP,{className:"size-5"})}),b.jsx("span",{className:"flex pl-2",children:"Feature Size"})]}),b.jsxs(au,{width:"w-72",children:[b.jsx(Fa,{children:b.jsx(ai,{className:"size-4 text-gray-400"})}),b.jsx(Ba,{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."})]})]}),b.jsxs("div",{className:"flex items-center gap-4",children:[b.jsx("div",{className:"relative h-28 w-28",children:b.jsx(Na,{width:"100%",height:"100%",children:b.jsx(tu,{children:b.jsx(Kt,{data:r,dataKey:"value",nameKey:"name",innerRadius:"70%",outerRadius:"100%",paddingAngle:2})})})}),b.jsxs("ul",{className:"flex flex-col flex-1 gap-y-1",children:[b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${Mn(n.xs).class}`,children:b.jsx("span",{className:"font-semibold text-white text-xs",children:t.xs})}),b.jsx("p",{className:"text-xs text-gray-500",children:"X-Small Features"})]}),b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${Mn(n.s).class}`,children:b.jsx("span",{className:"font-semibold text-white text-xs",children:t.s})}),b.jsx("p",{className:"text-xs text-gray-500",children:"Small Features"})]}),b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${Mn(n.m).class}`,children:b.jsx("span",{className:"font-semibold text-white text-xs",children:t.m})}),b.jsx("p",{className:"text-xs text-gray-500",children:"Medium Features"})]}),b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${Mn(n.l).class}`,children:b.jsx("span",{className:"font-semibold text-white text-xs",children:t.l})}),b.jsx("p",{className:"text-xs text-gray-500",children:"Large Features"})]}),b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${Mn(n.xl).class}`,children:b.jsx("span",{className:"font-semibold text-white text-xs",children:t.xl})}),b.jsx("p",{className:"text-xs text-gray-500",children:"X-Large Features"})]})]})]})]})},et={needsAttention:50,needsImprovement:80,healthy:100},bt=e=>e?e<=et.needsAttention?{hex:"#ef4444",class:"bg-red-500"}:e<=et.needsImprovement?{hex:"#eab308",class:"bg-yellow-500"}:{hex:"#22c55e",class:"bg-green-500"}:{hex:"transparent",class:"bg-transparent"},A2=e=>e<et.needsAttention?"needsAttention":e<et.needsImprovement?"needsImprovement":"healthy",T2=e=>e?e<et.needsAttention?"bg-red-100/60":e<et.needsImprovement?"bg-yellow-100/60":"bg-green-100/60":"bg-gray-100",cle=({features:e})=>{const t=Object.values(e).reduce((r,i)=>{const o=i.metrics.health.overall;if(o!=null){const a=A2(o);r[a]++}return r},{needsAttention:0,needsImprovement:0,healthy:0}),n=Object.entries(t).map(([r,i],o)=>({name:r,value:i,fill:[bt(et.needsAttention).hex,bt(et.needsImprovement).hex,bt(et.healthy).hex][o]})).filter(({value:r})=>r>0);return b.jsxs("div",{className:"flex flex-col gap-6",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[b.jsx("div",{className:"flex-shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:b.jsx(Dy,{className:"size-5"})}),b.jsx("span",{className:"flex pl-2",children:"Health Score"})]}),b.jsxs(au,{children:[b.jsx(Fa,{children:b.jsx(ai,{className:"size-4 text-gray-400"})}),b.jsx(Ba,{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`."})]})]}),b.jsxs("div",{className:"flex items-center gap-4",children:[b.jsx("div",{className:"relative h-28 w-28",children:b.jsx(Na,{width:"100%",height:"100%",children:b.jsx(tu,{children:b.jsx(Kt,{data:n,dataKey:"value",nameKey:"name",innerRadius:"70%",outerRadius:"100%",paddingAngle:2})})})}),b.jsxs("ul",{className:"flex flex-col flex-1 gap-y-1",children:[b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${bt(et.needsAttention).class}`,children:b.jsx("span",{className:"font-semibold text-white text-xs",children:t.needsAttention})}),b.jsxs("p",{className:"text-xs text-gray-500",children:[b.jsx("span",{className:"lg:hidden xl:inline-block",children:"Features"})," need attention"]})]}),b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${bt(et.needsImprovement).class}`,children:b.jsx("span",{className:"font-semibold text-white text-xs",children:t.needsImprovement})}),b.jsxs("p",{className:"text-xs text-gray-500",children:[b.jsx("span",{className:"lg:hidden xl:inline-block",children:"Features"})," need improvement"]})]}),b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${bt(et.healthy).class}`,children:b.jsx("span",{className:"font-semibold text-white text-xs",children:t.healthy})}),b.jsx("p",{className:"text-xs text-gray-500",children:"Healthy Features"})]})]})]})]})},fle=({features:e})=>{const t=Object.values(e).reduce((i,o)=>{const a=o.metrics.testCoverage.score;if(a!=null){const l=Zj(a);i[l]++}return i},{poor:0,fair:0,good:0}),{minimum_thresholds:n}=oi.project.documentation_site.test_coverage,r=Object.entries(t).map(([i,o],a)=>({name:i,value:o,fill:[xt(n.poor).hex,xt(n.fair).hex,xt(n.good).hex][a]})).filter(({value:i})=>i>0);return b.jsxs("div",{className:"flex flex-col gap-6",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[b.jsx("div",{className:"flex-shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:b.jsx(Ly,{className:"size-5"})}),b.jsx("span",{className:"flex pl-2",children:"Test Coverage"})]}),b.jsxs(au,{children:[b.jsx(Fa,{children:b.jsx(ai,{className:"size-4 text-gray-400"})}),b.jsx(Ba,{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`."})]})]}),b.jsxs("div",{className:"flex items-center gap-4",children:[b.jsx("div",{className:"relative h-28 w-28",children:b.jsx(Na,{width:"100%",height:"100%",children:b.jsx(tu,{children:b.jsx(Kt,{data:r,dataKey:"value",nameKey:"name",innerRadius:"70%",outerRadius:"100%",paddingAngle:2})})})}),b.jsxs("ul",{className:"flex flex-col flex-1 gap-y-1",children:[b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${xt(n.poor).class}`,children:b.jsx("span",{className:"font-semibold text-white text-xs",children:t.poor})}),b.jsx("p",{className:"text-xs text-gray-500",children:"Features with poor test coverage"})]}),b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${xt(n.fair).class}`,children:b.jsx("span",{className:"font-semibold text-white text-xs",children:t.fair})}),b.jsx("p",{className:"text-xs text-gray-500",children:"Features with acceptable test coverage"})]}),b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${xt(n.good).class}`,children:b.jsx("span",{className:"font-semibold text-white text-xs",children:t.good})}),b.jsx("p",{className:"text-xs text-gray-500",children:"Features with great test coverage"})]})]})]})]})};function dle({features:e,searchTerm:t=""}){const[n,r]=S.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 y,h,g,x,O,w,_,E,$,A,C,T,N,R;const[c,f]=s,[d,p]=u;if(!n.key)return 0;let m,v;switch(n.key){case"team":const D=((y=f==null?void 0:f.assignments)==null?void 0:y.teams)||[],M=((h=p==null?void 0:p.assignments)==null?void 0:h.teams)||[];m=D[0]||"",v=M[0]||"";break;case"size":m=((x=(g=f==null?void 0:f.metrics)==null?void 0:g.featureSize)==null?void 0:x.percentOfMax)||0,v=((w=(O=p==null?void 0:p.metrics)==null?void 0:O.featureSize)==null?void 0:w.percentOfMax)||0;break;case"health_score":m=((E=(_=f==null?void 0:f.metrics)==null?void 0:_.health)==null?void 0:E.overall)||0,v=((A=($=p==null?void 0:p.metrics)==null?void 0:$.health)==null?void 0:A.overall)||0;break;case"test_coverage":m=((T=(C=f==null?void 0:f.metrics)==null?void 0:C.testCoverage)==null?void 0:T.score)??-1,v=((R=(N=p==null?void 0:p.metrics)==null?void 0:N.testCoverage)==null?void 0:R.score)??-1;break;default:m=c,v=d}return m<v?n.direction==="asc"?-1:1:m>v?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=""})=>b.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:b.jsxs("div",{className:"flex items-center gap-x-2 group cursor-pointer",children:[l,b.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:b.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 b.jsx("div",{className:"overflow-scroll shadow-sm border border-gray-200 rounded-lg relative",children:b.jsxs("table",{className:"min-w-full",children:[b.jsx("thead",{className:"bg-gray-50 border-b border-gray-200 sticky top-0",children:b.jsxs("tr",{children:[b.jsx(a,{title:"Feature",sortKey:"name"}),b.jsx(a,{title:"Team",sortKey:"team",hideOn:"hidden lg:table-cell"}),b.jsx(a,{title:"Size",sortKey:"size",hideOn:"hidden md:table-cell"}),b.jsx(a,{title:"Health Score",sortKey:"health_score",hideOn:"hidden lg:table-cell"}),b.jsx(a,{title:"Test Coverage",sortKey:"test_coverage",hideOn:"hidden md:table-cell"}),b.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider"})]})}),b.jsx("tbody",{className:"divide-y divide-gray-200 bg-white",children:i.map(([l,s])=>{const u=s.metrics.featureSize.percentOfMax,c=ma(u),f=s.metrics.health.overall,d=s.metrics.testCoverage.score;return b.jsxs("tr",{children:[b.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:b.jsx("div",{className:"flex items-center gap-x-3",children:b.jsxs("div",{children:[b.jsx("p",{className:"font-medium text-gray-900 text-sm mb-1",children:l.length>2?l:s.name}),b.jsxs("div",{className:"flex items-center gap-1 lg:hidden",children:[b.jsx("p",{className:"text-sm lg:text-xs font-normal text-gray-500",children:"Team: "}),b.jsx("div",{className:"flex items-center gap-1",children:s.assignments.teams&&s.assignments.teams.map((p,m)=>b.jsxs(j.Fragment,{children:[b.jsx("span",{className:"text-sm lg:text-xs font-normal text-gray-500",children:p}),m<s.assignments.teams.length-1&&b.jsx("svg",{viewBox:"0 0 2 2",className:"size-1 fill-current text-gray-400",children:b.jsx("circle",{cx:"1",cy:"1",r:"1"})})]},p))})]})]})})}),b.jsx("td",{className:"hidden px-4 py-4 text-sm text-gray-500 lg:table-cell",children:b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(Hi,{className:"size-4 text-gray-500"}),Uf(s.assignments.teams||[])]})}),b.jsx("td",{className:"hidden px-4 py-4 text-sm text-gray-500 md:table-cell",children:b.jsxs("div",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:"flex gap-1.5 items-center",children:[1,2,3,4,5].map(p=>b.jsx("div",{className:`h-5 w-1.5 rounded ${p<=Ns(u)?"bg-blue-500":"bg-gray-200"}`},p))}),b.jsx("span",{className:"text-xs text-gray-500 uppercase",children:c})]})}),b.jsx("td",{className:"hidden px-4 py-4 text-sm text-gray-500 lg:table-cell",children:b.jsxs("div",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`w-4 h-4 rounded-full flex items-center justify-center ${T2(f)}`,children:b.jsx("div",{className:`w-2 h-2 rounded-full ${bt(f).class}`})}),b.jsxs("span",{className:"text-gray-600",children:[f.toFixed(0),"%"]})]})}),b.jsx("td",{className:"hidden px-4 py-4 text-sm md:table-cell",children:b.jsxs("div",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:"flex-grow h-2 rounded-full bg-gray-100 overflow-hidden",children:b.jsx("div",{className:`h-full rounded-full ${xt(d).class}`,style:{width:`${d}%`}})}),b.jsx("span",{className:"text-sm text-gray-500",children:d?`${d.toFixed(0)}%`:"No Data"})]})}),b.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:b.jsx("div",{className:"flex items-center gap-x-3",children:b.jsx("div",{children:b.jsx(fr,{to:`/${encodeURIComponent(l)}`,className:"flex items-center justify-center flex-shrink-0 font-medium text-gray-900 text-sm mb-1 hover:bg-gray-100 rounded-full h-6 w-6",children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5",children:b.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 j2=typeof document<"u"?j.useLayoutEffect:()=>{};function ple(e){const t=S.useRef(null);return j2(()=>{t.current=e},[e]),S.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},ji=e=>e&&"window"in e&&e.window===e?e:lu(e).defaultView||window;function hle(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 mle(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 C2(e){let t=null;return()=>(t==null&&(t=e()),t)}const vle=C2(function(){return mle(/^Mac/i)}),gle=C2(function(){return hle(/Android/i)});function yle(e){return e.mozInputSource===0&&e.isTrusted?!0:gle()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class xle{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 k2(e){let t=S.useRef({isFocused:!1,observer:null});j2(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=ple(r=>{e==null||e(r)});return S.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 xle("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 ble(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=S.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),i&&i(!1),!0},[r,i]),a=k2(o),l=S.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,_g=new Set,Ml=new Map,Xi=!1,Og=!1;const wle={Tab:!0,Escape:!0};function ix(e,t){for(let n of _g)n(e,t)}function Sle(e){return!(e.metaKey||!vle()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Xf(e){Xi=!0,Sle(e)&&(su="keyboard",ix("keyboard",e))}function en(e){su="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Xi=!0,ix("pointer",e))}function N2(e){yle(e)&&(Xi=!0,su="virtual")}function M2(e){e.target===window||e.target===document||(!Xi&&!Og&&(su="virtual",ix("virtual",e)),Xi=!1,Og=!1)}function I2(){Xi=!1,Og=!0}function Eg(e){if(typeof window>"u"||Ml.get(ji(e)))return;const t=ji(e),n=lu(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Xi=!0,r.apply(this,arguments)},n.addEventListener("keydown",Xf,!0),n.addEventListener("keyup",Xf,!0),n.addEventListener("click",N2,!0),t.addEventListener("focus",M2,!0),t.addEventListener("blur",I2,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",en,!0),n.addEventListener("pointermove",en,!0),n.addEventListener("pointerup",en,!0)):(n.addEventListener("mousedown",en,!0),n.addEventListener("mousemove",en,!0),n.addEventListener("mouseup",en,!0)),t.addEventListener("beforeunload",()=>{R2(e)},{once:!0}),Ml.set(t,{focus:r})}const R2=(e,t)=>{const n=ji(e),r=lu(e);t&&r.removeEventListener("DOMContentLoaded",t),Ml.has(n)&&(n.HTMLElement.prototype.focus=Ml.get(n).focus,r.removeEventListener("keydown",Xf,!0),r.removeEventListener("keyup",Xf,!0),r.removeEventListener("click",N2,!0),n.removeEventListener("focus",M2,!0),n.removeEventListener("blur",I2,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",en,!0),r.removeEventListener("pointermove",en,!0),r.removeEventListener("pointerup",en,!0)):(r.removeEventListener("mousedown",en,!0),r.removeEventListener("mousemove",en,!0),r.removeEventListener("mouseup",en,!0)),Ml.delete(n))};function _le(e){const t=lu(e);let n;return t.readyState!=="loading"?Eg(e):(n=()=>{Eg(e)},t.addEventListener("DOMContentLoaded",n)),()=>R2(e,n)}typeof document<"u"&&_le();function L2(){return su!=="pointer"}const Ole=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ele(e,t,n){var r;const i=typeof window<"u"?ji(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?ji(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?ji(n==null?void 0:n.target).HTMLElement:HTMLElement,l=typeof window<"u"?ji(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!Ole.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&&!wle[n.key])}function $le(e,t,n){Eg(),S.useEffect(()=>{let r=(i,o)=>{Ele(!!(n!=null&&n.isTextInput),i,o)&&e(L2())};return _g.add(r),()=>{_g.delete(r)}},t)}function Ple(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=S.useRef({isFocusWithin:!1}),a=S.useCallback(u=>{o.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,o]),l=k2(a),s=S.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 Yf=!1,Hh=0;function $g(){Yf=!0,setTimeout(()=>{Yf=!1},50)}function hO(e){e.pointerType==="touch"&&$g()}function Ale(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",hO):document.addEventListener("touchend",$g),Hh++,()=>{Hh--,!(Hh>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",hO):document.removeEventListener("touchend",$g))}}function ox(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,a]=S.useState(!1),l=S.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;S.useEffect(Ale,[]);let{hoverProps:s,triggerHoverEnd:u}=S.useMemo(()=>{let c=(p,m)=>{if(l.pointerType=m,i||m==="touch"||l.isHovered||!p.currentTarget.contains(p.target))return;l.isHovered=!0;let v=p.currentTarget;l.target=v,t&&t({type:"hoverstart",target:v,pointerType:m}),n&&n(!0),a(!0)},f=(p,m)=>{if(l.pointerType="",l.target=null,m==="touch"||!l.isHovered)return;l.isHovered=!1;let v=p.currentTarget;r&&r({type:"hoverend",target:v,pointerType:m}),n&&n(!1),a(!1)},d={};return typeof PointerEvent<"u"?(d.onPointerEnter=p=>{Yf&&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&&!Yf&&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 S.useEffect(()=>{i&&u({currentTarget:l.target},l.pointerType)},[i]),{hoverProps:s,isHovered:o}}function ax(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=S.useRef({isFocused:!1,isFocusVisible:t||L2()}),[o,a]=S.useState(!1),[l,s]=S.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=S.useCallback(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),c=S.useCallback(p=>{i.current.isFocused=p,a(p),u()},[u]);$le(p=>{i.current.isFocusVisible=p,u()},[],{isTextInput:n});let{focusProps:f}=ble({isDisabled:r,onFocusChange:c}),{focusWithinProps:d}=Ple({isDisabled:!r,onFocusWithinChange:c});return{isFocused:o,isFocusVisible:l,focusProps:r?d:f}}var Tle=Object.defineProperty,jle=(e,t,n)=>t in e?Tle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wh=(e,t,n)=>(jle(e,typeof t!="symbol"?t+"":t,n),n);let Cle=class{constructor(){Wh(this,"current",this.detect()),Wh(this,"handoffState","pending"),Wh(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"}},Li=new Cle;function io(e){return Li.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function D2(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Yn(){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 D2(()=>{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=Yn();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 uu(){let[e]=S.useState(Yn);return S.useEffect(()=>()=>e.dispose(),[e]),e}let De=(e,t)=>{Li.isServer?S.useEffect(e,t):S.useLayoutEffect(e,t)};function oo(e){let t=S.useRef(e);return De(()=>{t.current=e},[e]),t}let de=function(e){let t=oo(e);return j.useCallback((...n)=>t.current(...n),[t])};function kle(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 Nle(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function Mle({disabled:e=!1}={}){let t=S.useRef(null),[n,r]=S.useState(!1),i=uu(),o=de(()=>{t.current=null,r(!1),i.dispose()}),a=de(l=>{if(i.dispose(),t.current===null){t.current=l.currentTarget,r(!0);{let s=io(l.currentTarget);i.addEventListener(s,"pointerup",o,!1),i.addEventListener(s,"pointermove",u=>{if(t.current){let c=kle(u);r(Nle(c,t.current.getBoundingClientRect()))}},!1),i.addEventListener(s,"pointercancel",o,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:a,onPointerUp:o,onClick:o}}}let F2=S.createContext(void 0);function cu(){return S.useContext(F2)}function Ile({value:e,children:t}){return j.createElement(F2.Provider,{value:e},t)}function mO(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function za(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,za),r}var Pg=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Pg||{}),Rle=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Rle||{});function ut(){let e=Dle();return S.useCallback(t=>Lle({mergeRefs:e,...t}),[e])}function Lle({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:a,mergeRefs:l}){l=l??Fle;let s=B2(t,e);if(o)return Qu(s,n,r,a,l);let u=i??0;if(u&2){let{static:c=!1,...f}=s;if(c)return Qu(f,n,r,a,l)}if(u&1){let{unmount:c=!0,...f}=s;return za(c?0:1,{0(){return null},1(){return Qu({...f,hidden:!0,style:{display:"none"}},n,r,a,l)}})}return Qu(s,n,r,a,l)}function Qu(e,t={},n,r,i){let{as:o=n,children:a,refName:l="ref",...s}=Vh(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[m,v]of Object.entries(t))typeof v=="boolean"&&(d=!0),v===!0&&p.push(m.replace(/([A-Z])/g,y=>`-${y.toLowerCase()}`));if(d){f["data-headlessui-state"]=p.join(" ");for(let m of p)f[`data-${m}`]=""}}if(o===S.Fragment&&(Object.keys(Si(s)).length>0||Object.keys(Si(f)).length>0))if(!S.isValidElement(c)||Array.isArray(c)&&c.length>1){if(Object.keys(Si(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(Si(s)).concat(Object.keys(Si(f))).map(d=>` - ${d}`).join(`
243
+ */var Coe=["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])"],bg=Coe.join(","),aj=typeof Element>"u",Is=aj?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Vf=!aj&&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},Kf=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},koe=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},Noe=function(t,n,r){if(Kf(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(bg));return n&&Is.call(t,bg)&&i.unshift(t),i=i.filter(r),i},Moe=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if(!Kf(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=Is.call(a,bg);c&&r.filter(a)&&(n||!t.includes(a))&&i.push(a);var f=a.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(a),d=!Kf(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},lj=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},sj=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||koe(t))&&!lj(t)?0:t.tabIndex},Ioe=function(t,n){var r=sj(t);return r<0&&n&&!lj(t)?0:r},Roe=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},uj=function(t){return t.tagName==="INPUT"},Loe=function(t){return uj(t)&&t.type==="hidden"},Doe=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},Foe=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},Boe=function(t){if(!t.name)return!0;var n=t.form||Vf(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=Foe(i,t.form);return!o||o===t},zoe=function(t){return uj(t)&&t.type==="radio"},Uoe=function(t){return zoe(t)&&!Boe(t)},Hoe=function(t){var n,r=t&&Vf(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=Vf(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},YS=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},Woe=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=Is.call(t,"details>summary:first-of-type"),a=o?t.parentElement:t;if(Is.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=Vf(t);if(s&&!s.shadowRoot&&i(s)===!0)return YS(t);t.assignedSlot?t=t.assignedSlot:!s&&u!==t.ownerDocument?t=u.host:t=s}t=l}if(Hoe(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return YS(t);return!1},Voe=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 Is.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},Koe=function(t,n){return!(n.disabled||Kf(n)||Loe(n)||Woe(n,t)||Doe(n)||Voe(n))},QS=function(t,n){return!(Uoe(n)||sj(n)<0||!Koe(t,n))},qoe=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Goe=function e(t){var n=[],r=[];return t.forEach(function(i,o){var a=!!i.scopeParent,l=a?i.scopeParent:i,s=Ioe(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(Roe).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(n)},cj=function(t,n){n=n||{};var r;return n.getShadowRoot?r=Moe([t],n.includeContainer,{filter:QS.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:qoe}):r=Noe(t,n.includeContainer,QS.bind(null,n)),Goe(r)};function ZS(e,t,n){let{reference:r,floating:i}=e;const o=Ki(t),a=ij(t),l=rj(a),s=Kn(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(Hn(t)){case"start":p[a]-=d*(n&&u?-1:1);break;case"end":p[a]+=d*(n&&u?-1:1);break}return p}const Xoe=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}=ZS(u,r,s),d=r,p={},m=0;for(let v=0;v<l.length;v++){const{name:y,fn:h}=l[v],{x:g,y:x,data:E,reset:w}=await h({x:c,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});c=g??c,f=x??f,p={...p,[y]:{...p[y],...E}},w&&m<=50&&(m++,typeof w=="object"&&(w.placement&&(d=w.placement),w.rects&&(u=w.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:c,y:f}=ZS(u,d,s)),v=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:p}};async function iu(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}=ro(t,e),m=joe(p),y=l[d?f==="floating"?"reference":"floating":f],h=Wf(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(y)))==null||n?y:y.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:s})),g=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},w=Wf(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:g,offsetParent:x,strategy:s}):g);return{top:(h.top-w.top+m.top)/E.y,bottom:(w.bottom-h.bottom+m.bottom)/E.y,left:(h.left-w.left+m.left)/E.x,right:(w.right-h.right+m.right)/E.x}}function Yoe(e,t,n){return(e?[...n.filter(i=>Hn(i)===e),...n.filter(i=>Hn(i)!==e)]:n.filter(i=>Kn(i)===i)).filter(i=>e?Hn(i)===e||(t?Uf(i)!==i:!1):!0)}const Qoe=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=GS,autoAlignment:p=!0,...m}=ro(e,t),v=f!==void 0||d===GS?Yoe(f||null,p,d):d,y=await iu(t,m),h=((n=a.autoPlacement)==null?void 0:n.index)||0,g=v[h];if(g==null)return{};const x=oj(g,o,await(s.isRTL==null?void 0:s.isRTL(u.floating)));if(l!==g)return{reset:{placement:v[0]}};const E=[y[Kn(g)],y[x[0]],y[x[1]]],w=[...((r=a.autoPlacement)==null?void 0:r.overflows)||[],{placement:g,overflows:E}],S=v[h+1];if(S)return{data:{index:h+1,overflows:w},reset:{placement:S}};const O=w.map(C=>{const T=Hn(C.placement);return[C.placement,T&&c?C.overflows.slice(0,2).reduce((N,R)=>N+R,0):C.overflows[0],C.overflows]}).sort((C,T)=>C[1]-T[1]),A=((i=O.filter(C=>C[2].slice(0,Hn(C[0])?2:3).every(T=>T<=0))[0])==null?void 0:i[0])||O[0][0];return A!==l?{data:{index:h+1,overflows:w},reset:{placement:A}}:{}}}},Zoe=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:m="none",flipAlignment:v=!0,...y}=ro(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const h=Kn(i),g=Ki(l),x=Kn(l)===l,E=await(s.isRTL==null?void 0:s.isRTL(u.floating)),w=d||(x||!v?[Hf(l)]:$oe(l)),S=m!=="none";!d&&S&&w.push(...Aoe(l,v,m,E));const O=[l,...w],$=await iu(t,y),A=[];let C=((r=o.flip)==null?void 0:r.overflows)||[];if(c&&A.push($[h]),f){const D=oj(i,a,E);A.push($[D[0]],$[D[1]])}if(C=[...C,{placement:i,overflows:A}],!A.every(D=>D<=0)){var T,N;const D=(((T=o.flip)==null?void 0:T.index)||0)+1,M=O[D];if(M)return{data:{index:D,overflows:C},reset:{placement:M}};let L=(N=C.filter(I=>I.overflows[0]<=0).sort((I,P)=>I.overflows[1]-P.overflows[1])[0])==null?void 0:N.placement;if(!L)switch(p){case"bestFit":{var R;const I=(R=C.filter(P=>{if(S){const k=Ki(P.placement);return k===g||k==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(k=>k>0).reduce((k,F)=>k+F,0)]).sort((P,k)=>P[1]-k[1])[0])==null?void 0:R[0];I&&(L=I);break}case"initialPlacement":L=l;break}if(i!==L)return{reset:{placement:L}}}return{}}}};async function Joe(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Kn(n),l=Hn(n),s=Ki(n)==="y",u=["left","top"].includes(a)?-1:1,c=o&&s?-1:1,f=ro(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return l&&typeof m=="number"&&(p=l==="end"?m*-1:m),s?{x:p*c,y:d*u}:{x:d*u,y:p*c}}const eae=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 Joe(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}}}}},tae=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:y=>{let{x:h,y:g}=y;return{x:h,y:g}}},...s}=ro(e,t),u={x:n,y:r},c=await iu(t,s),f=Ki(Kn(i)),d=nj(f);let p=u[d],m=u[f];if(o){const y=d==="y"?"top":"left",h=d==="y"?"bottom":"right",g=p+c[y],x=p-c[h];p=XS(g,p,x)}if(a){const y=f==="y"?"top":"left",h=f==="y"?"bottom":"right",g=m+c[y],x=m-c[h];m=XS(g,m,x)}const v=l.fn({...t,[d]:p,[f]:m});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[d]:o,[f]:a}}}}}},nae=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}=ro(e,t),c=await iu(t,u),f=Kn(i),d=Hn(i),p=Ki(i)==="y",{width:m,height:v}=o.floating;let y,h;f==="top"||f==="bottom"?(y=f,h=d===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(h=f,y=d==="end"?"top":"bottom");const g=v-c.top-c.bottom,x=m-c.left-c.right,E=Vi(v-c[y],g),w=Vi(m-c[h],x),S=!t.middlewareData.shift;let O=E,$=w;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&($=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(O=g),S&&!d){const C=ht(c.left,0),T=ht(c.right,0),N=ht(c.top,0),R=ht(c.bottom,0);p?$=m-2*(C!==0||T!==0?C+T:ht(c.left,c.right)):O=v-2*(N!==0||R!==0?N+R:ht(c.top,c.bottom))}await s({...t,availableWidth:$,availableHeight:O});const A=await a.getDimensions(l.floating);return m!==A.width||v!==A.height?{reset:{rects:!0}}:{}}}};function fj(e){const t=fn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ut(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=Ms(n)!==o||Ms(r)!==a;return l&&(n=o,r=a),{width:n,height:r,$:l}}function Y0(e){return fe(e)?e:e.contextElement}function Do(e){const t=Y0(e);if(!Ut(t))return Un(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=fj(t);let a=(o?Ms(n.width):n.width)/r,l=(o?Ms(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const rae=Un(0);function dj(e){const t=Mt(e);return!gp()||!t.visualViewport?rae:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function iae(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Mt(e)?!1:t}function qi(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=Y0(e);let a=Un(1);t&&(r?fe(r)&&(a=Do(r)):a=Do(e));const l=iae(o,n,r)?dj(o):Un(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=Mt(o),p=r&&fe(r)?Mt(r):r;let m=d,v=gg(m);for(;v&&r&&p!==m;){const y=Do(v),h=v.getBoundingClientRect(),g=fn(v),x=h.left+(v.clientLeft+parseFloat(g.paddingLeft))*y.x,E=h.top+(v.clientTop+parseFloat(g.paddingTop))*y.y;s*=y.x,u*=y.y,c*=y.x,f*=y.y,s+=x,u+=E,m=Mt(v),v=gg(m)}}return Wf({width:c,height:f,x:s,y:u})}function Q0(e,t){const n=yp(e).scrollLeft;return t?t.left+n:qi(Xn(e)).left+n}function pj(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Q0(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function oae(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=Xn(r),l=t?vp(t.floating):!1;if(r===a||l&&o)return n;let s={scrollLeft:0,scrollTop:0},u=Un(1);const c=Un(0),f=Ut(r);if((f||!f&&!o)&&((Da(r)!=="body"||ru(a))&&(s=yp(r)),Ut(r))){const p=qi(r);u=Do(r),c.x=p.x+r.clientLeft,c.y=p.y+r.clientTop}const d=a&&!f&&!o?pj(a,s,!0):Un(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 aae(e){return Array.from(e.getClientRects())}function lae(e){const t=Xn(e),n=yp(e),r=e.ownerDocument.body,i=ht(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=ht(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Q0(e);const l=-n.scrollTop;return fn(r).direction==="rtl"&&(a+=ht(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:l}}function sae(e,t){const n=Mt(e),r=Xn(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=gp();(!u||u&&t==="fixed")&&(l=i.offsetLeft,s=i.offsetTop)}return{width:o,height:a,x:l,y:s}}function uae(e,t){const n=qi(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Ut(e)?Do(e):Un(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 JS(e,t,n){let r;if(t==="viewport")r=sae(e,n);else if(t==="document")r=lae(Xn(e));else if(fe(t))r=uae(t,n);else{const i=dj(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Wf(r)}function hj(e,t){const n=$r(e);return n===t||!fe(n)||gr(n)?!1:fn(n).position==="fixed"||hj(n,t)}function cae(e,t){const n=t.get(e);if(n)return n;let r=Qr(e,[],!1).filter(l=>fe(l)&&Da(l)!=="body"),i=null;const o=fn(e).position==="fixed";let a=o?$r(e):e;for(;fe(a)&&!gr(a);){const l=fn(a),s=X0(a);!s&&l.position==="fixed"&&(i=null),(o?!s&&!i:!s&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||ru(a)&&!s&&hj(e,a))?r=r.filter(c=>c!==a):i=l,a=$r(a)}return t.set(e,r),r}function fae(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?vp(t)?[]:cae(t,this._c):[].concat(n),r],l=a[0],s=a.reduce((u,c)=>{const f=JS(t,c,i);return u.top=ht(f.top,u.top),u.right=Vi(f.right,u.right),u.bottom=Vi(f.bottom,u.bottom),u.left=ht(f.left,u.left),u},JS(t,l,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function dae(e){const{width:t,height:n}=fj(e);return{width:t,height:n}}function pae(e,t,n){const r=Ut(t),i=Xn(t),o=n==="fixed",a=qi(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const s=Un(0);if(r||!r&&!o)if((Da(t)!=="body"||ru(i))&&(l=yp(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=Q0(i));const u=i&&!r&&!o?pj(i,l):Un(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 Nh(e){return fn(e).position==="static"}function eE(e,t){if(!Ut(e)||fn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Xn(e)===n&&(n=n.ownerDocument.body),n}function mj(e,t){const n=Mt(e);if(vp(e))return n;if(!Ut(e)){let i=$r(e);for(;i&&!gr(i);){if(fe(i)&&!Nh(i))return i;i=$r(i)}return n}let r=eE(e,t);for(;r&&hoe(r)&&Nh(r);)r=eE(r,t);return r&&gr(r)&&Nh(r)&&!X0(r)?n:r||moe(e)||n}const hae=async function(e){const t=this.getOffsetParent||mj,n=this.getDimensions,r=await n(e.floating);return{reference:pae(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function mae(e){return fn(e).direction==="rtl"}const vae={convertOffsetParentRelativeRectToViewportRelativeRect:oae,getDocumentElement:Xn,getClippingRect:fae,getOffsetParent:mj,getElementRects:hae,getClientRects:aae,getDimensions:dae,getScale:Do,isElement:fe,isRTL:mae};function vj(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gae(e,t){let n=null,r;const i=Xn(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 m=Xu(f),v=Xu(i.clientWidth-(c+d)),y=Xu(i.clientHeight-(f+p)),h=Xu(c),x={rootMargin:-m+"px "+-v+"px "+-y+"px "+-h+"px",threshold:ht(0,Vi(1,s))||1};let E=!0;function w(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&&!vj(u,e.getBoundingClientRect())&&a(),E=!1}try{n=new IntersectionObserver(w,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(w,x)}n.observe(e)}return a(!0),o}function gj(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=Y0(e),c=i||o?[...u?Qr(u):[],...Qr(t)]:[];c.forEach(h=>{i&&h.addEventListener("scroll",n,{passive:!0}),o&&h.addEventListener("resize",n)});const f=u&&l?gae(u,n):null;let d=-1,p=null;a&&(p=new ResizeObserver(h=>{let[g]=h;g&&g.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 m,v=s?qi(e):null;s&&y();function y(){const h=qi(e);v&&!vj(v,h)&&n(),v=h,m=requestAnimationFrame(y)}return n(),()=>{var h;c.forEach(g=>{i&&g.removeEventListener("scroll",n),o&&g.removeEventListener("resize",n)}),f==null||f(),(h=p)==null||h.disconnect(),p=null,s&&cancelAnimationFrame(m)}}const Mh=iu,yae=eae,xae=Qoe,bae=tae,wae=Zoe,_ae=nae,Sae=(e,t,n)=>{const r=new Map,i={platform:vae,...n},o={...i.platform,_c:r};return Xoe(e,t,{...i,platform:o})};var mc=typeof document<"u"?_.useLayoutEffect:_.useEffect;function qf(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(!qf(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)&&!qf(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function yj(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function tE(e,t){const n=yj(e);return Math.round(t*n)/n}function Ih(e){const t=_.useRef(e);return mc(()=>{t.current=e}),t}function xj(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]=_.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=_.useState(r);qf(d,r)||p(r);const[m,v]=_.useState(null),[y,h]=_.useState(null),g=_.useCallback(P=>{P!==S.current&&(S.current=P,v(P))},[]),x=_.useCallback(P=>{P!==O.current&&(O.current=P,h(P))},[]),E=o||m,w=a||y,S=_.useRef(null),O=_.useRef(null),$=_.useRef(c),A=s!=null,C=Ih(s),T=Ih(i),N=Ih(u),R=_.useCallback(()=>{if(!S.current||!O.current)return;const P={placement:t,strategy:n,middleware:d};T.current&&(P.platform=T.current),Sae(S.current,O.current,P).then(k=>{const F={...k,isPositioned:N.current!==!1};D.current&&!qf($.current,F)&&($.current=F,Bt.flushSync(()=>{f(F)}))})},[d,t,n,T,N]);mc(()=>{u===!1&&$.current.isPositioned&&($.current.isPositioned=!1,f(P=>({...P,isPositioned:!1})))},[u]);const D=_.useRef(!1);mc(()=>(D.current=!0,()=>{D.current=!1}),[]),mc(()=>{if(E&&(S.current=E),w&&(O.current=w),E&&w){if(C.current)return C.current(E,w,R);R()}},[E,w,R,C,A]);const M=_.useMemo(()=>({reference:S,floating:O,setReference:g,setFloating:x}),[g,x]),L=_.useMemo(()=>({reference:E,floating:w}),[E,w]),I=_.useMemo(()=>{const P={position:n,left:0,top:0};if(!L.floating)return P;const k=tE(L.floating,c.x),F=tE(L.floating,c.y);return l?{...P,transform:"translate("+k+"px, "+F+"px)",...yj(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:k,top:F}},[n,l,L.floating,c.x,c.y]);return _.useMemo(()=>({...c,update:R,refs:M,elements:L,floatingStyles:I}),[c,R,M,L,I])}const Z0=(e,t)=>({...yae(e),options:[e,t]}),bj=(e,t)=>({...bae(e),options:[e,t]}),Eae=(e,t)=>({...wae(e),options:[e,t]}),Oae=(e,t)=>({..._ae(e),options:[e,t]}),$ae=(e,t)=>({...xae(e),options:[e,t]}),wj={...xc},Pae=wj.useInsertionEffect,Aae=Pae||(e=>e());function ir(e){const t=_.useRef(()=>{});return Aae(()=>{t.current=e}),_.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 Wn=typeof document<"u"?_.useLayoutEffect:_.useEffect;let nE=!1,Tae=0;const rE=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Tae++;function jae(){const[e,t]=_.useState(()=>nE?rE():void 0);return Wn(()=>{e==null&&t(rE())},[]),_.useEffect(()=>{nE=!0},[]),e}const Cae=wj.useId,J0=Cae||jae;function kae(){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 Nae=_.createContext(null),Mae=_.createContext(null),ex=()=>{var e;return((e=_.useContext(Nae))==null?void 0:e.id)||null},tx=()=>_.useContext(Mae);function ou(e){return"data-floating-ui-"+e}function Rh(e){const t=_.useRef(e);return Wn(()=>{t.current=e}),t}const iE=ou("safe-polygon");function Lh(e,t,n){return n&&!xg(n)?0:typeof e=="number"?e:e==null?void 0:e[t]}function Iae(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=tx(),m=ex(),v=Rh(u),y=Rh(s),h=Rh(n),g=_.useRef(),x=_.useRef(-1),E=_.useRef(),w=_.useRef(-1),S=_.useRef(!0),O=_.useRef(!1),$=_.useRef(()=>{}),A=_.useRef(!1),C=_.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]);_.useEffect(()=>{if(!l)return;function I(P){let{open:k}=P;k||(clearTimeout(x.current),clearTimeout(w.current),S.current=!0,A.current=!1)}return o.on("openchange",I),()=>{o.off("openchange",I)}},[l,o]),_.useEffect(()=>{if(!l||!v.current||!n)return;function I(k){C()&&r(!1,k,"hover")}const P=Br(a.floating).documentElement;return P.addEventListener("mouseleave",I),()=>{P.removeEventListener("mouseleave",I)}},[a.floating,n,r,l,v,C]);const T=_.useCallback(function(I,P,k){P===void 0&&(P=!0),k===void 0&&(k="hover");const F=Lh(y.current,"close",g.current);F&&!E.current?(clearTimeout(x.current),x.current=window.setTimeout(()=>r(!1,I,k),F)):P&&(clearTimeout(x.current),r(!1,I,k))},[y,r]),N=ir(()=>{$.current(),E.current=void 0}),R=ir(()=>{if(O.current){const I=Br(a.floating).body;I.style.pointerEvents="",I.removeAttribute(iE),O.current=!1}}),D=ir(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);_.useEffect(()=>{if(!l)return;function I(B){if(clearTimeout(x.current),S.current=!1,c&&!xg(g.current)||f>0&&!Lh(y.current,"open"))return;const U=Lh(y.current,"open",g.current);U?x.current=window.setTimeout(()=>{h.current||r(!0,B,"hover")},U):n||r(!0,B,"hover")}function P(B){if(D())return;$.current();const U=Br(a.floating);if(clearTimeout(w.current),A.current=!1,v.current&&i.current.floatingContext){n||clearTimeout(x.current),E.current=v.current({...i.current.floatingContext,tree:p,x:B.clientX,y:B.clientY,onClose(){R(),N(),D()||T(B,!0,"safe-polygon")}});const ne=E.current;U.addEventListener("mousemove",ne),$.current=()=>{U.removeEventListener("mousemove",ne)};return}(g.current==="touch"?!va(a.floating,B.relatedTarget):!0)&&T(B)}function k(B){D()||i.current.floatingContext&&(v.current==null||v.current({...i.current.floatingContext,tree:p,x:B.clientX,y:B.clientY,onClose(){R(),N(),D()||T(B)}})(B))}if(fe(a.domReference)){var F;const B=a.domReference;return n&&B.addEventListener("mouseleave",k),(F=a.floating)==null||F.addEventListener("mouseleave",k),d&&B.addEventListener("mousemove",I,{once:!0}),B.addEventListener("mouseenter",I),B.addEventListener("mouseleave",P),()=>{var U;n&&B.removeEventListener("mouseleave",k),(U=a.floating)==null||U.removeEventListener("mouseleave",k),d&&B.removeEventListener("mousemove",I),B.removeEventListener("mouseenter",I),B.removeEventListener("mouseleave",P)}}},[a,l,e,c,f,d,T,N,R,r,n,h,p,y,v,i,D]),Wn(()=>{var I;if(l&&n&&(I=v.current)!=null&&I.__options.blockPointerEvents&&C()){O.current=!0;const k=a.floating;if(fe(a.domReference)&&k){var P;const F=Br(a.floating).body;F.setAttribute(iE,"");const B=a.domReference,U=p==null||(P=p.nodesRef.current.find(X=>X.id===m))==null||(P=P.context)==null?void 0:P.elements.floating;return U&&(U.style.pointerEvents=""),F.style.pointerEvents="none",B.style.pointerEvents="auto",k.style.pointerEvents="auto",()=>{F.style.pointerEvents="",B.style.pointerEvents="",k.style.pointerEvents=""}}}},[l,n,m,a,p,v,C]),Wn(()=>{n||(g.current=void 0,A.current=!1,N(),R())},[n,N,R]),_.useEffect(()=>()=>{N(),clearTimeout(x.current),clearTimeout(w.current),R()},[l,a.domReference,N,R]);const M=_.useMemo(()=>{function I(P){g.current=P.pointerType}return{onPointerDown:I,onPointerEnter:I,onMouseMove(P){const{nativeEvent:k}=P;function F(){!S.current&&!h.current&&r(!0,k,"hover")}c&&!xg(g.current)||n||f===0||A.current&&P.movementX**2+P.movementY**2<2||(clearTimeout(w.current),g.current==="touch"?F():(A.current=!0,w.current=window.setTimeout(F,f)))}}},[c,r,n,h,f]),L=_.useMemo(()=>({onMouseEnter(){clearTimeout(x.current)},onMouseLeave(I){D()||T(I.nativeEvent,!1)}}),[T,D]);return _.useMemo(()=>l?{reference:M,floating:L}:{},[l,M,L])}function Dh(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 _j=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Sj(e,t){const n=cj(e,_j());t==="prev"&&n.reverse();const r=n.indexOf(yg(Br(e)));return n.slice(r+1)[0]}function Rae(){return Sj(document.body,"next")}function Lae(){return Sj(document.body,"prev")}function Fh(e,t){const n=t||e.currentTarget,r=e.relatedTarget;return!r||!va(n,r)}function Dae(e){cj(e,_j()).forEach(n=>{n.dataset.tabindex=n.getAttribute("tabindex")||"",n.setAttribute("tabindex","-1")})}function oE(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 Ej={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 Fae;function aE(e){e.key==="Tab"&&(e.target,clearTimeout(Fae))}const lE=_.forwardRef(function(t,n){const[r,i]=_.useState();Wn(()=>(tj()&&i("button"),document.addEventListener("keydown",aE),()=>{document.removeEventListener("keydown",aE)}),[]);const o={ref:n,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[ou("focus-guard")]:"",style:Ej};return b.jsx("span",{...t,...o})}),Oj=_.createContext(null),sE=ou("portal");function Bae(e){e===void 0&&(e={});const{id:t,root:n}=e,r=J0(),i=Uae(),[o,a]=_.useState(null),l=_.useRef(null);return Wn(()=>()=>{o==null||o.remove(),queueMicrotask(()=>{l.current=null})},[o]),Wn(()=>{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(sE,""),s.appendChild(u),l.current=u,a(u)},[t,r]),Wn(()=>{if(n===null||!r||l.current)return;let s=n||(i==null?void 0:i.portalNode);s&&!fe(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(sE,""),s=u||s,s.appendChild(c),l.current=c,a(c)},[t,n,r,i]),o}function zae(e){const{children:t,id:n,root:r,preserveTabOrder:i=!0}=e,o=Bae({id:n,root:r}),[a,l]=_.useState(null),s=_.useRef(null),u=_.useRef(null),c=_.useRef(null),f=_.useRef(null),d=a==null?void 0:a.modal,p=a==null?void 0:a.open,m=!!a&&!a.modal&&a.open&&i&&!!(r||o);return _.useEffect(()=>{if(!o||!i||d)return;function v(y){o&&Fh(y)&&(y.type==="focusin"?oE:Dae)(o)}return o.addEventListener("focusin",v,!0),o.addEventListener("focusout",v,!0),()=>{o.removeEventListener("focusin",v,!0),o.removeEventListener("focusout",v,!0)}},[o,i,d]),_.useEffect(()=>{o&&(p||oE(o))},[p,o]),b.jsxs(Oj.Provider,{value:_.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:s,afterOutsideRef:u,beforeInsideRef:c,afterInsideRef:f,portalNode:o,setFocusManagerState:l}),[i,o]),children:[m&&o&&b.jsx(lE,{"data-type":"outside",ref:s,onFocus:v=>{if(Fh(v,o)){var y;(y=c.current)==null||y.focus()}else{const h=Lae()||(a==null?void 0:a.domReference);h==null||h.focus()}}}),m&&o&&b.jsx("span",{"aria-owns":o.id,style:Ej}),o&&Bt.createPortal(t,o),m&&o&&b.jsx(lE,{"data-type":"outside",ref:u,onFocus:v=>{if(Fh(v,o)){var y;(y=f.current)==null||y.focus()}else{const h=Rae()||(a==null?void 0:a.domReference);h==null||h.focus(),a!=null&&a.closeOnFocusOut&&(a==null||a.onOpenChange(!1,v.nativeEvent,"focus-out"))}}})]})}const Uae=()=>_.useContext(Oj),Hae="data-floating-ui-focusable",Wae={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Vae={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},uE=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:m}=t,v=tx(),y=ir(typeof s=="function"?s:()=>!1),h=typeof s=="function"?y:s,g=_.useRef(!1),x=_.useRef(!1),{escapeKey:E,outsidePress:w}=uE(p),{escapeKey:S,outsidePress:O}=uE(m),$=_.useRef(!1),A=ir(M=>{var L;if(!n||!a||!l||M.key!=="Escape"||$.current)return;const I=(L=o.current.floatingContext)==null?void 0:L.nodeId,P=v?Dh(v.nodesRef.current,I):[];if(!E&&(M.stopPropagation(),P.length>0)){let k=!0;if(P.forEach(F=>{var B;if((B=F.context)!=null&&B.open&&!F.context.dataRef.current.__escapeKeyBubbles){k=!1;return}}),!k)return}r(!1,xoe(M)?M.nativeEvent:M,"escape-key")}),C=ir(M=>{var L;const I=()=>{var P;A(M),(P=fo(M))==null||P.removeEventListener("keydown",I)};(L=fo(M))==null||L.addEventListener("keydown",I)}),T=ir(M=>{var L;const I=g.current;g.current=!1;const P=x.current;if(x.current=!1,u==="click"&&P||I||typeof h=="function"&&!h(M))return;const k=fo(M),F="["+ou("inert")+"]",B=Br(i.floating).querySelectorAll(F);let U=fe(k)?k:null;for(;U&&!gr(U);){const te=$r(U);if(gr(te)||!fe(te))break;U=te}if(B.length&&fe(k)&&!boe(k)&&!va(k,i.floating)&&Array.from(B).every(te=>!va(U,te)))return;if(Ut(k)&&D){const te=gr(k),ze=fn(k),Ue=/auto|scroll/,V=te||Ue.test(ze.overflowX),Q=te||Ue.test(ze.overflowY),Z=V&&k.clientWidth>0&&k.scrollWidth>k.clientWidth,H=Q&&k.clientHeight>0&&k.scrollHeight>k.clientHeight,Ae=ze.direction==="rtl",ie=H&&(Ae?M.offsetX<=k.offsetWidth-k.clientWidth:M.offsetX>k.clientWidth),Fe=Z&&M.offsetY>k.clientHeight;if(ie||Fe)return}const X=(L=o.current.floatingContext)==null?void 0:L.nodeId,ne=v&&Dh(v.nodesRef.current,X).some(te=>{var ze;return kh(M,(ze=te.context)==null?void 0:ze.elements.floating)});if(kh(M,i.floating)||kh(M,i.domReference)||ne)return;const ae=v?Dh(v.nodesRef.current,X):[];if(ae.length>0){let te=!0;if(ae.forEach(ze=>{var Ue;if((Ue=ze.context)!=null&&Ue.open&&!ze.context.dataRef.current.__outsidePressBubbles){te=!1;return}}),!te)return}r(!1,M,"outside-press")}),N=ir(M=>{var L;const I=()=>{var P;T(M),(P=fo(M))==null||P.removeEventListener(u,I)};(L=fo(M))==null||L.addEventListener(u,I)});_.useEffect(()=>{if(!n||!a)return;o.current.__escapeKeyBubbles=E,o.current.__outsidePressBubbles=w;let M=-1;function L(B){r(!1,B,"ancestor-scroll")}function I(){window.clearTimeout(M),$.current=!0}function P(){M=window.setTimeout(()=>{$.current=!1},gp()?5:0)}const k=Br(i.floating);l&&(k.addEventListener("keydown",S?C:A,S),k.addEventListener("compositionstart",I),k.addEventListener("compositionend",P)),h&&k.addEventListener(u,O?N:T,O);let F=[];return d&&(fe(i.domReference)&&(F=Qr(i.domReference)),fe(i.floating)&&(F=F.concat(Qr(i.floating))),!fe(i.reference)&&i.reference&&i.reference.contextElement&&(F=F.concat(Qr(i.reference.contextElement)))),F=F.filter(B=>{var U;return B!==((U=k.defaultView)==null?void 0:U.visualViewport)}),F.forEach(B=>{B.addEventListener("scroll",L,{passive:!0})}),()=>{l&&(k.removeEventListener("keydown",S?C:A,S),k.removeEventListener("compositionstart",I),k.removeEventListener("compositionend",P)),h&&k.removeEventListener(u,O?N:T,O),F.forEach(B=>{B.removeEventListener("scroll",L)}),window.clearTimeout(M)}},[o,i,l,h,u,n,r,d,a,E,w,A,S,C,T,O,N]),_.useEffect(()=>{g.current=!1},[h,u]);const R=_.useMemo(()=>({onKeyDown:A,...c&&{[Wae[f]]:M=>{r(!1,M.nativeEvent,"reference-press")},...f!=="click"&&{onClick(M){r(!1,M.nativeEvent,"reference-press")}}}}),[A,r,c,f]),D=_.useMemo(()=>({onKeyDown:A,onMouseDown(){x.current=!0},onMouseUp(){x.current=!0},[Vae[u]]:()=>{g.current=!0}}),[A,u]);return _.useMemo(()=>a?{reference:R,floating:D}:{},[a,R,D])}function qae(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=J0(),o=_.useRef({}),[a]=_.useState(()=>kae()),l=ex()!=null,[s,u]=_.useState(r.reference),c=ir((p,m,v)=>{o.current.openEvent=p?m:void 0,a.emit("openchange",{open:p,event:m,reason:v,nested:l}),n==null||n(p,m,v)}),f=_.useMemo(()=>({setPositionReference:u}),[]),d=_.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return _.useMemo(()=>({dataRef:o,open:t,onOpenChange:c,elements:d,events:a,floatingId:i,refs:f}),[t,c,d,a,i,f])}function Gae(e){e===void 0&&(e={});const{nodeId:t}=e,n=qae({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=_.useState(null),[l,s]=_.useState(null),c=(i==null?void 0:i.domReference)||o,f=_.useRef(null),d=tx();Wn(()=>{c&&(f.current=c)},[c]);const p=xj({...e,elements:{...i,...l&&{reference:l}}}),m=_.useCallback(x=>{const E=fe(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),contextElement:x}:x;s(E),p.refs.setReference(E)},[p.refs]),v=_.useCallback(x=>{(fe(x)||x===null)&&(f.current=x,a(x)),(fe(p.refs.reference.current)||p.refs.reference.current===null||x!==null&&!fe(x))&&p.refs.setReference(x)},[p.refs]),y=_.useMemo(()=>({...p.refs,setReference:v,setPositionReference:m,domReference:f}),[p.refs,v,m]),h=_.useMemo(()=>({...p.elements,domReference:c}),[p.elements,c]),g=_.useMemo(()=>({...p,...r,refs:y,elements:h,nodeId:t}),[p,y,h,t,r]);return Wn(()=>{r.dataRef.current.floatingContext=g;const x=d==null?void 0:d.nodesRef.current.find(E=>E.id===t);x&&(x.context=g)}),_.useMemo(()=>({...p,context:g,refs:y,elements:h}),[p,y,h,g])}function Xae(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=_.useRef(!1),c=_.useRef(),f=_.useRef(!0);_.useEffect(()=>{if(!l)return;const p=Mt(a.domReference);function m(){!n&&Ut(a.domReference)&&a.domReference===yg(Br(a.domReference))&&(u.current=!0)}function v(){f.current=!0}return p.addEventListener("blur",m),p.addEventListener("keydown",v,!0),()=>{p.removeEventListener("blur",m),p.removeEventListener("keydown",v,!0)}},[a.domReference,n,l]),_.useEffect(()=>{if(!l)return;function p(m){let{reason:v}=m;(v==="reference-press"||v==="escape-key")&&(u.current=!0)}return i.on("openchange",p),()=>{i.off("openchange",p)}},[i,l]),_.useEffect(()=>()=>{clearTimeout(c.current)},[]);const d=_.useMemo(()=>({onPointerDown(p){voe(p.nativeEvent)||(f.current=!1)},onMouseLeave(){u.current=!1},onFocus(p){if(u.current)return;const m=fo(p.nativeEvent);if(s&&fe(m))try{if(tj()&&goe())throw Error();if(!m.matches(":focus-visible"))return}catch{if(!f.current&&!_oe(m))return}r(!0,p.nativeEvent,"focus")},onBlur(p){u.current=!1;const m=p.relatedTarget,v=p.nativeEvent,y=fe(m)&&m.hasAttribute(ou("focus-guard"))&&m.getAttribute("data-type")==="outside";c.current=window.setTimeout(()=>{var h;const g=yg(a.domReference?a.domReference.ownerDocument:document);!m&&g===a.domReference||va((h=o.current.floatingContext)==null?void 0:h.refs.floating.current,g)||va(a.domReference,g)||y||r(!1,v,"focus")})}}),[o,a.domReference,r,s]);return _.useMemo(()=>l?{reference:d}:{},[l,d])}const cE="active",fE="selected";function Bh(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[cE]:a,[fE]:l,...s}=e;o=s}return{...n==="floating"&&{tabIndex:-1,[Hae]:""},...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&&[cE,fE].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,m=new Array(p),v=0;v<p;v++)m[v]=arguments[v];return(d=r.get(u))==null?void 0:d.map(y=>y(...m)).find(y=>y!==void 0)}}}else a[u]=c}),a),{})}}function Yae(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=_.useCallback(l=>Bh(l,e,"reference"),t),o=_.useCallback(l=>Bh(l,e,"floating"),n),a=_.useCallback(l=>Bh(l,e,"item"),r);return _.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}const Qae=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Zae(e,t){var n;t===void 0&&(t={});const{open:r,floatingId:i}=e,{enabled:o=!0,role:a="dialog"}=t,l=(n=Qae.get(a))!=null?n:a,s=J0(),c=ex()!=null,f=_.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=_.useMemo(()=>{const m={id:i,...l&&{role:l}};return l==="tooltip"||a==="label"?m:{...m,...l==="menu"&&{"aria-labelledby":s}}},[l,i,s,a]),p=_.useCallback(m=>{let{active:v,selected:y}=m;const h={role:"option",...v&&{id:i+"-option"}};switch(a){case"select":return{...h,"aria-selected":v&&y};case"combobox":return{...h,...v&&{"aria-selected":!0}}}return{}},[i,a]);return _.useMemo(()=>o?{reference:f,floating:d,item:p}:{},[o,f,d,p])}const au=({width:e="max-w-56",className:t="bg-gray-700 text-white text-xs rounded p-2",children:n})=>{const[r,i]=_.useState(!1),{refs:o,floatingStyles:a,context:l}=Gae({open:r,onOpenChange:i,placement:"bottom",whileElementsMounted:gj,middleware:[Z0(5),$ae({fallbackAxisSideDirection:"start"}),bj()]}),s=Iae(l,{move:!1}),u=Xae(l),c=Kae(l),f=Zae(l,{role:"tooltip"}),{getReferenceProps:d,getFloatingProps:p}=Yae([s,u,c,f]),m=j.Children.toArray(n).find(y=>y.type===Fa),v=j.Children.toArray(n).find(y=>y.type===Ba);return b.jsxs(b.Fragment,{children:[m&&b.jsx("div",{ref:o.setReference,...d(),className:"relative",children:_.cloneElement(m,{ref:o.setReference})}),b.jsx(zae,{children:r&&v&&b.jsx("div",{className:`${e} ${t}`,ref:o.setFloating,style:a,...p(),children:v})})]})},Fa=_.forwardRef(({children:e,...t},n)=>b.jsx("button",{ref:n,...t,children:e})),Ba=({children:e,...t})=>b.jsx("div",{...t,children:e}),Jae=({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=ma(a);i[l]++}return i},{xs:0,s:0,m:0,l:0,xl:0}),{minimum_thresholds:n}=Ji.project.documentation_site.size_percentile,r=Object.entries(t).map(([i,o],a)=>({name:i,value:o,fill:[Mn(n.xs).hex,Mn(n.s).hex,Mn(n.m).hex,Mn(n.l).hex,Mn(n.xl).hex][a]})).filter(({value:i})=>i>0);return b.jsxs("div",{className:"flex flex-col gap-6",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[b.jsx("div",{className:"flex-shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:b.jsx(vP,{className:"size-5"})}),b.jsx("span",{className:"flex pl-2",children:"Feature Size"})]}),b.jsxs(au,{width:"w-72",children:[b.jsx(Fa,{children:b.jsx(oi,{className:"size-4 text-gray-400"})}),b.jsx(Ba,{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."})]})]}),b.jsxs("div",{className:"flex items-center gap-4",children:[b.jsx("div",{className:"relative h-28 w-28",children:b.jsx(Na,{width:"100%",height:"100%",children:b.jsx(tu,{children:b.jsx(Kt,{data:r,dataKey:"value",nameKey:"name",innerRadius:"70%",outerRadius:"100%",paddingAngle:2})})})}),b.jsxs("ul",{className:"flex flex-col flex-1 gap-y-1",children:[b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${Mn(n.xs).class}`,children:b.jsx("span",{className:"font-semibold text-white text-xs",children:t.xs})}),b.jsx("p",{className:"text-xs text-gray-500",children:"X-Small Features"})]}),b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${Mn(n.s).class}`,children:b.jsx("span",{className:"font-semibold text-white text-xs",children:t.s})}),b.jsx("p",{className:"text-xs text-gray-500",children:"Small Features"})]}),b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${Mn(n.m).class}`,children:b.jsx("span",{className:"font-semibold text-white text-xs",children:t.m})}),b.jsx("p",{className:"text-xs text-gray-500",children:"Medium Features"})]}),b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${Mn(n.l).class}`,children:b.jsx("span",{className:"font-semibold text-white text-xs",children:t.l})}),b.jsx("p",{className:"text-xs text-gray-500",children:"Large Features"})]}),b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${Mn(n.xl).class}`,children:b.jsx("span",{className:"font-semibold text-white text-xs",children:t.xl})}),b.jsx("p",{className:"text-xs text-gray-500",children:"X-Large Features"})]})]})]})]})},et={needsAttention:50,needsImprovement:80,healthy:100},bt=e=>e?e<=et.needsAttention?{hex:"#ef4444",class:"bg-red-500"}:e<=et.needsImprovement?{hex:"#eab308",class:"bg-yellow-500"}:{hex:"#22c55e",class:"bg-green-500"}:{hex:"transparent",class:"bg-transparent"},$j=e=>e<et.needsAttention?"needsAttention":e<et.needsImprovement?"needsImprovement":"healthy",Pj=e=>e?e<et.needsAttention?"bg-red-100/60":e<et.needsImprovement?"bg-yellow-100/60":"bg-green-100/60":"bg-gray-100",ele=({features:e})=>{const t=Object.values(e).reduce((r,i)=>{const o=i.additional_metrics.health.overall||0;if(o!=null){const a=$j(o);r[a]++}return r},{needsAttention:0,needsImprovement:0,healthy:0}),n=Object.entries(t).map(([r,i],o)=>({name:r,value:i,fill:[bt(et.needsAttention).hex,bt(et.needsImprovement).hex,bt(et.healthy).hex][o]})).filter(({value:r})=>r>0);return b.jsxs("div",{className:"flex flex-col gap-6",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[b.jsx("div",{className:"flex-shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:b.jsx(Ry,{className:"size-5"})}),b.jsx("span",{className:"flex pl-2",children:"Health Score"})]}),b.jsxs(au,{children:[b.jsx(Fa,{children:b.jsx(oi,{className:"size-4 text-gray-400"})}),b.jsx(Ba,{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`."})]})]}),b.jsxs("div",{className:"flex items-center gap-4",children:[b.jsx("div",{className:"relative h-28 w-28",children:b.jsx(Na,{width:"100%",height:"100%",children:b.jsx(tu,{children:b.jsx(Kt,{data:n,dataKey:"value",nameKey:"name",innerRadius:"70%",outerRadius:"100%",paddingAngle:2})})})}),b.jsxs("ul",{className:"flex flex-col flex-1 gap-y-1",children:[b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${bt(et.needsAttention).class}`,children:b.jsx("span",{className:"font-semibold text-white text-xs",children:t.needsAttention})}),b.jsxs("p",{className:"text-xs text-gray-500",children:[b.jsx("span",{className:"lg:hidden xl:inline-block",children:"Features"})," need attention"]})]}),b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${bt(et.needsImprovement).class}`,children:b.jsx("span",{className:"font-semibold text-white text-xs",children:t.needsImprovement})}),b.jsxs("p",{className:"text-xs text-gray-500",children:[b.jsx("span",{className:"lg:hidden xl:inline-block",children:"Features"})," need improvement"]})]}),b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${bt(et.healthy).class}`,children:b.jsx("span",{className:"font-semibold text-white text-xs",children:t.healthy})}),b.jsx("p",{className:"text-xs text-gray-500",children:"Healthy Features"})]})]})]})]})},tle=({features:e})=>{const t=Object.values(e).reduce((i,o)=>{const a=o.additional_metrics.test_coverage.score||0;if(a!=null){const l=Y2(a);i[l]++}return i},{poor:0,fair:0,good:0}),{minimum_thresholds:n}=Ji.project.documentation_site.test_coverage,r=Object.entries(t).map(([i,o],a)=>({name:i,value:o,fill:[xt(n.poor).hex,xt(n.fair).hex,xt(n.good).hex][a]})).filter(({value:i})=>i>0);return b.jsxs("div",{className:"flex flex-col gap-6",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[b.jsx("div",{className:"flex-shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:b.jsx(Iy,{className:"size-5"})}),b.jsx("span",{className:"flex pl-2",children:"Test Coverage"})]}),b.jsxs(au,{children:[b.jsx(Fa,{children:b.jsx(oi,{className:"size-4 text-gray-400"})}),b.jsx(Ba,{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`."})]})]}),b.jsxs("div",{className:"flex items-center gap-4",children:[b.jsx("div",{className:"relative h-28 w-28",children:b.jsx(Na,{width:"100%",height:"100%",children:b.jsx(tu,{children:b.jsx(Kt,{data:r,dataKey:"value",nameKey:"name",innerRadius:"70%",outerRadius:"100%",paddingAngle:2})})})}),b.jsxs("ul",{className:"flex flex-col flex-1 gap-y-1",children:[b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${xt(n.poor).class}`,children:b.jsx("span",{className:"font-semibold text-white text-xs",children:t.poor})}),b.jsx("p",{className:"text-xs text-gray-500",children:"Features with poor test coverage"})]}),b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${xt(n.fair).class}`,children:b.jsx("span",{className:"font-semibold text-white text-xs",children:t.fair})}),b.jsx("p",{className:"text-xs text-gray-500",children:"Features with acceptable test coverage"})]}),b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-5 flex items-center justify-center ${xt(n.good).class}`,children:b.jsx("span",{className:"font-semibold text-white text-xs",children:t.good})}),b.jsx("p",{className:"text-xs text-gray-500",children:"Features with great test coverage"})]})]})]})]})};function nle({features:e,searchTerm:t=""}){const[n,r]=_.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 y,h,g,x,E,w,S,O,$,A,C,T,N,R;const[c,f]=s,[d,p]=u;if(!n.key)return 0;let m,v;switch(n.key){case"team":const D=((y=f==null?void 0:f.assignments)==null?void 0:y.teams)||[],M=((h=p==null?void 0:p.assignments)==null?void 0:h.teams)||[];m=D[0]||"",v=M[0]||"";break;case"size":m=((x=(g=f==null?void 0:f.additional_metrics)==null?void 0:g.feature_size)==null?void 0:x.percent_of_max)||0,v=((w=(E=p==null?void 0:p.additional_metrics)==null?void 0:E.feature_size)==null?void 0:w.percent_of_max)||0;break;case"health_score":m=((O=(S=f==null?void 0:f.additional_metrics)==null?void 0:S.health)==null?void 0:O.overall)||0,v=((A=($=p==null?void 0:p.additional_metrics)==null?void 0:$.health)==null?void 0:A.overall)||0;break;case"test_coverage":m=((T=(C=f==null?void 0:f.additional_metrics)==null?void 0:C.test_coverage)==null?void 0:T.score)??-1,v=((R=(N=p==null?void 0:p.additional_metrics)==null?void 0:N.test_coverage)==null?void 0:R.score)??-1;break;default:m=c,v=d}return m<v?n.direction==="asc"?-1:1:m>v?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=""})=>b.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:b.jsxs("div",{className:"flex items-center gap-x-2 group cursor-pointer",children:[l,b.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:b.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 b.jsx("div",{className:"overflow-scroll shadow-sm border border-gray-200 rounded-lg relative",children:b.jsxs("table",{className:"min-w-full",children:[b.jsx("thead",{className:"bg-gray-50 border-b border-gray-200 sticky top-0",children:b.jsxs("tr",{children:[b.jsx(a,{title:"Feature",sortKey:"name"}),b.jsx(a,{title:"Team",sortKey:"team",hideOn:"hidden lg:table-cell"}),b.jsx(a,{title:"Size",sortKey:"size",hideOn:"hidden md:table-cell"}),b.jsx(a,{title:"Health Score",sortKey:"health_score",hideOn:"hidden lg:table-cell"}),b.jsx(a,{title:"Test Coverage",sortKey:"test_coverage",hideOn:"hidden md:table-cell"}),b.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider"})]})}),b.jsx("tbody",{className:"divide-y divide-gray-200 bg-white",children:i.map(([l,s])=>{var p,m,v,y,h,g;const u=((m=(p=s==null?void 0:s.additional_metrics)==null?void 0:p.feature_size)==null?void 0:m.percent_of_max)||0,c=ma(u),f=((y=(v=s==null?void 0:s.additional_metrics)==null?void 0:v.health)==null?void 0:y.overall)||0,d=((g=(h=s==null?void 0:s.additional_metrics)==null?void 0:h.test_coverage)==null?void 0:g.score)||0;return b.jsxs("tr",{children:[b.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:b.jsx("div",{className:"flex items-center gap-x-3",children:b.jsxs("div",{children:[b.jsx("p",{className:"font-medium text-gray-900 text-sm mb-1",children:l.length>2?l:s.name}),b.jsxs("div",{className:"flex items-center gap-1 lg:hidden",children:[b.jsx("p",{className:"text-sm lg:text-xs font-normal text-gray-500",children:"Team: "}),b.jsx("div",{className:"flex items-center gap-1",children:s.assignments.teams&&s.assignments.teams.map((x,E)=>b.jsxs(j.Fragment,{children:[b.jsx("span",{className:"text-sm lg:text-xs font-normal text-gray-500",children:x}),E<s.assignments.teams.length-1&&b.jsx("svg",{viewBox:"0 0 2 2",className:"size-1 fill-current text-gray-400",children:b.jsx("circle",{cx:"1",cy:"1",r:"1"})})]},x))})]})]})})}),b.jsx("td",{className:"hidden px-4 py-4 text-sm text-gray-500 lg:table-cell",children:b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(Ui,{className:"size-4 text-gray-500"}),zf(s.assignments.teams||[])]})}),b.jsx("td",{className:"hidden px-4 py-4 text-sm text-gray-500 md:table-cell",children:b.jsxs("div",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:"flex gap-1.5 items-center",children:[1,2,3,4,5].map(x=>b.jsx("div",{className:`h-5 w-1.5 rounded ${x<=Ns(u)?"bg-blue-500":"bg-gray-200"}`},x))}),b.jsx("span",{className:"text-xs text-gray-500 uppercase",children:c})]})}),b.jsx("td",{className:"hidden px-4 py-4 text-sm text-gray-500 lg:table-cell",children:b.jsxs("div",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`w-4 h-4 rounded-full flex items-center justify-center ${Pj(f)}`,children:b.jsx("div",{className:`w-2 h-2 rounded-full ${bt(f).class}`})}),b.jsxs("span",{className:"text-gray-600",children:[f.toFixed(0),"%"]})]})}),b.jsx("td",{className:"hidden px-4 py-4 text-sm md:table-cell",children:b.jsxs("div",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:"flex-grow h-2 rounded-full bg-gray-100 overflow-hidden",children:b.jsx("div",{className:`h-full rounded-full ${xt(d).class}`,style:{width:`${d}%`}})}),b.jsx("span",{className:"text-sm text-gray-500",children:d?`${d.toFixed(0)}%`:"No Data"})]})}),b.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:b.jsx("div",{className:"flex items-center gap-x-3",children:b.jsx("div",{children:b.jsx(fr,{to:`/${encodeURIComponent(l)}`,className:"flex items-center justify-center flex-shrink-0 font-medium text-gray-900 text-sm mb-1 hover:bg-gray-100 rounded-full h-6 w-6",children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5",children:b.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 Aj=typeof document<"u"?j.useLayoutEffect:()=>{};function rle(e){const t=_.useRef(null);return Aj(()=>{t.current=e},[e]),_.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},Ti=e=>e&&"window"in e&&e.window===e?e:lu(e).defaultView||window;function ile(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 ole(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 Tj(e){let t=null;return()=>(t==null&&(t=e()),t)}const ale=Tj(function(){return ole(/^Mac/i)}),lle=Tj(function(){return ile(/Android/i)});function sle(e){return e.mozInputSource===0&&e.isTrusted?!0:lle()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class ule{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 jj(e){let t=_.useRef({isFocused:!1,observer:null});Aj(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=rle(r=>{e==null||e(r)});return _.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 ule("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 cle(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=_.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),i&&i(!1),!0},[r,i]),a=jj(o),l=_.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,wg=new Set,Ml=new Map,Gi=!1,_g=!1;const fle={Tab:!0,Escape:!0};function nx(e,t){for(let n of wg)n(e,t)}function dle(e){return!(e.metaKey||!ale()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Gf(e){Gi=!0,dle(e)&&(su="keyboard",nx("keyboard",e))}function en(e){su="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Gi=!0,nx("pointer",e))}function Cj(e){sle(e)&&(Gi=!0,su="virtual")}function kj(e){e.target===window||e.target===document||(!Gi&&!_g&&(su="virtual",nx("virtual",e)),Gi=!1,_g=!1)}function Nj(){Gi=!1,_g=!0}function Sg(e){if(typeof window>"u"||Ml.get(Ti(e)))return;const t=Ti(e),n=lu(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Gi=!0,r.apply(this,arguments)},n.addEventListener("keydown",Gf,!0),n.addEventListener("keyup",Gf,!0),n.addEventListener("click",Cj,!0),t.addEventListener("focus",kj,!0),t.addEventListener("blur",Nj,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",en,!0),n.addEventListener("pointermove",en,!0),n.addEventListener("pointerup",en,!0)):(n.addEventListener("mousedown",en,!0),n.addEventListener("mousemove",en,!0),n.addEventListener("mouseup",en,!0)),t.addEventListener("beforeunload",()=>{Mj(e)},{once:!0}),Ml.set(t,{focus:r})}const Mj=(e,t)=>{const n=Ti(e),r=lu(e);t&&r.removeEventListener("DOMContentLoaded",t),Ml.has(n)&&(n.HTMLElement.prototype.focus=Ml.get(n).focus,r.removeEventListener("keydown",Gf,!0),r.removeEventListener("keyup",Gf,!0),r.removeEventListener("click",Cj,!0),n.removeEventListener("focus",kj,!0),n.removeEventListener("blur",Nj,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",en,!0),r.removeEventListener("pointermove",en,!0),r.removeEventListener("pointerup",en,!0)):(r.removeEventListener("mousedown",en,!0),r.removeEventListener("mousemove",en,!0),r.removeEventListener("mouseup",en,!0)),Ml.delete(n))};function ple(e){const t=lu(e);let n;return t.readyState!=="loading"?Sg(e):(n=()=>{Sg(e)},t.addEventListener("DOMContentLoaded",n)),()=>Mj(e,n)}typeof document<"u"&&ple();function Ij(){return su!=="pointer"}const hle=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function mle(e,t,n){var r;const i=typeof window<"u"?Ti(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?Ti(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?Ti(n==null?void 0:n.target).HTMLElement:HTMLElement,l=typeof window<"u"?Ti(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!hle.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&&!fle[n.key])}function vle(e,t,n){Sg(),_.useEffect(()=>{let r=(i,o)=>{mle(!!(n!=null&&n.isTextInput),i,o)&&e(Ij())};return wg.add(r),()=>{wg.delete(r)}},t)}function gle(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=_.useRef({isFocusWithin:!1}),a=_.useCallback(u=>{o.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,o]),l=jj(a),s=_.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 Xf=!1,zh=0;function Eg(){Xf=!0,setTimeout(()=>{Xf=!1},50)}function dE(e){e.pointerType==="touch"&&Eg()}function yle(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",dE):document.addEventListener("touchend",Eg),zh++,()=>{zh--,!(zh>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",dE):document.removeEventListener("touchend",Eg))}}function rx(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,a]=_.useState(!1),l=_.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;_.useEffect(yle,[]);let{hoverProps:s,triggerHoverEnd:u}=_.useMemo(()=>{let c=(p,m)=>{if(l.pointerType=m,i||m==="touch"||l.isHovered||!p.currentTarget.contains(p.target))return;l.isHovered=!0;let v=p.currentTarget;l.target=v,t&&t({type:"hoverstart",target:v,pointerType:m}),n&&n(!0),a(!0)},f=(p,m)=>{if(l.pointerType="",l.target=null,m==="touch"||!l.isHovered)return;l.isHovered=!1;let v=p.currentTarget;r&&r({type:"hoverend",target:v,pointerType:m}),n&&n(!1),a(!1)},d={};return typeof PointerEvent<"u"?(d.onPointerEnter=p=>{Xf&&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&&!Xf&&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 _.useEffect(()=>{i&&u({currentTarget:l.target},l.pointerType)},[i]),{hoverProps:s,isHovered:o}}function ix(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=_.useRef({isFocused:!1,isFocusVisible:t||Ij()}),[o,a]=_.useState(!1),[l,s]=_.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=_.useCallback(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),c=_.useCallback(p=>{i.current.isFocused=p,a(p),u()},[u]);vle(p=>{i.current.isFocusVisible=p,u()},[],{isTextInput:n});let{focusProps:f}=cle({isDisabled:r,onFocusChange:c}),{focusWithinProps:d}=gle({isDisabled:!r,onFocusWithinChange:c});return{isFocused:o,isFocusVisible:l,focusProps:r?d:f}}var xle=Object.defineProperty,ble=(e,t,n)=>t in e?xle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Uh=(e,t,n)=>(ble(e,typeof t!="symbol"?t+"":t,n),n);let wle=class{constructor(){Uh(this,"current",this.detect()),Uh(this,"handoffState","pending"),Uh(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"}},Ri=new wle;function io(e){return Ri.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function Rj(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Yn(){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 Rj(()=>{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=Yn();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 uu(){let[e]=_.useState(Yn);return _.useEffect(()=>()=>e.dispose(),[e]),e}let De=(e,t)=>{Ri.isServer?_.useEffect(e,t):_.useLayoutEffect(e,t)};function oo(e){let t=_.useRef(e);return De(()=>{t.current=e},[e]),t}let de=function(e){let t=oo(e);return j.useCallback((...n)=>t.current(...n),[t])};function _le(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 Sle(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function Ele({disabled:e=!1}={}){let t=_.useRef(null),[n,r]=_.useState(!1),i=uu(),o=de(()=>{t.current=null,r(!1),i.dispose()}),a=de(l=>{if(i.dispose(),t.current===null){t.current=l.currentTarget,r(!0);{let s=io(l.currentTarget);i.addEventListener(s,"pointerup",o,!1),i.addEventListener(s,"pointermove",u=>{if(t.current){let c=_le(u);r(Sle(c,t.current.getBoundingClientRect()))}},!1),i.addEventListener(s,"pointercancel",o,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:a,onPointerUp:o,onClick:o}}}let Lj=_.createContext(void 0);function cu(){return _.useContext(Lj)}function Ole({value:e,children:t}){return j.createElement(Lj.Provider,{value:e},t)}function pE(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function za(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,za),r}var Og=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Og||{}),$le=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))($le||{});function ut(){let e=Ale();return _.useCallback(t=>Ple({mergeRefs:e,...t}),[e])}function Ple({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:a,mergeRefs:l}){l=l??Tle;let s=Dj(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 za(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}=Hh(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[m,v]of Object.entries(t))typeof v=="boolean"&&(d=!0),v===!0&&p.push(m.replace(/([A-Z])/g,y=>`-${y.toLowerCase()}`));if(d){f["data-headlessui-state"]=p.join(" ");for(let m of p)f[`data-${m}`]=""}}if(o===_.Fragment&&(Object.keys(wi(s)).length>0||Object.keys(wi(f)).length>0))if(!_.isValidElement(c)||Array.isArray(c)&&c.length>1){if(Object.keys(wi(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(wi(s)).concat(Object.keys(wi(f))).map(d=>` - ${d}`).join(`
244
244
  `),"","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(`
245
245
  `)].join(`
246
- `))}else{let d=c.props,p=d==null?void 0:d.className,m=typeof p=="function"?(...h)=>mO(p(...h),s.className):mO(p,s.className),v=m?{className:m}:{},y=B2(c.props,Si(Vh(s,["ref"])));for(let h in f)h in y&&delete f[h];return S.cloneElement(c,Object.assign({},y,f,u,{ref:i(Ble(c),u.ref)},v))}return S.createElement(o,Object.assign({},Vh(s,["ref"]),o!==S.Fragment&&u,o!==S.Fragment&&f),c)}function Dle(){let e=S.useRef([]),t=S.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 B2(...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 bp(...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 ct(e){var t;return Object.assign(S.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Si(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Vh(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Ble(e){return j.version.split(".")[0]>="19"?e.props.ref:e.ref}function zle(e,t,n){let[r,i]=S.useState(n),o=e!==void 0,a=S.useRef(o),l=S.useRef(!1),s=S.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,de(u=>(o||i(u),t==null?void 0:t(u)))]}function Ule(e){let[t]=S.useState(e);return t}function z2(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))H2(n,U2(t,r),i);return n}function U2(e,t){return e?e+"["+t+"]":t}function H2(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())H2(e,U2(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,""]):z2(n,t,e)}function Hle(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 Wle="span";var wp=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(wp||{});function Vle(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 ut()({ourProps:o,theirProps:i,slot:{},defaultTag:Wle,name:"Hidden"})}let lx=ct(Vle),W2=S.createContext(null);function Kle(e){let[t,n]=S.useState(null);return j.createElement(W2.Provider,{value:{target:t}},e.children,j.createElement(lx,{features:wp.Hidden,ref:n}))}function qle({children:e}){let t=S.useContext(W2);if(!t)return j.createElement(j.Fragment,null,e);let{target:n}=t;return n?Bt.createPortal(j.createElement(j.Fragment,null,e),n):null}function Gle({data:e,form:t,disabled:n,onReset:r,overrides:i}){let[o,a]=S.useState(null),l=uu();return S.useEffect(()=>{if(r&&o)return l.addEventListener(o,"reset",r)},[o,t,r]),j.createElement(qle,null,j.createElement(Xle,{setForm:a,formId:t}),z2(e).map(([s,u])=>j.createElement(lx,{features:wp.Hidden,...Si({key:s,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:s,value:u,...i})})))}function Xle({setForm:e,formId:t}){return S.useEffect(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:j.createElement(lx,{features:wp.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let r=n.closest("form");r&&e(r)}})}let V2=S.createContext(void 0);function K2(){return S.useContext(V2)}function Yle({id:e,children:t}){return j.createElement(V2.Provider,{value:e},t)}function sx(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&&Qle(n)?!1:r}function Qle(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let q2=Symbol();function Zle(e,t=!0){return Object.assign(e,{[q2]:t})}function hn(...e){let t=S.useRef(e);S.useEffect(()=>{t.current=e},[e]);let n=de(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[q2]))?void 0:n}let Sp=S.createContext(null);Sp.displayName="DescriptionContext";function G2(){let e=S.useContext(Sp);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,G2),t}return e}function Jle(){var e,t;return(t=(e=S.useContext(Sp))==null?void 0:e.value)!=null?t:void 0}function _p(){let[e,t]=S.useState([]);return[e.length>0?e.join(" "):void 0,S.useMemo(()=>function(n){let r=de(o=>(t(a=>[...a,o]),()=>t(a=>{let l=a.slice(),s=l.indexOf(o);return s!==-1&&l.splice(s,1),l}))),i=S.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(Sp.Provider,{value:i},n.children)},[t])]}let ese="p";function tse(e,t){let n=S.useId(),r=cu(),{id:i=`headlessui-description-${n}`,...o}=e,a=G2(),l=hn(t);De(()=>a.register(i),[i,a.register]);let s=r||!1,u=S.useMemo(()=>({...a.slot,disabled:s}),[a.slot,s]),c={ref:l,...a.props,id:i};return ut()({ourProps:c,theirProps:o,slot:u,defaultTag:ese,name:a.name||"Description"})}let nse=ct(tse),rse=Object.assign(nse,{});var Ce=(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))(Ce||{});let Op=S.createContext(null);Op.displayName="LabelContext";function ux(){let e=S.useContext(Op);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,ux),t}return e}function X2(e){var t,n,r;let i=(n=(t=S.useContext(Op))==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=X2(),[n,r]=S.useState([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,S.useMemo(()=>function(o){let a=de(s=>(r(u=>[...u,s]),()=>r(u=>{let c=u.slice(),f=c.indexOf(s);return f!==-1&&c.splice(f,1),c}))),l=S.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(Op.Provider,{value:l},o.children)},[r])]}let ise="label";function ose(e,t){var n;let r=S.useId(),i=ux(),o=K2(),a=cu(),{id:l=`headlessui-label-${r}`,htmlFor:s=o??((n=i.props)==null?void 0:n.htmlFor),passive:u=!1,...c}=e,f=hn(t);De(()=>i.register(l),[l,i.register]);let d=de(y=>{let h=y.currentTarget;if(h instanceof HTMLLabelElement&&y.preventDefault(),i.props&&"onClick"in i.props&&typeof i.props.onClick=="function"&&i.props.onClick(y),h instanceof HTMLLabelElement){let g=document.getElementById(h.htmlFor);if(g){let x=g.getAttribute("disabled");if(x==="true"||x==="")return;let O=g.getAttribute("aria-disabled");if(O==="true"||O==="")return;(g instanceof HTMLInputElement&&(g.type==="radio"||g.type==="checkbox")||g.role==="radio"||g.role==="checkbox"||g.role==="switch")&&g.click(),g.focus({preventScroll:!0})}}}),p=a||!1,m=S.useMemo(()=>({...i.slot,disabled:p}),[i.slot,p]),v={ref:f,...i.props,id:l,htmlFor:s,onClick:d};return u&&("onClick"in v&&(delete v.htmlFor,delete v.onClick),"onClick"in c&&delete c.onClick),ut()({ourProps:v,theirProps:c,slot:m,defaultTag:s?ise:"div",name:i.name||"Label"})}let ase=ct(ose),lse=Object.assign(ase,{});function sse(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 use(e=sse){return S.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 cse(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function fse(e,t=!1){let[n,r]=S.useReducer(()=>({}),{}),i=S.useMemo(()=>cse(e),[e,n]);return De(()=>{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 dse=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 Y2(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 Q2(e){return S.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}let pse=new dse(()=>Y2(()=>[],{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 cx(e,t){let n=pse.get(t),r=S.useId(),i=Q2(n);if(De(()=>{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 Ag=new Map,Il=new Map;function vO(e){var t;let n=(t=Il.get(e))!=null?t:0;return Il.set(e,n+1),n!==0?()=>gO(e):(Ag.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>gO(e))}function gO(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=Ag.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,Ag.delete(e))}function hse(e,{allowed:t,disallowed:n}={}){let r=cx(e,"inert-others");De(()=>{var i,o;if(!r)return;let a=Yn();for(let s of(i=n==null?void 0:n())!=null?i:[])s&&a.add(vO(s));let l=(o=t==null?void 0:t())!=null?o:[];for(let s of l){if(!s)continue;let u=io(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(vO(f));c=c.parentElement}}return a.dispose},[r,t,n])}function mse(e,t,n){let r=oo(i=>{let o=i.getBoundingClientRect();o.x===0&&o.y===0&&o.width===0&&o.height===0&&n()});S.useEffect(()=>{if(!e)return;let i=t===null?null:t instanceof HTMLElement?t:t.current;if(!i)return;let o=Yn();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 Tg=["[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(","),vse=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Ci=(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))(Ci||{}),jg=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(jg||{}),gse=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(gse||{});function Z2(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Tg)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function yse(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(vse)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var fx=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(fx||{});function dx(e,t=0){var n;return e===((n=io(e))==null?void 0:n.body)?!1:za(t,{0(){return e.matches(Tg)},1(){let r=e;for(;r!==null;){if(r.matches(Tg))return!0;r=r.parentElement}return!1}})}function J2(e){let t=io(e);Yn().nextFrame(()=>{t&&!dx(t.activeElement,0)&&bse(e)})}var xse=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(xse||{});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 bse(e){e==null||e.focus({preventScroll:!0})}let wse=["textarea","input"].join(",");function Sse(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,wse))!=null?n:!1}function px(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 _se(e,t){return Cg(Z2(),t,{relativeTo:e})}function Cg(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?px(e):e:t&64?yse(e):Z2(e);i.length>0&&a.length>1&&(a=a.filter(p=>!i.some(m=>m!=null&&"current"in m?(m==null?void 0:m.current)===p:m===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&&Sse(d)&&d.select(),2}function eC(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Ose(){return/Android/gi.test(window.navigator.userAgent)}function Ese(){return eC()||Ose()}function ll(e,t,n,r){let i=oo(n);S.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 $se(e,t,n,r){let i=oo(n);S.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 yO=30;function Pse(e,t,n){let r=cx(e,"outside-click"),i=oo(n),o=S.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!dx(c,fx.Loose)&&c.tabIndex!==-1&&s.preventDefault(),i.current(s,c)},[i,t]),a=S.useRef(null);ll(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),ll(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),ll(r,"click",s=>{Ese()||a.current&&(o(s,()=>a.current),a.current=null)},!0);let l=S.useRef({x:0,y:0});ll(r,"touchstart",s=>{l.current.x=s.touches[0].clientX,l.current.y=s.touches[0].clientY},!0),ll(r,"touchend",s=>{let u={x:s.changedTouches[0].clientX,y:s.changedTouches[0].clientY};if(!(Math.abs(u.x-l.current.x)>=yO||Math.abs(u.y-l.current.y)>=yO))return o(s,()=>s.target instanceof HTMLElement?s.target:null)},!0),$se(r,"blur",s=>o(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function hx(...e){return S.useMemo(()=>io(...e),[...e])}function Ase(e,t){return S.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 Tse(){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 jse(){return eC()?{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=Yn();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 Cse(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function kse(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let ki=Y2(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Yn(),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:kse(n)},i=[jse(),Tse(),Cse()];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)}});ki.subscribe(()=>{let e=ki.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)&&ki.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&ki.dispatch("TEARDOWN",n)}});function Nse(e,t,n=()=>({containers:[]})){let r=Q2(ki),i=t?r.get(t):void 0,o=i?i.count>0:!1;return De(()=>{if(!(!t||!e))return ki.dispatch("PUSH",t,n),()=>ki.dispatch("POP",t,n)},[e,t]),o}function Mse(e,t,n=()=>[document.body]){let r=cx(e,"scroll-lock");Nse(r,t,i=>{var o;return{containers:[...(o=i.containers)!=null?o:[],n]}})}function xO(e){return[e.screenX,e.screenY]}function Ise(){let e=S.useRef([-1,-1]);return{wasMoved(t){let n=xO(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=xO(t)}}}function Rse(e=0){let[t,n]=S.useState(e),r=S.useCallback(s=>n(s),[t]),i=S.useCallback(s=>n(u=>u|s),[t]),o=S.useCallback(s=>(t&s)===s,[t]),a=S.useCallback(s=>n(u=>u&~s),[n]),l=S.useCallback(s=>n(u=>u^s),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:a,toggleFlag:l}}var Lse={},bO,wO;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((bO=process==null?void 0:Lse)==null?void 0:bO.NODE_ENV)==="test"&&typeof((wO=Element==null?void 0:Element.prototype)==null?void 0:wO.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(`
247
- `)),[]});var Dse=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(Dse||{});function Fse(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function Bse(e,t,n,r){let[i,o]=S.useState(n),{hasFlag:a,addFlag:l,removeFlag:s}=Rse(e&&i?3:0),u=S.useRef(!1),c=S.useRef(!1),f=uu();return De(()=>{var d;if(e){if(n&&o(!0),!t){n&&l(3);return}return(d=void 0)==null||d.call(r,n),zse(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=void 0)==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 zse(e,{prepare:t,run:n,done:r,inFlight:i}){let o=Yn();return Hse(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(Use(e,r))})}),o.dispose}function Use(e,t){var n,r;let i=Yn();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 Hse(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 Wse(e,{container:t,accept:n,walk:r}){let i=S.useRef(n),o=S.useRef(r);S.useEffect(()=>{i.current=n,o.current=r},[n,r]),De(()=>{if(!t||!e)return;let a=io(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 Vse(){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 tC={...bc},Kse=tC.useInsertionEffect,qse=Kse||(e=>e());function nC(e){const t=S.useRef(()=>{});return qse(()=>{t.current=e}),S.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 kg=typeof document<"u"?S.useLayoutEffect:S.useEffect;let SO=!1,Gse=0;const _O=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Gse++;function Xse(){const[e,t]=S.useState(()=>SO?_O():void 0);return kg(()=>{e==null&&t(_O())},[]),S.useEffect(()=>{SO=!0},[]),e}const Yse=tC.useId,Qse=Yse||Xse;function Zse(){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 Jse=S.createContext(null),eue=S.createContext(null),tue=()=>{var e;return((e=S.useContext(Jse))==null?void 0:e.id)||null},nue=()=>S.useContext(eue),rue="data-floating-ui-focusable";function iue(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Qse(),o=S.useRef({}),[a]=S.useState(()=>Zse()),l=tue()!=null,[s,u]=S.useState(r.reference),c=nC((p,m,v)=>{o.current.openEvent=p?m:void 0,a.emit("openchange",{open:p,event:m,reason:v,nested:l}),n==null||n(p,m,v)}),f=S.useMemo(()=>({setPositionReference:u}),[]),d=S.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return S.useMemo(()=>({dataRef:o,open:t,onOpenChange:c,elements:d,events:a,floatingId:i,refs:f}),[t,c,d,a,i,f])}function oue(e){e===void 0&&(e={});const{nodeId:t}=e,n=iue({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=S.useState(null),[l,s]=S.useState(null),c=(i==null?void 0:i.domReference)||o,f=S.useRef(null),d=nue();kg(()=>{c&&(f.current=c)},[c]);const p=w2({...e,elements:{...i,...l&&{reference:l}}}),m=S.useCallback(x=>{const O=fe(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),contextElement:x}:x;s(O),p.refs.setReference(O)},[p.refs]),v=S.useCallback(x=>{(fe(x)||x===null)&&(f.current=x,a(x)),(fe(p.refs.reference.current)||p.refs.reference.current===null||x!==null&&!fe(x))&&p.refs.setReference(x)},[p.refs]),y=S.useMemo(()=>({...p.refs,setReference:v,setPositionReference:m,domReference:f}),[p.refs,v,m]),h=S.useMemo(()=>({...p.elements,domReference:c}),[p.elements,c]),g=S.useMemo(()=>({...p,...r,refs:y,elements:h,nodeId:t}),[p,y,h,t,r]);return kg(()=>{r.dataRef.current.floatingContext=g;const x=d==null?void 0:d.nodesRef.current.find(O=>O.id===t);x&&(x.context=g)}),S.useMemo(()=>({...p,context:g,refs:y,elements:h}),[p,y,h,g])}const OO="active",EO="selected";function Kh(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[OO]:a,[EO]:l,...s}=e;o=s}return{...n==="floating"&&{tabIndex:-1,[rue]:""},...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&&[OO,EO].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,m=new Array(p),v=0;v<p;v++)m[v]=arguments[v];return(d=r.get(u))==null?void 0:d.map(y=>y(...m)).find(y=>y!==void 0)}}}else a[u]=c}),a),{})}}function aue(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=S.useCallback(l=>Kh(l,e,"reference"),t),o=S.useCallback(l=>Kh(l,e,"floating"),n),a=S.useCallback(l=>Kh(l,e,"item"),r);return S.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}function $O(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const lue=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}=ro(e,t),{rects:f,elements:{floating:d}}=t,p=n.current[a],m=(u==null?void 0:u.current)||d,v=d.clientTop||m.clientTop,y=d.clientTop!==0,h=m.clientTop!==0,g=d===m;if(!p)return{};const x={...t,...await ex(-p.offsetTop-d.clientTop-f.reference.height/2-p.offsetHeight/2-o).fn(t)},O=await Rh($O(x,m.scrollHeight+v+d.clientTop),c),w=await Rh(x,{...c,elementContext:"reference"}),_=ht(0,O.top),E=x.y+_,C=(m.scrollHeight>m.clientHeight?T=>T:Ms)(ht(0,m.scrollHeight+(y&&g||h?v*2:0)-_-ht(0,O.bottom)));if(m.style.maxHeight=C+"px",m.scrollTop=_,i){const T=m.offsetHeight<p.offsetHeight*Ki(l,n.current.length)-1||w.top>=-s||w.bottom>=-s;Bt.flushSync(()=>i(T))}return r&&(r.current=await Rh($O({...x,y:E},m.offsetHeight+v+d.clientTop),c)),{y:E}}});function sue(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:a,onChange:l}=t,s=nC(l),u=S.useRef(!1),c=S.useRef(null),f=S.useRef(null);S.useEffect(()=>{if(!i)return;function p(v){if(v.ctrlKey||!m||o.current==null)return;const y=v.deltaY,h=o.current.top>=-.5,g=o.current.bottom>=-.5,x=m.scrollHeight-m.clientHeight,O=y<0?-1:1,w=y<0?"max":"min";m.scrollHeight<=m.clientHeight||(!h&&y>0||!g&&y<0?(v.preventDefault(),Bt.flushSync(()=>{s(_=>_+Math[w](y,x*O))})):/firefox/i.test(Vse())&&(m.scrollTop+=y))}const m=(a==null?void 0:a.current)||r.floating;if(n&&m)return m.addEventListener("wheel",p),requestAnimationFrame(()=>{c.current=m.scrollTop,o.current!=null&&(f.current={...o.current})}),()=>{c.current=null,f.current=null,m.removeEventListener("wheel",p)}},[i,n,r.floating,o,a,s]);const d=S.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 m=p.scrollTop-c.current;(o.current.bottom<-.5&&m<-1||o.current.top<-.5&&m>1)&&Bt.flushSync(()=>s(v=>v+m))}requestAnimationFrame(()=>{c.current=p.scrollTop})}}}),[r.floating,s,o,a]);return S.useMemo(()=>i?{floating:d}:{},[i,d])}let Ua=S.createContext({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Ua.displayName="FloatingContext";let mx=S.createContext(null);mx.displayName="PlacementContext";function uue(e){return S.useMemo(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function cue(){return S.useContext(Ua).setReference}function fue(){return S.useContext(Ua).getReferenceProps}function due(){let{getFloatingProps:e,slot:t}=S.useContext(Ua);return S.useCallback((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function pue(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=S.useContext(mx),n=S.useMemo(()=>e,[JSON.stringify(e,(i,o)=>{var a;return(a=o==null?void 0:o.outerHTML)!=null?a:o})]);De(()=>{t==null||t(n??null)},[t,n]);let r=S.useContext(Ua);return S.useMemo(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}let PO=4;function hue({children:e,enabled:t=!0}){let[n,r]=S.useState(null),[i,o]=S.useState(0),a=S.useRef(null),[l,s]=S.useState(null);mue(l);let u=t&&n!==null&&l!==null,{to:c="bottom",gap:f=0,offset:d=0,padding:p=0,inner:m}=vue(n,l),[v,y="center"]=c.split(" ");De(()=>{u&&o(0)},[u]);let{refs:h,floatingStyles:g,context:x}=oue({open:u,placement:v==="selection"?y==="center"?"bottom":`bottom-${y}`:y==="center"?`${v}`:`${v}-${y}`,strategy:"absolute",transform:!1,middleware:[ex({mainAxis:v==="selection"?0:f,crossAxis:d}),S2({padding:p}),v!=="selection"&&Mae({padding:p}),v==="selection"&&m?lue({...m,padding:p,overflowRef:a,offset:i,minItemsVisible:PO,referenceOverflowThreshold:p,onFallbackChange(T){var N,R;if(!T)return;let D=x.elements.floating;if(!D)return;let M=parseFloat(getComputedStyle(D).scrollPaddingBottom)||0,L=Math.min(PO,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 F=k.offsetTop,B=F+k.clientHeight+M,U=D.scrollTop,X=U+D.clientHeight;if(F>=U&&B<=X)L--;else{P=Math.max(0,Math.min(B,X)-Math.max(F,U)),I=k.clientHeight;break}}L>=1&&o(k=>{let F=I*L-P+M;return k>=F?k:F})}}):null,Iae({padding:p,apply({availableWidth:T,availableHeight:N,elements:R}){Object.assign(R.floating.style,{overflow:"auto",maxWidth:`${T}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${N}px)`})}})].filter(Boolean),whileElementsMounted:x2}),[O=v,w=y]=x.placement.split("-");v==="selection"&&(O="selection");let _=S.useMemo(()=>({anchor:[O,w].filter(Boolean).join(" ")}),[O,w]),E=sue(x,{overflowRef:a,onChange:o}),{getReferenceProps:$,getFloatingProps:A}=aue([E]),C=de(T=>{s(T),h.setFloating(T)});return S.createElement(mx.Provider,{value:r},S.createElement(Ua.Provider,{value:{setFloating:C,setReference:h.setReference,styles:g,getReferenceProps:$,getFloatingProps:A,slot:_}},e))}function mue(e){De(()=>{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 vue(e,t){var n,r,i;let o=qh((n=e==null?void 0:e.gap)!=null?n:"var(--anchor-gap, 0)",t),a=qh((r=e==null?void 0:e.offset)!=null?r:"var(--anchor-offset, 0)",t),l=qh((i=e==null?void 0:e.padding)!=null?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:a,padding:l}}function qh(e,t,n=void 0){let r=uu(),i=de((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=AO(s,u);return[c,f=>{let d=rC(s);{let p=d.map(m=>window.getComputedStyle(u).getPropertyValue(m));r.requestAnimationFrame(function m(){r.nextFrame(m);let v=!1;for(let[h,g]of d.entries()){let x=window.getComputedStyle(u).getPropertyValue(g);if(p[h]!==x){p[h]=x,v=!0;break}}if(!v)return;let y=AO(s,u);c!==y&&(f(y),c=y)})}return r.dispose}]}return[n,null]}),o=S.useMemo(()=>i(e,t)[0],[e,t]),[a=o,l]=S.useState();return De(()=>{let[s,u]=i(e,t);if(l(s),!!u)return u(l)},[e,t]),a}function rC(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,...rC(i)]:[r]}return[]}function AO(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 vx=S.createContext(null);vx.displayName="OpenClosedContext";var Rs=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Rs||{});function gue(){return S.useContext(vx)}function yue({value:e,children:t}){return j.createElement(vx.Provider,{value:e},t)}function xue(e){throw new Error("Unexpected object: "+e)}var mt=(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))(mt||{});function Gh(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:xue(e)}}function bue(e){let t=de(e),n=S.useRef(!1);S.useEffect(()=>(n.current=!1,()=>{n.current=!0,D2(()=>{n.current&&t()})}),[t])}function wue(){let e=typeof document>"u";return"useSyncExternalStore"in bc?(t=>t.useSyncExternalStore)(bc)(()=>()=>{},()=>!1,()=>!e):!1}function Sue(){let e=wue(),[t,n]=S.useState(Li.isHandoffComplete);return t&&Li.isHandoffComplete===!1&&n(!1),S.useEffect(()=>{t!==!0&&n(!0)},[t]),S.useEffect(()=>Li.handoff(),[]),e?!1:t}let _ue=S.createContext(!1);function Oue(){return S.useContext(_ue)}function Eue(e){let t=Oue(),n=S.useContext(oC),r=hx(e),[i,o]=S.useState(()=>{var a;if(!t&&n!==null)return(a=n.current)!=null?a:null;if(Li.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 S.useEffect(()=>{i!==null&&(r!=null&&r.body.contains(i)||r==null||r.body.appendChild(i))},[i,r]),S.useEffect(()=>{t||n!==null&&o(n.current)},[n,o,t]),i}let iC=S.Fragment,$ue=ct(function(e,t){let n=e,r=S.useRef(null),i=hn(Zle(f=>{r.current=f}),t),o=hx(r),a=Eue(r),[l]=S.useState(()=>{var f;return Li.isServer?null:(f=o==null?void 0:o.createElement("div"))!=null?f:null}),s=S.useContext(jue),u=Sue();De(()=>{!a||!l||a.contains(l)||(l.setAttribute("data-headlessui-portal",""),a.appendChild(l))},[a,l]),De(()=>{if(l&&s)return s.register(l)},[s,l]),bue(()=>{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=ut();return u?!a||!l?null:Bt.createPortal(c({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:iC,name:"Portal"}),l):null});function Pue(e,t){let n=hn(t),{enabled:r=!0,...i}=e,o=ut();return r?j.createElement($ue,{...i,ref:n}):o({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:iC,name:"Portal"})}let Aue=S.Fragment,oC=S.createContext(null);function Tue(e,t){let{target:n,...r}=e,i={ref:hn(t)},o=ut();return j.createElement(oC.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:Aue,name:"Popover.Group"}))}let jue=S.createContext(null),Cue=ct(Pue),kue=ct(Tue),Nue=Object.assign(Cue,{Group:kue}),Mue="div";function Iue(e,t){let n=`headlessui-control-${S.useId()}`,[r,i]=fu(),[o,a]=_p(),l=cu(),{disabled:s=l||!1,...u}=e,c=S.useMemo(()=>({disabled:s}),[s]),f={ref:t,disabled:s||void 0,"aria-disabled":s||void 0},d=ut();return j.createElement(Ile,{value:s},j.createElement(i,{value:r},j.createElement(a,{value:o},j.createElement(Yle,{id:n},d({ourProps:f,theirProps:{...u,children:j.createElement(Kle,null,typeof u.children=="function"?u.children(c):u.children)},slot:c,defaultTag:Mue,name:"Field"})))))}let Rue=ct(Iue);function Lue(e,t){let n=S.useRef({left:0,top:0});if(De(()=>{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 TO=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function jO(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 TO.test(a)&&(a=a.replace(TO,"")),a}function Due(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():jO(o).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return jO(e).trim()}function Fue(e){let t=S.useRef(""),n=S.useRef("");return de(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let o=Due(r).trim().toLowerCase();return t.current=i,n.current=o,o})}var Bue=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Bue||{}),zue=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(zue||{}),Uue=(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))(Uue||{});function Xh(e,t=n=>n){let n=e.activeItemIndex!==null?e.items[e.activeItemIndex]:null,r=px(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 Hue={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===mt.Nothing)return{...l,activeItemIndex:null};if(t.focus===mt.Specific)return{...l,activeItemIndex:e.items.findIndex(c=>c.id===t.id)};if(t.focus===mt.Previous){let c=e.activeItemIndex;if(c!==null){let f=e.items[c].dataRef.current.domRef,d=Gh(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===mt.Next){let c=e.activeItemIndex;if(c!==null){let f=e.items[c].dataRef.current.domRef,d=Gh(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=Xh(e),u=Gh(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=Xh(e,r=>[...r,{id:t.id,dataRef:t.dataRef}]);return{...e,...n}},6:(e,t)=>{let n=Xh(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}},gx=S.createContext(null);gx.displayName="MenuContext";function Ep(e){let t=S.useContext(gx);if(t===null){let n=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ep),n}return t}function Wue(e,t){return za(t.type,Hue,e,t)}let Vue=S.Fragment;function Kue(e,t){let{__demoMode:n=!1,...r}=e,i=S.useReducer(Wue,{__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=hn(t);Pse(o===0,[l,a],(m,v)=>{s({type:1}),dx(v,fx.Loose)||(m.preventDefault(),l==null||l.focus())});let c=de(()=>{s({type:1})}),f=S.useMemo(()=>({open:o===0,close:c}),[o,c]),d={ref:u},p=ut();return j.createElement(hue,null,j.createElement(gx.Provider,{value:i},j.createElement(yue,{value:za(o,{0:Rs.Open,1:Rs.Closed})},p({ourProps:d,theirProps:r,slot:f,defaultTag:Vue,name:"Menu"}))))}let que="button";function Gue(e,t){var n;let r=S.useId(),{id:i=`headlessui-menu-button-${r}`,disabled:o=!1,autoFocus:a=!1,...l}=e,[s,u]=Ep("Menu.Button"),c=fue(),f=hn(t,cue(),de(E=>u({type:7,element:E}))),d=de(E=>{switch(E.key){case Ce.Space:case Ce.Enter:case Ce.ArrowDown:E.preventDefault(),E.stopPropagation(),Bt.flushSync(()=>u({type:0})),u({type:2,focus:mt.First});break;case Ce.ArrowUp:E.preventDefault(),E.stopPropagation(),Bt.flushSync(()=>u({type:0})),u({type:2,focus:mt.Last});break}}),p=de(E=>{switch(E.key){case Ce.Space:E.preventDefault();break}}),m=de(E=>{var $;if(sx(E.currentTarget))return E.preventDefault();o||(s.menuState===0?(Bt.flushSync(()=>u({type:1})),($=s.buttonElement)==null||$.focus({preventScroll:!0})):(E.preventDefault(),u({type:0})))}),{isFocusVisible:v,focusProps:y}=ax({autoFocus:a}),{isHovered:h,hoverProps:g}=ox({isDisabled:o}),{pressed:x,pressProps:O}=Mle({disabled:o}),w=S.useMemo(()=>({open:s.menuState===0,active:x||s.menuState===0,disabled:o,hover:h,focus:v,autofocus:a}),[s,h,v,x,o,a]),_=bp(c(),{ref:f,id:i,type:Ase(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:m},y,g,O);return ut()({ourProps:_,theirProps:l,slot:w,defaultTag:que,name:"Menu.Button"})}let Xue="div",Yue=Pg.RenderStrategy|Pg.Static;function Que(e,t){var n,r;let i=S.useId(),{id:o=`headlessui-menu-items-${i}`,anchor:a,portal:l=!1,modal:s=!0,transition:u=!1,...c}=e,f=uue(a),[d,p]=Ep("Menu.Items"),[m,v]=pue(f),y=due(),[h,g]=S.useState(null),x=hn(t,f?m:null,de(P=>p({type:8,element:P})),g),O=hx(d.itemsElement);f&&(l=!0);let w=gue(),[_,E]=Bse(u,h,w!==null?(w&Rs.Open)===Rs.Open:d.menuState===0);mse(_,d.buttonElement,()=>{p({type:1})});let $=d.__demoMode?!1:s&&d.menuState===0;Mse($,O);let A=d.__demoMode?!1:s&&d.menuState===0;hse(A,{allowed:S.useCallback(()=>[d.buttonElement,d.itemsElement],[d.buttonElement,d.itemsElement])});let C=d.menuState!==0,T=Lue(C,d.buttonElement)?!1:_;S.useEffect(()=>{let P=d.itemsElement;P&&d.menuState===0&&P!==(O==null?void 0:O.activeElement)&&P.focus({preventScroll:!0})},[d.menuState,d.itemsElement,O]),Wse(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=uu(),R=de(P=>{var k,F,B;switch(N.dispose(),P.key){case Ce.Space:if(d.searchQuery!=="")return P.preventDefault(),P.stopPropagation(),p({type:3,value:P.key});case Ce.Enter:if(P.preventDefault(),P.stopPropagation(),p({type:1}),d.activeItemIndex!==null){let{dataRef:U}=d.items[d.activeItemIndex];(F=(k=U.current)==null?void 0:k.domRef.current)==null||F.click()}J2(d.buttonElement);break;case Ce.ArrowDown:return P.preventDefault(),P.stopPropagation(),p({type:2,focus:mt.Next});case Ce.ArrowUp:return P.preventDefault(),P.stopPropagation(),p({type:2,focus:mt.Previous});case Ce.Home:case Ce.PageUp:return P.preventDefault(),P.stopPropagation(),p({type:2,focus:mt.First});case Ce.End:case Ce.PageDown:return P.preventDefault(),P.stopPropagation(),p({type:2,focus:mt.Last});case Ce.Escape:P.preventDefault(),P.stopPropagation(),Bt.flushSync(()=>p({type:1})),(B=d.buttonElement)==null||B.focus({preventScroll:!0});break;case Ce.Tab:P.preventDefault(),P.stopPropagation(),Bt.flushSync(()=>p({type:1})),_se(d.buttonElement,P.shiftKey?Ci.Previous:Ci.Next);break;default:P.key.length===1&&(p({type:3,value:P.key}),N.setTimeout(()=>p({type:4}),350));break}}),D=de(P=>{switch(P.key){case Ce.Space:P.preventDefault();break}}),M=S.useMemo(()=>({open:d.menuState===0}),[d.menuState]),L=bp(f?y():{},{"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,...v,"--button-width":fse(d.buttonElement,!0).width},...Fse(E)}),I=ut();return j.createElement(Nue,{enabled:l?e.static||_:!1},I({ourProps:L,theirProps:c,slot:M,defaultTag:Xue,features:Yue,visible:T,name:"Menu.Items"}))}let Zue=S.Fragment;function Jue(e,t){let n=S.useId(),{id:r=`headlessui-menu-item-${n}`,disabled:i=!1,...o}=e,[a,l]=Ep("Menu.Item"),s=a.activeItemIndex!==null?a.items[a.activeItemIndex].id===r:!1,u=S.useRef(null),c=hn(t,u);De(()=>{if(!a.__demoMode&&a.menuState===0&&s&&a.activationTrigger!==0)return Yn().requestAnimationFrame(()=>{var T,N;(N=(T=u.current)==null?void 0:T.scrollIntoView)==null||N.call(T,{block:"nearest"})})},[a.__demoMode,u,s,a.menuState,a.activationTrigger,a.activeItemIndex]);let f=Fue(u),d=S.useRef({disabled:i,domRef:u,get textValue(){return f()}});De(()=>{d.current.disabled=i},[d,i]),De(()=>(l({type:5,id:r,dataRef:d}),()=>l({type:6,id:r})),[d,r]);let p=de(()=>{l({type:1})}),m=de(T=>{if(i)return T.preventDefault();l({type:1}),J2(a.buttonElement)}),v=de(()=>{if(i)return l({type:2,focus:mt.Nothing});l({type:2,focus:mt.Specific,id:r})}),y=Ise(),h=de(T=>{y.update(T),!i&&(s||l({type:2,focus:mt.Specific,id:r,trigger:0}))}),g=de(T=>{y.wasMoved(T)&&(i||s||l({type:2,focus:mt.Specific,id:r,trigger:0}))}),x=de(T=>{y.wasMoved(T)&&(i||s&&l({type:2,focus:mt.Nothing}))}),[O,w]=fu(),[_,E]=_p(),$=S.useMemo(()=>({active:s,focus:s,disabled:i,close:p}),[s,i,p]),A={id:r,ref:c,role:"menuitem",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-labelledby":O,"aria-describedby":_,disabled:void 0,onClick:m,onFocus:v,onPointerEnter:h,onMouseEnter:h,onPointerMove:g,onMouseMove:g,onPointerLeave:x,onMouseLeave:x},C=ut();return j.createElement(w,null,j.createElement(E,null,C({ourProps:A,theirProps:o,slot:$,defaultTag:Zue,name:"Menu.Item"})))}let ece="div";function tce(e,t){let[n,r]=fu(),i=e,o={ref:t,"aria-labelledby":n,role:"group"},a=ut();return j.createElement(r,null,a({ourProps:o,theirProps:i,slot:{},defaultTag:ece,name:"Menu.Section"}))}let nce="header";function rce(e,t){let n=S.useId(),{id:r=`headlessui-menu-heading-${n}`,...i}=e,o=ux();De(()=>o.register(r),[r,o.register]);let a={id:r,ref:t,role:"presentation",...o.props};return ut()({ourProps:a,theirProps:i,slot:{},defaultTag:nce,name:"Menu.Heading"})}let ice="div";function oce(e,t){let n=e,r={ref:t,role:"separator"};return ut()({ourProps:r,theirProps:n,slot:{},defaultTag:ice,name:"Menu.Separator"})}let ace=ct(Kue),aC=ct(Gue),lC=ct(Que),sC=ct(Jue),lce=ct(tce),sce=ct(rce),uce=ct(oce),cce=Object.assign(ace,{Button:aC,Items:lC,Item:sC,Section:lce,Heading:sce,Separator:uce});var fce=(e=>(e[e.RegisterOption=0]="RegisterOption",e[e.UnregisterOption=1]="UnregisterOption",e))(fce||{});let dce={0(e,t){let n=[...e.options,{id:t.id,element:t.element,propsRef:t.propsRef}];return{...e,options:px(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})}},yx=S.createContext(null);yx.displayName="RadioGroupDataContext";function xx(e){let t=S.useContext(yx);if(t===null){let n=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,xx),n}return t}let bx=S.createContext(null);bx.displayName="RadioGroupActionsContext";function wx(e){let t=S.useContext(bx);if(t===null){let n=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,wx),n}return t}function pce(e,t){return za(t.type,dce,e,t)}let hce="div";function mce(e,t){let n=S.useId(),r=cu(),{id:i=`headlessui-radiogroup-${n}`,value:o,form:a,name:l,onChange:s,by:u,disabled:c=r||!1,defaultValue:f,...d}=e,p=use(u),[m,v]=S.useReducer(pce,{options:[]}),y=m.options,[h,g]=fu(),[x,O]=_p(),w=S.useRef(null),_=hn(w,t),E=Ule(f),[$,A]=zle(o,s,E),C=S.useMemo(()=>y.find(B=>!B.propsRef.current.disabled),[y]),T=S.useMemo(()=>y.some(B=>p(B.propsRef.current.value,$)),[y,$]),N=de(B=>{var U;if(c||p(B,$))return!1;let X=(U=y.find(ne=>p(ne.propsRef.current.value,B)))==null?void 0:U.propsRef.current;return X!=null&&X.disabled?!1:(A==null||A(B),!0)}),R=de(B=>{let U=w.current;if(!U)return;let X=io(U),ne=y.filter(ae=>ae.propsRef.current.disabled===!1).map(ae=>ae.element.current);switch(B.key){case Ce.Enter:Hle(B.currentTarget);break;case Ce.ArrowLeft:case Ce.ArrowUp:if(B.preventDefault(),B.stopPropagation(),Cg(ne,Ci.Previous|Ci.WrapAround)===jg.Success){let ae=y.find(te=>te.element.current===(X==null?void 0:X.activeElement));ae&&N(ae.propsRef.current.value)}break;case Ce.ArrowRight:case Ce.ArrowDown:if(B.preventDefault(),B.stopPropagation(),Cg(ne,Ci.Next|Ci.WrapAround)===jg.Success){let ae=y.find(te=>te.element.current===(X==null?void 0:X.activeElement));ae&&N(ae.propsRef.current.value)}break;case Ce.Space:{B.preventDefault(),B.stopPropagation();let ae=y.find(te=>te.element.current===(X==null?void 0:X.activeElement));ae&&N(ae.propsRef.current.value)}break}}),D=de(B=>(v({type:0,...B}),()=>v({type:1,id:B.id}))),M=S.useMemo(()=>({value:$,firstOption:C,containsCheckedOption:T,disabled:c,compare:p,...m}),[$,C,T,c,p,m]),L=S.useMemo(()=>({registerOption:D,change:N}),[D,N]),I={ref:_,id:i,role:"radiogroup","aria-labelledby":h,"aria-describedby":x,onKeyDown:R},P=S.useMemo(()=>({value:$}),[$]),k=S.useCallback(()=>{if(E!==void 0)return N(E)},[N,E]),F=ut();return j.createElement(O,{name:"RadioGroup.Description"},j.createElement(g,{name:"RadioGroup.Label"},j.createElement(bx.Provider,{value:L},j.createElement(yx.Provider,{value:M},l!=null&&j.createElement(Gle,{disabled:c,data:{[l]:$||"on"},overrides:{type:"radio",checked:$!=null},form:a,onReset:k}),F({ourProps:I,theirProps:d,slot:P,defaultTag:hce,name:"RadioGroup"})))))}let vce="div";function gce(e,t){var n;let r=xx("RadioGroup.Option"),i=wx("RadioGroup.Option"),o=S.useId(),{id:a=`headlessui-radiogroup-option-${o}`,value:l,disabled:s=r.disabled||!1,autoFocus:u=!1,...c}=e,f=S.useRef(null),d=hn(f,t),[p,m]=fu(),[v,y]=_p(),h=oo({value:l,disabled:s});De(()=>i.registerOption({id:a,element:f,propsRef:h}),[a,i,f,h]);let g=de(N=>{var R;if(sx(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:O,focusProps:w}=ax({autoFocus:u}),{isHovered:_,hoverProps:E}=ox({isDisabled:s}),$=r.compare(r.value,l),A=bp({ref:d,id:a,role:"radio","aria-checked":$?"true":"false","aria-labelledby":p,"aria-describedby":v,"aria-disabled":s?!0:void 0,tabIndex:s?-1:$||!r.containsCheckedOption&&x?0:-1,onClick:s?void 0:g,autoFocus:u},w,E),C=S.useMemo(()=>({checked:$,disabled:s,active:O,hover:_,focus:O,autofocus:u}),[$,s,_,O,u]),T=ut();return j.createElement(y,{name:"RadioGroup.Description"},j.createElement(m,{name:"RadioGroup.Label"},T({ourProps:A,theirProps:c,slot:C,defaultTag:vce,name:"RadioGroup.Option"})))}let yce="span";function xce(e,t){var n;let r=xx("Radio"),i=wx("Radio"),o=S.useId(),a=K2(),l=cu(),{id:s=a||`headlessui-radio-${o}`,value:u,disabled:c=r.disabled||l||!1,autoFocus:f=!1,...d}=e,p=S.useRef(null),m=hn(p,t),v=X2(),y=Jle(),h=oo({value:u,disabled:c});De(()=>i.registerOption({id:s,element:p,propsRef:h}),[s,i,p,h]);let g=de(T=>{var N;if(sx(T.currentTarget))return T.preventDefault();i.change(u)&&((N=p.current)==null||N.focus())}),{isFocusVisible:x,focusProps:O}=ax({autoFocus:f}),{isHovered:w,hoverProps:_}=ox({isDisabled:c}),E=((n=r.firstOption)==null?void 0:n.id)===s,$=r.compare(r.value,u),A=bp({ref:m,id:s,role:"radio","aria-checked":$?"true":"false","aria-labelledby":v,"aria-describedby":y,"aria-disabled":c?!0:void 0,tabIndex:c?-1:$||!r.containsCheckedOption&&E?0:-1,autoFocus:f,onClick:c?void 0:g},O,_),C=S.useMemo(()=>({checked:$,disabled:c,hover:w,focus:x,autofocus:f}),[$,c,w,x,f]);return ut()({ourProps:A,theirProps:d,slot:C,defaultTag:yce,name:"Radio"})}let bce=ct(mce),wce=ct(gce),uC=ct(xce),Sce=lse,_ce=rse,Oce=Object.assign(bce,{Option:wce,Radio:uC,Label:Sce,Description:_ce});const cC=({items:e,selectedItem:t,onItemSelect:n,size:r="sm"})=>b.jsx("div",{className:"relative h-full",children:b.jsxs(cce,{children:[b.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-sm ring-1 ring-gray-300 hover:bg-gray-50`,children:[t,b.jsx(vP,{className:"size-4 text-gray-400","aria-hidden":"true"})]}),b.jsx(lC,{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-none",children:b.jsx("div",{className:"py-1",children:e.map(i=>b.jsx(sC,{children:b.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"})=>b.jsx(Oce,{value:t,onChange:n,className:`inline-flex justify-between items-center rounded-md bg-white text-${r} font-medium text-gray-900 shadow-sm ring-1 ring-gray-300`,children:e.map(i=>b.jsx(Rue,{className:"flex h-full first:rounded-l-md last:rounded-r-md overflow-hidden",children:b.jsx(uC,{value:i,className:"cursor-pointer h-full data-[checked]:bg-gray-200 hover:bg-gray-50 flex items-center px-4 shadow-sm",children:i})},i))});function $ce({onSearch:e}){return b.jsxs("div",{className:"relative w-full md:w-[26rem] rounded-md",children:[b.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:b.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:b.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"})})}),b.jsx("input",{type:"text",className:"block w-full pl-10 px-3 py-3 text-sm font-medium text-gray-900 shadow-sm rounded-md hover:bg-gray-50 outline outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline focus:outline-2 focus:-outline-offset-2 focus:outline-blue-600 w-",placeholder:"Search features...",onChange:t=>e(t.target.value)})]})}const Pce=({features:e})=>{const[t,n]=S.useState("All Teams"),[r,i]=S.useState(""),o=S.useMemo(()=>{const u=new Set;return u.add("All Teams"),Object.values(e).forEach(c=>{var f;(f=c.assignments)!=null&&f.teams&&c.assignments.teams.forEach(d=>u.add(d))}),Array.from(u)},[e]),a=S.useMemo(()=>t==="All Teams"?e:Object.fromEntries(Object.entries(e).filter(([u,c])=>{var f,d;return(d=(f=c.assignments)==null?void 0:f.teams)==null?void 0:d.includes(t)})),[e,t]),l=Object.entries(e).length,s=o.length-1;return b.jsxs("div",{className:"h-screen max-w-7xl mx-auto flex flex-col gap-8 p-4 md:p-8",children:[b.jsxs("div",{className:"flex justify-between items-center",children:[b.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:"Dashboard"}),b.jsx(cC,{items:o,selectedItem:t,onItemSelect:n})]}),b.jsx("div",{children:b.jsxs("ul",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[b.jsx("li",{className:"px-4 py-6 border border-gray-200 shadow-sm bg-white rounded-lg",children:b.jsx(ule,{features:a})}),b.jsx("li",{className:"px-4 py-6 border border-gray-200 shadow-sm bg-white rounded-lg",children:b.jsx(cle,{features:a})}),b.jsx("li",{className:"px-4 py-6 border border-gray-200 shadow-sm bg-white rounded-lg",children:b.jsx(fle,{features:a})})]})}),b.jsxs("div",{className:"flex-1 flex flex-col gap-6 h-full overflow-scroll",children:[b.jsxs("div",{className:"flex items-center justify-between gap-12",children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(Hi,{className:"w-5 h-5 text-gray-600","aria-hidden":"true"}),b.jsxs("span",{className:"text-sm text-gray-600 font-medium",children:["Teams: ",s||0," | Total Features: ",l||0]})]}),b.jsx("div",{children:b.jsx($ce,{onSearch:i})})]}),b.jsx(dle,{features:a,searchTerm:r,teamContext:t!=="All Teams"?t:null})]})]})},Ace=({features:e})=>{const t=Object.values(e).reduce((r,i)=>{const o=i.metrics.health.overall;if(o!=null){const a=A2(o);r[a]++}return r},{needsAttention:0,needsImprovement:0,healthy:0}),n=Object.entries(t).map(([r,i],o)=>({name:r,value:i,fill:[bt(et.needsAttention).hex,bt(et.needsImprovement).hex,bt(et.healthy).hex][o]})).filter(({value:r})=>r>0);return b.jsxs("div",{className:"flex flex-col gap-6",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[b.jsx("div",{className:"flex-shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:b.jsx(Dy,{className:"size-5"})}),b.jsx("span",{className:"flex pl-2",children:"Health Score"})]}),b.jsxs("div",{className:"relative flex-shrink-0 group",children:[b.jsx(ai,{className:"size-4 text-gray-400"}),b.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 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)"})]})]}),b.jsxs("div",{className:"flex flex-col items-center gap-6",children:[b.jsx("div",{className:"relative size-48",children:b.jsx(Na,{width:"100%",height:"100%",children:b.jsx(tu,{children:b.jsx(Kt,{data:n,dataKey:"value",nameKey:"name",innerRadius:"70%",outerRadius:"100%",paddingAngle:2})})})}),b.jsxs("ul",{className:"flex flex-col flex-1 gap-y-2",children:[b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-6 flex items-center justify-center ${bt(et.needsAttention).class}`,children:b.jsx("span",{className:"font-semibold text-white text-sm",children:t.needsAttention})}),b.jsx("p",{className:"text-sm text-gray-500",children:"Features needing attention"})]}),b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-6 flex items-center justify-center ${bt(et.needsImprovement).class}`,children:b.jsx("span",{className:"font-semibold text-white text-sm",children:t.needsImprovement})}),b.jsx("p",{className:"text-sm text-gray-500",children:"Features needing improvement"})]}),b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-6 flex items-center justify-center ${bt(et.healthy).class}`,children:b.jsx("span",{className:"font-semibold text-white text-sm",children:t.healthy})}),b.jsx("p",{className:"text-sm text-gray-500",children:"Healthy Features"})]})]})]})]})},Tce=({features:e})=>{const t=Object.values(e).reduce((i,o)=>{const a=o.metrics.testCoverage.score;if(a!=null){const l=Zj(a);i[l]++}return i},{poor:0,fair:0,good:0}),{minimum_thresholds:n}=oi.project.documentation_site.test_coverage,r=Object.entries(t).map(([i,o],a)=>({name:i,value:o,fill:[xt(n.poor).hex,xt(n.fair).hex,xt(n.good).hex][a]})).filter(({value:i})=>i>0);return b.jsxs("div",{className:"flex flex-col gap-6",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[b.jsx("div",{className:"flex-shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:b.jsx(Ly,{className:"size-5"})}),b.jsx("span",{className:"flex pl-2",children:"Test Coverage"})]}),b.jsxs("div",{className:"relative flex-shrink-0 group",children:[b.jsx(ai,{className:"size-4 text-gray-400"}),b.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 py-1 px-2 w-48",children:"Test Coverage distribution by category: shows how many features fall into each level from poor to good"})]})]}),b.jsxs("div",{className:"flex flex-col items-center gap-6",children:[b.jsx("div",{className:"relative size-48",children:b.jsx(Na,{width:"100%",height:"100%",children:b.jsx(tu,{children:b.jsx(Kt,{data:r,dataKey:"value",nameKey:"name",innerRadius:"70%",outerRadius:"100%",paddingAngle:2})})})}),b.jsxs("ul",{className:"flex flex-col flex-1 gap-y-2",children:[b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-6 flex items-center justify-center ${xt(n.poor).class}`,children:b.jsx("span",{className:"font-semibold text-white text-sm",children:t.poor})}),b.jsxs("p",{className:"text-sm text-gray-500",children:[b.jsx("span",{className:"",children:"Features with"})," poor coverage"]})]}),b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-6 flex items-center justify-center ${xt(n.fair).class}`,children:b.jsx("span",{className:"font-semibold text-white text-sm",children:t.fair})}),b.jsxs("p",{className:"text-sm text-gray-500",children:[b.jsx("span",{className:"",children:"Features with"})," fair coverage"]})]}),b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-6 flex items-center justify-center ${xt(n.good).class}`,children:b.jsx("span",{className:"font-semibold text-white text-sm",children:t.good})}),b.jsxs("p",{className:"text-sm text-gray-500",children:[b.jsx("span",{className:"",children:"Features with"})," good coverage"]})]})]})]})]})},jce=({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.log(t.unit_count+t.unit_pending),fill:"#1d4ed8"},{value:Math.log(t.integration_count+t.integration_pending),fill:"#2563eb"},{value:Math.log(t.regression_count+t.regression_pending),fill:"#3b82f6"}];return b.jsxs("div",{className:"flex flex-col gap-6",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[b.jsx("div",{className:"flex-shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:b.jsx(nR,{className:"size-5"})}),b.jsx("span",{className:"flex pl-2",children:"Test Pyramid"})]}),b.jsxs("div",{className:"relative flex-shrink-0 group",children:[b.jsx(ai,{className:"size-4 text-gray-400"}),b.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 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."})]})]}),b.jsxs("div",{className:"flex flex-col items-center gap-6",children:[b.jsx("div",{className:"relative h-48 w-72",children:b.jsx(Na,{width:"100%",height:"100%",children:b.jsx(Soe,{width:730,height:250,children:b.jsx(fi,{dataKey:"value",data:n,reversed:!0,children:b.jsx(mr,{position:"right",fill:"#000",stroke:"none",dataKey:"name"})})})})}),b.jsxs("ul",{className:"flex flex-col flex-1 gap-y-2",children:[b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:"flex-shrink-0 rounded h-6 w-16 size-x-12 flex items-center justify-center bg-blue-500",children:b.jsx("span",{className:"font-semibold text-white text-sm",children:t.regression_count})}),b.jsxs("p",{className:"text-sm text-gray-500",children:["Regression Tests (",t.regression_pending," pending)"]})]}),b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:"flex-shrink-0 rounded h-6 w-16 flex items-center justify-center bg-blue-600",children:b.jsx("span",{className:"font-semibold text-white text-sm",children:t.integration_count})}),b.jsxs("p",{className:"text-sm text-gray-500",children:["Integration Tests (",t.integration_pending," pending)"]})]}),b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:"flex-shrink-0 rounded h-6 w-16 flex items-center justify-center bg-blue-700",children:b.jsx("span",{className:"font-semibold text-white text-sm",children:t.unit_count})}),b.jsxs("p",{className:"text-sm text-gray-500",children:["Unit Tests (",t.unit_pending," pending)"]})]})]})]})]})},Zu=({title:e})=>b.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider",children:b.jsx("div",{className:"flex items-center gap-x-2",children:e})}),CO=({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.metrics.featureSize.score-i.metrics.featureSize.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})),kO=["Regression","Integration","Unit"],NO=["Missing","Pending"],MO={Pending:{Unit:"unit_pending",Integration:"integration_pending",Regression:"regression_pending"},Missing:{Unit:"unit_count",Integration:"integration_count",Regression:"regression_count"}},Cce={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"}},kce=({features:e})=>{const[t,n]=S.useState(NO[0]),[r,i]=S.useState(kO[0]),[o,a]=S.useState(CO({features:e,metric:MO[t][r],sortDirection:t==="Missing"?"ASC":""}));return S.useEffect(()=>{a(CO({features:e,metric:MO[t][r],sortDirection:t==="Missing"?"ASC":""}))},[e,t,r]),b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"flex items-center justify-between px-4 py-6 bg-gray-50 rounded-md",children:[b.jsx("h3",{className:"flex items-center text-xs font-semibold text-gray-800 uppercase h-8",children:Cce[t][r]}),b.jsxs("div",{className:"flex h-8",children:[b.jsx(Ece,{items:NO,selectedItem:t,onItemSelect:n,size:"xs"}),b.jsx("span",{className:"mx-2"}),b.jsx(cC,{items:kO,selectedItem:r,onItemSelect:i,size:"xs"})]})]}),b.jsx("div",{className:"flow-root",children:b.jsx("div",{className:"min-w-full align-middle",children:b.jsx("div",{className:"overflow-hidden rounded-md",children:b.jsxs("table",{className:"min-w-full",children:[b.jsx("thead",{className:"bg-gray-50 border-b border-gray-200",children:b.jsxs("tr",{children:[b.jsx(Zu,{title:"Feature"}),b.jsx(Zu,{title:"Team"}),b.jsx(Zu,{title:"Size"}),b.jsx(Zu,{title:t==="Missing"?`${r} Test Count`:"Pending Test Count"}),b.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider"})]})}),b.jsx("tbody",{className:"divide-y divide-gray-200 bg-white",children:o.map(({featureName:l,feature:s,score:u})=>{const c=s.metrics.featureSize.percentOfMax,f=ma(c);return b.jsxs("tr",{children:[b.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:b.jsx("div",{className:"",children:l})}),b.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(Hi,{className:"size-4 text-gray-500"}),Uf(s.assignments.teams)]})}),b.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:b.jsxs("div",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:"flex gap-1.5 items-center",children:[1,2,3,4,5].map(d=>b.jsx("div",{className:`h-5 w-1.5 rounded ${d<=Ns(c)?"bg-blue-500":"bg-gray-200"}`},d))}),b.jsx("span",{className:"text-xs text-gray-500 uppercase",children:f})]})}),b.jsx("td",{className:"px-4 py-4 text-sm",children:b.jsx("div",{className:"flex items-center gap-x-2",children:u})}),b.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:b.jsx("div",{className:"flex items-center gap-x-3",children:b.jsx("div",{children:b.jsx(fr,{to:`/${encodeURIComponent(l)}`,className:"flex items-center justify-center flex-shrink-0 font-medium text-gray-900 text-sm mb-1 hover:bg-gray-100 rounded-full h-6 w-6",children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5",children:b.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 Nce({features:e}){const t=Object.entries(e).map(([i,o])=>({name:i,data:o||0,health:o.metrics.health.overall||0})).sort((i,o)=>i.health-o.health).slice(0,5),n=Object.entries(e).map(([i,o])=>({name:i,data:o||0,score:o.metrics.testCoverage.score||0})).sort((i,o)=>i.score-o.score).slice(0,5),r=({title:i})=>b.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider",children:b.jsx("div",{className:"flex items-center gap-x-2",children:i})});return b.jsxs("div",{className:"max-w-7xl mx-auto p-4 md:p-8",children:[b.jsx("div",{className:"mb-8",children:b.jsx(fr,{to:"/",className:"text-gray-600 hover:text-blue-800 block text-sm font-normal",children:"← Back to Dashboard"})}),b.jsx("div",{className:"flow-root mb-12",children:b.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[b.jsx("div",{className:"col-span-1 border border-gray-200 shadow-sm bg-white rounded-lg h-full",children:b.jsx("div",{className:"px-4 py-6 h-fit",children:b.jsx(Ace,{features:e})})}),b.jsxs("div",{className:"col-span-2 h-full shadow-sm border border-gray-200 rounded-lg bg-white",children:[b.jsx("div",{className:"flex items-center justify-between px-4 py-6 bg-gray-50 rounded-md",children:b.jsx("h3",{className:"flex items-center text-xs font-semibold text-gray-800 uppercase h-8",children:"Bottom 5 Features by Health Score"})}),b.jsx("div",{className:"flow-root",children:b.jsx("div",{className:"min-w-full align-middle",children:b.jsx("div",{className:"overflow-hidden rounded-md",children:b.jsxs("table",{className:"min-w-full",children:[b.jsx("thead",{className:"bg-gray-50 border-b border-gray-200",children:b.jsxs("tr",{children:[b.jsx(r,{title:"Feature"}),b.jsx(r,{title:"Team"}),b.jsx(r,{title:"Size"}),b.jsx(r,{title:"Health Score"}),b.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider"})]})}),b.jsx("tbody",{className:"divide-y divide-gray-200 bg-white",children:t.map(i=>{const o=i.data.metrics.featureSize.percentOfMax,a=ma(o),l=i.health||0;return b.jsxs("tr",{children:[b.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:b.jsx("div",{className:"",children:i.name})}),b.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(Hi,{className:"size-4 text-gray-500"}),Uf(i.data.assignments.teams)]})}),b.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:b.jsxs("div",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:"flex gap-1.5 items-center",children:[1,2,3,4,5].map(s=>b.jsx("div",{className:`h-5 w-1.5 rounded ${s<=Ns(o)?"bg-blue-500":"bg-gray-200"}`},s))}),b.jsx("span",{className:"text-xs text-gray-500 uppercase",children:a})]})}),b.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:b.jsxs("div",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`w-4 h-4 rounded-full flex items-center justify-center ${T2(l)}`,children:b.jsx("div",{className:`w-2 h-2 rounded-full ${bt(l).class}`})}),b.jsxs("span",{className:"text-gray-600",children:[l.toFixed(0),"%"]})]})}),b.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:b.jsx("div",{className:"flex items-center gap-x-3",children:b.jsx("div",{children:b.jsx(fr,{to:`/${encodeURIComponent(i.name)}`,className:"flex items-center justify-center flex-shrink-0 font-medium text-gray-900 text-sm mb-1 hover:bg-gray-100 rounded-full h-6 w-6",children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5",children:b.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"})})})})})})]},i.name)})})]})})})})]})]})}),b.jsx("div",{className:"flow-root mb-12",children:b.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[b.jsx("div",{className:"col-span-1 border border-gray-200 shadow-sm bg-white rounded-lg",children:b.jsx("div",{className:"px-4 py-6",children:b.jsx(Tce,{features:e})})}),b.jsxs("div",{className:"col-span-2 h-full shadow-sm border border-gray-200 rounded-lg bg-white",children:[b.jsx("div",{className:"flex items-center justify-between px-4 py-6 bg-gray-50 rounded-md",children:b.jsx("h3",{className:"flex items-center text-xs font-semibold text-gray-800 uppercase h-8",children:"Bottom 5 Features by Test Coverage"})}),b.jsx("div",{className:"flow-root",children:b.jsx("div",{className:"min-w-full align-middle",children:b.jsx("div",{className:"overflow-hidden rounded-md",children:b.jsxs("table",{className:"min-w-full",children:[b.jsx("thead",{className:"bg-gray-50 border-b border-gray-200",children:b.jsxs("tr",{children:[b.jsx(r,{title:"Feature"}),b.jsx(r,{title:"Team"}),b.jsx(r,{title:"Size"}),b.jsx(r,{title:"Test Coverage"}),b.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider"})]})}),b.jsx("tbody",{className:"divide-y divide-gray-200 bg-white",children:n.map(i=>{const o=i.data.metrics.featureSize.percentOfMax,a=ma(o),l=i.data.metrics.testCoverage.score||0;return b.jsxs("tr",{children:[b.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:b.jsx("div",{className:"",children:i.name})}),b.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(Hi,{className:"size-4 text-gray-500"}),Uf(i.data.assignments.teams)]})}),b.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:b.jsxs("div",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:"flex gap-1.5 items-center",children:[1,2,3,4,5].map(s=>b.jsx("div",{className:`h-5 w-1.5 rounded ${s<=Ns(o)?"bg-blue-500":"bg-gray-200"}`},s))}),b.jsx("span",{className:"text-xs text-gray-500 uppercase",children:a})]})}),b.jsx("td",{className:"px-4 py-4 text-sm",children:b.jsxs("div",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:"flex-grow h-2 rounded-full bg-gray-100 overflow-hidden",children:b.jsx("div",{className:`h-full rounded-full ${xt(l).class}`,style:{width:`${l}%`}})}),b.jsx("span",{className:"text-sm text-gray-500",children:l?`${l.toFixed(0)}%`:"No Data"})]})}),b.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:b.jsx("div",{className:"flex items-center gap-x-3",children:b.jsx("div",{children:b.jsx(fr,{to:`/${encodeURIComponent(i.name)}`,className:"flex items-center justify-center flex-shrink-0 font-medium text-gray-900 text-sm mb-1 hover:bg-gray-100 rounded-full h-6 w-6",children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5",children:b.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"})})})})})})]},i.name)})})]})})})})]})]})}),b.jsx("div",{className:"flow-root mb-12",children:b.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[b.jsx("div",{className:"col-span-1 border border-gray-200 shadow-sm bg-white rounded-lg",children:b.jsx("div",{className:"px-4 py-6",children:b.jsx(jce,{features:e})})}),b.jsx("div",{className:"col-span-2 h-full shadow-sm border border-gray-200 rounded-lg bg-white",children:b.jsx(kce,{features:e})})]})})]})}const Mce=({files:e})=>{const{project:t,environment:n}=oi,r=`${t.repository.url}/blob/${n.git_ref}`,i=S.useMemo(()=>{const h=new Set;return e.forEach(g=>{const x=g.split("/");let O="";x.slice(0,-1).forEach(w=>{O=O?`${O}/${w}`:w,h.add(O)})}),h},[e]),[o,a]=S.useState("list"),[l,s]=S.useState(i),[u,c]=S.useState({key:null,direction:"asc"}),f=S.useMemo(()=>{const h={};return e.forEach(g=>{const x=g.split("/");let O=h;x.forEach((w,_)=>{_===x.length-1?O[w]={type:"file",path:g}:(O[w]=O[w]||{type:"directory",children:{}},O=O[w].children)})}),h},[e]),d=S.useMemo(()=>[...e].sort((h,g)=>u.key?h<g?u.direction==="asc"?-1:1:h>g?u.direction==="asc"?1:-1:0:0),[e,u]),p=h=>{s(g=>{const x=new Set(g);return x.has(h)?x.delete(h):x.add(h),x})},m=h=>{c(g=>({key:h,direction:g.key===h&&g.direction==="asc"?"desc":"asc"}))},v=(h,g="",x=0)=>h?Object.entries(h).map(([O,w])=>{const _=g?`${g}/${O}`:O,E=l.has(_);return w.type==="directory"?b.jsxs(j.Fragment,{children:[b.jsx("tr",{className:"hover:bg-gray-50",children:b.jsx("td",{className:"px-4 py-2 text-sm text-gray-900",children:b.jsxs("button",{onClick:()=>p(_),className:"flex items-center w-full group",style:{paddingLeft:`${x*16}px`},children:[E?b.jsx(vP,{className:"size-4 text-gray-400 mr-1 flex-shrink-0"}):b.jsx(QI,{className:"size-4 text-gray-400 mr-1 flex-shrink-0"}),b.jsx(ZI,{className:"size-4 text-gray-400 mr-2 flex-shrink-0"}),b.jsx("span",{className:"font-medium text-gray-600 group-hover:text-gray-900",children:O})]})})}),E&&v(w.children,_,x+1)]},_):b.jsx("tr",{className:"",children:b.jsx("td",{className:"px-4 py-2 text-sm text-gray-900",children:b.jsxs("div",{className:"flex items-center",style:{paddingLeft:`${x*16+20}px`},children:[b.jsx(Vm,{className:"size-4 text-gray-400 mr-2 flex-shrink-0"}),b.jsx("span",{className:"truncate",children:O})]})})},_)}):null,y=({title:h,sortKey:g,className:x=""})=>b.jsx("th",{scope:"col",className:`px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider cursor-pointer ${x}`,onClick:()=>m(g),children:b.jsxs("div",{className:"flex items-center gap-x-2 group",children:[h,b.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:b.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 b.jsx("div",{className:"bg-white rounded-lg border border-gray-200",children:b.jsx("div",{className:"overflow-hidden rounded-lg",children:b.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[b.jsx("thead",{className:"bg-gray-50",children:b.jsxs("tr",{children:[b.jsx(y,{title:o==="list"?"File Path":"Name",sortKey:"path"}),b.jsx("th",{scope:"col",className:"px-4 py-3 text-center text-xs font-medium text-gray-800 uppercase tracking-wider",children:b.jsxs("div",{className:"flex items-center justify-end gap-2",children:[b.jsx("button",{onClick:()=>a("list"),className:`p-1 rounded ${o==="list"?"text-blue-600 bg-blue-100":"text-gray-500 hover:text-gray-700 hover:bg-gray-50"}`,children:b.jsx(tR,{className:"size-4"})}),b.jsx("button",{onClick:()=>a("tree"),className:`p-1 rounded ${o==="tree"?"text-blue-600 bg-blue-100":"text-gray-500 hover:text-gray-700 hover:bg-gray-50"}`,children:b.jsx(gP,{className:"size-4"})})]})})]})}),b.jsx("tbody",{className:"divide-y divide-gray-200",children:o==="list"?d.map(h=>b.jsx("tr",{className:"",children:b.jsx("td",{className:"px-4 py-3 text-sm font-medium text-gray-900 flex-1",children:b.jsxs("div",{className:"flex items-center",children:[b.jsx(Vm,{className:"size-4 text-gray-400 mr-2 flex-shrink-0"}),b.jsx("a",{href:`${r}/${h}`,className:"truncate underline",target:"_blank",children:h})]})})},h)):v(f)})]})})})};function Ice({name:e,feature:t}){const{project:n}=oi,i=`is:pr label:"${`Feature ${e}`}"`,o=encodeURIComponent(i),a=`${n.repository.url}/pulls?q=${o}`;return b.jsxs("div",{className:"bg-white p-4 rounded-lg border border-gray-200 h-fit",children:[b.jsxs("div",{className:"mb-6",children:[b.jsx("h2",{className:"text-lg font-bold text-gray-800 mb-2",children:e}),t.description&&b.jsx("p",{className:"text-sm md:text-base text-gray-600",children:t.description})]}),b.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-3",children:"Metrics"}),b.jsxs("ul",{className:"mb-6 space-y-2",children:[b.jsxs("li",{className:"flex items-center gap-2",children:[b.jsx("div",{className:"flex-shrink-0",children:b.jsx(gP,{className:"size-4 text-gray-500"})}),b.jsxs("p",{className:"text-sm text-gray-700",children:[t.assignments.files?t.assignments.files.length:0," Total Files"]})]}),b.jsxs("li",{className:"flex items-center gap-2",children:[b.jsx("div",{className:"flex-shrink-0",children:b.jsx(rR,{className:"size-4 text-gray-500"})}),b.jsxs("p",{className:"text-sm text-gray-700",children:[(t.metrics.abc_size||0).toFixed(2)," ABC Size"]})]}),b.jsxs("li",{className:"flex items-center gap-2",children:[b.jsx("div",{className:"flex-shrink-0",children:b.jsx(Vm,{className:"size-4 text-gray-500"})}),b.jsxs("p",{className:"text-sm text-gray-700",children:[t.metrics.lines_of_code||0," Lines of Code"]})]}),b.jsxs("li",{className:"flex items-center gap-2",children:[b.jsx("div",{className:"flex-shrink-0",children:b.jsx(JI,{className:"size-4 text-gray-500"})}),b.jsxs("p",{className:"text-sm text-gray-700",children:[t.metrics.cyclomatic_complexity||0," Cyclomatic Complexity"]})]}),b.jsxs("li",{className:"flex items-center gap-2",children:[b.jsx("div",{className:"flex-shrink-0",children:b.jsx(eR,{className:"size-4 text-gray-500"})}),b.jsxs("p",{className:"text-sm text-gray-700",children:[t.metrics.todo_locations?Object.keys(t.metrics.todo_locations).length:0," TODO Comments"]})]})]}),b.jsx("div",{className:"space-y-4 mb-6",children:b.jsxs("div",{children:[b.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-3",children:"Teams"}),b.jsx("ul",{className:"flex flex-col gap-y-1",children:t.assignments.teams?t.assignments.teams.map(l=>b.jsxs("li",{className:"text-sm text-gray-700 flex gap-2",children:[b.jsx("div",{className:"flex items-center justify-center flex-shrink-0",children:b.jsx(Hi,{className:"size-4 text-gray-500"})}),l]},l)):b.jsxs("li",{className:"text-sm text-gray-700 flex gap-2",children:[b.jsx("div",{className:"flex items-center justify-center flex-shrink-0",children:b.jsx(Hi,{className:"size-4 text-gray-500"})}),b.jsx("span",{className:"text-gray-400 italic text-sm",children:"No teams assigned"})]})})]})}),b.jsxs("div",{className:"mb",children:[b.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-3",children:"Resources"}),b.jsxs("ul",{className:"mb-6 space-y-2",children:[b.jsxs("li",{className:"flex items-center gap-2",children:[b.jsx("div",{className:"flex-shrink-0",children:b.jsx(oh,{className:"size-4 text-gray-500"})}),b.jsx("a",{href:a,target:"_blank",className:"text-sm text-gray-700 hover:underline",children:"Feature Pull Requests"})]}),b.jsxs("li",{className:"flex items-center gap-2",children:[b.jsx("div",{className:"flex-shrink-0",children:b.jsx(oh,{className:"size-4 text-gray-500"})}),t.documentation_link?b.jsx("a",{href:t.documentation_link,target:"_blank",className:"text-sm text-gray-700 hover:underline",children:"Feature Documentation"}):b.jsx("span",{className:"text-gray-400 italic text-sm",children:"Missing documentation link"})]}),b.jsxs("li",{className:"flex items-center gap-2",children:[b.jsx("div",{className:"flex-shrink-0",children:b.jsx(oh,{className:"size-4 text-gray-500"})}),t.dashboard_link?b.jsx("a",{href:t.dashboard_link,target:"_blank",className:"text-sm text-gray-700 hover:underline",children:"New Relic Dashboard"}):b.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 b.jsxs("div",{className:"relative h-20 w-20",children:[b.jsxs("svg",{className:"h-full w-full -rotate-90",viewBox:"0 0 36 36",children:[b.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"}),b.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`})]}),b.jsxs("div",{className:"absolute inset-0 flex items-center justify-center",children:[b.jsx("span",{className:"text-2xl font-bold",children:Math.round(e)}),b.jsx("span",{className:"text-sm",children:t})]})]})},IO=({children:e,title:t,value:n,suffix:r="",icon:i,tooltip:o,color:a})=>b.jsxs("div",{className:"flex flex-col gap-6 px-4 py-6 border border-gray-200 shadow-sm bg-white rounded-lg",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[b.jsx("div",{className:"flex-shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:i}),b.jsx("span",{className:"flex pl-2",children:t})]}),o&&b.jsxs(au,{children:[b.jsx(Fa,{children:b.jsx(ai,{className:"size-4 text-gray-400"})}),b.jsx(Ba,{children:o})]})]}),b.jsxs("div",{className:"flex items-center gap-4",children:[b.jsx(Rce,{value:n,suffix:r,color:a}),b.jsx("div",{className:"flex flex-col flex-1",children:e})]})]});var Lce={value:()=>{}};function fC(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new gc(n)}function gc(e){this._=e}function Dce(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}gc.prototype=fC.prototype={constructor:gc,on:function(e,t){var n=this._,r=Dce(e+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o<a;)if((i=(e=r[o]).type)&&(i=Fce(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<a;)if(i=(e=r[o]).type)n[i]=RO(n[i],e.name,t);else if(t==null)for(i in n)n[i]=RO(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new gc(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],r=0,i=o.length;r<i;++r)o[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};function Fce(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function RO(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Lce,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var Ng="http://www.w3.org/1999/xhtml";const LO={svg:"http://www.w3.org/2000/svg",xhtml:Ng,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function $p(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),LO.hasOwnProperty(t)?{space:LO[t],local:e}:e}function Bce(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Ng&&t.documentElement.namespaceURI===Ng?t.createElement(e):t.createElementNS(n,e)}}function zce(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function dC(e){var t=$p(e);return(t.local?zce:Bce)(t)}function Uce(){}function Sx(e){return e==null?Uce:function(){return this.querySelector(e)}}function Hce(e){typeof e!="function"&&(e=Sx(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],a=o.length,l=r[i]=new Array(a),s,u,c=0;c<a;++c)(s=o[c])&&(u=e.call(s,s.__data__,c,o))&&("__data__"in s&&(u.__data__=s.__data__),l[c]=u);return new Ht(r,this._parents)}function Wce(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Vce(){return[]}function pC(e){return e==null?Vce:function(){return this.querySelectorAll(e)}}function Kce(e){return function(){return Wce(e.apply(this,arguments))}}function qce(e){typeof e=="function"?e=Kce(e):e=pC(e);for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a=t[o],l=a.length,s,u=0;u<l;++u)(s=a[u])&&(r.push(e.call(s,s.__data__,u,a)),i.push(s));return new Ht(r,i)}function hC(e){return function(){return this.matches(e)}}function mC(e){return function(t){return t.matches(e)}}var Gce=Array.prototype.find;function Xce(e){return function(){return Gce.call(this.children,e)}}function Yce(){return this.firstElementChild}function Qce(e){return this.select(e==null?Yce:Xce(typeof e=="function"?e:mC(e)))}var Zce=Array.prototype.filter;function Jce(){return Array.from(this.children)}function efe(e){return function(){return Zce.call(this.children,e)}}function tfe(e){return this.selectAll(e==null?Jce:efe(typeof e=="function"?e:mC(e)))}function nfe(e){typeof e!="function"&&(e=hC(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],a=o.length,l=r[i]=[],s,u=0;u<a;++u)(s=o[u])&&e.call(s,s.__data__,u,o)&&l.push(s);return new Ht(r,this._parents)}function vC(e){return new Array(e.length)}function rfe(){return new Ht(this._enter||this._groups.map(vC),this._parents)}function Qf(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Qf.prototype={constructor:Qf,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function ife(e){return function(){return e}}function ofe(e,t,n,r,i,o){for(var a=0,l,s=t.length,u=o.length;a<u;++a)(l=t[a])?(l.__data__=o[a],r[a]=l):n[a]=new Qf(e,o[a]);for(;a<s;++a)(l=t[a])&&(i[a]=l)}function afe(e,t,n,r,i,o,a){var l,s,u=new Map,c=t.length,f=o.length,d=new Array(c),p;for(l=0;l<c;++l)(s=t[l])&&(d[l]=p=a.call(s,s.__data__,l,t)+"",u.has(p)?i[l]=s:u.set(p,s));for(l=0;l<f;++l)p=a.call(e,o[l],l,o)+"",(s=u.get(p))?(r[l]=s,s.__data__=o[l],u.delete(p)):n[l]=new Qf(e,o[l]);for(l=0;l<c;++l)(s=t[l])&&u.get(d[l])===s&&(i[l]=s)}function lfe(e){return e.__data__}function sfe(e,t){if(!arguments.length)return Array.from(this,lfe);var n=t?afe:ofe,r=this._parents,i=this._groups;typeof e!="function"&&(e=ife(e));for(var o=i.length,a=new Array(o),l=new Array(o),s=new Array(o),u=0;u<o;++u){var c=r[u],f=i[u],d=f.length,p=ufe(e.call(c,c&&c.__data__,u,r)),m=p.length,v=l[u]=new Array(m),y=a[u]=new Array(m),h=s[u]=new Array(d);n(c,f,v,y,h,p,t);for(var g=0,x=0,O,w;g<m;++g)if(O=v[g]){for(g>=x&&(x=g+1);!(w=y[x])&&++x<m;);O._next=w||null}}return a=new Ht(a,r),a._enter=l,a._exit=s,a}function ufe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function cfe(){return new Ht(this._exit||this._groups.map(vC),this._parents)}function ffe(e,t,n){var r=this.enter(),i=this,o=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function dfe(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,a=Math.min(i,o),l=new Array(i),s=0;s<a;++s)for(var u=n[s],c=r[s],f=u.length,d=l[s]=new Array(f),p,m=0;m<f;++m)(p=u[m]||c[m])&&(d[m]=p);for(;s<i;++s)l[s]=n[s];return new Ht(l,this._parents)}function pfe(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,o=r[i],a;--i>=0;)(a=r[i])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function hfe(e){e||(e=mfe);function t(f,d){return f&&d?e(f.__data__,d.__data__):!f-!d}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a=n[o],l=a.length,s=i[o]=new Array(l),u,c=0;c<l;++c)(u=a[c])&&(s[c]=u);s.sort(t)}return new Ht(i,this._parents).order()}function mfe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function vfe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function gfe(){return Array.from(this)}function yfe(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null}function xfe(){let e=0;for(const t of this)++e;return e}function bfe(){return!this.node()}function wfe(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],o=0,a=i.length,l;o<a;++o)(l=i[o])&&e.call(l,l.__data__,o,i);return this}function Sfe(e){return function(){this.removeAttribute(e)}}function _fe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ofe(e,t){return function(){this.setAttribute(e,t)}}function Efe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function $fe(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Pfe(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function Afe(e,t){var n=$p(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?_fe:Sfe:typeof t=="function"?n.local?Pfe:$fe:n.local?Efe:Ofe)(n,t))}function gC(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Tfe(e){return function(){this.style.removeProperty(e)}}function jfe(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Cfe(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function kfe(e,t,n){return arguments.length>1?this.each((t==null?Tfe:typeof t=="function"?Cfe:jfe)(e,t,n??"")):ga(this.node(),e)}function ga(e,t){return e.style.getPropertyValue(t)||gC(e).getComputedStyle(e,null).getPropertyValue(t)}function Nfe(e){return function(){delete this[e]}}function Mfe(e,t){return function(){this[e]=t}}function Ife(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Rfe(e,t){return arguments.length>1?this.each((t==null?Nfe:typeof t=="function"?Ife:Mfe)(e,t)):this.node()[e]}function yC(e){return e.trim().split(/^|\s+/)}function _x(e){return e.classList||new xC(e)}function xC(e){this._node=e,this._names=yC(e.getAttribute("class")||"")}xC.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function bC(e,t){for(var n=_x(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function wC(e,t){for(var n=_x(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function Lfe(e){return function(){bC(this,e)}}function Dfe(e){return function(){wC(this,e)}}function Ffe(e,t){return function(){(t.apply(this,arguments)?bC:wC)(this,e)}}function Bfe(e,t){var n=yC(e+"");if(arguments.length<2){for(var r=_x(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?Ffe:t?Lfe:Dfe)(n,t))}function zfe(){this.textContent=""}function Ufe(e){return function(){this.textContent=e}}function Hfe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Wfe(e){return arguments.length?this.each(e==null?zfe:(typeof e=="function"?Hfe:Ufe)(e)):this.node().textContent}function Vfe(){this.innerHTML=""}function Kfe(e){return function(){this.innerHTML=e}}function qfe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Gfe(e){return arguments.length?this.each(e==null?Vfe:(typeof e=="function"?qfe:Kfe)(e)):this.node().innerHTML}function Xfe(){this.nextSibling&&this.parentNode.appendChild(this)}function Yfe(){return this.each(Xfe)}function Qfe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Zfe(){return this.each(Qfe)}function Jfe(e){var t=typeof e=="function"?e:dC(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function ede(){return null}function tde(e,t){var n=typeof e=="function"?e:dC(e),r=t==null?ede:typeof t=="function"?t:Sx(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function nde(){var e=this.parentNode;e&&e.removeChild(this)}function rde(){return this.each(nde)}function ide(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ode(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ade(e){return this.select(e?ode:ide)}function lde(e){return arguments.length?this.property("__data__",e):this.node().__data__}function sde(e){return function(t){e.call(this,t,this.__data__)}}function ude(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function cde(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,o;n<i;++n)o=t[n],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):t[++r]=o;++r?t.length=r:delete this.__on}}}function fde(e,t,n){return function(){var r=this.__on,i,o=sde(t);if(r){for(var a=0,l=r.length;a<l;++a)if((i=r[a]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=t;return}}this.addEventListener(e.type,o,n),i={type:e.type,name:e.name,value:t,listener:o,options:n},r?r.push(i):this.__on=[i]}}function dde(e,t,n){var r=ude(e+""),i,o=r.length,a;if(arguments.length<2){var l=this.node().__on;if(l){for(var s=0,u=l.length,c;s<u;++s)for(i=0,c=l[s];i<o;++i)if((a=r[i]).type===c.type&&a.name===c.name)return c.value}return}for(l=t?fde:cde,i=0;i<o;++i)this.each(l(r[i],t,n));return this}function SC(e,t,n){var r=gC(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function pde(e,t){return function(){return SC(this,e,t)}}function hde(e,t){return function(){return SC(this,e,t.apply(this,arguments))}}function mde(e,t){return this.each((typeof t=="function"?hde:pde)(e,t))}function*vde(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length,a;i<o;++i)(a=r[i])&&(yield a)}var _C=[null];function Ht(e,t){this._groups=e,this._parents=t}function du(){return new Ht([[document.documentElement]],_C)}function gde(){return this}Ht.prototype=du.prototype={constructor:Ht,select:Hce,selectAll:qce,selectChild:Qce,selectChildren:tfe,filter:nfe,data:sfe,enter:rfe,exit:cfe,join:ffe,merge:dfe,selection:gde,order:pfe,sort:hfe,call:vfe,nodes:gfe,node:yfe,size:xfe,empty:bfe,each:wfe,attr:Afe,style:kfe,property:Rfe,classed:Bfe,text:Wfe,html:Gfe,raise:Yfe,lower:Zfe,append:Jfe,insert:tde,remove:rde,clone:ade,datum:lde,on:dde,dispatch:mde,[Symbol.iterator]:vde};function yde(e){return typeof e=="string"?new Ht([[document.querySelector(e)]],[document.documentElement]):new Ht([[e]],_C)}var ya=0,gl=0,sl=0,OC=1e3,Zf,yl,Jf=0,Yi=0,Pp=0,Ls=typeof performance=="object"&&performance.now?performance:Date,EC=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Ox(){return Yi||(EC(xde),Yi=Ls.now()+Pp)}function xde(){Yi=0}function ed(){this._call=this._time=this._next=null}ed.prototype=$C.prototype={constructor:ed,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Ox():+n)+(t==null?0:+t),!this._next&&yl!==this&&(yl?yl._next=this:Zf=this,yl=this),this._call=e,this._time=n,Mg()},stop:function(){this._call&&(this._call=null,this._time=1/0,Mg())}};function $C(e,t,n){var r=new ed;return r.restart(e,t,n),r}function bde(){Ox(),++ya;for(var e=Zf,t;e;)(t=Yi-e._time)>=0&&e._call.call(void 0,t),e=e._next;--ya}function DO(){Yi=(Jf=Ls.now())+Pp,ya=gl=0;try{bde()}finally{ya=0,Sde(),Yi=0}}function wde(){var e=Ls.now(),t=e-Jf;t>OC&&(Pp-=t,Jf=e)}function Sde(){for(var e,t=Zf,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Zf=n);yl=e,Mg(r)}function Mg(e){if(!ya){gl&&(gl=clearTimeout(gl));var t=e-Yi;t>24?(e<1/0&&(gl=setTimeout(DO,e-Ls.now()-Pp)),sl&&(sl=clearInterval(sl))):(sl||(Jf=Ls.now(),sl=setInterval(wde,OC)),ya=1,EC(DO))}}function FO(e,t,n){var r=new ed;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var _de=fC("start","end","cancel","interrupt"),Ode=[],PC=0,BO=1,Ig=2,yc=3,zO=4,Rg=5,xc=6;function Ap(e,t,n,r,i,o){var a=e.__transition;if(!a)e.__transition={};else if(n in a)return;Ede(e,n,{name:t,index:r,group:i,on:_de,tween:Ode,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:PC})}function Ex(e,t){var n=kn(e,t);if(n.state>PC)throw new Error("too late; already scheduled");return n}function Qn(e,t){var n=kn(e,t);if(n.state>yc)throw new Error("too late; already running");return n}function kn(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Ede(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=$C(o,0,n.time);function o(u){n.state=BO,n.timer.restart(a,n.delay,n.time),n.delay<=u&&a(u-n.delay)}function a(u){var c,f,d,p;if(n.state!==BO)return s();for(c in r)if(p=r[c],p.name===n.name){if(p.state===yc)return FO(a);p.state===zO?(p.state=xc,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete r[c]):+c<t&&(p.state=xc,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete r[c])}if(FO(function(){n.state===yc&&(n.state=zO,n.timer.restart(l,n.delay,n.time),l(u))}),n.state=Ig,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Ig){for(n.state=yc,i=new Array(d=n.tween.length),c=0,f=-1;c<d;++c)(p=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++f]=p);i.length=f+1}}function l(u){for(var c=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(s),n.state=Rg,1),f=-1,d=i.length;++f<d;)i[f].call(e,c);n.state===Rg&&(n.on.call("end",e,e.__data__,n.index,n.group),s())}function s(){n.state=xc,n.timer.stop(),delete r[t];for(var u in r)return;delete e.__transition}}function $de(e,t){var n=e.__transition,r,i,o=!0,a;if(n){t=t==null?null:t+"";for(a in n){if((r=n[a]).name!==t){o=!1;continue}i=r.state>Ig&&r.state<Rg,r.state=xc,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[a]}o&&delete e.__transition}}function Pde(e){return this.each(function(){$de(this,e)})}function Ade(e,t){var n,r;return function(){var i=Qn(this,e),o=i.tween;if(o!==n){r=n=o;for(var a=0,l=r.length;a<l;++a)if(r[a].name===t){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function Tde(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=Qn(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var l={name:t,value:n},s=0,u=i.length;s<u;++s)if(i[s].name===t){i[s]=l;break}s===u&&i.push(l)}o.tween=i}}function jde(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=kn(this.node(),n).tween,i=0,o=r.length,a;i<o;++i)if((a=r[i]).name===e)return a.value;return null}return this.each((t==null?Ade:Tde)(n,e,t))}function $x(e,t,n){var r=e._id;return e.each(function(){var i=Qn(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return kn(i,r).value[t]}}function AC(e,t){var n;return(typeof t=="number"?bn:t instanceof Wi?cf:(n=Wi(t))?(t=n,cf):GA)(e,t)}function Cde(e){return function(){this.removeAttribute(e)}}function kde(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Nde(e,t,n){var r,i=n+"",o;return function(){var a=this.getAttribute(e);return a===i?null:a===r?o:o=t(r=a,n)}}function Mde(e,t,n){var r,i=n+"",o;return function(){var a=this.getAttributeNS(e.space,e.local);return a===i?null:a===r?o:o=t(r=a,n)}}function Ide(e,t,n){var r,i,o;return function(){var a,l=n(this),s;return l==null?void this.removeAttribute(e):(a=this.getAttribute(e),s=l+"",a===s?null:a===r&&s===i?o:(i=s,o=t(r=a,l)))}}function Rde(e,t,n){var r,i,o;return function(){var a,l=n(this),s;return l==null?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local),s=l+"",a===s?null:a===r&&s===i?o:(i=s,o=t(r=a,l)))}}function Lde(e,t){var n=$p(e),r=n==="transform"?y9:AC;return this.attrTween(e,typeof t=="function"?(n.local?Rde:Ide)(n,r,$x(this,"attr."+e,t)):t==null?(n.local?kde:Cde)(n):(n.local?Mde:Nde)(n,r,t))}function Dde(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Fde(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Bde(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&Fde(e,o)),n}return i._value=t,i}function zde(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&Dde(e,o)),n}return i._value=t,i}function Ude(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=$p(e);return this.tween(n,(r.local?Bde:zde)(r,t))}function Hde(e,t){return function(){Ex(this,e).delay=+t.apply(this,arguments)}}function Wde(e,t){return t=+t,function(){Ex(this,e).delay=t}}function Vde(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Hde:Wde)(t,e)):kn(this.node(),t).delay}function Kde(e,t){return function(){Qn(this,e).duration=+t.apply(this,arguments)}}function qde(e,t){return t=+t,function(){Qn(this,e).duration=t}}function Gde(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Kde:qde)(t,e)):kn(this.node(),t).duration}function Xde(e,t){if(typeof t!="function")throw new Error;return function(){Qn(this,e).ease=t}}function Yde(e){var t=this._id;return arguments.length?this.each(Xde(t,e)):kn(this.node(),t).ease}function Qde(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Qn(this,e).ease=n}}function Zde(e){if(typeof e!="function")throw new Error;return this.each(Qde(this._id,e))}function Jde(e){typeof e!="function"&&(e=hC(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],a=o.length,l=r[i]=[],s,u=0;u<a;++u)(s=o[u])&&e.call(s,s.__data__,u,o)&&l.push(s);return new Pr(r,this._parents,this._name,this._id)}function epe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),l=0;l<o;++l)for(var s=t[l],u=n[l],c=s.length,f=a[l]=new Array(c),d,p=0;p<c;++p)(d=s[p]||u[p])&&(f[p]=d);for(;l<r;++l)a[l]=t[l];return new Pr(a,this._parents,this._name,this._id)}function tpe(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function npe(e,t,n){var r,i,o=tpe(t)?Ex:Qn;return function(){var a=o(this,e),l=a.on;l!==r&&(i=(r=l).copy()).on(t,n),a.on=i}}function rpe(e,t){var n=this._id;return arguments.length<2?kn(this.node(),n).on.on(e):this.each(npe(n,e,t))}function ipe(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function ope(){return this.on("end.remove",ipe(this._id))}function ape(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Sx(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var l=r[a],s=l.length,u=o[a]=new Array(s),c,f,d=0;d<s;++d)(c=l[d])&&(f=e.call(c,c.__data__,d,l))&&("__data__"in c&&(f.__data__=c.__data__),u[d]=f,Ap(u[d],t,n,d,u,kn(c,n)));return new Pr(o,this._parents,t,n)}function lpe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=pC(e));for(var r=this._groups,i=r.length,o=[],a=[],l=0;l<i;++l)for(var s=r[l],u=s.length,c,f=0;f<u;++f)if(c=s[f]){for(var d=e.call(c,c.__data__,f,s),p,m=kn(c,n),v=0,y=d.length;v<y;++v)(p=d[v])&&Ap(p,t,n,v,d,m);o.push(d),a.push(c)}return new Pr(o,a,t,n)}var spe=du.prototype.constructor;function upe(){return new spe(this._groups,this._parents)}function cpe(e,t){var n,r,i;return function(){var o=ga(this,e),a=(this.style.removeProperty(e),ga(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}function TC(e){return function(){this.style.removeProperty(e)}}function fpe(e,t,n){var r,i=n+"",o;return function(){var a=ga(this,e);return a===i?null:a===r?o:o=t(r=a,n)}}function dpe(e,t,n){var r,i,o;return function(){var a=ga(this,e),l=n(this),s=l+"";return l==null&&(s=l=(this.style.removeProperty(e),ga(this,e))),a===s?null:a===r&&s===i?o:(i=s,o=t(r=a,l))}}function ppe(e,t){var n,r,i,o="style."+t,a="end."+o,l;return function(){var s=Qn(this,e),u=s.on,c=s.value[o]==null?l||(l=TC(t)):void 0;(u!==n||i!==c)&&(r=(n=u).copy()).on(a,i=c),s.on=r}}function hpe(e,t,n){var r=(e+="")=="transform"?g9:AC;return t==null?this.styleTween(e,cpe(e,r)).on("end.style."+e,TC(e)):typeof t=="function"?this.styleTween(e,dpe(e,r,$x(this,"style."+e,t))).each(ppe(this._id,e)):this.styleTween(e,fpe(e,r,t),n).on("end.style."+e,null)}function mpe(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function vpe(e,t,n){var r,i;function o(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&mpe(e,a,n)),r}return o._value=t,o}function gpe(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,vpe(e,t,n??""))}function ype(e){return function(){this.textContent=e}}function xpe(e){return function(){var t=e(this);this.textContent=t??""}}function bpe(e){return this.tween("text",typeof e=="function"?xpe($x(this,"text",e)):ype(e==null?"":e+""))}function wpe(e){return function(t){this.textContent=e.call(this,t)}}function Spe(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&wpe(i)),t}return r._value=e,r}function _pe(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,Spe(e))}function Ope(){for(var e=this._name,t=this._id,n=jC(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],l=a.length,s,u=0;u<l;++u)if(s=a[u]){var c=kn(s,t);Ap(s,e,n,u,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Pr(r,this._parents,e,n)}function Epe(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(o,a){var l={value:a},s={value:function(){--i===0&&o()}};n.each(function(){var u=Qn(this,r),c=u.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(l),t._.interrupt.push(l),t._.end.push(s)),u.on=t}),i===0&&o()})}var $pe=0;function Pr(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function jC(){return++$pe}var Jn=du.prototype;Pr.prototype={constructor:Pr,select:ape,selectAll:lpe,selectChild:Jn.selectChild,selectChildren:Jn.selectChildren,filter:Jde,merge:epe,selection:upe,transition:Ope,call:Jn.call,nodes:Jn.nodes,node:Jn.node,size:Jn.size,empty:Jn.empty,each:Jn.each,on:rpe,attr:Lde,attrTween:Ude,style:hpe,styleTween:gpe,text:bpe,textTween:_pe,remove:ope,tween:jde,delay:Vde,duration:Gde,ease:Yde,easeVarying:Zde,end:Epe,[Symbol.iterator]:Jn[Symbol.iterator]};function Ppe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Ape={time:null,delay:0,duration:250,ease:Ppe};function Tpe(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function jpe(e){var t,n;e instanceof Pr?(t=e._id,e=e._name):(t=jC(),(n=Ape).time=Ox(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],l=a.length,s,u=0;u<l;++u)(s=a[u])&&Ap(s,e,t,u,a,n||Tpe(s,t));return new Pr(r,this._parents,e,t)}du.prototype.interrupt=Pde;du.prototype.transition=jpe;function Cpe(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function kpe(){return this.eachAfter(Cpe)}function Npe(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this}function Mpe(e,t){for(var n=this,r=[n],i,o,a=-1;n=r.pop();)if(e.call(t,n,++a,this),i=n.children)for(o=i.length-1;o>=0;--o)r.push(i[o]);return this}function Ipe(e,t){for(var n=this,r=[n],i=[],o,a,l,s=-1;n=r.pop();)if(i.push(n),o=n.children)for(a=0,l=o.length;a<l;++a)r.push(o[a]);for(;n=i.pop();)e.call(t,n,++s,this);return this}function Rpe(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r}function Lpe(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function Dpe(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function Fpe(e){for(var t=this,n=Bpe(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function Bpe(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function zpe(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Upe(){return Array.from(this)}function Hpe(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function Wpe(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*Vpe(){var e=this,t,n=[e],r,i,o;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,o=r.length;i<o;++i)n.push(r[i]);while(n.length)}function Px(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=Gpe)):t===void 0&&(t=qpe);for(var n=new td(e),r,i=[n],o,a,l,s;r=i.pop();)if((a=t(r.data))&&(s=(a=Array.from(a)).length))for(r.children=a,l=s-1;l>=0;--l)i.push(o=a[l]=new td(a[l])),o.parent=r,o.depth=r.depth+1;return n.eachBefore(Ype)}function Kpe(){return Px(this).eachBefore(Xpe)}function qpe(e){return e.children}function Gpe(e){return Array.isArray(e)?e[1]:null}function Xpe(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function Ype(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function td(e){this.data=e,this.depth=this.height=0,this.parent=null}td.prototype=Px.prototype={constructor:td,count:kpe,each:Npe,eachAfter:Ipe,eachBefore:Mpe,find:Rpe,sum:Lpe,sort:Dpe,path:Fpe,ancestors:zpe,descendants:Upe,leaves:Hpe,links:Wpe,copy:Kpe,[Symbol.iterator]:Vpe};function Qpe(e){if(typeof e!="function")throw new Error;return e}function ul(){return 0}function cl(e){return function(){return e}}function Zpe(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Jpe(e,t,n,r,i){for(var o=e.children,a,l=-1,s=o.length,u=e.value&&(r-t)/e.value;++l<s;)a=o[l],a.y0=n,a.y1=i,a.x0=t,a.x1=t+=a.value*u}function ehe(e,t,n,r,i){for(var o=e.children,a,l=-1,s=o.length,u=e.value&&(i-n)/e.value;++l<s;)a=o[l],a.x0=t,a.x1=r,a.y0=n,a.y1=n+=a.value*u}var the=(1+Math.sqrt(5))/2;function nhe(e,t,n,r,i,o){for(var a=[],l=t.children,s,u,c=0,f=0,d=l.length,p,m,v=t.value,y,h,g,x,O,w,_;c<d;){p=i-n,m=o-r;do y=l[f++].value;while(!y&&f<d);for(h=g=y,w=Math.max(m/p,p/m)/(v*e),_=y*y*w,O=Math.max(g/_,_/h);f<d;++f){if(y+=u=l[f].value,u<h&&(h=u),u>g&&(g=u),_=y*y*w,x=Math.max(g/_,_/h),x>O){y-=u;break}O=x}a.push(s={value:y,dice:p<m,children:l.slice(c,f)}),s.dice?Jpe(s,n,r,i,v?r+=m*y/v:o):ehe(s,n,r,v?n+=p*y/v:i,o),v-=y,c=f}return a}const rhe=function e(t){function n(r,i,o,a,l){nhe(t,r,i,o,a,l)}return n.ratio=function(r){return e((r=+r)>1?r:1)},n}(the);function ihe(){var e=rhe,t=!1,n=1,r=1,i=[0],o=ul,a=ul,l=ul,s=ul,u=ul;function c(d){return d.x0=d.y0=0,d.x1=n,d.y1=r,d.eachBefore(f),i=[0],t&&d.eachBefore(Zpe),d}function f(d){var p=i[d.depth],m=d.x0+p,v=d.y0+p,y=d.x1-p,h=d.y1-p;y<m&&(m=y=(m+y)/2),h<v&&(v=h=(v+h)/2),d.x0=m,d.y0=v,d.x1=y,d.y1=h,d.children&&(p=i[d.depth+1]=o(d)/2,m+=u(d)-p,v+=a(d)-p,y-=l(d)-p,h-=s(d)-p,y<m&&(m=y=(m+y)/2),h<v&&(v=h=(v+h)/2),e(d,m,v,y,h))}return c.round=function(d){return arguments.length?(t=!!d,c):t},c.size=function(d){return arguments.length?(n=+d[0],r=+d[1],c):[n,r]},c.tile=function(d){return arguments.length?(e=Qpe(d),c):e},c.padding=function(d){return arguments.length?c.paddingInner(d).paddingOuter(d):c.paddingInner()},c.paddingInner=function(d){return arguments.length?(o=typeof d=="function"?d:cl(+d),c):o},c.paddingOuter=function(d){return arguments.length?c.paddingTop(d).paddingRight(d).paddingBottom(d).paddingLeft(d):c.paddingTop()},c.paddingTop=function(d){return arguments.length?(a=typeof d=="function"?d:cl(+d),c):a},c.paddingRight=function(d){return arguments.length?(l=typeof d=="function"?d:cl(+d),c):l},c.paddingBottom=function(d){return arguments.length?(s=typeof d=="function"?d:cl(+d),c):s},c.paddingLeft=function(d){return arguments.length?(u=typeof d=="function"?d:cl(+d),c):u},c}function xl(e,t,n){this.k=e,this.x=t,this.y=n}xl.prototype={constructor:xl,scale:function(e){return e===1?this:new xl(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new xl(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};xl.prototype;const ohe=({files:e})=>{const t=S.useRef(null),n=S.useRef(null);return S.useEffect(()=>{if(!(e!=null&&e.length)||!t.current)return;const r=t.current,i=r.clientWidth,o=r.clientHeight,a=yde(n.current);a.selectAll("*").remove(),a.attr("viewBox",`0 0 ${i} ${o}`).attr("preserveAspectRatio","xMidYMid meet");const l={top:10,right:10,bottom:10,left:10},s=()=>{const y={name:"root",children:{}};e.forEach(g=>{const x=g.split("/").filter(Boolean);let O=y;x.forEach((w,_)=>{_===x.length-1?O.children[w]||(O.children[w]={name:w,value:1,type:"file"}):(O.children[w]||(O.children[w]={name:w,children:{},type:"directory"}),O=O.children[w])})});const h=g=>g.type==="file"?g:{...g,children:Object.values(g.children).map(h)};return h(y)},u=y=>y.data.type==="file"?"#eff6ff":y.data.name==="src"||y.depth===1?"#3b82f6":y.depth===2?"#60a5fa":"#93c5fd",c=ihe().size([i,o]).paddingOuter(8).paddingTop(24).paddingInner(4).round(!0),f=Px(s()).sum(y=>y.value||0).sort((y,h)=>h.value-y.value);c(f);const d=a.append("g"),p=f.descendants().filter(y=>{var h;return y.data.name!=="root"&&(y.data.type==="file"||((h=y.children)==null?void 0:h.length)>0)}),m=d.selectAll("g").data(p).join("g").attr("transform",y=>`translate(${y.x0},${y.y0})`);m.append("rect").attr("width",y=>y.x1-y.x0).attr("height",y=>y.y1-y.y0).attr("fill",u).attr("stroke",y=>y.data.type==="file"?"#eff6ff":"transparent").attr("stroke-width",y=>y.data.type==="file"?1:2).attr("rx",2).attr("ry",2),m.filter(y=>y.data.type==="directory").append("text").attr("x",4).attr("y",16).attr("fill","#37474f").attr("font-weight",600).attr("font-size","10px").text(y=>{const h=y.x1-y.x0,g=y.data.name;return h<40?"":g.length>12?g.slice(0,10)+"...":g}),m.filter(y=>y.data.type==="file").append("text").attr("x",y=>(y.x1-y.x0)/2).attr("y",y=>(y.y1-y.y0)/2).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("fill","#666666").attr("font-size","9px").text(y=>{const h=y.x1-y.x0,g=y.y1-y.y0;if(h<40||g<25)return"";const x=y.data.name;return x.length>20?x.slice(0,10)+"...":x});const v=()=>{const y=r.clientWidth,h=r.clientHeight;a.attr("viewBox",`0 0 ${y} ${h}`),c.size([y-l.left-l.right,h-l.top-l.bottom]),c(f),m.attr("transform",g=>`translate(${g.x0},${g.y0})`),m.select("rect").attr("width",g=>g.x1-g.x0).attr("height",g=>g.y1-g.y0),m.select("text").attr("x",g=>g.data.type==="file"?(g.x1-g.x0)/2:4).attr("y",g=>g.data.type==="file"?(g.y1-g.y0)/2:16).text(g=>{const x=g.x1-g.x0,O=g.y1-g.y0,w=g.data.name;return g.data.type==="file"?x<40||O<25?"":w.length>12?w.slice(0,10)+"...":w:x<40?"":w.length>12?w.slice(0,10)+"...":w})};return window.addEventListener("resize",v),()=>{window.removeEventListener("resize",v)}},[e]),b.jsx("div",{className:"flex flex-col h-full -mt-2 py-2 px-2",children:b.jsx("div",{className:"flex-1 relative min-h-0",ref:t,children:b.jsx("svg",{ref:n,className:"absolute inset-0 w-full h-full"})})})};function ahe({features:e}){const{name:t}=UM(),n=e[t];if(!n)return b.jsx("div",{className:"max-w-7xl mx-auto p-4 md:p-8",children:b.jsxs("div",{className:"bg-white rounded-lg shadow p-6",children:[b.jsx("h1",{className:"text-xl font-bold text-red-600",children:"Feature Not Found"}),b.jsxs("p",{className:"mt-2",children:["Could not find feature: ",t]}),b.jsx(fr,{to:"/",className:"text-blue-600 hover:text-blue-800 mt-4 inline-block",children:"← Back to Features"})]})});const r=n.metrics.health.overall,i=n.metrics.featureSize.percentOfMax,o=Ns(i);return b.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:[b.jsx("div",{className:"mb-8",children:b.jsx(fr,{to:"/",className:"text-gray-600 hover:text-blue-800 block text-sm font-normal",children:"← Back to Dashboard"})}),b.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-8",children:[b.jsx("div",{className:"col-span-1 lg:col-span-3",children:b.jsx(Ice,{name:t,feature:n})}),b.jsxs("div",{className:"col-span-1 lg:col-span-9",children:[b.jsxs("div",{className:"grid md:grid-cols-3 gap-4 mb-8",children:[b.jsx(IO,{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:b.jsx(Dy,{}),color:bt(r).hex,children:b.jsxs("ul",{className:"flex flex-col gap-y-1",children:[b.jsxs("li",{className:"text-xs text-gray-500",children:["Coverage: ",n.metrics.health.testCoverageComponent.healthScore.toFixed(0)," / ",n.metrics.health.testCoverageComponent.awardablePoints]}),b.jsxs("li",{className:"text-xs text-gray-500",children:["Complexity: ",n.metrics.health.cyclomaticComplexityComponent.healthScore.toFixed(0)," / ",n.metrics.health.cyclomaticComplexityComponent.awardablePoints]}),b.jsxs("li",{className:"text-xs text-gray-500",children:["Encapsulation: ",n.metrics.health.encapsulationComponent.healthScore.toFixed(0)," / ",n.metrics.health.encapsulationComponent.awardablePoints]})]})}),b.jsx(IO,{title:"Test Coverage",value:n.metrics.testCoverage.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:b.jsx(Ly,{}),color:xt(n.metrics.testCoverage.score).hex,children:b.jsxs("ul",{className:"flex flex-col gap-y-1",children:[b.jsxs("li",{className:"text-xs text-gray-500",children:["Hits: ",n.test_coverage?n.test_coverage.hits:0]}),b.jsxs("li",{className:"text-xs text-gray-500",children:["Lines: ",n.test_coverage?n.test_coverage.lines:0]}),b.jsxs("li",{className:"text-xs text-gray-500",children:["Misses: ",n.test_coverage?n.test_coverage.misses:0]})]})}),b.jsxs("div",{className:"flex flex-col gap-6 px-4 py-6 border border-gray-200 shadow-sm bg-white rounded-lg",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[b.jsx("div",{className:"flex-shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:b.jsx(yP,{})}),b.jsx("span",{className:"flex pl-2",children:"Feature Size"})]}),b.jsxs(au,{children:[b.jsx(Fa,{children:b.jsx(ai,{className:"size-4 text-gray-400"})}),b.jsx(Ba,{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."})]})]}),b.jsxs("div",{className:"flex items-center gap-4",children:[b.jsx("div",{className:"relative h-20 flex items-center",children:b.jsx("div",{className:"text-2xl font-bold uppercase",children:ma(i)})}),b.jsx("div",{className:"flex flex-col gap-y-2",children:b.jsx("div",{className:"flex gap-1.5 items-center",children:[1,2,3,4,5].map(a=>b.jsx("div",{className:`h-6 w-1.5 rounded ${a<=o?"bg-blue-500":"bg-gray-300"}`},a))})}),b.jsxs("div",{children:[b.jsxs("div",{className:"text-[10px] text-gray-500",children:[n.assignments.files?n.assignments.files.length:0," files"]}),b.jsxs("div",{className:"text-[10px] text-gray-500",children:[_oe(n.metrics.lines_of_code)," lines"]})]})]})]})]}),n.assignments.files&&n.assignments.files.length>0?b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"h-[600px] bg-white rounded-lg border border-gray-200 shadow-sm mb-8",children:b.jsx(ohe,{files:n.assignments.files})}),b.jsx(Mce,{files:n.assignments.files})]}):b.jsx("div",{className:"h-[300px] bg-white rounded-lg border border-gray-200 shadow-sm mb-8",children:b.jsx("div",{className:"flex items-center justify-center h-full text-gray-500",children:"No files found for this feature"})})]})]})]})}function lhe(){const{features:e}=oi,t=qI({features:e}),n=ii();return S.useEffect(()=>{window.scrollTo(0,0)},[n]),b.jsxs(rI,{children:[b.jsx(fc,{path:"",element:b.jsx(Pce,{features:t})}),b.jsx(fc,{path:"digest",element:b.jsx(Nce,{features:t})}),b.jsx(fc,{path:":name",element:b.jsx(ahe,{features:t})})]})}Yh.createRoot(document.getElementById("root")).render(b.jsx(j.StrictMode,{children:b.jsx(PI,{children:b.jsx(lhe,{})})}));
246
+ `))}else{let d=c.props,p=d==null?void 0:d.className,m=typeof p=="function"?(...h)=>pE(p(...h),s.className):pE(p,s.className),v=m?{className:m}:{},y=Dj(c.props,wi(Hh(s,["ref"])));for(let h in f)h in y&&delete f[h];return _.cloneElement(c,Object.assign({},y,f,u,{ref:i(jle(c),u.ref)},v))}return _.createElement(o,Object.assign({},Hh(s,["ref"]),o!==_.Fragment&&u,o!==_.Fragment&&f),c)}function Ale(){let e=_.useRef([]),t=_.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 Tle(...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 Dj(...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 xp(...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 ct(e){var t;return Object.assign(_.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function wi(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Hh(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function jle(e){return j.version.split(".")[0]>="19"?e.props.ref:e.ref}function Cle(e,t,n){let[r,i]=_.useState(n),o=e!==void 0,a=_.useRef(o),l=_.useRef(!1),s=_.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,de(u=>(o||i(u),t==null?void 0:t(u)))]}function kle(e){let[t]=_.useState(e);return t}function Fj(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))zj(n,Bj(t,r),i);return n}function Bj(e,t){return e?e+"["+t+"]":t}function zj(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())zj(e,Bj(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,""]):Fj(n,t,e)}function Nle(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 Mle="span";var bp=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(bp||{});function Ile(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 ut()({ourProps:o,theirProps:i,slot:{},defaultTag:Mle,name:"Hidden"})}let ox=ct(Ile),Uj=_.createContext(null);function Rle(e){let[t,n]=_.useState(null);return j.createElement(Uj.Provider,{value:{target:t}},e.children,j.createElement(ox,{features:bp.Hidden,ref:n}))}function Lle({children:e}){let t=_.useContext(Uj);if(!t)return j.createElement(j.Fragment,null,e);let{target:n}=t;return n?Bt.createPortal(j.createElement(j.Fragment,null,e),n):null}function Dle({data:e,form:t,disabled:n,onReset:r,overrides:i}){let[o,a]=_.useState(null),l=uu();return _.useEffect(()=>{if(r&&o)return l.addEventListener(o,"reset",r)},[o,t,r]),j.createElement(Lle,null,j.createElement(Fle,{setForm:a,formId:t}),Fj(e).map(([s,u])=>j.createElement(ox,{features:bp.Hidden,...wi({key:s,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:s,value:u,...i})})))}function Fle({setForm:e,formId:t}){return _.useEffect(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:j.createElement(ox,{features:bp.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let r=n.closest("form");r&&e(r)}})}let Hj=_.createContext(void 0);function Wj(){return _.useContext(Hj)}function Ble({id:e,children:t}){return j.createElement(Hj.Provider,{value:e},t)}function ax(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&&zle(n)?!1:r}function zle(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let Vj=Symbol();function Ule(e,t=!0){return Object.assign(e,{[Vj]:t})}function hn(...e){let t=_.useRef(e);_.useEffect(()=>{t.current=e},[e]);let n=de(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[Vj]))?void 0:n}let wp=_.createContext(null);wp.displayName="DescriptionContext";function Kj(){let e=_.useContext(wp);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,Kj),t}return e}function Hle(){var e,t;return(t=(e=_.useContext(wp))==null?void 0:e.value)!=null?t:void 0}function _p(){let[e,t]=_.useState([]);return[e.length>0?e.join(" "):void 0,_.useMemo(()=>function(n){let r=de(o=>(t(a=>[...a,o]),()=>t(a=>{let l=a.slice(),s=l.indexOf(o);return s!==-1&&l.splice(s,1),l}))),i=_.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(wp.Provider,{value:i},n.children)},[t])]}let Wle="p";function Vle(e,t){let n=_.useId(),r=cu(),{id:i=`headlessui-description-${n}`,...o}=e,a=Kj(),l=hn(t);De(()=>a.register(i),[i,a.register]);let s=r||!1,u=_.useMemo(()=>({...a.slot,disabled:s}),[a.slot,s]),c={ref:l,...a.props,id:i};return ut()({ourProps:c,theirProps:o,slot:u,defaultTag:Wle,name:a.name||"Description"})}let Kle=ct(Vle),qle=Object.assign(Kle,{});var Ce=(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))(Ce||{});let Sp=_.createContext(null);Sp.displayName="LabelContext";function lx(){let e=_.useContext(Sp);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,lx),t}return e}function qj(e){var t,n,r;let i=(n=(t=_.useContext(Sp))==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=qj(),[n,r]=_.useState([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,_.useMemo(()=>function(o){let a=de(s=>(r(u=>[...u,s]),()=>r(u=>{let c=u.slice(),f=c.indexOf(s);return f!==-1&&c.splice(f,1),c}))),l=_.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(Sp.Provider,{value:l},o.children)},[r])]}let Gle="label";function Xle(e,t){var n;let r=_.useId(),i=lx(),o=Wj(),a=cu(),{id:l=`headlessui-label-${r}`,htmlFor:s=o??((n=i.props)==null?void 0:n.htmlFor),passive:u=!1,...c}=e,f=hn(t);De(()=>i.register(l),[l,i.register]);let d=de(y=>{let h=y.currentTarget;if(h instanceof HTMLLabelElement&&y.preventDefault(),i.props&&"onClick"in i.props&&typeof i.props.onClick=="function"&&i.props.onClick(y),h instanceof HTMLLabelElement){let g=document.getElementById(h.htmlFor);if(g){let x=g.getAttribute("disabled");if(x==="true"||x==="")return;let E=g.getAttribute("aria-disabled");if(E==="true"||E==="")return;(g instanceof HTMLInputElement&&(g.type==="radio"||g.type==="checkbox")||g.role==="radio"||g.role==="checkbox"||g.role==="switch")&&g.click(),g.focus({preventScroll:!0})}}}),p=a||!1,m=_.useMemo(()=>({...i.slot,disabled:p}),[i.slot,p]),v={ref:f,...i.props,id:l,htmlFor:s,onClick:d};return u&&("onClick"in v&&(delete v.htmlFor,delete v.onClick),"onClick"in c&&delete c.onClick),ut()({ourProps:v,theirProps:c,slot:m,defaultTag:s?Gle:"div",name:i.name||"Label"})}let Yle=ct(Xle),Qle=Object.assign(Yle,{});function Zle(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 Jle(e=Zle){return _.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 ese(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function tse(e,t=!1){let[n,r]=_.useReducer(()=>({}),{}),i=_.useMemo(()=>ese(e),[e,n]);return De(()=>{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 nse=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 Gj(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 Xj(e){return _.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}let rse=new nse(()=>Gj(()=>[],{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 sx(e,t){let n=rse.get(t),r=_.useId(),i=Xj(n);if(De(()=>{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 $g=new Map,Il=new Map;function hE(e){var t;let n=(t=Il.get(e))!=null?t:0;return Il.set(e,n+1),n!==0?()=>mE(e):($g.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>mE(e))}function mE(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=$g.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,$g.delete(e))}function ise(e,{allowed:t,disallowed:n}={}){let r=sx(e,"inert-others");De(()=>{var i,o;if(!r)return;let a=Yn();for(let s of(i=n==null?void 0:n())!=null?i:[])s&&a.add(hE(s));let l=(o=t==null?void 0:t())!=null?o:[];for(let s of l){if(!s)continue;let u=io(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(hE(f));c=c.parentElement}}return a.dispose},[r,t,n])}function ose(e,t,n){let r=oo(i=>{let o=i.getBoundingClientRect();o.x===0&&o.y===0&&o.width===0&&o.height===0&&n()});_.useEffect(()=>{if(!e)return;let i=t===null?null:t instanceof HTMLElement?t:t.current;if(!i)return;let o=Yn();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 Pg=["[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(","),ase=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var ji=(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))(ji||{}),Ag=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Ag||{}),lse=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(lse||{});function Yj(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Pg)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function sse(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(ase)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var ux=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(ux||{});function cx(e,t=0){var n;return e===((n=io(e))==null?void 0:n.body)?!1:za(t,{0(){return e.matches(Pg)},1(){let r=e;for(;r!==null;){if(r.matches(Pg))return!0;r=r.parentElement}return!1}})}function Qj(e){let t=io(e);Yn().nextFrame(()=>{t&&!cx(t.activeElement,0)&&cse(e)})}var use=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(use||{});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 cse(e){e==null||e.focus({preventScroll:!0})}let fse=["textarea","input"].join(",");function dse(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,fse))!=null?n:!1}function fx(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 pse(e,t){return Tg(Yj(),t,{relativeTo:e})}function Tg(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?fx(e):e:t&64?sse(e):Yj(e);i.length>0&&a.length>1&&(a=a.filter(p=>!i.some(m=>m!=null&&"current"in m?(m==null?void 0:m.current)===p:m===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&&dse(d)&&d.select(),2}function Zj(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function hse(){return/Android/gi.test(window.navigator.userAgent)}function mse(){return Zj()||hse()}function ll(e,t,n,r){let i=oo(n);_.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 vse(e,t,n,r){let i=oo(n);_.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 vE=30;function gse(e,t,n){let r=sx(e,"outside-click"),i=oo(n),o=_.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!cx(c,ux.Loose)&&c.tabIndex!==-1&&s.preventDefault(),i.current(s,c)},[i,t]),a=_.useRef(null);ll(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),ll(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),ll(r,"click",s=>{mse()||a.current&&(o(s,()=>a.current),a.current=null)},!0);let l=_.useRef({x:0,y:0});ll(r,"touchstart",s=>{l.current.x=s.touches[0].clientX,l.current.y=s.touches[0].clientY},!0),ll(r,"touchend",s=>{let u={x:s.changedTouches[0].clientX,y:s.changedTouches[0].clientY};if(!(Math.abs(u.x-l.current.x)>=vE||Math.abs(u.y-l.current.y)>=vE))return o(s,()=>s.target instanceof HTMLElement?s.target:null)},!0),vse(r,"blur",s=>o(s,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function dx(...e){return _.useMemo(()=>io(...e),[...e])}function yse(e,t){return _.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 xse(){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 bse(){return Zj()?{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=Yn();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 wse(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function _se(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Ci=Gj(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Yn(),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:_se(n)},i=[bse(),xse(),wse()];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)}});Ci.subscribe(()=>{let e=Ci.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)&&Ci.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Ci.dispatch("TEARDOWN",n)}});function Sse(e,t,n=()=>({containers:[]})){let r=Xj(Ci),i=t?r.get(t):void 0,o=i?i.count>0:!1;return De(()=>{if(!(!t||!e))return Ci.dispatch("PUSH",t,n),()=>Ci.dispatch("POP",t,n)},[e,t]),o}function Ese(e,t,n=()=>[document.body]){let r=sx(e,"scroll-lock");Sse(r,t,i=>{var o;return{containers:[...(o=i.containers)!=null?o:[],n]}})}function gE(e){return[e.screenX,e.screenY]}function Ose(){let e=_.useRef([-1,-1]);return{wasMoved(t){let n=gE(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=gE(t)}}}function $se(e=0){let[t,n]=_.useState(e),r=_.useCallback(s=>n(s),[t]),i=_.useCallback(s=>n(u=>u|s),[t]),o=_.useCallback(s=>(t&s)===s,[t]),a=_.useCallback(s=>n(u=>u&~s),[n]),l=_.useCallback(s=>n(u=>u^s),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:a,toggleFlag:l}}var Pse={},yE,xE;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((yE=process==null?void 0:Pse)==null?void 0:yE.NODE_ENV)==="test"&&typeof((xE=Element==null?void 0:Element.prototype)==null?void 0:xE.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(`
247
+ `)),[]});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 Tse(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function jse(e,t,n,r){let[i,o]=_.useState(n),{hasFlag:a,addFlag:l,removeFlag:s}=$se(e&&i?3:0),u=_.useRef(!1),c=_.useRef(!1),f=uu();return De(()=>{var d;if(e){if(n&&o(!0),!t){n&&l(3);return}return(d=void 0)==null||d.call(r,n),Cse(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=void 0)==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 Cse(e,{prepare:t,run:n,done:r,inFlight:i}){let o=Yn();return Nse(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(kse(e,r))})}),o.dispose}function kse(e,t){var n,r;let i=Yn();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 Nse(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 Mse(e,{container:t,accept:n,walk:r}){let i=_.useRef(n),o=_.useRef(r);_.useEffect(()=>{i.current=n,o.current=r},[n,r]),De(()=>{if(!t||!e)return;let a=io(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 Ise(){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 Jj={...xc},Rse=Jj.useInsertionEffect,Lse=Rse||(e=>e());function eC(e){const t=_.useRef(()=>{});return Lse(()=>{t.current=e}),_.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 jg=typeof document<"u"?_.useLayoutEffect:_.useEffect;let bE=!1,Dse=0;const wE=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Dse++;function Fse(){const[e,t]=_.useState(()=>bE?wE():void 0);return jg(()=>{e==null&&t(wE())},[]),_.useEffect(()=>{bE=!0},[]),e}const Bse=Jj.useId,zse=Bse||Fse;function Use(){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 Hse=_.createContext(null),Wse=_.createContext(null),Vse=()=>{var e;return((e=_.useContext(Hse))==null?void 0:e.id)||null},Kse=()=>_.useContext(Wse),qse="data-floating-ui-focusable";function Gse(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=zse(),o=_.useRef({}),[a]=_.useState(()=>Use()),l=Vse()!=null,[s,u]=_.useState(r.reference),c=eC((p,m,v)=>{o.current.openEvent=p?m:void 0,a.emit("openchange",{open:p,event:m,reason:v,nested:l}),n==null||n(p,m,v)}),f=_.useMemo(()=>({setPositionReference:u}),[]),d=_.useMemo(()=>({reference:s||r.reference||null,floating:r.floating||null,domReference:r.reference}),[s,r.reference,r.floating]);return _.useMemo(()=>({dataRef:o,open:t,onOpenChange:c,elements:d,events:a,floatingId:i,refs:f}),[t,c,d,a,i,f])}function Xse(e){e===void 0&&(e={});const{nodeId:t}=e,n=Gse({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=_.useState(null),[l,s]=_.useState(null),c=(i==null?void 0:i.domReference)||o,f=_.useRef(null),d=Kse();jg(()=>{c&&(f.current=c)},[c]);const p=xj({...e,elements:{...i,...l&&{reference:l}}}),m=_.useCallback(x=>{const E=fe(x)?{getBoundingClientRect:()=>x.getBoundingClientRect(),contextElement:x}:x;s(E),p.refs.setReference(E)},[p.refs]),v=_.useCallback(x=>{(fe(x)||x===null)&&(f.current=x,a(x)),(fe(p.refs.reference.current)||p.refs.reference.current===null||x!==null&&!fe(x))&&p.refs.setReference(x)},[p.refs]),y=_.useMemo(()=>({...p.refs,setReference:v,setPositionReference:m,domReference:f}),[p.refs,v,m]),h=_.useMemo(()=>({...p.elements,domReference:c}),[p.elements,c]),g=_.useMemo(()=>({...p,...r,refs:y,elements:h,nodeId:t}),[p,y,h,t,r]);return jg(()=>{r.dataRef.current.floatingContext=g;const x=d==null?void 0:d.nodesRef.current.find(E=>E.id===t);x&&(x.context=g)}),_.useMemo(()=>({...p,context:g,refs:y,elements:h}),[p,y,h,g])}const _E="active",SE="selected";function Wh(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[_E]:a,[SE]:l,...s}=e;o=s}return{...n==="floating"&&{tabIndex:-1,[qse]:""},...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&&[_E,SE].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,m=new Array(p),v=0;v<p;v++)m[v]=arguments[v];return(d=r.get(u))==null?void 0:d.map(y=>y(...m)).find(y=>y!==void 0)}}}else a[u]=c}),a),{})}}function Yse(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=_.useCallback(l=>Wh(l,e,"reference"),t),o=_.useCallback(l=>Wh(l,e,"floating"),n),a=_.useCallback(l=>Wh(l,e,"item"),r);return _.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}function EE(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const Qse=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}=ro(e,t),{rects:f,elements:{floating:d}}=t,p=n.current[a],m=(u==null?void 0:u.current)||d,v=d.clientTop||m.clientTop,y=d.clientTop!==0,h=m.clientTop!==0,g=d===m;if(!p)return{};const x={...t,...await Z0(-p.offsetTop-d.clientTop-f.reference.height/2-p.offsetHeight/2-o).fn(t)},E=await Mh(EE(x,m.scrollHeight+v+d.clientTop),c),w=await Mh(x,{...c,elementContext:"reference"}),S=ht(0,E.top),O=x.y+S,C=(m.scrollHeight>m.clientHeight?T=>T:Ms)(ht(0,m.scrollHeight+(y&&g||h?v*2:0)-S-ht(0,E.bottom)));if(m.style.maxHeight=C+"px",m.scrollTop=S,i){const T=m.offsetHeight<p.offsetHeight*Vi(l,n.current.length)-1||w.top>=-s||w.bottom>=-s;Bt.flushSync(()=>i(T))}return r&&(r.current=await Mh(EE({...x,y:O},m.offsetHeight+v+d.clientTop),c)),{y:O}}});function Zse(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:a,onChange:l}=t,s=eC(l),u=_.useRef(!1),c=_.useRef(null),f=_.useRef(null);_.useEffect(()=>{if(!i)return;function p(v){if(v.ctrlKey||!m||o.current==null)return;const y=v.deltaY,h=o.current.top>=-.5,g=o.current.bottom>=-.5,x=m.scrollHeight-m.clientHeight,E=y<0?-1:1,w=y<0?"max":"min";m.scrollHeight<=m.clientHeight||(!h&&y>0||!g&&y<0?(v.preventDefault(),Bt.flushSync(()=>{s(S=>S+Math[w](y,x*E))})):/firefox/i.test(Ise())&&(m.scrollTop+=y))}const m=(a==null?void 0:a.current)||r.floating;if(n&&m)return m.addEventListener("wheel",p),requestAnimationFrame(()=>{c.current=m.scrollTop,o.current!=null&&(f.current={...o.current})}),()=>{c.current=null,f.current=null,m.removeEventListener("wheel",p)}},[i,n,r.floating,o,a,s]);const d=_.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 m=p.scrollTop-c.current;(o.current.bottom<-.5&&m<-1||o.current.top<-.5&&m>1)&&Bt.flushSync(()=>s(v=>v+m))}requestAnimationFrame(()=>{c.current=p.scrollTop})}}}),[r.floating,s,o,a]);return _.useMemo(()=>i?{floating:d}:{},[i,d])}let Ua=_.createContext({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Ua.displayName="FloatingContext";let px=_.createContext(null);px.displayName="PlacementContext";function Jse(e){return _.useMemo(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function eue(){return _.useContext(Ua).setReference}function tue(){return _.useContext(Ua).getReferenceProps}function nue(){let{getFloatingProps:e,slot:t}=_.useContext(Ua);return _.useCallback((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function rue(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=_.useContext(px),n=_.useMemo(()=>e,[JSON.stringify(e,(i,o)=>{var a;return(a=o==null?void 0:o.outerHTML)!=null?a:o})]);De(()=>{t==null||t(n??null)},[t,n]);let r=_.useContext(Ua);return _.useMemo(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}let OE=4;function iue({children:e,enabled:t=!0}){let[n,r]=_.useState(null),[i,o]=_.useState(0),a=_.useRef(null),[l,s]=_.useState(null);oue(l);let u=t&&n!==null&&l!==null,{to:c="bottom",gap:f=0,offset:d=0,padding:p=0,inner:m}=aue(n,l),[v,y="center"]=c.split(" ");De(()=>{u&&o(0)},[u]);let{refs:h,floatingStyles:g,context:x}=Xse({open:u,placement:v==="selection"?y==="center"?"bottom":`bottom-${y}`:y==="center"?`${v}`:`${v}-${y}`,strategy:"absolute",transform:!1,middleware:[Z0({mainAxis:v==="selection"?0:f,crossAxis:d}),bj({padding:p}),v!=="selection"&&Eae({padding:p}),v==="selection"&&m?Qse({...m,padding:p,overflowRef:a,offset:i,minItemsVisible:OE,referenceOverflowThreshold:p,onFallbackChange(T){var N,R;if(!T)return;let D=x.elements.floating;if(!D)return;let M=parseFloat(getComputedStyle(D).scrollPaddingBottom)||0,L=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 F=k.offsetTop,B=F+k.clientHeight+M,U=D.scrollTop,X=U+D.clientHeight;if(F>=U&&B<=X)L--;else{P=Math.max(0,Math.min(B,X)-Math.max(F,U)),I=k.clientHeight;break}}L>=1&&o(k=>{let F=I*L-P+M;return k>=F?k:F})}}):null,Oae({padding:p,apply({availableWidth:T,availableHeight:N,elements:R}){Object.assign(R.floating.style,{overflow:"auto",maxWidth:`${T}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${N}px)`})}})].filter(Boolean),whileElementsMounted:gj}),[E=v,w=y]=x.placement.split("-");v==="selection"&&(E="selection");let S=_.useMemo(()=>({anchor:[E,w].filter(Boolean).join(" ")}),[E,w]),O=Zse(x,{overflowRef:a,onChange:o}),{getReferenceProps:$,getFloatingProps:A}=Yse([O]),C=de(T=>{s(T),h.setFloating(T)});return _.createElement(px.Provider,{value:r},_.createElement(Ua.Provider,{value:{setFloating:C,setReference:h.setReference,styles:g,getReferenceProps:$,getFloatingProps:A,slot:S}},e))}function oue(e){De(()=>{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 aue(e,t){var n,r,i;let o=Vh((n=e==null?void 0:e.gap)!=null?n:"var(--anchor-gap, 0)",t),a=Vh((r=e==null?void 0:e.offset)!=null?r:"var(--anchor-offset, 0)",t),l=Vh((i=e==null?void 0:e.padding)!=null?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:a,padding:l}}function Vh(e,t,n=void 0){let r=uu(),i=de((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=$E(s,u);return[c,f=>{let d=tC(s);{let p=d.map(m=>window.getComputedStyle(u).getPropertyValue(m));r.requestAnimationFrame(function m(){r.nextFrame(m);let v=!1;for(let[h,g]of d.entries()){let x=window.getComputedStyle(u).getPropertyValue(g);if(p[h]!==x){p[h]=x,v=!0;break}}if(!v)return;let y=$E(s,u);c!==y&&(f(y),c=y)})}return r.dispose}]}return[n,null]}),o=_.useMemo(()=>i(e,t)[0],[e,t]),[a=o,l]=_.useState();return De(()=>{let[s,u]=i(e,t);if(l(s),!!u)return u(l)},[e,t]),a}function tC(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,...tC(i)]:[r]}return[]}function $E(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 hx=_.createContext(null);hx.displayName="OpenClosedContext";var Rs=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Rs||{});function lue(){return _.useContext(hx)}function sue({value:e,children:t}){return j.createElement(hx.Provider,{value:e},t)}function uue(e){throw new Error("Unexpected object: "+e)}var mt=(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))(mt||{});function Kh(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:uue(e)}}function cue(e){let t=de(e),n=_.useRef(!1);_.useEffect(()=>(n.current=!1,()=>{n.current=!0,Rj(()=>{n.current&&t()})}),[t])}function fue(){let e=typeof document>"u";return"useSyncExternalStore"in xc?(t=>t.useSyncExternalStore)(xc)(()=>()=>{},()=>!1,()=>!e):!1}function due(){let e=fue(),[t,n]=_.useState(Ri.isHandoffComplete);return t&&Ri.isHandoffComplete===!1&&n(!1),_.useEffect(()=>{t!==!0&&n(!0)},[t]),_.useEffect(()=>Ri.handoff(),[]),e?!1:t}let pue=_.createContext(!1);function hue(){return _.useContext(pue)}function mue(e){let t=hue(),n=_.useContext(rC),r=dx(e),[i,o]=_.useState(()=>{var a;if(!t&&n!==null)return(a=n.current)!=null?a:null;if(Ri.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 _.useEffect(()=>{i!==null&&(r!=null&&r.body.contains(i)||r==null||r.body.appendChild(i))},[i,r]),_.useEffect(()=>{t||n!==null&&o(n.current)},[n,o,t]),i}let nC=_.Fragment,vue=ct(function(e,t){let n=e,r=_.useRef(null),i=hn(Ule(f=>{r.current=f}),t),o=dx(r),a=mue(r),[l]=_.useState(()=>{var f;return Ri.isServer?null:(f=o==null?void 0:o.createElement("div"))!=null?f:null}),s=_.useContext(bue),u=due();De(()=>{!a||!l||a.contains(l)||(l.setAttribute("data-headlessui-portal",""),a.appendChild(l))},[a,l]),De(()=>{if(l&&s)return s.register(l)},[s,l]),cue(()=>{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=ut();return u?!a||!l?null:Bt.createPortal(c({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:nC,name:"Portal"}),l):null});function gue(e,t){let n=hn(t),{enabled:r=!0,...i}=e,o=ut();return r?j.createElement(vue,{...i,ref:n}):o({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:nC,name:"Portal"})}let yue=_.Fragment,rC=_.createContext(null);function xue(e,t){let{target:n,...r}=e,i={ref:hn(t)},o=ut();return j.createElement(rC.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:yue,name:"Popover.Group"}))}let bue=_.createContext(null),wue=ct(gue),_ue=ct(xue),Sue=Object.assign(wue,{Group:_ue}),Eue="div";function Oue(e,t){let n=`headlessui-control-${_.useId()}`,[r,i]=fu(),[o,a]=_p(),l=cu(),{disabled:s=l||!1,...u}=e,c=_.useMemo(()=>({disabled:s}),[s]),f={ref:t,disabled:s||void 0,"aria-disabled":s||void 0},d=ut();return j.createElement(Ole,{value:s},j.createElement(i,{value:r},j.createElement(a,{value:o},j.createElement(Ble,{id:n},d({ourProps:f,theirProps:{...u,children:j.createElement(Rle,null,typeof u.children=="function"?u.children(c):u.children)},slot:c,defaultTag:Eue,name:"Field"})))))}let $ue=ct(Oue);function Pue(e,t){let n=_.useRef({left:0,top:0});if(De(()=>{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 PE=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function AE(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 PE.test(a)&&(a=a.replace(PE,"")),a}function Aue(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():AE(o).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return AE(e).trim()}function Tue(e){let t=_.useRef(""),n=_.useRef("");return de(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let o=Aue(r).trim().toLowerCase();return t.current=i,n.current=o,o})}var jue=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(jue||{}),Cue=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Cue||{}),kue=(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))(kue||{});function qh(e,t=n=>n){let n=e.activeItemIndex!==null?e.items[e.activeItemIndex]:null,r=fx(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 Nue={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===mt.Nothing)return{...l,activeItemIndex:null};if(t.focus===mt.Specific)return{...l,activeItemIndex:e.items.findIndex(c=>c.id===t.id)};if(t.focus===mt.Previous){let c=e.activeItemIndex;if(c!==null){let f=e.items[c].dataRef.current.domRef,d=Kh(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===mt.Next){let c=e.activeItemIndex;if(c!==null){let f=e.items[c].dataRef.current.domRef,d=Kh(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=qh(e),u=Kh(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=qh(e,r=>[...r,{id:t.id,dataRef:t.dataRef}]);return{...e,...n}},6:(e,t)=>{let n=qh(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}},mx=_.createContext(null);mx.displayName="MenuContext";function Ep(e){let t=_.useContext(mx);if(t===null){let n=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ep),n}return t}function Mue(e,t){return za(t.type,Nue,e,t)}let Iue=_.Fragment;function Rue(e,t){let{__demoMode:n=!1,...r}=e,i=_.useReducer(Mue,{__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=hn(t);gse(o===0,[l,a],(m,v)=>{s({type:1}),cx(v,ux.Loose)||(m.preventDefault(),l==null||l.focus())});let c=de(()=>{s({type:1})}),f=_.useMemo(()=>({open:o===0,close:c}),[o,c]),d={ref:u},p=ut();return j.createElement(iue,null,j.createElement(mx.Provider,{value:i},j.createElement(sue,{value:za(o,{0:Rs.Open,1:Rs.Closed})},p({ourProps:d,theirProps:r,slot:f,defaultTag:Iue,name:"Menu"}))))}let Lue="button";function Due(e,t){var n;let r=_.useId(),{id:i=`headlessui-menu-button-${r}`,disabled:o=!1,autoFocus:a=!1,...l}=e,[s,u]=Ep("Menu.Button"),c=tue(),f=hn(t,eue(),de(O=>u({type:7,element:O}))),d=de(O=>{switch(O.key){case Ce.Space:case Ce.Enter:case Ce.ArrowDown:O.preventDefault(),O.stopPropagation(),Bt.flushSync(()=>u({type:0})),u({type:2,focus:mt.First});break;case Ce.ArrowUp:O.preventDefault(),O.stopPropagation(),Bt.flushSync(()=>u({type:0})),u({type:2,focus:mt.Last});break}}),p=de(O=>{switch(O.key){case Ce.Space:O.preventDefault();break}}),m=de(O=>{var $;if(ax(O.currentTarget))return O.preventDefault();o||(s.menuState===0?(Bt.flushSync(()=>u({type:1})),($=s.buttonElement)==null||$.focus({preventScroll:!0})):(O.preventDefault(),u({type:0})))}),{isFocusVisible:v,focusProps:y}=ix({autoFocus:a}),{isHovered:h,hoverProps:g}=rx({isDisabled:o}),{pressed:x,pressProps:E}=Ele({disabled:o}),w=_.useMemo(()=>({open:s.menuState===0,active:x||s.menuState===0,disabled:o,hover:h,focus:v,autofocus:a}),[s,h,v,x,o,a]),S=xp(c(),{ref:f,id:i,type:yse(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:m},y,g,E);return ut()({ourProps:S,theirProps:l,slot:w,defaultTag:Lue,name:"Menu.Button"})}let Fue="div",Bue=Og.RenderStrategy|Og.Static;function zue(e,t){var n,r;let i=_.useId(),{id:o=`headlessui-menu-items-${i}`,anchor:a,portal:l=!1,modal:s=!0,transition:u=!1,...c}=e,f=Jse(a),[d,p]=Ep("Menu.Items"),[m,v]=rue(f),y=nue(),[h,g]=_.useState(null),x=hn(t,f?m:null,de(P=>p({type:8,element:P})),g),E=dx(d.itemsElement);f&&(l=!0);let w=lue(),[S,O]=jse(u,h,w!==null?(w&Rs.Open)===Rs.Open:d.menuState===0);ose(S,d.buttonElement,()=>{p({type:1})});let $=d.__demoMode?!1:s&&d.menuState===0;Ese($,E);let A=d.__demoMode?!1:s&&d.menuState===0;ise(A,{allowed:_.useCallback(()=>[d.buttonElement,d.itemsElement],[d.buttonElement,d.itemsElement])});let C=d.menuState!==0,T=Pue(C,d.buttonElement)?!1:S;_.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]),Mse(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=uu(),R=de(P=>{var k,F,B;switch(N.dispose(),P.key){case Ce.Space:if(d.searchQuery!=="")return P.preventDefault(),P.stopPropagation(),p({type:3,value:P.key});case Ce.Enter:if(P.preventDefault(),P.stopPropagation(),p({type:1}),d.activeItemIndex!==null){let{dataRef:U}=d.items[d.activeItemIndex];(F=(k=U.current)==null?void 0:k.domRef.current)==null||F.click()}Qj(d.buttonElement);break;case Ce.ArrowDown:return P.preventDefault(),P.stopPropagation(),p({type:2,focus:mt.Next});case Ce.ArrowUp:return P.preventDefault(),P.stopPropagation(),p({type:2,focus:mt.Previous});case Ce.Home:case Ce.PageUp:return P.preventDefault(),P.stopPropagation(),p({type:2,focus:mt.First});case Ce.End:case Ce.PageDown:return P.preventDefault(),P.stopPropagation(),p({type:2,focus:mt.Last});case Ce.Escape:P.preventDefault(),P.stopPropagation(),Bt.flushSync(()=>p({type:1})),(B=d.buttonElement)==null||B.focus({preventScroll:!0});break;case Ce.Tab:P.preventDefault(),P.stopPropagation(),Bt.flushSync(()=>p({type:1})),pse(d.buttonElement,P.shiftKey?ji.Previous:ji.Next);break;default:P.key.length===1&&(p({type:3,value:P.key}),N.setTimeout(()=>p({type:4}),350));break}}),D=de(P=>{switch(P.key){case Ce.Space:P.preventDefault();break}}),M=_.useMemo(()=>({open:d.menuState===0}),[d.menuState]),L=xp(f?y():{},{"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,...v,"--button-width":tse(d.buttonElement,!0).width},...Tse(O)}),I=ut();return j.createElement(Sue,{enabled:l?e.static||S:!1},I({ourProps:L,theirProps:c,slot:M,defaultTag:Fue,features:Bue,visible:T,name:"Menu.Items"}))}let Uue=_.Fragment;function Hue(e,t){let n=_.useId(),{id:r=`headlessui-menu-item-${n}`,disabled:i=!1,...o}=e,[a,l]=Ep("Menu.Item"),s=a.activeItemIndex!==null?a.items[a.activeItemIndex].id===r:!1,u=_.useRef(null),c=hn(t,u);De(()=>{if(!a.__demoMode&&a.menuState===0&&s&&a.activationTrigger!==0)return Yn().requestAnimationFrame(()=>{var T,N;(N=(T=u.current)==null?void 0:T.scrollIntoView)==null||N.call(T,{block:"nearest"})})},[a.__demoMode,u,s,a.menuState,a.activationTrigger,a.activeItemIndex]);let f=Tue(u),d=_.useRef({disabled:i,domRef:u,get textValue(){return f()}});De(()=>{d.current.disabled=i},[d,i]),De(()=>(l({type:5,id:r,dataRef:d}),()=>l({type:6,id:r})),[d,r]);let p=de(()=>{l({type:1})}),m=de(T=>{if(i)return T.preventDefault();l({type:1}),Qj(a.buttonElement)}),v=de(()=>{if(i)return l({type:2,focus:mt.Nothing});l({type:2,focus:mt.Specific,id:r})}),y=Ose(),h=de(T=>{y.update(T),!i&&(s||l({type:2,focus:mt.Specific,id:r,trigger:0}))}),g=de(T=>{y.wasMoved(T)&&(i||s||l({type:2,focus:mt.Specific,id:r,trigger:0}))}),x=de(T=>{y.wasMoved(T)&&(i||s&&l({type:2,focus:mt.Nothing}))}),[E,w]=fu(),[S,O]=_p(),$=_.useMemo(()=>({active:s,focus:s,disabled:i,close:p}),[s,i,p]),A={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:m,onFocus:v,onPointerEnter:h,onMouseEnter:h,onPointerMove:g,onMouseMove:g,onPointerLeave:x,onMouseLeave:x},C=ut();return j.createElement(w,null,j.createElement(O,null,C({ourProps:A,theirProps:o,slot:$,defaultTag:Uue,name:"Menu.Item"})))}let Wue="div";function Vue(e,t){let[n,r]=fu(),i=e,o={ref:t,"aria-labelledby":n,role:"group"},a=ut();return j.createElement(r,null,a({ourProps:o,theirProps:i,slot:{},defaultTag:Wue,name:"Menu.Section"}))}let Kue="header";function que(e,t){let n=_.useId(),{id:r=`headlessui-menu-heading-${n}`,...i}=e,o=lx();De(()=>o.register(r),[r,o.register]);let a={id:r,ref:t,role:"presentation",...o.props};return ut()({ourProps:a,theirProps:i,slot:{},defaultTag:Kue,name:"Menu.Heading"})}let Gue="div";function Xue(e,t){let n=e,r={ref:t,role:"separator"};return ut()({ourProps:r,theirProps:n,slot:{},defaultTag:Gue,name:"Menu.Separator"})}let Yue=ct(Rue),iC=ct(Due),oC=ct(zue),aC=ct(Hue),Que=ct(Vue),Zue=ct(que),Jue=ct(Xue),ece=Object.assign(Yue,{Button:iC,Items:oC,Item:aC,Section:Que,Heading:Zue,Separator:Jue});var tce=(e=>(e[e.RegisterOption=0]="RegisterOption",e[e.UnregisterOption=1]="UnregisterOption",e))(tce||{});let nce={0(e,t){let n=[...e.options,{id:t.id,element:t.element,propsRef:t.propsRef}];return{...e,options:fx(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})}},vx=_.createContext(null);vx.displayName="RadioGroupDataContext";function gx(e){let t=_.useContext(vx);if(t===null){let n=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,gx),n}return t}let yx=_.createContext(null);yx.displayName="RadioGroupActionsContext";function xx(e){let t=_.useContext(yx);if(t===null){let n=new Error(`<${e} /> is missing a parent <RadioGroup /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,xx),n}return t}function rce(e,t){return za(t.type,nce,e,t)}let ice="div";function oce(e,t){let n=_.useId(),r=cu(),{id:i=`headlessui-radiogroup-${n}`,value:o,form:a,name:l,onChange:s,by:u,disabled:c=r||!1,defaultValue:f,...d}=e,p=Jle(u),[m,v]=_.useReducer(rce,{options:[]}),y=m.options,[h,g]=fu(),[x,E]=_p(),w=_.useRef(null),S=hn(w,t),O=kle(f),[$,A]=Cle(o,s,O),C=_.useMemo(()=>y.find(B=>!B.propsRef.current.disabled),[y]),T=_.useMemo(()=>y.some(B=>p(B.propsRef.current.value,$)),[y,$]),N=de(B=>{var U;if(c||p(B,$))return!1;let X=(U=y.find(ne=>p(ne.propsRef.current.value,B)))==null?void 0:U.propsRef.current;return X!=null&&X.disabled?!1:(A==null||A(B),!0)}),R=de(B=>{let U=w.current;if(!U)return;let X=io(U),ne=y.filter(ae=>ae.propsRef.current.disabled===!1).map(ae=>ae.element.current);switch(B.key){case Ce.Enter:Nle(B.currentTarget);break;case Ce.ArrowLeft:case Ce.ArrowUp:if(B.preventDefault(),B.stopPropagation(),Tg(ne,ji.Previous|ji.WrapAround)===Ag.Success){let ae=y.find(te=>te.element.current===(X==null?void 0:X.activeElement));ae&&N(ae.propsRef.current.value)}break;case Ce.ArrowRight:case Ce.ArrowDown:if(B.preventDefault(),B.stopPropagation(),Tg(ne,ji.Next|ji.WrapAround)===Ag.Success){let ae=y.find(te=>te.element.current===(X==null?void 0:X.activeElement));ae&&N(ae.propsRef.current.value)}break;case Ce.Space:{B.preventDefault(),B.stopPropagation();let ae=y.find(te=>te.element.current===(X==null?void 0:X.activeElement));ae&&N(ae.propsRef.current.value)}break}}),D=de(B=>(v({type:0,...B}),()=>v({type:1,id:B.id}))),M=_.useMemo(()=>({value:$,firstOption:C,containsCheckedOption:T,disabled:c,compare:p,...m}),[$,C,T,c,p,m]),L=_.useMemo(()=>({registerOption:D,change:N}),[D,N]),I={ref:S,id:i,role:"radiogroup","aria-labelledby":h,"aria-describedby":x,onKeyDown:R},P=_.useMemo(()=>({value:$}),[$]),k=_.useCallback(()=>{if(O!==void 0)return N(O)},[N,O]),F=ut();return j.createElement(E,{name:"RadioGroup.Description"},j.createElement(g,{name:"RadioGroup.Label"},j.createElement(yx.Provider,{value:L},j.createElement(vx.Provider,{value:M},l!=null&&j.createElement(Dle,{disabled:c,data:{[l]:$||"on"},overrides:{type:"radio",checked:$!=null},form:a,onReset:k}),F({ourProps:I,theirProps:d,slot:P,defaultTag:ice,name:"RadioGroup"})))))}let ace="div";function lce(e,t){var n;let r=gx("RadioGroup.Option"),i=xx("RadioGroup.Option"),o=_.useId(),{id:a=`headlessui-radiogroup-option-${o}`,value:l,disabled:s=r.disabled||!1,autoFocus:u=!1,...c}=e,f=_.useRef(null),d=hn(f,t),[p,m]=fu(),[v,y]=_p(),h=oo({value:l,disabled:s});De(()=>i.registerOption({id:a,element:f,propsRef:h}),[a,i,f,h]);let g=de(N=>{var R;if(ax(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:w}=ix({autoFocus:u}),{isHovered:S,hoverProps:O}=rx({isDisabled:s}),$=r.compare(r.value,l),A=xp({ref:d,id:a,role:"radio","aria-checked":$?"true":"false","aria-labelledby":p,"aria-describedby":v,"aria-disabled":s?!0:void 0,tabIndex:s?-1:$||!r.containsCheckedOption&&x?0:-1,onClick:s?void 0:g,autoFocus:u},w,O),C=_.useMemo(()=>({checked:$,disabled:s,active:E,hover:S,focus:E,autofocus:u}),[$,s,S,E,u]),T=ut();return j.createElement(y,{name:"RadioGroup.Description"},j.createElement(m,{name:"RadioGroup.Label"},T({ourProps:A,theirProps:c,slot:C,defaultTag:ace,name:"RadioGroup.Option"})))}let sce="span";function uce(e,t){var n;let r=gx("Radio"),i=xx("Radio"),o=_.useId(),a=Wj(),l=cu(),{id:s=a||`headlessui-radio-${o}`,value:u,disabled:c=r.disabled||l||!1,autoFocus:f=!1,...d}=e,p=_.useRef(null),m=hn(p,t),v=qj(),y=Hle(),h=oo({value:u,disabled:c});De(()=>i.registerOption({id:s,element:p,propsRef:h}),[s,i,p,h]);let g=de(T=>{var N;if(ax(T.currentTarget))return T.preventDefault();i.change(u)&&((N=p.current)==null||N.focus())}),{isFocusVisible:x,focusProps:E}=ix({autoFocus:f}),{isHovered:w,hoverProps:S}=rx({isDisabled:c}),O=((n=r.firstOption)==null?void 0:n.id)===s,$=r.compare(r.value,u),A=xp({ref:m,id:s,role:"radio","aria-checked":$?"true":"false","aria-labelledby":v,"aria-describedby":y,"aria-disabled":c?!0:void 0,tabIndex:c?-1:$||!r.containsCheckedOption&&O?0:-1,autoFocus:f,onClick:c?void 0:g},E,S),C=_.useMemo(()=>({checked:$,disabled:c,hover:w,focus:x,autofocus:f}),[$,c,w,x,f]);return ut()({ourProps:A,theirProps:d,slot:C,defaultTag:sce,name:"Radio"})}let cce=ct(oce),fce=ct(lce),lC=ct(uce),dce=Qle,pce=qle,hce=Object.assign(cce,{Option:fce,Radio:lC,Label:dce,Description:pce});const sC=({items:e,selectedItem:t,onItemSelect:n,size:r="sm"})=>b.jsx("div",{className:"relative h-full",children:b.jsxs(ece,{children:[b.jsxs(iC,{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-sm ring-1 ring-gray-300 hover:bg-gray-50`,children:[t,b.jsx(hP,{className:"size-4 text-gray-400","aria-hidden":"true"})]}),b.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-none",children:b.jsx("div",{className:"py-1",children:e.map(i=>b.jsx(aC,{children:b.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))})})]})}),mce=({items:e,selectedItem:t,onItemSelect:n,size:r="sm"})=>b.jsx(hce,{value:t,onChange:n,className:`inline-flex justify-between items-center rounded-md bg-white text-${r} font-medium text-gray-900 shadow-sm ring-1 ring-gray-300`,children:e.map(i=>b.jsx($ue,{className:"flex h-full first:rounded-l-md last:rounded-r-md overflow-hidden",children:b.jsx(lC,{value:i,className:"cursor-pointer h-full data-[checked]:bg-gray-200 hover:bg-gray-50 flex items-center px-4 shadow-sm",children:i})},i))});function vce({onSearch:e}){return b.jsxs("div",{className:"relative w-full md:w-[26rem] rounded-md",children:[b.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:b.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:b.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"})})}),b.jsx("input",{type:"text",className:"block w-full pl-10 px-3 py-3 text-sm font-medium text-gray-900 shadow-sm rounded-md hover:bg-gray-50 outline outline-1 -outline-offset-1 outline-gray-300 placeholder:text-gray-400 focus:outline focus:outline-2 focus:-outline-offset-2 focus:outline-blue-600 w-",placeholder:"Search features...",onChange:t=>e(t.target.value)})]})}const gce=({features:e})=>{const[t,n]=_.useState("All Teams"),[r,i]=_.useState(""),o=_.useMemo(()=>{const u=new Set;return u.add("All Teams"),Object.values(e).forEach(c=>{var f;(f=c.assignments)!=null&&f.teams&&c.assignments.teams.forEach(d=>u.add(d))}),Array.from(u)},[e]),a=_.useMemo(()=>t==="All Teams"?e:Object.fromEntries(Object.entries(e).filter(([u,c])=>{var f,d;return(d=(f=c.assignments)==null?void 0:f.teams)==null?void 0:d.includes(t)})),[e,t]),l=Object.entries(e).length,s=o.length-1;return b.jsxs("div",{className:"h-screen max-w-7xl mx-auto flex flex-col gap-8 p-4 md:p-8",children:[b.jsxs("div",{className:"flex justify-between items-center",children:[b.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:"Dashboard"}),b.jsx(sC,{items:o,selectedItem:t,onItemSelect:n})]}),b.jsx("div",{children:b.jsxs("ul",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[b.jsx("li",{className:"px-4 py-6 border border-gray-200 shadow-sm bg-white rounded-lg",children:b.jsx(Jae,{features:a})}),b.jsx("li",{className:"px-4 py-6 border border-gray-200 shadow-sm bg-white rounded-lg",children:b.jsx(ele,{features:a})}),b.jsx("li",{className:"px-4 py-6 border border-gray-200 shadow-sm bg-white rounded-lg",children:b.jsx(tle,{features:a})})]})}),b.jsxs("div",{className:"flex-1 flex flex-col gap-6 h-full overflow-scroll",children:[b.jsxs("div",{className:"flex items-center justify-between gap-12",children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(Ui,{className:"w-5 h-5 text-gray-600","aria-hidden":"true"}),b.jsxs("span",{className:"text-sm text-gray-600 font-medium",children:["Teams: ",s||0," | Total Features: ",l||0]})]}),b.jsx("div",{children:b.jsx(vce,{onSearch:i})})]}),b.jsx(nle,{features:a,searchTerm:r,teamContext:t!=="All Teams"?t:null})]})]})},yce=({features:e})=>{const t=Object.values(e).reduce((r,i)=>{const o=i.additional_metrics.health.overall;if(o!=null){const a=$j(o);r[a]++}return r},{needsAttention:0,needsImprovement:0,healthy:0}),n=Object.entries(t).map(([r,i],o)=>({name:r,value:i,fill:[bt(et.needsAttention).hex,bt(et.needsImprovement).hex,bt(et.healthy).hex][o]})).filter(({value:r})=>r>0);return b.jsxs("div",{className:"flex flex-col gap-6",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[b.jsx("div",{className:"flex-shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:b.jsx(Ry,{className:"size-5"})}),b.jsx("span",{className:"flex pl-2",children:"Health Score"})]}),b.jsxs("div",{className:"relative flex-shrink-0 group",children:[b.jsx(oi,{className:"size-4 text-gray-400"}),b.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 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)"})]})]}),b.jsxs("div",{className:"flex flex-col items-center gap-6",children:[b.jsx("div",{className:"relative size-48",children:b.jsx(Na,{width:"100%",height:"100%",children:b.jsx(tu,{children:b.jsx(Kt,{data:n,dataKey:"value",nameKey:"name",innerRadius:"70%",outerRadius:"100%",paddingAngle:2})})})}),b.jsxs("ul",{className:"flex flex-col flex-1 gap-y-2",children:[b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-6 flex items-center justify-center ${bt(et.needsAttention).class}`,children:b.jsx("span",{className:"font-semibold text-white text-sm",children:t.needsAttention})}),b.jsx("p",{className:"text-sm text-gray-500",children:"Features needing attention"})]}),b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-6 flex items-center justify-center ${bt(et.needsImprovement).class}`,children:b.jsx("span",{className:"font-semibold text-white text-sm",children:t.needsImprovement})}),b.jsx("p",{className:"text-sm text-gray-500",children:"Features needing improvement"})]}),b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-6 flex items-center justify-center ${bt(et.healthy).class}`,children:b.jsx("span",{className:"font-semibold text-white text-sm",children:t.healthy})}),b.jsx("p",{className:"text-sm text-gray-500",children:"Healthy Features"})]})]})]})]})},xce=({features:e})=>{const t=Object.values(e).reduce((i,o)=>{const a=o.additional_metrics.test_coverage.score;if(a!=null){const l=Y2(a);i[l]++}return i},{poor:0,fair:0,good:0}),{minimum_thresholds:n}=Ji.project.documentation_site.test_coverage,r=Object.entries(t).map(([i,o],a)=>({name:i,value:o,fill:[xt(n.poor).hex,xt(n.fair).hex,xt(n.good).hex][a]})).filter(({value:i})=>i>0);return b.jsxs("div",{className:"flex flex-col gap-6",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[b.jsx("div",{className:"flex-shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:b.jsx(Iy,{className:"size-5"})}),b.jsx("span",{className:"flex pl-2",children:"Test Coverage"})]}),b.jsxs("div",{className:"relative flex-shrink-0 group",children:[b.jsx(oi,{className:"size-4 text-gray-400"}),b.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 py-1 px-2 w-48",children:"Test Coverage distribution by category: shows how many features fall into each level from poor to good"})]})]}),b.jsxs("div",{className:"flex flex-col items-center gap-6",children:[b.jsx("div",{className:"relative size-48",children:b.jsx(Na,{width:"100%",height:"100%",children:b.jsx(tu,{children:b.jsx(Kt,{data:r,dataKey:"value",nameKey:"name",innerRadius:"70%",outerRadius:"100%",paddingAngle:2})})})}),b.jsxs("ul",{className:"flex flex-col flex-1 gap-y-2",children:[b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-6 flex items-center justify-center ${xt(n.poor).class}`,children:b.jsx("span",{className:"font-semibold text-white text-sm",children:t.poor})}),b.jsxs("p",{className:"text-sm text-gray-500",children:[b.jsx("span",{className:"",children:"Features with"})," poor coverage"]})]}),b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-6 flex items-center justify-center ${xt(n.fair).class}`,children:b.jsx("span",{className:"font-semibold text-white text-sm",children:t.fair})}),b.jsxs("p",{className:"text-sm text-gray-500",children:[b.jsx("span",{className:"",children:"Features with"})," fair coverage"]})]}),b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`flex-shrink-0 rounded size-6 flex items-center justify-center ${xt(n.good).class}`,children:b.jsx("span",{className:"font-semibold text-white text-sm",children:t.good})}),b.jsxs("p",{className:"text-sm text-gray-500",children:[b.jsx("span",{className:"",children:"Features with"})," good coverage"]})]})]})]})]})},bce=({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.log(t.unit_count+t.unit_pending),fill:"#1d4ed8"},{value:Math.log(t.integration_count+t.integration_pending),fill:"#2563eb"},{value:Math.log(t.regression_count+t.regression_pending),fill:"#3b82f6"}];return b.jsxs("div",{className:"flex flex-col gap-6",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[b.jsx("div",{className:"flex-shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:b.jsx(KI,{className:"size-5"})}),b.jsx("span",{className:"flex pl-2",children:"Test Pyramid"})]}),b.jsxs("div",{className:"relative flex-shrink-0 group",children:[b.jsx(oi,{className:"size-4 text-gray-400"}),b.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 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."})]})]}),b.jsxs("div",{className:"flex flex-col items-center gap-6",children:[b.jsx("div",{className:"relative h-48 w-72",children:b.jsx(Na,{width:"100%",height:"100%",children:b.jsx(doe,{width:730,height:250,children:b.jsx(ci,{dataKey:"value",data:n,reversed:!0,children:b.jsx(mr,{position:"right",fill:"#000",stroke:"none",dataKey:"name"})})})})}),b.jsxs("ul",{className:"flex flex-col flex-1 gap-y-2",children:[b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:"flex-shrink-0 rounded h-6 w-16 size-x-12 flex items-center justify-center bg-blue-500",children:b.jsx("span",{className:"font-semibold text-white text-sm",children:t.regression_count})}),b.jsxs("p",{className:"text-sm text-gray-500",children:["Regression Tests (",t.regression_pending," pending)"]})]}),b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:"flex-shrink-0 rounded h-6 w-16 flex items-center justify-center bg-blue-600",children:b.jsx("span",{className:"font-semibold text-white text-sm",children:t.integration_count})}),b.jsxs("p",{className:"text-sm text-gray-500",children:["Integration Tests (",t.integration_pending," pending)"]})]}),b.jsxs("li",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:"flex-shrink-0 rounded h-6 w-16 flex items-center justify-center bg-blue-700",children:b.jsx("span",{className:"font-semibold text-white text-sm",children:t.unit_count})}),b.jsxs("p",{className:"text-sm text-gray-500",children:["Unit Tests (",t.unit_pending," pending)"]})]})]})]})]})},Qu=({title:e})=>b.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider",children:b.jsx("div",{className:"flex items-center gap-x-2",children:e})}),TE=({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})),jE=["Regression","Integration","Unit"],CE=["Missing","Pending"],kE={Pending:{Unit:"unit_pending",Integration:"integration_pending",Regression:"regression_pending"},Missing:{Unit:"unit_count",Integration:"integration_count",Regression:"regression_count"}},wce={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"}},_ce=({features:e})=>{const[t,n]=_.useState(CE[0]),[r,i]=_.useState(jE[0]),[o,a]=_.useState(TE({features:e,metric:kE[t][r],sortDirection:t==="Missing"?"ASC":""}));return _.useEffect(()=>{a(TE({features:e,metric:kE[t][r],sortDirection:t==="Missing"?"ASC":""}))},[e,t,r]),b.jsxs(b.Fragment,{children:[b.jsxs("div",{className:"flex items-center justify-between px-4 py-6 bg-gray-50 rounded-md",children:[b.jsx("h3",{className:"flex items-center text-xs font-semibold text-gray-800 uppercase h-8",children:wce[t][r]}),b.jsxs("div",{className:"flex h-8",children:[b.jsx(mce,{items:CE,selectedItem:t,onItemSelect:n,size:"xs"}),b.jsx("span",{className:"mx-2"}),b.jsx(sC,{items:jE,selectedItem:r,onItemSelect:i,size:"xs"})]})]}),b.jsx("div",{className:"flow-root",children:b.jsx("div",{className:"min-w-full align-middle",children:b.jsx("div",{className:"overflow-hidden rounded-md",children:b.jsxs("table",{className:"min-w-full",children:[b.jsx("thead",{className:"bg-gray-50 border-b border-gray-200",children:b.jsxs("tr",{children:[b.jsx(Qu,{title:"Feature"}),b.jsx(Qu,{title:"Team"}),b.jsx(Qu,{title:"Size"}),b.jsx(Qu,{title:t==="Missing"?`${r} Test Count`:"Pending Test Count"}),b.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider"})]})}),b.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=ma(c);return b.jsxs("tr",{children:[b.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:b.jsx("div",{className:"",children:l})}),b.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(Ui,{className:"size-4 text-gray-500"}),zf(s.assignments.teams)]})}),b.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:b.jsxs("div",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:"flex gap-1.5 items-center",children:[1,2,3,4,5].map(d=>b.jsx("div",{className:`h-5 w-1.5 rounded ${d<=Ns(c)?"bg-blue-500":"bg-gray-200"}`},d))}),b.jsx("span",{className:"text-xs text-gray-500 uppercase",children:f})]})}),b.jsx("td",{className:"px-4 py-4 text-sm",children:b.jsx("div",{className:"flex items-center gap-x-2",children:u})}),b.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:b.jsx("div",{className:"flex items-center gap-x-3",children:b.jsx("div",{children:b.jsx(fr,{to:`/${encodeURIComponent(l)}`,className:"flex items-center justify-center flex-shrink-0 font-medium text-gray-900 text-sm mb-1 hover:bg-gray-100 rounded-full h-6 w-6",children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5",children:b.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 Sce({features:e}){const t=Object.entries(e).map(([i,o])=>({name:i,data:o||0,health:o.additional_metrics.health.overall||0})).sort((i,o)=>i.health-o.health).slice(0,5),n=Object.entries(e).map(([i,o])=>({name:i,data:o||0,score:o.additional_metrics.test_coverage.score||0})).sort((i,o)=>i.score-o.score).slice(0,5),r=({title:i})=>b.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider",children:b.jsx("div",{className:"flex items-center gap-x-2",children:i})});return b.jsxs("div",{className:"max-w-7xl mx-auto p-4 md:p-8",children:[b.jsx("div",{className:"mb-8",children:b.jsx(fr,{to:"/",className:"text-gray-600 hover:text-blue-800 block text-sm font-normal",children:"← Back to Dashboard"})}),b.jsx("div",{className:"flow-root mb-12",children:b.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[b.jsx("div",{className:"col-span-1 border border-gray-200 shadow-sm bg-white rounded-lg h-full",children:b.jsx("div",{className:"px-4 py-6 h-fit",children:b.jsx(yce,{features:e})})}),b.jsxs("div",{className:"col-span-2 h-full shadow-sm border border-gray-200 rounded-lg bg-white",children:[b.jsx("div",{className:"flex items-center justify-between px-4 py-6 bg-gray-50 rounded-md",children:b.jsx("h3",{className:"flex items-center text-xs font-semibold text-gray-800 uppercase h-8",children:"Bottom 5 Features by Health Score"})}),b.jsx("div",{className:"flow-root",children:b.jsx("div",{className:"min-w-full align-middle",children:b.jsx("div",{className:"overflow-hidden rounded-md",children:b.jsxs("table",{className:"min-w-full",children:[b.jsx("thead",{className:"bg-gray-50 border-b border-gray-200",children:b.jsxs("tr",{children:[b.jsx(r,{title:"Feature"}),b.jsx(r,{title:"Team"}),b.jsx(r,{title:"Size"}),b.jsx(r,{title:"Health Score"}),b.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider"})]})}),b.jsx("tbody",{className:"divide-y divide-gray-200 bg-white",children:t.map(i=>{const o=i.data.additional_metrics.feature_size.percent_of_max,a=ma(o),l=i.data.additional_metrics.health.score||0;return b.jsxs("tr",{children:[b.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:b.jsx("div",{className:"",children:i.name})}),b.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(Ui,{className:"size-4 text-gray-500"}),zf(i.data.assignments.teams)]})}),b.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:b.jsxs("div",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:"flex gap-1.5 items-center",children:[1,2,3,4,5].map(s=>b.jsx("div",{className:`h-5 w-1.5 rounded ${s<=Ns(o)?"bg-blue-500":"bg-gray-200"}`},s))}),b.jsx("span",{className:"text-xs text-gray-500 uppercase",children:a})]})}),b.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:b.jsxs("div",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:`w-4 h-4 rounded-full flex items-center justify-center ${Pj(l)}`,children:b.jsx("div",{className:`w-2 h-2 rounded-full ${bt(l).class}`})}),b.jsxs("span",{className:"text-gray-600",children:[l.toFixed(0),"%"]})]})}),b.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:b.jsx("div",{className:"flex items-center gap-x-3",children:b.jsx("div",{children:b.jsx(fr,{to:`/${encodeURIComponent(i.name)}`,className:"flex items-center justify-center flex-shrink-0 font-medium text-gray-900 text-sm mb-1 hover:bg-gray-100 rounded-full h-6 w-6",children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5",children:b.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"})})})})})})]},i.name)})})]})})})})]})]})}),b.jsx("div",{className:"flow-root mb-12",children:b.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[b.jsx("div",{className:"col-span-1 border border-gray-200 shadow-sm bg-white rounded-lg",children:b.jsx("div",{className:"px-4 py-6",children:b.jsx(xce,{features:e})})}),b.jsxs("div",{className:"col-span-2 h-full shadow-sm border border-gray-200 rounded-lg bg-white",children:[b.jsx("div",{className:"flex items-center justify-between px-4 py-6 bg-gray-50 rounded-md",children:b.jsx("h3",{className:"flex items-center text-xs font-semibold text-gray-800 uppercase h-8",children:"Bottom 5 Features by Test Coverage"})}),b.jsx("div",{className:"flow-root",children:b.jsx("div",{className:"min-w-full align-middle",children:b.jsx("div",{className:"overflow-hidden rounded-md",children:b.jsxs("table",{className:"min-w-full",children:[b.jsx("thead",{className:"bg-gray-50 border-b border-gray-200",children:b.jsxs("tr",{children:[b.jsx(r,{title:"Feature"}),b.jsx(r,{title:"Team"}),b.jsx(r,{title:"Size"}),b.jsx(r,{title:"Test Coverage"}),b.jsx("th",{scope:"col",className:"px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider"})]})}),b.jsx("tbody",{className:"divide-y divide-gray-200 bg-white",children:n.map(i=>{const o=i.data.additional_metrics.feature_size.percent_of_max,a=ma(o),l=i.data.additional_metrics.test_coverage.score||0;return b.jsxs("tr",{children:[b.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:b.jsx("div",{className:"",children:i.name})}),b.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(Ui,{className:"size-4 text-gray-500"}),zf(i.data.assignments.teams)]})}),b.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:b.jsxs("div",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:"flex gap-1.5 items-center",children:[1,2,3,4,5].map(s=>b.jsx("div",{className:`h-5 w-1.5 rounded ${s<=Ns(o)?"bg-blue-500":"bg-gray-200"}`},s))}),b.jsx("span",{className:"text-xs text-gray-500 uppercase",children:a})]})}),b.jsx("td",{className:"px-4 py-4 text-sm",children:b.jsxs("div",{className:"flex items-center gap-x-2",children:[b.jsx("div",{className:"flex-grow h-2 rounded-full bg-gray-100 overflow-hidden",children:b.jsx("div",{className:`h-full rounded-full ${xt(l).class}`,style:{width:`${l}%`}})}),b.jsx("span",{className:"text-sm text-gray-500",children:l?`${l.toFixed(0)}%`:"No Data"})]})}),b.jsx("td",{className:"px-4 py-4 text-sm text-gray-500",children:b.jsx("div",{className:"flex items-center gap-x-3",children:b.jsx("div",{children:b.jsx(fr,{to:`/${encodeURIComponent(i.name)}`,className:"flex items-center justify-center flex-shrink-0 font-medium text-gray-900 text-sm mb-1 hover:bg-gray-100 rounded-full h-6 w-6",children:b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",className:"size-5",children:b.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"})})})})})})]},i.name)})})]})})})})]})]})}),b.jsx("div",{className:"flow-root mb-12",children:b.jsxs("div",{className:"grid grid-cols-3 gap-6",children:[b.jsx("div",{className:"col-span-1 border border-gray-200 shadow-sm bg-white rounded-lg",children:b.jsx("div",{className:"px-4 py-6",children:b.jsx(bce,{features:e})})}),b.jsx("div",{className:"col-span-2 h-full shadow-sm border border-gray-200 rounded-lg bg-white",children:b.jsx(_ce,{features:e})})]})})]})}const Ece=({files:e})=>{const{project:t,environment:n}=Ji,r=`${t.repository.url}/blob/${n.git_ref}`,i=_.useMemo(()=>{const h=new Set;return e.forEach(g=>{const x=g.split("/");let E="";x.slice(0,-1).forEach(w=>{E=E?`${E}/${w}`:w,h.add(E)})}),h},[e]),[o,a]=_.useState("list"),[l,s]=_.useState(i),[u,c]=_.useState({key:null,direction:"asc"}),f=_.useMemo(()=>{const h={};return e.forEach(g=>{const x=g.split("/");let E=h;x.forEach((w,S)=>{S===x.length-1?E[w]={type:"file",path:g}:(E[w]=E[w]||{type:"directory",children:{}},E=E[w].children)})}),h},[e]),d=_.useMemo(()=>[...e].sort((h,g)=>u.key?h<g?u.direction==="asc"?-1:1:h>g?u.direction==="asc"?1:-1:0:0),[e,u]),p=h=>{s(g=>{const x=new Set(g);return x.has(h)?x.delete(h):x.add(h),x})},m=h=>{c(g=>({key:h,direction:g.key===h&&g.direction==="asc"?"desc":"asc"}))},v=(h,g="",x=0)=>h?Object.entries(h).map(([E,w])=>{const S=g?`${g}/${E}`:E,O=l.has(S);return w.type==="directory"?b.jsxs(j.Fragment,{children:[b.jsx("tr",{className:"hover:bg-gray-50",children:b.jsx("td",{className:"px-4 py-2 text-sm text-gray-900",children:b.jsxs("button",{onClick:()=>p(S),className:"flex items-center w-full group",style:{paddingLeft:`${x*16}px`},children:[O?b.jsx(hP,{className:"size-4 text-gray-400 mr-1 flex-shrink-0"}):b.jsx(zI,{className:"size-4 text-gray-400 mr-1 flex-shrink-0"}),b.jsx(UI,{className:"size-4 text-gray-400 mr-2 flex-shrink-0"}),b.jsx("span",{className:"font-medium text-gray-600 group-hover:text-gray-900",children:E})]})})}),O&&v(w.children,S,x+1)]},S):b.jsx("tr",{className:"",children:b.jsx("td",{className:"px-4 py-2 text-sm text-gray-900",children:b.jsxs("div",{className:"flex items-center",style:{paddingLeft:`${x*16+20}px`},children:[b.jsx(Hm,{className:"size-4 text-gray-400 mr-2 flex-shrink-0"}),b.jsx("span",{className:"truncate",children:E})]})})},S)}):null,y=({title:h,sortKey:g,className:x=""})=>b.jsx("th",{scope:"col",className:`px-4 py-3 text-left text-xs font-medium text-gray-800 uppercase tracking-wider cursor-pointer ${x}`,onClick:()=>m(g),children:b.jsxs("div",{className:"flex items-center gap-x-2 group",children:[h,b.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:b.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 b.jsx("div",{className:"bg-white rounded-lg border border-gray-200",children:b.jsx("div",{className:"overflow-hidden rounded-lg",children:b.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[b.jsx("thead",{className:"bg-gray-50",children:b.jsxs("tr",{children:[b.jsx(y,{title:o==="list"?"File Path":"Name",sortKey:"path"}),b.jsx("th",{scope:"col",className:"px-4 py-3 text-center text-xs font-medium text-gray-800 uppercase tracking-wider",children:b.jsxs("div",{className:"flex items-center justify-end gap-2",children:[b.jsx("button",{onClick:()=>a("list"),className:`p-1 rounded ${o==="list"?"text-blue-600 bg-blue-100":"text-gray-500 hover:text-gray-700 hover:bg-gray-50"}`,children:b.jsx(VI,{className:"size-4"})}),b.jsx("button",{onClick:()=>a("tree"),className:`p-1 rounded ${o==="tree"?"text-blue-600 bg-blue-100":"text-gray-500 hover:text-gray-700 hover:bg-gray-50"}`,children:b.jsx(mP,{className:"size-4"})})]})})]})}),b.jsx("tbody",{className:"divide-y divide-gray-200",children:o==="list"?d.map(h=>b.jsx("tr",{className:"",children:b.jsx("td",{className:"px-4 py-3 text-sm font-medium text-gray-900 flex-1",children:b.jsxs("div",{className:"flex items-center",children:[b.jsx(Hm,{className:"size-4 text-gray-400 mr-2 flex-shrink-0"}),b.jsx("a",{href:`${r}/${h}`,className:"truncate underline",target:"_blank",children:h})]})})},h)):v(f)})]})})})};function Oce({name:e,feature:t}){const{project:n}=Ji,i=`is:pr label:"${`Feature ${e}`}"`,o=encodeURIComponent(i),a=`${n.repository.url}/pulls?q=${o}`;return b.jsxs("div",{className:"bg-white p-4 rounded-lg border border-gray-200 h-fit",children:[b.jsxs("div",{className:"mb-6",children:[b.jsx("h2",{className:"text-lg font-bold text-gray-800 mb-2",children:e}),t.description&&b.jsx("p",{className:"text-sm md:text-base text-gray-600",children:t.description})]}),b.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-3",children:"Metrics"}),b.jsxs("ul",{className:"mb-6 space-y-2",children:[b.jsxs("li",{className:"flex items-center gap-2",children:[b.jsx("div",{className:"flex-shrink-0",children:b.jsx(mP,{className:"size-4 text-gray-500"})}),b.jsxs("p",{className:"text-sm text-gray-700",children:[t.assignments.files?t.assignments.files.length:0," Total Files"]})]}),b.jsxs("li",{className:"flex items-center gap-2",children:[b.jsx("div",{className:"flex-shrink-0",children:b.jsx(qI,{className:"size-4 text-gray-500"})}),b.jsxs("p",{className:"text-sm text-gray-700",children:[(t.metrics.abc_size||0).toFixed(2)," ABC Size"]})]}),b.jsxs("li",{className:"flex items-center gap-2",children:[b.jsx("div",{className:"flex-shrink-0",children:b.jsx(Hm,{className:"size-4 text-gray-500"})}),b.jsxs("p",{className:"text-sm text-gray-700",children:[t.metrics.lines_of_code||0," Lines of Code"]})]}),b.jsxs("li",{className:"flex items-center gap-2",children:[b.jsx("div",{className:"flex-shrink-0",children:b.jsx(HI,{className:"size-4 text-gray-500"})}),b.jsxs("p",{className:"text-sm text-gray-700",children:[t.metrics.cyclomatic_complexity||0," Cyclomatic Complexity"]})]}),b.jsxs("li",{className:"flex items-center gap-2",children:[b.jsx("div",{className:"flex-shrink-0",children:b.jsx(WI,{className:"size-4 text-gray-500"})}),b.jsxs("p",{className:"text-sm text-gray-700",children:[t.metrics.todo_locations?Object.keys(t.metrics.todo_locations).length:0," TODO Comments"]})]})]}),b.jsx("div",{className:"space-y-4 mb-6",children:b.jsxs("div",{children:[b.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-3",children:"Teams"}),b.jsx("ul",{className:"flex flex-col gap-y-1",children:t.assignments.teams?t.assignments.teams.map(l=>b.jsxs("li",{className:"text-sm text-gray-700 flex gap-2",children:[b.jsx("div",{className:"flex items-center justify-center flex-shrink-0",children:b.jsx(Ui,{className:"size-4 text-gray-500"})}),l]},l)):b.jsxs("li",{className:"text-sm text-gray-700 flex gap-2",children:[b.jsx("div",{className:"flex items-center justify-center flex-shrink-0",children:b.jsx(Ui,{className:"size-4 text-gray-500"})}),b.jsx("span",{className:"text-gray-400 italic text-sm",children:"No teams assigned"})]})})]})}),b.jsxs("div",{className:"mb",children:[b.jsx("h3",{className:"text-sm font-medium text-gray-900 mb-3",children:"Resources"}),b.jsxs("ul",{className:"mb-6 space-y-2",children:[b.jsxs("li",{className:"flex items-center gap-2",children:[b.jsx("div",{className:"flex-shrink-0",children:b.jsx(rh,{className:"size-4 text-gray-500"})}),b.jsx("a",{href:a,target:"_blank",className:"text-sm text-gray-700 hover:underline",children:"Feature Pull Requests"})]}),b.jsxs("li",{className:"flex items-center gap-2",children:[b.jsx("div",{className:"flex-shrink-0",children:b.jsx(rh,{className:"size-4 text-gray-500"})}),t.documentation_link?b.jsx("a",{href:t.documentation_link,target:"_blank",className:"text-sm text-gray-700 hover:underline",children:"Feature Documentation"}):b.jsx("span",{className:"text-gray-400 italic text-sm",children:"Missing documentation link"})]}),b.jsxs("li",{className:"flex items-center gap-2",children:[b.jsx("div",{className:"flex-shrink-0",children:b.jsx(rh,{className:"size-4 text-gray-500"})}),t.dashboard_link?b.jsx("a",{href:t.dashboard_link,target:"_blank",className:"text-sm text-gray-700 hover:underline",children:"New Relic Dashboard"}):b.jsx("span",{className:"text-gray-400 italic text-sm",children:"Missing New Relic Dashboard"})]})]})]})]})}const $ce=({value:e,suffix:t="",color:n="#ef4444"})=>{const r=e===0?"transparent":n;return b.jsxs("div",{className:"relative h-20 w-20",children:[b.jsxs("svg",{className:"h-full w-full -rotate-90",viewBox:"0 0 36 36",children:[b.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"}),b.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`})]}),b.jsxs("div",{className:"absolute inset-0 flex items-center justify-center",children:[b.jsx("span",{className:"text-2xl font-bold",children:Math.round(e)}),b.jsx("span",{className:"text-sm",children:t})]})]})},NE=({children:e,title:t,value:n,suffix:r="",icon:i,tooltip:o,color:a})=>b.jsxs("div",{className:"flex flex-col gap-6 px-4 py-6 border border-gray-200 shadow-sm bg-white rounded-lg",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[b.jsx("div",{className:"flex-shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:i}),b.jsx("span",{className:"flex pl-2",children:t})]}),o&&b.jsxs(au,{children:[b.jsx(Fa,{children:b.jsx(oi,{className:"size-4 text-gray-400"})}),b.jsx(Ba,{children:o})]})]}),b.jsxs("div",{className:"flex items-center gap-4",children:[b.jsx($ce,{value:n,suffix:r,color:a}),b.jsx("div",{className:"flex flex-col flex-1",children:e})]})]});var Pce={value:()=>{}};function uC(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new vc(n)}function vc(e){this._=e}function Ace(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}vc.prototype=uC.prototype={constructor:vc,on:function(e,t){var n=this._,r=Ace(e+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o<a;)if((i=(e=r[o]).type)&&(i=Tce(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<a;)if(i=(e=r[o]).type)n[i]=ME(n[i],e.name,t);else if(t==null)for(i in n)n[i]=ME(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new vc(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],r=0,i=o.length;r<i;++r)o[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};function Tce(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function ME(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Pce,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var Cg="http://www.w3.org/1999/xhtml";const IE={svg:"http://www.w3.org/2000/svg",xhtml:Cg,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Op(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),IE.hasOwnProperty(t)?{space:IE[t],local:e}:e}function jce(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Cg&&t.documentElement.namespaceURI===Cg?t.createElement(e):t.createElementNS(n,e)}}function Cce(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function cC(e){var t=Op(e);return(t.local?Cce:jce)(t)}function kce(){}function bx(e){return e==null?kce:function(){return this.querySelector(e)}}function Nce(e){typeof e!="function"&&(e=bx(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],a=o.length,l=r[i]=new Array(a),s,u,c=0;c<a;++c)(s=o[c])&&(u=e.call(s,s.__data__,c,o))&&("__data__"in s&&(u.__data__=s.__data__),l[c]=u);return new Ht(r,this._parents)}function Mce(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Ice(){return[]}function fC(e){return e==null?Ice:function(){return this.querySelectorAll(e)}}function Rce(e){return function(){return Mce(e.apply(this,arguments))}}function Lce(e){typeof e=="function"?e=Rce(e):e=fC(e);for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a=t[o],l=a.length,s,u=0;u<l;++u)(s=a[u])&&(r.push(e.call(s,s.__data__,u,a)),i.push(s));return new Ht(r,i)}function dC(e){return function(){return this.matches(e)}}function pC(e){return function(t){return t.matches(e)}}var Dce=Array.prototype.find;function Fce(e){return function(){return Dce.call(this.children,e)}}function Bce(){return this.firstElementChild}function zce(e){return this.select(e==null?Bce:Fce(typeof e=="function"?e:pC(e)))}var Uce=Array.prototype.filter;function Hce(){return Array.from(this.children)}function Wce(e){return function(){return Uce.call(this.children,e)}}function Vce(e){return this.selectAll(e==null?Hce:Wce(typeof e=="function"?e:pC(e)))}function Kce(e){typeof e!="function"&&(e=dC(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],a=o.length,l=r[i]=[],s,u=0;u<a;++u)(s=o[u])&&e.call(s,s.__data__,u,o)&&l.push(s);return new Ht(r,this._parents)}function hC(e){return new Array(e.length)}function qce(){return new Ht(this._enter||this._groups.map(hC),this._parents)}function Yf(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Yf.prototype={constructor:Yf,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Gce(e){return function(){return e}}function Xce(e,t,n,r,i,o){for(var a=0,l,s=t.length,u=o.length;a<u;++a)(l=t[a])?(l.__data__=o[a],r[a]=l):n[a]=new Yf(e,o[a]);for(;a<s;++a)(l=t[a])&&(i[a]=l)}function Yce(e,t,n,r,i,o,a){var l,s,u=new Map,c=t.length,f=o.length,d=new Array(c),p;for(l=0;l<c;++l)(s=t[l])&&(d[l]=p=a.call(s,s.__data__,l,t)+"",u.has(p)?i[l]=s:u.set(p,s));for(l=0;l<f;++l)p=a.call(e,o[l],l,o)+"",(s=u.get(p))?(r[l]=s,s.__data__=o[l],u.delete(p)):n[l]=new Yf(e,o[l]);for(l=0;l<c;++l)(s=t[l])&&u.get(d[l])===s&&(i[l]=s)}function Qce(e){return e.__data__}function Zce(e,t){if(!arguments.length)return Array.from(this,Qce);var n=t?Yce:Xce,r=this._parents,i=this._groups;typeof e!="function"&&(e=Gce(e));for(var o=i.length,a=new Array(o),l=new Array(o),s=new Array(o),u=0;u<o;++u){var c=r[u],f=i[u],d=f.length,p=Jce(e.call(c,c&&c.__data__,u,r)),m=p.length,v=l[u]=new Array(m),y=a[u]=new Array(m),h=s[u]=new Array(d);n(c,f,v,y,h,p,t);for(var g=0,x=0,E,w;g<m;++g)if(E=v[g]){for(g>=x&&(x=g+1);!(w=y[x])&&++x<m;);E._next=w||null}}return a=new Ht(a,r),a._enter=l,a._exit=s,a}function Jce(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function efe(){return new Ht(this._exit||this._groups.map(hC),this._parents)}function tfe(e,t,n){var r=this.enter(),i=this,o=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function nfe(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,a=Math.min(i,o),l=new Array(i),s=0;s<a;++s)for(var u=n[s],c=r[s],f=u.length,d=l[s]=new Array(f),p,m=0;m<f;++m)(p=u[m]||c[m])&&(d[m]=p);for(;s<i;++s)l[s]=n[s];return new Ht(l,this._parents)}function rfe(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,o=r[i],a;--i>=0;)(a=r[i])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function ife(e){e||(e=ofe);function t(f,d){return f&&d?e(f.__data__,d.__data__):!f-!d}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a=n[o],l=a.length,s=i[o]=new Array(l),u,c=0;c<l;++c)(u=a[c])&&(s[c]=u);s.sort(t)}return new Ht(i,this._parents).order()}function ofe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function afe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function lfe(){return Array.from(this)}function sfe(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null}function ufe(){let e=0;for(const t of this)++e;return e}function cfe(){return!this.node()}function ffe(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],o=0,a=i.length,l;o<a;++o)(l=i[o])&&e.call(l,l.__data__,o,i);return this}function dfe(e){return function(){this.removeAttribute(e)}}function pfe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function hfe(e,t){return function(){this.setAttribute(e,t)}}function mfe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function vfe(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function gfe(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function yfe(e,t){var n=Op(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?pfe:dfe:typeof t=="function"?n.local?gfe:vfe:n.local?mfe:hfe)(n,t))}function mC(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function xfe(e){return function(){this.style.removeProperty(e)}}function bfe(e,t,n){return function(){this.style.setProperty(e,t,n)}}function wfe(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function _fe(e,t,n){return arguments.length>1?this.each((t==null?xfe:typeof t=="function"?wfe:bfe)(e,t,n??"")):ga(this.node(),e)}function ga(e,t){return e.style.getPropertyValue(t)||mC(e).getComputedStyle(e,null).getPropertyValue(t)}function Sfe(e){return function(){delete this[e]}}function Efe(e,t){return function(){this[e]=t}}function Ofe(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function $fe(e,t){return arguments.length>1?this.each((t==null?Sfe:typeof t=="function"?Ofe:Efe)(e,t)):this.node()[e]}function vC(e){return e.trim().split(/^|\s+/)}function wx(e){return e.classList||new gC(e)}function gC(e){this._node=e,this._names=vC(e.getAttribute("class")||"")}gC.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function yC(e,t){for(var n=wx(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function xC(e,t){for(var n=wx(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function Pfe(e){return function(){yC(this,e)}}function Afe(e){return function(){xC(this,e)}}function Tfe(e,t){return function(){(t.apply(this,arguments)?yC:xC)(this,e)}}function jfe(e,t){var n=vC(e+"");if(arguments.length<2){for(var r=wx(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?Tfe:t?Pfe:Afe)(n,t))}function Cfe(){this.textContent=""}function kfe(e){return function(){this.textContent=e}}function Nfe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Mfe(e){return arguments.length?this.each(e==null?Cfe:(typeof e=="function"?Nfe:kfe)(e)):this.node().textContent}function Ife(){this.innerHTML=""}function Rfe(e){return function(){this.innerHTML=e}}function Lfe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Dfe(e){return arguments.length?this.each(e==null?Ife:(typeof e=="function"?Lfe:Rfe)(e)):this.node().innerHTML}function Ffe(){this.nextSibling&&this.parentNode.appendChild(this)}function Bfe(){return this.each(Ffe)}function zfe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ufe(){return this.each(zfe)}function Hfe(e){var t=typeof e=="function"?e:cC(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Wfe(){return null}function Vfe(e,t){var n=typeof e=="function"?e:cC(e),r=t==null?Wfe:typeof t=="function"?t:bx(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Kfe(){var e=this.parentNode;e&&e.removeChild(this)}function qfe(){return this.each(Kfe)}function Gfe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Xfe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Yfe(e){return this.select(e?Xfe:Gfe)}function Qfe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Zfe(e){return function(t){e.call(this,t,this.__data__)}}function Jfe(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function ede(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,o;n<i;++n)o=t[n],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):t[++r]=o;++r?t.length=r:delete this.__on}}}function tde(e,t,n){return function(){var r=this.__on,i,o=Zfe(t);if(r){for(var a=0,l=r.length;a<l;++a)if((i=r[a]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=t;return}}this.addEventListener(e.type,o,n),i={type:e.type,name:e.name,value:t,listener:o,options:n},r?r.push(i):this.__on=[i]}}function nde(e,t,n){var r=Jfe(e+""),i,o=r.length,a;if(arguments.length<2){var l=this.node().__on;if(l){for(var s=0,u=l.length,c;s<u;++s)for(i=0,c=l[s];i<o;++i)if((a=r[i]).type===c.type&&a.name===c.name)return c.value}return}for(l=t?tde:ede,i=0;i<o;++i)this.each(l(r[i],t,n));return this}function bC(e,t,n){var r=mC(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function rde(e,t){return function(){return bC(this,e,t)}}function ide(e,t){return function(){return bC(this,e,t.apply(this,arguments))}}function ode(e,t){return this.each((typeof t=="function"?ide:rde)(e,t))}function*ade(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length,a;i<o;++i)(a=r[i])&&(yield a)}var wC=[null];function Ht(e,t){this._groups=e,this._parents=t}function du(){return new Ht([[document.documentElement]],wC)}function lde(){return this}Ht.prototype=du.prototype={constructor:Ht,select:Nce,selectAll:Lce,selectChild:zce,selectChildren:Vce,filter:Kce,data:Zce,enter:qce,exit:efe,join:tfe,merge:nfe,selection:lde,order:rfe,sort:ife,call:afe,nodes:lfe,node:sfe,size:ufe,empty:cfe,each:ffe,attr:yfe,style:_fe,property:$fe,classed:jfe,text:Mfe,html:Dfe,raise:Bfe,lower:Ufe,append:Hfe,insert:Vfe,remove:qfe,clone:Yfe,datum:Qfe,on:nde,dispatch:ode,[Symbol.iterator]:ade};function sde(e){return typeof e=="string"?new Ht([[document.querySelector(e)]],[document.documentElement]):new Ht([[e]],wC)}var ya=0,gl=0,sl=0,_C=1e3,Qf,yl,Zf=0,Xi=0,$p=0,Ls=typeof performance=="object"&&performance.now?performance:Date,SC=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function _x(){return Xi||(SC(ude),Xi=Ls.now()+$p)}function ude(){Xi=0}function Jf(){this._call=this._time=this._next=null}Jf.prototype=EC.prototype={constructor:Jf,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?_x():+n)+(t==null?0:+t),!this._next&&yl!==this&&(yl?yl._next=this:Qf=this,yl=this),this._call=e,this._time=n,kg()},stop:function(){this._call&&(this._call=null,this._time=1/0,kg())}};function EC(e,t,n){var r=new Jf;return r.restart(e,t,n),r}function cde(){_x(),++ya;for(var e=Qf,t;e;)(t=Xi-e._time)>=0&&e._call.call(void 0,t),e=e._next;--ya}function RE(){Xi=(Zf=Ls.now())+$p,ya=gl=0;try{cde()}finally{ya=0,dde(),Xi=0}}function fde(){var e=Ls.now(),t=e-Zf;t>_C&&($p-=t,Zf=e)}function dde(){for(var e,t=Qf,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Qf=n);yl=e,kg(r)}function kg(e){if(!ya){gl&&(gl=clearTimeout(gl));var t=e-Xi;t>24?(e<1/0&&(gl=setTimeout(RE,e-Ls.now()-$p)),sl&&(sl=clearInterval(sl))):(sl||(Zf=Ls.now(),sl=setInterval(fde,_C)),ya=1,SC(RE))}}function LE(e,t,n){var r=new Jf;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var pde=uC("start","end","cancel","interrupt"),hde=[],OC=0,DE=1,Ng=2,gc=3,FE=4,Mg=5,yc=6;function Pp(e,t,n,r,i,o){var a=e.__transition;if(!a)e.__transition={};else if(n in a)return;mde(e,n,{name:t,index:r,group:i,on:pde,tween:hde,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:OC})}function Sx(e,t){var n=kn(e,t);if(n.state>OC)throw new Error("too late; already scheduled");return n}function Qn(e,t){var n=kn(e,t);if(n.state>gc)throw new Error("too late; already running");return n}function kn(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function mde(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=EC(o,0,n.time);function o(u){n.state=DE,n.timer.restart(a,n.delay,n.time),n.delay<=u&&a(u-n.delay)}function a(u){var c,f,d,p;if(n.state!==DE)return s();for(c in r)if(p=r[c],p.name===n.name){if(p.state===gc)return LE(a);p.state===FE?(p.state=yc,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete r[c]):+c<t&&(p.state=yc,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete r[c])}if(LE(function(){n.state===gc&&(n.state=FE,n.timer.restart(l,n.delay,n.time),l(u))}),n.state=Ng,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Ng){for(n.state=gc,i=new Array(d=n.tween.length),c=0,f=-1;c<d;++c)(p=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++f]=p);i.length=f+1}}function l(u){for(var c=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(s),n.state=Mg,1),f=-1,d=i.length;++f<d;)i[f].call(e,c);n.state===Mg&&(n.on.call("end",e,e.__data__,n.index,n.group),s())}function s(){n.state=yc,n.timer.stop(),delete r[t];for(var u in r)return;delete e.__transition}}function vde(e,t){var n=e.__transition,r,i,o=!0,a;if(n){t=t==null?null:t+"";for(a in n){if((r=n[a]).name!==t){o=!1;continue}i=r.state>Ng&&r.state<Mg,r.state=yc,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[a]}o&&delete e.__transition}}function gde(e){return this.each(function(){vde(this,e)})}function yde(e,t){var n,r;return function(){var i=Qn(this,e),o=i.tween;if(o!==n){r=n=o;for(var a=0,l=r.length;a<l;++a)if(r[a].name===t){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function xde(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=Qn(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var l={name:t,value:n},s=0,u=i.length;s<u;++s)if(i[s].name===t){i[s]=l;break}s===u&&i.push(l)}o.tween=i}}function bde(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=kn(this.node(),n).tween,i=0,o=r.length,a;i<o;++i)if((a=r[i]).name===e)return a.value;return null}return this.each((t==null?yde:xde)(n,e,t))}function Ex(e,t,n){var r=e._id;return e.each(function(){var i=Qn(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return kn(i,r).value[t]}}function $C(e,t){var n;return(typeof t=="number"?bn:t instanceof Hi?uf:(n=Hi(t))?(t=n,uf):KA)(e,t)}function wde(e){return function(){this.removeAttribute(e)}}function _de(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Sde(e,t,n){var r,i=n+"",o;return function(){var a=this.getAttribute(e);return a===i?null:a===r?o:o=t(r=a,n)}}function Ede(e,t,n){var r,i=n+"",o;return function(){var a=this.getAttributeNS(e.space,e.local);return a===i?null:a===r?o:o=t(r=a,n)}}function Ode(e,t,n){var r,i,o;return function(){var a,l=n(this),s;return l==null?void this.removeAttribute(e):(a=this.getAttribute(e),s=l+"",a===s?null:a===r&&s===i?o:(i=s,o=t(r=a,l)))}}function $de(e,t,n){var r,i,o;return function(){var a,l=n(this),s;return l==null?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local),s=l+"",a===s?null:a===r&&s===i?o:(i=s,o=t(r=a,l)))}}function Pde(e,t){var n=Op(e),r=n==="transform"?s9:$C;return this.attrTween(e,typeof t=="function"?(n.local?$de:Ode)(n,r,Ex(this,"attr."+e,t)):t==null?(n.local?_de:wde)(n):(n.local?Ede:Sde)(n,r,t))}function Ade(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Tde(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function jde(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&Tde(e,o)),n}return i._value=t,i}function Cde(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&Ade(e,o)),n}return i._value=t,i}function kde(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=Op(e);return this.tween(n,(r.local?jde:Cde)(r,t))}function Nde(e,t){return function(){Sx(this,e).delay=+t.apply(this,arguments)}}function Mde(e,t){return t=+t,function(){Sx(this,e).delay=t}}function Ide(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Nde:Mde)(t,e)):kn(this.node(),t).delay}function Rde(e,t){return function(){Qn(this,e).duration=+t.apply(this,arguments)}}function Lde(e,t){return t=+t,function(){Qn(this,e).duration=t}}function Dde(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Rde:Lde)(t,e)):kn(this.node(),t).duration}function Fde(e,t){if(typeof t!="function")throw new Error;return function(){Qn(this,e).ease=t}}function Bde(e){var t=this._id;return arguments.length?this.each(Fde(t,e)):kn(this.node(),t).ease}function zde(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Qn(this,e).ease=n}}function Ude(e){if(typeof e!="function")throw new Error;return this.each(zde(this._id,e))}function Hde(e){typeof e!="function"&&(e=dC(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],a=o.length,l=r[i]=[],s,u=0;u<a;++u)(s=o[u])&&e.call(s,s.__data__,u,o)&&l.push(s);return new Pr(r,this._parents,this._name,this._id)}function Wde(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),l=0;l<o;++l)for(var s=t[l],u=n[l],c=s.length,f=a[l]=new Array(c),d,p=0;p<c;++p)(d=s[p]||u[p])&&(f[p]=d);for(;l<r;++l)a[l]=t[l];return new Pr(a,this._parents,this._name,this._id)}function Vde(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function Kde(e,t,n){var r,i,o=Vde(t)?Sx:Qn;return function(){var a=o(this,e),l=a.on;l!==r&&(i=(r=l).copy()).on(t,n),a.on=i}}function qde(e,t){var n=this._id;return arguments.length<2?kn(this.node(),n).on.on(e):this.each(Kde(n,e,t))}function Gde(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Xde(){return this.on("end.remove",Gde(this._id))}function Yde(e){var t=this._name,n=this._id;typeof e!="function"&&(e=bx(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var l=r[a],s=l.length,u=o[a]=new Array(s),c,f,d=0;d<s;++d)(c=l[d])&&(f=e.call(c,c.__data__,d,l))&&("__data__"in c&&(f.__data__=c.__data__),u[d]=f,Pp(u[d],t,n,d,u,kn(c,n)));return new Pr(o,this._parents,t,n)}function Qde(e){var t=this._name,n=this._id;typeof e!="function"&&(e=fC(e));for(var r=this._groups,i=r.length,o=[],a=[],l=0;l<i;++l)for(var s=r[l],u=s.length,c,f=0;f<u;++f)if(c=s[f]){for(var d=e.call(c,c.__data__,f,s),p,m=kn(c,n),v=0,y=d.length;v<y;++v)(p=d[v])&&Pp(p,t,n,v,d,m);o.push(d),a.push(c)}return new Pr(o,a,t,n)}var Zde=du.prototype.constructor;function Jde(){return new Zde(this._groups,this._parents)}function epe(e,t){var n,r,i;return function(){var o=ga(this,e),a=(this.style.removeProperty(e),ga(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}function PC(e){return function(){this.style.removeProperty(e)}}function tpe(e,t,n){var r,i=n+"",o;return function(){var a=ga(this,e);return a===i?null:a===r?o:o=t(r=a,n)}}function npe(e,t,n){var r,i,o;return function(){var a=ga(this,e),l=n(this),s=l+"";return l==null&&(s=l=(this.style.removeProperty(e),ga(this,e))),a===s?null:a===r&&s===i?o:(i=s,o=t(r=a,l))}}function rpe(e,t){var n,r,i,o="style."+t,a="end."+o,l;return function(){var s=Qn(this,e),u=s.on,c=s.value[o]==null?l||(l=PC(t)):void 0;(u!==n||i!==c)&&(r=(n=u).copy()).on(a,i=c),s.on=r}}function ipe(e,t,n){var r=(e+="")=="transform"?l9:$C;return t==null?this.styleTween(e,epe(e,r)).on("end.style."+e,PC(e)):typeof t=="function"?this.styleTween(e,npe(e,r,Ex(this,"style."+e,t))).each(rpe(this._id,e)):this.styleTween(e,tpe(e,r,t),n).on("end.style."+e,null)}function ope(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function ape(e,t,n){var r,i;function o(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&ope(e,a,n)),r}return o._value=t,o}function lpe(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,ape(e,t,n??""))}function spe(e){return function(){this.textContent=e}}function upe(e){return function(){var t=e(this);this.textContent=t??""}}function cpe(e){return this.tween("text",typeof e=="function"?upe(Ex(this,"text",e)):spe(e==null?"":e+""))}function fpe(e){return function(t){this.textContent=e.call(this,t)}}function dpe(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&fpe(i)),t}return r._value=e,r}function ppe(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,dpe(e))}function hpe(){for(var e=this._name,t=this._id,n=AC(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],l=a.length,s,u=0;u<l;++u)if(s=a[u]){var c=kn(s,t);Pp(s,e,n,u,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Pr(r,this._parents,e,n)}function mpe(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(o,a){var l={value:a},s={value:function(){--i===0&&o()}};n.each(function(){var u=Qn(this,r),c=u.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(l),t._.interrupt.push(l),t._.end.push(s)),u.on=t}),i===0&&o()})}var vpe=0;function Pr(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function AC(){return++vpe}var Jn=du.prototype;Pr.prototype={constructor:Pr,select:Yde,selectAll:Qde,selectChild:Jn.selectChild,selectChildren:Jn.selectChildren,filter:Hde,merge:Wde,selection:Jde,transition:hpe,call:Jn.call,nodes:Jn.nodes,node:Jn.node,size:Jn.size,empty:Jn.empty,each:Jn.each,on:qde,attr:Pde,attrTween:kde,style:ipe,styleTween:lpe,text:cpe,textTween:ppe,remove:Xde,tween:bde,delay:Ide,duration:Dde,ease:Bde,easeVarying:Ude,end:mpe,[Symbol.iterator]:Jn[Symbol.iterator]};function gpe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var ype={time:null,delay:0,duration:250,ease:gpe};function xpe(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function bpe(e){var t,n;e instanceof Pr?(t=e._id,e=e._name):(t=AC(),(n=ype).time=_x(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],l=a.length,s,u=0;u<l;++u)(s=a[u])&&Pp(s,e,t,u,a,n||xpe(s,t));return new Pr(r,this._parents,e,t)}du.prototype.interrupt=gde;du.prototype.transition=bpe;function wpe(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function _pe(){return this.eachAfter(wpe)}function Spe(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this}function Epe(e,t){for(var n=this,r=[n],i,o,a=-1;n=r.pop();)if(e.call(t,n,++a,this),i=n.children)for(o=i.length-1;o>=0;--o)r.push(i[o]);return this}function Ope(e,t){for(var n=this,r=[n],i=[],o,a,l,s=-1;n=r.pop();)if(i.push(n),o=n.children)for(a=0,l=o.length;a<l;++a)r.push(o[a]);for(;n=i.pop();)e.call(t,n,++s,this);return this}function $pe(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r}function Ppe(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function Ape(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function Tpe(e){for(var t=this,n=jpe(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function jpe(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function Cpe(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function kpe(){return Array.from(this)}function Npe(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function Mpe(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*Ipe(){var e=this,t,n=[e],r,i,o;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,o=r.length;i<o;++i)n.push(r[i]);while(n.length)}function Ox(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=Dpe)):t===void 0&&(t=Lpe);for(var n=new ed(e),r,i=[n],o,a,l,s;r=i.pop();)if((a=t(r.data))&&(s=(a=Array.from(a)).length))for(r.children=a,l=s-1;l>=0;--l)i.push(o=a[l]=new ed(a[l])),o.parent=r,o.depth=r.depth+1;return n.eachBefore(Bpe)}function Rpe(){return Ox(this).eachBefore(Fpe)}function Lpe(e){return e.children}function Dpe(e){return Array.isArray(e)?e[1]:null}function Fpe(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function Bpe(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function ed(e){this.data=e,this.depth=this.height=0,this.parent=null}ed.prototype=Ox.prototype={constructor:ed,count:_pe,each:Spe,eachAfter:Ope,eachBefore:Epe,find:$pe,sum:Ppe,sort:Ape,path:Tpe,ancestors:Cpe,descendants:kpe,leaves:Npe,links:Mpe,copy:Rpe,[Symbol.iterator]:Ipe};function zpe(e){if(typeof e!="function")throw new Error;return e}function ul(){return 0}function cl(e){return function(){return e}}function Upe(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Hpe(e,t,n,r,i){for(var o=e.children,a,l=-1,s=o.length,u=e.value&&(r-t)/e.value;++l<s;)a=o[l],a.y0=n,a.y1=i,a.x0=t,a.x1=t+=a.value*u}function Wpe(e,t,n,r,i){for(var o=e.children,a,l=-1,s=o.length,u=e.value&&(i-n)/e.value;++l<s;)a=o[l],a.x0=t,a.x1=r,a.y0=n,a.y1=n+=a.value*u}var Vpe=(1+Math.sqrt(5))/2;function Kpe(e,t,n,r,i,o){for(var a=[],l=t.children,s,u,c=0,f=0,d=l.length,p,m,v=t.value,y,h,g,x,E,w,S;c<d;){p=i-n,m=o-r;do y=l[f++].value;while(!y&&f<d);for(h=g=y,w=Math.max(m/p,p/m)/(v*e),S=y*y*w,E=Math.max(g/S,S/h);f<d;++f){if(y+=u=l[f].value,u<h&&(h=u),u>g&&(g=u),S=y*y*w,x=Math.max(g/S,S/h),x>E){y-=u;break}E=x}a.push(s={value:y,dice:p<m,children:l.slice(c,f)}),s.dice?Hpe(s,n,r,i,v?r+=m*y/v:o):Wpe(s,n,r,v?n+=p*y/v:i,o),v-=y,c=f}return a}const qpe=function e(t){function n(r,i,o,a,l){Kpe(t,r,i,o,a,l)}return n.ratio=function(r){return e((r=+r)>1?r:1)},n}(Vpe);function Gpe(){var e=qpe,t=!1,n=1,r=1,i=[0],o=ul,a=ul,l=ul,s=ul,u=ul;function c(d){return d.x0=d.y0=0,d.x1=n,d.y1=r,d.eachBefore(f),i=[0],t&&d.eachBefore(Upe),d}function f(d){var p=i[d.depth],m=d.x0+p,v=d.y0+p,y=d.x1-p,h=d.y1-p;y<m&&(m=y=(m+y)/2),h<v&&(v=h=(v+h)/2),d.x0=m,d.y0=v,d.x1=y,d.y1=h,d.children&&(p=i[d.depth+1]=o(d)/2,m+=u(d)-p,v+=a(d)-p,y-=l(d)-p,h-=s(d)-p,y<m&&(m=y=(m+y)/2),h<v&&(v=h=(v+h)/2),e(d,m,v,y,h))}return c.round=function(d){return arguments.length?(t=!!d,c):t},c.size=function(d){return arguments.length?(n=+d[0],r=+d[1],c):[n,r]},c.tile=function(d){return arguments.length?(e=zpe(d),c):e},c.padding=function(d){return arguments.length?c.paddingInner(d).paddingOuter(d):c.paddingInner()},c.paddingInner=function(d){return arguments.length?(o=typeof d=="function"?d:cl(+d),c):o},c.paddingOuter=function(d){return arguments.length?c.paddingTop(d).paddingRight(d).paddingBottom(d).paddingLeft(d):c.paddingTop()},c.paddingTop=function(d){return arguments.length?(a=typeof d=="function"?d:cl(+d),c):a},c.paddingRight=function(d){return arguments.length?(l=typeof d=="function"?d:cl(+d),c):l},c.paddingBottom=function(d){return arguments.length?(s=typeof d=="function"?d:cl(+d),c):s},c.paddingLeft=function(d){return arguments.length?(u=typeof d=="function"?d:cl(+d),c):u},c}function xl(e,t,n){this.k=e,this.x=t,this.y=n}xl.prototype={constructor:xl,scale:function(e){return e===1?this:new xl(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new xl(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};xl.prototype;const Xpe=({files:e})=>{const t=_.useRef(null),n=_.useRef(null);return _.useEffect(()=>{if(!(e!=null&&e.length)||!t.current)return;const r=t.current,i=r.clientWidth,o=r.clientHeight,a=sde(n.current);a.selectAll("*").remove(),a.attr("viewBox",`0 0 ${i} ${o}`).attr("preserveAspectRatio","xMidYMid meet");const l={top:10,right:10,bottom:10,left:10},s=()=>{const y={name:"root",children:{}};e.forEach(g=>{const x=g.split("/").filter(Boolean);let E=y;x.forEach((w,S)=>{S===x.length-1?E.children[w]||(E.children[w]={name:w,value:1,type:"file"}):(E.children[w]||(E.children[w]={name:w,children:{},type:"directory"}),E=E.children[w])})});const h=g=>g.type==="file"?g:{...g,children:Object.values(g.children).map(h)};return h(y)},u=y=>y.data.type==="file"?"#eff6ff":y.data.name==="src"||y.depth===1?"#3b82f6":y.depth===2?"#60a5fa":"#93c5fd",c=Gpe().size([i,o]).paddingOuter(8).paddingTop(24).paddingInner(4).round(!0),f=Ox(s()).sum(y=>y.value||0).sort((y,h)=>h.value-y.value);c(f);const d=a.append("g"),p=f.descendants().filter(y=>{var h;return y.data.name!=="root"&&(y.data.type==="file"||((h=y.children)==null?void 0:h.length)>0)}),m=d.selectAll("g").data(p).join("g").attr("transform",y=>`translate(${y.x0},${y.y0})`);m.append("rect").attr("width",y=>y.x1-y.x0).attr("height",y=>y.y1-y.y0).attr("fill",u).attr("stroke",y=>y.data.type==="file"?"#eff6ff":"transparent").attr("stroke-width",y=>y.data.type==="file"?1:2).attr("rx",2).attr("ry",2),m.filter(y=>y.data.type==="directory").append("text").attr("x",4).attr("y",16).attr("fill","#37474f").attr("font-weight",600).attr("font-size","10px").text(y=>{const h=y.x1-y.x0,g=y.data.name;return h<40?"":g.length>12?g.slice(0,10)+"...":g}),m.filter(y=>y.data.type==="file").append("text").attr("x",y=>(y.x1-y.x0)/2).attr("y",y=>(y.y1-y.y0)/2).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("fill","#666666").attr("font-size","9px").text(y=>{const h=y.x1-y.x0,g=y.y1-y.y0;if(h<40||g<25)return"";const x=y.data.name;return x.length>20?x.slice(0,10)+"...":x});const v=()=>{const y=r.clientWidth,h=r.clientHeight;a.attr("viewBox",`0 0 ${y} ${h}`),c.size([y-l.left-l.right,h-l.top-l.bottom]),c(f),m.attr("transform",g=>`translate(${g.x0},${g.y0})`),m.select("rect").attr("width",g=>g.x1-g.x0).attr("height",g=>g.y1-g.y0),m.select("text").attr("x",g=>g.data.type==="file"?(g.x1-g.x0)/2:4).attr("y",g=>g.data.type==="file"?(g.y1-g.y0)/2:16).text(g=>{const x=g.x1-g.x0,E=g.y1-g.y0,w=g.data.name;return g.data.type==="file"?x<40||E<25?"":w.length>12?w.slice(0,10)+"...":w:x<40?"":w.length>12?w.slice(0,10)+"...":w})};return window.addEventListener("resize",v),()=>{window.removeEventListener("resize",v)}},[e]),b.jsx("div",{className:"flex flex-col h-full -mt-2 py-2 px-2",children:b.jsx("div",{className:"flex-1 relative min-h-0",ref:t,children:b.jsx("svg",{ref:n,className:"absolute inset-0 w-full h-full"})})})};function Ype({features:e}){const{name:t}=BM(),n=e[t];if(!n)return b.jsx("div",{className:"max-w-7xl mx-auto p-4 md:p-8",children:b.jsxs("div",{className:"bg-white rounded-lg shadow p-6",children:[b.jsx("h1",{className:"text-xl font-bold text-red-600",children:"Feature Not Found"}),b.jsxs("p",{className:"mt-2",children:["Could not find feature: ",t]}),b.jsx(fr,{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.percentOfMax,o=Ns(i);return b.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:[b.jsx("div",{className:"mb-8",children:b.jsx(fr,{to:"/",className:"text-gray-600 hover:text-blue-800 block text-sm font-normal",children:"← Back to Dashboard"})}),b.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-8",children:[b.jsx("div",{className:"col-span-1 lg:col-span-3",children:b.jsx(Oce,{name:t,feature:n})}),b.jsxs("div",{className:"col-span-1 lg:col-span-9",children:[b.jsxs("div",{className:"grid md:grid-cols-3 gap-4 mb-8",children:[b.jsx(NE,{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:b.jsx(Ry,{}),color:bt(r).hex,children:b.jsxs("ul",{className:"flex flex-col gap-y-1",children:[b.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]}),b.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]}),b.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]})]})}),b.jsx(NE,{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:b.jsx(Iy,{}),color:xt(n.additional_metrics.test_coverage.score).hex,children:b.jsxs("ul",{className:"flex flex-col gap-y-1",children:[b.jsxs("li",{className:"text-xs text-gray-500",children:["Hits: ",n.test_coverage?n.test_coverage.hits:0]}),b.jsxs("li",{className:"text-xs text-gray-500",children:["Lines: ",n.test_coverage?n.test_coverage.lines:0]}),b.jsxs("li",{className:"text-xs text-gray-500",children:["Misses: ",n.test_coverage?n.test_coverage.misses:0]})]})}),b.jsxs("div",{className:"flex flex-col gap-6 px-4 py-6 border border-gray-200 shadow-sm bg-white rounded-lg",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsxs("h3",{className:"flex items-center text-xs font-medium text-gray-600 uppercase",children:[b.jsx("div",{className:"flex-shrink-0 bg-gray-100 rounded-md h-8 w-8 flex items-center justify-center",children:b.jsx(vP,{})}),b.jsx("span",{className:"flex pl-2",children:"Feature Size"})]}),b.jsxs(au,{children:[b.jsx(Fa,{children:b.jsx(oi,{className:"size-4 text-gray-400"})}),b.jsx(Ba,{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."})]})]}),b.jsxs("div",{className:"flex items-center gap-4",children:[b.jsx("div",{className:"relative h-20 flex items-center",children:b.jsx("div",{className:"text-2xl font-bold uppercase",children:ma(i)})}),b.jsx("div",{className:"flex flex-col gap-y-2",children:b.jsx("div",{className:"flex gap-1.5 items-center",children:[1,2,3,4,5].map(a=>b.jsx("div",{className:`h-6 w-1.5 rounded ${a<=o?"bg-blue-500":"bg-gray-300"}`},a))})}),b.jsxs("div",{children:[b.jsxs("div",{className:"text-[10px] text-gray-500",children:[n.assignments.files?n.assignments.files.length:0," files"]}),b.jsxs("div",{className:"text-[10px] text-gray-500",children:[poe(n.metrics.lines_of_code)," lines"]})]})]})]})]}),n.assignments.files&&n.assignments.files.length>0?b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"h-[600px] bg-white rounded-lg border border-gray-200 shadow-sm mb-8",children:b.jsx(Xpe,{files:n.assignments.files})}),b.jsx(Ece,{files:n.assignments.files})]}):b.jsx("div",{className:"h-[300px] bg-white rounded-lg border border-gray-200 shadow-sm mb-8",children:b.jsx("div",{className:"flex items-center justify-center h-full text-gray-500",children:"No files found for this feature"})})]})]})]})}function Qpe(){const{features:e}=Ji,t=ii();return _.useEffect(()=>{window.scrollTo(0,0)},[t]),b.jsxs(tI,{children:[b.jsx(cc,{path:"",element:b.jsx(gce,{features:e})}),b.jsx(cc,{path:"digest",element:b.jsx(Sce,{features:e})}),b.jsx(cc,{path:":name",element:b.jsx(Ype,{features:e})})]})}Gh.createRoot(document.getElementById("root")).render(b.jsx(j.StrictMode,{children:b.jsx(OI,{children:b.jsx(Qpe,{})})}));
248
248
  </script>
249
249
  </body>
250
250
  </html>