Files
PlantGuideScraper/frontend/dist/assets/index-BXIq8BNP.js
2026-04-12 09:54:27 -05:00

284 lines
673 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var I0=e=>{throw TypeError(e)};var Eh=(e,t,r)=>t.has(e)||I0("Cannot "+r);var E=(e,t,r)=>(Eh(e,t,"read from private field"),r?r.call(e):t.get(e)),Z=(e,t,r)=>t.has(e)?I0("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),G=(e,t,r,n)=>(Eh(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ae=(e,t,r)=>(Eh(e,t,"access private method"),r);var Au=(e,t,r,n)=>({set _(i){G(e,t,i,r)},get _(){return E(e,t,n)}});function E2(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(e,i,a.get?a:{enumerable:!0,get:()=>n[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"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();var Eu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Se(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var NO={exports:{}},id={},MO={exports:{}},ce={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var su=Symbol.for("react.element"),j2=Symbol.for("react.portal"),T2=Symbol.for("react.fragment"),C2=Symbol.for("react.strict_mode"),$2=Symbol.for("react.profiler"),k2=Symbol.for("react.provider"),N2=Symbol.for("react.context"),M2=Symbol.for("react.forward_ref"),I2=Symbol.for("react.suspense"),R2=Symbol.for("react.memo"),D2=Symbol.for("react.lazy"),R0=Symbol.iterator;function L2(e){return e===null||typeof e!="object"?null:(e=R0&&e[R0]||e["@@iterator"],typeof e=="function"?e:null)}var IO={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},RO=Object.assign,DO={};function Go(e,t,r){this.props=e,this.context=t,this.refs=DO,this.updater=r||IO}Go.prototype.isReactComponent={};Go.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")};Go.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function LO(){}LO.prototype=Go.prototype;function Ov(e,t,r){this.props=e,this.context=t,this.refs=DO,this.updater=r||IO}var _v=Ov.prototype=new LO;_v.constructor=Ov;RO(_v,Go.prototype);_v.isPureReactComponent=!0;var D0=Array.isArray,BO=Object.prototype.hasOwnProperty,Pv={current:null},FO={key:!0,ref:!0,__self:!0,__source:!0};function UO(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)BO.call(t,n)&&!FO.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(s===1)i.children=r;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(n in s=e.defaultProps,s)i[n]===void 0&&(i[n]=s[n]);return{$$typeof:su,type:e,key:a,ref:o,props:i,_owner:Pv.current}}function B2(e,t){return{$$typeof:su,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Av(e){return typeof e=="object"&&e!==null&&e.$$typeof===su}function F2(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var L0=/\/+/g;function jh(e,t){return typeof e=="object"&&e!==null&&e.key!=null?F2(""+e.key):t.toString(36)}function lc(e,t,r,n,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case su:case j2:o=!0}}if(o)return o=e,i=i(o),e=n===""?"."+jh(o,0):n,D0(i)?(r="",e!=null&&(r=e.replace(L0,"$&/")+"/"),lc(i,t,r,"",function(u){return u})):i!=null&&(Av(i)&&(i=B2(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(L0,"$&/")+"/")+e)),t.push(i)),1;if(o=0,n=n===""?".":n+":",D0(e))for(var s=0;s<e.length;s++){a=e[s];var l=n+jh(a,s);o+=lc(a,t,r,l,i)}else if(l=L2(e),typeof l=="function")for(e=l.call(e),s=0;!(a=e.next()).done;)a=a.value,l=n+jh(a,s++),o+=lc(a,t,r,l,i);else if(a==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function ju(e,t,r){if(e==null)return e;var n=[],i=0;return lc(e,n,"","",function(a){return t.call(r,a,i++)}),n}function U2(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ct={current:null},uc={transition:null},z2={ReactCurrentDispatcher:Ct,ReactCurrentBatchConfig:uc,ReactCurrentOwner:Pv};function zO(){throw Error("act(...) is not supported in production builds of React.")}ce.Children={map:ju,forEach:function(e,t,r){ju(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return ju(e,function(){t++}),t},toArray:function(e){return ju(e,function(t){return t})||[]},only:function(e){if(!Av(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ce.Component=Go;ce.Fragment=T2;ce.Profiler=$2;ce.PureComponent=Ov;ce.StrictMode=C2;ce.Suspense=I2;ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z2;ce.act=zO;ce.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=RO({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=Pv.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)BO.call(t,l)&&!FO.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];n.children=s}return{$$typeof:su,type:e.type,key:i,ref:a,props:n,_owner:o}};ce.createContext=function(e){return e={$$typeof:N2,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:k2,_context:e},e.Consumer=e};ce.createElement=UO;ce.createFactory=function(e){var t=UO.bind(null,e);return t.type=e,t};ce.createRef=function(){return{current:null}};ce.forwardRef=function(e){return{$$typeof:M2,render:e}};ce.isValidElement=Av;ce.lazy=function(e){return{$$typeof:D2,_payload:{_status:-1,_result:e},_init:U2}};ce.memo=function(e,t){return{$$typeof:R2,type:e,compare:t===void 0?null:t}};ce.startTransition=function(e){var t=uc.transition;uc.transition={};try{e()}finally{uc.transition=t}};ce.unstable_act=zO;ce.useCallback=function(e,t){return Ct.current.useCallback(e,t)};ce.useContext=function(e){return Ct.current.useContext(e)};ce.useDebugValue=function(){};ce.useDeferredValue=function(e){return Ct.current.useDeferredValue(e)};ce.useEffect=function(e,t){return Ct.current.useEffect(e,t)};ce.useId=function(){return Ct.current.useId()};ce.useImperativeHandle=function(e,t,r){return Ct.current.useImperativeHandle(e,t,r)};ce.useInsertionEffect=function(e,t){return Ct.current.useInsertionEffect(e,t)};ce.useLayoutEffect=function(e,t){return Ct.current.useLayoutEffect(e,t)};ce.useMemo=function(e,t){return Ct.current.useMemo(e,t)};ce.useReducer=function(e,t,r){return Ct.current.useReducer(e,t,r)};ce.useRef=function(e){return Ct.current.useRef(e)};ce.useState=function(e){return Ct.current.useState(e)};ce.useSyncExternalStore=function(e,t,r){return Ct.current.useSyncExternalStore(e,t,r)};ce.useTransition=function(){return Ct.current.useTransition()};ce.version="18.3.1";MO.exports=ce;var j=MO.exports;const T=Se(j),W2=E2({__proto__:null,default:T},[j]);/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var H2=j,q2=Symbol.for("react.element"),K2=Symbol.for("react.fragment"),V2=Object.prototype.hasOwnProperty,G2=H2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,X2={key:!0,ref:!0,__self:!0,__source:!0};function WO(e,t,r){var n,i={},a=null,o=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)V2.call(t,n)&&!X2.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:q2,type:e,key:a,ref:o,props:i,_owner:G2.current}}id.Fragment=K2;id.jsx=WO;id.jsxs=WO;NO.exports=id;var O=NO.exports,Np={},HO={exports:{}},er={},qO={exports:{}},KO={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(k,F){var U=k.length;k.push(F);e:for(;0<U;){var K=U-1>>>1,H=k[K];if(0<i(H,F))k[K]=F,k[U]=H,U=K;else break e}}function r(k){return k.length===0?null:k[0]}function n(k){if(k.length===0)return null;var F=k[0],U=k.pop();if(U!==F){k[0]=U;e:for(var K=0,H=k.length,J=H>>>1;K<J;){var le=2*(K+1)-1,Oe=k[le],He=le+1,rr=k[He];if(0>i(Oe,U))He<H&&0>i(rr,Oe)?(k[K]=rr,k[He]=U,K=He):(k[K]=Oe,k[le]=U,K=le);else if(He<H&&0>i(rr,U))k[K]=rr,k[He]=U,K=He;else break e}}return F}function i(k,F){var U=k.sortIndex-F.sortIndex;return U!==0?U:k.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],f=1,c=null,d=3,h=!1,p=!1,m=!1,y=typeof setTimeout=="function"?setTimeout:null,v=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 b(k){for(var F=r(u);F!==null;){if(F.callback===null)n(u);else if(F.startTime<=k)n(u),F.sortIndex=F.expirationTime,t(l,F);else break;F=r(u)}}function w(k){if(m=!1,b(k),!p)if(r(l)!==null)p=!0,B(x);else{var F=r(u);F!==null&&z(w,F.startTime-k)}}function x(k,F){p=!1,m&&(m=!1,v(P),P=-1),h=!0;var U=d;try{for(b(F),c=r(l);c!==null&&(!(c.expirationTime>F)||k&&!N());){var K=c.callback;if(typeof K=="function"){c.callback=null,d=c.priorityLevel;var H=K(c.expirationTime<=F);F=e.unstable_now(),typeof H=="function"?c.callback=H:c===r(l)&&n(l),b(F)}else n(l);c=r(l)}if(c!==null)var J=!0;else{var le=r(u);le!==null&&z(w,le.startTime-F),J=!1}return J}finally{c=null,d=U,h=!1}}var S=!1,_=null,P=-1,A=5,C=-1;function N(){return!(e.unstable_now()-C<A)}function $(){if(_!==null){var k=e.unstable_now();C=k;var F=!0;try{F=_(!0,k)}finally{F?L():(S=!1,_=null)}}else S=!1}var L;if(typeof g=="function")L=function(){g($)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,R=I.port2;I.port1.onmessage=$,L=function(){R.postMessage(null)}}else L=function(){y($,0)};function B(k){_=k,S||(S=!0,L())}function z(k,F){P=y(function(){k(e.unstable_now())},F)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(k){k.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,B(x))},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(k){switch(d){case 1:case 2:case 3:var F=3;break;default:F=d}var U=d;d=F;try{return k()}finally{d=U}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,F){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var U=d;d=k;try{return F()}finally{d=U}},e.unstable_scheduleCallback=function(k,F,U){var K=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?K+U:K):U=K,k){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=U+H,k={id:f++,callback:F,priorityLevel:k,startTime:U,expirationTime:H,sortIndex:-1},U>K?(k.sortIndex=U,t(u,k),r(l)===null&&k===r(u)&&(m?(v(P),P=-1):m=!0,z(w,U-K))):(k.sortIndex=H,t(l,k),p||h||(p=!0,B(x))),k},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(k){var F=d;return function(){var U=d;d=F;try{return k.apply(this,arguments)}finally{d=U}}}})(KO);qO.exports=KO;var Q2=qO.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Y2=j,Zt=Q2;function q(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var VO=new Set,tl={};function ya(e,t){po(e,t),po(e+"Capture",t)}function po(e,t){for(tl[e]=t,e=0;e<t.length;e++)VO.add(t[e])}var yn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mp=Object.prototype.hasOwnProperty,J2=/^[: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]*$/,B0={},F0={};function Z2(e){return Mp.call(F0,e)?!0:Mp.call(B0,e)?!1:J2.test(e)?F0[e]=!0:(B0[e]=!0,!1)}function eC(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function tC(e,t,r,n){if(t===null||typeof t>"u"||eC(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function $t(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var pt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pt[e]=new $t(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pt[t]=new $t(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pt[e]=new $t(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pt[e]=new $t(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){pt[e]=new $t(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pt[e]=new $t(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pt[e]=new $t(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pt[e]=new $t(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pt[e]=new $t(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ev=/[\-:]([a-z])/g;function jv(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(Ev,jv);pt[t]=new $t(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(Ev,jv);pt[t]=new $t(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(Ev,jv);pt[t]=new $t(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){pt[e]=new $t(e,1,!1,e.toLowerCase(),null,!1,!1)});pt.xlinkHref=new $t("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){pt[e]=new $t(e,1,!1,e.toLowerCase(),null,!0,!0)});function Tv(e,t,r,n){var i=pt.hasOwnProperty(t)?pt[t]:null;(i!==null?i.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(tC(t,r,i,n)&&(r=null),n||i===null?Z2(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var _n=Y2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Tu=Symbol.for("react.element"),ja=Symbol.for("react.portal"),Ta=Symbol.for("react.fragment"),Cv=Symbol.for("react.strict_mode"),Ip=Symbol.for("react.profiler"),GO=Symbol.for("react.provider"),XO=Symbol.for("react.context"),$v=Symbol.for("react.forward_ref"),Rp=Symbol.for("react.suspense"),Dp=Symbol.for("react.suspense_list"),kv=Symbol.for("react.memo"),Nn=Symbol.for("react.lazy"),QO=Symbol.for("react.offscreen"),U0=Symbol.iterator;function hs(e){return e===null||typeof e!="object"?null:(e=U0&&e[U0]||e["@@iterator"],typeof e=="function"?e:null)}var Le=Object.assign,Th;function ks(e){if(Th===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Th=t&&t[1]||""}return`
`+Th+e}var Ch=!1;function $h(e,t){if(!e||Ch)return"";Ch=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}catch(u){if(u&&n&&typeof u.stack=="string"){for(var i=u.stack.split(`
`),a=n.stack.split(`
`),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s]){var l=`
`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{Ch=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ks(e):""}function rC(e){switch(e.tag){case 5:return ks(e.type);case 16:return ks("Lazy");case 13:return ks("Suspense");case 19:return ks("SuspenseList");case 0:case 2:case 15:return e=$h(e.type,!1),e;case 11:return e=$h(e.type.render,!1),e;case 1:return e=$h(e.type,!0),e;default:return""}}function Lp(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 Ta:return"Fragment";case ja:return"Portal";case Ip:return"Profiler";case Cv:return"StrictMode";case Rp:return"Suspense";case Dp:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case XO:return(e.displayName||"Context")+".Consumer";case GO:return(e._context.displayName||"Context")+".Provider";case $v:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case kv:return t=e.displayName||null,t!==null?t:Lp(e.type)||"Memo";case Nn:t=e._payload,e=e._init;try{return Lp(e(t))}catch{}}return null}function nC(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 Lp(t);case 8:return t===Cv?"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 ci(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function YO(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function iC(e){var t=YO(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Cu(e){e._valueTracker||(e._valueTracker=iC(e))}function JO(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=YO(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Ac(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 Bp(e,t){var r=t.checked;return Le({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function z0(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ci(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ZO(e,t){t=t.checked,t!=null&&Tv(e,"checked",t,!1)}function Fp(e,t){ZO(e,t);var r=ci(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Up(e,t.type,r):t.hasOwnProperty("defaultValue")&&Up(e,t.type,ci(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function W0(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function Up(e,t,r){(t!=="number"||Ac(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Ns=Array.isArray;function qa(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+ci(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function zp(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(q(91));return Le({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function H0(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(q(92));if(Ns(r)){if(1<r.length)throw Error(q(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:ci(r)}}function e_(e,t){var r=ci(t.value),n=ci(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function q0(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function t_(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 Wp(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?t_(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var $u,r_=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for($u=$u||document.createElement("div"),$u.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=$u.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function rl(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Bs={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},aC=["Webkit","ms","Moz","O"];Object.keys(Bs).forEach(function(e){aC.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Bs[t]=Bs[e]})});function n_(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Bs.hasOwnProperty(e)&&Bs[e]?(""+t).trim():t+"px"}function i_(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=n_(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var oC=Le({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 Hp(e,t){if(t){if(oC[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(q(62))}}function qp(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 Kp=null;function Nv(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vp=null,Ka=null,Va=null;function K0(e){if(e=cu(e)){if(typeof Vp!="function")throw Error(q(280));var t=e.stateNode;t&&(t=ud(t),Vp(e.stateNode,e.type,t))}}function a_(e){Ka?Va?Va.push(e):Va=[e]:Ka=e}function o_(){if(Ka){var e=Ka,t=Va;if(Va=Ka=null,K0(e),t)for(e=0;e<t.length;e++)K0(t[e])}}function s_(e,t){return e(t)}function l_(){}var kh=!1;function u_(e,t,r){if(kh)return e(t,r);kh=!0;try{return s_(e,t,r)}finally{kh=!1,(Ka!==null||Va!==null)&&(l_(),o_())}}function nl(e,t){var r=e.stateNode;if(r===null)return null;var n=ud(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(q(231,t,typeof r));return r}var Gp=!1;if(yn)try{var ps={};Object.defineProperty(ps,"passive",{get:function(){Gp=!0}}),window.addEventListener("test",ps,ps),window.removeEventListener("test",ps,ps)}catch{Gp=!1}function sC(e,t,r,n,i,a,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(f){this.onError(f)}}var Fs=!1,Ec=null,jc=!1,Xp=null,lC={onError:function(e){Fs=!0,Ec=e}};function uC(e,t,r,n,i,a,o,s,l){Fs=!1,Ec=null,sC.apply(lC,arguments)}function cC(e,t,r,n,i,a,o,s,l){if(uC.apply(this,arguments),Fs){if(Fs){var u=Ec;Fs=!1,Ec=null}else throw Error(q(198));jc||(jc=!0,Xp=u)}}function va(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function c_(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 V0(e){if(va(e)!==e)throw Error(q(188))}function fC(e){var t=e.alternate;if(!t){if(t=va(e),t===null)throw Error(q(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var a=i.alternate;if(a===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return V0(i),e;if(a===n)return V0(i),t;a=a.sibling}throw Error(q(188))}if(r.return!==n.return)r=i,n=a;else{for(var o=!1,s=i.child;s;){if(s===r){o=!0,r=i,n=a;break}if(s===n){o=!0,n=i,r=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===r){o=!0,r=a,n=i;break}if(s===n){o=!0,n=a,r=i;break}s=s.sibling}if(!o)throw Error(q(189))}}if(r.alternate!==n)throw Error(q(190))}if(r.tag!==3)throw Error(q(188));return r.stateNode.current===r?e:t}function f_(e){return e=fC(e),e!==null?d_(e):null}function d_(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=d_(e);if(t!==null)return t;e=e.sibling}return null}var h_=Zt.unstable_scheduleCallback,G0=Zt.unstable_cancelCallback,dC=Zt.unstable_shouldYield,hC=Zt.unstable_requestPaint,qe=Zt.unstable_now,pC=Zt.unstable_getCurrentPriorityLevel,Mv=Zt.unstable_ImmediatePriority,p_=Zt.unstable_UserBlockingPriority,Tc=Zt.unstable_NormalPriority,mC=Zt.unstable_LowPriority,m_=Zt.unstable_IdlePriority,ad=null,Hr=null;function yC(e){if(Hr&&typeof Hr.onCommitFiberRoot=="function")try{Hr.onCommitFiberRoot(ad,e,void 0,(e.current.flags&128)===128)}catch{}}var Cr=Math.clz32?Math.clz32:bC,vC=Math.log,gC=Math.LN2;function bC(e){return e>>>=0,e===0?32:31-(vC(e)/gC|0)|0}var ku=64,Nu=4194304;function Ms(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 Cc(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=r&268435455;if(o!==0){var s=o&~i;s!==0?n=Ms(s):(a&=o,a!==0&&(n=Ms(a)))}else o=r&~i,o!==0?n=Ms(o):a!==0&&(n=Ms(a));if(n===0)return 0;if(t!==0&&t!==n&&!(t&i)&&(i=n&-n,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Cr(t),i=1<<r,n|=e[r],t&=~i;return n}function xC(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 wC(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-Cr(a),s=1<<o,l=i[o];l===-1?(!(s&r)||s&n)&&(i[o]=xC(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}function Qp(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function y_(){var e=ku;return ku<<=1,!(ku&4194240)&&(ku=64),e}function Nh(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function lu(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Cr(t),e[t]=r}function SC(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-Cr(r),a=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~a}}function Iv(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-Cr(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var be=0;function v_(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var g_,Rv,b_,x_,w_,Yp=!1,Mu=[],Jn=null,Zn=null,ei=null,il=new Map,al=new Map,Dn=[],OC="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 X0(e,t){switch(e){case"focusin":case"focusout":Jn=null;break;case"dragenter":case"dragleave":Zn=null;break;case"mouseover":case"mouseout":ei=null;break;case"pointerover":case"pointerout":il.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":al.delete(t.pointerId)}}function ms(e,t,r,n,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[i]},t!==null&&(t=cu(t),t!==null&&Rv(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function _C(e,t,r,n,i){switch(t){case"focusin":return Jn=ms(Jn,e,t,r,n,i),!0;case"dragenter":return Zn=ms(Zn,e,t,r,n,i),!0;case"mouseover":return ei=ms(ei,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return il.set(a,ms(il.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,al.set(a,ms(al.get(a)||null,e,t,r,n,i)),!0}return!1}function S_(e){var t=Mi(e.target);if(t!==null){var r=va(t);if(r!==null){if(t=r.tag,t===13){if(t=c_(r),t!==null){e.blockedOn=t,w_(e.priority,function(){b_(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function cc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Jp(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Kp=n,r.target.dispatchEvent(n),Kp=null}else return t=cu(r),t!==null&&Rv(t),e.blockedOn=r,!1;t.shift()}return!0}function Q0(e,t,r){cc(e)&&r.delete(t)}function PC(){Yp=!1,Jn!==null&&cc(Jn)&&(Jn=null),Zn!==null&&cc(Zn)&&(Zn=null),ei!==null&&cc(ei)&&(ei=null),il.forEach(Q0),al.forEach(Q0)}function ys(e,t){e.blockedOn===t&&(e.blockedOn=null,Yp||(Yp=!0,Zt.unstable_scheduleCallback(Zt.unstable_NormalPriority,PC)))}function ol(e){function t(i){return ys(i,e)}if(0<Mu.length){ys(Mu[0],e);for(var r=1;r<Mu.length;r++){var n=Mu[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Jn!==null&&ys(Jn,e),Zn!==null&&ys(Zn,e),ei!==null&&ys(ei,e),il.forEach(t),al.forEach(t),r=0;r<Dn.length;r++)n=Dn[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<Dn.length&&(r=Dn[0],r.blockedOn===null);)S_(r),r.blockedOn===null&&Dn.shift()}var Ga=_n.ReactCurrentBatchConfig,$c=!0;function AC(e,t,r,n){var i=be,a=Ga.transition;Ga.transition=null;try{be=1,Dv(e,t,r,n)}finally{be=i,Ga.transition=a}}function EC(e,t,r,n){var i=be,a=Ga.transition;Ga.transition=null;try{be=4,Dv(e,t,r,n)}finally{be=i,Ga.transition=a}}function Dv(e,t,r,n){if($c){var i=Jp(e,t,r,n);if(i===null)Wh(e,t,n,kc,r),X0(e,n);else if(_C(i,e,t,r,n))n.stopPropagation();else if(X0(e,n),t&4&&-1<OC.indexOf(e)){for(;i!==null;){var a=cu(i);if(a!==null&&g_(a),a=Jp(e,t,r,n),a===null&&Wh(e,t,n,kc,r),a===i)break;i=a}i!==null&&n.stopPropagation()}else Wh(e,t,n,null,r)}}var kc=null;function Jp(e,t,r,n){if(kc=null,e=Nv(n),e=Mi(e),e!==null)if(t=va(e),t===null)e=null;else if(r=t.tag,r===13){if(e=c_(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return kc=e,null}function O_(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(pC()){case Mv:return 1;case p_:return 4;case Tc:case mC:return 16;case m_:return 536870912;default:return 16}default:return 16}}var Gn=null,Lv=null,fc=null;function __(){if(fc)return fc;var e,t=Lv,r=t.length,n,i="value"in Gn?Gn.value:Gn.textContent,a=i.length;for(e=0;e<r&&t[e]===i[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===i[a-n];n++);return fc=i.slice(e,1<n?1-n:void 0)}function dc(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 Iu(){return!0}function Y0(){return!1}function tr(e){function t(r,n,i,a,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(a):a[s]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Iu:Y0,this.isPropagationStopped=Y0,this}return Le(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Iu)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Iu)},persist:function(){},isPersistent:Iu}),t}var Xo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bv=tr(Xo),uu=Le({},Xo,{view:0,detail:0}),jC=tr(uu),Mh,Ih,vs,od=Le({},uu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fv,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!==vs&&(vs&&e.type==="mousemove"?(Mh=e.screenX-vs.screenX,Ih=e.screenY-vs.screenY):Ih=Mh=0,vs=e),Mh)},movementY:function(e){return"movementY"in e?e.movementY:Ih}}),J0=tr(od),TC=Le({},od,{dataTransfer:0}),CC=tr(TC),$C=Le({},uu,{relatedTarget:0}),Rh=tr($C),kC=Le({},Xo,{animationName:0,elapsedTime:0,pseudoElement:0}),NC=tr(kC),MC=Le({},Xo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),IC=tr(MC),RC=Le({},Xo,{data:0}),Z0=tr(RC),DC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},LC={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"},BC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function FC(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=BC[e])?!!t[e]:!1}function Fv(){return FC}var UC=Le({},uu,{key:function(e){if(e.key){var t=DC[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=dc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?LC[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fv,charCode:function(e){return e.type==="keypress"?dc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?dc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),zC=tr(UC),WC=Le({},od,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),eb=tr(WC),HC=Le({},uu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fv}),qC=tr(HC),KC=Le({},Xo,{propertyName:0,elapsedTime:0,pseudoElement:0}),VC=tr(KC),GC=Le({},od,{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}),XC=tr(GC),QC=[9,13,27,32],Uv=yn&&"CompositionEvent"in window,Us=null;yn&&"documentMode"in document&&(Us=document.documentMode);var YC=yn&&"TextEvent"in window&&!Us,P_=yn&&(!Uv||Us&&8<Us&&11>=Us),tb=" ",rb=!1;function A_(e,t){switch(e){case"keyup":return QC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function E_(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ca=!1;function JC(e,t){switch(e){case"compositionend":return E_(t);case"keypress":return t.which!==32?null:(rb=!0,tb);case"textInput":return e=t.data,e===tb&&rb?null:e;default:return null}}function ZC(e,t){if(Ca)return e==="compositionend"||!Uv&&A_(e,t)?(e=__(),fc=Lv=Gn=null,Ca=!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 P_&&t.locale!=="ko"?null:t.data;default:return null}}var e$={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 nb(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!e$[e.type]:t==="textarea"}function j_(e,t,r,n){a_(n),t=Nc(t,"onChange"),0<t.length&&(r=new Bv("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var zs=null,sl=null;function t$(e){B_(e,0)}function sd(e){var t=Na(e);if(JO(t))return e}function r$(e,t){if(e==="change")return t}var T_=!1;if(yn){var Dh;if(yn){var Lh="oninput"in document;if(!Lh){var ib=document.createElement("div");ib.setAttribute("oninput","return;"),Lh=typeof ib.oninput=="function"}Dh=Lh}else Dh=!1;T_=Dh&&(!document.documentMode||9<document.documentMode)}function ab(){zs&&(zs.detachEvent("onpropertychange",C_),sl=zs=null)}function C_(e){if(e.propertyName==="value"&&sd(sl)){var t=[];j_(t,sl,e,Nv(e)),u_(t$,t)}}function n$(e,t,r){e==="focusin"?(ab(),zs=t,sl=r,zs.attachEvent("onpropertychange",C_)):e==="focusout"&&ab()}function i$(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return sd(sl)}function a$(e,t){if(e==="click")return sd(t)}function o$(e,t){if(e==="input"||e==="change")return sd(t)}function s$(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var kr=typeof Object.is=="function"?Object.is:s$;function ll(e,t){if(kr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!Mp.call(t,i)||!kr(e[i],t[i]))return!1}return!0}function ob(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function sb(e,t){var r=ob(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ob(r)}}function $_(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?$_(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function k_(){for(var e=window,t=Ac();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Ac(e.document)}return t}function zv(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 l$(e){var t=k_(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&$_(r.ownerDocument.documentElement,r)){if(n!==null&&zv(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=n.end===void 0?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=sb(r,a);var o=sb(r,n);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var u$=yn&&"documentMode"in document&&11>=document.documentMode,$a=null,Zp=null,Ws=null,em=!1;function lb(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;em||$a==null||$a!==Ac(n)||(n=$a,"selectionStart"in n&&zv(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Ws&&ll(Ws,n)||(Ws=n,n=Nc(Zp,"onSelect"),0<n.length&&(t=new Bv("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=$a)))}function Ru(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var ka={animationend:Ru("Animation","AnimationEnd"),animationiteration:Ru("Animation","AnimationIteration"),animationstart:Ru("Animation","AnimationStart"),transitionend:Ru("Transition","TransitionEnd")},Bh={},N_={};yn&&(N_=document.createElement("div").style,"AnimationEvent"in window||(delete ka.animationend.animation,delete ka.animationiteration.animation,delete ka.animationstart.animation),"TransitionEvent"in window||delete ka.transitionend.transition);function ld(e){if(Bh[e])return Bh[e];if(!ka[e])return e;var t=ka[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in N_)return Bh[e]=t[r];return e}var M_=ld("animationend"),I_=ld("animationiteration"),R_=ld("animationstart"),D_=ld("transitionend"),L_=new Map,ub="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 di(e,t){L_.set(e,t),ya(t,[e])}for(var Fh=0;Fh<ub.length;Fh++){var Uh=ub[Fh],c$=Uh.toLowerCase(),f$=Uh[0].toUpperCase()+Uh.slice(1);di(c$,"on"+f$)}di(M_,"onAnimationEnd");di(I_,"onAnimationIteration");di(R_,"onAnimationStart");di("dblclick","onDoubleClick");di("focusin","onFocus");di("focusout","onBlur");di(D_,"onTransitionEnd");po("onMouseEnter",["mouseout","mouseover"]);po("onMouseLeave",["mouseout","mouseover"]);po("onPointerEnter",["pointerout","pointerover"]);po("onPointerLeave",["pointerout","pointerover"]);ya("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));ya("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ya("onBeforeInput",["compositionend","keypress","textInput","paste"]);ya("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ya("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ya("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Is="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(" "),d$=new Set("cancel close invalid load scroll toggle".split(" ").concat(Is));function cb(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,cC(n,t,void 0,e),e.currentTarget=null}function B_(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var o=n.length-1;0<=o;o--){var s=n[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;cb(i,s,u),a=l}else for(o=0;o<n.length;o++){if(s=n[o],l=s.instance,u=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;cb(i,s,u),a=l}}}if(jc)throw e=Xp,jc=!1,Xp=null,e}function Ce(e,t){var r=t[am];r===void 0&&(r=t[am]=new Set);var n=e+"__bubble";r.has(n)||(F_(t,e,2,!1),r.add(n))}function zh(e,t,r){var n=0;t&&(n|=4),F_(r,e,n,t)}var Du="_reactListening"+Math.random().toString(36).slice(2);function ul(e){if(!e[Du]){e[Du]=!0,VO.forEach(function(r){r!=="selectionchange"&&(d$.has(r)||zh(r,!1,e),zh(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Du]||(t[Du]=!0,zh("selectionchange",!1,t))}}function F_(e,t,r,n){switch(O_(t)){case 1:var i=AC;break;case 4:i=EC;break;default:i=Dv}r=i.bind(null,t,r,e),i=void 0,!Gp||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function Wh(e,t,r,n,i){var a=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var s=n.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=n.return;o!==null;){var l=o.tag;if((l===3||l===4)&&(l=o.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;o=o.return}for(;s!==null;){if(o=Mi(s),o===null)return;if(l=o.tag,l===5||l===6){n=a=o;continue e}s=s.parentNode}}n=n.return}u_(function(){var u=a,f=Nv(r),c=[];e:{var d=L_.get(e);if(d!==void 0){var h=Bv,p=e;switch(e){case"keypress":if(dc(r)===0)break e;case"keydown":case"keyup":h=zC;break;case"focusin":p="focus",h=Rh;break;case"focusout":p="blur",h=Rh;break;case"beforeblur":case"afterblur":h=Rh;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=J0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=CC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=qC;break;case M_:case I_:case R_:h=NC;break;case D_:h=VC;break;case"scroll":h=jC;break;case"wheel":h=XC;break;case"copy":case"cut":case"paste":h=IC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=eb}var m=(t&4)!==0,y=!m&&e==="scroll",v=m?d!==null?d+"Capture":null:d;m=[];for(var g=u,b;g!==null;){b=g;var w=b.stateNode;if(b.tag===5&&w!==null&&(b=w,v!==null&&(w=nl(g,v),w!=null&&m.push(cl(g,w,b)))),y)break;g=g.return}0<m.length&&(d=new h(d,p,null,r,f),c.push({event:d,listeners:m}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&r!==Kp&&(p=r.relatedTarget||r.fromElement)&&(Mi(p)||p[vn]))break e;if((h||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,h?(p=r.relatedTarget||r.toElement,h=u,p=p?Mi(p):null,p!==null&&(y=va(p),p!==y||p.tag!==5&&p.tag!==6)&&(p=null)):(h=null,p=u),h!==p)){if(m=J0,w="onMouseLeave",v="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(m=eb,w="onPointerLeave",v="onPointerEnter",g="pointer"),y=h==null?d:Na(h),b=p==null?d:Na(p),d=new m(w,g+"leave",h,r,f),d.target=y,d.relatedTarget=b,w=null,Mi(f)===u&&(m=new m(v,g+"enter",p,r,f),m.target=b,m.relatedTarget=y,w=m),y=w,h&&p)t:{for(m=h,v=p,g=0,b=m;b;b=_a(b))g++;for(b=0,w=v;w;w=_a(w))b++;for(;0<g-b;)m=_a(m),g--;for(;0<b-g;)v=_a(v),b--;for(;g--;){if(m===v||v!==null&&m===v.alternate)break t;m=_a(m),v=_a(v)}m=null}else m=null;h!==null&&fb(c,d,h,m,!1),p!==null&&y!==null&&fb(c,y,p,m,!0)}}e:{if(d=u?Na(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var x=r$;else if(nb(d))if(T_)x=o$;else{x=i$;var S=n$}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(x=a$);if(x&&(x=x(e,u))){j_(c,x,r,f);break e}S&&S(e,d,u),e==="focusout"&&(S=d._wrapperState)&&S.controlled&&d.type==="number"&&Up(d,"number",d.value)}switch(S=u?Na(u):window,e){case"focusin":(nb(S)||S.contentEditable==="true")&&($a=S,Zp=u,Ws=null);break;case"focusout":Ws=Zp=$a=null;break;case"mousedown":em=!0;break;case"contextmenu":case"mouseup":case"dragend":em=!1,lb(c,r,f);break;case"selectionchange":if(u$)break;case"keydown":case"keyup":lb(c,r,f)}var _;if(Uv)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Ca?A_(e,r)&&(P="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(P="onCompositionStart");P&&(P_&&r.locale!=="ko"&&(Ca||P!=="onCompositionStart"?P==="onCompositionEnd"&&Ca&&(_=__()):(Gn=f,Lv="value"in Gn?Gn.value:Gn.textContent,Ca=!0)),S=Nc(u,P),0<S.length&&(P=new Z0(P,e,null,r,f),c.push({event:P,listeners:S}),_?P.data=_:(_=E_(r),_!==null&&(P.data=_)))),(_=YC?JC(e,r):ZC(e,r))&&(u=Nc(u,"onBeforeInput"),0<u.length&&(f=new Z0("onBeforeInput","beforeinput",null,r,f),c.push({event:f,listeners:u}),f.data=_))}B_(c,t)})}function cl(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Nc(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=nl(e,r),a!=null&&n.unshift(cl(e,a,i)),a=nl(e,t),a!=null&&n.push(cl(e,a,i))),e=e.return}return n}function _a(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function fb(e,t,r,n,i){for(var a=t._reactName,o=[];r!==null&&r!==n;){var s=r,l=s.alternate,u=s.stateNode;if(l!==null&&l===n)break;s.tag===5&&u!==null&&(s=u,i?(l=nl(r,a),l!=null&&o.unshift(cl(r,l,s))):i||(l=nl(r,a),l!=null&&o.push(cl(r,l,s)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}var h$=/\r\n?/g,p$=/\u0000|\uFFFD/g;function db(e){return(typeof e=="string"?e:""+e).replace(h$,`
`).replace(p$,"")}function Lu(e,t,r){if(t=db(t),db(e)!==t&&r)throw Error(q(425))}function Mc(){}var tm=null,rm=null;function nm(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 im=typeof setTimeout=="function"?setTimeout:void 0,m$=typeof clearTimeout=="function"?clearTimeout:void 0,hb=typeof Promise=="function"?Promise:void 0,y$=typeof queueMicrotask=="function"?queueMicrotask:typeof hb<"u"?function(e){return hb.resolve(null).then(e).catch(v$)}:im;function v$(e){setTimeout(function(){throw e})}function Hh(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(n===0){e.removeChild(i),ol(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=i}while(r);ol(t)}function ti(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 pb(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Qo=Math.random().toString(36).slice(2),Ur="__reactFiber$"+Qo,fl="__reactProps$"+Qo,vn="__reactContainer$"+Qo,am="__reactEvents$"+Qo,g$="__reactListeners$"+Qo,b$="__reactHandles$"+Qo;function Mi(e){var t=e[Ur];if(t)return t;for(var r=e.parentNode;r;){if(t=r[vn]||r[Ur]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=pb(e);e!==null;){if(r=e[Ur])return r;e=pb(e)}return t}e=r,r=e.parentNode}return null}function cu(e){return e=e[Ur]||e[vn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Na(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(q(33))}function ud(e){return e[fl]||null}var om=[],Ma=-1;function hi(e){return{current:e}}function Ne(e){0>Ma||(e.current=om[Ma],om[Ma]=null,Ma--)}function Ee(e,t){Ma++,om[Ma]=e.current,e.current=t}var fi={},St=hi(fi),Bt=hi(!1),na=fi;function mo(e,t){var r=e.type.contextTypes;if(!r)return fi;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ft(e){return e=e.childContextTypes,e!=null}function Ic(){Ne(Bt),Ne(St)}function mb(e,t,r){if(St.current!==fi)throw Error(q(168));Ee(St,t),Ee(Bt,r)}function U_(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in t))throw Error(q(108,nC(e)||"Unknown",i));return Le({},r,n)}function Rc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fi,na=St.current,Ee(St,e),Ee(Bt,Bt.current),!0}function yb(e,t,r){var n=e.stateNode;if(!n)throw Error(q(169));r?(e=U_(e,t,na),n.__reactInternalMemoizedMergedChildContext=e,Ne(Bt),Ne(St),Ee(St,e)):Ne(Bt),Ee(Bt,r)}var en=null,cd=!1,qh=!1;function z_(e){en===null?en=[e]:en.push(e)}function x$(e){cd=!0,z_(e)}function pi(){if(!qh&&en!==null){qh=!0;var e=0,t=be;try{var r=en;for(be=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}en=null,cd=!1}catch(i){throw en!==null&&(en=en.slice(e+1)),h_(Mv,pi),i}finally{be=t,qh=!1}}return null}var Ia=[],Ra=0,Dc=null,Lc=0,lr=[],ur=0,ia=null,on=1,sn="";function Ai(e,t){Ia[Ra++]=Lc,Ia[Ra++]=Dc,Dc=e,Lc=t}function W_(e,t,r){lr[ur++]=on,lr[ur++]=sn,lr[ur++]=ia,ia=e;var n=on;e=sn;var i=32-Cr(n)-1;n&=~(1<<i),r+=1;var a=32-Cr(t)+i;if(30<a){var o=i-i%5;a=(n&(1<<o)-1).toString(32),n>>=o,i-=o,on=1<<32-Cr(t)+i|r<<i|n,sn=a+e}else on=1<<a|r<<i|n,sn=e}function Wv(e){e.return!==null&&(Ai(e,1),W_(e,1,0))}function Hv(e){for(;e===Dc;)Dc=Ia[--Ra],Ia[Ra]=null,Lc=Ia[--Ra],Ia[Ra]=null;for(;e===ia;)ia=lr[--ur],lr[ur]=null,sn=lr[--ur],lr[ur]=null,on=lr[--ur],lr[ur]=null}var Yt=null,Qt=null,Me=!1,jr=null;function H_(e,t){var r=fr(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function vb(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Yt=e,Qt=ti(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Yt=e,Qt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=ia!==null?{id:on,overflow:sn}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=fr(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Yt=e,Qt=null,!0):!1;default:return!1}}function sm(e){return(e.mode&1)!==0&&(e.flags&128)===0}function lm(e){if(Me){var t=Qt;if(t){var r=t;if(!vb(e,t)){if(sm(e))throw Error(q(418));t=ti(r.nextSibling);var n=Yt;t&&vb(e,t)?H_(n,r):(e.flags=e.flags&-4097|2,Me=!1,Yt=e)}}else{if(sm(e))throw Error(q(418));e.flags=e.flags&-4097|2,Me=!1,Yt=e}}}function gb(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Yt=e}function Bu(e){if(e!==Yt)return!1;if(!Me)return gb(e),Me=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!nm(e.type,e.memoizedProps)),t&&(t=Qt)){if(sm(e))throw q_(),Error(q(418));for(;t;)H_(e,t),t=ti(t.nextSibling)}if(gb(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(q(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Qt=ti(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Qt=null}}else Qt=Yt?ti(e.stateNode.nextSibling):null;return!0}function q_(){for(var e=Qt;e;)e=ti(e.nextSibling)}function yo(){Qt=Yt=null,Me=!1}function qv(e){jr===null?jr=[e]:jr.push(e)}var w$=_n.ReactCurrentBatchConfig;function gs(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(q(309));var n=r.stateNode}if(!n)throw Error(q(147,e));var i=n,a=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===a?t.ref:(t=function(o){var s=i.refs;o===null?delete s[a]:s[a]=o},t._stringRef=a,t)}if(typeof e!="string")throw Error(q(284));if(!r._owner)throw Error(q(290,e))}return e}function Fu(e,t){throw e=Object.prototype.toString.call(t),Error(q(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bb(e){var t=e._init;return t(e._payload)}function K_(e){function t(v,g){if(e){var b=v.deletions;b===null?(v.deletions=[g],v.flags|=16):b.push(g)}}function r(v,g){if(!e)return null;for(;g!==null;)t(v,g),g=g.sibling;return null}function n(v,g){for(v=new Map;g!==null;)g.key!==null?v.set(g.key,g):v.set(g.index,g),g=g.sibling;return v}function i(v,g){return v=ai(v,g),v.index=0,v.sibling=null,v}function a(v,g,b){return v.index=b,e?(b=v.alternate,b!==null?(b=b.index,b<g?(v.flags|=2,g):b):(v.flags|=2,g)):(v.flags|=1048576,g)}function o(v){return e&&v.alternate===null&&(v.flags|=2),v}function s(v,g,b,w){return g===null||g.tag!==6?(g=Jh(b,v.mode,w),g.return=v,g):(g=i(g,b),g.return=v,g)}function l(v,g,b,w){var x=b.type;return x===Ta?f(v,g,b.props.children,w,b.key):g!==null&&(g.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Nn&&bb(x)===g.type)?(w=i(g,b.props),w.ref=gs(v,g,b),w.return=v,w):(w=bc(b.type,b.key,b.props,null,v.mode,w),w.ref=gs(v,g,b),w.return=v,w)}function u(v,g,b,w){return g===null||g.tag!==4||g.stateNode.containerInfo!==b.containerInfo||g.stateNode.implementation!==b.implementation?(g=Zh(b,v.mode,w),g.return=v,g):(g=i(g,b.children||[]),g.return=v,g)}function f(v,g,b,w,x){return g===null||g.tag!==7?(g=Zi(b,v.mode,w,x),g.return=v,g):(g=i(g,b),g.return=v,g)}function c(v,g,b){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Jh(""+g,v.mode,b),g.return=v,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Tu:return b=bc(g.type,g.key,g.props,null,v.mode,b),b.ref=gs(v,null,g),b.return=v,b;case ja:return g=Zh(g,v.mode,b),g.return=v,g;case Nn:var w=g._init;return c(v,w(g._payload),b)}if(Ns(g)||hs(g))return g=Zi(g,v.mode,b,null),g.return=v,g;Fu(v,g)}return null}function d(v,g,b,w){var x=g!==null?g.key:null;if(typeof b=="string"&&b!==""||typeof b=="number")return x!==null?null:s(v,g,""+b,w);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Tu:return b.key===x?l(v,g,b,w):null;case ja:return b.key===x?u(v,g,b,w):null;case Nn:return x=b._init,d(v,g,x(b._payload),w)}if(Ns(b)||hs(b))return x!==null?null:f(v,g,b,w,null);Fu(v,b)}return null}function h(v,g,b,w,x){if(typeof w=="string"&&w!==""||typeof w=="number")return v=v.get(b)||null,s(g,v,""+w,x);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Tu:return v=v.get(w.key===null?b:w.key)||null,l(g,v,w,x);case ja:return v=v.get(w.key===null?b:w.key)||null,u(g,v,w,x);case Nn:var S=w._init;return h(v,g,b,S(w._payload),x)}if(Ns(w)||hs(w))return v=v.get(b)||null,f(g,v,w,x,null);Fu(g,w)}return null}function p(v,g,b,w){for(var x=null,S=null,_=g,P=g=0,A=null;_!==null&&P<b.length;P++){_.index>P?(A=_,_=null):A=_.sibling;var C=d(v,_,b[P],w);if(C===null){_===null&&(_=A);break}e&&_&&C.alternate===null&&t(v,_),g=a(C,g,P),S===null?x=C:S.sibling=C,S=C,_=A}if(P===b.length)return r(v,_),Me&&Ai(v,P),x;if(_===null){for(;P<b.length;P++)_=c(v,b[P],w),_!==null&&(g=a(_,g,P),S===null?x=_:S.sibling=_,S=_);return Me&&Ai(v,P),x}for(_=n(v,_);P<b.length;P++)A=h(_,v,P,b[P],w),A!==null&&(e&&A.alternate!==null&&_.delete(A.key===null?P:A.key),g=a(A,g,P),S===null?x=A:S.sibling=A,S=A);return e&&_.forEach(function(N){return t(v,N)}),Me&&Ai(v,P),x}function m(v,g,b,w){var x=hs(b);if(typeof x!="function")throw Error(q(150));if(b=x.call(b),b==null)throw Error(q(151));for(var S=x=null,_=g,P=g=0,A=null,C=b.next();_!==null&&!C.done;P++,C=b.next()){_.index>P?(A=_,_=null):A=_.sibling;var N=d(v,_,C.value,w);if(N===null){_===null&&(_=A);break}e&&_&&N.alternate===null&&t(v,_),g=a(N,g,P),S===null?x=N:S.sibling=N,S=N,_=A}if(C.done)return r(v,_),Me&&Ai(v,P),x;if(_===null){for(;!C.done;P++,C=b.next())C=c(v,C.value,w),C!==null&&(g=a(C,g,P),S===null?x=C:S.sibling=C,S=C);return Me&&Ai(v,P),x}for(_=n(v,_);!C.done;P++,C=b.next())C=h(_,v,P,C.value,w),C!==null&&(e&&C.alternate!==null&&_.delete(C.key===null?P:C.key),g=a(C,g,P),S===null?x=C:S.sibling=C,S=C);return e&&_.forEach(function($){return t(v,$)}),Me&&Ai(v,P),x}function y(v,g,b,w){if(typeof b=="object"&&b!==null&&b.type===Ta&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Tu:e:{for(var x=b.key,S=g;S!==null;){if(S.key===x){if(x=b.type,x===Ta){if(S.tag===7){r(v,S.sibling),g=i(S,b.props.children),g.return=v,v=g;break e}}else if(S.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Nn&&bb(x)===S.type){r(v,S.sibling),g=i(S,b.props),g.ref=gs(v,S,b),g.return=v,v=g;break e}r(v,S);break}else t(v,S);S=S.sibling}b.type===Ta?(g=Zi(b.props.children,v.mode,w,b.key),g.return=v,v=g):(w=bc(b.type,b.key,b.props,null,v.mode,w),w.ref=gs(v,g,b),w.return=v,v=w)}return o(v);case ja:e:{for(S=b.key;g!==null;){if(g.key===S)if(g.tag===4&&g.stateNode.containerInfo===b.containerInfo&&g.stateNode.implementation===b.implementation){r(v,g.sibling),g=i(g,b.children||[]),g.return=v,v=g;break e}else{r(v,g);break}else t(v,g);g=g.sibling}g=Zh(b,v.mode,w),g.return=v,v=g}return o(v);case Nn:return S=b._init,y(v,g,S(b._payload),w)}if(Ns(b))return p(v,g,b,w);if(hs(b))return m(v,g,b,w);Fu(v,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,g!==null&&g.tag===6?(r(v,g.sibling),g=i(g,b),g.return=v,v=g):(r(v,g),g=Jh(b,v.mode,w),g.return=v,v=g),o(v)):r(v,g)}return y}var vo=K_(!0),V_=K_(!1),Bc=hi(null),Fc=null,Da=null,Kv=null;function Vv(){Kv=Da=Fc=null}function Gv(e){var t=Bc.current;Ne(Bc),e._currentValue=t}function um(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Xa(e,t){Fc=e,Kv=Da=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Dt=!0),e.firstContext=null)}function mr(e){var t=e._currentValue;if(Kv!==e)if(e={context:e,memoizedValue:t,next:null},Da===null){if(Fc===null)throw Error(q(308));Da=e,Fc.dependencies={lanes:0,firstContext:e}}else Da=Da.next=e;return t}var Ii=null;function Xv(e){Ii===null?Ii=[e]:Ii.push(e)}function G_(e,t,r,n){var i=t.interleaved;return i===null?(r.next=r,Xv(t)):(r.next=i.next,i.next=r),t.interleaved=r,gn(e,n)}function gn(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var Mn=!1;function Qv(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function X_(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 cn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ri(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,pe&2){var i=n.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),n.pending=t,gn(e,r)}return i=n.interleaved,i===null?(t.next=t,Xv(n)):(t.next=i.next,i.next=t),n.interleaved=t,gn(e,r)}function hc(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Iv(e,r)}}function xb(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=o:a=a.next=o,r=r.next}while(r!==null);a===null?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Uc(e,t,r,n){var i=e.updateQueue;Mn=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,o===null?a=u:o.next=u,o=l;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==o&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=l))}if(a!==null){var c=i.baseState;o=0,f=u=l=null,s=a;do{var d=s.lane,h=s.eventTime;if((n&d)===d){f!==null&&(f=f.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(d=t,h=r,m.tag){case 1:if(p=m.payload,typeof p=="function"){c=p.call(h,c,d);break e}c=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=m.payload,d=typeof p=="function"?p.call(h,c,d):p,d==null)break e;c=Le({},c,d);break e;case 2:Mn=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[s]:d.push(s))}else h={eventTime:h,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=h,l=c):f=f.next=h,o|=d;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;d=s,s=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(f===null&&(l=c),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);oa|=o,e.lanes=o,e.memoizedState=c}}function wb(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(q(191,i));i.call(n)}}}var fu={},qr=hi(fu),dl=hi(fu),hl=hi(fu);function Ri(e){if(e===fu)throw Error(q(174));return e}function Yv(e,t){switch(Ee(hl,t),Ee(dl,e),Ee(qr,fu),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Wp(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Wp(t,e)}Ne(qr),Ee(qr,t)}function go(){Ne(qr),Ne(dl),Ne(hl)}function Q_(e){Ri(hl.current);var t=Ri(qr.current),r=Wp(t,e.type);t!==r&&(Ee(dl,e),Ee(qr,r))}function Jv(e){dl.current===e&&(Ne(qr),Ne(dl))}var Re=hi(0);function zc(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Kh=[];function Zv(){for(var e=0;e<Kh.length;e++)Kh[e]._workInProgressVersionPrimary=null;Kh.length=0}var pc=_n.ReactCurrentDispatcher,Vh=_n.ReactCurrentBatchConfig,aa=0,De=null,et=null,st=null,Wc=!1,Hs=!1,pl=0,S$=0;function mt(){throw Error(q(321))}function eg(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!kr(e[r],t[r]))return!1;return!0}function tg(e,t,r,n,i,a){if(aa=a,De=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pc.current=e===null||e.memoizedState===null?A$:E$,e=r(n,i),Hs){a=0;do{if(Hs=!1,pl=0,25<=a)throw Error(q(301));a+=1,st=et=null,t.updateQueue=null,pc.current=j$,e=r(n,i)}while(Hs)}if(pc.current=Hc,t=et!==null&&et.next!==null,aa=0,st=et=De=null,Wc=!1,t)throw Error(q(300));return e}function rg(){var e=pl!==0;return pl=0,e}function Dr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return st===null?De.memoizedState=st=e:st=st.next=e,st}function yr(){if(et===null){var e=De.alternate;e=e!==null?e.memoizedState:null}else e=et.next;var t=st===null?De.memoizedState:st.next;if(t!==null)st=t,et=e;else{if(e===null)throw Error(q(310));et=e,e={memoizedState:et.memoizedState,baseState:et.baseState,baseQueue:et.baseQueue,queue:et.queue,next:null},st===null?De.memoizedState=st=e:st=st.next=e}return st}function ml(e,t){return typeof t=="function"?t(e):t}function Gh(e){var t=yr(),r=t.queue;if(r===null)throw Error(q(311));r.lastRenderedReducer=e;var n=et,i=n.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}n.baseQueue=i=a,r.pending=null}if(i!==null){a=i.next,n=n.baseState;var s=o=null,l=null,u=a;do{var f=u.lane;if((aa&f)===f)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var c={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(s=l=c,o=n):l=l.next=c,De.lanes|=f,oa|=f}u=u.next}while(u!==null&&u!==a);l===null?o=n:l.next=s,kr(n,t.memoizedState)||(Dt=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){i=e;do a=i.lane,De.lanes|=a,oa|=a,i=i.next;while(i!==e)}else i===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Xh(e){var t=yr(),r=t.queue;if(r===null)throw Error(q(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,a=t.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);kr(a,t.memoizedState)||(Dt=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function Y_(){}function J_(e,t){var r=De,n=yr(),i=t(),a=!kr(n.memoizedState,i);if(a&&(n.memoizedState=i,Dt=!0),n=n.queue,ng(tP.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||st!==null&&st.memoizedState.tag&1){if(r.flags|=2048,yl(9,eP.bind(null,r,n,i,t),void 0,null),ut===null)throw Error(q(349));aa&30||Z_(r,t,i)}return i}function Z_(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=De.updateQueue,t===null?(t={lastEffect:null,stores:null},De.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function eP(e,t,r,n){t.value=r,t.getSnapshot=n,rP(t)&&nP(e)}function tP(e,t,r){return r(function(){rP(t)&&nP(e)})}function rP(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!kr(e,r)}catch{return!0}}function nP(e){var t=gn(e,1);t!==null&&$r(t,e,1,-1)}function Sb(e){var t=Dr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ml,lastRenderedState:e},t.queue=e,e=e.dispatch=P$.bind(null,De,e),[t.memoizedState,e]}function yl(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=De.updateQueue,t===null?(t={lastEffect:null,stores:null},De.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function iP(){return yr().memoizedState}function mc(e,t,r,n){var i=Dr();De.flags|=e,i.memoizedState=yl(1|t,r,void 0,n===void 0?null:n)}function fd(e,t,r,n){var i=yr();n=n===void 0?null:n;var a=void 0;if(et!==null){var o=et.memoizedState;if(a=o.destroy,n!==null&&eg(n,o.deps)){i.memoizedState=yl(t,r,a,n);return}}De.flags|=e,i.memoizedState=yl(1|t,r,a,n)}function Ob(e,t){return mc(8390656,8,e,t)}function ng(e,t){return fd(2048,8,e,t)}function aP(e,t){return fd(4,2,e,t)}function oP(e,t){return fd(4,4,e,t)}function sP(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 lP(e,t,r){return r=r!=null?r.concat([e]):null,fd(4,4,sP.bind(null,t,e),r)}function ig(){}function uP(e,t){var r=yr();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&eg(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function cP(e,t){var r=yr();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&eg(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function fP(e,t,r){return aa&21?(kr(r,t)||(r=y_(),De.lanes|=r,oa|=r,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Dt=!0),e.memoizedState=r)}function O$(e,t){var r=be;be=r!==0&&4>r?r:4,e(!0);var n=Vh.transition;Vh.transition={};try{e(!1),t()}finally{be=r,Vh.transition=n}}function dP(){return yr().memoizedState}function _$(e,t,r){var n=ii(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},hP(e))pP(t,r);else if(r=G_(e,t,r,n),r!==null){var i=Tt();$r(r,e,n,i),mP(r,t,n)}}function P$(e,t,r){var n=ii(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(hP(e))pP(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,r);if(i.hasEagerState=!0,i.eagerState=s,kr(s,o)){var l=t.interleaved;l===null?(i.next=i,Xv(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}r=G_(e,t,i,n),r!==null&&(i=Tt(),$r(r,e,n,i),mP(r,t,n))}}function hP(e){var t=e.alternate;return e===De||t!==null&&t===De}function pP(e,t){Hs=Wc=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function mP(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,Iv(e,r)}}var Hc={readContext:mr,useCallback:mt,useContext:mt,useEffect:mt,useImperativeHandle:mt,useInsertionEffect:mt,useLayoutEffect:mt,useMemo:mt,useReducer:mt,useRef:mt,useState:mt,useDebugValue:mt,useDeferredValue:mt,useTransition:mt,useMutableSource:mt,useSyncExternalStore:mt,useId:mt,unstable_isNewReconciler:!1},A$={readContext:mr,useCallback:function(e,t){return Dr().memoizedState=[e,t===void 0?null:t],e},useContext:mr,useEffect:Ob,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,mc(4194308,4,sP.bind(null,t,e),r)},useLayoutEffect:function(e,t){return mc(4194308,4,e,t)},useInsertionEffect:function(e,t){return mc(4,2,e,t)},useMemo:function(e,t){var r=Dr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Dr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=_$.bind(null,De,e),[n.memoizedState,e]},useRef:function(e){var t=Dr();return e={current:e},t.memoizedState=e},useState:Sb,useDebugValue:ig,useDeferredValue:function(e){return Dr().memoizedState=e},useTransition:function(){var e=Sb(!1),t=e[0];return e=O$.bind(null,e[1]),Dr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=De,i=Dr();if(Me){if(r===void 0)throw Error(q(407));r=r()}else{if(r=t(),ut===null)throw Error(q(349));aa&30||Z_(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,Ob(tP.bind(null,n,a,e),[e]),n.flags|=2048,yl(9,eP.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=Dr(),t=ut.identifierPrefix;if(Me){var r=sn,n=on;r=(n&~(1<<32-Cr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=pl++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=S$++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},E$={readContext:mr,useCallback:uP,useContext:mr,useEffect:ng,useImperativeHandle:lP,useInsertionEffect:aP,useLayoutEffect:oP,useMemo:cP,useReducer:Gh,useRef:iP,useState:function(){return Gh(ml)},useDebugValue:ig,useDeferredValue:function(e){var t=yr();return fP(t,et.memoizedState,e)},useTransition:function(){var e=Gh(ml)[0],t=yr().memoizedState;return[e,t]},useMutableSource:Y_,useSyncExternalStore:J_,useId:dP,unstable_isNewReconciler:!1},j$={readContext:mr,useCallback:uP,useContext:mr,useEffect:ng,useImperativeHandle:lP,useInsertionEffect:aP,useLayoutEffect:oP,useMemo:cP,useReducer:Xh,useRef:iP,useState:function(){return Xh(ml)},useDebugValue:ig,useDeferredValue:function(e){var t=yr();return et===null?t.memoizedState=e:fP(t,et.memoizedState,e)},useTransition:function(){var e=Xh(ml)[0],t=yr().memoizedState;return[e,t]},useMutableSource:Y_,useSyncExternalStore:J_,useId:dP,unstable_isNewReconciler:!1};function Sr(e,t){if(e&&e.defaultProps){t=Le({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function cm(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Le({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var dd={isMounted:function(e){return(e=e._reactInternals)?va(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Tt(),i=ii(e),a=cn(n,i);a.payload=t,r!=null&&(a.callback=r),t=ri(e,a,i),t!==null&&($r(t,e,i,n),hc(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Tt(),i=ii(e),a=cn(n,i);a.tag=1,a.payload=t,r!=null&&(a.callback=r),t=ri(e,a,i),t!==null&&($r(t,e,i,n),hc(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Tt(),n=ii(e),i=cn(r,n);i.tag=2,t!=null&&(i.callback=t),t=ri(e,i,n),t!==null&&($r(t,e,n,r),hc(t,e,n))}};function _b(e,t,r,n,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,a,o):t.prototype&&t.prototype.isPureReactComponent?!ll(r,n)||!ll(i,a):!0}function yP(e,t,r){var n=!1,i=fi,a=t.contextType;return typeof a=="object"&&a!==null?a=mr(a):(i=Ft(t)?na:St.current,n=t.contextTypes,a=(n=n!=null)?mo(e,i):fi),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=dd,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Pb(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&dd.enqueueReplaceState(t,t.state,null)}function fm(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},Qv(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=mr(a):(a=Ft(t)?na:St.current,i.context=mo(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(cm(e,t,a,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&dd.enqueueReplaceState(i,i.state,null),Uc(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function bo(e,t){try{var r="",n=t;do r+=rC(n),n=n.return;while(n);var i=r}catch(a){i=`
Error generating stack: `+a.message+`
`+a.stack}return{value:e,source:t,stack:i,digest:null}}function Qh(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function dm(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var T$=typeof WeakMap=="function"?WeakMap:Map;function vP(e,t,r){r=cn(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Kc||(Kc=!0,Sm=n),dm(e,t)},r}function gP(e,t,r){r=cn(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){dm(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){dm(e,t),typeof n!="function"&&(ni===null?ni=new Set([this]):ni.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}function Ab(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new T$;var i=new Set;n.set(t,i)}else i=n.get(t),i===void 0&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=W$.bind(null,e,t,r),t.then(e,e))}function Eb(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 jb(e,t,r,n,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=cn(-1,1),t.tag=2,ri(r,t,1))),r.lanes|=1),e)}var C$=_n.ReactCurrentOwner,Dt=!1;function _t(e,t,r,n){t.child=e===null?V_(t,null,r,n):vo(t,e.child,r,n)}function Tb(e,t,r,n,i){r=r.render;var a=t.ref;return Xa(t,i),n=tg(e,t,r,n,a,i),r=rg(),e!==null&&!Dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,bn(e,t,i)):(Me&&r&&Wv(t),t.flags|=1,_t(e,t,n,i),t.child)}function Cb(e,t,r,n,i){if(e===null){var a=r.type;return typeof a=="function"&&!dg(a)&&a.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=a,bP(e,t,a,n,i)):(e=bc(r.type,null,n,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!(e.lanes&i)){var o=a.memoizedProps;if(r=r.compare,r=r!==null?r:ll,r(o,n)&&e.ref===t.ref)return bn(e,t,i)}return t.flags|=1,e=ai(a,n),e.ref=t.ref,e.return=t,t.child=e}function bP(e,t,r,n,i){if(e!==null){var a=e.memoizedProps;if(ll(a,n)&&e.ref===t.ref)if(Dt=!1,t.pendingProps=n=a,(e.lanes&i)!==0)e.flags&131072&&(Dt=!0);else return t.lanes=e.lanes,bn(e,t,i)}return hm(e,t,r,n,i)}function xP(e,t,r){var n=t.pendingProps,i=n.children,a=e!==null?e.memoizedState:null;if(n.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ee(Ba,Vt),Vt|=r;else{if(!(r&1073741824))return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ee(Ba,Vt),Vt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=a!==null?a.baseLanes:r,Ee(Ba,Vt),Vt|=n}else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,Ee(Ba,Vt),Vt|=n;return _t(e,t,i,r),t.child}function wP(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function hm(e,t,r,n,i){var a=Ft(r)?na:St.current;return a=mo(t,a),Xa(t,i),r=tg(e,t,r,n,a,i),n=rg(),e!==null&&!Dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,bn(e,t,i)):(Me&&n&&Wv(t),t.flags|=1,_t(e,t,r,i),t.child)}function $b(e,t,r,n,i){if(Ft(r)){var a=!0;Rc(t)}else a=!1;if(Xa(t,i),t.stateNode===null)yc(e,t),yP(t,r,n),fm(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=r.contextType;typeof u=="object"&&u!==null?u=mr(u):(u=Ft(r)?na:St.current,u=mo(t,u));var f=r.getDerivedStateFromProps,c=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function";c||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==n||l!==u)&&Pb(t,o,n,u),Mn=!1;var d=t.memoizedState;o.state=d,Uc(t,n,o,i),l=t.memoizedState,s!==n||d!==l||Bt.current||Mn?(typeof f=="function"&&(cm(t,r,f,n),l=t.memoizedState),(s=Mn||_b(t,r,s,n,d,l,u))?(c||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),o.props=n,o.state=l,o.context=u,n=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,X_(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Sr(t.type,s),o.props=u,c=t.pendingProps,d=o.context,l=r.contextType,typeof l=="object"&&l!==null?l=mr(l):(l=Ft(r)?na:St.current,l=mo(t,l));var h=r.getDerivedStateFromProps;(f=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==c||d!==l)&&Pb(t,o,n,l),Mn=!1,d=t.memoizedState,o.state=d,Uc(t,n,o,i);var p=t.memoizedState;s!==c||d!==p||Bt.current||Mn?(typeof h=="function"&&(cm(t,r,h,n),p=t.memoizedState),(u=Mn||_b(t,r,u,n,d,p,l)||!1)?(f||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,p,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,p,l)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=p),o.props=n,o.state=p,o.context=l,n=u):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),n=!1)}return pm(e,t,r,n,a,i)}function pm(e,t,r,n,i,a){wP(e,t);var o=(t.flags&128)!==0;if(!n&&!o)return i&&yb(t,r,!1),bn(e,t,a);n=t.stateNode,C$.current=t;var s=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=vo(t,e.child,null,a),t.child=vo(t,null,s,a)):_t(e,t,s,a),t.memoizedState=n.state,i&&yb(t,r,!0),t.child}function SP(e){var t=e.stateNode;t.pendingContext?mb(e,t.pendingContext,t.pendingContext!==t.context):t.context&&mb(e,t.context,!1),Yv(e,t.containerInfo)}function kb(e,t,r,n,i){return yo(),qv(i),t.flags|=256,_t(e,t,r,n),t.child}var mm={dehydrated:null,treeContext:null,retryLane:0};function ym(e){return{baseLanes:e,cachePool:null,transitions:null}}function OP(e,t,r){var n=t.pendingProps,i=Re.current,a=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Ee(Re,i&1),e===null)return lm(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=n.children,e=n.fallback,a?(n=t.mode,a=t.child,o={mode:"hidden",children:o},!(n&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=md(o,n,0,null),e=Zi(e,n,r,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=ym(r),t.memoizedState=mm,e):ag(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return $$(e,t,o,n,s,i,r);if(a){a=n.fallback,o=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:n.children};return!(o&1)&&t.child!==i?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=ai(i,l),n.subtreeFlags=i.subtreeFlags&14680064),s!==null?a=ai(s,a):(a=Zi(a,o,r,null),a.flags|=2),a.return=t,n.return=t,n.sibling=a,t.child=n,n=a,a=t.child,o=e.child.memoizedState,o=o===null?ym(r):{baseLanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~r,t.memoizedState=mm,n}return a=e.child,e=a.sibling,n=ai(a,{mode:"visible",children:n.children}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function ag(e,t){return t=md({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Uu(e,t,r,n){return n!==null&&qv(n),vo(t,e.child,null,r),e=ag(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $$(e,t,r,n,i,a,o){if(r)return t.flags&256?(t.flags&=-257,n=Qh(Error(q(422))),Uu(e,t,o,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(a=n.fallback,i=t.mode,n=md({mode:"visible",children:n.children},i,0,null),a=Zi(a,i,o,null),a.flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,t.mode&1&&vo(t,e.child,null,o),t.child.memoizedState=ym(o),t.memoizedState=mm,a);if(!(t.mode&1))return Uu(e,t,o,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var s=n.dgst;return n=s,a=Error(q(419)),n=Qh(a,n,void 0),Uu(e,t,o,n)}if(s=(o&e.childLanes)!==0,Dt||s){if(n=ut,n!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|o)?0:i,i!==0&&i!==a.retryLane&&(a.retryLane=i,gn(e,i),$r(n,e,i,-1))}return fg(),n=Qh(Error(q(421))),Uu(e,t,o,n)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=H$.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,Qt=ti(i.nextSibling),Yt=t,Me=!0,jr=null,e!==null&&(lr[ur++]=on,lr[ur++]=sn,lr[ur++]=ia,on=e.id,sn=e.overflow,ia=t),t=ag(t,n.children),t.flags|=4096,t)}function Nb(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),um(e.return,t,r)}function Yh(e,t,r,n,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=i)}function _P(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(_t(e,t,n.children,r),n=Re.current,n&2)n=n&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Nb(e,r,t);else if(e.tag===19)Nb(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Ee(Re,n),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&zc(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),Yh(t,!1,i,r,a);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&zc(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}Yh(t,!0,r,null,a);break;case"together":Yh(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function yc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function bn(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),oa|=t.lanes,!(r&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(q(153));if(t.child!==null){for(e=t.child,r=ai(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=ai(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function k$(e,t,r){switch(t.tag){case 3:SP(t),yo();break;case 5:Q_(t);break;case 1:Ft(t.type)&&Rc(t);break;case 4:Yv(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;Ee(Bc,n._currentValue),n._currentValue=i;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Ee(Re,Re.current&1),t.flags|=128,null):r&t.child.childLanes?OP(e,t,r):(Ee(Re,Re.current&1),e=bn(e,t,r),e!==null?e.sibling:null);Ee(Re,Re.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&128){if(n)return _P(e,t,r);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ee(Re,Re.current),n)break;return null;case 22:case 23:return t.lanes=0,xP(e,t,r)}return bn(e,t,r)}var PP,vm,AP,EP;PP=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};vm=function(){};AP=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Ri(qr.current);var a=null;switch(r){case"input":i=Bp(e,i),n=Bp(e,n),a=[];break;case"select":i=Le({},i,{value:void 0}),n=Le({},n,{value:void 0}),a=[];break;case"textarea":i=zp(e,i),n=zp(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=Mc)}Hp(r,n);var o;r=null;for(u in i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(o in s)s.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(tl.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in n){var l=n[u];if(s=i!=null?i[u]:void 0,n.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(o in s)!s.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in l)l.hasOwnProperty(o)&&s[o]!==l[o]&&(r||(r={}),r[o]=l[o])}else r||(a||(a=[]),a.push(u,r)),r=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(a=a||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(a=a||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(tl.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Ce("scroll",e),a||s===l||(a=[])):(a=a||[]).push(u,l))}r&&(a=a||[]).push("style",r);var u=a;(t.updateQueue=u)&&(t.flags|=4)}};EP=function(e,t,r,n){r!==n&&(t.flags|=4)};function bs(e,t){if(!Me)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function yt(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function N$(e,t,r){var n=t.pendingProps;switch(Hv(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yt(t),null;case 1:return Ft(t.type)&&Ic(),yt(t),null;case 3:return n=t.stateNode,go(),Ne(Bt),Ne(St),Zv(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Bu(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,jr!==null&&(Pm(jr),jr=null))),vm(e,t),yt(t),null;case 5:Jv(t);var i=Ri(hl.current);if(r=t.type,e!==null&&t.stateNode!=null)AP(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(q(166));return yt(t),null}if(e=Ri(qr.current),Bu(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[Ur]=t,n[fl]=a,e=(t.mode&1)!==0,r){case"dialog":Ce("cancel",n),Ce("close",n);break;case"iframe":case"object":case"embed":Ce("load",n);break;case"video":case"audio":for(i=0;i<Is.length;i++)Ce(Is[i],n);break;case"source":Ce("error",n);break;case"img":case"image":case"link":Ce("error",n),Ce("load",n);break;case"details":Ce("toggle",n);break;case"input":z0(n,a),Ce("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Ce("invalid",n);break;case"textarea":H0(n,a),Ce("invalid",n)}Hp(r,a),i=null;for(var o in a)if(a.hasOwnProperty(o)){var s=a[o];o==="children"?typeof s=="string"?n.textContent!==s&&(a.suppressHydrationWarning!==!0&&Lu(n.textContent,s,e),i=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(a.suppressHydrationWarning!==!0&&Lu(n.textContent,s,e),i=["children",""+s]):tl.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&Ce("scroll",n)}switch(r){case"input":Cu(n),W0(n,a,!0);break;case"textarea":Cu(n),q0(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=Mc)}n=i,t.updateQueue=n,n!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=t_(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[Ur]=t,e[fl]=n,PP(e,t,!1,!1),t.stateNode=e;e:{switch(o=qp(r,n),r){case"dialog":Ce("cancel",e),Ce("close",e),i=n;break;case"iframe":case"object":case"embed":Ce("load",e),i=n;break;case"video":case"audio":for(i=0;i<Is.length;i++)Ce(Is[i],e);i=n;break;case"source":Ce("error",e),i=n;break;case"img":case"image":case"link":Ce("error",e),Ce("load",e),i=n;break;case"details":Ce("toggle",e),i=n;break;case"input":z0(e,n),i=Bp(e,n),Ce("invalid",e);break;case"option":i=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=Le({},n,{value:void 0}),Ce("invalid",e);break;case"textarea":H0(e,n),i=zp(e,n),Ce("invalid",e);break;default:i=n}Hp(r,i),s=i;for(a in s)if(s.hasOwnProperty(a)){var l=s[a];a==="style"?i_(e,l):a==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&r_(e,l)):a==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&rl(e,l):typeof l=="number"&&rl(e,""+l):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(tl.hasOwnProperty(a)?l!=null&&a==="onScroll"&&Ce("scroll",e):l!=null&&Tv(e,a,l,o))}switch(r){case"input":Cu(e),W0(e,n,!1);break;case"textarea":Cu(e),q0(e);break;case"option":n.value!=null&&e.setAttribute("value",""+ci(n.value));break;case"select":e.multiple=!!n.multiple,a=n.value,a!=null?qa(e,!!n.multiple,a,!1):n.defaultValue!=null&&qa(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Mc)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return yt(t),null;case 6:if(e&&t.stateNode!=null)EP(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(q(166));if(r=Ri(hl.current),Ri(qr.current),Bu(t)){if(n=t.stateNode,r=t.memoizedProps,n[Ur]=t,(a=n.nodeValue!==r)&&(e=Yt,e!==null))switch(e.tag){case 3:Lu(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Lu(n.nodeValue,r,(e.mode&1)!==0)}a&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Ur]=t,t.stateNode=n}return yt(t),null;case 13:if(Ne(Re),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Me&&Qt!==null&&t.mode&1&&!(t.flags&128))q_(),yo(),t.flags|=98560,a=!1;else if(a=Bu(t),n!==null&&n.dehydrated!==null){if(e===null){if(!a)throw Error(q(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(q(317));a[Ur]=t}else yo(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;yt(t),a=!1}else jr!==null&&(Pm(jr),jr=null),a=!0;if(!a)return t.flags&65536?t:null}return t.flags&128?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,t.mode&1&&(e===null||Re.current&1?rt===0&&(rt=3):fg())),t.updateQueue!==null&&(t.flags|=4),yt(t),null);case 4:return go(),vm(e,t),e===null&&ul(t.stateNode.containerInfo),yt(t),null;case 10:return Gv(t.type._context),yt(t),null;case 17:return Ft(t.type)&&Ic(),yt(t),null;case 19:if(Ne(Re),a=t.memoizedState,a===null)return yt(t),null;if(n=(t.flags&128)!==0,o=a.rendering,o===null)if(n)bs(a,!1);else{if(rt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=zc(e),o!==null){for(t.flags|=128,bs(a,!1),n=o.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)a=r,e=n,a.flags&=14680066,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Ee(Re,Re.current&1|2),t.child}e=e.sibling}a.tail!==null&&qe()>xo&&(t.flags|=128,n=!0,bs(a,!1),t.lanes=4194304)}else{if(!n)if(e=zc(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),bs(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!Me)return yt(t),null}else 2*qe()-a.renderingStartTime>xo&&r!==1073741824&&(t.flags|=128,n=!0,bs(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(r=a.last,r!==null?r.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=qe(),t.sibling=null,r=Re.current,Ee(Re,n?r&1|2:r&1),t):(yt(t),null);case 22:case 23:return cg(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Vt&1073741824&&(yt(t),t.subtreeFlags&6&&(t.flags|=8192)):yt(t),null;case 24:return null;case 25:return null}throw Error(q(156,t.tag))}function M$(e,t){switch(Hv(t),t.tag){case 1:return Ft(t.type)&&Ic(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return go(),Ne(Bt),Ne(St),Zv(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Jv(t),null;case 13:if(Ne(Re),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(q(340));yo()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ne(Re),null;case 4:return go(),null;case 10:return Gv(t.type._context),null;case 22:case 23:return cg(),null;case 24:return null;default:return null}}var zu=!1,bt=!1,I$=typeof WeakSet=="function"?WeakSet:Set,Q=null;function La(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ue(e,t,n)}else r.current=null}function gm(e,t,r){try{r()}catch(n){Ue(e,t,n)}}var Mb=!1;function R$(e,t){if(tm=$c,e=k_(),zv(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch{r=null;break e}var o=0,s=-1,l=-1,u=0,f=0,c=e,d=null;t:for(;;){for(var h;c!==r||i!==0&&c.nodeType!==3||(s=o+i),c!==a||n!==0&&c.nodeType!==3||(l=o+n),c.nodeType===3&&(o+=c.nodeValue.length),(h=c.firstChild)!==null;)d=c,c=h;for(;;){if(c===e)break t;if(d===r&&++u===i&&(s=o),d===a&&++f===n&&(l=o),(h=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=h}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(rm={focusedElem:e,selectionRange:r},$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 p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var m=p.memoizedProps,y=p.memoizedState,v=t.stateNode,g=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:Sr(t.type,m),y);v.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(q(163))}}catch(w){Ue(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,Q=e;break}Q=t.return}return p=Mb,Mb=!1,p}function qs(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&gm(t,r,a)}i=i.next}while(i!==n)}}function hd(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function bm(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function jP(e){var t=e.alternate;t!==null&&(e.alternate=null,jP(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ur],delete t[fl],delete t[am],delete t[g$],delete t[b$])),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 TP(e){return e.tag===5||e.tag===3||e.tag===4}function Ib(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||TP(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 xm(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Mc));else if(n!==4&&(e=e.child,e!==null))for(xm(e,t,r),e=e.sibling;e!==null;)xm(e,t,r),e=e.sibling}function wm(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(wm(e,t,r),e=e.sibling;e!==null;)wm(e,t,r),e=e.sibling}var dt=null,Pr=!1;function $n(e,t,r){for(r=r.child;r!==null;)CP(e,t,r),r=r.sibling}function CP(e,t,r){if(Hr&&typeof Hr.onCommitFiberUnmount=="function")try{Hr.onCommitFiberUnmount(ad,r)}catch{}switch(r.tag){case 5:bt||La(r,t);case 6:var n=dt,i=Pr;dt=null,$n(e,t,r),dt=n,Pr=i,dt!==null&&(Pr?(e=dt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):dt.removeChild(r.stateNode));break;case 18:dt!==null&&(Pr?(e=dt,r=r.stateNode,e.nodeType===8?Hh(e.parentNode,r):e.nodeType===1&&Hh(e,r),ol(e)):Hh(dt,r.stateNode));break;case 4:n=dt,i=Pr,dt=r.stateNode.containerInfo,Pr=!0,$n(e,t,r),dt=n,Pr=i;break;case 0:case 11:case 14:case 15:if(!bt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&gm(r,t,o),i=i.next}while(i!==n)}$n(e,t,r);break;case 1:if(!bt&&(La(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Ue(r,t,s)}$n(e,t,r);break;case 21:$n(e,t,r);break;case 22:r.mode&1?(bt=(n=bt)||r.memoizedState!==null,$n(e,t,r),bt=n):$n(e,t,r);break;default:$n(e,t,r)}}function Rb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new I$),t.forEach(function(n){var i=q$.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function xr(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var i=r[n];try{var a=e,o=t,s=o;e:for(;s!==null;){switch(s.tag){case 5:dt=s.stateNode,Pr=!1;break e;case 3:dt=s.stateNode.containerInfo,Pr=!0;break e;case 4:dt=s.stateNode.containerInfo,Pr=!0;break e}s=s.return}if(dt===null)throw Error(q(160));CP(a,o,i),dt=null,Pr=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){Ue(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)$P(t,e),t=t.sibling}function $P(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(xr(t,e),Ir(e),n&4){try{qs(3,e,e.return),hd(3,e)}catch(m){Ue(e,e.return,m)}try{qs(5,e,e.return)}catch(m){Ue(e,e.return,m)}}break;case 1:xr(t,e),Ir(e),n&512&&r!==null&&La(r,r.return);break;case 5:if(xr(t,e),Ir(e),n&512&&r!==null&&La(r,r.return),e.flags&32){var i=e.stateNode;try{rl(i,"")}catch(m){Ue(e,e.return,m)}}if(n&4&&(i=e.stateNode,i!=null)){var a=e.memoizedProps,o=r!==null?r.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&a.type==="radio"&&a.name!=null&&ZO(i,a),qp(s,o);var u=qp(s,a);for(o=0;o<l.length;o+=2){var f=l[o],c=l[o+1];f==="style"?i_(i,c):f==="dangerouslySetInnerHTML"?r_(i,c):f==="children"?rl(i,c):Tv(i,f,c,u)}switch(s){case"input":Fp(i,a);break;case"textarea":e_(i,a);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;h!=null?qa(i,!!a.multiple,h,!1):d!==!!a.multiple&&(a.defaultValue!=null?qa(i,!!a.multiple,a.defaultValue,!0):qa(i,!!a.multiple,a.multiple?[]:"",!1))}i[fl]=a}catch(m){Ue(e,e.return,m)}}break;case 6:if(xr(t,e),Ir(e),n&4){if(e.stateNode===null)throw Error(q(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(m){Ue(e,e.return,m)}}break;case 3:if(xr(t,e),Ir(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{ol(t.containerInfo)}catch(m){Ue(e,e.return,m)}break;case 4:xr(t,e),Ir(e);break;case 13:xr(t,e),Ir(e),i=e.child,i.flags&8192&&(a=i.memoizedState!==null,i.stateNode.isHidden=a,!a||i.alternate!==null&&i.alternate.memoizedState!==null||(lg=qe())),n&4&&Rb(e);break;case 22:if(f=r!==null&&r.memoizedState!==null,e.mode&1?(bt=(u=bt)||f,xr(t,e),bt=u):xr(t,e),Ir(e),n&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(Q=e,f=e.child;f!==null;){for(c=Q=f;Q!==null;){switch(d=Q,h=d.child,d.tag){case 0:case 11:case 14:case 15:qs(4,d,d.return);break;case 1:La(d,d.return);var p=d.stateNode;if(typeof p.componentWillUnmount=="function"){n=d,r=d.return;try{t=n,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(m){Ue(n,r,m)}}break;case 5:La(d,d.return);break;case 22:if(d.memoizedState!==null){Lb(c);continue}}h!==null?(h.return=d,Q=h):Lb(c)}f=f.sibling}e:for(f=null,c=e;;){if(c.tag===5){if(f===null){f=c;try{i=c.stateNode,u?(a=i.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(s=c.stateNode,l=c.memoizedProps.style,o=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=n_("display",o))}catch(m){Ue(e,e.return,m)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(m){Ue(e,e.return,m)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;f===c&&(f=null),c=c.return}f===c&&(f=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:xr(t,e),Ir(e),n&4&&Rb(e);break;case 21:break;default:xr(t,e),Ir(e)}}function Ir(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(TP(r)){var n=r;break e}r=r.return}throw Error(q(160))}switch(n.tag){case 5:var i=n.stateNode;n.flags&32&&(rl(i,""),n.flags&=-33);var a=Ib(e);wm(e,a,i);break;case 3:case 4:var o=n.stateNode.containerInfo,s=Ib(e);xm(e,s,o);break;default:throw Error(q(161))}}catch(l){Ue(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function D$(e,t,r){Q=e,kP(e)}function kP(e,t,r){for(var n=(e.mode&1)!==0;Q!==null;){var i=Q,a=i.child;if(i.tag===22&&n){var o=i.memoizedState!==null||zu;if(!o){var s=i.alternate,l=s!==null&&s.memoizedState!==null||bt;s=zu;var u=bt;if(zu=o,(bt=l)&&!u)for(Q=i;Q!==null;)o=Q,l=o.child,o.tag===22&&o.memoizedState!==null?Bb(i):l!==null?(l.return=o,Q=l):Bb(i);for(;a!==null;)Q=a,kP(a),a=a.sibling;Q=i,zu=s,bt=u}Db(e)}else i.subtreeFlags&8772&&a!==null?(a.return=i,Q=a):Db(e)}}function Db(e){for(;Q!==null;){var t=Q;if(t.flags&8772){var r=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:bt||hd(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!bt)if(r===null)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:Sr(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;a!==null&&wb(t,a,n);break;case 3:var o=t.updateQueue;if(o!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}wb(t,o,r)}break;case 5:var s=t.stateNode;if(r===null&&t.flags&4){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.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 f=u.memoizedState;if(f!==null){var c=f.dehydrated;c!==null&&ol(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(q(163))}bt||t.flags&512&&bm(t)}catch(d){Ue(t,t.return,d)}}if(t===e){Q=null;break}if(r=t.sibling,r!==null){r.return=t.return,Q=r;break}Q=t.return}}function Lb(e){for(;Q!==null;){var t=Q;if(t===e){Q=null;break}var r=t.sibling;if(r!==null){r.return=t.return,Q=r;break}Q=t.return}}function Bb(e){for(;Q!==null;){var t=Q;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{hd(4,t)}catch(l){Ue(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var i=t.return;try{n.componentDidMount()}catch(l){Ue(t,i,l)}}var a=t.return;try{bm(t)}catch(l){Ue(t,a,l)}break;case 5:var o=t.return;try{bm(t)}catch(l){Ue(t,o,l)}}}catch(l){Ue(t,t.return,l)}if(t===e){Q=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Q=s;break}Q=t.return}}var L$=Math.ceil,qc=_n.ReactCurrentDispatcher,og=_n.ReactCurrentOwner,hr=_n.ReactCurrentBatchConfig,pe=0,ut=null,Ge=null,ht=0,Vt=0,Ba=hi(0),rt=0,vl=null,oa=0,pd=0,sg=0,Ks=null,Rt=null,lg=0,xo=1/0,Jr=null,Kc=!1,Sm=null,ni=null,Wu=!1,Xn=null,Vc=0,Vs=0,Om=null,vc=-1,gc=0;function Tt(){return pe&6?qe():vc!==-1?vc:vc=qe()}function ii(e){return e.mode&1?pe&2&&ht!==0?ht&-ht:w$.transition!==null?(gc===0&&(gc=y_()),gc):(e=be,e!==0||(e=window.event,e=e===void 0?16:O_(e.type)),e):1}function $r(e,t,r,n){if(50<Vs)throw Vs=0,Om=null,Error(q(185));lu(e,r,n),(!(pe&2)||e!==ut)&&(e===ut&&(!(pe&2)&&(pd|=r),rt===4&&Ln(e,ht)),Ut(e,n),r===1&&pe===0&&!(t.mode&1)&&(xo=qe()+500,cd&&pi()))}function Ut(e,t){var r=e.callbackNode;wC(e,t);var n=Cc(e,e===ut?ht:0);if(n===0)r!==null&&G0(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&G0(r),t===1)e.tag===0?x$(Fb.bind(null,e)):z_(Fb.bind(null,e)),y$(function(){!(pe&6)&&pi()}),r=null;else{switch(v_(n)){case 1:r=Mv;break;case 4:r=p_;break;case 16:r=Tc;break;case 536870912:r=m_;break;default:r=Tc}r=FP(r,NP.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function NP(e,t){if(vc=-1,gc=0,pe&6)throw Error(q(327));var r=e.callbackNode;if(Qa()&&e.callbackNode!==r)return null;var n=Cc(e,e===ut?ht:0);if(n===0)return null;if(n&30||n&e.expiredLanes||t)t=Gc(e,n);else{t=n;var i=pe;pe|=2;var a=IP();(ut!==e||ht!==t)&&(Jr=null,xo=qe()+500,Ji(e,t));do try{U$();break}catch(s){MP(e,s)}while(!0);Vv(),qc.current=a,pe=i,Ge!==null?t=0:(ut=null,ht=0,t=rt)}if(t!==0){if(t===2&&(i=Qp(e),i!==0&&(n=i,t=_m(e,i))),t===1)throw r=vl,Ji(e,0),Ln(e,n),Ut(e,qe()),r;if(t===6)Ln(e,n);else{if(i=e.current.alternate,!(n&30)&&!B$(i)&&(t=Gc(e,n),t===2&&(a=Qp(e),a!==0&&(n=a,t=_m(e,a))),t===1))throw r=vl,Ji(e,0),Ln(e,n),Ut(e,qe()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(q(345));case 2:Ei(e,Rt,Jr);break;case 3:if(Ln(e,n),(n&130023424)===n&&(t=lg+500-qe(),10<t)){if(Cc(e,0)!==0)break;if(i=e.suspendedLanes,(i&n)!==n){Tt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=im(Ei.bind(null,e,Rt,Jr),t);break}Ei(e,Rt,Jr);break;case 4:if(Ln(e,n),(n&4194240)===n)break;for(t=e.eventTimes,i=-1;0<n;){var o=31-Cr(n);a=1<<o,o=t[o],o>i&&(i=o),n&=~a}if(n=i,n=qe()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*L$(n/1960))-n,10<n){e.timeoutHandle=im(Ei.bind(null,e,Rt,Jr),n);break}Ei(e,Rt,Jr);break;case 5:Ei(e,Rt,Jr);break;default:throw Error(q(329))}}}return Ut(e,qe()),e.callbackNode===r?NP.bind(null,e):null}function _m(e,t){var r=Ks;return e.current.memoizedState.isDehydrated&&(Ji(e,t).flags|=256),e=Gc(e,t),e!==2&&(t=Rt,Rt=r,t!==null&&Pm(t)),e}function Pm(e){Rt===null?Rt=e:Rt.push.apply(Rt,e)}function B$(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var i=r[n],a=i.getSnapshot;i=i.value;try{if(!kr(a(),i))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ln(e,t){for(t&=~sg,t&=~pd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Cr(t),n=1<<r;e[r]=-1,t&=~n}}function Fb(e){if(pe&6)throw Error(q(327));Qa();var t=Cc(e,0);if(!(t&1))return Ut(e,qe()),null;var r=Gc(e,t);if(e.tag!==0&&r===2){var n=Qp(e);n!==0&&(t=n,r=_m(e,n))}if(r===1)throw r=vl,Ji(e,0),Ln(e,t),Ut(e,qe()),r;if(r===6)throw Error(q(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ei(e,Rt,Jr),Ut(e,qe()),null}function ug(e,t){var r=pe;pe|=1;try{return e(t)}finally{pe=r,pe===0&&(xo=qe()+500,cd&&pi())}}function sa(e){Xn!==null&&Xn.tag===0&&!(pe&6)&&Qa();var t=pe;pe|=1;var r=hr.transition,n=be;try{if(hr.transition=null,be=1,e)return e()}finally{be=n,hr.transition=r,pe=t,!(pe&6)&&pi()}}function cg(){Vt=Ba.current,Ne(Ba)}function Ji(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,m$(r)),Ge!==null)for(r=Ge.return;r!==null;){var n=r;switch(Hv(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Ic();break;case 3:go(),Ne(Bt),Ne(St),Zv();break;case 5:Jv(n);break;case 4:go();break;case 13:Ne(Re);break;case 19:Ne(Re);break;case 10:Gv(n.type._context);break;case 22:case 23:cg()}r=r.return}if(ut=e,Ge=e=ai(e.current,null),ht=Vt=t,rt=0,vl=null,sg=pd=oa=0,Rt=Ks=null,Ii!==null){for(t=0;t<Ii.length;t++)if(r=Ii[t],n=r.interleaved,n!==null){r.interleaved=null;var i=n.next,a=r.pending;if(a!==null){var o=a.next;a.next=i,n.next=o}r.pending=n}Ii=null}return e}function MP(e,t){do{var r=Ge;try{if(Vv(),pc.current=Hc,Wc){for(var n=De.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}Wc=!1}if(aa=0,st=et=De=null,Hs=!1,pl=0,og.current=null,r===null||r.return===null){rt=1,vl=t,Ge=null;break}e:{var a=e,o=r.return,s=r,l=t;if(t=ht,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,f=s,c=f.tag;if(!(f.mode&1)&&(c===0||c===11||c===15)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=Eb(o);if(h!==null){h.flags&=-257,jb(h,o,s,a,t),h.mode&1&&Ab(a,u,t),t=h,l=u;var p=t.updateQueue;if(p===null){var m=new Set;m.add(l),t.updateQueue=m}else p.add(l);break e}else{if(!(t&1)){Ab(a,u,t),fg();break e}l=Error(q(426))}}else if(Me&&s.mode&1){var y=Eb(o);if(y!==null){!(y.flags&65536)&&(y.flags|=256),jb(y,o,s,a,t),qv(bo(l,s));break e}}a=l=bo(l,s),rt!==4&&(rt=2),Ks===null?Ks=[a]:Ks.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var v=vP(a,l,t);xb(a,v);break e;case 1:s=l;var g=a.type,b=a.stateNode;if(!(a.flags&128)&&(typeof g.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(ni===null||!ni.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t;var w=gP(a,s,t);xb(a,w);break e}}a=a.return}while(a!==null)}DP(r)}catch(x){t=x,Ge===r&&r!==null&&(Ge=r=r.return);continue}break}while(!0)}function IP(){var e=qc.current;return qc.current=Hc,e===null?Hc:e}function fg(){(rt===0||rt===3||rt===2)&&(rt=4),ut===null||!(oa&268435455)&&!(pd&268435455)||Ln(ut,ht)}function Gc(e,t){var r=pe;pe|=2;var n=IP();(ut!==e||ht!==t)&&(Jr=null,Ji(e,t));do try{F$();break}catch(i){MP(e,i)}while(!0);if(Vv(),pe=r,qc.current=n,Ge!==null)throw Error(q(261));return ut=null,ht=0,rt}function F$(){for(;Ge!==null;)RP(Ge)}function U$(){for(;Ge!==null&&!dC();)RP(Ge)}function RP(e){var t=BP(e.alternate,e,Vt);e.memoizedProps=e.pendingProps,t===null?DP(e):Ge=t,og.current=null}function DP(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&32768){if(r=M$(r,t),r!==null){r.flags&=32767,Ge=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{rt=6,Ge=null;return}}else if(r=N$(r,t,Vt),r!==null){Ge=r;return}if(t=t.sibling,t!==null){Ge=t;return}Ge=t=e}while(t!==null);rt===0&&(rt=5)}function Ei(e,t,r){var n=be,i=hr.transition;try{hr.transition=null,be=1,z$(e,t,r,n)}finally{hr.transition=i,be=n}return null}function z$(e,t,r,n){do Qa();while(Xn!==null);if(pe&6)throw Error(q(327));r=e.finishedWork;var i=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(q(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(SC(e,a),e===ut&&(Ge=ut=null,ht=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||Wu||(Wu=!0,FP(Tc,function(){return Qa(),null})),a=(r.flags&15990)!==0,r.subtreeFlags&15990||a){a=hr.transition,hr.transition=null;var o=be;be=1;var s=pe;pe|=4,og.current=null,R$(e,r),$P(r,e),l$(rm),$c=!!tm,rm=tm=null,e.current=r,D$(r),hC(),pe=s,be=o,hr.transition=a}else e.current=r;if(Wu&&(Wu=!1,Xn=e,Vc=i),a=e.pendingLanes,a===0&&(ni=null),yC(r.stateNode),Ut(e,qe()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)i=t[r],n(i.value,{componentStack:i.stack,digest:i.digest});if(Kc)throw Kc=!1,e=Sm,Sm=null,e;return Vc&1&&e.tag!==0&&Qa(),a=e.pendingLanes,a&1?e===Om?Vs++:(Vs=0,Om=e):Vs=0,pi(),null}function Qa(){if(Xn!==null){var e=v_(Vc),t=hr.transition,r=be;try{if(hr.transition=null,be=16>e?16:e,Xn===null)var n=!1;else{if(e=Xn,Xn=null,Vc=0,pe&6)throw Error(q(331));var i=pe;for(pe|=4,Q=e.current;Q!==null;){var a=Q,o=a.child;if(Q.flags&16){var s=a.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(Q=u;Q!==null;){var f=Q;switch(f.tag){case 0:case 11:case 15:qs(8,f,a)}var c=f.child;if(c!==null)c.return=f,Q=c;else for(;Q!==null;){f=Q;var d=f.sibling,h=f.return;if(jP(f),f===u){Q=null;break}if(d!==null){d.return=h,Q=d;break}Q=h}}}var p=a.alternate;if(p!==null){var m=p.child;if(m!==null){p.child=null;do{var y=m.sibling;m.sibling=null,m=y}while(m!==null)}}Q=a}}if(a.subtreeFlags&2064&&o!==null)o.return=a,Q=o;else e:for(;Q!==null;){if(a=Q,a.flags&2048)switch(a.tag){case 0:case 11:case 15:qs(9,a,a.return)}var v=a.sibling;if(v!==null){v.return=a.return,Q=v;break e}Q=a.return}}var g=e.current;for(Q=g;Q!==null;){o=Q;var b=o.child;if(o.subtreeFlags&2064&&b!==null)b.return=o,Q=b;else e:for(o=g;Q!==null;){if(s=Q,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:hd(9,s)}}catch(x){Ue(s,s.return,x)}if(s===o){Q=null;break e}var w=s.sibling;if(w!==null){w.return=s.return,Q=w;break e}Q=s.return}}if(pe=i,pi(),Hr&&typeof Hr.onPostCommitFiberRoot=="function")try{Hr.onPostCommitFiberRoot(ad,e)}catch{}n=!0}return n}finally{be=r,hr.transition=t}}return!1}function Ub(e,t,r){t=bo(r,t),t=vP(e,t,1),e=ri(e,t,1),t=Tt(),e!==null&&(lu(e,1,t),Ut(e,t))}function Ue(e,t,r){if(e.tag===3)Ub(e,e,r);else for(;t!==null;){if(t.tag===3){Ub(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(ni===null||!ni.has(n))){e=bo(r,e),e=gP(t,e,1),t=ri(t,e,1),e=Tt(),t!==null&&(lu(t,1,e),Ut(t,e));break}}t=t.return}}function W$(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Tt(),e.pingedLanes|=e.suspendedLanes&r,ut===e&&(ht&r)===r&&(rt===4||rt===3&&(ht&130023424)===ht&&500>qe()-lg?Ji(e,0):sg|=r),Ut(e,t)}function LP(e,t){t===0&&(e.mode&1?(t=Nu,Nu<<=1,!(Nu&130023424)&&(Nu=4194304)):t=1);var r=Tt();e=gn(e,t),e!==null&&(lu(e,t,r),Ut(e,r))}function H$(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),LP(e,r)}function q$(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(q(314))}n!==null&&n.delete(t),LP(e,r)}var BP;BP=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Bt.current)Dt=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Dt=!1,k$(e,t,r);Dt=!!(e.flags&131072)}else Dt=!1,Me&&t.flags&1048576&&W_(t,Lc,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;yc(e,t),e=t.pendingProps;var i=mo(t,St.current);Xa(t,r),i=tg(null,t,n,e,i,r);var a=rg();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,Ft(n)?(a=!0,Rc(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Qv(t),i.updater=dd,t.stateNode=i,i._reactInternals=t,fm(t,n,e,r),t=pm(null,t,n,!0,a,r)):(t.tag=0,Me&&a&&Wv(t),_t(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(yc(e,t),e=t.pendingProps,i=n._init,n=i(n._payload),t.type=n,i=t.tag=V$(n),e=Sr(n,e),i){case 0:t=hm(null,t,n,e,r);break e;case 1:t=$b(null,t,n,e,r);break e;case 11:t=Tb(null,t,n,e,r);break e;case 14:t=Cb(null,t,n,Sr(n.type,e),r);break e}throw Error(q(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Sr(n,i),hm(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Sr(n,i),$b(e,t,n,i,r);case 3:e:{if(SP(t),e===null)throw Error(q(387));n=t.pendingProps,a=t.memoizedState,i=a.element,X_(e,t),Uc(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated)if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=bo(Error(q(423)),t),t=kb(e,t,n,r,i);break e}else if(n!==i){i=bo(Error(q(424)),t),t=kb(e,t,n,r,i);break e}else for(Qt=ti(t.stateNode.containerInfo.firstChild),Yt=t,Me=!0,jr=null,r=V_(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(yo(),n===i){t=bn(e,t,r);break e}_t(e,t,n,r)}t=t.child}return t;case 5:return Q_(t),e===null&&lm(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,nm(n,i)?o=null:a!==null&&nm(n,a)&&(t.flags|=32),wP(e,t),_t(e,t,o,r),t.child;case 6:return e===null&&lm(t),null;case 13:return OP(e,t,r);case 4:return Yv(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=vo(t,null,n,r):_t(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Sr(n,i),Tb(e,t,n,i,r);case 7:return _t(e,t,t.pendingProps,r),t.child;case 8:return _t(e,t,t.pendingProps.children,r),t.child;case 12:return _t(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,Ee(Bc,n._currentValue),n._currentValue=o,a!==null)if(kr(a.value,o)){if(a.children===i.children&&!Bt.current){t=bn(e,t,r);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(a.tag===1){l=cn(-1,r&-r),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?l.next=l:(l.next=f.next,f.next=l),u.pending=l}}a.lanes|=r,l=a.alternate,l!==null&&(l.lanes|=r),um(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(q(341));o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),um(o,r,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}_t(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,Xa(t,r),i=mr(i),n=n(i),t.flags|=1,_t(e,t,n,r),t.child;case 14:return n=t.type,i=Sr(n,t.pendingProps),i=Sr(n.type,i),Cb(e,t,n,i,r);case 15:return bP(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Sr(n,i),yc(e,t),t.tag=1,Ft(n)?(e=!0,Rc(t)):e=!1,Xa(t,r),yP(t,n,i),fm(t,n,i,r),pm(null,t,n,!0,e,r);case 19:return _P(e,t,r);case 22:return xP(e,t,r)}throw Error(q(156,t.tag))};function FP(e,t){return h_(e,t)}function K$(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fr(e,t,r,n){return new K$(e,t,r,n)}function dg(e){return e=e.prototype,!(!e||!e.isReactComponent)}function V$(e){if(typeof e=="function")return dg(e)?1:0;if(e!=null){if(e=e.$$typeof,e===$v)return 11;if(e===kv)return 14}return 2}function ai(e,t){var r=e.alternate;return r===null?(r=fr(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function bc(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")dg(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ta:return Zi(r.children,i,a,t);case Cv:o=8,i|=8;break;case Ip:return e=fr(12,r,t,i|2),e.elementType=Ip,e.lanes=a,e;case Rp:return e=fr(13,r,t,i),e.elementType=Rp,e.lanes=a,e;case Dp:return e=fr(19,r,t,i),e.elementType=Dp,e.lanes=a,e;case QO:return md(r,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case GO:o=10;break e;case XO:o=9;break e;case $v:o=11;break e;case kv:o=14;break e;case Nn:o=16,n=null;break e}throw Error(q(130,e==null?e:typeof e,""))}return t=fr(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function Zi(e,t,r,n){return e=fr(7,e,n,t),e.lanes=r,e}function md(e,t,r,n){return e=fr(22,e,n,t),e.elementType=QO,e.lanes=r,e.stateNode={isHidden:!1},e}function Jh(e,t,r){return e=fr(6,e,null,t),e.lanes=r,e}function Zh(e,t,r){return t=fr(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function G$(e,t,r,n,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Nh(0),this.expirationTimes=Nh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Nh(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function hg(e,t,r,n,i,a,o,s,l){return e=new G$(e,t,r,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=fr(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Qv(a),e}function X$(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ja,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function UP(e){if(!e)return fi;e=e._reactInternals;e:{if(va(e)!==e||e.tag!==1)throw Error(q(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ft(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(q(171))}if(e.tag===1){var r=e.type;if(Ft(r))return U_(e,r,t)}return t}function zP(e,t,r,n,i,a,o,s,l){return e=hg(r,n,!0,e,i,a,o,s,l),e.context=UP(null),r=e.current,n=Tt(),i=ii(r),a=cn(n,i),a.callback=t??null,ri(r,a,i),e.current.lanes=i,lu(e,i,n),Ut(e,n),e}function yd(e,t,r,n){var i=t.current,a=Tt(),o=ii(i);return r=UP(r),t.context===null?t.context=r:t.pendingContext=r,t=cn(a,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=ri(i,t,o),e!==null&&($r(e,i,o,a),hc(e,i,o)),o}function Xc(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 zb(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function pg(e,t){zb(e,t),(e=e.alternate)&&zb(e,t)}function Q$(){return null}var WP=typeof reportError=="function"?reportError:function(e){console.error(e)};function mg(e){this._internalRoot=e}vd.prototype.render=mg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(q(409));yd(e,t,null,null)};vd.prototype.unmount=mg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;sa(function(){yd(null,e,null,null)}),t[vn]=null}};function vd(e){this._internalRoot=e}vd.prototype.unstable_scheduleHydration=function(e){if(e){var t=x_();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Dn.length&&t!==0&&t<Dn[r].priority;r++);Dn.splice(r,0,e),r===0&&S_(e)}};function yg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function gd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Wb(){}function Y$(e,t,r,n,i){if(i){if(typeof n=="function"){var a=n;n=function(){var u=Xc(o);a.call(u)}}var o=zP(t,n,e,0,null,!1,!1,"",Wb);return e._reactRootContainer=o,e[vn]=o.current,ul(e.nodeType===8?e.parentNode:e),sa(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof n=="function"){var s=n;n=function(){var u=Xc(l);s.call(u)}}var l=hg(e,0,!1,null,null,!1,!1,"",Wb);return e._reactRootContainer=l,e[vn]=l.current,ul(e.nodeType===8?e.parentNode:e),sa(function(){yd(t,l,r,n)}),l}function bd(e,t,r,n,i){var a=r._reactRootContainer;if(a){var o=a;if(typeof i=="function"){var s=i;i=function(){var l=Xc(o);s.call(l)}}yd(t,o,e,i)}else o=Y$(r,t,e,i,n);return Xc(o)}g_=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=Ms(t.pendingLanes);r!==0&&(Iv(t,r|1),Ut(t,qe()),!(pe&6)&&(xo=qe()+500,pi()))}break;case 13:sa(function(){var n=gn(e,1);if(n!==null){var i=Tt();$r(n,e,1,i)}}),pg(e,1)}};Rv=function(e){if(e.tag===13){var t=gn(e,134217728);if(t!==null){var r=Tt();$r(t,e,134217728,r)}pg(e,134217728)}};b_=function(e){if(e.tag===13){var t=ii(e),r=gn(e,t);if(r!==null){var n=Tt();$r(r,e,t,n)}pg(e,t)}};x_=function(){return be};w_=function(e,t){var r=be;try{return be=e,t()}finally{be=r}};Vp=function(e,t,r){switch(t){case"input":if(Fp(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=ud(n);if(!i)throw Error(q(90));JO(n),Fp(n,i)}}}break;case"textarea":e_(e,r);break;case"select":t=r.value,t!=null&&qa(e,!!r.multiple,t,!1)}};s_=ug;l_=sa;var J$={usingClientEntryPoint:!1,Events:[cu,Na,ud,a_,o_,ug]},xs={findFiberByHostInstance:Mi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Z$={bundleType:xs.bundleType,version:xs.version,rendererPackageName:xs.rendererPackageName,rendererConfig:xs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_n.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=f_(e),e===null?null:e.stateNode},findFiberByHostInstance:xs.findFiberByHostInstance||Q$,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 Hu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hu.isDisabled&&Hu.supportsFiber)try{ad=Hu.inject(Z$),Hr=Hu}catch{}}er.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=J$;er.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!yg(t))throw Error(q(200));return X$(e,t,null,r)};er.createRoot=function(e,t){if(!yg(e))throw Error(q(299));var r=!1,n="",i=WP;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=hg(e,1,!1,null,null,r,!1,n,i),e[vn]=t.current,ul(e.nodeType===8?e.parentNode:e),new mg(t)};er.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(q(188)):(e=Object.keys(e).join(","),Error(q(268,e)));return e=f_(t),e=e===null?null:e.stateNode,e};er.flushSync=function(e){return sa(e)};er.hydrate=function(e,t,r){if(!gd(t))throw Error(q(200));return bd(null,e,t,!0,r)};er.hydrateRoot=function(e,t,r){if(!yg(e))throw Error(q(405));var n=r!=null&&r.hydratedSources||null,i=!1,a="",o=WP;if(r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(a=r.identifierPrefix),r.onRecoverableError!==void 0&&(o=r.onRecoverableError)),t=zP(t,null,e,1,r??null,i,!1,a,o),e[vn]=t.current,ul(e),n)for(e=0;e<n.length;e++)r=n[e],i=r._getVersion,i=i(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new vd(t)};er.render=function(e,t,r){if(!gd(t))throw Error(q(200));return bd(null,e,t,!1,r)};er.unmountComponentAtNode=function(e){if(!gd(e))throw Error(q(40));return e._reactRootContainer?(sa(function(){bd(null,null,e,!1,function(){e._reactRootContainer=null,e[vn]=null})}),!0):!1};er.unstable_batchedUpdates=ug;er.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!gd(r))throw Error(q(200));if(e==null||e._reactInternals===void 0)throw Error(q(38));return bd(e,t,r,!1,n)};er.version="18.3.1-next-f1338f8080-20240426";function HP(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(HP)}catch(e){console.error(e)}}HP(),HO.exports=er;var ek=HO.exports,Hb=ek;Np.createRoot=Hb.createRoot,Np.hydrateRoot=Hb.hydrateRoot;var Yo=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},tk={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Bn,Sv,SO,rk=(SO=class{constructor(){Z(this,Bn,tk);Z(this,Sv,!1)}setTimeoutProvider(e){G(this,Bn,e)}setTimeout(e,t){return E(this,Bn).setTimeout(e,t)}clearTimeout(e){E(this,Bn).clearTimeout(e)}setInterval(e,t){return E(this,Bn).setInterval(e,t)}clearInterval(e){E(this,Bn).clearInterval(e)}},Bn=new WeakMap,Sv=new WeakMap,SO),Di=new rk;function nk(e){setTimeout(e,0)}var la=typeof window>"u"||"Deno"in globalThis;function Pt(){}function ik(e,t){return typeof e=="function"?e(t):e}function Am(e){return typeof e=="number"&&e>=0&&e!==1/0}function qP(e,t){return Math.max(e+(t||0)-Date.now(),0)}function oi(e,t){return typeof e=="function"?e(t):e}function sr(e,t){return typeof e=="function"?e(t):e}function qb(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(n){if(t.queryHash!==vg(o,t.options))return!1}else if(!gl(t.queryKey,o))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function Kb(e,t){const{exact:r,status:n,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(ua(t.options.mutationKey)!==ua(a))return!1}else if(!gl(t.options.mutationKey,a))return!1}return!(n&&t.state.status!==n||i&&!i(t))}function vg(e,t){return((t==null?void 0:t.queryKeyHashFn)||ua)(e)}function ua(e){return JSON.stringify(e,(t,r)=>Em(r)?Object.keys(r).sort().reduce((n,i)=>(n[i]=r[i],n),{}):r)}function gl(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>gl(e[r],t[r])):!1}var ak=Object.prototype.hasOwnProperty;function KP(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=Vb(e)&&Vb(t);if(!n&&!(Em(e)&&Em(t)))return t;const a=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),s=o.length,l=n?new Array(s):{};let u=0;for(let f=0;f<s;f++){const c=n?f:o[f],d=e[c],h=t[c];if(d===h){l[c]=d,(n?f<a:ak.call(e,c))&&u++;continue}if(d===null||h===null||typeof d!="object"||typeof h!="object"){l[c]=h;continue}const p=KP(d,h,r+1);l[c]=p,p===d&&u++}return a===s&&u===a?e:l}function Qc(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function Vb(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Em(e){if(!Gb(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!Gb(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Gb(e){return Object.prototype.toString.call(e)==="[object Object]"}function ok(e){return new Promise(t=>{Di.setTimeout(t,e)})}function jm(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?KP(e,t):t}function sk(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function lk(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var gg=Symbol();function VP(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===gg?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function bg(e,t){return typeof e=="function"?e(...t):!!e}function uk(e,t,r){let n=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??(i=t()),n||(n=!0,i.aborted?r():i.addEventListener("abort",r,{once:!0})),i)}),e}var Wi,Fn,to,OO,ck=(OO=class extends Yo{constructor(){super();Z(this,Wi);Z(this,Fn);Z(this,to);G(this,to,t=>{if(!la&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){E(this,Fn)||this.setEventListener(E(this,to))}onUnsubscribe(){var t;this.hasListeners()||((t=E(this,Fn))==null||t.call(this),G(this,Fn,void 0))}setEventListener(t){var r;G(this,to,t),(r=E(this,Fn))==null||r.call(this),G(this,Fn,t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()}))}setFocused(t){E(this,Wi)!==t&&(G(this,Wi,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(r=>{r(t)})}isFocused(){var t;return typeof E(this,Wi)=="boolean"?E(this,Wi):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Wi=new WeakMap,Fn=new WeakMap,to=new WeakMap,OO),xg=new ck;function Tm(){let e,t;const r=new Promise((i,a)=>{e=i,t=a});r.status="pending",r.catch(()=>{});function n(i){Object.assign(r,i),delete r.resolve,delete r.reject}return r.resolve=i=>{n({status:"fulfilled",value:i}),e(i)},r.reject=i=>{n({status:"rejected",reason:i}),t(i)},r}var fk=nk;function dk(){let e=[],t=0,r=s=>{s()},n=s=>{s()},i=fk;const a=s=>{t?e.push(s):i(()=>{r(s)})},o=()=>{const s=e;e=[],s.length&&i(()=>{n(()=>{s.forEach(l=>{r(l)})})})};return{batch:s=>{let l;t++;try{l=s()}finally{t--,t||o()}return l},batchCalls:s=>(...l)=>{a(()=>{s(...l)})},schedule:a,setNotifyFunction:s=>{r=s},setBatchNotifyFunction:s=>{n=s},setScheduler:s=>{i=s}}}var tt=dk(),ro,Un,no,_O,hk=(_O=class extends Yo{constructor(){super();Z(this,ro,!0);Z(this,Un);Z(this,no);G(this,no,t=>{if(!la&&window.addEventListener){const r=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",n)}}})}onSubscribe(){E(this,Un)||this.setEventListener(E(this,no))}onUnsubscribe(){var t;this.hasListeners()||((t=E(this,Un))==null||t.call(this),G(this,Un,void 0))}setEventListener(t){var r;G(this,no,t),(r=E(this,Un))==null||r.call(this),G(this,Un,t(this.setOnline.bind(this)))}setOnline(t){E(this,ro)!==t&&(G(this,ro,t),this.listeners.forEach(n=>{n(t)}))}isOnline(){return E(this,ro)}},ro=new WeakMap,Un=new WeakMap,no=new WeakMap,_O),Yc=new hk;function pk(e){return Math.min(1e3*2**e,3e4)}function GP(e){return(e??"online")==="online"?Yc.isOnline():!0}var Cm=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function XP(e){let t=!1,r=0,n;const i=Tm(),a=()=>i.status!=="pending",o=m=>{var y;if(!a()){const v=new Cm(m);d(v),(y=e.onCancel)==null||y.call(e,v)}},s=()=>{t=!0},l=()=>{t=!1},u=()=>xg.isFocused()&&(e.networkMode==="always"||Yc.isOnline())&&e.canRun(),f=()=>GP(e.networkMode)&&e.canRun(),c=m=>{a()||(n==null||n(),i.resolve(m))},d=m=>{a()||(n==null||n(),i.reject(m))},h=()=>new Promise(m=>{var y;n=v=>{(a()||u())&&m(v)},(y=e.onPause)==null||y.call(e)}).then(()=>{var m;n=void 0,a()||(m=e.onContinue)==null||m.call(e)}),p=()=>{if(a())return;let m;const y=r===0?e.initialPromise:void 0;try{m=y??e.fn()}catch(v){m=Promise.reject(v)}Promise.resolve(m).then(c).catch(v=>{var S;if(a())return;const g=e.retry??(la?0:3),b=e.retryDelay??pk,w=typeof b=="function"?b(r,v):b,x=g===!0||typeof g=="number"&&r<g||typeof g=="function"&&g(r,v);if(t||!x){d(v);return}r++,(S=e.onFail)==null||S.call(e,r,v),ok(w).then(()=>u()?void 0:h()).then(()=>{t?d(v):p()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(n==null||n(),i),cancelRetry:s,continueRetry:l,canStart:f,start:()=>(f()?p():h().then(p),i)}}var Hi,PO,QP=(PO=class{constructor(){Z(this,Hi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Am(this.gcTime)&&G(this,Hi,Di.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(la?1/0:5*60*1e3))}clearGcTimeout(){E(this,Hi)&&(Di.clearTimeout(E(this,Hi)),G(this,Hi,void 0))}},Hi=new WeakMap,PO),qi,io,or,Ki,at,ru,Vi,Or,Yr,AO,mk=(AO=class extends QP{constructor(t){super();Z(this,Or);Z(this,qi);Z(this,io);Z(this,or);Z(this,Ki);Z(this,at);Z(this,ru);Z(this,Vi);G(this,Vi,!1),G(this,ru,t.defaultOptions),this.setOptions(t.options),this.observers=[],G(this,Ki,t.client),G(this,or,E(this,Ki).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,G(this,qi,Qb(this.options)),this.state=t.state??E(this,qi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=E(this,at))==null?void 0:t.promise}setOptions(t){if(this.options={...E(this,ru),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=Qb(this.options);r.data!==void 0&&(this.setState(Xb(r.data,r.dataUpdatedAt)),G(this,qi,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&E(this,or).remove(this)}setData(t,r){const n=jm(this.state.data,t,this.options);return ae(this,Or,Yr).call(this,{data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){ae(this,Or,Yr).call(this,{type:"setState",state:t,setStateOptions:r})}cancel(t){var n,i;const r=(n=E(this,at))==null?void 0:n.promise;return(i=E(this,at))==null||i.cancel(t),r?r.then(Pt).catch(Pt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(E(this,qi))}isActive(){return this.observers.some(t=>sr(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===gg||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>oi(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!qP(this.state.dataUpdatedAt,t)}onFocus(){var r;const t=this.observers.find(n=>n.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(r=E(this,at))==null||r.continue()}onOnline(){var r;const t=this.observers.find(n=>n.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(r=E(this,at))==null||r.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),E(this,or).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(E(this,at)&&(E(this,Vi)?E(this,at).cancel({revert:!0}):E(this,at).cancelRetry()),this.scheduleGc()),E(this,or).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ae(this,Or,Yr).call(this,{type:"invalidate"})}async fetch(t,r){var l,u,f,c,d,h,p,m,y,v,g,b;if(this.state.fetchStatus!=="idle"&&((l=E(this,at))==null?void 0:l.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(E(this,at))return E(this,at).continueRetry(),E(this,at).promise}if(t&&this.setOptions(t),!this.options.queryFn){const w=this.observers.find(x=>x.options.queryFn);w&&this.setOptions(w.options)}const n=new AbortController,i=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(G(this,Vi,!0),n.signal)})},a=()=>{const w=VP(this.options,r),S=(()=>{const _={client:E(this,Ki),queryKey:this.queryKey,meta:this.meta};return i(_),_})();return G(this,Vi,!1),this.options.persister?this.options.persister(w,S,this):w(S)},s=(()=>{const w={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:E(this,Ki),state:this.state,fetchFn:a};return i(w),w})();(u=this.options.behavior)==null||u.onFetch(s,this),G(this,io,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=s.fetchOptions)==null?void 0:f.meta))&&ae(this,Or,Yr).call(this,{type:"fetch",meta:(c=s.fetchOptions)==null?void 0:c.meta}),G(this,at,XP({initialPromise:r==null?void 0:r.initialPromise,fn:s.fetchFn,onCancel:w=>{w instanceof Cm&&w.revert&&this.setState({...E(this,io),fetchStatus:"idle"}),n.abort()},onFail:(w,x)=>{ae(this,Or,Yr).call(this,{type:"failed",failureCount:w,error:x})},onPause:()=>{ae(this,Or,Yr).call(this,{type:"pause"})},onContinue:()=>{ae(this,Or,Yr).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0}));try{const w=await E(this,at).start();if(w===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(w),(h=(d=E(this,or).config).onSuccess)==null||h.call(d,w,this),(m=(p=E(this,or).config).onSettled)==null||m.call(p,w,this.state.error,this),w}catch(w){if(w instanceof Cm){if(w.silent)return E(this,at).promise;if(w.revert){if(this.state.data===void 0)throw w;return this.state.data}}throw ae(this,Or,Yr).call(this,{type:"error",error:w}),(v=(y=E(this,or).config).onError)==null||v.call(y,w,this),(b=(g=E(this,or).config).onSettled)==null||b.call(g,this.state.data,w,this),w}finally{this.scheduleGc()}}},qi=new WeakMap,io=new WeakMap,or=new WeakMap,Ki=new WeakMap,at=new WeakMap,ru=new WeakMap,Vi=new WeakMap,Or=new WeakSet,Yr=function(t){const r=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...YP(n.data,this.options),fetchMeta:t.meta??null};case"success":const i={...n,...Xb(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return G(this,io,t.manual?i:void 0),i;case"error":const a=t.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),tt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),E(this,or).notify({query:this,type:"updated",action:t})})},AO);function YP(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:GP(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Xb(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Qb(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Mt,fe,nu,Ot,Gi,ao,tn,zn,iu,oo,so,Xi,Qi,Wn,lo,ve,Rs,$m,km,Nm,Mm,Im,Rm,Dm,JP,EO,yk=(EO=class extends Yo{constructor(t,r){super();Z(this,ve);Z(this,Mt);Z(this,fe);Z(this,nu);Z(this,Ot);Z(this,Gi);Z(this,ao);Z(this,tn);Z(this,zn);Z(this,iu);Z(this,oo);Z(this,so);Z(this,Xi);Z(this,Qi);Z(this,Wn);Z(this,lo,new Set);this.options=r,G(this,Mt,t),G(this,zn,null),G(this,tn,Tm()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(E(this,fe).addObserver(this),Yb(E(this,fe),this.options)?ae(this,ve,Rs).call(this):this.updateResult(),ae(this,ve,Mm).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Lm(E(this,fe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Lm(E(this,fe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ae(this,ve,Im).call(this),ae(this,ve,Rm).call(this),E(this,fe).removeObserver(this)}setOptions(t){const r=this.options,n=E(this,fe);if(this.options=E(this,Mt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof sr(this.options.enabled,E(this,fe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ae(this,ve,Dm).call(this),E(this,fe).setOptions(this.options),r._defaulted&&!Qc(this.options,r)&&E(this,Mt).getQueryCache().notify({type:"observerOptionsUpdated",query:E(this,fe),observer:this});const i=this.hasListeners();i&&Jb(E(this,fe),n,this.options,r)&&ae(this,ve,Rs).call(this),this.updateResult(),i&&(E(this,fe)!==n||sr(this.options.enabled,E(this,fe))!==sr(r.enabled,E(this,fe))||oi(this.options.staleTime,E(this,fe))!==oi(r.staleTime,E(this,fe)))&&ae(this,ve,$m).call(this);const a=ae(this,ve,km).call(this);i&&(E(this,fe)!==n||sr(this.options.enabled,E(this,fe))!==sr(r.enabled,E(this,fe))||a!==E(this,Wn))&&ae(this,ve,Nm).call(this,a)}getOptimisticResult(t){const r=E(this,Mt).getQueryCache().build(E(this,Mt),t),n=this.createResult(r,t);return gk(this,n)&&(G(this,Ot,n),G(this,ao,this.options),G(this,Gi,E(this,fe).state)),n}getCurrentResult(){return E(this,Ot)}trackResult(t,r){return new Proxy(t,{get:(n,i)=>(this.trackProp(i),r==null||r(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&E(this,tn).status==="pending"&&E(this,tn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,i))})}trackProp(t){E(this,lo).add(t)}getCurrentQuery(){return E(this,fe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const r=E(this,Mt).defaultQueryOptions(t),n=E(this,Mt).getQueryCache().build(E(this,Mt),r);return n.fetch().then(()=>this.createResult(n,r))}fetch(t){return ae(this,ve,Rs).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),E(this,Ot)))}createResult(t,r){var A;const n=E(this,fe),i=this.options,a=E(this,Ot),o=E(this,Gi),s=E(this,ao),u=t!==n?t.state:E(this,nu),{state:f}=t;let c={...f},d=!1,h;if(r._optimisticResults){const C=this.hasListeners(),N=!C&&Yb(t,r),$=C&&Jb(t,n,r,i);(N||$)&&(c={...c,...YP(f.data,t.options)}),r._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:p,errorUpdatedAt:m,status:y}=c;h=c.data;let v=!1;if(r.placeholderData!==void 0&&h===void 0&&y==="pending"){let C;a!=null&&a.isPlaceholderData&&r.placeholderData===(s==null?void 0:s.placeholderData)?(C=a.data,v=!0):C=typeof r.placeholderData=="function"?r.placeholderData((A=E(this,so))==null?void 0:A.state.data,E(this,so)):r.placeholderData,C!==void 0&&(y="success",h=jm(a==null?void 0:a.data,C,r),d=!0)}if(r.select&&h!==void 0&&!v)if(a&&h===(o==null?void 0:o.data)&&r.select===E(this,iu))h=E(this,oo);else try{G(this,iu,r.select),h=r.select(h),h=jm(a==null?void 0:a.data,h,r),G(this,oo,h),G(this,zn,null)}catch(C){G(this,zn,C)}E(this,zn)&&(p=E(this,zn),h=E(this,oo),m=Date.now(),y="error");const g=c.fetchStatus==="fetching",b=y==="pending",w=y==="error",x=b&&g,S=h!==void 0,P={status:y,fetchStatus:c.fetchStatus,isPending:b,isSuccess:y==="success",isError:w,isInitialLoading:x,isLoading:x,data:h,dataUpdatedAt:c.dataUpdatedAt,error:p,errorUpdatedAt:m,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:g,isRefetching:g&&!b,isLoadingError:w&&!S,isPaused:c.fetchStatus==="paused",isPlaceholderData:d,isRefetchError:w&&S,isStale:wg(t,r),refetch:this.refetch,promise:E(this,tn),isEnabled:sr(r.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const C=P.data!==void 0,N=P.status==="error"&&!C,$=R=>{N?R.reject(P.error):C&&R.resolve(P.data)},L=()=>{const R=G(this,tn,P.promise=Tm());$(R)},I=E(this,tn);switch(I.status){case"pending":t.queryHash===n.queryHash&&$(I);break;case"fulfilled":(N||P.data!==I.value)&&L();break;case"rejected":(!N||P.error!==I.reason)&&L();break}}return P}updateResult(){const t=E(this,Ot),r=this.createResult(E(this,fe),this.options);if(G(this,Gi,E(this,fe).state),G(this,ao,this.options),E(this,Gi).data!==void 0&&G(this,so,E(this,fe)),Qc(r,t))return;G(this,Ot,r);const n=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,a=typeof i=="function"?i():i;if(a==="all"||!a&&!E(this,lo).size)return!0;const o=new Set(a??E(this,lo));return this.options.throwOnError&&o.add("error"),Object.keys(E(this,Ot)).some(s=>{const l=s;return E(this,Ot)[l]!==t[l]&&o.has(l)})};ae(this,ve,JP).call(this,{listeners:n()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ae(this,ve,Mm).call(this)}},Mt=new WeakMap,fe=new WeakMap,nu=new WeakMap,Ot=new WeakMap,Gi=new WeakMap,ao=new WeakMap,tn=new WeakMap,zn=new WeakMap,iu=new WeakMap,oo=new WeakMap,so=new WeakMap,Xi=new WeakMap,Qi=new WeakMap,Wn=new WeakMap,lo=new WeakMap,ve=new WeakSet,Rs=function(t){ae(this,ve,Dm).call(this);let r=E(this,fe).fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(Pt)),r},$m=function(){ae(this,ve,Im).call(this);const t=oi(this.options.staleTime,E(this,fe));if(la||E(this,Ot).isStale||!Am(t))return;const n=qP(E(this,Ot).dataUpdatedAt,t)+1;G(this,Xi,Di.setTimeout(()=>{E(this,Ot).isStale||this.updateResult()},n))},km=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(E(this,fe)):this.options.refetchInterval)??!1},Nm=function(t){ae(this,ve,Rm).call(this),G(this,Wn,t),!(la||sr(this.options.enabled,E(this,fe))===!1||!Am(E(this,Wn))||E(this,Wn)===0)&&G(this,Qi,Di.setInterval(()=>{(this.options.refetchIntervalInBackground||xg.isFocused())&&ae(this,ve,Rs).call(this)},E(this,Wn)))},Mm=function(){ae(this,ve,$m).call(this),ae(this,ve,Nm).call(this,ae(this,ve,km).call(this))},Im=function(){E(this,Xi)&&(Di.clearTimeout(E(this,Xi)),G(this,Xi,void 0))},Rm=function(){E(this,Qi)&&(Di.clearInterval(E(this,Qi)),G(this,Qi,void 0))},Dm=function(){const t=E(this,Mt).getQueryCache().build(E(this,Mt),this.options);if(t===E(this,fe))return;const r=E(this,fe);G(this,fe,t),G(this,nu,t.state),this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))},JP=function(t){tt.batch(()=>{t.listeners&&this.listeners.forEach(r=>{r(E(this,Ot))}),E(this,Mt).getQueryCache().notify({query:E(this,fe),type:"observerResultsUpdated"})})},EO);function vk(e,t){return sr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Yb(e,t){return vk(e,t)||e.state.data!==void 0&&Lm(e,t,t.refetchOnMount)}function Lm(e,t,r){if(sr(t.enabled,e)!==!1&&oi(t.staleTime,e)!=="static"){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&wg(e,t)}return!1}function Jb(e,t,r,n){return(e!==t||sr(n.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&wg(e,r)}function wg(e,t){return sr(t.enabled,e)!==!1&&e.isStaleByTime(oi(t.staleTime,e))}function gk(e,t){return!Qc(e.getCurrentResult(),t)}function Zb(e){return{onFetch:(t,r)=>{var f,c,d,h,p;const n=t.options,i=(d=(c=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:c.fetchMore)==null?void 0:d.direction,a=((h=t.state.data)==null?void 0:h.pages)||[],o=((p=t.state.data)==null?void 0:p.pageParams)||[];let s={pages:[],pageParams:[]},l=0;const u=async()=>{let m=!1;const y=b=>{uk(b,()=>t.signal,()=>m=!0)},v=VP(t.options,t.fetchOptions),g=async(b,w,x)=>{if(m)return Promise.reject();if(w==null&&b.pages.length)return Promise.resolve(b);const _=(()=>{const N={client:t.client,queryKey:t.queryKey,pageParam:w,direction:x?"backward":"forward",meta:t.options.meta};return y(N),N})(),P=await v(_),{maxPages:A}=t.options,C=x?lk:sk;return{pages:C(b.pages,P,A),pageParams:C(b.pageParams,w,A)}};if(i&&a.length){const b=i==="backward",w=b?bk:ex,x={pages:a,pageParams:o},S=w(n,x);s=await g(x,S,b)}else{const b=e??a.length;do{const w=l===0?o[0]??n.initialPageParam:ex(n,s);if(l>0&&w==null)break;s=await g(s,w),l++}while(l<b)}return s};t.options.persister?t.fetchFn=()=>{var m,y;return(y=(m=t.options).persister)==null?void 0:y.call(m,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=u}}}function ex(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function bk(e,{pages:t,pageParams:r}){var n;return t.length>0?(n=e.getPreviousPageParam)==null?void 0:n.call(e,t[0],t,r[0],r):void 0}var au,Lr,vt,Yi,Br,kn,jO,xk=(jO=class extends QP{constructor(t){super();Z(this,Br);Z(this,au);Z(this,Lr);Z(this,vt);Z(this,Yi);G(this,au,t.client),this.mutationId=t.mutationId,G(this,vt,t.mutationCache),G(this,Lr,[]),this.state=t.state||ZP(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){E(this,Lr).includes(t)||(E(this,Lr).push(t),this.clearGcTimeout(),E(this,vt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){G(this,Lr,E(this,Lr).filter(r=>r!==t)),this.scheduleGc(),E(this,vt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){E(this,Lr).length||(this.state.status==="pending"?this.scheduleGc():E(this,vt).remove(this))}continue(){var t;return((t=E(this,Yi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,s,l,u,f,c,d,h,p,m,y,v,g,b,w,x,S,_;const r=()=>{ae(this,Br,kn).call(this,{type:"continue"})},n={client:E(this,au),meta:this.options.meta,mutationKey:this.options.mutationKey};G(this,Yi,XP({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:(P,A)=>{ae(this,Br,kn).call(this,{type:"failed",failureCount:P,error:A})},onPause:()=>{ae(this,Br,kn).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>E(this,vt).canRun(this)}));const i=this.state.status==="pending",a=!E(this,Yi).canStart();try{if(i)r();else{ae(this,Br,kn).call(this,{type:"pending",variables:t,isPaused:a}),E(this,vt).config.onMutate&&await E(this,vt).config.onMutate(t,this,n);const A=await((s=(o=this.options).onMutate)==null?void 0:s.call(o,t,n));A!==this.state.context&&ae(this,Br,kn).call(this,{type:"pending",context:A,variables:t,isPaused:a})}const P=await E(this,Yi).start();return await((u=(l=E(this,vt).config).onSuccess)==null?void 0:u.call(l,P,t,this.state.context,this,n)),await((c=(f=this.options).onSuccess)==null?void 0:c.call(f,P,t,this.state.context,n)),await((h=(d=E(this,vt).config).onSettled)==null?void 0:h.call(d,P,null,this.state.variables,this.state.context,this,n)),await((m=(p=this.options).onSettled)==null?void 0:m.call(p,P,null,t,this.state.context,n)),ae(this,Br,kn).call(this,{type:"success",data:P}),P}catch(P){try{await((v=(y=E(this,vt).config).onError)==null?void 0:v.call(y,P,t,this.state.context,this,n))}catch(A){Promise.reject(A)}try{await((b=(g=this.options).onError)==null?void 0:b.call(g,P,t,this.state.context,n))}catch(A){Promise.reject(A)}try{await((x=(w=E(this,vt).config).onSettled)==null?void 0:x.call(w,void 0,P,this.state.variables,this.state.context,this,n))}catch(A){Promise.reject(A)}try{await((_=(S=this.options).onSettled)==null?void 0:_.call(S,void 0,P,t,this.state.context,n))}catch(A){Promise.reject(A)}throw ae(this,Br,kn).call(this,{type:"error",error:P}),P}finally{E(this,vt).runNext(this)}}},au=new WeakMap,Lr=new WeakMap,vt=new WeakMap,Yi=new WeakMap,Br=new WeakSet,kn=function(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=r(this.state),tt.batch(()=>{E(this,Lr).forEach(n=>{n.onMutationUpdate(t)}),E(this,vt).notify({mutation:this,type:"updated",action:t})})},jO);function ZP(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var rn,_r,ou,TO,wk=(TO=class extends Yo{constructor(t={}){super();Z(this,rn);Z(this,_r);Z(this,ou);this.config=t,G(this,rn,new Set),G(this,_r,new Map),G(this,ou,0)}build(t,r,n){const i=new xk({client:t,mutationCache:this,mutationId:++Au(this,ou)._,options:t.defaultMutationOptions(r),state:n});return this.add(i),i}add(t){E(this,rn).add(t);const r=qu(t);if(typeof r=="string"){const n=E(this,_r).get(r);n?n.push(t):E(this,_r).set(r,[t])}this.notify({type:"added",mutation:t})}remove(t){if(E(this,rn).delete(t)){const r=qu(t);if(typeof r=="string"){const n=E(this,_r).get(r);if(n)if(n.length>1){const i=n.indexOf(t);i!==-1&&n.splice(i,1)}else n[0]===t&&E(this,_r).delete(r)}}this.notify({type:"removed",mutation:t})}canRun(t){const r=qu(t);if(typeof r=="string"){const n=E(this,_r).get(r),i=n==null?void 0:n.find(a=>a.state.status==="pending");return!i||i===t}else return!0}runNext(t){var n;const r=qu(t);if(typeof r=="string"){const i=(n=E(this,_r).get(r))==null?void 0:n.find(a=>a!==t&&a.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){tt.batch(()=>{E(this,rn).forEach(t=>{this.notify({type:"removed",mutation:t})}),E(this,rn).clear(),E(this,_r).clear()})}getAll(){return Array.from(E(this,rn))}find(t){const r={exact:!0,...t};return this.getAll().find(n=>Kb(r,n))}findAll(t={}){return this.getAll().filter(r=>Kb(t,r))}notify(t){tt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}resumePausedMutations(){const t=this.getAll().filter(r=>r.state.isPaused);return tt.batch(()=>Promise.all(t.map(r=>r.continue().catch(Pt))))}},rn=new WeakMap,_r=new WeakMap,ou=new WeakMap,TO);function qu(e){var t;return(t=e.options.scope)==null?void 0:t.id}var nn,Hn,It,an,mn,xc,Bm,CO,Sk=(CO=class extends Yo{constructor(r,n){super();Z(this,mn);Z(this,nn);Z(this,Hn);Z(this,It);Z(this,an);G(this,nn,r),this.setOptions(n),this.bindMethods(),ae(this,mn,xc).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var i;const n=this.options;this.options=E(this,nn).defaultMutationOptions(r),Qc(this.options,n)||E(this,nn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:E(this,It),observer:this}),n!=null&&n.mutationKey&&this.options.mutationKey&&ua(n.mutationKey)!==ua(this.options.mutationKey)?this.reset():((i=E(this,It))==null?void 0:i.state.status)==="pending"&&E(this,It).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=E(this,It))==null||r.removeObserver(this)}onMutationUpdate(r){ae(this,mn,xc).call(this),ae(this,mn,Bm).call(this,r)}getCurrentResult(){return E(this,Hn)}reset(){var r;(r=E(this,It))==null||r.removeObserver(this),G(this,It,void 0),ae(this,mn,xc).call(this),ae(this,mn,Bm).call(this)}mutate(r,n){var i;return G(this,an,n),(i=E(this,It))==null||i.removeObserver(this),G(this,It,E(this,nn).getMutationCache().build(E(this,nn),this.options)),E(this,It).addObserver(this),E(this,It).execute(r)}},nn=new WeakMap,Hn=new WeakMap,It=new WeakMap,an=new WeakMap,mn=new WeakSet,xc=function(){var n;const r=((n=E(this,It))==null?void 0:n.state)??ZP();G(this,Hn,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Bm=function(r){tt.batch(()=>{var n,i,a,o,s,l,u,f;if(E(this,an)&&this.hasListeners()){const c=E(this,Hn).variables,d=E(this,Hn).context,h={client:E(this,nn),meta:this.options.meta,mutationKey:this.options.mutationKey};if((r==null?void 0:r.type)==="success"){try{(i=(n=E(this,an)).onSuccess)==null||i.call(n,r.data,c,d,h)}catch(p){Promise.reject(p)}try{(o=(a=E(this,an)).onSettled)==null||o.call(a,r.data,null,c,d,h)}catch(p){Promise.reject(p)}}else if((r==null?void 0:r.type)==="error"){try{(l=(s=E(this,an)).onError)==null||l.call(s,r.error,c,d,h)}catch(p){Promise.reject(p)}try{(f=(u=E(this,an)).onSettled)==null||f.call(u,void 0,r.error,c,d,h)}catch(p){Promise.reject(p)}}}this.listeners.forEach(c=>{c(E(this,Hn))})})},CO),Fr,$O,Ok=($O=class extends Yo{constructor(t={}){super();Z(this,Fr);this.config=t,G(this,Fr,new Map)}build(t,r,n){const i=r.queryKey,a=r.queryHash??vg(i,r);let o=this.get(a);return o||(o=new mk({client:t,queryKey:i,queryHash:a,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){E(this,Fr).has(t.queryHash)||(E(this,Fr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const r=E(this,Fr).get(t.queryHash);r&&(t.destroy(),r===t&&E(this,Fr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){tt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return E(this,Fr).get(t)}getAll(){return[...E(this,Fr).values()]}find(t){const r={exact:!0,...t};return this.getAll().find(n=>qb(r,n))}findAll(t={}){const r=this.getAll();return Object.keys(t).length>0?r.filter(n=>qb(t,n)):r}notify(t){tt.batch(()=>{this.listeners.forEach(r=>{r(t)})})}onFocus(){tt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){tt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Fr=new WeakMap,$O),Fe,qn,Kn,uo,co,Vn,fo,ho,kO,_k=(kO=class{constructor(e={}){Z(this,Fe);Z(this,qn);Z(this,Kn);Z(this,uo);Z(this,co);Z(this,Vn);Z(this,fo);Z(this,ho);G(this,Fe,e.queryCache||new Ok),G(this,qn,e.mutationCache||new wk),G(this,Kn,e.defaultOptions||{}),G(this,uo,new Map),G(this,co,new Map),G(this,Vn,0)}mount(){Au(this,Vn)._++,E(this,Vn)===1&&(G(this,fo,xg.subscribe(async e=>{e&&(await this.resumePausedMutations(),E(this,Fe).onFocus())})),G(this,ho,Yc.subscribe(async e=>{e&&(await this.resumePausedMutations(),E(this,Fe).onOnline())})))}unmount(){var e,t;Au(this,Vn)._--,E(this,Vn)===0&&((e=E(this,fo))==null||e.call(this),G(this,fo,void 0),(t=E(this,ho))==null||t.call(this),G(this,ho,void 0))}isFetching(e){return E(this,Fe).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return E(this,qn).findAll({...e,status:"pending"}).length}getQueryData(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=E(this,Fe).get(t.queryHash))==null?void 0:r.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=E(this,Fe).build(this,t),n=r.state.data;return n===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(oi(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return E(this,Fe).findAll(e).map(({queryKey:t,state:r})=>{const n=r.data;return[t,n]})}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=E(this,Fe).get(n.queryHash),a=i==null?void 0:i.state.data,o=ik(t,a);if(o!==void 0)return E(this,Fe).build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return tt.batch(()=>E(this,Fe).findAll(e).map(({queryKey:n})=>[n,this.setQueryData(n,t,r)]))}getQueryState(e){var r;const t=this.defaultQueryOptions({queryKey:e});return(r=E(this,Fe).get(t.queryHash))==null?void 0:r.state}removeQueries(e){const t=E(this,Fe);tt.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=E(this,Fe);return tt.batch(()=>(r.findAll(e).forEach(n=>{n.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=tt.batch(()=>E(this,Fe).findAll(e).map(i=>i.cancel(r)));return Promise.all(n).then(Pt).catch(Pt)}invalidateQueries(e,t={}){return tt.batch(()=>(E(this,Fe).findAll(e).forEach(r=>{r.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=tt.batch(()=>E(this,Fe).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let a=i.fetch(void 0,r);return r.throwOnError||(a=a.catch(Pt)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(n).then(Pt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=E(this,Fe).build(this,t);return r.isStaleByTime(oi(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Pt).catch(Pt)}fetchInfiniteQuery(e){return e.behavior=Zb(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Pt).catch(Pt)}ensureInfiniteQueryData(e){return e.behavior=Zb(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Yc.isOnline()?E(this,qn).resumePausedMutations():Promise.resolve()}getQueryCache(){return E(this,Fe)}getMutationCache(){return E(this,qn)}getDefaultOptions(){return E(this,Kn)}setDefaultOptions(e){G(this,Kn,e)}setQueryDefaults(e,t){E(this,uo).set(ua(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...E(this,uo).values()],r={};return t.forEach(n=>{gl(e,n.queryKey)&&Object.assign(r,n.defaultOptions)}),r}setMutationDefaults(e,t){E(this,co).set(ua(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...E(this,co).values()],r={};return t.forEach(n=>{gl(e,n.mutationKey)&&Object.assign(r,n.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...E(this,Kn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=vg(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===gg&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...E(this,Kn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){E(this,Fe).clear(),E(this,qn).clear()}},Fe=new WeakMap,qn=new WeakMap,Kn=new WeakMap,uo=new WeakMap,co=new WeakMap,Vn=new WeakMap,fo=new WeakMap,ho=new WeakMap,kO),eA=j.createContext(void 0),Pn=e=>{const t=j.useContext(eA);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Pk=({client:e,children:t})=>(j.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),O.jsx(eA.Provider,{value:e,children:t})),tA=j.createContext(!1),Ak=()=>j.useContext(tA);tA.Provider;function Ek(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var jk=j.createContext(Ek()),Tk=()=>j.useContext(jk),Ck=(e,t,r)=>{const n=r!=null&&r.state.error&&typeof e.throwOnError=="function"?bg(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))},$k=e=>{j.useEffect(()=>{e.clearReset()},[e])},kk=({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(i&&e.data===void 0||bg(r,[e.error,n])),Nk=e=>{if(e.suspense){const r=i=>i==="static"?i:Math.max(i??1e3,1e3),n=e.staleTime;e.staleTime=typeof n=="function"?(...i)=>r(n(...i)):r(n),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Mk=(e,t)=>e.isLoading&&e.isFetching&&!t,Ik=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,tx=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function Rk(e,t,r){var d,h,p,m;const n=Ak(),i=Tk(),a=Pn(),o=a.defaultQueryOptions(e);(h=(d=a.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||h.call(d,o);const s=a.getQueryCache().get(o.queryHash);o._optimisticResults=n?"isRestoring":"optimistic",Nk(o),Ck(o,i,s),$k(i);const l=!a.getQueryCache().get(o.queryHash),[u]=j.useState(()=>new t(a,o)),f=u.getOptimisticResult(o),c=!n&&e.subscribed!==!1;if(j.useSyncExternalStore(j.useCallback(y=>{const v=c?u.subscribe(tt.batchCalls(y)):Pt;return u.updateResult(),v},[u,c]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),j.useEffect(()=>{u.setOptions(o)},[o,u]),Ik(o,f))throw tx(o,u,i);if(kk({result:f,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw f.error;if((m=(p=a.getDefaultOptions().queries)==null?void 0:p._experimental_afterQuery)==null||m.call(p,o,f),o.experimental_prefetchInRender&&!la&&Mk(f,n)){const y=l?tx(o,u,i):s==null?void 0:s.promise;y==null||y.catch(Pt).finally(()=>{u.updateResult()})}return o.notifyOnChangeProps?f:u.trackResult(f)}function zr(e,t){return Rk(e,yk)}function zt(e,t){const r=Pn(),[n]=j.useState(()=>new Sk(r,e));j.useEffect(()=>{n.setOptions(e)},[n,e]);const i=j.useSyncExternalStore(j.useCallback(o=>n.subscribe(tt.batchCalls(o)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),a=j.useCallback((o,s)=>{n.mutate(o,s).catch(Pt)},[n]);if(i.error&&bg(n.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}/**
* @remix-run/router v1.23.2
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function bl(){return bl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bl.apply(this,arguments)}var Qn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Qn||(Qn={}));const rx="popstate";function Dk(e){e===void 0&&(e={});function t(n,i){let{pathname:a,search:o,hash:s}=n.location;return Fm("",{pathname:a,search:o,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:Jc(i)}return Bk(t,r,null,e)}function We(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Sg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Lk(){return Math.random().toString(36).substr(2,8)}function nx(e,t){return{usr:e.state,key:e.key,idx:t}}function Fm(e,t,r,n){return r===void 0&&(r=null),bl({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Jo(t):t,{state:r,key:t&&t.key||n||Lk()})}function Jc(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Jo(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function Bk(e,t,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:a=!1}=n,o=i.history,s=Qn.Pop,l=null,u=f();u==null&&(u=0,o.replaceState(bl({},o.state,{idx:u}),""));function f(){return(o.state||{idx:null}).idx}function c(){s=Qn.Pop;let y=f(),v=y==null?null:y-u;u=y,l&&l({action:s,location:m.location,delta:v})}function d(y,v){s=Qn.Push;let g=Fm(m.location,y,v);u=f()+1;let b=nx(g,u),w=m.createHref(g);try{o.pushState(b,"",w)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;i.location.assign(w)}a&&l&&l({action:s,location:m.location,delta:1})}function h(y,v){s=Qn.Replace;let g=Fm(m.location,y,v);u=f();let b=nx(g,u),w=m.createHref(g);o.replaceState(b,"",w),a&&l&&l({action:s,location:m.location,delta:0})}function p(y){let v=i.location.origin!=="null"?i.location.origin:i.location.href,g=typeof y=="string"?y:Jc(y);return g=g.replace(/ $/,"%20"),We(v,"No window.location.(origin|href) available to create URL for href: "+g),new URL(g,v)}let m={get action(){return s},get location(){return e(i,o)},listen(y){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(rx,c),l=y,()=>{i.removeEventListener(rx,c),l=null}},createHref(y){return t(i,y)},createURL:p,encodeLocation(y){let v=p(y);return{pathname:v.pathname,search:v.search,hash:v.hash}},push:d,replace:h,go(y){return o.go(y)}};return m}var ix;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ix||(ix={}));function Fk(e,t,r){return r===void 0&&(r="/"),Uk(e,t,r)}function Uk(e,t,r,n){let i=typeof t=="string"?Jo(t):t,a=wo(i.pathname||"/",r);if(a==null)return null;let o=rA(e);zk(o);let s=null;for(let l=0;s==null&&l<o.length;++l){let u=Zk(a);s=Yk(o[l],u)}return s}function rA(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let i=(a,o,s)=>{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(We(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=si([n,l.relativePath]),f=r.concat(l);a.children&&a.children.length>0&&(We(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),rA(a.children,t,f,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:Xk(u,a.index),routesMeta:f})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of nA(a.path))i(a,o,l)}),t}function nA(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),a=r.replace(/\?$/,"");if(n.length===0)return i?[a,""]:[a];let o=nA(n.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function zk(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Qk(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Wk=/^:[\w-]+$/,Hk=3,qk=2,Kk=1,Vk=10,Gk=-2,ax=e=>e==="*";function Xk(e,t){let r=e.split("/"),n=r.length;return r.some(ax)&&(n+=Gk),t&&(n+=qk),r.filter(i=>!ax(i)).reduce((i,a)=>i+(Wk.test(a)?Hk:a===""?Kk:Vk),n)}function Qk(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function Yk(e,t,r){let{routesMeta:n}=e,i={},a="/",o=[];for(let s=0;s<n.length;++s){let l=n[s],u=s===n.length-1,f=a==="/"?t:t.slice(a.length)||"/",c=Um({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},f),d=l.route;if(!c)return null;Object.assign(i,c.params),o.push({params:i,pathname:si([a,c.pathname]),pathnameBase:iN(si([a,c.pathnameBase])),route:d}),c.pathnameBase!=="/"&&(a=si([a,c.pathnameBase]))}return o}function Um(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=Jk(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:n.reduce((u,f,c)=>{let{paramName:d,isOptional:h}=f;if(d==="*"){let m=s[c]||"";o=a.slice(0,a.length-m.length).replace(/(.)\/+$/,"$1")}const p=s[c];return h&&!p?u[d]=void 0:u[d]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:o,pattern:e}}function Jk(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),Sg(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 n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function Zk(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Sg(!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 wo(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}const eN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,tN=e=>eN.test(e);function rN(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?Jo(e):e,a;if(r)if(tN(r))a=r;else{if(r.includes("//")){let o=r;r=r.replace(/\/\/+/g,"/"),Sg(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+r))}r.startsWith("/")?a=ox(r.substring(1),"/"):a=ox(r,t)}else a=t;return{pathname:a,search:aN(n),hash:oN(i)}}function ox(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function ep(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function nN(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function iA(e,t){let r=nN(e);return t?r.map((n,i)=>i===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function aA(e,t,r,n){n===void 0&&(n=!1);let i;typeof e=="string"?i=Jo(e):(i=bl({},e),We(!i.pathname||!i.pathname.includes("?"),ep("?","pathname","search",i)),We(!i.pathname||!i.pathname.includes("#"),ep("#","pathname","hash",i)),We(!i.search||!i.search.includes("#"),ep("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(o==null)s=r;else{let c=t.length-1;if(!n&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),c-=1;i.pathname=d.join("/")}s=c>=0?t[c]:"/"}let l=rN(i,s),u=o&&o!=="/"&&o.endsWith("/"),f=(a||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||f)&&(l.pathname+="/"),l}const si=e=>e.join("/").replace(/\/\/+/g,"/"),iN=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),aN=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,oN=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function sN(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const oA=["post","put","patch","delete"];new Set(oA);const lN=["get",...oA];new Set(lN);/**
* React Router v6.30.3
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function xl(){return xl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xl.apply(this,arguments)}const xd=j.createContext(null),sA=j.createContext(null),mi=j.createContext(null),wd=j.createContext(null),ga=j.createContext({outlet:null,matches:[],isDataRoute:!1}),lA=j.createContext(null);function uN(e,t){let{relative:r}=t===void 0?{}:t;du()||We(!1);let{basename:n,navigator:i}=j.useContext(mi),{hash:a,pathname:o,search:s}=Sd(e,{relative:r}),l=o;return n!=="/"&&(l=o==="/"?n:si([n,o])),i.createHref({pathname:l,search:s,hash:a})}function du(){return j.useContext(wd)!=null}function hu(){return du()||We(!1),j.useContext(wd).location}function uA(e){j.useContext(mi).static||j.useLayoutEffect(e)}function cN(){let{isDataRoute:e}=j.useContext(ga);return e?ON():fN()}function fN(){du()||We(!1);let e=j.useContext(xd),{basename:t,future:r,navigator:n}=j.useContext(mi),{matches:i}=j.useContext(ga),{pathname:a}=hu(),o=JSON.stringify(iA(i,r.v7_relativeSplatPath)),s=j.useRef(!1);return uA(()=>{s.current=!0}),j.useCallback(function(u,f){if(f===void 0&&(f={}),!s.current)return;if(typeof u=="number"){n.go(u);return}let c=aA(u,JSON.parse(o),a,f.relative==="path");e==null&&t!=="/"&&(c.pathname=c.pathname==="/"?t:si([t,c.pathname])),(f.replace?n.replace:n.push)(c,f.state,f)},[t,n,o,a,e])}function Sd(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=j.useContext(mi),{matches:i}=j.useContext(ga),{pathname:a}=hu(),o=JSON.stringify(iA(i,n.v7_relativeSplatPath));return j.useMemo(()=>aA(e,JSON.parse(o),a,r==="path"),[e,o,a,r])}function dN(e,t){return hN(e,t)}function hN(e,t,r,n){du()||We(!1);let{navigator:i}=j.useContext(mi),{matches:a}=j.useContext(ga),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=hu(),f;if(t){var c;let y=typeof t=="string"?Jo(t):t;l==="/"||(c=y.pathname)!=null&&c.startsWith(l)||We(!1),f=y}else f=u;let d=f.pathname||"/",h=d;if(l!=="/"){let y=l.replace(/^\//,"").split("/");h="/"+d.replace(/^\//,"").split("/").slice(y.length).join("/")}let p=Fk(e,{pathname:h}),m=gN(p&&p.map(y=>Object.assign({},y,{params:Object.assign({},s,y.params),pathname:si([l,i.encodeLocation?i.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?l:si([l,i.encodeLocation?i.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),a,r,n);return t&&m?j.createElement(wd.Provider,{value:{location:xl({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Qn.Pop}},m):m}function pN(){let e=SN(),t=sN(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return j.createElement(j.Fragment,null,j.createElement("h2",null,"Unexpected Application Error!"),j.createElement("h3",{style:{fontStyle:"italic"}},t),r?j.createElement("pre",{style:i},r):null,null)}const mN=j.createElement(pN,null);class yN extends j.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?j.createElement(ga.Provider,{value:this.props.routeContext},j.createElement(lA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function vN(e){let{routeContext:t,match:r,children:n}=e,i=j.useContext(xd);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),j.createElement(ga.Provider,{value:t},n)}function gN(e,t,r,n){var i;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var a;if(!r)return null;if(r.errors)e=r.matches;else if((a=n)!=null&&a.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,s=(i=r)==null?void 0:i.errors;if(s!=null){let f=o.findIndex(c=>c.route.id&&(s==null?void 0:s[c.route.id])!==void 0);f>=0||We(!1),o=o.slice(0,Math.min(o.length,f+1))}let l=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let f=0;f<o.length;f++){let c=o[f];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(u=f),c.route.id){let{loaderData:d,errors:h}=r,p=c.route.loader&&d[c.route.id]===void 0&&(!h||h[c.route.id]===void 0);if(c.route.lazy||p){l=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((f,c,d)=>{let h,p=!1,m=null,y=null;r&&(h=s&&c.route.id?s[c.route.id]:void 0,m=c.route.errorElement||mN,l&&(u<0&&d===0?(_N("route-fallback"),p=!0,y=null):u===d&&(p=!0,y=c.route.hydrateFallbackElement||null)));let v=t.concat(o.slice(0,d+1)),g=()=>{let b;return h?b=m:p?b=y:c.route.Component?b=j.createElement(c.route.Component,null):c.route.element?b=c.route.element:b=f,j.createElement(vN,{match:c,routeContext:{outlet:f,matches:v,isDataRoute:r!=null},children:b})};return r&&(c.route.ErrorBoundary||c.route.errorElement||d===0)?j.createElement(yN,{location:r.location,revalidation:r.revalidation,component:m,error:h,children:g(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):g()},null)}var cA=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(cA||{}),fA=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(fA||{});function bN(e){let t=j.useContext(xd);return t||We(!1),t}function xN(e){let t=j.useContext(sA);return t||We(!1),t}function wN(e){let t=j.useContext(ga);return t||We(!1),t}function dA(e){let t=wN(),r=t.matches[t.matches.length-1];return r.route.id||We(!1),r.route.id}function SN(){var e;let t=j.useContext(lA),r=xN(),n=dA();return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function ON(){let{router:e}=bN(cA.UseNavigateStable),t=dA(fA.UseNavigateStable),r=j.useRef(!1);return uA(()=>{r.current=!0}),j.useCallback(function(i,a){a===void 0&&(a={}),r.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,xl({fromRouteId:t},a)))},[e,t])}const sx={};function _N(e,t,r){sx[e]||(sx[e]=!0)}function PN(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function ji(e){We(!1)}function AN(e){let{basename:t="/",children:r=null,location:n,navigationType:i=Qn.Pop,navigator:a,static:o=!1,future:s}=e;du()&&We(!1);let l=t.replace(/^\/*/,"/"),u=j.useMemo(()=>({basename:l,navigator:a,static:o,future:xl({v7_relativeSplatPath:!1},s)}),[l,s,a,o]);typeof n=="string"&&(n=Jo(n));let{pathname:f="/",search:c="",hash:d="",state:h=null,key:p="default"}=n,m=j.useMemo(()=>{let y=wo(f,l);return y==null?null:{location:{pathname:y,search:c,hash:d,state:h,key:p},navigationType:i}},[l,f,c,d,h,p,i]);return m==null?null:j.createElement(mi.Provider,{value:u},j.createElement(wd.Provider,{children:r,value:m}))}function EN(e){let{children:t,location:r}=e;return dN(zm(t),r)}new Promise(()=>{});function zm(e,t){t===void 0&&(t=[]);let r=[];return j.Children.forEach(e,(n,i)=>{if(!j.isValidElement(n))return;let a=[...t,i];if(n.type===j.Fragment){r.push.apply(r,zm(n.props.children,a));return}n.type!==ji&&We(!1),!n.props.index||!n.props.children||We(!1);let o={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=zm(n.props.children,a)),r.push(o)}),r}/**
* React Router DOM v6.30.3
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Zc(){return Zc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zc.apply(this,arguments)}function hA(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function jN(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function TN(e,t){return e.button===0&&(!t||t==="_self")&&!jN(e)}const CN=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],$N=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],kN="6";try{window.__reactRouterVersion=kN}catch{}const NN=j.createContext({isTransitioning:!1}),MN="startTransition",lx=W2[MN];function IN(e){let{basename:t,children:r,future:n,window:i}=e,a=j.useRef();a.current==null&&(a.current=Dk({window:i,v5Compat:!0}));let o=a.current,[s,l]=j.useState({action:o.action,location:o.location}),{v7_startTransition:u}=n||{},f=j.useCallback(c=>{u&&lx?lx(()=>l(c)):l(c)},[l,u]);return j.useLayoutEffect(()=>o.listen(f),[o,f]),j.useEffect(()=>PN(n),[n]),j.createElement(AN,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:o,future:n})}const RN=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",DN=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,LN=j.forwardRef(function(t,r){let{onClick:n,relative:i,reloadDocument:a,replace:o,state:s,target:l,to:u,preventScrollReset:f,viewTransition:c}=t,d=hA(t,CN),{basename:h}=j.useContext(mi),p,m=!1;if(typeof u=="string"&&DN.test(u)&&(p=u,RN))try{let b=new URL(window.location.href),w=u.startsWith("//")?new URL(b.protocol+u):new URL(u),x=wo(w.pathname,h);w.origin===b.origin&&x!=null?u=x+w.search+w.hash:m=!0}catch{}let y=uN(u,{relative:i}),v=UN(u,{replace:o,state:s,target:l,preventScrollReset:f,relative:i,viewTransition:c});function g(b){n&&n(b),b.defaultPrevented||v(b)}return j.createElement("a",Zc({},d,{href:p||y,onClick:m||a?n:g,ref:r,target:l}))}),BN=j.forwardRef(function(t,r){let{"aria-current":n="page",caseSensitive:i=!1,className:a="",end:o=!1,style:s,to:l,viewTransition:u,children:f}=t,c=hA(t,$N),d=Sd(l,{relative:c.relative}),h=hu(),p=j.useContext(sA),{navigator:m,basename:y}=j.useContext(mi),v=p!=null&&zN(d)&&u===!0,g=m.encodeLocation?m.encodeLocation(d).pathname:d.pathname,b=h.pathname,w=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;i||(b=b.toLowerCase(),w=w?w.toLowerCase():null,g=g.toLowerCase()),w&&y&&(w=wo(w,y)||w);const x=g!=="/"&&g.endsWith("/")?g.length-1:g.length;let S=b===g||!o&&b.startsWith(g)&&b.charAt(x)==="/",_=w!=null&&(w===g||!o&&w.startsWith(g)&&w.charAt(g.length)==="/"),P={isActive:S,isPending:_,isTransitioning:v},A=S?n:void 0,C;typeof a=="function"?C=a(P):C=[a,S?"active":null,_?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let N=typeof s=="function"?s(P):s;return j.createElement(LN,Zc({},c,{"aria-current":A,className:C,ref:r,style:N,to:l,viewTransition:u}),typeof f=="function"?f(P):f)});var Wm;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Wm||(Wm={}));var ux;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(ux||(ux={}));function FN(e){let t=j.useContext(xd);return t||We(!1),t}function UN(e,t){let{target:r,replace:n,state:i,preventScrollReset:a,relative:o,viewTransition:s}=t===void 0?{}:t,l=cN(),u=hu(),f=Sd(e,{relative:o});return j.useCallback(c=>{if(TN(c,r)){c.preventDefault();let d=n!==void 0?n:Jc(u)===Jc(f);l(e,{replace:d,state:i,preventScrollReset:a,relative:o,viewTransition:s})}},[u,l,f,n,i,r,e,a,o,s])}function zN(e,t){t===void 0&&(t={});let r=j.useContext(NN);r==null&&We(!1);let{basename:n}=FN(Wm.useViewTransitionState),i=Sd(e,{relative:t.relative});if(!r.isTransitioning)return!1;let a=wo(r.currentLocation.pathname,n)||r.currentLocation.pathname,o=wo(r.nextLocation.pathname,n)||r.nextLocation.pathname;return Um(i.pathname,o)!=null||Um(i.pathname,a)!=null}/**
* @license lucide-react v0.303.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var WN={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"};/**
* @license lucide-react v0.303.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const HN=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),Te=(e,t)=>{const r=j.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:s="",children:l,...u},f)=>j.createElement("svg",{ref:f,...WN,width:i,height:i,stroke:n,strokeWidth:o?Number(a)*24/Number(i):a,className:["lucide",`lucide-${HN(e)}`,s].join(" "),...u},[...t.map(([c,d])=>j.createElement(c,d)),...Array.isArray(l)?l:[l]]));return r.displayName=`${e}`,r};/**
* @license lucide-react v0.303.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Og=Te("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
* @license lucide-react v0.303.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Od=Te("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
* @license lucide-react v0.303.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const pA=Te("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
* @license lucide-react v0.303.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const mA=Te("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
* @license lucide-react v0.303.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const So=Te("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
* @license lucide-react v0.303.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const yA=Te("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
* @license lucide-react v0.303.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const qN=Te("ExternalLink",[["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}],["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["line",{x1:"10",x2:"21",y1:"14",y2:"3",key:"18c3s4"}]]);/**
* @license lucide-react v0.303.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const KN=Te("EyeOff",[["path",{d:"M9.88 9.88a3 3 0 1 0 4.24 4.24",key:"1jxqfv"}],["path",{d:"M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68",key:"9wicm4"}],["path",{d:"M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61",key:"1jreej"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/**
* @license lucide-react v0.303.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const VN=Te("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
* @license lucide-react v0.303.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const GN=Te("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
* @license lucide-react v0.303.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const XN=Te("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]);/**
* @license lucide-react v0.303.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const vA=Te("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
* @license lucide-react v0.303.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const QN=Te("Key",[["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["path",{d:"m15.5 7.5 3 3L22 7l-3-3",key:"1rn1fs"}]]);/**
* @license lucide-react v0.303.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const YN=Te("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
* @license lucide-react v0.303.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const _g=Te("Leaf",[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]]);/**
* @license lucide-react v0.303.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const cx=Te("Package",[["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);/**
* @license lucide-react v0.303.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const fx=Te("Pause",[["rect",{width:"4",height:"16",x:"6",y:"4",key:"iffhe4"}],["rect",{width:"4",height:"16",x:"14",y:"4",key:"sjin7j"}]]);/**
* @license lucide-react v0.303.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ef=Te("Play",[["polygon",{points:"5 3 19 12 5 21 5 3",key:"191637"}]]);/**
* @license lucide-react v0.303.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const JN=Te("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
* @license lucide-react v0.303.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const gA=Te("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
* @license lucide-react v0.303.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const bA=Te("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
* @license lucide-react v0.303.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ZN=Te("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
* @license lucide-react v0.303.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const tf=Te("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
* @license lucide-react v0.303.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const eM=Te("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
* @license lucide-react v0.303.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Pg=Te("XCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
* @license lucide-react v0.303.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const tM=Te("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function xA(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=xA(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function oe(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=xA(e))&&(n&&(n+=" "),n+=t);return n}var rM=Array.isArray,qt=rM,nM=typeof Eu=="object"&&Eu&&Eu.Object===Object&&Eu,wA=nM,iM=wA,aM=typeof self=="object"&&self&&self.Object===Object&&self,oM=iM||aM||Function("return this")(),Xr=oM,sM=Xr,lM=sM.Symbol,pu=lM,dx=pu,SA=Object.prototype,uM=SA.hasOwnProperty,cM=SA.toString,ws=dx?dx.toStringTag:void 0;function fM(e){var t=uM.call(e,ws),r=e[ws];try{e[ws]=void 0;var n=!0}catch{}var i=cM.call(e);return n&&(t?e[ws]=r:delete e[ws]),i}var dM=fM,hM=Object.prototype,pM=hM.toString;function mM(e){return pM.call(e)}var yM=mM,hx=pu,vM=dM,gM=yM,bM="[object Null]",xM="[object Undefined]",px=hx?hx.toStringTag:void 0;function wM(e){return e==null?e===void 0?xM:bM:px&&px in Object(e)?vM(e):gM(e)}var An=wM;function SM(e){return e!=null&&typeof e=="object"}var En=SM,OM=An,_M=En,PM="[object Symbol]";function AM(e){return typeof e=="symbol"||_M(e)&&OM(e)==PM}var Zo=AM,EM=qt,jM=Zo,TM=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,CM=/^\w*$/;function $M(e,t){if(EM(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||jM(e)?!0:CM.test(e)||!TM.test(e)||t!=null&&e in Object(t)}var Ag=$M;function kM(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var yi=kM;const es=Se(yi);var NM=An,MM=yi,IM="[object AsyncFunction]",RM="[object Function]",DM="[object GeneratorFunction]",LM="[object Proxy]";function BM(e){if(!MM(e))return!1;var t=NM(e);return t==RM||t==DM||t==IM||t==LM}var Eg=BM;const re=Se(Eg);var FM=Xr,UM=FM["__core-js_shared__"],zM=UM,tp=zM,mx=function(){var e=/[^.]+$/.exec(tp&&tp.keys&&tp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function WM(e){return!!mx&&mx in e}var HM=WM,qM=Function.prototype,KM=qM.toString;function VM(e){if(e!=null){try{return KM.call(e)}catch{}try{return e+""}catch{}}return""}var OA=VM,GM=Eg,XM=HM,QM=yi,YM=OA,JM=/[\\^$.*+?()[\]{}|]/g,ZM=/^\[object .+?Constructor\]$/,eI=Function.prototype,tI=Object.prototype,rI=eI.toString,nI=tI.hasOwnProperty,iI=RegExp("^"+rI.call(nI).replace(JM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function aI(e){if(!QM(e)||XM(e))return!1;var t=GM(e)?iI:ZM;return t.test(YM(e))}var oI=aI;function sI(e,t){return e==null?void 0:e[t]}var lI=sI,uI=oI,cI=lI;function fI(e,t){var r=cI(e,t);return uI(r)?r:void 0}var ba=fI,dI=ba,hI=dI(Object,"create"),_d=hI,yx=_d;function pI(){this.__data__=yx?yx(null):{},this.size=0}var mI=pI;function yI(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var vI=yI,gI=_d,bI="__lodash_hash_undefined__",xI=Object.prototype,wI=xI.hasOwnProperty;function SI(e){var t=this.__data__;if(gI){var r=t[e];return r===bI?void 0:r}return wI.call(t,e)?t[e]:void 0}var OI=SI,_I=_d,PI=Object.prototype,AI=PI.hasOwnProperty;function EI(e){var t=this.__data__;return _I?t[e]!==void 0:AI.call(t,e)}var jI=EI,TI=_d,CI="__lodash_hash_undefined__";function $I(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=TI&&t===void 0?CI:t,this}var kI=$I,NI=mI,MI=vI,II=OI,RI=jI,DI=kI;function ts(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ts.prototype.clear=NI;ts.prototype.delete=MI;ts.prototype.get=II;ts.prototype.has=RI;ts.prototype.set=DI;var LI=ts;function BI(){this.__data__=[],this.size=0}var FI=BI;function UI(e,t){return e===t||e!==e&&t!==t}var jg=UI,zI=jg;function WI(e,t){for(var r=e.length;r--;)if(zI(e[r][0],t))return r;return-1}var Pd=WI,HI=Pd,qI=Array.prototype,KI=qI.splice;function VI(e){var t=this.__data__,r=HI(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():KI.call(t,r,1),--this.size,!0}var GI=VI,XI=Pd;function QI(e){var t=this.__data__,r=XI(t,e);return r<0?void 0:t[r][1]}var YI=QI,JI=Pd;function ZI(e){return JI(this.__data__,e)>-1}var eR=ZI,tR=Pd;function rR(e,t){var r=this.__data__,n=tR(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var nR=rR,iR=FI,aR=GI,oR=YI,sR=eR,lR=nR;function rs(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}rs.prototype.clear=iR;rs.prototype.delete=aR;rs.prototype.get=oR;rs.prototype.has=sR;rs.prototype.set=lR;var Ad=rs,uR=ba,cR=Xr,fR=uR(cR,"Map"),Tg=fR,vx=LI,dR=Ad,hR=Tg;function pR(){this.size=0,this.__data__={hash:new vx,map:new(hR||dR),string:new vx}}var mR=pR;function yR(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var vR=yR,gR=vR;function bR(e,t){var r=e.__data__;return gR(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Ed=bR,xR=Ed;function wR(e){var t=xR(this,e).delete(e);return this.size-=t?1:0,t}var SR=wR,OR=Ed;function _R(e){return OR(this,e).get(e)}var PR=_R,AR=Ed;function ER(e){return AR(this,e).has(e)}var jR=ER,TR=Ed;function CR(e,t){var r=TR(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var $R=CR,kR=mR,NR=SR,MR=PR,IR=jR,RR=$R;function ns(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ns.prototype.clear=kR;ns.prototype.delete=NR;ns.prototype.get=MR;ns.prototype.has=IR;ns.prototype.set=RR;var Cg=ns,_A=Cg,DR="Expected a function";function $g(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(DR);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new($g.Cache||_A),r}$g.Cache=_A;var PA=$g;const LR=Se(PA);var BR=PA,FR=500;function UR(e){var t=BR(e,function(n){return r.size===FR&&r.clear(),n}),r=t.cache;return t}var zR=UR,WR=zR,HR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qR=/\\(\\)?/g,KR=WR(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(HR,function(r,n,i,a){t.push(i?a.replace(qR,"$1"):n||r)}),t}),VR=KR;function GR(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var kg=GR,gx=pu,XR=kg,QR=qt,YR=Zo,bx=gx?gx.prototype:void 0,xx=bx?bx.toString:void 0;function AA(e){if(typeof e=="string")return e;if(QR(e))return XR(e,AA)+"";if(YR(e))return xx?xx.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var JR=AA,ZR=JR;function eD(e){return e==null?"":ZR(e)}var EA=eD,tD=qt,rD=Ag,nD=VR,iD=EA;function aD(e,t){return tD(e)?e:rD(e,t)?[e]:nD(iD(e))}var jA=aD,oD=Zo;function sD(e){if(typeof e=="string"||oD(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var jd=sD,lD=jA,uD=jd;function cD(e,t){t=lD(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[uD(t[r++])];return r&&r==n?e:void 0}var Ng=cD,fD=Ng;function dD(e,t,r){var n=e==null?void 0:fD(e,t);return n===void 0?r:n}var TA=dD;const Jt=Se(TA);function hD(e){return e==null}var pD=hD;const ue=Se(pD);var mD=An,yD=qt,vD=En,gD="[object String]";function bD(e){return typeof e=="string"||!yD(e)&&vD(e)&&mD(e)==gD}var xD=bD;const ca=Se(xD);var CA={exports:{}},xe={};/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Mg=Symbol.for("react.element"),Ig=Symbol.for("react.portal"),Td=Symbol.for("react.fragment"),Cd=Symbol.for("react.strict_mode"),$d=Symbol.for("react.profiler"),kd=Symbol.for("react.provider"),Nd=Symbol.for("react.context"),wD=Symbol.for("react.server_context"),Md=Symbol.for("react.forward_ref"),Id=Symbol.for("react.suspense"),Rd=Symbol.for("react.suspense_list"),Dd=Symbol.for("react.memo"),Ld=Symbol.for("react.lazy"),SD=Symbol.for("react.offscreen"),$A;$A=Symbol.for("react.module.reference");function gr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Mg:switch(e=e.type,e){case Td:case $d:case Cd:case Id:case Rd:return e;default:switch(e=e&&e.$$typeof,e){case wD:case Nd:case Md:case Ld:case Dd:case kd:return e;default:return t}}case Ig:return t}}}xe.ContextConsumer=Nd;xe.ContextProvider=kd;xe.Element=Mg;xe.ForwardRef=Md;xe.Fragment=Td;xe.Lazy=Ld;xe.Memo=Dd;xe.Portal=Ig;xe.Profiler=$d;xe.StrictMode=Cd;xe.Suspense=Id;xe.SuspenseList=Rd;xe.isAsyncMode=function(){return!1};xe.isConcurrentMode=function(){return!1};xe.isContextConsumer=function(e){return gr(e)===Nd};xe.isContextProvider=function(e){return gr(e)===kd};xe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Mg};xe.isForwardRef=function(e){return gr(e)===Md};xe.isFragment=function(e){return gr(e)===Td};xe.isLazy=function(e){return gr(e)===Ld};xe.isMemo=function(e){return gr(e)===Dd};xe.isPortal=function(e){return gr(e)===Ig};xe.isProfiler=function(e){return gr(e)===$d};xe.isStrictMode=function(e){return gr(e)===Cd};xe.isSuspense=function(e){return gr(e)===Id};xe.isSuspenseList=function(e){return gr(e)===Rd};xe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Td||e===$d||e===Cd||e===Id||e===Rd||e===SD||typeof e=="object"&&e!==null&&(e.$$typeof===Ld||e.$$typeof===Dd||e.$$typeof===kd||e.$$typeof===Nd||e.$$typeof===Md||e.$$typeof===$A||e.getModuleId!==void 0)};xe.typeOf=gr;CA.exports=xe;var OD=CA.exports,_D=An,PD=En,AD="[object Number]";function ED(e){return typeof e=="number"||PD(e)&&_D(e)==AD}var kA=ED;const jD=Se(kA);var TD=kA;function CD(e){return TD(e)&&e!=+e}var $D=CD;const mu=Se($D);var At=function(t){return t===0?0:t>0?1:-1},Li=function(t){return ca(t)&&t.indexOf("%")===t.length-1},V=function(t){return jD(t)&&!mu(t)},kD=function(t){return ue(t)},nt=function(t){return V(t)||ca(t)},ND=0,yu=function(t){var r=++ND;return"".concat(t||"").concat(r)},Et=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!V(t)&&!ca(t))return n;var a;if(Li(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return mu(a)&&(a=n),i&&a>r&&(a=r),a},Ea=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},MD=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},In=function(t,r){return V(t)&&V(r)?function(n){return t+n*(r-t)}:function(){return r}};function Hm(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Jt(n,t))===r})}var ID=function(t,r){return V(t)&&V(r)?t-r:ca(t)&&ca(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Ya(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function qm(e){"@babel/helpers - typeof";return qm=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},qm(e)}var RD=["viewBox","children"],DD=["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"],wx=["points","pathLength"],rp={svg:RD,polygon:wx,polyline:wx},Rg=["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"],rf=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(j.isValidElement(t)&&(n=t.props),!es(n))return null;var i={};return Object.keys(n).forEach(function(a){Rg.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},LD=function(t,r,n){return function(i){return t(r,n,i),null}},fa=function(t,r,n){if(!es(t)||qm(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];Rg.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=LD(o,r,n))}),i},BD=["children"],FD=["children"];function Sx(e,t){if(e==null)return{};var r=UD(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function UD(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Ox={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"},fn=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},_x=null,np=null,Dg=function e(t){if(t===_x&&Array.isArray(np))return np;var r=[];return j.Children.forEach(t,function(n){ue(n)||(OD.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),np=r,_x=t,r};function pr(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return fn(i)}):n=[fn(t)],Dg(e).forEach(function(i){var a=Jt(i,"type.displayName")||Jt(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Gt(e,t){var r=pr(e,t);return r&&r[0]}var Px=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!V(n)||n<=0||!V(i)||i<=0)},zD=["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"],WD=function(t){return t&&t.type&&ca(t.type)&&zD.indexOf(t.type)>=0},HD=function(t,r,n,i){var a,o=(a=rp==null?void 0:rp[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!re(t)&&(i&&o.includes(r)||DD.includes(r))||n&&Rg.includes(r)},te=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(j.isValidElement(t)&&(i=t.props),!es(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;HD((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},Km=function e(t,r){if(t===r)return!0;var n=j.Children.count(t);if(n!==j.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Ax(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!Ax(a,o))return!1}return!0},Ax=function(t,r){if(ue(t)&&ue(r))return!0;if(!ue(t)&&!ue(r)){var n=t.props||{},i=n.children,a=Sx(n,BD),o=r.props||{},s=o.children,l=Sx(o,FD);return i&&s?Ya(a,l)&&Km(i,s):!i&&!s?Ya(a,l):!1}return!1},Ex=function(t,r){var n=[],i={};return Dg(t).forEach(function(a,o){if(WD(a))n.push(a);else if(a){var s=fn(a.type),l=r[s]||{},u=l.handler,f=l.once;if(u&&(!f||!i[s])){var c=u(a,s,o);n.push(c),i[s]=!0}}}),n},qD=function(t){var r=t&&t.type;return r&&Ox[r]?Ox[r]:null},KD=function(t,r){return Dg(r).indexOf(t)},VD=["children","width","height","viewBox","className","style","title","desc"];function Vm(){return Vm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vm.apply(this,arguments)}function GD(e,t){if(e==null)return{};var r=XD(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function XD(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Gm(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,l=e.desc,u=GD(e,VD),f=i||{width:r,height:n,x:0,y:0},c=oe("recharts-surface",a);return T.createElement("svg",Vm({},te(u,!0,"svg"),{className:c,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),T.createElement("title",null,s),T.createElement("desc",null,l),t)}var QD=["children","className"];function Xm(){return Xm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xm.apply(this,arguments)}function YD(e,t){if(e==null)return{};var r=JD(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function JD(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var ge=T.forwardRef(function(e,t){var r=e.children,n=e.className,i=YD(e,QD),a=oe("recharts-layer",n);return T.createElement("g",Xm({className:a},te(i,!0),{ref:t}),r)}),dn=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]};function ZD(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n<i;)a[n]=e[n+t];return a}var eL=ZD,tL=eL;function rL(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:tL(e,t,r)}var nL=rL,iL="\\ud800-\\udfff",aL="\\u0300-\\u036f",oL="\\ufe20-\\ufe2f",sL="\\u20d0-\\u20ff",lL=aL+oL+sL,uL="\\ufe0e\\ufe0f",cL="\\u200d",fL=RegExp("["+cL+iL+lL+uL+"]");function dL(e){return fL.test(e)}var NA=dL;function hL(e){return e.split("")}var pL=hL,MA="\\ud800-\\udfff",mL="\\u0300-\\u036f",yL="\\ufe20-\\ufe2f",vL="\\u20d0-\\u20ff",gL=mL+yL+vL,bL="\\ufe0e\\ufe0f",xL="["+MA+"]",Qm="["+gL+"]",Ym="\\ud83c[\\udffb-\\udfff]",wL="(?:"+Qm+"|"+Ym+")",IA="[^"+MA+"]",RA="(?:\\ud83c[\\udde6-\\uddff]){2}",DA="[\\ud800-\\udbff][\\udc00-\\udfff]",SL="\\u200d",LA=wL+"?",BA="["+bL+"]?",OL="(?:"+SL+"(?:"+[IA,RA,DA].join("|")+")"+BA+LA+")*",_L=BA+LA+OL,PL="(?:"+[IA+Qm+"?",Qm,RA,DA,xL].join("|")+")",AL=RegExp(Ym+"(?="+Ym+")|"+PL+_L,"g");function EL(e){return e.match(AL)||[]}var jL=EL,TL=pL,CL=NA,$L=jL;function kL(e){return CL(e)?$L(e):TL(e)}var NL=kL,ML=nL,IL=NA,RL=NL,DL=EA;function LL(e){return function(t){t=DL(t);var r=IL(t)?RL(t):void 0,n=r?r[0]:t.charAt(0),i=r?ML(r,1).join(""):t.slice(1);return n[e]()+i}}var BL=LL,FL=BL,UL=FL("toUpperCase"),zL=UL;const Bd=Se(zL);function Ae(e){return function(){return e}}const FA=Math.cos,nf=Math.sin,Nr=Math.sqrt,af=Math.PI,Fd=2*af,Jm=Math.PI,Zm=2*Jm,Ti=1e-6,WL=Zm-Ti;function UA(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function HL(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return UA;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class qL{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?UA:HL(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,l=n-t,u=i-r,f=o-t,c=s-r,d=f*f+c*c;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Ti)if(!(Math.abs(c*l-u*f)>Ti)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,p=i-s,m=l*l+u*u,y=h*h+p*p,v=Math.sqrt(m),g=Math.sqrt(d),b=a*Math.tan((Jm-Math.acos((m+d-y)/(2*v*g)))/2),w=b/g,x=b/v;Math.abs(w-1)>Ti&&this._append`L${t+w*f},${r+w*c}`,this._append`A${a},${a},0,0,${+(c*h>f*p)},${this._x1=t+x*l},${this._y1=r+x*u}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),l=n*Math.sin(i),u=t+s,f=r+l,c=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>Ti||Math.abs(this._y1-f)>Ti)&&this._append`L${u},${f}`,n&&(d<0&&(d=d%Zm+Zm),d>WL?this._append`A${n},${n},0,1,${c},${t-s},${r-l}A${n},${n},0,1,${c},${this._x1=u},${this._y1=f}`:d>Ti&&this._append`A${n},${n},0,${+(d>=Jm)},${c},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Lg(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new qL(t)}function Bg(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function zA(e){this._context=e}zA.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 Ud(e){return new zA(e)}function WA(e){return e[0]}function HA(e){return e[1]}function qA(e,t){var r=Ae(!0),n=null,i=Ud,a=null,o=Lg(s);e=typeof e=="function"?e:e===void 0?WA:Ae(e),t=typeof t=="function"?t:t===void 0?HA:Ae(t);function s(l){var u,f=(l=Bg(l)).length,c,d=!1,h;for(n==null&&(a=i(h=o())),u=0;u<=f;++u)!(u<f&&r(c=l[u],u,l))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(c,u,l),+t(c,u,l));if(h)return a=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:Ae(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Ae(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Ae(!!l),s):r},s.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),s):i},s.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),s):n},s}function Ku(e,t,r){var n=null,i=Ae(!0),a=null,o=Ud,s=null,l=Lg(u);e=typeof e=="function"?e:e===void 0?WA:Ae(+e),t=typeof t=="function"?t:Ae(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?HA:Ae(+r);function u(c){var d,h,p,m=(c=Bg(c)).length,y,v=!1,g,b=new Array(m),w=new Array(m);for(a==null&&(s=o(g=l())),d=0;d<=m;++d){if(!(d<m&&i(y=c[d],d,c))===v)if(v=!v)h=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),p=d-1;p>=h;--p)s.point(b[p],w[p]);s.lineEnd(),s.areaEnd()}v&&(b[d]=+e(y,d,c),w[d]=+t(y,d,c),s.point(n?+n(y,d,c):b[d],r?+r(y,d,c):w[d]))}if(g)return s=null,g+""||null}function f(){return qA().defined(i).curve(o).context(a)}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:Ae(+c),n=null,u):e},u.x0=function(c){return arguments.length?(e=typeof c=="function"?c:Ae(+c),u):e},u.x1=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:Ae(+c),u):n},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:Ae(+c),r=null,u):t},u.y0=function(c){return arguments.length?(t=typeof c=="function"?c:Ae(+c),u):t},u.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:Ae(+c),u):r},u.lineX0=u.lineY0=function(){return f().x(e).y(t)},u.lineY1=function(){return f().x(e).y(r)},u.lineX1=function(){return f().x(n).y(t)},u.defined=function(c){return arguments.length?(i=typeof c=="function"?c:Ae(!!c),u):i},u.curve=function(c){return arguments.length?(o=c,a!=null&&(s=o(a)),u):o},u.context=function(c){return arguments.length?(c==null?a=s=null:s=o(a=c),u):a},u}class KA{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function KL(e){return new KA(e,!0)}function VL(e){return new KA(e,!1)}const Fg={draw(e,t){const r=Nr(t/af);e.moveTo(r,0),e.arc(0,0,r,0,Fd)}},GL={draw(e,t){const r=Nr(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},VA=Nr(1/3),XL=VA*2,QL={draw(e,t){const r=Nr(t/XL),n=r*VA;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},YL={draw(e,t){const r=Nr(t),n=-r/2;e.rect(n,n,r,r)}},JL=.8908130915292852,GA=nf(af/10)/nf(7*af/10),ZL=nf(Fd/10)*GA,e4=-FA(Fd/10)*GA,t4={draw(e,t){const r=Nr(t*JL),n=ZL*r,i=e4*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Fd*a/5,s=FA(o),l=nf(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*i,l*n+s*i)}e.closePath()}},ip=Nr(3),r4={draw(e,t){const r=-Nr(t/(ip*3));e.moveTo(0,r*2),e.lineTo(-ip*r,-r),e.lineTo(ip*r,-r),e.closePath()}},nr=-.5,ir=Nr(3)/2,ey=1/Nr(12),n4=(ey/2+1)*3,i4={draw(e,t){const r=Nr(t/n4),n=r/2,i=r*ey,a=n,o=r*ey+r,s=-a,l=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,l),e.lineTo(nr*n-ir*i,ir*n+nr*i),e.lineTo(nr*a-ir*o,ir*a+nr*o),e.lineTo(nr*s-ir*l,ir*s+nr*l),e.lineTo(nr*n+ir*i,nr*i-ir*n),e.lineTo(nr*a+ir*o,nr*o-ir*a),e.lineTo(nr*s+ir*l,nr*l-ir*s),e.closePath()}};function a4(e,t){let r=null,n=Lg(i);e=typeof e=="function"?e:Ae(e||Fg),t=typeof t=="function"?t:Ae(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:Ae(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Ae(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function of(){}function sf(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function XA(e){this._context=e}XA.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:sf(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:sf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function o4(e){return new XA(e)}function QA(e){this._context=e}QA.prototype={areaStart:of,areaEnd:of,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:sf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function s4(e){return new QA(e)}function YA(e){this._context=e}YA.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:sf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function l4(e){return new YA(e)}function JA(e){this._context=e}JA.prototype={areaStart:of,areaEnd:of,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 JA(e)}function jx(e){return e<0?-1:1}function Tx(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(jx(a)+jx(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Cx(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function ap(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function lf(e){this._context=e}lf.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:ap(this,this._t0,Cx(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,ap(this,Cx(this,r=Tx(this,e,t)),r);break;default:ap(this,this._t0,r=Tx(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function ZA(e){this._context=new eE(e)}(ZA.prototype=Object.create(lf.prototype)).point=function(e,t){lf.prototype.point.call(this,t,e)};function eE(e){this._context=e}eE.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function c4(e){return new lf(e)}function f4(e){return new ZA(e)}function tE(e){this._context=e}tE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=$x(e),i=$x(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function $x(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function d4(e){return new tE(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 r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function h4(e){return new zd(e,.5)}function p4(e){return new zd(e,0)}function m4(e){return new zd(e,1)}function Oo(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function ty(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function y4(e,t){return e[t]}function v4(e){const t=[];return t.key=e,t}function g4(){var e=Ae([]),t=ty,r=Oo,n=y4;function i(a){var o=Array.from(e.apply(this,arguments),v4),s,l=o.length,u=-1,f;for(const c of a)for(s=0,++u;s<l;++s)(o[s][u]=[0,+n(c,o[s].key,u,a)]).data=c;for(s=0,f=Bg(t(o));s<l;++s)o[f[s]].index=s;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Ae(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Ae(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?ty:typeof a=="function"?a:Ae(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Oo,i):r},i}function b4(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Oo(e,t)}}function x4(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,s=0;o<i;++o)s+=e[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}Oo(e,t)}}function w4(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var s=0,l=0,u=0;s<o;++s){for(var f=e[t[s]],c=f[n][1]||0,d=f[n-1][1]||0,h=(c-d)/2,p=0;p<s;++p){var m=e[t[p]],y=m[n][1]||0,v=m[n-1][1]||0;h+=y-v}l+=c,u+=h*c}i[n-1][1]+=i[n-1][0]=r,l&&(r-=u/l)}i[n-1][1]+=i[n-1][0]=r,Oo(e,t)}}function wl(e){"@babel/helpers - typeof";return wl=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},wl(e)}var S4=["type","size","sizeType"];function ry(){return ry=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ry.apply(this,arguments)}function kx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nx(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kx(Object(r),!0).forEach(function(n){O4(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function O4(e,t,r){return t=_4(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _4(e){var t=P4(e,"string");return wl(t)=="symbol"?t:t+""}function P4(e,t){if(wl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function A4(e,t){if(e==null)return{};var r=E4(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function E4(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var rE={symbolCircle:Fg,symbolCross:GL,symbolDiamond:QL,symbolSquare:YL,symbolStar:t4,symbolTriangle:r4,symbolWye:i4},j4=Math.PI/180,T4=function(t){var r="symbol".concat(Bd(t));return rE[r]||Fg},C4=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*j4;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}},$4=function(t,r){rE["symbol".concat(Bd(t))]=r},Ug=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,l=A4(t,S4),u=Nx(Nx({},l),{},{type:n,size:a,sizeType:s}),f=function(){var y=T4(n),v=a4().type(y).size(C4(a,s,n));return v()},c=u.className,d=u.cx,h=u.cy,p=te(u,!0);return d===+d&&h===+h&&a===+a?T.createElement("path",ry({},p,{className:oe("recharts-symbols",c),transform:"translate(".concat(d,", ").concat(h,")"),d:f()})):null};Ug.registerSymbol=$4;function _o(e){"@babel/helpers - typeof";return _o=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},_o(e)}function ny(){return ny=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ny.apply(this,arguments)}function Mx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function k4(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mx(Object(r),!0).forEach(function(n){Sl(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mx(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}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 r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,iE(n.key),n)}}function I4(e,t,r){return t&&M4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function R4(e,t,r){return t=uf(t),D4(e,nE()?Reflect.construct(t,r||[],uf(e).constructor):t.apply(e,r))}function D4(e,t){if(t&&(_o(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return L4(e)}function L4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nE=function(){return!!e})()}function uf(e){return uf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},uf(e)}function B4(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&&iy(e,t)}function iy(e,t){return iy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},iy(e,t)}function Sl(e,t,r){return t=iE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iE(e){var t=F4(e,"string");return _o(t)=="symbol"?t:t+""}function F4(e,t){if(_o(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_o(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ar=32,zg=function(e){function t(){return N4(this,t),R4(this,t,arguments)}return B4(t,e),I4(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=ar/2,o=ar/6,s=ar/3,l=n.inactive?i:n.color;if(n.type==="plainline")return T.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:ar,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return T.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(s,`
A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(a,`
H`).concat(ar,"M").concat(2*s,",").concat(a,`
A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return T.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(ar/8,"h").concat(ar,"v").concat(ar*3/4,"h").concat(-ar,"z"),className:"recharts-legend-icon"});if(T.isValidElement(n.legendIcon)){var u=k4({},n);return delete u.legendIcon,T.cloneElement(n.legendIcon,u)}return T.createElement(Ug,{fill:l,cx:a,cy:a,size:ar,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,s=i.layout,l=i.formatter,u=i.inactiveColor,f={x:0,y:0,width:ar,height:ar},c={display:s==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(h,p){var m=h.formatter||l,y=oe(Sl(Sl({"recharts-legend-item":!0},"legend-item-".concat(p),!0),"inactive",h.inactive));if(h.type==="none")return null;var v=re(h.value)?null:h.value;dn(!re(h.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=h.inactive?u:h.color;return T.createElement("li",ny({className:y,style:c,key:"legend-item-".concat(p)},fa(n.props,h,p)),T.createElement(Gm,{width:o,height:o,viewBox:f,style:d},n.renderIcon(h)),T.createElement("span",{className:"recharts-legend-item-text",style:{color:g}},m?m(v,h,p):v))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return T.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])}(j.PureComponent);Sl(zg,"displayName","Legend");Sl(zg,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var U4=Ad;function z4(){this.__data__=new U4,this.size=0}var W4=z4;function H4(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var q4=H4;function K4(e){return this.__data__.get(e)}var V4=K4;function G4(e){return this.__data__.has(e)}var X4=G4,Q4=Ad,Y4=Tg,J4=Cg,Z4=200;function e3(e,t){var r=this.__data__;if(r instanceof Q4){var n=r.__data__;if(!Y4||n.length<Z4-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new J4(n)}return r.set(e,t),this.size=r.size,this}var t3=e3,r3=Ad,n3=W4,i3=q4,a3=V4,o3=X4,s3=t3;function is(e){var t=this.__data__=new r3(e);this.size=t.size}is.prototype.clear=n3;is.prototype.delete=i3;is.prototype.get=a3;is.prototype.has=o3;is.prototype.set=s3;var aE=is,l3="__lodash_hash_undefined__";function u3(e){return this.__data__.set(e,l3),this}var c3=u3;function f3(e){return this.__data__.has(e)}var d3=f3,h3=Cg,p3=c3,m3=d3;function cf(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new h3;++t<r;)this.add(e[t])}cf.prototype.add=cf.prototype.push=p3;cf.prototype.has=m3;var oE=cf;function y3(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var sE=y3;function v3(e,t){return e.has(t)}var lE=v3,g3=oE,b3=sE,x3=lE,w3=1,S3=2;function O3(e,t,r,n,i,a){var o=r&w3,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var u=a.get(e),f=a.get(t);if(u&&f)return u==t&&f==e;var c=-1,d=!0,h=r&S3?new g3:void 0;for(a.set(e,t),a.set(t,e);++c<s;){var p=e[c],m=t[c];if(n)var y=o?n(m,p,c,t,e,a):n(p,m,c,e,t,a);if(y!==void 0){if(y)continue;d=!1;break}if(h){if(!b3(t,function(v,g){if(!x3(h,g)&&(p===v||i(p,v,r,n,a)))return h.push(g)})){d=!1;break}}else if(!(p===m||i(p,m,r,n,a))){d=!1;break}}return a.delete(e),a.delete(t),d}var uE=O3,_3=Xr,P3=_3.Uint8Array,A3=P3;function E3(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var j3=E3;function T3(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var Wg=T3,Ix=pu,Rx=A3,C3=jg,$3=uE,k3=j3,N3=Wg,M3=1,I3=2,R3="[object Boolean]",D3="[object Date]",L3="[object Error]",B3="[object Map]",F3="[object Number]",U3="[object RegExp]",z3="[object Set]",W3="[object String]",H3="[object Symbol]",q3="[object ArrayBuffer]",K3="[object DataView]",Dx=Ix?Ix.prototype:void 0,op=Dx?Dx.valueOf:void 0;function V3(e,t,r,n,i,a,o){switch(r){case K3:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case q3:return!(e.byteLength!=t.byteLength||!a(new Rx(e),new Rx(t)));case R3:case D3:case F3:return C3(+e,+t);case L3:return e.name==t.name&&e.message==t.message;case U3:case W3:return e==t+"";case B3:var s=k3;case z3:var l=n&M3;if(s||(s=N3),e.size!=t.size&&!l)return!1;var u=o.get(e);if(u)return u==t;n|=I3,o.set(e,t);var f=$3(s(e),s(t),n,i,a,o);return o.delete(e),f;case H3:if(op)return op.call(e)==op.call(t)}return!1}var G3=V3;function X3(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var cE=X3,Q3=cE,Y3=qt;function J3(e,t,r){var n=t(e);return Y3(e)?n:Q3(n,r(e))}var Z3=J3;function eB(e,t){for(var r=-1,n=e==null?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}var tB=eB;function rB(){return[]}var nB=rB,iB=tB,aB=nB,oB=Object.prototype,sB=oB.propertyIsEnumerable,Lx=Object.getOwnPropertySymbols,lB=Lx?function(e){return e==null?[]:(e=Object(e),iB(Lx(e),function(t){return sB.call(e,t)}))}:aB,uB=lB;function cB(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var fB=cB,dB=An,hB=En,pB="[object Arguments]";function mB(e){return hB(e)&&dB(e)==pB}var yB=mB,Bx=yB,vB=En,fE=Object.prototype,gB=fE.hasOwnProperty,bB=fE.propertyIsEnumerable,xB=Bx(function(){return arguments}())?Bx:function(e){return vB(e)&&gB.call(e,"callee")&&!bB.call(e,"callee")},Hg=xB,ff={exports:{}};function wB(){return!1}var SB=wB;ff.exports;(function(e,t){var r=Xr,n=SB,i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u})(ff,ff.exports);var dE=ff.exports,OB=9007199254740991,_B=/^(?:0|[1-9]\d*)$/;function PB(e,t){var r=typeof e;return t=t??OB,!!t&&(r=="number"||r!="symbol"&&_B.test(e))&&e>-1&&e%1==0&&e<t}var qg=PB,AB=9007199254740991;function EB(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=AB}var Kg=EB,jB=An,TB=Kg,CB=En,$B="[object Arguments]",kB="[object Array]",NB="[object Boolean]",MB="[object Date]",IB="[object Error]",RB="[object Function]",DB="[object Map]",LB="[object Number]",BB="[object Object]",FB="[object RegExp]",UB="[object Set]",zB="[object String]",WB="[object WeakMap]",HB="[object ArrayBuffer]",qB="[object DataView]",KB="[object Float32Array]",VB="[object Float64Array]",GB="[object Int8Array]",XB="[object Int16Array]",QB="[object Int32Array]",YB="[object Uint8Array]",JB="[object Uint8ClampedArray]",ZB="[object Uint16Array]",eF="[object Uint32Array]",$e={};$e[KB]=$e[VB]=$e[GB]=$e[XB]=$e[QB]=$e[YB]=$e[JB]=$e[ZB]=$e[eF]=!0;$e[$B]=$e[kB]=$e[HB]=$e[NB]=$e[qB]=$e[MB]=$e[IB]=$e[RB]=$e[DB]=$e[LB]=$e[BB]=$e[FB]=$e[UB]=$e[zB]=$e[WB]=!1;function tF(e){return CB(e)&&TB(e.length)&&!!$e[jB(e)]}var rF=tF;function nF(e){return function(t){return e(t)}}var hE=nF,df={exports:{}};df.exports;(function(e,t){var r=wA,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(df,df.exports);var iF=df.exports,aF=rF,oF=hE,Fx=iF,Ux=Fx&&Fx.isTypedArray,sF=Ux?oF(Ux):aF,pE=sF,lF=fB,uF=Hg,cF=qt,fF=dE,dF=qg,hF=pE,pF=Object.prototype,mF=pF.hasOwnProperty;function yF(e,t){var r=cF(e),n=!r&&uF(e),i=!r&&!n&&fF(e),a=!r&&!n&&!i&&hF(e),o=r||n||i||a,s=o?lF(e.length,String):[],l=s.length;for(var u in e)(t||mF.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||dF(u,l)))&&s.push(u);return s}var vF=yF,gF=Object.prototype;function bF(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||gF;return e===r}var xF=bF;function wF(e,t){return function(r){return e(t(r))}}var mE=wF,SF=mE,OF=SF(Object.keys,Object),_F=OF,PF=xF,AF=_F,EF=Object.prototype,jF=EF.hasOwnProperty;function TF(e){if(!PF(e))return AF(e);var t=[];for(var r in Object(e))jF.call(e,r)&&r!="constructor"&&t.push(r);return t}var CF=TF,$F=Eg,kF=Kg;function NF(e){return e!=null&&kF(e.length)&&!$F(e)}var Wd=NF,MF=vF,IF=CF,RF=Wd;function DF(e){return RF(e)?MF(e):IF(e)}var Vg=DF,LF=Z3,BF=uB,FF=Vg;function UF(e){return LF(e,FF,BF)}var zF=UF,zx=zF,WF=1,HF=Object.prototype,qF=HF.hasOwnProperty;function KF(e,t,r,n,i,a){var o=r&WF,s=zx(e),l=s.length,u=zx(t),f=u.length;if(l!=f&&!o)return!1;for(var c=l;c--;){var d=s[c];if(!(o?d in t:qF.call(t,d)))return!1}var h=a.get(e),p=a.get(t);if(h&&p)return h==t&&p==e;var m=!0;a.set(e,t),a.set(t,e);for(var y=o;++c<l;){d=s[c];var v=e[d],g=t[d];if(n)var b=o?n(g,v,d,t,e,a):n(v,g,d,e,t,a);if(!(b===void 0?v===g||i(v,g,r,n,a):b)){m=!1;break}y||(y=d=="constructor")}if(m&&!y){var w=e.constructor,x=t.constructor;w!=x&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof x=="function"&&x instanceof x)&&(m=!1)}return a.delete(e),a.delete(t),m}var VF=KF,GF=ba,XF=Xr,QF=GF(XF,"DataView"),YF=QF,JF=ba,ZF=Xr,e5=JF(ZF,"Promise"),t5=e5,r5=ba,n5=Xr,i5=r5(n5,"Set"),yE=i5,a5=ba,o5=Xr,s5=a5(o5,"WeakMap"),l5=s5,ay=YF,oy=Tg,sy=t5,ly=yE,uy=l5,vE=An,as=OA,Wx="[object Map]",u5="[object Object]",Hx="[object Promise]",qx="[object Set]",Kx="[object WeakMap]",Vx="[object DataView]",c5=as(ay),f5=as(oy),d5=as(sy),h5=as(ly),p5=as(uy),Ci=vE;(ay&&Ci(new ay(new ArrayBuffer(1)))!=Vx||oy&&Ci(new oy)!=Wx||sy&&Ci(sy.resolve())!=Hx||ly&&Ci(new ly)!=qx||uy&&Ci(new uy)!=Kx)&&(Ci=function(e){var t=vE(e),r=t==u5?e.constructor:void 0,n=r?as(r):"";if(n)switch(n){case c5:return Vx;case f5:return Wx;case d5:return Hx;case h5:return qx;case p5:return Kx}return t});var m5=Ci,sp=aE,y5=uE,v5=G3,g5=VF,Gx=m5,Xx=qt,Qx=dE,b5=pE,x5=1,Yx="[object Arguments]",Jx="[object Array]",Vu="[object Object]",w5=Object.prototype,Zx=w5.hasOwnProperty;function S5(e,t,r,n,i,a){var o=Xx(e),s=Xx(t),l=o?Jx:Gx(e),u=s?Jx:Gx(t);l=l==Yx?Vu:l,u=u==Yx?Vu:u;var f=l==Vu,c=u==Vu,d=l==u;if(d&&Qx(e)){if(!Qx(t))return!1;o=!0,f=!1}if(d&&!f)return a||(a=new sp),o||b5(e)?y5(e,t,r,n,i,a):v5(e,t,l,r,n,i,a);if(!(r&x5)){var h=f&&Zx.call(e,"__wrapped__"),p=c&&Zx.call(t,"__wrapped__");if(h||p){var m=h?e.value():e,y=p?t.value():t;return a||(a=new sp),i(m,y,r,n,a)}}return d?(a||(a=new sp),g5(e,t,r,n,i,a)):!1}var O5=S5,_5=O5,e1=En;function gE(e,t,r,n,i){return e===t?!0:e==null||t==null||!e1(e)&&!e1(t)?e!==e&&t!==t:_5(e,t,r,n,gE,i)}var Gg=gE,P5=aE,A5=Gg,E5=1,j5=2;function T5(e,t,r,n){var i=r.length,a=i,o=!n;if(e==null)return!a;for(e=Object(e);i--;){var s=r[i];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<a;){s=r[i];var l=s[0],u=e[l],f=s[1];if(o&&s[2]){if(u===void 0&&!(l in e))return!1}else{var c=new P5;if(n)var d=n(u,f,l,e,t,c);if(!(d===void 0?A5(f,u,E5|j5,n,c):d))return!1}}return!0}var C5=T5,$5=yi;function k5(e){return e===e&&!$5(e)}var bE=k5,N5=bE,M5=Vg;function I5(e){for(var t=M5(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,N5(i)]}return t}var R5=I5;function D5(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var xE=D5,L5=C5,B5=R5,F5=xE;function U5(e){var t=B5(e);return t.length==1&&t[0][2]?F5(t[0][0],t[0][1]):function(r){return r===e||L5(r,e,t)}}var z5=U5;function W5(e,t){return e!=null&&t in Object(e)}var H5=W5,q5=jA,K5=Hg,V5=qt,G5=qg,X5=Kg,Q5=jd;function Y5(e,t,r){t=q5(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=Q5(t[n]);if(!(a=e!=null&&r(e,o)))break;e=e[o]}return a||++n!=i?a:(i=e==null?0:e.length,!!i&&X5(i)&&G5(o,i)&&(V5(e)||K5(e)))}var J5=Y5,Z5=H5,e6=J5;function t6(e,t){return e!=null&&e6(e,t,Z5)}var r6=t6,n6=Gg,i6=TA,a6=r6,o6=Ag,s6=bE,l6=xE,u6=jd,c6=1,f6=2;function d6(e,t){return o6(e)&&s6(t)?l6(u6(e),t):function(r){var n=i6(r,e);return n===void 0&&n===t?a6(r,e):n6(t,n,c6|f6)}}var h6=d6;function p6(e){return e}var os=p6;function m6(e){return function(t){return t==null?void 0:t[e]}}var y6=m6,v6=Ng;function g6(e){return function(t){return v6(t,e)}}var b6=g6,x6=y6,w6=b6,S6=Ag,O6=jd;function _6(e){return S6(e)?x6(O6(e)):w6(e)}var P6=_6,A6=z5,E6=h6,j6=os,T6=qt,C6=P6;function $6(e){return typeof e=="function"?e:e==null?j6:typeof e=="object"?T6(e)?E6(e[0],e[1]):A6(e):C6(e)}var vi=$6;function k6(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var N6=k6;function M6(e){return e!==e}var I6=M6;function R6(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return-1}var D6=R6,L6=N6,B6=I6,F6=D6;function U6(e,t,r){return t===t?F6(e,t,r):L6(e,B6,r)}var z6=U6,W6=z6;function H6(e,t){var r=e==null?0:e.length;return!!r&&W6(e,t,0)>-1}var q6=H6;function K6(e,t,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}var V6=K6;function G6(){}var X6=G6,lp=yE,Q6=X6,Y6=Wg,J6=1/0,Z6=lp&&1/Y6(new lp([,-0]))[1]==J6?function(e){return new lp(e)}:Q6,eU=Z6,tU=oE,rU=q6,nU=V6,iU=lE,aU=eU,oU=Wg,sU=200;function lU(e,t,r){var n=-1,i=rU,a=e.length,o=!0,s=[],l=s;if(r)o=!1,i=nU;else if(a>=sU){var u=t?null:aU(e);if(u)return oU(u);o=!1,i=iU,l=new tU}else l=t?[]:s;e:for(;++n<a;){var f=e[n],c=t?t(f):f;if(f=r||f!==0?f:0,o&&c===c){for(var d=l.length;d--;)if(l[d]===c)continue e;t&&l.push(c),s.push(f)}else i(l,c,r)||(l!==s&&l.push(c),s.push(f))}return s}var uU=lU,cU=vi,fU=uU;function dU(e,t){return e&&e.length?fU(e,cU(t)):[]}var hU=dU;const t1=Se(hU);function wE(e,t,r){return t===!0?t1(e,r):re(t)?t1(e,t):e}function Po(e){"@babel/helpers - typeof";return Po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Po(e)}var pU=["ref"];function r1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?r1(Object(r),!0).forEach(function(n){Hd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):r1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n1(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,OE(n.key),n)}}function yU(e,t,r){return t&&n1(e.prototype,t),r&&n1(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function vU(e,t,r){return t=hf(t),gU(e,SE()?Reflect.construct(t,r||[],hf(e).constructor):t.apply(e,r))}function gU(e,t){if(t&&(Po(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bU(e)}function bU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(SE=function(){return!!e})()}function hf(e){return hf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},hf(e)}function xU(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&&cy(e,t)}function cy(e,t){return cy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},cy(e,t)}function Hd(e,t,r){return t=OE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OE(e){var t=wU(e,"string");return Po(t)=="symbol"?t:t+""}function wU(e,t){if(Po(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Po(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function SU(e,t){if(e==null)return{};var r=OU(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function OU(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function _U(e){return e.value}function PU(e,t){if(T.isValidElement(e))return T.cloneElement(e,t);if(typeof e=="function")return T.createElement(e,t);t.ref;var r=SU(t,pU);return T.createElement(zg,r)}var i1=1,Ja=function(e){function t(){var r;mU(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=vU(this,t,[].concat(i)),Hd(r,"lastBoundingBox",{width:-1,height:-1}),r}return xU(t,e),yU(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>i1||Math.abs(i.height-this.lastBoundingBox.height)>i1)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Qr({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,s=i.verticalAlign,l=i.margin,u=i.chartWidth,f=i.chartHeight,c,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var h=this.getBBoxSnapshot();c={left:((u||0)-h.width)/2}}else c=o==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var p=this.getBBoxSnapshot();d={top:((f||0)-p.height)/2}}else d=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return Qr(Qr({},c),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,s=i.height,l=i.wrapperStyle,u=i.payloadUniqBy,f=i.payload,c=Qr(Qr({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return T.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(h){n.wrapperNode=h}},PU(a,Qr(Qr({},this.props),{},{payload:wE(f,u,_U)})))}}],[{key:"getWithHeight",value:function(n,i){var a=Qr(Qr({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&V(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])}(j.PureComponent);Hd(Ja,"displayName","Legend");Hd(Ja,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var a1=pu,AU=Hg,EU=qt,o1=a1?a1.isConcatSpreadable:void 0;function jU(e){return EU(e)||AU(e)||!!(o1&&e&&e[o1])}var TU=jU,CU=cE,$U=TU;function _E(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=$U),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?_E(s,t-1,r,n,i):CU(i,s):n||(i[i.length]=s)}return i}var PE=_E;function kU(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++i];if(r(a[l],l,a)===!1)break}return t}}var NU=kU,MU=NU,IU=MU(),RU=IU,DU=RU,LU=Vg;function BU(e,t){return e&&DU(e,t,LU)}var AE=BU,FU=Wd;function UU(e,t){return function(r,n){if(r==null)return r;if(!FU(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=Object(r);(t?a--:++a<i)&&n(o[a],a,o)!==!1;);return r}}var zU=UU,WU=AE,HU=zU,qU=HU(WU),Xg=qU,KU=Xg,VU=Wd;function GU(e,t){var r=-1,n=VU(e)?Array(e.length):[];return KU(e,function(i,a,o){n[++r]=t(i,a,o)}),n}var EE=GU;function XU(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var QU=XU,s1=Zo;function YU(e,t){if(e!==t){var r=e!==void 0,n=e===null,i=e===e,a=s1(e),o=t!==void 0,s=t===null,l=t===t,u=s1(t);if(!s&&!u&&!a&&e>t||a&&o&&l&&!s&&!u||n&&o&&l||!r&&l||!i)return 1;if(!n&&!a&&!u&&e<t||u&&r&&i&&!n&&!a||s&&r&&i||!o&&i||!l)return-1}return 0}var JU=YU,ZU=JU;function e8(e,t,r){for(var n=-1,i=e.criteria,a=t.criteria,o=i.length,s=r.length;++n<o;){var l=ZU(i[n],a[n]);if(l){if(n>=s)return l;var u=r[n];return l*(u=="desc"?-1:1)}}return e.index-t.index}var t8=e8,up=kg,r8=Ng,n8=vi,i8=EE,a8=QU,o8=hE,s8=t8,l8=os,u8=qt;function c8(e,t,r){t.length?t=up(t,function(a){return u8(a)?function(o){return r8(o,a.length===1?a[0]:a)}:a}):t=[l8];var n=-1;t=up(t,o8(n8));var i=i8(e,function(a,o,s){var l=up(t,function(u){return u(a)});return{criteria:l,index:++n,value:a}});return a8(i,function(a,o){return s8(a,o,r)})}var f8=c8;function d8(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var h8=d8,p8=h8,l1=Math.max;function m8(e,t,r){return t=l1(t===void 0?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=l1(n.length-t,0),o=Array(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),p8(e,this,s)}}var y8=m8;function v8(e){return function(){return e}}var g8=v8,b8=ba,x8=function(){try{var e=b8(Object,"defineProperty");return e({},"",{}),e}catch{}}(),jE=x8,w8=g8,u1=jE,S8=os,O8=u1?function(e,t){return u1(e,"toString",{configurable:!0,enumerable:!1,value:w8(t),writable:!0})}:S8,_8=O8,P8=800,A8=16,E8=Date.now;function j8(e){var t=0,r=0;return function(){var n=E8(),i=A8-(n-r);if(r=n,i>0){if(++t>=P8)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var T8=j8,C8=_8,$8=T8,k8=$8(C8),N8=k8,M8=os,I8=y8,R8=N8;function D8(e,t){return R8(I8(e,t,M8),e+"")}var L8=D8,B8=jg,F8=Wd,U8=qg,z8=yi;function W8(e,t,r){if(!z8(r))return!1;var n=typeof t;return(n=="number"?F8(r)&&U8(t,r.length):n=="string"&&t in r)?B8(r[t],e):!1}var qd=W8,H8=PE,q8=f8,K8=L8,c1=qd,V8=K8(function(e,t){if(e==null)return[];var r=t.length;return r>1&&c1(e,t[0],t[1])?t=[]:r>2&&c1(t[0],t[1],t[2])&&(t=[t[0]]),q8(e,H8(t,1),[])}),G8=V8;const Qg=Se(G8);function Ol(e){"@babel/helpers - typeof";return Ol=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ol(e)}function fy(){return fy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fy.apply(this,arguments)}function X8(e,t){return Z8(e)||J8(e,t)||Y8(e,t)||Q8()}function Q8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y8(e,t){if(e){if(typeof e=="string")return f1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return f1(e,t)}}function f1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function J8(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Z8(e){if(Array.isArray(e))return e}function d1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?d1(Object(r),!0).forEach(function(n){ez(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ez(e,t,r){return t=tz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tz(e){var t=rz(e,"string");return Ol(t)=="symbol"?t:t+""}function rz(e,t){if(Ol(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ol(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nz(e){return Array.isArray(e)&&nt(e[0])&&nt(e[1])?e.join(" ~ "):e}var iz=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,s=o===void 0?{}:o,l=t.labelStyle,u=l===void 0?{}:l,f=t.payload,c=t.formatter,d=t.itemSorter,h=t.wrapperClassName,p=t.labelClassName,m=t.label,y=t.labelFormatter,v=t.accessibilityLayer,g=v===void 0?!1:v,b=function(){if(f&&f.length){var $={padding:0,margin:0},L=(d?Qg(f,d):f).map(function(I,R){if(I.type==="none")return null;var B=cp({display:"block",paddingTop:4,paddingBottom:4,color:I.color||"#000"},s),z=I.formatter||c||nz,k=I.value,F=I.name,U=k,K=F;if(z&&U!=null&&K!=null){var H=z(k,F,I,R,f);if(Array.isArray(H)){var J=X8(H,2);U=J[0],K=J[1]}else U=H}return T.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(R),style:B},nt(K)?T.createElement("span",{className:"recharts-tooltip-item-name"},K):null,nt(K)?T.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,T.createElement("span",{className:"recharts-tooltip-item-value"},U),T.createElement("span",{className:"recharts-tooltip-item-unit"},I.unit||""))});return T.createElement("ul",{className:"recharts-tooltip-item-list",style:$},L)}return null},w=cp({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),x=cp({margin:0},u),S=!ue(m),_=S?m:"",P=oe("recharts-default-tooltip",h),A=oe("recharts-tooltip-label",p);S&&y&&f!==void 0&&f!==null&&(_=y(m,f));var C=g?{role:"status","aria-live":"assertive"}:{};return T.createElement("div",fy({className:P,style:w},C),T.createElement("p",{className:A,style:x},T.isValidElement(_)?_:"".concat(_)),b())};function _l(e){"@babel/helpers - typeof";return _l=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},_l(e)}function Gu(e,t,r){return t=az(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function az(e){var t=oz(e,"string");return _l(t)=="symbol"?t:t+""}function oz(e,t){if(_l(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_l(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ss="recharts-tooltip-wrapper",sz={visibility:"hidden"};function lz(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return oe(Ss,Gu(Gu(Gu(Gu({},"".concat(Ss,"-right"),V(r)&&t&&V(t.x)&&r>=t.x),"".concat(Ss,"-left"),V(r)&&t&&V(t.x)&&r<t.x),"".concat(Ss,"-bottom"),V(n)&&t&&V(t.y)&&n>=t.y),"".concat(Ss,"-top"),V(n)&&t&&V(t.y)&&n<t.y))}function h1(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,u=e.viewBoxDimension;if(a&&V(a[n]))return a[n];var f=r[n]-s-i,c=r[n]+i;if(t[n])return o[n]?f:c;if(o[n]){var d=f,h=l[n];return d<h?Math.max(c,l[n]):Math.max(f,l[n])}var p=c+s,m=l[n]+u;return p>m?Math.max(f,l[n]):Math.max(c,l[n])}function uz(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function cz(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,f,c;return o.height>0&&o.width>0&&r?(f=h1({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),c=h1({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),u=uz({translateX:f,translateY:c,useTranslate3d:s})):u=sz,{cssProperties:u,cssClasses:lz({translateX:f,translateY:c,coordinate:r})}}function Ao(e){"@babel/helpers - typeof";return Ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ao(e)}function p1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function m1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?p1(Object(r),!0).forEach(function(n){hy(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dz(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,CE(n.key),n)}}function hz(e,t,r){return t&&dz(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pz(e,t,r){return t=pf(t),mz(e,TE()?Reflect.construct(t,r||[],pf(e).constructor):t.apply(e,r))}function mz(e,t){if(t&&(Ao(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yz(e)}function yz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(TE=function(){return!!e})()}function pf(e){return pf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pf(e)}function vz(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&&dy(e,t)}function dy(e,t){return dy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dy(e,t)}function hy(e,t,r){return t=CE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CE(e){var t=gz(e,"string");return Ao(t)=="symbol"?t:t+""}function gz(e,t){if(Ao(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ao(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var y1=1,bz=function(e){function t(){var r;fz(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=pz(this,t,[].concat(i)),hy(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),hy(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,l,u,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=r.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(u=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&u!==void 0?u:0}})}}),r}return vz(t,e),hz(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>y1||Math.abs(n.height-this.state.lastBoundingBox.height)>y1)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.children,f=i.coordinate,c=i.hasPayload,d=i.isAnimationActive,h=i.offset,p=i.position,m=i.reverseDirection,y=i.useTranslate3d,v=i.viewBox,g=i.wrapperStyle,b=cz({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:h,position:p,reverseDirection:m,tooltipBox:this.state.lastBoundingBox,useTranslate3d:y,viewBox:v}),w=b.cssClasses,x=b.cssProperties,S=m1(m1({transition:d&&a?"transform ".concat(s,"ms ").concat(l):void 0},x),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&c?"visible":"hidden",position:"absolute",top:0,left:0},g);return T.createElement("div",{tabIndex:-1,className:w,style:S,ref:function(P){n.wrapperNode=P}},u)}}])}(j.PureComponent),xz=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ss={isSsr:xz()};function Eo(e){"@babel/helpers - typeof";return Eo=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},Eo(e)}function v1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function g1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?v1(Object(r),!0).forEach(function(n){Yg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sz(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,kE(n.key),n)}}function Oz(e,t,r){return t&&Sz(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _z(e,t,r){return t=mf(t),Pz(e,$E()?Reflect.construct(t,r||[],mf(e).constructor):t.apply(e,r))}function Pz(e,t){if(t&&(Eo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Az(e)}function Az(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $E(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($E=function(){return!!e})()}function mf(e){return mf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},mf(e)}function Ez(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&&py(e,t)}function py(e,t){return py=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},py(e,t)}function Yg(e,t,r){return t=kE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kE(e){var t=jz(e,"string");return Eo(t)=="symbol"?t:t+""}function jz(e,t){if(Eo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Eo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Tz(e){return e.dataKey}function Cz(e,t){return T.isValidElement(e)?T.cloneElement(e,t):typeof e=="function"?T.createElement(e,t):T.createElement(iz,t)}var Ar=function(e){function t(){return wz(this,t),_z(this,t,arguments)}return Ez(t,e),Oz(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.content,f=i.coordinate,c=i.filterNull,d=i.isAnimationActive,h=i.offset,p=i.payload,m=i.payloadUniqBy,y=i.position,v=i.reverseDirection,g=i.useTranslate3d,b=i.viewBox,w=i.wrapperStyle,x=p??[];c&&x.length&&(x=wE(p.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),m,Tz));var S=x.length>0;return T.createElement(bz,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:d,active:a,coordinate:f,hasPayload:S,offset:h,position:y,reverseDirection:v,useTranslate3d:g,viewBox:b,wrapperStyle:w},Cz(u,g1(g1({},this.props),{},{payload:x})))}}])}(j.PureComponent);Yg(Ar,"displayName","Tooltip");Yg(Ar,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ss.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 $z=Xr,kz=function(){return $z.Date.now()},Nz=kz,Mz=/\s/;function Iz(e){for(var t=e.length;t--&&Mz.test(e.charAt(t)););return t}var Rz=Iz,Dz=Rz,Lz=/^\s+/;function Bz(e){return e&&e.slice(0,Dz(e)+1).replace(Lz,"")}var Fz=Bz,Uz=Fz,b1=yi,zz=Zo,x1=NaN,Wz=/^[-+]0x[0-9a-f]+$/i,Hz=/^0b[01]+$/i,qz=/^0o[0-7]+$/i,Kz=parseInt;function Vz(e){if(typeof e=="number")return e;if(zz(e))return x1;if(b1(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=b1(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Uz(e);var r=Hz.test(e);return r||qz.test(e)?Kz(e.slice(2),r?2:8):Wz.test(e)?x1:+e}var NE=Vz,Gz=yi,fp=Nz,w1=NE,Xz="Expected a function",Qz=Math.max,Yz=Math.min;function Jz(e,t,r){var n,i,a,o,s,l,u=0,f=!1,c=!1,d=!0;if(typeof e!="function")throw new TypeError(Xz);t=w1(t)||0,Gz(r)&&(f=!!r.leading,c="maxWait"in r,a=c?Qz(w1(r.maxWait)||0,t):a,d="trailing"in r?!!r.trailing:d);function h(S){var _=n,P=i;return n=i=void 0,u=S,o=e.apply(P,_),o}function p(S){return u=S,s=setTimeout(v,t),f?h(S):o}function m(S){var _=S-l,P=S-u,A=t-_;return c?Yz(A,a-P):A}function y(S){var _=S-l,P=S-u;return l===void 0||_>=t||_<0||c&&P>=a}function v(){var S=fp();if(y(S))return g(S);s=setTimeout(v,m(S))}function g(S){return s=void 0,d&&n?h(S):(n=i=void 0,o)}function b(){s!==void 0&&clearTimeout(s),u=0,n=l=i=s=void 0}function w(){return s===void 0?o:g(fp())}function x(){var S=fp(),_=y(S);if(n=arguments,i=this,l=S,_){if(s===void 0)return p(l);if(c)return clearTimeout(s),s=setTimeout(v,t),h(l)}return s===void 0&&(s=setTimeout(v,t)),o}return x.cancel=b,x.flush=w,x}var Zz=Jz,eW=Zz,tW=yi,rW="Expected a function";function nW(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(rW);return tW(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),eW(e,t,{leading:n,maxWait:t,trailing:i})}var iW=nW;const ME=Se(iW);function Pl(e){"@babel/helpers - typeof";return Pl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pl(e)}function S1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?S1(Object(r),!0).forEach(function(n){aW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aW(e,t,r){return t=oW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oW(e){var t=sW(e,"string");return Pl(t)=="symbol"?t:t+""}function sW(e,t){if(Pl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lW(e,t){return dW(e)||fW(e,t)||cW(e,t)||uW()}function uW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
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 O1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return O1(e,t)}}function O1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function fW(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function dW(e){if(Array.isArray(e))return e}var _1=j.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,s=e.height,l=s===void 0?"100%":s,u=e.minWidth,f=u===void 0?0:u,c=e.minHeight,d=e.maxHeight,h=e.children,p=e.debounce,m=p===void 0?0:p,y=e.id,v=e.className,g=e.onResize,b=e.style,w=b===void 0?{}:b,x=j.useRef(null),S=j.useRef();S.current=g,j.useImperativeHandle(t,function(){return Object.defineProperty(x.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),x.current},configurable:!0})});var _=j.useState({containerWidth:i.width,containerHeight:i.height}),P=lW(_,2),A=P[0],C=P[1],N=j.useCallback(function(L,I){C(function(R){var B=Math.round(L),z=Math.round(I);return R.containerWidth===B&&R.containerHeight===z?R:{containerWidth:B,containerHeight:z}})},[]);j.useEffect(function(){var L=function(F){var U,K=F[0].contentRect,H=K.width,J=K.height;N(H,J),(U=S.current)===null||U===void 0||U.call(S,H,J)};m>0&&(L=ME(L,m,{trailing:!0,leading:!1}));var I=new ResizeObserver(L),R=x.current.getBoundingClientRect(),B=R.width,z=R.height;return N(B,z),I.observe(x.current),function(){I.disconnect()}},[N,m]);var $=j.useMemo(function(){var L=A.containerWidth,I=A.containerHeight;if(L<0||I<0)return null;dn(Li(o)||Li(l),`The width(%s) and height(%s) are both fixed numbers,
maybe you don't need to use a ResponsiveContainer.`,o,l),dn(!r||r>0,"The aspect(%s) must be greater than zero.",r);var R=Li(o)?L:o,B=Li(l)?I:l;r&&r>0&&(R?B=R/r:B&&(R=B*r),d&&B>d&&(B=d)),dn(R>0||B>0,`The width(%s) and height(%s) of chart should be greater than 0,
please check the style of container, or the props width(%s) and height(%s),
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
height and width.`,R,B,o,l,f,c,r);var z=!Array.isArray(h)&&fn(h.type).endsWith("Chart");return T.Children.map(h,function(k){return T.isValidElement(k)?j.cloneElement(k,Xu({width:R,height:B},z?{style:Xu({height:"100%",width:"100%",maxHeight:B,maxWidth:R},k.props.style)}:{})):k})},[r,h,l,d,c,f,A,o]);return T.createElement("div",{id:y?"".concat(y):void 0,className:oe("recharts-responsive-container",v),style:Xu(Xu({},w),{},{width:o,height:l,minWidth:f,minHeight:c,maxHeight:d}),ref:x},$)}),Kd=function(t){return null};Kd.displayName="Cell";function Al(e){"@babel/helpers - typeof";return Al=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Al(e)}function P1(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function my(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?P1(Object(r),!0).forEach(function(n){hW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P1(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hW(e,t,r){return t=pW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pW(e){var t=mW(e,"string");return Al(t)=="symbol"?t:t+""}function mW(e,t){if(Al(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Al(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Pa={widthCache:{},cacheCount:0},yW=2e3,vW={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},A1="recharts_measurement_span";function gW(e){var t=my({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Gs=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ss.isSsr)return{width:0,height:0};var n=gW(r),i=JSON.stringify({text:t,copyStyle:n});if(Pa.widthCache[i])return Pa.widthCache[i];try{var a=document.getElementById(A1);a||(a=document.createElement("span"),a.setAttribute("id",A1),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=my(my({},vW),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return Pa.widthCache[i]=l,++Pa.cacheCount>yW&&(Pa.cacheCount=0,Pa.widthCache={}),l}catch{return{width:0,height:0}}},bW=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function El(e){"@babel/helpers - typeof";return El=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},El(e)}function yf(e,t){return OW(e)||SW(e,t)||wW(e,t)||xW()}function xW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wW(e,t){if(e){if(typeof e=="string")return E1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return E1(e,t)}}function E1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function SW(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function OW(e){if(Array.isArray(e))return e}function _W(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j1(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,AW(n.key),n)}}function PW(e,t,r){return t&&j1(e.prototype,t),r&&j1(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function AW(e){var t=EW(e,"string");return El(t)=="symbol"?t:t+""}function EW(e,t){if(El(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(El(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var T1=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,C1=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,jW=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,TW=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,IE={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},CW=Object.keys(IE),Fa="NaN";function $W(e,t){return e*IE[t]}var Qu=function(){function e(t,r){_W(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!jW.test(r)&&(this.num=NaN,this.unit=""),CW.includes(r)&&(this.num=$W(t,r),this.unit="px")}return PW(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=TW.exec(r))!==null&&n!==void 0?n:[],a=yf(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])}();function RE(e){if(e.includes(Fa))return Fa;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=T1.exec(t))!==null&&r!==void 0?r:[],i=yf(n,4),a=i[1],o=i[2],s=i[3],l=Qu.parse(a??""),u=Qu.parse(s??""),f=o==="*"?l.multiply(u):l.divide(u);if(f.isNaN())return Fa;t=t.replace(T1,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,d=(c=C1.exec(t))!==null&&c!==void 0?c:[],h=yf(d,4),p=h[1],m=h[2],y=h[3],v=Qu.parse(p??""),g=Qu.parse(y??""),b=m==="+"?v.add(g):v.subtract(g);if(b.isNaN())return Fa;t=t.replace(C1,b.toString())}return t}var $1=/\(([^()]*)\)/;function kW(e){for(var t=e;t.includes("(");){var r=$1.exec(t),n=yf(r,2),i=n[1];t=t.replace($1,RE(i))}return t}function NW(e){var t=e.replace(/\s+/g,"");return t=kW(t),t=RE(t),t}function MW(e){try{return NW(e)}catch{return Fa}}function dp(e){var t=MW(e.slice(5,-1));return t===Fa?"":t}var IW=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],RW=["dx","dy","angle","className","breakAll"];function yy(){return yy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yy.apply(this,arguments)}function k1(e,t){if(e==null)return{};var r=DW(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function DW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function N1(e,t){return UW(e)||FW(e,t)||BW(e,t)||LW()}function LW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BW(e,t){if(e){if(typeof e=="string")return M1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return M1(e,t)}}function M1(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function FW(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function UW(e){if(Array.isArray(e))return e}var DE=/[ \f\n\r\t\v\u2028\u2029]+/,LE=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];ue(r)||(n?a=r.toString().split(""):a=r.toString().split(DE));var o=a.map(function(l){return{word:l,width:Gs(l,i).width}}),s=n?0:Gs(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},zW=function(t,r,n,i,a){var o=t.maxLines,s=t.children,l=t.style,u=t.breakAll,f=V(o),c=s,d=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return R.reduce(function(B,z){var k=z.word,F=z.width,U=B[B.length-1];if(U&&(i==null||a||U.width+F+n<Number(i)))U.words.push(k),U.width+=F+n;else{var K={words:[k],width:F};B.push(K)}return B},[])},h=d(r),p=function(R){return R.reduce(function(B,z){return B.width>z.width?B:z})};if(!f)return h;for(var m="…",y=function(R){var B=c.slice(0,R),z=LE({breakAll:u,style:l,children:B+m}).wordsWithComputedWidth,k=d(z),F=k.length>o||p(k).width>Number(i);return[F,k]},v=0,g=c.length-1,b=0,w;v<=g&&b<=c.length-1;){var x=Math.floor((v+g)/2),S=x-1,_=y(S),P=N1(_,2),A=P[0],C=P[1],N=y(x),$=N1(N,1),L=$[0];if(!A&&!L&&(v=x+1),A&&L&&(g=x-1),!A&&L){w=C;break}b++}return w||h},I1=function(t){var r=ue(t)?[]:t.toString().split(DE);return[{words:r}]},WW=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!ss.isSsr){var l,u,f=LE({breakAll:o,children:i,style:a});if(f){var c=f.wordsWithComputedWidth,d=f.spaceWidth;l=c,u=d}else return I1(i);return zW({breakAll:o,children:i,maxLines:s,style:a},l,u,r,n)}return I1(i)},R1="#808080",da=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,u=l===void 0?"0.71em":l,f=t.scaleToFit,c=f===void 0?!1:f,d=t.textAnchor,h=d===void 0?"start":d,p=t.verticalAnchor,m=p===void 0?"end":p,y=t.fill,v=y===void 0?R1:y,g=k1(t,IW),b=j.useMemo(function(){return WW({breakAll:g.breakAll,children:g.children,maxLines:g.maxLines,scaleToFit:c,style:g.style,width:g.width})},[g.breakAll,g.children,g.maxLines,c,g.style,g.width]),w=g.dx,x=g.dy,S=g.angle,_=g.className,P=g.breakAll,A=k1(g,RW);if(!nt(n)||!nt(a))return null;var C=n+(V(w)?w:0),N=a+(V(x)?x:0),$;switch(m){case"start":$=dp("calc(".concat(u,")"));break;case"middle":$=dp("calc(".concat((b.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:$=dp("calc(".concat(b.length-1," * -").concat(s,")"));break}var L=[];if(c){var I=b[0].width,R=g.width;L.push("scale(".concat((V(R)?R/I:1)/I,")"))}return S&&L.push("rotate(".concat(S,", ").concat(C,", ").concat(N,")")),L.length&&(A.transform=L.join(" ")),T.createElement("text",yy({},te(A,!0),{x:C,y:N,className:oe("recharts-text",_),textAnchor:h,fill:v.includes("url")?R1:v}),b.map(function(B,z){var k=B.words.join(P?"":" ");return T.createElement("tspan",{x:C,dy:z===0?$:s,key:"".concat(k,"-").concat(z)},k)}))};function li(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function HW(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Jg(e){let t,r,n;e.length!==2?(t=li,r=(s,l)=>li(e(s),l),n=(s,l)=>e(s)-l):(t=e===li||e===HW?e:qW,r=e,n=e);function i(s,l,u=0,f=s.length){if(u<f){if(t(l,l)!==0)return f;do{const c=u+f>>>1;r(s[c],l)<0?u=c+1:f=c}while(u<f)}return u}function a(s,l,u=0,f=s.length){if(u<f){if(t(l,l)!==0)return f;do{const c=u+f>>>1;r(s[c],l)<=0?u=c+1:f=c}while(u<f)}return u}function o(s,l,u=0,f=s.length){const c=i(s,l,u,f-1);return c>u&&n(s[c-1],l)>-n(s[c],l)?c-1:c}return{left:i,center:o,right:a}}function qW(){return 0}function BE(e){return e===null?NaN:+e}function*KW(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const VW=Jg(li),vu=VW.right;Jg(BE).center;class D1 extends Map{constructor(t,r=QW){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(L1(this,t))}has(t){return super.has(L1(this,t))}set(t,r){return super.set(GW(this,t),r)}delete(t){return super.delete(XW(this,t))}}function L1({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function GW({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function XW({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function QW(e){return e!==null&&typeof e=="object"?e.valueOf():e}function YW(e=li){if(e===li)return FE;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function FE(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const JW=Math.sqrt(50),ZW=Math.sqrt(10),e7=Math.sqrt(2);function vf(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=JW?10:a>=ZW?5:a>=e7?2:1;let s,l,u;return i<0?(u=Math.pow(10,-i)/o,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=Math.pow(10,i)*o,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=r&&r<2?vf(e,t,r*2):[s,l,u]}function vy(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?vf(t,e,r):vf(e,t,r);if(!(a>=i))return[];const s=a-i+1,l=new Array(s);if(n)if(o<0)for(let u=0;u<s;++u)l[u]=(a-u)/-o;else for(let u=0;u<s;++u)l[u]=(a-u)*o;else if(o<0)for(let u=0;u<s;++u)l[u]=(i+u)/-o;else for(let u=0;u<s;++u)l[u]=(i+u)*o;return l}function gy(e,t,r){return t=+t,e=+e,r=+r,vf(e,t,r)[2]}function by(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?gy(t,e,r):gy(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function B1(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function F1(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function UE(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?FE:YW(i);n>r;){if(n-r>600){const l=n-r+1,u=t-r+1,f=Math.log(l),c=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*c*(l-c)/l)*(u-l/2<0?-1:1),h=Math.max(r,Math.floor(t-u*c/l+d)),p=Math.min(n,Math.floor(t+(l-u)*c/l+d));UE(e,t,h,p,i)}const a=e[t];let o=r,s=n;for(Os(e,r,t),i(e[n],a)>0&&Os(e,r,n);o<s;){for(Os(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?Os(e,r,s):(++s,Os(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Os(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function t7(e,t,r){if(e=Float64Array.from(KW(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return F1(e);if(t>=1)return B1(e);var n,i=(n-1)*t,a=Math.floor(i),o=B1(UE(e,a).subarray(0,a+1)),s=F1(e.subarray(a+1));return o+(s-o)*(i-a)}}function r7(e,t,r=BE){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function n7(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function br(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function jn(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 xy=Symbol("implicit");function Zg(){var e=new D1,t=[],r=[],n=xy;function i(a){let o=e.get(a);if(o===void 0){if(n!==xy)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new D1;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Zg(t,r).unknown(n)},br.apply(i,arguments),i}function jl(){var e=Zg().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,l=0,u=0,f=.5;delete e.unknown;function c(){var d=t().length,h=i<n,p=h?i:n,m=h?n:i;a=(m-p)/Math.max(1,d-l+u*2),s&&(a=Math.floor(a)),p+=(m-p-a*(d-l))*f,o=a*(1-l),s&&(p=Math.round(p),o=Math.round(o));var y=n7(d).map(function(v){return p+a*v});return r(h?y.reverse():y)}return e.domain=function(d){return arguments.length?(t(d),c()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,c()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,s=!0,c()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(s=!!d,c()):s},e.padding=function(d){return arguments.length?(l=Math.min(1,u=+d),c()):l},e.paddingInner=function(d){return arguments.length?(l=Math.min(1,d),c()):l},e.paddingOuter=function(d){return arguments.length?(u=+d,c()):u},e.align=function(d){return arguments.length?(f=Math.max(0,Math.min(1,d)),c()):f},e.copy=function(){return jl(t(),[n,i]).round(s).paddingInner(l).paddingOuter(u).align(f)},br.apply(c(),arguments)}function zE(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return zE(t())},e}function Xs(){return zE(jl.apply(null,arguments).paddingInner(1))}function e0(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function WE(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function gu(){}var Tl=.7,gf=1/Tl,Za="\\s*([+-]?\\d+)\\s*",Cl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Kr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",i7=/^#([0-9a-f]{3,8})$/,a7=new RegExp(`^rgb\\(${Za},${Za},${Za}\\)$`),o7=new RegExp(`^rgb\\(${Kr},${Kr},${Kr}\\)$`),s7=new RegExp(`^rgba\\(${Za},${Za},${Za},${Cl}\\)$`),l7=new RegExp(`^rgba\\(${Kr},${Kr},${Kr},${Cl}\\)$`),u7=new RegExp(`^hsl\\(${Cl},${Kr},${Kr}\\)$`),c7=new RegExp(`^hsla\\(${Cl},${Kr},${Kr},${Cl}\\)$`),U1={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};e0(gu,$l,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:z1,formatHex:z1,formatHex8:f7,formatHsl:d7,formatRgb:W1,toString:W1});function z1(){return this.rgb().formatHex()}function f7(){return this.rgb().formatHex8()}function d7(){return HE(this).formatHsl()}function W1(){return this.rgb().formatRgb()}function $l(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=i7.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?H1(t):r===3?new Lt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Yu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Yu(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=a7.exec(e))?new Lt(t[1],t[2],t[3],1):(t=o7.exec(e))?new Lt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=s7.exec(e))?Yu(t[1],t[2],t[3],t[4]):(t=l7.exec(e))?Yu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=u7.exec(e))?V1(t[1],t[2]/100,t[3]/100,1):(t=c7.exec(e))?V1(t[1],t[2]/100,t[3]/100,t[4]):U1.hasOwnProperty(e)?H1(U1[e]):e==="transparent"?new Lt(NaN,NaN,NaN,0):null}function H1(e){return new Lt(e>>16&255,e>>8&255,e&255,1)}function Yu(e,t,r,n){return n<=0&&(e=t=r=NaN),new Lt(e,t,r,n)}function h7(e){return e instanceof gu||(e=$l(e)),e?(e=e.rgb(),new Lt(e.r,e.g,e.b,e.opacity)):new Lt}function wy(e,t,r,n){return arguments.length===1?h7(e):new Lt(e,t,r,n??1)}function Lt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}e0(Lt,wy,WE(gu,{brighter(e){return e=e==null?gf:Math.pow(gf,e),new Lt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Tl:Math.pow(Tl,e),new Lt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Lt(ea(this.r),ea(this.g),ea(this.b),bf(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:q1,formatHex:q1,formatHex8:p7,formatRgb:K1,toString:K1}));function q1(){return`#${Bi(this.r)}${Bi(this.g)}${Bi(this.b)}`}function p7(){return`#${Bi(this.r)}${Bi(this.g)}${Bi(this.b)}${Bi((isNaN(this.opacity)?1:this.opacity)*255)}`}function K1(){const e=bf(this.opacity);return`${e===1?"rgb(":"rgba("}${ea(this.r)}, ${ea(this.g)}, ${ea(this.b)}${e===1?")":`, ${e})`}`}function bf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ea(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Bi(e){return e=ea(e),(e<16?"0":"")+e.toString(16)}function V1(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Tr(e,t,r,n)}function HE(e){if(e instanceof Tr)return new Tr(e.h,e.s,e.l,e.opacity);if(e instanceof gu||(e=$l(e)),!e)return new Tr;if(e instanceof Tr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-t)/s+2:o=(t-r)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new Tr(o,s,l,e.opacity)}function m7(e,t,r,n){return arguments.length===1?HE(e):new Tr(e,t,r,n??1)}function Tr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}e0(Tr,m7,WE(gu,{brighter(e){return e=e==null?gf:Math.pow(gf,e),new Tr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Tl:Math.pow(Tl,e),new Tr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Lt(hp(e>=240?e-240:e+120,i,n),hp(e,i,n),hp(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Tr(G1(this.h),Ju(this.s),Ju(this.l),bf(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=bf(this.opacity);return`${e===1?"hsl(":"hsla("}${G1(this.h)}, ${Ju(this.s)*100}%, ${Ju(this.l)*100}%${e===1?")":`, ${e})`}`}}));function G1(e){return e=(e||0)%360,e<0?e+360:e}function Ju(e){return Math.max(0,Math.min(1,e||0))}function hp(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const t0=e=>()=>e;function y7(e,t){return function(r){return e+r*t}}function v7(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function g7(e){return(e=+e)==1?qE:function(t,r){return r-t?v7(t,r,e):t0(isNaN(t)?r:t)}}function qE(e,t){var r=t-e;return r?y7(e,r):t0(isNaN(e)?t:e)}const X1=function e(t){var r=g7(t);function n(i,a){var o=r((i=wy(i)).r,(a=wy(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),u=qE(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=s(f),i.b=l(f),i.opacity=u(f),i+""}}return n.gamma=e,n}(1);function b7(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function x7(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function w7(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=ls(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function S7(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function xf(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function O7(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=ls(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Sy=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,pp=new RegExp(Sy.source,"g");function _7(e){return function(){return e}}function P7(e){return function(t){return e(t)+""}}function A7(e,t){var r=Sy.lastIndex=pp.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=Sy.exec(e))&&(i=pp.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:xf(n,i)})),r=pp.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?P7(l[0].x):_7(t):(t=l.length,function(u){for(var f=0,c;f<t;++f)s[(c=l[f]).i]=c.x(u);return s.join("")})}function ls(e,t){var r=typeof t,n;return t==null||r==="boolean"?t0(t):(r==="number"?xf:r==="string"?(n=$l(t))?(t=n,X1):A7:t instanceof $l?X1:t instanceof Date?S7:x7(t)?b7:Array.isArray(t)?w7:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?O7:xf)(e,t)}function r0(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function E7(e,t){t===void 0&&(t=e,e=ls);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}function j7(e){return function(){return e}}function wf(e){return+e}var Q1=[0,1];function jt(e){return e}function Oy(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:j7(isNaN(t)?NaN:.5)}function T7(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function C7(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Oy(i,n),a=r(o,a)):(n=Oy(n,i),a=r(a,o)),function(s){return a(n(s))}}function $7(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=Oy(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var l=vu(e,s,1,n)-1;return a[l](i[l](s))}}function bu(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Vd(){var e=Q1,t=Q1,r=ls,n,i,a,o=jt,s,l,u;function f(){var d=Math.min(e.length,t.length);return o!==jt&&(o=T7(e[0],e[d-1])),s=d>2?$7:C7,l=u=null,c}function c(d){return d==null||isNaN(d=+d)?a:(l||(l=s(e.map(n),t,r)))(n(o(d)))}return c.invert=function(d){return o(i((u||(u=s(t,e.map(n),xf)))(d)))},c.domain=function(d){return arguments.length?(e=Array.from(d,wf),f()):e.slice()},c.range=function(d){return arguments.length?(t=Array.from(d),f()):t.slice()},c.rangeRound=function(d){return t=Array.from(d),r=r0,f()},c.clamp=function(d){return arguments.length?(o=d?!0:jt,f()):o!==jt},c.interpolate=function(d){return arguments.length?(r=d,f()):r},c.unknown=function(d){return arguments.length?(a=d,c):a},function(d,h){return n=d,i=h,f()}}function n0(){return Vd()(jt,jt)}function k7(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Sf(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function jo(e){return e=Sf(Math.abs(e)),e?e[1]:NaN}function N7(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),a.push(r.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function M7(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var I7=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function kl(e){if(!(t=I7.exec(e)))throw new Error("invalid format: "+e);var t;return new i0({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]})}kl.prototype=i0.prototype;function i0(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+""}i0.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 R7(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var Of;function D7(e,t){var r=Sf(e,t);if(!r)return Of=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(Of=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Sf(e,Math.max(0,t+a-1))[0]}function Y1(e,t){var r=Sf(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const J1={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:k7,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)=>Y1(e*100,t),r:Y1,s:D7,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Z1(e){return e}var ew=Array.prototype.map,tw=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function L7(e){var t=e.grouping===void 0||e.thousands===void 0?Z1:N7(ew.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Z1:M7(ew.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(c,d){c=kl(c);var h=c.fill,p=c.align,m=c.sign,y=c.symbol,v=c.zero,g=c.width,b=c.comma,w=c.precision,x=c.trim,S=c.type;S==="n"?(b=!0,S="g"):J1[S]||(w===void 0&&(w=12),x=!0,S="g"),(v||h==="0"&&p==="=")&&(v=!0,h="0",p="=");var _=(d&&d.prefix!==void 0?d.prefix:"")+(y==="$"?r:y==="#"&&/[boxX]/.test(S)?"0"+S.toLowerCase():""),P=(y==="$"?n:/[%p]/.test(S)?o:"")+(d&&d.suffix!==void 0?d.suffix:""),A=J1[S],C=/[defgprs%]/.test(S);w=w===void 0?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function N($){var L=_,I=P,R,B,z;if(S==="c")I=A($)+I,$="";else{$=+$;var k=$<0||1/$<0;if($=isNaN($)?l:A(Math.abs($),w),x&&($=R7($)),k&&+$==0&&m!=="+"&&(k=!1),L=(k?m==="("?m:s:m==="-"||m==="("?"":m)+L,I=(S==="s"&&!isNaN($)&&Of!==void 0?tw[8+Of/3]:"")+I+(k&&m==="("?")":""),C){for(R=-1,B=$.length;++R<B;)if(z=$.charCodeAt(R),48>z||z>57){I=(z===46?i+$.slice(R+1):$.slice(R))+I,$=$.slice(0,R);break}}}b&&!v&&($=t($,1/0));var F=L.length+$.length+I.length,U=F<g?new Array(g-F+1).join(h):"";switch(b&&v&&($=t(U+$,U.length?g-I.length:1/0),U=""),p){case"<":$=L+$+I+U;break;case"=":$=L+U+$+I;break;case"^":$=U.slice(0,F=U.length>>1)+L+$+I+U.slice(F);break;default:$=U+L+$+I;break}return a($)}return N.toString=function(){return c+""},N}function f(c,d){var h=Math.max(-8,Math.min(8,Math.floor(jo(d)/3)))*3,p=Math.pow(10,-h),m=u((c=kl(c),c.type="f",c),{suffix:tw[8+h/3]});return function(y){return m(p*y)}}return{format:u,formatPrefix:f}}var Zu,a0,KE;B7({thousands:",",grouping:[3],currency:["$",""]});function B7(e){return Zu=L7(e),a0=Zu.format,KE=Zu.formatPrefix,Zu}function F7(e){return Math.max(0,-jo(Math.abs(e)))}function U7(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(jo(t)/3)))*3-jo(Math.abs(e)))}function z7(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,jo(t)-jo(e))+1}function VE(e,t,r,n){var i=by(e,t,r),a;switch(n=kl(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=U7(i,o))&&(n.precision=a),KE(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=z7(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=F7(i))&&(n.precision=a-(n.type==="%")*2);break}}return a0(n)}function gi(e){var t=e.domain;return e.ticks=function(r){var n=t();return vy(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return VE(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],l,u,f=10;for(s<o&&(u=o,o=s,s=u,u=i,i=a,a=u);f-- >0;){if(u=gy(o,s,r),u===l)return n[i]=o,n[a]=s,t(n);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function _f(){var e=n0();return e.copy=function(){return bu(e,_f())},br.apply(e,arguments),gi(e)}function GE(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,wf),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return GE(e).unknown(t)},e=arguments.length?Array.from(e,wf):[0,1],gi(r)}function XE(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function rw(e){return Math.log(e)}function nw(e){return Math.exp(e)}function W7(e){return-Math.log(-e)}function H7(e){return-Math.exp(-e)}function q7(e){return isFinite(e)?+("1e"+e):e<0?0:e}function K7(e){return e===10?q7:e===Math.E?Math.exp:t=>Math.pow(e,t)}function V7(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 iw(e){return(t,r)=>-e(-t,r)}function o0(e){const t=e(rw,nw),r=t.domain;let n=10,i,a;function o(){return i=V7(n),a=K7(n),r()[0]<0?(i=iw(i),a=iw(a),e(W7,H7)):e(rw,nw),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let u=l[0],f=l[l.length-1];const c=f<u;c&&([u,f]=[f,u]);let d=i(u),h=i(f),p,m;const y=s==null?10:+s;let v=[];if(!(n%1)&&h-d<y){if(d=Math.floor(d),h=Math.ceil(h),u>0){for(;d<=h;++d)for(p=1;p<n;++p)if(m=d<0?p/a(-d):p*a(d),!(m<u)){if(m>f)break;v.push(m)}}else for(;d<=h;++d)for(p=n-1;p>=1;--p)if(m=d>0?p/a(-d):p*a(d),!(m<u)){if(m>f)break;v.push(m)}v.length*2<y&&(v=vy(u,f,y))}else v=vy(d,h,Math.min(h-d,y)).map(a);return c?v.reverse():v},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=kl(l)).precision==null&&(l.trim=!0),l=a0(l)),s===1/0)return l;const u=Math.max(1,n*s/t.ticks().length);return f=>{let c=f/a(Math.round(i(f)));return c*n<n-.5&&(c*=n),c<=u?l(f):""}},t.nice=()=>r(XE(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function QE(){const e=o0(Vd()).domain([1,10]);return e.copy=()=>bu(e,QE()).base(e.base()),br.apply(e,arguments),e}function aw(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function ow(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function s0(e){var t=1,r=e(aw(t),ow(t));return r.constant=function(n){return arguments.length?e(aw(t=+n),ow(t)):t},gi(r)}function YE(){var e=s0(Vd());return e.copy=function(){return bu(e,YE()).constant(e.constant())},br.apply(e,arguments)}function sw(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function G7(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function X7(e){return e<0?-e*e:e*e}function l0(e){var t=e(jt,jt),r=1;function n(){return r===1?e(jt,jt):r===.5?e(G7,X7):e(sw(r),sw(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},gi(t)}function u0(){var e=l0(Vd());return e.copy=function(){return bu(e,u0()).exponent(e.exponent())},br.apply(e,arguments),e}function Q7(){return u0.apply(null,arguments).exponent(.5)}function lw(e){return Math.sign(e)*e*e}function Y7(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function JE(){var e=n0(),t=[0,1],r=!1,n;function i(a){var o=Y7(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(lw(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,wf)).map(lw)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return JE(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},br.apply(i,arguments),gi(i)}function ZE(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=r7(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[vu(r,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(li),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return ZE().domain(e).range(t).unknown(n)},br.apply(a,arguments)}function ej(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(l){return l!=null&&l<=l?i[vu(n,l,0,r)]:a}function s(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return o}return o.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},o.range=function(l){return arguments.length?(r=(i=Array.from(l)).length-1,s()):i.slice()},o.invertExtent=function(l){var u=i.indexOf(l);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return ej().domain([e,t]).range(i).unknown(a)},br.apply(gi(o),arguments)}function tj(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[vu(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return tj().domain(e).range(t).unknown(r)},br.apply(i,arguments)}const mp=new Date,yp=new Date;function it(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const l=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;let u;do l.push(u=new Date(+a)),t(a,s),e(a);while(u<a&&a<o);return l},i.filter=a=>it(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(mp.setTime(+a),yp.setTime(+o),e(mp),e(yp),Math.floor(r(mp,yp))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Pf=it(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Pf.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?it(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Pf);Pf.range;const ln=1e3,dr=ln*60,un=dr*60,xn=un*24,c0=xn*7,uw=xn*30,vp=xn*365,Fi=it(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ln)},(e,t)=>(t-e)/ln,e=>e.getUTCSeconds());Fi.range;const f0=it(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ln)},(e,t)=>{e.setTime(+e+t*dr)},(e,t)=>(t-e)/dr,e=>e.getMinutes());f0.range;const d0=it(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*dr)},(e,t)=>(t-e)/dr,e=>e.getUTCMinutes());d0.range;const h0=it(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ln-e.getMinutes()*dr)},(e,t)=>{e.setTime(+e+t*un)},(e,t)=>(t-e)/un,e=>e.getHours());h0.range;const p0=it(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*un)},(e,t)=>(t-e)/un,e=>e.getUTCHours());p0.range;const xu=it(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*dr)/xn,e=>e.getDate()-1);xu.range;const Gd=it(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/xn,e=>e.getUTCDate()-1);Gd.range;const rj=it(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/xn,e=>Math.floor(e/xn));rj.range;function xa(e){return it(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*dr)/c0)}const Xd=xa(0),Af=xa(1),J7=xa(2),Z7=xa(3),To=xa(4),eH=xa(5),tH=xa(6);Xd.range;Af.range;J7.range;Z7.range;To.range;eH.range;tH.range;function wa(e){return it(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/c0)}const Qd=wa(0),Ef=wa(1),rH=wa(2),nH=wa(3),Co=wa(4),iH=wa(5),aH=wa(6);Qd.range;Ef.range;rH.range;nH.range;Co.range;iH.range;aH.range;const m0=it(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());m0.range;const y0=it(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());y0.range;const wn=it(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());wn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:it(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});wn.range;const Sn=it(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());Sn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:it(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Sn.range;function nj(e,t,r,n,i,a){const o=[[Fi,1,ln],[Fi,5,5*ln],[Fi,15,15*ln],[Fi,30,30*ln],[a,1,dr],[a,5,5*dr],[a,15,15*dr],[a,30,30*dr],[i,1,un],[i,3,3*un],[i,6,6*un],[i,12,12*un],[n,1,xn],[n,2,2*xn],[r,1,c0],[t,1,uw],[t,3,3*uw],[e,1,vp]];function s(u,f,c){const d=f<u;d&&([u,f]=[f,u]);const h=c&&typeof c.range=="function"?c:l(u,f,c),p=h?h.range(u,+f+1):[];return d?p.reverse():p}function l(u,f,c){const d=Math.abs(f-u)/c,h=Jg(([,,y])=>y).right(o,d);if(h===o.length)return e.every(by(u/vp,f/vp,c));if(h===0)return Pf.every(Math.max(by(u,f,c),1));const[p,m]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return p.every(m)}return[s,l]}const[oH,sH]=nj(Sn,y0,Qd,rj,p0,d0),[lH,uH]=nj(wn,m0,Xd,xu,h0,f0);function gp(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 bp(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 _s(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function cH(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,u=Ps(i),f=As(i),c=Ps(a),d=As(a),h=Ps(o),p=As(o),m=Ps(s),y=As(s),v=Ps(l),g=As(l),b={a:z,A:k,b:F,B:U,c:null,d:mw,e:mw,f:NH,g:WH,G:qH,H:CH,I:$H,j:kH,L:ij,m:MH,M:IH,p:K,q:H,Q:gw,s:bw,S:RH,u:DH,U:LH,V:BH,w:FH,W:UH,x:null,X:null,y:zH,Y:HH,Z:KH,"%":vw},w={a:J,A:le,b:Oe,B:He,c:null,d:yw,e:yw,f:QH,g:o9,G:l9,H:VH,I:GH,j:XH,L:oj,m:YH,M:JH,p:rr,q:kt,Q:gw,s:bw,S:ZH,u:e9,U:t9,V:r9,w:n9,W:i9,x:null,X:null,y:a9,Y:s9,Z:u9,"%":vw},x={a:C,A:N,b:$,B:L,c:I,d:hw,e:hw,f:AH,g:dw,G:fw,H:pw,I:pw,j:SH,L:PH,m:wH,M:OH,p:A,q:xH,Q:jH,s:TH,S:_H,u:mH,U:yH,V:vH,w:pH,W:gH,x:R,X:B,y:dw,Y:fw,Z:bH,"%":EH};b.x=S(r,b),b.X=S(n,b),b.c=S(t,b),w.x=S(r,w),w.X=S(n,w),w.c=S(t,w);function S(X,ie){return function(se){var W=[],Be=-1,he=0,Qe=X.length,Ye,Nt,Cn;for(se instanceof Date||(se=new Date(+se));++Be<Qe;)X.charCodeAt(Be)===37&&(W.push(X.slice(he,Be)),(Nt=cw[Ye=X.charAt(++Be)])!=null?Ye=X.charAt(++Be):Nt=Ye==="e"?" ":"0",(Cn=ie[Ye])&&(Ye=Cn(se,Nt)),W.push(Ye),he=Be+1);return W.push(X.slice(he,Be)),W.join("")}}function _(X,ie){return function(se){var W=_s(1900,void 0,1),Be=P(W,X,se+="",0),he,Qe;if(Be!=se.length)return null;if("Q"in W)return new Date(W.Q);if("s"in W)return new Date(W.s*1e3+("L"in W?W.L:0));if(ie&&!("Z"in W)&&(W.Z=0),"p"in W&&(W.H=W.H%12+W.p*12),W.m===void 0&&(W.m="q"in W?W.q:0),"V"in W){if(W.V<1||W.V>53)return null;"w"in W||(W.w=1),"Z"in W?(he=bp(_s(W.y,0,1)),Qe=he.getUTCDay(),he=Qe>4||Qe===0?Ef.ceil(he):Ef(he),he=Gd.offset(he,(W.V-1)*7),W.y=he.getUTCFullYear(),W.m=he.getUTCMonth(),W.d=he.getUTCDate()+(W.w+6)%7):(he=gp(_s(W.y,0,1)),Qe=he.getDay(),he=Qe>4||Qe===0?Af.ceil(he):Af(he),he=xu.offset(he,(W.V-1)*7),W.y=he.getFullYear(),W.m=he.getMonth(),W.d=he.getDate()+(W.w+6)%7)}else("W"in W||"U"in W)&&("w"in W||(W.w="u"in W?W.u%7:"W"in W?1:0),Qe="Z"in W?bp(_s(W.y,0,1)).getUTCDay():gp(_s(W.y,0,1)).getDay(),W.m=0,W.d="W"in W?(W.w+6)%7+W.W*7-(Qe+5)%7:W.w+W.U*7-(Qe+6)%7);return"Z"in W?(W.H+=W.Z/100|0,W.M+=W.Z%100,bp(W)):gp(W)}}function P(X,ie,se,W){for(var Be=0,he=ie.length,Qe=se.length,Ye,Nt;Be<he;){if(W>=Qe)return-1;if(Ye=ie.charCodeAt(Be++),Ye===37){if(Ye=ie.charAt(Be++),Nt=x[Ye in cw?ie.charAt(Be++):Ye],!Nt||(W=Nt(X,se,W))<0)return-1}else if(Ye!=se.charCodeAt(W++))return-1}return W}function A(X,ie,se){var W=u.exec(ie.slice(se));return W?(X.p=f.get(W[0].toLowerCase()),se+W[0].length):-1}function C(X,ie,se){var W=h.exec(ie.slice(se));return W?(X.w=p.get(W[0].toLowerCase()),se+W[0].length):-1}function N(X,ie,se){var W=c.exec(ie.slice(se));return W?(X.w=d.get(W[0].toLowerCase()),se+W[0].length):-1}function $(X,ie,se){var W=v.exec(ie.slice(se));return W?(X.m=g.get(W[0].toLowerCase()),se+W[0].length):-1}function L(X,ie,se){var W=m.exec(ie.slice(se));return W?(X.m=y.get(W[0].toLowerCase()),se+W[0].length):-1}function I(X,ie,se){return P(X,t,ie,se)}function R(X,ie,se){return P(X,r,ie,se)}function B(X,ie,se){return P(X,n,ie,se)}function z(X){return o[X.getDay()]}function k(X){return a[X.getDay()]}function F(X){return l[X.getMonth()]}function U(X){return s[X.getMonth()]}function K(X){return i[+(X.getHours()>=12)]}function H(X){return 1+~~(X.getMonth()/3)}function J(X){return o[X.getUTCDay()]}function le(X){return a[X.getUTCDay()]}function Oe(X){return l[X.getUTCMonth()]}function He(X){return s[X.getUTCMonth()]}function rr(X){return i[+(X.getUTCHours()>=12)]}function kt(X){return 1+~~(X.getUTCMonth()/3)}return{format:function(X){var ie=S(X+="",b);return ie.toString=function(){return X},ie},parse:function(X){var ie=_(X+="",!1);return ie.toString=function(){return X},ie},utcFormat:function(X){var ie=S(X+="",w);return ie.toString=function(){return X},ie},utcParse:function(X){var ie=_(X+="",!0);return ie.toString=function(){return X},ie}}}var cw={"-":"",_:" ",0:"0"},ct=/^\s*\d+/,fH=/^%/,dH=/[\\^$*+?|[\]().{}]/g;function me(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function hH(e){return e.replace(dH,"\\$&")}function Ps(e){return new RegExp("^(?:"+e.map(hH).join("|")+")","i")}function As(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function pH(e,t,r){var n=ct.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function mH(e,t,r){var n=ct.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function yH(e,t,r){var n=ct.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function vH(e,t,r){var n=ct.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function gH(e,t,r){var n=ct.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function fw(e,t,r){var n=ct.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function dw(e,t,r){var n=ct.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function bH(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function xH(e,t,r){var n=ct.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function wH(e,t,r){var n=ct.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function hw(e,t,r){var n=ct.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function SH(e,t,r){var n=ct.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function pw(e,t,r){var n=ct.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function OH(e,t,r){var n=ct.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function _H(e,t,r){var n=ct.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function PH(e,t,r){var n=ct.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function AH(e,t,r){var n=ct.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function EH(e,t,r){var n=fH.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function jH(e,t,r){var n=ct.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function TH(e,t,r){var n=ct.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function mw(e,t){return me(e.getDate(),t,2)}function CH(e,t){return me(e.getHours(),t,2)}function $H(e,t){return me(e.getHours()%12||12,t,2)}function kH(e,t){return me(1+xu.count(wn(e),e),t,3)}function ij(e,t){return me(e.getMilliseconds(),t,3)}function NH(e,t){return ij(e,t)+"000"}function MH(e,t){return me(e.getMonth()+1,t,2)}function IH(e,t){return me(e.getMinutes(),t,2)}function RH(e,t){return me(e.getSeconds(),t,2)}function DH(e){var t=e.getDay();return t===0?7:t}function LH(e,t){return me(Xd.count(wn(e)-1,e),t,2)}function aj(e){var t=e.getDay();return t>=4||t===0?To(e):To.ceil(e)}function BH(e,t){return e=aj(e),me(To.count(wn(e),e)+(wn(e).getDay()===4),t,2)}function FH(e){return e.getDay()}function UH(e,t){return me(Af.count(wn(e)-1,e),t,2)}function zH(e,t){return me(e.getFullYear()%100,t,2)}function WH(e,t){return e=aj(e),me(e.getFullYear()%100,t,2)}function HH(e,t){return me(e.getFullYear()%1e4,t,4)}function qH(e,t){var r=e.getDay();return e=r>=4||r===0?To(e):To.ceil(e),me(e.getFullYear()%1e4,t,4)}function KH(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+me(t/60|0,"0",2)+me(t%60,"0",2)}function yw(e,t){return me(e.getUTCDate(),t,2)}function VH(e,t){return me(e.getUTCHours(),t,2)}function GH(e,t){return me(e.getUTCHours()%12||12,t,2)}function XH(e,t){return me(1+Gd.count(Sn(e),e),t,3)}function oj(e,t){return me(e.getUTCMilliseconds(),t,3)}function QH(e,t){return oj(e,t)+"000"}function YH(e,t){return me(e.getUTCMonth()+1,t,2)}function JH(e,t){return me(e.getUTCMinutes(),t,2)}function ZH(e,t){return me(e.getUTCSeconds(),t,2)}function e9(e){var t=e.getUTCDay();return t===0?7:t}function t9(e,t){return me(Qd.count(Sn(e)-1,e),t,2)}function sj(e){var t=e.getUTCDay();return t>=4||t===0?Co(e):Co.ceil(e)}function r9(e,t){return e=sj(e),me(Co.count(Sn(e),e)+(Sn(e).getUTCDay()===4),t,2)}function n9(e){return e.getUTCDay()}function i9(e,t){return me(Ef.count(Sn(e)-1,e),t,2)}function a9(e,t){return me(e.getUTCFullYear()%100,t,2)}function o9(e,t){return e=sj(e),me(e.getUTCFullYear()%100,t,2)}function s9(e,t){return me(e.getUTCFullYear()%1e4,t,4)}function l9(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Co(e):Co.ceil(e),me(e.getUTCFullYear()%1e4,t,4)}function u9(){return"+0000"}function vw(){return"%"}function gw(e){return+e}function bw(e){return Math.floor(+e/1e3)}var Aa,lj,uj;c9({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 c9(e){return Aa=cH(e),lj=Aa.format,Aa.parse,uj=Aa.utcFormat,Aa.utcParse,Aa}function f9(e){return new Date(e)}function d9(e){return e instanceof Date?+e:+new Date(+e)}function v0(e,t,r,n,i,a,o,s,l,u){var f=n0(),c=f.invert,d=f.domain,h=u(".%L"),p=u(":%S"),m=u("%I:%M"),y=u("%I %p"),v=u("%a %d"),g=u("%b %d"),b=u("%B"),w=u("%Y");function x(S){return(l(S)<S?h:s(S)<S?p:o(S)<S?m:a(S)<S?y:n(S)<S?i(S)<S?v:g:r(S)<S?b:w)(S)}return f.invert=function(S){return new Date(c(S))},f.domain=function(S){return arguments.length?d(Array.from(S,d9)):d().map(f9)},f.ticks=function(S){var _=d();return e(_[0],_[_.length-1],S??10)},f.tickFormat=function(S,_){return _==null?x:u(_)},f.nice=function(S){var _=d();return(!S||typeof S.range!="function")&&(S=t(_[0],_[_.length-1],S??10)),S?d(XE(_,S)):f},f.copy=function(){return bu(f,v0(e,t,r,n,i,a,o,s,l,u))},f}function h9(){return br.apply(v0(lH,uH,wn,m0,Xd,xu,h0,f0,Fi,lj).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function p9(){return br.apply(v0(oH,sH,Sn,y0,Qd,Gd,p0,d0,Fi,uj).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Yd(){var e=0,t=1,r,n,i,a,o=jt,s=!1,l;function u(c){return c==null||isNaN(c=+c)?l:o(i===0?.5:(c=(a(c)-r)*i,s?Math.max(0,Math.min(1,c)):c))}u.domain=function(c){return arguments.length?([e,t]=c,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(c){return arguments.length?(s=!!c,u):s},u.interpolator=function(c){return arguments.length?(o=c,u):o};function f(c){return function(d){var h,p;return arguments.length?([h,p]=d,o=c(h,p),u):[o(0),o(1)]}}return u.range=f(ls),u.rangeRound=f(r0),u.unknown=function(c){return arguments.length?(l=c,u):l},function(c){return a=c,r=c(e),n=c(t),i=r===n?0:1/(n-r),u}}function bi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function cj(){var e=gi(Yd()(jt));return e.copy=function(){return bi(e,cj())},jn.apply(e,arguments)}function fj(){var e=o0(Yd()).domain([1,10]);return e.copy=function(){return bi(e,fj()).base(e.base())},jn.apply(e,arguments)}function dj(){var e=s0(Yd());return e.copy=function(){return bi(e,dj()).constant(e.constant())},jn.apply(e,arguments)}function g0(){var e=l0(Yd());return e.copy=function(){return bi(e,g0()).exponent(e.exponent())},jn.apply(e,arguments)}function m9(){return g0.apply(null,arguments).exponent(.5)}function hj(){var e=[],t=jt;function r(n){if(n!=null&&!isNaN(n=+n))return t((vu(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(li),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>t7(e,a/n))},r.copy=function(){return hj(t).domain(e)},jn.apply(r,arguments)}function Jd(){var e=0,t=.5,r=1,n=1,i,a,o,s,l,u=jt,f,c=!1,d;function h(m){return isNaN(m=+m)?d:(m=.5+((m=+f(m))-a)*(n*m<n*a?s:l),u(c?Math.max(0,Math.min(1,m)):m))}h.domain=function(m){return arguments.length?([e,t,r]=m,i=f(e=+e),a=f(t=+t),o=f(r=+r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,h):[e,t,r]},h.clamp=function(m){return arguments.length?(c=!!m,h):c},h.interpolator=function(m){return arguments.length?(u=m,h):u};function p(m){return function(y){var v,g,b;return arguments.length?([v,g,b]=y,u=E7(m,[v,g,b]),h):[u(0),u(.5),u(1)]}}return h.range=p(ls),h.rangeRound=p(r0),h.unknown=function(m){return arguments.length?(d=m,h):d},function(m){return f=m,i=m(e),a=m(t),o=m(r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,h}}function pj(){var e=gi(Jd()(jt));return e.copy=function(){return bi(e,pj())},jn.apply(e,arguments)}function mj(){var e=o0(Jd()).domain([.1,1,10]);return e.copy=function(){return bi(e,mj()).base(e.base())},jn.apply(e,arguments)}function yj(){var e=s0(Jd());return e.copy=function(){return bi(e,yj()).constant(e.constant())},jn.apply(e,arguments)}function b0(){var e=l0(Jd());return e.copy=function(){return bi(e,b0()).exponent(e.exponent())},jn.apply(e,arguments)}function y9(){return b0.apply(null,arguments).exponent(.5)}const xw=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:jl,scaleDiverging:pj,scaleDivergingLog:mj,scaleDivergingPow:b0,scaleDivergingSqrt:y9,scaleDivergingSymlog:yj,scaleIdentity:GE,scaleImplicit:xy,scaleLinear:_f,scaleLog:QE,scaleOrdinal:Zg,scalePoint:Xs,scalePow:u0,scaleQuantile:ZE,scaleQuantize:ej,scaleRadial:JE,scaleSequential:cj,scaleSequentialLog:fj,scaleSequentialPow:g0,scaleSequentialQuantile:hj,scaleSequentialSqrt:m9,scaleSequentialSymlog:dj,scaleSqrt:Q7,scaleSymlog:YE,scaleThreshold:tj,scaleTime:h9,scaleUtc:p9,tickFormat:VE},Symbol.toStringTag,{value:"Module"}));var v9=Zo;function g9(e,t,r){for(var n=-1,i=e.length;++n<i;){var a=e[n],o=t(a);if(o!=null&&(s===void 0?o===o&&!v9(o):r(o,s)))var s=o,l=a}return l}var Zd=g9;function b9(e,t){return e>t}var vj=b9,x9=Zd,w9=vj,S9=os;function O9(e){return e&&e.length?x9(e,S9,w9):void 0}var _9=O9;const eh=Se(_9);function P9(e,t){return e<t}var gj=P9,A9=Zd,E9=gj,j9=os;function T9(e){return e&&e.length?A9(e,j9,E9):void 0}var C9=T9;const th=Se(C9);var $9=kg,k9=vi,N9=EE,M9=qt;function I9(e,t){var r=M9(e)?$9:N9;return r(e,k9(t))}var R9=I9,D9=PE,L9=R9;function B9(e,t){return D9(L9(e,t),1)}var F9=B9;const U9=Se(F9);var z9=Gg;function W9(e,t){return z9(e,t)}var H9=W9;const rh=Se(H9);var us=1e9,q9={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},w0,Ie=!0,vr="[DecimalError] ",ta=vr+"Invalid argument: ",x0=vr+"Exponent out of range: ",cs=Math.floor,$i=Math.pow,K9=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Xt,ot=1e7,ke=7,bj=9007199254740991,jf=cs(bj/ke),Y={};Y.absoluteValue=Y.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Y.comparedTo=Y.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};Y.decimalPlaces=Y.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*ke;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};Y.dividedBy=Y.div=function(e){return hn(this,new this.constructor(e))};Y.dividedToIntegerBy=Y.idiv=function(e){var t=this,r=t.constructor;return _e(hn(t,new r(e),0,1),r.precision)};Y.equals=Y.eq=function(e){return!this.cmp(e)};Y.exponent=function(){return Xe(this)};Y.greaterThan=Y.gt=function(e){return this.cmp(e)>0};Y.greaterThanOrEqualTo=Y.gte=function(e){return this.cmp(e)>=0};Y.isInteger=Y.isint=function(){return this.e>this.d.length-2};Y.isNegative=Y.isneg=function(){return this.s<0};Y.isPositive=Y.ispos=function(){return this.s>0};Y.isZero=function(){return this.s===0};Y.lessThan=Y.lt=function(e){return this.cmp(e)<0};Y.lessThanOrEqualTo=Y.lte=function(e){return this.cmp(e)<1};Y.logarithm=Y.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Xt))throw Error(vr+"NaN");if(r.s<1)throw Error(vr+(r.s?"NaN":"-Infinity"));return r.eq(Xt)?new n(0):(Ie=!1,t=hn(Nl(r,a),Nl(e,a),a),Ie=!0,_e(t,i))};Y.minus=Y.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Sj(t,e):xj(t,(e.s=-e.s,e))};Y.modulo=Y.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(vr+"NaN");return r.s?(Ie=!1,t=hn(r,e,0,1).times(e),Ie=!0,r.minus(t)):_e(new n(r),i)};Y.naturalExponential=Y.exp=function(){return wj(this)};Y.naturalLogarithm=Y.ln=function(){return Nl(this)};Y.negated=Y.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Y.plus=Y.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?xj(t,e):Sj(t,(e.s=-e.s,e))};Y.precision=Y.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ta+e);if(t=Xe(i)+1,n=i.d.length-1,r=n*ke+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};Y.squareRoot=Y.sqrt=function(){var e,t,r,n,i,a,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(vr+"NaN")}for(e=Xe(s),Ie=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Wr(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=cs((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(i.toString()),r=l.precision,i=o=r+3;;)if(a=n,n=a.plus(hn(s,a,o+2)).times(.5),Wr(a.d).slice(0,o)===(t=Wr(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(_e(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return Ie=!0,_e(n,r)};Y.times=Y.mul=function(e){var t,r,n,i,a,o,s,l,u,f=this,c=f.constructor,d=f.d,h=(e=new c(e)).d;if(!f.s||!e.s)return new c(0);for(e.s*=f.s,r=f.e+e.e,l=d.length,u=h.length,l<u&&(a=d,d=h,h=a,o=l,l=u,u=o),a=[],o=l+u,n=o;n--;)a.push(0);for(n=u;--n>=0;){for(t=0,i=l+n;i>n;)s=a[i]+h[n]*d[i-n-1]+t,a[i--]=s%ot|0,t=s/ot|0;a[i]=(a[i]+t)%ot|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Ie?_e(e,c.precision):e};Y.toDecimalPlaces=Y.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Gr(e,0,us),t===void 0?t=n.rounding:Gr(t,0,8),_e(r,e+Xe(r)+1,t))};Y.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=ha(n,!0):(Gr(e,0,us),t===void 0?t=i.rounding:Gr(t,0,8),n=_e(new i(n),e+1,t),r=ha(n,!0,e+1)),r};Y.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?ha(i):(Gr(e,0,us),t===void 0?t=a.rounding:Gr(t,0,8),n=_e(new a(i),e+Xe(i)+1,t),r=ha(n.abs(),!1,e+Xe(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};Y.toInteger=Y.toint=function(){var e=this,t=e.constructor;return _e(new t(e),Xe(e)+1,t.rounding)};Y.toNumber=function(){return+this};Y.toPower=Y.pow=function(e){var t,r,n,i,a,o,s=this,l=s.constructor,u=12,f=+(e=new l(e));if(!e.s)return new l(Xt);if(s=new l(s),!s.s){if(e.s<1)throw Error(vr+"Infinity");return s}if(s.eq(Xt))return s;if(n=l.precision,e.eq(Xt))return _e(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=f<0?-f:f)<=bj){for(i=new l(Xt),t=Math.ceil(n/ke+4),Ie=!1;r%2&&(i=i.times(s),Sw(i.d,t)),r=cs(r/2),r!==0;)s=s.times(s),Sw(s.d,t);return Ie=!0,e.s<0?new l(Xt).div(i):_e(i,n)}}else if(a<0)throw Error(vr+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,Ie=!1,i=e.times(Nl(s,n+u)),Ie=!0,i=wj(i),i.s=a,i};Y.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Xe(i),n=ha(i,r<=a.toExpNeg||r>=a.toExpPos)):(Gr(e,1,us),t===void 0?t=a.rounding:Gr(t,0,8),i=_e(new a(i),e,t),r=Xe(i),n=ha(i,e<=r||r<=a.toExpNeg,e)),n};Y.toSignificantDigits=Y.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Gr(e,1,us),t===void 0?t=n.rounding:Gr(t,0,8)),_e(new n(r),e,t)};Y.toString=Y.valueOf=Y.val=Y.toJSON=Y[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Xe(e),r=e.constructor;return ha(e,t<=r.toExpNeg||t>=r.toExpPos)};function xj(e,t){var r,n,i,a,o,s,l,u,f=e.constructor,c=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),Ie?_e(t,c):t;if(l=e.d,u=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(n=l,a=-a,s=u.length):(n=u,i=o,s=l.length),o=Math.ceil(c/ke),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=l.length,a=u.length,s-a<0&&(a=s,n=u,u=l,l=n),r=0;a;)r=(l[--a]=l[a]+u[a]+r)/ot|0,l[a]%=ot;for(r&&(l.unshift(r),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,Ie?_e(t,c):t}function Gr(e,t,r){if(e!==~~e||e<t||e>r)throw Error(ta+e)}function Wr(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=ke-n.length,r&&(a+=Rn(r)),a+=n;o=e[t],n=o+"",r=ke-n.length,r&&(a+=Rn(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var hn=function(){function e(n,i){var a,o=0,s=n.length;for(n=n.slice();s--;)a=n[s]*i+o,n[s]=a%ot|0,o=a/ot|0;return o&&n.unshift(o),n}function t(n,i,a,o){var s,l;if(a!=o)l=a>o?1:-1;else for(s=l=0;s<a;s++)if(n[s]!=i[s]){l=n[s]>i[s]?1:-1;break}return l}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*ot+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,l,u,f,c,d,h,p,m,y,v,g,b,w,x,S,_,P,A=n.constructor,C=n.s==i.s?1:-1,N=n.d,$=i.d;if(!n.s)return new A(n);if(!i.s)throw Error(vr+"Division by zero");for(l=n.e-i.e,_=$.length,x=N.length,h=new A(C),p=h.d=[],u=0;$[u]==(N[u]||0);)++u;if($[u]>(N[u]||0)&&--l,a==null?g=a=A.precision:o?g=a+(Xe(n)-Xe(i))+1:g=a,g<0)return new A(0);if(g=g/ke+2|0,u=0,_==1)for(f=0,$=$[0],g++;(u<x||f)&&g--;u++)b=f*ot+(N[u]||0),p[u]=b/$|0,f=b%$|0;else{for(f=ot/($[0]+1)|0,f>1&&($=e($,f),N=e(N,f),_=$.length,x=N.length),w=_,m=N.slice(0,_),y=m.length;y<_;)m[y++]=0;P=$.slice(),P.unshift(0),S=$[0],$[1]>=ot/2&&++S;do f=0,s=t($,m,_,y),s<0?(v=m[0],_!=y&&(v=v*ot+(m[1]||0)),f=v/S|0,f>1?(f>=ot&&(f=ot-1),c=e($,f),d=c.length,y=m.length,s=t(c,m,d,y),s==1&&(f--,r(c,_<d?P:$,d))):(f==0&&(s=f=1),c=$.slice()),d=c.length,d<y&&c.unshift(0),r(m,c,y),s==-1&&(y=m.length,s=t($,m,_,y),s<1&&(f++,r(m,_<y?P:$,y))),y=m.length):s===0&&(f++,m=[0]),p[u++]=f,s&&m[0]?m[y++]=N[w]||0:(m=[N[w]],y=1);while((w++<x||m[0]!==void 0)&&g--)}return p[0]||p.shift(),h.e=l,_e(h,o?a+Xe(h)+1:a)}}();function wj(e,t){var r,n,i,a,o,s,l=0,u=0,f=e.constructor,c=f.precision;if(Xe(e)>16)throw Error(x0+Xe(e));if(!e.s)return new f(Xt);for(Ie=!1,s=c,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log($i(2,u))/Math.LN10*2+5|0,s+=n,r=i=a=new f(Xt),f.precision=s;;){if(i=_e(i.times(e),s),r=r.times(++l),o=a.plus(hn(i,r,s)),Wr(o.d).slice(0,s)===Wr(a.d).slice(0,s)){for(;u--;)a=_e(a.times(a),s);return f.precision=c,t==null?(Ie=!0,_e(a,c)):a}a=o}}function Xe(e){for(var t=e.e*ke,r=e.d[0];r>=10;r/=10)t++;return t}function xp(e,t,r){if(t>e.LN10.sd())throw Ie=!0,r&&(e.precision=r),Error(vr+"LN10 precision limit exceeded");return _e(new e(e.LN10),t)}function Rn(e){for(var t="";e--;)t+="0";return t}function Nl(e,t){var r,n,i,a,o,s,l,u,f,c=1,d=10,h=e,p=h.d,m=h.constructor,y=m.precision;if(h.s<1)throw Error(vr+(h.s?"NaN":"-Infinity"));if(h.eq(Xt))return new m(0);if(t==null?(Ie=!1,u=y):u=t,h.eq(10))return t==null&&(Ie=!0),xp(m,u);if(u+=d,m.precision=u,r=Wr(p),n=r.charAt(0),a=Xe(h),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=Wr(h.d),n=r.charAt(0),c++;a=Xe(h),n>1?(h=new m("0."+r),a++):h=new m(n+"."+r.slice(1))}else return l=xp(m,u+2,y).times(a+""),h=Nl(new m(n+"."+r.slice(1)),u-d).plus(l),m.precision=y,t==null?(Ie=!0,_e(h,y)):h;for(s=o=h=hn(h.minus(Xt),h.plus(Xt),u),f=_e(h.times(h),u),i=3;;){if(o=_e(o.times(f),u),l=s.plus(hn(o,new m(i),u)),Wr(l.d).slice(0,u)===Wr(s.d).slice(0,u))return s=s.times(2),a!==0&&(s=s.plus(xp(m,u+2,y).times(a+""))),s=hn(s,new m(c),u),m.precision=y,t==null?(Ie=!0,_e(s,y)):s;s=l,i+=2}}function ww(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=cs(r/ke),e.d=[],n=(r+1)%ke,r<0&&(n+=ke),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=ke;n<i;)e.d.push(+t.slice(n,n+=ke));t=t.slice(n),n=ke-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),Ie&&(e.e>jf||e.e<-jf))throw Error(x0+r)}else e.s=0,e.e=0,e.d=[0];return e}function _e(e,t,r){var n,i,a,o,s,l,u,f,c=e.d;for(o=1,a=c[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=ke,i=t,u=c[f=0];else{if(f=Math.ceil((n+1)/ke),a=c.length,f>=a)return e;for(u=a=c[f],o=1;a>=10;a/=10)o++;n%=ke,i=n-ke+o}if(r!==void 0&&(a=$i(10,o-i-1),s=u/a%10|0,l=t<0||c[f+1]!==void 0||u%a,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?i>0?u/$i(10,o-i):0:c[f-1])%10&1||r==(e.s<0?8:7))),t<1||!c[0])return l?(a=Xe(e),c.length=1,t=t-a-1,c[0]=$i(10,(ke-t%ke)%ke),e.e=cs(-t/ke)||0):(c.length=1,c[0]=e.e=e.s=0),e;if(n==0?(c.length=f,a=1,f--):(c.length=f+1,a=$i(10,ke-n),c[f]=i>0?(u/$i(10,o-i)%$i(10,i)|0)*a:0),l)for(;;)if(f==0){(c[0]+=a)==ot&&(c[0]=1,++e.e);break}else{if(c[f]+=a,c[f]!=ot)break;c[f--]=0,a=1}for(n=c.length;c[--n]===0;)c.pop();if(Ie&&(e.e>jf||e.e<-jf))throw Error(x0+Xe(e));return e}function Sj(e,t){var r,n,i,a,o,s,l,u,f,c,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Ie?_e(t,h):t;if(l=e.d,c=t.d,n=t.e,u=e.e,l=l.slice(),o=u-n,o){for(f=o<0,f?(r=l,o=-o,s=c.length):(r=c,n=u,s=l.length),i=Math.max(Math.ceil(h/ke),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=l.length,s=c.length,f=i<s,f&&(s=i),i=0;i<s;i++)if(l[i]!=c[i]){f=l[i]<c[i];break}o=0}for(f&&(r=l,l=c,c=r,t.s=-t.s),s=l.length,i=c.length-s;i>0;--i)l[s++]=0;for(i=c.length;i>o;){if(l[--i]<c[i]){for(a=i;a&&l[--a]===0;)l[a]=ot-1;--l[a],l[i]+=ot}l[i]-=c[i]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,Ie?_e(t,h):t):new d(0)}function ha(e,t,r){var n,i=Xe(e),a=Wr(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Rn(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Rn(-i-1)+a,r&&(n=r-o)>0&&(a+=Rn(n))):i>=o?(a+=Rn(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Rn(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Rn(n))),e.s<0?"-"+a:a}function Sw(e,t){if(e.length>t)return e.length=t,!0}function Oj(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(ta+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return ww(o,a.toString())}else if(typeof a!="string")throw Error(ta+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,K9.test(a))ww(o,a);else throw Error(ta+a)}if(i.prototype=Y,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=Oj,i.config=i.set=V9,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function V9(e){if(!e||typeof e!="object")throw Error(vr+"Object expected");var t,r,n,i=["precision",1,us,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(cs(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(ta+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(ta+r+": "+n);return this}var w0=Oj(q9);Xt=new w0(1);const we=w0;function G9(e){return J9(e)||Y9(e)||Q9(e)||X9()}function X9(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q9(e,t){if(e){if(typeof e=="string")return _y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _y(e,t)}}function Y9(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function J9(e){if(Array.isArray(e))return _y(e)}function _y(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Z9=function(t){return t},_j={},Pj=function(t){return t===_j},Ow=function(t){return function r(){return arguments.length===0||arguments.length===1&&Pj(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},eq=function e(t,r){return t===1?r:Ow(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(s){return s!==_j}).length;return o>=t?r.apply(void 0,i):e(t-o,Ow(function(){for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];var f=i.map(function(c){return Pj(c)?l.shift():c});return r.apply(void 0,G9(f).concat(l))}))})},nh=function(t){return eq(t.length,t)},Py=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},tq=nh(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),rq=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return Z9;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(s,l){return l(s)},a.apply(void 0,arguments))}},Ay=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Aj=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(s,l){return s===r[l]})||(r=a,n=t.apply(void 0,a)),n}};function nq(e){var t;return e===0?t=1:t=Math.floor(new we(e).abs().log(10).toNumber())+1,t}function iq(e,t,r){for(var n=new we(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var aq=nh(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),oq=nh(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),sq=nh(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const ih={rangeStep:iq,getDigitCount:nq,interpolateNumber:aq,uninterpolateNumber:oq,uninterpolateTruncation:sq};function Ey(e){return cq(e)||uq(e)||Ej(e)||lq()}function lq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uq(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function cq(e){if(Array.isArray(e))return jy(e)}function Ml(e,t){return hq(e)||dq(e,t)||Ej(e,t)||fq()}function fq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ej(e,t){if(e){if(typeof e=="string")return jy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jy(e,t)}}function jy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function dq(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){i=!0,a=l}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function hq(e){if(Array.isArray(e))return e}function jj(e){var t=Ml(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function Tj(e,t,r){if(e.lte(0))return new we(0);var n=ih.getDigitCount(e.toNumber()),i=new we(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new we(Math.ceil(a.div(o).toNumber())).add(r).mul(o),l=s.mul(i);return t?l:new we(Math.ceil(l))}function pq(e,t,r){var n=1,i=new we(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new we(10).pow(ih.getDigitCount(e)-1),i=new we(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new we(Math.floor(e)))}else e===0?i=new we(Math.floor((t-1)/2)):r||(i=new we(Math.floor(e)));var o=Math.floor((t-1)/2),s=rq(tq(function(l){return i.add(new we(l-o).mul(n)).toNumber()}),Py);return s(0,t)}function Cj(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new we(0),tickMin:new we(0),tickMax:new we(0)};var a=Tj(new we(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new we(0):(o=new we(e).add(t).div(2),o=o.sub(new we(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),l=Math.ceil(new we(t).sub(o).div(a).toNumber()),u=s+l+1;return u>r?Cj(e,t,r,n,i+1):(u<r&&(l=t>0?l+(r-u):l,s=t>0?s:s+(r-u)),{step:a,tickMin:o.sub(new we(s).mul(a)),tickMax:o.add(new we(l).mul(a))})}function mq(e){var t=Ml(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=jj([r,n]),l=Ml(s,2),u=l[0],f=l[1];if(u===-1/0||f===1/0){var c=f===1/0?[u].concat(Ey(Py(0,i-1).map(function(){return 1/0}))):[].concat(Ey(Py(0,i-1).map(function(){return-1/0})),[f]);return r>n?Ay(c):c}if(u===f)return pq(u,i,a);var d=Cj(u,f,o,a),h=d.step,p=d.tickMin,m=d.tickMax,y=ih.rangeStep(p,m.add(new we(.1).mul(h)),h);return r>n?Ay(y):y}function yq(e,t){var r=Ml(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=jj([n,i]),s=Ml(o,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[n,i];if(l===u)return[l];var f=Math.max(t,2),c=Tj(new we(u).sub(l).div(f-1),a,0),d=[].concat(Ey(ih.rangeStep(new we(l),new we(u).sub(new we(.99).mul(c)),c)),[u]);return n>i?Ay(d):d}var vq=Aj(mq),gq=Aj(yq),bq="Invariant failed";function pa(e,t){throw new Error(bq)}var xq=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function $o(e){"@babel/helpers - typeof";return $o=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},$o(e)}function Tf(){return Tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tf.apply(this,arguments)}function wq(e,t){return Pq(e)||_q(e,t)||Oq(e,t)||Sq()}function Sq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
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 _w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _w(e,t)}}function _w(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _q(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Pq(e){if(Array.isArray(e))return e}function Aq(e,t){if(e==null)return{};var r=Eq(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Eq(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function jq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tq(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Nj(n.key),n)}}function Cq(e,t,r){return t&&Tq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $q(e,t,r){return t=Cf(t),kq(e,$j()?Reflect.construct(t,r||[],Cf(e).constructor):t.apply(e,r))}function kq(e,t){if(t&&($o(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nq(e)}function Nq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $j(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($j=function(){return!!e})()}function Cf(e){return Cf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Cf(e)}function Mq(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&&Ty(e,t)}function Ty(e,t){return Ty=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ty(e,t)}function kj(e,t,r){return t=Nj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nj(e){var t=Iq(e,"string");return $o(t)=="symbol"?t:t+""}function Iq(e,t){if($o(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($o(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ah=function(e){function t(){return jq(this,t),$q(this,t,arguments)}return Mq(t,e),Cq(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,s=n.dataKey,l=n.data,u=n.dataPointFormatter,f=n.xAxis,c=n.yAxis,d=Aq(n,xq),h=te(d,!1);this.props.direction==="x"&&f.type!=="number"&&pa();var p=l.map(function(m){var y=u(m,s),v=y.x,g=y.y,b=y.value,w=y.errorVal;if(!w)return null;var x=[],S,_;if(Array.isArray(w)){var P=wq(w,2);S=P[0],_=P[1]}else S=_=w;if(a==="vertical"){var A=f.scale,C=g+i,N=C+o,$=C-o,L=A(b-S),I=A(b+_);x.push({x1:I,y1:N,x2:I,y2:$}),x.push({x1:L,y1:C,x2:I,y2:C}),x.push({x1:L,y1:N,x2:L,y2:$})}else if(a==="horizontal"){var R=c.scale,B=v+i,z=B-o,k=B+o,F=R(b-S),U=R(b+_);x.push({x1:z,y1:U,x2:k,y2:U}),x.push({x1:B,y1:F,x2:B,y2:U}),x.push({x1:z,y1:F,x2:k,y2:F})}return T.createElement(ge,Tf({className:"recharts-errorBar",key:"bar-".concat(x.map(function(K){return"".concat(K.x1,"-").concat(K.x2,"-").concat(K.y1,"-").concat(K.y2)}))},h),x.map(function(K){return T.createElement("line",Tf({},K,{key:"line-".concat(K.x1,"-").concat(K.x2,"-").concat(K.y1,"-").concat(K.y2)}))}))});return T.createElement(ge,{className:"recharts-errorBars"},p)}}])}(T.Component);kj(ah,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});kj(ah,"displayName","ErrorBar");function Il(e){"@babel/helpers - typeof";return Il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Il(e)}function Pw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Oi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pw(Object(r),!0).forEach(function(n){Rq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rq(e,t,r){return t=Dq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dq(e){var t=Lq(e,"string");return Il(t)=="symbol"?t:t+""}function Lq(e,t){if(Il(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Il(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mj=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Gt(r,Ja);if(!o)return null;var s=Ja.defaultProps,l=s!==void 0?Oi(Oi({},s),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:a==="children"?u=(n||[]).reduce(function(f,c){var d=c.item,h=c.props,p=h.sectors||h.data||[];return f.concat(p.map(function(m){return{type:o.props.iconType||d.props.legendType,value:m.name,color:m.fill,payload:m}}))},[]):u=(n||[]).map(function(f){var c=f.item,d=c.type.defaultProps,h=d!==void 0?Oi(Oi({},d),c.props):{},p=h.dataKey,m=h.name,y=h.legendType,v=h.hide;return{inactive:v,dataKey:p,type:l.iconType||y||"square",color:S0(c),value:m||p,payload:h}}),Oi(Oi(Oi({},l),Ja.getWithHeight(o,i)),{},{payload:u,item:o})};function Rl(e){"@babel/helpers - typeof";return Rl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rl(e)}function Aw(e){return zq(e)||Uq(e)||Fq(e)||Bq()}function Bq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fq(e,t){if(e){if(typeof e=="string")return Cy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cy(e,t)}}function Uq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zq(e){if(Array.isArray(e))return Cy(e)}function Cy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ew(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ze(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ew(Object(r),!0).forEach(function(n){eo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ew(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eo(e,t,r){return t=Wq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wq(e){var t=Hq(e,"string");return Rl(t)=="symbol"?t:t+""}function Hq(e,t){if(Rl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xt(e,t,r){return ue(e)||ue(t)?r:nt(t)?Jt(e,t,r):re(t)?t(e):r}function Qs(e,t,r,n){var i=U9(e,function(s){return xt(s,t)});if(r==="number"){var a=i.filter(function(s){return V(s)||parseFloat(s)});return a.length?[th(a),eh(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!ue(s)}):i;return o.map(function(s){return nt(s)||s instanceof Date?s:""})}var qq=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var l=a.range,u=0;u<s;u++){var f=u>0?i[u-1].coordinate:i[s-1].coordinate,c=i[u].coordinate,d=u>=s-1?i[0].coordinate:i[u+1].coordinate,h=void 0;if(At(c-f)!==At(d-c)){var p=[];if(At(d-c)===At(l[1]-l[0])){h=d;var m=c+l[1]-l[0];p[0]=Math.min(m,(m+f)/2),p[1]=Math.max(m,(m+f)/2)}else{h=f;var y=d+l[1]-l[0];p[0]=Math.min(c,(y+c)/2),p[1]=Math.max(c,(y+c)/2)}var v=[Math.min(c,(h+c)/2),Math.max(c,(h+c)/2)];if(t>v[0]&&t<=v[1]||t>=p[0]&&t<=p[1]){o=i[u].index;break}}else{var g=Math.min(f,d),b=Math.max(f,d);if(t>(g+c)/2&&t<=(b+c)/2){o=i[u].index;break}}}else for(var w=0;w<s;w++)if(w===0&&t<=(n[w].coordinate+n[w+1].coordinate)/2||w>0&&w<s-1&&t>(n[w].coordinate+n[w-1].coordinate)/2&&t<=(n[w].coordinate+n[w+1].coordinate)/2||w===s-1&&t>(n[w].coordinate+n[w-1].coordinate)/2){o=n[w].index;break}return o},S0=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ze(ze({},t.type.defaultProps),t.props):t.props,o=a.stroke,s=a.fill,l;switch(i){case"Line":l=o;break;case"Area":case"Radar":l=o&&o!=="none"?o:s;break;default:l=s;break}return l},Kq=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},s=Object.keys(a),l=0,u=s.length;l<u;l++)for(var f=a[s[l]].stackGroups,c=Object.keys(f),d=0,h=c.length;d<h;d++){var p=f[c[d]],m=p.items,y=p.cateAxisId,v=m.filter(function(_){return fn(_.type).indexOf("Bar")>=0});if(v&&v.length){var g=v[0].type.defaultProps,b=g!==void 0?ze(ze({},g),v[0].props):v[0].props,w=b.barSize,x=b[y];o[x]||(o[x]=[]);var S=ue(w)?r:w;o[x].push({item:v[0],stackList:v.slice(1),barSize:ue(S)?void 0:Et(S,n,0)})}}return o},Vq=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,l=o.length;if(l<1)return null;var u=Et(r,i,0,!0),f,c=[];if(o[0].barSize===+o[0].barSize){var d=!1,h=i/l,p=o.reduce(function(w,x){return w+x.barSize||0},0);p+=(l-1)*u,p>=i&&(p-=(l-1)*u,u=0),p>=i&&h>0&&(d=!0,h*=.9,p=l*h);var m=(i-p)/2>>0,y={offset:m-u,size:0};f=o.reduce(function(w,x){var S={item:x.item,position:{offset:y.offset+y.size+u,size:d?h:x.barSize}},_=[].concat(Aw(w),[S]);return y=_[_.length-1].position,x.stackList&&x.stackList.length&&x.stackList.forEach(function(P){_.push({item:P,position:y})}),_},c)}else{var v=Et(n,i,0,!0);i-2*v-(l-1)*u<=0&&(u=0);var g=(i-2*v-(l-1)*u)/l;g>1&&(g>>=0);var b=s===+s?Math.min(g,s):g;f=o.reduce(function(w,x,S){var _=[].concat(Aw(w),[{item:x.item,position:{offset:v+(g+u)*S+(g-b)/2,size:b}}]);return x.stackList&&x.stackList.length&&x.stackList.forEach(function(P){_.push({item:P,position:_[_.length-1].position})}),_},c)}return f},Gq=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,l=o-(s.left||0)-(s.right||0),u=Mj({children:a,legendWidth:l});if(u){var f=i||{},c=f.width,d=f.height,h=u.align,p=u.verticalAlign,m=u.layout;if((m==="vertical"||m==="horizontal"&&p==="middle")&&h!=="center"&&V(t[h]))return ze(ze({},t),{},eo({},h,t[h]+(c||0)));if((m==="horizontal"||m==="vertical"&&h==="center")&&p!=="middle"&&V(t[p]))return ze(ze({},t),{},eo({},p,t[p]+(d||0)))}return t},Xq=function(t,r,n){return ue(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},Ij=function(t,r,n,i,a){var o=r.props.children,s=pr(o,ah).filter(function(u){return Xq(i,a,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,f){var c=xt(f,n);if(ue(c))return u;var d=Array.isArray(c)?[th(c),eh(c)]:[c,c],h=l.reduce(function(p,m){var y=xt(f,m,0),v=d[0]-Math.abs(Array.isArray(y)?y[0]:y),g=d[1]+Math.abs(Array.isArray(y)?y[1]:y);return[Math.min(v,p[0]),Math.max(g,p[1])]},[1/0,-1/0]);return[Math.min(h[0],u[0]),Math.max(h[1],u[1])]},[1/0,-1/0])}return null},Qq=function(t,r,n,i,a){var o=r.map(function(s){return Ij(t,s,n,a,i)}).filter(function(s){return!ue(s)});return o&&o.length?o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},Rj=function(t,r,n,i,a){var o=r.map(function(l){var u=l.props.dataKey;return n==="number"&&u&&Ij(t,l,u,i)||Qs(t,u,n,a)});if(n==="number")return o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,u){for(var f=0,c=u.length;f<c;f++)s[u[f]]||(s[u[f]]=!0,l.push(u[f]));return l},[])},Dj=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},Ui=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,s=t.range,l=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/l:0;if(u=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?At(s[0]-s[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(c){var d=a?a.indexOf(c):c;return{coordinate:i(d)+u,value:c,offset:u}});return f.filter(function(c){return!mu(c.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(c,d){return{coordinate:i(c)+u,value:c,index:d,offset:u}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(c){return{coordinate:i(c)+u,value:c,offset:u}}):i.domain().map(function(c,d){return{coordinate:i(c)+u,value:a?a[c]:c,index:d,offset:u}})},wp=new WeakMap,ec=function(t,r){if(typeof r!="function")return t;wp.has(t)||wp.set(t,new WeakMap);var n=wp.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},Lj=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:jl(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:_f(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Xs(),realScaleType:"point"}:a==="category"?{scale:jl(),realScaleType:"band"}:{scale:_f(),realScaleType:"linear"};if(ca(i)){var l="scale".concat(Bd(i));return{scale:(xw[l]||Xs)(),realScaleType:xw[l]?l:"point"}}return re(i)?{scale:i}:{scale:Xs(),realScaleType:"point"}},jw=1e-4,Bj=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-jw,o=Math.max(i[0],i[1])+jw,s=t(r[0]),l=t(r[n-1]);(s<a||s>o||l<a||l>o)&&t.domain([r[0],r[n-1]])}},Yq=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},Jq=function(t,r){if(!r||r.length!==2||!V(r[0])||!V(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!V(t[0])||t[0]<n)&&(a[0]=n),(!V(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},Zq=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,s=0;s<r;++s){var l=mu(t[s][n][1])?t[s][n][0]:t[s][n][1];l>=0?(t[s][n][0]=a,t[s][n][1]=a+l,a=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+l,o=t[s][n][1])}},eK=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var s=mu(t[o][n][1])?t[o][n][0]:t[o][n][1];s>=0?(t[o][n][0]=a,t[o][n][1]=a+s,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},tK={sign:Zq,expand:b4,none:Oo,silhouette:x4,wiggle:w4,positive:eK},rK=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=tK[n],o=g4().keys(i).value(function(s,l){return+xt(s,l,0)}).order(ty).offset(a);return o(t)},nK=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,l={},u=s.reduce(function(c,d){var h,p=(h=d.type)!==null&&h!==void 0&&h.defaultProps?ze(ze({},d.type.defaultProps),d.props):d.props,m=p.stackId,y=p.hide;if(y)return c;var v=p[n],g=c[v]||{hasStack:!1,stackGroups:{}};if(nt(m)){var b=g.stackGroups[m]||{numericAxisId:n,cateAxisId:i,items:[]};b.items.push(d),g.hasStack=!0,g.stackGroups[m]=b}else g.stackGroups[yu("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return ze(ze({},c),{},eo({},v,g))},l),f={};return Object.keys(u).reduce(function(c,d){var h=u[d];if(h.hasStack){var p={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(m,y){var v=h.stackGroups[y];return ze(ze({},m),{},eo({},y,{numericAxisId:n,cateAxisId:i,items:v.items,stackedData:rK(t,v.items,a)}))},p)}return ze(ze({},c),{},eo({},d,h))},f)},Fj=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,s=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var f=vq(u,a,s);return t.domain([th(f),eh(f)]),{niceTicks:f}}if(a&&i==="number"){var c=t.domain(),d=gq(c,a,s);return{niceTicks:d}}return null},Tw=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var l=xt(o,r.dataKey,r.domain[s]);return ue(l)?null:r.scale(l)-a/2+i},iK=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},aK=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ze(ze({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(nt(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},oK=function(t){return t.reduce(function(r,n){return[th(n.concat([r[0]]).filter(V)),eh(n.concat([r[1]]).filter(V))]},[1/0,-1/0])},Uj=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,l=s.reduce(function(u,f){var c=oK(f.slice(r,n+1));return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Cw=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,$w=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,$y=function(t,r,n){if(re(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(V(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(Cw.test(t[0])){var a=+Cw.exec(t[0])[1];i[0]=r[0]-a}else re(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(V(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if($w.test(t[1])){var o=+$w.exec(t[1])[1];i[1]=r[1]+o}else re(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},$f=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=Qg(r,function(c){return c.coordinate}),o=1/0,s=1,l=a.length;s<l;s++){var u=a[s],f=a[s-1];o=Math.min((u.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},kw=function(t,r,n){return!t||!t.length||rh(t,Jt(n,"type.defaultProps.domain"))?r:t},zj=function(t,r){var n=t.type.defaultProps?ze(ze({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,s=n.formatter,l=n.tooltipType,u=n.chartType,f=n.hide;return ze(ze({},te(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:S0(t),value:xt(r,i),type:l,payload:r,chartType:u,hide:f})};function Dl(e){"@babel/helpers - typeof";return Dl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dl(e)}function Nw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Nw(Object(r),!0).forEach(function(n){Wj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wj(e,t,r){return t=sK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sK(e){var t=lK(e,"string");return Dl(t)=="symbol"?t:t+""}function lK(e,t){if(Dl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Dl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uK(e,t){return hK(e)||dK(e,t)||fK(e,t)||cK()}function cK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fK(e,t){if(e){if(typeof e=="string")return Mw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mw(e,t)}}function Mw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function dK(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function hK(e){if(Array.isArray(e))return e}var kf=Math.PI/180,pK=function(t){return t*180/Math.PI},je=function(t,r,n,i){return{x:t+Math.cos(-kf*i)*n,y:r+Math.sin(-kf*i)*n}},Hj=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},mK=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.startAngle,u=t.endAngle,f=Et(t.cx,o,o/2),c=Et(t.cy,s,s/2),d=Hj(o,s,n),h=Et(t.innerRadius,d,0),p=Et(t.outerRadius,d,d*.8),m=Object.keys(r);return m.reduce(function(y,v){var g=r[v],b=g.domain,w=g.reversed,x;if(ue(g.range))i==="angleAxis"?x=[l,u]:i==="radiusAxis"&&(x=[h,p]),w&&(x=[x[1],x[0]]);else{x=g.range;var S=x,_=uK(S,2);l=_[0],u=_[1]}var P=Lj(g,a),A=P.realScaleType,C=P.scale;C.domain(b).range(x),Bj(C);var N=Fj(C,Zr(Zr({},g),{},{realScaleType:A})),$=Zr(Zr(Zr({},g),N),{},{range:x,radius:p,realScaleType:A,scale:C,cx:f,cy:c,innerRadius:h,outerRadius:p,startAngle:l,endAngle:u});return Zr(Zr({},y),{},Wj({},v,$))},{})},yK=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},vK=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=yK({x:n,y:i},{x:a,y:o});if(s<=0)return{radius:s};var l=(n-a)/s,u=Math.acos(l);return i>o&&(u=2*Math.PI-u),{radius:s,angle:pK(u),angleInRadian:u}},gK=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},bK=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},Iw=function(t,r){var n=t.x,i=t.y,a=vK({x:n,y:i},r),o=a.radius,s=a.angle,l=r.innerRadius,u=r.outerRadius;if(o<l||o>u)return!1;if(o===0)return!0;var f=gK(r),c=f.startAngle,d=f.endAngle,h=s,p;if(c<=d){for(;h>d;)h-=360;for(;h<c;)h+=360;p=h>=c&&h<=d}else{for(;h>c;)h-=360;for(;h<d;)h+=360;p=h>=d&&h<=c}return p?Zr(Zr({},r),{},{radius:o,angle:bK(h,r)}):null},qj=function(t){return!j.isValidElement(t)&&!re(t)&&typeof t!="boolean"?t.className:""};function Ll(e){"@babel/helpers - typeof";return Ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ll(e)}var xK=["offset"];function wK(e){return PK(e)||_K(e)||OK(e)||SK()}function SK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OK(e,t){if(e){if(typeof e=="string")return ky(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ky(e,t)}}function _K(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function PK(e){if(Array.isArray(e))return ky(e)}function ky(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function AK(e,t){if(e==null)return{};var r=EK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function EK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Rw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ze(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rw(Object(r),!0).forEach(function(n){jK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jK(e,t,r){return t=TK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TK(e){var t=CK(e,"string");return Ll(t)=="symbol"?t:t+""}function CK(e,t){if(Ll(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ll(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bl(){return Bl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bl.apply(this,arguments)}var $K=function(t){var r=t.value,n=t.formatter,i=ue(t.children)?r:t.children;return re(n)?n(i):i},kK=function(t,r){var n=At(r-t),i=Math.min(Math.abs(r-t),360);return n*i},NK=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,s=t.className,l=a,u=l.cx,f=l.cy,c=l.innerRadius,d=l.outerRadius,h=l.startAngle,p=l.endAngle,m=l.clockWise,y=(c+d)/2,v=kK(h,p),g=v>=0?1:-1,b,w;i==="insideStart"?(b=h+g*o,w=m):i==="insideEnd"?(b=p-g*o,w=!m):i==="end"&&(b=p+g*o,w=m),w=v<=0?w:!w;var x=je(u,f,y,b),S=je(u,f,y,b+(w?1:-1)*359),_="M".concat(x.x,",").concat(x.y,`
A`).concat(y,",").concat(y,",0,1,").concat(w?0:1,`,
`).concat(S.x,",").concat(S.y),P=ue(t.id)?yu("recharts-radial-line-"):t.id;return T.createElement("text",Bl({},n,{dominantBaseline:"central",className:oe("recharts-radial-bar-label",s)}),T.createElement("defs",null,T.createElement("path",{id:P,d:_})),T.createElement("textPath",{xlinkHref:"#".concat(P)},r))},MK=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,l=a.innerRadius,u=a.outerRadius,f=a.startAngle,c=a.endAngle,d=(f+c)/2;if(i==="outside"){var h=je(o,s,u+n,d),p=h.x,m=h.y;return{x:p,y:m,textAnchor:p>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var y=(l+u)/2,v=je(o,s,y,d),g=v.x,b=v.y;return{x:g,y:b,textAnchor:"middle",verticalAnchor:"middle"}},IK=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,l=o.y,u=o.width,f=o.height,c=f>=0?1:-1,d=c*i,h=c>0?"end":"start",p=c>0?"start":"end",m=u>=0?1:-1,y=m*i,v=m>0?"end":"start",g=m>0?"start":"end";if(a==="top"){var b={x:s+u/2,y:l-c*i,textAnchor:"middle",verticalAnchor:h};return Ze(Ze({},b),n?{height:Math.max(l-n.y,0),width:u}:{})}if(a==="bottom"){var w={x:s+u/2,y:l+f+d,textAnchor:"middle",verticalAnchor:p};return Ze(Ze({},w),n?{height:Math.max(n.y+n.height-(l+f),0),width:u}:{})}if(a==="left"){var x={x:s-y,y:l+f/2,textAnchor:v,verticalAnchor:"middle"};return Ze(Ze({},x),n?{width:Math.max(x.x-n.x,0),height:f}:{})}if(a==="right"){var S={x:s+u+y,y:l+f/2,textAnchor:g,verticalAnchor:"middle"};return Ze(Ze({},S),n?{width:Math.max(n.x+n.width-S.x,0),height:f}:{})}var _=n?{width:u,height:f}:{};return a==="insideLeft"?Ze({x:s+y,y:l+f/2,textAnchor:g,verticalAnchor:"middle"},_):a==="insideRight"?Ze({x:s+u-y,y:l+f/2,textAnchor:v,verticalAnchor:"middle"},_):a==="insideTop"?Ze({x:s+u/2,y:l+d,textAnchor:"middle",verticalAnchor:p},_):a==="insideBottom"?Ze({x:s+u/2,y:l+f-d,textAnchor:"middle",verticalAnchor:h},_):a==="insideTopLeft"?Ze({x:s+y,y:l+d,textAnchor:g,verticalAnchor:p},_):a==="insideTopRight"?Ze({x:s+u-y,y:l+d,textAnchor:v,verticalAnchor:p},_):a==="insideBottomLeft"?Ze({x:s+y,y:l+f-d,textAnchor:g,verticalAnchor:h},_):a==="insideBottomRight"?Ze({x:s+u-y,y:l+f-d,textAnchor:v,verticalAnchor:h},_):es(a)&&(V(a.x)||Li(a.x))&&(V(a.y)||Li(a.y))?Ze({x:s+Et(a.x,u),y:l+Et(a.y,f),textAnchor:"end",verticalAnchor:"end"},_):Ze({x:s+u/2,y:l+f/2,textAnchor:"middle",verticalAnchor:"middle"},_)},RK=function(t){return"cx"in t&&V(t.cx)};function lt(e){var t=e.offset,r=t===void 0?5:t,n=AK(e,xK),i=Ze({offset:r},n),a=i.viewBox,o=i.position,s=i.value,l=i.children,u=i.content,f=i.className,c=f===void 0?"":f,d=i.textBreakAll;if(!a||ue(s)&&ue(l)&&!j.isValidElement(u)&&!re(u))return null;if(j.isValidElement(u))return j.cloneElement(u,i);var h;if(re(u)){if(h=j.createElement(u,i),j.isValidElement(h))return h}else h=$K(i);var p=RK(a),m=te(i,!0);if(p&&(o==="insideStart"||o==="insideEnd"||o==="end"))return NK(i,h,m);var y=p?MK(i):IK(i);return T.createElement(da,Bl({className:oe("recharts-label",c)},m,y,{breakAll:d}),h)}lt.displayName="Label";var Kj=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,f=t.outerRadius,c=t.x,d=t.y,h=t.top,p=t.left,m=t.width,y=t.height,v=t.clockWise,g=t.labelViewBox;if(g)return g;if(V(m)&&V(y)){if(V(c)&&V(d))return{x:c,y:d,width:m,height:y};if(V(h)&&V(p))return{x:h,y:p,width:m,height:y}}return V(c)&&V(d)?{x:c,y:d,width:0,height:0}:V(r)&&V(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:f||l||s||0,clockWise:v}:t.viewBox?t.viewBox:{}},DK=function(t,r){return t?t===!0?T.createElement(lt,{key:"label-implicit",viewBox:r}):nt(t)?T.createElement(lt,{key:"label-implicit",viewBox:r,value:t}):j.isValidElement(t)?t.type===lt?j.cloneElement(t,{key:"label-implicit",viewBox:r}):T.createElement(lt,{key:"label-implicit",content:t,viewBox:r}):re(t)?T.createElement(lt,{key:"label-implicit",content:t,viewBox:r}):es(t)?T.createElement(lt,Bl({viewBox:r},t,{key:"label-implicit"})):null:null},LK=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=Kj(t),o=pr(i,lt).map(function(l,u){return j.cloneElement(l,{viewBox:r||a,key:"label-".concat(u)})});if(!n)return o;var s=DK(t.label,r||a);return[s].concat(wK(o))};lt.parseViewBox=Kj;lt.renderCallByParent=LK;function BK(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var FK=BK;const UK=Se(FK);function Fl(e){"@babel/helpers - typeof";return Fl=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},Fl(e)}var zK=["valueAccessor"],WK=["data","dataKey","clockWise","id","textBreakAll"];function HK(e){return GK(e)||VK(e)||KK(e)||qK()}function qK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
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 Ny(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ny(e,t)}}function VK(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GK(e){if(Array.isArray(e))return Ny(e)}function Ny(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Nf(){return Nf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nf.apply(this,arguments)}function Dw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Lw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dw(Object(r),!0).forEach(function(n){XK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XK(e,t,r){return t=QK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QK(e){var t=YK(e,"string");return Fl(t)=="symbol"?t:t+""}function YK(e,t){if(Fl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bw(e,t){if(e==null)return{};var r=JK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function JK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var ZK=function(t){return Array.isArray(t.value)?UK(t.value):t.value};function ui(e){var t=e.valueAccessor,r=t===void 0?ZK:t,n=Bw(e,zK),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,u=Bw(n,WK);return!i||!i.length?null:T.createElement(ge,{className:"recharts-label-list"},i.map(function(f,c){var d=ue(a)?r(f,c):xt(f&&f.payload,a),h=ue(s)?{}:{id:"".concat(s,"-").concat(c)};return T.createElement(lt,Nf({},te(f,!0),u,h,{parentViewBox:f.parentViewBox,value:d,textBreakAll:l,viewBox:lt.parseViewBox(ue(o)?f:Lw(Lw({},f),{},{clockWise:o})),key:"label-".concat(c),index:c}))}))}ui.displayName="LabelList";function eV(e,t){return e?e===!0?T.createElement(ui,{key:"labelList-implicit",data:t}):T.isValidElement(e)||re(e)?T.createElement(ui,{key:"labelList-implicit",data:t,content:e}):es(e)?T.createElement(ui,Nf({data:t},e,{key:"labelList-implicit"})):null:null}function tV(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=pr(n,ui).map(function(o,s){return j.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=eV(e.label,t);return[a].concat(HK(i))}ui.renderCallByParent=tV;function Ul(e){"@babel/helpers - typeof";return Ul=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ul(e)}function My(){return My=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},My.apply(this,arguments)}function Fw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Uw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fw(Object(r),!0).forEach(function(n){rV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rV(e,t,r){return t=nV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nV(e){var t=iV(e,"string");return Ul(t)=="symbol"?t:t+""}function iV(e,t){if(Ul(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ul(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var aV=function(t,r){var n=At(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},tc=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,s=t.isExternal,l=t.cornerRadius,u=t.cornerIsExternal,f=l*(s?1:-1)+i,c=Math.asin(l/f)/kf,d=u?a:a+o*c,h=je(r,n,f,d),p=je(r,n,i,d),m=u?a-o*c:a,y=je(r,n,f*Math.cos(c*kf),m);return{center:h,circleTangency:p,lineTangency:y,theta:c}},Vj=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,l=aV(o,s),u=o+l,f=je(r,n,a,o),c=je(r,n,a,u),d="M ".concat(f.x,",").concat(f.y,`
A `).concat(a,",").concat(a,`,0,
`).concat(+(Math.abs(l)>180),",").concat(+(o>u),`,
`).concat(c.x,",").concat(c.y,`
`);if(i>0){var h=je(r,n,i,o),p=je(r,n,i,u);d+="L ".concat(p.x,",").concat(p.y,`
A `).concat(i,",").concat(i,`,0,
`).concat(+(Math.abs(l)>180),",").concat(+(o<=u),`,
`).concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},oV=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,f=t.endAngle,c=At(f-u),d=tc({cx:r,cy:n,radius:a,angle:u,sign:c,cornerRadius:o,cornerIsExternal:l}),h=d.circleTangency,p=d.lineTangency,m=d.theta,y=tc({cx:r,cy:n,radius:a,angle:f,sign:-c,cornerRadius:o,cornerIsExternal:l}),v=y.circleTangency,g=y.lineTangency,b=y.theta,w=l?Math.abs(u-f):Math.abs(u-f)-m-b;if(w<0)return s?"M ".concat(p.x,",").concat(p.y,`
a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
`):Vj({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:u,endAngle:f});var x="M ".concat(p.x,",").concat(p.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(h.x,",").concat(h.y,`
A`).concat(a,",").concat(a,",0,").concat(+(w>180),",").concat(+(c<0),",").concat(v.x,",").concat(v.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(g.x,",").concat(g.y,`
`);if(i>0){var S=tc({cx:r,cy:n,radius:i,angle:u,sign:c,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),_=S.circleTangency,P=S.lineTangency,A=S.theta,C=tc({cx:r,cy:n,radius:i,angle:f,sign:-c,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),N=C.circleTangency,$=C.lineTangency,L=C.theta,I=l?Math.abs(u-f):Math.abs(u-f)-A-L;if(I<0&&o===0)return"".concat(x,"L").concat(r,",").concat(n,"Z");x+="L".concat($.x,",").concat($.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(N.x,",").concat(N.y,`
A`).concat(i,",").concat(i,",0,").concat(+(I>180),",").concat(+(c>0),",").concat(_.x,",").concat(_.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(P.x,",").concat(P.y,"Z")}else x+="L".concat(r,",").concat(n,"Z");return x},sV={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Gj=function(t){var r=Uw(Uw({},sV),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,u=r.cornerIsExternal,f=r.startAngle,c=r.endAngle,d=r.className;if(o<a||f===c)return null;var h=oe("recharts-sector",d),p=o-a,m=Et(s,p,0,!0),y;return m>0&&Math.abs(f-c)<360?y=oV({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(m,p/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:f,endAngle:c}):y=Vj({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:c}),T.createElement("path",My({},te(r,!0),{className:h,d:y,role:"img"}))};function zl(e){"@babel/helpers - typeof";return zl=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},zl(e)}function Iy(){return Iy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Iy.apply(this,arguments)}function zw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ww(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zw(Object(r),!0).forEach(function(n){lV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lV(e,t,r){return t=uV(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uV(e){var t=cV(e,"string");return zl(t)=="symbol"?t:t+""}function cV(e,t){if(zl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hw={curveBasisClosed:s4,curveBasisOpen:l4,curveBasis:o4,curveBumpX:KL,curveBumpY:VL,curveLinearClosed:u4,curveLinear:Ud,curveMonotoneX:c4,curveMonotoneY:f4,curveNatural:d4,curveStep:h4,curveStepAfter:m4,curveStepBefore:p4},rc=function(t){return t.x===+t.x&&t.y===+t.y},Es=function(t){return t.x},js=function(t){return t.y},fV=function(t,r){if(re(t))return t;var n="curve".concat(Bd(t));return(n==="curveMonotone"||n==="curveBump")&&r?Hw["".concat(n).concat(r==="vertical"?"Y":"X")]:Hw[n]||Ud},dV=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,s=t.layout,l=t.connectNulls,u=l===void 0?!1:l,f=fV(n,s),c=u?a.filter(function(m){return rc(m)}):a,d;if(Array.isArray(o)){var h=u?o.filter(function(m){return rc(m)}):o,p=c.map(function(m,y){return Ww(Ww({},m),{},{base:h[y]})});return s==="vertical"?d=Ku().y(js).x1(Es).x0(function(m){return m.base.x}):d=Ku().x(Es).y1(js).y0(function(m){return m.base.y}),d.defined(rc).curve(f),d(p)}return s==="vertical"&&V(o)?d=Ku().y(js).x1(Es).x0(o):V(o)?d=Ku().x(Es).y1(js).y0(o):d=qA().x(Es).y(js),d.defined(rc).curve(f),d(c)},Ry=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?dV(t):i;return j.createElement("path",Iy({},te(t,!1),rf(t),{className:oe("recharts-curve",r),d:o,ref:a}))},Xj={exports:{}},hV="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",pV=hV,mV=pV;function Qj(){}function Yj(){}Yj.resetWarningCache=Qj;var yV=function(){function e(n,i,a,o,s,l){if(l!==mV){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 r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Yj,resetWarningCache:Qj};return r.PropTypes=r,r};Xj.exports=yV();var vV=Xj.exports;const ye=Se(vV),{getOwnPropertyNames:gV,getOwnPropertySymbols:bV}=Object,{hasOwnProperty:xV}=Object.prototype;function Sp(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function nc(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:a}=i,o=a.get(r),s=a.get(n);if(o&&s)return o===n&&s===r;a.set(r,n),a.set(n,r);const l=e(r,n,i);return a.delete(r),a.delete(n),l}}function wV(e){return e!=null?e[Symbol.toStringTag]:void 0}function qw(e){return gV(e).concat(bV(e))}const SV=Object.hasOwn||((e,t)=>xV.call(e,t));function Sa(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const OV="__v",_V="__o",PV="_owner",{getOwnPropertyDescriptor:Kw,keys:Vw}=Object;function AV(e,t){return e.byteLength===t.byteLength&&Mf(new Uint8Array(e),new Uint8Array(t))}function EV(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function jV(e,t){return e.byteLength===t.byteLength&&Mf(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function TV(e,t){return Sa(e.getTime(),t.getTime())}function CV(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function $V(e,t){return e===t}function Gw(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,s,l=0;for(;(o=a.next())&&!o.done;){const u=t.entries();let f=!1,c=0;for(;(s=u.next())&&!s.done;){if(i[c]){c++;continue}const d=o.value,h=s.value;if(r.equals(d[0],h[0],l,c,e,t,r)&&r.equals(d[1],h[1],d[0],h[0],e,t,r)){f=i[c]=!0;break}c++}if(!f)return!1;l++}return!0}const kV=Sa;function NV(e,t,r){const n=Vw(e);let i=n.length;if(Vw(t).length!==i)return!1;for(;i-- >0;)if(!Jj(e,t,r,n[i]))return!1;return!0}function Ts(e,t,r){const n=qw(e);let i=n.length;if(qw(t).length!==i)return!1;let a,o,s;for(;i-- >0;)if(a=n[i],!Jj(e,t,r,a)||(o=Kw(e,a),s=Kw(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function MV(e,t){return Sa(e.valueOf(),t.valueOf())}function IV(e,t){return e.source===t.source&&e.flags===t.flags}function Xw(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.values();let o,s;for(;(o=a.next())&&!o.done;){const l=t.values();let u=!1,f=0;for(;(s=l.next())&&!s.done;){if(!i[f]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){u=i[f]=!0;break}f++}if(!u)return!1}return!0}function Mf(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function RV(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function Jj(e,t,r,n){return(n===PV||n===_V||n===OV)&&(e.$$typeof||t.$$typeof)?!0:SV(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const DV="[object ArrayBuffer]",LV="[object Arguments]",BV="[object Boolean]",FV="[object DataView]",UV="[object Date]",zV="[object Error]",WV="[object Map]",HV="[object Number]",qV="[object Object]",KV="[object RegExp]",VV="[object Set]",GV="[object String]",XV={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},QV="[object URL]",YV=Object.prototype.toString;function JV({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:l,arePrimitiveWrappersEqual:u,areRegExpsEqual:f,areSetsEqual:c,areTypedArraysEqual:d,areUrlsEqual:h,unknownTagComparators:p}){return function(y,v,g){if(y===v)return!0;if(y==null||v==null)return!1;const b=typeof y;if(b!==typeof v)return!1;if(b!=="object")return b==="number"?s(y,v,g):b==="function"?a(y,v,g):!1;const w=y.constructor;if(w!==v.constructor)return!1;if(w===Object)return l(y,v,g);if(Array.isArray(y))return t(y,v,g);if(w===Date)return n(y,v,g);if(w===RegExp)return f(y,v,g);if(w===Map)return o(y,v,g);if(w===Set)return c(y,v,g);const x=YV.call(y);if(x===UV)return n(y,v,g);if(x===KV)return f(y,v,g);if(x===WV)return o(y,v,g);if(x===VV)return c(y,v,g);if(x===qV)return typeof y.then!="function"&&typeof v.then!="function"&&l(y,v,g);if(x===QV)return h(y,v,g);if(x===zV)return i(y,v,g);if(x===LV)return l(y,v,g);if(XV[x])return d(y,v,g);if(x===DV)return e(y,v,g);if(x===FV)return r(y,v,g);if(x===BV||x===HV||x===GV)return u(y,v,g);if(p){let S=p[x];if(!S){const _=wV(y);_&&(S=p[_])}if(S)return S(y,v,g)}return!1}}function ZV({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:AV,areArraysEqual:r?Ts:EV,areDataViewsEqual:jV,areDatesEqual:TV,areErrorsEqual:CV,areFunctionsEqual:$V,areMapsEqual:r?Sp(Gw,Ts):Gw,areNumbersEqual:kV,areObjectsEqual:r?Ts:NV,arePrimitiveWrappersEqual:MV,areRegExpsEqual:IV,areSetsEqual:r?Sp(Xw,Ts):Xw,areTypedArraysEqual:r?Sp(Mf,Ts):Mf,areUrlsEqual:RV,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=nc(n.areArraysEqual),a=nc(n.areMapsEqual),o=nc(n.areObjectsEqual),s=nc(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:s})}return n}function eG(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function tG({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(s,l){const{cache:u=e?new WeakMap:void 0,meta:f}=r();return t(s,l,{cache:u,equals:n,meta:f,strict:i})};if(e)return function(s,l){return t(s,l,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(s,l){return t(s,l,a)}}const rG=xi();xi({strict:!0});xi({circular:!0});xi({circular:!0,strict:!0});xi({createInternalComparator:()=>Sa});xi({strict:!0,createInternalComparator:()=>Sa});xi({circular:!0,createInternalComparator:()=>Sa});xi({circular:!0,createInternalComparator:()=>Sa,strict:!0});function xi(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=ZV(e),o=JV(a),s=r?r(o):eG(o);return tG({circular:t,comparator:o,createState:n,equals:s,strict:i})}function nG(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Qw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):nG(i)};requestAnimationFrame(n)}function Dy(e){"@babel/helpers - typeof";return Dy=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},Dy(e)}function iG(e){return lG(e)||sG(e)||oG(e)||aG()}function aG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oG(e,t){if(e){if(typeof e=="string")return Yw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yw(e,t)}}function Yw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function sG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lG(e){if(Array.isArray(e))return e}function uG(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,s=iG(o),l=s[0],u=s.slice(1);if(typeof l=="number"){Qw(i.bind(null,u),l);return}i(l),Qw(i.bind(null,u));return}Dy(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function Wl(e){"@babel/helpers - typeof";return Wl=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},Wl(e)}function Jw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Jw(Object(r),!0).forEach(function(n){Zj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Zj(e,t,r){return t=cG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cG(e){var t=fG(e,"string");return Wl(t)==="symbol"?t:String(t)}function fG(e,t){if(Wl(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wl(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dG=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},hG=function(t){return t},pG=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Ys=function(t,r){return Object.keys(r).reduce(function(n,i){return Zw(Zw({},n),{},Zj({},i,t(i,r[i])))},{})},eS=function(t,r,n){return t.map(function(i){return"".concat(pG(i)," ").concat(r,"ms ").concat(n)}).join(",")};function mG(e,t){return gG(e)||vG(e,t)||eT(e,t)||yG()}function yG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vG(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function gG(e){if(Array.isArray(e))return e}function bG(e){return SG(e)||wG(e)||eT(e)||xG()}function xG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eT(e,t){if(e){if(typeof e=="string")return Ly(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ly(e,t)}}function wG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function SG(e){if(Array.isArray(e))return Ly(e)}function Ly(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var If=1e-4,tT=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},rT=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},tS=function(t,r){return function(n){var i=tT(t,r);return rT(i,n)}},OG=function(t,r){return function(n){var i=tT(t,r),a=[].concat(bG(i.map(function(o,s){return o*s}).slice(1)),[0]);return rT(a,n)}},rS=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,s=1;break;case"ease":i=.25,a=.1,o=.25,s=1;break;case"ease-in":i=.42,a=0,o=1,s=1;break;case"ease-out":i=.42,a=0,o=.58,s=1;break;case"ease-in-out":i=0,a=0,o=.58,s=1;break;default:{var l=r[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var u=l[1].split(")")[0].split(",").map(function(y){return parseFloat(y)}),f=mG(u,4);i=f[0],a=f[1],o=f[2],s=f[3]}}}var c=tS(i,o),d=tS(a,s),h=OG(i,o),p=function(v){return v>1?1:v<0?0:v},m=function(v){for(var g=v>1?1:v,b=g,w=0;w<8;++w){var x=c(b)-g,S=h(b);if(Math.abs(x-g)<If||S<If)return d(b);b=p(b-x/S)}return d(b)};return m.isStepper=!1,m},_G=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,s=o===void 0?17:o,l=function(f,c,d){var h=-(f-c)*n,p=d*a,m=d+(h-p)*s/1e3,y=d*s/1e3+f;return Math.abs(y-c)<If&&Math.abs(m)<If?[c,0]:[y,m]};return l.isStepper=!0,l.dt=s,l},PG=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return rS(i);case"spring":return _G();default:if(i.split("(")[0]==="cubic-bezier")return rS(i)}return typeof i=="function"?i:null};function Hl(e){"@babel/helpers - typeof";return Hl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hl(e)}function nS(e){return jG(e)||EG(e)||nT(e)||AG()}function AG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jG(e){if(Array.isArray(e))return Fy(e)}function iS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ft(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iS(Object(r),!0).forEach(function(n){By(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function By(e,t,r){return t=TG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TG(e){var t=CG(e,"string");return Hl(t)==="symbol"?t:String(t)}function CG(e,t){if(Hl(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hl(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $G(e,t){return MG(e)||NG(e,t)||nT(e,t)||kG()}function kG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
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 Fy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fy(e,t)}}function Fy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function NG(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function MG(e){if(Array.isArray(e))return e}var Rf=function(t,r,n){return t+(r-t)*n},Uy=function(t){var r=t.from,n=t.to;return r!==n},IG=function e(t,r,n){var i=Ys(function(a,o){if(Uy(o)){var s=t(o.from,o.to,o.velocity),l=$G(s,2),u=l[0],f=l[1];return ft(ft({},o),{},{from:u,velocity:f})}return o},r);return n<1?Ys(function(a,o){return Uy(o)?ft(ft({},o),{},{velocity:Rf(o.velocity,i[a].velocity,n),from:Rf(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const RG=function(e,t,r,n,i){var a=dG(e,t),o=a.reduce(function(y,v){return ft(ft({},y),{},By({},v,[e[v],t[v]]))},{}),s=a.reduce(function(y,v){return ft(ft({},y),{},By({},v,{from:e[v],velocity:0,to:t[v]}))},{}),l=-1,u,f,c=function(){return null},d=function(){return Ys(function(v,g){return g.from},s)},h=function(){return!Object.values(s).filter(Uy).length},p=function(v){u||(u=v);var g=v-u,b=g/r.dt;s=IG(r,s,b),i(ft(ft(ft({},e),t),d())),u=v,h()||(l=requestAnimationFrame(c))},m=function(v){f||(f=v);var g=(v-f)/n,b=Ys(function(x,S){return Rf.apply(void 0,nS(S).concat([r(g)]))},o);if(i(ft(ft(ft({},e),t),b)),g<1)l=requestAnimationFrame(c);else{var w=Ys(function(x,S){return Rf.apply(void 0,nS(S).concat([r(1)]))},o);i(ft(ft(ft({},e),t),w))}};return c=r.isStepper?p:m,function(){return requestAnimationFrame(c),function(){cancelAnimationFrame(l)}}};function ko(e){"@babel/helpers - typeof";return ko=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},ko(e)}var DG=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function LG(e,t){if(e==null)return{};var r=BG(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function BG(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Op(e){return WG(e)||zG(e)||UG(e)||FG()}function FG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UG(e,t){if(e){if(typeof e=="string")return zy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zy(e,t)}}function zG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WG(e){if(Array.isArray(e))return zy(e)}function zy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function aS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aS(Object(r),!0).forEach(function(n){Ds(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ds(e,t,r){return t=iT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qG(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,iT(n.key),n)}}function KG(e,t,r){return t&&qG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function iT(e){var t=VG(e,"string");return ko(t)==="symbol"?t:String(t)}function VG(e,t){if(ko(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ko(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GG(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&&Wy(e,t)}function Wy(e,t){return Wy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Wy(e,t)}function XG(e){var t=QG();return function(){var n=Df(e),i;if(t){var a=Df(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Hy(this,i)}}function Hy(e,t){if(t&&(ko(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qy(e)}function qy(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QG(){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 Df(e){return Df=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Df(e)}var On=function(e){GG(r,e);var t=XG(r);function r(n,i){var a;HG(this,r),a=t.call(this,n,i);var o=a.props,s=o.isActive,l=o.attributeName,u=o.from,f=o.to,c=o.steps,d=o.children,h=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(qy(a)),a.changeStyle=a.changeStyle.bind(qy(a)),!s||h<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:f}),Hy(a);if(c&&c.length)a.state={style:c[0].style};else if(u){if(typeof d=="function")return a.state={style:u},Hy(a);a.state={style:l?Ds({},l,u):u}}else a.state={style:{}};return a}return KG(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,s=a.canBegin,l=a.attributeName,u=a.shouldReAnimate,f=a.to,c=a.from,d=this.state.style;if(s){if(!o){var h={style:l?Ds({},l,f):f};this.state&&d&&(l&&d[l]!==f||!l&&d!==f)&&this.setState(h);return}if(!(rG(i.to,f)&&i.canBegin&&i.isActive)){var p=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var m=p||u?c:i.to;if(this.state&&d){var y={style:l?Ds({},l,m):m};(l&&d[l]!==m||!l&&d!==m)&&this.setState(y)}this.runAnimation(wr(wr({},this.props),{},{from:m,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,l=i.duration,u=i.easing,f=i.begin,c=i.onAnimationEnd,d=i.onAnimationStart,h=RG(o,s,PG(u),l,this.changeStyle),p=function(){a.stopJSAnimation=h()};this.manager.start([d,f,p,l,c])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,l=i.onAnimationStart,u=o[0],f=u.style,c=u.duration,d=c===void 0?0:c,h=function(m,y,v){if(v===0)return m;var g=y.duration,b=y.easing,w=b===void 0?"ease":b,x=y.style,S=y.properties,_=y.onAnimationEnd,P=v>0?o[v-1]:y,A=S||Object.keys(x);if(typeof w=="function"||w==="spring")return[].concat(Op(m),[a.runJSAnimation.bind(a,{from:P.style,to:x,duration:g,easing:w}),g]);var C=eS(A,g,w),N=wr(wr(wr({},P.style),x),{},{transition:C});return[].concat(Op(m),[N,g,_]).filter(hG)};return this.manager.start([l].concat(Op(o.reduce(h,[f,Math.max(d,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=uG());var a=i.begin,o=i.duration,s=i.attributeName,l=i.to,u=i.easing,f=i.onAnimationStart,c=i.onAnimationEnd,d=i.steps,h=i.children,p=this.manager;if(this.unSubscribe=p.subscribe(this.handleStyleChange),typeof u=="function"||typeof h=="function"||u==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var m=s?Ds({},s,l):l,y=eS(Object.keys(m),o,u);p.start([f,a,wr(wr({},m),{},{transition:y}),o,c])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=LG(i,DG),u=j.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!s||u===0||o<=0)return a;var c=function(h){var p=h.props,m=p.style,y=m===void 0?{}:m,v=p.className,g=j.cloneElement(h,wr(wr({},l),{},{style:wr(wr({},y),f),className:v}));return g};return u===1?c(j.Children.only(a)):T.createElement("div",null,j.Children.map(a,function(d){return c(d)}))}}]),r}(j.PureComponent);On.displayName="Animate";On.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};On.propTypes={from:ye.oneOfType([ye.object,ye.string]),to:ye.oneOfType([ye.object,ye.string]),attributeName:ye.string,duration:ye.number,begin:ye.number,easing:ye.oneOfType([ye.string,ye.func]),steps:ye.arrayOf(ye.shape({duration:ye.number.isRequired,style:ye.object.isRequired,easing:ye.oneOfType([ye.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ye.func]),properties:ye.arrayOf("string"),onAnimationEnd:ye.func})),children:ye.oneOfType([ye.node,ye.func]),isActive:ye.bool,canBegin:ye.bool,onAnimationEnd:ye.func,shouldReAnimate:ye.bool,onAnimationStart:ye.func,onAnimationReStart:ye.func};function ql(e){"@babel/helpers - typeof";return ql=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},ql(e)}function Lf(){return Lf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lf.apply(this,arguments)}function YG(e,t){return tX(e)||eX(e,t)||ZG(e,t)||JG()}function JG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZG(e,t){if(e){if(typeof e=="string")return oS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return oS(e,t)}}function oS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function eX(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function tX(e){if(Array.isArray(e))return e}function sS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function lS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sS(Object(r),!0).forEach(function(n){rX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rX(e,t,r){return t=nX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nX(e){var t=iX(e,"string");return ql(t)=="symbol"?t:t+""}function iX(e,t){if(ql(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ql(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uS=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,l=n>=0?1:-1,u=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var c=[0,0,0,0],d=0,h=4;d<h;d++)c[d]=a[d]>o?o:a[d];f="M".concat(t,",").concat(r+s*c[0]),c[0]>0&&(f+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(u,",").concat(t+l*c[0],",").concat(r)),f+="L ".concat(t+n-l*c[1],",").concat(r),c[1]>0&&(f+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(u,`,
`).concat(t+n,",").concat(r+s*c[1])),f+="L ".concat(t+n,",").concat(r+i-s*c[2]),c[2]>0&&(f+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(u,`,
`).concat(t+n-l*c[2],",").concat(r+i)),f+="L ".concat(t+l*c[3],",").concat(r+i),c[3]>0&&(f+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(u,`,
`).concat(t,",").concat(r+i-s*c[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var p=Math.min(o,a);f="M ".concat(t,",").concat(r+s*p,`
A `).concat(p,",").concat(p,",0,0,").concat(u,",").concat(t+l*p,",").concat(r,`
L `).concat(t+n-l*p,",").concat(r,`
A `).concat(p,",").concat(p,",0,0,").concat(u,",").concat(t+n,",").concat(r+s*p,`
L `).concat(t+n,",").concat(r+i-s*p,`
A `).concat(p,",").concat(p,",0,0,").concat(u,",").concat(t+n-l*p,",").concat(r+i,`
L `).concat(t+l*p,",").concat(r+i,`
A `).concat(p,",").concat(p,",0,0,").concat(u,",").concat(t,",").concat(r+i-s*p," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},aX=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(a,a+s),f=Math.max(a,a+s),c=Math.min(o,o+l),d=Math.max(o,o+l);return n>=u&&n<=f&&i>=c&&i<=d}return!1},oX={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},O0=function(t){var r=lS(lS({},oX),t),n=j.useRef(),i=j.useState(-1),a=YG(i,2),o=a[0],s=a[1];j.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&s(w)}catch{}},[]);var l=r.x,u=r.y,f=r.width,c=r.height,d=r.radius,h=r.className,p=r.animationEasing,m=r.animationDuration,y=r.animationBegin,v=r.isAnimationActive,g=r.isUpdateAnimationActive;if(l!==+l||u!==+u||f!==+f||c!==+c||f===0||c===0)return null;var b=oe("recharts-rectangle",h);return g?T.createElement(On,{canBegin:o>0,from:{width:f,height:c,x:l,y:u},to:{width:f,height:c,x:l,y:u},duration:m,animationEasing:p,isActive:g},function(w){var x=w.width,S=w.height,_=w.x,P=w.y;return T.createElement(On,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:m,isActive:v,easing:p},T.createElement("path",Lf({},te(r,!0),{className:b,d:uS(_,P,x,S,d),ref:n})))}):T.createElement("path",Lf({},te(r,!0),{className:b,d:uS(l,u,f,c,d)}))},sX=["points","className","baseLinePoints","connectNulls"];function Ua(){return Ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ua.apply(this,arguments)}function lX(e,t){if(e==null)return{};var r=uX(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function uX(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function cS(e){return hX(e)||dX(e)||fX(e)||cX()}function cX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fX(e,t){if(e){if(typeof e=="string")return Ky(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ky(e,t)}}function dX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hX(e){if(Array.isArray(e))return Ky(e)}function Ky(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var fS=function(t){return t&&t.x===+t.x&&t.y===+t.y},pX=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){fS(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),fS(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Js=function(t,r){var n=pX(t);r&&(n=[n.reduce(function(a,o){return[].concat(cS(a),cS(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,s,l){return"".concat(o).concat(l===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},mX=function(t,r,n){var i=Js(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Js(r.reverse(),n).slice(1))},yX=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=lX(t,sX);if(!r||!r.length)return null;var s=oe("recharts-polygon",n);if(i&&i.length){var l=o.stroke&&o.stroke!=="none",u=mX(r,i,a);return T.createElement("g",{className:s},T.createElement("path",Ua({},te(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),l?T.createElement("path",Ua({},te(o,!0),{fill:"none",d:Js(r,a)})):null,l?T.createElement("path",Ua({},te(o,!0),{fill:"none",d:Js(i,a)})):null)}var f=Js(r,a);return T.createElement("path",Ua({},te(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:s,d:f}))};function Vy(){return Vy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vy.apply(this,arguments)}var _0=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=oe("recharts-dot",a);return r===+r&&n===+n&&i===+i?j.createElement("circle",Vy({},te(t,!1),rf(t),{className:o,cx:r,cy:n,r:i})):null};function Kl(e){"@babel/helpers - typeof";return Kl=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},Kl(e)}var vX=["x","y","top","left","width","height","className"];function Gy(){return Gy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gy.apply(this,arguments)}function dS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gX(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dS(Object(r),!0).forEach(function(n){bX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bX(e,t,r){return t=xX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xX(e){var t=wX(e,"string");return Kl(t)=="symbol"?t:t+""}function wX(e,t){if(Kl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Kl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SX(e,t){if(e==null)return{};var r=OX(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function OX(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var _X=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},PX=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,l=t.left,u=l===void 0?0:l,f=t.width,c=f===void 0?0:f,d=t.height,h=d===void 0?0:d,p=t.className,m=SX(t,vX),y=gX({x:n,y:a,top:s,left:u,width:c,height:h},m);return!V(n)||!V(a)||!V(c)||!V(h)||!V(s)||!V(u)?null:T.createElement("path",Gy({},te(y,!0),{className:oe("recharts-cross",p),d:_X(n,a,c,h,s,u)}))},AX=Zd,EX=vj,jX=vi;function TX(e,t){return e&&e.length?AX(e,jX(t),EX):void 0}var CX=TX;const $X=Se(CX);var kX=Zd,NX=vi,MX=gj;function IX(e,t){return e&&e.length?kX(e,NX(t),MX):void 0}var RX=IX;const DX=Se(RX);var LX=["cx","cy","angle","ticks","axisLine"],BX=["ticks","tick","angle","tickFormatter","stroke"];function No(e){"@babel/helpers - typeof";return No=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},No(e)}function Zs(){return Zs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zs.apply(this,arguments)}function hS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _i(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hS(Object(r),!0).forEach(function(n){oh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pS(e,t){if(e==null)return{};var r=FX(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function FX(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function UX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,oT(n.key),n)}}function zX(e,t,r){return t&&mS(e.prototype,t),r&&mS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function WX(e,t,r){return t=Bf(t),HX(e,aT()?Reflect.construct(t,r||[],Bf(e).constructor):t.apply(e,r))}function HX(e,t){if(t&&(No(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qX(e)}function qX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(aT=function(){return!!e})()}function Bf(e){return Bf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bf(e)}function KX(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&&Xy(e,t)}function Xy(e,t){return Xy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Xy(e,t)}function oh(e,t,r){return t=oT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oT(e){var t=VX(e,"string");return No(t)=="symbol"?t:t+""}function VX(e,t){if(No(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(No(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sh=function(e){function t(){return UX(this,t),WX(this,t,arguments)}return KX(t,e),zX(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,s=a.cx,l=a.cy;return je(s,l,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,s=n.ticks,l=$X(s,function(f){return f.coordinate||0}),u=DX(s,function(f){return f.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:u.coordinate||0,outerRadius:l.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,s=n.ticks,l=n.axisLine,u=pS(n,LX),f=s.reduce(function(p,m){return[Math.min(p[0],m.coordinate),Math.max(p[1],m.coordinate)]},[1/0,-1/0]),c=je(i,a,f[0],o),d=je(i,a,f[1],o),h=_i(_i(_i({},te(u,!1)),{},{fill:"none"},te(l,!1)),{},{x1:c.x,y1:c.y,x2:d.x,y2:d.y});return T.createElement("line",Zs({className:"recharts-polar-radius-axis-line"},h))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.angle,l=i.tickFormatter,u=i.stroke,f=pS(i,BX),c=this.getTickTextAnchor(),d=te(f,!1),h=te(o,!1),p=a.map(function(m,y){var v=n.getTickValueCoord(m),g=_i(_i(_i(_i({textAnchor:c,transform:"rotate(".concat(90-s,", ").concat(v.x,", ").concat(v.y,")")},d),{},{stroke:"none",fill:u},h),{},{index:y},v),{},{payload:m});return T.createElement(ge,Zs({className:oe("recharts-polar-radius-axis-tick",qj(o)),key:"tick-".concat(m.coordinate)},fa(n.props,m,y)),t.renderTickItem(o,g,l?l(m.value,y):m.value))});return T.createElement(ge,{className:"recharts-polar-radius-axis-ticks"},p)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:T.createElement(ge,{className:oe("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),lt.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return T.isValidElement(n)?o=T.cloneElement(n,i):re(n)?o=n(i):o=T.createElement(da,Zs({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])}(j.PureComponent);oh(sh,"displayName","PolarRadiusAxis");oh(sh,"axisType","radiusAxis");oh(sh,"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 Mo(e){"@babel/helpers - typeof";return Mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mo(e)}function Ni(){return Ni=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ni.apply(this,arguments)}function yS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yS(Object(r),!0).forEach(function(n){lh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,lT(n.key),n)}}function XX(e,t,r){return t&&vS(e.prototype,t),r&&vS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function QX(e,t,r){return t=Ff(t),YX(e,sT()?Reflect.construct(t,r||[],Ff(e).constructor):t.apply(e,r))}function YX(e,t){if(t&&(Mo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return JX(e)}function JX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sT=function(){return!!e})()}function Ff(e){return Ff=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ff(e)}function ZX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qy(e,t)}function Qy(e,t){return Qy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qy(e,t)}function lh(e,t,r){return t=lT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lT(e){var t=eQ(e,"string");return Mo(t)=="symbol"?t:t+""}function eQ(e,t){if(Mo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tQ=Math.PI/180,gS=1e-5,uh=function(e){function t(){return GX(this,t),QX(this,t,arguments)}return ZX(t,e),XX(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,s=i.radius,l=i.orientation,u=i.tickSize,f=u||8,c=je(a,o,s,n.coordinate),d=je(a,o,s+(l==="inner"?-1:1)*f,n.coordinate);return{x1:c.x,y1:c.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*tQ),o;return a>gS?o=i==="outer"?"start":"end":a<-gS?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,s=n.axisLine,l=n.axisLineType,u=Pi(Pi({},te(this.props,!1)),{},{fill:"none"},te(s,!1));if(l==="circle")return T.createElement(_0,Ni({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:a,r:o}));var f=this.props.ticks,c=f.map(function(d){return je(i,a,o,d.coordinate)});return T.createElement(yX,Ni({className:"recharts-polar-angle-axis-line"},u,{points:c}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.tickLine,l=i.tickFormatter,u=i.stroke,f=te(this.props,!1),c=te(o,!1),d=Pi(Pi({},f),{},{fill:"none"},te(s,!1)),h=a.map(function(p,m){var y=n.getTickLineCoord(p),v=n.getTickTextAnchor(p),g=Pi(Pi(Pi({textAnchor:v},f),{},{stroke:"none",fill:u},c),{},{index:m,payload:p,x:y.x2,y:y.y2});return T.createElement(ge,Ni({className:oe("recharts-polar-angle-axis-tick",qj(o)),key:"tick-".concat(p.coordinate)},fa(n.props,p,m)),s&&T.createElement("line",Ni({className:"recharts-polar-angle-axis-tick-line"},d,y)),o&&t.renderTickItem(o,g,l?l(p.value,m):p.value))});return T.createElement(ge,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:T.createElement(ge,{className:oe("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return T.isValidElement(n)?o=T.cloneElement(n,i):re(n)?o=n(i):o=T.createElement(da,Ni({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(j.PureComponent);lh(uh,"displayName","PolarAngleAxis");lh(uh,"axisType","angleAxis");lh(uh,"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 rQ=mE,nQ=rQ(Object.getPrototypeOf,Object),iQ=nQ,aQ=An,oQ=iQ,sQ=En,lQ="[object Object]",uQ=Function.prototype,cQ=Object.prototype,uT=uQ.toString,fQ=cQ.hasOwnProperty,dQ=uT.call(Object);function hQ(e){if(!sQ(e)||aQ(e)!=lQ)return!1;var t=oQ(e);if(t===null)return!0;var r=fQ.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&uT.call(r)==dQ}var pQ=hQ;const mQ=Se(pQ);var yQ=An,vQ=En,gQ="[object Boolean]";function bQ(e){return e===!0||e===!1||vQ(e)&&yQ(e)==gQ}var xQ=bQ;const wQ=Se(xQ);function Vl(e){"@babel/helpers - typeof";return Vl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vl(e)}function Uf(){return Uf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Uf.apply(this,arguments)}function SQ(e,t){return AQ(e)||PQ(e,t)||_Q(e,t)||OQ()}function OQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
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 bS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bS(e,t)}}function bS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function PQ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function AQ(e){if(Array.isArray(e))return e}function xS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xS(Object(r),!0).forEach(function(n){EQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function EQ(e,t,r){return t=jQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jQ(e){var t=TQ(e,"string");return Vl(t)=="symbol"?t:t+""}function TQ(e,t){if(Vl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var SS=function(t,r,n,i,a){var o=n-i,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-o/2,",").concat(r+a),s+="L ".concat(t+n-o/2-i,",").concat(r+a),s+="L ".concat(t,",").concat(r," Z"),s},CQ={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},$Q=function(t){var r=wS(wS({},CQ),t),n=j.useRef(),i=j.useState(-1),a=SQ(i,2),o=a[0],s=a[1];j.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var b=n.current.getTotalLength();b&&s(b)}catch{}},[]);var l=r.x,u=r.y,f=r.upperWidth,c=r.lowerWidth,d=r.height,h=r.className,p=r.animationEasing,m=r.animationDuration,y=r.animationBegin,v=r.isUpdateAnimationActive;if(l!==+l||u!==+u||f!==+f||c!==+c||d!==+d||f===0&&c===0||d===0)return null;var g=oe("recharts-trapezoid",h);return v?T.createElement(On,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:u},to:{upperWidth:f,lowerWidth:c,height:d,x:l,y:u},duration:m,animationEasing:p,isActive:v},function(b){var w=b.upperWidth,x=b.lowerWidth,S=b.height,_=b.x,P=b.y;return T.createElement(On,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:m,easing:p},T.createElement("path",Uf({},te(r,!0),{className:g,d:SS(_,P,w,x,S),ref:n})))}):T.createElement("g",null,T.createElement("path",Uf({},te(r,!0),{className:g,d:SS(l,u,f,c,d)})))},kQ=["option","shapeType","propTransformer","activeClassName","isActive"];function Gl(e){"@babel/helpers - typeof";return Gl=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},Gl(e)}function NQ(e,t){if(e==null)return{};var r=MQ(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function MQ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function OS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?OS(Object(r),!0).forEach(function(n){IQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):OS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IQ(e,t,r){return t=RQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RQ(e){var t=DQ(e,"string");return Gl(t)=="symbol"?t:t+""}function DQ(e,t){if(Gl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LQ(e,t){return zf(zf({},t),e)}function BQ(e,t){return e==="symbols"}function _S(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return T.createElement(O0,r);case"trapezoid":return T.createElement($Q,r);case"sector":return T.createElement(Gj,r);case"symbols":if(BQ(t))return T.createElement(Ug,r);break;default:return null}}function FQ(e){return j.isValidElement(e)?e.props:e}function cT(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?LQ:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,l=NQ(e,kQ),u;if(j.isValidElement(t))u=j.cloneElement(t,zf(zf({},l),FQ(t)));else if(re(t))u=t(l);else if(mQ(t)&&!wQ(t)){var f=i(t,l);u=T.createElement(_S,{shapeType:r,elementProps:f})}else{var c=l;u=T.createElement(_S,{shapeType:r,elementProps:c})}return s?T.createElement(ge,{className:o},u):u}function ch(e,t){return t!=null&&"trapezoids"in e.props}function fh(e,t){return t!=null&&"sectors"in e.props}function Xl(e,t){return t!=null&&"points"in e.props}function UQ(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function zQ(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function WQ(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function HQ(e,t){var r;return ch(e,t)?r=UQ:fh(e,t)?r=zQ:Xl(e,t)&&(r=WQ),r}function qQ(e,t){var r;return ch(e,t)?r="trapezoids":fh(e,t)?r="sectors":Xl(e,t)&&(r="points"),r}function KQ(e,t){if(ch(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(fh(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return Xl(e,t)?t.payload:{}}function VQ(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=qQ(r,t),a=KQ(r,t),o=n.filter(function(l,u){var f=rh(a,l),c=r.props[i].filter(function(p){var m=HQ(r,t);return m(p,t)}),d=r.props[i].indexOf(c[c.length-1]),h=u===d;return f&&h}),s=n.indexOf(o[o.length-1]);return s}var wc;function Io(e){"@babel/helpers - typeof";return Io=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},Io(e)}function za(){return za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},za.apply(this,arguments)}function PS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?PS(Object(r),!0).forEach(function(n){cr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dT(n.key),n)}}function XQ(e,t,r){return t&&AS(e.prototype,t),r&&AS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function QQ(e,t,r){return t=Wf(t),YQ(e,fT()?Reflect.construct(t,r||[],Wf(e).constructor):t.apply(e,r))}function YQ(e,t){if(t&&(Io(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 fT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fT=function(){return!!e})()}function Wf(e){return Wf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wf(e)}function ZQ(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&&Yy(e,t)}function Yy(e,t){return Yy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Yy(e,t)}function cr(e,t,r){return t=dT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dT(e){var t=eY(e,"string");return Io(t)=="symbol"?t:t+""}function eY(e,t){if(Io(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Io(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Tn=function(e){function t(r){var n;return GQ(this,t),n=QQ(this,t,[r]),cr(n,"pieRef",null),cr(n,"sectorRefs",[]),cr(n,"id",yu("recharts-pie-")),cr(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),re(i)&&i()}),cr(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),re(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return ZQ(t,e),XQ(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,s=a.labelLine,l=a.dataKey,u=a.valueKey,f=te(this.props,!1),c=te(o,!1),d=te(s,!1),h=o&&o.offsetRadius||20,p=n.map(function(m,y){var v=(m.startAngle+m.endAngle)/2,g=je(m.cx,m.cy,m.outerRadius+h,v),b=Pe(Pe(Pe(Pe({},f),m),{},{stroke:"none"},c),{},{index:y,textAnchor:t.getTextAnchor(g.x,m.cx)},g),w=Pe(Pe(Pe(Pe({},f),m),{},{fill:"none",stroke:m.fill},d),{},{index:y,points:[je(m.cx,m.cy,m.outerRadius,v),g]}),x=l;return ue(l)&&ue(u)?x="value":ue(l)&&(x=u),T.createElement(ge,{key:"label-".concat(m.startAngle,"-").concat(m.endAngle,"-").concat(m.midAngle,"-").concat(y)},s&&t.renderLabelLineItem(s,w,"line"),t.renderLabelItem(o,b,xt(m,x)))});return T.createElement(ge,{className:"recharts-pie-labels"},p)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.activeShape,s=a.blendStroke,l=a.inactiveShape;return n.map(function(u,f){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&n.length!==1)return null;var c=i.isActiveIndex(f),d=l&&i.hasActiveIndex()?l:null,h=c?o:d,p=Pe(Pe({},u),{},{stroke:s?u.fill:u.stroke,tabIndex:-1});return T.createElement(ge,za({ref:function(y){y&&!i.sectorRefs.includes(y)&&i.sectorRefs.push(y)},tabIndex:-1,className:"recharts-pie-sector"},fa(i.props,u,f),{key:"sector-".concat(u==null?void 0:u.startAngle,"-").concat(u==null?void 0:u.endAngle,"-").concat(u.midAngle,"-").concat(f)}),T.createElement(cT,za({option:h,isActive:c,shapeType:"sector"},p)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,o=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,u=i.animationEasing,f=i.animationId,c=this.state,d=c.prevSectors,h=c.prevIsAnimationActive;return T.createElement(On,{begin:s,duration:l,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(h),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(p){var m=p.t,y=[],v=a&&a[0],g=v.startAngle;return a.forEach(function(b,w){var x=d&&d[w],S=w>0?Jt(b,"paddingAngle",0):0;if(x){var _=In(x.endAngle-x.startAngle,b.endAngle-b.startAngle),P=Pe(Pe({},b),{},{startAngle:g+S,endAngle:g+_(m)+S});y.push(P),g=P.endAngle}else{var A=b.endAngle,C=b.startAngle,N=In(0,A-C),$=N(m),L=Pe(Pe({},b),{},{startAngle:g+S,endAngle:g+$+S});y.push(L),g=L.endAngle}}),T.createElement(ge,null,n.renderSectorsStatically(y))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var s=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[s].focus(),i.setState({sectorToFocus:s});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!rh(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,s=i.className,l=i.label,u=i.cx,f=i.cy,c=i.innerRadius,d=i.outerRadius,h=i.isAnimationActive,p=this.state.isAnimationFinished;if(a||!o||!o.length||!V(u)||!V(f)||!V(c)||!V(d))return null;var m=oe("recharts-pie",s);return T.createElement(ge,{tabIndex:this.props.rootTabIndex,className:m,ref:function(v){n.pieRef=v}},this.renderSectors(),l&&this.renderLabels(o),lt.renderCallByParent(this.props,null,!1),(!h||p)&&ui.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,a){if(T.isValidElement(n))return T.cloneElement(n,i);if(re(n))return n(i);var o=oe("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return T.createElement(Ry,za({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(T.isValidElement(n))return T.cloneElement(n,i);var o=a;if(re(n)&&(o=n(i),T.isValidElement(o)))return o;var s=oe("recharts-pie-label-text",typeof n!="boolean"&&!re(n)?n.className:"");return T.createElement(da,za({},i,{alignmentBaseline:"middle",className:s}),o)}}])}(j.PureComponent);wc=Tn;cr(Tn,"displayName","Pie");cr(Tn,"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:!ss.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});cr(Tn,"parseDeltaAngle",function(e,t){var r=At(t-e),n=Math.min(Math.abs(t-e),360);return r*n});cr(Tn,"getRealPieData",function(e){var t=e.data,r=e.children,n=te(e,!1),i=pr(r,Kd);return t&&t.length?t.map(function(a,o){return Pe(Pe(Pe({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return Pe(Pe({},n),a.props)}):[]});cr(Tn,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=Hj(i,a),s=n+Et(e.cx,i,i/2),l=r+Et(e.cy,a,a/2),u=Et(e.innerRadius,o,0),f=Et(e.outerRadius,o,o*.8),c=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:s,cy:l,innerRadius:u,outerRadius:f,maxRadius:c}});cr(Tn,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?Pe(Pe({},t.type.defaultProps),t.props):t.props,i=wc.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,s=n.endAngle,l=n.paddingAngle,u=n.dataKey,f=n.nameKey,c=n.valueKey,d=n.tooltipType,h=Math.abs(n.minAngle),p=wc.parseCoordinateOfPie(n,r),m=wc.parseDeltaAngle(o,s),y=Math.abs(m),v=u;ue(u)&&ue(c)?(dn(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),v="value"):ue(u)&&(dn(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),v=c);var g=i.filter(function(P){return xt(P,v,0)!==0}).length,b=(y>=360?g:g-1)*l,w=y-g*h-b,x=i.reduce(function(P,A){var C=xt(A,v,0);return P+(V(C)?C:0)},0),S;if(x>0){var _;S=i.map(function(P,A){var C=xt(P,v,0),N=xt(P,f,A),$=(V(C)?C:0)/x,L;A?L=_.endAngle+At(m)*l*(C!==0?1:0):L=o;var I=L+At(m)*((C!==0?h:0)+$*w),R=(L+I)/2,B=(p.innerRadius+p.outerRadius)/2,z=[{name:N,value:C,payload:P,dataKey:v,type:d}],k=je(p.cx,p.cy,B,R);return _=Pe(Pe(Pe({percent:$,cornerRadius:a,name:N,tooltipPayload:z,midAngle:R,middleRadius:B,tooltipPosition:k},P),p),{},{value:xt(P,v),startAngle:L,endAngle:I,payload:P,paddingAngle:At(m)*l}),_})}return Pe(Pe({},p),{},{sectors:S,data:i})});var tY=Math.ceil,rY=Math.max;function nY(e,t,r,n){for(var i=-1,a=rY(tY((t-e)/(r||1)),0),o=Array(a);a--;)o[n?a:++i]=e,e+=r;return o}var iY=nY,aY=NE,ES=1/0,oY=17976931348623157e292;function sY(e){if(!e)return e===0?e:0;if(e=aY(e),e===ES||e===-ES){var t=e<0?-1:1;return t*oY}return e===e?e:0}var lY=sY,uY=iY,cY=qd,_p=lY;function fY(e){return function(t,r,n){return n&&typeof n!="number"&&cY(t,r,n)&&(r=n=void 0),t=_p(t),r===void 0?(r=t,t=0):r=_p(r),n=n===void 0?t<r?1:-1:_p(n),uY(t,r,n,e)}}var dY=fY,hY=dY,pY=hY(),mY=pY;const Hf=Se(mY);function Ql(e){"@babel/helpers - typeof";return Ql=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},Ql(e)}function jS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function TS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jS(Object(r),!0).forEach(function(n){hT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hT(e,t,r){return t=yY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yY(e){var t=vY(e,"string");return Ql(t)=="symbol"?t:t+""}function vY(e,t){if(Ql(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ql(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gY=["Webkit","Moz","O","ms"],bY=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=gY.reduce(function(a,o){return TS(TS({},a),{},hT({},o+n,r))},{});return i[t]=r,i};function Ro(e){"@babel/helpers - typeof";return Ro=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},Ro(e)}function qf(){return qf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qf.apply(this,arguments)}function CS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CS(Object(r),!0).forEach(function(n){Kt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $S(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,mT(n.key),n)}}function wY(e,t,r){return t&&$S(e.prototype,t),r&&$S(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function SY(e,t,r){return t=Kf(t),OY(e,pT()?Reflect.construct(t,r||[],Kf(e).constructor):t.apply(e,r))}function OY(e,t){if(t&&(Ro(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _Y(e)}function _Y(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pT=function(){return!!e})()}function Kf(e){return Kf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Kf(e)}function PY(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&&Jy(e,t)}function Jy(e,t){return Jy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jy(e,t)}function Kt(e,t,r){return t=mT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mT(e){var t=AY(e,"string");return Ro(t)=="symbol"?t:t+""}function AY(e,t){if(Ro(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ro(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var EY=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,u=Xs().domain(Hf(0,l)).range([a,a+o-s]),f=u.domain().map(function(c){return u(c)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(i),scale:u,scaleValues:f}},kS=function(t){return t.changedTouches&&!!t.changedTouches.length},Do=function(e){function t(r){var n;return xY(this,t),n=SY(this,t,[r]),Kt(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Kt(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Kt(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,s=i.startIndex;o==null||o({endIndex:a,startIndex:s})}),n.detachDragEndListener()}),Kt(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Kt(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Kt(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Kt(n,"handleSlideDragStart",function(i){var a=kS(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return PY(t,e),wY(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,s=this.props,l=s.gap,u=s.data,f=u.length-1,c=Math.min(i,a),d=Math.max(i,a),h=t.getIndexInRange(o,c),p=t.getIndexInRange(o,d);return{startIndex:h-h%l,endIndex:p===f?f:p-p%l}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,l=xt(a[n],s,n);return re(o)?o(l,n):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,s=i.endX,l=this.props,u=l.x,f=l.width,c=l.travellerWidth,d=l.startIndex,h=l.endIndex,p=l.onChange,m=n.pageX-a;m>0?m=Math.min(m,u+f-c-s,u+f-c-o):m<0&&(m=Math.max(m,u-o,u-s));var y=this.getIndex({startX:o+m,endX:s+m});(y.startIndex!==d||y.endIndex!==h)&&p&&p(y),this.setState({startX:o+m,endX:s+m,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=kS(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,s=i.endX,l=i.startX,u=this.state[o],f=this.props,c=f.x,d=f.width,h=f.travellerWidth,p=f.onChange,m=f.gap,y=f.data,v={startX:this.state.startX,endX:this.state.endX},g=n.pageX-a;g>0?g=Math.min(g,c+d-h-u):g<0&&(g=Math.max(g,c-u)),v[o]=u+g;var b=this.getIndex(v),w=b.startIndex,x=b.endIndex,S=function(){var P=y.length-1;return o==="startX"&&(s>l?w%m===0:x%m===0)||s<l&&x===P||o==="endX"&&(s>l?x%m===0:w%m===0)||s>l&&x===P};this.setState(Kt(Kt({},o,u+g),"brushMoveStartX",n.pageX),function(){p&&S()&&p(b)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,l=o.startX,u=o.endX,f=this.state[i],c=s.indexOf(f);if(c!==-1){var d=c+n;if(!(d===-1||d>=s.length)){var h=s[d];i==="startX"&&h>=u||i==="endX"&&h<=l||this.setState(Kt({},i,h),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.fill,u=n.stroke;return T.createElement("rect",{stroke:u,fill:l,x:i,y:a,width:o,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.data,u=n.children,f=n.padding,c=j.Children.only(u);return c?T.cloneElement(c,{x:i,y:a,width:o,height:s,margin:f,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,l=this.props,u=l.y,f=l.travellerWidth,c=l.height,d=l.traveller,h=l.ariaLabel,p=l.data,m=l.startIndex,y=l.endIndex,v=Math.max(n,this.props.x),g=Pp(Pp({},te(this.props,!1)),{},{x:v,y:u,width:f,height:c}),b=h||"Min value: ".concat((a=p[m])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=p[y])===null||o===void 0?void 0:o.name);return T.createElement(ge,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(x){["ArrowLeft","ArrowRight"].includes(x.key)&&(x.preventDefault(),x.stopPropagation(),s.handleTravellerMoveKeyboard(x.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,g))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,l=a.stroke,u=a.travellerWidth,f=Math.min(n,i)+u,c=Math.max(Math.abs(i-n)-u,0);return T.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:f,y:o,width:c,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,s=n.height,l=n.travellerWidth,u=n.stroke,f=this.state,c=f.startX,d=f.endX,h=5,p={pointerEvents:"none",fill:u};return T.createElement(ge,{className:"recharts-brush-texts"},T.createElement(da,qf({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,d)-h,y:o+s/2},p),this.getTextOfTick(i)),T.createElement(da,qf({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,d)+l+h,y:o+s/2},p),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,s=n.x,l=n.y,u=n.width,f=n.height,c=n.alwaysShowText,d=this.state,h=d.startX,p=d.endX,m=d.isTextActive,y=d.isSlideMoving,v=d.isTravellerMoving,g=d.isTravellerFocused;if(!i||!i.length||!V(s)||!V(l)||!V(u)||!V(f)||u<=0||f<=0)return null;var b=oe("recharts-brush",a),w=T.Children.count(o)===1,x=bY("userSelect","none");return T.createElement(ge,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:x},this.renderBackground(),w&&this.renderPanorama(),this.renderSlide(h,p),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(p,"endX"),(m||y||v||g||c)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,l=n.stroke,u=Math.floor(a+s/2)-1;return T.createElement(T.Fragment,null,T.createElement("rect",{x:i,y:a,width:o,height:s,fill:l,stroke:"none"}),T.createElement("line",{x1:i+1,y1:u,x2:i+o-1,y2:u,fill:"none",stroke:"#fff"}),T.createElement("line",{x1:i+1,y1:u+2,x2:i+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return T.isValidElement(n)?a=T.cloneElement(n,i):re(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,s=n.x,l=n.travellerWidth,u=n.updateId,f=n.startIndex,c=n.endIndex;if(a!==i.prevData||u!==i.prevUpdateId)return Pp({prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o},a&&a.length?EY({data:a,width:o,x:s,travellerWidth:l,startIndex:f,endIndex:c}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||s!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([s,s+o-l]);var d=i.scale.domain().map(function(h){return i.scale(h)});return{prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,s=a-1;s-o>1;){var l=Math.floor((o+s)/2);n[l]>i?s=l:o=l}return i>=n[s]?s:o}}])}(j.PureComponent);Kt(Do,"displayName","Brush");Kt(Do,"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 jY=Xg;function TY(e,t){var r;return jY(e,function(n,i,a){return r=t(n,i,a),!r}),!!r}var CY=TY,$Y=sE,kY=vi,NY=CY,MY=qt,IY=qd;function RY(e,t,r){var n=MY(e)?$Y:NY;return r&&IY(e,t,r)&&(t=void 0),n(e,kY(t))}var DY=RY;const LY=Se(DY);var Vr=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},NS=jE;function BY(e,t,r){t=="__proto__"&&NS?NS(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var FY=BY,UY=FY,zY=AE,WY=vi;function HY(e,t){var r={};return t=WY(t),zY(e,function(n,i,a){UY(r,i,t(n,i,a))}),r}var qY=HY;const KY=Se(qY);function VY(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}var GY=VY,XY=Xg;function QY(e,t){var r=!0;return XY(e,function(n,i,a){return r=!!t(n,i,a),r}),r}var YY=QY,JY=GY,ZY=YY,eJ=vi,tJ=qt,rJ=qd;function nJ(e,t,r){var n=tJ(e)?JY:ZY;return r&&rJ(e,t,r)&&(t=void 0),n(e,eJ(t))}var iJ=nJ;const aJ=Se(iJ);var oJ=["x","y"];function Yl(e){"@babel/helpers - typeof";return Yl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yl(e)}function Zy(){return Zy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zy.apply(this,arguments)}function MS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Cs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?MS(Object(r),!0).forEach(function(n){sJ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):MS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sJ(e,t,r){return t=lJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lJ(e){var t=uJ(e,"string");return Yl(t)=="symbol"?t:t+""}function uJ(e,t){if(Yl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cJ(e,t){if(e==null)return{};var r=fJ(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fJ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function dJ(e,t){var r=e.x,n=e.y,i=cJ(e,oJ),a="".concat(r),o=parseInt(a,10),s="".concat(n),l=parseInt(s,10),u="".concat(t.height||i.height),f=parseInt(u,10),c="".concat(t.width||i.width),d=parseInt(c,10);return Cs(Cs(Cs(Cs(Cs({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:f,width:d,name:t.name,radius:t.radius})}function IS(e){return T.createElement(cT,Zy({shapeType:"rectangle",propTransformer:dJ,activeClassName:"recharts-active-bar"},e))}var hJ=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=V(n)||kD(n);return a?t(n,i):(a||pa(),r)}},pJ=["value","background"],yT;function Lo(e){"@babel/helpers - typeof";return Lo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lo(e)}function mJ(e,t){if(e==null)return{};var r=yJ(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yJ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Vf(){return Vf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vf.apply(this,arguments)}function RS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?RS(Object(r),!0).forEach(function(n){Yn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,gT(n.key),n)}}function gJ(e,t,r){return t&&DS(e.prototype,t),r&&DS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function bJ(e,t,r){return t=Gf(t),xJ(e,vT()?Reflect.construct(t,r||[],Gf(e).constructor):t.apply(e,r))}function xJ(e,t){if(t&&(Lo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wJ(e)}function wJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vT=function(){return!!e})()}function Gf(e){return Gf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gf(e)}function SJ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ev(e,t)}function ev(e,t){return ev=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ev(e,t)}function Yn(e,t,r){return t=gT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gT(e){var t=OJ(e,"string");return Lo(t)=="symbol"?t:t+""}function OJ(e,t){if(Lo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Lo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var pn=function(e){function t(){var r;vJ(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=bJ(this,t,[].concat(i)),Yn(r,"state",{isAnimationFinished:!1}),Yn(r,"id",yu("recharts-bar-")),Yn(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Yn(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return SJ(t,e),gJ(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.dataKey,l=a.activeIndex,u=a.activeBar,f=te(this.props,!1);return n&&n.map(function(c,d){var h=d===l,p=h?u:o,m=Ve(Ve(Ve({},f),c),{},{isActive:h,option:p,index:d,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return T.createElement(ge,Vf({className:"recharts-bar-rectangle"},fa(i.props,c,d),{key:"rectangle-".concat(c==null?void 0:c.x,"-").concat(c==null?void 0:c.y,"-").concat(c==null?void 0:c.value,"-").concat(d)}),T.createElement(IS,m))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,l=i.animationBegin,u=i.animationDuration,f=i.animationEasing,c=i.animationId,d=this.state.prevData;return T.createElement(On,{begin:l,duration:u,isActive:s,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var p=h.t,m=a.map(function(y,v){var g=d&&d[v];if(g){var b=In(g.x,y.x),w=In(g.y,y.y),x=In(g.width,y.width),S=In(g.height,y.height);return Ve(Ve({},y),{},{x:b(p),y:w(p),width:x(p),height:S(p)})}if(o==="horizontal"){var _=In(0,y.height),P=_(p);return Ve(Ve({},y),{},{y:y.y+y.height-P,height:P})}var A=In(0,y.width),C=A(p);return Ve(Ve({},y),{},{width:C})});return T.createElement(ge,null,n.renderRectanglesStatically(m))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!rh(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,s=i.activeIndex,l=te(this.props.background,!1);return a.map(function(u,f){u.value;var c=u.background,d=mJ(u,pJ);if(!c)return null;var h=Ve(Ve(Ve(Ve(Ve({},d),{},{fill:"#eee"},c),l),fa(n.props,u,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return T.createElement(IS,Vf({key:"background-bar-".concat(f),option:n.props.background,isActive:f===s},h))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,s=a.xAxis,l=a.yAxis,u=a.layout,f=a.children,c=pr(f,ah);if(!c)return null;var d=u==="vertical"?o[0].height/2:o[0].width/2,h=function(y,v){var g=Array.isArray(y.value)?y.value[1]:y.value;return{x:y.x,y:y.y,value:g,errorVal:xt(y,v)}},p={clipPath:n?"url(#clipPath-".concat(i,")"):null};return T.createElement(ge,p,c.map(function(m){return T.cloneElement(m,{key:"error-bar-".concat(i,"-").concat(m.props.dataKey),data:o,xAxis:s,yAxis:l,layout:u,offset:d,dataPointFormatter:h})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,s=n.xAxis,l=n.yAxis,u=n.left,f=n.top,c=n.width,d=n.height,h=n.isAnimationActive,p=n.background,m=n.id;if(i||!a||!a.length)return null;var y=this.state.isAnimationFinished,v=oe("recharts-bar",o),g=s&&s.allowDataOverflow,b=l&&l.allowDataOverflow,w=g||b,x=ue(m)?this.id:m;return T.createElement(ge,{className:v},g||b?T.createElement("defs",null,T.createElement("clipPath",{id:"clipPath-".concat(x)},T.createElement("rect",{x:g?u:u-c/2,y:b?f:f-d/2,width:g?c:c*2,height:b?d:d*2}))):null,T.createElement(ge,{className:"recharts-bar-rectangles",clipPath:w?"url(#clipPath-".concat(x,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(w,x),(!h||y)&&ui.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])}(j.PureComponent);yT=pn;Yn(pn,"displayName","Bar");Yn(pn,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!ss.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Yn(pn,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,u=e.stackedData,f=e.dataStartIndex,c=e.displayedData,d=e.offset,h=Yq(n,r);if(!h)return null;var p=t.layout,m=r.type.defaultProps,y=m!==void 0?Ve(Ve({},m),r.props):r.props,v=y.dataKey,g=y.children,b=y.minPointSize,w=p==="horizontal"?o:a,x=u?w.scale.domain():null,S=iK({numericAxis:w}),_=pr(g,Kd),P=c.map(function(A,C){var N,$,L,I,R,B;u?N=Jq(u[f+C],x):(N=xt(A,v),Array.isArray(N)||(N=[S,N]));var z=hJ(b,yT.defaultProps.minPointSize)(N[1],C);if(p==="horizontal"){var k,F=[o.scale(N[0]),o.scale(N[1])],U=F[0],K=F[1];$=Tw({axis:a,ticks:s,bandSize:i,offset:h.offset,entry:A,index:C}),L=(k=K??U)!==null&&k!==void 0?k:void 0,I=h.size;var H=U-K;if(R=Number.isNaN(H)?0:H,B={x:$,y:o.y,width:I,height:o.height},Math.abs(z)>0&&Math.abs(R)<Math.abs(z)){var J=At(R||z)*(Math.abs(z)-Math.abs(R));L-=J,R+=J}}else{var le=[a.scale(N[0]),a.scale(N[1])],Oe=le[0],He=le[1];if($=Oe,L=Tw({axis:o,ticks:l,bandSize:i,offset:h.offset,entry:A,index:C}),I=He-Oe,R=h.size,B={x:a.x,y:L,width:a.width,height:R},Math.abs(z)>0&&Math.abs(I)<Math.abs(z)){var rr=At(I||z)*(Math.abs(z)-Math.abs(I));I+=rr}}return Ve(Ve(Ve({},A),{},{x:$,y:L,width:I,height:R,value:u?N:N[1],payload:A,background:B},_&&_[C]&&_[C].props),{},{tooltipPayload:[zj(r,A)],tooltipPosition:{x:$+I/2,y:L+R/2}})});return Ve({data:P,layout:p},d)});function Jl(e){"@babel/helpers - typeof";return Jl=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},Jl(e)}function _J(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bT(n.key),n)}}function PJ(e,t,r){return t&&LS(e.prototype,t),r&&LS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function BS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Er(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BS(Object(r),!0).forEach(function(n){dh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dh(e,t,r){return t=bT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bT(e){var t=AJ(e,"string");return Jl(t)=="symbol"?t:t+""}function AJ(e,t){if(Jl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var EJ=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.layout,u=t.children,f=Object.keys(r),c={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},d=!!Gt(u,pn);return f.reduce(function(h,p){var m=r[p],y=m.orientation,v=m.domain,g=m.padding,b=g===void 0?{}:g,w=m.mirror,x=m.reversed,S="".concat(y).concat(w?"Mirror":""),_,P,A,C,N;if(m.type==="number"&&(m.padding==="gap"||m.padding==="no-gap")){var $=v[1]-v[0],L=1/0,I=m.categoricalDomain.sort(ID);if(I.forEach(function(le,Oe){Oe>0&&(L=Math.min((le||0)-(I[Oe-1]||0),L))}),Number.isFinite(L)){var R=L/$,B=m.layout==="vertical"?n.height:n.width;if(m.padding==="gap"&&(_=R*B/2),m.padding==="no-gap"){var z=Et(t.barCategoryGap,R*B),k=R*B/2;_=k-z-(k-z)/B*z}}}i==="xAxis"?P=[n.left+(b.left||0)+(_||0),n.left+n.width-(b.right||0)-(_||0)]:i==="yAxis"?P=l==="horizontal"?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(_||0),n.top+n.height-(b.bottom||0)-(_||0)]:P=m.range,x&&(P=[P[1],P[0]]);var F=Lj(m,a,d),U=F.scale,K=F.realScaleType;U.domain(v).range(P),Bj(U);var H=Fj(U,Er(Er({},m),{},{realScaleType:K}));i==="xAxis"?(N=y==="top"&&!w||y==="bottom"&&w,A=n.left,C=c[S]-N*m.height):i==="yAxis"&&(N=y==="left"&&!w||y==="right"&&w,A=c[S]-N*m.width,C=n.top);var J=Er(Er(Er({},m),H),{},{realScaleType:K,x:A,y:C,scale:U,width:i==="xAxis"?n.width:m.width,height:i==="yAxis"?n.height:m.height});return J.bandSize=$f(J,H),!m.hide&&i==="xAxis"?c[S]+=(N?-1:1)*J.height:m.hide||(c[S]+=(N?-1:1)*J.width),Er(Er({},h),{},dh({},p,J))},{})},xT=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},jJ=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return xT({x:r,y:n},{x:i,y:a})},wT=function(){function e(t){_J(this,e),this.scale=t}return PJ(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])}();dh(wT,"EPS",1e-4);var P0=function(t){var r=Object.keys(t).reduce(function(n,i){return Er(Er({},n),{},dh({},i,wT.create(t[i])))},{});return Er(Er({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return KY(i,function(l,u){return r[u].apply(l,{bandAware:o,position:s})})},isInRange:function(i){return aJ(i,function(a,o){return r[o].isInRange(a)})}})};function TJ(e){return(e%180+180)%180}var CJ=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=TJ(i),o=a*Math.PI/180,s=Math.atan(n/r),l=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(l)},$J=LR(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("")}),ST=j.createContext(void 0),OT=j.createContext(void 0),_T=j.createContext(void 0),kJ=j.createContext({}),PT=j.createContext(void 0),AT=j.createContext(0),ET=j.createContext(0),FS=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,l=t.width,u=t.height,f=$J(a);return T.createElement(ST.Provider,{value:n},T.createElement(OT.Provider,{value:i},T.createElement(kJ.Provider,{value:a},T.createElement(_T.Provider,{value:f},T.createElement(PT.Provider,{value:o},T.createElement(AT.Provider,{value:u},T.createElement(ET.Provider,{value:l},s)))))))},NJ=function(){return j.useContext(PT)},jT=function(t){var r=j.useContext(ST);r==null&&pa();var n=r[t];return n==null&&pa(),n},TT=function(t){var r=j.useContext(OT);r==null&&pa();var n=r[t];return n==null&&pa(),n},MJ=function(){var t=j.useContext(_T);return t},CT=function(){return j.useContext(ET)},$T=function(){return j.useContext(AT)};function Bo(e){"@babel/helpers - typeof";return Bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bo(e)}function IJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RJ(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,NT(n.key),n)}}function DJ(e,t,r){return t&&RJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function LJ(e,t,r){return t=Xf(t),BJ(e,kT()?Reflect.construct(t,r||[],Xf(e).constructor):t.apply(e,r))}function BJ(e,t){if(t&&(Bo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return FJ(e)}function FJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kT=function(){return!!e})()}function Xf(e){return Xf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xf(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&&tv(e,t)}function tv(e,t){return tv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},tv(e,t)}function US(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?US(Object(r),!0).forEach(function(n){A0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):US(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function A0(e,t,r){return t=NT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NT(e){var t=zJ(e,"string");return Bo(t)=="symbol"?t:t+""}function zJ(e,t){if(Bo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function WJ(e,t){return VJ(e)||KJ(e,t)||qJ(e,t)||HJ()}function HJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qJ(e,t){if(e){if(typeof e=="string")return WS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return WS(e,t)}}function WS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function KJ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function VJ(e){if(Array.isArray(e))return e}function rv(){return rv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rv.apply(this,arguments)}var GJ=function(t,r){var n;return T.isValidElement(t)?n=T.cloneElement(t,r):re(t)?n=t(r):n=T.createElement("line",rv({},r,{className:"recharts-reference-line-line"})),n},XJ=function(t,r,n,i,a,o,s,l,u){var f=a.x,c=a.y,d=a.width,h=a.height;if(n){var p=u.y,m=t.y.apply(p,{position:o});if(Vr(u,"discard")&&!t.y.isInRange(m))return null;var y=[{x:f+d,y:m},{x:f,y:m}];return l==="left"?y.reverse():y}if(r){var v=u.x,g=t.x.apply(v,{position:o});if(Vr(u,"discard")&&!t.x.isInRange(g))return null;var b=[{x:g,y:c+h},{x:g,y:c}];return s==="top"?b.reverse():b}if(i){var w=u.segment,x=w.map(function(S){return t.apply(S,{position:o})});return Vr(u,"discard")&&LY(x,function(S){return!t.isInRange(S)})?null:x}return null};function QJ(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,s=e.className,l=e.alwaysShow,u=NJ(),f=jT(i),c=TT(a),d=MJ();if(!u||!d)return null;dn(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=P0({x:f.scale,y:c.scale}),p=nt(t),m=nt(r),y=n&&n.length===2,v=XJ(h,p,m,y,d,e.position,f.orientation,c.orientation,e);if(!v)return null;var g=WJ(v,2),b=g[0],w=b.x,x=b.y,S=g[1],_=S.x,P=S.y,A=Vr(e,"hidden")?"url(#".concat(u,")"):void 0,C=zS(zS({clipPath:A},te(e,!0)),{},{x1:w,y1:x,x2:_,y2:P});return T.createElement(ge,{className:oe("recharts-reference-line",s)},GJ(o,C),lt.renderCallByParent(e,jJ({x1:w,y1:x,x2:_,y2:P})))}var E0=function(e){function t(){return IJ(this,t),LJ(this,t,arguments)}return UJ(t,e),DJ(t,[{key:"render",value:function(){return T.createElement(QJ,this.props)}}])}(T.Component);A0(E0,"displayName","ReferenceLine");A0(E0,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function nv(){return nv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nv.apply(this,arguments)}function Fo(e){"@babel/helpers - typeof";return Fo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fo(e)}function HS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?HS(Object(r),!0).forEach(function(n){hh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):HS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JJ(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,IT(n.key),n)}}function ZJ(e,t,r){return t&&JJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function eZ(e,t,r){return t=Qf(t),tZ(e,MT()?Reflect.construct(t,r||[],Qf(e).constructor):t.apply(e,r))}function tZ(e,t){if(t&&(Fo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rZ(e)}function rZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(MT=function(){return!!e})()}function Qf(e){return Qf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qf(e)}function nZ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&iv(e,t)}function iv(e,t){return iv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},iv(e,t)}function hh(e,t,r){return t=IT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IT(e){var t=iZ(e,"string");return Fo(t)=="symbol"?t:t+""}function iZ(e,t){if(Fo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var aZ=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=P0({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return Vr(t,"discard")&&!o.isInRange(s)?null:s},ph=function(e){function t(){return YJ(this,t),eZ(this,t,arguments)}return nZ(t,e),ZJ(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,s=n.alwaysShow,l=n.clipPathId,u=nt(i),f=nt(a);if(dn(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!f)return null;var c=aZ(this.props);if(!c)return null;var d=c.x,h=c.y,p=this.props,m=p.shape,y=p.className,v=Vr(this.props,"hidden")?"url(#".concat(l,")"):void 0,g=qS(qS({clipPath:v},te(this.props,!0)),{},{cx:d,cy:h});return T.createElement(ge,{className:oe("recharts-reference-dot",y)},t.renderDot(m,g),lt.renderCallByParent(this.props,{x:d-o,y:h-o,width:2*o,height:2*o}))}}])}(T.Component);hh(ph,"displayName","ReferenceDot");hh(ph,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});hh(ph,"renderDot",function(e,t){var r;return T.isValidElement(e)?r=T.cloneElement(e,t):re(e)?r=e(t):r=T.createElement(_0,nv({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function av(){return av=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},av.apply(this,arguments)}function Uo(e){"@babel/helpers - typeof";return Uo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uo(e)}function KS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function VS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?KS(Object(r),!0).forEach(function(n){mh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sZ(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,DT(n.key),n)}}function lZ(e,t,r){return t&&sZ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uZ(e,t,r){return t=Yf(t),cZ(e,RT()?Reflect.construct(t,r||[],Yf(e).constructor):t.apply(e,r))}function cZ(e,t){if(t&&(Uo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fZ(e)}function fZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(RT=function(){return!!e})()}function Yf(e){return Yf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yf(e)}function dZ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ov(e,t)}function ov(e,t){return ov=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ov(e,t)}function mh(e,t,r){return t=DT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DT(e){var t=hZ(e,"string");return Uo(t)=="symbol"?t:t+""}function hZ(e,t){if(Uo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Uo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var pZ=function(t,r,n,i,a){var o=a.x1,s=a.x2,l=a.y1,u=a.y2,f=a.xAxis,c=a.yAxis;if(!f||!c)return null;var d=P0({x:f.scale,y:c.scale}),h={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(l,{position:"start"}):d.y.rangeMin},p={x:r?d.x.apply(s,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(u,{position:"end"}):d.y.rangeMax};return Vr(a,"discard")&&(!d.isInRange(h)||!d.isInRange(p))?null:xT(h,p)},yh=function(e){function t(){return oZ(this,t),uZ(this,t,arguments)}return dZ(t,e),lZ(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,s=n.y2,l=n.className,u=n.alwaysShow,f=n.clipPathId;dn(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var c=nt(i),d=nt(a),h=nt(o),p=nt(s),m=this.props.shape;if(!c&&!d&&!h&&!p&&!m)return null;var y=pZ(c,d,h,p,this.props);if(!y&&!m)return null;var v=Vr(this.props,"hidden")?"url(#".concat(f,")"):void 0;return T.createElement(ge,{className:oe("recharts-reference-area",l)},t.renderRect(m,VS(VS({clipPath:v},te(this.props,!0)),y)),lt.renderCallByParent(this.props,y))}}])}(T.Component);mh(yh,"displayName","ReferenceArea");mh(yh,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});mh(yh,"renderRect",function(e,t){var r;return T.isValidElement(e)?r=T.cloneElement(e,t):re(e)?r=e(t):r=T.createElement(O0,av({},t,{className:"recharts-reference-area-rect"})),r});function LT(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function mZ(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return CJ(n,r)}function yZ(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a}}function Jf(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function vZ(e,t){return LT(e,t+1)}function gZ(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,l=0,u=1,f=o,c=function(){var p=n==null?void 0:n[l];if(p===void 0)return{v:LT(n,u)};var m=l,y,v=function(){return y===void 0&&(y=r(p,m)),y},g=p.coordinate,b=l===0||Jf(e,g,v,f,s);b||(l=0,f=o,u+=1),b&&(f=g+e*(v()/2+i),l+=u)},d;u<=a.length;)if(d=c(),d)return d.v;return[]}function Zl(e){"@babel/helpers - typeof";return Zl=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},Zl(e)}function GS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GS(Object(r),!0).forEach(function(n){bZ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bZ(e,t,r){return t=xZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xZ(e){var t=wZ(e,"string");return Zl(t)=="symbol"?t:t+""}function wZ(e,t){if(Zl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SZ(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=t.start,l=t.end,u=function(d){var h=a[d],p,m=function(){return p===void 0&&(p=r(h,d)),p};if(d===o-1){var y=e*(h.coordinate+e*m()/2-l);a[d]=h=gt(gt({},h),{},{tickCoord:y>0?h.coordinate-y*e:h.coordinate})}else a[d]=h=gt(gt({},h),{},{tickCoord:h.coordinate});var v=Jf(e,h.tickCoord,m,s,l);v&&(l=h.tickCoord-e*(m()/2+i),a[d]=gt(gt({},h),{},{isShow:!0}))},f=o-1;f>=0;f--)u(f);return a}function OZ(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,l=t.start,u=t.end;if(a){var f=n[s-1],c=r(f,s-1),d=e*(f.coordinate+e*c/2-u);o[s-1]=f=gt(gt({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate});var h=Jf(e,f.tickCoord,function(){return c},l,u);h&&(u=f.tickCoord-e*(c/2+i),o[s-1]=gt(gt({},f),{},{isShow:!0}))}for(var p=a?s-1:s,m=function(g){var b=o[g],w,x=function(){return w===void 0&&(w=r(b,g)),w};if(g===0){var S=e*(b.coordinate-e*x()/2-l);o[g]=b=gt(gt({},b),{},{tickCoord:S<0?b.coordinate-S*e:b.coordinate})}else o[g]=b=gt(gt({},b),{},{tickCoord:b.coordinate});var _=Jf(e,b.tickCoord,x,l,u);_&&(l=b.tickCoord+e*(x()/2+i),o[g]=gt(gt({},b),{},{isShow:!0}))},y=0;y<p;y++)m(y);return o}function _Z(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,l=e.interval,u=e.tickFormatter,f=e.unit,c=e.angle;if(!i||!i.length||!n)return[];if(V(l)||ss.isSsr)return vZ(i,typeof l=="number"&&V(l)?l:0);var d=[],h=s==="top"||s==="bottom"?"width":"height",p=f&&h==="width"?Gs(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},m=function(b,w){var x=re(u)?u(b.value,w):b.value;return h==="width"?mZ(Gs(x,{fontSize:t,letterSpacing:r}),p,c):Gs(x,{fontSize:t,letterSpacing:r})[h]},y=i.length>=2?At(i[1].coordinate-i[0].coordinate):1,v=yZ(a,y,h);return l==="equidistantPreserveStart"?gZ(y,v,m,i,o):(l==="preserveStart"||l==="preserveStartEnd"?d=OZ(y,v,m,i,o,l==="preserveStartEnd"):d=SZ(y,v,m,i,o),d.filter(function(g){return g.isShow}))}var PZ=["viewBox"],AZ=["viewBox"],EZ=["ticks"];function zo(e){"@babel/helpers - typeof";return zo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zo(e)}function Wa(){return Wa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wa.apply(this,arguments)}function XS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?XS(Object(r),!0).forEach(function(n){j0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ap(e,t){if(e==null)return{};var r=jZ(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jZ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function TZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,FT(n.key),n)}}function CZ(e,t,r){return t&&QS(e.prototype,t),r&&QS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function $Z(e,t,r){return t=Zf(t),kZ(e,BT()?Reflect.construct(t,r||[],Zf(e).constructor):t.apply(e,r))}function kZ(e,t){if(t&&(zo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return NZ(e)}function NZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(BT=function(){return!!e})()}function Zf(e){return Zf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zf(e)}function MZ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sv(e,t)}function sv(e,t){return sv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},sv(e,t)}function j0(e,t,r){return t=FT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FT(e){var t=IZ(e,"string");return zo(t)=="symbol"?t:t+""}function IZ(e,t){if(zo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var vh=function(e){function t(r){var n;return TZ(this,t),n=$Z(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return MZ(t,e),CZ(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=Ap(n,PZ),s=this.props,l=s.viewBox,u=Ap(s,AZ);return!Ya(a,l)||!Ya(o,u)||!Ya(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,u=i.orientation,f=i.tickSize,c=i.mirror,d=i.tickMargin,h,p,m,y,v,g,b=c?-1:1,w=n.tickSize||f,x=V(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":h=p=n.coordinate,y=o+ +!c*l,m=y-b*w,g=m-b*d,v=x;break;case"left":m=y=n.coordinate,p=a+ +!c*s,h=p-b*w,v=h-b*d,g=x;break;case"right":m=y=n.coordinate,p=a+ +c*s,h=p+b*w,v=h+b*d,g=x;break;default:h=p=n.coordinate,y=o+ +c*l,m=y+b*w,g=m+b*d,v=x;break}return{line:{x1:h,y1:m,x2:p,y2:y},tick:{x:v,y:g}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.orientation,u=n.mirror,f=n.axisLine,c=Je(Je(Je({},te(this.props,!1)),te(f,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var d=+(l==="top"&&!u||l==="bottom"&&u);c=Je(Je({},c),{},{x1:i,y1:a+d*s,x2:i+o,y2:a+d*s})}else{var h=+(l==="left"&&!u||l==="right"&&u);c=Je(Je({},c),{},{x1:i+h*o,y1:a,x2:i+h*o,y2:a+s})}return T.createElement("line",Wa({},c,{className:oe("recharts-cartesian-axis-line",Jt(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,s=this.props,l=s.tickLine,u=s.stroke,f=s.tick,c=s.tickFormatter,d=s.unit,h=_Z(Je(Je({},this.props),{},{ticks:n}),i,a),p=this.getTickTextAnchor(),m=this.getTickVerticalAnchor(),y=te(this.props,!1),v=te(f,!1),g=Je(Je({},y),{},{fill:"none"},te(l,!1)),b=h.map(function(w,x){var S=o.getTickLineCoord(w),_=S.line,P=S.tick,A=Je(Je(Je(Je({textAnchor:p,verticalAnchor:m},y),{},{stroke:"none",fill:u},v),P),{},{index:x,payload:w,visibleTicksCount:h.length,tickFormatter:c});return T.createElement(ge,Wa({className:"recharts-cartesian-axis-tick",key:"tick-".concat(w.value,"-").concat(w.coordinate,"-").concat(w.tickCoord)},fa(o.props,w,x)),l&&T.createElement("line",Wa({},g,_,{className:oe("recharts-cartesian-axis-tick-line",Jt(l,"className"))})),f&&t.renderTickItem(f,A,"".concat(re(c)?c(w.value,x):w.value).concat(d||"")))});return T.createElement("g",{className:"recharts-cartesian-axis-ticks"},b)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,s=i.height,l=i.ticksGenerator,u=i.className,f=i.hide;if(f)return null;var c=this.props,d=c.ticks,h=Ap(c,EZ),p=d;return re(l)&&(p=d&&d.length>0?l(this.props):l(h)),o<=0||s<=0||!p||!p.length?null:T.createElement(ge,{className:oe("recharts-cartesian-axis",u),ref:function(y){n.layerReference=y}},a&&this.renderAxisLine(),this.renderTicks(p,this.state.fontSize,this.state.letterSpacing),lt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=oe(i.className,"recharts-cartesian-axis-tick-value");return T.isValidElement(n)?o=T.cloneElement(n,Je(Je({},i),{},{className:s})):re(n)?o=n(Je(Je({},i),{},{className:s})):o=T.createElement(da,Wa({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(j.Component);j0(vh,"displayName","CartesianAxis");j0(vh,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});function Wo(e){"@babel/helpers - typeof";return Wo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wo(e)}function RZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DZ(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,WT(n.key),n)}}function LZ(e,t,r){return t&&DZ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function BZ(e,t,r){return t=ed(t),FZ(e,UT()?Reflect.construct(t,r||[],ed(e).constructor):t.apply(e,r))}function FZ(e,t){if(t&&(Wo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return UZ(e)}function UZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(UT=function(){return!!e})()}function ed(e){return ed=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ed(e)}function zZ(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(n,i){return n.__proto__=i,n},lv(e,t)}function zT(e,t,r){return t=WT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WT(e){var t=WZ(e,"string");return Wo(t)=="symbol"?t:t+""}function WZ(e,t){if(Wo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function uv(){return uv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},uv.apply(this,arguments)}function HZ(e){var t=e.xAxisId,r=CT(),n=$T(),i=jT(t);return i==null?null:j.createElement(vh,uv({},i,{className:oe("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Ui(o,!0)}}))}var gh=function(e){function t(){return RZ(this,t),BZ(this,t,arguments)}return zZ(t,e),LZ(t,[{key:"render",value:function(){return j.createElement(HZ,this.props)}}])}(j.Component);zT(gh,"displayName","XAxis");zT(gh,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Ho(e){"@babel/helpers - typeof";return Ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ho(e)}function qZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KZ(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,KT(n.key),n)}}function VZ(e,t,r){return t&&KZ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function GZ(e,t,r){return t=td(t),XZ(e,HT()?Reflect.construct(t,r||[],td(e).constructor):t.apply(e,r))}function XZ(e,t){if(t&&(Ho(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return QZ(e)}function QZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(HT=function(){return!!e})()}function td(e){return td=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},td(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&&cv(e,t)}function cv(e,t){return cv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},cv(e,t)}function qT(e,t,r){return t=KT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KT(e){var t=JZ(e,"string");return Ho(t)=="symbol"?t:t+""}function JZ(e,t){if(Ho(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ho(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function fv(){return fv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fv.apply(this,arguments)}var ZZ=function(t){var r=t.yAxisId,n=CT(),i=$T(),a=TT(r);return a==null?null:j.createElement(vh,fv({},a,{className:oe("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return Ui(s,!0)}}))},bh=function(e){function t(){return qZ(this,t),GZ(this,t,arguments)}return YZ(t,e),VZ(t,[{key:"render",value:function(){return j.createElement(ZZ,this.props)}}])}(j.Component);qT(bh,"displayName","YAxis");qT(bh,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function YS(e){return nee(e)||ree(e)||tee(e)||eee()}function eee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tee(e,t){if(e){if(typeof e=="string")return dv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dv(e,t)}}function ree(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nee(e){if(Array.isArray(e))return dv(e)}function dv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var hv=function(t,r,n,i,a){var o=pr(t,E0),s=pr(t,ph),l=[].concat(YS(o),YS(s)),u=pr(t,yh),f="".concat(i,"Id"),c=i[0],d=r;if(l.length&&(d=l.reduce(function(m,y){if(y.props[f]===n&&Vr(y.props,"extendDomain")&&V(y.props[c])){var v=y.props[c];return[Math.min(m[0],v),Math.max(m[1],v)]}return m},d)),u.length){var h="".concat(c,"1"),p="".concat(c,"2");d=u.reduce(function(m,y){if(y.props[f]===n&&Vr(y.props,"extendDomain")&&V(y.props[h])&&V(y.props[p])){var v=y.props[h],g=y.props[p];return[Math.min(m[0],v,g),Math.max(m[1],v,g)]}return m},d)}return a&&a.length&&(d=a.reduce(function(m,y){return V(y)?[Math.min(m[0],y),Math.max(m[1],y)]:m},d)),d},VT={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(l,u,f){this.fn=l,this.context=u,this.once=f||!1}function a(l,u,f,c,d){if(typeof f!="function")throw new TypeError("The listener must be a function");var h=new i(f,c||l,d),p=r?r+u:u;return l._events[p]?l._events[p].fn?l._events[p]=[l._events[p],h]:l._events[p].push(h):(l._events[p]=h,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new n:delete l._events[u]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],f,c;if(this._eventsCount===0)return u;for(c in f=this._events)t.call(f,c)&&u.push(r?c.slice(1):c);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},s.prototype.listeners=function(u){var f=r?r+u:u,c=this._events[f];if(!c)return[];if(c.fn)return[c.fn];for(var d=0,h=c.length,p=new Array(h);d<h;d++)p[d]=c[d].fn;return p},s.prototype.listenerCount=function(u){var f=r?r+u:u,c=this._events[f];return c?c.fn?1:c.length:0},s.prototype.emit=function(u,f,c,d,h,p){var m=r?r+u:u;if(!this._events[m])return!1;var y=this._events[m],v=arguments.length,g,b;if(y.fn){switch(y.once&&this.removeListener(u,y.fn,void 0,!0),v){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,f),!0;case 3:return y.fn.call(y.context,f,c),!0;case 4:return y.fn.call(y.context,f,c,d),!0;case 5:return y.fn.call(y.context,f,c,d,h),!0;case 6:return y.fn.call(y.context,f,c,d,h,p),!0}for(b=1,g=new Array(v-1);b<v;b++)g[b-1]=arguments[b];y.fn.apply(y.context,g)}else{var w=y.length,x;for(b=0;b<w;b++)switch(y[b].once&&this.removeListener(u,y[b].fn,void 0,!0),v){case 1:y[b].fn.call(y[b].context);break;case 2:y[b].fn.call(y[b].context,f);break;case 3:y[b].fn.call(y[b].context,f,c);break;case 4:y[b].fn.call(y[b].context,f,c,d);break;default:if(!g)for(x=1,g=new Array(v-1);x<v;x++)g[x-1]=arguments[x];y[b].fn.apply(y[b].context,g)}}return!0},s.prototype.on=function(u,f,c){return a(this,u,f,c,!1)},s.prototype.once=function(u,f,c){return a(this,u,f,c,!0)},s.prototype.removeListener=function(u,f,c,d){var h=r?r+u:u;if(!this._events[h])return this;if(!f)return o(this,h),this;var p=this._events[h];if(p.fn)p.fn===f&&(!d||p.once)&&(!c||p.context===c)&&o(this,h);else{for(var m=0,y=[],v=p.length;m<v;m++)(p[m].fn!==f||d&&!p[m].once||c&&p[m].context!==c)&&y.push(p[m]);y.length?this._events[h]=y.length===1?y[0]:y:o(this,h)}return this},s.prototype.removeAllListeners=function(u){var f;return u?(f=r?r+u:u,this._events[f]&&o(this,f)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(VT);var iee=VT.exports;const aee=Se(iee);var Ep=new aee,jp="recharts.syncMouseEvents";function eu(e){"@babel/helpers - typeof";return eu=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},eu(e)}function oee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function see(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,GT(n.key),n)}}function lee(e,t,r){return t&&see(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tp(e,t,r){return t=GT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GT(e){var t=uee(e,"string");return eu(t)=="symbol"?t:t+""}function uee(e,t){if(eu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(eu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var cee=function(){function e(){oee(this,e),Tp(this,"activeIndex",0),Tp(this,"coordinateList",[]),Tp(this,"layout","horizontal")}return lee(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,s=o===void 0?null:o,l=r.layout,u=l===void 0?null:l,f=r.offset,c=f===void 0?null:f,d=r.mouseHandlerCallback,h=d===void 0?null:d;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=u??this.layout,this.offset=c??this.offset,this.mouseHandlerCallback=h??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,s=i.height,l=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,c=a+l+u,d=o+this.offset.top+s/2+f;this.mouseHandlerCallback({pageX:c,pageY:d})}}}])}();function fee(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&V(n)&&V(i))return!0}return!1}function dee(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function XT(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=je(t,r,n,i),s=je(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function hee(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,u=t.innerRadius,f=t.outerRadius,c=t.angle,d=je(s,l,u,c),h=je(s,l,f,c);n=d.x,i=d.y,a=h.x,o=h.y}else return XT(t);return[{x:n,y:i},{x:a,y:o}]}function tu(e){"@babel/helpers - typeof";return tu=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},tu(e)}function JS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ic(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?JS(Object(r),!0).forEach(function(n){pee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pee(e,t,r){return t=mee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mee(e){var t=yee(e,"string");return tu(t)=="symbol"?t:t+""}function yee(e,t){if(tu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(tu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vee(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,s=e.activePayload,l=e.offset,u=e.activeTooltipIndex,f=e.tooltipAxisBandSize,c=e.layout,d=e.chartName,h=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!h||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var p,m=Ry;if(d==="ScatterChart")p=o,m=PX;else if(d==="BarChart")p=dee(c,o,l,f),m=O0;else if(c==="radial"){var y=XT(o),v=y.cx,g=y.cy,b=y.radius,w=y.startAngle,x=y.endAngle;p={cx:v,cy:g,startAngle:w,endAngle:x,innerRadius:b,outerRadius:b},m=Gj}else p={points:hee(c,o,l)},m=Ry;var S=ic(ic(ic(ic({stroke:"#ccc",pointerEvents:"none"},l),p),te(h,!1)),{},{payload:s,payloadIndex:u,className:oe("recharts-tooltip-cursor",h.className)});return j.isValidElement(h)?j.cloneElement(h,S):j.createElement(m,S)}var gee=["item"],bee=["children","className","width","height","style","compact","title","desc"];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 Ha(){return Ha=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ha.apply(this,arguments)}function ZS(e,t){return See(e)||wee(e,t)||YT(e,t)||xee()}function xee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wee(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function See(e){if(Array.isArray(e))return e}function eO(e,t){if(e==null)return{};var r=Oee(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Oee(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function _ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,JT(n.key),n)}}function Aee(e,t,r){return t&&Pee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Eee(e,t,r){return t=rd(t),jee(e,QT()?Reflect.construct(t,r||[],rd(e).constructor):t.apply(e,r))}function jee(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 Tee(e)}function Tee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QT(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(QT=function(){return!!e})()}function rd(e){return rd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},rd(e)}function Cee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pv(e,t)}function pv(e,t){return pv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},pv(e,t)}function Ko(e){return Nee(e)||kee(e)||YT(e)||$ee()}function $ee(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YT(e,t){if(e){if(typeof e=="string")return mv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mv(e,t)}}function kee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Nee(e){if(Array.isArray(e))return mv(e)}function mv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function tO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tO(Object(r),!0).forEach(function(n){ee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ee(e,t,r){return t=JT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JT(e){var t=Mee(e,"string");return qo(t)=="symbol"?t:t+""}function Mee(e,t){if(qo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Iee={xAxis:["bottom","top"],yAxis:["left","right"]},Ree={width:"100%",height:"100%"},ZT={x:0,y:0};function ac(e){return e}var Dee=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},Lee=function(t,r,n,i){var a=r.find(function(f){return f&&f.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,s=i.radius;return D(D(D({},i),je(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var l=a.coordinate,u=i.angle;return D(D(D({},i),je(i.cx,i.cy,l,u)),{},{angle:u,radius:l})}return ZT},xh=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(s,l){var u=l.props.data;return u&&u.length?[].concat(Ko(s),Ko(u)):s},[]);return o.length>0?o:t&&t.length&&V(i)&&V(a)?t.slice(i,a+1):[]};function e2(e){return e==="number"?[0,"auto"]:void 0}var yv=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=xh(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(l,u){var f,c=(f=u.props.data)!==null&&f!==void 0?f:r;c&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(c=c.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var h=c===void 0?s:c;d=Hm(h,o.dataKey,i)}else d=c&&c[n]||s[n];return d?[].concat(Ko(l),[zj(u,d)]):l},[])},rO=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=Dee(a,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,f=qq(o,s,u,l);if(f>=0&&u){var c=u[f]&&u[f].value,d=yv(t,r,f,c),h=Lee(n,s,f,a);return{activeTooltipIndex:f,activeLabel:c,activePayload:d,activeCoordinate:h}}return null},Bee=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,f=t.layout,c=t.children,d=t.stackOffset,h=Dj(f,a);return n.reduce(function(p,m){var y,v=m.type.defaultProps!==void 0?D(D({},m.type.defaultProps),m.props):m.props,g=v.type,b=v.dataKey,w=v.allowDataOverflow,x=v.allowDuplicatedCategory,S=v.scale,_=v.ticks,P=v.includeHidden,A=v[o];if(p[A])return p;var C=xh(t.data,{graphicalItems:i.filter(function(H){var J,le=o in H.props?H.props[o]:(J=H.type.defaultProps)===null||J===void 0?void 0:J[o];return le===A}),dataStartIndex:l,dataEndIndex:u}),N=C.length,$,L,I;fee(v.domain,w,g)&&($=$y(v.domain,null,w),h&&(g==="number"||S!=="auto")&&(I=Qs(C,b,"category")));var R=e2(g);if(!$||$.length===0){var B,z=(B=v.domain)!==null&&B!==void 0?B:R;if(b){if($=Qs(C,b,g),g==="category"&&h){var k=MD($);x&&k?(L=$,$=Hf(0,N)):x||($=kw(z,$,m).reduce(function(H,J){return H.indexOf(J)>=0?H:[].concat(Ko(H),[J])},[]))}else if(g==="category")x?$=$.filter(function(H){return H!==""&&!ue(H)}):$=kw(z,$,m).reduce(function(H,J){return H.indexOf(J)>=0||J===""||ue(J)?H:[].concat(Ko(H),[J])},[]);else if(g==="number"){var F=Qq(C,i.filter(function(H){var J,le,Oe=o in H.props?H.props[o]:(J=H.type.defaultProps)===null||J===void 0?void 0:J[o],He="hide"in H.props?H.props.hide:(le=H.type.defaultProps)===null||le===void 0?void 0:le.hide;return Oe===A&&(P||!He)}),b,a,f);F&&($=F)}h&&(g==="number"||S!=="auto")&&(I=Qs(C,b,"category"))}else h?$=Hf(0,N):s&&s[A]&&s[A].hasStack&&g==="number"?$=d==="expand"?[0,1]:Uj(s[A].stackGroups,l,u):$=Rj(C,i.filter(function(H){var J=o in H.props?H.props[o]:H.type.defaultProps[o],le="hide"in H.props?H.props.hide:H.type.defaultProps.hide;return J===A&&(P||!le)}),g,f,!0);if(g==="number")$=hv(c,$,A,a,_),z&&($=$y(z,$,w));else if(g==="category"&&z){var U=z,K=$.every(function(H){return U.indexOf(H)>=0});K&&($=U)}}return D(D({},p),{},ee({},A,D(D({},v),{},{axisType:a,domain:$,categoricalDomain:I,duplicateDomain:L,originalDomain:(y=v.domain)!==null&&y!==void 0?y:R,isCategorical:h,layout:f})))},{})},Fee=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,f=t.layout,c=t.children,d=xh(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:u}),h=d.length,p=Dj(f,a),m=-1;return n.reduce(function(y,v){var g=v.type.defaultProps!==void 0?D(D({},v.type.defaultProps),v.props):v.props,b=g[o],w=e2("number");if(!y[b]){m++;var x;return p?x=Hf(0,h):s&&s[b]&&s[b].hasStack?(x=Uj(s[b].stackGroups,l,u),x=hv(c,x,b,a)):(x=$y(w,Rj(d,n.filter(function(S){var _,P,A=o in S.props?S.props[o]:(_=S.type.defaultProps)===null||_===void 0?void 0:_[o],C="hide"in S.props?S.props.hide:(P=S.type.defaultProps)===null||P===void 0?void 0:P.hide;return A===b&&!C}),"number",f),i.defaultProps.allowDataOverflow),x=hv(c,x,b,a)),D(D({},y),{},ee({},b,D(D({axisType:a},i.defaultProps),{},{hide:!0,orientation:Jt(Iee,"".concat(a,".").concat(m%2),null),domain:x,originalDomain:w,isCategorical:p,layout:f})))}return y},{})},Uee=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,f=t.children,c="".concat(i,"Id"),d=pr(f,a),h={};return d&&d.length?h=Bee(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):o&&o.length&&(h=Fee(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:c,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),h},zee=function(t){var r=Ea(t),n=Ui(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Qg(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:$f(r,n)}},nO=function(t){var r=t.children,n=t.defaultShowTooltip,i=Gt(r,Do),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},Wee=function(t){return!t||!t.length?!1:t.some(function(r){var n=fn(r&&r.type);return n&&n.indexOf("Bar")>=0})},iO=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"}},Hee=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,l=s===void 0?{}:s,u=n.width,f=n.height,c=n.children,d=n.margin||{},h=Gt(c,Do),p=Gt(c,Ja),m=Object.keys(l).reduce(function(x,S){var _=l[S],P=_.orientation;return!_.mirror&&!_.hide?D(D({},x),{},ee({},P,x[P]+_.width)):x},{left:d.left||0,right:d.right||0}),y=Object.keys(o).reduce(function(x,S){var _=o[S],P=_.orientation;return!_.mirror&&!_.hide?D(D({},x),{},ee({},P,Jt(x,"".concat(P))+_.height)):x},{top:d.top||0,bottom:d.bottom||0}),v=D(D({},y),m),g=v.bottom;h&&(v.bottom+=h.props.height||Do.defaultProps.height),p&&r&&(v=Gq(v,i,n,r));var b=u-v.left-v.right,w=f-v.top-v.bottom;return D(D({brushBottom:g},v),{},{width:Math.max(b,0),height:Math.max(w,0)})},qee=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},t2=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,l=t.axisComponents,u=t.legendContent,f=t.formatAxisMap,c=t.defaultProps,d=function(v,g){var b=g.graphicalItems,w=g.stackGroups,x=g.offset,S=g.updateId,_=g.dataStartIndex,P=g.dataEndIndex,A=v.barSize,C=v.layout,N=v.barGap,$=v.barCategoryGap,L=v.maxBarSize,I=iO(C),R=I.numericAxisName,B=I.cateAxisName,z=Wee(b),k=[];return b.forEach(function(F,U){var K=xh(v.data,{graphicalItems:[F],dataStartIndex:_,dataEndIndex:P}),H=F.type.defaultProps!==void 0?D(D({},F.type.defaultProps),F.props):F.props,J=H.dataKey,le=H.maxBarSize,Oe=H["".concat(R,"Id")],He=H["".concat(B,"Id")],rr={},kt=l.reduce(function(wi,Si){var Ah=g["".concat(Si.axisType,"Map")],N0=H["".concat(Si.axisType,"Id")];Ah&&Ah[N0]||Si.axisType==="zAxis"||pa();var M0=Ah[N0];return D(D({},wi),{},ee(ee({},Si.axisType,M0),"".concat(Si.axisType,"Ticks"),Ui(M0)))},rr),X=kt[B],ie=kt["".concat(B,"Ticks")],se=w&&w[Oe]&&w[Oe].hasStack&&aK(F,w[Oe].stackGroups),W=fn(F.type).indexOf("Bar")>=0,Be=$f(X,ie),he=[],Qe=z&&Kq({barSize:A,stackGroups:w,totalSize:qee(kt,B)});if(W){var Ye,Nt,Cn=ue(le)?L:le,Oa=(Ye=(Nt=$f(X,ie,!0))!==null&&Nt!==void 0?Nt:Cn)!==null&&Ye!==void 0?Ye:0;he=Vq({barGap:N,barCategoryGap:$,bandSize:Oa!==Be?Oa:Be,sizeList:Qe[He],maxBarSize:Cn}),Oa!==Be&&(he=he.map(function(wi){return D(D({},wi),{},{position:D(D({},wi.position),{},{offset:wi.position.offset-Oa/2})})}))}var Pu=F&&F.type&&F.type.getComposedData;Pu&&k.push({props:D(D({},Pu(D(D({},kt),{},{displayedData:K,props:v,dataKey:J,item:F,bandSize:Be,barPosition:he,offset:x,stackedData:se,layout:C,dataStartIndex:_,dataEndIndex:P}))),{},ee(ee(ee({key:F.key||"item-".concat(U)},R,kt[R]),B,kt[B]),"animationId",S)),childIndex:KD(F,v.children),item:F})}),k},h=function(v,g){var b=v.props,w=v.dataStartIndex,x=v.dataEndIndex,S=v.updateId;if(!Px({props:b}))return null;var _=b.children,P=b.layout,A=b.stackOffset,C=b.data,N=b.reverseStackOrder,$=iO(P),L=$.numericAxisName,I=$.cateAxisName,R=pr(_,n),B=nK(C,R,"".concat(L,"Id"),"".concat(I,"Id"),A,N),z=l.reduce(function(H,J){var le="".concat(J.axisType,"Map");return D(D({},H),{},ee({},le,Uee(b,D(D({},J),{},{graphicalItems:R,stackGroups:J.axisType===L&&B,dataStartIndex:w,dataEndIndex:x}))))},{}),k=Hee(D(D({},z),{},{props:b,graphicalItems:R}),g==null?void 0:g.legendBBox);Object.keys(z).forEach(function(H){z[H]=f(b,z[H],k,H.replace("Map",""),r)});var F=z["".concat(I,"Map")],U=zee(F),K=d(b,D(D({},z),{},{dataStartIndex:w,dataEndIndex:x,updateId:S,graphicalItems:R,stackGroups:B,offset:k}));return D(D({formattedGraphicalItems:K,graphicalItems:R,offset:k,stackGroups:B},U),z)},p=function(y){function v(g){var b,w,x;return _ee(this,v),x=Eee(this,v,[g]),ee(x,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ee(x,"accessibilityManager",new cee),ee(x,"handleLegendBBoxUpdate",function(S){if(S){var _=x.state,P=_.dataStartIndex,A=_.dataEndIndex,C=_.updateId;x.setState(D({legendBBox:S},h({props:x.props,dataStartIndex:P,dataEndIndex:A,updateId:C},D(D({},x.state),{},{legendBBox:S}))))}}),ee(x,"handleReceiveSyncEvent",function(S,_,P){if(x.props.syncId===S){if(P===x.eventEmitterSymbol&&typeof x.props.syncMethod!="function")return;x.applySyncEvent(_)}}),ee(x,"handleBrushChange",function(S){var _=S.startIndex,P=S.endIndex;if(_!==x.state.dataStartIndex||P!==x.state.dataEndIndex){var A=x.state.updateId;x.setState(function(){return D({dataStartIndex:_,dataEndIndex:P},h({props:x.props,dataStartIndex:_,dataEndIndex:P,updateId:A},x.state))}),x.triggerSyncEvent({dataStartIndex:_,dataEndIndex:P})}}),ee(x,"handleMouseEnter",function(S){var _=x.getMouseInfo(S);if(_){var P=D(D({},_),{},{isTooltipActive:!0});x.setState(P),x.triggerSyncEvent(P);var A=x.props.onMouseEnter;re(A)&&A(P,S)}}),ee(x,"triggeredAfterMouseMove",function(S){var _=x.getMouseInfo(S),P=_?D(D({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};x.setState(P),x.triggerSyncEvent(P);var A=x.props.onMouseMove;re(A)&&A(P,S)}),ee(x,"handleItemMouseEnter",function(S){x.setState(function(){return{isTooltipActive:!0,activeItem:S,activePayload:S.tooltipPayload,activeCoordinate:S.tooltipPosition||{x:S.cx,y:S.cy}}})}),ee(x,"handleItemMouseLeave",function(){x.setState(function(){return{isTooltipActive:!1}})}),ee(x,"handleMouseMove",function(S){S.persist(),x.throttleTriggeredAfterMouseMove(S)}),ee(x,"handleMouseLeave",function(S){x.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};x.setState(_),x.triggerSyncEvent(_);var P=x.props.onMouseLeave;re(P)&&P(_,S)}),ee(x,"handleOuterEvent",function(S){var _=qD(S),P=Jt(x.props,"".concat(_));if(_&&re(P)){var A,C;/.*touch.*/i.test(_)?C=x.getMouseInfo(S.changedTouches[0]):C=x.getMouseInfo(S),P((A=C)!==null&&A!==void 0?A:{},S)}}),ee(x,"handleClick",function(S){var _=x.getMouseInfo(S);if(_){var P=D(D({},_),{},{isTooltipActive:!0});x.setState(P),x.triggerSyncEvent(P);var A=x.props.onClick;re(A)&&A(P,S)}}),ee(x,"handleMouseDown",function(S){var _=x.props.onMouseDown;if(re(_)){var P=x.getMouseInfo(S);_(P,S)}}),ee(x,"handleMouseUp",function(S){var _=x.props.onMouseUp;if(re(_)){var P=x.getMouseInfo(S);_(P,S)}}),ee(x,"handleTouchMove",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&x.throttleTriggeredAfterMouseMove(S.changedTouches[0])}),ee(x,"handleTouchStart",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&x.handleMouseDown(S.changedTouches[0])}),ee(x,"handleTouchEnd",function(S){S.changedTouches!=null&&S.changedTouches.length>0&&x.handleMouseUp(S.changedTouches[0])}),ee(x,"handleDoubleClick",function(S){var _=x.props.onDoubleClick;if(re(_)){var P=x.getMouseInfo(S);_(P,S)}}),ee(x,"handleContextMenu",function(S){var _=x.props.onContextMenu;if(re(_)){var P=x.getMouseInfo(S);_(P,S)}}),ee(x,"triggerSyncEvent",function(S){x.props.syncId!==void 0&&Ep.emit(jp,x.props.syncId,S,x.eventEmitterSymbol)}),ee(x,"applySyncEvent",function(S){var _=x.props,P=_.layout,A=_.syncMethod,C=x.state.updateId,N=S.dataStartIndex,$=S.dataEndIndex;if(S.dataStartIndex!==void 0||S.dataEndIndex!==void 0)x.setState(D({dataStartIndex:N,dataEndIndex:$},h({props:x.props,dataStartIndex:N,dataEndIndex:$,updateId:C},x.state)));else if(S.activeTooltipIndex!==void 0){var L=S.chartX,I=S.chartY,R=S.activeTooltipIndex,B=x.state,z=B.offset,k=B.tooltipTicks;if(!z)return;if(typeof A=="function")R=A(k,S);else if(A==="value"){R=-1;for(var F=0;F<k.length;F++)if(k[F].value===S.activeLabel){R=F;break}}var U=D(D({},z),{},{x:z.left,y:z.top}),K=Math.min(L,U.x+U.width),H=Math.min(I,U.y+U.height),J=k[R]&&k[R].value,le=yv(x.state,x.props.data,R),Oe=k[R]?{x:P==="horizontal"?k[R].coordinate:K,y:P==="horizontal"?H:k[R].coordinate}:ZT;x.setState(D(D({},S),{},{activeLabel:J,activeCoordinate:Oe,activePayload:le,activeTooltipIndex:R}))}else x.setState(S)}),ee(x,"renderCursor",function(S){var _,P=x.state,A=P.isTooltipActive,C=P.activeCoordinate,N=P.activePayload,$=P.offset,L=P.activeTooltipIndex,I=P.tooltipAxisBandSize,R=x.getTooltipEventType(),B=(_=S.props.active)!==null&&_!==void 0?_:A,z=x.props.layout,k=S.key||"_recharts-cursor";return T.createElement(vee,{key:k,activeCoordinate:C,activePayload:N,activeTooltipIndex:L,chartName:r,element:S,isActive:B,layout:z,offset:$,tooltipAxisBandSize:I,tooltipEventType:R})}),ee(x,"renderPolarAxis",function(S,_,P){var A=Jt(S,"type.axisType"),C=Jt(x.state,"".concat(A,"Map")),N=S.type.defaultProps,$=N!==void 0?D(D({},N),S.props):S.props,L=C&&C[$["".concat(A,"Id")]];return j.cloneElement(S,D(D({},L),{},{className:oe(A,L.className),key:S.key||"".concat(_,"-").concat(P),ticks:Ui(L,!0)}))}),ee(x,"renderPolarGrid",function(S){var _=S.props,P=_.radialLines,A=_.polarAngles,C=_.polarRadius,N=x.state,$=N.radiusAxisMap,L=N.angleAxisMap,I=Ea($),R=Ea(L),B=R.cx,z=R.cy,k=R.innerRadius,F=R.outerRadius;return j.cloneElement(S,{polarAngles:Array.isArray(A)?A:Ui(R,!0).map(function(U){return U.coordinate}),polarRadius:Array.isArray(C)?C:Ui(I,!0).map(function(U){return U.coordinate}),cx:B,cy:z,innerRadius:k,outerRadius:F,key:S.key||"polar-grid",radialLines:P})}),ee(x,"renderLegend",function(){var S=x.state.formattedGraphicalItems,_=x.props,P=_.children,A=_.width,C=_.height,N=x.props.margin||{},$=A-(N.left||0)-(N.right||0),L=Mj({children:P,formattedGraphicalItems:S,legendWidth:$,legendContent:u});if(!L)return null;var I=L.item,R=eO(L,gee);return j.cloneElement(I,D(D({},R),{},{chartWidth:A,chartHeight:C,margin:N,onBBoxUpdate:x.handleLegendBBoxUpdate}))}),ee(x,"renderTooltip",function(){var S,_=x.props,P=_.children,A=_.accessibilityLayer,C=Gt(P,Ar);if(!C)return null;var N=x.state,$=N.isTooltipActive,L=N.activeCoordinate,I=N.activePayload,R=N.activeLabel,B=N.offset,z=(S=C.props.active)!==null&&S!==void 0?S:$;return j.cloneElement(C,{viewBox:D(D({},B),{},{x:B.left,y:B.top}),active:z,label:R,payload:z?I:[],coordinate:L,accessibilityLayer:A})}),ee(x,"renderBrush",function(S){var _=x.props,P=_.margin,A=_.data,C=x.state,N=C.offset,$=C.dataStartIndex,L=C.dataEndIndex,I=C.updateId;return j.cloneElement(S,{key:S.key||"_recharts-brush",onChange:ec(x.handleBrushChange,S.props.onChange),data:A,x:V(S.props.x)?S.props.x:N.left,y:V(S.props.y)?S.props.y:N.top+N.height+N.brushBottom-(P.bottom||0),width:V(S.props.width)?S.props.width:N.width,startIndex:$,endIndex:L,updateId:"brush-".concat(I)})}),ee(x,"renderReferenceElement",function(S,_,P){if(!S)return null;var A=x,C=A.clipPathId,N=x.state,$=N.xAxisMap,L=N.yAxisMap,I=N.offset,R=S.type.defaultProps||{},B=S.props,z=B.xAxisId,k=z===void 0?R.xAxisId:z,F=B.yAxisId,U=F===void 0?R.yAxisId:F;return j.cloneElement(S,{key:S.key||"".concat(_,"-").concat(P),xAxis:$[k],yAxis:L[U],viewBox:{x:I.left,y:I.top,width:I.width,height:I.height},clipPathId:C})}),ee(x,"renderActivePoints",function(S){var _=S.item,P=S.activePoint,A=S.basePoint,C=S.childIndex,N=S.isRange,$=[],L=_.props.key,I=_.item.type.defaultProps!==void 0?D(D({},_.item.type.defaultProps),_.item.props):_.item.props,R=I.activeDot,B=I.dataKey,z=D(D({index:C,dataKey:B,cx:P.x,cy:P.y,r:4,fill:S0(_.item),strokeWidth:2,stroke:"#fff",payload:P.payload,value:P.value},te(R,!1)),rf(R));return $.push(v.renderActiveDot(R,z,"".concat(L,"-activePoint-").concat(C))),A?$.push(v.renderActiveDot(R,D(D({},z),{},{cx:A.x,cy:A.y}),"".concat(L,"-basePoint-").concat(C))):N&&$.push(null),$}),ee(x,"renderGraphicChild",function(S,_,P){var A=x.filterFormatItem(S,_,P);if(!A)return null;var C=x.getTooltipEventType(),N=x.state,$=N.isTooltipActive,L=N.tooltipAxis,I=N.activeTooltipIndex,R=N.activeLabel,B=x.props.children,z=Gt(B,Ar),k=A.props,F=k.points,U=k.isRange,K=k.baseLine,H=A.item.type.defaultProps!==void 0?D(D({},A.item.type.defaultProps),A.item.props):A.item.props,J=H.activeDot,le=H.hide,Oe=H.activeBar,He=H.activeShape,rr=!!(!le&&$&&z&&(J||Oe||He)),kt={};C!=="axis"&&z&&z.props.trigger==="click"?kt={onClick:ec(x.handleItemMouseEnter,S.props.onClick)}:C!=="axis"&&(kt={onMouseLeave:ec(x.handleItemMouseLeave,S.props.onMouseLeave),onMouseEnter:ec(x.handleItemMouseEnter,S.props.onMouseEnter)});var X=j.cloneElement(S,D(D({},A.props),kt));function ie(Si){return typeof L.dataKey=="function"?L.dataKey(Si.payload):null}if(rr)if(I>=0){var se,W;if(L.dataKey&&!L.allowDuplicatedCategory){var Be=typeof L.dataKey=="function"?ie:"payload.".concat(L.dataKey.toString());se=Hm(F,Be,R),W=U&&K&&Hm(K,Be,R)}else se=F==null?void 0:F[I],W=U&&K&&K[I];if(He||Oe){var he=S.props.activeIndex!==void 0?S.props.activeIndex:I;return[j.cloneElement(S,D(D(D({},A.props),kt),{},{activeIndex:he})),null,null]}if(!ue(se))return[X].concat(Ko(x.renderActivePoints({item:A,activePoint:se,basePoint:W,childIndex:I,isRange:U})))}else{var Qe,Ye=(Qe=x.getItemByXY(x.state.activeCoordinate))!==null&&Qe!==void 0?Qe:{graphicalItem:X},Nt=Ye.graphicalItem,Cn=Nt.item,Oa=Cn===void 0?S:Cn,Pu=Nt.childIndex,wi=D(D(D({},A.props),kt),{},{activeIndex:Pu});return[j.cloneElement(Oa,wi),null,null]}return U?[X,null,null]:[X,null]}),ee(x,"renderCustomized",function(S,_,P){return j.cloneElement(S,D(D({key:"recharts-customized-".concat(P)},x.props),x.state))}),ee(x,"renderMap",{CartesianGrid:{handler:ac,once:!0},ReferenceArea:{handler:x.renderReferenceElement},ReferenceLine:{handler:ac},ReferenceDot:{handler:x.renderReferenceElement},XAxis:{handler:ac},YAxis:{handler:ac},Brush:{handler:x.renderBrush,once:!0},Bar:{handler:x.renderGraphicChild},Line:{handler:x.renderGraphicChild},Area:{handler:x.renderGraphicChild},Radar:{handler:x.renderGraphicChild},RadialBar:{handler:x.renderGraphicChild},Scatter:{handler:x.renderGraphicChild},Pie:{handler:x.renderGraphicChild},Funnel:{handler:x.renderGraphicChild},Tooltip:{handler:x.renderCursor,once:!0},PolarGrid:{handler:x.renderPolarGrid,once:!0},PolarAngleAxis:{handler:x.renderPolarAxis},PolarRadiusAxis:{handler:x.renderPolarAxis},Customized:{handler:x.renderCustomized}}),x.clipPathId="".concat((b=g.id)!==null&&b!==void 0?b:yu("recharts"),"-clip"),x.throttleTriggeredAfterMouseMove=ME(x.triggeredAfterMouseMove,(w=g.throttleDelay)!==null&&w!==void 0?w:1e3/60),x.state={},x}return Cee(v,y),Aee(v,[{key:"componentDidMount",value:function(){var b,w;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var b=this.props,w=b.children,x=b.data,S=b.height,_=b.layout,P=Gt(w,Ar);if(P){var A=P.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,N=yv(this.state,x,A,C),$=this.state.tooltipTicks[A].coordinate,L=(this.state.offset.top+S)/2,I=_==="horizontal",R=I?{x:$,y:L}:{y:$,x:L},B=this.state.formattedGraphicalItems.find(function(k){var F=k.item;return F.type.name==="Scatter"});B&&(R=D(D({},R),B.props.points[A].tooltipPosition),N=B.props.points[A].tooltipPayload);var z={activeTooltipIndex:A,isTooltipActive:!0,activeLabel:C,activePayload:N,activeCoordinate:R};this.setState(z),this.renderCursor(P),this.accessibilityManager.setIndex(A)}}}},{key:"getSnapshotBeforeUpdate",value:function(b,w){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==w.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==b.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==b.margin){var x,S;this.accessibilityManager.setDetails({offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(S=this.props.margin.top)!==null&&S!==void 0?S:0}})}return null}},{key:"componentDidUpdate",value:function(b){Km([Gt(b.children,Ar)],[Gt(this.props.children,Ar)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=Gt(this.props.children,Ar);if(b&&typeof b.props.shared=="boolean"){var w=b.props.shared?"axis":"item";return s.indexOf(w)>=0?w:a}return a}},{key:"getMouseInfo",value:function(b){if(!this.container)return null;var w=this.container,x=w.getBoundingClientRect(),S=bW(x),_={chartX:Math.round(b.pageX-S.left),chartY:Math.round(b.pageY-S.top)},P=x.width/w.offsetWidth||1,A=this.inRange(_.chartX,_.chartY,P);if(!A)return null;var C=this.state,N=C.xAxisMap,$=C.yAxisMap,L=this.getTooltipEventType(),I=rO(this.state,this.props.data,this.props.layout,A);if(L!=="axis"&&N&&$){var R=Ea(N).scale,B=Ea($).scale,z=R&&R.invert?R.invert(_.chartX):null,k=B&&B.invert?B.invert(_.chartY):null;return D(D({},_),{},{xValue:z,yValue:k},I)}return I?D(D({},_),I):null}},{key:"inRange",value:function(b,w){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,S=this.props.layout,_=b/x,P=w/x;if(S==="horizontal"||S==="vertical"){var A=this.state.offset,C=_>=A.left&&_<=A.left+A.width&&P>=A.top&&P<=A.top+A.height;return C?{x:_,y:P}:null}var N=this.state,$=N.angleAxisMap,L=N.radiusAxisMap;if($&&L){var I=Ea($);return Iw({x:_,y:P},I)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,w=this.getTooltipEventType(),x=Gt(b,Ar),S={};x&&w==="axis"&&(x.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 _=rf(this.props,this.handleOuterEvent);return D(D({},_),S)}},{key:"addListener",value:function(){Ep.on(jp,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Ep.removeListener(jp,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,w,x){for(var S=this.state.formattedGraphicalItems,_=0,P=S.length;_<P;_++){var A=S[_];if(A.item===b||A.props.key===b.key||w===fn(A.item.type)&&x===A.childIndex)return A}return null}},{key:"renderClipPath",value:function(){var b=this.clipPathId,w=this.state.offset,x=w.left,S=w.top,_=w.height,P=w.width;return T.createElement("defs",null,T.createElement("clipPath",{id:b},T.createElement("rect",{x,y:S,height:_,width:P})))}},{key:"getXScales",value:function(){var b=this.state.xAxisMap;return b?Object.entries(b).reduce(function(w,x){var S=ZS(x,2),_=S[0],P=S[1];return D(D({},w),{},ee({},_,P.scale))},{}):null}},{key:"getYScales",value:function(){var b=this.state.yAxisMap;return b?Object.entries(b).reduce(function(w,x){var S=ZS(x,2),_=S[0],P=S[1];return D(D({},w),{},ee({},_,P.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(b){var w;return(w=this.state.xAxisMap)===null||w===void 0||(w=w[b])===null||w===void 0?void 0:w.scale}},{key:"getYScaleByAxisId",value:function(b){var w;return(w=this.state.yAxisMap)===null||w===void 0||(w=w[b])===null||w===void 0?void 0:w.scale}},{key:"getItemByXY",value:function(b){var w=this.state,x=w.formattedGraphicalItems,S=w.activeItem;if(x&&x.length)for(var _=0,P=x.length;_<P;_++){var A=x[_],C=A.props,N=A.item,$=N.type.defaultProps!==void 0?D(D({},N.type.defaultProps),N.props):N.props,L=fn(N.type);if(L==="Bar"){var I=(C.data||[]).find(function(k){return aX(b,k)});if(I)return{graphicalItem:A,payload:I}}else if(L==="RadialBar"){var R=(C.data||[]).find(function(k){return Iw(b,k)});if(R)return{graphicalItem:A,payload:R}}else if(ch(A,S)||fh(A,S)||Xl(A,S)){var B=VQ({graphicalItem:A,activeTooltipItem:S,itemData:$.data}),z=$.activeIndex===void 0?B:$.activeIndex;return{graphicalItem:D(D({},A),{},{childIndex:z}),payload:Xl(A,S)?$.data[B]:A.props.data[B]}}}return null}},{key:"render",value:function(){var b=this;if(!Px(this))return null;var w=this.props,x=w.children,S=w.className,_=w.width,P=w.height,A=w.style,C=w.compact,N=w.title,$=w.desc,L=eO(w,bee),I=te(L,!1);if(C)return T.createElement(FS,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},T.createElement(Gm,Ha({},I,{width:_,height:P,title:N,desc:$}),this.renderClipPath(),Ex(x,this.renderMap)));if(this.props.accessibilityLayer){var R,B;I.tabIndex=(R=this.props.tabIndex)!==null&&R!==void 0?R:0,I.role=(B=this.props.role)!==null&&B!==void 0?B:"application",I.onKeyDown=function(k){b.accessibilityManager.keyboardEvent(k)},I.onFocus=function(){b.accessibilityManager.focus()}}var z=this.parseEventsOfWrapper();return T.createElement(FS,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},T.createElement("div",Ha({className:oe("recharts-wrapper",S),style:D({position:"relative",cursor:"default",width:_,height:P},A)},z,{ref:function(F){b.container=F}}),T.createElement(Gm,Ha({},I,{width:_,height:P,title:N,desc:$,style:Ree}),this.renderClipPath(),Ex(x,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(j.Component);ee(p,"displayName",r),ee(p,"defaultProps",D({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},c)),ee(p,"getDerivedStateFromProps",function(y,v){var g=y.dataKey,b=y.data,w=y.children,x=y.width,S=y.height,_=y.layout,P=y.stackOffset,A=y.margin,C=v.dataStartIndex,N=v.dataEndIndex;if(v.updateId===void 0){var $=nO(y);return D(D(D({},$),{},{updateId:0},h(D(D({props:y},$),{},{updateId:0}),v)),{},{prevDataKey:g,prevData:b,prevWidth:x,prevHeight:S,prevLayout:_,prevStackOffset:P,prevMargin:A,prevChildren:w})}if(g!==v.prevDataKey||b!==v.prevData||x!==v.prevWidth||S!==v.prevHeight||_!==v.prevLayout||P!==v.prevStackOffset||!Ya(A,v.prevMargin)){var L=nO(y),I={chartX:v.chartX,chartY:v.chartY,isTooltipActive:v.isTooltipActive},R=D(D({},rO(v,b,_)),{},{updateId:v.updateId+1}),B=D(D(D({},L),I),R);return D(D(D({},B),h(D({props:y},B),v)),{},{prevDataKey:g,prevData:b,prevWidth:x,prevHeight:S,prevLayout:_,prevStackOffset:P,prevMargin:A,prevChildren:w})}if(!Km(w,v.prevChildren)){var z,k,F,U,K=Gt(w,Do),H=K&&(z=(k=K.props)===null||k===void 0?void 0:k.startIndex)!==null&&z!==void 0?z:C,J=K&&(F=(U=K.props)===null||U===void 0?void 0:U.endIndex)!==null&&F!==void 0?F:N,le=H!==C||J!==N,Oe=!ue(b),He=Oe&&!le?v.updateId:v.updateId+1;return D(D({updateId:He},h(D(D({props:y},v),{},{updateId:He,dataStartIndex:H,dataEndIndex:J}),v)),{},{prevChildren:w,dataStartIndex:H,dataEndIndex:J})}return null}),ee(p,"renderActiveDot",function(y,v,g){var b;return j.isValidElement(y)?b=j.cloneElement(y,v):re(y)?b=y(v):b=T.createElement(_0,v),T.createElement(ge,{className:"recharts-active-dot",key:g},b)});var m=j.forwardRef(function(v,g){return T.createElement(p,Ha({},v,{ref:g}))});return m.displayName=p.displayName,m},Kee=t2({chartName:"BarChart",GraphicalChild:pn,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:gh},{axisType:"yAxis",AxisComp:bh}],formatAxisMap:EJ}),Vee=t2({chartName:"PieChart",GraphicalChild:Tn,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:uh},{axisType:"radiusAxis",AxisComp:sh}],formatAxisMap:mK,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});function r2(e,t){return function(){return e.apply(t,arguments)}}const{toString:Gee}=Object.prototype,{getPrototypeOf:T0}=Object,{iterator:wh,toStringTag:n2}=Symbol,Sh=(e=>t=>{const r=Gee.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Mr=e=>(e=e.toLowerCase(),t=>Sh(t)===e),Oh=e=>t=>typeof t===e,{isArray:fs}=Array,Vo=Oh("undefined");function wu(e){return e!==null&&!Vo(e)&&e.constructor!==null&&!Vo(e.constructor)&&Wt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const i2=Mr("ArrayBuffer");function Xee(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&i2(e.buffer),t}const Qee=Oh("string"),Wt=Oh("function"),a2=Oh("number"),Su=e=>e!==null&&typeof e=="object",Yee=e=>e===!0||e===!1,Sc=e=>{if(Sh(e)!=="object")return!1;const t=T0(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(n2 in e)&&!(wh in e)},Jee=e=>{if(!Su(e)||wu(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Zee=Mr("Date"),ete=Mr("File"),tte=Mr("Blob"),rte=Mr("FileList"),nte=e=>Su(e)&&Wt(e.pipe),ite=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Wt(e.append)&&((t=Sh(e))==="formdata"||t==="object"&&Wt(e.toString)&&e.toString()==="[object FormData]"))},ate=Mr("URLSearchParams"),[ote,ste,lte,ute]=["ReadableStream","Request","Response","Headers"].map(Mr),cte=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ou(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),fs(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{if(wu(e))return;const a=r?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;let s;for(n=0;n<o;n++)s=a[n],t.call(null,e[s],s,e)}}function o2(e,t){if(wu(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,i;for(;n-- >0;)if(i=r[n],t===i.toLowerCase())return i;return null}const zi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,s2=e=>!Vo(e)&&e!==zi;function vv(){const{caseless:e,skipUndefined:t}=s2(this)&&this||{},r={},n=(i,a)=>{const o=e&&o2(r,a)||a;Sc(r[o])&&Sc(i)?r[o]=vv(r[o],i):Sc(i)?r[o]=vv({},i):fs(i)?r[o]=i.slice():(!t||!Vo(i))&&(r[o]=i)};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&Ou(arguments[i],n);return r}const fte=(e,t,r,{allOwnKeys:n}={})=>(Ou(t,(i,a)=>{r&&Wt(i)?e[a]=r2(i,r):e[a]=i},{allOwnKeys:n}),e),dte=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),hte=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},pte=(e,t,r,n)=>{let i,a,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!n||n(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=r!==!1&&T0(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},mte=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},yte=e=>{if(!e)return null;if(fs(e))return e;let t=e.length;if(!a2(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},vte=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&T0(Uint8Array)),gte=(e,t)=>{const n=(e&&e[wh]).call(e);let i;for(;(i=n.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},bte=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},xte=Mr("HTMLFormElement"),wte=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),aO=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Ste=Mr("RegExp"),l2=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Ou(r,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(n[a]=o||i)}),Object.defineProperties(e,n)},Ote=e=>{l2(e,(t,r)=>{if(Wt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Wt(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},_te=(e,t)=>{const r={},n=i=>{i.forEach(a=>{r[a]=!0})};return fs(e)?n(e):n(String(e).split(t)),r},Pte=()=>{},Ate=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Ete(e){return!!(e&&Wt(e.append)&&e[n2]==="FormData"&&e[wh])}const jte=e=>{const t=new Array(10),r=(n,i)=>{if(Su(n)){if(t.indexOf(n)>=0)return;if(wu(n))return n;if(!("toJSON"in n)){t[i]=n;const a=fs(n)?[]:{};return Ou(n,(o,s)=>{const l=r(o,i+1);!Vo(l)&&(a[s]=l)}),t[i]=void 0,a}}return n};return r(e,0)},Tte=Mr("AsyncFunction"),Cte=e=>e&&(Su(e)||Wt(e))&&Wt(e.then)&&Wt(e.catch),u2=((e,t)=>e?setImmediate:t?((r,n)=>(zi.addEventListener("message",({source:i,data:a})=>{i===zi&&a===r&&n.length&&n.shift()()},!1),i=>{n.push(i),zi.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Wt(zi.postMessage)),$te=typeof queueMicrotask<"u"?queueMicrotask.bind(zi):typeof process<"u"&&process.nextTick||u2,kte=e=>e!=null&&Wt(e[wh]),M={isArray:fs,isArrayBuffer:i2,isBuffer:wu,isFormData:ite,isArrayBufferView:Xee,isString:Qee,isNumber:a2,isBoolean:Yee,isObject:Su,isPlainObject:Sc,isEmptyObject:Jee,isReadableStream:ote,isRequest:ste,isResponse:lte,isHeaders:ute,isUndefined:Vo,isDate:Zee,isFile:ete,isBlob:tte,isRegExp:Ste,isFunction:Wt,isStream:nte,isURLSearchParams:ate,isTypedArray:vte,isFileList:rte,forEach:Ou,merge:vv,extend:fte,trim:cte,stripBOM:dte,inherits:hte,toFlatObject:pte,kindOf:Sh,kindOfTest:Mr,endsWith:mte,toArray:yte,forEachEntry:gte,matchAll:bte,isHTMLForm:xte,hasOwnProperty:aO,hasOwnProp:aO,reduceDescriptors:l2,freezeMethods:Ote,toObjectSet:_te,toCamelCase:wte,noop:Pte,toFiniteNumber:Ate,findKey:o2,global:zi,isContextDefined:s2,isSpecCompliantForm:Ete,toJSONObject:jte,isAsyncFn:Tte,isThenable:Cte,setImmediate:u2,asap:$te,isIterable:kte};function ne(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}M.inherits(ne,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:M.toJSONObject(this.config),code:this.code,status:this.status}}});const c2=ne.prototype,f2={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{f2[e]={value:e}});Object.defineProperties(ne,f2);Object.defineProperty(c2,"isAxiosError",{value:!0});ne.from=(e,t,r,n,i,a)=>{const o=Object.create(c2);M.toFlatObject(e,o,function(f){return f!==Error.prototype},u=>u!=="isAxiosError");const s=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return ne.call(o,s,l,r,n,i),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",a&&Object.assign(o,a),o};const Nte=null;function gv(e){return M.isPlainObject(e)||M.isArray(e)}function d2(e){return M.endsWith(e,"[]")?e.slice(0,-2):e}function oO(e,t,r){return e?e.concat(t).map(function(i,a){return i=d2(i),!r&&a?"["+i+"]":i}).join(r?".":""):t}function Mte(e){return M.isArray(e)&&!e.some(gv)}const Ite=M.toFlatObject(M,{},null,function(t){return/^is[A-Z]/.test(t)});function _h(e,t,r){if(!M.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=M.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,y){return!M.isUndefined(y[m])});const n=r.metaTokens,i=r.visitor||f,a=r.dots,o=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&M.isSpecCompliantForm(t);if(!M.isFunction(i))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(M.isDate(p))return p.toISOString();if(M.isBoolean(p))return p.toString();if(!l&&M.isBlob(p))throw new ne("Blob is not supported. Use a Buffer instead.");return M.isArrayBuffer(p)||M.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function f(p,m,y){let v=p;if(p&&!y&&typeof p=="object"){if(M.endsWith(m,"{}"))m=n?m:m.slice(0,-2),p=JSON.stringify(p);else if(M.isArray(p)&&Mte(p)||(M.isFileList(p)||M.endsWith(m,"[]"))&&(v=M.toArray(p)))return m=d2(m),v.forEach(function(b,w){!(M.isUndefined(b)||b===null)&&t.append(o===!0?oO([m],w,a):o===null?m:m+"[]",u(b))}),!1}return gv(p)?!0:(t.append(oO(y,m,a),u(p)),!1)}const c=[],d=Object.assign(Ite,{defaultVisitor:f,convertValue:u,isVisitable:gv});function h(p,m){if(!M.isUndefined(p)){if(c.indexOf(p)!==-1)throw Error("Circular reference detected in "+m.join("."));c.push(p),M.forEach(p,function(v,g){(!(M.isUndefined(v)||v===null)&&i.call(t,v,M.isString(g)?g.trim():g,m,d))===!0&&h(v,m?m.concat(g):[g])}),c.pop()}}if(!M.isObject(e))throw new TypeError("data must be an object");return h(e),t}function sO(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function C0(e,t){this._pairs=[],e&&_h(e,this,t)}const h2=C0.prototype;h2.append=function(t,r){this._pairs.push([t,r])};h2.toString=function(t){const r=t?function(n){return t.call(this,n,sO)}:sO;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function Rte(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function p2(e,t,r){if(!t)return e;const n=r&&r.encode||Rte;M.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let a;if(i?a=i(t,r):a=M.isURLSearchParams(t)?t.toString():new C0(t,r).toString(n),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class lO{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){M.forEach(this.handlers,function(n){n!==null&&t(n)})}}const m2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Dte=typeof URLSearchParams<"u"?URLSearchParams:C0,Lte=typeof FormData<"u"?FormData:null,Bte=typeof Blob<"u"?Blob:null,Fte={isBrowser:!0,classes:{URLSearchParams:Dte,FormData:Lte,Blob:Bte},protocols:["http","https","file","blob","url","data"]},$0=typeof window<"u"&&typeof document<"u",bv=typeof navigator=="object"&&navigator||void 0,Ute=$0&&(!bv||["ReactNative","NativeScript","NS"].indexOf(bv.product)<0),zte=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Wte=$0&&window.location.href||"http://localhost",Hte=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:$0,hasStandardBrowserEnv:Ute,hasStandardBrowserWebWorkerEnv:zte,navigator:bv,origin:Wte},Symbol.toStringTag,{value:"Module"})),wt={...Hte,...Fte};function qte(e,t){return _h(e,new wt.classes.URLSearchParams,{visitor:function(r,n,i,a){return wt.isNode&&M.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function Kte(e){return M.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Vte(e){const t={},r=Object.keys(e);let n;const i=r.length;let a;for(n=0;n<i;n++)a=r[n],t[a]=e[a];return t}function y2(e){function t(r,n,i,a){let o=r[a++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=a>=r.length;return o=!o&&M.isArray(i)?i.length:o,l?(M.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!s):((!i[o]||!M.isObject(i[o]))&&(i[o]=[]),t(r,n,i[o],a)&&M.isArray(i[o])&&(i[o]=Vte(i[o])),!s)}if(M.isFormData(e)&&M.isFunction(e.entries)){const r={};return M.forEachEntry(e,(n,i)=>{t(Kte(n),i,r,0)}),r}return null}function Gte(e,t,r){if(M.isString(e))try{return(t||JSON.parse)(e),M.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const _u={transitional:m2,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,a=M.isObject(t);if(a&&M.isHTMLForm(t)&&(t=new FormData(t)),M.isFormData(t))return i?JSON.stringify(y2(t)):t;if(M.isArrayBuffer(t)||M.isBuffer(t)||M.isStream(t)||M.isFile(t)||M.isBlob(t)||M.isReadableStream(t))return t;if(M.isArrayBufferView(t))return t.buffer;if(M.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return qte(t,this.formSerializer).toString();if((s=M.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return _h(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(r.setContentType("application/json",!1),Gte(t)):t}],transformResponse:[function(t){const r=this.transitional||_u.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(M.isResponse(t)||M.isReadableStream(t))return t;if(t&&M.isString(t)&&(n&&!this.responseType||i)){const o=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t,this.parseReviver)}catch(s){if(o)throw s.name==="SyntaxError"?ne.from(s,ne.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:wt.classes.FormData,Blob:wt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};M.forEach(["delete","get","head","post","put","patch"],e=>{_u.headers[e]={}});const Xte=M.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Qte=e=>{const t={};let r,n,i;return e&&e.split(`
`).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||t[r]&&Xte[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},uO=Symbol("internals");function $s(e){return e&&String(e).trim().toLowerCase()}function Oc(e){return e===!1||e==null?e:M.isArray(e)?e.map(Oc):String(e)}function Yte(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const Jte=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Cp(e,t,r,n,i){if(M.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!M.isString(t)){if(M.isString(n))return t.indexOf(n)!==-1;if(M.isRegExp(n))return n.test(t)}}function Zte(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function ere(e,t){const r=M.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,a,o){return this[n].call(this,t,i,a,o)},configurable:!0})})}let Ht=class{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function a(s,l,u){const f=$s(l);if(!f)throw new Error("header name must be a non-empty string");const c=M.findKey(i,f);(!c||i[c]===void 0||u===!0||u===void 0&&i[c]!==!1)&&(i[c||l]=Oc(s))}const o=(s,l)=>M.forEach(s,(u,f)=>a(u,f,l));if(M.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(M.isString(t)&&(t=t.trim())&&!Jte(t))o(Qte(t),r);else if(M.isObject(t)&&M.isIterable(t)){let s={},l,u;for(const f of t){if(!M.isArray(f))throw TypeError("Object iterator must return a key-value pair");s[u=f[0]]=(l=s[u])?M.isArray(l)?[...l,f[1]]:[l,f[1]]:f[1]}o(s,r)}else t!=null&&a(r,t,n);return this}get(t,r){if(t=$s(t),t){const n=M.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return Yte(i);if(M.isFunction(r))return r.call(this,i,n);if(M.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=$s(t),t){const n=M.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Cp(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function a(o){if(o=$s(o),o){const s=M.findKey(n,o);s&&(!r||Cp(n,n[s],s,r))&&(delete n[s],i=!0)}}return M.isArray(t)?t.forEach(a):a(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const a=r[n];(!t||Cp(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const r=this,n={};return M.forEach(this,(i,a)=>{const o=M.findKey(n,a);if(o){r[o]=Oc(i),delete r[a];return}const s=t?Zte(a):String(a).trim();s!==a&&delete r[a],r[s]=Oc(i),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return M.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&M.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const n=(this[uO]=this[uO]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=$s(o);n[s]||(ere(i,o),n[s]=!0)}return M.isArray(t)?t.forEach(a):a(t),this}};Ht.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);M.reduceDescriptors(Ht.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});M.freezeMethods(Ht);function $p(e,t){const r=this||_u,n=t||r,i=Ht.from(n.headers);let a=n.data;return M.forEach(e,function(s){a=s.call(r,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function v2(e){return!!(e&&e.__CANCEL__)}function ds(e,t,r){ne.call(this,e??"canceled",ne.ERR_CANCELED,t,r),this.name="CanceledError"}M.inherits(ds,ne,{__CANCEL__:!0});function g2(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new ne("Request failed with status code "+r.status,[ne.ERR_BAD_REQUEST,ne.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function tre(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function rre(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),f=n[a];o||(o=u),r[i]=l,n[i]=u;let c=a,d=0;for(;c!==i;)d+=r[c++],c=c%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-o<t)return;const h=f&&u-f;return h?Math.round(d*1e3/h):void 0}}function nre(e,t){let r=0,n=1e3/t,i,a;const o=(u,f=Date.now())=>{r=f,i=null,a&&(clearTimeout(a),a=null),e(...u)};return[(...u)=>{const f=Date.now(),c=f-r;c>=n?o(u,f):(i=u,a||(a=setTimeout(()=>{a=null,o(i)},n-c)))},()=>i&&o(i)]}const nd=(e,t,r=3)=>{let n=0;const i=rre(50,250);return nre(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=o-n,u=i(l),f=o<=s;n=o;const c={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&f?(s-o)/u:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(c)},r)},cO=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},fO=e=>(...t)=>M.asap(()=>e(...t)),ire=wt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,wt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(wt.origin),wt.navigator&&/(msie|trident)/i.test(wt.navigator.userAgent)):()=>!0,are=wt.hasStandardBrowserEnv?{write(e,t,r,n,i,a,o){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];M.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),M.isString(n)&&s.push(`path=${n}`),M.isString(i)&&s.push(`domain=${i}`),a===!0&&s.push("secure"),M.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function ore(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function sre(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function b2(e,t,r){let n=!ore(t);return e&&(n||r==!1)?sre(e,t):t}const dO=e=>e instanceof Ht?{...e}:e;function ma(e,t){t=t||{};const r={};function n(u,f,c,d){return M.isPlainObject(u)&&M.isPlainObject(f)?M.merge.call({caseless:d},u,f):M.isPlainObject(f)?M.merge({},f):M.isArray(f)?f.slice():f}function i(u,f,c,d){if(M.isUndefined(f)){if(!M.isUndefined(u))return n(void 0,u,c,d)}else return n(u,f,c,d)}function a(u,f){if(!M.isUndefined(f))return n(void 0,f)}function o(u,f){if(M.isUndefined(f)){if(!M.isUndefined(u))return n(void 0,u)}else return n(void 0,f)}function s(u,f,c){if(c in t)return n(u,f);if(c in e)return n(void 0,u)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,f,c)=>i(dO(u),dO(f),c,!0)};return M.forEach(Object.keys({...e,...t}),function(f){const c=l[f]||i,d=c(e[f],t[f],f);M.isUndefined(d)&&c!==s||(r[f]=d)}),r}const x2=e=>{const t=ma({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;if(t.headers=o=Ht.from(o),t.url=p2(b2(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),M.isFormData(r)){if(wt.hasStandardBrowserEnv||wt.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(M.isFunction(r.getHeaders)){const l=r.getHeaders(),u=["content-type","content-length"];Object.entries(l).forEach(([f,c])=>{u.includes(f.toLowerCase())&&o.set(f,c)})}}if(wt.hasStandardBrowserEnv&&(n&&M.isFunction(n)&&(n=n(t)),n||n!==!1&&ire(t.url))){const l=i&&a&&are.read(a);l&&o.set(i,l)}return t},lre=typeof XMLHttpRequest<"u",ure=lre&&function(e){return new Promise(function(r,n){const i=x2(e);let a=i.data;const o=Ht.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,f,c,d,h,p;function m(){h&&h(),p&&p(),i.cancelToken&&i.cancelToken.unsubscribe(f),i.signal&&i.signal.removeEventListener("abort",f)}let y=new XMLHttpRequest;y.open(i.method.toUpperCase(),i.url,!0),y.timeout=i.timeout;function v(){if(!y)return;const b=Ht.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),x={data:!s||s==="text"||s==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:b,config:e,request:y};g2(function(_){r(_),m()},function(_){n(_),m()},x),y=null}"onloadend"in y?y.onloadend=v:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(v)},y.onabort=function(){y&&(n(new ne("Request aborted",ne.ECONNABORTED,e,y)),y=null)},y.onerror=function(w){const x=w&&w.message?w.message:"Network Error",S=new ne(x,ne.ERR_NETWORK,e,y);S.event=w||null,n(S),y=null},y.ontimeout=function(){let w=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const x=i.transitional||m2;i.timeoutErrorMessage&&(w=i.timeoutErrorMessage),n(new ne(w,x.clarifyTimeoutError?ne.ETIMEDOUT:ne.ECONNABORTED,e,y)),y=null},a===void 0&&o.setContentType(null),"setRequestHeader"in y&&M.forEach(o.toJSON(),function(w,x){y.setRequestHeader(x,w)}),M.isUndefined(i.withCredentials)||(y.withCredentials=!!i.withCredentials),s&&s!=="json"&&(y.responseType=i.responseType),u&&([d,p]=nd(u,!0),y.addEventListener("progress",d)),l&&y.upload&&([c,h]=nd(l),y.upload.addEventListener("progress",c),y.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(f=b=>{y&&(n(!b||b.type?new ds(null,e,y):b),y.abort(),y=null)},i.cancelToken&&i.cancelToken.subscribe(f),i.signal&&(i.signal.aborted?f():i.signal.addEventListener("abort",f)));const g=tre(i.url);if(g&&wt.protocols.indexOf(g)===-1){n(new ne("Unsupported protocol "+g+":",ne.ERR_BAD_REQUEST,e));return}y.send(a||null)})},cre=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const a=function(u){if(!i){i=!0,s();const f=u instanceof Error?u:this.reason;n.abort(f instanceof ne?f:new ds(f instanceof Error?f.message:f))}};let o=t&&setTimeout(()=>{o=null,a(new ne(`timeout ${t} of ms exceeded`,ne.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a));const{signal:l}=n;return l.unsubscribe=()=>M.asap(s),l}},fre=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,i;for(;n<r;)i=n+t,yield e.slice(n,i),n=i},dre=async function*(e,t){for await(const r of hre(e))yield*fre(r,t)},hre=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},hO=(e,t,r,n)=>{const i=dre(e,t);let a=0,o,s=l=>{o||(o=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:u,value:f}=await i.next();if(u){s(),l.close();return}let c=f.byteLength;if(r){let d=a+=c;r(d)}l.enqueue(new Uint8Array(f))}catch(u){throw s(u),u}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},pO=64*1024,{isFunction:oc}=M,pre=(({Request:e,Response:t})=>({Request:e,Response:t}))(M.global),{ReadableStream:mO,TextEncoder:yO}=M.global,vO=(e,...t)=>{try{return!!e(...t)}catch{return!1}},mre=e=>{e=M.merge.call({skipUndefined:!0},pre,e);const{fetch:t,Request:r,Response:n}=e,i=t?oc(t):typeof fetch=="function",a=oc(r),o=oc(n);if(!i)return!1;const s=i&&oc(mO),l=i&&(typeof yO=="function"?(p=>m=>p.encode(m))(new yO):async p=>new Uint8Array(await new r(p).arrayBuffer())),u=a&&s&&vO(()=>{let p=!1;const m=new r(wt.origin,{body:new mO,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!m}),f=o&&s&&vO(()=>M.isReadableStream(new n("").body)),c={stream:f&&(p=>p.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!c[p]&&(c[p]=(m,y)=>{let v=m&&m[p];if(v)return v.call(m);throw new ne(`Response type '${p}' is not supported`,ne.ERR_NOT_SUPPORT,y)})});const d=async p=>{if(p==null)return 0;if(M.isBlob(p))return p.size;if(M.isSpecCompliantForm(p))return(await new r(wt.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(M.isArrayBufferView(p)||M.isArrayBuffer(p))return p.byteLength;if(M.isURLSearchParams(p)&&(p=p+""),M.isString(p))return(await l(p)).byteLength},h=async(p,m)=>{const y=M.toFiniteNumber(p.getContentLength());return y??d(m)};return async p=>{let{url:m,method:y,data:v,signal:g,cancelToken:b,timeout:w,onDownloadProgress:x,onUploadProgress:S,responseType:_,headers:P,withCredentials:A="same-origin",fetchOptions:C}=x2(p),N=t||fetch;_=_?(_+"").toLowerCase():"text";let $=cre([g,b&&b.toAbortSignal()],w),L=null;const I=$&&$.unsubscribe&&(()=>{$.unsubscribe()});let R;try{if(S&&u&&y!=="get"&&y!=="head"&&(R=await h(P,v))!==0){let K=new r(m,{method:"POST",body:v,duplex:"half"}),H;if(M.isFormData(v)&&(H=K.headers.get("content-type"))&&P.setContentType(H),K.body){const[J,le]=cO(R,nd(fO(S)));v=hO(K.body,pO,J,le)}}M.isString(A)||(A=A?"include":"omit");const B=a&&"credentials"in r.prototype,z={...C,signal:$,method:y.toUpperCase(),headers:P.normalize().toJSON(),body:v,duplex:"half",credentials:B?A:void 0};L=a&&new r(m,z);let k=await(a?N(L,C):N(m,z));const F=f&&(_==="stream"||_==="response");if(f&&(x||F&&I)){const K={};["status","statusText","headers"].forEach(Oe=>{K[Oe]=k[Oe]});const H=M.toFiniteNumber(k.headers.get("content-length")),[J,le]=x&&cO(H,nd(fO(x),!0))||[];k=new n(hO(k.body,pO,J,()=>{le&&le(),I&&I()}),K)}_=_||"text";let U=await c[M.findKey(c,_)||"text"](k,p);return!F&&I&&I(),await new Promise((K,H)=>{g2(K,H,{data:U,headers:Ht.from(k.headers),status:k.status,statusText:k.statusText,config:p,request:L})})}catch(B){throw I&&I(),B&&B.name==="TypeError"&&/Load failed|fetch/i.test(B.message)?Object.assign(new ne("Network Error",ne.ERR_NETWORK,p,L),{cause:B.cause||B}):ne.from(B,B&&B.code,p,L)}}},yre=new Map,w2=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:i}=t,a=[n,i,r];let o=a.length,s=o,l,u,f=yre;for(;s--;)l=a[s],u=f.get(l),u===void 0&&f.set(l,u=s?new Map:mre(t)),f=u;return u};w2();const k0={http:Nte,xhr:ure,fetch:{get:w2}};M.forEach(k0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const gO=e=>`- ${e}`,vre=e=>M.isFunction(e)||e===null||e===!1;function gre(e,t){e=M.isArray(e)?e:[e];const{length:r}=e;let n,i;const a={};for(let o=0;o<r;o++){n=e[o];let s;if(i=n,!vre(n)&&(i=k0[(s=String(n)).toLowerCase()],i===void 0))throw new ne(`Unknown adapter '${s}'`);if(i&&(M.isFunction(i)||(i=i.get(t))))break;a[s||"#"+o]=i}if(!i){const o=Object.entries(a).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=r?o.length>1?`since :
`+o.map(gO).join(`
`):" "+gO(o[0]):"as no adapter specified";throw new ne("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i}const S2={getAdapter:gre,adapters:k0};function kp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ds(null,e)}function bO(e){return kp(e),e.headers=Ht.from(e.headers),e.data=$p.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),S2.getAdapter(e.adapter||_u.adapter,e)(e).then(function(n){return kp(e),n.data=$p.call(e,e.transformResponse,n),n.headers=Ht.from(n.headers),n},function(n){return v2(n)||(kp(e),n&&n.response&&(n.response.data=$p.call(e,e.transformResponse,n.response),n.response.headers=Ht.from(n.response.headers))),Promise.reject(n)})}const O2="1.13.2",Ph={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ph[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const xO={};Ph.transitional=function(t,r,n){function i(a,o){return"[Axios v"+O2+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return(a,o,s)=>{if(t===!1)throw new ne(i(o," has been removed"+(r?" in "+r:"")),ne.ERR_DEPRECATED);return r&&!xO[o]&&(xO[o]=!0,console.warn(i(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,o,s):!0}};Ph.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function bre(e,t,r){if(typeof e!="object")throw new ne("options must be an object",ne.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const a=n[i],o=t[a];if(o){const s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new ne("option "+a+" must be "+l,ne.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ne("Unknown option "+a,ne.ERR_BAD_OPTION)}}const _c={assertOptions:bre,validators:Ph},Rr=_c.validators;let ra=class{constructor(t){this.defaults=t||{},this.interceptors={request:new lO,response:new lO}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=`
`+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=ma(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:a}=r;n!==void 0&&_c.assertOptions(n,{silentJSONParsing:Rr.transitional(Rr.boolean),forcedJSONParsing:Rr.transitional(Rr.boolean),clarifyTimeoutError:Rr.transitional(Rr.boolean)},!1),i!=null&&(M.isFunction(i)?r.paramsSerializer={serialize:i}:_c.assertOptions(i,{encode:Rr.function,serialize:Rr.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),_c.assertOptions(r,{baseUrl:Rr.spelling("baseURL"),withXsrfToken:Rr.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=a&&M.merge(a.common,a[r.method]);a&&M.forEach(["delete","get","head","post","put","patch","common"],p=>{delete a[p]}),r.headers=Ht.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(r)===!1||(l=l&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let f,c=0,d;if(!l){const p=[bO.bind(this),void 0];for(p.unshift(...s),p.push(...u),d=p.length,f=Promise.resolve(r);c<d;)f=f.then(p[c++],p[c++]);return f}d=s.length;let h=r;for(;c<d;){const p=s[c++],m=s[c++];try{h=p(h)}catch(y){m.call(this,y);break}}try{f=bO.call(this,h)}catch(p){return Promise.reject(p)}for(c=0,d=u.length;c<d;)f=f.then(u[c++],u[c++]);return f}getUri(t){t=ma(this.defaults,t);const r=b2(t.baseURL,t.url,t.allowAbsoluteUrls);return p2(r,t.params,t.paramsSerializer)}};M.forEach(["delete","get","head","options"],function(t){ra.prototype[t]=function(r,n){return this.request(ma(n||{},{method:t,url:r,data:(n||{}).data}))}});M.forEach(["post","put","patch"],function(t){function r(n){return function(a,o,s){return this.request(ma(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:o}))}}ra.prototype[t]=r(),ra.prototype[t+"Form"]=r(!0)});let xre=class _2{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const n=this;this.promise.then(i=>{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](i);n._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{n.subscribe(s),a=s}).then(i);return o.cancel=function(){n.unsubscribe(a)},o},t(function(a,o,s){n.reason||(n.reason=new ds(a,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new _2(function(i){t=i}),cancel:t}}};function wre(e){return function(r){return e.apply(null,r)}}function Sre(e){return M.isObject(e)&&e.isAxiosError===!0}const xv={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(xv).forEach(([e,t])=>{xv[t]=e});function P2(e){const t=new ra(e),r=r2(ra.prototype.request,t);return M.extend(r,ra.prototype,t,{allOwnKeys:!0}),M.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return P2(ma(e,i))},r}const Ke=P2(_u);Ke.Axios=ra;Ke.CanceledError=ds;Ke.CancelToken=xre;Ke.isCancel=v2;Ke.VERSION=O2;Ke.toFormData=_h;Ke.AxiosError=ne;Ke.Cancel=Ke.CanceledError;Ke.all=function(t){return Promise.all(t)};Ke.spread=wre;Ke.isAxiosError=Sre;Ke.mergeConfig=ma;Ke.AxiosHeaders=Ht;Ke.formToJSON=e=>y2(M.isHTMLForm(e)?new FormData(e):e);Ke.getAdapter=S2.getAdapter;Ke.HttpStatusCode=xv;Ke.default=Ke;const{Axios:zre,AxiosError:Wre,CanceledError:Hre,isCancel:qre,CancelToken:Kre,VERSION:Vre,all:Gre,Cancel:Xre,isAxiosError:Qre,spread:Yre,toFormData:Jre,AxiosHeaders:Zre,HttpStatusCode:ene,formToJSON:tne,getAdapter:rne,mergeConfig:nne}=Ke,A2="http://localhost:8000",de=Ke.create({baseURL:`${A2}/api`,headers:{"Content-Type":"application/json"}}),Pc={list:e=>de.get("/species",{params:e}),get:e=>de.get(`/species/${e}`),create:e=>de.post("/species",e),update:(e,t)=>de.put(`/species/${e}`,t),delete:e=>de.delete(`/species/${e}`),import:e=>{const t=new FormData;return t.append("file",e),de.post("/species/import",t,{headers:{"Content-Type":"multipart/form-data"}})},genera:()=>de.get("/species/genera/list")},ki={list:e=>de.get("/images",{params:e}),get:e=>de.get(`/images/${e}`),delete:e=>de.delete(`/images/${e}`),bulkDelete:e=>de.post("/images/bulk-delete",e),sources:()=>de.get("/images/sources"),licenses:()=>de.get("/images/licenses")},Ls={list:e=>de.get("/jobs",{params:e}),get:e=>de.get(`/jobs/${e}`),create:e=>de.post("/jobs",e),progress:e=>de.get(`/jobs/${e}/progress`),pause:e=>de.post(`/jobs/${e}/pause`),resume:e=>de.post(`/jobs/${e}/resume`),cancel:e=>de.post(`/jobs/${e}/cancel`)},el={list:e=>de.get("/exports",{params:e}),get:e=>de.get(`/exports/${e}`),create:e=>de.post("/exports",e),preview:e=>de.post("/exports/preview",e),progress:e=>de.get(`/exports/${e}/progress`),download:e=>`${A2}/api/exports/${e}/download`,delete:e=>de.delete(`/exports/${e}`)},wv={list:()=>de.get("/sources"),get:e=>de.get(`/sources/${e}`),update:(e,t)=>de.put(`/sources/${e}`,{source:e,...t}),test:e=>de.post(`/sources/${e}/test`),delete:e=>de.delete(`/sources/${e}`)},Ore={get:()=>de.get("/stats"),sources:()=>de.get("/stats/sources"),species:e=>de.get("/stats/species",{params:e})},wO=["#22c55e","#3b82f6","#f59e0b","#ef4444","#8b5cf6","#ec4899"];function sc({title:e,value:t,icon:r,color:n}){return O.jsx("div",{className:"bg-white rounded-lg shadow p-6",children:O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsxs("div",{children:[O.jsx("p",{className:"text-sm text-gray-500",children:e}),O.jsx("p",{className:"text-2xl font-bold mt-1",children:t})]}),O.jsx("div",{className:`p-3 rounded-full ${n}`,children:O.jsx(r,{className:"w-6 h-6 text-white"})})]})})}function _re(){const{data:e,isLoading:t}=zr({queryKey:["stats"],queryFn:()=>Ore.get().then(i=>i.data),refetchInterval:5e3});if(t)return O.jsx("div",{className:"flex items-center justify-center h-64",children:O.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-green-600"})});if(!e)return O.jsx("div",{children:"Failed to load stats"});const r=e.sources.map(i=>({name:i.source,downloaded:i.downloaded,pending:i.pending,rejected:i.rejected})),n=e.licenses.map((i,a)=>({name:i.license,value:i.count,color:wO[a%wO.length]}));return O.jsxs("div",{className:"space-y-6",children:[O.jsx("h1",{className:"text-2xl font-bold",children:"Dashboard"}),O.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[O.jsx(sc,{title:"Total Species",value:e.total_species.toLocaleString(),icon:_g,color:"bg-green-500"}),O.jsx(sc,{title:"Downloaded Images",value:e.images_downloaded.toLocaleString(),icon:vA,color:"bg-blue-500"}),O.jsx(sc,{title:"Pending Images",value:e.images_pending.toLocaleString(),icon:So,color:"bg-yellow-500"}),O.jsx(sc,{title:"Disk Usage",value:`${e.disk_usage_mb.toFixed(1)} MB`,icon:XN,color:"bg-purple-500"})]}),O.jsxs("div",{className:"bg-white rounded-lg shadow p-6",children:[O.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Jobs Status"}),O.jsxs("div",{className:"flex gap-6",children:[O.jsxs("div",{className:"flex items-center gap-2",children:[O.jsx("div",{className:"w-3 h-3 rounded-full bg-blue-500 animate-pulse"}),O.jsxs("span",{children:["Running: ",e.jobs.running]})]}),O.jsxs("div",{className:"flex items-center gap-2",children:[O.jsx(So,{className:"w-4 h-4 text-yellow-500"}),O.jsxs("span",{children:["Pending: ",e.jobs.pending]})]}),O.jsxs("div",{className:"flex items-center gap-2",children:[O.jsx(Od,{className:"w-4 h-4 text-green-500"}),O.jsxs("span",{children:["Completed: ",e.jobs.completed]})]}),O.jsxs("div",{className:"flex items-center gap-2",children:[O.jsx(Pg,{className:"w-4 h-4 text-red-500"}),O.jsxs("span",{children:["Failed: ",e.jobs.failed]})]})]})]}),O.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[O.jsxs("div",{className:"bg-white rounded-lg shadow p-6",children:[O.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Images by Source"}),r.length>0?O.jsx(_1,{width:"100%",height:300,children:O.jsxs(Kee,{data:r,children:[O.jsx(gh,{dataKey:"name"}),O.jsx(bh,{}),O.jsx(Ar,{}),O.jsx(pn,{dataKey:"downloaded",fill:"#22c55e",name:"Downloaded"}),O.jsx(pn,{dataKey:"pending",fill:"#f59e0b",name:"Pending"}),O.jsx(pn,{dataKey:"rejected",fill:"#ef4444",name:"Rejected"})]})}):O.jsx("div",{className:"h-[300px] flex items-center justify-center text-gray-400",children:"No data yet"})]}),O.jsxs("div",{className:"bg-white rounded-lg shadow p-6",children:[O.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Images by License"}),n.length>0?O.jsx(_1,{width:"100%",height:300,children:O.jsxs(Vee,{children:[O.jsx(Tn,{data:n,dataKey:"value",nameKey:"name",cx:"50%",cy:"50%",outerRadius:100,label:({name:i,percent:a})=>`${i} (${(a*100).toFixed(0)}%)`,children:n.map((i,a)=>O.jsx(Kd,{fill:i.color},a))}),O.jsx(Ar,{})]})}):O.jsx("div",{className:"h-[300px] flex items-center justify-center text-gray-400",children:"No data yet"})]})]}),O.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[O.jsxs("div",{className:"bg-white rounded-lg shadow p-6",children:[O.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Top Species"}),O.jsxs("table",{className:"w-full",children:[O.jsx("thead",{children:O.jsxs("tr",{className:"text-left text-sm text-gray-500",children:[O.jsx("th",{className:"pb-2",children:"Species"}),O.jsx("th",{className:"pb-2 text-right",children:"Images"})]})}),O.jsxs("tbody",{children:[e.top_species.map(i=>O.jsxs("tr",{className:"border-t",children:[O.jsxs("td",{className:"py-2",children:[O.jsx("div",{className:"font-medium",children:i.scientific_name}),i.common_name&&O.jsx("div",{className:"text-sm text-gray-500",children:i.common_name})]}),O.jsx("td",{className:"py-2 text-right",children:i.image_count})]},i.id)),e.top_species.length===0&&O.jsx("tr",{children:O.jsx("td",{colSpan:2,className:"py-4 text-center text-gray-400",children:"No species yet"})})]})]})]}),O.jsxs("div",{className:"bg-white rounded-lg shadow p-6",children:[O.jsxs("h2",{className:"text-lg font-semibold mb-4 flex items-center gap-2",children:[O.jsx(Og,{className:"w-5 h-5 text-yellow-500"}),"Under-represented Species"]}),O.jsx("p",{className:"text-sm text-gray-500 mb-4",children:"Species with fewer than 100 images"}),O.jsxs("table",{className:"w-full",children:[O.jsx("thead",{children:O.jsxs("tr",{className:"text-left text-sm text-gray-500",children:[O.jsx("th",{className:"pb-2",children:"Species"}),O.jsx("th",{className:"pb-2 text-right",children:"Images"})]})}),O.jsxs("tbody",{children:[e.under_represented.map(i=>O.jsxs("tr",{className:"border-t",children:[O.jsxs("td",{className:"py-2",children:[O.jsx("div",{className:"font-medium",children:i.scientific_name}),i.common_name&&O.jsx("div",{className:"text-sm text-gray-500",children:i.common_name})]}),O.jsx("td",{className:"py-2 text-right text-yellow-600",children:i.image_count})]},i.id)),e.under_represented.length===0&&O.jsx("tr",{children:O.jsx("td",{colSpan:2,className:"py-4 text-center text-gray-400",children:"All species have 100+ images"})})]})]})]})]})]})}function Pre(){var w,x;const e=Pn(),t=j.useRef(null),[r,n]=j.useState(1),[i,a]=j.useState(""),[o,s]=j.useState([]),[l,u]=j.useState(!1),[f,c]=j.useState(!1),{data:d,isLoading:h}=zr({queryKey:["species",r,i],queryFn:()=>Pc.list({page:r,page_size:50,search:i||void 0}).then(S=>S.data)}),p=zt({mutationFn:S=>Pc.import(S),onSuccess:S=>{e.invalidateQueries({queryKey:["species"]}),alert(`Imported ${S.data.imported} species, skipped ${S.data.skipped}`)}}),m=zt({mutationFn:S=>Pc.delete(S),onSuccess:()=>{e.invalidateQueries({queryKey:["species"]})}}),y=zt({mutationFn:S=>Ls.create(S),onSuccess:()=>{c(!1),s([]),alert("Scrape job created!")}}),v=S=>{var P;const _=(P=S.target.files)==null?void 0:P[0];_&&p.mutate(_)},g=()=>{d&&(o.length===d.items.length?s([]):s(d.items.map(S=>S.id)))},b=S=>{s(_=>_.includes(S)?_.filter(P=>P!==S):[..._,S])};return O.jsxs("div",{className:"space-y-6",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("h1",{className:"text-2xl font-bold",children:"Species"}),O.jsxs("div",{className:"flex gap-2",children:[O.jsxs("button",{onClick:()=>{var S;return(S=t.current)==null?void 0:S.click()},className:"flex items-center gap-2 px-4 py-2 bg-gray-100 rounded-lg hover:bg-gray-200",children:[O.jsx(eM,{className:"w-4 h-4"}),"Import CSV"]}),O.jsx("input",{ref:t,type:"file",accept:".csv",onChange:v,className:"hidden"}),O.jsxs("button",{onClick:()=>u(!0),className:"flex items-center gap-2 px-4 py-2 bg-green-600 text-white rounded-lg hover:bg-green-700",children:[O.jsx(JN,{className:"w-4 h-4"}),"Add Species"]})]})]}),O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsxs("div",{className:"relative",children:[O.jsx(bA,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400"}),O.jsx("input",{type:"text",placeholder:"Search species...",value:i,onChange:S=>{a(S.target.value),n(1)},className:"pl-10 pr-4 py-2 border rounded-lg w-80"})]}),o.length>0&&O.jsxs("div",{className:"flex items-center gap-4",children:[O.jsxs("span",{className:"text-sm text-gray-600",children:[o.length," selected"]}),O.jsxs("button",{onClick:()=>c(!0),className:"flex items-center gap-2 px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700",children:[O.jsx(ef,{className:"w-4 h-4"}),"Start Scrape"]})]})]}),O.jsx("div",{className:"bg-white rounded-lg shadow overflow-hidden",children:O.jsxs("table",{className:"w-full",children:[O.jsx("thead",{className:"bg-gray-50",children:O.jsxs("tr",{children:[O.jsx("th",{className:"px-4 py-3 text-left",children:O.jsx("input",{type:"checkbox",checked:(((w=d==null?void 0:d.items)==null?void 0:w.length)??0)>0&&o.length===(((x=d==null?void 0:d.items)==null?void 0:x.length)??0),onChange:g,className:"rounded"})}),O.jsx("th",{className:"px-4 py-3 text-left text-sm font-medium text-gray-600",children:"Scientific Name"}),O.jsx("th",{className:"px-4 py-3 text-left text-sm font-medium text-gray-600",children:"Common Name"}),O.jsx("th",{className:"px-4 py-3 text-left text-sm font-medium text-gray-600",children:"Genus"}),O.jsx("th",{className:"px-4 py-3 text-right text-sm font-medium text-gray-600",children:"Images"}),O.jsx("th",{className:"px-4 py-3 text-right text-sm font-medium text-gray-600",children:"Actions"})]})}),O.jsx("tbody",{children:h?O.jsx("tr",{children:O.jsx("td",{colSpan:6,className:"px-4 py-8 text-center text-gray-400",children:"Loading..."})}):(d==null?void 0:d.items.length)===0?O.jsx("tr",{children:O.jsx("td",{colSpan:6,className:"px-4 py-8 text-center text-gray-400",children:"No species found. Import a CSV to get started."})}):d==null?void 0:d.items.map(S=>O.jsxs("tr",{className:"border-t hover:bg-gray-50",children:[O.jsx("td",{className:"px-4 py-3",children:O.jsx("input",{type:"checkbox",checked:o.includes(S.id),onChange:()=>b(S.id),className:"rounded"})}),O.jsx("td",{className:"px-4 py-3 font-medium",children:S.scientific_name}),O.jsx("td",{className:"px-4 py-3 text-gray-600",children:S.common_name||"-"}),O.jsx("td",{className:"px-4 py-3 text-gray-600",children:S.genus||"-"}),O.jsx("td",{className:"px-4 py-3 text-right",children:O.jsx("span",{className:`inline-block px-2 py-1 rounded text-sm ${S.image_count>=100?"bg-green-100 text-green-700":S.image_count>0?"bg-yellow-100 text-yellow-700":"bg-gray-100 text-gray-600"}`,children:S.image_count})}),O.jsx("td",{className:"px-4 py-3 text-right",children:O.jsx("button",{onClick:()=>m.mutate(S.id),className:"p-1 text-red-500 hover:bg-red-50 rounded",children:O.jsx(tf,{className:"w-4 h-4"})})})]},S.id))})]})}),d&&d.pages>1&&O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsxs("span",{className:"text-sm text-gray-600",children:["Showing ",(r-1)*50+1," to ",Math.min(r*50,d.total)," of"," ",d.total]}),O.jsxs("div",{className:"flex gap-2",children:[O.jsx("button",{onClick:()=>n(S=>Math.max(1,S-1)),disabled:r===1,className:"p-2 rounded border disabled:opacity-50",children:O.jsx(pA,{className:"w-4 h-4"})}),O.jsxs("span",{className:"px-4 py-2",children:["Page ",r," of ",d.pages]}),O.jsx("button",{onClick:()=>n(S=>Math.min(d.pages,S+1)),disabled:r===d.pages,className:"p-2 rounded border disabled:opacity-50",children:O.jsx(mA,{className:"w-4 h-4"})})]})]}),l&&O.jsx(Are,{onClose:()=>u(!1)}),f&&O.jsx(Ere,{selectedIds:o,onClose:()=>c(!1),onSubmit:S=>{y.mutate({name:`Scrape ${o.length} species from ${S}`,source:S,species_ids:o})}})]})}function Are({onClose:e}){const t=Pn(),[r,n]=j.useState({scientific_name:"",common_name:"",genus:"",family:""}),i=zt({mutationFn:()=>Pc.create(r),onSuccess:()=>{t.invalidateQueries({queryKey:["species"]}),e()}});return O.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:O.jsxs("div",{className:"bg-white rounded-lg p-6 w-full max-w-md",children:[O.jsx("h2",{className:"text-xl font-bold mb-4",children:"Add Species"}),O.jsxs("div",{className:"space-y-4",children:[O.jsxs("div",{children:[O.jsx("label",{className:"block text-sm font-medium mb-1",children:"Scientific Name *"}),O.jsx("input",{type:"text",value:r.scientific_name,onChange:a=>n({...r,scientific_name:a.target.value}),className:"w-full px-3 py-2 border rounded-lg",placeholder:"e.g. Monstera deliciosa"})]}),O.jsxs("div",{children:[O.jsx("label",{className:"block text-sm font-medium mb-1",children:"Common Name"}),O.jsx("input",{type:"text",value:r.common_name,onChange:a=>n({...r,common_name:a.target.value}),className:"w-full px-3 py-2 border rounded-lg",placeholder:"e.g. Swiss Cheese Plant"})]}),O.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[O.jsxs("div",{children:[O.jsx("label",{className:"block text-sm font-medium mb-1",children:"Genus"}),O.jsx("input",{type:"text",value:r.genus,onChange:a=>n({...r,genus:a.target.value}),className:"w-full px-3 py-2 border rounded-lg",placeholder:"e.g. Monstera"})]}),O.jsxs("div",{children:[O.jsx("label",{className:"block text-sm font-medium mb-1",children:"Family"}),O.jsx("input",{type:"text",value:r.family,onChange:a=>n({...r,family:a.target.value}),className:"w-full px-3 py-2 border rounded-lg",placeholder:"e.g. Araceae"})]})]})]}),O.jsxs("div",{className:"flex justify-end gap-2 mt-6",children:[O.jsx("button",{onClick:e,className:"px-4 py-2 border rounded-lg hover:bg-gray-50",children:"Cancel"}),O.jsx("button",{onClick:()=>i.mutate(),disabled:!r.scientific_name,className:"px-4 py-2 bg-green-600 text-white rounded-lg hover:bg-green-700 disabled:opacity-50",children:"Add Species"})]})]})})}function Ere({selectedIds:e,onClose:t,onSubmit:r}){const[n,i]=j.useState("inaturalist"),a=[{value:"inaturalist",label:"iNaturalist/GBIF"},{value:"flickr",label:"Flickr"},{value:"wikimedia",label:"Wikimedia Commons"},{value:"trefle",label:"Trefle.io"}];return O.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:O.jsxs("div",{className:"bg-white rounded-lg p-6 w-full max-w-md",children:[O.jsx("h2",{className:"text-xl font-bold mb-4",children:"Start Scrape Job"}),O.jsxs("p",{className:"text-gray-600 mb-4",children:["Scrape images for ",e.length," selected species"]}),O.jsxs("div",{children:[O.jsx("label",{className:"block text-sm font-medium mb-2",children:"Select Source"}),O.jsx("div",{className:"space-y-2",children:a.map(o=>O.jsxs("label",{className:`flex items-center p-3 border rounded-lg cursor-pointer ${n===o.value?"border-green-500 bg-green-50":""}`,children:[O.jsx("input",{type:"radio",value:o.value,checked:n===o.value,onChange:s=>i(s.target.value),className:"mr-3"}),o.label]},o.value))})]}),O.jsxs("div",{className:"flex justify-end gap-2 mt-6",children:[O.jsx("button",{onClick:t,className:"px-4 py-2 border rounded-lg hover:bg-gray-50",children:"Cancel"}),O.jsx("button",{onClick:()=>r(n),className:"px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700",children:"Start Scrape"})]})]})})}function jre(){var b;const e=Pn(),[t,r]=j.useState(1),[n,i]=j.useState(""),[a,o]=j.useState({source:"",license:"",status:"downloaded",min_quality:void 0}),[s,l]=j.useState([]),[u,f]=j.useState(null),{data:c,isLoading:d}=zr({queryKey:["images",t,n,a],queryFn:()=>ki.list({page:t,page_size:48,search:n||void 0,source:a.source||void 0,license:a.license||void 0,status:a.status||void 0,min_quality:a.min_quality}).then(w=>w.data)}),{data:h}=zr({queryKey:["image-sources"],queryFn:()=>ki.sources().then(w=>w.data)}),{data:p}=zr({queryKey:["image-licenses"],queryFn:()=>ki.licenses().then(w=>w.data)}),{data:m}=zr({queryKey:["image",u],queryFn:()=>ki.get(u).then(w=>w.data),enabled:!!u}),y=zt({mutationFn:w=>ki.delete(w),onSuccess:()=>{e.invalidateQueries({queryKey:["images"]}),f(null)}}),v=zt({mutationFn:w=>ki.bulkDelete(w),onSuccess:()=>{e.invalidateQueries({queryKey:["images"]}),l([])}}),g=w=>{l(x=>x.includes(w)?x.filter(S=>S!==w):[...x,w])};return O.jsxs("div",{className:"space-y-6",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("h1",{className:"text-2xl font-bold",children:"Images"}),s.length>0&&O.jsxs("button",{onClick:()=>v.mutate(s),className:"flex items-center gap-2 px-4 py-2 bg-red-600 text-white rounded-lg hover:bg-red-700",children:[O.jsx(tf,{className:"w-4 h-4"}),"Delete ",s.length," images"]})]}),O.jsxs("div",{className:"flex flex-wrap gap-4",children:[O.jsxs("div",{className:"relative",children:[O.jsx(bA,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400"}),O.jsx("input",{type:"text",placeholder:"Search species...",value:n,onChange:w=>{i(w.target.value),r(1)},className:"pl-10 pr-4 py-2 border rounded-lg w-64"})]}),O.jsxs("select",{value:a.source,onChange:w=>o({...a,source:w.target.value}),className:"px-3 py-2 border rounded-lg",children:[O.jsx("option",{value:"",children:"All Sources"}),h==null?void 0:h.map(w=>O.jsx("option",{value:w,children:w},w))]}),O.jsxs("select",{value:a.license,onChange:w=>o({...a,license:w.target.value}),className:"px-3 py-2 border rounded-lg",children:[O.jsx("option",{value:"",children:"All Licenses"}),p==null?void 0:p.map(w=>O.jsx("option",{value:w,children:w},w))]}),O.jsxs("select",{value:a.status,onChange:w=>o({...a,status:w.target.value}),className:"px-3 py-2 border rounded-lg",children:[O.jsx("option",{value:"",children:"All Status"}),O.jsx("option",{value:"downloaded",children:"Downloaded"}),O.jsx("option",{value:"pending",children:"Pending"}),O.jsx("option",{value:"rejected",children:"Rejected"})]})]}),d?O.jsx("div",{className:"flex items-center justify-center h-64",children:O.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-green-600"})}):(c==null?void 0:c.items.length)===0?O.jsxs("div",{className:"flex flex-col items-center justify-center h-64 text-gray-400",children:[O.jsx(GN,{className:"w-12 h-12 mb-4"}),O.jsx("p",{children:"No images found"})]}):O.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-4 md:grid-cols-6 lg:grid-cols-8 gap-2",children:c==null?void 0:c.items.map(w=>O.jsxs("div",{className:`relative aspect-square bg-gray-100 rounded-lg overflow-hidden cursor-pointer group ${s.includes(w.id)?"ring-2 ring-green-500":""}`,onClick:()=>f(w.id),children:[w.local_path?O.jsx("img",{src:`/api/images/${w.id}/file`,alt:w.species_name||"",className:"w-full h-full object-cover",loading:"lazy"}):O.jsx("div",{className:"flex items-center justify-center h-full text-gray-400 text-xs",children:"Pending"}),O.jsx("div",{className:"absolute inset-0 bg-black/0 group-hover:bg-black/20 transition-colors"}),O.jsx("div",{className:"absolute top-1 left-1",children:O.jsx("input",{type:"checkbox",checked:s.includes(w.id),onChange:x=>{x.stopPropagation(),g(w.id)},className:"rounded opacity-0 group-hover:opacity-100 checked:opacity-100"})}),O.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/60 to-transparent p-1 opacity-0 group-hover:opacity-100 transition-opacity",children:O.jsx("p",{className:"text-white text-xs truncate",children:w.species_name})})]},w.id))}),c&&c.pages>1&&O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsxs("span",{className:"text-sm text-gray-600",children:[c.total," images"]}),O.jsxs("div",{className:"flex gap-2",children:[O.jsx("button",{onClick:()=>r(w=>Math.max(1,w-1)),disabled:t===1,className:"p-2 rounded border disabled:opacity-50",children:O.jsx(pA,{className:"w-4 h-4"})}),O.jsxs("span",{className:"px-4 py-2",children:["Page ",t," of ",c.pages]}),O.jsx("button",{onClick:()=>r(w=>Math.min(c.pages,w+1)),disabled:t===c.pages,className:"p-2 rounded border disabled:opacity-50",children:O.jsx(mA,{className:"w-4 h-4"})})]})]}),u&&m&&O.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-8",children:O.jsxs("div",{className:"bg-white rounded-lg w-full max-w-4xl max-h-full overflow-auto",children:[O.jsxs("div",{className:"flex justify-between items-center p-4 border-b",children:[O.jsx("h2",{className:"text-lg font-semibold",children:"Image Details"}),O.jsx("button",{onClick:()=>f(null),className:"p-1 hover:bg-gray-100 rounded",children:O.jsx(tM,{className:"w-5 h-5"})})]}),O.jsxs("div",{className:"grid grid-cols-2 gap-6 p-6",children:[O.jsx("div",{className:"aspect-square bg-gray-100 rounded-lg overflow-hidden",children:m.local_path?O.jsx("img",{src:`/api/images/${m.id}/file`,alt:m.species_name||"",className:"w-full h-full object-contain"}):O.jsx("div",{className:"flex items-center justify-center h-full text-gray-400",children:"Not downloaded"})}),O.jsxs("div",{className:"space-y-4",children:[O.jsxs("div",{children:[O.jsx("label",{className:"text-sm text-gray-500",children:"Species"}),O.jsx("p",{className:"font-medium",children:m.species_name})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-sm text-gray-500",children:"Source"}),O.jsx("p",{children:m.source})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-sm text-gray-500",children:"License"}),O.jsx("p",{children:m.license})]}),m.attribution&&O.jsxs("div",{children:[O.jsx("label",{className:"text-sm text-gray-500",children:"Attribution"}),O.jsx("p",{className:"text-sm",children:m.attribution})]}),O.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[O.jsxs("div",{children:[O.jsx("label",{className:"text-sm text-gray-500",children:"Dimensions"}),O.jsxs("p",{children:[m.width||"?"," x ",m.height||"?"]})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-sm text-gray-500",children:"Quality Score"}),O.jsx("p",{children:((b=m.quality_score)==null?void 0:b.toFixed(1))||"N/A"})]})]}),O.jsxs("div",{children:[O.jsx("label",{className:"text-sm text-gray-500",children:"Status"}),O.jsx("p",{children:O.jsx("span",{className:`inline-block px-2 py-1 rounded text-sm ${m.status==="downloaded"?"bg-green-100 text-green-700":m.status==="pending"?"bg-yellow-100 text-yellow-700":"bg-red-100 text-red-700"}`,children:m.status})})]}),O.jsxs("div",{className:"flex gap-2 pt-4",children:[O.jsxs("a",{href:m.url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 px-4 py-2 border rounded-lg hover:bg-gray-50",children:[O.jsx(qN,{className:"w-4 h-4"}),"View Original"]}),O.jsxs("button",{onClick:()=>y.mutate(m.id),className:"flex items-center gap-2 px-4 py-2 bg-red-600 text-white rounded-lg hover:bg-red-700",children:[O.jsx(tf,{className:"w-4 h-4"}),"Delete"]})]})]})]})]})})]})}function Tre(){const e=Pn(),{data:t,isLoading:r,refetch:n}=zr({queryKey:["jobs"],queryFn:()=>Ls.list({limit:100}).then(u=>u.data),refetchInterval:3e3}),i=zt({mutationFn:u=>Ls.pause(u),onSuccess:()=>e.invalidateQueries({queryKey:["jobs"]})}),a=zt({mutationFn:u=>Ls.resume(u),onSuccess:()=>e.invalidateQueries({queryKey:["jobs"]})}),o=zt({mutationFn:u=>Ls.cancel(u),onSuccess:()=>e.invalidateQueries({queryKey:["jobs"]})}),s=u=>{switch(u){case"running":return O.jsx(ef,{className:"w-4 h-4 text-blue-500"});case"pending":return O.jsx(So,{className:"w-4 h-4 text-yellow-500"});case"paused":return O.jsx(fx,{className:"w-4 h-4 text-gray-500"});case"completed":return O.jsx(Od,{className:"w-4 h-4 text-green-500"});case"failed":return O.jsx(Og,{className:"w-4 h-4 text-red-500"});default:return null}},l=u=>{switch(u){case"running":return"bg-blue-100 text-blue-700";case"pending":return"bg-yellow-100 text-yellow-700";case"paused":return"bg-gray-100 text-gray-700";case"completed":return"bg-green-100 text-green-700";case"failed":return"bg-red-100 text-red-700";default:return"bg-gray-100 text-gray-700"}};return O.jsxs("div",{className:"space-y-6",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("h1",{className:"text-2xl font-bold",children:"Jobs"}),O.jsxs("button",{onClick:()=>n(),className:"flex items-center gap-2 px-4 py-2 border rounded-lg hover:bg-gray-50",children:[O.jsx(gA,{className:"w-4 h-4"}),"Refresh"]})]}),r?O.jsx("div",{className:"flex items-center justify-center h-64",children:O.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-green-600"})}):(t==null?void 0:t.items.length)===0?O.jsxs("div",{className:"bg-white rounded-lg shadow p-8 text-center text-gray-400",children:[O.jsx(So,{className:"w-12 h-12 mx-auto mb-4"}),O.jsx("p",{children:"No jobs yet"}),O.jsx("p",{className:"text-sm mt-2",children:"Select species and start a scrape job to get started"})]}):O.jsx("div",{className:"space-y-4",children:t==null?void 0:t.items.map(u=>O.jsx("div",{className:"bg-white rounded-lg shadow p-6",children:O.jsxs("div",{className:"flex items-start justify-between",children:[O.jsxs("div",{className:"flex-1",children:[O.jsxs("div",{className:"flex items-center gap-3",children:[s(u.status),O.jsx("h3",{className:"font-semibold",children:u.name}),O.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${l(u.status)}`,children:u.status})]}),O.jsxs("div",{className:"mt-2 text-sm text-gray-600",children:[O.jsxs("span",{className:"mr-4",children:["Source: ",u.source]}),O.jsxs("span",{className:"mr-4",children:["Downloaded: ",u.images_downloaded]}),O.jsxs("span",{children:["Rejected: ",u.images_rejected]})]}),(u.status==="running"||u.status==="paused")&&u.progress_total>0&&O.jsxs("div",{className:"mt-4",children:[O.jsxs("div",{className:"flex justify-between text-sm text-gray-600 mb-1",children:[O.jsxs("span",{children:[u.progress_current," / ",u.progress_total," species"]}),O.jsxs("span",{children:[Math.round(u.progress_current/u.progress_total*100),"%"]})]}),O.jsx("div",{className:"h-2 bg-gray-200 rounded-full overflow-hidden",children:O.jsx("div",{className:`h-full rounded-full ${u.status==="running"?"bg-blue-500":"bg-gray-400"}`,style:{width:`${u.progress_current/u.progress_total*100}%`}})})]}),u.error_message&&O.jsxs("div",{className:"mt-2 text-sm text-red-600",children:["Error: ",u.error_message]}),O.jsxs("div",{className:"mt-2 text-xs text-gray-400",children:[u.started_at&&O.jsxs("span",{className:"mr-4",children:["Started: ",new Date(u.started_at).toLocaleString()]}),u.completed_at&&O.jsxs("span",{children:["Completed: ",new Date(u.completed_at).toLocaleString()]})]})]}),O.jsxs("div",{className:"flex gap-2 ml-4",children:[u.status==="running"&&O.jsx("button",{onClick:()=>i.mutate(u.id),className:"p-2 text-gray-600 hover:bg-gray-100 rounded",title:"Pause",children:O.jsx(fx,{className:"w-5 h-5"})}),u.status==="paused"&&O.jsx("button",{onClick:()=>a.mutate(u.id),className:"p-2 text-blue-600 hover:bg-blue-50 rounded",title:"Resume",children:O.jsx(ef,{className:"w-5 h-5"})}),(u.status==="running"||u.status==="paused"||u.status==="pending")&&O.jsx("button",{onClick:()=>o.mutate(u.id),className:"p-2 text-red-600 hover:bg-red-50 rounded",title:"Cancel",children:O.jsx(Pg,{className:"w-5 h-5"})})]})]})},u.id))})]})}function Cre(){const e=Pn(),[t,r]=j.useState(!1),{data:n,isLoading:i}=zr({queryKey:["exports"],queryFn:()=>el.list({limit:50}).then(l=>l.data),refetchInterval:5e3}),a=zt({mutationFn:l=>el.delete(l),onSuccess:()=>e.invalidateQueries({queryKey:["exports"]})}),o=l=>{switch(l){case"generating":return O.jsx(So,{className:"w-4 h-4 text-blue-500 animate-pulse"});case"completed":return O.jsx(Od,{className:"w-4 h-4 text-green-500"});case"failed":return O.jsx(Og,{className:"w-4 h-4 text-red-500"});default:return O.jsx(So,{className:"w-4 h-4 text-gray-400"})}},s=l=>l?l<1024?`${l} B`:l<1024*1024?`${(l/1024).toFixed(1)} KB`:l<1024*1024*1024?`${(l/1024/1024).toFixed(1)} MB`:`${(l/1024/1024/1024).toFixed(1)} GB`:"N/A";return O.jsxs("div",{className:"space-y-6",children:[O.jsxs("div",{className:"flex items-center justify-between",children:[O.jsx("h1",{className:"text-2xl font-bold",children:"Export Dataset"}),O.jsxs("button",{onClick:()=>r(!0),className:"flex items-center gap-2 px-4 py-2 bg-green-600 text-white rounded-lg hover:bg-green-700",children:[O.jsx(cx,{className:"w-4 h-4"}),"Create Export"]})]}),O.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-lg p-4",children:[O.jsx("h3",{className:"font-medium text-blue-800",children:"Export Format"}),O.jsx("p",{className:"text-sm text-blue-700 mt-1",children:"Exports are created in Create ML-compatible format with Training and Testing folders. Each species has its own subfolder with images."})]}),i?O.jsx("div",{className:"flex items-center justify-center h-64",children:O.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-green-600"})}):(n==null?void 0:n.items.length)===0?O.jsxs("div",{className:"bg-white rounded-lg shadow p-8 text-center text-gray-400",children:[O.jsx(cx,{className:"w-12 h-12 mx-auto mb-4"}),O.jsx("p",{children:"No exports yet"}),O.jsx("p",{className:"text-sm mt-2",children:"Create an export to download your dataset for CoreML training"})]}):O.jsx("div",{className:"space-y-4",children:n==null?void 0:n.items.map(l=>O.jsx("div",{className:"bg-white rounded-lg shadow p-6",children:O.jsxs("div",{className:"flex items-start justify-between",children:[O.jsxs("div",{className:"flex-1",children:[O.jsxs("div",{className:"flex items-center gap-3",children:[o(l.status),O.jsx("h3",{className:"font-semibold",children:l.name})]}),O.jsxs("div",{className:"mt-2 grid grid-cols-4 gap-4 text-sm",children:[O.jsxs("div",{children:[O.jsx("span",{className:"text-gray-500",children:"Species:"})," ",l.species_count??"N/A"]}),O.jsxs("div",{children:[O.jsx("span",{className:"text-gray-500",children:"Images:"})," ",l.image_count??"N/A"]}),O.jsxs("div",{children:[O.jsx("span",{className:"text-gray-500",children:"Size:"})," ",s(l.file_size)]}),O.jsxs("div",{children:[O.jsx("span",{className:"text-gray-500",children:"Split:"})," ",Math.round(l.train_split*100),"% / ",Math.round((1-l.train_split)*100),"%"]})]}),l.error_message&&O.jsxs("div",{className:"mt-2 text-sm text-red-600",children:["Error: ",l.error_message]}),O.jsxs("div",{className:"mt-2 text-xs text-gray-400",children:["Created: ",new Date(l.created_at).toLocaleString(),l.completed_at&&O.jsxs("span",{className:"ml-4",children:["Completed: ",new Date(l.completed_at).toLocaleString()]})]})]}),O.jsxs("div",{className:"flex gap-2 ml-4",children:[l.status==="completed"&&O.jsxs("a",{href:el.download(l.id),className:"flex items-center gap-2 px-4 py-2 bg-green-600 text-white rounded-lg hover:bg-green-700",children:[O.jsx(yA,{className:"w-4 h-4"}),"Download"]}),O.jsx("button",{onClick:()=>a.mutate(l.id),className:"p-2 text-red-600 hover:bg-red-50 rounded",title:"Delete",children:O.jsx(tf,{className:"w-5 h-5"})})]})]})},l.id))}),t&&O.jsx($re,{onClose:()=>r(!1)})]})}function $re({onClose:e}){const t=Pn(),[r,n]=j.useState({name:`Export ${new Date().toLocaleDateString()}`,min_images:100,train_split:.8,licenses:[],min_quality:void 0}),{data:i}=zr({queryKey:["image-licenses"],queryFn:()=>ki.licenses().then(l=>l.data)}),a=zt({mutationFn:()=>el.preview({name:r.name,filter_criteria:{min_images_per_species:r.min_images,licenses:r.licenses.length>0?r.licenses:void 0,min_quality:r.min_quality},train_split:r.train_split})}),o=zt({mutationFn:()=>el.create({name:r.name,filter_criteria:{min_images_per_species:r.min_images,licenses:r.licenses.length>0?r.licenses:void 0,min_quality:r.min_quality},train_split:r.train_split}),onSuccess:()=>{t.invalidateQueries({queryKey:["exports"]}),e()}}),s=l=>{n(u=>({...u,licenses:u.licenses.includes(l)?u.licenses.filter(f=>f!==l):[...u.licenses,l]}))};return O.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",children:O.jsxs("div",{className:"bg-white rounded-lg p-6 w-full max-w-lg",children:[O.jsx("h2",{className:"text-xl font-bold mb-4",children:"Create Export"}),O.jsxs("div",{className:"space-y-4",children:[O.jsxs("div",{children:[O.jsx("label",{className:"block text-sm font-medium mb-1",children:"Export Name"}),O.jsx("input",{type:"text",value:r.name,onChange:l=>n({...r,name:l.target.value}),className:"w-full px-3 py-2 border rounded-lg"})]}),O.jsxs("div",{children:[O.jsx("label",{className:"block text-sm font-medium mb-1",children:"Minimum Images per Species"}),O.jsx("input",{type:"number",value:r.min_images,onChange:l=>n({...r,min_images:parseInt(l.target.value)||0}),className:"w-full px-3 py-2 border rounded-lg",min:1}),O.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"Species with fewer images will be excluded"})]}),O.jsxs("div",{children:[O.jsx("label",{className:"block text-sm font-medium mb-1",children:"Train/Test Split"}),O.jsxs("div",{className:"flex items-center gap-4",children:[O.jsx("input",{type:"range",value:r.train_split,onChange:l=>n({...r,train_split:parseFloat(l.target.value)}),min:.5,max:.95,step:.05,className:"flex-1"}),O.jsxs("span",{className:"text-sm w-20 text-right",children:[Math.round(r.train_split*100),"% /"," ",Math.round((1-r.train_split)*100),"%"]})]})]}),O.jsxs("div",{children:[O.jsx("label",{className:"block text-sm font-medium mb-2",children:"Filter by License (optional)"}),O.jsx("div",{className:"flex flex-wrap gap-2",children:i==null?void 0:i.map(l=>O.jsx("button",{onClick:()=>s(l),className:`px-3 py-1 rounded-full text-sm ${r.licenses.includes(l)?"bg-green-100 text-green-700 border-green-300":"bg-gray-100 text-gray-600"} border`,children:l},l))}),r.licenses.length===0&&O.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"All licenses will be included"})]}),a.data&&O.jsxs("div",{className:"bg-gray-50 rounded-lg p-4",children:[O.jsx("h4",{className:"font-medium mb-2",children:"Preview"}),O.jsxs("div",{className:"grid grid-cols-3 gap-4 text-sm",children:[O.jsxs("div",{children:[O.jsx("span",{className:"text-gray-500",children:"Species:"})," ",a.data.data.species_count]}),O.jsxs("div",{children:[O.jsx("span",{className:"text-gray-500",children:"Images:"})," ",a.data.data.image_count]}),O.jsxs("div",{children:[O.jsx("span",{className:"text-gray-500",children:"Est. Size:"})," ",a.data.data.estimated_size_mb.toFixed(0)," MB"]})]})]})]}),O.jsxs("div",{className:"flex justify-between mt-6",children:[O.jsx("button",{onClick:()=>a.mutate(),className:"px-4 py-2 border rounded-lg hover:bg-gray-50",children:"Preview"}),O.jsxs("div",{className:"flex gap-2",children:[O.jsx("button",{onClick:e,className:"px-4 py-2 border rounded-lg hover:bg-gray-50",children:"Cancel"}),O.jsx("button",{onClick:()=>o.mutate(),disabled:!r.name,className:"px-4 py-2 bg-green-600 text-white rounded-lg hover:bg-green-700 disabled:opacity-50",children:"Create Export"})]})]})]})})}function kre(){const[e,t]=j.useState(null),{data:r,isLoading:n}=zr({queryKey:["sources"],queryFn:()=>wv.list().then(i=>i.data)});return O.jsxs("div",{className:"space-y-6",children:[O.jsx("h1",{className:"text-2xl font-bold",children:"Settings"}),O.jsxs("div",{className:"bg-white rounded-lg shadow",children:[O.jsxs("div",{className:"px-6 py-4 border-b",children:[O.jsxs("h2",{className:"text-lg font-semibold flex items-center gap-2",children:[O.jsx(QN,{className:"w-5 h-5"}),"API Keys"]}),O.jsx("p",{className:"text-sm text-gray-500 mt-1",children:"Configure API keys for each data source"})]}),n?O.jsx("div",{className:"p-6 text-center",children:O.jsx(gA,{className:"w-6 h-6 animate-spin mx-auto text-gray-400"})}):O.jsx("div",{className:"divide-y",children:r==null?void 0:r.map(i=>O.jsx(Nre,{source:i,isEditing:e===i.name,onEdit:()=>t(i.name),onClose:()=>t(null)},i.name))})]}),O.jsxs("div",{className:"bg-yellow-50 border border-yellow-200 rounded-lg p-4",children:[O.jsx("h3",{className:"font-medium text-yellow-800",children:"Rate Limits"}),O.jsxs("ul",{className:"text-sm text-yellow-700 mt-2 space-y-1 list-disc list-inside",children:[O.jsx("li",{children:"iNaturalist: 1 req/sec, 10k/day, 5GB/hr media downloads"}),O.jsx("li",{children:"Flickr: 3600 req/hr with API key"}),O.jsx("li",{children:"Wikimedia: Generous limits, no key required"}),O.jsx("li",{children:"Trefle: Rate limits apply with free tier"})]})]})]})}function Nre({source:e,isEditing:t,onEdit:r,onClose:n}){const i=Pn(),[a,o]=j.useState(!1),[s,l]=j.useState({api_key:"",api_secret:"",rate_limit_per_sec:e.rate_limit_per_sec,enabled:e.enabled}),[u,f]=j.useState(null),c=zt({mutationFn:()=>wv.update(e.name,{api_key:s.api_key,api_secret:s.api_secret||void 0,rate_limit_per_sec:s.rate_limit_per_sec,enabled:s.enabled}),onSuccess:()=>{i.invalidateQueries({queryKey:["sources"]}),n()}}),d=zt({mutationFn:()=>wv.test(e.name),onSuccess:h=>{f({status:h.data.status,message:h.data.message})},onError:h=>{var p,m;f({status:"error",message:((m=(p=h.response)==null?void 0:p.data)==null?void 0:m.message)||"Connection failed"})}});return t?O.jsxs("div",{className:"p-6 bg-gray-50",children:[O.jsxs("div",{className:"flex items-center justify-between mb-4",children:[O.jsx("h3",{className:"font-medium",children:e.label}),O.jsx("button",{onClick:n,className:"text-gray-500 hover:text-gray-700",children:"Cancel"})]}),O.jsxs("div",{className:"space-y-4",children:[O.jsxs("div",{children:[O.jsx("label",{className:"block text-sm font-medium mb-1",children:"API Key"}),O.jsxs("div",{className:"relative",children:[O.jsx("input",{type:a?"text":"password",value:s.api_key,onChange:h=>l({...s,api_key:h.target.value}),placeholder:e.api_key_masked||"Enter API key",className:"w-full px-3 py-2 border rounded-lg pr-10"}),O.jsx("button",{type:"button",onClick:()=>o(!a),className:"absolute right-2 top-1/2 -translate-y-1/2 text-gray-400",children:a?O.jsx(KN,{className:"w-4 h-4"}):O.jsx(VN,{className:"w-4 h-4"})})]})]}),e.requires_secret&&O.jsxs("div",{children:[O.jsx("label",{className:"block text-sm font-medium mb-1",children:"API Secret"}),O.jsx("input",{type:"password",value:s.api_secret,onChange:h=>l({...s,api_secret:h.target.value}),placeholder:e.has_secret?"••••••••":"Enter API secret",className:"w-full px-3 py-2 border rounded-lg"})]}),O.jsxs("div",{children:[O.jsx("label",{className:"block text-sm font-medium mb-1",children:"Rate Limit (requests/sec)"}),O.jsx("input",{type:"number",value:s.rate_limit_per_sec,onChange:h=>l({...s,rate_limit_per_sec:parseFloat(h.target.value)||1}),className:"w-full px-3 py-2 border rounded-lg",min:.1,max:10,step:.1})]}),O.jsxs("div",{className:"flex items-center gap-2",children:[O.jsx("input",{type:"checkbox",id:"enabled",checked:s.enabled,onChange:h=>l({...s,enabled:h.target.checked}),className:"rounded"}),O.jsx("label",{htmlFor:"enabled",className:"text-sm",children:"Enable this source"})]}),u&&O.jsx("div",{className:`p-3 rounded-lg ${u.status==="success"?"bg-green-50 text-green-700":"bg-red-50 text-red-700"}`,children:u.message}),O.jsxs("div",{className:"flex justify-between",children:[e.configured&&O.jsx("button",{onClick:()=>d.mutate(),disabled:d.isPending,className:"px-4 py-2 border rounded-lg hover:bg-white",children:d.isPending?"Testing...":"Test Connection"}),O.jsx("button",{onClick:()=>c.mutate(),disabled:!s.api_key&&!e.configured,className:"px-4 py-2 bg-green-600 text-white rounded-lg hover:bg-green-700 disabled:opacity-50 ml-auto",children:"Save"})]})]})]}):O.jsxs("div",{className:"px-6 py-4 flex items-center justify-between",children:[O.jsxs("div",{className:"flex items-center gap-4",children:[O.jsx("div",{className:`w-2 h-2 rounded-full ${e.configured&&e.enabled?"bg-green-500":e.configured?"bg-yellow-500":"bg-gray-300"}`}),O.jsxs("div",{children:[O.jsx("h3",{className:"font-medium",children:e.label}),O.jsx("p",{className:"text-sm text-gray-500",children:e.configured?`Key: ${e.api_key_masked}`:"Not configured"})]})]}),O.jsxs("div",{className:"flex items-center gap-4",children:[e.configured&&O.jsx("span",{className:`flex items-center gap-1 text-sm ${e.enabled?"text-green-600":"text-gray-400"}`,children:e.enabled?O.jsxs(O.Fragment,{children:[O.jsx(Od,{className:"w-4 h-4"}),"Enabled"]}):O.jsxs(O.Fragment,{children:[O.jsx(Pg,{className:"w-4 h-4"}),"Disabled"]})}),O.jsx("button",{onClick:r,className:"px-3 py-1 text-sm border rounded hover:bg-gray-50",children:e.configured?"Edit":"Configure"})]})]})}const Mre=[{to:"/",icon:YN,label:"Dashboard"},{to:"/species",icon:_g,label:"Species"},{to:"/images",icon:vA,label:"Images"},{to:"/jobs",icon:ef,label:"Jobs"},{to:"/export",icon:yA,label:"Export"},{to:"/settings",icon:ZN,label:"Settings"}];function Ire(){return O.jsxs("aside",{className:"w-64 bg-white border-r border-gray-200 min-h-screen",children:[O.jsx("div",{className:"p-4 border-b border-gray-200",children:O.jsxs("h1",{className:"text-xl font-bold text-green-600 flex items-center gap-2",children:[O.jsx(_g,{className:"w-6 h-6"}),"PlantScraper"]})}),O.jsx("nav",{className:"p-4",children:O.jsx("ul",{className:"space-y-2",children:Mre.map(e=>O.jsx("li",{children:O.jsxs(BN,{to:e.to,className:({isActive:t})=>oe("flex items-center gap-3 px-3 py-2 rounded-lg transition-colors",t?"bg-green-50 text-green-700":"text-gray-600 hover:bg-gray-100"),children:[O.jsx(e.icon,{className:"w-5 h-5"}),e.label]})},e.to))})})]})}function Rre(){return O.jsx(IN,{children:O.jsxs("div",{className:"flex min-h-screen",children:[O.jsx(Ire,{}),O.jsx("main",{className:"flex-1 p-8",children:O.jsxs(EN,{children:[O.jsx(ji,{path:"/",element:O.jsx(_re,{})}),O.jsx(ji,{path:"/species",element:O.jsx(Pre,{})}),O.jsx(ji,{path:"/images",element:O.jsx(jre,{})}),O.jsx(ji,{path:"/jobs",element:O.jsx(Tre,{})}),O.jsx(ji,{path:"/export",element:O.jsx(Cre,{})}),O.jsx(ji,{path:"/settings",element:O.jsx(kre,{})})]})})]})})}const Dre=new _k({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});Np.createRoot(document.getElementById("root")).render(O.jsx(T.StrictMode,{children:O.jsx(Pk,{client:Dre,children:O.jsx(Rre,{})})}));